:root{color-scheme:light;--ink:#182126;--muted:#52626a;--panel:rgba(255,250,244,0.78);--panel-strong:rgba(255,253,249,0.92);--line:rgba(24,33,38,0.12);--sand:#f4eadc;--clay:#d89d6a;--sage:#8ba48f;--shadow:0 24px 70px rgba(83,61,35,0.13)}*{box-sizing:border-box}html{min-height:100%}body{margin:0;min-height:100vh;color:var(--ink);font-family:Avenir Next,Segoe UI,Helvetica Neue,sans-serif;background:radial-gradient(circle at top left,rgba(216,157,106,.28),transparent 34%),radial-gradient(circle at right,rgba(139,164,143,.22),transparent 28%),linear-gradient(180deg,#f7f2ea,#efe4d5)}.page-shell{width:min(1080px,calc(100% - 2rem));margin:0 auto;padding:4rem 0 5rem}.top-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:1rem;padding:.75rem .9rem;border:1px solid rgba(24,33,38,.1);border-radius:18px;background:rgba(255,253,249,.72);box-shadow:0 12px 34px rgba(83,61,35,.08);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.auth-identity{display:flex;flex-wrap:wrap;align-items:baseline;gap:.45rem;min-width:0}.auth-eyebrow{color:var(--muted);font-size:.84rem;font-weight:560}.auth-user{color:var(--ink);font-size:.94rem;font-weight:650;overflow-wrap:anywhere}.auth-button,.auth-link{border:1px solid rgba(24,33,38,.14);border-radius:999px;background:var(--ink);color:#fffdf9;cursor:pointer;font:inherit;font-size:.88rem;font-weight:700;padding:.55rem .8rem;text-decoration:none}.hero-panel{padding:2rem;border:1px solid var(--line);border-radius:28px;background:var(--panel);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.eyebrow{margin:0 0 .75rem;font-size:.78rem;font-weight:700;letter-spacing:.18em;color:var(--muted)}h1,h2,p{margin:0}h1{max-width:10ch;font-size:clamp(3rem,9vw,5.75rem);line-height:.95;letter-spacing:-.05em}.hero-copy{max-width:42rem;margin-top:1.25rem;font-size:1.1rem;line-height:1.6;color:var(--muted)}.hero-band{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}.hero-band span,.hero-link{padding:.65rem .9rem;border:1px solid rgba(24,33,38,.1);border-radius:999px;background:var(--panel-strong);color:var(--ink);font-size:.92rem;text-decoration:none}.dashboard-grid,.overview-grid{display:grid;grid-gap:1rem;gap:1rem;margin-top:1.5rem;grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-card{min-height:180px;padding:1.25rem;border:1px solid var(--line);border-radius:22px;background:var(--panel-strong);box-shadow:var(--shadow)}.dashboard-card h2{font-size:1.1rem;letter-spacing:-.03em}.dashboard-card p{margin-top:.75rem;line-height:1.55;color:var(--muted)}.empty-panel,.result-card,.result-section{border:1px solid var(--line);border-radius:24px;background:var(--panel-strong);box-shadow:var(--shadow)}.empty-panel{margin-top:1.5rem;padding:1.5rem}.empty-panel h2,.empty-panel h3,.result-card h3,.section-header h2{margin:0}.empty-panel p,.section-header p{margin-top:.75rem;color:var(--muted);line-height:1.55}.command-list{display:grid;grid-gap:.65rem;gap:.65rem;margin-top:1rem}.command-list code{padding:.85rem 1rem;border-radius:16px;background:rgba(24,33,38,.06);font-size:.92rem}.result-section{margin-top:1.5rem;padding:1.5rem}.section-header{display:flex;flex-direction:column;gap:.5rem}.result-list{display:grid;grid-gap:1rem;gap:1rem;margin-top:1.25rem}.result-card{padding:1.25rem}.result-meta{display:flex;flex-wrap:wrap;gap:.65rem;margin-bottom:.85rem}.compact-list-item span,.result-meta span,.term-chip{padding:.45rem .7rem;border-radius:999px;background:rgba(24,33,38,.06);color:var(--muted);font-size:.84rem}.result-card p{margin-top:.8rem;color:var(--muted);line-height:1.6}.source-title-link{color:inherit;-webkit-text-decoration-color:rgba(24,33,38,.35);text-decoration-color:rgba(24,33,38,.35);text-underline-offset:.18em}.source-title-link:hover{-webkit-text-decoration-color:currentColor;text-decoration-color:currentColor}.score-grid{display:grid;grid-gap:.55rem;gap:.55rem;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:1rem}.score-grid span{padding:.7rem;border:1px solid rgba(24,33,38,.08);border-radius:12px;background:rgba(139,164,143,.12);color:var(--ink);font-size:.86rem;font-weight:650}.term-list{gap:.6rem;margin-top:1rem}.review-actions,.term-list{display:flex;flex-wrap:wrap}.review-actions{gap:.65rem;margin-top:1.1rem}.review-actions button{padding:.65rem .9rem;border:1px solid rgba(24,33,38,.14);border-radius:999px;background:var(--ink);color:#fffdfa;cursor:pointer;font:inherit;font-size:.9rem;font-weight:650}.review-document-list,.review-workspace{display:grid;grid-gap:1rem;gap:1rem;margin-top:1.5rem}.review-date-form,.review-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}.review-date-form{margin-top:1.5rem;align-items:end}.review-date-form label{display:grid;grid-gap:.4rem;gap:.4rem}.review-date-form input{padding:.6rem;border:1px solid var(--line);border-radius:8px;background:var(--panel-strong);color:var(--ink);font:inherit}.review-document-card{display:grid;grid-gap:.75rem;gap:.75rem;padding:1.5rem;border:1px solid var(--line);border-radius:24px;background:var(--panel-strong);overflow-wrap:anywhere}.review-document-card p{line-height:1.55}.review-document-card .review-actions button[aria-pressed=true]{background:var(--sage);color:var(--ink);outline:2px solid var(--ink);outline-offset:2px}.review-document-card button:disabled{opacity:.6;cursor:wait}.review-details fieldset{display:grid;grid-gap:.75rem;gap:.75rem;margin:.75rem 0 0;padding:0;border:0;min-width:0}.review-details label{display:grid;grid-gap:.4rem;gap:.4rem}.review-details select,.review-details textarea{min-width:0;padding:.6rem;border:1px solid var(--line);border-radius:8px;background:var(--panel-strong);color:var(--ink);font:inherit}.review-document-source{margin:0 0 .75rem;font-size:.95rem;font-weight:600;letter-spacing:0;text-transform:none;color:#4b5563}.exclude-chip{background:rgba(216,157,106,.18);color:var(--ink)}.compact-section{padding-bottom:1rem}.compact-section-toggle{margin-top:1rem}.compact-list{display:grid;grid-gap:.85rem;gap:.85rem;margin:1.25rem 0 0;padding:0;list-style:none}.compact-list-item{display:flex;flex-wrap:wrap;gap:.85rem;justify-content:space-between;align-items:flex-start;padding:1rem 0;border-top:1px solid var(--line)}.compact-list-item:first-child{border-top:0;padding-top:0}.compact-list-item p{margin-top:.45rem;color:var(--muted)}.result-empty{margin-top:1rem}@media (max-width:840px){.dashboard-grid,.overview-grid{grid-template-columns:1fr}.page-shell{width:min(100% - 1.25rem,1080px);padding-top:2rem}.hero-panel{padding:1.5rem;border-radius:22px}.result-section{padding:1.25rem}.score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-term-grid,.profiles-grid{grid-template-columns:1fr}.compact-list-item{flex-direction:column;align-items:flex-start}}.scan-control{display:flex;flex-direction:column;align-items:flex-start;gap:.65rem;margin-top:1.5rem}.scan-button{border:1px solid rgba(24,33,38,.14);border-radius:999px;background:#182126;color:#fffdf9;cursor:pointer;font:inherit;font-weight:700;padding:.8rem 1.1rem}.scan-button:disabled{cursor:wait;opacity:.62}.scan-status{color:var(--muted);line-height:1.5}.scan-status-error{color:#9d2f2f}.profile-selector{display:grid;grid-gap:.45rem;gap:.45rem;margin-top:1.25rem;max-width:32rem}.profile-selector label{color:var(--muted);font-size:.86rem;font-weight:700}.profile-selector select{width:100%;border:1px solid rgba(24,33,38,.14);border-radius:14px;background:var(--panel-strong);color:var(--ink);font:inherit;padding:.8rem .9rem}.profile-selector p{color:var(--muted);line-height:1.5}.profile-selector-error{color:#9d2f2f}.source-toggle-list{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.source-toggle{border:1px solid var(--border-colour,#d0d7de);border-radius:999px;background:white;cursor:pointer;padding:.35rem .75rem}.source-toggle-selected{background:#111827;border-color:#111827;color:white}.source-toggle:disabled{cursor:not-allowed;opacity:.45}.profiles-layout{display:grid;grid-gap:1.5rem;gap:1.5rem;margin-top:1.5rem}.profile-card,.profile-editor-panel,.profile-list-panel,.profile-runs-panel,.profiles-header{border:1px solid var(--line);border-radius:24px;background:var(--panel-strong);box-shadow:var(--shadow)}.profiles-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.5rem}.profile-card p,.profile-muted,.profiles-header p{margin-top:.55rem;color:var(--muted);line-height:1.55}.profiles-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-gap:1.5rem;gap:1.5rem}.profile-editor-panel,.profile-list-panel,.profile-runs-panel{padding:1.5rem}.profile-editor-focus{width:100%}.profile-editor-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.profile-editor-header p{margin-top:.55rem;color:var(--muted);line-height:1.55}.profile-card-list,.profile-form,.profile-run-groups{display:grid;grid-gap:1rem;gap:1rem;margin-top:1rem}.profile-card{padding:1rem}.profile-actions,.profile-card-header{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-start;justify-content:space-between}.profile-status-chip{border-radius:999px;background:rgba(139,164,143,.18);color:var(--ink);font-size:.78rem;font-weight:500;line-height:1.2;padding:.4rem .65rem}.profile-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.75rem;gap:.75rem;margin:1rem 0}.profile-details div{border:1px solid rgba(24,33,38,.08);border-radius:14px;padding:.7rem}.profile-details dt{color:var(--muted);font-size:.78rem;font-weight:800}.profile-details dd{margin:.25rem 0 0;font-size:1.1rem;font-weight:800}.profile-form details,.profile-form fieldset,.profile-form label{display:grid;grid-gap:.45rem;gap:.45rem}.profile-form legend,.profile-form span,.profile-form summary{color:var(--muted);font-size:.9rem;font-weight:560;line-height:1.35}.profile-form input[type=text],.profile-form textarea{width:100%;border:1px solid rgba(24,33,38,.14);border-radius:14px;background:#fffdf9;color:var(--ink);font:inherit;padding:.75rem .85rem}.profile-form fieldset{border:1px solid rgba(24,33,38,.1);border-radius:16px;padding:.9rem}.profile-option-grid,.profile-term-grid{display:grid;grid-gap:.75rem;gap:.75rem}.profile-term-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-check-option{grid-template-columns:auto 1fr;align-items:flex-start;border:1px solid rgba(24,33,38,.08);border-radius:14px;background:rgba(24,33,38,.03);padding:.75rem}.profile-check-option input{margin-top:.2rem}.profile-check-option small,.profile-check-option strong{display:block}.profile-check-option strong{color:var(--ink);font-weight:650}.profile-check-option small{margin-top:.2rem;color:var(--muted);font-weight:500;line-height:1.4}.profile-connector-grid{margin-top:.75rem}.secondary-button{cursor:pointer}.secondary-button,.secondary-link-button{border:1px solid rgba(24,33,38,.14);border-radius:999px;background:transparent;color:var(--ink);font:inherit;font-weight:700;padding:.8rem 1.1rem}.secondary-link-button{text-decoration:none}.profile-run-group{border-top:1px solid var(--line);padding-top:1rem}.profile-run-group:first-child{border-top:0;padding-top:0}.profile-run-group ul{display:grid;grid-gap:.55rem;gap:.55rem;margin:.75rem 0 0;padding:0;list-style:none}.profile-run-group li{display:flex;flex-wrap:wrap;gap:.5rem}.profile-run-group span,.profile-run-group time{border-radius:999px;background:rgba(24,33,38,.06);color:var(--muted);font-size:.82rem;padding:.4rem .65rem}.export-shell{width:min(980px,calc(100% - 2rem));margin:0 auto;padding:3rem 0 5rem;color:var(--ink)}.export-cover,.export-section{border:1px solid var(--line);border-radius:24px;background:var(--panel-strong);box-shadow:var(--shadow);padding:1.5rem;margin-bottom:1.5rem}.export-eyebrow{color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.export-cover h1{max-width:16ch;margin-top:.7rem;font-size:clamp(2.5rem,7vw,4.6rem);line-height:.95;letter-spacing:-.05em}.export-meta-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:.75rem;gap:.75rem;margin-top:1.5rem}.export-meta-grid div{border:1px solid rgba(24,33,38,.1);border-radius:18px;background:rgba(24,33,38,.04);padding:.85rem}.export-meta-grid span,.export-meta-grid strong{display:block}.export-meta-grid strong{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}.export-meta-grid span{margin-top:.35rem;font-size:1rem;font-weight:700}.export-theme-section{margin-top:1.5rem}.export-theme-section h3{margin:0 0 .8rem;font-size:1.15rem}.export-card{display:grid;grid-template-columns:2.25rem 1fr;grid-gap:.9rem;gap:.9rem;border-top:1px solid var(--line);padding:1rem 0}.export-card:first-of-type{border-top:0}.export-card-number{width:2.25rem;height:2.25rem;border-radius:999px;background:rgba(139,164,143,.18);display:grid;place-items:center;color:var(--muted);font-weight:800}.export-card h4{margin:0;font-size:1rem;line-height:1.35}.export-card p{margin-top:.55rem;line-height:1.5}.export-card-meta,.export-url{color:var(--muted);font-size:.86rem}.export-chip-row{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.75rem}.export-chip{border-radius:999px;background:rgba(24,33,38,.06);color:var(--muted);font-size:.78rem;padding:.35rem .6rem}.export-appendix{page-break-before:always}.export-table{width:100%;border-collapse:collapse;margin-top:1rem;font-size:.85rem}.export-table td,.export-table th{border-top:1px solid var(--line);padding:.55rem;text-align:left;vertical-align:top}.export-table th{color:var(--muted);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}@media print{@page{size:A4;margin:14mm 12mm}body{background:#ffffff;color:#182126}.export-shell{width:auto;padding:0}.export-cover,.export-section{border:0;border-radius:0;box-shadow:none;background:transparent;padding:0;margin-bottom:10mm}.export-cover{min-height:90mm;border-bottom:1px solid rgba(24,33,38,.18);padding-bottom:10mm}.export-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.export-card{break-inside:avoid;page-break-inside:avoid}.export-theme-section{page-break-inside:avoid;break-inside:avoid-page}.export-url{overflow-wrap:anywhere}a{color:inherit;text-decoration:none}}.delete-confirmation{margin-top:.75rem;width:100%;border:1px solid #fecaca;border-radius:.75rem;background:#fef2f2;padding:.75rem;color:#7f1d1d}.delete-confirmation p{margin:0 0 .75rem}.delete-confirmation-actions{display:flex;gap:.5rem;flex-wrap:wrap}.auth-page-shell{display:grid;min-height:100vh;place-items:center;padding:2rem 1rem}.auth-panel{width:min(100%,34rem);padding:clamp(1.5rem,6vw,2.5rem);border:1px solid var(--line);border-radius:28px;background:var(--panel-strong);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.auth-panel h1{max-width:13ch;font-size:clamp(2.5rem,10vw,4.25rem)}.auth-intro{margin-top:1.25rem;color:var(--muted);font-size:1.02rem;line-height:1.6}.auth-form{display:grid;grid-gap:.7rem;gap:.7rem;margin-top:1.6rem}.auth-form label{font-size:.9rem;font-weight:700}.auth-form input{width:100%;border:1px solid rgba(24,33,38,.2);border-radius:16px;background:#fffdf9;color:var(--ink);font:inherit;font-size:1rem;padding:.85rem 1rem}.auth-form button:focus-visible,.auth-form input:focus-visible,.auth-secondary-link:focus-visible{outline:3px solid rgba(216,157,106,.48);outline-offset:3px}.auth-form input[name=code]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(1.5rem,8vw,2rem);font-weight:750;letter-spacing:.32em;text-align:center;text-transform:uppercase}.auth-form button{margin-top:.35rem;border:1px solid rgba(24,33,38,.14);border-radius:999px;background:var(--ink);color:#fffdf9;cursor:pointer;font:inherit;font-weight:700;padding:.8rem 1rem}.auth-error{padding:.8rem .9rem;border:1px solid rgba(166,69,47,.22);border-radius:14px;background:rgba(216,157,106,.14);color:#743b2d;line-height:1.45}.auth-secondary-link{display:inline-block;margin-top:1.25rem;color:var(--ink);font-size:.92rem;font-weight:700;text-underline-offset:.2em}.scanner-workspace{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);grid-gap:1.5rem;gap:1.5rem;margin-top:1.5rem}.scanner-main-panel,.scanner-sidebar{border:1px solid var(--line);border-radius:24px;background:var(--panel-strong);box-shadow:var(--shadow);padding:1.5rem}.scanner-query-list{display:grid;grid-gap:.85rem;gap:.85rem;margin:1.25rem 0}.scanner-query-card{width:100%;border:1px solid rgba(24,33,38,.1);border-radius:18px;background:rgba(255,253,249,.76);color:var(--ink);cursor:pointer;display:grid;grid-gap:.45rem;gap:.45rem;font:inherit;padding:1rem;text-align:left}.scanner-query-card strong{font-size:.98rem}.scanner-query-card span{color:var(--muted);font-size:.9rem;line-height:1.45}.scanner-form{display:grid;grid-gap:1rem;gap:1rem;margin-top:1.25rem}.scanner-form label{display:grid;grid-gap:.45rem;gap:.45rem}.scanner-form span{color:var(--muted);font-size:.9rem;font-weight:650}.scanner-form input,.scanner-form textarea{width:100%;border:1px solid rgba(24,33,38,.14);border-radius:14px;background:#fffdf9;color:var(--ink);font:inherit;padding:.75rem .85rem}.scanner-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:1rem;gap:1rem}.scanner-empty-results{margin-top:1.25rem}@media (max-width:840px){.scanner-form-grid,.scanner-workspace{grid-template-columns:1fr}}.scanner-query-card-selected{border-color:rgba(24,33,38,.34);background:rgba(139,164,143,.18)}.scanner-sidebar-empty{box-shadow:none;margin:1.25rem 0;padding:1rem}.scanner-feedback-status{align-self:center;color:var(--muted);font-size:.85rem;font-weight:700}.scanner-feedback-status-error{color:#8b2e2e}