/* Focused UX layer. Keep the original Silicio board and product palette intact. */
:root{font-size:16px;--error:#ff9a91;--focus:#f2ca69}
body{overflow-wrap:break-word}button,input,textarea,select{font-size:1rem}button{min-height:48px;line-height:1.25;padding:12px 16px}input:not([type=checkbox]),select,textarea{font-size:1rem;min-height:48px}p{font-size:.9375rem}.hint{font-size:.8125rem}.eyebrow{font-size:.6875rem}.badge{font-size:.6875rem;letter-spacing:.04em}.version{font-size:.6875rem;white-space:nowrap}.brand small{font-size:.75rem}h2{font-size:1.25rem}
button:disabled{opacity:1;color:#a3998d;background:#201d18;border-color:#51483b}button.primary:disabled{color:#bba69b;background:#39251e;border-color:#684133}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
[tabindex="-1"]:focus:not(:focus-visible){outline:none}.skip-link{position:fixed;top:8px;left:12px;padding:14px;background:var(--gold);color:#080808;z-index:100;transform:translateY(-150%)}.skip-link:focus{transform:none}
header{padding:16px 28px}.brand{min-width:0}.brand-mark{flex-shrink:0}.brand>span:last-child{min-width:0}main{padding-top:20px}.intro{margin-bottom:20px}.intro h1{font-size:clamp(1.8rem,3.4vw,2.7rem)}.privacy{font-size:.875rem}.privacy small{font-size:.8125rem}
.steps{position:sticky;top:0;z-index:12;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 0;background:var(--bg)}.steps button{font-size:.875rem;white-space:normal;min-width:0;border-radius:9px;color:var(--muted);background:var(--surface)}.steps button > span:first-child{color:var(--gold);margin-right:6px;font-size:.75rem}.steps button[aria-current=step]{border-color:var(--gold);color:var(--text);background:#2b2415;box-shadow:inset 0 -2px var(--gold)}
body:not([data-step=capture]) .intro,body[data-has-work=true] .intro{display:none}#notice{font-size:.8125rem;margin:8px 0 14px;padding:10px 12px;min-height:0}body:not([data-step=capture]) #notice{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0;margin:0}
body[data-step=capture] .review-panel,body:not([data-step=export]) .export-panel,body[data-step=export] .workspace{display:none}body[data-step=capture] .workspace{display:block;max-width:900px;margin-inline:auto}body[data-step=review] .workspace{grid-template-columns:minmax(260px,.8fr) minmax(0,1.5fr)}body[data-step=review] .source-panel> :is(.actions,.capture-guide,.inline-status,#photo-controls,details,#resume-review){display:none!important}body[data-step=review] .source-panel{position:sticky;top:82px}.panel{min-width:0}.panel-heading{flex-wrap:wrap;gap:8px;margin-bottom:14px}.panel-heading h2{flex:1}.panel-heading .badge{max-width:52%;overflow-wrap:anywhere}.capture-guide{margin-top:0}.wide{width:100%;margin-top:12px}summary{display:list-item;min-height:48px;padding:13px 0;font-size:.875rem;line-height:1.5}details{padding:4px 0;margin-top:10px}details p{font-size:.875rem}
.inline-status:empty,.field-error:empty,.proposal-status:empty{display:none}.inline-status{font-size:.875rem;line-height:1.5;padding:11px 13px;border-left:3px solid var(--gold);background:#221d12;margin:10px 0}.field-error{font-size:.875rem!important;color:var(--error)!important;margin:10px 0 0!important}.proposal-status{font-size:.8125rem!important;color:var(--gold)!important;margin-bottom:0!important}.invalid,[aria-invalid=true]{border-color:var(--error)!important}.inline-status.error{border-color:var(--error);color:var(--error)}
.photo-stage{margin:14px 0;min-height:220px;overflow:visible}.photo-stage canvas{touch-action:pan-y;cursor:default;border-radius:9px;max-width:100%}.photo-stage canvas.cropping{touch-action:none;cursor:crosshair;outline:3px solid var(--red);outline-offset:-3px}#empty-photo{padding:20px 12px}#empty-photo>span{font-size:42px}#empty-photo p{font-size:.875rem}#empty-photo h3{font-size:1rem}#source-state{max-width:48%}#photo-controls>.actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#photo-controls>.actions button{font-size:.8125rem;padding-inline:7px}#crop-mode[aria-pressed=true]{background:var(--gold);color:#111;border-color:var(--gold)}.crop-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.crop-fields input{max-width:none;width:100%}label{font-size:.875rem}.crop-fields label{margin:0}#grid-rows{max-width:140px}
.review-summary{font-size:.875rem;align-items:flex-start;flex-wrap:wrap}.review-summary span{font-size:.8125rem}progress{height:6px;margin:12px 0 14px}.review-work{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.position-pane,.correction-pane{min-width:0}.board-wrap{max-width:380px}.board-controls{gap:8px;font-size:.8125rem;max-width:380px}.board-controls button{font-size:.8125rem;padding-inline:8px;flex-shrink:0}.position-access{max-width:380px;margin:0 auto 4px}.position-access summary{font-size:.8125rem}#position-text{font-size:.875rem}.focus{padding:16px;margin-bottom:12px}.focus p{font-size:.875rem;line-height:1.5}.focus .eyebrow{font-size:.8125rem;letter-spacing:.08em}#evidence{margin-bottom:10px}#fragment{max-height:100px;border:1px solid #8d8272}#options-help{font-size:.8125rem;margin-bottom:4px}.options{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px;margin:8px 0 12px}.options button{min-width:0;min-height:56px;font-size:1.125rem;border-color:#7a663d;overflow-wrap:anywhere}.options button small{font-size:.6875rem;color:var(--muted);line-height:1.2;margin-top:4px}.options button[aria-pressed=true]{background:#42351a;border:2px solid var(--gold);color:#fff}.options button.recommended{border-color:var(--gold)}#more-options{font-size:.8125rem;min-height:44px;margin-bottom:10px;width:100%}.manual-move{flex-wrap:wrap}.manual-move input{flex:1 1 110px;width:auto}.manual-move button{flex:0 0 auto}#move-form label{color:var(--text);font-weight:600;margin-top:8px}.review-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.review-actions button{padding-inline:5px;font-size:.8125rem}.sequence{max-height:350px;margin-top:4px;scrollbar-gutter:stable}.move-row{grid-template-columns:24px minmax(0,1fr) minmax(0,1fr);gap:8px;margin-bottom:8px}.move-row button{font-size:1rem;min-height:58px;padding:9px 12px}.move-row button small{font-size:.75rem}.move-row button.active{outline:2px solid var(--gold);outline-offset:-2px}.move-row>span{font-size:.8125rem}#sequence-count{color:var(--muted);font-weight:400;font-size:.8125rem;margin-left:8px}
.export-panel{max-width:1000px;margin:0 auto;gap:28px}.export-panel h2{font-size:1.6rem}.export-requirements{border:1px solid var(--line);border-radius:10px;padding:15px;line-height:1.7}.export-requirements.ready{border-color:var(--green);color:#a6e6bb}.export-controls .actions{display:grid;grid-template-columns:1fr}.check{min-height:48px;align-items:center;font-size:.9375rem;padding:10px;background:#1c1917;border-radius:8px}.check input{width:24px;height:24px}.export-controls .hint{font-size:.8125rem}footer{font-size:.75rem;line-height:1.7}
dialog{color:var(--text);background:var(--surface);border:1px solid #6c5b3a;border-radius:16px;padding:24px;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}dialog::backdrop{background:#000b}dialog h2{line-height:1.4}dialog .actions{display:flex;flex-direction:column;align-items:stretch;margin-top:18px}dialog p{font-size:1rem}dialog .hint{font-size:.875rem}
@media(min-width:1180px){body[data-step=review] .review-work{grid-template-columns:minmax(220px,1fr) minmax(240px,1fr);gap:16px}body[data-step=review] .review-panel{padding:20px}}
@media(max-width:1100px){body[data-step=review] .source-panel{display:none}body[data-step=review] .workspace{display:block}.review-panel{max-width:920px;margin-inline:auto}}
@media(min-width:620px) and (max-width:1100px){.review-work{grid-template-columns:minmax(240px,1fr) minmax(240px,1fr)}}
@media(max-width:760px){header{padding:12px 16px}.brand{font-size:.875rem;letter-spacing:.07em;gap:9px}.brand small{font-size:.6875rem}.version{font-size:.625rem;padding:6px 8px}main{padding:12px 12px 24px}.intro{margin:8px 0 16px}.intro h1{font-size:1.85rem;letter-spacing:-.04em}.intro>div>p:last-child{font-size:.9375rem}.privacy{min-width:0;font-size:.8125rem}.privacy small{display:block;max-width:none;margin:4px 0 0 13px;font-size:.75rem}.steps{gap:6px;padding:8px 0}.steps button{padding:10px 6px;font-size:.8125rem;min-height:48px}.steps button > span:first-child{display:block;margin:0 0 2px;font-size:.6875rem}.panel{padding:15px;border-radius:14px}.panel-heading h2{font-size:1.125rem}.badge{font-size:.625rem}.review-work{gap:12px}.board-wrap{max-width:310px;padding:14px 9px 21px 21px}.board-controls,.position-access{max-width:310px}.position-access{margin-bottom:0}.position-access summary{min-height:44px;padding:10px 0}.focus{padding:12px}.options{grid-template-columns:repeat(auto-fit,minmax(84px,1fr))}#progress{font-size:.875rem}.photo-stage{min-height:190px}#empty-photo{padding:16px 10px}.export-panel{gap:10px}.export-panel h2{font-size:1.4rem}.manual-move input{min-width:100px}.manual-move button{padding-inline:12px}.review-actions button{font-size:.75rem}.check{font-size:.875rem}}
@media(max-width:359px){.brand{font-size:.75rem}.brand small{font-size:.625rem}.brand-mark{width:34px;height:34px;font-size:25px}.version{max-width:66px}.panel{padding:12px}.manual-move{display:grid;grid-template-columns:minmax(0,1fr)}.manual-move input{width:100%}.manual-move button{width:100%}.review-actions{grid-template-columns:1fr 1fr}.review-actions #next{grid-column:1/-1;grid-row:1}.panel-heading .badge{max-width:none}.crop-fields{grid-template-columns:1fr}}
@media(max-height:480px) and (min-width:620px){header{display:none}.steps{padding:4px 0}.steps button{min-height:44px;padding-block:6px}.steps button > span:first-child{display:inline}.board-wrap{max-width:280px}.review-panel{padding:12px}.position-access{max-width:280px}}
/* Sticky navigation must never cover headings, errors or keyboard focus. */
html{scroll-padding-top:calc(var(--step-height,72px) + 12px)}#workspace-start,#source-heading,#review-heading,#export-heading,#focus{scroll-margin-top:8px}
body[data-step=review] .source-panel{top:calc(var(--step-height,72px) + 12px)}
.draft-state{font-size:.6875rem;text-align:right;letter-spacing:.04em;margin:6px 0 10px;color:var(--muted)}
.manual-move input{flex:1 1 8rem;min-width:min(100%,8rem)}.manual-move button{flex:1 1 6rem}
.review-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,6rem),1fr))}.review-actions button{overflow-wrap:normal}
.move-row button{white-space:normal;overflow-wrap:anywhere}
#notice{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;border:0;margin:0}
.jump-to-move{display:none}
input::placeholder,textarea::placeholder{color:#b7afa3;opacity:1}
input:not([type=checkbox]),textarea,select{border-color:#8b7d69}
.skip-link{transform:none;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap;padding:0}.skip-link:focus{clip-path:none;width:auto;height:auto;max-width:calc(100% - 24px);white-space:normal;padding:14px}
@media(max-width:619px){.jump-to-move{display:block;width:100%;margin:0 0 14px;font-size:.8125rem}.review-work .board-wrap{max-width:280px}.board-controls{margin-bottom:6px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s,border-color .12s}}
