@charset "UTF-8";
/* NotaryBerry design system: tokens and components for the signer and notary portals.
   Spec: docs/design-system.md. Build screens only from these classes; add new parts here first. */
@font-face { font-family:'Pretendard Variable'; font-weight:45 920; font-style:normal; font-display:swap;
  src:url('/shared/vendor/fonts/pretendard/PretendardVariable.woff2') format('woff2-variations'); }
html { font-size:62.5%; scroll-padding-top:88px; }

/* ── Tokens (our own values; see docs/design-system.md) ── */
:root {
  --navy-50:#eef0f8; --navy-100:#dde1f1; --navy-500:#465194; --navy-600:#3c467f; --navy-700:#2e3566;
  --grey-50:#f7f8fa; --grey-100:#f1f3f5; --grey-200:#e4e7eb; --grey-300:#d0d5db; --grey-400:#aab2bc;
  --grey-500:#8a939e; --grey-600:#69737f; --grey-700:#4d5663; --grey-800:#323a46; --grey-900:#1c222b;
  --red-500:#e0464e; --red-50:#fdeeef; --green-500:#149a63; --green-50:#e9f6f0; --amber-600:#a8650a; --amber-50:#fdf3e1;
  --font:'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --display:700 30px/40px var(--font); --title-1:700 22px/31px var(--font); --title-2:700 19px/27px var(--font); --headline:600 17px/25px var(--font);
  --body:400 15px/23px var(--font); --caption:400 13px/19px var(--font); --micro:600 12px/17px var(--font); --shadow-float:0 12px 40px rgba(16,24,40,.16);
  --ease:cubic-bezier(.2,.7,.2,1);
}
* { box-sizing:border-box; }
body { margin:0; font-family:var(--font); color:var(--grey-900); background:#fff; -webkit-font-smoothing:antialiased; letter-spacing:-.005em; }
h1, h2, h3, .ring b { letter-spacing:-.02em; }
button { font-family:inherit; }
:focus-visible { outline:2px solid var(--navy-500); outline-offset:2px; }
[hidden] { display:none !important; }

/* ── Button ── */
.btn { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:0; cursor:pointer; font-weight:600; white-space:nowrap; text-decoration:none; overflow:hidden; transition:opacity .1s; user-select:none; }
.btn::after { content:''; position:absolute; inset:0; background:#000; opacity:0; transition:opacity .1s; pointer-events:none; }
.btn:active::after { opacity:.1; }
.btn.s { height:32px; padding:0 12px; border-radius:8px; font-size:13px; }
.btn.m { height:40px; padding:0 16px; border-radius:12px; font-size:15px; }
.btn.l { height:48px; padding:0 20px; border-radius:12px; font-size:16px; }
.btn.xl { height:56px; padding:0 24px; border-radius:16px; font-size:17px; }
/* Touch screens: small buttons and footer links are at least 40 px tall, so a finger hits them. */
@media (pointer:coarse) { .btn.s { height:40px; } .site-foot a { margin-top:0; padding:10px 0; } .site-foot b { margin-bottom:4px; } }
/* Phone-only and desktop-only parts: an authenticator link (a phone cannot scan its own screen). */
@media (hover:hover) and (pointer:fine) { .touch-only { display:none !important; } }
@media (pointer:coarse) { .no-touch { display:none !important; } }
.btn.full { display:flex; width:100%; }
.btn.primary { background:var(--navy-500); color:#fff; }
.btn.dark { background:var(--grey-800); color:#fff; }
.btn.danger { background:var(--red-500); color:#fff; }
.btn.weak.primary { background:var(--navy-50); color:var(--navy-700); }
.btn.weak.dark { background:var(--grey-100); color:var(--grey-800); }
.btn.weak.danger { background:var(--red-50); color:var(--red-500); }
.btn:disabled { opacity:.4; cursor:not-allowed; }
.btn:disabled::after { display:none; }
/* A button whose action is running (aria-busy): full color, its label hidden behind a spinner, no second tap. */
.btn[aria-busy="true"] { color:transparent !important; pointer-events:none; }
.btn[aria-busy="true"]:disabled { opacity:1; }
.btn[aria-busy="true"]::before { content:''; position:absolute; top:50%; left:50%; width:20px; height:20px; margin:-10px 0 0 -10px; border-radius:50%; border:2.5px solid rgba(255,255,255,.45); border-top-color:#fff; animation:spin .8s linear infinite; }
.btn.weak[aria-busy="true"]::before { border-color:var(--navy-100); border-top-color:var(--navy-500); }
.btn .dots { display:none; gap:4px; }
.btn.loading .label { visibility:hidden; }
.btn.loading .dots { display:inline-flex; position:absolute; }
.btn .dots i { width:6px; height:6px; border-radius:50%; background:currentColor; animation:dot 1s infinite var(--ease); }
.btn .dots i:nth-child(2) { animation-delay:.15s; } .btn .dots i:nth-child(3) { animation-delay:.3s; }
@keyframes dot { 0%,80%,100% { opacity:.25; transform:translateY(0); } 40% { opacity:1; transform:translateY(-2px); } }
.icon-btn { width:32px; padding:0; }
.pair { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:8px; }

/* ── Badge ── */
.badge { display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:6px; font:var(--micro); white-space:nowrap; }
.badge.act { background:var(--navy-50); color:var(--navy-700); }
.badge.wait { background:var(--amber-50); color:var(--amber-600); }
.badge.ready { background:var(--green-50); color:var(--green-500); }
.badge.done { background:var(--grey-100); color:var(--grey-600); }
.badge.stop { background:var(--red-50); color:var(--red-500); }
.badge.fill { background:var(--navy-500); color:#fff; }
.badge .ic { width:14px; height:14px; margin-right:4px; }
/* A badge that opens something (a job's error on admin Health): no button frame, a darker hover. */
button.badge { border:0; cursor:pointer; vertical-align:2px; margin-left:6px; }
button.badge.stop:hover { background:var(--red-500); color:#fff; }
/* A short line of tags under a panel header, for facts that need no row (type, source). */
.tags { display:flex; flex-wrap:wrap; gap:6px; padding:0 24px 8px; }

/* ── List row ── */
.list { list-style:none; margin:0; padding:0; }
.row { position:relative; display:flex; align-items:center; gap:16px; padding:12px 24px; cursor:pointer; transition:background .1s; }
.row:active { background:var(--grey-100); }
@media (hover:hover) { .row:hover { background:var(--grey-50); } .row:active { background:var(--grey-100); } }
.row + .row::before { content:''; position:absolute; top:0; left:80px; right:24px; height:1px; background:var(--grey-200); }
.row[hidden] + .row::before { display:none; }
.row.no-icon + .row.no-icon::before { left:24px; }
/* Flush rows sit inside a padded container (agreement checklists): no side padding, full-width divider, no hover. */
.row.flush, .app .row.flush { padding:10px 0; cursor:default; }
.row.flush:hover, .row.flush:active { background:none; }
.row.flush + .row.flush::before { left:0; right:0; }
.row .lead { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:var(--navy-50); color:var(--navy-500); }
.row .lead.round { border-radius:50%; background:var(--grey-100); color:var(--grey-700); font:600 15px/1 var(--font); position:relative; overflow:hidden; }
.row .lead.round img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.row .lead.instant { background:var(--amber-50); color:var(--amber-600); }
.row .main { flex:1; min-width:0; }
.row .title { font:var(--headline); color:var(--grey-900); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row .desc { font:var(--caption); color:var(--grey-600); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row .chev { color:var(--grey-400); }
.row.skeleton { cursor:default; }
.row.skeleton:hover, .row.skeleton:active { background:none; }
.sk { border-radius:6px; background:linear-gradient(90deg, var(--grey-100) 0, var(--grey-50) 50%, var(--grey-100) 100%); background-size:200% 100%; animation:shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position:-200% 0; } }

/* ── List header ── */

/* ── Tabs ── */
.tabs { display:flex; gap:28px; border-bottom:1px solid var(--grey-200); }
.tab { position:relative; height:48px; padding:0; border:0; background:none; font:400 15px/1 var(--font); color:var(--grey-600); cursor:pointer; }
.tab[aria-selected="true"] { color:var(--grey-900); font-weight:700; }
.tab[aria-selected="true"]::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--grey-900); }

/* ── Switch ── */
/* A small number field with its unit, on the right of a setting row ("90 sec"). */
.unit-input { flex:none; display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 12px; border-radius:12px; background:var(--grey-100); font:var(--caption); color:var(--grey-600); }
.unit-input input { width:56px; border:0; background:none; font:600 15px/1 var(--font); color:var(--grey-900); text-align:right; outline:none; -moz-appearance:textfield; }
.unit-input input::-webkit-inner-spin-button, .unit-input input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.unit-input:focus-within { box-shadow:0 0 0 2px var(--navy-500); background:#fff; }
.switch { position:relative; flex:none; width:52px; height:32px; border:0; border-radius:16px; background:var(--grey-300); cursor:pointer; transition:background .2s var(--ease); }
.switch::before { content:''; position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.18); transition:transform .2s var(--ease); }
.switch[aria-checked="true"] { background:var(--navy-500); }
.switch[aria-checked="true"]::before { transform:translateX(20px); }

/* ── Text field ── */
.field label { display:block; margin-bottom:6px; font:var(--caption); color:var(--grey-600); }
.field input { width:100%; height:52px; padding:0 16px; border:0; border-radius:12px; background:var(--grey-100); font:400 16px/1 var(--font); color:var(--grey-900); outline:none; transition:box-shadow .1s; }
.field input:focus { box-shadow:0 0 0 2px var(--navy-500); background:#fff; }
.field input::placeholder { color:var(--grey-400); }
/* iOS Safari draws date and time fields at their own minimum width (wider than a phone column) and centers the value: keep them in the field's box, value on the left. */
.field input[type="date"], .field input[type="time"], .field input[type="datetime-local"] { display:block; min-width:0; -webkit-appearance:none; appearance:none; text-align:left; line-height:52px; }
.field input::-webkit-date-and-time-value { text-align:left; }
.field .err { margin-top:6px; font:var(--caption); color:var(--red-500); }

/* ── Card ── */

/* ── Desktop app shell ── */
.app-header { position:sticky; top:0; z-index:20; background:#fff; border-bottom:1px solid var(--grey-200); }
.strip { background:var(--navy-500); color:#fff; }
.strip .inner { display:flex; align-items:center; gap:16px; max-width:1328px; height:48px; margin:0 auto; padding:0 24px; }
.strip b { font:600 15px/1 var(--font); }
.strip span { font:400 14px/1 var(--font); color:rgba(255,255,255,.78); }
.strip .sep { width:1px; height:14px; background:rgba(255,255,255,.3); }
.strip .cta { margin-left:auto; background:rgba(255,255,255,.14); color:#fff; }
.timer { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px; border-radius:8px; background:var(--grey-100); font:600 13px/1 var(--font); color:var(--grey-700); font-variant-numeric:tabular-nums; }
.profile { position:relative; }
.profile > button { display:flex; align-items:center; gap:10px; height:40px; padding:0 8px 0 4px; border:0; border-radius:12px; background:transparent; font:600 15px/1 var(--font); color:var(--grey-800); cursor:pointer; }
.profile > button:hover, .profile > button[aria-expanded="true"] { background:var(--grey-100); }
.menu { position:absolute; right:0; top:48px; width:320px; padding:8px; border-radius:20px; background:#fff; box-shadow:0 12px 40px rgba(16,24,40,.16), 0 0 0 1px var(--grey-200); animation:rise .15s var(--ease); }
.tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:0 4px 8px; }
.tiles a { position:relative; display:grid; justify-items:center; gap:8px; padding:14px 4px 12px; border-radius:14px; background:var(--grey-50); color:var(--grey-800); font:600 13px/1 var(--font); text-decoration:none; overflow:hidden; }
.tiles a svg { color:var(--navy-500); }
.tiles a:hover { background:var(--grey-100); }
.menu .items > a, .menu .items > div { display:flex; align-items:center; gap:12px; height:44px; padding:0 12px; border-radius:12px; color:var(--grey-800); font:500 15px/1 var(--font); text-decoration:none; }
.menu .items > a:hover { background:var(--grey-50); }
.menu .items svg { color:var(--grey-500); }
.menu hr { margin:8px 4px; border:0; border-top:1px solid var(--grey-200); }
.menu .signout { margin:4px 4px 4px; }
.app-header .inner { display:flex; align-items:center; gap:40px; max-width:1328px; height:64px; margin:0 auto; padding:0 24px; }
.wordmark { display:inline-flex; flex:none; line-height:0; }
.wordmark img { display:block; width:auto; height:22px; }
@media (max-width:600px) { .wordmark img { height:18px; } }
.app-nav { display:flex; gap:28px; align-self:stretch; }
.app-nav a { position:relative; display:flex; align-items:center; font:500 15px/1 var(--font); color:var(--grey-600); text-decoration:none; }
.app-nav a[aria-current] { color:var(--grey-900); font-weight:700; }
.app-nav a[aria-current]::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--navy-500); }
.account { margin-left:auto; display:flex; align-items:center; gap:10px; font:500 15px/1 var(--font); color:var(--grey-800); }
.avatar { position:relative; overflow:hidden; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--navy-50); color:var(--navy-700); font:700 13px/1 var(--font); }
/* A photo covers the initials; if it fails to load, the script removes it and the initials show. */
.avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* No photo and no name yet (before the legal-name step): a person icon. */
.avatar:empty::before { content:""; width:60%; height:60%; background:currentColor; -webkit-mask:var(--person-icon) center/contain no-repeat; mask:var(--person-icon) center/contain no-repeat; }
:root { --person-icon:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27 fill=%27none%27 stroke=%27black%27 stroke-width=%271.8%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2710%27 cy=%277%27 r=%273.2%27/%3E%3Cpath d=%27M3.8 17c.8-3.3 3.3-5 6.2-5s5.4 1.7 6.2 5%27/%3E%3C/svg%3E"); }
.page { max-width:1328px; margin:0 auto; padding:24px 24px 64px; }
.site-foot { background:var(--navy-500); color:rgba(255,255,255,.72); }
.site-foot .inner { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; max-width:1328px; margin:0 auto; padding:40px 24px 44px; font:var(--body); }
.site-foot .brand { font:800 22px/1 var(--font); letter-spacing:-.02em; color:#fff; }
.site-foot .brand + p { margin:10px 0 0; font:var(--caption); color:rgba(255,255,255,.6); }
.site-foot b { display:block; margin-bottom:14px; font:600 15px/1 var(--font); color:#fff; }
.site-foot a { display:block; margin-top:10px; color:rgba(255,255,255,.72); text-decoration:none; }
.site-foot a:hover { color:#fff; }
.site-foot .bottom { background:var(--navy-700); }
.site-foot .bottom .inner { display:flex; justify-content:space-between; padding:16px 24px; font:var(--caption); color:rgba(255,255,255,.6); }

/* ── Offer screen ── */
.overlay { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:16px; background:rgba(20,24,40,.6); animation:fade .2s var(--ease); }
@keyframes fade { from { opacity:0; } }
.sheet { width:min(420px,100%); padding:28px 24px 24px; border-radius:24px; background:#fff; box-shadow:0 24px 64px rgba(0,0,0,.24); animation:rise .2s var(--ease); }
@keyframes rise { from { opacity:0; transform:translateY(12px); } }
.offer .kind { display:flex; justify-content:center; align-items:center; gap:6px; font:700 13px/1 var(--font); color:var(--amber-600); }
.ring { position:relative; width:112px; height:112px; margin:20px auto 16px; }
.ring svg { width:100%; height:100%; transform:rotate(-90deg); }
.ring circle { fill:none; stroke-width:8; }
.ring .track { stroke:var(--grey-100); }
.ring .time { stroke:var(--navy-500); stroke-linecap:round; transition:stroke-dashoffset 1s linear, stroke .2s; }
.ring b { position:absolute; inset:0; display:grid; place-items:center; font:700 34px/1 var(--font); font-variant-numeric:tabular-nums; }
.offer.ending .ring .time { stroke:var(--red-500); } .offer.ending .ring b { color:var(--red-500); }
.offer h2 { margin:0; text-align:center; font:var(--display); }
.offer .sub { margin:2px 0 16px; text-align:center; font:var(--body); color:var(--grey-600); }
/* The same card for "Your signers are ready" and "Your notary is ready" (shared/session-alerts.js):
   a photo or initials in place of the ring. */
.offer .kind.ready { color:var(--green-500); }
.offer > .avatar.xl { margin:20px auto 12px; }

/* ── Session banner (shared/session-alerts.js): one line on top of every portal page per session
   that needs the user now ("Your session … is open", or a dismissed loud alert). ── */
.session-banners { position:sticky; top:0; z-index:990; }
.session-banner { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 12px; padding:8px 16px;
  background:var(--navy-50); color:var(--navy-700); font:var(--caption); font-weight:600; text-align:center; }
.session-banner + .session-banner { border-top:1px solid var(--navy-100); }
/* Go to session marks the button to press (Join meeting, Start meeting). */

/* ── Toast ── */
.toast { position:fixed; left:50%; bottom:32px; z-index:200; transform:translate(-50%,16px); padding:14px 20px; border-radius:12px; background:rgba(28,34,43,.92); color:#fff; font:var(--body); opacity:0; pointer-events:none; transition:opacity .2s var(--ease), transform .2s var(--ease); }
.toast.show { opacity:1; transform:translate(-50%,0); }
.band { height:16px; background:var(--grey-100); }
.kv { margin:0; padding:4px 20px 8px; }
.kv div { display:flex; justify-content:space-between; gap:16px; padding:10px 0; font:var(--body); }
.kv dt { color:var(--grey-600); } .kv dd { margin:0; font-weight:600; text-align:right; }
.sw { border:1px solid var(--grey-200); border-radius:12px; overflow:hidden; font:var(--caption); }

/* ── Mockup viewer groups ── */

/* ── Page layouts ── */
.app { background:var(--grey-50); min-height:100vh; display:flex; flex-direction:column; }
.app main { flex:1; }
.page.wide { width:100%; max-width:1328px; margin:0 auto; padding:28px 24px 64px; display:grid; gap:16px; align-content:start; }
/* One column of panels (the notary session page): the content-page width plus page padding. */
.page.wide.single { max-width:928px; }
.cols2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.split { display:grid; grid-template-columns:300px minmax(0,1fr); gap:16px; align-items:start; }
/* A list page with a filter navigation (admin Accounts, Sessions): a narrower side column. */
.split.list-filter { grid-template-columns:220px minmax(0,1fr); }
.split.rev { grid-template-columns:minmax(0,1fr) 360px; }
.sticky { position:sticky; top:84px; }
/* Back link above a detail page's title: a chevron and the list it returns to. */
.back-link { display:inline-flex; align-items:center; gap:2px; margin:0 0 -4px -4px; padding:4px; border-radius:8px; font:500 14px/20px var(--font); color:var(--grey-600); text-decoration:none; }
.back-link:hover { color:var(--grey-900); background:var(--grey-100); }
.hero { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:8px 0; }
.hero h1 { margin:0; font:var(--display); letter-spacing:-.02em; }
.hero .sub { margin:4px 0 0; font:400 16px/24px var(--font); color:var(--grey-600); }
.panel { background:#fff; border-radius:16px; padding:8px 0; }
.panel.pad { padding:24px; }
.ph { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 24px 8px; }
.ph h3 { margin:0; font:700 17px/25px var(--font); color:var(--grey-900); }
.ph .count { font:600 15px/1 var(--font); color:var(--grey-500); margin-left:6px; }
.ph-right { font:500 14px/20px var(--font); color:var(--grey-500); }
.ph-right.link { display:inline-flex; align-items:center; color:var(--grey-600); text-decoration:none; }
.desc em { font-style:normal; font-weight:600; }
/* State text: colored, semibold, never italic (it is often an <em>). */
em.t-act, em.t-ready, em.t-wait, em.t-stop, em.t-done { font-style:normal; font-weight:600; }
.t-act { color:var(--navy-500); } .t-ready { color:var(--green-500); } .t-wait { color:var(--amber-600); } .t-stop { color:var(--red-500); } .t-done { color:var(--grey-500); }
.app .row .title { font:600 15px/22px var(--font); }
.app .row { padding:10px 24px; }
.tabs.in-panel { padding:0 24px; gap:24px; }
.tab[aria-selected="true"] .cnt { color:var(--grey-600); }
.seg { display:inline-flex; padding:3px; border-radius:12px; background:var(--grey-100); }
.seg button { height:34px; padding:0 14px; border:0; border-radius:10px; background:transparent; font:600 14px/1 var(--font); color:var(--grey-600); cursor:pointer; }
.seg button[aria-pressed="true"] { background:#fff; color:var(--grey-900); box-shadow:0 1px 2px rgba(0,0,0,.08); }
.more { padding:4px 24px 16px; }

/* Calendar */
.mgrid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; padding:4px 12px 16px; text-align:center; }
.mgrid .dow { font:600 12px/28px var(--font); color:var(--grey-500); }
.mgrid button { position:relative; height:38px; border:0; border-radius:10px; background:transparent; font:500 14px/1 var(--font); color:var(--grey-800); cursor:pointer; font-variant-numeric:tabular-nums; }
.mgrid button:hover { background:var(--grey-100); }
.mgrid button.out { color:var(--grey-300); }
.mgrid button.has::after { content:''; position:absolute; left:50%; bottom:5px; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:var(--navy-500); }
.mgrid button.today { color:var(--navy-500); font-weight:700; }
.mgrid button.sel { background:var(--navy-500); color:#fff; }
.mgrid button.sel::after { background:#fff; }
.day-head { padding:20px 24px 6px; font:600 13px/19px var(--font); color:var(--grey-500); }
.day-head + .list .row::before { display:none; }

/* Settings rows (account) */
.set .row { cursor:pointer; }
.set .row .title { font:500 15px/22px var(--font); color:var(--grey-700); }
.set .row.no-icon + .row.no-icon::before { left:24px; }
.side-nav { padding:8px; }
.side-nav a { display:flex; align-items:center; gap:12px; height:44px; padding:0 14px; border-radius:12px; font:500 15px/1 var(--font); color:var(--grey-700); text-decoration:none; }
.side-nav a:hover { background:var(--grey-50); }
.side-nav a[aria-current] { background:var(--navy-50); color:var(--navy-700); font-weight:600; }
.side-nav a svg { color:currentColor; opacity:.8; }
.sig { font:400 26px/1 'Brush Script MT', 'Segoe Script', cursive; color:var(--grey-900); }

/* Session detail */
/* Korean breaks between words, never inside one (labels, buttons, steps). */
:lang(ko) { word-break:keep-all; overflow-wrap:break-word; }

.stepper { display:grid; grid-template-columns:repeat(6,1fr); gap:6px; padding:0 24px 4px; }
.stepper div { display:grid; gap:8px; font:500 12px/16px var(--font); color:var(--grey-500); }
.stepper i { height:4px; border-radius:2px; background:var(--grey-200); }
.stepper .done i { background:var(--navy-500); } .stepper .done { color:var(--grey-700); }
.stepper .now i { background:var(--navy-500); } .stepper .now { color:var(--navy-700); font-weight:700; }
.next { display:flex; align-items:center; gap:16px; padding:20px 24px; }
.next + .next { border-top:1px solid var(--grey-200); }
.next .t { flex:1; } .next .t b { display:block; font:600 16px/24px var(--font); } .next .t span { font:var(--caption); color:var(--grey-600); }
.title-badges { display:flex; gap:6px; margin-bottom:10px; }
@media (max-width:979px) { .cols2, .split, .split.rev { grid-template-columns:1fr; } .sticky { position:static; } }

/* Earnings chart */
.chart { display:flex; align-items:flex-end; gap:12px; height:200px; padding:8px 24px 0; }
.chart div { flex:1; display:grid; justify-items:center; align-content:end; gap:8px; height:100%; }
.chart i { width:100%; max-width:36px; border-radius:8px 8px 4px 4px; background:var(--navy-100); transition:background .15s; }
.chart div:hover i, .chart div.cur i { background:var(--navy-500); }
.chart span { font:500 12px/1 var(--font); color:var(--grey-500); }
.chart div.cur span { color:var(--grey-900); font-weight:700; }

/* Document preview */
.paper { margin:8px 24px 24px; aspect-ratio:8.5/11; border-radius:12px; background:var(--grey-50); box-shadow:inset 0 0 0 1px var(--grey-200); padding:28px 26px; display:grid; align-content:start; gap:10px; }
.paper b { font:700 14px/20px var(--font); text-align:center; margin-bottom:8px; }
.paper i { display:block; height:6px; border-radius:3px; background:var(--grey-200); }
.paper i.s { width:60%; } .paper i.m { width:85%; }
.paper .seal { justify-self:end; margin-top:18px; width:72px; height:72px; border-radius:50%; box-shadow:inset 0 0 0 2px var(--navy-100); display:grid; place-items:center; font:700 10px/1.2 var(--font); color:var(--navy-500); text-align:center; }
.app .row.sel { background:var(--navy-50); }
.app .row.sel + .row::before, .app .row.sel::before { display:none; }

/* Select field */
.field select { width:100%; height:52px; padding:0 44px 0 16px; border:0; border-radius:12px; background:var(--grey-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="%2369737f" stroke-width="1.8"><path d="M5 8l5 5 5-5"/></svg>') no-repeat right 14px center; font:400 16px/1 var(--font); color:var(--grey-900); appearance:none; outline:none; cursor:pointer; }
.field select:focus { box-shadow:0 0 0 2px var(--navy-500); background-color:#fff; }
.field + .field { margin-top:16px; }
.field .hint { margin-top:6px; font:var(--caption); color:var(--grey-500); }
/* Field with action: the input and one trailing icon button (remove this entry) */
.field .with-action { display:flex; align-items:center; gap:8px; }
.field .with-action input { flex:1; min-width:0; }

/* Checklist rows */
.panel .cta-block { padding:16px 24px 20px; display:grid; gap:8px; }
.panel .cta-block p { margin:0; font:var(--caption); color:var(--grey-600); text-align:center; }

/* Request flow */
.flow { width:100%; max-width:640px; margin:0 auto; padding:48px 24px 64px; display:grid; gap:16px; }
.flow .count-step { font:600 14px/20px var(--font); color:var(--navy-500); }

.flow .sub { margin:6px 0 0; font:var(--body); color:var(--grey-600); }
.progress { height:4px; border-radius:2px; background:var(--grey-200); overflow:hidden; }
.progress i { display:block; height:100%; background:var(--navy-500); transition:width .2s var(--ease); }
/* Indeterminate: a segment slides along the track while the end is unknown. */
.progress.indeterminate { position:relative; }
.progress.indeterminate i { position:absolute; top:0; bottom:0; width:30%; animation:progress-slide 1.4s ease-in-out infinite; }
@keyframes progress-slide { from { left:-30%; } to { left:100%; } }
@media (prefers-reduced-motion: reduce) { .progress.indeterminate i { animation:none; left:0; width:100%; opacity:.4; } }

/* Session map: a dotted map behind "waiting for a notary" and "notary accepted" (session-map.js). */
.session-map { position:relative; aspect-ratio:2 / 1; margin:20px 24px 0; border-radius:12px; overflow:hidden; background:var(--grey-50); }
.session-map svg { position:absolute; inset:0; width:100%; height:100%; }
.session-map .dot { fill:var(--grey-300); }
.session-map .dot.us { fill:var(--grey-400); }
.session-map .pulse { fill:var(--green-500); }
.session-map .line { fill:none; stroke:var(--green-500); stroke-width:1.8; stroke-linecap:round; }
.session-map .hit { fill:var(--green-500); }
.session-map .marker { fill:var(--navy-500); }
.session-map .marker-ring { fill:#fff; filter:drop-shadow(0 2px 4px rgba(16,24,40,.25)); }
.session-map .avatar-bg { fill:var(--navy-50); }
.session-map .initials { font:700 14px/1 var(--font); fill:var(--navy-700); }
.session-map .label { font:var(--micro); fill:var(--grey-700); paint-order:stroke; stroke:#fff; stroke-width:4px; }
.session-map-sheet { position:absolute; left:16px; right:16px; bottom:16px; display:grid; gap:2px; padding:16px; border-radius:16px; background:#fff; box-shadow:var(--shadow-float); }
.session-map-sheet .head { display:flex; align-items:center; gap:12px; }
.session-map-sheet b { font:var(--headline); color:var(--grey-900); }
/* Caption text only; button labels keep the button's own font and color. */
.session-map-sheet span:not(.btn span) { font:var(--caption); color:var(--grey-600); }
.session-map-sheet .timer { margin-left:auto; flex:none; }
.session-map-sheet .progress { margin-top:12px; }
/* A next step in the sheet: text on the left, its button on the right. */
.session-map-sheet .head > div { flex:1; min-width:0; }
.session-map-sheet .head > div > span { display:block; }
.session-map-sheet .head > .btn { flex:none; margin-left:auto; }
/* The inline waiting room (meeting open) sits in the same row. */
.session-map-sheet .head > [data-inline] > div { flex:1; min-width:0; }
.session-map-sheet .head > [data-inline] > div > span { display:block; }
.session-map-sheet .head > [data-inline] > .btn { flex:none; margin-left:auto; }
.session-map-sheet .head > [data-inline] > .timer { margin-left:auto; flex:none; }
/* Phones: the text and the fee box take the full width; Join sits under them, full width. */
@media (max-width:600px) { .session-map-sheet .head:has(> [data-inline]) { flex-wrap:wrap; } .session-map-sheet .head > [data-inline] > div { flex:1 1 100%; } .session-map-sheet .head > [data-inline] > .btn { flex:1 1 100%; margin-left:0; } }
/* Notary accepted: a navy dotted link with dots flowing toward the notary, and soft rings at both ends. */
.session-map .link { fill:none; stroke:var(--navy-500); stroke-width:2; stroke-linecap:round; stroke-dasharray:2 6; opacity:.7; }
.session-map .link.flow { animation:session-flow 1s linear infinite; }
.session-map .beat { fill:none; stroke:var(--navy-500); stroke-width:1.5; }
@keyframes session-flow { to { stroke-dashoffset:-8; } }
@media (prefers-reduced-motion: reduce) { .session-map .link.flow { animation:none; } }
/* Phones: the sheet sits in the flow at the bottom of the map, so a tall sheet (the fee box and Join)
   makes the map taller instead of being cut off at the top; a next-step button goes under its text. */
@media (max-width:600px) {
  .session-map { display:flex; flex-direction:column; justify-content:flex-end; aspect-ratio:auto; min-height:calc((100vw - 32px) * .75); margin:16px 16px 0; }
  .session-map-sheet { position:relative; left:auto; right:auto; bottom:auto; margin:16px; }
  .session-map-sheet .head:has(> .btn) { flex-wrap:wrap; }
  .session-map-sheet .head > div { flex:1 1 100%; }
  .session-map-sheet .head > .btn { flex:1 1 100%; margin-left:0; }
}
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chips button { height:40px; padding:0 14px; border:0; border-radius:12px; background:var(--grey-100); font:500 15px/1 var(--font); color:var(--grey-700); cursor:pointer; }
.chips button[aria-pressed="true"] { background:var(--navy-50); color:var(--navy-700); font-weight:600; box-shadow:inset 0 0 0 1.5px var(--navy-500); }
/* Filter chips that are links (a server-side filter), each with a count; the current one is aria-current. */
.chips a { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border-radius:12px; background:var(--grey-100); font:500 14px/1 var(--font); color:var(--grey-700); text-decoration:none; white-space:nowrap; }
.chips a:hover { background:var(--grey-200); }
.chips a[aria-current] { background:var(--navy-50); color:var(--navy-700); font-weight:600; box-shadow:inset 0 0 0 1.5px var(--navy-500); }
.chips a .count { font-weight:600; color:var(--grey-500); }
.chips a[aria-current] .count { color:var(--navy-500); }
.radio-row { display:flex; align-items:center; gap:14px; padding:16px; border-radius:16px; background:#fff; box-shadow:inset 0 0 0 1.5px var(--grey-200); cursor:pointer; }
.radio-row[aria-checked="true"] { box-shadow:inset 0 0 0 2px var(--navy-500); }
.radio-row .dot { flex:none; width:22px; height:22px; border-radius:50%; box-shadow:inset 0 0 0 2px var(--grey-300); }
.radio-row[aria-checked="true"] .dot { box-shadow:inset 0 0 0 7px var(--navy-500); }
.radio-row b { display:block; font:600 15px/22px var(--font); } .radio-row span { font:var(--caption); color:var(--grey-600); }
.two-f { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.two-f .field + .field { margin-top:0; }

/* Empty state */

/* Wider dialog for forms */
.sheet.form { width:min(480px,100%); }
.sheet.form .field + .field, .sheet.form .two-f { margin-top:16px; }
.sheet.form .row { padding:12px 0; }
.sheet.form .two-f .field + .field, .two-f .field + .field { margin-top:0; }
.stripe-note { display:flex; align-items:center; gap:6px; margin-top:14px; font:500 12px/1 var(--font); color:var(--grey-500); }
/* Request flow: step on the left, live summary on the right */
.flow { max-width:1328px; padding:48px 24px 64px; display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:16px 24px; align-items:start; }
.flow > .flow-main { display:grid; gap:16px; }
.flow > .flow-side { grid-row:span 2; grid-template-columns:minmax(0,1fr); }
.summary .row { cursor:pointer; }
.summary .row .desc { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.summary .row.todo { cursor:default; opacity:.45; }
.summary .row.now { background:var(--navy-50); }
.summary .row.now::before, .summary .row.now + .row::before { display:none; }
@media (max-width:979px) { .flow { grid-template-columns:1fr; } .flow > .flow-side { grid-row:auto; } }
.flow .pair { justify-self:end; width:100%; max-width:440px; }

/* Generic modal content */
.sheet.wide { width:min(560px,100%); }
.sheet h2 { margin:0 0 8px; font:var(--title-1); }
.sheet .lead2 { margin:0 0 20px; font:var(--body); color:var(--grey-700); }
.sheet .pair { margin-top:20px; }
.draw-box canvas { display:block; width:100%; height:180px; cursor:crosshair; touch-action:none; }
.draw-box .base { position:absolute; left:24px; right:24px; bottom:44px; border-top:1px dashed var(--grey-300); pointer-events:none; }
.draw-box .hint { position:absolute; left:0; right:0; bottom:14px; text-align:center; font:var(--caption); color:var(--grey-500); pointer-events:none; }
.f1 { font-family:'Snell Roundhand','Brush Script MT',cursive; font-size:28px; }
.f2 { font-family:'Segoe Script','Bradley Hand',cursive; font-size:24px; }
.f3 { font-family:'Noteworthy','Marker Felt','Comic Sans MS',cursive; font-size:24px; }
.avatar.xl { width:96px; height:96px; font-size:30px; margin:4px auto 16px; display:grid; }

/* Session states */
.state { display:grid; gap:16px; }
.pulse { position:relative; display:grid; place-items:center; width:88px; height:88px; margin-bottom:8px; }
.pulse::before, .pulse::after { content:''; position:absolute; inset:0; border-radius:50%; background:var(--navy-100); animation:pulse 2s infinite var(--ease); }
.pulse::after { animation-delay:1s; }
.pulse .avatar { position:relative; z-index:1; width:64px; height:64px; font-size:20px; }
@keyframes pulse { 0% { transform:scale(.7); opacity:.9; } 100% { transform:scale(1.4); opacity:0; } }
@media (prefers-reduced-motion:reduce) { .pulse::before, .pulse::after { animation:none; opacity:.4; } }
.spin { width:20px; height:20px; border-radius:50%; border:2.5px solid var(--navy-100); border-top-color:var(--navy-500); animation:spin .8s linear infinite; flex:none; }
@keyframes spin { to { transform:rotate(360deg); } }

/* Identity flow */
.q-head { display:flex; align-items:center; justify-content:space-between; }

/* Auth */
.auth { min-height:100vh; background:var(--grey-50); display:grid; place-items:center; padding:48px 24px; }
.auth-row { display:flex; flex-wrap:wrap; justify-content:center; gap:24px; align-items:start; }
.auth-card { width:420px; padding:40px 32px 32px; border-radius:24px; background:#fff; display:grid; gap:16px; }
.auth-card .wordmark { justify-self:center; }
.auth-card .wordmark img { height:26px; }
.auth-card h1 { margin:8px 0 0; text-align:center; font:700 24px/32px var(--font); letter-spacing:-.02em; }
.auth-card .lead2 { margin:-8px 0 4px; text-align:center; font:var(--body); color:var(--grey-600); }
.or { display:flex; align-items:center; gap:12px; font:var(--caption); color:var(--grey-500); }
.or::before, .or::after { content:''; flex:1; height:1px; background:var(--grey-200); }
.auth-links { display:flex; justify-content:space-between; font:500 14px/20px var(--font); }
.auth-links a { color:var(--grey-600); text-decoration:none; } .auth-links a.strong { color:var(--navy-500); font-weight:600; }
.code { position:relative; display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
.code input { min-width:0; width:100%; height:60px; border:0; border-radius:12px; background:var(--grey-100); text-align:center; font:700 24px/1 var(--font); outline:none; }
.code input:focus { box-shadow:0 0 0 2px var(--navy-500); background:#fff; }
.code input.code-value { position:absolute; inset:0; width:1px; height:1px; padding:0; opacity:0; pointer-events:none; }
.code.is-invalid input { box-shadow:0 0 0 2px var(--red-500); background:var(--red-50); }

/* Header: logo left, portal tabs centered, account right (as in the current product) */
.app-header .inner { display:grid; grid-template-columns:1fr auto 1fr; gap:24px; }
.app-header .app-nav { justify-self:center; }
.app-header .account { justify-self:end; margin-left:0; }

/* Shared step styles for every flow (request, verify, sign-up, registration) */
.step .count-step { font:600 14px/20px var(--font); color:var(--navy-500); }
.step h1 { margin:4px 0 0; font:var(--display); letter-spacing:-.02em; }
.step .sub { margin:6px 0 0; font:var(--body); color:var(--grey-600); }
.auth-card .step h1 { text-align:left; font-size:24px; line-height:32px; }
.auth-card .step .panel { padding:0 !important; margin-top:20px !important; background:none; }

/* ── Merged components ── */
/* Text button: a button with no fill */
.btn.ghost { background:transparent; color:var(--grey-600); }
.btn.ghost.danger { color:var(--red-500); }
.row.danger .title { color:var(--red-500); }
.row .lead.grey { background:var(--grey-100); color:var(--grey-700); }
.action-list .row .title { font:500 15px/22px var(--font); }
.action-list .row .lead { background:var(--grey-100); color:var(--grey-700); }
.action-list .row.danger .lead { background:var(--red-50); color:var(--red-500); }

/* Callout: grey by default, navy for information that blocks the next step */
.callout { display:flex; gap:12px; padding:16px; border-radius:16px; background:var(--grey-100); font:var(--caption); color:var(--grey-700); }
.callout b { display:block; margin-bottom:2px; font:600 14px/20px var(--font); color:var(--grey-900); }
.callout.info { background:var(--navy-50); color:var(--navy-700); }
.callout.info b { color:var(--navy-700); }

/* Key-value list: rows of label and value; .boxed puts it on a grey box */
.kv { margin:0; padding:0 24px 8px; }
.kv div { display:flex; justify-content:space-between; gap:16px; padding:10px 0; font:var(--body); }
.kv div + div { border-top:1px solid var(--grey-100); }
.kv dt { color:var(--grey-600); } .kv dd { margin:0; font-weight:600; text-align:right; color:var(--grey-900); }
.kv.boxed { margin:0 0 24px; padding:4px 16px; border-radius:16px; background:var(--grey-50); }
.kv.boxed div + div { border-top:0; }
/* A review row ends with Edit, which opens the step that holds the value */
.kv div:has(> dd.act) { align-items:center; }
.kv dd.act { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.kv dd.act .btn { flex:none; }
.kv-photo { width:40px; height:40px; border-radius:50%; object-fit:cover; background:var(--grey-100); }
/* Dense key-value list (admin detail pages): 14 px rows, 8 px apart; long values wrap. */
.kv.dense div { padding:8px 0; font:400 14px/20px var(--font); align-items:center; }
.kv.dense dd { font-weight:500; overflow-wrap:anywhere; }
.kv.dense dd em { font-style:normal; font-weight:600; }
.kv.dense .kv-photo { width:32px; height:32px; }
/* An image value that is not a person (a notary seal): its own shape, 56 px high. */
.kv-image { display:block; height:56px; width:auto; max-width:160px; object-fit:contain; border-radius:8px; background:#fff; }
.kv.dense dd a { color:var(--navy-500); text-decoration:none; }
.kv.dense dd a:hover { text-decoration:underline; }
/* Two key-value columns in a wide panel (a full-width admin section); one column under 980 px. */
.kv.grid2 { display:grid; grid-template-columns:1fr 1fr; column-gap:48px; }
.kv.grid2 div + div { border-top:0; }
.kv.grid2 div { border-bottom:1px solid var(--grey-100); }
@media (max-width:979px) { .kv.grid2 { grid-template-columns:1fr; } }
/* A form at the end of a panel: the panel's side padding. */
.panel .stack-form { margin:0; padding:8px 24px 24px; }
/* The action at the end of a form or a group of panels, at the right edge. */
.form-end { display:flex; justify-content:flex-end; gap:8px; }
/* A form whose hints and action sit at the right edge (a review note above Approve). */
.stack-form.end { text-align:left; }
.stack-form.end .hint { text-align:right; }
.stack-form.end > .actions { display:flex; justify-content:flex-end; }
/* Under a step's main button: the upload progress, or a failure in red */
.submit-status { margin:8px 0 0; font:var(--caption); color:var(--grey-600); text-align:right; }
.submit-status.bad { color:var(--red-500); }

/* Step marker: grey to do, navy now, green done */
.marker { flex:none; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--grey-100); color:var(--grey-600); font:700 13px/1 var(--font); }
.marker.now, .row.now .marker { background:var(--navy-500); color:#fff; }
.marker.done, .row.done .marker { background:var(--green-500); color:#fff; }

/* Value: a number or short value at the end of a row, with an optional caption */
.value { flex:none; margin-left:auto; text-align:right; font:600 15px/22px var(--font); color:var(--grey-900); font-variant-numeric:tabular-nums; white-space:nowrap; }
.value b { display:block; font:inherit; }
.value span, .value small { display:block; font:var(--caption); color:var(--grey-500); }
.value.lg { display:block; margin:0; padding:4px 24px 0; text-align:left; font:700 28px/38px var(--font); letter-spacing:-.02em; }
.value.lg small { letter-spacing:0; }
.set .row .title { font:500 15px/22px var(--font); color:var(--grey-700); }

/* State block: empty, waiting and result screens */
.state-block { display:grid; justify-items:center; gap:6px; padding:36px 24px 40px; text-align:center; }
.state-block .ic { display:grid; place-items:center; width:56px; height:56px; margin-bottom:6px; border-radius:50%; background:var(--grey-100); color:var(--grey-500); }
.state-block .ic.ok { background:var(--green-50); color:var(--green-500); }
.state-block .ic.bad { background:var(--red-50); color:var(--red-500); }
.state-block .ic.info { background:var(--navy-50); color:var(--navy-500); }
.state-block > b { font:var(--headline); color:var(--grey-900); }
.state-block > span { max-width:440px; font:var(--caption); color:var(--grey-600); }
.state-block > .btn { margin-top:8px; }
.ic { display:grid; place-items:center; width:56px; height:56px; border-radius:50%; }
.ic.ok { background:var(--green-50); color:var(--green-500); } .ic.bad { background:var(--red-50); color:var(--red-500); }

/* Timer chip: grey for the session clock, amber when time is short */
.timer.warn { background:var(--amber-50); color:var(--amber-600); }

/* Person: avatar, name and one line; .boxed on grey */
.person { display:flex; align-items:center; gap:14px; }
.person .avatar { width:48px; height:48px; font-size:16px; }
.person b { display:block; font:var(--headline); color:var(--grey-900); }
.person span:not(.avatar) { font:var(--caption); color:var(--grey-600); }
/* One fact per line under the name ("Commissioned in NY", then "Your notary is online"). */
.person .line { display:block; }
.person .line[hidden] { display:none; }
.panel > .person { padding:24px; }
.menu .person { padding:12px 12px 16px; }
.person.boxed { padding:16px; border-radius:16px; background:var(--grey-50); }

/* Segmented control, small size for menus */
.seg.s { padding:3px; border-radius:10px; }
.seg.s button { height:28px; padding:0 10px; border-radius:8px; font-size:13px; }
.menu .seg { margin-left:auto; }

/* Text area uses the text field look */
.field textarea { width:100%; min-height:96px; padding:14px 16px; border:0; border-radius:12px; background:var(--grey-100); font:400 15px/22px var(--font); color:var(--grey-900); resize:vertical; outline:none; }
.field textarea:focus { box-shadow:0 0 0 2px var(--navy-500); background:#fff; }

/* Well: an inset box for signatures and the card form */
.well { border-radius:16px; background:var(--grey-50); box-shadow:inset 0 0 0 1.5px var(--grey-300); }
.well.draw-box { position:relative; }
.well.sig-preview { display:grid; place-items:center; height:140px; font:400 40px/1 'Snell Roundhand','Brush Script MT','Segoe Script',cursive; color:var(--grey-900); }
.well.stripe-box { padding:16px; background:#fff; box-shadow:inset 0 0 0 1.5px var(--grey-200); }

/* Dialog text */
.sheet > p { margin:0 0 24px; font:var(--body); color:var(--grey-700); }

/* Signature styles in choice rows */
.radio-row span.f1, .radio-row span.f2, .radio-row span.f3 { color:var(--grey-900); }
.radio-row span.f1 { font:400 28px/1.2 'Snell Roundhand','Brush Script MT',cursive; }
.radio-row span.f2 { font:400 24px/1.2 'Segoe Script','Bradley Hand',cursive; }
.radio-row span.f3 { font:400 24px/1.2 'Noteworthy','Marker Felt',cursive; }
.tab .cnt { margin-left:4px; font-weight:500; color:var(--grey-500); }
.tab[aria-selected="true"] .cnt { color:var(--grey-600); }

/* Auth shell: every signed-out page (sign in, code, sign-up, email checks, password reset).
   Left: navy panel with the turning wireframe berry. Right: one form on white. */
.auth-shell { position:relative; display:grid; grid-template-columns:1fr 1fr; min-height:100vh; background:#fff; }
.auth-art { position:relative; display:grid; place-items:center; overflow:hidden; perspective:800px; background:radial-gradient(ellipse at 20% 20%, var(--navy-500) 0%, var(--navy-700) 60%); }
.berry { position:relative; width:360px; height:360px; transform-style:preserve-3d; animation:berry-turn 24s linear infinite; }
.berry::before { content:''; position:absolute; inset:17.5%; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 50%, transparent 70%); animation:berry-glow 4s ease-in-out infinite; }
.berry .lng { position:absolute; inset:0; border-radius:50%; border:1.5px solid rgba(255,255,255,.22); transform-style:preserve-3d; }
.berry .lng::after { content:''; position:absolute; top:50%; left:50%; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%; background:#fff; box-shadow:0 0 6px 2px rgba(255,255,255,.7), 0 0 16px 4px rgba(255,255,255,.3); animation:berry-dot 2.5s ease-in-out infinite backwards; }
.berry .lng:nth-child(1) { transform:rotateY(0deg); } .berry .lng:nth-child(1)::after { animation-delay:0.00s; }
.berry .lng:nth-child(2) { transform:rotateY(18deg); } .berry .lng:nth-child(2)::after { animation-delay:0.15s; }
.berry .lng:nth-child(3) { transform:rotateY(36deg); } .berry .lng:nth-child(3)::after { animation-delay:0.30s; }
.berry .lng:nth-child(4) { transform:rotateY(54deg); } .berry .lng:nth-child(4)::after { animation-delay:0.45s; }
.berry .lng:nth-child(5) { transform:rotateY(72deg); } .berry .lng:nth-child(5)::after { animation-delay:0.60s; }
.berry .lng:nth-child(6) { transform:rotateY(90deg); } .berry .lng:nth-child(6)::after { animation-delay:0.75s; }
.berry .lng:nth-child(7) { transform:rotateY(108deg); } .berry .lng:nth-child(7)::after { animation-delay:0.90s; }
.berry .lng:nth-child(8) { transform:rotateY(126deg); } .berry .lng:nth-child(8)::after { animation-delay:1.05s; }
.berry .lng:nth-child(9) { transform:rotateY(144deg); } .berry .lng:nth-child(9)::after { animation-delay:1.20s; }
.berry .lng:nth-child(10) { transform:rotateY(162deg); } .berry .lng:nth-child(10)::after { animation-delay:1.35s; }
.berry .crown { position:absolute; top:0; left:50%; width:0; height:0; transform-style:preserve-3d; }
.berry .crown span { position:absolute; bottom:0; left:50%; width:76px; height:39px; border:1.5px solid rgba(255,255,255,.28); border-radius:50% 50% 20% 20%; transform-origin:bottom center; }
.berry .crown span:nth-child(1) { transform:translateX(-50%) rotateY(0deg) rotateX(-50deg); }
.berry .crown span:nth-child(2) { transform:translateX(-50%) rotateY(72deg) rotateX(-50deg); }
.berry .crown span:nth-child(3) { transform:translateX(-50%) rotateY(144deg) rotateX(-50deg); }
.berry .crown span:nth-child(4) { transform:translateX(-50%) rotateY(216deg) rotateX(-50deg); }
.berry .crown span:nth-child(5) { transform:translateX(-50%) rotateY(288deg) rotateX(-50deg); }
@keyframes berry-turn { from { transform:rotateY(0) rotateX(-8deg) scaleY(.88); } to { transform:rotateY(360deg) rotateX(-8deg) scaleY(.88); } }
@keyframes berry-glow { 0%, 100% { opacity:.5; transform:scale(1); } 50% { opacity:1; transform:scale(1.15); } }
@keyframes berry-dot { 0% { transform:rotate(-90deg) translateX(180px) rotate(90deg); opacity:0; } 5%, 95% { opacity:1; } 100% { transform:rotate(90deg) translateX(180px) rotate(-90deg); opacity:0; } }
.auth-side { position:relative; display:grid; place-items:center; padding:48px 32px; }
.auth-shell .auth-card { width:100%; max-width:420px; padding:0; border-radius:0; background:none; animation:rise .5s var(--ease) both; }
.auth-shell .auth-card .wordmark { justify-self:start; }
.auth-shell .auth-card h1, .auth-shell .auth-card .lead2 { text-align:left; }
@media (max-width:1024px) { .auth-shell { grid-template-columns:42% 58%; } }
@media (max-width:979px) { .auth-shell { grid-template-columns:1fr; } .auth-art { display:none; } }
/* Help and language links that language.js adds to pages without a language slot. */
.auth-help { display:flex; align-items:center; gap:16px; font:500 14px/1 var(--font); }
.auth-help a { color:var(--grey-600); text-decoration:none; }
.auth-shell > .auth-help { position:absolute; right:clamp(24px,5vw,64px); bottom:24px; }
@media (max-width:979px) { .auth-shell > .auth-help { position:static; justify-content:center; padding:0 24px 24px; } }
@media (prefers-reduced-motion:reduce) { .berry, .berry::before, .berry .lng::after { animation:none; } }

/* Thumbnails: page previews in a grid; a click opens the large preview */
.thumbs { display:grid; grid-template-columns:repeat(auto-fill,minmax(176px,1fr)); gap:16px; padding:8px 24px 24px; }
.thumb { display:grid; gap:2px; padding:0; border:0; background:none; text-align:left; cursor:pointer; font-family:inherit; }
.thumb .paper.mini { margin:0 0 10px; padding:18px 16px; gap:6px; transition:box-shadow .15s; }
.thumb:hover .paper.mini { box-shadow:inset 0 0 0 2px var(--navy-500); }
.thumb img.page { display:block; width:100%; aspect-ratio:8.5/11; object-fit:cover; object-position:top; margin:0 0 10px; border-radius:12px; background:#fff; outline:1px solid var(--grey-200); outline-offset:-1px; transition:outline-color .15s; }
.thumb:hover img.page { outline:2px solid var(--navy-500); outline-offset:-2px; }
.thumb b { font:600 14px/20px var(--font); color:var(--grey-900); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.thumb span { font:var(--caption); color:var(--grey-500); }
.paper.mini b { font-size:9px; line-height:12px; margin-bottom:6px; }
.paper.mini i { height:4px; }
.paper.mini .seal { width:36px; height:36px; margin-top:10px; font-size:7px; }
.side-nav a .value { margin-left:auto; }

.list-foot { display:flex; align-items:center; justify-content:center; gap:4px; width:calc(100% - 48px); height:48px; margin:4px 24px 0; padding:0; border:0; border-top:1px solid var(--grey-200); background:none; font:500 14px/1 var(--font); color:var(--grey-600); cursor:pointer; }
.list-foot::after { content:''; width:6px; height:6px; margin-top:-3px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(45deg); }
.list-foot:hover { color:var(--grey-900); }
/* ── Modals and dropdowns (shared/modal.js) ── */
.modal-open { overflow:hidden; }
.modal { position:fixed; inset:0; z-index:1050; display:none; overflow-x:hidden; overflow-y:auto; outline:0; }
.modal-open .modal { overflow-x:hidden; overflow-y:auto; }
.modal-dialog { position:relative; width:min(420px, calc(100% - 32px)); margin:64px auto; pointer-events:none; }
.modal-dialog-centered { display:flex; align-items:center; min-height:calc(100% - 128px); }
.modal-content { position:relative; display:flex; flex-direction:column; width:100%; padding:28px 24px 24px; border:0; border-radius:24px; background:#fff; box-shadow:0 24px 64px rgba(0,0,0,.24); pointer-events:auto; outline:0; }
.modal.fade .modal-dialog { transform:translateY(12px); opacity:0; transition:transform .2s var(--ease), opacity .2s var(--ease); }
.modal.show .modal-dialog { transform:none; opacity:1; }
.modal-backdrop { position:fixed; inset:0; z-index:1040; background:rgb(20,24,40); }
.modal-backdrop.fade { opacity:0; transition:opacity .2s var(--ease); }
/* A dialog taller than the screen scrolls, and its buttons stay in view at the bottom. */
.modal-content > .pair { position:sticky; bottom:0; z-index:1; margin:20px -24px -24px; padding:16px 24px 24px; border-radius:0 0 24px 24px; background:#fff; }
@media (max-height:960px) { .modal-dialog { margin:24px auto; } .modal-dialog-centered { min-height:calc(100% - 48px); } }
.modal-backdrop.show { opacity:.6; }
.modal-lg { width:min(720px, calc(100% - 32px)); } .modal-xl { width:min(960px, calc(100% - 32px)); }
.dropdown-menu { display:none; }
.dropdown-menu.show { display:block; }
.collapse:not(.show) { display:none; }
.fade { transition:opacity .15s linear; } .fade:not(.show) { opacity:0; }
.sr-only, .visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.hidden { display:none !important; }
img, svg { vertical-align:middle; }
a { color:var(--navy-500); }
input, select, textarea, button { font-family:inherit; }
.modal.wiggle .modal-dialog { animation:wiggle .3s var(--ease); }
@keyframes wiggle { 25% { transform:translateX(-6px); } 75% { transform:translateX(6px); } }

/* ── Icons: <svg class="ic"><use href="/shared/assets/icons.svg#NAME"/></svg> ── */
.ic { flex:none; width:20px; height:20px; color:inherit; vertical-align:-4px; }
.ic.s { width:16px; height:16px; vertical-align:-3px; }
.ic.l { width:24px; height:24px; }

/* ── Greeting strip text rotation ── */
.accent-rotator { overflow:hidden; }
.accent-text { display:inline-block; }
.accent-text.slide-down-in { animation:accent-in .3s var(--ease); }
.accent-text.slide-down-out { animation:accent-out .3s var(--ease) forwards; }
@keyframes accent-in { from { opacity:0; transform:translateY(-8px); } }
@keyframes accent-out { to { opacity:0; transform:translateY(8px); } }
@media (prefers-reduced-motion:reduce) { .accent-text.slide-down-in, .accent-text.slide-down-out { animation-duration:.01s; } }

/* ── Shell details ── */
a.wordmark { text-decoration:none; }
.session-countdown.is-warning { background:var(--amber-50); color:var(--amber-600); }
.session-countdown.is-critical { background:var(--red-50); color:var(--red-500); }
.profile > button img.avatar { object-fit:cover; }
/* A long name or an email (before the legal-name step) shortens instead of pushing the header. */
.profile > button .name { max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.language-switcher { display:flex; align-items:center; gap:10px; margin-left:auto; font:500 14px/1 var(--font); color:var(--grey-700); }
.language-switcher select { height:32px; padding:0 28px 0 10px; border:0; border-radius:8px; background:var(--grey-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="%2369737f" stroke-width="1.6"><path d="M4 6l4 4 4-4"/></svg>') no-repeat right 8px center; font:500 13px/1 var(--font); color:var(--grey-900); appearance:none; cursor:pointer; }
.menu [data-language-slot] { display:flex; align-items:center; gap:12px; height:44px; padding:0 12px; color:var(--grey-800); }
.menu [data-language-slot] .language-switcher-caption { font:500 15px/1 var(--font); }
.menu [data-language-slot] .language-switcher { flex:1; margin-left:0; justify-content:space-between; color:var(--grey-800); }

/* ── Dialog content (shared Dialog and page modals) ── */
.dialog-text h2, .modal-content > h2 { margin:0 0 8px; font:var(--title-1); color:var(--grey-900); }
.dialog-text { font:var(--body); color:var(--grey-700); }
.dialog-text p { margin:0 0 8px; }
.dialog-text > :last-child { margin-bottom:0; }
.modal-body { margin-bottom:24px; }
/* A body right above the sticky button pair: the pair's own top space is enough (no 60 px gap). */
.modal-body:has(+ .pair) { margin-bottom:0; }
.modal-content > .modal-body + .pair { margin-top:8px; }
.dialog-footer.single { grid-template-columns:1fr; }
.dialog-spin { display:block; width:28px; height:28px; margin:0 0 16px; }
.modal-md { width:min(560px, calc(100% - 32px)); }
.modal-full { width:calc(100% - 32px); max-width:none; }
.stack-form { display:grid; gap:16px; margin-bottom:20px; }
.stack-form .field + .field { margin-top:0; }

/* ── Shell on narrow screens: nav moves to its own scrollable row, the name hides ── */
@media (max-width:979px) {
  .app-header .inner { display:flex; flex-wrap:wrap; height:auto; min-height:56px; gap:0 12px; padding:0 16px; }
  .app-header .wordmark { margin-right:auto; }
  .app-header .account { gap:8px; }
  .app-header .app-nav { order:3; justify-self:auto; width:100%; height:44px; gap:24px; overflow-x:auto; scrollbar-width:none; }
  .app-header .app-nav:empty { display:none; }
  /* A nav row wider than the phone scrolls sideways; the fading edge shows there is more. */
  .app-header .app-nav { padding-right:24px; -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent); }
  .profile > button { font-size:0; gap:4px; padding:0 4px; }
  .profile > button .ic { width:16px; height:16px; }
  .menu { position:fixed; top:60px; right:12px; left:12px; width:auto; }
  .strip .inner { height:auto; min-height:44px; padding:8px 16px; gap:10px; }
  .strip .sep, .strip .accent-rotator { display:none; }
  .page, .page.wide, .flow { padding-left:16px; padding-right:16px; }
}


/* ══ Components added with the Signer portal and signed-out pages ══ */
/* Loading overlay: covers a region while a request runs; .spin in the middle (loading.js). */
.loading-overlay { position:fixed; inset:0; z-index:1100; display:grid; place-items:center; background:rgba(255,255,255,.6); animation:fade .2s var(--ease); }
.loading-overlay .spin { width:36px; height:36px; border-width:3px; }

/* Toast holder: one toast at a time, bottom center, 32 px above the page bottom (toast.js). */
.toast-stack { position:fixed; left:50%; bottom:32px; z-index:1200; display:grid; justify-items:center; gap:8px; width:min(480px, calc(100% - 32px)); transform:translateX(-50%); pointer-events:none; }
.toast-stack .toast { position:relative; left:auto; bottom:auto; transform:translateY(16px); max-width:100%; pointer-events:auto; }
.toast-stack .toast.show { transform:none; }
.toast b { display:block; font-weight:600; }
.toast a { color:#fff; }

/* Radio rows with a native radio input (identity questions): the radio sits at the right edge. */
.radio-row input[type="radio"] { flex:none; width:22px; height:22px; margin:0; accent-color:var(--navy-500); cursor:pointer; }
.radio-row:has(input:checked) { box-shadow:inset 0 0 0 2px var(--navy-500); }

/* Notification: server events and reminders. White floating card at the bottom right, newest on top (toast.js showNotification). */
.notice-stack { position:fixed; right:24px; bottom:24px; z-index:1200; display:grid; gap:12px; width:min(360px, calc(100% - 32px)); }
.notice { position:relative; display:flex; align-items:flex-start; gap:12px; padding:16px 44px 16px 16px; border-radius:16px; background:#fff; box-shadow:0 12px 40px rgba(16,24,40,.16), 0 0 0 1px var(--grey-200); animation:rise .2s var(--ease); }
.notice-ic { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--navy-50); color:var(--navy-500); }
.notice.ready .notice-ic { background:var(--green-50); color:var(--green-500); }
.notice.wait .notice-ic { background:var(--amber-50); color:var(--amber-600); }
.notice.stop .notice-ic { background:var(--red-50); color:var(--red-500); }
.notice-body { min-width:0; }
.notice-body b { display:block; font:600 15px/22px var(--font); color:var(--grey-900); }
.notice-body p { margin:2px 0 0; font:var(--caption); color:var(--grey-600); }
.notice-body .btn { margin-top:10px; }
.notice-close { position:absolute; top:10px; right:10px; display:grid; place-items:center; width:28px; height:28px; padding:0; border:0; border-radius:8px; background:none; color:var(--grey-500); cursor:pointer; }
.notice-close:hover { background:var(--grey-100); color:var(--grey-800); }
/* Below 640 px notifications move to the top, full width minus 16 px margins; the bottom stays free for the toast and the main button. */
@media (max-width:600px) { .notice-stack { top:16px; right:16px; bottom:auto; left:16px; width:auto; } }
@media (prefers-reduced-motion:reduce) { .notice { animation:none; } }

/* Page grids: a column never grows past the page because of a long row title (fix for .cols2, .split, .flow, .page.wide). */
.page.wide > *, .cols2 > *, .split > *, .flow > *, .flow-main > * { min-width:0; }

/* Phones: list rows keep one action; the row text wraps under the title instead of pushing the page wider. */
@media (max-width:600px) {
  .two-f { grid-template-columns:1fr; gap:16px; }
  .split.rev > .sticky, .flow > .flow-side { position:static; }
  .next { flex-wrap:wrap; }
  .next .btn { width:100%; }
  .row:has(> .row-actions) { flex-wrap:wrap; }
  /* Setup checklists: the action goes under the text, lined up with it, so the text keeps the row width. */
  .row.static:has(> .marker):has(> .main + .btn) { flex-wrap:wrap; row-gap:8px; }
  .row.static:has(> .marker) > .main:has(+ .btn) { flex-basis:calc(100% - 44px); }
  .row.static:has(> .marker) > .main + .btn { margin-left:44px; }
  .row > .row-actions { width:100%; justify-content:flex-end; }
  .split > .side-nav { display:none; }
}


/* ══ Components added with the Notary portal ══ */
@charset "UTF-8";
/* Notary portal additions to ds.css. Each rule says what it adds; merge into ds.css. */

/* Stack: a vertical group of panels with the page gap (layout glue used on every page) */
.stack { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-content:start; min-width:0; }

/* List row: a row that does not open anything (switch rows, facts) */
.row.static { cursor:default; }
.row.static:hover, .row.static:active { background:none; }

/* List row: the one item on the right, kept together (a value, a small button, or a button and an icon button) */
.row-end { flex:none; display:flex; align-items:center; gap:8px; margin-left:auto; }
/* One-line row: the name on the left; the facts in grey, then the state in color, on the right. */
.row.line { padding-top:10px; padding-bottom:10px; min-height:48px; box-sizing:border-box; }
.row.line .title { font:600 15px/22px var(--font); }
.row.line .row-end { flex:0 1 auto; min-width:0; max-width:65%; gap:12px; }
.row.line .facts { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:var(--caption); color:var(--grey-600); }
.row.line .row-end em { flex:none; font:600 14px/20px var(--font); font-style:normal; }
/* A one-line row whose title is a link opens it from anywhere on the row. */
.row.line .title a { color:inherit; text-decoration:none; }
.row.line .title a::after { content:''; position:absolute; inset:0; }
.row.line:has(.title a):hover { background:var(--grey-50); }
.row-end .value { margin-left:0; }

/* List row: the title can be the row's link; it reads as the title, the whole row is the target */
.row .title a, .row .title a:visited { color:inherit; text-decoration:none; }
.row .title a:focus-visible { outline-offset:4px; border-radius:4px; }

/* List row loading: skeleton in the row's shape */
.row .lead.sk { background-color:transparent; }
.row .sk-title { width:40%; height:14px; margin:4px 0 8px; }
.row .sk-desc { width:64%; height:12px; }

/* List: empty state inside a list, and the error line above it with Try again */
.list > .list-empty, .state-block.compact { padding:20px 24px 28px; }
.list-feedback { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:4px 24px 8px; padding:10px 12px 10px 16px; border-radius:12px; background:var(--grey-100); font:var(--caption); color:var(--grey-700); }
.list.list-top { padding-top:8px; }

/* Callout with an action on the right */
.callout { align-items:flex-start; }
.callout > .ic { margin-top:1px; color:var(--grey-500); }
.callout.info > .ic { color:var(--navy-500); }
.callout > .grow, .grow { flex:1; min-width:0; }
.callout > .btn { align-self:center; }

/* Side navigation: a count at the end of an item */
.side-nav a .value.muted { font-weight:500; color:var(--grey-500); }

/* Document preview in a dialog: the server's rendered pages in a frame */
.preview-frame { height:min(62vh,560px); border-radius:12px; overflow:hidden; background:var(--grey-50); box-shadow:inset 0 0 0 1px var(--grey-200); }
.preview-frame iframe { display:block; width:100%; height:100%; border:0; }
.sheet.wide .preview-frame + .pair { margin-top:20px; }

/* Dialog text helpers */
.sheet .lead2.tight, .lead2.tight { margin:0; font:600 15px/22px var(--font); color:var(--grey-900); }
p.hint { margin:0; font:var(--caption); color:var(--grey-500); }
.radio-row .grow b { display:block; color:var(--grey-900); }
/* Role choice (sign-in and sign-up): radio rows as links that open the role's form. */
.role-choice { display:grid; gap:12px; }
a.radio-row { color:inherit; text-decoration:none; }
a.radio-row:hover, a.radio-row:focus-visible { box-shadow:inset 0 0 0 2px var(--navy-500); outline:none; }
.radio-row .go { flex:none; font:600 14px/20px var(--font); color:var(--navy-500); white-space:nowrap; }
.radio-row .go::after { content:" \2192"; }
.auth-prompt { margin:0; font:500 14px/20px var(--font); color:var(--grey-600); }
.auth-prompt a { color:var(--navy-500); font-weight:600; text-decoration:none; }

/* Text field: helper line below a group, and a code input */

/* Title area: a title block and a control wrap on narrow screens */
.hero { flex-wrap:wrap; }
.hero > div { min-width:0; }
.tabs { overflow-x:auto; scrollbar-width:none; }
.tab { flex:none; }

/* Phones: 20 px side padding, stacked field pairs */
@media (max-width:600px) {
  .page.wide { padding:20px 20px 48px; }
  .hero h1 { font-size:26px; line-height:35px; }
  .two-f { grid-template-columns:1fr; gap:16px; }
  .app .row { padding:10px 20px; }
  .ph { padding:16px 20px 8px; }
  .kv { padding:0 20px 8px; }
  .thumbs { grid-template-columns:repeat(2,minmax(0,1fr)); padding:8px 20px 20px; }
}

/* Panel: padded form area and a caption note under a key-value list */
.panel-body { padding:4px 24px 8px; }
.panel-note { margin:0; padding:0 24px 16px; font:var(--caption); color:var(--grey-500); }
/* Text someone wrote (a contact message): body size, line breaks kept. */
.panel-text { margin:0; padding:0 24px 20px; font:var(--body); color:var(--grey-800); white-space:pre-wrap; overflow-wrap:anywhere; }
.panel:has(> .session-deadlines[hidden]) { display:none; }
/* Main action block that sits inside another one (Start meeting after the checks pass) */
.cta-block.flush { padding:0; }

/* Text buttons under the right column (Withdraw, Cancel session): quiet, left-aligned */
.text-actions { display:grid; justify-items:start; gap:0; }
.text-actions .btn.ghost { padding:0 8px; }
.text-actions:empty { display:none; }

/* Step marker: amber when something needs review, red when it failed; icons inside */
.marker .ic.s { width:14px; height:14px; }
.marker.warn { background:var(--amber-50); color:var(--amber-600); }
.marker.bad { background:var(--red-50); color:var(--red-500); }
.signer-checks .day-head:first-child { padding-top:4px; }

/* Form panels: a section title inside a padded panel, and the form's main action at its end */
.form-title { margin:0 0 16px; font:700 17px/25px var(--font); color:var(--grey-900); }
.form-actions { justify-self:end; width:100%; max-width:440px; }
.stack.tight { gap:8px; }
.stack.tight p { margin:0; }

/* Agreement check: a checkbox with its text, as in the custodian notice and the account attestations */
.check-row { display:flex; align-items:flex-start; gap:10px; font:var(--body); color:var(--grey-800); cursor:pointer; }
.check-row input[type="checkbox"] { flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--navy-500); cursor:pointer; }

/* File field and image field (shared/file-field.js): one list row per upload. The asset (a document
   or key icon, or the picture itself), the name and one state line, and one button on the right.
   The whole row takes a dropped file (.over). Grey text, and red only for an error. */
.file-row { display:flex; align-items:center; gap:16px; padding:12px 0; border-radius:12px; transition:background .15s var(--ease), box-shadow .15s var(--ease); }
.file-row.over { background:var(--navy-50); box-shadow:0 0 0 8px var(--navy-50); }
.file-row .asset { position:relative; flex:none; display:grid; place-items:center; width:48px; height:48px; border-radius:12px; background:var(--grey-100); color:var(--navy-500); }
.file-row .asset img { width:100%; height:100%; border-radius:inherit; object-fit:cover; }
.file-row.image .asset { width:64px; height:64px; color:var(--grey-500); }
.file-row.image.round .asset { border-radius:50%; }
.file-row .asset .acc { position:absolute; right:-4px; bottom:-4px; width:20px; height:20px; border-radius:50%; display:grid; place-items:center; background:#fff; }
.file-row .asset .acc i { display:grid; place-items:center; width:16px; height:16px; border-radius:50%; color:#fff; }
.file-row .asset .acc.ok i { background:var(--green-500); }
.file-row .asset .acc.bad i { background:var(--red-500); }
.file-row .texts { flex:1; min-width:0; display:grid; gap:2px; }
.file-row .texts b { font:600 16px/24px var(--font); color:var(--grey-900); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-row .texts b a { color:inherit; text-decoration:none; }
.file-row .texts b a:hover { text-decoration:underline; }
.file-row .texts span { font:var(--caption); color:var(--grey-600); }
.file-row[data-state="error"] .texts span { color:var(--red-500); }
.file-row .texts .progress { margin-top:6px; }
.file-row .right { flex:none; display:flex; gap:8px; align-items:center; }
.file-rows > .file-row + .file-row { border-top:1px solid var(--grey-100); }
/* Wide image field (the seal): a full-width preview shows the whole image, the row under it. */
.image-wide { display:grid; gap:4px; }
.image-wide .preview { display:grid; place-items:center; height:140px; padding:8px; border-radius:16px; background:var(--grey-50); box-shadow:inset 0 0 0 1.5px var(--grey-200); color:var(--grey-500); font:var(--caption); }
.image-wide .preview img { max-width:100%; max-height:124px; object-fit:contain; }
.image-wide[data-state="error"] .preview { box-shadow:inset 0 0 0 2px var(--red-500); }
.image-wide .file-row { padding:8px 0 0; }
/* Affirmation after a seal or digital certificate pick: the tick, then the legal sentence. */
.affirm { display:grid; gap:6px; margin-top:8px; }
.affirm label { display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:12px; background:var(--navy-50); font:600 15px/22px var(--font); color:var(--navy-700); cursor:pointer; }
.affirm label input { flex:none; width:20px; height:20px; margin:0; accent-color:var(--navy-500); cursor:pointer; }
.affirm p { margin:0; font:var(--caption); color:var(--grey-600); }
.preview-frame.tall { height:min(80vh,820px); }

/* Long guide text in a panel */
.guide-text p, .guide-text ol { margin:0 0 12px; font:var(--body); color:var(--grey-700); }
.guide-text ol { padding-left:20px; }
.guide-text p:last-child { margin-bottom:0; }

/* Title area with two controls (a segmented control and a weak button) */
.hero-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

/* Bar chart panel: room under the month labels */
.panel.chart-panel { padding-bottom:20px; }
.stack > p.hint { padding:0 8px; }

/* Save as PDF: print only the page body */
@media print {
  .app-header, .strip, .site-foot, .hero-actions, #payoutAction { display:none !important; }
  .app { background:#fff; }
  .cols2 { grid-template-columns:1fr 1fr; }
  .sticky { position:static; }
}

/* Account dialogs: field errors stay hidden until validation shows them (account.js) */
.invalid-feedback, .invalid-file-tooltip { display:none; }
.invalid-feedback.show { display:block; font:var(--caption); color:var(--red-500); }
.field .is-invalid:not(.code) { box-shadow:0 0 0 2px var(--red-500); }
.field-label { margin-bottom:6px; font:var(--caption); color:var(--grey-600); }
.lead2.flush, .sheet .lead2.flush { margin:0; }


/* Setting rows: a long value (an address) wraps instead of cutting off */
.value.wrap { white-space:normal; max-width:60%; }
.row .desc.wrap { white-space:normal; }
.person .grow b { overflow-wrap:anywhere; }

/* Setup checklist: the progress bar inside the panel */
.progress.setup-progress { margin:4px 24px 8px; }
.panel-note.error { color:var(--red-500); }

/* Key-value list: long values wrap inside a narrow column instead of widening it */
.kv div > dt { flex:none; max-width:45%; }
.kv div > dd { min-width:0; overflow-wrap:anywhere; }
.value em { font-style:normal; font-weight:600; }
.sheet.form .two-f + .field, .sheet.form .field + .two-f { margin-top:16px; }
/* Dialog: an error line that is not inside a .field (file errors) */
.sheet .err { margin:0 0 8px; font:var(--caption); color:var(--red-500); }
.stack > .btn { justify-self:start; }
/* Stacked dialog form: the grid gap spaces the fields; the action pair follows closely */
.sheet.form .stack-form .two-f, .sheet.form .stack-form .field + .field, .sheet.form .stack-form .two-f + .field { margin-top:0; }
.stack-form + .pair { margin-top:4px; }
/* Two field groups in one dialog (certificate, then seal) keep the field gap between them. */
.sheet.form .stack + .stack { margin-top:16px; }
.stack-form .field > .hint:only-child { margin-top:-8px; }
@media (max-width:600px) { [data-account-nav] { display:none; } }


/* ══ Public website: content pages on white, bordered cards (mockup: Website pages) ══ */
.app-header.site { position:sticky; top:0; }
.app-header.site .wordmark { cursor:pointer; }
.site-page { max-width:1328px; margin:0 auto; padding:0 24px 80px; }
.site-hero { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:48px; align-items:center; padding:72px 0 64px; }
.site-hero.narrow { grid-template-columns:minmax(0,760px); }
.site-hero.center { justify-content:center; text-align:center; }
.site-hero h1 { margin:0; font:700 48px/60px var(--font); letter-spacing:-.03em; color:var(--grey-900); }
.site-hero p { margin:16px 0 0; font:400 19px/30px var(--font); color:var(--grey-600); }
.site-hero .eyebrow, .doc .eyebrow { margin:0 0 10px; font:600 15px/22px var(--font); color:var(--navy-500); }
.hero-actions { display:flex; gap:12px; margin-top:32px; }
.site-hero.center .hero-actions { justify-content:center; }
.hero-card { border-radius:24px; background:#fff; box-shadow:0 12px 40px rgba(16,24,40,.12), 0 0 0 1px var(--grey-200); overflow:hidden; }
.site-sec { padding:40px 0; border-top:1px solid var(--grey-100); }
.sec-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.sec-head h2 { margin:0; font:700 30px/40px var(--font); letter-spacing:-.02em; }
.sec-head p { margin:6px 0 0; font:var(--body); color:var(--grey-600); }
.steps4 { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.step-card, .feature, .price-card, .aside-card { border-radius:16px; box-shadow:inset 0 0 0 1px var(--grey-200); background:#fff; }
.step-card { display:grid; gap:8px; align-content:start; padding:24px; }
.step-card .marker { margin-bottom:8px; }
.step-card b, .feature b { font:600 17px/25px var(--font); color:var(--grey-900); }
.step-card p, .feature p { margin:0; font:var(--body); color:var(--grey-600); }
.features { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature { display:grid; gap:8px; align-content:start; padding:24px; }
.feature .fi { display:grid; place-items:center; width:44px; height:44px; margin-bottom:8px; border-radius:12px; background:var(--navy-50); color:var(--navy-500); }
.state-list { display:flex; flex-wrap:wrap; gap:8px; }
.state-list span { display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:10px; background:var(--grey-100); font:500 14px/1 var(--font); color:var(--grey-800); }
.site-cta { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:40px; padding:40px 48px; border-radius:24px; background:var(--navy-50); }
.site-cta h2 { margin:0; font:700 30px/40px var(--font); letter-spacing:-.02em; color:var(--navy-700); }
.site-cta p { margin:6px 0 0; font:var(--body); color:var(--navy-700); }
.board { border-bottom:1px solid var(--grey-200); }
.board summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 4px; font:600 17px/25px var(--font); color:var(--grey-900); cursor:pointer; list-style:none; }
.board summary::-webkit-details-marker { display:none; }
.board summary svg { flex:none; color:var(--grey-500); transition:transform .2s var(--ease); }
.board[open] summary svg { transform:rotate(180deg); }
.board > div { padding:0 4px 20px; font:var(--body); color:var(--grey-700); max-width:760px; }
.faq { max-width:880px; margin:0 auto; }
.aside-card { padding:8px 0; }
.aside-card h3 { margin:0; padding:16px 24px 4px; font:700 17px/25px var(--font); }
.one-time { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 32px; border-radius:16px; box-shadow:inset 0 0 0 1px var(--grey-200); }
.one-time b { font:700 22px/31px var(--font); } .one-time p { margin:4px 0 0; font:var(--body); color:var(--grey-600); }
.prices { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.price-card { display:grid; gap:12px; align-content:start; padding:24px; }
.price-card > b { font:700 19px/27px var(--font); } .pc-sub { font:var(--caption); color:var(--grey-600); margin-top:-8px; }
.pc-price { font:700 34px/44px var(--font); letter-spacing:-.02em; } .pc-price small { font:500 15px/1 var(--font); color:var(--grey-600); }
.price-card ul { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:10px; font:var(--body); color:var(--grey-700); }
.price-card li { display:flex; gap:8px; align-items:center; } .price-card li svg { color:var(--green-500); }
.fine { margin:16px 0 0; font:var(--caption); color:var(--grey-500); }
.doc-page { display:grid; grid-template-columns:280px minmax(0,760px); gap:56px; padding-top:48px; }
.doc-toc { position:sticky; top:88px; align-self:start; display:grid; gap:12px; }
.doc-toc .side-nav { padding:0; } .doc-toc .side-nav a { height:auto; min-height:40px; padding:9px 14px; line-height:22px; }
.search-field { display:flex; align-items:center; gap:10px; height:48px; padding:0 16px; border-radius:12px; background:var(--grey-100); color:var(--grey-500); }
.search-field input { flex:1; border:0; background:none; font:400 16px/1 var(--font); outline:none; color:var(--grey-900); }
.search-field.big { height:56px; max-width:560px; margin:28px auto 0; }
.doc h1 { margin:0; font:700 36px/48px var(--font); letter-spacing:-.02em; }
.doc .lead-doc { margin:12px 0 0; font:400 19px/30px var(--font); color:var(--grey-600); }
.doc .updated { margin:8px 0 0; font:var(--caption); color:var(--grey-500); }
.doc h2 { margin:40px 0 12px; font:700 22px/31px var(--font); }
.doc p, .doc li { font:400 16px/27px var(--font); color:var(--grey-800); }
.doc ul, .doc ol { padding-left:22px; } .doc li + li { margin-top:6px; }
.doc .callout { margin:24px 0; }
@media (max-width:979px) { .site-hero, .steps4, .features, .prices, .doc-page { grid-template-columns:1fr; } .doc-toc { position:static; } .site-hero h1 { font-size:36px; line-height:46px; } }

/* Containers that receive focus from script (to announce a new state) do not show the focus ring. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline:none; }

/* Row descriptions wrap to two lines instead of hiding facts; titles stay on one line. */
.row .desc { white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
/* A button in a person row keeps its width; on phones the row wraps under the name. */
.person .btn { flex:none; }
@media (max-width:600px) { .person { flex-wrap:wrap; } .person > .btn { margin-left:0 !important; } }


/* ══ Components added with the public website ══ */
/* Skip link: hidden until it has keyboard focus. */
.skip-link { position:absolute; left:-9999px; top:8px; z-index:40; padding:10px 14px; border-radius:8px; background:#fff; font:600 14px/20px var(--font); box-shadow:var(--shadow-float); }
.skip-link:focus { left:16px; }

/* Board rows that hold a heading (FAQ questions) or lists (state requirements). */
.board summary h3 { margin:0; font:inherit; color:inherit; }
.board > div > :first-child { margin-top:0; }
.board > div > :last-child { margin-bottom:0; }
.board > div ul { margin:0; padding-left:22px; display:grid; gap:8px; }
.board > div ul ul { margin-top:8px; }
.site-sec .sec-head + .board, .faq .board + .sec-head { margin-top:0; }
.faq .board + .sec-head { padding-top:40px; }
p.flush { margin:0; }

/* Search field: the hidden attribute wins over its flex layout; a larger field in a hero. */
.search-field[hidden] { display:none; }
.search-field input::-webkit-search-cancel-button { cursor:pointer; }
.search-field:focus-within { box-shadow:0 0 0 2px var(--navy-500); background:#fff; }
.site-hero .search-field { height:56px; max-width:560px; margin:28px auto 0; }

/* Help search results: list rows that link to a topic. */
.help-results { align-self:start; }
.site-page > .help-results { max-width:880px; margin:0 auto; padding-top:24px; }
.help-results > .fine { margin:0 0 8px; }
.help-results li + li { border-top:1px solid var(--grey-200); }
.help-results a.row { padding:14px 8px; color:inherit; text-decoration:none; border-radius:12px; }

/* Long documents: room under the sticky header for anchors; definition lists, notes and links. */
.doc section[id], .board[id] { scroll-margin-top:88px; }
.doc a { color:var(--navy-500); }
/* A legal document inside a dialog (agreement review): the text only, in a scroll box, smaller type. */
.agreement-doc { height:min(60vh,560px); overflow:auto; padding:20px 24px; border-radius:12px; background:var(--grey-50); box-shadow:inset 0 0 0 1px var(--grey-200); overscroll-behavior:contain; }
/* The dialog title already names the document. */
.agreement-doc .doc h1 { display:none; }
.agreement-doc .doc h2 { margin:28px 0 8px; font:700 17px/25px var(--font); }
.agreement-doc .doc p, .agreement-doc .doc li { font:400 15px/24px var(--font); }
.agreement-doc .doc > h1 + *, .agreement-doc .doc > h1 + * > :first-child { margin-top:0; }
.agreement-doc:focus-visible { outline:2px solid var(--navy-500); outline-offset:2px; }
/* Phones: one inset, not two, so the document text uses the width. */
@media (max-width:600px) { .agreement-modal .modal-dialog { width:calc(100% - 16px); } .agreement-modal .modal-content { padding:20px 16px 16px; } .agreement-modal .modal-content > .pair { margin:16px -16px -16px; padding:16px; } .agreement-doc { padding:16px 14px; } }
.doc dl { margin:16px 0 0; }
.doc dt { margin-top:16px; font:600 16px/24px var(--font); color:var(--grey-900); }
.doc dd { margin:4px 0 0; font:400 16px/27px var(--font); color:var(--grey-800); }
.doc .guide-note { padding:16px 20px; border-radius:16px; background:var(--navy-50); color:var(--navy-700); }
.doc > .eyebrow + h1 { margin-top:0; }
.site-sec > .doc { max-width:760px; }
.site-sec > .doc > h2:first-child, .cols2 > .doc > h2:first-child { margin-top:0; }

/* Language switcher in the navy footer bar. */
.site-foot .bottom .inner { align-items:center; }
.site-foot .language-switcher { margin-left:0; color:rgba(255,255,255,.72); font:var(--caption); }
.site-foot .language-switcher select { background-color:rgba(255,255,255,.12); color:#fff; }
.site-foot .language-switcher option { color:var(--grey-900); }

/* Phones: stacked hero and call-to-action buttons, one-column footer, compact header buttons. */
@media (max-width:768px) {
  .site-page { padding:0 20px 56px; }
  .site-hero { padding:40px 0 32px; gap:32px; }
  .site-hero h1 { font-size:32px; line-height:42px; }
  .site-hero p { font-size:17px; line-height:27px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .sec-head { flex-direction:column; align-items:flex-start; gap:12px; }
  .sec-head h2, .site-cta h2 { font-size:24px; line-height:32px; }
  .site-cta, .one-time { flex-direction:column; align-items:stretch; padding:28px 24px; }
  .doc-page { padding-top:24px; gap:24px; }
  .doc h1 { font-size:28px; line-height:38px; }
  .site-foot .inner { grid-template-columns:1fr 1fr; }
  .site-foot .inner > :first-child { grid-column:1 / -1; }
  .site-foot .bottom .inner { flex-wrap:wrap; gap:12px; }
  .app-header.site .account .btn.m { height:36px; padding:0 12px; font-size:14px; }
  .app-header.site .app-nav { gap:20px; }
  .app-header.site .app-nav a { white-space:nowrap; }
}

/* Content pages sit on white (the portals use grey-50 behind panels). */
body.site .app { background:#fff; }
/* Prose after a card grid in the same section. */
.steps4 + .doc, .features + .doc { margin-top:32px; }
/* Inside the .app flex column, auto margins stop pages from stretching: keep the full width. */
.app > .site-page { width:100%; box-sizing:border-box; }

/* Flow steps pack to the top; a taller side panel must not stretch the gaps between them. */
.flow > .flow-main { align-content:start; }


/* ══ Home page (www /): photo hero, scroll-synced steps, RON map, photo feature cards ══ */
/* A light button for dark photo backgrounds. */
.btn.light { background:#fff; color:var(--navy-500); }
.home { display:block; width:100%; }
.home-inner { max-width:1328px; margin:0 auto; padding:0 24px; }
.home-note { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 24px; background:var(--navy-500); color:#fff; font:600 14px/20px var(--font); text-align:center; }
.home-note .ic { flex:none; }

.home-hero { position:relative; display:flex; align-items:center; height:calc(85vh - 108px); min-height:480px; max-height:800px; overflow:hidden; color:#fff; }
.home-hero::before { content:''; position:absolute; inset:-12px; background:url('/assets/images/main-img-03-enhanced.jpg') center / cover no-repeat; filter:blur(2px); }
.home-hero::after { content:''; position:absolute; inset:0; background:linear-gradient(112deg, rgba(0,0,0,.6) -22.54%, rgba(0,0,0,0) 71.67%); }
.home-hero .home-inner { position:relative; z-index:1; width:100%; }
.home-hero-title { display:inline-flex; align-items:baseline; min-height:70px; margin:0 0 12px; font:800 64px/1.1 var(--font); letter-spacing:-.04em; }
.hero-text-small { font-size:.5em; font-weight:400; margin-right:.3em; letter-spacing:0; }
.hero-text-small:empty { display:none; }
.typing-cursor { display:inline-block; width:3px; height:56px; margin-left:2px; background:#fff; animation:cursor-blink 1s step-end infinite; }
@keyframes cursor-blink { 50% { opacity:0; } }
.home-hero h1 { margin:0 0 40px; font:300 22px/1.5 var(--font); color:rgba(255,255,255,.9); }
.home-hero-text { max-width:560px; margin:0 0 40px; font:400 16px/1.7 var(--font); color:rgba(255,255,255,.7); }
.home-hero .btn .ic { margin-right:-6px; }
.home-scroll { position:absolute; left:50%; bottom:28px; z-index:1; transform:translateX(-50%); }
.home-scroll span { display:block; width:20px; height:20px; border-right:2px solid rgba(255,255,255,.6); border-bottom:2px solid rgba(255,255,255,.6); transform:rotate(45deg); animation:home-bounce 2s var(--ease) infinite; }
@keyframes home-bounce { 0%, 100% { translate:0 0; } 50% { translate:0 8px; } }
@media (prefers-reduced-motion:reduce) { .typing-cursor, .home-scroll span { animation:none; } }

.home-sec { padding:80px 0; }
.home-sec#how-it-works { padding-top:120px; }
.home-sec[id] { scroll-margin-top:64px; }
.home-title { display:grid; justify-items:center; gap:8px; margin-bottom:48px; text-align:center; }
.home-title h2 { margin:0; font:700 48px/1.2 var(--font); letter-spacing:-.02em; color:var(--grey-900); }
.home-title p { margin:0; font:500 16px/1.5 var(--font); color:var(--grey-600); }
.home-tabs { display:flex; justify-content:center; margin:-8px 0 40px; }
.home-tabs .seg button { height:40px; padding:0 24px; font-size:15px; }

.home-steps { display:flex; align-items:flex-start; overflow:clip; }
.home-steps[hidden] { display:none; }
.home-steps-list { flex:none; width:41.5%; padding-right:32px; }
.home-step { display:flex; flex-direction:column; justify-content:center; min-height:44vh; padding:30px 0; opacity:.25; transition:opacity .4s var(--ease); }
.home-step.active { opacity:1; }
.home-step-no { margin-bottom:4px; font:700 32px/1.2 var(--font); letter-spacing:.06em; color:var(--navy-500); }
.home-step h3 { margin:0 0 16px; font:700 32px/1.2 var(--font); letter-spacing:-.02em; color:var(--grey-900); }
.home-checks { display:grid; gap:4px; max-width:440px; margin:0; padding:0; list-style:none; }
.home-checks li { display:flex; align-items:center; gap:10px; padding:4px 0; font:400 16px/1.6 var(--font); color:var(--grey-600); }
.home-checks li .ic { flex:none; color:var(--navy-500); }
.home-steps-visual { flex:none; width:58.5%; position:sticky; top:calc(50vh + 32px); transform:translateY(-50%); margin-top:calc(21.9375% - 10px); margin-bottom:calc(-21.9375% + 10px); }
.home-frame { position:relative; aspect-ratio:4 / 3; border-radius:16px; overflow:hidden; background:#fff; }
.home-frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity .5s var(--ease); }
.home-frame img.active { opacity:1; }

.ron-map-container { display:flex; flex-direction:column; align-items:center; }
.ron-map-svg { width:100%; max-width:900px; }
.ron-map-svg svg { width:100%; height:auto; }
.ron-map-svg svg path { stroke:#fff; stroke-width:1; cursor:pointer; transition:opacity .25s var(--ease); }
.ron-map-svg svg path:hover { opacity:.75; }
.ron-map-legend { display:flex; gap:28px; margin-top:28px; font:var(--caption); color:var(--grey-600); }
.ron-map-legend > span { display:flex; align-items:center; gap:8px; }
.legend-dot { width:12px; height:12px; border-radius:50%; }
.legend-supported { background:var(--navy-500); }
.legend-unsupported { background:var(--grey-200); }
.ron-tooltip { position:fixed; z-index:30; max-width:280px; padding:12px 16px; border-radius:12px; background:var(--grey-900); color:#fff; font:400 14px/1.4 var(--font); pointer-events:none; box-shadow:var(--shadow-float); }
.ron-tooltip .tooltip-state { margin-bottom:6px; font-weight:600; font-size:15px; }
.ron-tooltip .tooltip-badge { display:inline-block; padding:2px 8px; border-radius:6px; font:600 12px/18px var(--font); }
.ron-tooltip .tooltip-badge.supported { background:var(--navy-500); }
.ron-tooltip .tooltip-badge.unsupported { background:var(--grey-600); }

.home-features { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; }
.home-feature { position:relative; display:flex; flex-direction:column; justify-content:flex-end; gap:8px; height:280px; padding:28px 24px; border-radius:16px; overflow:hidden; background:center / cover no-repeat var(--grey-800); color:#fff; transition:transform .25s var(--ease); }
.home-feature::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 100%); }
.home-feature > * { position:relative; }
.home-feature:hover { transform:translateY(-2px); }
.home-feature h3 { margin:4px 0 0; font:600 18px/1.3 var(--font); }
.home-feature p { margin:0; font:400 14px/1.6 var(--font); color:rgba(255,255,255,.85); }

.home-prices { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:900px; margin:0 auto; }
.home-price { display:flex; flex-direction:column; gap:24px; padding:32px 24px; border-radius:16px; background:#fff; box-shadow:inset 0 0 0 1px var(--grey-200); }
.home-price.featured { box-shadow:inset 0 0 0 2px var(--navy-500); }
.home-price-head { display:grid; gap:4px; padding-bottom:24px; border-bottom:1px solid var(--grey-200); }
.home-price-head b { margin-bottom:4px; font:600 20px/1.3 var(--font); color:var(--grey-900); }
.home-price-amount { font:700 40px/1.1 var(--font); letter-spacing:-.02em; color:var(--grey-900); }
.home-price-unit { font:var(--caption); color:var(--grey-600); }
.home-price .home-checks { flex:1; }
.home-price .home-checks li { font-size:14px; color:var(--grey-800); }
.home-sec .faq { max-width:800px; }
.home-more { margin:32px 0 0; text-align:center; }
.home-more a { display:inline-flex; align-items:center; gap:4px; font:600 16px/1 var(--font); color:var(--navy-500); text-decoration:none; }

@media (max-width:1024px) {
  .home-features { grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px; }
  .home-feature { height:240px; }
}
@media (max-width:768px) {
  .home-inner { padding:0 20px; }
  .home-note { align-items:flex-start; font-size:12px; line-height:16px; }
  .home-hero { height:auto; min-height:360px; padding:48px 0 40px; }
  .home-hero-title { min-height:40px; font-size:36px; }
  .typing-cursor { width:2px; height:32px; }
  .home-hero h1 { margin-bottom:24px; font-size:18px; line-height:1.3; }
  .home-hero-text { margin-bottom:24px; font-size:14px; line-height:1.5; }
  .home-hero-text br { display:none; }
  .home-scroll { display:none; }
  .home-sec, .home-sec#how-it-works { padding:40px 0; }
  .home-title { margin-bottom:28px; }
  .home-title h2 { font-size:28px; }
  .home-title p { font-size:14px; }
  .home-tabs { margin-bottom:16px; }
  .home-steps { flex-direction:column; }
  .home-steps-list { width:100%; padding-right:0; }
  .home-steps-visual { display:none; }
  .home-step { min-height:auto; padding:24px 0; border-bottom:1px solid var(--grey-200); opacity:1; }
  .home-step:last-child { border-bottom:0; }
  .home-step-no, .home-step h3 { font-size:20px; }
  .home-checks li { font-size:14px; }
  .ron-map-legend { flex-wrap:wrap; justify-content:center; gap:16px; }
  .home-features, .home-prices { grid-template-columns:1fr; gap:16px; }
  .home-feature { height:220px; }
  .home-price-amount { font-size:32px; }
}

/* ══ Profile menu: the navy profile button and the navy-tinted card (from the original header) ══ */
.profile > button { height:40px; padding:0 14px 0 4px; border-radius:20px; background:var(--navy-500); color:#fff; }
.profile > button:hover, .profile > button[aria-expanded="true"] { background:var(--navy-700); }
.profile > button .avatar { width:32px; height:32px; background:rgba(255,255,255,.18); color:#fff; }
.profile > button[aria-expanded="true"] > .ic { transform:rotate(180deg); }
.profile > button > .ic { transition:transform .2s var(--ease); }
.profile .menu { width:320px; padding:0; border-radius:12px; overflow:hidden; box-shadow:0 8px 30px rgba(70,81,148,.14), 0 0 0 1px var(--grey-200); }
.profile .menu .person { flex-direction:row-reverse; justify-content:space-between; padding:20px 20px 16px; }
.profile .menu .person b { font:700 18px/26px var(--font); color:var(--navy-500); }
.profile .menu .person .avatar { box-shadow:0 0 0 2px var(--navy-50); background:var(--navy-50); color:var(--navy-500); }
.profile .menu .tiles { padding:0 20px 16px; }
.profile .menu .tiles a { background:var(--navy-50); color:var(--navy-500); }
.profile .menu .tiles a:hover { background:var(--navy-100, #dfe2f1); }
.profile .menu .items { padding:8px 0; border-top:1px solid var(--grey-200); }
.profile .menu .items > a, .profile .menu .items > div { height:auto; min-height:44px; padding:0 20px; border-radius:0; color:var(--navy-500); font:500 14px/1 var(--font); }
.profile .menu .items > a:hover { background:var(--navy-50); }
.profile .menu .items svg { color:var(--navy-500); }
.profile .menu [data-language-slot] .language-switcher { color:var(--navy-500); }
.menu [data-language-slot] .seg button { white-space:nowrap; }
.profile .menu hr { margin:0; }
.profile .menu .signout { display:flex; width:calc(100% - 40px); margin:12px 20px 20px; height:40px; border-radius:8px; font-size:14px; }
@media (max-width:600px) {
  .profile > button { padding:0 8px 0 4px; }
  .profile .menu { width:auto; }
}

/* An instant offer has a short countdown, so it shows above any open dialog. */
.overlay.offer-screen { z-index:1060; }

/* The deadline line under a session title: text, then a red countdown with a clock. */
.deadline-sub { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.deadline-sub[hidden] { display:none; }
.deadline-timer { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:6px; background:var(--red-50); color:var(--red-500); font:700 13px/20px var(--font); font-variant-numeric:tabular-nums; }
.deadline-timer .ic { width:14px; height:14px; }
/* In the waiting room the page title is hidden, so the panel carries the deadline line. */
[data-meeting-deadline] .deadline-sub { justify-content:center; margin:8px 0 0; font:var(--body); color:var(--grey-600); }

/* Activity: a vertical timeline, newest first, grouped by day. A dashed "next" item sits on top. */
.activity { margin:0; padding:0 24px 8px; list-style:none; }
.activity .day-head { padding:12px 0 4px; }
.activity-item { position:relative; display:flex; align-items:flex-start; gap:12px; padding:8px 0 12px; }
.activity-item::before { content:''; position:absolute; left:15px; top:44px; bottom:-4px; width:2px; border-radius:1px; background:var(--grey-100); }
.activity-item:last-child::before, .activity-item.next::before { display:none; }
.activity-item .who { position:relative; flex:none; width:32px; height:32px; }
/* The kind badge sits below the initials' line, at the avatar's lower right, so it never covers a letter. */
.activity-item .who .kind { position:absolute; right:-8px; bottom:-6px; display:grid; place-items:center; width:16px; height:16px; border-radius:50%; background:var(--grey-600); color:#fff; box-shadow:0 0 0 2px #fff; }
.activity-item .who .kind .ic { width:10px; height:10px; }
.activity-item .who .kind.done { background:var(--green-500); }
.activity-item .who .kind.stop { background:var(--red-500); }
.activity-item .who .kind.act { background:var(--navy-500); }
.activity-item .main { flex:1; min-width:0; padding-top:5px; }
.activity-item .main p { margin:0; font:var(--body); color:var(--grey-800); overflow-wrap:anywhere; }
.activity-item .main time { font:var(--caption); color:var(--grey-500); }
.activity-item.next { margin:8px 0 4px; padding:12px; border:1px dashed var(--grey-300); border-radius:12px; }
.activity-item.next .who .avatar { background:var(--navy-50); color:var(--navy-500); }
.activity-item.next .main p { font-weight:600; }
.activity-item.next .deadline-timer { margin-left:6px; }
.activity-item.enter { animation:activity-in .32s ease-out; }
@keyframes activity-in { from { opacity:0; transform:translateY(-8px); } }
@media (prefers-reduced-motion:reduce) { .activity-item.enter { animation:none; } }
.activity + .list-foot { margin-bottom:12px; }

/* ══ Data parts (admin portal): table, standalone inputs, grid, pager, callout tones ══ */
/* Data table: grey header line, thin row lines, a light hover on rows that open something.
   Admin rows are one line: one fact per cell, nothing wraps or stacks; a long value ends in "…"
   and shows in full on hover (title). A wide table scrolls sideways inside its panel. */
.table-wrap { position:relative; overflow-x:auto; -webkit-overflow-scrolling:touch; }
/* Data table (admin lists): compact rows of one line, no header band. The first column is the
   row's name; when it is a link, the whole row opens it. State is colored text (.t-*). */
.table { width:100%; border-collapse:collapse; font:400 14px/20px var(--font); color:var(--grey-800); font-variant-numeric:tabular-nums; }
.table th { padding:4px 12px 10px; border-bottom:1px solid var(--grey-200); font:500 12px/16px var(--font); color:var(--grey-500); text-align:left; white-space:nowrap; }
.table td { padding:10px 12px; border-bottom:1px solid var(--grey-100); vertical-align:middle; white-space:nowrap; max-width:280px; overflow:hidden; text-overflow:ellipsis; }
.table th:first-child, .table td:first-child { padding-left:24px; }
.table th:last-child, .table td:last-child { padding-right:24px; }
.table td > * { vertical-align:middle; }
.table td .badge { display:inline-flex; }
.table td em { font-style:normal; font-weight:600; }
.table tbody tr:last-child td { border-bottom:0; }
.table tbody tr { position:relative; }
.table tbody tr[data-href], .table tbody tr.clickable-row, .table tbody tr:has(td:first-child > a), .table tbody tr:has(a.row-link) { cursor:pointer; }
.table tbody tr:hover td { background:var(--grey-50); }
.table td:first-child > a, .table td > a.row-link { color:var(--grey-900); font-weight:600; text-decoration:none; }
.table td:first-child > a::after, .table td > a.row-link::after { content:''; position:absolute; inset:0; }
/* Other links in a row stay clickable above the row link. */
.table td:not(:first-child) a:not(.row-link) { position:relative; z-index:1; color:var(--navy-500); text-decoration:none; }
.table td:not(:first-child) a:not(.row-link):hover { text-decoration:underline; }
.table .empty { padding:28px 24px; text-align:center; color:var(--grey-500); white-space:normal; }
/* A cell of small icons that stand for a kind (a session's type), with the words in its title. */
.table .type-icons { display:inline-flex; align-items:center; gap:6px; color:var(--grey-500); font:500 13px/1 var(--font); }
.table .type-icons .instant { color:var(--amber-600); }
.table .type-icons .invite { color:var(--navy-500); }
/* Cells holding an email or another person's link stay narrow; the full text is in the title. */
.table td:not(:first-child):has(> a[href*="/emails/"]) { max-width:180px; }
/* Free text that must be read whole (an event's details): it wraps and takes the remaining width. */
.table td.wrap { width:100%; max-width:none; min-width:240px; white-space:normal; overflow-wrap:anywhere; color:var(--grey-600); }
.table .end { text-align:right; }
.table .muted, .muted { color:var(--grey-600); }
/* An error stated in running text or a table cell (a failed job, an unreadable source). */
.error-text { color:var(--red-500); }
.table small, .small { font:var(--caption); }
/* A form control outside a .field: 40 px high, grey fill, navy focus ring. */
.input { width:100%; height:40px; padding:0 12px; border:0; border-radius:12px; background:var(--grey-100); font:400 15px/1 var(--font); color:var(--grey-900); outline:none; box-sizing:border-box; }
textarea.input { height:auto; min-height:96px; padding:10px 12px; line-height:22px; resize:vertical; }
select.input { padding-right:36px; appearance:none; background:var(--grey-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="%2369737f" stroke-width="1.8"><path d="M5 8l5 5 5-5"/></svg>') no-repeat right 10px center; cursor:pointer; }
.input:focus { box-shadow:0 0 0 2px var(--navy-500); background-color:#fff; }
.input.is-invalid { box-shadow:0 0 0 2px var(--red-500); }
.input-label { display:block; margin-bottom:6px; font:var(--caption); color:var(--grey-600); }
.hint { margin:6px 0 0; font:var(--caption); color:var(--grey-600); }
.input-group { display:flex; align-items:stretch; }
.input-group .input { border-radius:12px 0 0 12px; }
.input-addon { display:grid; place-items:center; padding:0 12px; border-radius:0 12px 12px 0; background:var(--grey-200); color:var(--grey-600); }
/* Grid: 12 columns from 980 px; spans 3, 4, 6, 8 and 12. Below 980 px two columns, below 600 px one. */
.grid { display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); gap:16px; }
.grid > * { grid-column:span 12; min-width:0; }
.grid > .span-3 { grid-column:span 3; } .grid > .span-4 { grid-column:span 4; } .grid > .span-6 { grid-column:span 6; } .grid > .span-8 { grid-column:span 8; }
@media (max-width:979px) { .grid > .span-3, .grid > .span-4 { grid-column:span 6; } .grid > .span-6, .grid > .span-8 { grid-column:span 12; } }
@media (max-width:600px) { .grid > .span-3, .grid > .span-4, .grid > .span-6, .grid > .span-8 { grid-column:span 12; } }
/* Pager under a table: "Page 1 of 3" and previous/next icon buttons. */
.pager { display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:12px 24px; font:var(--caption); color:var(--grey-600); }
.pager .btn-pair { display:inline-flex; gap:4px; }
/* Callout tones for results and warnings. */
.callout.good { background:var(--green-50); color:var(--green-500); }
.callout.warn { background:var(--amber-50); color:var(--amber-600); }
.callout.bad { background:var(--red-50); color:var(--red-500); }

/* ── Mobile (docs/design-system.md, "Mobile"). Phone rules use 600 px; tablet rules 980 px. ── */
/* The auth column never grows wider than the screen because of a long row. */
.auth-side { grid-template-columns:minmax(0,1fr); }
.person .grow span { overflow-wrap:anywhere; }
@media (max-width:600px) {
  /* One gutter: 16 px on every app page and the sign-in column. */
  .page, .page.wide, .flow { padding-left:16px; padding-right:16px; }
  .auth-side { padding:32px 16px; }
  .panel.pad { padding:20px 16px; }
  /* Panel content lines up with the panel title (20 px on phones). */
  .panel-body, .panel .cta-block { padding-left:20px; padding-right:20px; }
  /* The progress bar and "Step N of M" already show the steps; the step list would repeat them below the form. */
  .flow > .flow-side > .panel.summary { display:none; }
  /* Row titles wrap; descriptions show up to four lines instead of hiding words behind an ellipsis. */
  .row .title { white-space:normal; overflow-wrap:anywhere; }
  .row .desc, .summary .row .desc { white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; line-clamp:4; overflow-wrap:anywhere; }
  /* Two buttons side by side keep 12 px inside; a long label wraps and the button grows. */
  .pair .btn { height:auto; padding:8px 12px; white-space:normal; line-height:20px; text-align:center; }
  .pair .btn.l { min-height:48px; } .pair .btn.xl { min-height:56px; }
  /* Touch targets: at least 44 px tall for text links, 44 px wide for tabs. */
  .auth-help a, .auth-links a { display:inline-flex; align-items:center; min-height:44px; }
  .tab { min-width:44px; }
  /* A tab row wider than the phone scrolls; the fading edge shows there is more. */
  .tabs { padding-right:24px; -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent); }
  /* Segmented controls (also the small one in the profile menu) and the language select: 40 px touch targets; 16 px select text so iOS does not zoom. */
  .seg button, .seg.s button { height:40px; }
  .menu [data-language-slot] { height:auto; min-height:48px; }
  .language-switcher select { height:40px; font-size:16px; }
  /* File names wrap anywhere instead of ending in an ellipsis. */
  .file-row .texts b { white-space:normal; overflow-wrap:anywhere; }
  /* No box inside a box: the card form and key-value lists sit flat in a padded panel. */
  .panel .well.stripe-box { padding:0; background:none; box-shadow:none; }
  .panel.pad .kv { padding-left:0; padding-right:0; }
  /* Small icon buttons and section links get a 40 px touch target; text areas and unit fields use 16 px text. */
  .btn.s { min-width:40px; }
  .ph-right.link { min-height:44px; }
  .field textarea, .unit-input input, .input { font-size:16px; }
  /* A row's value (an amount over a date) may wrap, so it never squeezes the row text to a few letters per line. */
  .row > .row-end:has(> .value), .row > .value { flex:0 1 auto; min-width:0; max-width:40%; }
  .row > .value { max-width:50%; }
  .row .value { white-space:normal; overflow-wrap:anywhere; } .row > .row-end > .value { flex:0 1 auto; min-width:0; }
  /* The "Finish setup" link in a callout is a 40 px tall target. */
  .callout a[data-finish-setup] { display:inline-flex; align-items:center; min-height:40px; }
}
@media (max-width:400px) {
  /* The header stays one row: the session timer drops its icon. */
  .app-header .session-countdown > svg { display:none; }
  .app-header .session-countdown { padding:0 8px; }
  .app-header .account { gap:6px; }
  /* The public header cannot fit the logo and two buttons in one row: the buttons take a row of their own, apart from the logo. */
  .app-header.site .inner { row-gap:8px; padding-top:8px; }
}

/* QA banner: a signed-in account on the test route (ProviderRoute). A red bar on top and a red
   frame around the window, so a screen of a QA account is never mistaken for a real one. */
.qa-banner { position:sticky; top:0; z-index:1000; padding:6px 16px; background:var(--red-500); color:#fff;
  font:var(--caption); font-weight:600; text-align:center; }
.qa-frame { position:fixed; inset:0; z-index:999; pointer-events:none; box-shadow:inset 0 0 0 4px var(--red-500); }
/* Stacked session pages (signer and notary): the right column comes after the whole task column, so
   the red "Finish your setup" reminder would sit far down. Under the stack width the two columns
   become one list and the reminder goes first, under the title. Wide screens keep it on the right. */
@media (max-width:979px) {
  .split.rev:has(> * > [data-finish-setup-callout]) > * { display:contents !important; }
  .split.rev:has(> * > [data-finish-setup-callout]) > * > * { min-width:0; }
  .split.rev > * > [data-finish-setup-callout] { order:-1; }
}
/* Phones: the two-line banner scrolls away, so it does not cover the sticky header (the red frame stays). */
@media (max-width:600px) { .qa-banner { position:static; } }

/* Readiness (readiness-checklist.js): a check (done) or an x (not done), nothing else. */
.ready-mark { flex:none; display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; background:var(--green-500); color:#fff; }
.ready-mark.bad { background:var(--red-50); color:var(--red-500); }
.ready-mark.warn { background:var(--amber-50); color:var(--amber-600); }
.ready-mark.neutral { background:var(--grey-100); color:var(--grey-500); }
.ready-mark .ic.s { width:12px; height:12px; }
.side-nav a .ready-mark { margin-left:auto; }
/* Narrow screens hide the side menu: one line names what is missing. */
.ready-missing { display:none; margin:0; font:var(--caption); color:var(--grey-700); }
.ready-missing a { color:var(--navy-500); font-weight:600; text-decoration:none; }
@media (max-width:600px) { .ready-missing:not([hidden]) { display:block; } }
/* "Meeting room checklist" on the notary session page: signers, then the session items. */
.ready-group { list-style:none; margin:0; padding:0 24px 8px; }
.ready-head { padding:12px 24px 4px; font:var(--micro); letter-spacing:.04em; text-transform:uppercase; color:var(--grey-500); }
.ready-row { display:flex; flex-wrap:wrap; align-items:center; gap:4px 16px; min-height:44px; padding:6px 0; }
.ready-row + .ready-row { border-top:1px solid var(--grey-100); }
.ready-row .who { display:flex; align-items:center; gap:10px; flex:0 1 200px; min-width:0; font:600 14px/20px var(--font); color:var(--grey-900); }
.ready-row .who span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ready-row .label { flex:0 1 160px; font:600 14px/20px var(--font); color:var(--grey-900); display:flex; align-items:center; gap:8px; }
.ready-item { display:flex; align-items:center; gap:6px; font:500 14px/20px var(--font); color:var(--grey-900); }
/* A signer's three marks line up in columns across rows. */
.ready-row .who ~ .ready-item { flex:0 0 170px; }
.ready-value { font:var(--caption); color:var(--grey-600); }
.ready-row .link { color:var(--navy-500); font:600 13px/19px var(--font); text-decoration:none; background:none; border:0; padding:0; cursor:pointer; }
