/* Inkwell: a cool grey desk with white paper pages, ink-blue actions, yellow "sign here" flags. */
:root {
  --desk: #E9ECF2; --surface: #FFFFFF; --surface-2: #F4F6F9; --surface-3: #EDF0F5; --ink: #18202E; --muted: #5A6476; --faint: #8A93A3; --line: #D7DCE5; --line-2: #E6E9EF;
  --accent: #2945C2; --accent-ink: #FFFFFF; --accent-soft: #E3E8FB; --accent-text: #2238A6;
  --flag: #F4C330; --flag-ink: #3A2D00;
  --ok: #1D7F54; --ok-soft: #DDF2E7; --warn: #8F6200; --warn-soft: #FBF0CF; --danger: #B93A26; --danger-soft: #F9E1DC; --info: #1F6FB5; --info-soft: #E0EEFA;
  --paper: #FFFFFF; --paper-ink: #18202E; --paper-accent: #2945C2;
  --shadow: 0 1px 2px rgba(15,20,30,.08), 0 6px 20px rgba(15,20,30,.08);
  --ui: "Familjen Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --nav-w: 232px; --top-h: 58px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #0E1218; --surface: #171D27; --surface-2: #1C2330; --surface-3: #222A38; --ink: #E5E9F1; --muted: #9AA4B6; --faint: #6F7A8E; --line: #2A3342; --line-2: #232B39;
    --accent: #7F97FF; --accent-ink: #0D1430; --accent-soft: #232D4D; --accent-text: #A9B8FF;
    --flag: #F2C23A; --flag-ink: #2A2000;
    --ok: #4FC48D; --ok-soft: #173326; --warn: #E9B949; --warn-soft: #3A2E10; --danger: #F07C66; --danger-soft: #3D1F1A; --info: #6DB3F2; --info-soft: #172B3D;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --desk: #0E1218; --surface: #171D27; --surface-2: #1C2330; --surface-3: #222A38; --ink: #E5E9F1; --muted: #9AA4B6; --faint: #6F7A8E; --line: #2A3342; --line-2: #232B39;
    --accent: #7F97FF; --accent-ink: #0D1430; --accent-soft: #232D4D; --accent-text: #A9B8FF;
    --flag: #F2C23A; --flag-ink: #2A2000;
    --ok: #4FC48D; --ok-soft: #173326; --warn: #E9B949; --warn-soft: #3A2E10; --danger: #F07C66; --danger-soft: #3D1F1A; --info: #6DB3F2; --info-soft: #172B3D;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--desk); color: var(--ink); font-family: var(--ui); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); white-space: nowrap; line-height: 1.2; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.small { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.link { border: 0; background: none; padding: 4px 6px; color: var(--accent-text); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); position: relative; padding: 0; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.input, select.input { width: 100%; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); min-height: 36px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 84px; resize: vertical; }
.input.sm { min-height: 30px; padding: 5px 8px; font-size: 13px; }
.field-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-row > label, .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.help { font-size: 12px; color: var(--muted); margin: 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 34px; height: 20px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- chips & status ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; padding: 5px 8px; border-radius: 99px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; }
.chip.sent, .chip.waiting-others { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }
.chip.completed, .chip.signed { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.chip.declined, .chip.failed { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.chip.voided, .chip.expired, .chip.reassigned { color: var(--muted); background: var(--surface-3); border-color: transparent; }
.chip.viewed { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.chip.draft { color: var(--info); background: var(--info-soft); border-color: transparent; }
.chip.action { color: var(--flag-ink); background: var(--flag); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.hollow { background: transparent !important; border: 1.5px solid currentColor; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; display: inline-block; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.err { color: var(--danger); font-size: 13px; margin: 0; }
.banner { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--flag); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.banner.ok { border-left-color: var(--ok); } .banner.bad { border-left-color: var(--danger); } .banner.info { border-left-color: var(--info); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card.pad { padding: 18px; }
.eyebrow, .panel h3 { margin: 0 0 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.empty-state { padding: 52px 20px; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--ink); font-size: 18px; margin: 0 0 6px; }
.empty-state p { margin: 0 auto; max-width: 46ch; }
.loading { text-align: center; color: var(--muted); padding: 70px 16px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.nav { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; padding: 4px 8px 12px; }
.brand svg, .brand img { width: 24px; height: 24px; color: var(--accent); }
.brand img { width: auto; max-width: 140px; max-height: 28px; }
.nav .new { margin: 4px 0 12px; width: 100%; }
.nav a.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a.item svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.nav a.item:hover { background: var(--surface-3); }
.nav a.item.active { background: var(--accent-soft); color: var(--accent-text); }
.nav a.item.active svg { color: var(--accent-text); }
.nav a.item .count { margin-left: auto; font: 500 11px var(--mono); color: var(--muted); }
.nav a.item .count.hot { background: var(--flag); color: var(--flag-ink); padding: 2px 7px; border-radius: 99px; }
.nav .sep { height: 1px; background: var(--line-2); margin: 10px 4px; }
.nav .foot { margin-top: auto; font-size: 12px; color: var(--faint); padding: 10px 8px 0; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); height: var(--top-h); padding: 0 max(16px, env(safe-area-inset-right)) 0 20px; display: flex; align-items: center; gap: 12px; }
.topbar .menu-btn { display: none; }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-weight: 600; }
.topbar .crumbs .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.badge { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font: 600 10px/17px var(--ui); text-align: center; border: 2px solid var(--surface); box-sizing: content-box; }
.view { flex: 1; min-width: 0; }
.page { padding: 26px max(16px, env(safe-area-inset-right)) 80px max(16px, env(safe-area-inset-left)); max-width: 1120px; margin: 0 auto; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* popovers */
.pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 40; min-width: 220px; }
.menu-pop { padding: 6px; display: flex; flex-direction: column; }
.menu-pop button, .menu-pop a { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--surface-3); }
.menu-pop .sub { font-size: 12px; color: var(--muted); padding: 6px 10px; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
.notif-pop { width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 80px)); display: flex; flex-direction: column; }
.notif-pop header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.notif-pop header b { font-size: 15px; }
.notif-list { overflow-y: auto; }
.notif { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--accent-soft); }
.notif.unread:hover { filter: brightness(.98); }
.notif .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.notif .ic svg { width: 16px; height: 16px; }
.notif .ic.signed, .notif .ic.approved, .notif .ic.completed { background: var(--ok-soft); color: var(--ok); }
.notif .ic.declined, .notif .ic.email_failed, .notif .ic.auth_locked, .notif .ic.expired { background: var(--danger-soft); color: var(--danger); }
.notif .ic.viewed { background: var(--warn-soft); color: var(--warn); }
.notif b { display: block; font-weight: 600; font-size: 13.5px; }
.notif span { display: block; font-size: 12.5px; color: var(--muted); }
.notif time { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; font-family: var(--mono); }
.notif-empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* ---------- lists & tables ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 9px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs [aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.tabs .n { font: 500 11px var(--mono); margin-left: 5px; opacity: .8; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search { position: relative; flex: 1 1 240px; max-width: 380px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search .input { padding-left: 34px; }
.list { overflow: hidden; }
.env-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px 28px; align-items: center; gap: 6px 16px; width: 100%; padding: 13px 16px; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); background: none; text-align: left; }
.env-row:first-child { border-top: 0; }
.env-row:hover { background: var(--surface-2); }
.env-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-sub { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 3px; }
.env-date { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.person { display: inline-flex; align-items: center; gap: 5px; }
.env-row .go { color: var(--faint); }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.actions { text-align: right; white-space: nowrap; }
.more-btn { display: block; margin: 14px auto 0; }

/* ---------- action-required strip ---------- */
.action-strip { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.action-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--flag); border-radius: 10px; }
.action-item .t { flex: 1; min-width: 0; }
.action-item .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-item .t span { font-size: 12.5px; color: var(--muted); }

/* ---------- editor / document view ---------- */
.work { display: grid; grid-template-columns: 320px minmax(0, 1fr) 270px; align-items: start; min-height: calc(100vh - var(--top-h)); }
.work.two { grid-template-columns: minmax(0, 1fr) 360px; }
.work .side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.work .side.right { border-right: 0; border-left: 1px solid var(--line); }
.desk { padding: 22px 22px 100px; min-width: 0; }
.pages { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; }
.doc-head { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-weight: 600; color: var(--muted); font-size: 13px; }
.doc-head .n { font: 500 10.5px var(--mono); background: var(--surface-3); padding: 3px 7px; border-radius: 99px; }
.pagewrap { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pdfpage { position: relative; background: var(--paper); box-shadow: var(--shadow); max-width: 100%; }
.pdfpage canvas { display: block; width: 100%; height: 100%; }
.pnum { font: 400 11px/1 var(--mono); color: var(--muted); text-align: center; letter-spacing: .04em; }
.layer { position: absolute; inset: 0; }
body.placing .layer { cursor: crosshair; }
.dropzone-big { border: 2px dashed var(--line); border-radius: 14px; padding: 56px 20px; text-align: center; background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dropzone-big h2 { margin: 0; font-size: 20px; }
.dropzone-big p { margin: 0; color: var(--muted); max-width: 48ch; }
.dropzone-big.over { border-color: var(--accent); background: var(--accent-soft); }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.tool { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-size: 12.5px; font-weight: 500; min-width: 0; }
.tool span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool:hover { border-color: var(--faint); }
.tool[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tool .sw { width: 17px; height: 17px; flex: none; color: var(--accent-text); }
.tools-group { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); grid-column: 1 / -1; margin-top: 6px; }
.hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.doc-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-item .x { border: 0; background: none; color: var(--muted); padding: 2px 4px; font-size: 16px; }
.recips { display: flex; flex-direction: column; gap: 8px; }
.recip { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.recip.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.recip .top { display: flex; align-items: center; gap: 8px; }
.recip .order { width: 36px; padding: 4px 4px; text-align: center; min-height: 30px; }
.recip .who { flex: 1; min-width: 0; cursor: pointer; }
.recip .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recip .who span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recip .cnt { font: 500 11px var(--mono); color: var(--muted); }
.recip details summary { font-size: 12px; color: var(--accent-text); cursor: pointer; list-style: none; }
.recip details summary::-webkit-details-marker { display: none; }
.recip details[open] summary { margin-bottom: 8px; }
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 50; max-height: 240px; overflow-y: auto; }
.ac-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; font-size: 13px; }
.ac-list button:hover, .ac-list button.hl { background: var(--surface-3); }
.ac-list small { color: var(--muted); display: block; }

/* fields on paper */
.field { position: absolute; border-radius: 3px; display: flex; align-items: center; touch-action: none; user-select: none; -webkit-user-select: none; color: var(--paper-ink); font-family: var(--ui); line-height: 1.05; border: 1px solid transparent; }
.field.editable { cursor: grab; }
.field.interactive { cursor: pointer; }
.field.editable:hover, .field.interactive:hover { border-color: rgba(41,69,194,.5); }
.field.empty { background: var(--fbg, rgba(244,195,48,.30)); border: 1.5px dashed var(--fc, #B98C05); }
.field .lbl { font-size: min(1em, 14px); font-weight: 600; color: #333; padding-inline: .4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.needs::before { content: attr(data-flag); position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 3px; background: var(--flag); color: #3A2D00; font: 600 9px/1 var(--mono); letter-spacing: .08em; padding: 4px 11px 4px 6px; white-space: nowrap; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); z-index: 1; }
.field.sel { outline: 2px solid var(--paper-accent); outline-offset: 1px; cursor: move; z-index: 3; }
.field.multi { outline: 2px dashed var(--paper-accent); outline-offset: 1px; }
.field.flash { animation: flash 1s ease 2; }
.field.hidden-cond { opacity: .35; }
@keyframes flash { 50% { box-shadow: 0 0 0 6px rgba(244,195,48,.75); } }
.field img { width: 100%; height: 100%; object-fit: contain; object-position: left center; pointer-events: none; }
.field .val { padding-inline: .3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.field .val.wrap { white-space: pre-wrap; align-self: flex-start; padding-top: .15em; line-height: 1.15; }
.field input, .field textarea, .field select { border: 0; background: rgba(255,255,255,.55); width: 100%; height: 100%; padding: 0 .3em; color: var(--paper-ink); outline: none; font-size: inherit; font-family: inherit; color-scheme: light; }
.field textarea { resize: none; padding-top: .15em; line-height: 1.15; }
.field select { padding: 0 .1em; appearance: auto; }
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--paper-accent); }
.field input.invalid, .field textarea.invalid { box-shadow: inset 0 0 0 2px #B93A26; background: #FFF4F2; }
.field.editable input, .field.editable textarea, .field.editable select { pointer-events: none; }
.f-checkbox { justify-content: center; background: var(--paper); border: 1.5px solid var(--fc, var(--paper-ink)) !important; border-radius: 2px; }
.f-radio { justify-content: center; background: var(--paper); border: 1.5px solid var(--fc, var(--paper-ink)) !important; border-radius: 50%; }
.f-checkbox svg { width: 82%; height: 82%; }
.f-radio .rdot { width: 50%; height: 50%; border-radius: 50%; background: var(--paper-ink); }
.field .tag { position: absolute; top: 100%; left: 0; margin-top: 2px; font: 500 9px/1.2 var(--mono); color: #4A4F5C; background: rgba(255,255,255,.92); padding: 1px 4px; border-radius: 2px; white-space: nowrap; pointer-events: none; z-index: 2; }
.field.done-other { background: transparent; border: 0; pointer-events: none; }
.del { position: absolute; top: -13px; right: -13px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--paper); background: var(--paper-ink); color: var(--paper); display: grid; place-items: center; padding: 0; font-size: 14px; line-height: 1; z-index: 4; }
.handle { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--paper-accent); border-radius: 2px; cursor: nwse-resize; z-index: 4; }
.att-btn { display: flex; align-items: center; gap: .4em; width: 100%; height: 100%; border: 0; background: rgba(255,255,255,.6); padding: 0 .4em; font-size: inherit; color: var(--paper-ink); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.att-btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* properties panel */
.props { display: flex; flex-direction: column; gap: 12px; }
.props .head { display: flex; align-items: center; gap: 8px; }
.props .head b { flex: 1; }
.opts-list { display: flex; flex-direction: column; gap: 4px; }
.opts-list .opt { display: flex; gap: 4px; }

/* detail page */
.rstat { display: flex; flex-direction: column; gap: 10px; }
.rs { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.rs .top { display: flex; align-items: center; gap: 8px; }
.rs .top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs .meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.rs .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.timeline li { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 9px; }
.timeline .d { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-top: 5px; }
.timeline .d.signed, .timeline .d.approved, .timeline .d.completed, .timeline .d.auth_passed { background: var(--ok); }
.timeline .d.declined, .timeline .d.voided, .timeline .d.email_failed, .timeline .d.auth_failed, .timeline .d.auth_locked, .timeline .d.expired { background: var(--danger); }
.timeline .d.viewed { background: var(--warn); }
.timeline time { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 6px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.integrity { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 13px; }
.integrity.bad { background: var(--danger-soft); color: var(--danger); }
.integrity svg { width: 20px; height: 20px; flex: none; }
.integrity p { margin: 0; color: var(--ink); }

/* reports */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px; }
.stat .k { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: 220px; display: block; }
.chart text { fill: var(--muted); font: 10px var(--mono); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* settings */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings nav { position: sticky; top: calc(var(--top-h) + 20px); display: flex; flex-direction: column; gap: 2px; }
.settings nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.settings nav a:hover { background: var(--surface-3); }
.settings nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.settings section { margin-bottom: 18px; }
.settings h2 { margin: 0 0 4px; font-size: 18px; }
.settings .sec-sub { margin: 0 0 16px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.secret { display: flex; gap: 6px; align-items: center; }
.secret code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-3); padding: 7px 9px; border-radius: 6px; font-family: var(--mono); font-size: 12px; }
.logo-prev { height: 48px; display: flex; align-items: center; padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.logo-prev img { max-height: 36px; max-width: 200px; }
.color-in { display: flex; gap: 8px; align-items: center; }
.color-in input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }

/* dialogs */
dialog { border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--ink); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
dialog.sm { width: min(460px, calc(100vw - 32px)); }
dialog.lg { width: min(860px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10,14,22,.52); }
.sheet { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.sheet header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.sheet h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.sheet .body { padding: 10px 20px 14px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.sheet footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; flex-wrap: wrap; border-top: 1px solid var(--line-2); }
.xbtn { border: 0; background: none; font-size: 22px; line-height: 1; padding: 4px 8px; color: var(--muted); }
.stabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.stabs button { border: 0; background: none; padding: 8px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.stabs button[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.styles { display: flex; flex-direction: column; gap: 6px; }
.style-opt { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--sig-ink, #15171C); text-align: left; min-height: 64px; overflow: hidden; }
.style-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.style-opt .s { font-size: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; line-height: 1.5; }
.style-opt .i { font-size: 26px; white-space: nowrap; }
.padhead { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.padhead button { border: 0; background: none; color: var(--accent-text); font-weight: 600; font-size: 12px; }
canvas.pad { width: 100%; height: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; touch-action: none; display: block; background-image: linear-gradient(to top, transparent 34px, #C9CFDA 34px, #C9CFDA 35px, transparent 35px); }
canvas.pad.small { height: 100px; width: 50%; min-width: 180px; }
.upbox { border: 1.5px dashed var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--paper); color: #4A5265; text-align: center; }
.upbox img { max-height: 90px; max-width: 100%; }
.legal { font-size: 12px; color: var(--muted); margin: 0; }
.csv-prev { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.csv-prev table { font-size: 12px; }

/* signer page */
.sign-top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.sign-top .bar { height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.sign-top .bar .t { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); border-top: 1px solid var(--line-2); background: var(--surface-2); }
.ribbon .msg { flex: 1 1 260px; min-width: 0; }
.ribbon .msg b { display: block; }
.ribbon .msg span { color: var(--muted); font-size: 13px; }
.progress-bar { height: 4px; background: var(--line); }
.progress-bar i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .3s; }
.sign-desk { padding: 22px max(16px, env(safe-area-inset-right)) 110px max(16px, env(safe-area-inset-left)); }
.sign-intro { max-width: 880px; margin: 0 auto 18px; display: flex; flex-direction: column; gap: 10px; }
.center-card { max-width: 560px; margin: 48px auto; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.center-card h1 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.center-card p { margin: 0; }
.seal { width: 48px; height: 48px; color: var(--ok); }
.seal.bad { color: var(--danger); } .seal.info { color: var(--accent); }
.sender-msg { background: var(--surface-2); border-left: 3px solid var(--flag); padding: 10px 12px; border-radius: 0 8px 8px 0; white-space: pre-wrap; font-size: 13.5px; }
.code-in { font: 600 26px var(--mono); letter-spacing: .4em; text-align: center; padding: 10px; }
.sign-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left)); display: none; gap: 8px; }

/* login */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { margin: 0; font-size: 23px; letter-spacing: -0.01em; }
.auth-card .brand { padding: 0 0 6px; }
.auth-card .alt { font-size: 13px; color: var(--muted); text-align: center; }

/* docs page */
.prose { max-width: 820px; }
.prose h2 { margin-top: 34px; font-size: 20px; }
.prose h3 { margin-top: 22px; font-size: 15px; }
.prose pre { background: var(--surface-3); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
.prose code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 13px; }
.prose td, .prose th { border-bottom: 1px solid var(--line-2); padding: 7px 10px; text-align: left; vertical-align: top; }
.method { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 4px; margin-right: 6px; }
.method.get { background: var(--info-soft); color: var(--info); } .method.post { background: var(--ok-soft); color: var(--ok); } .method.delete { background: var(--danger-soft); color: var(--danger); }

.toast { pointer-events: none; position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.dropzone { position: fixed; inset: 0; z-index: 60; background: rgba(41,69,194,.14); border: 3px dashed var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 20px; color: var(--accent-text); pointer-events: none; }

@media (max-width: 1180px) {
  .work { grid-template-columns: 300px minmax(0, 1fr); }
  .work .side.right.props-side { position: fixed; right: 12px; bottom: 12px; top: auto; height: auto; max-height: 70vh; width: 300px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
  .work .side.right.props-side:empty, .work .side.right.props-side.none { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  body.nav-open .nav { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 65; }
  .topbar .menu-btn { display: inline-grid; }
  .topbar { padding-left: max(8px, env(safe-area-inset-left)); }
  .work, .work.two { grid-template-columns: minmax(0, 1fr); }
  .work .side.right.props-side { left: 12px; right: 12px; width: auto; max-height: 45vh; bottom: max(12px, env(safe-area-inset-bottom)); }
  .work .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .work .side.right { border-left: 0; }
  .work.two .side.right { order: -1; }
  .desk { padding: 16px max(12px, env(safe-area-inset-right)) 90px max(12px, env(safe-area-inset-left)); }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .settings nav { position: static; flex-direction: row; overflow-x: auto; }
  .form-grid, .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .env-row { grid-template-columns: minmax(0, 1fr) auto; }
  .env-row .env-date, .env-row .go { display: none; }
  .topbar .lbl-long { display: none; }
  .sign-foot { display: flex; }
  body.has-foot .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body.has-foot .sign-desk { padding-bottom: 140px; }
  .ribbon .btn.primary.finish-top { display: none; }
}
@media (max-width: 460px) { .tools { grid-template-columns: 1fr 1fr; } .page-head h1 { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .nav, .topbar, .side, .sign-top, .sign-foot { display: none !important; } }
.steps { margin: 0 0 4px; padding-left: 20px; } .steps li { margin: 0 0 10px; line-height: 1.5; } .steps .kv { margin: 6px 0 0; }

.env-type { display: inline-block; margin: 2px 0 2px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.recip.collapsed > :not(.top) { display: none; }
.recip.collapsed { cursor: pointer; }
.field-err { color: var(--danger); font-size: 12px; margin: 2px 0 0; }
.ac-list button.hl { background: var(--accent-soft); }
@media (max-width: 900px) {
  input.input, select.input, textarea.input, .input.sm { font-size: 16px; }
  .recip .icon-btn, #addMe, .recip details summary { min-height: 40px; }
  #addMe { padding: 0 12px; }
  .check input[type=checkbox], .check input[type=radio] { width: 20px; height: 20px; }
}
.pagejump { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.pagejump select { flex: 1; min-width: 0; }
.pagejump .btn { min-width: 38px; justify-content: center; font-size: 18px; line-height: 1; }
.tapval.ph { opacity: .6; font-style: italic; }
@media (max-width: 900px) { .layer .field::after { content: ""; position: absolute; inset: -10px; } }

/* ---------- guided send steps ---------- */
.stepper { grid-column: 1 / -1; display: flex; gap: 4px; position: sticky; top: var(--top-h); z-index: 26; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
.stepper button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.stepper button .n { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line); font-size: 13px; background: var(--surface); }
.stepper button.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper button[aria-current="step"] { color: var(--text); background: var(--accent-soft); }
.stepper button[aria-current="step"] .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper button + button::before { content: ""; width: 18px; height: 1.5px; background: var(--line); margin-right: 6px; }
.stepbar { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 26; display: flex; align-items: center; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.stepbar .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.step-title { font-size: 22px; margin: 4px 0 4px; }
.step-sub { color: var(--muted); margin: 0; font-size: 14.5px; }
.review .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.work .panel[data-step] { display: none; }
.work[data-step="1"] .panel[data-step="1"], .work[data-step="2"] .panel[data-step="2"], .work[data-step="3"] .panel[data-step="3"], .work[data-step="4"] .panel[data-step="4"] { display: block; }
.work[data-step]:not([data-step="3"]) { grid-template-columns: minmax(0, 1fr); }
.work[data-step]:not([data-step="3"]) .desk, .work[data-step]:not([data-step="3"]) #props { display: none; }
.work[data-step]:not([data-step="3"]) #left { position: static; height: auto; overflow: visible; width: 100%; max-width: 720px; margin: 0 auto; border: 0; background: transparent; padding: 24px 16px 40px; gap: 22px; }
.work[data-step]:not([data-step="3"]) #left .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.work[data-step]:not([data-step="3"]) #left .panel:has(.step-title) { background: transparent; border: 0; padding: 0; }
.work[data-step="3"] .side { top: calc(var(--top-h) + 57px); height: calc(100vh - var(--top-h) - 57px - 69px); }
@media (max-width: 900px) {
  .stepper { padding: 8px 10px; }
  .stepper button .l { display: none; }
  .stepper button[aria-current="step"] .l { display: inline; }
  .work[data-step="3"] #left { position: sticky; top: calc(var(--top-h) + 47px); height: auto; z-index: 20; padding: 10px 12px; gap: 0; box-shadow: 0 6px 12px -8px rgba(0,0,0,.25); }
  .work[data-step="3"] .fields-panel h3, .work[data-step="3"] .fields-panel .tools-group { display: none; }
  .work[data-step="3"] .fields-panel .field-row { margin-bottom: 8px !important; }
  .work[data-step="3"] .fields-panel .tools { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .work[data-step="3"] .fields-panel .tool { flex: none; padding: 8px 12px; }
  .work[data-step="3"] .fields-panel .hint { margin: 6px 0 0; font-size: 12px; }
  .work[data-step="3"] .fields-panel label[for="activeSel"] { display: none; }
  .work[data-step="3"] .fields-panel .input { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
  body:not(.placing) .work[data-step="3"] .fields-panel .hint { display: none; }
  .work .side.right.props-side { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
.work[data-step] { grid-template-rows: auto 1fr auto; }
.layer .field.done-field { background: transparent !important; border-style: solid; border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.layer .field.done-field .lbl { color: var(--paper-ink); font-weight: 500; }
.layer .field img.done-sig { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.badge { top: -3px; right: -5px; }
.recip .cnt { font-family: var(--ui); font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.appear { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.appear-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.appear-opt input { position: absolute; opacity: 0; pointer-events: none; }
.appear-opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.appear-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.appear-opt .muted { font-size: 12px; }
.appear-opt .sw { height: 46px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 4px; }
.appear-opt .sw.light { background: linear-gradient(135deg, #E9ECF2 0 55%, #FFFFFF 55%); }
.appear-opt .sw.dark { background: linear-gradient(135deg, #0E1218 0 55%, #171D27 55%); }
.appear-opt .sw.auto, .appear-opt .sw.time { background: linear-gradient(90deg, #E9ECF2 0 50%, #0E1218 50%); }
