html { font-size: 16px; -webkit-font-smoothing: antialiased; }
    body { background: var(--bg); color: var(--text); font-family: 'Barlow', sans-serif; font-weight: 400; line-height: 1.6; min-height: 100vh; min-height: 100dvh; overflow-x: clip; position: relative; }
    body::before { content: ''; position: fixed; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-repeat: repeat; background-size: 256px; pointer-events: none; z-index: 1; }
    body::after { content: ''; position: fixed; top: 30%; left: 50%; transform: translate(-50%,-50%); width: 900px; height: 600px; background: radial-gradient(ellipse, var(--arc-glow-subtle) 0%, transparent 70%); pointer-events: none; z-index: 0; }
    .page { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px; }
    .breadcrumb { margin-top: 24px; font-size: 0.95rem; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; opacity: 0; animation: fadeIn 0.8s ease 0.1s forwards; }
    .breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
    .breadcrumb a:hover { color: var(--arc); }
    .breadcrumb span { color: var(--text-dim); margin: 0 6px; }
    .hero { padding: 48px 0 32px; opacity: 0; animation: slideUp 0.8s ease 0.15s forwards; }
    .hero__label { font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--arc); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
    h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.8rem,4.5vw,2.6rem); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 16px; }
    .hero__sub { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-width: 580px; }
    .arc-line { position: relative; height: 2px; margin: 32px 0; background: linear-gradient(90deg, transparent 0%, var(--arc) 30%, var(--arc-hot) 50%, var(--arc) 70%, transparent 100%); opacity: 0; animation: arcIgnite 1.2s ease 0.4s forwards; overflow: visible; }
    .arc-line::before { content: ''; position: absolute; inset: -8px 0; background: linear-gradient(90deg, transparent 0%, var(--arc-glow) 30%, rgba(255,140,0,0.2) 50%, var(--arc-glow) 70%, transparent 100%); filter: blur(8px); animation: arcPulse 3s ease-in-out infinite; }
    .arc-line::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 12px var(--arc), 0 0 24px var(--arc-hot), 0 0 48px var(--arc-glow-strong); animation: arcCenter 3s ease-in-out infinite; }

    h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; margin: 40px 0 16px; }
    p { color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
    strong { color: var(--text); font-weight: 600; }

    /* Upload dropzone */
    .dropzone { border: 2px dashed var(--border-subtle); border-radius: 12px; padding: 48px 24px; text-align: center; cursor: pointer; transition: border-color 0.3s, background 0.3s; position: relative; }
    .dropzone:hover, .dropzone.dragover { border-color: var(--arc); background: rgba(255,140,0,0.03); }
    .dropzone__icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
    .dropzone__text { color: var(--text-muted); font-size: 1rem; margin-bottom: 8px; }
    .dropzone__hint { color: var(--text-dim); font-size: 0.85rem; }
    .dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
    .dropzone.uploading { pointer-events: none; opacity: 0.6; }

    /* Progress area */
    .progress-area { display: none; margin: 24px 0; padding: 20px; border: 1px solid var(--border-subtle); border-radius: 8px; background: rgba(255,255,255,0.02); }
    .progress-area.active { display: block; }
    .progress-item { padding: 6px 0; color: var(--text-muted); font-size: 0.9rem; font-family: 'IBM Plex Mono', monospace; }
    .progress-item::before { content: '\25B8'; color: var(--arc); margin-right: 8px; }
    .progress-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border-subtle); border-top-color: var(--arc); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 8px; vertical-align: middle; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Results area */
    .results-area { display: none; margin: 24px 0; }
    .results-area.active { display: block; }

    /* Summary banner */
    .summary-banner { padding: 20px; border-radius: 8px; margin-bottom: 24px; }
    .summary-banner.pass { border: 1px solid #22c55e40; background: #22c55e0a; }
    .summary-banner.fail { border: 1px solid #ef444440; background: #ef44440a; }
    .summary-banner.unknown { border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.02); }
    .summary-banner__status { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
    .summary-banner__text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

    /* View tabs */
    .view-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
    .view-tab { padding: 10px 20px; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--text-dim); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s; }
    .view-tab:hover { color: var(--text-muted); }
    .view-tab.active { color: var(--arc); border-bottom-color: var(--arc); }
    .view-panel { display: none; }
    .view-panel.active { display: block; }

    /* Symbol cards */
    .symbol-card { border: 1px solid var(--border-subtle); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
    .symbol-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .symbol-card__name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; }
    .symbol-card__detail { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
    .symbol-card__clause { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; }

    /* Confidence badges — colorblind-safe with icons (U7/NFR-A13) */
    .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 4px; font-size: 0.82rem; font-weight: 600; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }
    .badge--high { background: #22c55e20; color: #22c55e; }
    .badge--high::before { content: '\2713'; }
    .badge--medium { background: #eab30820; color: #eab308; }
    .badge--medium::before { content: '\26A0'; }
    .badge--low { background: #ef444420; color: #ef4444; }
    .badge--low::before { content: '\2717'; }
    .badge--prequalified { background: #22c55e15; color: #22c55e; border: 1px solid #22c55e40; }
    .badge--not-prequalified { background: #ef444415; color: #ef4444; border: 1px solid #ef444440; }

    /* Finding cards */
    .finding-card { border-left: 3px solid var(--border-subtle); padding: 12px 16px; margin-bottom: 12px; }
    .finding-card.critical { border-left-color: #ef4444; }
    .finding-card.warning { border-left-color: #eab308; }
    .finding-card.info { border-left-color: #3b82f6; }
    .finding-card__severity { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
    .finding-card.critical .finding-card__severity { color: #ef4444; }
    .finding-card.warning .finding-card__severity { color: #eab308; }
    .finding-card.info .finding-card__severity { color: #3b82f6; }
    /* Per-joint coded compliance verdicts (Joint Compliance section) */
    .finding-card.fail { border-left-color: #ef4444; }
    .finding-card.flag, .finding-card.requires_confirmation { border-left-color: #eab308; }
    .finding-card.pass { border-left-color: #22c55e; }
    .finding-card.fail .finding-card__severity { color: #ef4444; }
    .finding-card.flag .finding-card__severity,
    .finding-card.requires_confirmation .finding-card__severity { color: #eab308; }
    .finding-card.pass .finding-card__severity { color: #22c55e; }
    .finding-card__text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
    .finding-card__clause { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--text-dim); margin-top: 4px; }

    /* Feedback bar */
    .feedback-bar { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--border-subtle); border-radius: 8px; }
    .feedback-bar__label { color: var(--text-muted); font-size: 0.9rem; }
    .feedback-btn { padding: 6px 16px; border: 1px solid var(--border-subtle); border-radius: 4px; background: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; transition: border-color 0.3s, color 0.3s; min-height: 44px; min-width: 44px; }
    .feedback-btn:hover { border-color: var(--arc); color: var(--arc); }
    .feedback-btn.selected { border-color: var(--arc); color: var(--arc); background: rgba(255,140,0,0.05); }

    /* Stats row */
    .stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
    .stat { padding: 8px 12px; border: 1px solid var(--border-subtle); border-radius: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; }
    .stat__value { color: var(--arc); font-weight: 600; }
    .stat__label { color: var(--text-dim); margin-left: 6px; }

    /* Copy results button */
    .result-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
    .copy-btn { padding: 8px 16px; border: 1px solid var(--border-subtle); border-radius: 6px; background: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; font-family: 'IBM Plex Mono', monospace; transition: border-color 0.3s, color 0.3s; min-height: 44px; }
    .copy-btn:hover { border-color: var(--arc); color: var(--arc); }

    .stamp-tool, .stamp-shared-mount { margin-top: 18px; }
    .stamp-status { color: var(--text-muted); font-size: 0.9rem; margin: 10px 0; }
    .stamp-status:not(:empty) { padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 6px; background: rgba(255,255,255,0.02); }
    .stamp-card { width: 100%; border: 1px solid var(--border-subtle); border-radius: 8px; padding: 14px; background: #fff; color: #111; overflow-x: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
    .stamp-card svg { display: block; width: 100%; max-width: 720px; height: auto; background: #fff; color: #111; }
    .stamp-card__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

    .prebid-panel { margin-top: 20px; padding: 18px; border: 1px solid var(--border-subtle); border-radius: 8px; background: rgba(255,255,255,0.025); }
    .prebid-panel[hidden] { display: none; }
    .prebid-panel h2 { margin: 0 0 14px; font-size: 1.15rem; }
    .prebid-section { padding: 14px 0; border-top: 1px solid var(--border-subtle); }
    .prebid-section h3 { font-family: 'Syne', sans-serif; font-size: 0.98rem; margin: 0 0 8px; color: var(--text); }
    .prebid-line { margin: 0 0 6px; font-size: 0.9rem; color: var(--text-muted); }
    .prebid-list { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
    .prebid-error { margin: 0; color: #ef4444; font-size: 0.95rem; }

    .inspector-cta { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .inspector-cta[hidden] { display: none; }

    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    .sparks { position: absolute; left: 50%; top: 0; width: 200px; transform: translateX(-50%); pointer-events: none; }
    .spark { position: absolute; width: 2px; height: 2px; background: var(--arc); border-radius: 50%; opacity: 0; animation: sparkFloat var(--duration) ease-out var(--delay) infinite; }
    @keyframes sparkFloat { 0% { opacity: 0.9; transform: translate(var(--x), 0) scale(1); } 100% { opacity: 0; transform: translate(calc(var(--x) + var(--drift)), -60px) scale(0); } }
    @keyframes arcIgnite { 0% { opacity: 0; transform: scaleX(0); } 60% { opacity: 1; transform: scaleX(1.02); } 100% { opacity: 1; transform: scaleX(1); } }
    @keyframes arcPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
    @keyframes arcCenter { 0%, 100% { box-shadow: 0 0 12px var(--arc), 0 0 24px var(--arc-hot), 0 0 48px var(--arc-glow-strong); } 50% { box-shadow: 0 0 16px var(--arc), 0 0 32px var(--arc-hot), 0 0 64px rgba(255,182,39,0.4); } }
    @media (max-width: 600px) {
      .page { padding-inline: 1.25rem; }
      .dropzone { padding: 32px 16px; }
      .stats-row { flex-direction: column; }
      .view-tab { padding: 10px 12px; font-size: 0.82rem; }
    }
    @media (prefers-reduced-motion: reduce) {
      nav, .breadcrumb, .hero, .arc-line { opacity: 1 !important; transform: none !important; animation: none !important; }
    }
    @media print {
      body::before, body::after { display: none !important; }
      body { background: #fff; color: #000; }
      .page { max-width: 100%; }
      .dropzone, .feedback-bar, .progress-area { display: none !important; }
      body.stamp-printing * { visibility: hidden !important; }
      body.stamp-printing .stamp-card,
      body.stamp-printing .stamp-card * { visibility: visible !important; }
      body.stamp-printing .stamp-card { position: fixed; inset: 0 auto auto 0; width: 100%; max-width: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; background: #fff; overflow: visible; }
      body.stamp-printing .stamp-card svg { max-width: none; width: 100%; }
      body.stamp-printing .stamp-card__actions { display: none !important; }
    }
    a { color: var(--arc); text-decoration: none; }

    /* ── T6: read-only drawing preview + numbered joint markers ── */
    .drawing-preview { margin: 24px 0; }
    .drawing-preview__stage { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; background: #fff; line-height: 0; }
    .drawing-preview__img, .drawing-preview__canvas { display: block; max-width: 100%; height: auto; }
    .marker-layer { position: absolute; inset: 0; pointer-events: none; --marker-hit: 44px; }
    .marker { position: absolute; transform: translate(-50%, -50%); min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; border: 2px solid #fff; color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; font-weight: 700; line-height: 20px; text-align: center; cursor: pointer; pointer-events: auto; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
    .marker:hover, .marker:focus-visible { outline: 2px solid var(--arc); outline-offset: 1px; }
    .marker--pass { background: #22c55e; }
    .marker--fail { background: #ef4444; }
    .marker--flag { background: #f59e0b; }
    .marker--confirm { background: #9ca3af; }
    .marker--user-added { border-style: dashed; border-color: var(--arc); }
    .marker::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: var(--marker-hit); height: var(--marker-hit); border-radius: 50%; }
    .marker-popover { position: absolute; transform: translate(-50%, calc(-100% - 8px)); pointer-events: auto; background: var(--surface, #14141a); border: 1px solid var(--arc); border-radius: 8px; padding: 8px; min-width: 180px; max-width: 260px; z-index: 5; box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
    .marker-popover__item { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-size: 0.82rem; padding: 6px 8px; cursor: pointer; border-radius: 4px; }
    .marker-popover__item:hover, .marker-popover__item:focus-visible { background: rgba(255,182,39,0.12); outline: 1px solid var(--arc); }
    .drawing-preview__hint { color: var(--text-muted); font-size: 0.82rem; margin: 10px 0 0; }
    /* Story 4.8 correction UI */
    .correction-banner { background: rgba(255,182,39,0.1); border: 1px solid var(--arc); border-radius: 6px; padding: 10px 12px; margin: 0 0 14px; font-size: 0.86rem; color: var(--text); }
    .removal-disclosure { display: flex; align-items: center; gap: 12px; background: rgba(240,237,232,0.06); border: 1px solid var(--text-muted); border-radius: 6px; padding: 8px 12px; margin: 0 0 12px; font-size: 0.84rem; color: var(--text); }
    .joint-compliance-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .correction-add-btn { background: none; border: 1px solid var(--arc); color: var(--arc); border-radius: 6px; padding: 5px 12px; font-size: 0.82rem; cursor: pointer; }
    .correction-add-btn:hover, .correction-add-btn:focus-visible { background: rgba(255,182,39,0.12); outline: 1px solid var(--arc); }
    .correction-chip { display: inline-block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 10px; background: rgba(255,182,39,0.16); color: var(--arc); margin-left: 6px; vertical-align: middle; }
    .correction-actions { display: flex; gap: 14px; margin-top: 8px; }
    .correction-link { background: none; border: 0; color: var(--arc); font-size: 0.8rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
    .correction-link:hover, .correction-link:focus-visible { color: var(--text); outline: none; }
    .findings-staleness { color: var(--text-muted); font-size: 0.78rem; font-style: italic; margin: -6px 0 10px; }
    .filter-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
    .filter-chip { background: none; border: 1px solid var(--border, #2a2a33); color: var(--text-muted); border-radius: 14px; padding: 4px 12px; font-size: 0.78rem; cursor: pointer; }
    .filter-chip[aria-pressed="true"] { border-color: var(--arc); color: var(--arc); background: rgba(255,182,39,0.1); }
    .filter-count { color: var(--text-muted); font-size: 0.78rem; margin-left: auto; }
    .correction-form { background: var(--surface, #14141a); border: 1px solid var(--arc); border-radius: 8px; padding: 14px; margin: 10px 0; }
    .correction-form label { display: block; font-size: 0.8rem; color: var(--text-muted); margin: 8px 0 3px; }
    .correction-form input, .correction-form select { width: 100%; background: #0b0b0f; border: 1px solid var(--border, #2a2a33); color: var(--text); border-radius: 5px; padding: 7px 9px; font-size: 0.85rem; }
    .correction-form__hint { color: var(--text-muted); font-size: 0.72rem; margin-top: 2px; }
    .correction-form__actions { display: flex; gap: 10px; margin-top: 12px; }
    .correction-form__actions button { border-radius: 6px; padding: 7px 14px; font-size: 0.82rem; cursor: pointer; border: 1px solid var(--arc); }
    .correction-form__save { background: var(--arc); color: #08080A; font-weight: 600; }
    .correction-form__cancel { background: none; color: var(--text-muted); border-color: var(--border, #2a2a33); }

    /* ── Story 4.5: retake guidance (FR37) + extraction confirmation (FR39) + drawing query (FR40/FR41) ── */
    .drawing-interaction { margin-top: 20px; }

    .retake-panel { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--arc); border-radius: 8px; background: rgba(255,182,39,0.08); }
    .retake-panel[hidden] { display: none; }
    .retake-panel__title { font-family: 'Syne', sans-serif; font-size: 1rem; margin: 0 0 10px; color: var(--text); }
    .retake-panel__list { margin: 0 0 14px; padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
    .retake-panel__actions { display: flex; gap: 12px; flex-wrap: wrap; }
    .retake-panel__btn { padding: 8px 16px; border: 1px solid var(--border-subtle); border-radius: 6px; background: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; min-height: 44px; transition: border-color 0.3s, color 0.3s; }
    .retake-panel__btn:hover, .retake-panel__btn:focus-visible { border-color: var(--arc); color: var(--arc); outline: none; }
    .retake-panel__btn--primary { border-color: var(--arc); color: #08080A; background: var(--arc); font-weight: 600; }

    .extraction-card { margin-top: 20px; padding: 18px; border: 1px solid var(--border-subtle); border-radius: 8px; background: rgba(255,255,255,0.025); }
    .extraction-card[hidden] { display: none; }
    .extraction-card__title { font-family: 'Syne', sans-serif; font-size: 1.1rem; margin: 0 0 6px; color: var(--text); }
    .extraction-card__sub { font-size: 0.86rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.6; }
    .extraction-card__joint { padding: 14px 0; border-top: 1px solid var(--border-subtle); }
    .extraction-card__joint-head { font-family: 'IBM Plex Mono', monospace; font-size: 0.9rem; color: var(--arc); margin-bottom: 10px; }
    .extraction-card__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
    .extraction-card__field, .extraction-card__subtype { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
    .extraction-card__subtype { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-subtle); }
    .extraction-card__label { color: var(--text-dim); min-width: 120px; }
    .extraction-card__value { color: var(--text); font-family: 'IBM Plex Mono', monospace; }
    .extraction-card__value--absent { color: var(--text-muted); font-style: italic; }
    .extraction-card__value--confirm { color: var(--arc); }
    .extraction-card__ack { margin-left: auto; padding: 4px 12px; border: 1px solid var(--arc); border-radius: 12px; background: none; color: var(--arc); font-size: 0.74rem; cursor: pointer; min-height: 28px; }
    .extraction-card__ack[aria-pressed="true"] { background: var(--arc); color: #08080A; font-weight: 600; }
    .extraction-card__ack:hover, .extraction-card__ack:focus-visible { background: rgba(255,182,39,0.16); outline: 1px solid var(--arc); }
    .extraction-card__ack[aria-pressed="true"]:hover { background: var(--arc); }

    .drawing-query { margin-top: 20px; padding: 18px; border: 1px solid var(--border-subtle); border-radius: 8px; background: rgba(255,255,255,0.025); }
    .drawing-query[hidden] { display: none; }
    .drawing-query__title { font-family: 'Syne', sans-serif; font-size: 1.1rem; margin: 0 0 12px; color: var(--text); }
    .drawing-query__seed { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--arc); padding: 8px 10px; margin-bottom: 10px; border: 1px solid var(--arc); border-radius: 6px; background: rgba(255,182,39,0.08); }
    .drawing-query__seed[hidden] { display: none; }
    .drawing-query__seed-clear { display: block; margin-top: 6px; background: none; border: 0; color: var(--arc); font-size: 0.74rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
    .drawing-query__seed-clear:hover, .drawing-query__seed-clear:focus-visible { color: var(--text); outline: none; }
    .drawing-query__form { display: flex; gap: 10px; }
    .drawing-query__input { flex: 1; background: #0b0b0f; border: 1px solid var(--border, #2a2a33); color: var(--text); border-radius: 6px; padding: 10px 12px; font-size: 0.9rem; min-height: 44px; }
    .drawing-query__input:focus { outline: none; border-color: var(--arc); }
    .drawing-query__send { padding: 8px 18px; border: 1px solid var(--arc); border-radius: 6px; background: var(--arc); color: #08080A; font-weight: 600; cursor: pointer; font-size: 0.85rem; min-height: 44px; }
    .drawing-query__send:hover, .drawing-query__send:focus-visible { background: var(--arc-hot, var(--arc)); outline: none; }
    .drawing-query__answer { margin-top: 14px; color: var(--text); font-size: 0.92rem; line-height: 1.7; white-space: pre-wrap; min-height: 1.4em; }
    .drawing-query__answer:empty { display: none; }
    .drawing-query__answer--refusal { color: var(--text-muted); font-style: italic; border-left: 3px solid var(--arc); padding-left: 12px; }
    .drawing-query__cap-notice { margin-top: 12px; font-size: 0.8rem; color: var(--arc); font-family: 'IBM Plex Mono', monospace; }

    @media (max-width: 600px) {
      .extraction-card__grid { grid-template-columns: 1fr; }
      .drawing-query__form { flex-direction: column; }
    }
