/* Sealfold. Sealed blue: folder blue for action, navy ink, one gold seal per screen. Outfit throughout, IBM Plex Mono for every time.
   It should feel like the file apps everyone knows, with privacy shown as plain facts.
   The signer's screen is Inkmarq's own (see "Inkmarq" below): violet, pink and amber ink, Bricolage and Albert Sans. */
@font-face { font-family: 'Outfit'; font-weight: 100 900; font-display: swap; src: url('/fonts/outfit-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2'); }
@font-face { font-family: 'Albert Sans'; font-weight: 100 900; font-display: swap; src: url('/fonts/albert-sans-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --blue: #2F6BD8; --deep: #1F4F9E; --on-blue: #FFFFFF; --gold: #F2C14E; --gold-soft: #FDF3D6;
  --ink: #14233A; --paper: #F4F7FB; --card: #FFFFFF; --sel: #EAF1FC;
  --line: #E2E8F0; --line-strong: #CBD5E1; --muted: #5B6779; --grey: #7A8699;
  --done: #1F7A4A; --done-soft: #E7F3EC; --problem: #B3261E; --problem-soft: #FBE7E5;
  --ink-violet: #6B4CF5;
  --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --logo: url('/img/sealfold/lockup.svg'); --mark: url('/img/sealfold/mark.svg');
  --shadow: 0 1px 2px rgba(20, 35, 58, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --blue: #6F9BF0; --deep: #9DBBF5; --on-blue: #0E1626; --gold-soft: #3A3320;
    --ink: #EAF0F8; --paper: #0E1626; --card: #152036; --sel: #1B2A45; --line: #24324A; --line-strong: #34465F; --muted: #A3B0C2; --grey: #8592A6;
    --done: #5FC48E; --done-soft: #17322A; --problem: #F2877F; --problem-soft: #3A1F1D; --ink-violet: #A993FF;
    --logo: url('/img/sealfold/lockup-dark.svg'); --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #6F9BF0; --deep: #9DBBF5; --on-blue: #0E1626; --gold-soft: #3A3320;
  --ink: #EAF0F8; --paper: #0E1626; --card: #152036; --sel: #1B2A45; --line: #24324A; --line-strong: #34465F; --muted: #A3B0C2; --grey: #8592A6;
  --done: #5FC48E; --done-soft: #17322A; --problem: #F2877F; --problem-soft: #3A1F1D; --ink-violet: #A993FF;
  --logo: url('/img/sealfold/lockup-dark.svg'); --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); font-variant-numeric: tabular-nums; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
h1 { font-weight: 700; letter-spacing: -.035em; font-size: clamp(26px, 4vw, 34px); }
h2 { font-weight: 600; letter-spacing: -.02em; font-size: 21px; }
h3 { font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
p { margin: 0 0 12px; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.5; }
.eyebrow { font: 600 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); font-weight: 500; font-size: 13.5px; }
.form-tag { font: 500 12px/1.4 var(--mono); color: var(--muted); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hidden { display: none !important; }
.noscript { padding: 24px; }
/* "Waiting on you": the one gold item on a screen. */
.hl { background: var(--gold-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold); padding: 1px 7px; border-radius: 6px; font-weight: 600; }

/* Controls: one blue button per screen, white second, violet outline only for Inkmarq. */
button, .btn { font: 600 15.5px/1.2 var(--body); border-radius: 9px; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; background: var(--card); color: var(--ink); border: 1.5px solid var(--line-strong); text-decoration: none; }
.btn:hover { background: var(--sel); }
.btn.primary { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.btn.primary:hover { background: var(--deep); border-color: var(--deep); }
:root[data-theme="dark"] .btn.primary:hover { background: var(--blue); filter: brightness(1.1); }
.btn.quiet { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn.danger { background: var(--problem); color: #fff; border-color: var(--problem); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.compact { min-height: 36px; padding: 6px 14px; font-size: 14.5px; }
.link { background: none; border: 0; padding: 6px 0; min-height: 32px; color: var(--blue); font: 500 15px/1.3 var(--body); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--problem); }
label { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 5px; min-height: 44px; padding: 9px 12px; font: 400 16px/1.4 var(--body);
  color: var(--ink); background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 9px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
label.check { display: flex; gap: 9px; align-items: center; font-weight: 400; }
label.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; font-size: 15.5px; box-shadow: var(--shadow); }
.notice .mono { font-size: 13.5px; }
.error { color: var(--problem); font-weight: 600; font-size: 14.5px; min-height: 22px; margin-bottom: 8px; }
.chip { display: inline-block; background: var(--paper); color: var(--ink); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 2px 9px; border-radius: 999px; }
.chip.done { background: var(--done-soft); color: var(--done); border-color: transparent; }
.chip.problem { background: var(--problem-soft); color: var(--problem); border-color: transparent; }
.chip.wait { background: var(--gold-soft); color: var(--ink); border-color: var(--gold); }
.chip.private { background: var(--sel); color: var(--deep); border-color: transparent; }
.chip.sample { background: transparent; border-style: dashed; color: var(--muted); }

/* Inkmarq inside Sealfold: only the "Sign with Inkmarq" button and the "via Inkmarq" tag. */
.ink-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 12px 4px 6px; background: #fff; color: #6B4CF5; border: 1.5px solid #6B4CF5; border-radius: 9px; font: 600 14px/1 var(--body); text-decoration: none; white-space: nowrap; }
.ink-btn:hover { background: #F6F4FF; }
.ink-btn img, .via img { width: 18px; height: 18px; display: block; }
.via { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-violet); font: 600 12px/1 var(--body); margin-left: 6px; vertical-align: 1px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--ink-violet); border-radius: 999px; padding: 2px 8px 2px 4px; }
.via img { width: 13px; height: 13px; }
.via.app { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); padding: 2px 8px; }

/* Frame: top bar, a left sidebar like any file app, and the main area. */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.lockup { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.lockup .logo { display: block; width: 128px; height: 23px; background: var(--logo) left center / contain no-repeat; }
.lockup .org { font: 600 14.5px/1.2 var(--body); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.search { flex: 1 1 260px; max-width: 560px; margin: 0 auto; position: relative; }
.search input { margin: 0; min-height: 40px; background: var(--paper); border-color: transparent; border-radius: 10px; padding-left: 38px; font-size: 15px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.acct { display: flex; align-items: center; gap: 14px; flex: none; }
.acct a, .acct button { color: var(--ink); background: none; border: 0; font: 500 14.5px/1.2 var(--body); text-decoration: none; padding: 6px 0; }
.acct a:hover, .acct button:hover { color: var(--blue); }
.acct .who { display: inline-flex; align-items: center; gap: 8px; }
.acct .av { width: 30px; height: 30px; border-radius: 50%; background: var(--sel); color: var(--deep); display: grid; place-items: center; font: 600 13px/1 var(--body); }
.switch { min-height: 38px; margin: 0; padding: 4px 30px 4px 10px; width: auto; max-width: 230px; font: 500 14px/1.2 var(--body); }
.frame { flex: 1; display: grid; grid-template-columns: 236px minmax(0, 1fr); width: 100%; }
.side { border-right: 1px solid var(--line); background: var(--card); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; }
.side .upload { width: 100%; margin-bottom: 12px; }
.side .switch { width: 100%; max-width: none; margin-bottom: 10px; }
.side a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font: 500 15px/1.2 var(--body); }
.side a svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.side a:hover { background: var(--paper); }
.side a.on { background: var(--sel); color: var(--deep); font-weight: 600; }
.side a.on svg { color: var(--deep); }
.side .nb { margin-left: auto; font: 700 11.5px/1.5 var(--body); background: var(--ink); color: var(--card); border-radius: 999px; padding: 0 7px; }
.side-foot { margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.side-foot progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--line); accent-color: var(--blue); }
.side-foot progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
.side-foot progress::-webkit-progress-value { background: var(--blue); border-radius: 3px; }
.side-foot progress::-moz-progress-bar { background: var(--blue); border-radius: 3px; }
.side-foot .priv { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.side-foot .priv svg { width: 15px; height: 15px; }
.fab { display: none; }
.main { min-width: 0; width: 100%; max-width: 1180px; padding: 26px 32px 56px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; font-size: 13.5px; line-height: 1.5; }
.foot b { color: var(--ink); font-weight: 600; }
.frame + .foot { display: none; }

/* Sign-in */
.gate { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 440px); gap: clamp(28px, 7vw, 96px); max-width: 1120px; width: 100%; margin: 0 auto; padding: clamp(28px, 7vh, 84px) 24px; align-items: start; }
.gate-say h1 { font-size: clamp(34px, 5.4vw, 54px); max-width: 15ch; margin: 28px 0 16px; line-height: 1.04; }
.gate-say > p { max-width: 46ch; color: var(--muted); font-size: 17px; }
.gate-lockup .logo { display: block; width: 200px; height: 36px; background: var(--logo) left center / contain no-repeat; }
.gate-org { font: 600 15px/1.3 var(--body); margin-top: 10px; color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.panel h2 { margin-bottom: 14px; }
.panel .btn { width: 100%; }
.qr { display: block; width: 200px; height: 200px; image-rendering: pixelated; margin: 8px 0 12px; background: #fff; }
.codes { font: 500 15px/1.8 var(--mono); columns: 2; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.card-specimen { margin-top: 30px; max-width: 560px; }

/* The sealed record: the mark, the file name and a green "Sealed record" badge; When and What happened. */
.custody { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 4px 0 14px; overflow: hidden; box-shadow: var(--shadow); }
.custody-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 11px 16px; background: var(--sel); border-bottom: 1px solid var(--line); }
.custody-head .seal { width: 26px; height: 20px; flex: none; background: var(--mark) center / contain no-repeat; }
.custody-head .fname { font: 600 15.5px/1.3 var(--body); word-break: break-word; flex: 1 1 160px; }
.custody-head .small { color: var(--muted); font-size: 13px; }
.sealed { display: inline-flex; align-items: center; gap: 5px; background: var(--done-soft); color: var(--done); font: 600 12px/1.3 var(--body); padding: 3px 10px; border-radius: 999px; }
.custody table { width: 100%; border-collapse: collapse; }
.custody th { text-align: left; font: 600 11px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; border-bottom: 1px solid var(--line); }
.custody td { padding: 9px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; line-height: 1.45; }
.custody td:first-child { font: 500 12.5px/1.6 var(--mono); white-space: nowrap; width: 1%; }
.custody tr:last-child td { border-bottom: 0; }
.custody .verb { font-weight: 700; }
.custody .tech { display: block; font: 400 12px/1.45 var(--mono); color: var(--grey); word-break: break-word; }
.custody-extra { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.custody-extra h3 { font: 600 11px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.custody-foot { padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fp { font: 400 12px/1.4 var(--mono); color: var(--muted); word-break: break-all; }

/* Lists: like a file browser's list view. */
.page-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 6px 0 0; }
.ledger { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.ledger th { text-align: left; font: 600 12px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); }
.ledger td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.ledger tbody tr:hover td { background: var(--paper); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .num { text-align: right; }
.ledger .client { font: 600 15.5px/1.25 var(--body); }
.ledger a.client { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.ledger a.client:hover { color: var(--blue); }
.ledger .waiting { display: inline-block; min-width: 26px; text-align: center; font: 700 14px/1.6 var(--body); background: var(--blue); color: var(--on-blue); border-radius: 999px; padding: 0 7px; }
.ledger .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin: 2px 0 0 38px; }
.fi { width: 28px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.inline-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 12px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.inline-form label { margin: 0; }
.inline-form .error { grid-column: 1 / -1; min-height: 0; margin: 0; }
.group-head { margin: 30px 0 10px; }

/* A space: breadcrumbs, toolbar, year folders, section folders, then files. */
.vault-head { margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: var(--line-strong); }
.crumb { font-size: 15px; display: block; margin-bottom: 8px; }
.vault-head h1 .fi.big { width: 36px; height: 29px; }
.vault-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vault-head .priv-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.vault-head .priv-line svg { width: 15px; height: 15px; flex: none; }
.tools { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; align-items: center; }
.vault-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.rail { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; }
.rail .eyebrow { margin: 0 0 6px 10px; }
.year { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px; padding: 8px 10px; color: var(--ink); }
.year .fi { width: 24px; height: 19px; }
.year b { display: block; font: 600 16px/1.2 var(--body); }
.year span { display: block; font: 400 12.5px/1.3 var(--body); color: var(--muted); }
.year:hover { background: var(--card); }
.year.on { background: var(--sel); }
.year.on b { color: var(--deep); }
.rail-more { padding: 10px 10px 0; display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 8px; }
.sheet { min-width: 0; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 18px; }
.folder { display: flex; gap: 11px; align-items: center; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--ink); min-width: 0; box-shadow: var(--shadow); }
.folder:hover { border-color: var(--blue); }
.folder b { display: block; font: 600 14.5px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder small { display: block; color: var(--muted); font-size: 12.5px; }
.folder .fi { width: 30px; height: 24px; }
.folder > span { min-width: 0; }

.need { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.need h2 { font-size: 18px; margin-bottom: 8px; }
.need ul { list-style: none; margin: 0; padding: 0; }
.need li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.need li:first-child { border-top: 0; }
.need .title { font-weight: 500; }
.need .sub { font-size: 13.5px; color: var(--muted); display: block; font-weight: 400; }

.drop { border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--card); padding: 14px 18px; margin-bottom: 18px; }
.drop.over { border: 2px solid var(--blue); background: var(--sel); }
.drop-row { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.drop-say { flex: 1 1 240px; }
.drop-say strong { display: block; font: 600 16px/1.25 var(--body); }
.drop-row label { margin: 0; flex: 0 1 220px; }
.queue { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14.5px; }
.queue li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.queue progress { display: block; width: 100%; height: 6px; accent-color: var(--blue); margin-top: 5px; }
.queue .rename { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.queue .rename input { flex: 1 1 200px; margin: 0; }

.section { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.section > .eyebrow { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.section > .eyebrow .fi { width: 20px; height: 16px; }
.file { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.file:last-child { border-bottom: 0; }
.file:hover { background: var(--paper); }
.file.open { background: var(--sel); }
.ft { width: 30px; height: 36px; border-radius: 5px; color: #fff; font: 700 9px/1 var(--body); letter-spacing: .02em; display: grid; place-items: end center; padding-bottom: 4px; background: #5B6779; position: relative; overflow: hidden; }
.ft::before { content: ''; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent var(--card) rgba(255, 255, 255, .45) transparent; }
.ft.pdf { background: #C8372D; } .ft.xls { background: #1F7A4A; } .ft.doc { background: #2F6BD8; } .ft.img { background: #0E7C86; } .ft.zip { background: #7A5C1E; }
.file .name { font-weight: 500; word-break: break-word; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.file .name .form-tag { font-size: 11.5px; }
.file .meta { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.file .meta .seen { display: inline-flex; align-items: center; gap: 4px; }
.file .meta .seen svg { width: 13px; height: 13px; vertical-align: -2px; }
.file .acts { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.file-extra { grid-column: 2 / -1; margin-top: 10px; }
.stamps { display: inline-flex; flex-wrap: wrap; margin-top: 6px; border: 1px solid var(--line); border-radius: 7px; font: 500 12px/1.4 var(--mono); background: var(--card); }
.stamps span { padding: 2px 9px; }
.stamps span + span { border-left: 1px solid var(--line); }
.stamps b { font: 600 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 7px; }
.file.trashed .name { text-decoration: line-through; color: var(--muted); }
.empty { color: var(--muted); padding: 22px 16px; background: var(--card); border: 1px dashed var(--line-strong); border-radius: 12px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 12px; box-shadow: var(--shadow); }
.box h3 { margin-bottom: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.reveal { background: var(--sel); border: 1px solid var(--blue); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin: 10px 0; word-break: break-all; }
.reveal code { font: 500 14px var(--mono); }
.people { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14.5px; }
.people li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.apps a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; background: var(--card); color: var(--ink); }
.apps a:hover { border-color: var(--blue); }
.apps a span { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); }

dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); max-width: 480px; width: calc(100% - 32px); padding: 22px; }
dialog::backdrop { background: rgba(20, 35, 58, .5); }

.reg td { font-size: 14.5px; line-height: 1.45; }
.reg td:first-child { font: 500 12.5px/1.6 var(--mono); white-space: nowrap; }
.reg .tech { font: 400 12px/1.45 var(--mono); color: var(--grey); display: block; }
.table-wrap { overflow-x: auto; }

@media (max-width: 1100px) {
  .frame { grid-template-columns: 210px minmax(0, 1fr); }
  .main { padding: 22px 22px 48px; }
  .lockup .org { display: none; }
}
@media (max-width: 860px) {
  .top-in { padding: 8px 16px; gap: 10px; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .acct { margin-left: auto; gap: 12px; }
  .acct .who span:last-child { display: none; }
  .frame { grid-template-columns: minmax(0, 1fr); }
  .frame + .foot { display: block; padding-bottom: 72px; }
  /* Phone: the sidebar becomes a bottom tab bar, with a floating Upload button. */
  .side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; z-index: 20; flex-direction: row; padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--line); overflow: visible; justify-content: space-around; gap: 0; }
  .side .upload, .side-foot, .side .switch, .side .more { display: none; }
  .side a { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 11.5px; flex: 1 1 0; min-width: 0; text-align: center; border-radius: 8px; }
  .side a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .side a svg { width: 21px; height: 21px; }
  .side .nb { position: absolute; margin: 0 0 0 16px; }
  .fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 21; min-height: 52px; padding: 0 20px; border-radius: 999px; box-shadow: 0 6px 18px rgba(20, 35, 58, .25); }
  .main { padding: 18px 16px 110px; }
  .gate { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .card-specimen { margin-top: 18px; }
  .vault-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -16px 14px; padding: 0 16px 2px; position: static; }
  .rail .eyebrow { display: none; }
  .year { flex: 0 0 auto; width: auto; border: 1px solid var(--line); background: var(--card); padding: 6px 12px; }
  .year > span > span { display: none; }
  .year .fi { width: 20px; height: 16px; }
  .rail-more { border-top: 0; flex-direction: row; gap: 14px; flex: 0 0 auto; align-items: center; padding: 0 0 0 4px; margin: 0; }
  .stamps span + span { border-left: 0; border-top: 1px solid var(--line); }
  .stamps { flex-direction: column; }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
  .file { grid-template-columns: 30px minmax(0, 1fr); row-gap: 2px; padding: 11px 12px; column-gap: 12px; align-items: start; }
  .file .acts { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
  .file-extra { grid-column: 1 / -1; }
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .custody td:first-child { white-space: normal; width: 98px; font-size: 11.5px; }
  .custody td, .custody th { padding: 7px 10px; }
  .ledger.stack, .ledger.stack tbody, .ledger.stack tr, .ledger.stack td { display: block; width: 100%; }
  .ledger.stack thead { display: none; }
  .ledger.stack tr { border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .ledger.stack tr:last-child { border-bottom: 0; }
  .ledger.stack td { border: 0; padding: 2px 0; text-align: left; font-size: 14.5px; }
  .ledger.stack td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); }
  .ledger .sub { margin-left: 0; }
  .foot-in { padding: 16px; }
}

/* Billing */
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 22px; }
.meter-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 4px; }
.meter-top .mono { font-size: 12.5px; }
.meter progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--line); accent-color: var(--blue); }
.meter progress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
.meter progress::-webkit-progress-value { background: var(--blue); border-radius: 4px; }
.meter progress::-moz-progress-bar { background: var(--blue); border-radius: 4px; }
.meter progress.full::-webkit-progress-value { background: var(--problem); }
.meter progress.full::-moz-progress-bar { background: var(--problem); }
.family p { margin: 0; }
.plan-tools { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; margin: 22px 0 12px; }
.plan-tools label { margin: 0; }
.plan-tools input[type=number] { width: 120px; }
.seg-plain { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.seg-plain legend { margin-bottom: 4px; }
.seg-plain label.check { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.plan.here { border: 2px solid var(--blue); }
.plan h3 { font-size: 20px; }
.plan-price { font-size: 14.5px; margin: 0; }
.plan-price b { font: 700 30px/1.1 var(--display); letter-spacing: -.035em; }
.plan ul { margin: 4px 0 8px; padding-left: 18px; font-size: 14.5px; line-height: 1.5; flex: 1; }
.plan .btn { width: 100%; }
.app-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.app-row:last-child { border-bottom: 0; }
.app-row .sub { display: block; font-size: 13.5px; color: var(--muted); }

/* Preparing a request (Sealfold's screen) */
.mono-name { margin: 4px 0 0; }
.prep { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.prep-side { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.prep-side h3 { font: 600 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.prep-side label { margin-bottom: 10px; }
.signer-row { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 6px 8px; margin-bottom: 10px; }
.signer-row .link { grid-column: 2; justify-self: start; }
.signer-inputs { display: grid; gap: 4px; }
.signer-inputs input { margin: 0; min-height: 36px; padding: 6px 9px; font-size: 15px; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 12px; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.chip-btn { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); padding: 6px 10px; font: 500 14px/1.2 var(--body); border-radius: 999px; }
.chip-btn.on { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.fld-panel { margin: 8px 0; padding: 12px; }
.pdf-pages { display: grid; gap: 14px; min-width: 0; }
.pdf-page { position: relative; width: 100%; background: #fff; border: 1px solid var(--line); }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-layer { position: absolute; inset: 0; }
.fld { position: absolute; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: #15131F; cursor: move; touch-action: none; min-width: 12px; min-height: 10px; border-radius: 4px; }
.fld-check { border-style: dashed; }
.fld-none { border-style: dotted; }
.fld-on { outline: 3px solid #14233A; outline-offset: 1px; z-index: 2; }
.fld-name { position: absolute; left: -2px; bottom: 100%; background: var(--c); color: #fff; font: 600 11px/1.3 var(--body); padding: 1px 5px; white-space: nowrap; pointer-events: none; border-radius: 3px 3px 0 0; }
.fld-size { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; background: var(--c); cursor: nwse-resize; border-radius: 2px; }
.to-sign { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.to-sign h2 { font-size: 18px; margin-bottom: 6px; }
.to-sign li, .sign-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.sign-list li { padding: 10px 16px; }
.to-sign ul, .sign-list ul { list-style: none; margin: 0; padding: 0; }
.to-sign li:first-child, .sign-list li:first-child { border-top: 0; }
.sign-who { font-size: 13.5px; color: var(--muted); display: block; font-weight: 400; }
.sign-who .mono { font-size: 12px; }
@media (max-width: 860px) {
  .prep { grid-template-columns: minmax(0, 1fr); }
  .prep-side { position: static; max-height: none; order: -1; }
}

/* ===== Inkmarq: the signer's own screen. No Sealfold blue or seal here. ===== */
.ink {
  --i-violet: #6B4CF5; --i-night: #0E0B1F; --i-text: #15131F; --i-mist: #F6F4FF; --i-card: #FFFFFF; --i-line: #E6E2F2; --i-muted: #5D5A6E;
  --i-ok: #16825A; --i-ok-soft: #DCF3EA; --i-warn: #9A5A00; --i-warn-soft: #FFF0D9; --i-bad: #C22F45; --i-bad-soft: #FFE3E8;
  --i-btn: #0E0B1F; --i-on-btn: #FFFFFF;
  --i-grad: linear-gradient(135deg, #8B6CFF 0%, #FF6FA3 55%, #FFB35C 100%);
  --i-display: 'Bricolage Grotesque', system-ui, sans-serif; --i-body: 'Albert Sans', system-ui, sans-serif; --i-mono: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--i-mist); color: var(--i-text); font-family: var(--i-body); min-height: 100vh; display: flex; flex-direction: column;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ink { --i-mist: #0E0B1F; --i-card: #181428; --i-line: #2A2540; --i-text: #F1EEFF; --i-muted: #AAA5C2; --i-violet: #A993FF; --i-btn: #FFFFFF; --i-on-btn: #0E0B1F; --i-ok-soft: #12332A; --i-warn-soft: #33260F; --i-bad-soft: #3A1621; --i-ok: #5FD3A4; --i-warn: #F2B35C; --i-bad: #FF7D92; }
}
:root[data-theme="dark"] .ink { --i-mist: #0E0B1F; --i-card: #181428; --i-line: #2A2540; --i-text: #F1EEFF; --i-muted: #AAA5C2; --i-violet: #A993FF; --i-btn: #FFFFFF; --i-on-btn: #0E0B1F; --i-ok-soft: #12332A; --i-warn-soft: #33260F; --i-bad-soft: #3A1621; --i-ok: #5FD3A4; --i-warn: #F2B35C; --i-bad: #FF7D92; }
.ink .ink-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 900px; width: 100%; margin: 0 auto; padding: 16px 20px; }
.ink .ink-logo { display: flex; align-items: center; gap: 8px; font: 800 22px/1 var(--i-display); letter-spacing: -.045em; color: var(--i-text); text-decoration: none; }
.ink .ink-logo img { width: 26px; height: 26px; }
.ink .ink-logo b { font-weight: 800; background: var(--i-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ink .ink-from { font-size: 14px; color: var(--i-muted); }
.ink .main { max-width: 900px; padding-top: 8px; }
.ink h1, .ink h2, .ink h3 { font-family: var(--i-display); font-stretch: 100%; letter-spacing: -.04em; line-height: 1.02; }
.ink h1 { font-weight: 800; }
.ink h2 { font-weight: 700; letter-spacing: -.03em; }
.ink a, .ink .link { color: var(--i-violet); }
.ink .muted, .ink .small.muted { color: var(--i-muted); }
.ink .mono, .ink .fp, .ink .custody td:first-child, .ink .custody .tech { font-family: var(--i-mono); }
.ink .btn { border-radius: 999px; background: var(--i-btn); color: var(--i-on-btn); border-color: var(--i-btn); font-family: var(--i-body); }
.ink .btn.quiet { background: transparent; color: var(--i-text); border-color: var(--i-line); }
.ink .btn.danger { background: var(--i-bad); border-color: var(--i-bad); color: #fff; }
.ink .error { color: var(--i-bad); }
.ink input[type=text], .ink input[type=email], .ink select { border-radius: 12px; border-color: var(--i-line); background: var(--i-card); color: var(--i-text); font-family: var(--i-body); }
.ink :focus-visible { outline: 3px solid var(--i-violet); box-shadow: none; }
.ink .eyebrow { color: var(--i-violet); letter-spacing: .14em; font-family: var(--i-body); }
.ink .notice { background: var(--i-card); border: 1px solid var(--i-line); border-left: 6px solid var(--i-violet); border-radius: 16px; }
.ink .keep { background: var(--i-warn-soft); color: var(--i-text); border: 0; border-radius: 16px; padding: 12px 14px; font-size: 15px; margin: 12px 0; }
.ink .keep b { color: var(--i-warn); }
.ink .pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font: 700 12px/1.3 var(--i-body); letter-spacing: .02em; }
.ink .pill.turn { background: var(--i-grad); color: #fff; }
.ink .pill.ok { background: var(--i-ok-soft); color: var(--i-ok); }
.ink .pill.bad { background: var(--i-bad-soft); color: var(--i-bad); }
.ink .pill.wait { background: var(--i-line); color: var(--i-text); }
.ink .sign-panel { max-width: 580px; margin: 5vh auto; background: var(--i-card); border: 1px solid var(--i-line); border-radius: 18px; padding: 26px; }
.ink .sign-panel h1 { font-size: 32px; margin-bottom: 14px; }
.ink .pill + h1 { margin-top: 12px; }
.ink .done-card .eyebrow { color: #fff; }
.spaced { margin-top: 12px; }
.ink .done-card { background: var(--i-grad); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.ink .done-card h1 { color: #fff; margin: 0 0 6px; }
.ink .done-card .mono { color: #fff; font-size: 15px; }
.ink .custody { border: 1px solid var(--i-line); border-radius: 16px; background: var(--i-card); }
.ink .custody-head { background: transparent; color: var(--i-text); border-bottom: 1px solid var(--i-line); }
.ink .custody td { border-color: var(--i-line); }
.ink .sign-head { max-width: 860px; margin: 0 auto 16px; }
.ink .sign-head h1 { font-size: clamp(28px, 5vw, 40px); margin: 8px 0 6px; }
.ink .sign-consent { max-width: 860px; margin: 0 auto 18px; background: var(--i-card); border: 1px solid var(--i-line); border-radius: 18px; padding: 18px 20px; }
.ink .sign-consent h2 { font-size: 22px; margin-bottom: 8px; }
.ink .sign-pages { max-width: 860px; margin: 0 auto; padding-bottom: 96px; }
.ink .pdf-page { border-color: var(--i-line); border-radius: 6px; overflow: hidden; }
.ink .sf { position: absolute; display: flex; align-items: center; justify-content: center; container-type: size; font: 700 min(12px, 62cqh)/1 var(--i-body); padding: 0 2px; overflow: hidden; border-radius: 12px; text-align: center; }
.ink .sf-other { border: 1px dashed #5D5A6E; color: #5D5A6E; background: rgba(255, 255, 255, .6); font-weight: 400; font-size: min(10px, 62cqh); }
.ink .sign-pages:not(.sign-active) .sf-mine { pointer-events: none; }
.ink .sf-mine { border: 0; background: var(--i-grad); color: #fff; cursor: pointer; }
.ink .sf-mine:disabled { background: #F6F4FF; color: #6B4CF5; cursor: default; font-weight: 400; font-size: min(10px, 62cqh); border: 1px dashed #6B4CF5; }
.ink .sf-filled { background: rgba(255, 255, 255, .5); color: #15131F; }
.ink .sf img { max-width: 100%; max-height: 100%; }
.ink .sf input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 3px; font: 400 12px var(--i-body); color: #15131F; margin: 0; min-height: 0; border-radius: 0; }
.ink .sign-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--i-card); border-top: 1px solid var(--i-line); padding: 10px 16px; z-index: 5; }
.ink .sign-bar-in { max-width: 860px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; }
.ink .sign-bar .error { max-width: 860px; margin: 0 auto; min-height: 0; }
.ink .foot { border-top: 1px solid var(--i-line); color: var(--i-muted); }
.ink .foot b { color: var(--i-text); }
body:has(.sign-bar:not(.hidden)) .foot { padding-bottom: 120px; }
.seg { display: inline-flex; border: 1px solid #E6E2F2; border-radius: 999px; margin-bottom: 10px; overflow: hidden; }
.seg button { background: none; border: 0; border-radius: 0; padding: 7px 14px; font: 600 14px 'Albert Sans', system-ui, sans-serif; color: inherit; }
.seg button[aria-pressed="true"] { background: #0E0B1F; color: #fff; }
.pad { display: block; width: 100%; height: 170px; background: #fff; border: 1px solid #E6E2F2; border-radius: 12px; touch-action: none; }
.styles { display: grid; gap: 6px; margin-bottom: 8px; }
.style-btn { background: #fff; color: #6B4CF5; border: 1px solid #E6E2F2; border-radius: 12px; min-height: 56px; font-size: 24px; font-weight: 400; overflow: hidden; }
.style-btn[aria-pressed="true"] { outline: 3px solid #6B4CF5; }
dialog.adopt { max-width: 560px; border: 1px solid #E6E2F2; border-radius: 18px; font-family: 'Albert Sans', system-ui, sans-serif; }
dialog.adopt h2 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.03em; font-stretch: 100%; margin-bottom: 10px; }
dialog.adopt .btn { border-radius: 999px; background: #0E0B1F; border-color: #0E0B1F; color: #fff; }
dialog.adopt .btn.quiet, dialog.adopt .btn.quiet { background: transparent; color: inherit; border-color: #E6E2F2; }
dialog.adopt img { max-width: 100%; max-height: 140px; display: block; margin: 8px 0; }
@media (max-width: 860px) { .ink .sign-panel { margin: 12px 0; } }
