/* NARLA-XAVIER-345: the design approved 08.11.2026 (white, #1F2328 text, green #1F883D actions, Inter, the Atria mark).
   Visual only: every class, behaviour, text and route is kept. Inter 4.1, SIL OFL 1.1 (static/fonts/Inter-LICENSE.txt). */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/Inter-Regular.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/Inter-Medium.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/Inter-SemiBold.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/Inter-Bold.woff2) format("woff2")}
:root{--bg:#FFFFFF;--surface:#F6F8FA;--text:#1F2328;--text2:#59636E;--border:#D1D9E0;--green:#1F883D;--green-h:#1A7F37;--link:#0969DA;
--ok-bg:#DAFBE1;--ok:#116329;--warn-bg:#FFF8C5;--warn:#7D4E00;--bad-bg:#FFEBE9;--bad:#A40E26;--focus:#0969DA}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#1F2328;background:#FFFFFF;line-height:1.5;font-size:14px;-webkit-font-smoothing:antialiased}
a{color:#0969DA}a:hover{color:#0550AE}
h1,h2,h3{margin:0;font-weight:600;color:#1F2328}h1{font-size:24px;line-height:1.25}h2{font-size:16px}h3{font-size:14px}
b,strong{font-weight:600}
.muted{color:#59636E}.small{font-size:13px}.right{text-align:right}.grow{flex:1}.vh{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:6px;font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;border:1px solid transparent;white-space:nowrap;line-height:1.2}
.btn.sm{min-height:44px;padding:0 14px;font-size:14px}
.btn.dark{background:#1F883D;color:#FFF;border-color:rgba(31,35,40,.15)}.btn.dark:hover{background:#1A7F37;color:#FFF}
.btn.ghost{background:#F6F8FA;color:#1F2328;border-color:#D1D9E0}.btn.ghost:hover{background:#EFF2F5;color:#1F2328}
.btn:disabled{opacity:.6;cursor:default}
.linkbtn{background:none;border:0;padding:0;font:inherit;color:#0969DA;text-decoration:underline;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}
.alert{background:#FFEBE9;color:#A40E26;border:1px solid #FFCECB;border-radius:6px;padding:12px 14px;margin:0}
.info{background:#F6F8FA;border:1px solid #D1D9E0;border-radius:6px;padding:12px 14px;margin:0}
.stack{display:flex;flex-direction:column;gap:18px}
.row{display:flex;gap:12px;align-items:center}.row.wrap{flex-wrap:wrap}.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
::placeholder{color:#6E7781;opacity:1}
.field input,.field select,.inp,select{min-height:44px;padding:0 12px;border:1px solid #D1D9E0;border-radius:6px;font:inherit;font-size:14px;font-weight:400;background:#FFF;color:#1F2328;width:100%}
.field input:focus,.field select:focus,.inp:focus,select:focus,textarea:focus{outline:2px solid #0969DA;outline-offset:-1px;border-color:#0969DA}
textarea{font:inherit;border:1px solid #D1D9E0;border-radius:6px;padding:8px 12px;color:#1F2328}
.inp{width:auto;flex:1}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#59636E}.check input{margin-top:3px;width:18px;height:18px;accent-color:#1F883D}
.inline{display:inline}
/* auth */
.auth{min-height:100vh;display:flex;flex-wrap:wrap;background:#FFF}
.auth-side{flex:1 1 460px;background:#F6F8FA;border-right:1px solid #D1D9E0;color:#1F2328;padding:56px 64px;display:flex;flex-direction:column;justify-content:space-between;gap:40px}
.auth-logo{display:flex;align-items:center;gap:10px;color:#1F2328;text-decoration:none;font-size:20px;font-weight:700;min-height:44px;align-self:flex-start}
.auth-pitch{max-width:520px;display:flex;flex-direction:column;gap:20px}.auth-pitch h1{font-size:36px;line-height:1.15;font-weight:700;letter-spacing:-.01em}.auth-pitch p{margin:0;font-size:16px;color:#59636E}
.auth-foot{margin:0;font-size:14px;color:#59636E}
.auth-main{flex:1 1 460px;padding:56px 64px;display:flex;align-items:center;justify-content:center}
.auth-box{width:100%;max-width:400px;display:flex;flex-direction:column;gap:18px}.auth-box h2{font-size:24px;font-weight:600}.auth-box p{margin:0}
/* app: 64 px header (mark + Atria, navigation, institution and avatar), content below */
.app{min-height:100vh;display:flex;flex-direction:column}
.side{height:64px;flex:none;background:#FFF;border-bottom:1px solid #D1D9E0;padding:0 24px;display:flex;flex-direction:row;align-items:center;gap:24px;position:relative}
.side-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:#1F2328;font-size:18px;font-weight:700;min-height:44px;flex:none}
.side-nav{display:flex;flex-direction:row;gap:4px;align-items:center;min-width:0}
.side-nav a{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border-radius:6px;color:#59636E;text-decoration:none;font-size:14px;font-weight:500;white-space:nowrap;position:relative}
.side-nav a:hover{background:#F6F8FA;color:#1F2328}
.side-nav a.on{color:#1F2328;font-weight:600}
.side-nav a.on::after{content:"";position:absolute;left:8px;right:8px;bottom:-10px;height:2px;border-radius:2px;background:#1F883D}
.side-user{display:flex;align-items:center;gap:10px;padding:0 4px;min-height:44px;text-decoration:none;color:#1F2328;flex:none}
.avatar{width:32px;height:32px;border-radius:50%;background:#59636E;color:#FFF;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:12px;flex:none}
.who{display:flex;flex-direction:column;min-width:0;max-width:220px;text-align:right;line-height:1.25}.who b{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.who small{font-size:12px;color:#59636E;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side form{padding:0;flex:none}.side .linkbtn{min-height:44px;font-size:13px;color:#59636E}
.side-lang{flex:none}
.main{flex:1;min-width:0;width:100%;max-width:1280px;margin:0 auto;padding:32px 32px 48px;display:flex;flex-direction:column;gap:24px}
.head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.head p{margin:6px 0 0}
.back{text-decoration:none;font-size:14px;display:inline-flex;align-items:center;min-height:44px}
.card{background:#FFF;border:1px solid #D1D9E0;border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:16px}
.card.soft{background:#F6F8FA;border-color:#D1D9E0}.card p{margin:0}.card ul{margin:0;padding-left:18px;font-size:14px}
.note-warn{flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center;background:#FFF8C5;border-color:#D4A72C;color:#3B2300}
.bar{height:8px;border-radius:4px;background:#E8ECF0;overflow:hidden}.bar div{height:100%;background:#1F883D}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.grid5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.stat{gap:6px}.stat b{font-size:28px;font-weight:600;line-height:1.2}.stat.sm b{font-size:24px}.stat a{font-size:13px}.big{font-size:28px}
.pill{display:inline-block;padding:2px 10px;border-radius:999px;background:#F6F8FA;color:#59636E;border:1px solid #D1D9E0;font-size:12px;font-weight:500;line-height:20px;white-space:nowrap;align-self:flex-start}
.pill.dark{background:#DDF4FF;color:#0550AE;border-color:#B6E3FF}
.table-card{padding:0;overflow-x:auto;gap:0}.table-card>h2,.table-card>p,.table-card>.row-between,.table-card>form{padding:20px 20px 16px}.table-card>.row-between h2{padding:0}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
th{padding:10px 20px;background:#F6F8FA;border-top:1px solid #D1D9E0;border-bottom:1px solid #D1D9E0;color:#59636E;font-size:12px;font-weight:600;text-align:left}
td{padding:14px 20px;border-bottom:1px solid #D1D9E0;vertical-align:top}tr:last-child td{border-bottom:0}
.finding{display:grid;grid-template-columns:150px 1fr 220px auto;gap:16px;padding:16px 20px;border-top:1px solid #D1D9E0;align-items:start;font-size:14px}
.f-field{font-size:14px;line-height:1.4;font-weight:600;color:#1F2328}.f-src{font-size:13px;color:#59636E}
.split{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}.grow2{flex:999 1 560px;min-width:0}.side-col{flex:1 1 280px;min-width:0}
.drop{display:flex;flex-direction:column;align-items:center;gap:6px;border:1px dashed #8C959F;border-radius:8px;padding:28px 20px;text-align:center;background:#F6F8FA;cursor:pointer;font-weight:400}
.drop.over{border-color:#1F883D;background:#DAFBE1}.drop small{color:#59636E}
.files{list-style:none;margin:8px 0 0;padding:0 !important;display:flex;flex-direction:column;gap:8px;font-weight:400}
.files li{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #D1D9E0;border-radius:6px;font-size:14px}
.files li span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.files small{color:#59636E}
.files .ok{font-size:12px;font-weight:600}.files .err{font-size:12px;font-weight:600;color:#A40E26}
.files progress{width:120px;accent-color:#1F883D}
.adm{border-top:1px solid #D1D9E0;padding:12px 0}.adm form{margin-top:10px}
@media (max-width:1100px){.side{gap:12px;padding:0 16px}.who{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media (max-width:900px){.side{height:auto;flex-wrap:wrap;padding:8px 16px 0;row-gap:0}.side-nav{order:5;flex:1 0 100%;overflow-x:auto;scrollbar-width:none;margin:0 -8px}.side-nav::-webkit-scrollbar{display:none}
.side-nav a.on::after{bottom:0}.grow{flex:1}
.main{padding:20px 16px 40px}.grid2,.grid3{grid-template-columns:1fr}.grid5{grid-template-columns:repeat(2,1fr)}.finding{grid-template-columns:1fr}.auth-side,.auth-main{padding:32px 20px}.auth-side{border-right:0;border-bottom:1px solid #D1D9E0}.auth-pitch h1{font-size:28px}}
.lang-switch{position:absolute;top:16px;right:16px;font-size:12px;font-weight:700;letter-spacing:.04em;color:#59636E;text-decoration:none;border:1px solid #D1D9E0;border-radius:6px;padding:4px 8px;background:#FFF}
.lang-switch:hover{background:#F6F8FA}
.auth-main,.main{position:relative}
/* NARLA-XAVIER-265: source links on the note, in-portal viewer, scanned-page list */
.src-link{color:#0969DA;text-decoration:underline;text-underline-offset:2px}.src-link:hover{color:#1F2328}
.scanned-list{margin:8px 0 12px 18px;font-size:14px}
.quote-card .quote{margin:6px 0 0;font-size:15px}
.viewer-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.viewer-bar .grow{flex:1}
.viewer-bar input{width:64px;padding:4px 6px}
.viewer-scroll{overflow:auto;max-height:78vh;background:#F6F8FA;border:1px solid #D1D9E0;border-radius:8px}
.viewer-page{position:relative;margin:0 auto}.viewer-page canvas{display:block}
.viewer-marks{position:absolute;inset:0;pointer-events:none}
.viewer-mark{position:absolute;background:rgba(255,214,0,.38);outline:2px solid rgba(214,150,0,.9);border-radius:2px}
.sheet{border:1px solid #D1D9E0;border-radius:10px;padding:16px 18px;display:flex;flex-direction:column;gap:12px;margin:0}
.sheet legend{font-weight:700;padding:0 6px}.sheet-h{font-size:14px;margin:6px 0 0}.ok{color:#116329}
.sheet-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.sheet-ref{padding:0 20px 14px}
/* NARLA-XAVIER-277: "Show in file" (anchors) and the pdf.js text layer (rules from pdfjs-dist 6.5.438 web/pdf_viewer.css, Apache-2.0) */
.anchored-field label{display:flex;flex-direction:column;gap:6px}
.anchor-line{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;font-weight:400}
.anchor-snip{color:#1F2328}
.anchor-actions{align-items:center;gap:10px;margin-bottom:8px}.anchor-actions p{margin:0}
.textLayer{color-scheme:only light;position:absolute;text-align:initial;inset:0;overflow:clip;opacity:1;line-height:1;letter-spacing:normal;word-spacing:normal;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;caret-color:CanvasText;z-index:0;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));--min-font-size-inv:calc(1 / var(--min-font-size))}
.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%;user-select:text}
.textLayer > :not(.markedContent),.textLayer .markedContent span:not(.markedContent){z-index:1;--font-height:0;font-size:calc(var(--text-scale-factor) * var(--font-height));--scale-x:1;--rotate:0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}
.textLayer .markedContent{display:contents}
.textLayer ::selection{background:rgba(0,90,220,.3);color:transparent}
.textLayer br::selection{background:transparent}
.textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:0;cursor:default;user-select:none}
.textLayer.selecting .endOfContent{top:0}
.viewer-page .viewer-marks{z-index:2}

/* NARLA-XAVIER-281: another object near an anchored value, and the architect's confirmation */
.anchor-panel{border-left:3px solid #1F883D;padding:10px 14px;margin:12px 0;background:#F6F8FA}
.anchor-panel[hidden]{display:none}.anchor-panel h2{font-size:1.05rem;margin:0 0 6px}.anchor-panel h3{margin:10px 0 4px}
.anchor-ctx{background:#fff;border:1px solid #D1D9E0;padding:8px 10px;max-height:340px;overflow:auto;font:13px/1.5 ui-monospace,Menlo,monospace}
.ctx-line{white-space:pre-wrap;color:#59636E}.ctx-line.own{color:#1F2328;background:#FFF8C5}.ctx-line.title{font-weight:600}
.ctx-line mark{background:none;color:inherit;padding:0 1px;border-radius:2px}
.ctx-line .m-anchor{background:rgba(255,214,0,.55);outline:1px solid rgba(214,150,0,.9)}
.ctx-line .m-warn{background:#FFEBE9;color:#A40E26;font-weight:600;text-decoration:underline wavy #CF222E}
.anchor-warn{list-style:none;padding:0;margin:4px 0}.anchor-warn li{margin:2px 0}.anchor-warn .wtype{color:#A40E26}
.anchor-choices fieldset{border:1px solid #D1D9E0;padding:6px 10px}.anchor-choices .radio{display:block;font-weight:400}
.anchor-choices input[type=text]{margin-top:4px;width:100%}.anchor-todo{color:#7D4E00}
/* NARLA-XAVIER-282: the dossier reader and the completeness view */
.reader{display:flex;flex-direction:column;gap:10px}
.r-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px}.r-tools .grow{flex:1}
.r-layers{border:0;margin:0;padding:0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.r-layers legend{float:left;margin-right:6px}
.r-legend{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.r-legend .k{display:inline-block;width:12px;height:12px;border-radius:3px;margin-left:6px}
.k.verified,.st-verified .dot{background:#1F883D}.k.clarify,.st-clarify .dot{background:#9A6700}.k.contradiction,.st-contradiction .dot{background:#CF222E}.k.anchor{background:transparent;outline:2px dashed #0969DA}
.r-grid{display:grid;grid-template-columns:260px minmax(0,1fr) 300px;gap:10px;align-items:start}
.r-rail,.r-side{padding:12px;max-height:84vh;overflow-y:auto;overflow-x:hidden;position:sticky;top:10px;min-width:0}
.r-side .row,.r-rail .row{flex-wrap:wrap;gap:6px}.r-side .btn{white-space:normal}#r-search input{flex:1;min-width:0}
.r-pane .viewer-bar{gap:4px}.r-pane .viewer-bar .btn.sm{padding:4px 8px}
.r-tabs{display:flex;gap:4px;margin-bottom:8px}.r-tabs .tab{flex:1;border:1px solid #D1D9E0;background:#fff;border-radius:8px;padding:6px 4px;cursor:pointer;font:inherit;font-size:13px}
.r-tabs .tab.on{background:#1F2328;color:#fff;border-color:#1F2328}
.r-files,.r-checks,.r-hits,.r-here,.r-srcs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.r-file,.r-check,.r-hit{width:100%;text-align:left;background:#fff;border:1px solid #D1D9E0;border-radius:8px;padding:6px 8px;cursor:pointer;font:inherit;font-size:13px;line-height:1.35}
.r-file b,.r-check b{word-break:break-word}.r-files li.on>.r-file,.r-check[aria-current]{border-color:#1F2328;box-shadow:inset 3px 0 0 #1F2328}
.r-check .dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.r-rev{display:block;color:#59636E}
.r-thumbs{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:6px 0}
.r-thumb{border:1px solid #D1D9E0;background:#F6F8FA;border-radius:6px;padding:3px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:90px}
.r-thumb canvas{max-width:100%;height:auto;background:#fff}.r-thumb.on{border-color:#1F2328;box-shadow:inset 0 0 0 2px #1F2328}
.r-panes{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.reader.compare .r-panes{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.r-pane{background:#fff;border:1px solid #D1D9E0;border-radius:12px;padding:10px}.r-pane.active{border-color:#1F2328}
.r-pane .viewer-bar select{max-width:150px}.r-scroll{max-height:76vh}.r-scroll:focus-visible{outline:2px solid #1F2328;outline-offset:2px}
.r-mark.st-verified{background:rgba(31,136,61,.22);outline:2px solid rgba(31,136,61,.9)}
.r-mark.st-clarify{background:rgba(191,135,0,.25);outline:2px solid rgba(191,135,0,.95)}
.r-mark.st-contradiction{background:rgba(207,34,46,.22);outline:2px solid rgba(207,34,46,.95)}
.r-mark.sel{outline-width:3px;box-shadow:0 0 0 3px rgba(31,35,40,.25)}
.r-mark.anchor{background:rgba(9,105,218,.12);outline:2px dashed #0969DA}
.r-mark.search{background:rgba(255,214,0,.45);outline:1px solid rgba(214,150,0,.9)}.r-mark.search.sel{outline:3px solid rgba(214,150,0,1)}
.r-pin{position:absolute;transform:translate(-50%,-50%);min-width:22px;height:22px;border-radius:11px;background:#1F2328;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;padding:0 5px;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.r-side h2.small-h{font-size:14px;margin:6px 0}.r-review fieldset{border:0;padding:0;margin:0}
.pill.st-verified{background:#DAFBE1;color:#116329}.pill.st-clarify{background:#FFF8C5;color:#7D4E00}.pill.st-contradiction{background:#FFEBE9;color:#A40E26}
.r-hit span{color:#59636E}.doc-checks{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
.comp-table{width:100%;border-collapse:collapse;font-size:14px}.comp-table th,.comp-table td{border-bottom:1px solid #D1D9E0;padding:8px;text-align:left;vertical-align:top}
.comp-table tr.missing th{color:#A40E26}
@media (max-width:1100px){.r-grid{grid-template-columns:1fr}.r-rail,.r-side{position:static;max-height:none}.reader.compare .r-panes{grid-template-columns:1fr}}
/* NARLA-XAVIER-297: guided start, value read from the selection, candidate highlight */
.start-card{border-color:#1F883D}
.start-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.start-steps li{display:flex;align-items:center;gap:12px;font-size:14px}
.start-n{flex:0 0 28px;height:28px;border-radius:50%;background:#F6F8FA;display:flex;align-items:center;justify-content:center;font-weight:700}
.start-steps li.done .start-n{background:#1F883D;color:#FFF}
.opt-code summary{cursor:pointer;color:#59636E}
.fill-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fill-row input{max-width:200px}
.fill-choices{display:flex;flex-wrap:wrap;gap:6px}
.viewer-cand{position:absolute;border:2px dashed #9A6700;background:rgba(212,167,44,.18);border-radius:3px;pointer-events:none}
.cand-link{white-space:nowrap}
.join-card{border-color:#1F883D}.join-card .row-between{gap:16px;align-items:center}.ok-alert{background:#DAFBE1;color:#116329;border-color:#ACEEBB}ul.plain{list-style:none;padding-left:0}ul.plain li{padding:6px 0}.cand-wait{font-style:italic}
/* NARLA-XAVIER-301: irreversible steps (removing a member) and the confirmation page */
.btn.danger{background:#CF222E;color:#FFF;border-color:#CF222E}
.confirm-text{font-size:16px;line-height:1.55}
.member-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
/* NARLA-XAVIER-341 */
.skip{position:absolute;left:8px;top:-60px;z-index:100;background:#1F2328;color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none}
.skip:focus{top:8px;outline:3px solid #0969DA;outline-offset:2px}
main:focus{outline:none}
.field-err{display:block;color:#A40E26;margin-top:4px}
[aria-invalid="true"]{border-color:#A40E26!important;box-shadow:0 0 0 2px #FFEBE9}
.linkbtn.danger,.btn.ghost.danger{color:#A40E26;background:#fff;border-color:#FFCECB}.btn.danger:not(.ghost){background:#A40E26;color:#fff}
.kbd-anchor{border-top:1px solid #D1D9E0;margin-top:12px;padding-top:12px}
.kbd-anchor ol{margin:6px 0;padding-left:20px}.kbd-anchor li{margin:4px 0}
.kbd-anchor li button[aria-pressed="true"]{outline:2px solid #1F2328;background:#F6F8FA}
.viewer-scroll:focus-visible,.textLayer:focus-visible{outline:2px solid #0969DA;outline-offset:2px}
.lang-switch{z-index:5}
.auth-main>.head{padding-right:56px}.main>.head .muted{overflow-wrap:anywhere}
.viewer-kbd{position:absolute;border:2px solid #1F2328;background:rgba(31,35,40,.12);border-radius:3px;pointer-events:none}

/* 342 (335 polish 18): a visible keyboard focus on every control, distinct from the reader's selected page (inset) */
.btn:focus-visible,.tab:focus-visible,.r-thumb:focus-visible,.viewer-bar input:focus-visible,.viewer-bar select:focus-visible,.side a:focus-visible{outline:2px solid #0969DA;outline-offset:2px}
.sheet-grp{border-top:1px solid #D1D9E0;padding-top:6px}.sheet-grp>summary{cursor:pointer;padding:6px 0}.sheet-grp>summary:focus-visible{outline:2px solid #0969DA;outline-offset:2px}
.sheet-grp>.grid2{margin-top:8px}
/* 342 (335 fix 11): on a phone the dossier page has no sideways scroll: action rows wrap, the hidden file input is clipped */
.vh{width:1px!important;height:1px!important;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media (max-width:600px){.row{flex-wrap:wrap}.row .btn{flex:1 1 auto}}
@media (max-width:600px){.cu-props thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cu-props,.cu-props tbody,.cu-props tr,.cu-props td{display:block;width:auto;min-width:0}.cu-props tr{border-top:1px solid #D1D9E0;padding:8px 0}
.cu-props td{border:0;padding:2px 0;overflow-wrap:anywhere}.cu-props td.cu-name{font-weight:700}
.cu-props td[data-th]::before{content:attr(data-th) ": ";color:#59636E;font-size:12px}}
/* 345: language link in the header (app) or top right (sign-in), 44 px targets, one blue focus ring everywhere */
.lang-switch{display:inline-flex;align-items:center;min-height:44px;min-width:44px;justify-content:center;font-size:12px;font-weight:600;color:#59636E;background:#FFF;border-color:#D1D9E0}
.side .lang-switch{position:static;padding:0 10px}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:not(main):focus-visible{outline:2px solid #0969DA;outline-offset:2px}
.r-tabs .tab{min-height:44px;font-weight:500;border-color:#D1D9E0;border-radius:6px;color:#59636E}.r-tabs .tab.on{background:#FFF;color:#1F2328;border-color:#1F883D;box-shadow:inset 0 -2px 0 #1F883D;font-weight:600}
.r-file,.r-check,.r-hit{min-height:44px;border-radius:6px}
.r-files li.on>.r-file,.r-check[aria-current]{border-color:#1F883D;box-shadow:inset 3px 0 0 #1F883D}
.r-thumb{border-radius:6px;background:#F6F8FA}.r-thumb.on{border-color:#1F883D;box-shadow:inset 0 0 0 2px #1F883D}
.r-pane{border-radius:8px}.r-pane.active{border-color:#1F883D}
.r-pin{background:#1F2328}
.viewer-scroll{background:#F6F8FA;border-color:#D1D9E0}
.pill.dark{background:#F6F8FA;color:#1F2328;border-color:#D1D9E0;font-weight:600}
.pill.st-verified{border-color:#ACEEBB}.pill.st-clarify{border-color:#EAC54F}.pill.st-contradiction{border-color:#FFCECB}
.anchor-panel{border:1px solid #D1D9E0;border-radius:8px;background:#FFF;padding:16px}
.anchor-ctx{background:#F6F8FA;border-color:#D1D9E0;border-radius:6px}
.anchor-choices fieldset{border-color:#D1D9E0;border-radius:6px}
.anchor-choices .radio{min-height:44px;display:flex;align-items:center;gap:8px}
.sheet{border-color:#D1D9E0;border-radius:8px}
.sheet-grp>summary{min-height:44px;display:flex;align-items:center}
.start-n{background:#F6F8FA;border:1px solid #D1D9E0}.start-steps li.done .start-n{background:#1F883D;border-color:#1F883D;color:#FFF}
.start-card{border-color:#D1D9E0}
.comp-table th{background:#F6F8FA}
.skip{background:#1F2328}.skip:focus{outline-color:#0969DA}
.ok{color:#116329}
@media (max-width:900px){.side .lang-switch{min-width:44px}}
/* 345: form controls keep a 3:1 boundary against white and the grey surface (WCAG 1.4.11) */
.field input,.field select,.inp,select,textarea,.viewer-bar input,.anchor-choices input[type=text]{border-color:#818B98}
/* 345: the reader's tools on one row (layers, legend, then the finding buttons on the right), as in the mockup */
.r-tools.card{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 16px}
.r-tools .check{align-items:center}.r-tools .check input{margin-top:0}
.r-layers legend{padding:0;margin-right:10px;line-height:44px}
.r-pane .viewer-bar .btn.sm{min-width:44px}
/* 347 (AUDIT-345 MICĂ): every control reaches 44 px (the skip-steps button, checkbox/radio labels, summaries, inputs, small buttons, stand-alone links) */
.check,label.radio{min-height:44px;align-items:center}
label:has(>input[type=checkbox]):not(.check):not(.radio),label:has(>input[type=radio]):not(.check):not(.radio){display:inline-flex;align-items:center;gap:6px;min-height:44px}
.check input{margin-top:0}
summary{min-height:44px;line-height:44px}
.sheet-grp>summary{line-height:1.3}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not(.vh),select,textarea{min-height:44px;box-sizing:border-box}
.btn.sm,.btn{min-width:44px}
.side-user{min-width:44px}
.src-link,.card.stat>a{display:inline-flex;align-items:center;min-height:44px}
/* NARLA-XAVIER-351: public pages (homepage, Terms, Privacy) */
.pub{min-height:100vh;display:flex;flex-direction:column}
.pub-head{height:64px;border-bottom:1px solid #D1D9E0;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.pub-nav{display:flex;align-items:center;gap:8px}
.lang-pub{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;color:#59636E;text-decoration:none;font-weight:600}
.pub-main{flex:1;width:100%;max-width:960px;margin:0 auto;padding:56px 24px 64px;display:flex;flex-direction:column;gap:56px}
.pub-main:focus{outline:none}
.pub-hero{display:flex;flex-direction:column;gap:20px;align-items:flex-start}
.pub-hero h1{font-size:40px;line-height:1.15;font-weight:700;letter-spacing:-.01em;max-width:780px}
.pub-lead{margin:0;font-size:18px;color:#1F2328;max-width:760px}
.pub-badge{margin:0;display:inline-block;background:#DAFBE1;color:#116329;border:1px solid #ACEEBB;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:600}
.pub-example{margin:0;font-size:15px;color:#59636E;border-left:3px solid #1F883D;padding:4px 0 4px 14px;max-width:760px}
.pub-sec{display:flex;flex-direction:column;gap:16px}
.pub-sec h2{font-size:24px;font-weight:700}
.pub-sec p{margin:0;font-size:16px;max-width:780px}
.pub-sec ul{margin:0;padding-left:20px;font-size:16px;display:flex;flex-direction:column;gap:8px;max-width:780px}
.pub-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pub-steps li{border:1px solid #D1D9E0;border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:10px}
.pub-steps h3{font-size:16px}.pub-steps p{font-size:15px;color:#59636E}
.pub-num{width:32px;height:32px;border-radius:50%;background:#1F883D;color:#FFF;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.pub-def{background:#F6F8FA;border:1px solid #D1D9E0;border-radius:8px;padding:28px}
.pub-foot{border-top:1px solid #D1D9E0;background:#F6F8FA}
.pub-foot-in{max-width:960px;margin:0 auto;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px;color:#59636E}
.pub-foot-in p{margin:0}
.pub-foot-links{display:flex;gap:4px;flex-wrap:wrap}
.pub-foot-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:#0969DA}
.pub-legal{max-width:760px;display:flex;flex-direction:column;gap:14px}
.pub-legal h1{font-size:32px;font-weight:700}
.pub-legal h2{font-size:18px;font-weight:700;margin-top:18px}
.pub-legal p,.pub-legal li{font-size:16px;margin:0}
.pub-legal ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.pub-version{color:#59636E}
@media (max-width:760px){
.pub-head{padding:0 16px}.pub-hide-sm{display:none}
.pub-main{padding:32px 16px 48px;gap:40px}
.pub-hero h1{font-size:28px}.pub-lead{font-size:16px}
.pub-steps{grid-template-columns:1fr}
.pub-def{padding:20px}
.pub-legal h1{font-size:26px}
}
/* 351: the sign-in/sign-up pages fit a 390 px phone (the 460 px flex basis + 64 px padding overflowed by 50 px) */
@media (max-width:760px){.auth-side,.auth-main{flex-basis:100%;min-width:0;padding:32px 16px}.auth-box{min-width:0}}
