:root {
    color-scheme: light dark;
    --bg: #f4f7f9;
    --surface: #ffffff;
    --surface-2: #eef3f6;
    --text: #101820;
    --muted: #5f6d7a;
    --line: #d7e0e6;
    --cyan: #00a8d3;
    --cyan-strong: #0087ab;
    --amber: #a96c00;
    --mint: #0f8a6d;
    --violet: #6956d9;
    --danger: #b14444;
    --shadow: 0 20px 60px rgba(20, 35, 45, .08);
    --radius: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0f14;
        --surface: #111821;
        --surface-2: #151f29;
        --text: #e8eef4;
        --muted: #9ba9b5;
        --line: #26333f;
        --cyan: #00d4ff;
        --cyan-strong: #38ddff;
        --amber: #ffb547;
        --mint: #2dd4a8;
        --violet: #8c7aff;
        --danger: #ff7777;
        --shadow: 0 28px 80px rgba(0, 0, 0, .28);
    }
}

html[data-theme="light"] { color-scheme: light; --bg:#f4f7f9; --surface:#fff; --surface-2:#eef3f6; --text:#101820; --muted:#5f6d7a; --line:#d7e0e6; --cyan:#00a8d3; --cyan-strong:#0087ab; --amber:#a96c00; --mint:#0f8a6d; --violet:#6956d9; --danger:#b14444; --shadow:0 20px 60px rgba(20,35,45,.08); }
html[data-theme="dark"] { color-scheme: dark; --bg:#0b0f14; --surface:#111821; --surface-2:#151f29; --text:#e8eef4; --muted:#9ba9b5; --line:#26333f; --cyan:#00d4ff; --cyan-strong:#38ddff; --amber:#ffb547; --mint:#2dd4a8; --violet:#8c7aff; --danger:#ff7777; --shadow:0 28px 80px rgba(0,0,0,.28); }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--cyan) 7%, transparent), transparent 32rem), var(--bg); color: var(--text); }
button, textarea, summary { font: inherit; }
a { color: inherit; }
.site-shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 18px; }
.site-header { min-height: 78px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; width: 220px; flex: 0 0 auto; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand-logo-light { display: block; }
.brand-logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .brand-logo-light { display:none; } .brand-logo-dark { display:block; } }
html[data-theme="light"] .brand-logo-light { display:block; }
html[data-theme="light"] .brand-logo-dark { display:none; }
html[data-theme="dark"] .brand-logo-light { display:none; }
html[data-theme="dark"] .brand-logo-dark { display:block; }
.main-nav { display: none; align-items: center; gap: 8px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 12px; font-size: .92rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-button, .language-menu summary { min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.language-menu { position: relative; }
.language-menu summary { list-style: none; padding: 0 10px; font-weight: 700; font-size: .78rem; letter-spacing: .06em; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-flag { display: block; flex: 0 0 auto; width: 24px; height: 16px; object-fit: cover; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--line) 78%, transparent); box-shadow: 0 1px 2px rgba(11,15,20,.10); }
.language-flag-current { width: 22px; height: 15px; }
.language-code { line-height: 1; }
.language-list { position: absolute; z-index: 20; top: 50px; right: 0; width: 184px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.language-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; padding: 9px 10px; border-radius: 9px; color: var(--muted); }
.language-list a:hover, .language-list a[aria-current="true"] { background: var(--surface-2); color: var(--text); }
.hero { padding: 58px 0 32px; display: grid; gap: 24px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--cyan); font-size: .74rem; font-weight: 800; }
h1 { margin: 0; max-width: 900px; font-size: clamp(2rem, 6vw, 4.55rem); line-height: 1; letter-spacing: -.048em; font-weight: 760; }
.hero-copy, .page-hero > p:last-child { max-width: 780px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.65; }
.privacy-chip { align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted); font-size: .84rem; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 12%, transparent); }
.workspace { display: grid; gap: 14px; padding-bottom: 40px; }
.panel { background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.input-panel, .audit-panel { padding: 18px; }
.panel-heading { display: grid; gap: 10px; margin-bottom: 16px; }
.panel-heading > div { display: flex; gap: 10px; align-items: center; }
.panel-heading h2, .subheading h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.02em; }
.panel-heading p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.panel-kicker { color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.panel-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--cyan) 8%, var(--surface)); color: var(--cyan); }
.panel-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.editor-shell { position: relative; }
textarea { width: 100%; min-height: 300px; resize: none; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--text); padding: 18px 18px 54px; line-height: 1.7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .96rem; caret-color: var(--cyan); outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
.editor-paste { position: absolute; right: 10px; bottom: 10px; min-height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); cursor: pointer; font-weight: 700; font-size: .78rem; backdrop-filter: blur(8px); }
.editor-paste:hover { border-color: color-mix(in srgb, var(--cyan) 50%, var(--line)); color: var(--cyan); }
.editor-paste.is-error { max-width: calc(100% - 20px); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 12%, transparent); }
.text-meta { min-height: 32px; display: flex; justify-content: flex-end; align-items: center; gap: 7px; color: var(--muted); font-size: .74rem; }
.text-meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
.meta-sep { color: var(--line); }
.action-row, .result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button { border: 1px solid transparent; border-radius: 11px; min-height: 44px; padding: 0 15px; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button:disabled { opacity: .4; cursor: default; }
.button-primary { color: #031318; background: var(--cyan); }
.button-primary:hover { background: var(--cyan-strong); }
.button-secondary { color: var(--text); background: color-mix(in srgb, var(--cyan) 14%, var(--surface)); border-color: color-mix(in srgb, var(--cyan) 35%, var(--line)); }
.button-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.button-danger-ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.button-danger-ghost:hover, .button-danger-ghost[data-confirming="true"] { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 48%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.button:focus-visible, a:focus-visible, summary:focus-visible, .issue-card:focus-visible, .revealed-text:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 38%, transparent); outline-offset: 2px; }
.revealed-wrap { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.revealed-text { margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--bg); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mark { --mark-color: var(--cyan); border-bottom: 2px dotted var(--mark-color); background: color-mix(in srgb, var(--mark-color) 8%, transparent); border-radius: 3px; }
.mark[data-family="confusable"], .mark[data-family="punctuation"] { --mark-color: var(--amber); }
.mark[data-family="bidi"], .mark[data-family="control"], .mark[data-family="tag"], .mark[data-family="noncharacter"], .mark[data-family="steganography"] { --mark-color: var(--danger); }
.mark[data-family="variation"], .mark[data-family="private"] { --mark-color: var(--violet); }
.mark[data-family="normalization"] { --mark-color: var(--mint); }
.mark.severity-high { background: color-mix(in srgb, var(--mark-color) 12%, transparent); }
.mark.invisible-token { display: inline-block; color: var(--mark-color); font-size: .76em; padding: 0 3px; margin: 0 1px; border: 1px solid color-mix(in srgb, var(--mark-color) 40%, var(--line)); border-radius: 4px; }
.mark.is-active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 18%, transparent); }
.empty-state { min-height: 400px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); padding: 30px; }
.empty-state h3 { margin: 12px 0 6px; color: var(--text); }
.empty-state p { margin: 0; max-width: 320px; line-height: 1.5; }
.scan-glyph { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); color: var(--cyan); font-size: 2rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.metric span { display: block; color: var(--muted); font-size: .74rem; }
.metric strong { display: block; margin-top: 5px; font-size: 1.35rem; }
.subheading { margin: 22px 0 10px; }
.coverage-list { display: flex; flex-wrap: wrap; gap: 7px; }
.coverage-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; color: var(--muted); }
.coverage-pill::before { content:""; width: 7px; height: 7px; border-radius: 999px; background: var(--muted); }
.coverage-pill[data-status="active"]::before { background: var(--mint); }
.coverage-pill[data-status="experimental"]::before { background: var(--amber); }
.coverage-pill[data-status="limited"]::before, .coverage-pill[data-status="not-configured"]::before { background: var(--violet); }
.microcopy { margin: 10px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.issue-list { display: grid; gap: 8px; }
.issue-card { --family-color: var(--cyan); border: 1px solid var(--line); border-left: 3px solid var(--family-color); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.issue-card[data-family="confusable"], .issue-card[data-family="punctuation"] { --family-color: var(--amber); }
.issue-card[data-family="bidi"], .issue-card[data-family="control"], .issue-card[data-family="tag"], .issue-card[data-family="noncharacter"], .issue-card[data-family="steganography"] { --family-color: var(--danger); }
.issue-card[data-family="variation"], .issue-card[data-family="private"] { --family-color: var(--violet); }
.issue-card[data-family="normalization"] { --family-color: var(--mint); }
.issue-card[data-kept="true"] { opacity: .72; }
.issue-card[data-kept="true"] .issue-title::after { content: " · ✓"; color: var(--mint); }
.issue-card > button.issue-open { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; text-align: left; background: transparent; color: var(--text); border: 0; padding: 12px; cursor: pointer; }
.issue-title { font-weight: 800; font-size: .9rem; }
.issue-tech { display: block; color: var(--muted); margin-top: 3px; font-size: .75rem; overflow-wrap: anywhere; }
.badge { border-radius: 999px; padding: 5px 8px; font-size: .69rem; font-weight: 800; }
.badge-info, .badge-low { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.badge-medium { color: var(--amber); background: color-mix(in srgb, var(--amber) 11%, transparent); }
.badge-high { color: var(--danger); background: color-mix(in srgb, var(--danger) 11%, transparent); }
.issue-detail { border-top: 1px solid var(--line); padding: 12px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.why-block { margin-bottom: 12px; padding: 10px 11px; border-radius: 10px; background: color-mix(in srgb, var(--family-color) 7%, transparent); }
.why-block strong { display: block; color: var(--text); margin-bottom: 4px; font-size: .78rem; }
.why-block p { margin: 0; }
.issue-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 10px; margin: 0 0 12px; }
.issue-detail dt { color: var(--muted); }
.issue-detail dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.issue-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.issue-actions button { min-height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.issue-actions button[data-action="remove"], .issue-actions button[data-action="replace"] { border-color: color-mix(in srgb, var(--cyan) 32%, var(--line)); }
.result-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.watermark-note { padding: 10px 12px; border-left: 2px solid var(--violet); background: color-mix(in srgb, var(--violet) 7%, transparent); }
.page-hero { padding: 70px 0 40px; max-width: 900px; }
.method-grid { display: grid; gap: 12px; padding-bottom: 20px; }
.method-card, .note-block, .privacy-row { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 20px; }
.method-card > span { color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.method-card h2, .note-block h2 { margin: 18px 0 8px; font-size: 1.2rem; }
.method-card p, .note-block p, .privacy-row p { margin: 0; color: var(--muted); line-height: 1.6; }
.note-block { margin: 0 0 50px; max-width: 900px; }
.privacy-list { display: grid; gap: 10px; max-width: 900px; padding-bottom: 50px; }
.privacy-row { display: flex; gap: 14px; align-items: flex-start; }
.privacy-row .status-dot { margin-top: 8px; }
.site-footer { min-height: 86px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; color: var(--muted); font-size: .82rem; }
.footer-sep { margin: 0 8px; color: var(--line); }
.koperateur-signature a { color: var(--text); text-underline-offset: 3px; }
.koperateur-signature a:hover { color: var(--cyan); }
.koperateur-signature [aria-label="amour"] { color: var(--danger); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }




@media (min-width: 760px) {
    .site-shell { padding: 0 30px; }
    .main-nav { display: flex; }
    .hero { grid-template-columns: 1fr auto; align-items: end; padding-top: 78px; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .site-shell { padding: 0 48px; }
    .workspace { grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr); align-items: start; gap: 16px; }
    .input-panel, .audit-panel { padding: 22px; }
    .audit-panel { position: sticky; top: 16px; }
    .method-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* V1.3 */
textarea { field-sizing: content; min-height: 300px; max-height: 68vh; overflow-y: auto; }
.hero-v13 h1 { font-size: clamp(2rem, 5.4vw, 4rem); }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.mode-tab { min-width: 0; min-height: 72px; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); padding: 12px 14px; cursor: pointer; box-shadow: 0 10px 34px rgba(0,0,0,.025); }
.mode-tab:hover { border-color: color-mix(in srgb, var(--cyan) 44%, var(--line)); }
.mode-tab.is-active { border-color: color-mix(in srgb, var(--cyan) 58%, var(--line)); background: color-mix(in srgb, var(--cyan) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 18%, transparent); }
.mode-tab-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line)); border-radius: 12px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, transparent); font-weight: 850; }
.mode-tab strong, .mode-tab small { display: block; }
.mode-tab strong { font-size: .94rem; }
.mode-tab small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.mode-panel[hidden] { display: none !important; }
.input-helper-row { min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 7px; }
.link-button { border: 0; background: transparent; color: var(--muted); padding: 4px 0; cursor: pointer; font: inherit; font-size: .78rem; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--cyan) 35%, transparent); text-underline-offset: 4px; }
.link-button:hover { color: var(--cyan); }
.editor-shell.is-dragging, .image-drop.is-dragging { outline: 2px dashed var(--cyan); outline-offset: 3px; border-radius: 16px; }
.analysis-status { margin-top: 12px; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--cyan) 6%, var(--surface)); color: var(--muted); font-size: .8rem; }
.analysis-status[hidden] { display: none; }
.spinner { width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--cyan) 24%, var(--line)); border-top-color: var(--cyan); border-radius: 50%; animation: aa-spin .7s linear infinite; }
@keyframes aa-spin { to { transform: rotate(360deg); } }
.info-dot { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: .65rem; font-style: normal; cursor: help; }
.info-dot::after { content: attr(data-tip); pointer-events: none; position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 8px); width: 220px; transform: translateX(-50%); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); opacity: 0; visibility: hidden; font-size: .74rem; line-height: 1.4; font-weight: 500; }
.info-dot:hover::after, .info-dot:focus::after { opacity: 1; visibility: visible; }
.sticky-results-actions { position: sticky; top: 8px; z-index: 7; margin: 14px -4px 4px; padding: 10px 4px; border-top: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); justify-content: flex-start; }
.sticky-results-actions .button { min-height: 38px; padding-inline: 11px; font-size: .75rem; }
.issue-badges { display: flex; align-items: center; gap: 6px; }
.count-badge { border-radius: 999px; padding: 5px 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .69rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.issue-card[data-severity="high"] { --family-color: var(--danger); }
.issue-card[data-severity="medium"] { --family-color: var(--amber); }
.issue-card[data-severity="low"] { --family-color: var(--cyan); }
.issue-card[data-severity="info"] { --family-color: var(--violet); }
.mark { --mark-color: var(--cyan); }
.mark[data-severity="high"] { --mark-color: var(--danger); }
.mark[data-severity="medium"] { --mark-color: var(--amber); }
.mark[data-severity="low"] { --mark-color: var(--cyan); }
.mark[data-severity="info"] { --mark-color: var(--violet); }
.mark.is-active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark-color) 22%, transparent); }
.occurrence-grid { display: grid; gap: 7px; margin: 0 0 12px; }
.occurrence-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.position-chip { border: 0; background: transparent; color: var(--text); text-align: left; padding: 4px 6px; cursor: pointer; font-size: .75rem; }
.position-chip:hover { color: var(--cyan); }
.occurrence-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.occurrence-actions .mini-action { min-height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); padding: 0 7px; cursor: pointer; font-size: .67rem; }
.group-actions { border-top: 1px solid var(--line); padding-top: 10px; }
.compare-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.compare-panel summary { padding: 12px 14px; cursor: pointer; color: var(--text); font-weight: 750; }
.compare-grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.compare-grid > div { min-width: 0; background: var(--surface); padding: 12px; }
.compare-grid strong { display: block; margin-bottom: 7px; font-size: .78rem; }
.compare-grid pre { margin: 0; max-height: 270px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: .75rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.local-history-note { margin: -24px 0 40px; color: var(--muted); font-size: .76rem; }
.history-dialog { width: min(680px, calc(100% - 28px)); max-height: min(720px, calc(100vh - 28px)); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 35px 100px rgba(0,0,0,.35); padding: 18px; }
.history-dialog::backdrop { background: rgba(4,8,12,.56); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.dialog-head h2 { margin: 0; font-size: 1rem; }
.history-list { display: grid; gap: 8px; max-height: 480px; overflow: auto; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); }
.history-row > div:first-child { min-width: 0; }
.history-row strong, .history-row small { display: block; }
.history-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .79rem; }
.history-row small { margin-top: 4px; color: var(--muted); font-size: .67rem; }
.history-row > div:last-child { display: flex; gap: 6px; }
.button-small { min-height: 32px; padding: 0 9px; font-size: .7rem; }
.image-drop { min-height: 380px; display: grid; place-items: center; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--cyan) 36%, var(--line)); border-radius: 18px; background: var(--bg); }
.image-empty-preview { display: grid; place-items: center; gap: 7px; text-align: center; color: var(--muted); padding: 28px; }
.image-empty-preview > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--cyan) 9%, var(--surface)); color: var(--cyan); font-size: 1.6rem; }
.image-empty-preview strong { color: var(--text); }
.image-empty-preview small { font-size: .75rem; }
.image-drop img { display: block; width: 100%; height: 100%; max-height: 560px; object-fit: contain; }
.image-drop img[hidden] { display: none; }
.image-input-actions { margin-top: 12px; }
.image-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.image-fact, .metadata-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 10px 11px; }
.image-fact span, .metadata-item span { display: block; color: var(--muted); font-size: .7rem; }
.image-fact strong, .metadata-item strong { display: block; margin-top: 4px; color: var(--text); font-size: .84rem; overflow-wrap: anywhere; }
.provenance-status { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 12px; background: var(--surface-2); }
.provenance-status.is-detected { border-left-color: var(--amber); }
.provenance-status.is-clear { border-left-color: var(--mint); }
.provenance-status strong { font-size: .86rem; }
.provenance-status small { color: var(--muted); }
.metadata-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metadata-item[data-present="true"] strong { color: var(--amber); }
.metadata-item[data-present="false"] strong { color: var(--mint); }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; color: var(--text); font-size: .82rem; }
.check-row input { margin-top: 2px; accent-color: var(--cyan); }
.warning-check { color: var(--amber); }
.warning-copy { padding: 9px 11px; border-left: 2px solid var(--amber); background: color-mix(in srgb, var(--amber) 6%, transparent); }

@media (min-width: 700px) {
    .compare-grid { grid-template-columns: 1fr 1fr; }
}




/* V1.4: warmer product framing, pricing and legal content */
.hero-v14 { grid-template-columns: 1fr; align-items: center; gap: 22px; padding: 46px 0 30px; }
.hero-v14 .hero-content { min-width: 0; }
.hero-v14 h1 { max-width: 760px; font-size: clamp(2.1rem, 5vw, 3.85rem); line-height: .98; }
.hero-v14 .hero-copy { max-width: 790px; margin-top: 18px; }
.hero-trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 10px; align-items: stretch; width: 100%; max-width: 790px; margin-top: 22px; }
.trust-item { display: flex; align-items: flex-start; gap: 7px; min-width: 0; min-height: 48px; padding: 10px 11px; border: 1px solid color-mix(in srgb, var(--mint) 18%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--muted); font-size: clamp(.72rem, 2.8vw, .82rem); font-weight: 700; line-height: 1.35; }
.trust-check { flex: 0 0 auto; color: var(--mint); font-weight: 900; }
.soft-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--muted); font-size: .78rem; font-weight: 700; }
.hero-visual { display: grid; place-items: center; min-height: 250px; border: 1px solid color-mix(in srgb, var(--cyan) 15%, var(--line)); border-radius: 28px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--cyan) 9%, transparent), transparent 56%), color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden; }
.hero-illustration { width: min(100%, 480px); height: auto; color: var(--cyan); filter: drop-shadow(0 22px 48px rgba(0,0,0,.08)); }
.hero-svg-surface, .hero-svg-image { fill: color-mix(in srgb, var(--surface) 88%, transparent); stroke: color-mix(in srgb, var(--cyan) 34%, var(--line)); stroke-width: 2; }
.hero-svg-image { fill: color-mix(in srgb, var(--cyan) 4%, var(--surface)); }
.hero-svg-line { fill: none; stroke: color-mix(in srgb, var(--text) 58%, var(--line)); stroke-width: 8; stroke-linecap: round; }
.hero-svg-dot { fill: var(--cyan); }
.hero-svg-alert { fill: var(--amber); }
.hero-svg-lens { fill: none; stroke: color-mix(in srgb, var(--cyan) 72%, var(--text)); stroke-width: 12; stroke-linecap: round; }
.mode-tab { text-decoration: none; }
.mode-tab strong { font-size: .98rem; }
.mode-tab small { font-size: .74rem; line-height: 1.35; }
.button { text-decoration: none; }
.button.is-disabled { opacity: .62; cursor: default; pointer-events: none; }

.pricing-hero, .document-hero { max-width: 850px; }
.pricing-grid { display: grid; gap: 16px; max-width: 1040px; margin-bottom: 18px; }
.pricing-card { display: flex; flex-direction: column; min-height: 430px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.pricing-card.is-featured { border-color: color-mix(in srgb, var(--cyan) 46%, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--cyan) 6%, var(--surface)), var(--surface)); }
.pricing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pricing-head > span { padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--mint) 11%, var(--surface)); color: var(--mint); border: 1px solid color-mix(in srgb, var(--mint) 32%, var(--line)); font-size: .72rem; font-weight: 800; }
.pricing-kicker { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pricing-head strong { display: block; margin-top: 8px; color: var(--text); font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.04em; }
.pricing-card > p { color: var(--muted); line-height: 1.6; }
.pricing-card ul { display: grid; gap: 10px; margin: 12px 0 28px; padding: 0; list-style: none; color: var(--text); }
.pricing-card li { position: relative; padding-left: 23px; line-height: 1.5; }
.pricing-card li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mint); font-weight: 900; }
.pricing-card .button { margin-top: auto; align-self: flex-start; }
.pricing-note { max-width: 1040px; margin: 0 0 56px; color: var(--muted); font-size: .78rem; }

.document-page { display: grid; gap: 12px; max-width: 920px; padding-bottom: 58px; }
.document-section { padding: 21px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.document-section h2 { margin: 0 0 8px; color: var(--text); font-size: 1.08rem; }
.document-section p { margin: 0; color: var(--muted); line-height: 1.72; }
.document-cta { margin: -26px 0 56px; }
.external-cta { justify-self: start; margin-top: 6px; }

.site-footer { display: block; min-height: 0; padding: 22px 0 26px; }
.footer-topline { display: flex; flex-direction: column; gap: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 7px 15px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .78rem; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.koperateur-signature { margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }

@media (min-width: 760px) {
    .hero-v14 { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr); align-items: center; padding-top: 64px; }
    .hero-visual { min-height: 310px; }
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-topline { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 30px; }
    .footer-nav { justify-content: flex-end; max-width: 720px; }
}

@media (min-width: 1080px) {
    .hero-v14 { grid-template-columns: minmax(0, 1.55fr) minmax(360px, .75fr); gap: 52px; }
    .hero-v14 h1 { font-size: clamp(3rem, 4.4vw, 4rem); }
    .hero-visual { min-height: 345px; }
}





/* V1.4.1: dynamic inspector worlds */
body[data-inspector-mode="text"] { --mode-accent: var(--cyan); --mode-accent-strong: var(--cyan-strong); --mode-soft: color-mix(in srgb, var(--cyan) 8%, var(--surface)); }
body[data-inspector-mode="image"] { --mode-accent: var(--violet); --mode-accent-strong: color-mix(in srgb, var(--violet) 78%, var(--text)); --mode-soft: color-mix(in srgb, var(--violet) 9%, var(--surface)); }
body[data-inspector-mode="image"] { background: radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--violet) 8%, transparent), transparent 32rem), var(--bg); }
body[data-inspector-mode="image"] .eyebrow { color: var(--violet); }
body[data-inspector-mode="image"] .mode-tab.is-active { border-color: color-mix(in srgb, var(--violet) 60%, var(--line)); background: color-mix(in srgb, var(--violet) 7%, var(--surface)); }
body[data-inspector-mode="image"] .mode-tab.is-active .mode-tab-icon,
body[data-inspector-mode="image"] #imageMode .panel-icon { border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); background: color-mix(in srgb, var(--violet) 9%, var(--surface)); color: var(--violet); }
body[data-inspector-mode="image"] #imageMode .button-primary { background: var(--violet); color: #fff; }
body[data-inspector-mode="image"] #imageMode .button-primary:hover { background: var(--mode-accent-strong); }
body[data-inspector-mode="image"] #imageMode .image-drop { border-color: color-mix(in srgb, var(--violet) 44%, var(--line)); background: color-mix(in srgb, var(--violet) 2%, var(--bg)); }
body[data-inspector-mode="image"] #imageMode .image-empty-preview > span { background: color-mix(in srgb, var(--violet) 10%, var(--surface)); color: var(--violet); }
.hero-visual { position: relative; isolation: isolate; transition: border-color .28s ease, background .28s ease; }
body[data-inspector-mode="image"] .hero-visual { border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--violet) 11%, transparent), transparent 58%), color-mix(in srgb, var(--surface) 70%, transparent); }
.hero-scene { grid-area: 1 / 1; width: 100%; display: grid; place-items: center; opacity: 0; transform: translateY(8px) scale(.985); pointer-events: none; transition: opacity .24s ease, transform .28s ease; }
.hero-scene.is-active { opacity: 1; transform: translateY(0) scale(1); }
.hero-visual { display: grid; }
.hero-visual > .hero-scene { grid-area: 1 / 1; }
.hero-illustration-image { color: var(--violet); }
.hero-layer { fill: color-mix(in srgb, var(--surface) 45%, transparent); stroke: color-mix(in srgb, var(--violet) 34%, var(--line)); stroke-width: 2; opacity: .54; }
.hero-layer-2 { opacity: .25; }
.hero-chain { fill: none; stroke: color-mix(in srgb, var(--violet) 58%, var(--text)); stroke-width: 5; stroke-linecap: round; }
.hero-proof { fill: color-mix(in srgb, var(--violet) 4%, var(--surface)); stroke: color-mix(in srgb, var(--violet) 72%, var(--text)); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hero-unicode { fill: color-mix(in srgb, var(--cyan) 70%, var(--text)); font: 800 18px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .hero-scene, .hero-visual { transition: none !important; } }

/* V1.5 image workflow */
.auto-analysis-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--surface) 78%, transparent); font-size: .72rem; }
.image-drop.is-batch { display: block; min-height: 0; padding: 12px; }
.image-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.image-gallery[hidden] { display: none; }
.image-thumb-card { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.image-thumb-card:hover { border-color: color-mix(in srgb, var(--violet) 46%, var(--line)); transform: translateY(-1px); }
.image-thumb-card.is-selected { border-color: color-mix(in srgb, var(--violet) 72%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 25%, transparent), 0 10px 24px rgba(0,0,0,.05); }
.image-thumb-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.image-thumb-footer { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; }
.image-thumb-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; color: var(--muted); }
.image-status-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 20px; padding: 2px 6px; border-radius: 999px; font-size: .58rem; font-weight: 800; letter-spacing: .03em; border: 1px solid var(--line); background: var(--surface-2); }
.image-status-badge.is-c2pa { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 42%, var(--line)); background: color-mix(in srgb, var(--violet) 8%, var(--surface)); }
.image-status-badge.is-metadata { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 46%, var(--line)); background: color-mix(in srgb, var(--amber) 8%, var(--surface)); }
.image-status-badge.is-clear { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 42%, var(--line)); background: color-mix(in srgb, var(--mint) 7%, var(--surface)); }
.image-status-badge.is-error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 42%, var(--line)); }
.image-status-badge.is-pending { color: var(--muted); }
.image-batch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--violet) 26%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--violet) 5%, var(--surface)); }
.image-batch-toolbar[hidden] { display: none; }
.image-batch-toolbar > div { min-width: 0; display: grid; gap: 3px; }
.image-batch-toolbar strong { font-size: .82rem; }
.image-batch-toolbar span { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.batch-audit-summary { display: grid; gap: 4px; margin-bottom: 12px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--violet) 28%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--violet) 5%, var(--surface)); }
.batch-audit-summary[hidden] { display: none; }
.batch-audit-summary strong { font-size: .8rem; }
.batch-audit-summary span { color: var(--muted); font-size: .69rem; line-height: 1.4; }
.selected-image-label { margin: 4px 0 9px; color: var(--muted); font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.image-loading-state { display: grid; place-items: center; gap: 9px; min-height: 260px; text-align: center; color: var(--muted); }
.image-loading-state[hidden] { display: none; }
.image-loading-state strong { color: var(--text); font-size: .9rem; }
.c2pa-explainer { margin-top: 10px; padding: 10px 11px; border-radius: 10px; background: color-mix(in srgb, var(--violet) 5%, var(--surface-2)); }
.c2pa-explainer a { color: var(--violet); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.integrity-copy { padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--mint) 45%, var(--line)); }
.provenance-status.is-error { border-left-color: var(--danger); color: var(--danger); }

@media (min-width: 720px) {
    .image-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
    .image-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}




/* V1.5.1 mobile navigation */
.mobile-menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; place-items: center; align-content: center; gap: 4px; position: relative; z-index: 82; }
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; transform-origin: center; }
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav-backdrop { position: fixed; inset: 0; z-index: 78; background: color-mix(in srgb, #000 35%, transparent); backdrop-filter: blur(3px); }
.mobile-nav { position: fixed; z-index: 80; top: 0; right: 0; width: min(360px, 88vw); height: 100dvh; padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -24px 0 64px rgba(15,23,42,.18); overflow-y: auto; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav-brand { display: flex; align-items: center; width: min(210px, calc(100% - 62px)); min-width: 0; text-decoration: none; }
.mobile-nav-logo { display: block; width: 100%; height: auto; object-fit: contain; object-position: left center; }
.mobile-nav-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mobile-nav-links { display: grid; gap: 6px; padding: 22px 0; }
.mobile-nav-links a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.mobile-nav-links a:hover, .mobile-nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--mode-accent, var(--cyan-strong)); }
.mobile-nav-secondary { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.mobile-nav-secondary a { padding: 9px 6px; color: var(--muted); text-decoration: none; font-size: .9rem; }
body.mobile-menu-open { overflow: hidden; }





/* V1.5.1 How it works */
.how-page { padding-bottom: 56px; }
.how-intro { padding-bottom: 18px; max-width: 980px; }
.how-intro h1 { max-width: none; }
.how-intro h2 { margin: 18px 0 0; font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: -.025em; }
.how-section { margin-top: 26px; display: grid; grid-template-columns: 90px minmax(0,1fr); gap: clamp(18px, 3vw, 34px); padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--surface) 95%, transparent); box-shadow: var(--shadow); }
.how-section-image { background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 4%, var(--surface)), var(--surface)); }
.how-section-privacy { background: linear-gradient(135deg, color-mix(in srgb, var(--mint) 4%, var(--surface)), var(--surface)); }
.how-icon { width: 88px; height: 88px; border: 1px solid var(--line); border-radius: 22px; display: grid; place-items: center; color: var(--cyan); background: var(--surface-2); }
.how-section-image .how-icon { color: var(--violet); }
.how-section-batch .how-icon { color: var(--cyan-strong); }
.how-icon svg { width: 78px; height: 78px; overflow: visible; }
.how-icon svg rect, .how-icon svg line, .how-icon svg circle, .how-icon svg path { fill: none; stroke: color-mix(in srgb, var(--muted) 45%, var(--line)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.how-icon svg .accent-dash { stroke: currentColor; stroke-dasharray: 2 4; }
.how-icon svg .accent-ring, .how-icon svg .accent-stroke, .how-icon svg .accent-rect { stroke: currentColor; }
.how-icon svg .accent-fill { fill: color-mix(in srgb, currentColor 10%, transparent); stroke: currentColor; }
.how-icon svg .muted-layer { stroke: color-mix(in srgb, var(--muted) 70%, var(--line)); }
.privacy-symbol { color: var(--mint); font-size: 2.25rem; font-weight: 800; }
.how-copy { min-width: 0; }
.how-copy > h2 { margin: 2px 0 12px; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.03em; }
.how-copy > p { margin: 0 0 14px; color: var(--muted); line-height: 1.72; }
.section-kicker { margin: 0 0 5px !important; color: var(--mode-accent, var(--cyan-strong)) !important; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.signal-list { margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; list-style: none; }
.signal-list li { position: relative; padding-left: 24px; color: var(--text); line-height: 1.55; }
.signal-list li::before { content: ''; position: absolute; left: 2px; top: .64em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 10%, transparent); }
.accuracy-note { margin: 20px 0; padding: 16px 18px; border-left: 3px solid var(--cyan); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--cyan) 5%, var(--surface-2)); }
.how-section-image .accuracy-note { border-left-color: var(--violet); }
.accuracy-note h3, .ecosystem-block h3 { margin: 0 0 8px; font-size: 1rem; }
.accuracy-note p { margin: 0; color: var(--muted); line-height: 1.6; }
.ecosystem-block { margin-top: 22px; }
.ecosystem-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ecosystem-group { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.ecosystem-group > strong { display: block; margin-bottom: 9px; font-size: .86rem; }
.model-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.model-chips span { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .76rem; line-height: 1.25; }
.image-generator-chips { margin-top: 14px; }
.how-limits { margin-top: 26px; }
.source-block { margin-top: 26px; padding: 22px; border-top: 1px solid var(--line); }
.source-block h2 { margin: 0 0 12px; font-size: 1rem; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; }
.source-links a { text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; font-size: .78rem; }
.source-links a:hover { color: var(--text); border-color: color-mix(in srgb, var(--cyan) 40%, var(--line)); }



.how-jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.how-jump-nav a { text-decoration: none; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; font-size: .82rem; }
.how-jump-nav a:hover, .how-jump-nav a:focus-visible { color: var(--text); border-color: color-mix(in srgb, var(--cyan) 42%, var(--line)); outline: none; }
.how-section { scroll-margin-top: 24px; }
.how-section-image .section-kicker { color: var(--violet) !important; }
.how-section-privacy .section-kicker { color: var(--mint) !important; }

/* V1.5.3 UX refinements */
.history-header-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action-row-primary-only { justify-content: flex-start; }
.action-row-primary-only .button-primary { min-width: 170px; }
.text-version-actions { display: flex; flex-wrap: wrap; gap: 10px; min-height: 24px; margin-top: 8px; }
.compact-result-actions { gap: 8px; }
.clean-all-button { min-height: 46px; font-weight: 800; }
.clean-all-note { margin: 8px 0 2px; }
.cleaned-output { margin: 12px 0 18px; padding: 14px; border: 1px solid color-mix(in srgb, var(--mint) 38%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--mint) 6%, var(--surface)); }
.cleaned-output > div:first-child { display: grid; gap: 4px; }
.cleaned-output strong { font-size: .88rem; }
.cleaned-output p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.cleaned-output-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.audit-skeleton { min-height: 310px; padding: 18px 2px; }
.audit-skeleton p { margin: 18px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; text-align: center; }
.skeleton-line, .skeleton-metrics span { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 20%, color-mix(in srgb, var(--line) 45%, var(--surface)) 50%, var(--surface-2) 80%); background-size: 220% 100%; animation: aa-skeleton 1.25s ease-in-out infinite; }
.skeleton-line { height: 16px; margin: 12px 0; }
.skeleton-line.skeleton-title { width: 58%; height: 22px; margin: 6px auto 22px; }
.skeleton-line.short { width: 66%; }
.skeleton-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.skeleton-metrics span { height: 58px; }
@keyframes aa-skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton-line, .skeleton-metrics span { animation: none; } }
.audit-notice { margin: 14px 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--danger) 36%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--danger) 5%, var(--surface)); color: var(--text); font-size: .78rem; line-height: 1.5; }
.option-hint { margin: -4px 0 10px 28px; }
.image-thumb-card { position: relative; }
.image-c2pa-dot { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 42%, var(--line)); box-shadow: 0 4px 12px rgba(15,23,42,.12); }
.image-c2pa-dot[hidden] { display: none; }
.image-c2pa-dot svg { width: 14px; height: 14px; }
.image-c2pa-dot circle { fill: var(--cyan); }
.image-audit-skeleton { padding-top: 36px; }

/* How it works: lighter reading rhythm */
html { scroll-behavior: smooth; }
.how-section { scroll-margin-top: 24px; grid-template-columns: 108px minmax(0,1fr); }
.how-icon { width: 104px; height: 104px; border-radius: 24px; }
.how-icon svg { width: 92px; height: 92px; }
.how-jump-nav a { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; }
.how-jump-nav a:hover, .how-jump-nav a:focus-visible { background: var(--surface-2); outline: none; }
.soft-intro { margin: 18px 0 8px !important; color: var(--text) !important; font-weight: 700; }
.ecosystem-grid { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); }
.ecosystem-group { padding: 12px; }
.model-chips span { min-height: 26px; padding: 3px 8px; font-size: .72rem; }
.ecosystem-note { margin-top: 14px; }
.image-ecosystem-grid { margin-top: 16px; }
.how-limits { padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line)); border-left: 4px solid var(--cyan); border-radius: 16px; background: color-mix(in srgb, var(--cyan) 6%, var(--surface)); }
.how-limits h2 { margin-top: 0; }


.mobile-nav-history { appearance: none; border: 0; background: transparent; padding: 9px 6px; color: var(--muted); text-align: left; font: inherit; font-size: .9rem; cursor: pointer; }
.mobile-nav-history:hover, .mobile-nav-history:focus-visible { color: var(--text); }


@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }




/* V1.5.3 image UX corrections */
[hidden] { display: none !important; }
.image-drop.has-files { min-height: 0; }
.image-drop.has-files:not(.is-batch) { background: color-mix(in srgb, var(--surface) 76%, var(--bg)); }
.image-drop.has-files:not(.is-batch) img { max-height: 430px; }
.image-drop.has-files.is-batch { padding: 10px; }

.image-c2pa-dot {
    top: 9px;
    right: 9px;
    width: auto;
    min-width: 58px;
    height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--cyan) 58%, var(--line));
    color: color-mix(in srgb, var(--cyan) 70%, var(--text));
    box-shadow: 0 5px 16px rgba(15,23,42,.12);
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .04em;
}
.image-c2pa-dot svg { width: 12px; height: 12px; flex: 0 0 auto; }
.image-c2pa-dot span { line-height: 1; }
.image-c2pa-dot circle { fill: var(--cyan); }

.image-clean-progress {
    margin: 14px 0 16px;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line));
    border-radius: 13px;
    background: color-mix(in srgb, var(--cyan) 5%, var(--surface));
}
.image-progress-head { display: flex; align-items: center; gap: 9px; }
.image-progress-head strong { font-size: .78rem; color: var(--text); }
.image-progress-track {
    position: relative;
    height: 7px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cyan) 11%, var(--surface-2));
}
.image-progress-track span {
    position: absolute;
    inset: 0 auto 0 -45%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--cyan), color-mix(in srgb, var(--mint) 70%, var(--cyan)), transparent);
    animation: aa-progress-sweep 1.15s ease-in-out infinite;
}
@keyframes aa-progress-sweep { 0% { transform: translateX(0); } 100% { transform: translateX(345%); } }
@media (prefers-reduced-motion: reduce) { .image-progress-track span { animation: none; left: 0; width: 100%; opacity: .75; } }

.image-result-actions { align-items: stretch; }
.image-result-actions .image-clean-primary { flex: 1 1 100%; min-height: 48px; font-size: .82rem; }
.image-result-actions .report-button { flex: 1 1 calc(50% - 5px); min-height: 40px; font-size: .72rem; }
.image-result-actions svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-inspector-mode="image"] #imageMode .image-clean-primary,
body[data-inspector-mode="image"] #imageMode .image-batch-toolbar .button-primary {
    background: linear-gradient(135deg, var(--cyan), color-mix(in srgb, var(--mint) 48%, var(--cyan)));
    color: #031318;
    border-color: transparent;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--cyan) 16%, transparent);
}
body[data-inspector-mode="image"] #imageMode .image-clean-primary:hover,
body[data-inspector-mode="image"] #imageMode .image-batch-toolbar .button-primary:hover {
    filter: brightness(.98) saturate(1.05);
}
body[data-inspector-mode="image"] #imageMode .audit-panel,
body[data-inspector-mode="image"] #imageMode .input-panel {
    background: color-mix(in srgb, var(--surface) 96%, var(--violet) 4%);
}





/* V1.5.3 final: factual trust markers and project changelog */
.footer-version-link { color: var(--muted); text-decoration: none; }
.footer-version-link:hover, .footer-version-link:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.changelog-hero { max-width: 900px; }
.changelog-page { position: relative; display: grid; gap: 18px; max-width: 1000px; padding: 4px 0 62px; }
.changelog-page::before { content: ""; position: absolute; z-index: 0; top: 25px; bottom: 25px; left: 25px; width: 1px; background: linear-gradient(to bottom, color-mix(in srgb, var(--cyan) 16%, var(--line)), color-mix(in srgb, var(--cyan) 46%, var(--line))); }
.timeline-item { position: relative; z-index: 1; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }
.story-marker { position: relative; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--cyan) 32%, var(--line)); box-shadow: 0 0 0 6px var(--bg); color: var(--cyan); font-size: .7rem; font-weight: 900; letter-spacing: .02em; }
.story-marker-current { border-color: color-mix(in srgb, var(--cyan) 58%, var(--line)); background: color-mix(in srgb, var(--cyan) 9%, var(--surface)); color: var(--cyan); }
.timeline-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.timeline-card.is-current { border-color: color-mix(in srgb, var(--cyan) 62%, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--cyan) 6%, var(--surface)), var(--surface)); box-shadow: 0 18px 46px color-mix(in srgb, var(--cyan) 11%, transparent), var(--shadow); }
.timeline-card h2 { margin: 3px 0 10px; color: var(--text); font-size: clamp(1.25rem, 3vw, 1.65rem); }
.timeline-card > p:not(.section-kicker), .timeline-card li { color: var(--muted); line-height: 1.72; }
.timeline-card .section-kicker { color: var(--cyan); letter-spacing: .11em; text-transform: uppercase; }
.version-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.version-card-head > span { flex: 0 0 auto; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--mint) 32%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--mint) 8%, var(--surface)); color: var(--mint); font-size: .72rem; font-weight: 850; }
.version-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.version-list li { position: relative; padding-left: 24px; }
.version-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--mint); font-weight: 900; }

@media (min-width: 700px) {
    .changelog-page { gap: 22px; }
    .changelog-page::before { top: 32px; bottom: 32px; left: 31.5px; }
    .timeline-item { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
    .story-marker { width: 64px; height: 64px; border-radius: 18px; font-size: .78rem; box-shadow: 0 0 0 8px var(--bg); }
    .timeline-card { padding: 26px 28px; border-radius: 22px; }
}

/* V1.5.3 mobile production hotfix: mobile-first structural baseline.
   Small screens are the default; only min-width queries enhance tablet/desktop. */
html { width: 100%; min-width: 0; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { width: 100%; min-width: 0; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
main, section, article, aside, header, footer, nav, .site-shell, .workspace, .panel, .input-panel, .audit-panel, .hero-content, .hero-visual { min-width: 0; }
.site-shell { width: 100%; max-width: 1440px; padding-inline: 14px; }
.site-header { gap: 8px; min-height: 70px; }
.brand { width: min(166px, 43vw); min-width: 0; }
.header-tools { gap: 5px; }
.icon-button, .language-menu summary { min-width: 40px; min-height: 40px; }
.hero { padding-top: 42px; }
.hero-v14 { padding-top: 38px; }
.hero-visual { min-height: 210px; }
.hero-illustration { max-width: 390px; }
.input-panel, .audit-panel { padding: 14px; }
.action-row .button, .result-actions .button { flex: 1 1 100%; }
.editor-paste { min-height: 38px; }
.site-footer { align-items: flex-start; padding: 18px 0; }
.koperateur-signature { line-height: 1.55; }
.mode-tabs { grid-template-columns: 1fr; }
.mode-tab { min-height: 62px; }
.sticky-results-actions { position: static; }
.occurrence-row, .history-row { align-items: flex-start; flex-direction: column; }
.occurrence-actions { justify-content: flex-start; }
.image-facts, .metadata-grid { grid-template-columns: 1fr; }
.image-drop { min-height: 280px; }
.image-batch-toolbar { align-items: stretch; flex-direction: column; }
.image-batch-toolbar .button { width: 100%; }
.image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-menu-toggle { display: grid; }
.history-header-button { display: none; }
.how-section { grid-template-columns: 1fr; padding: 20px; border-radius: 18px; }
.how-icon { width: 84px; height: 84px; border-radius: 18px; }
.how-icon svg { width: 74px; height: 74px; }
.ecosystem-grid { grid-template-columns: 1fr; gap: 8px; }
.ecosystem-group { padding: 9px; }
.ecosystem-group h3 { font-size: .78rem; }
.model-chips { gap: 5px; }
.model-chips span { min-height: 24px; padding: 2px 6px; font-size: .67rem; }
.cleaned-output-actions .button { flex: 1 1 100%; }
.image-drop.has-files:not(.is-batch) img { max-height: 320px; }
.image-result-actions .report-button { flex-basis: 100%; }
.story-card { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
.story-marker { width: 54px; height: 54px; border-radius: 15px; }
.version-card { padding: 20px; }
.version-card-head { align-items: flex-start; }

@media (max-width: 359px) {
    .hero-trust-row { grid-template-columns: 1fr; }
    .trust-item { min-height: 0; }
}

@media (min-width: 431px) {
    .brand { width: min(178px, 46vw); }
    .header-tools { gap: 6px; }
    .ecosystem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 521px) {
    .site-shell { padding-inline: 18px; }
    .site-header { gap: 14px; min-height: 74px; }
    .brand { width: 200px; }
    .hero { padding-top: 52px; }
    .input-panel, .audit-panel { padding: 18px; }
    .action-row .button, .result-actions .button { flex: 0 0 auto; }
    .site-footer { align-items: center; padding: 0; }
}

@media (min-width: 621px) {
    .mode-tabs { grid-template-columns: 1fr 1fr; }
    .mode-tab { min-height: 72px; }
    .occurrence-row, .history-row { align-items: center; flex-direction: row; }
    .image-facts, .metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .image-drop { min-height: 360px; }
    .image-batch-toolbar { align-items: center; flex-direction: row; }
    .image-batch-toolbar .button { width: auto; }
    .image-result-actions .report-button { flex-basis: calc(50% - 5px); }
    .story-card { grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 24px; }
    .story-marker { width: 64px; height: 64px; border-radius: 18px; }
    .version-card { padding: 24px; }
}

@media (min-width: 701px) {
    .how-section { grid-template-columns: 108px minmax(0, 1fr); padding: clamp(20px, 4vw, 34px); border-radius: 24px; }
    .how-icon { width: 104px; height: 104px; border-radius: 24px; }
    .how-icon svg { width: 92px; height: 92px; }
    .ecosystem-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

@media (min-width: 760px) {
    .hero-trust-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
    .trust-item { min-height: 52px; padding: 11px 12px; font-size: .8rem; }
    .site-shell { padding-inline: 30px; }
    .site-header { gap: 24px; min-height: 78px; }
    .brand { width: 220px; }
    .main-nav { display: flex; }
    .mobile-menu-toggle { display: none; }
    .history-header-button { display: grid; }
    .hero { grid-template-columns: 1fr auto; align-items: end; padding-top: 78px; }
    .hero-v14 { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: center; }
    .hero-visual { min-height: 300px; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .site-shell { padding-inline: 48px; }
    .workspace { grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr); align-items: start; gap: 16px; }
    .input-panel, .audit-panel { padding: 22px; }
    .audit-panel { position: sticky; top: 16px; }
    .method-grid { grid-template-columns: repeat(4, 1fr); }
    .sticky-results-actions { position: sticky; top: 8px; }
}

@media (min-width: 1180px) {
    .image-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}



/* V1.5.3 text/BIDI hotfix */
.revealed-text { direction: ltr; unicode-bidi: isolate; }
.mark.bidi-token { direction: ltr; unicode-bidi: isolate; }
.replace-original-action { border-color: color-mix(in srgb, var(--cyan) 42%, var(--line)); }
.audit-success { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 14px 0 4px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--mint) 48%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--mint) 8%, var(--surface)); }
.audit-success[hidden] { display: none; }
.audit-success-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--mint) 14%, var(--surface)); color: var(--mint); }
.audit-success-icon svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.audit-success strong { display: block; margin-bottom: 3px; font-size: .84rem; }
.audit-success p, .output-block-heading p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.output-block { margin: 12px 0; padding: 14px; border-radius: 14px; }
.output-block-heading { display: grid; gap: 4px; }
.output-block-heading strong { font-size: .84rem; }
.cleaned-output.output-block { border-color: color-mix(in srgb, var(--mint) 42%, var(--line)); }
.diagnostic-output { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, var(--bg)); }
.diagnostic-output-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.diagnostic-output-actions .report-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 100%; }
.diagnostic-output-actions svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 521px) {
    .diagnostic-output-actions .report-button { flex: 0 0 auto; }
}


/* V1.5.3 support + local archive UX */
.history-dialog { width: min(760px, calc(100% - 24px)); padding: 0; overflow: hidden; }
.history-dialog-shell { display: grid; gap: 0; }
.history-dialog-head { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 13px; align-items: start; padding: 20px 20px 17px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, color-mix(in srgb, var(--cyan) 7%, var(--surface)), var(--surface)); }
.history-dialog-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--cyan) 34%, var(--line)); }
.history-dialog-icon svg, .history-local-badge svg, .button-support svg, .footer-meta-inline svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.history-dialog-heading { min-width: 0; }
.history-dialog-heading h2 { margin: 2px 0 6px; font-size: clamp(1.05rem, 3.4vw, 1.35rem); line-height: 1.24; }
.history-dialog-heading > p:last-child { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.58; }
.history-kicker { margin: 0; color: var(--cyan); font-size: .67rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.history-dialog-close { align-self: start; }
.history-dialog-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 20px; background: color-mix(in srgb, var(--surface-2) 76%, transparent); border-bottom: 1px solid var(--line); }
.history-count { color: var(--text); font-size: .77rem; font-weight: 800; }
.history-local-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; }
.history-list { max-height: min(410px, 48vh); gap: 10px; padding: 14px 20px; }
.history-row.history-archive-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 13px; border-radius: 15px; background: color-mix(in srgb, var(--surface-2) 88%, var(--surface)); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.history-row.history-archive-card:hover { border-color: color-mix(in srgb, var(--cyan) 34%, var(--line)); box-shadow: 0 10px 26px color-mix(in srgb, var(--cyan) 7%, transparent); }
.history-archive-marker { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--cyan) 9%, var(--surface)); color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 26%, var(--line)); font-size: .67rem; font-weight: 900; letter-spacing: .03em; }
.history-archive-content { min-width: 0; }
.history-row .history-archive-content > strong { font-size: .82rem; line-height: 1.45; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.history-archive-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; color: var(--muted); font-size: .66rem; }
.history-archive-meta span:not(:first-child)::before { content: "·"; margin-right: 8px; color: color-mix(in srgb, var(--muted) 60%, transparent); }
.history-archive-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 7px; }
.history-empty { display: grid; place-items: center; gap: 7px; padding: 34px 18px; text-align: center; border: 1px dashed color-mix(in srgb, var(--cyan) 28%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--cyan) 3%, var(--surface)); }
.history-empty-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--cyan) 9%, var(--surface)); color: var(--cyan); font-size: 1.2rem; }
.history-empty strong { font-size: .9rem; }
.history-empty p { max-width: 440px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.history-privacy-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 20px 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--mint) 7%, var(--surface)); color: var(--muted); font-size: .71rem; }
.history-privacy-note > span { color: var(--mint); font-weight: 900; }
.history-privacy-note p { margin: 0; line-height: 1.55; }
.history-support-card { display: grid; gap: 12px; padding: 16px 20px 19px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--violet) 4%, var(--surface)); }
.history-support-card strong { font-size: .83rem; }
.history-support-card p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.button-support { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; border-color: color-mix(in srgb, var(--cyan) 38%, var(--line)); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); color: var(--text); text-decoration: none; }
.button-support:hover, .button-support:focus-visible { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 16%, var(--surface)); }
.content-support-callout { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px 14px; align-items: center; margin: 8px 0 56px; padding: 17px; border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line)); border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--cyan) 5%, var(--surface)), var(--surface)); }
.content-support-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); }
.content-support-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.content-support-copy { min-width: 0; }
.content-support-copy strong { font-size: .93rem; }
.content-support-copy p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.content-support-callout .button { grid-column: 1 / -1; width: 100%; }
.footer-meta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; min-width: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.footer-meta-inline a { color: var(--muted); text-decoration: none; }
.footer-meta-inline a:hover, .footer-meta-inline a:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-brand-link { font-weight: 500; }
.footer-version-text { white-space: nowrap; }
.footer-meta-sep { color: color-mix(in srgb, var(--muted) 46%, transparent); user-select: none; }
.footer-meta-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.footer-meta-link svg { width: 13px; height: 13px; flex: 0 0 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-meta-inline .footer-support-link { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
@media (min-width: 621px) {
    .history-row.history-archive-card { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; padding: 13px 14px; }
    .history-archive-marker { width: 40px; height: 40px; }
    .history-archive-actions { grid-column: auto; justify-content: flex-end; }
    .history-support-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .content-support-callout { grid-template-columns: 50px minmax(0, 1fr) auto; padding: 20px; }
    .content-support-callout .button { grid-column: auto; width: auto; }
}
