/* Free online tools (/tools/): shared page styles + Schema Visualizer + SERP preview + AI crawler checker */

/* Wider container for tool pages (layout: tool) */
@media screen and (min-width: 1088px) {
    .is-tool-layout .section > .container {
        max-width: 1320px;
        width: auto;
    }
}
.tool-breadcrumb { margin-bottom: .75rem !important; }
.tool-meta { color: #868e96; margin: -.75rem 0 1.25rem; }
.tool-meta a { color: inherit; text-decoration: underline; }
.tool-page .content .tool-root { margin: 0 0 2.5rem; }
.tool-page .content > h2:first-of-type { margin-top: 0; }

/* Tool cards on /tools/ */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
}
.tool-page .content .tool-card {
    display: block;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.tool-page .content .tool-card:hover { border-color: #3b5bdb; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.tool-card .tool-card-tag { font-size: .72rem; color: #3b5bdb; text-transform: uppercase; letter-spacing: .04em; }
.tool-card .tool-card-title { font-weight: 700; font-size: 1.05rem; margin: .2rem 0 .4rem; color: #212529; }
.tool-card .tool-card-desc { font-size: .9rem; color: #495057; line-height: 1.6; }

/* ------------------------------------------------------------------ */
/* Shared controls                                                     */
/* ------------------------------------------------------------------ */
.sv-app, .tl-app { font-size: 14px; line-height: 1.5; color: #343a40; }
.sv-app *, .tl-app * { box-sizing: border-box; }
.sv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .3em;
    height: 32px; padding: 0 .8em; border: 1px solid #dee2e6; border-radius: 6px;
    background: #fff; color: #343a40; font-size: 13px; cursor: pointer; white-space: nowrap;
    text-decoration: none !important;
}
.sv-btn:hover { border-color: #adb5bd; background: #f8f9fa; }
.sv-btn:focus-visible { outline: 2px solid #3b5bdb; outline-offset: 1px; }
.sv-btn-primary {
    background: linear-gradient(135deg, #4c6ef5, #3b5bdb); border-color: transparent; color: #fff !important; font-weight: 600;
    box-shadow: 0 8px 20px -10px rgba(59, 91, 219, .55);
}
.sv-btn-primary:hover { background: linear-gradient(135deg, #5c7cfa, #4263eb); border-color: transparent; }
.sv-btn-block { width: 100%; height: 40px; font-size: 14px; margin-top: .6rem; }
.sv-btn-sm { height: 26px; font-size: 12px; padding: 0 .6em; }
.sv-icon { width: 32px; padding: 0; font-size: 16px; }
.sv-select {
    height: 32px; border: 1px solid #dee2e6; border-radius: 6px; padding: 0 .5em; background: #fff;
    font-size: 13px; color: #343a40; min-width: 0; flex: 1 1 160px;
}
.sv-panel {
    background: rgba(255, 255, 255, .78); border: 1px solid rgba(15, 23, 42, .06); border-radius: 16px; padding: 16px; margin-bottom: 14px;
    box-shadow: 0 1px 1px rgba(15, 23, 42, .03), 0 8px 24px -12px rgba(15, 23, 42, .12);
}
.sv-panel-head {
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #495057;
    margin-bottom: .4rem;
}
.sv-help { font-size: 12.5px; color: #868e96; margin: 0 0 .6rem !important; line-height: 1.6; }
.sv-dim { color: #868e96; font-size: 12px; }
.sv-empty { color: #adb5bd; font-size: 13px; text-align: center; padding: 1.2rem .5rem; margin: 0 !important; }
.sv-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sv-badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 99px; text-transform: none; letter-spacing: 0; }
.sv-badge.is-good { background: #ebfbee; color: #2b8a3e; }
.sv-badge.is-bad { background: #fff5f5; color: #c92a2a; }
.sv-app code, .tl-app code { font-size: .92em; padding: 0 .3em; background: #f1f3f5; color: #2f4ac0; border-radius: 3px; }

/* ------------------------------------------------------------------ */
/* Schema Visualizer                                                   */
/* ------------------------------------------------------------------ */
.sv-app { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.sv-editor {
    position: relative; display: flex; height: 320px; min-height: 180px; resize: vertical; overflow: hidden;
    border: 1px solid #dee2e6; border-radius: 10px; background: #f8f9fb; transition: border-color .15s, box-shadow .15s;
}
.sv-editor:focus-within { border-color: #3b5bdb; background: #fff; box-shadow: 0 0 0 3px rgba(59, 91, 219, .12); }
.sv-editor.is-flash { animation: sv-flash .9s ease; }
@keyframes sv-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 49, 49, 0); } 30% { box-shadow: 0 0 0 4px rgba(224, 49, 49, .25); } }
.sv-app .sv-gutter, .sv-app .sv-layer, .sv-app .sv-input {
    /* !important: the theme's article pre styles must not change metrics, or the layers drift from the textarea */
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 12px !important;
    line-height: 19px !important; tab-size: 2; letter-spacing: 0 !important;
    margin: 0 !important; padding: 10px !important; white-space: pre !important; word-wrap: normal; overflow-wrap: normal;
}
.sv-app .sv-gutter {
    flex: none; min-width: 42px; text-align: right; color: #adb5bd; background: transparent;
    border-right: 1px solid rgba(15, 23, 42, .06); overflow: hidden; user-select: none; border-radius: 0;
}
.sv-gutter .gl-error { color: #fff; background: #e03131; border-radius: 3px; padding: 0 3px; }
.sv-gutter .gl-warning { color: #fff; background: #f59f00; border-radius: 3px; padding: 0 3px; }
.sv-code { position: relative; flex: 1; min-width: 0; }
.sv-app .sv-layer {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: transparent; border-radius: 0; color: transparent;
}
.sv-layer-syntax { color: #343a40 !important; }
.sv-layer-syntax .tk-key { color: #1e3a8a; }
.sv-layer-syntax .tk-str { color: #2b8a3e; }
.sv-layer-syntax .tk-num { color: #e8590c; }
.sv-layer-syntax .tk-lit { color: #ae3ec9; }
.sv-layer-syntax .tk-tag { color: #868e96; }
.sv-layer-bg .hl { background: rgba(59, 91, 219, .12); border-radius: 3px; }
.sv-layer-marks .mk { text-decoration: underline wavy; text-decoration-skip-ink: none; text-underline-offset: 3px; }
.sv-layer-marks .mk-error { text-decoration-color: #e03131; background: rgba(224, 49, 49, .08); }
.sv-layer-marks .mk-warning { text-decoration-color: #f59f00; }
.sv-layer-marks .mk-tip { text-decoration-color: #3b5bdb; text-decoration-style: dotted; }
.sv-input {
    position: absolute; inset: 0; width: 100%; height: 100%; resize: none; border: 0; outline: none; overflow: auto;
    background: transparent; color: transparent; caret-color: #1e3a8a;
}
.sv-input::placeholder { color: #adb5bd; }
.sv-input::selection { background: rgba(59, 91, 219, .25); color: transparent; }
.sv-status { font-size: 12.5px; margin-top: 8px; color: #495057; word-break: break-word; }
.sv-status.is-ok { color: #2b8a3e; }
.sv-status.is-bad { color: #c92a2a; }
.sv-status.is-warn { color: #e67700; }
.sv-bm summary { cursor: pointer; font-weight: 600; font-size: 13px; color: #495057; }
.sv-bm[open] summary { margin-bottom: .5rem; }
.sv-bm-link { cursor: grab; border-style: dashed; color: #3b5bdb !important; }

.sv-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.sv-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-score { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.sv-score-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #868e96; font-weight: 600; }
.sv-score-grade { font-weight: 700; font-size: 15px; }

.sv-canvas {
    position: relative; height: 620px; border: 1px solid rgba(15, 23, 42, .06); border-radius: 16px; overflow: hidden;
    background-color: #f2f4f7;
    background-image: radial-gradient(rgba(30, 58, 138, .13) 1px, transparent 1px);
    background-size: 18px 18px;
    cursor: grab; touch-action: none; margin-bottom: 14px;
}
.sv-canvas.is-dragging { cursor: grabbing; }
.sv-svg { width: 100%; height: 100%; display: block; user-select: none; }
.sv-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 14px; padding: 2rem; text-align: center; pointer-events: none;
}
.sv-placeholder[hidden] { display: none; }
.sv-legend {
    position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); border: 1px solid #e9ecef;
    border-radius: 8px; padding: 6px 10px; font-size: 11.5px; color: #495057; pointer-events: none; max-width: 60%;
}
.sv-legend > div { display: flex; align-items: center; gap: 8px; line-height: 1.8; }
.sv-legend svg { flex: none; }

.sv-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e9ecef; margin: -4px 0 10px; }
.sv-tab {
    border: 0; background: none; padding: 6px 10px; font-size: 13px; font-weight: 600; color: #868e96;
    border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.sv-tab.is-active { color: #3b5bdb; border-bottom-color: #3b5bdb; }
.sv-issues[hidden], .sv-features[hidden] { display: none; }

.sv-app ul.sv-issue-list, .sv-app ul.sv-feature-list, .sv-app ul.sv-insp-issues { list-style: none; margin: 0 !important; padding: 0; }
.sv-app .sv-issue-list li, .sv-app .sv-insp-issues li {
    display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 6px; margin: 0 !important;
    font-size: 13px; line-height: 1.55;
}
.sv-issue.is-link { cursor: pointer; }
.sv-issue.is-link:hover, .sv-issue.is-active { background: #edf2ff; }
.sv-sev {
    flex: none; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 99px; line-height: 18px; min-width: 3.2em; text-align: center;
}
.sev-error .sv-sev { background: #ffe3e3; color: #c92a2a; }
.sev-warning .sv-sev { background: #fff3bf; color: #e67700; }
.sev-tip .sv-sev { background: #e7f5ff; color: #1971c2; }
.sev-info .sv-sev { background: #f1f3f5; color: #495057; }
.sv-msg { min-width: 0; word-break: break-word; }

.sv-app .sv-feature-list li {
    display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; margin: 0 0 4px !important;
    background: #f8f9fa; font-size: 13px;
}
.sv-feat-name { font-weight: 600; }
.sv-feature-list .st-ok .sv-feat-st { color: #2b8a3e; }
.sv-feature-list .st-missing .sv-feat-st { color: #c92a2a; }
.sv-feature-list .st-deprecated .sv-feat-st, .sv-feature-list .st-limited .sv-feat-st { color: #868e96; }
.sv-features .sv-help { margin-top: .6rem !important; }

.sv-inspector { max-height: 560px; overflow: auto; }
.sv-insp-head { margin-bottom: 8px; }
.sv-insp-type { font-weight: 700; color: #2b8a3e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sv-insp-id { font-size: 12px; color: #1c7ed6; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sv-insp-issues { margin-bottom: 8px !important; }
.sv-app table.sv-props { width: 100%; border-collapse: collapse; font-size: 12px; margin: 0 0 10px !important; table-layout: fixed; }
.sv-app table.sv-props th, .sv-app table.sv-props td {
    border: 0 !important; border-bottom: 1px solid #f1f3f5 !important; padding: 5px 4px !important; vertical-align: top; text-align: left;
    word-break: break-word;
}
.sv-app table.sv-props thead th { color: #868e96; font-weight: 600; }
.sv-app table.sv-props tbody th { width: 38%; font-weight: 400; }
.sv-app table.sv-props ol { margin: 0 0 0 1.2em !important; padding: 0; }
.sv-app table.sv-props ol li { margin: 0 !important; }
.sv-raw-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: #495057; margin-bottom: 4px; }
.sv-app pre.sv-raw {
    margin: 0; max-height: 280px; overflow: auto; padding: 8px 10px; font-size: 11.5px; line-height: 1.5;
    background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; white-space: pre; color: #343a40;
}

@media screen and (max-width: 960px) {
    .sv-app { grid-template-columns: minmax(0, 1fr); }
    .sv-main { order: -1; }
    .sv-side { order: 0; }
    .sv-canvas { height: 460px; }
    .sv-editor { height: 240px; }
}
@media screen and (max-width: 600px) {
    .sv-legend { display: none; }
    .sv-canvas { height: 400px; }
}

/* ------------------------------------------------------------------ */
/* SERP preview + AI crawler checker (tl-*)                            */
/* ------------------------------------------------------------------ */
.tl-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tl-field { margin-bottom: 12px; }
.tl-field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #495057; margin-bottom: 4px; }
.tl-field .tl-count { font-weight: 400; color: #868e96; font-variant-numeric: tabular-nums; }
.tl-input, .tl-textarea {
    width: 100%; border: 1px solid #dee2e6; border-radius: 6px; padding: 8px 10px; font-size: 14px; color: #212529; background: #fff;
    font-family: inherit;
}
.tl-textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.tl-mono { font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 260px; background: #f8f9fa; }
.tl-input:focus, .tl-textarea:focus { outline: none; border-color: #3b5bdb; }
.tl-meter { height: 6px; background: #f1f3f5; border-radius: 99px; overflow: hidden; margin-top: 6px; position: relative; }
.tl-meter > span { display: block; height: 100%; border-radius: 99px; background: #3b5bdb; transition: width .15s, background .15s; }
.tl-meter.is-warn > span { background: #f08c00; }
.tl-meter.is-bad > span { background: #e03131; }
.tl-hint { font-size: 12px; color: #868e96; margin-top: 4px; }
.tl-seg { display: inline-flex; border: 1px solid #dee2e6; border-radius: 6px; overflow: hidden; }
.tl-seg button { border: 0; background: #fff; padding: 5px 12px; font-size: 13px; cursor: pointer; color: #495057; }
.tl-seg button + button { border-left: 1px solid #dee2e6; }
.tl-seg button.is-active { background: #3b5bdb; color: #fff; }

/* Google-like result card */
.tl-serp { background: #fff; border: 1px solid #e9ecef; border-radius: 10px; padding: 18px 20px; overflow: hidden; }
.tl-serp.is-mobile { max-width: 412px; padding: 14px 16px; border-radius: 16px; }
.tl-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-family: Arial, sans-serif; }
.tl-serp-fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; border: 1px solid #ecedef; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #5f6368; flex: none; }
.tl-serp-name { font-size: 14px; color: #202124; line-height: 20px; }
.tl-serp-url { font-size: 12px; color: #4d5156; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.tl-serp-title {
    font-family: Arial, sans-serif; font-size: 20px; line-height: 26px; color: #1a0dab; margin: 2px 0 3px;
    white-space: nowrap; overflow: hidden;
}
.tl-serp.is-mobile .tl-serp-title { font-size: 18px; line-height: 24px; white-space: normal; }
.tl-serp-desc { font-family: Arial, sans-serif; font-size: 14px; line-height: 22px; color: #4d5156; word-wrap: break-word; }
.tl-serp-desc .tl-date { color: #70757a; }
.tl-serp-desc b { color: #5f6368; }
.tl-list { list-style: none; margin: 10px 0 0 !important; padding: 0; }
.tl-list li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 5px 0; margin: 0 !important; border-bottom: 1px dashed #f1f3f5; }

/* AI crawler table */
.tl-app table.tl-bots { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 !important; }
.tl-app table.tl-bots th, .tl-app table.tl-bots td { border: 0 !important; border-bottom: 1px solid #f1f3f5 !important; padding: 7px 6px !important; text-align: left; vertical-align: top; }
.tl-app table.tl-bots thead th { font-size: 12px; color: #868e96; font-weight: 600; }
.tl-bot-name { font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.tl-bot-owner { font-size: 11.5px; color: #868e96; }
.tl-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 99px; white-space: nowrap; }
.tl-pill.is-allow { background: #ebfbee; color: #2b8a3e; }
.tl-pill.is-block { background: #ffe3e3; color: #c92a2a; }
.tl-rule { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: #495057; word-break: break-all; }
.tl-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #868e96; padding-top: 14px !important; }
.tl-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tl-summary span { font-size: 12.5px; padding: 3px 10px; border-radius: 6px; background: #f8f9fa; }

@media screen and (max-width: 960px) {
    .tl-app { grid-template-columns: minmax(0, 1fr); }
}

/* "Other tools" block at the bottom of each tool page */
.tool-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e9ecef; }
.tool-page .tool-related-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 1rem; color: #212529; }
.tool-related .tool-grid { margin-bottom: .75rem; }
.tool-related .tool-card { display: block; padding: 1rem 1.1rem; border: 1px solid #e9ecef; border-radius: 10px; color: inherit; }
.tool-related .tool-card:hover { border-color: #3b5bdb; }

/* Cards are whole-block links: no text underline from the article link style */
.tool-page .content a.tool-card, .tool-page a.tool-card, .tool-card * { text-decoration: none !important; }

/* Star rating under the tool title */
.tool-rating {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
    margin: -.5rem 0 1.25rem; font-size: 13px; color: #495057;
}
.tool-rating-label { font-weight: 600; }
.tool-stars { display: inline-flex; gap: 2px; }
.tool-stars button {
    border: 0; background: none; padding: 0 1px; font-size: 22px; line-height: 1; cursor: pointer; color: #dee2e6;
    transition: color .1s, transform .1s;
}
.tool-stars button.is-on { color: #f59f00; }
.tool-stars button:hover { transform: scale(1.12); }
.tool-stars button:focus-visible { outline: 2px solid #3b5bdb; outline-offset: 2px; border-radius: 3px; }
.tool-rating.is-busy .tool-stars { opacity: .5; pointer-events: none; }
.tool-rating-summary { color: #868e96; font-variant-numeric: tabular-nums; }
.tool-rating-note { color: #2b8a3e; flex-basis: 100%; font-size: 12.5px; }
.tool-rating-note:empty { display: none; }


/* ------------------------------------------------------------------ */
/* Schema Visualizer: views, entity cards, readout, auto-fix           */
/* ------------------------------------------------------------------ */
.sv-views { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: rgba(30, 58, 138, .06); border-radius: 12px; }
.sv-view-tab {
    border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.sv-view-tab:hover { color: #1e3a8a; }
.sv-view-tab.is-active { background: #fff; color: #1e3a8a; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 4px 12px -6px rgba(15, 23, 42, .15); }
.sv-count:not(:empty) { background: #3b5bdb; color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; line-height: 17px; }
.sv-view[hidden] { display: none; }
.sv-view-doc {
    min-height: 420px; max-height: 720px; overflow: auto; margin-bottom: 14px; padding: 18px;
    background: rgba(255, 255, 255, .78); border: 1px solid rgba(15, 23, 42, .06); border-radius: 16px;
    box-shadow: 0 1px 1px rgba(15, 23, 42, .03), 0 8px 24px -12px rgba(15, 23, 42, .12);
}
.sv-canvas-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sv-canvas-tools .sv-btn { background: rgba(255, 255, 255, .9); }
.sv-legend-cats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 2px; }
.sv-legend-cats i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sv-chip {
    display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px;
    background: rgba(59, 91, 219, .1); color: #1e3a8a; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sv-app a.sv-chip-link { font-family: inherit; text-decoration: none; background: #f1f3f5; color: #343a40; font-weight: 500; }
.sv-app a.sv-chip-link:hover { background: #edf2ff; color: #1e3a8a; }
.sv-warn-text { color: #e67700; font-weight: 600; }
.sv-subhead { font-size: 13px; font-weight: 700; color: #1e3a8a; margin: 1.2rem 0 .5rem; }
.sv-note { font-size: 12.5px; color: #e67700; margin: .5rem 0 !important; }

.sv-entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sv-entity {
    border: 1px solid rgba(15, 23, 42, .08); border-radius: 14px; padding: 14px; background: #fff; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.sv-entity:hover { border-color: #91a7ff; box-shadow: 0 8px 20px -14px rgba(59, 91, 219, .5); }
.sv-entity.is-ghost { background: #f8f9fa; border-style: dashed; }
.sv-entity-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.sv-entity-avatar {
    position: relative; flex: none; width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, #4c6ef5, #1e3a8a); color: #fff; font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.sv-entity-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; transition: opacity .2s; }
.sv-entity-title { min-width: 0; }
.sv-entity-name { font-weight: 700; color: #111827; font-size: 15px; line-height: 1.3; word-break: break-word; }
.sv-entity-id { font-size: 11.5px; color: #3b5bdb; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-bottom: 8px; }
.sv-entity-profiles { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 10px; }
.sv-entity-profiles .sv-dim { margin-right: 2px; }
.sv-entity-score { display: flex; justify-content: space-between; font-size: 12px; color: #475569; }
.sv-entity-score strong { color: #1e3a8a; }
.sv-meter { height: 5px; background: #e9ecef; border-radius: 99px; overflow: hidden; margin: 4px 0 8px; }
.sv-meter > span { display: block; height: 100%; background: linear-gradient(90deg, #4c6ef5, #3b5bdb); border-radius: 99px; }
.sv-app ul.sv-checklist { list-style: none; margin: 0 0 8px !important; padding: 0; font-size: 12.5px; }
.sv-app .sv-checklist li { margin: 0 !important; padding: 2px 0 2px 20px; position: relative; }
.sv-checklist li::before { position: absolute; left: 0; font-weight: 700; }
.sv-checklist li.is-ok { color: #343a40; }
.sv-checklist li.is-ok::before { content: '✓'; color: #3b5bdb; }
.sv-checklist li.is-missing { color: #868e96; }
.sv-checklist li.is-missing::before { content: '○'; color: #f08c00; }
.sv-entity-refs { font-size: 11.5px; color: #475569; line-height: 1.8; }

.sv-app ol.sv-readout { list-style: none; margin: 0 !important; padding: 0; counter-reset: none; }
.sv-app .sv-readout li {
    margin: 0 0 8px !important; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(15, 23, 42, .06);
    display: flex; gap: 10px; align-items: baseline; cursor: pointer;
}
.sv-app .sv-readout li:hover { border-color: #91a7ff; }
.sv-app .sv-readout p { margin: 0 !important; font-size: 14px; line-height: 1.7; color: #1f2937; }
.sv-readout strong { color: #1e3a8a; }
.sv-app ul.sv-gaps { margin: 0 0 0 1.2em !important; padding: 0; font-size: 13px; color: #475569; }
.sv-app .sv-gaps li { margin: 0 0 4px !important; }

.sv-field { display: block; margin: 0 0 10px; }
.sv-field > span { display: block; font-size: 12.5px; color: #475569; margin-bottom: 4px; }
.sv-text { width: 100%; height: 34px; border: 1px solid #dee2e6; border-radius: 8px; padding: 0 10px; font-size: 13px; }
.sv-text:focus { outline: none; border-color: #3b5bdb; box-shadow: 0 0 0 3px rgba(59, 91, 219, .15); }
.sv-fix-summary {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center;
    padding: 10px 12px; border-radius: 12px; background: rgba(59, 91, 219, .08); color: #1e3a8a; font-size: 13.5px; margin-bottom: 10px;
}
.sv-table-wrap { overflow-x: auto; margin-bottom: 10px; }
.sv-app table.sv-fix-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 0 !important; }
.sv-app table.sv-fix-table th, .sv-app table.sv-fix-table td {
    border: 0 !important; border-bottom: 1px solid #f1f3f5 !important; padding: 6px 6px !important; text-align: left; vertical-align: top; word-break: break-word;
}
.sv-app table.sv-fix-table thead th { color: #868e96; font-weight: 600; white-space: nowrap; }
.sv-fix-table code { color: #1e3a8a; background: none; padding: 0; font-size: 11.5px; }
.sv-before { color: #c92a2a; text-decoration: line-through; text-decoration-color: rgba(201, 42, 42, .4); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sv-after { color: #2b8a3e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sv-fixed-code { max-height: 360px; margin-top: 10px !important; }

@media screen and (max-width: 600px) {
    .sv-canvas-tools {
        top: 8px; left: 8px; right: 8px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .sv-canvas-tools::-webkit-scrollbar { display: none; }
    .sv-canvas-tools .sv-btn, .sv-seg button { height: 28px; flex: none; }
    .sv-views { width: 100%; }
    .sv-view-tab { flex: 1 1 auto; justify-content: center; }
}

.sv-issue-list li { animation: sv-in .28s ease both; }
@keyframes sv-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sv-issue-list li, .sv-editor.is-flash { animation: none; } }

.sv-ring { transition: stroke-dasharray .65s cubic-bezier(.2, .8, .2, 1); }
.sv-fix-table tr.is-off td { opacity: .45; }
.sv-fix-table tr.is-off .sv-before { text-decoration: none; }
.sv-fix-table input[type=checkbox] { accent-color: #3b5bdb; width: 15px; height: 15px; cursor: pointer; }
.sv-fix-score b { font-size: 15px; }
.sv-fix-after { color: #3b5bdb; }
.sv-btn:active { transform: scale(.97); }
.sv-btn[disabled] { opacity: .5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sv-ring { transition: none; } .sv-btn:active { transform: none; } }

/* Star map mode */
.sv-canvas.is-stars { background: #0b1437; border-color: #1e3a8a; }
.sv-canvas.is-stars .sv-legend { background: rgba(11, 20, 55, .78); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.sv-canvas.is-stars .sv-legend-cats i[data-cat=identity] { background: #ffd43b !important; }
.sv-canvas.is-stars .sv-legend-cats i[data-cat=content] { background: #74c0fc !important; }
.sv-canvas.is-stars .sv-legend-cats i[data-cat=commerce] { background: #ffa94d !important; }
.sv-canvas.is-stars .sv-legend-cats i[data-cat=structure] { background: #ced4da !important; }
.sv-canvas.is-stars [data-ref=zoomIn], .sv-canvas.is-stars [data-ref=zoomOut], .sv-canvas.is-stars [data-ref=fit] { display: none; }
.sv-seg { display: inline-flex; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .92); }
.sv-seg button { border: 0; background: none; padding: 0 12px; height: 30px; font-size: 13px; color: #475569; cursor: pointer; }
.sv-seg button + button { border-left: 1px solid #dee2e6; }
.sv-seg button.is-active { background: #1e3a8a; color: #fff; }
.sv-star { cursor: grab; }

/* Report card */
.sv-score-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sv-btn-report { border-color: rgba(59, 91, 219, .35); color: #1e3a8a; font-weight: 600; }
.sv-modal {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(11, 20, 55, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: sv-fade .2s ease;
}
.sv-modal-card { background: #fff; border-radius: 18px; padding: 18px; max-width: 920px; width: 100%; box-shadow: 0 30px 80px -20px rgba(11, 20, 55, .6); }
.sv-modal-card img { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 10px; }
@keyframes sv-fade { from { opacity: 0; } to { opacity: 1; } }

/* URL fetch row */
.sv-url { display: flex; gap: 6px; margin: 2px 0 8px; }
.sv-url .sv-text { flex: 1; min-width: 0; height: 36px; }
.sv-url .sv-btn { height: 36px; }
.sv-help.is-ok { color: #2b8a3e; }
.sv-help.is-bad { color: #c92a2a; }

/* Motion and empty state */
.sv-readout li, .sv-entity { animation: sv-in .35s ease both; }
.sv-placeholder { pointer-events: none; }
.sv-empty-state { text-align: center; color: #64748b; max-width: 420px; }
.sv-empty-state p { margin: 10px 0 12px !important; }
.sv-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .sv-readout li, .sv-entity { animation: none; } }
