:root{font:14px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#edf2f5;background:#09111a;color-scheme:dark;--gold:#e5c58c;--muted:#9db1c3;--line:#35495b;--panel:#132230;--navy:#0c1722}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 80% -8%,#273b4c 0%,#09111a 48%);overflow-x:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}a{color:var(--gold)}[hidden]{display:none!important}.app-shell{max-width:1160px;margin:0 auto;padding:0 20px 130px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px}.brandmark{width:45px;height:45px;display:grid;place-items:center;border-radius:13px;border:1px solid #b79b62;color:var(--gold);font-size:15px;font-weight:900;letter-spacing:1px;background:#152536}.brand strong{font-size:12px;letter-spacing:2.1px;color:#ead09b;display:block}.brand span:not(.brandmark){font-size:9px;letter-spacing:1.5px;color:var(--muted)}.private-chip,.quiet-tag,.count-tag{display:inline-flex;align-items:center;background:#1a2d39;border:1px solid #405567;border-radius:40px;padding:7px 11px;color:#d3dce2;font-size:11px}.private-chip{color:#bfe8d7;border-color:#41655e}.hero{padding:33px 2px 29px}.eyebrow{font-size:10px;font-weight:800;color:var(--gold);letter-spacing:1.6px;text-transform:uppercase}.hero h1{font-size:clamp(31px,5vw,46px);line-height:1.15;letter-spacing:-1.3px;margin:14px 0}.gold-dot{color:var(--gold)}.hero>p{font-size:15px;line-height:1.65;max-width:710px;color:#b4c6d3}.hero-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}.hero-pills span{border:1px solid #526071;border-radius:30px;color:#e1d4bd;background:#142435;padding:7px 11px;font-size:11px}.security-note{border:1px solid #756346;background:#282820;line-height:1.7;padding:15px 18px;border-radius:14px;color:#f3e5c8;margin:0 0 20px;font-size:12px}.panel{background:linear-gradient(140deg,#172838,#101d29);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px #0002;padding:23px;margin-bottom:17px}.panel-top,.aside-title,.section-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.panel h2{font-size:20px;margin:9px 0}.panel h3{font-size:15px;margin:0 0 6px}.muted{color:var(--muted);line-height:1.65}.small{font-size:12px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}label{display:block;margin:14px 0;color:#cddbe4;font-size:12px;font-weight:650}input,textarea,select{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #496075;background:#101e2b;color:#f1f6fa;border-radius:10px;min-width:0;min-height:45px}textarea{resize:vertical;min-height:90px}input::placeholder,textarea::placeholder{color:#8299a9}input:focus,textarea:focus,select:focus{border-color:var(--gold)}.field-hint{font-size:10px;color:var(--muted);font-weight:400}.action-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:20px 0 2px}.btn-primary,.btn-secondary,.btn-quiet,.btn-add{border-radius:11px;min-height:43px;padding:10px 15px;font-size:12px;font-weight:800}.btn-primary{border:1px solid #e7c994;color:#101a24;background:linear-gradient(120deg,#f0d69f,#caab76)}.btn-primary:hover{filter:brightness(1.08)}.btn-secondary{border:1px solid #79694d;background:#1d3040;color:#ecd7b0}.btn-quiet{background:#121f2c;color:#becedb;border:1px solid #425368}.btn-add{border:1px dashed #877856;background:#192e40;color:#f4d99e;white-space:nowrap}.btn-primary.full{width:100%}.text-button{border:0;background:transparent;color:#efcf98;text-decoration:underline;padding:7px}.status-message{padding:12px 16px;border:1px solid #488b71;background:#183a35;border-radius:12px;margin:0 0 15px;color:#d1f2e1}.status-message.error{border-color:#a85a5a;background:#402428;color:#ffdddd}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.workspace-heading h2{margin:4px 0}.workspace-heading .workspace-actions{display:flex;flex-wrap:wrap;gap:9px}.work-layout{display:grid;grid-template-columns:minmax(220px,270px) minmax(0,1fr);gap:15px;align-items:start}.hypothesis-side{position:sticky;top:14px}.hypothesis-side .aside-title h2{margin:0}.hypothesis-list{display:grid;gap:8px;margin:15px 0 18px}.hypothesis-item{width:100%;background:#122433;border:1px solid #3c5265;text-align:left;color:#eaf2f6;border-radius:12px;padding:12px;display:grid;gap:5px}.hypothesis-item.active{border-color:#d6b77c;background:#2d2e2b}.hypothesis-item span{color:#a5b9c8;font-size:11px}.view-tabs{display:flex;gap:7px;align-items:center;background:#101d29;border:1px solid var(--line);padding:6px;border-radius:13px;margin-bottom:14px}.view-tabs button{flex:1;border:0;border-radius:9px;padding:10px 8px;background:transparent;color:#abbecd;font-weight:700;font-size:12px}.view-tabs button[aria-selected=true]{background:#d8bd8a;color:#16232f}.content-panel{min-height:260px}.empty-state{text-align:center;padding:55px 20px;color:#aebfca}.empty-state h2{color:#fff}.empty-symbol{font-size:32px;color:var(--gold)}.structured-preview{display:grid;gap:10px;margin:14px 0 19px}.detail-block{background:#0f1e2b;border:1px solid #3a5061;border-radius:12px;padding:13px;min-width:0}.detail-block h3{color:#e4c995;margin:0 0 7px;font-size:12px;letter-spacing:.4px}.detail-block p,.detail-block li{font-size:12px;line-height:1.6;color:#b9c9d3;overflow-wrap:anywhere}.detail-block p{margin:6px 0}.detail-block ul{padding-left:18px;margin:4px 0}.detail-block a{overflow-wrap:anywhere}.form-section{border-top:1px solid #385064;margin:22px 0;padding-top:18px}.section-heading{align-items:center;margin:0 0 12px}.section-heading h3{margin:0}.entry-stack{display:grid;gap:11px}.entry-card{background:#101e2b;border:1px solid #455b6c;border-radius:12px;padding:13px}.entry-card .entry-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.entry-card h4{margin:0;color:#e7ca95}.entry-card button{background:#263542;color:#dfcba4;border:1px solid #5b6871;border-radius:9px;padding:6px 10px;font-size:11px}.entry-card label{margin:10px 0}.choice-grid{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.check-item{display:flex;gap:8px;align-items:center;border:1px solid #466073;background:#132839;border-radius:10px;padding:9px 12px;margin:0;font-size:12px}.check-item input{width:17px;min-height:17px;height:17px;margin:0;accent-color:#dcbf88}.compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;margin-top:18px}.compare-column{min-width:0;border:1px solid #455d70;border-radius:14px;padding:15px;background:#0e1c28}.compare-column h3{color:#f2d79e;font-size:16px;margin:0 0 6px}.compare-column .detail-block{margin:10px 0}.revision-list{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.revision-list button{border:1px solid #526779;background:#122739;color:#dbe4ea;padding:8px 12px;border-radius:9px}.revision-list button[aria-pressed=true]{color:#15212b;background:#e1c58f}.footer{text-align:center;color:#829aaf;font-size:11px;padding:20px 0}.preview-dock{position:fixed;z-index:20;left:0;right:0;bottom:0;display:flex;align-items:center;gap:5px;background:#101a27f5;border-top:1px solid #36485a;backdrop-filter:blur(12px);padding:7px 7px calc(7px + env(safe-area-inset-bottom,0px));height:calc(77px + env(safe-area-inset-bottom,0px))}.dock-scroll{display:flex;flex:1;min-width:0;max-width:820px;margin:auto;overflow:auto hidden;scrollbar-width:none;gap:1px;scroll-behavior:smooth;scroll-snap-type:x proximity}.dock-scroll::-webkit-scrollbar{display:none}.dock-tab{min-width:73px;flex:0 0 73px;background:transparent;border:0;color:#9aaabb;font-size:10px;padding:4px 2px;scroll-snap-align:center;line-height:1.5}.dock-tab span{display:block;font-size:20px;line-height:1.4}.dock-tab.current{color:#e7c78f}.dock-arrow{flex:0 0 26px;border:1px solid #7a683e;border-radius:8px;background:#162b3b;color:#e6c88d;font-size:25px;height:43px;display:grid;place-items:center;line-height:1}.dock-tab:disabled{opacity:1}.dock-tab:not(.current):disabled{opacity:.78}@media(max-width:760px){.work-layout{grid-template-columns:minmax(0,1fr)}.hypothesis-side{position:static}.hypothesis-list{display:flex;overflow-x:auto;gap:8px}.hypothesis-item{min-width:170px}.workspace-heading{align-items:start;flex-direction:column}.panel{padding:17px}.field-grid{grid-template-columns:1fr}.hero{padding:25px 0 20px}.topbar{padding:16px 0}.private-chip{font-size:9px}.brand strong{font-size:10px}.brand span:not(.brandmark){font-size:8px}.compare-grid{grid-template-columns:1fr}.section-heading{align-items:start}.app-shell{padding-left:13px;padding-right:13px}}@media(max-width:360px){.brandmark{width:36px;height:36px}.private-chip{padding:6px}.btn-add{font-size:10px;padding:9px}.workspace-actions{width:100%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.dock-scroll{scroll-behavior:auto}}

/* R3 local encrypted vault controls; isolated prototype only. */
.vault-access{border-color:#65765f;background:linear-gradient(130deg,#1b3532,#132333)}
.vault-access h2{margin:5px 0}.vault-controls{border-color:#6d654b;padding-top:14px;padding-bottom:16px}
.vault-controls .panel-top{align-items:center;flex-wrap:wrap}
.vault-controls .panel-top p{margin:5px 0 0}
.vault-controls label{min-width:0}
.vault-access label{max-width:650px}
.vault-access input[type=file]{padding:12px;border-style:dashed}
.vault-access button{margin:10px 0 5px}
.btn-danger{border:1px solid #b96c6c;color:#ffd9d9;background:#3b2428;border-radius:11px;min-height:43px;padding:10px 15px;font-size:12px;font-weight:750}
#vaultSaveState{max-width:650px;overflow-wrap:anywhere}
#vaultBadge{white-space:normal;text-align:center}
@media(max-width:490px){.topbar{align-items:start}.private-chip{max-width:145px}.vault-access .btn-danger{width:100%}}

/* A horizontal list of three or more hypothesis cards must scroll inside its
   panel, never enlarge the mobile grid's min-content width. */
.hypothesis-side,.work-main,.hypothesis-list{min-width:0;max-width:100%}

/* R3 polish: use the *unchanged* R2 approved dock stylesheet in a separate
   editorial-dock.css file. Only prototype disabled-state parity is local. */
#ddWebSecondaryNav .tab:disabled{opacity:1;color:#8ca1b3;cursor:default}
#ddWebSecondaryNav .tab.active:disabled{color:#efd3a0}
#ddWebSecondaryNav .nav-inner{min-width:0;max-width:820px}
#ddWebSecondaryNav{max-width:100vw}

/* Branded, accessible, cancellable confirmations replace browser-owned
   grey chrome alerts. Never use these for plaintext password display. */
.dd-confirm{
 width:min(440px,calc(100vw - 28px));max-width:calc(100vw - 28px);
 max-height:min(82dvh,650px);overflow:auto;
 margin:auto;padding:22px 20px 20px;border-radius:20px;
 color:#edf2f5;background:linear-gradient(155deg,#203446,#101c29 74%);
 border:1px solid #a68d5a;box-shadow:0 22px 80px #000b,0 0 0 1px #253e50;
 overscroll-behavior:contain;
}
.dd-confirm::backdrop{background:#030910c9;backdrop-filter:blur(6px)}
.dd-confirm-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dd-confirm .eyebrow{letter-spacing:1.1px}
.dd-confirm-close{width:34px;height:34px;flex:0 0 34px;border:1px solid #5c6974;
 border-radius:10px;background:#132434;color:#e5e9ed;font-size:22px;line-height:1}
.dd-confirm-icon{display:grid;place-items:center;width:48px;height:48px;
 margin:17px 0 10px;border:1px solid #ad9569;background:#3b3325;
 color:#ebd6ac;font-size:25px;font-weight:850;border-radius:15px}
.dd-confirm.destructive .dd-confirm-icon{border-color:#b46d66;background:#3d282c;color:#ffccc5}
.dd-confirm h2{font-size:clamp(19px,4.5vw,23px);letter-spacing:-.4px;margin:10px 0 7px;
 line-height:1.3;color:#fff}
.dd-confirm p{font-size:13px;line-height:1.75;color:#bacbd6;margin:0 0 19px}
.dd-confirm label{margin:14px 0;line-height:1.6;color:#f2ddc2}
.dd-confirm input{margin-top:7px;background:#101b26;border-color:#86694e}
.dd-confirm-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 gap:10px;margin-top:17px}
.dd-confirm-actions button{min-width:0;min-height:48px;white-space:normal;
 overflow-wrap:break-word;line-height:1.35}
.dd-confirm .btn-danger{background:#6e3538;border-color:#bb7774;color:#ffeded}
.dd-confirm .btn-danger:hover{background:#874044}
.dd-confirm .btn-primary{background:linear-gradient(120deg,#f0d69f,#d2b477)}
.dd-confirm button:focus-visible,.dd-confirm input:focus-visible{
 outline:2px solid #f6d898;outline-offset:3px}
@media(max-width:390px){.dd-confirm{padding:18px 15px}
 .dd-confirm-actions{grid-template-columns:1fr}
 .dd-confirm-actions .btn-secondary{order:2}
 .dd-confirm-actions .btn-primary,.dd-confirm-actions .btn-danger{order:1}}
@media(prefers-reduced-motion:reduce){.dd-confirm::backdrop{backdrop-filter:none}}

/* Visible standalone-build indicator: avoids guessing whether the phone is
   serving old ZIP files on the same localhost URL. */
.build-stamp{display:inline-block;margin:10px 0 0;padding:5px 9px;
 background:#142536;border:1px solid #675839;border-radius:8px;
 color:#ecd09a;font-size:10px;font-weight:760;letter-spacing:.55px}

/* R3 source-linked Gap Finder: catalogue fields are questions, not verdicts. */
.catalogue-setup{margin:16px 0 10px;padding:15px;border:1px solid #496178;
 border-radius:12px;background:#112433}
.catalogue-setup label{margin:0 0 5px;color:#edcc91}
.catalogue-setup p{margin:8px 0 0}
.catalogue-setup select{margin:7px 0}
.gap-case-details{margin:17px 0 10px;padding:12px 14px;
 background:#112b39;border:1px solid #445b6e;border-radius:12px}
.gap-case-details strong{color:#f4d49e;font-size:13px}
.gap-case-details p{margin:5px 0 0}
.gap-candidate-list,.gap-review-list{display:grid;gap:13px;margin:13px 0}
.gap-card,.gap-recorded{min-width:0;overflow-wrap:anywhere;border-radius:13px;
 border:1px solid #4d6574;padding:15px;background:#101e2c}
.gap-card{border-left:3px solid #d3b374}
.gap-recorded{border-left:3px solid #77ad9c;background:#12252b}
.gap-head{display:flex;justify-content:space-between;align-items:start;gap:10px;flex-wrap:wrap}
.gap-head h3{margin:0;color:#f5d8a7;font-size:14px}
.gap-card p,.gap-recorded p{margin:10px 0;color:#c5d5df;font-size:12px;line-height:1.68}
.gap-card .gap-next,.gap-recorded .gap-next{color:#e1cda5}
.gap-card .gap-attribution,.gap-recorded .gap-attribution{color:#9eafbd;font-size:11px}
.gap-state{color:#e0d0ac;border:1px solid #716448;border-radius:28px;
 padding:4px 8px;background:#2a2b28;font-size:10px;white-space:nowrap}
.gap-source-link{display:inline-block;margin:4px 0 8px;color:#f0cd90;
 font-size:12px;text-decoration:underline;overflow-wrap:anywhere}
.gap-review-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;
 align-items:end;gap:12px;margin-top:10px;padding-top:8px;border-top:1px solid #344858}
.gap-review-controls label{margin:0;color:#adc2d2}
.gap-review-controls select{margin-top:6px}
.gap-review-controls button{min-height:46px}
.gap-recorded strong{color:#c5dfd3}
.gap-saved-title{margin:25px 0 7px!important;border-top:1px solid #3a5262;padding-top:22px}
@media(max-width:720px){
 .gap-review-controls{grid-template-columns:1fr}
 .gap-review-controls button{width:100%}
 .gap-head{flex-direction:column;align-items:start}
}

/* The isolated prototype keeps its disabled swipe rail. Only hosted builds mount the shared site dock. */
#ddWebSecondaryNav:not(.dd-site-dock){display:flex;align-items:center;gap:4px}
#ddWebSecondaryNav:not(.dd-site-dock) .nav-inner{display:flex;overflow-x:auto;scrollbar-width:none;flex:1;gap:4px}
#ddWebSecondaryNav:not(.dd-site-dock) .tab{flex:0 0 68px;min-height:48px;border:0;background:transparent;color:#b7cad8;font:600 10px system-ui}
#ddWebSecondaryNav:not(.dd-site-dock) .tab .ico{display:block;font-size:19px}
#ddWebSecondaryNav:not(.dd-site-dock) .tab .ico svg{width:21px;height:21px;stroke:currentColor;fill:none}
#ddWebSecondaryNav:not(.dd-site-dock) .dd-nav-swipe-hint{border:1px solid #40566a;background:#162c3e;color:#e1c58c;border-radius:6px;padding:8px 4px}
