:root{--paper:#f4f6f8;--surface:#fff;--soft:#f7f9fb;--ink:#182b3b;--muted:#627789;--line:#dbe3ea;--strong:#bdcbd6;--primary:#182b3b;--onprimary:#fff;--gold:#cfb27b;--goldwash:#f5f0e5;--selected:#edf2f7;--green:#216654;--greenwash:#e9f4ef;--amber:#835b1f;--amberwash:#faf1df;--red:#ac3d46;--redwash:#fcf0f0;--msg:#edf5f0;--shadow:0 10px 34px #14273712;color-scheme:light}
:root[data-theme=dark]{--paper:#0e161e;--surface:#17232e;--soft:#1b2b38;--ink:#e7eef6;--muted:#a5b6c6;--line:#2b3c4b;--strong:#425a6d;--primary:#d0b27c;--onprimary:#16212b;--gold:#d2b782;--goldwash:#383328;--selected:#293d4e;--green:#8cdbc1;--greenwash:#1c3c35;--amber:#e4c187;--amberwash:#3b3327;--red:#f5abab;--redwash:#40272f;--msg:#122b26;--shadow:0 12px 40px #0003;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.55 Inter,"Segoe UI",Arial,sans-serif}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.46}button,a,input,select,textarea{outline-offset:3px}*:focus-visible{outline:2px solid var(--gold)}button{border:0;background:none}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:27px;line-height:1.25;letter-spacing:-.7px}h2{font-size:24px;line-height:1.3;letter-spacing:-.45px}h3{font-size:15px;line-height:1.4}small,.small{font-size:12px}strong{font-weight:650}.muted{color:var(--muted)}.spacer{flex:1}.icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.row{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.end{justify-content:flex-end}.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:14px}.gap6{gap:6px}.hidden,[hidden]{display:none!important}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px;font-weight:600;white-space:nowrap}.btn:hover:not(:disabled){background:var(--selected)}.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--onprimary)}.btn.success{background:var(--greenwash);color:var(--green);border-color:var(--green)}.btn.danger{color:var(--red)}.btn.compact{min-height:31px;padding:5px 9px;font-size:11px}.iconbtn{width:36px;height:36px;border:1px solid var(--line);border-radius:8px;display:inline-grid;place-items:center;background:var(--surface)}.textbtn{color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:4px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:650;line-height:1.4;padding:5px 7px;border-radius:5px;white-space:nowrap;background:var(--selected);color:var(--muted)}.badge.good{background:var(--greenwash);color:var(--green)}.badge.warm{background:var(--amberwash);color:var(--amber)}.badge.note{background:var(--goldwash);color:var(--amber)}.tagline{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px}
.designbar{padding:6px 20px;min-height:35px;background:var(--goldwash);color:var(--ink);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;font-size:11px}.designbar strong{font-size:11px}.designbar button{font-size:11px;color:inherit;text-decoration:underline;text-underline-offset:3px}.designbar .group{display:flex;align-items:center;gap:12px;margin-left:auto}.header{height:68px;display:flex;align-items:center;gap:20px;padding:0 26px;background:var(--surface);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px}.brand-logo{width:43px;height:43px;background:#fff;padding:3px;border-radius:4px;object-fit:contain}.brand strong{display:block;font-size:13px;letter-spacing:-.2px}.brand span{display:block;font-size:11px;color:var(--muted)}.header-tools{margin-left:auto;display:flex;align-items:center;gap:10px}.theme{background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:7px 6px;font-size:11px}.role{font-size:12px;max-width:130px;background:none;border:0}.role-avatar{border-radius:50%;width:32px;height:32px;background:var(--soft);display:grid;place-items:center;font-size:11px;font-weight:700}.nav{display:flex;gap:25px;align-items:center;height:51px;padding:0 26px;background:var(--surface);border-bottom:1px solid var(--line);overflow:auto;scrollbar-width:none}.nav button{display:flex;align-items:center;gap:8px;height:100%;border-bottom:2px solid transparent;color:var(--muted);font-size:12px;white-space:nowrap;padding:0 2px}.nav button.active{color:var(--ink);font-weight:650;border-bottom-color:var(--gold)}.count{background:var(--selected);border-radius:4px;padding:0 5px;font-size:10px}.nav .active .count{background:var(--gold);color:#182b3b}.nav .tagline{margin-left:auto;white-space:nowrap;font-size:10px}.workspace{max-width:1680px;margin:auto;padding:22px 26px 26px;height:calc(100dvh - 154px);min-height:520px;display:flex;flex-direction:column;gap:18px}.pagehead{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.pagehead p{margin-top:5px;color:var(--muted);font-size:12px}.pagehead .right{margin-left:auto}.workgrid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;min-height:0;flex:1}.roster,.record{background:var(--surface);border:1px solid var(--line);border-radius:11px;min-width:0;overflow:hidden;display:flex;flex-direction:column}.roster-tools{padding:12px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--line)}.search{position:relative}.search .icon{position:absolute;left:10px;top:10px;width:15px;height:15px;color:var(--muted)}.search input{padding-left:32px!important;height:36px!important;font-size:12px!important}.input, input[type=text],input[type=email],input[type=date],input[type=number],input[type=tel],input[type=password],textarea,select.field-select{width:100%;border:1px solid var(--strong);border-radius:7px;background:var(--surface);padding:10px 11px;line-height:1.4;min-height:40px;font-size:13px}textarea{resize:vertical;min-height:82px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.82}input[readonly]{background:var(--soft);color:var(--muted)}.filter{font-size:11px;border:0;background:none;padding:3px 0;max-width:100%;color:var(--ink)}.listhead{font-size:10px;color:var(--muted);padding:8px 12px;background:var(--soft);display:flex;justify-content:space-between}.listbody{overflow:auto;flex:1}.person-row{width:100%;padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);border-left:3px solid transparent;display:flex;align-items:center;gap:9px;min-height:54px}.person-row:hover{background:var(--soft)}.person-row.active{background:var(--selected);border-left-color:var(--gold)}.person-row .name{font-size:12px;font-weight:650;display:block}.person-row .sub{font-size:10px;color:var(--muted);display:block;margin-top:1px}.person-row .mini-state{margin-left:auto;font-size:10px;color:var(--muted);text-align:right;max-width:83px}.person-row .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--gold);margin-right:4px}.rosterfoot{font-size:10px;color:var(--muted);padding:11px 12px;border-top:1px solid var(--line)}.record-head{display:flex;gap:14px;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line)}.avatar{height:52px;width:52px;display:grid;place-items:center;border-radius:12px;background:var(--selected);color:var(--muted);font-size:19px;font-weight:600;flex:none}.record-meta{font-size:11px;color:var(--muted);margin-top:5px;display:flex;gap:12px;flex-wrap:wrap}.reference{font-size:9px;color:var(--muted);margin-top:4px}.record-head .titleline{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.record-head .titleline h2{font-size:24px}.record-head .head-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.record-tabs{display:flex;gap:21px;padding:0 20px;border-bottom:1px solid var(--line);flex:none;overflow:auto;scrollbar-width:none}.record-tabs button{padding:14px 0 12px;color:var(--muted);font-size:11px;border-bottom:2px solid transparent;white-space:nowrap;display:flex;gap:7px;align-items:center}.record-tabs button.active{border-bottom-color:var(--gold);font-weight:650;color:var(--ink)}.record-tabs .icon{width:15px;height:15px}.scroll{overflow:auto;min-height:0;flex:1;padding:21px 22px;scrollbar-color:var(--strong) transparent}.recordfooter{display:flex;align-items:center;gap:10px;padding:13px 22px;border-top:1px solid var(--line);flex:none;background:var(--surface)}.recordfooter .hint{color:var(--muted);font-size:10px;flex:1}.section{padding:20px 0;border-bottom:1px solid var(--line)}.section:first-child{padding-top:0}.section:last-child{border:0}.section h3{display:flex;align-items:center;gap:8px;margin-bottom:12px}.section p{font-size:12px;color:var(--muted);margin-bottom:14px}.section .section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.section .section-head h3{margin:0}.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.span2{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>label,.field>span.label{font-size:12px;font-weight:600}.field .help{font-size:11px;color:var(--muted)}.required{color:var(--red);font-size:11px}.error-text{color:var(--red);font-size:12px}.error-box{background:var(--redwash);border:1px solid var(--red);border-radius:8px;padding:12px 14px;font-size:12px;margin-bottom:15px}.error-field{border-color:var(--red)!important}.seg{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.seg button{flex:1;border-radius:5px;padding:8px;font-size:12px;font-weight:600;color:var(--muted)}.seg button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0001}.prepare{border:1px solid var(--strong);border-radius:9px;background:var(--soft);padding:18px 18px 15px;margin-bottom:22px}.prepare-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:15px;align-items:center}.prepare h3{font-size:14px}.prepare p{font-size:12px;color:var(--muted);margin:4px 0 0}.link-ready{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.link-ready>div:first-child{flex:1;min-width:160px}.prep-controls{display:grid;grid-template-columns:1fr auto;gap:15px;align-items:end}.progressline{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);flex-wrap:wrap;margin-top:17px}.progressline>span{display:flex;align-items:center;gap:6px}.progressline b{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--strong);font-size:10px}.progressline .done{color:var(--green)}.progressline .done b{background:var(--greenwash);border-color:var(--green)}.progressline .current{color:var(--ink);font-weight:600}.progressline .current b{border-color:var(--gold);background:var(--goldwash)}.progressline em{width:20px;height:1px;background:var(--line)}.message-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:23px;align-items:start}.msg-preview{border:1px solid var(--line);border-radius:10px;overflow:hidden;position:sticky;top:0}.msg-head{padding:14px 15px;border-bottom:1px solid var(--line);display:flex;gap:8px;align-items:center;font-size:12px}.msg-head small{display:block;color:var(--muted);font-size:10px}.msg-body{padding:16px;background:var(--msg)}.bubble{padding:16px;background:var(--surface);border-radius:8px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}.msg-footer{padding:8px 14px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between}.hintbox{font-size:12px;padding:13px 14px;background:var(--selected);color:var(--muted);border-radius:8px;display:flex;gap:9px;align-items:flex-start}.hintbox.good{background:var(--greenwash);color:var(--green)}.hintbox.warn{background:var(--amberwash);color:var(--amber)}.roles{display:flex;flex-direction:column;gap:7px;font-size:12px}.roles label{display:flex;gap:8px;align-items:center}.roles input{accent-color:var(--primary)}.label-value{min-width:0}.label-value dt{font-size:11px;color:var(--muted);margin-bottom:5px}.label-value dd{font-size:13px;margin:0;overflow-wrap:anywhere}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 24px;margin:0}.detail-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.empty{text-align:center;padding:55px 20px;color:var(--muted)}.empty h3{color:var(--ink);margin:12px 0 6px}.empty .icon{width:36px;height:36px}.timeline{margin-top:4px}.timeitem{display:flex;gap:12px;padding-bottom:22px;position:relative}.timeitem:not(:last-child):before{content:"";width:1px;background:var(--line);position:absolute;left:13px;top:25px;bottom:0}.timeicon{width:27px;height:27px;flex:none;display:grid;place-items:center;background:var(--soft);border:1px solid var(--line);border-radius:50%;z-index:1;color:var(--muted)}.timeicon .icon{width:13px;height:13px}.timeitem strong{font-size:12px}.timeitem p{font-size:11px;color:var(--muted);margin:2px 0 0}.video{aspect-ratio:16/9;border-radius:9px;background:#182b3b;display:block;width:100%;margin-bottom:8px}.file-row{display:flex;align-items:center;gap:11px;padding:14px;border:1px solid var(--line);border-radius:8px;margin-top:9px}.file-row strong{font-size:12px;display:block}.file-row span{font-size:11px;color:var(--muted)}.file-row .btn{margin-left:auto}.secretbar{border:1px solid var(--line);background:var(--soft);border-radius:9px;padding:15px 17px;margin:12px 0}.reveal{display:flex;justify-content:space-between;align-items:center;gap:14px}.reveal p{font-size:11px;color:var(--muted);margin-top:3px}.answers{margin:0;padding:0;list-style:none}.answers li{display:flex;gap:20px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;align-items:flex-start}.answers li:last-child{border:0}.answers li .answer{font-weight:600;white-space:nowrap;color:var(--ink)}.correction-panel{padding:18px;border:1px solid var(--strong);background:var(--soft);border-radius:9px;margin:0 0 20px}.correction-panel p{font-size:12px;color:var(--muted);margin:5px 0 12px}.correction-sections{display:flex;flex-wrap:wrap;gap:8px 17px;font-size:12px;margin-bottom:12px}.correction-sections label{display:flex;gap:6px;align-items:center}.review-ribbon{padding:11px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;background:var(--greenwash);color:var(--green);font-size:11px}.mobile-roster{display:none}.document-layer{position:fixed;inset:0;background:#0d1b2c77;z-index:50;display:flex;align-items:center;justify-content:center;padding:18px}.document-card{width:min(700px,100%);max-height:85vh;overflow:auto;padding:28px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}.document-card h2{margin-bottom:15px}.document-card .section{padding:15px 0}.doc-sheet{padding:35px;background:#fff;color:#182b3b;min-height:350px;border:1px solid #dbe3ea;margin-top:20px}.doc-sheet h2{font-size:27px}.toast{position:fixed;left:50%;bottom:23px;transform:translateX(-50%);max-width:calc(100vw - 25px);padding:13px 19px;background:#294458;color:#fff;border:1px solid #536879;border-radius:9px;z-index:100;box-shadow:var(--shadow);font-size:12px;text-align:center}.toast:empty{display:none}.stars{color:var(--muted);padding:3px}.stars.on{color:var(--gold)}
/* Candidate-facing form: same brand, quieter composition. */
.candidate-shell{min-height:calc(100dvh - 35px);background:var(--paper)}.candidate-head{height:80px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:0 max(24px,calc((100vw - 1160px)/2))}.candidate-head>.tagline{margin-left:auto}.candidate-layout{max-width:1160px;margin:32px auto;padding:0 24px;display:grid;grid-template-columns:230px minmax(0,1fr);gap:38px}.steps{display:flex;flex-direction:column;gap:5px}.steps button{padding:11px 10px;text-align:left;display:flex;gap:12px;align-items:center;color:var(--muted);font-size:12px;border-radius:8px}.steps button b{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--strong);border-radius:50%;font-size:11px;flex:none}.steps button.active{background:var(--selected);color:var(--ink);font-weight:650}.steps button.active b{border-color:var(--gold);background:var(--goldwash)}.steps button.complete b{border-color:var(--green);color:var(--green);background:var(--greenwash)}.candidate-sidebar{padding-top:8px}.candidate-sidebar .role-summary{border-top:1px solid var(--line);margin-top:24px;padding:23px 10px;font-size:12px}.role-summary strong{display:block;margin-bottom:4px}.role-summary p{font-size:11px;color:var(--muted);margin:4px 0 15px}.candidate-main{min-width:0;max-width:800px}.candidate-intro{margin-bottom:21px;display:flex;justify-content:space-between;align-items:center;gap:16px}.candidate-intro h1{font-size:31px}.candidate-intro p{font-size:13px;color:var(--muted);margin-top:6px}.candidate-intro .stepcount{font-size:11px;color:var(--muted);white-space:nowrap}.formcard{padding:27px 29px;border-radius:11px;border:1px solid var(--line);background:var(--surface);box-shadow:0 2px 8px #14273704}.formcard .field{gap:7px}.formcard .grid2{gap:20px}.formcard input,.formcard select{min-height:44px;font-size:14px}.formcard textarea{font-size:14px}.formcard .section{padding:23px 0}.formcard .section:first-child{padding-top:0}.formcard p.intro{font-size:13px;color:var(--muted);margin-bottom:23px}.form-bottom{display:flex;gap:12px;align-items:center;padding:18px 0 5px}.form-bottom .save-status{font-size:11px;color:var(--muted);flex:1;text-align:center}.form-bottom .btn{min-height:43px}.form-footer{text-align:center;font-size:11px;color:var(--muted);margin:20px 0 30px}.q{padding:18px 0;border-bottom:1px solid var(--line)}.q:last-child{border:0}.q-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.q-text{font-size:13px;white-space:pre-line;max-width:580px;flex:1}.q .yn{display:flex;gap:6px;flex:none}.yn button{padding:7px 12px;border:1px solid var(--strong);border-radius:6px;font-size:12px;min-width:48px;min-height:36px}.yn button.active{background:var(--selected);border-color:var(--primary);font-weight:650}.q .follow{margin-top:14px}.source-help{border:1px solid var(--line);border-radius:7px;padding:11px 13px;font-size:12px;margin:14px 0}.source-help summary{cursor:pointer;font-weight:600}.source-help .help-copy{white-space:pre-line;font-size:12px;line-height:1.65;margin-top:13px}.checkline{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.6}.checkline input{width:17px;height:17px;min-height:0;flex:none;margin-top:4px;accent-color:var(--primary)}.plan-options{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.plan-options label{border:1px solid var(--line);padding:10px 12px;border-radius:7px;font-size:12px;display:flex;align-items:center;gap:8px}.plan-options input{min-height:0;width:15px;height:15px}.welcome{max-width:930px;display:grid;grid-template-columns:1.2fr 1fr;gap:35px;margin:55px auto;padding:0 25px}.welcome h1{font-size:39px;line-height:1.18;letter-spacing:-1px;margin:20px 0 17px}.welcome p{font-size:14px;color:var(--muted);max-width:480px}.welcome .intro-line{font-size:14px;font-weight:600;color:var(--ink)}.welcome-steps{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:25px}.welcome-steps .step-entry{display:flex;align-items:center;gap:12px;padding:10px 0;font-size:13px}.welcome-steps .step-entry .icon{color:var(--muted);width:17px}.welcome-note{margin:24px 0}.welcome-note .icon{color:var(--green)}.success-card{max-width:620px;margin:50px auto;text-align:center;padding:38px 30px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.success-symbol{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--greenwash);color:var(--green);margin:0 auto 21px}.success-symbol .icon{width:30px;height:30px}.success-card h1{font-size:29px;margin-bottom:12px}.success-card p{color:var(--muted);font-size:13px;margin-bottom:20px}.success-card .receipt{text-align:left;padding:16px;background:var(--soft);border-radius:8px;margin:20px 0}.receipt .row{font-size:12px;justify-content:space-between;margin:5px 0}.state-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.state-controls select{font-size:11px;border:1px solid var(--line);border-radius:4px;background:var(--surface);padding:2px 5px}.settings-grid{display:grid;grid-template-columns:210px 1fr;gap:25px}.settings-list{display:flex;flex-direction:column;gap:8px}.settings-list button{text-align:left;padding:10px;color:var(--muted);font-size:12px;border-radius:6px}.settings-list .active{background:var(--selected);color:var(--ink)}.saved-line{color:var(--green);font-size:11px;margin-top:8px}.workflow-footnote{font-size:11px;color:var(--muted);line-height:1.6}.step-progress{height:3px;background:var(--line)}.step-progress i{height:100%;display:block;background:var(--gold);transition:width .2s ease}.correction-notice{border-left:3px solid var(--gold);padding:14px 16px;background:var(--goldwash);font-size:12px;margin-bottom:20px;border-radius:5px}.correction-notice p{margin-top:5px;color:var(--muted)}.review-block{padding:17px 0;border-bottom:1px solid var(--line)}.review-block:first-child{padding-top:0}.review-block:last-child{border:0}.review-block header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.review-block h3{font-size:14px}.readonly-label{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:3px 6px;border-radius:4px}.status-checks{display:flex;flex-direction:column;gap:9px;margin-top:10px}.status-checks div{display:flex;justify-content:space-between;gap:20px;font-size:12px}.demo-art{padding:25px;border:1px dashed var(--strong);background:var(--soft);border-radius:8px;margin-bottom:16px}.demo-art .icon{width:40px;height:40px;color:var(--muted);display:block;margin:0 auto 13px}.demo-art p{text-align:center;font-size:11px;color:var(--muted)}
@media(min-width:1600px){.workspace{padding-top:26px}.workgrid{grid-template-columns:320px minmax(0,1fr)}.scroll{padding:24px 28px}.record-head{padding:22px 28px}.message-layout{gap:30px}}
@media(max-width:1150px){.header-tools .preview-text{display:none}.workgrid{grid-template-columns:244px minmax(0,1fr);gap:14px}.message-layout{grid-template-columns:1fr}.msg-preview{position:static}.record-head h2{font-size:21px!important}.record-head{padding:17px}.scroll{padding:18px}.record-tabs{gap:17px;padding:0 17px}.workspace{padding:18px}.recordfooter{padding:12px 17px}.detail-grid.three{grid-template-columns:1fr 1fr}.nav .tagline{display:none}.candidate-layout{gap:23px;grid-template-columns:205px minmax(0,1fr)}.formcard{padding:24px}.pagehead h1{font-size:25px}}
@media(max-width:760px){.designbar{padding:5px 12px;gap:6px;flex-wrap:wrap;min-height:34px}.designbar .optional{display:none}.designbar .group{gap:10px}.designbar .group .resettext{display:none}.header{height:62px;padding:0 14px;gap:10px}.header .brand-logo{width:35px;height:35px}.header-tools{gap:6px}.header-tools .role-avatar,.header-tools .preview-btn{display:none}.header-tools .iconbtn{width:31px;height:32px}.role{max-width:95px;font-size:11px}.theme{max-width:64px}.nav{height:47px;gap:19px;padding:0 14px}.nav button{font-size:11px;gap:5px}.nav .icon{width:15px}.workspace{height:auto;min-height:calc(100dvh - 150px);padding:18px 12px 22px;gap:15px}.pagehead{gap:10px}.pagehead h1{font-size:24px}.pagehead .right{margin:0}.workgrid{display:block}.roster{display:none}.workgrid.list-open .roster{display:flex;max-height:65vh;margin-bottom:14px}.record{min-height:560px}.record-head{padding:16px 14px;gap:10px}.record-head .avatar{height:44px;width:44px;font-size:16px}.record-head .titleline{gap:8px}.record-head .titleline h2{font-size:20px!important}.record-meta{font-size:10px;gap:6px}.record-head .head-actions{display:none}.record-tabs{gap:19px;padding:0 14px}.scroll{overflow:visible;padding:18px 14px}.recordfooter{position:sticky;bottom:0;z-index:6;padding:12px;background:var(--surface);flex-wrap:wrap;gap:7px}.recordfooter .hint{min-width:100%;font-size:10px}.recordfooter .btn{flex:1;font-size:11px;padding:9px}.mobile-roster{display:inline-flex}.prep-controls{grid-template-columns:1fr}.prepare{padding:15px}.prepare-head{align-items:flex-start}.prepare h3{font-size:13px}.grid3{gap:8px}.grid2{gap:13px}.detail-grid{gap:17px}.detail-grid.three{grid-template-columns:1fr 1fr}.progressline{gap:7px}.progressline em{width:10px}.progressline b{width:17px;height:17px}.msg-body{padding:12px}.candidate-head{height:64px;padding:0 16px;gap:10px}.candidate-head .brand-logo{width:36px;height:36px}.candidate-head .tagline{font-size:10px}.candidate-layout{display:block;margin:0;padding:0 14px}.candidate-sidebar{padding-top:12px}.steps{flex-direction:row;overflow:auto;padding-bottom:12px;gap:5px;scrollbar-width:none}.steps button{padding:8px;white-space:nowrap;font-size:11px;gap:7px}.steps button b{width:22px;height:22px}.candidate-sidebar .role-summary{display:none}.candidate-intro{margin:12px 0 19px;align-items:flex-start}.candidate-intro h1{font-size:25px}.candidate-intro .stepcount{display:none}.candidate-intro p{font-size:12px}.formcard{padding:20px 17px}.formcard .grid2{grid-template-columns:1fr;gap:18px}.formcard .span2{grid-column:auto}.formcard input,.formcard textarea,.formcard select{font-size:16px}.form-bottom{position:sticky;bottom:0;background:var(--paper);padding:14px 0;z-index:4;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:20px}.form-bottom .save-status{order:3;width:100%;flex:auto;text-align:center}.form-bottom .btn{flex:1}.q-top{gap:13px;flex-direction:column}.q-text{font-size:13px}.q .yn{align-self:flex-end}.q .yn button{min-width:67px;min-height:39px}.welcome{display:flex;flex-direction:column;margin:28px auto;gap:25px;padding:0 19px}.welcome h1{font-size:33px}.welcome-steps{padding:20px}.success-card{margin:30px 15px;padding:30px 22px}.success-card h1{font-size:26px}.form-footer{font-size:10px}.candidate-shell .designbar{height:auto}.settings-grid{display:block}.settings-list{flex-direction:row;overflow:auto;margin-bottom:15px}.settings-list button{white-space:nowrap}.document-card{padding:21px}.doc-sheet{padding:22px}.review-ribbon{padding:10px 14px}.correction-panel{padding:14px}.reveal{align-items:flex-start}.reveal .btn{font-size:10px;padding:6px}.header .brand span{font-size:10px}.header .brand strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.density-btn{font-size:9px;border:1px solid var(--line);padding:2px 5px;border-radius:4px;color:var(--muted);background:var(--surface)}.compact-roster .person-row{min-height:39px;padding:8px 10px;line-height:1.45}.compact-roster .person-row .sub{display:none}.compact-roster .mini-state{max-width:102px;white-space:nowrap;font-size:9px}.compact-roster .person-row .name{font-size:11px}.record-tabs{gap:18px}.record-tabs .icon{width:14px;height:14px}

.grid2>div,.section,.message-layout>div{min-width:0}
@media(max-width:760px){.record .scroll>.grid2{grid-template-columns:1fr}.record .grid2 .grid2{grid-template-columns:1fr}.record .scroll .grid2{gap:22px}.record .file-row{flex-wrap:wrap}.record .file-row .btn{flex:none}.record-tabs{gap:18px}.record-tabs button{font-size:11px}.candidate-main{padding-bottom:18px}.form-bottom{box-shadow:0 -8px 16px var(--paper)}.candidate-main .formcard{scroll-margin-bottom:135px}}
/* Production-only integration; accepted visual tokens and layout retained. */
.workspace{height:calc(100dvh - 119px)}.nav a{display:flex;align-items:center;gap:8px;height:100%;border-bottom:2px solid transparent;font-size:12px;text-decoration:none;white-space:nowrap;color:var(--muted)}.nav a.active{color:var(--ink);font-weight:650;border-color:var(--gold)}.space-top{margin-top:16px}.field-hint{font-size:11px;color:var(--muted);margin-top:6px}.field>label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.has-error input,.has-error textarea,.has-error select,.has-error.yn,.has-error.plan-options{border-color:var(--red)}.has-error .q-text{color:var(--red)}.error-text{font-size:12px;color:var(--red);margin-top:6px}.error-box{color:var(--red);background:var(--redwash);border:1px solid var(--red);border-radius:8px;padding:12px;margin-bottom:18px}.q-text{white-space:pre-line}.detail-grid dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.detail-grid dt{color:var(--muted);font-size:11px;margin-bottom:3px}.detail-grid{margin:0}.statusbar{padding:10px 16px;background:var(--goldwash);font-size:12px;border-bottom:1px solid var(--line)}.list-foot{padding:12px;border-top:1px solid var(--line)}.list-empty{padding:30px 18px;color:var(--muted)}.empty-state{padding:48px 24px;text-align:center}.empty-state p{margin:12px auto;max-width:500px;color:var(--muted)}.skeleton{padding:48px;text-align:center;color:var(--muted)}.badge-wrap{display:flex;gap:6px;flex-wrap:wrap}.record-tabs button{white-space:nowrap}.record-head{flex-wrap:wrap}.record-head .identity{flex:1;min-width:160px}.native-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#0008;padding:20px}.native-dialog{width:min(100%,900px);max-height:90dvh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px}.native-dialog>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.native-dialog iframe{border:0;width:100%;height:65dvh}.native-dialog video,.native-dialog img{width:100%;max-height:70dvh;object-fit:contain}.native-dialog .preview-steps{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}.native-dialog .preview-note{font-size:12px;margin-bottom:18px;color:var(--muted)}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--msg);padding:20px;border-radius:10px;font-size:13px}.job-items{list-style:none;padding:0;margin:0}.job-items li{padding:12px 0;border-bottom:1px solid var(--line)}.login-native{max-width:430px;margin:60px auto;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.login-native h1{margin:24px 0 12px}.login-native .field{margin:20px 0}.link-field{overflow-wrap:anywhere;word-break:break-all}.toast-native{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:150;background:var(--ink);color:var(--surface);border-radius:8px;padding:12px 18px;max-width:calc(100vw - 32px);box-shadow:var(--shadow);font-size:12px}.progress-nav{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.form-error{scroll-margin-top:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.form-bottom{gap:12px}.save-status[data-tone=error]{color:var(--red)}.muted-link{font-size:11px;color:var(--muted)}.record .scroll{min-height:0}.settings-grid textarea{min-height:210px}.checkbox-group{display:flex;flex-direction:column;gap:10px}.native-error-retry{margin-top:12px}.record-head .photo-button{padding:0;border-radius:50%;overflow:hidden}.pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.print-sensitive-warning{display:none}@media print{body{display:none!important}}@media(max-width:760px){.workspace{height:auto;min-height:calc(100dvh - 109px)}.candidate-head .tagline{display:none}.nav a{font-size:11px}.statusbar{padding:10px 14px}.native-dialog{padding:18px}.native-modal{padding:10px}.pagehead .right{margin-left:auto}.header-tools .brand-sub{display:none}.workspace .workgrid.list-open .record{display:none}.native-dialog .grid2{grid-template-columns:1fr}.login-native{margin:25px 14px}.recordfooter{position:static}.header-tools .btn{font-size:10px;min-height:32px;padding:6px 8px}.space-top{margin-top:13px}}

/* Mobile header follows the accepted compact icon/settings treatment. */
@media(max-width:760px){.header{height:64px;padding:0 12px;gap:8px}.header .brand{flex-shrink:0;gap:7px}.header .brand strong{font-size:12px;white-space:nowrap}.header .brand span{display:none}.header .brand-logo{width:36px;height:36px}.header-tools{gap:6px;min-width:0}.header-tools .theme{width:68px;flex:none}.header-tools .iconbtn{width:32px;height:32px}.header-tools .btn{padding:5px 7px}.candidate-head{gap:8px}.candidate-head .brand{min-width:0}.candidate-head .brand span{display:none}.candidate-head .brand strong{white-space:nowrap;font-size:12px}.candidate-head .brand-logo{width:34px;height:34px}.candidate-head .theme{width:70px}.prepare-head{flex-wrap:wrap}.prep-controls{min-width:0}.record .scroll>*{min-width:0}.message-grid,.builder-grid{min-width:0}.toast-native{overflow-wrap:anywhere}}
/* Usability update: stable forms, native date controls and complete preview navigation. */
.candidate-main input[type=date]{min-width:0;min-height:44px;color-scheme:inherit}
.candidate-main .field input,.candidate-main .field select,.candidate-main .field textarea{scroll-margin-top:85px}
.candidate-main .form-bottom{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:16px 0 max(16px,env(safe-area-inset-bottom));z-index:5}
.candidate-main .save-status{min-width:135px;line-height:1.4}
#save-error-slot:empty{display:none}
.preview-title{margin:20px 0 18px;outline:none}
.preview-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:-28px;background:var(--surface);border-top:1px solid var(--line);margin-top:24px;padding:16px 0;z-index:2}
.preview-navigation span{font-size:12px;color:var(--muted);text-align:center}
.native-dialog .preview-steps button[aria-current=step]{font-weight:700}
.native-dialog video{display:block;height:auto;min-height:0;object-fit:contain;background:#10151a}
@media(max-width:760px){.candidate-main input,.candidate-main select.field-select,.candidate-main textarea{font-size:16px}.candidate-main .form-bottom{gap:8px}.candidate-main .save-status{min-width:0;max-width:105px;font-size:11px}.candidate-main .form-bottom .btn{font-size:12px;padding:10px 12px}.preview-navigation{bottom:-18px;gap:8px}.preview-navigation span{font-size:11px}.preview-navigation .btn{font-size:12px}}
@media(max-width:760px){.candidate-head .theme{width:88px}.candidate-main .form-bottom{position:static;display:grid;grid-template-columns:auto 1fr;padding:14px 0;background:transparent;border-top:0}.candidate-main .form-bottom .save-status{grid-column:1/-1;grid-row:1;max-width:none;min-height:16px;text-align:center}.candidate-main .form-bottom [data-action=back]{grid-column:1;grid-row:2}.candidate-main .form-bottom [data-action=next],.candidate-main .form-bottom [data-action=submit]{grid-column:2;grid-row:2;justify-self:end}.candidate-main .formcard{margin-bottom:0}}
/* Keep primary labels legible under hover/focus in both themes. */
.btn.primary:hover:not(:disabled){background:var(--primary);color:var(--onprimary);filter:brightness(.94)}
