/* Module styles. Tokens come from app.css. */
.ico-s { width: 13px; height: 13px; vertical-align: -2px; display: inline-block; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
ul.plain, ol.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
ol.plain.num li::marker { font-weight: 800; color: var(--gold); }
.article li { line-height: 1.6; padding-left: 4px; }
.fsub { margin: 16px 0 8px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.fsub:first-child { margin-top: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--ink-2); }
.codebox { font-family: ui-monospace, Consolas, monospace; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; overflow-wrap: anywhere; }
.page.narrow { max-width: 1180px; }
.bigpct { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.bigpct small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hb { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.hb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hb > div { height: 9px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.hb i { display: block; height: 100%; border-radius: 5px; min-width: 2px; }
.hb b { font-size: 12px; min-width: 28px; text-align: right; }
.donut { display: flex; gap: 14px; align-items: center; }
.donut .dl { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 12px; min-width: 0; }
.donut .dl div { display: flex; gap: 7px; align-items: center; }
.donut .dl i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.donut .dl span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.steps > div { padding: 10px 14px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); font-size: 12px; display: flex; gap: 8px; }
.steps b { color: var(--gold); font-weight: 800; }
.setrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow > div { flex: 1; min-width: 0; } .setrow small { display: block; color: var(--ink-3); }
.setrow .sel { width: auto; max-width: 55%; }
.b-tog { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; }
.b-tog > span:first-child { flex: 1; font-weight: 600; } .b-tog small { display: block; color: var(--ink-3); font-weight: 500; }
.faq { border-bottom: 1px solid var(--line); padding: 10px 0; } .faq summary { cursor: pointer; font-weight: 700; } .faq p { margin: 8px 0 0; color: var(--ink-2); max-width: 75ch; }
.kbcard, .mcard { text-align: left; cursor: pointer; font: inherit; color: inherit; } .kbcard:hover { border-color: var(--line-2); }
.jobtile { display: flex; flex-direction: column; gap: 3px; color: var(--ink); } .jobtile:hover { text-decoration: none; border-color: var(--gold-2); } .jobtile.closed { opacity: .75; }
.fbq { display: grid; grid-template-columns: 1fr minmax(160px, 34%); gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fbq:last-child { border: 0; }
.mailprev hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.li.sel { background: var(--brand-soft); } .li.col { flex-direction: column; align-items: stretch; }
table.mini { border-collapse: collapse; font-size: 12px; width: 100%; } table.mini th, table.mini td { border: 1px solid var(--line); padding: 3px 6px; text-align: left; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .thumbs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .thumbs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thumb { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 0; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; }
.thumb > button { border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.thumb svg, .thumb img { display: block; width: 100%; aspect-ratio: 320/220; object-fit: cover; }
.thumb span { padding: 4px 7px; font-size: 11.5px; font-weight: 600; } .thumb .btn, .thumb small { margin: 0 7px 7px; }
.thumb:hover { border-color: var(--gold-2); } .thumb.done { border-color: var(--ok); }
.choices { display: flex; flex-wrap: wrap; gap: 6px 16px; } .choices.col { flex-direction: column; }

/* Dynamic forms */
.fsec { margin-bottom: 20px; } .fsec > h3 { font-size: 13.5px; padding-bottom: 7px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.fhead { grid-column: 1 / -1; font-size: 13px; } .fgrid > .note { grid-column: 1 / -1; }
.pbreak { grid-column: 1 / -1; border-top: 1px dashed var(--line-2); text-align: center; height: 0; margin: 8px 0; } .pbreak span { position: relative; top: -9px; background: var(--surface); padding: 0 8px; font-size: 10.5px; color: var(--ink-3); }
.ff.cond { border-left: 2px solid var(--gold-2); padding-left: 10px; }
.ff.has-err .inp, .ff.has-err .sel, .ff.has-err .seg, .ff.has-err .addphoto { border-color: var(--bad); }
.unitbox { display: flex; } .unitbox .inp { border-radius: var(--r-sm) 0 0 var(--r-sm); min-width: 0; } .unit { display: grid; place-items: center; padding: 0 9px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-2); color: var(--ink-3); font-size: 12px; font-weight: 700; white-space: nowrap; }
.seg.choice button { min-width: 56px; justify-content: center; }
.seg.choice button.on.v-yes, .seg.choice button.on.v-pass, .seg.choice button.on.v-good, .seg.choice button.on.v-satisfactory { background: var(--ok); color: #fff; }
.seg.choice button.on.v-no, .seg.choice button.on.v-fail, .seg.choice button.on.v-poor, .seg.choice button.on.v-unserviceable { background: var(--bad); color: #fff; }
.seg.choice button.on.v-fair { background: var(--warn); color: #fff; } .seg.choice button.on.v-na { background: var(--ink-3); color: #fff; }
.seg.choice { flex-wrap: wrap; } .seg.block { display: flex; } .seg.block button { flex: 1; justify-content: center; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.pthumb { position: relative; width: 108px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); } .pthumb svg, .pthumb img { display: block; width: 100%; aspect-ratio: 320/220; object-fit: cover; }
.pthumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #000a; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; } .pthumb button svg { width: 11px; height: 11px; }
.addphoto { width: 108px; aspect-ratio: 320/220; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 700; }
.addphoto svg { width: 18px; height: 18px; } .addphoto:hover { border-color: var(--brand-2); color: var(--ink); }
.files { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .chip svg { width: 12px; height: 12px; }
.signed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .signed img { height: 46px; background: #fff; border: 1px solid var(--line); border-radius: 4px; } .signed i { font-family: var(--serif); font-size: 19px; } .signed small { color: var(--ink-3); }
.sigpad { width: 100%; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: #fff; touch-action: none; cursor: crosshair; }
.calc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; background: var(--surface-2); border-radius: var(--r-sm); border: 1px solid var(--line); min-height: 34px; } .calc b { font-size: 15px; } .calc .unit { border: 0; background: none; padding: 0; }
.aibox { border: 1px solid var(--gold-2); border-radius: var(--r); padding: 8px; background: var(--gold-soft); } .aibox .inp { background: var(--surface); }
.rtable { border: 1px solid var(--line); border-radius: var(--r-sm); } .rtable .inp, .rtable .sel { min-width: 90px; padding: 5px 7px; min-height: 30px; } .rtable td { padding: 4px 6px; }
.formcard { min-width: 0; }

/* Jobs */
.kanban { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.kcol { flex: 0 0 236px; background: var(--surface-2); border-radius: var(--r); border: 1px solid var(--line); max-height: calc(100vh - 290px); display: flex; flex-direction: column; }
.kcol.dropover { outline: 2px dashed var(--gold-2); } .kcol-h { padding: 9px 11px; display: flex; gap: 6px; align-items: center; font-size: 12px; } .kcol-h .cnt { background: var(--surface-3); border-radius: 9px; padding: 0 7px; font-weight: 700; font-size: 11px; }
.kcol-b { padding: 0 7px 7px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; min-height: 40px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 10px; color: var(--ink); cursor: grab; display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.kcard:hover { border-color: var(--line-2); text-decoration: none; } .kcard small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kt { font-weight: 600; font-size: 12.5px; margin: 2px 0; }
.dragging { opacity: .45; }
.cal-h { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); } .cal-h span { padding: 6px 8px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } .cday { min-height: 96px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cday:nth-child(7n) { border-right: 0; } .cday.out { background: var(--surface-2); } .cd { font-size: 11px; font-weight: 700; color: var(--ink-3); } .cday.today .cd { background: var(--brand); color: #fff; border-radius: 9px; padding: 0 6px; align-self: flex-start; }
.cjob { font-size: 10.5px; font-weight: 600; padding: 1px 5px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); border-left: 3px solid var(--info); background: var(--info-soft); } .cjob.sb { border-color: var(--gold-2); background: var(--gold-soft); } .cjob.sc { border-color: var(--ok); background: var(--ok-soft); }
.toolbar.bulk { background: var(--gold-soft); }
.nextstep { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; } .nextstep > div { flex: 1; min-width: 220px; }
.insp-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.secnav { padding: 6px; position: sticky; top: 0; } .secnav button { display: flex; width: 100%; gap: 8px; align-items: center; border: 0; background: none; padding: 7px 9px; border-radius: 6px; cursor: pointer; text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px; }
.secnav button span { margin-left: auto; font-size: 11px; color: var(--ink-3); background: var(--surface-2); padding: 0 6px; border-radius: 8px; } .secnav button span.okc { background: var(--ok-soft); color: var(--ok); } .secnav button.on { background: var(--brand-soft); color: var(--ink); } .secnav button:hover { background: var(--surface-2); }

/* Builder, designer and studio share a full-height working layout */
.builder, .studio { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.b-bar { display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; flex: none; }
.b-name { flex: 1 1 280px; max-width: 620px; min-width: 0; } .b-title { border: 1px solid transparent; background: none; font: inherit; font-weight: 700; color: var(--ink); padding: 3px 6px; border-radius: 5px; min-width: 0; flex: 1; width: 100%; } .b-title:hover:not(:disabled) { border-color: var(--line-2); } .b-title:focus { border-color: var(--brand-2); background: var(--surface); outline: 0; } .b-title.big { font-size: 15px; margin-left: -6px; }
.b-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; gap: 12px; padding: 12px 16px; flex: 1; min-height: 0; }
.b-pal, .b-props, .b-canvas { overflow-y: auto; min-height: 0; } .b-pal, .b-props { border-radius: var(--r); }
.b-h .ibtn { position: absolute; right: 4px; top: 4px; }
.b-h { padding: 10px 12px; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; position: sticky; top: 0; background: var(--surface); z-index: 2; } .b-h small { color: var(--ink-3); font-weight: 500; flex-basis: 100%; font-size: 11.5px; } .b-h > svg { width: 15px; height: 15px; }
.b-g { font-size: 11px; font-weight: 700; color: var(--ink-3); padding: 9px 12px 4px; } .b-items { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 0 8px; }
.b-item { display: flex; align-items: center; gap: 6px; padding: 6px 7px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: grab; font-size: 11.5px; font-weight: 600; text-align: left; color: var(--ink); line-height: 1.2; } .b-item svg { width: 13px; height: 13px; flex: none; color: var(--ink-3); } .b-item:hover:not(:disabled) { border-color: var(--brand-2); background: var(--brand-soft); } .b-item:disabled { opacity: .5; cursor: not-allowed; }
.b-pal { padding-bottom: 10px; }
.b-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 12px; } .b-sech { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .b-sech .b-title { font-size: 14px; }
.b-f { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 6px; cursor: pointer; background: var(--surface); } .b-f > svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.b-f:hover { border-color: var(--line-2); } .b-f.sel { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); } .b-f.dropover { border-top: 3px solid var(--gold-2); }
.grip { color: var(--ink-3); cursor: grab; display: grid; } .grip svg { width: 14px; height: 14px; } .b-fl { flex: 1; min-width: 0; } .b-fl small { display: block; color: var(--ink-3); font-size: 11.5px; } .b-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.b-drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); padding: 9px; text-align: center; color: var(--ink-3); font-size: 12px; } .b-drop.dropover { border-color: var(--gold-2); background: var(--gold-soft); color: var(--ink); }
.b-pb { padding: 12px; display: flex; flex-direction: column; gap: 10px; } .b-sep { font-size: 11px; font-weight: 700; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.b-cond { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px; } .b-cond .lbl { display: block; margin-bottom: 4px; }
.b-prev { padding: 14px 16px; overflow: auto; flex: 1; min-height: 0; } .b-prev.desktop .formcard { max-width: 900px; margin: 0 auto; } .b-prev .note { max-width: 900px; margin-left: auto; margin-right: auto; }
.rail.vertical { flex-direction: column; overflow: visible; gap: 2px; padding: 0; } .rail.vertical .st { flex: none; text-align: left; display: flex; align-items: center; gap: 8px; padding: 3px 0; } .rail.vertical .st i { margin: 0; flex: none; } .rail.vertical .st::before { top: -50%; bottom: 50%; left: 8px; right: auto; width: 2px; height: auto; }
.device { width: 372px; max-width: 100%; margin: 0 auto; background: #10182b; border-radius: 34px; padding: 10px; box-shadow: var(--shadow-2); flex: none; }
.device-screen { background: var(--bg); border-radius: 26px; overflow: hidden; height: 700px; display: flex; flex-direction: column; position: relative; }
.device-screen > .m-body { flex: 1; overflow-y: auto; padding: 12px; }
.des-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 12px; padding: 12px 16px; flex: 1; min-height: 0; } .des-panel { overflow-y: auto; min-height: 0; }
.des-sec { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 5px; background: var(--surface); } .des-sec.off { opacity: .55; } .des-sec.dropover { border-top: 3px solid var(--gold-2); } .des-sec .ibtn { width: 26px; height: 26px; }
.maptbl td { padding: 5px 6px; } .maptbl .sel { min-width: 130px; }
.st-grid { display: grid; grid-template-columns: 184px minmax(0, 1fr) 300px; gap: 12px; padding: 12px 16px; flex: 1; min-height: 0; }
.st-left, .st-right { overflow-y: auto; min-height: 0; } .st-mid { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.st-sec { display: flex; gap: 8px; align-items: center; width: 100%; border: 0; background: none; padding: 7px 12px; cursor: pointer; text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px; } .st-sec:hover { background: var(--surface-2); color: var(--ink); } .st-sec svg { width: 13px; height: 13px; flex: none; color: var(--ink-3); } .st-sec span { flex: 1; } .st-sec .cnt { background: var(--warn-soft); color: var(--warn); border-radius: 9px; padding: 0 6px; font-size: 11px; font-style: normal; }
.st-tools { display: flex; gap: 4px; align-items: center; padding: 6px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; flex-wrap: wrap; flex: none; } .st-tools .sel { width: auto; min-height: 30px; padding: 4px 8px; max-width: 170px; } .vsep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.st-rp { padding: 0 12px 12px; } .st-right .tab { padding: 8px 7px; font-size: 12.5px; } .st-dsec { margin-bottom: 10px; } .st-dsec > b { font-size: 11.5px; color: var(--ink-3); display: block; margin-bottom: 3px; }
.st-val { display: flex; gap: 8px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 5px 4px; text-align: left; cursor: pointer; font-size: 12px; color: var(--ink); } .st-val span { flex: 1; color: var(--ink-2); } .st-val b { text-align: right; max-width: 55%; overflow-wrap: anywhere; } .st-val:hover:not(:disabled) { background: var(--gold-soft); } .st-val:disabled { cursor: default; }
.st-com { border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 8px; } .st-com.res { border-left-color: var(--ok); opacity: .8; } .st-com p { margin: 6px 0; }

/* Report documents: always paper, in both themes */
.docwrap { overflow: auto; flex: 1; min-height: 0; background: var(--surface-3); padding: 16px; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); } .des-grid .docwrap { border-radius: var(--r); }
.docwrap.inmodal { border: 0; border-radius: var(--r); max-height: none; }
.rdoc { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; zoom: var(--z, 1); }
.rdoc > .a4 { margin-left: auto; margin-right: auto; }
.a4 { width: 794px; min-height: 1123px; background: #fff; color: #1b2233; box-shadow: 0 2px 14px rgba(0, 0, 0, .18); padding: 54px 60px 46px; display: flex; flex-direction: column; font: 400 13px/1.55 var(--serif); position: relative; flex: none; }
.rdoc.land .a4 { width: 1123px; min-height: 794px; padding: 44px 54px 40px; }
.a4.draft::after { content: 'DRAFT'; position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-28deg); font: 800 120px var(--font); color: rgba(23, 48, 92, .055); letter-spacing: .08em; pointer-events: none; }
.a4 h1, .a4 h2, .a4 h3, .a4 h4 { font-family: var(--font); color: #14284b; }
.rhead { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid #14284b; padding-bottom: 10px; margin-bottom: 18px; font-family: var(--font); font-size: 11.5px; } .rhead > div:nth-child(2) { flex: 1; } .rhead > div.r { margin-left: auto; } .rhead b { display: block; font-size: 13px; color: #14284b; } .rhead small { color: #5b6478; }
.lh-mark { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; color: #fff; font: 800 13px var(--font); flex: none; }
.rbody { flex: 1; display: flex; flex-direction: column; } .rfoot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #c9ced8; padding-top: 8px; margin-top: 18px; font: 500 10.5px var(--font); color: #5b6478; }
.rsec { margin-bottom: 18px; } .rsec > h3 { font-size: 13.5px; border-bottom: 1px solid #c9a86a; padding-bottom: 4px; margin-bottom: 8px; } .rsec h4 { font-size: 12px; margin: 10px 0 4px; } .rsec p { margin: 0 0 7px; }
.rsec-edit { outline: 1px dashed transparent; border-radius: 4px; padding: 2px 4px; margin: -2px -4px; min-height: 22px; } .rsec-edit:hover { outline-color: #c9a86a; } .rsec-edit:focus { outline: 2px solid #c9a86a; background: #fffdf6; }
.rsec table { border-collapse: collapse; width: 100%; font-family: var(--font); font-size: 11.5px; margin: 6px 0 10px; } .rsec th, .rsec td { border: 1px solid #c9ced8; padding: 4px 7px; text-align: left; vertical-align: top; } .rsec thead th { background: #eef1f6; color: #14284b; } .rkv th { width: 34%; background: #f6f7fa; font-weight: 600; color: #47526a; } .rsec td.r, .rsec th.r { text-align: right; }
.rphotos { display: grid; gap: 12px; } .rphotos figure { margin: 0; } .rphotos svg, .rphotos img { width: 100%; display: block; aspect-ratio: 320/220; object-fit: cover; border: 1px solid #c9ced8; } .rphotos figcaption { font: 500 10.5px var(--font); color: #47526a; margin-top: 3px; }
.rsign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 12px; font-family: var(--font); } .rsign > div { border-top: 1px solid #1b2233; padding-top: 6px; display: flex; flex-direction: column; } .rsign i { font: italic 20px var(--serif); height: 34px; margin-top: -44px; color: #14284b; } .rsign img { height: 40px; margin-top: -48px; align-self: flex-start; } .rsign small { color: #5b6478; font-size: 11px; } .rsign i.muted { color: #9aa2b3; }
.rnote { font: 500 10.5px var(--font); color: #5b6478; margin-top: 12px; } .rann { font-family: var(--font); font-size: 12px; }
.ph { background: #fbf3df; border-radius: 3px; padding: 0 2px; } .ph.miss { background: #f8e4e1; color: #a83f36; } .rcom { background: #f8edd6; color: #9a6710; border-radius: 9px; padding: 0 7px; font-size: 10.5px; }
.rcover { flex: 1; display: flex; flex-direction: column; font-family: var(--font); } .rc-top { display: flex; gap: 12px; align-items: center; } .rc-top b { font-size: 17px; color: #14284b; display: block; } .rc-top small { color: #5b6478; } .rc-top .lh-mark { width: 48px; height: 48px; font-size: 18px; border-radius: 10px; }
.rc-mid { margin: auto 0; border-left: 4px solid #c9a86a; padding-left: 22px; } .rc-mid small { color: #9c7c3c; font-weight: 700; font-size: 12px; } .rc-mid h1 { font-size: 32px; line-height: 1.15; margin: 6px 0 10px; letter-spacing: -.02em; } .rc-mid h2 { font-size: 19px; font-weight: 600; } .rc-mid p { color: #5b6478; margin-top: 6px; }
.rcover table { border-collapse: collapse; width: 100%; font-size: 12px; margin-bottom: 26px; } .rcover th, .rcover td { border-bottom: 1px solid #dfe3ea; padding: 6px 4px; text-align: left; } .rcover th { width: 30%; color: #5b6478; font-weight: 600; } .rc-bot { font-size: 10.5px; color: #5b6478; border-top: 2px solid #14284b; padding-top: 8px; }
.invdoc { background: #fff; color: #1b2233; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; } .invdoc .muted { color: #5b6478; } .invdoc .tbl th { background: #eef1f6; color: #14284b; position: static; } .invdoc .tbl td, .invdoc .tbl th { border-color: #dfe3ea; } .invdoc .lbl { color: #5b6478; display: block; }
.invtot { margin: 12px 0 0 auto; max-width: 340px; } .invtot > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; } .invtot .grand { border-top: 2px solid currentColor; margin-top: 4px; padding-top: 7px; font-size: 15px; }

/* Evidence and AI */
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ecard { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: inherit; } .ecard:hover { border-color: var(--gold-2); box-shadow: var(--shadow); } .ecard.static { cursor: default; }
.ewrap { position: relative; } .eimg { display: block; width: 100%; aspect-ratio: 320/220; object-fit: cover; } .emeta { padding: 6px 9px 8px; } .emeta b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .emeta small { color: var(--ink-3); font-size: 11px; }
.ebadge { position: absolute; top: 5px; left: 5px; background: #000b; color: #fff; border-radius: 9px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; display: flex; gap: 3px; align-items: center; } .ebadge svg { width: 10px; height: 10px; }
.docthumb { aspect-ratio: 320/220; background: var(--surface-2); display: grid; place-items: center; align-content: center; gap: 4px; color: var(--ink-3); font-weight: 800; font-size: 11px; } .docthumb svg { width: 28px; height: 28px; } .docthumb.big { aspect-ratio: 320/220; width: 100%; }
svg.ann { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } svg.ann.live { pointer-events: auto; } .ev-canvas.drawing svg.ann.live { cursor: crosshair; touch-action: none; }
.ev-view { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; height: 100%; } .ev-stage { min-width: 0; } .ev-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.ev-canvas { position: relative; background: #0b1220; border-radius: var(--r); overflow: hidden; } .ev-canvas .eimg.big { max-height: 62vh; } .ev-side { overflow-y: auto; min-width: 0; }
.ai-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .ai-box { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; background: var(--surface-2); min-height: 90px; line-height: 1.6; } .ai-box.sug { background: var(--gold-soft); border-color: var(--gold-2); width: 100%; }
mark.del { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; } mark.ins { background: var(--ok-soft); color: var(--ok); }
.cmp-row { margin-bottom: 12px; } .cmp-row h4 { margin-bottom: 6px; } .cmp-row.same { opacity: .7; }
.ai-f { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 7px; background: var(--surface); } .ai-f small { color: var(--ink-2); display: block; margin-top: 2px; }
.ai-body { display: flex; flex-direction: column; } .ai-chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; min-height: 180px; max-height: 46vh; padding-bottom: 8px; }
.ai-q { align-self: flex-end; background: var(--brand); color: #fff; padding: 7px 11px; border-radius: 12px 12px 3px 12px; max-width: 85%; } .ai-a { display: flex; gap: 8px; max-width: 95%; } .ai-a > svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 3px; } .ai-a > div { background: var(--surface-2); padding: 8px 11px; border-radius: 3px 12px 12px 12px; line-height: 1.55; }
.ai-sugs { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; } .ai-sugs .chip { border: 1px solid var(--line); cursor: pointer; background: var(--surface); } .ai-sugs .chip:hover { border-color: var(--gold-2); } .ai-in { display: flex; gap: 6px; }

/* Approvals */
.chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .chain i { color: var(--ink-3); font-style: normal; } .ch { padding: 3px 10px; border-radius: 14px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--surface); } .ch.done { border-color: var(--gold-2); background: var(--gold-soft); color: var(--ink); } .ch.now { border-color: var(--brand-2); background: var(--brand-soft); color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft); } .ch small { font-weight: 500; }
.ap-rev { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; height: 100%; min-height: 0; } .ap-rev .docwrap { max-height: 100%; } .ap-side { overflow-y: auto; min-width: 0; }
.wf-stage { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; } .wf-n { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-2); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; margin-top: 18px; }
table.perm td, table.perm th { padding: 5px 6px; } table.perm th.c { font-size: 10.5px; } table.perm tr.inh td { opacity: .6; } table.perm input { width: 15px; height: 15px; accent-color: var(--brand-2); }

/* Billing */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; } .q-g { font-size: 11px; font-weight: 700; color: var(--ink-3); margin: 10px 0 2px; } .q-l { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; } .q-l small { display: block; color: var(--ink-3); font-weight: 500; } .q-l span { font-weight: 600; } .q-l.sub { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; } .q-l.total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; font-size: 16px; } .q-save { margin-top: 8px; background: var(--ok-soft); color: var(--ok); padding: 6px 10px; border-radius: var(--r-sm); font-weight: 700; font-size: 12.5px; }
.usage { margin-bottom: 12px; } .usage .meter { margin: 4px 0 2px; } .plan-now { border-top: 3px solid var(--gold-2); }
table.plans th, table.plans td { text-align: center; padding: 8px 10px; } table.plans tbody th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px; position: static; white-space: normal; } table.plans thead th { vertical-align: top; position: static; white-space: normal; min-width: 132px; } table.plans .pick { background: var(--brand-soft); } .pn { font-size: 14px; font-weight: 800; color: var(--ink); } .pp { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; } .pp small { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; } table.plans td small { display: block; color: var(--ink-3); } table.plans tr.sep th { background: var(--surface-2); font-size: 11px; color: var(--ink-3); }
.paym { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; } .paym small { display: block; color: var(--ink-3); font-weight: 500; }

/* External shells */
.xshell, .pshell { display: flex; flex-direction: column; height: 100%; }
.xtop, .ptop { display: flex; align-items: center; gap: 10px; padding: 0 20px; height: 58px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; position: relative; z-index: 20; } .xtop small, .pbrand small { display: block; color: var(--ink-3); font-size: 11.5px; } .xtop nav { display: flex; gap: 4px; margin-left: 18px; } .xtop nav a { padding: 6px 12px; border-radius: 6px; color: var(--ink-2); font-weight: 600; } .xtop nav a.on { background: var(--brand-soft); color: var(--ink); } .xtop nav a:hover { text-decoration: none; background: var(--surface-2); }
.ptop { border-top: 3px solid var(--pc); height: 64px; } .pbrand { display: flex; gap: 10px; align-items: center; } .pbrand b { font-size: 15px; }
.pnav { display: flex; gap: 2px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; } .pnav a { padding: 11px 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; } .pnav a.on { color: var(--ink); border-bottom-color: var(--pc); } .pnav a:hover { text-decoration: none; color: var(--ink); }
.pfoot { text-align: center; color: var(--ink-3); font-size: 11.5px; padding: 18px; } .ptrack { margin-top: 8px; width: 100%; } .ptrack .st { flex: 1 0 70px; }
.shell.platform .side { border-top: 3px solid var(--gold-2); }

/* Mobile field app */
.m-prev { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; } .m-full { height: 100%; } .m-full .m-app { height: 100%; }
.m-app { display: flex; flex-direction: column; height: 100%; background: var(--bg); position: relative; min-height: 0; }
.m-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--side-bg); color: #fff; flex: none; min-height: 50px; } .m-top b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .m-top small { margin-left: auto; opacity: .8; } .m-top .ibtn { color: #fff; } .m-top .logo { width: 26px; height: 26px; }
.m-body { flex: 1; overflow-y: auto; min-height: 0; } .m-pad { padding: 12px 14px; } .m-h { margin: 16px 0 7px; font-size: 12px; color: var(--ink-3); }
.m-hello b { display: block; font-size: 18px; } .m-hello small { color: var(--ink-3); display: block; }
.m-card { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; margin-bottom: 9px; cursor: pointer; font: inherit; color: var(--ink); } .m-card small { color: var(--ink-3); } .m-card.static { cursor: default; } .m-card:hover { text-decoration: none; } button.m-card:active { background: var(--surface-2); } .m-card .meter { margin: 5px 0 2px; }
.m-sync { display: flex; gap: 10px; align-items: center; width: 100%; border: 1px solid var(--ok); background: var(--ok-soft); border-radius: 12px; padding: 9px 12px; margin-top: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); } .m-sync.off { border-color: var(--warn); background: var(--warn-soft); } .m-sync svg { width: 18px; height: 18px; } .m-sync span { flex: 1; } .m-sync small { display: block; color: var(--ink-2); }
.m-prog { padding: 10px 14px 6px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; } .m-prog .meter { margin: 5px 0 8px; height: 7px; }
.m-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .m-chips button { flex: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 16px; padding: 5px 11px; font-weight: 600; font-size: 12px; cursor: pointer; color: var(--ink-2); } .m-chips button.on { background: var(--brand); color: #fff; border-color: var(--brand); } .m-chips button.ok:not(.on) { border-color: var(--ok); color: var(--ok); }
.m-form { padding: 12px 14px; } .m-form h3 { margin-bottom: 12px; font-size: 15px; } .m-form .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .m-app .inp, .m-app .sel { min-height: 44px; font-size: 15px; } .m-app .seg.choice button { min-height: 44px; min-width: 76px; font-size: 14px; flex: 1; } .m-app .seg.choice { display: flex; } .m-app .field > label { font-size: 13.5px; } .m-app .addphoto, .m-app .pthumb { width: 46%; }
.m-foot { display: flex; gap: 8px; padding: 10px 14px; } .m-foot .btn { flex: 1; } .btn.big { padding: 12px 14px; font-size: 14.5px; border-radius: 10px; }
.m-nav { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); flex: none; padding: 4px 4px 6px; } .m-nav button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: 700; color: var(--ink-3); cursor: pointer; border-radius: 8px; } .m-nav svg { width: 20px; height: 20px; } .m-nav button.on { color: var(--brand-2); } .m-nav button.cap svg { background: var(--brand); color: #fff; border-radius: 50%; padding: 7px; width: 36px; height: 36px; margin-top: -14px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.m-ev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .m-ev svg, .m-ev img { width: 100%; aspect-ratio: 320/220; object-fit: cover; border-radius: 6px; display: block; }
.m-capgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .m-capgrid button { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); } .m-capgrid svg.eimg { display: block; } .m-capgrid span { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 7px; font-weight: 700; font-size: 12px; } .m-capgrid span svg { width: 14px; height: 14px; }
.m-sheet { position: absolute; inset: 50px 0 0; background: var(--surface); z-index: 10; overflow-y: auto; }

/* Sign-in and onboarding */
.auth { display: grid; grid-template-columns: minmax(300px, 38%) 1fr; height: 100%; overflow: hidden; }
.auth-side { background: var(--side-bg); color: #c5cee0; padding: 36px 40px; display: flex; flex-direction: column; } .auth-side b { color: #fff; font-size: 17px; display: block; font-weight: 800; } .auth-side small { color: #8492ae; }
.auth-pitch { margin: auto 0; } .auth-pitch h1 { color: #fff; font-size: 34px; line-height: 1.12; letter-spacing: -.02em; max-width: 12ch; } .auth-pitch p { font-size: 15px; max-width: 34ch; margin: 14px 0; } .auth-pitch ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; } .auth-pitch li { padding-left: 16px; border-left: 2px solid var(--gold-2); }
.auth-main { overflow-y: auto; display: grid; place-items: center; padding: 28px; background: var(--bg); } .auth-card { width: 440px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); } .auth-card.wide { width: 760px; } .auth-card h2 { font-size: 20px; margin-bottom: 6px; }
.gbtn { padding: 10px 14px; font-size: 14px; margin-top: 10px; } .auth-links { display: flex; justify-content: space-between; margin: 16px 0 4px; font-weight: 600; flex-wrap: wrap; gap: 8px; }
.acc-list { display: flex; flex-direction: column; gap: 6px; } .acc { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink); } .acc:hover { border-color: var(--brand-2); background: var(--brand-soft); } .acc > span:nth-child(2) { flex: 1; min-width: 0; } .acc small { display: block; color: var(--ink-3); }
.obsteps { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; } .obsteps span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); padding-right: 10px; } .obsteps i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 11px; } .obsteps .done i { background: var(--gold-2); border-color: var(--gold-2); color: #fff; } .obsteps .now { color: var(--ink); } .obsteps .now i { border-color: var(--brand); }
.tplpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tpk { border: 1px solid var(--line); border-radius: var(--r); padding: 9px 11px; align-items: flex-start; } .tpk.on { border-color: var(--brand-2); background: var(--brand-soft); } .tpk small { display: block; color: var(--ink-3); font-weight: 500; }
.planpick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } .ppk { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 10px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--ink); } .ppk .num { font-size: 18px; font-weight: 800; } .ppk small { color: var(--ink-3); font-size: 11px; font-weight: 600; } .ppk.on { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Guided demo coach */
#coach { position: fixed; right: 18px; bottom: 18px; z-index: 250; }
.coach { width: 340px; max-width: calc(100vw - 36px); background: var(--surface); border: 1px solid var(--gold-2); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.coach header { display: flex; gap: 8px; align-items: center; padding: 9px 10px 9px 12px; background: var(--side-bg); color: #fff; } .coach header div { flex: 1; min-width: 0; } .coach header small { display: block; color: var(--gold-2); font-size: 10.5px; font-weight: 700; } .coach header b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .coach header .ibtn { color: #c5cee0; width: 28px; height: 28px; } .coach header .avatar { background: var(--gold-2); color: var(--side-bg); } .coach header .avatar svg { width: 12px; height: 12px; }
.coach-steps { display: flex; gap: 4px; padding: 9px 12px 0; flex-wrap: wrap; } .coach-steps button { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 11px; font-weight: 800; color: var(--ink-3); cursor: pointer; padding: 0; } .coach-steps .done { background: var(--gold-2); border-color: var(--gold-2); color: #fff; } .coach-steps .now { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.coach-b { padding: 10px 14px 4px; } .coach-b small { color: var(--ink-3); font-weight: 700; font-size: 11px; } .coach-b b { display: block; font-size: 14.5px; margin: 1px 0 4px; } .coach-b p { color: var(--ink-2); margin: 0 0 6px; line-height: 1.5; }
.coach footer { display: flex; gap: 6px; padding: 8px 12px 12px; align-items: center; }
.coach-mini { border: 1px solid var(--gold-2); background: var(--side-bg); color: #fff; border-radius: 22px; padding: 9px 15px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-2); display: flex; gap: 8px; align-items: center; } .coach-mini svg { width: 13px; height: 13px; color: var(--gold-2); }
.demo-hl { outline: 3px solid var(--gold-2) !important; outline-offset: 3px; animation: hl 1.4s ease-in-out infinite; position: relative; z-index: 5; }
@keyframes hl { 50% { outline-color: transparent; } }

/* Responsive */
@media (max-width: 1280px) { .b-grid { grid-template-columns: 200px minmax(0, 1fr) 290px; } .st-grid { grid-template-columns: minmax(0, 1fr) 300px; } .st-left { display: none; } .insp-grid { grid-template-columns: 190px minmax(0, 1fr); } .insp-grid > .stack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps { grid-template-columns: repeat(2, 1fr); } .planpick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .b-grid, .des-grid, .st-grid, .insp-grid, .ev-view, .ap-rev, .ai-cmp, .auth, .tplpick { grid-template-columns: minmax(0, 1fr); }
  .builder, .studio { height: auto; } .b-grid, .des-grid, .st-grid { overflow: visible; } .b-pal, .b-props, .b-canvas, .des-panel, .st-right { overflow: visible; max-height: none; } .docwrap { max-height: 70vh; }
  .auth { overflow-y: auto; height: 100%; display: block; } .auth-side { padding: 22px; } .auth-pitch { margin: 18px 0; } .auth-pitch h1 { font-size: 24px; max-width: none; } .auth-pitch ul { display: none; }
  .insp-grid > .stack { display: flex; } .secnav { position: static; } .steps { grid-template-columns: 1fr; } .planpick { grid-template-columns: 1fr 1fr; } .fbq { grid-template-columns: 1fr; }
  .xtop nav { margin-left: 4px; } .xtop, .ptop, .pnav { padding-left: 12px; padding-right: 12px; }
  .cday { min-height: 62px; } .cjob { font-size: 9.5px; } #coach { right: 8px; bottom: 8px; }
}
@media print {
  #print-root .docwrap, #print-root .rdoc { zoom: 1 !important; gap: 0; display: block; margin: 0; padding: 0; position: static !important; visibility: visible !important; width: auto !important; left: auto !important; }
  #print-root .a4 { box-shadow: none; margin: 0; page-break-after: always; break-after: page; page-break-inside: avoid; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root .a4:last-child { page-break-after: auto; break-after: auto; }
  #print-root .invdoc { border: 0; }
}

/* ---- V2: real A4 pages ---- */
.a4.pg { height: 1122px; min-height: 0; overflow: hidden; } .rdoc.land .a4.pg { height: 793px; }
.a4.pg > .rbody, .a4.src > .rbody { display: block; min-height: 0; overflow: hidden; } .a4.pg.cover > .rbody { display: flex; overflow: visible; }
.a4.src { visibility: hidden; position: absolute; left: -30000px; height: 1122px; min-height: 0; } .rdoc.land .a4.src { height: 793px; }
.a4 .rhead, .a4 .rfoot { flex: none; }
.rsec.cont { margin-top: 0; } .rsec:last-child { margin-bottom: 0; }
.rsec table tr { break-inside: avoid; } .rphotos figure { break-inside: avoid; }
.rtoc { font-size: 12.5px !important; } .rsec table.rtoc th, .rsec table.rtoc td { border: 0; border-bottom: 1px dotted #b9c0cc; padding: 7px 4px; } .rsec table.rtoc thead th { background: none; border-bottom: 1px solid #14284b; font-size: 11px; color: #5b6478; } .rtoc td.r, .rtoc th.r { width: 60px; }
.rverr { border: 1px solid #c0392b; background: #fbeae8; color: #7a241b; padding: 10px 12px; border-radius: 4px; margin-bottom: 14px; font: 600 12px var(--font); }
/* editing layout: one continuous sheet with approximate page guides */
.a4.flow { min-height: 1122px; background-image: linear-gradient(to bottom, transparent 1120px, #d9c9a3 1120px, #d9c9a3 1122px); background-size: 100% 1122px; background-repeat: repeat-y; }
.rdoc.land .a4.flow { min-height: 793px; background-image: linear-gradient(to bottom, transparent 791px, #d9c9a3 791px, #d9c9a3 793px); background-size: 100% 793px; }
.rdoc.edit .pgno { font-style: italic; }
.rcalc-note { font: 500 10.5px var(--font); color: #5b6478; margin: 2px 0 10px; }

.rsign { margin-top: 58px; } .rdoc.paged .ph { background: none; padding: 0; border-radius: 0; } .rdoc.paged .ph.miss { background: #f8e4e1; }
.rsec ol, .rsec ul { margin: 0 0 8px; padding-left: 20px; } .rsec li { margin-bottom: 3px; }

.rdoc.m-narrow .a4 { padding: 40px 42px 34px; } .rdoc.m-wide .a4 { padding: 66px 78px 56px; } .rdoc.land.m-narrow .a4 { padding: 34px 40px 30px; } .rdoc.land.m-wide .a4 { padding: 54px 70px 48px; }
.des-sec .ibtn.on { background: var(--gold-soft, #f4ecd9); color: var(--gold, #9c7c3c); }
.st-pages { font: 600 11.5px var(--font); color: var(--muted); white-space: nowrap; }

.st-grid.focus { grid-template-columns: minmax(0, 1fr); } .st-grid.focus .st-left, .st-grid.focus .st-right { display: none; }
.st-tools .seg button { padding: 4px 9px; font-size: 12px; }

/* ---- V2: builder ---- */
.b-search { padding: 8px 10px 4px; position: sticky; top: 0; background: var(--surface); z-index: 1; } .b-search .inp { min-height: 32px; padding: 5px 9px; font-size: 12.5px; }
.b-strip { display: flex; align-items: center; gap: 8px; padding: 7px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; flex: none; } .b-strip > svg { color: var(--ink-4, #9aa2b3); flex: none; }
.b-step { display: flex; flex-direction: column; padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid transparent; text-decoration: none; color: inherit; line-height: 1.3; } .b-step b { font-size: 12.5px; } .b-step small { color: var(--muted); font-size: 11px; } .b-step.on { background: var(--surface); border-color: var(--gold, #c2a56b); } a.b-step:hover { background: var(--surface); border-color: var(--line); }
.b-f:focus-visible { outline: 2px solid var(--gold, #c2a56b); outline-offset: 1px; } .ibtn.on { background: var(--gold-soft, #f4ecd9); color: var(--gold, #9c7c3c); } svg.flip { transform: scaleX(-1); }
.b-rep { display: grid; grid-template-columns: auto 200px 1fr; gap: 8px; align-items: center; padding: 6px 10px 8px; font-size: 12px; } .b-rep .inp { min-height: 30px; padding: 4px 8px; } .b-rep .hint { margin: 0; }
/* ---- V2: repeatable sections and evidence rules in forms ---- */
.rep { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; } .rep-card { border: 1px solid var(--line); border-left: 3px solid var(--gold, #c2a56b); border-radius: var(--r-sm); padding: 10px 12px 12px; width: 100%; background: var(--surface); } .rep-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.ev-req { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--surface-2); } .ev-req.missing { border-color: var(--warn, #b7791f); background: var(--warn-soft, #fdf3dc); } .ev-req .small { display: inline-flex; align-items: center; gap: 5px; }
.ev-thumbs { display: inline-flex; gap: 4px; } .ev-mini { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: none; cursor: pointer; } .ev-mini svg, .ev-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .b-rep { grid-template-columns: 1fr; } .b-strip .b-step small { display: none; } }

/* ---- V2: mobile field app ---- */
.m-saved { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin: 4px 0 2px; }
.m-chips button i { font-style: normal; font-size: 10.5px; margin-left: 6px; padding: 1px 6px; border-radius: 9px; background: rgba(0, 0, 0, .08); } .m-chips button.ok i { background: var(--ok-soft); color: var(--ok); } .m-chips button.on i { background: rgba(255, 255, 255, .22); color: inherit; }
.m-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 28px; } .m-done h2 { font-size: 20px; margin: 4px 0 0; } .m-done .m-card { text-align: left; width: 100%; } .m-done .avatar svg { width: 30px; height: 30px; }
.m-card .meter { margin: 6px 0 2px; }

/* ---------- V2 phone layout (office screens and portals at phone width) ---------- */
@media (max-width: 560px) {
  .top .switch[data-demo="org-switch"] > span { display: none; } .top .switch[data-demo="org-switch"] { max-width: none; flex: none; }
  .top .switch[data-demo="role-switch"] > span { display: none; } .top .switch[data-demo="role-switch"] { max-width: none; flex: none; }
  .top .pop-wrap, .top .switch, .top .btn, .top .ibtn { flex: none; }
  .top .pop-wrap { min-width: 0; } .top-l { min-width: 0; gap: 4px; }
  .ptop, .xtop { gap: 6px; } .pbrand { min-width: 0; flex: 1 1 auto; } .pbrand > div { min-width: 0; display: grid; } .pbrand b, .pbrand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ptop > .sp, .xtop > .sp { display: none; } .ptop .switch > span, .xtop .switch > span { display: none; } .ptop .switch, .xtop .switch { max-width: none; flex: none; }
  .pnav { overflow-x: auto; scrollbar-width: none; } .pnav a { white-space: nowrap; flex: none; }
  .ptrack { overflow: visible; } .ptrack .st { flex: 1 1 0; min-width: 0; font-size: 10.5px; overflow-wrap: anywhere; hyphens: auto; }
  .page-head, .head { flex-wrap: wrap; } .head .row, .page-head .row { flex-wrap: wrap; }
}
.m-who { min-width: 0; display: grid; gap: 1px; } .m-who b, .m-who small { display: block; overflow-wrap: anywhere; }
.stor-note { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin: -4px 0 12px; } .stor-note span { display: inline-flex; gap: 6px; align-items: center; } .stor-note svg { width: 15px; height: 15px; } .stor-note.warn { color: var(--warn); } .stor-note.bad { color: var(--bad); } .stor-note a { font-weight: 600; cursor: pointer; }

/* ---------- V2.1 ---------- */
.lc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 12px; border-top: 2px solid var(--line); }
.lc-step { position: relative; padding: 14px 12px 0 0; } .lc-step > i { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2, var(--line)); }
.lc-step.done > i { background: var(--ink-3); border-color: var(--ink-3); } .lc-step.now > i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.lc-step b { display: block; font-size: 12.5px; } .lc-step span { display: block; font-weight: 600; font-size: 13px; margin-top: 2px; } .lc-step small { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.4; margin-top: 4px; }
.lc-step.now b { color: var(--brand, var(--ink)); }
@media (max-width: 900px) { .lc { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); margin-left: 6px; } .lc-step { padding: 0 0 14px 16px; } .lc-step > i { top: 3px; left: -7px; } }
.stor-note { padding: 8px 12px; border-radius: 8px; margin: 0 0 12px; } .stor-note.warn { background: var(--warn-soft); } .stor-note.bad { background: var(--bad-soft); } .stor-note:not(.warn):not(.bad) { padding-left: 0; }
.hbars.wrap .hb { grid-template-columns: minmax(120px, 46%) 1fr auto; align-items: start; } .hbars.wrap .hb span { white-space: normal; overflow: visible; line-height: 1.25; } .hbars.wrap .hb > div { margin-top: 4px; }
.li.att { align-items: center; gap: 12px; } .att-n { min-width: 40px; text-align: center; font-size: 17px; font-weight: 800; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.li.att.bad .att-n { background: var(--bad-soft); color: var(--bad); } .li.att.warn .att-n { background: var(--warn-soft); color: var(--warn); } .li.att > div { flex: 1; } .li.att > div b { font-weight: 600; } .li.att > svg { width: 16px; height: 16px; color: var(--ink-3); }
.vendor { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; } .vendor b { color: var(--ink-2); }
.ga-mark { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--gold); color: #1a1405; font-weight: 800; font-size: 11px; letter-spacing: .02em; }
.side-brand small.by { color: var(--gold); font-weight: 600; opacity: .95; } .shell.collapsed .side-brand small.by { display: none; }
.side-brand small { display: block; } .side-brand small.by { margin-top: 1px; font-size: 10.5px; }
