        a { color: var(--brand-ink); }
        h1 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; }
        h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 28px; margin-bottom: 12px; }
        p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; }
        dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; margin-top: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
        dt { color: var(--ink-3); font-weight: 700; font-size: .88rem; }
        dd { margin: 0; font-size: .9rem; }
        code { background: var(--paper-2); border-radius: var(--radius); padding: 2px 6px; font-size: .85rem; word-break: break-all; }
        .section { margin-top: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
        .badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .78rem; font-weight: 600; }
        .badge-ok { background: var(--ok-soft); color: var(--ok); }
        .badge-fail { background: var(--danger-soft); color: var(--danger); }
        .badge-warn { background: var(--warn-soft); color: var(--warn); }
        .badge-info { background: var(--info-soft); color: var(--info); }
        .badge-preview { background: var(--paper-2); color: var(--ink-3); }
        .download-link { display: inline-block; margin-top: 8px; padding: 8px 20px; background: var(--brand); color: #fff; text-decoration: none; border-radius: var(--radius); font-size: .9rem; }
        .download-link:hover { background: var(--brand-ink); }
        .download-link-sm { display: inline-block; padding: 4px 12px; background: var(--brand); color: #fff; text-decoration: none; border-radius: var(--radius); font-size: .82rem; }
        .download-link-sm:hover { background: var(--brand-ink); }
        table { width: 100%; border-collapse: collapse; font-size: .88rem; }
        th { background: var(--paper-2); text-align: left; padding: 8px 12px; color: var(--ink-2); font-weight: 700; font-size: .82rem; }
        td { padding: 8px 12px; border-top: 1px solid var(--paper-2); }
        .muted { color: var(--ink-4); font-size: .82rem; }
        .file-size { font-size: .82rem; color: var(--ink-3); }
        .result-badge { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: .75rem; font-weight: 600; }
        .result-badge-ok { background: var(--ok-soft); color: var(--ok); }
        .result-badge-fail { background: var(--danger-soft); color: var(--danger); }
        .result-badge-warn { background: var(--warn-soft); color: var(--warn); }
        .actions { margin-top: 16px; }
        .preview-img { max-width: 100%; max-height: 400px; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 8px; cursor: zoom-in; }
        .preview-img-full { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 8px; }
        .preview-text { max-height: 300px; overflow-y: auto; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-top: 8px; font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
        .preview-text-full { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-top: 8px; font-size: .82rem; white-space: pre-wrap; word-break: break-all; }
        .preview-embed { width: 100%; height: 500px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px; }
        .metadata-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 8px; font-size: .85rem; }
        .metadata-grid dt { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
        .metadata-grid dd { margin: 0; word-break: break-word; }
        .toggle-preview { color: var(--brand-ink); cursor: pointer; font-size: .82rem; text-decoration: underline; text-underline-offset: 2px; }
        .exif-table { width: 100%; margin-top: 8px; }
        .output-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 10px; }
        .ws-act-btn { display:inline-block; padding:2px 8px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink-3); font-size:.7rem; cursor:pointer; text-decoration:none; white-space:nowrap; }
        .ws-act-btn:hover { border-color:var(--brand-ink); color:var(--brand-ink); }
        .ws-act-btn.kept { background:var(--brand-soft); border-color:var(--brand); color:var(--brand-ink); }
        .ws-act-btn.fav-file-btn { background:#fef3c7; border-color:var(--favorite); color:#92400e; }
        .ws-act-btn.fav-file-btn.active { background:var(--favorite); color:#fff; }
        .persistence-notice { font-size:.76rem; color:var(--ink-4); padding:6px 12px; background:var(--paper-2); border:1px solid var(--paper-2); border-radius:var(--radius); margin-top:10px; }
        .output-gallery-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s; }
        .output-gallery-item:hover { border-color: var(--brand-ink); }
        .output-gallery-item .ogi-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-bottom: 1px solid var(--paper-2); cursor: pointer; }
        .output-gallery-item .ogi-body { padding: 8px 10px; }
        .output-gallery-item .ogi-name { font-size: .78rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .output-gallery-item .ogi-size { font-size: .72rem; color: var(--ink-3); }
        .output-gallery-item .ogi-actions { display: flex; gap: 4px; margin-top: 4px; }
        .output-gallery-item .ogi-dl { flex: 1; padding: 3px 0; background: var(--brand); color: #fff; text-decoration: none; border-radius: 4px; font-size: .72rem; text-align: center; }
        .output-gallery-item .ogi-dl:hover { background: var(--brand-ink); }
        .output-gallery-item .ogi-preview { padding: 3px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font-size: .72rem; color: var(--ink-3); cursor: pointer; }
        .output-gallery-item .ogi-preview:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
        .file-label { display: flex; align-items: center; gap: 8px; }
        .img-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
        /* Session context */
        .session-ctx { margin-top: 20px; padding: 14px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: .85rem; }
        .session-ctx .sc-title { font-weight: 600; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
        .session-ctx .sc-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--paper-2); font-size: .82rem; }
        .session-ctx .sc-item:last-child { border-bottom: none; }
        .session-ctx .sc-item .sc-tool { font-weight: 500; color: var(--ink); }
        .session-ctx .sc-item .sc-time { color: var(--ink-4); font-size: .74rem; white-space: nowrap; }
        .session-ctx .sc-item a { color: var(--brand-ink); text-decoration: none; }
        .session-ctx .sc-item a:hover { text-decoration: underline; }
        .job-hero { display: grid; gap: 12px; }
        .job-hero-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .job-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
        .job-summary-strip { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:10px 14px; background:var(--surface); border:1px solid var(--line); border-radius:12px; font-size:.84rem; }
        .job-summary-strip strong { color: var(--ink); }
        .status-explanation { font-size:.9rem; padding:6px 0; color:var(--ink-2); line-height:1.5; }
        .recovery-block { margin-top:12px; padding:14px 18px; border-radius:12px; font-size:.85rem; }
        .recovery-block.error { background:var(--danger-soft); border:1px solid var(--danger); }
        .recovery-block.warning { background:var(--warn-soft); border:1px solid var(--warn); }
        .recovery-block.success { background:var(--ok-soft); border:1px solid var(--ok); }
        .recovery-block.info { background:var(--info-soft); border:1px solid var(--info); }
        .recovery-action { display:inline-flex; align-items:center; gap:4px; padding:6px 14px; border-radius:8px; font-size:.84rem; font-weight:600; text-decoration:none; white-space:nowrap; }
        .recovery-action:hover { text-decoration:underline; }
        @media (max-width: 820px) {
            .section { padding: 14px; }
            .actions { flex-direction: column; gap: 8px; }
            .actions a, .actions button { width: 100%; text-align: center; margin-left: 0 !important; }
            dl { grid-template-columns: 1fr; gap: 6px; padding: 14px; }
            dt { font-size: .78rem; }
            dd { font-size: .84rem; }
            table { font-size: .82rem; }
            th, td { padding: 6px 8px; }
            .output-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .preview-embed { height: 300px; }
            .persistence-notice { flex-direction: column; align-items: flex-start; gap: 6px; }
            .job-summary-strip { flex-direction: column; align-items: flex-start; gap: 6px; }
            .job-hero-actions { flex-direction: column; align-items: stretch; }
            .job-hero-actions a { text-align: center; }
        }
        @media (max-width: 540px) {
            h1 { font-size: 1.3rem; }
            .section h2 { font-size: .82rem; }
            .output-gallery { grid-template-columns: 1fr; gap: 8px; }
            .exif-table { font-size: .78rem; }
            .preview-embed { height: 220px; }
            .metadata-grid { grid-template-columns: 1fr; gap: 4px; }
            .toggle-preview { font-size: .76rem; }
            .persistence-notice a { display: block; }
            .recovery-block { padding: 10px 12px; }
            .recovery-action { width: 100%; justify-content: center; }
            .section { padding: 10px; }
            .actions .download-link { padding: 8px 16px; font-size: .84rem; }
            .download-link-sm { padding: 6px 10px; font-size: .76rem; }
            .img-thumb { width: 30px; height: 30px; }
            .job-hero-top { flex-direction: column; align-items: flex-start; gap: 4px; }
            .job-hero-top .badge { font-size: .72rem; }
        }
