/* MyForensis portal — one stylesheet, two brands (body.brand-forensis / body.brand-ftforward). */
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.3c986c6628b4.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("fonts/jost-latin-500-normal.a3c2438bfe16.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url("fonts/jost-latin-600-normal.b6346d671c34.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-display: swap; src: url("fonts/jost-latin-700-normal.ad8373282079.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("fonts/archivo-latin-600-normal.b3c7a6723662.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("fonts/archivo-latin-700-normal.8aaed9b7a093.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-400-normal.60715978fab2.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url("fonts/public-sans-latin-500-normal.38c037ffedf4.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("fonts/public-sans-latin-600-normal.6b1fe1f62892.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("fonts/public-sans-latin-700-normal.3c0eda7c2982.woff2") format("woff2"); }

:root {
  --ink: #14182A; --ink-2: #2A3247; --muted: #4A5266; --line: #D9DEE8; --line-2: #ECEFF4;
  --ground: #F5F7FA; --paper: #FFFFFF; --field: #C5CCDA;
  --ok-bg: #E3F2E5; --ok: #1E6B2A; --warn-bg: #FFF1D6; --warn: #7A4A00; --bad-bg: #FBE4E4; --bad: #8E1B1B;
  --primary: #092768; --primary-dark: #061B4A; --soft: #E8EDF7; --select: #F2F5FB; --link: #0B3A8C;
  --head: "Jost", "Segoe UI", sans-serif; --body: "Public Sans", "Segoe UI", sans-serif;
  --radius: 10px;
}
body.brand-ftforward {
  --primary: #8A0F16; --primary-dark: #6E0B11; --soft: #F4E4E5; --select: #FBF3F3; --link: #8A0F16;
  --ink: #1F1F1F; --muted: #5A5A5A; --ground: #F3F1EF;
  --head: "Archivo", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--body); color: var(--ink); background: var(--ground); }
a { color: var(--link); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; line-height: 1.2; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* bands */
.test-band { background: #FFE58A; color: #3D2A00; text-align: center; font-weight: 700; padding: 6px 12px; font-size: 13px; }
.notice-band { background: var(--soft); color: var(--ink); text-align: center; padding: 8px 12px; font-size: 14px; }

/* header */
.top { background: var(--primary); color: #fff; }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo-mark { width: 36px; height: 36px; display: block; flex: none; }
.brand-forensis .logo-mark { background: #fff; }
.logo-word { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { color: #fff; text-decoration: none; padding: 10px 11px; border-radius: 6px; font-size: 15px; white-space: nowrap; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.16); font-weight: 600; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.me { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.me-text { text-align: right; line-height: 1.3; }
.me-text span { opacity: .8; display: block; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.signout { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 6px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; }

/* layout */
.main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; display: flex; flex-direction: column; gap: 22px; }
.main.narrow { max-width: 1040px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head-row p { margin: 6px 0 0; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 260px; max-width: 320px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--field); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); color: #fff; }
.btn.soft { background: var(--soft); border-color: var(--soft); color: var(--primary); }
.btn.danger { color: var(--bad); border-color: transparent; background: transparent; padding: 0; min-height: 40px; }
.btn.link { border: 0; background: transparent; color: var(--link); padding: 0; min-height: 36px; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
textarea.input { padding: 10px 12px; min-height: 80px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 18px; height: 18px; }
.seg { display: inline-flex; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; }
.seg a { padding: 9px 16px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.seg a[aria-current="true"] { background: var(--primary); color: #fff; }
.pill { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; background: var(--soft); color: var(--primary); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.grey { background: var(--line-2); color: var(--muted); }

.msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { border-radius: 8px; padding: 12px 14px; font-size: 15px; background: var(--soft); }
.msg.success { background: var(--ok-bg); color: var(--ok); }
.msg.error { background: var(--bad-bg); color: var(--bad); }
.msg.warning { background: var(--warn-bg); color: var(--warn); }

/* tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { background: #F7F8FB; text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; padding: 11px 10px; white-space: nowrap; }
table.data th a { color: var(--muted); text-decoration: none; }
table.data td { padding: 12px 10px; border-top: 1px solid var(--line-2); vertical-align: top; }
table.data tr.sel td { background: var(--select); }
table.data td:first-child, table.data th:first-child { padding-left: 18px; }
table.data td:last-child, table.data th:last-child { padding-right: 18px; }
.right { text-align: right; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }

/* home */
.lib-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.lib-card:hover { border-color: var(--primary); color: var(--ink); }
.lib-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.lib-name { font-weight: 700; font-size: 18px; }
.lib-foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 12px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.list-row:hover { color: var(--ink); background: var(--select); }
.section-label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-family: var(--body); font-weight: 600; }

/* folders */
.tree { list-style: none; margin: 0; padding: 8px 0; }
.tree li a { display: flex; align-items: center; gap: 10px; padding: 8px 18px; text-decoration: none; color: var(--ink); }
.tree li a:hover { background: var(--select); }
.tree li a.current { background: var(--select); font-weight: 700; }
.tree .count { color: var(--muted); font-size: 13px; margin-left: auto; }

/* search */
.big-search { display: flex; flex-wrap: wrap; gap: 8px; }
.head-row .big-search { flex: 1 1 420px; max-width: 640px; }
.head-row .big-search .input { flex: 1 1 240px; min-width: 0; min-height: 50px; font-size: 16px; }
.head-row .big-search .btn { min-height: 50px; }
.big-search .input { flex: 1 1 360px; min-height: 56px; font-size: 18px; border: 2px solid var(--primary); border-radius: 10px; }
.big-search .btn { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 10px; }
.result { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: flex-start; }
.result-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.result-title { font-weight: 700; font-size: 18px; }
.result mark, .find-hits mark { background: #FFE58A; color: var(--ink); padding: 0 2px; }

/* viewer */
body.viewer-page { background: #E9ECF2; }
.viewer-top { background: var(--primary); color: #fff; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.viewer-top a.back { color: #fff; text-decoration: none; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 6px; }
.viewer-top .t { flex: 1 1 260px; min-width: 0; }
.viewer-top .t b { font-family: var(--head); font-weight: 600; font-size: 20px; display: block; }
.viewer-top .t span { font-size: 13px; opacity: .85; }
.viewer-top .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.viewer-top .btn.light { background: #fff; color: var(--primary); border-color: #fff; }
.viewer-body { display: flex; flex-wrap: wrap; min-height: calc(100vh - 70px); }
/* Viewer on a desktop: the page strip, the page and the details each scroll on their own, so the
   strip never runs out while you read further down a long document. */
@media (min-width: 641px) {
  body.viewer-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
  body.viewer-page .viewer-body { flex: 1 1 auto; min-height: 0; flex-wrap: nowrap; }
  body.viewer-page .thumbs-wrap { height: 100%; }
  body.viewer-page .thumbs-col, body.viewer-page .stage, body.viewer-page .doc-side { height: 100%; overflow-y: auto; }
}
.thumbs-wrap { --thumb-w: 112px; flex: 0 0 var(--thumb-w); display: flex; background: #DCE0E8; position: relative; min-width: 0; }
.thumbs-wrap.wide { --thumb-w: 340px; }
.thumbs-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.thumbs-bar { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 8px; background: #CDD2DC; font-size: 12px; color: var(--ink-2); }
.thumbs-bar button { border: 1px solid #A9B1C1; background: #fff; border-radius: 6px; font: inherit; font-size: 12px; padding: 4px 8px; cursor: pointer; white-space: nowrap; }
.thumbs { padding: 12px 10px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 10px; align-content: start; }
.thumbs button { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.thumbs canvas { width: 100%; max-width: 220px; aspect-ratio: 8.5 / 11; background: #fff; outline-offset: 2px; display: block; }
.thumbs canvas.drawn { aspect-ratio: auto; }
.thumbs button.on canvas { outline: 3px solid var(--primary); }
.thumbs-handle { flex: 0 0 8px; cursor: col-resize; background: transparent; border-left: 1px solid #B9C0CE; touch-action: none; }
.thumbs-handle:hover, .thumbs-handle.dragging, .thumbs-handle:focus-visible { background: color-mix(in srgb, var(--primary) 30%, transparent); }
.stage { flex: 999 1 520px; min-width: 0; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 6px 8px; box-shadow: 0 1px 2px rgba(20,24,42,.12); }
.toolbar .tb { min-width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 18px; border-radius: 6px; }
.toolbar .tb:hover { background: var(--line-2); }
.toolbar input { height: 36px; border: 1px solid var(--field); border-radius: 6px; font: inherit; font-size: 15px; padding: 0 8px; }
.toolbar .pg { width: 56px; text-align: center; }
.toolbar .sep { width: 1px; height: 24px; background: var(--line); }
.page-box { max-width: 100%; overflow: auto; }
.page-box canvas { display: block; background: #fff; box-shadow: 0 2px 10px rgba(20,24,42,.18); max-width: none; }
.doc-side { flex: 1 1 300px; max-width: 360px; background: #fff; border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.doc-side dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 12px; font-size: 14px; }
.doc-side dt { color: var(--muted); }
.doc-side dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.find-hits { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.find-hits li button { border: 0; background: transparent; text-align: left; padding: 8px 0; font: inherit; cursor: pointer; color: var(--ink); width: 100%; border-top: 1px solid var(--line-2); }
.viewer-msg { color: var(--muted); padding: 40px; }

/* sign-in */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-brand { flex: 1 1 480px; min-height: 340px; background: var(--primary); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-brand .word { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: 3px; line-height: 1; }
.auth-brand .sub { font-family: var(--head); font-weight: 500; font-size: 11px; letter-spacing: 4px; margin-top: 6px; opacity: .85; }
.auth-brand h1 { font-size: 44px; line-height: 1.1; margin-bottom: 12px; }
.auth-brand .kicker { font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; }
.auth-brand p { margin: 0; font-size: 17px; line-height: 1.55; opacity: .9; max-width: 460px; }
.auth-brand .facts { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; opacity: .9; }
.auth-form { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form form, .auth-form .box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.auth-form h2 { font-size: 28px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-wrap button { position: absolute; right: 4px; top: 3px; width: 44px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.code-input { font-size: 28px !important; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.hint { background: var(--soft); border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }

@media (max-width: 1440px) { .top-in { gap: 10px 18px; } .me-text { display: none; } }
@media (max-width: 640px) {
  .main { padding: 20px 16px 40px; }
  .top-in { padding: 10px 16px; }
  .me-text { display: none; }
  .auth-brand { padding: 32px 24px; }
  .auth-brand h1 { font-size: 32px; }
  .thumbs-wrap { display: none; }
  .doc-side { max-width: none; border-left: 0; border-top: 1px solid var(--line); }
}
@media print {
  .top, .test-band, .nav, .toolbar, .thumbs-wrap, .doc-side, .viewer-top { display: none !important; }
  body.viewer-page { height: auto; overflow: visible; display: block; }
}
.tree a.depth-1 { padding-left: 42px; }
.tree a.depth-2 { padding-left: 66px; }
.tree a.depth-3 { padding-left: 90px; }
.tree a.depth-4 { padding-left: 114px; }
.input.pg { width: 84px; min-height: 44px; text-align: center; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.seg { display: flex; flex-wrap: wrap; gap: 6px 18px; border: 0; }
.lib-icon svg { color: var(--primary); }

/* --- Pro & AI ------------------------------------------------------------------------- */
.hint { margin: 0; }
.pad { padding: 18px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); color: var(--primary); border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
a.chip { background: #fff; color: var(--ink); border: 1px solid var(--field); border-radius: 99px; font-weight: 500; }
a.chip:hover { border-color: var(--primary); }
.tries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-from { margin-left: auto; font-size: 14px; opacity: .9; }
.share-gate { max-width: 520px; }
.big-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 14px; }

/* uploads */
.storage { min-width: 280px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.meter { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--primary); }
.drop { border: 2px dashed #9AA3B5; border-radius: 14px; background: #fff; padding: 30px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--primary); }
.drop.over { border-color: var(--primary); background: var(--select); }
.drop-title { font-size: 18px; font-weight: 600; color: var(--ink); }
.drop .btn.link { display: inline; min-height: 0; text-decoration: underline; cursor: pointer; }
.up-row { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2.4fr) auto; gap: 14px 18px; padding: 16px 18px; border-top: 1px solid var(--line-2); align-items: start; }
.up-file { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.up-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.up-fields .input { min-height: 40px; font-size: 15px; }
.up-fields .lbl { font-size: 12px; margin: 0; }
.up-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
@media (max-width: 900px) { .up-row { grid-template-columns: 1fr; } .up-actions { flex-direction: row; flex-wrap: wrap; } }

/* search: saved */
.saved { padding: 14px 18px; }
.saved-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.saved-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.saved-list li:first-child { border-top: 0; }
.saved-list form { margin-left: auto; }
.save-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.current { border: 2px solid var(--primary); }
.plan .price { font-size: 26px; font-weight: 700; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }

/* AI */
.ask-form .input { border-radius: 10px; }
.ai-answer { font-size: 16px; line-height: 1.6; }
.ai-answer p { margin: 0 0 10px; }
.ai-answer table.data { font-size: 15px; margin-bottom: 12px; }
a.cite { display: inline-block; min-width: 20px; padding: 0 5px; margin: 0 1px; border-radius: 99px; background: var(--soft); color: var(--primary); font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; vertical-align: 1px; }
.sources { list-style: none; margin: 0; padding: 0; }
.sources li { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.sources li.unused { opacity: .65; }
.src-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--primary); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ai-box { background: var(--select); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ai-box p { margin: 0; font-size: 14px; line-height: 1.55; }
.ai-box h3 { font-size: 14px; font-family: var(--body); font-weight: 700; margin-top: 4px; }
.kicker-ai { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--primary); }

/* FT PDF */
.ftpdf-tools { background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ftpdf-tools .tool { height: 56px; min-width: 76px; padding: 4px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ftpdf-tools .tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.ftpdf-tools .tool[aria-pressed="true"] { background: var(--soft); color: var(--primary); }
.ftpdf-tools .tool:hover { background: var(--line-2); }
.tool-help { margin-left: 12px; color: var(--muted); }
.ftpdf-body { display: flex; flex-wrap: wrap; min-height: calc(100vh - 140px); }
.ftpdf-pages { flex: 0 0 150px; background: #DCE0E8; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: calc(100vh - 140px); overflow-y: auto; }
.pg-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pg-open { border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pg-open canvas { width: 90px; background: #fff; display: block; }
.pg-item.on canvas { outline: 3px solid var(--primary); outline-offset: 2px; }
.pg-btns { display: flex; gap: 2px; }
.pg-btns button { width: 26px; height: 26px; border: 1px solid #B9C0CE; background: #fff; border-radius: 5px; cursor: pointer; font-size: 13px; padding: 0; }
.pg-btns button:hover { border-color: var(--primary); color: var(--primary); }
.sheet { position: relative; box-shadow: 0 2px 10px rgba(20,24,42,.18); background: #fff; }
.sheet canvas { display: block; }
.sheet[data-tool="stamp"], .sheet[data-tool="text"], .sheet[data-tool="sign"], .sheet[data-tool="redact"] { cursor: crosshair; }
.marks { position: absolute; inset: 0; }
.mark { position: absolute; cursor: move; touch-action: none; user-select: none; }
.mark-redact { background: #000; }
.mark-redact.drawing { background: rgba(0,0,0,.6); }
.mark-stamp { border: 3px solid currentColor; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; letter-spacing: 1px; white-space: pre-line; line-height: 1.15; font-family: Helvetica, Arial, sans-serif; }
.mark-stamp.c-blue { color: #092768; } .mark-stamp.c-red { color: #A11B1B; } .mark-stamp.c-green { color: #1E6B2A; } .mark-stamp.c-black { color: #14182A; }
.mark-text { color: #14182A; white-space: pre-wrap; line-height: 1.2; font-family: Helvetica, Arial, sans-serif; outline: 1px dashed rgba(9,39,104,.35); }
.mark-sign img { width: 100%; height: 100%; display: block; pointer-events: none; }
.mark-sign { outline: 1px dashed rgba(9,39,104,.35); }
.ftpdf-side { gap: 16px; }
.panel { display: flex; flex-direction: column; gap: 10px; }
.sigpad { width: 100%; height: auto; aspect-ratio: 560 / 200; border: 1px solid var(--field); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.changes { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.changes li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-2); padding: 8px 0; }
.cb-list { list-style: none; margin: 0; padding: 0; font-size: 14px; max-height: 340px; overflow-y: auto; }
.cb-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line-2); padding: 8px 0; }
@media (max-width: 640px) { .ftpdf-pages { flex-basis: 100%; flex-direction: row; max-height: none; overflow-x: auto; padding: 10px; } .tool-help { margin-left: 0; flex-basis: 100%; } }

/* Files view: a customer's file (e.g. a closing file) is a folder holding its PDFs. */
.folder-ico { fill: #F3C969; stroke: #D9A93A; stroke-width: 1.2; flex: 0 0 auto; }
.folder-ico.big { margin-top: 2px; }
.pdf-ico { fill: #fff; stroke: var(--primary); stroke-width: 1.6; stroke-linejoin: round; flex: 0 0 auto; }
.folder-link, .pdf-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.folder-link:hover b, .pdf-link:hover b { text-decoration: underline; }
.file-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); background: #FBFCFE; }
.file-head .grow { flex: 1 1 260px; min-width: 0; }
.file-head h2 { margin: 0 0 6px; font-size: 20px; overflow-wrap: anywhere; }
.file-head p { margin: 6px 0 0; }
.file-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.file-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.file-facts dd { margin: 0; font-weight: 600; }
p.empty { padding: 22px 18px; margin: 0; }

/* FT DCP — buyers' and sellers' closing pages, under the title company's own name. */
.dcp-top { background: var(--paper); border-bottom: 1px solid var(--line); }
.dcp-top-in { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.dcp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.dcp-brand .logo-mark { width: 36px; height: 36px; }
.dcp-logo { max-height: 56px; max-width: 260px; display: block; }
.dcp-name { font-family: var(--head); font-weight: 600; font-size: 22px; letter-spacing: .2px; }
.dcp-nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.dcp-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 2px; }
.dcp-nav a:hover { color: var(--primary); }
.dcp-nav .signout { background: transparent; border: 1px solid var(--field); color: var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.dcp-main { max-width: 1120px; }
.dcp-hello h1 { font-size: 34px; margin: 4px 0 6px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary); margin: 0; }
.dcp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dcp-card { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(20,24,42,.04); transition: border-color .15s, box-shadow .15s; }
.dcp-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(20,24,42,.08); color: var(--ink); }
.dcp-card-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); }
.dcp-card-addr { font-family: var(--head); font-size: 22px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
.dcp-card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.dcp-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 32px; background: var(--primary); color: #fff; border-radius: 16px; padding: 28px 30px; }
.dcp-hero .kicker { color: rgba(255,255,255,.78); }
.dcp-hero h1 { font-size: 34px; margin: 6px 0 2px; color: #fff; overflow-wrap: anywhere; }
.dcp-hero-sub { margin: 0; font-size: 17px; color: rgba(255,255,255,.88); }
.dcp-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0; }
.dcp-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.72); }
.dcp-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }
.dcp-docs { list-style: none; margin: 0; padding: 0; }
.dcp-docs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.dcp-docs li:first-child { border-top: 0; }
.dcp-docs .pdf-link { align-items: flex-start; }
.dcp-docs .pdf-link > span { display: flex; flex-direction: column; }
.dcp-note { padding: 12px 18px 16px; margin: 0; border-top: 1px solid var(--line-2); }
.dcp-side h2 { margin-bottom: 10px; }
.contact-card { display: flex; flex-direction: column; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; overflow-wrap: anywhere; }
.contact-card.tc { background: var(--soft); border-color: transparent; }
.contact-role { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.contact-card a { text-decoration: none; }
.dcp-foot { max-width: 1120px; margin: 0 auto; padding: 0 24px 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.dcp-foot .powered { opacity: .85; }
.dcp-settings { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.dcp-logo-preview { max-height: 48px; max-width: 200px; display: block; margin: 6px 0; }
.file-facts.wide { gap: 10px 28px; margin-top: 10px; }
.fix-email { margin-top: 6px; }
.fix-email summary { cursor: pointer; color: var(--link); }
.danger-zone { border-color: var(--bad-bg); }
.danger-zone .btn.danger { border: 1px solid var(--bad); padding: 8px 14px; border-radius: 8px; }
.row-form { display: grid; grid-template-columns: 1.1fr 1.1fr 1.2fr 1.3fr .9fr .8fr 50px auto; gap: 8px; align-items: center; padding: 8px 18px; }
.row-form .input { min-height: 38px; padding: 6px 8px; font-size: 14px; }
td.flush-cell { padding: 0 !important; }
.form-like { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .row-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .dcp-hero { padding: 22px 20px; } .dcp-hero h1, .dcp-hello h1 { font-size: 26px; }
  .dcp-docs li { flex-direction: column; align-items: stretch; } .dcp-docs .btn { align-self: flex-start; }
  .dcp-top-in { padding: 12px 16px; } .dcp-foot { padding: 0 16px 28px; }
}
.stack { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) { .dcp-side, .col-side { max-width: none; } }

/* Search (Drive Search Options) */
.search-card { display: flex; flex-direction: column; gap: 14px; }
.search-opts { display: grid; grid-template-columns: minmax(180px, 220px) auto minmax(180px, 1fr) minmax(180px, 260px); gap: 12px 18px; align-items: end; }
.search-opts .field { margin: 0; }
.search-opts fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg-radio { display: inline-flex; flex-wrap: wrap; }
.seg-radio label { display: inline-flex; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-radio span { padding: 10px 14px; font-weight: 600; background: #fff; border-right: 1px solid var(--field); min-height: 44px; display: inline-flex; align-items: center; }
.seg-radio label:last-child span { border-right: 0; }
.seg-radio input:checked + span { background: var(--primary); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: -3px; }
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.ai-filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 400px; }
.ai-filters .input { flex: 1 1 150px; min-height: 40px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; color: var(--primary); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { width: 42px; height: 24px; border-radius: 12px; background: var(--field); position: relative; transition: background .15s; flex: 0 0 auto; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + .knob { background: var(--primary); }
.switch input:checked + .knob::after { left: 21px; }
.switch input:focus-visible + .knob { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.chips-row .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.step-chip { display: inline-flex; align-items: stretch; background: #fff; border: 1px solid var(--field); border-radius: 99px; overflow: hidden; }
.step-chip button { border: 0; background: transparent; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); min-height: 34px; }
.step-chip .chip-main { padding: 4px 6px 4px 14px; font-weight: 600; }
.step-chip .chip-x { padding: 4px 12px 4px 6px; color: var(--muted); font-size: 17px; }
.step-chip button:hover { color: var(--primary); }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.results-bar p { margin: 0; }
.small-select { min-height: 36px; padding: 4px 8px; width: auto; }
.show-menu { position: relative; }
.show-menu summary { list-style: none; cursor: pointer; }
.show-menu summary::-webkit-details-marker { display: none; }
.show-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,24,42,.12); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
ol.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.results .result { display: block; padding: 14px 18px; }
.result-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.result-meta { margin-top: 2px; overflow-wrap: anywhere; }
.result-info { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--ink-2); }
.ai-sum { margin: 8px 0 0; color: var(--ink-2); }
.page-hits { display: flex; flex-direction: column; margin-top: 8px; border-left: 3px solid var(--soft); }
.page-hit { display: flex; gap: 10px; padding: 6px 10px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.45; border-radius: 0 6px 6px 0; }
.page-hit:hover { background: var(--select); color: var(--ink); }
.page-hit .pg-no { flex: 0 0 56px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.page-hit mark, .result mark { background: #FFE38A; color: inherit; border-radius: 2px; padding: 0 1px; }
.group-head { font-family: var(--head); font-weight: 600; font-size: 18px; padding: 10px 2px 2px; border-bottom: 1px solid var(--line); }
.result-tree { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.result-tree ul { list-style: none; margin: 0; padding-left: 18px; }
.result-tree > ul { padding-left: 0; }
.result-tree summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.result-tree li > a { display: inline-block; padding: 3px 0; }
.search-help ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.search-help summary { cursor: pointer; }
@media (max-width: 900px) { .search-opts { grid-template-columns: 1fr 1fr; } .search-opts fieldset { grid-column: 1 / -1; } }
@media (max-width: 640px) { .search-opts { grid-template-columns: 1fr; } .page-hit .pg-no { flex-basis: 44px; } }
.search-opts { grid-template-columns: minmax(170px, 210px) max-content minmax(160px, 1fr) minmax(180px, 240px); }
.seg-radio { flex-wrap: nowrap; white-space: nowrap; }
.results-bar .head-row { flex: 1 1 auto; justify-content: flex-end; gap: 8px; align-items: center; }
.results-bar .small-select { width: auto; flex: 0 0 auto; min-height: 38px; }
.results-bar .seg a { padding: 7px 14px; }
@media (max-width: 1100px) { .search-opts { grid-template-columns: 1fr 1fr; } .search-opts fieldset { grid-column: 1 / -1; } }
@media (max-width: 640px) { .search-opts { grid-template-columns: 1fr; } .seg-radio { flex-wrap: wrap; white-space: normal; } }

/* --- Digital Closing Package look (sign-in like dcpforme.com; per title company colors come from /closing/theme/<key>.css) --- */
body.brand-dcp { --primary: var(--tc, #002b55); --primary-dark: #001a36; --link: var(--tc-accent, #1b6ec2); --head: "Archivo", "Segoe UI", sans-serif; --body: "Jost", "Public Sans", "Segoe UI", sans-serif; }
.dcp-wordmark { display: inline-flex; align-items: center; gap: 14px; color: #fff; line-height: 1; }
.dcp-mark { width: 74px; height: 53px; flex: none; }
.dcp-words { display: flex; flex-direction: column; gap: 6px; }
.dcp-words-main { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 28px; letter-spacing: 2px; text-transform: uppercase; }
.dcp-words-main sup { font-size: 11px; vertical-align: super; letter-spacing: 0; }
.dcp-words-sub { font-family: "Jost", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; opacity: .9; }
.dcp-login { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 24px; background-color: #0d2a4a; background-image: linear-gradient(160deg, #0d2a4a, #3a6ea5 55%, #f0a868); background-size: cover; background-position: center bottom; }
.dcp-login-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; text-align: center; }
.dcp-login-top .dcp-wordmark { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.dcp-login-dcp.small-mark .dcp-mark { width: 44px; height: 32px; } .dcp-login-dcp.small-mark .dcp-words-main { font-size: 16px; } .dcp-login-dcp.small-mark .dcp-words-sub { font-size: 9px; }
.dcp-login-tc { background: rgba(255,255,255,.92); border-radius: 16px; padding: 12px 20px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.dcp-login-tc-logo { display: block; max-height: 70px; max-width: min(320px, 80vw); }
.dcp-login-tc-name { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--tc, #002b55); }
.dcp-glass { width: 100%; max-width: 560px; margin: 40px auto 0; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-radius: 32px; padding: 44px clamp(22px, 7vw, 72px); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.dcp-glass form, .dcp-glass .box, .dcp-glass .form-like { display: flex; flex-direction: column; gap: 16px; }
.dcp-heading { font-family: "Archivo", sans-serif !important; font-weight: 700 !important; font-size: clamp(22px, 3.2vw, 30px); letter-spacing: .24em; text-transform: uppercase; color: var(--tc, #002b55); text-align: center; margin: 0; }
.dcp-glass h2 { font-size: 22px; color: var(--tc, #002b55); }
.dcp-lead { text-align: center; margin: 0; font-size: 15px; }
.dcp-new { text-align: center; margin: 0; font-weight: 600; }
.dcp-glass .input { background: #fff; }
.dcp-login-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 14px; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
.dcp-login-foot a { color: #fff; text-decoration: underline; }
.dcp-login-foot .powered { font-size: 12px; opacity: .9; }
.dcp-top-mark .dcp-wordmark { color: var(--tc, #002b55); } .dcp-top-mark .dcp-mark { width: 52px; height: 37px; } .dcp-top-mark .dcp-words-main { font-size: 18px; } .dcp-top-mark .dcp-words-sub { font-size: 9px; }
.dcp-foot-mark { display: inline-block; vertical-align: middle; margin-right: 8px; } .dcp-foot-mark .dcp-wordmark { color: var(--muted); gap: 0; } .dcp-foot-mark .dcp-mark { width: 30px; height: 22px; } .dcp-foot-mark .dcp-words { display: none; }
.dcp-hero { background-size: cover; background-position: center; }
.dcp-welcome { font-size: 17px; margin: 4px 0 10px; }
/* Branding page */
.logo-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 8px 0; }
.logo-pick { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; background: var(--paper); }
.logo-pick:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent); }
.logo-pick-img { display: flex; align-items: center; justify-content: center; height: 70px; background: repeating-conic-gradient(#f3f4f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 6px; }
.logo-pick-img img { max-height: 64px; max-width: 100%; }
.color-row { display: flex; align-items: center; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.swatch-main { background: var(--tc, #002b55); } .swatch-accent { background: var(--tc-accent, #1b6ec2); }
.dcp-preview-login { min-height: 0; border-radius: 14px; padding: 18px 14px; }
.dcp-preview-login .dcp-glass { margin: 0; padding: 20px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.dcp-preview-login .dcp-heading { font-size: 20px; }
.dcp-preview-logo { max-height: 44px; max-width: 200px; margin: 0 auto; }
.dcp-preview-name { color: var(--tc, #002b55); font-family: var(--head); }
.dcp-preview-hero { margin: 12px 0; padding: 18px 20px; } .dcp-preview-hero b { font-family: var(--head); font-size: 20px; }
code.wrap { word-break: break-all; }
form.card#suggested { display: flex; flex-direction: column; gap: 16px; }
form.card#suggested h2 { margin-top: 6px; }
.dcp-hello .kicker { color: var(--tc, #002b55); }
@media (max-width: 640px) {
  .dcp-words-main { font-size: 18px; letter-spacing: 1px; } .dcp-words-sub { font-size: 9px; letter-spacing: 1.4px; } .dcp-mark { width: 50px; height: 36px; }
  .dcp-glass { margin-top: 24px; border-radius: 22px; padding: 30px 20px; }
  .dcp-heading { font-size: 24px; }
}
.col-main > .card + form.card { margin-top: 16px; }
.dcp-property { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: rgba(255,255,255,.7); border: 1px solid rgba(var(--tc-rgb, 0,43,85), .25); border-radius: 16px; padding: 14px 16px; }
.dcp-property b { font-family: var(--head); font-size: 20px; color: var(--tc, #002b55); }
.dcp-property-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tc-accent, #1b6ec2); }
.dcp-new .btn.link { padding: 0; min-height: 0; font-weight: 600; text-decoration: underline; color: var(--tc-accent, #1b6ec2); background: none; border: 0; }
.contact-card.cert { border-style: dashed; }
.photo-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 8px 0; }
.photo-pick-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--line-2); }
.photo-pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Surveys after a closing (Chris 11-20) */
.survey-q { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.survey-stars, .survey-stars-done { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; font-size: 40px; line-height: 1; }
.survey-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey-stars label { cursor: pointer; color: #c9ced6; padding: 2px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.survey-stars input:checked ~ label, .survey-stars label:hover, .survey-stars label:hover ~ label { color: var(--tc-accent, #f2a900); }
.survey-stars input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); border-radius: 6px; }
.survey-stars-done span { color: #c9ced6; }
.survey-stars-done span.on { color: var(--tc-accent, #f2a900); }
.survey-scale { display: flex; justify-content: space-between; max-width: 250px; }
.survey-yn { border: 1px solid var(--field); border-radius: 8px; overflow: hidden; align-self: flex-start; }
.survey-filter { justify-content: flex-start; margin: 12px 0; }
.survey-filter .input { width: auto; }
.survey-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.survey-kpis .kpi { font-size: 30px; font-weight: 700; margin: 4px 0; }
.survey-bars { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.survey-bar { display: grid; grid-template-columns: 38px 1fr 34px; align-items: center; gap: 8px; }
.survey-bar meter { width: 100%; height: 12px; }
.survey-side h2 { margin: 18px 0 8px; }
.survey-side h2:first-child { margin-top: 0; }
.survey-side .head-row { margin: 4px 0; }
@media (max-width: 640px) { .survey-kpis { grid-template-columns: 1fr; } }

/* one login, several companies */
.co-switch { display: flex; gap: 6px; align-items: center; }
.co-switch select { max-width: 220px; height: 34px; padding: 2px 8px; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) { .co-switch select { max-width: 130px; } }

/* authenticator app setup */
.steps { padding-left: 20px; } .steps li { margin: 0 0 18px; }
.qr { margin: 12px 0; } .qr svg { display: block; max-width: 100%; height: auto; background: #fff; border-radius: 8px; }
.setup-key { font-size: 15px; letter-spacing: .5px; word-break: normal; overflow-wrap: normal; }
.inline-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; } .inline-form .input { max-width: 160px; }

/* addenda */
.addendum-form .tabs { display: flex; gap: 6px; margin: 6px 0 12px; flex-wrap: wrap; }
.addendum-form .tab { border: 1px solid var(--line, #d6dbe4); background: #fff; border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }
.addendum-form .tab.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.scan-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.scan-buttons .btn { cursor: pointer; }
.scan-pages { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.scan-pages li { border: 1px solid var(--line, #d6dbe4); border-radius: 8px; padding: 6px; background: #fff; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.scan-pages img { width: 100%; height: 140px; object-fit: contain; background: #f3f4f6; border-radius: 4px; }
.scan-pages .row-btns { display: flex; gap: 4px; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.small-input { padding: 4px 8px; font-size: 14px; width: auto; }
.list-row.withdrawn { opacity: .55; text-decoration: line-through; }
.wide-msg { margin: 0; border-radius: 0; text-align: center; }
.withdraw { margin-top: 6px; }

/* Libraries page (staff): client / library drop-downs */
.lib-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.lib-pick label { display: block; margin-bottom: 6px; }
@media (max-width: 700px) { .lib-pick { grid-template-columns: 1fr; } }

/* Old files move (staff) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
.big-num { font-size: 22px; font-weight: 700; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }

/* Forensis File Transfer (11-24): "powered by FT Forward" under the name, and the download's status bar */
.logo-powered { display: block; font-family: var(--body); font-weight: 400; font-size: 11px; letter-spacing: 1px; opacity: .85; margin-top: 1px; }
.dl-status { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--select); }
.dl-track { height: 12px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.dl-bar { height: 100%; width: 2%; background: var(--primary); border-radius: 6px; transition: width .2s; }
.dl-status.busy .dl-bar { width: 100% !important; background: linear-gradient(90deg, var(--primary) 0 30%, var(--soft) 30% 60%, var(--primary) 60%); background-size: 200% 100%; animation: dlmove 1.2s linear infinite; }
.dl-status.done .dl-bar { background: var(--ok); }
@keyframes dlmove { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.dl-txt { margin-top: 8px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .dl-status.busy .dl-bar { animation: none; } }

/* ==== NEW LOOK 2.0 (Chris 11-27) - keep the Forensis blue; FT red only in the logo. ====
   One block, appended last so it wins. To go back: delete from this line to "END NEW LOOK". */
:root, body.brand-forensis, body.brand-ftforward {
  --primary: #092768; --primary-dark: #061B4A; --soft: #E7EDF8; --select: #F3F6FC; --link: #0B3A8C;
  --ink: #1F1F1F; --ink-2: #33302C; --muted: #5C5853; --line: #E1DCD6; --line-2: #EFEBE7; --field: #CBC4BC;
  --ground: #F3F1EF; --paper: #FFFFFF;
  --head: "Archivo", "Segoe UI", sans-serif; --body: "Public Sans", "Segoe UI", sans-serif;
  --radius: 10px;
}
h1 { font-weight: 700; letter-spacing: -.2px; }
h2, h3 { font-weight: 700; }

/* top bar: blue, the page you are on is white with blue text */
.top { background: var(--primary); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.top-in { max-width: 1320px; padding: 10px 28px; }
.logo-word { letter-spacing: .3px; font-size: 18px; }
.logo-mark { border-radius: 8px; }
.brand-ftforward .logo-mark rect:first-child { fill: #8A0F16; }
.brand-ftforward .logo-mark g { fill: #FFFFFF; }
.nav { gap: 2px; }
.nav a { color: #E3E9F5; font-size: 14px; padding: 9px 13px; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--primary); font-weight: 700; }
.avatar { background: var(--ground); color: var(--ink); }
.signout { border-color: rgba(255,255,255,.45); }
.co-switch select { background: #0F3277; color: #fff; border-color: #3A5590; }
.co-switch select option { color: var(--ink); background: #fff; }

/* page */
.main { max-width: 1320px; padding: 32px 28px 56px; }
.card, .lib-card, .result { border-color: var(--line); border-radius: 10px; }
.card-head { border-bottom-color: var(--line-2); }
.btn { border-radius: 6px; }
.input, select.input, textarea.input { border-radius: 6px; }
.big-search .input { border: 1px solid var(--field); border-radius: 8px; box-shadow: 0 6px 24px rgba(31,31,31,.08); }
.big-search .input:focus { border-color: var(--primary); }
.big-search .btn { border-radius: 8px; }
.section-label { color: var(--muted); }
.lib-icon { background: var(--soft); color: var(--primary); }
.lib-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(9,39,104,.08); }
.pill.grey { background: #ECE8E3; color: var(--muted); }
table.data th { background: #FAF9F7; letter-spacing: 1px; }
.list-row:hover { background: var(--select); }
.seg a[aria-current="true"] { background: var(--primary); }

/* viewer */
body.viewer-page { background: #E8E4DF; }
.thumbs-wrap { background: #DED9D3; }
.thumbs-bar { background: #D3CDC6; }
.thumbs-handle { border-left-color: #BDB6AE; }
.doc-side { border-left-color: var(--line); }
/* ==== END NEW LOOK ==== */

/* ==== ARCHIVE BROWSE (new look step 2, 11-27): "Browse by file #" on the Libraries page ==== */
.ab-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.ab-head h2 { margin-right: 4px; }
.ab-libs, .ab-series { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-libs a, nav.ab-series a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 7px 12px; font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.ab-libs a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
nav.ab-series { padding: 14px 20px 4px; }
nav.ab-series a span { color: var(--muted); font-size: 12px; }
nav.ab-series a[aria-current="true"] { background: var(--soft); border-color: var(--soft); color: var(--primary); font-weight: 700; }
nav.ab-series a[aria-current="true"] span { color: var(--primary); }
form.ab-series { padding: 14px 20px 4px; align-items: center; }
form.ab-series select { max-width: 320px; min-height: 40px; font-size: 15px; }
.ab-jump { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ab-jump .input { width: 120px; min-height: 38px; font-size: 15px; }
.ab-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 14px 20px 18px; max-height: 340px; overflow-y: auto; }
.ab-blocks a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.ab-blocks a:hover { border-color: var(--primary); color: var(--ink); }
.ab-blocks a b { font-family: var(--head); font-size: 15px; overflow-wrap: anywhere; }
.ab-blocks a span { font-size: 12px; color: var(--muted); }
.ab-blocks a[aria-current="true"] { border: 2px solid var(--primary); padding: 10px 12px; background: var(--select); }
.ab-blocks a[aria-current="true"] b { color: var(--primary); }
.ab .table-wrap { border-top: 1px solid var(--line-2); max-height: 560px; overflow-y: auto; }
.ab-code { font-weight: 700; text-decoration: none; }
.ab-empty { padding: 18px 20px; margin: 0; }
@media (max-width: 640px) { .ab-jump { margin-left: 0; width: 100%; } .ab-jump .input { flex: 1; width: auto; } .ab-blocks { grid-template-columns: 1fr 1fr; max-height: 260px; } }
/* ==== END ARCHIVE BROWSE ==== */

/* ==== SERVICES + HERO (new look step 3, 11-27): service tabs in the bar, page row under it, "Find a file" ==== */
.svc-tabs a { font-weight: 600; }
.svc-tabs a.svc-add { border: 1px dashed rgba(255,255,255,.45); font-weight: 500; }
.svc-tabs a.svc-add[aria-current="page"] { border-style: solid; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav-in { max-width: 1320px; margin: 0 auto; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 4px; }
.subnav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 12px 12px 10px; border-bottom: 3px solid transparent; min-height: 44px; display: inline-flex; align-items: center; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--primary); }
.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 18px 0 6px; }
.hero h1 { font-size: 40px; color: var(--primary); }
.hero-sub { margin: 0; color: var(--muted); font-size: 15px; }
.hero-search { width: 100%; max-width: 880px; display: flex; align-items: stretch; background: #fff; border: 1px solid var(--field); border-radius: 30px; box-shadow: 0 6px 24px rgba(31,31,31,.08); overflow: hidden; margin-top: 6px; }
.hero-search:focus-within { border-color: var(--primary); }
.hero-search select { border: 0; border-right: 1px solid var(--line); background: #FAF9F7; font: inherit; font-weight: 600; color: var(--primary); padding: 0 14px 0 20px; max-width: 260px; min-height: 58px; cursor: pointer; }
.hero-icon { display: flex; align-items: center; padding: 0 4px 0 18px; color: var(--primary); }
.hero-search input { flex: 1 1 200px; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 0 12px; background: transparent; color: var(--ink); min-height: 58px; }
.hero-search .btn { border-radius: 0 30px 30px 0; min-height: 58px; padding: 0 28px; font-size: 16px; }
.hero-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero-try a { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 6px 13px; color: var(--ink); text-decoration: none; min-height: 34px; display: inline-flex; align-items: center; }
.hero-try a:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero-search { flex-wrap: wrap; border-radius: 12px; }
  .hero-search select { flex: 1 1 100%; max-width: none; border-right: 0; border-bottom: 1px solid var(--line); min-height: 48px; }
  .hero-search .btn { border-radius: 0; flex: 1 1 100%; min-height: 50px; }
  .subnav-in { padding: 0 12px; overflow-x: auto; flex-wrap: nowrap; }
}
/* ==== END SERVICES + HERO ==== */

/* ==== STEP 4 (11-27): file page action bar, browse modes, company info, phone touch-ups ==== */
.act-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100vw - 32px); background: var(--primary); color: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(9,39,104,.35); }
.act-bar[hidden] { display: none; }
.act-bar .act-count { padding: 0 6px; white-space: nowrap; }
.act-bar button { min-height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.act-bar button:hover { background: rgba(255,255,255,.12); }
.act-bar button.act-main { background: #fff; color: var(--primary); border-color: #fff; }
.act-bar button.act-clear { border-color: transparent; font-weight: 500; text-decoration: underline; }
.act-bar .act-note { font-size: 13px; color: #DCE6F7; }
body.has-act-bar .main { padding-bottom: 110px; }
.ab-modes, .ab-libs { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-modes a { white-space: nowrap; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 7px 14px; font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; }
.ab-modes a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.ab-only { font-family: var(--head); font-weight: 700; color: var(--primary); }
nav.ab-libs { padding: 12px 20px 0; }
.ab-blocks.ab-small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.ci-source { background: var(--soft); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.ci-source.ok { background: var(--ok-bg); color: var(--ok); }
.ci-source span { color: var(--muted); }
.ci-dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 10px 16px; font-size: 15px; }
.ci-dl dt { color: var(--muted); }
.ci-dl dd { margin: 0; overflow-wrap: anywhere; }
.ci-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ci-grid .ci-company_name, .ci-grid .ci-email, .ci-grid .ci-cc_email, .ci-grid .ci-bill_street, .ci-grid .ci-ship_street, .ci-grid .ci-pickup_note { grid-column: span 2; }
.ci-contacts td { vertical-align: middle; }
.ci-contacts .input { min-height: 40px; font-size: 15px; }
.ci-roles { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ci-ch { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.ci-pending { border-color: var(--warn); }
.ci-history summary { cursor: pointer; }
@media (max-width: 900px) { .ci-grid { grid-template-columns: 1fr 1fr; } }
/* phone */
@media (max-width: 640px) {
  .top-in { gap: 8px 12px; }
  .logo-word { font-size: 15px; letter-spacing: 0; }
  .svc-tabs { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; gap: 2px; margin: 0 -4px; padding-bottom: 2px; }
  .svc-tabs a { padding: 8px 10px; font-size: 13px; }
  .me { margin-left: auto; }
  .me .co-switch { display: none; }
  .signout { padding: 6px 8px; }
  .hero { padding-top: 4px; }
  .hero-sub { font-size: 13px; }
  .hero-icon { display: none; }
  .ab-head { padding: 14px 16px; }
  .ab-modes, nav.ab-series, .ab-libs { flex-wrap: nowrap; overflow-x: auto; }
  nav.ab-series, nav.ab-libs { padding-left: 16px; padding-right: 16px; }
  .ab-blocks { padding: 12px 16px 14px; gap: 8px; }
  .ab-blocks a b { font-size: 13px; }
  .ab-jump label { white-space: nowrap; }
  .ab-added { display: none; }
  .ab-table .ab-wide { display: none; }
  .ab-table td, .ab-table th { padding-top: 12px; padding-bottom: 12px; }
  .act-bar { left: 0; right: 0; bottom: 0; transform: none; max-width: none; border-radius: 16px 16px 0 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .act-bar .act-count, .act-bar .act-main { grid-column: 1 / -1; }
  .act-bar .act-main { min-height: 48px; font-size: 16px; }
  .act-bar .act-note { grid-column: 1 / -1; text-align: center; }
  body.has-act-bar .main { padding-bottom: 260px; }
  .ci-grid { grid-template-columns: 1fr; }
  .ci-grid > div { grid-column: auto !important; }
  .ci-dl { grid-template-columns: 1fr; gap: 2px; }
  .ci-dl dd { margin-bottom: 10px; }
  .cols > .col-side { order: 2; max-width: none; }
  .file-head { flex-wrap: wrap; }
}
/* ==== END STEP 4 ==== */

/* ===== E-SIGN (11-27) ===== */
@font-face { font-family: "ES Script"; font-weight: 400; font-display: swap; src: url("fonts/dancing-script-latin-400-normal.9583d952d87e.woff2") format("woff2"); }
.main.wide { max-width: 1480px; }
.es-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.es-filter .input { max-width: 320px; }
.es-filter .chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.es-filter .chip { display: inline-flex; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; color: var(--ink); font-size: 14px; }
.es-filter .chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.es-filter .chip.on .muted { color: #dfe6f5; }
section.card + section.card { margin-top: 16px; }
.es-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #B8BFCC; margin-right: 6px; vertical-align: middle; }
.es-dot[data-color] { background: var(--c, #B8BFCC); }
.es-dot.es-signed { background: #1E6B2A; } .es-dot.es-declined { background: #A11B1B; } .es-dot.es-opened { background: #C98A00; } .es-dot.es-sent { background: #6E86B8; }
.es-docs { margin: 0 0 8px; padding-left: 18px; }
.es-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.es-row { margin-top: 12px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.es-void { margin-top: 16px; }
.es-signer + .es-signer { border-top: 1px solid var(--line-2); }
/* prepare */
.es-prep { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; margin-top: 12px; }
.es-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.es-side h2 { font-size: 17px; margin: 0 0 8px; }
.es-srow { display: grid; grid-template-columns: 22px 1fr 1.3fr; gap: 6px; align-items: center; margin-bottom: 6px; }
.es-n { color: var(--muted); font-weight: 600; text-align: center; }
.es-who, .es-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.es-who button, .es-kinds button { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.es-who button.on { border-color: var(--c, var(--primary)); box-shadow: inset 0 0 0 2px var(--c, var(--primary)); }
.es-kinds button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.es-sel { border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 10px; }
.es-sel h3 { font-size: 15px; margin: 0 0 6px; }
.es-pages { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.es-page { position: relative; width: 100%; max-width: 900px; background: #fff; box-shadow: 0 1px 4px rgba(20, 24, 42, .18); }
.es-page canvas { display: block; width: 100%; height: 100%; }
.es-layer { position: absolute; inset: 0; cursor: crosshair; }
.es-pages.signer .es-layer { cursor: default; }
.es-pno { position: absolute; right: 8px; bottom: -20px; font-size: 12px; color: var(--muted); }
.es-box { position: absolute; border: 2px dashed var(--c, #092768); background: color-mix(in srgb, var(--c, #092768) 12%, transparent); border-radius: 3px; cursor: move; overflow: hidden; touch-action: none; }
.es-box.sel { border-style: solid; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #092768) 30%, transparent); }
.es-box-t { position: absolute; left: 3px; top: 1px; font-size: 11px; line-height: 1.2; color: var(--c, #092768); white-space: nowrap; pointer-events: none; }
.es-grip { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; background: var(--c, #092768); cursor: nwse-resize; }
/* signing */
.es-signbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(20, 24, 42, .08); }
.es-signbar .grow { flex: 1 1 200px; }
#es-finish.ready { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.es-more { position: relative; }
.es-more summary { list-style: none; }
.es-more-in { position: absolute; right: 0; top: 110%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 220px; z-index: 30; }
.es-msg-box { background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.es-fill { position: absolute; box-sizing: border-box; border: 2px solid #C98A00; background: rgba(255, 214, 102, .35); border-radius: 3px; font: inherit; }
.es-fill.filled { border-color: #1E6B2A; background: rgba(30, 107, 42, .08); }
.es-sigbox { cursor: pointer; display: flex; align-items: center; justify-content: flex-start; padding: 0 4px; color: #7A5300; font-weight: 600; font-size: 13px; }
.es-sigbox img { max-width: 100%; max-height: 100%; }
.es-text { padding: 0 4px; font-size: 13px; }
.es-check { margin: 0; accent-color: var(--primary); }
.es-auto { display: flex; align-items: center; padding: 0 4px; font-size: 13px; color: var(--ink); border-style: dotted; background: rgba(30, 107, 42, .06); border-color: #9BB8A1; }
.es-dlg { border: 0; border-radius: 14px; padding: 0; max-width: 680px; width: calc(100% - 32px); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.es-dlg::backdrop { background: rgba(20, 24, 42, .45); }
.es-dlg-in { padding: 20px; }
.es-dlg h2 { margin-top: 0; }
.es-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.es-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 6px 14px; font: inherit; cursor: pointer; }
.es-tabs button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.es-preview { display: flex; gap: 10px; margin: 10px 0; }
.es-preview canvas { border-bottom: 2px solid var(--line); max-width: 70%; height: auto; }
.es-preview canvas + canvas { max-width: 28%; }
.es-pad { display: block; width: 100%; max-width: 600px; height: auto; border: 1px dashed var(--muted); border-radius: 8px; background: #fff; touch-action: none; }
.es-pad.ini { max-width: 240px; margin-top: 10px; }
.es-consent { background: var(--select); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.es-forfile { margin: 12px 0; }
.es-forfile h2 { font-size: 17px; margin: 0 0 6px; }
@media (max-width: 900px) {
  .es-prep { grid-template-columns: 1fr; }
  .es-side { position: static; max-height: none; }
  .es-srow { grid-template-columns: 22px 1fr; }
  .es-srow input[type=email] { grid-column: 2; }
  .es-signbar { top: 0; border-radius: 0; margin: 0 -16px 12px; }
}

/* ===== FT TRANSFER (11-28) ===== */
.tr-use { margin: 12px 0; }
.tr-use-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: baseline; }
.tr-meter { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.tr-meter i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; }
.tr-meter i.hot { background: #A11B1B; }
.tr-plan { flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.tr-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; background: var(--select); margin: 8px 0; }
.tr-drop.over { border-color: var(--primary); background: var(--soft); }
.tr-list { list-style: none; margin: 8px 0; padding: 0; }
.tr-row { display: grid; grid-template-columns: 1fr auto 160px auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.tr-name { overflow-wrap: anywhere; font-weight: 600; }
.tr-bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 0; background: var(--primary); }
.tr-row.ok .tr-bar i { background: #1E6B2A; }
.tr-row.bad .tr-state { color: #A11B1B; }
.tr-row.ok .tr-state { color: #1E6B2A; }
.tr-files .tr-row, .tr-list li.tr-row:has(a) { grid-template-columns: 1fr auto auto; }
.tr-linkbox { display: flex; gap: 8px; }
.tr-linkbox .input { flex: 1 1 auto; }
.tr-act { white-space: nowrap; }
.tr-act .btn, .tr-act details { margin-right: 6px; display: inline-block; vertical-align: top; }
.tr-save-form { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); margin-top: 6px; min-width: 240px; white-space: normal; }
@media (max-width: 700px) {
  .tr-row { grid-template-columns: 1fr auto; }
  .tr-row .tr-bar { grid-column: 1 / -1; }
}
/* ===== FT TRANSFER: MAKE SMALLER (11-28) ===== */
.tr-lv { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-lv label { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: start; cursor: pointer; }
.tr-lv label .small { grid-column: 2; }
.card-head .tr-act { margin-left: auto; }
.tr-act .tr-save-form { max-width: 380px; }
/* ===== DCP NEW LOOK + MOVE-IN CENTER (11-28) ===== */
body.dcp { background: #fff; }
body.dcp .dcp-main { max-width: 1180px; }
.dz-hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; box-shadow: 0 10px 30px rgba(20,24,42,.12); }
.dz-hero-img { position: absolute; inset: 0; background: #cfe6f5 url("dcp-home-hero.af4c192d5b48.svg") center bottom / cover no-repeat; }
.dz-hero-img.photo { background-position: center; background-size: cover; }
.dz-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,20,35,.55) 100%); }
.dz-hero-card { position: relative; z-index: 1; padding: 26px 30px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.dz-hero-card h1 { margin: 8px 0 2px; font-size: 40px; line-height: 1.1; color: #fff; }
.dz-hero-card p { margin: 0; font-size: 18px; opacity: .95; }
.dz-pill { display: inline-block; background: #fff; color: #1E6B2A; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 99px; text-shadow: none; letter-spacing: .02em; }
.dz-pill::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2EA44F; margin-right: 7px; vertical-align: 1px; }
.dz-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; padding: 4px 4px 0; }
.dz-big b { display: block; font-family: var(--head); font-size: 36px; line-height: 1.1; color: var(--ink); }
.dz-big span { color: var(--muted); font-size: 14px; }
.dz-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dz-chips li { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; background: #fff; }
.dz-chips span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dz-chips b { font-size: 15px; }
.dz-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 5; padding: 0 4px; }
.dz-tabs a { padding: 14px 0 12px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; }
.dz-tabs a.on { border-bottom-color: currentColor; }
.dz-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.dz-main { display: flex; flex-direction: column; gap: 34px; min-width: 0; }
.dz-section { scroll-margin-top: 70px; }
.dz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dz-head h2, .dz-mi-top h2, .dz-side h2 { margin: 0; font-size: 24px; }
.dz-docs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.dz-doc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.dz-doc:hover { box-shadow: 0 8px 22px rgba(20,24,42,.12); transform: translateY(-2px); }
.dz-doc-pic { display: block; background: var(--ground); aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.dz-doc-pic img { width: 100%; height: auto; display: block; }
.dz-doc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dz-doc-title { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; }
.dz-doc-act { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.dz-movein { background: linear-gradient(180deg, #F3F8FC 0%, #fff 220px); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 20px; }
.dz-mi-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.dz-mi-top > div:first-child { flex: 1 1 320px; }
.dz-mi-top p { margin: 4px 0 0; max-width: 560px; }
.dz-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin: 0 0 4px; }
.dz-progress { min-width: 200px; display: flex; flex-direction: column; align-items: flex-end; }
.dz-progress .dz-bar { width: 100%; }
.dz-progress b { font-size: 22px; font-family: var(--head); }
.dz-bar { display: block; height: 8px; border-radius: 9px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.dz-bar i { display: block; height: 100%; width: 0; background: #1b6ec2; border-radius: 9px; transition: width .3s; }
.dz-next { display: flex; align-items: center; gap: 16px; margin: 20px 0 4px; padding: 14px 16px; border-radius: 14px; background: #FFF6E5; border: 1px solid #F3D9A4; }
.dz-next > div { flex: 1; display: flex; flex-direction: column; }
.dz-next-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 12px; background: #fff; border: 1px solid #F3D9A4; line-height: 1.1; }
.dz-next-date b { font-size: 15px; } .dz-next-date span { font-size: 12px; color: var(--muted); }
.dz-group { margin: 24px 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dz-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dz-task { display: grid; grid-template-columns: 28px 46px 1fr; gap: 12px; align-items: start; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.dz-task.done { background: #F7FAF7; }
.dz-task.done .dz-task-body b, .dz-task.done .dz-task-body > span.small { color: var(--muted); }
.dz-task-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dz-task-body b { font-size: 16px; }
.dz-due { display: inline-block; font-size: 12px; font-weight: 700; color: #7A4A00; background: #FFF1D6; border-radius: 99px; padding: 2px 9px; margin-left: 4px; vertical-align: 2px; }
.dz-due.soon { color: #8E1B1B; background: #FBE4E4; }
.dz-task.done .dz-due { color: var(--muted); background: var(--line-2); }
.dz-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; font-size: 14px; }
.dz-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #E8F1FB; color: #1b5fa8; }
.dz-ico-shield, .dz-ico-tag, .dz-ico-receipt { background: #E6F4EA; color: #1E6B2A; }
.dz-ico-wave, .dz-ico-storm { background: #E3F4F8; color: #0F6F86; }
.dz-ico-bolt { background: #FFF4D6; color: #8A5A00; } .dz-ico-drop, .dz-ico-wifi { background: #EAF0FF; color: #2D4FB3; }
.dz-ico-trash, .dz-ico-recycle, .dz-ico-couch { background: #EEF2F0; color: #3C6B4E; } .dz-ico-sprinkler { background: #E3F4F8; color: #0F6F86; }
.dz-ico-car, .dz-ico-mail, .dz-ico-vote { background: #F3ECFB; color: #5B2D91; }
.dz-check { position: relative; width: 28px; height: 28px; margin-top: 9px; cursor: pointer; }
.dz-check input { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; cursor: pointer; }
.dz-box { display: block; width: 26px; height: 26px; border: 2px solid var(--field); border-radius: 8px; background: #fff; }
.dz-check input:checked + .dz-box { background: #1b6ec2; border-color: #1b6ec2; }
.dz-check input:checked + .dz-box::after { content: ""; display: block; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translate(8px, 3px) rotate(45deg); }
.dz-check input:focus-visible + .dz-box { outline: 3px solid #9cc3ef; outline-offset: 2px; }
.dz-remind { display: flex; gap: 10px; align-items: center; margin: 20px 0 6px; font-weight: 600; }
.dz-remind input { width: 20px; height: 20px; }
.dz-side { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 12px; }
.dz-person, .dz-cert { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dz-person > div, .dz-cert { flex-direction: column; }
.dz-person > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dz-cert { border-style: dashed; }
.dz-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: #3B6FB6; font-size: 16px; letter-spacing: .02em; }
.dz-avatar.a2 { background: #2E8A6B; } .dz-avatar.tc { background: var(--tc, #002b55); }
.dz-role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dz-person-act { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .dz-cols { grid-template-columns: 1fr; }
  .dz-side { position: static; }
  .dz-hero { min-height: 260px; border-radius: 14px; }
  .dz-hero-card { padding: 18px 18px; }
  .dz-hero-card h1 { font-size: 28px; }
  .dz-big b { font-size: 28px; }
  .dz-movein { padding: 18px 14px; }
  .dz-task { grid-template-columns: 28px 1fr; }
  .dz-task .dz-ico { display: none; }
  .dz-progress { align-items: flex-start; width: 100%; }
  .dz-next { flex-wrap: wrap; }
  .dz-next > div { min-width: 0; flex-basis: calc(100% - 80px); }
  .dz-next .btn { width: 100%; text-align: center; }
  .dz-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dz-doc-act { flex-direction: column; }
  .dz-tabs { gap: 18px; overflow-x: auto; }
}

/* ==== TOP BAR + FULL WIDTH (Chris 11-29) - company and library top left, name + Sign out top right, the whole screen width.
   To go back: delete from this line to "END TOP BAR". ==== */
.top-in, .subnav-in { max-width: none; padding-left: clamp(16px, 2.4vw, 40px); padding-right: clamp(16px, 2.4vw, 40px); }
.top-in { flex-wrap: nowrap; gap: 10px 18px; }
.main { max-width: none; padding-left: clamp(16px, 2.4vw, 40px); padding-right: clamp(16px, 2.4vw, 40px); }
.main.narrow { max-width: 1240px; }
.main.wide { max-width: none; }
.tb-where { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
.tb-co { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tb-dd { position: relative; }
.tb-dd > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; border-radius: 6px; padding: 8px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; max-width: 300px; }
.tb-dd > summary::-webkit-details-marker { display: none; }
.co-dd > summary { color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.lib-dd > summary { color: var(--primary); background: #fff; font-weight: 700; }
.tb-dd-t { overflow: hidden; text-overflow: ellipsis; }
.tb-dd-n { font-weight: 500; font-size: 12px; color: var(--muted); }
.tb-staff { font-size: 10px; font-weight: 800; letter-spacing: .08em; background: #fff; color: var(--primary); border-radius: 4px; padding: 2px 5px; }
.tb-car { flex: 0 0 auto; }
.tb-dd[open] > summary .tb-car { transform: rotate(180deg); }
.tb-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 80; min-width: 240px; max-width: 360px; max-height: 60vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(20,24,42,.18); padding: 6px; display: flex; flex-direction: column; }
.tb-menu a, .tb-menu button { display: block; text-align: left; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.tb-menu a:hover, .tb-menu button:hover { background: var(--select, #E7EDF8); color: var(--ink); }
.tb-menu [aria-current] { background: #E7EDF8; color: var(--primary); font-weight: 700; }
.tb-menu .tb-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; color: var(--primary); font-weight: 600; border-radius: 0 0 6px 6px; }
.top .nav { flex: 1 1 auto; min-width: 0; }
.top .me { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 1440px) { .me-text { display: flex; flex-direction: column; } }
@media (max-width: 1180px) { .me-text { display: none; } .top-in { flex-wrap: wrap; } }
@media (max-width: 640px) { .tb-where { flex: 1 1 100%; order: 3; flex-wrap: wrap; } .tb-dd > summary { max-width: 70vw; } .tb-menu { max-width: calc(100vw - 32px); } }
/* ==== END TOP BAR ==== */

/* E-mails page (11-29) */
.pre-wrap { white-space: pre-wrap; }

/* 👁 View as a company (11-30) */
.viewas-band { background: #8A0F16; color: #fff; text-align: center; font-weight: 700; padding: 8px 12px; font-size: 14px; position: sticky; top: 0; z-index: 50; }
.viewas-band form { display: inline; margin-left: 10px; }
.viewas-band button { background: #fff; color: #8A0F16; border: 0; border-radius: 6px; padding: 5px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.viewas-now { background: #F4E4E5; border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.viewas-find { margin: 12px 0; display: flex; gap: 8px; max-width: 480px; }
.viewas-find input { flex: 1; min-height: 38px; padding: 0 10px; border: 1px solid var(--field); border-radius: 8px; font: inherit; }
.viewas-list { width: 100%; border-collapse: collapse; }
.viewas-list th, .viewas-list td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.viewas-list td:last-child { text-align: right; }

/* 11-30 (Chris): FT Service pages (Company info, Pickups, Users, Activity, Plan) listed down the left side */
.main:has(> .sidenav) { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.main:has(> .sidenav) > :not(.sidenav) { grid-column: 2; }
.sidenav { grid-column: 1; grid-row: 1 / span 60; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.sidenav-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 8px; }
.sidenav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.sidenav a:hover { background: var(--soft); }
.sidenav a[aria-current="page"] { background: var(--primary); color: #fff; }
@media (max-width: 900px) {
  .main:has(> .sidenav) { display: flex; }
  .sidenav { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidenav-h { width: 100%; }
}
/* 11-30 company logo card (Company info) */
.ci-logo-now { display: flex; align-items: center; min-height: 90px; padding: 12px; margin: 6px 0 12px; border-radius: 10px;
  background: repeating-conic-gradient(#f3f4f7 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.ci-logo-img { max-height: 90px; max-width: 320px; width: auto; height: auto; display: block; }
.ci-logo-read .input { flex: 1 1 260px; }
.dash-logo-box { flex-direction: column; gap: 6px; }
.dash-logo-edit { font-size: 13px; }
/* 11-30 viewer: the pages one under the other (viewer.js), so the PDF scrolls to the next page */
.page-box .pv-stack { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0 24px; }
.page-box .pv { display: flex; justify-content: center; max-width: 100%; }
.page-box .pv canvas { background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.18); display: block; }
body.nl2 .page-box .pv canvas { box-shadow: 0 24px 60px rgba(9,39,104,.22); border-radius: 6px; }
.toolbar .tb.fit { width: auto; padding: 0 10px; font-size: 13px; }

/* Viewer left panel: Pages | In this file (2026-12-01) */
.lp-tabs{display:flex;gap:4px;padding:6px;border-bottom:1px solid var(--line,#e2e8f0)}
.lp-tabs button{flex:1;min-width:0;border:1px solid transparent;background:none;border-radius:8px;padding:5px 6px;font:inherit;font-size:12px;font-weight:600;color:var(--muted,#64748b);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-tabs button.on{background:#fff;border-color:var(--line,#e2e8f0);color:var(--ink,#0f172a);box-shadow:0 1px 2px rgba(15,23,42,.08)}
.lp-pages{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.lp-pages[hidden],.lp-docs[hidden]{display:none}
.lp-docs{flex:1 1 auto;min-height:0;overflow:auto;padding:6px;display:flex;flex-direction:column;gap:2px}
.lp-doc{display:grid;grid-template-columns:auto 1fr;gap:1px 8px;align-items:center;padding:7px 8px;border-radius:8px;text-decoration:none;color:inherit;font-size:13px}
.lp-doc .ic{grid-row:span 2;font-size:9px;font-weight:700;color:#b91c1c;border:1px solid #fecaca;background:#fef2f2;border-radius:4px;padding:3px 4px}
.lp-doc .nm{overflow-wrap:anywhere;line-height:1.25}
.lp-doc .pp{font-size:11px;color:var(--muted,#64748b)}
.lp-doc:hover{background:rgba(37,99,235,.07)}
.lp-doc.on{background:rgba(37,99,235,.12);font-weight:600}
/* Secure send: rest of this file */
.file-rest{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line,#e2e8f0)}
.fr-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.lp-tabs{flex-wrap:wrap}.lp-tabs button{flex:1 1 92px}.thumbs-wrap.lp-docs-on{width:max(var(--thumb-w),220px)!important}

/* 12-01 Bryant: DIRECTORY TREE / SEARCH toggle on library + search pages */
.lib-toggle { display: flex; justify-content: center; margin: 4px 0 20px; }
.lib-toggle-in { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(240,245,255,.78));
  border: 1px solid rgba(15,35,90,.12);
  box-shadow: 0 10px 28px rgba(15,35,90,.12), 0 1px 0 rgba(255,255,255,.9) inset;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lib-toggle a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 24px; border-radius: 999px;
  font-family: var(--head, inherit); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #4B5B78; text-decoration: none; white-space: nowrap;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease; }
.lib-toggle a svg { flex: 0 0 auto; transition: transform .25s ease; }
.lib-toggle a:hover { color: #0B2A6F; background: rgba(11,42,111,.07); }
.lib-toggle a:hover svg { transform: scale(1.12); }
.lib-toggle a:focus-visible { outline: 2px solid #3B6FE0; outline-offset: 2px; }
.lib-toggle a[aria-current] { color: #fff; background: linear-gradient(135deg, #0B2A6F 0%, #1C46B0 60%, #2F64E0 100%);
  box-shadow: 0 8px 20px rgba(11,42,111,.35), 0 1px 0 rgba(255,255,255,.25) inset; }
.lib-toggle a[aria-current]:hover { color: #fff; transform: translateY(-1px); }
@media (max-width: 640px) { .lib-toggle a { padding: 10px 14px; letter-spacing: .07em; font-size: 12px; } }

/* 12-01 Bryant: Return to Home + toggle share one row at the top, same spot on library and search */
.lib-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 0 0 14px; }
.lib-top .back-home { margin: 0; }
.lib-top .lib-toggle { margin: 0; }
@media (max-width: 720px) { .lib-top { grid-template-columns: 1fr; justify-items: center; } .lib-top .back-home { justify-self: start; } .lib-top > span { display: none; } }

/* 12-01 Bryant: "My Files" in the top menu is a pull-down of the libraries */
.svc-tabs .svc-dd { position: relative; }
.svc-tabs .svc-dd > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 9px 13px; font-size: 14px; font-weight: 600; line-height: 21px; color: rgb(220,228,245); border-radius: 10px; cursor: pointer; user-select: none; white-space: nowrap; }
.svc-tabs .svc-dd > summary::-webkit-details-marker { display: none; }
.svc-tabs .svc-dd > summary:hover, .svc-tabs .svc-dd[open] > summary { background: rgba(255,255,255,.12); color: #fff; }
.svc-tabs .svc-dd > summary.on { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
.svc-tabs .svc-dd .tb-car { opacity: .85; transition: transform .2s ease; }
.svc-tabs .svc-dd[open] .tb-car { transform: rotate(180deg); }
.svc-tabs .svc-dd .tb-menu { top: calc(100% + 8px); left: 0; }
.svc-tabs .svc-dd .tb-menu a { display: block; height: auto; padding: 8px 12px; border-radius: 6px; background: none; color: var(--ink, #1F2937); font-weight: 500; font-size: 14px; line-height: 1.35; white-space: normal; box-shadow: none; }
.svc-tabs .svc-dd .tb-menu a:hover { background: var(--select, #E7EDF8); color: var(--ink, #1F2937); }
.svc-tabs .svc-dd .tb-menu a[aria-current] { background: #E7EDF8; color: var(--primary, #0B2A6F); font-weight: 700; }
.svc-tabs .svc-dd .tb-menu a.tb-all { border-top: 1px solid var(--line, #E5E7EB); margin-top: 4px; padding-top: 10px; border-radius: 0 0 6px 6px; color: var(--primary, #0B2A6F); font-weight: 600; }
.svc-tabs .svc-dd .tb-none { display: block; padding: 8px 12px; color: var(--muted, #6B7280); font-size: 13px; }

/* 12-02 FT FILES logo (Chris): [FT] FILES - the red box exactly as tall as the word FILES - BY FORENSIS TECHNOLOGIES under the box */
.ftlock { display: inline-flex; flex-direction: column; align-items: flex-start; color: inherit; text-decoration: none; --ftl: 30px; }
.ftlock-row { display: flex; align-items: center; gap: calc(var(--ftl) * .22); font-size: var(--ftl); line-height: 1; }
.ftlock-row .logo-mark { width: calc(var(--ftl) * .72) !important; height: calc(var(--ftl) * .72) !important; border-radius: calc(var(--ftl) * .06) !important; flex: none; }
.ftlock-row b { display: block; font-family: Outfit, var(--head), sans-serif; font-weight: 700; font-size: var(--ftl); line-height: .72; letter-spacing: .04em; }
.ftlock small { display: block; font-family: Outfit, var(--head), sans-serif; font-weight: 600; font-size: calc(var(--ftl) * .21); letter-spacing: .14em; line-height: 1; margin-top: calc(var(--ftl) * .2); opacity: .8; white-space: nowrap; }
.auth-brand .ftlock { --ftl: 44px; }
