/* Bulrush replica. Tokens are set on :root by theme.js; these are fallbacks. */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --canvas: #F6F7F9; --surface: #FFFFFF; --surfaceRaised: #FFFFFF; --border: #E3E6EB; --ink: #10151C; --inkSecondary: #5B6472;
  --accent: #0A6A8E; --accentInk: #FFFFFF; --accentWash: #E2EEF4; --good: #12794A; --caution: #96600A; --danger: #7E1728; --dangerWash: #F9E9EC;
  --shieldGround: #05080C; --shieldGlow: #38C6EB; --shieldInk: #E6EAF0; --shieldInk2: #A0A8B4;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r: 14px; --rc: 12px; --ctl-h: 48px; --row-h: 56px; --gut: 16px; --gap: 12px;
  --page-bg: #E4E8EE; --page-ink: #1B222C; --page-ink2: #5B6472; --page-line: #CDD3DB;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) { --page-bg: #05070A; --page-ink: #E6EAF0; --page-ink2: #98A1AE; --page-line: #232A34; }
}
:root[data-scheme="dark"] { --page-bg: #05070A; --page-ink: #E6EAF0; --page-ink2: #98A1AE; --page-line: #232A34; }
:root[data-skin="terminal"] { --r: 4px; --rc: 4px; --ctl-h: 44px; --row-h: 44px; --gap: 10px; --font: var(--mono); --page-bg: #020402; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--page-bg); color: var(--page-ink); font: 14px/1.4 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
svg.ic { width: 22px; height: 22px; flex: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--inkSecondary); }
.small { font-size: 12px; }

/* ---------- Page and demo chrome ---------- */
.page { height: 100%; height: 100dvh; display: flex; flex-direction: column; }
.demo-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; border-bottom: 1px solid var(--page-line); color: var(--page-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 13px; }
.db-brand { display: flex; align-items: center; gap: 8px; }
.db-brand img { border-radius: 5px; }
.db-sub { color: var(--page-ink2); }
.db-seg { display: flex; padding: 2px; border-radius: 9px; background: color-mix(in srgb, var(--page-ink) 9%, transparent); }
.db-seg button { border: 0; background: none; min-height: 34px; padding: 0 14px; border-radius: 7px; font-weight: 600; color: var(--page-ink2); }
.db-seg button[aria-checked="true"] { background: var(--page-bg); color: var(--page-ink); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.db-actions { display: flex; gap: 6px; }
.db-btn { border: 1px solid var(--page-line); background: none; border-radius: 8px; min-height: 34px; padding: 0 12px; color: var(--page-ink); }
.db-btn:hover { background: color-mix(in srgb, var(--page-ink) 6%, transparent); }
html.embed .demo-bar { display: none; }
@media (max-width: 699px) {
  .demo-bar { padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px; font-size: 12px; gap: 6px 10px; }
  .db-sub, #shield-btn { display: none; }
  .db-seg button, .db-btn { min-height: 30px; padding: 0 10px; }
}

.stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 18px; overflow: hidden; }
html:not(.framed) .stage { padding: 0; place-items: stretch; }
.app { position: relative; overflow: hidden; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.35; isolation: isolate; }
html:not(.framed) .app { width: 100%; height: 100%; }
html.framed .app.iphone { width: 390px; height: 844px; border-radius: 54px; zoom: var(--fit, 1); box-shadow: 0 0 0 11px #0B0D10, 0 0 0 12.5px #3A3F47, 0 40px 90px rgba(0,0,0,.35); }
html.framed .app.mac { width: min(1180px, 100%); height: min(780px, 100%); border-radius: 12px; box-shadow: 0 0 0 .5px rgba(0,0,0,.4), 0 30px 80px rgba(0,0,0,.3); }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.noscript { padding: 40px; text-align: center; }

/* Status bar only on a phone drawn inside a frame or an iframe. */
.statusbar { display: none; }
html.framed .app.iphone .statusbar, html.embed[data-device="iphone"] .app .statusbar { display: flex; position: absolute; top: 0; left: 0; right: 0; height: 50px; align-items: center; justify-content: space-between; padding: 4px 30px 0 44px; z-index: 5; font: 600 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); pointer-events: none; }
.statusbar svg { fill: currentColor; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
html.framed .app.iphone .screen, html.embed[data-device="iphone"] .app .screen { top: 50px; }
html.framed .app.iphone .tabbar, html.embed[data-device="iphone"] .app .tabbar { padding-bottom: 26px; position: relative; }
html.framed .app.iphone .tabbar::after, html.embed[data-device="iphone"] .app .tabbar::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); opacity: .85; }

/* ---------- Carnation scatter ---------- */
.scatter { position: absolute; inset: 0; pointer-events: none; container-type: size; overflow: hidden; z-index: 0; }
.scatter .bloom { position: absolute; width: calc(var(--s) * min(100cqw, 100cqh)); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(var(--r)); color: var(--accent); }
.scroll > :not(.scatter), .auth > :not(.scatter) { position: relative; z-index: 1; }
.empty-bloom { width: 128px; height: 128px; color: var(--accent); opacity: .7; }

/* ---------- Type ---------- */
.screen-h { margin: 6px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
.screen-h.big { font-size: 30px; font-weight: 700; }
.lede { margin: 0; color: var(--inkSecondary); font-size: 15px; line-height: 1.45; }
.center { text-align: center; }
.note { margin: 0; color: var(--inkSecondary); font-size: 13px; }
.note.pad { padding: 16px; }
.strong { margin: 0; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.strong svg.ic { width: 20px; height: 20px; color: var(--accent); }
.err { margin: 0; color: var(--danger); font-size: 13px; min-height: 0; text-align: left; }
.err:empty { display: none; }
.ok { margin: 0; color: var(--good); font-size: 13px; }
.danger-t { color: var(--danger) !important; }
.good-t { color: var(--good) !important; }
.caution-t { color: var(--caution) !important; }
.sec-h { margin: 22px 6px 7px; font-size: 11px; font-weight: 600; letter-spacing: .7px; color: var(--inkSecondary); text-transform: uppercase; }
.group-f { margin: 7px 6px 0; font-size: 12.5px; color: var(--inkSecondary); line-height: 1.45; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; min-height: 44px; padding: 0 8px; align-self: center; }
.link.small { font-size: 13px; font-weight: 500; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl-h); padding: 0 18px; border-radius: var(--rc); border: 1px solid transparent; font-weight: 600; font-size: 16px; text-align: center; transition: transform .12s ease, filter .12s ease, background-color .2s; }
.btn.block { width: 100%; }
.btn svg.ic { width: 20px; height: 20px; }
.btn.primary { background: var(--accent); color: var(--accentInk); }
.btn.secondary { background: var(--surface); border-color: var(--border); color: var(--accent); }
.btn.destructive { background: var(--dangerWash); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.btn.plain { background: none; color: var(--accent); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn:not(:disabled):active { transform: scale(.98); filter: brightness(.95); }
.btn:disabled { opacity: .45; }
.btn.busy:disabled { opacity: .8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row .btn { flex: 1 1 auto; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.pad-card { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.list-card { overflow: hidden; }

.fld { display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 0; }
.fld-label { font-size: 13px; font-weight: 600; color: var(--inkSecondary); }
.fld-box { position: relative; display: flex; align-items: center; min-height: var(--ctl-h); border: 1px solid var(--border); border-radius: var(--rc); background: var(--surfaceRaised); transition: border-color .15s, box-shadow .15s; }
.fld-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fld-input { flex: 1; min-width: 0; width: 100%; min-height: calc(var(--ctl-h) - 2px); border: 0; background: none; padding: 0 14px; font-size: 16px; color: var(--ink); outline: none; }
textarea.fld-input { padding: 12px 14px; resize: vertical; min-height: 84px; line-height: 1.4; }
.fld-input::placeholder { color: color-mix(in srgb, var(--inkSecondary) 80%, transparent); }
.fld-input.mono { font-family: var(--mono); font-size: 15px; }
.fld-box.select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
.fld-box.select svg.ic { position: absolute; right: 12px; width: 18px; height: 18px; pointer-events: none; color: var(--inkSecondary); }
.fld.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.fld.inline .fld-label { font-size: 16px; font-weight: 400; color: var(--ink); }
.fld.inline .fld-box { min-width: 150px; }
.fld-hint { margin: 0; font-size: 12.5px; color: var(--inkSecondary); line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
.fld-hint:empty { display: none; }
.eye { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--inkSecondary); display: grid; place-items: center; border-radius: 10px; }
.eye:hover { color: var(--accent); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.icon-btn { flex: none; min-width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--accent); border-radius: 10px; padding: 0 6px; }
.icon-btn:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }

.tgl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; text-align: left; }
.tgl-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tgl-label { font-size: 16px; }
.tgl-cap { font-size: 12.5px; color: var(--inkSecondary); line-height: 1.4; }
.tgl { flex: none; position: relative; width: 51px; height: 31px; border-radius: 16px; border: 0; padding: 0; background: color-mix(in srgb, var(--ink) 16%, transparent); transition: background-color .2s; }
.tgl::before { content: ""; position: absolute; inset: -7px -2px; }
.tgl .knob { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.22); transition: transform .22s cubic-bezier(.3,.7,.4,1.2); }
.tgl[aria-checked="true"] { background: var(--accent); }
.tgl[aria-checked="true"] .knob { transform: translateX(20px); }
.tgl:disabled { opacity: .4; }

.seg { display: flex; padding: 2px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 8%, transparent); gap: 2px; }
.seg [role="radio"] { flex: 1; min-width: 0; min-height: 40px; border: 0; background: none; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink); padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg [role="radio"][aria-checked="true"] { background: var(--surfaceRaised); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.14); }

.badge { flex: none; display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .2px; background: var(--dangerWash); color: var(--danger); }
.avatar { flex: none; width: var(--sz); height: var(--sz); border-radius: calc(var(--sz) * .26); display: grid; place-items: center; font-weight: 700; font-size: calc(var(--sz) * .44); background: var(--accentWash); color: var(--accent); }
.avatar.danger { background: var(--dangerWash); color: var(--danger); }

.meter { display: flex; gap: 5px; }
.meter span { flex: 1; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.meter span.on.danger { background: var(--danger); }
.meter span.on.caution { background: var(--caution); }
.meter span.on.good { background: var(--good); }
.verdict { margin: 0; font-weight: 700; font-size: 18px; }
.verdict.danger { color: var(--danger); } .verdict.caution { color: var(--caution); } .verdict.good { color: var(--good); }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lines li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.lines li svg.ic { width: 20px; height: 20px; }
.lines li.good svg { color: var(--good); } .lines li.danger { color: var(--danger); } .lines li.caution svg { color: var(--caution); }
.progress { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.code-block { padding: 16px 10px; border-radius: var(--rc); background: var(--accentWash); color: var(--accent); font-size: clamp(15px, 4.8vw, 21px); white-space: nowrap; font-weight: 600; letter-spacing: 1.5px; text-align: center; overflow-wrap: anywhere; user-select: all; }
.code-block.small { font-size: clamp(13px, 4.2vw, 17px); letter-spacing: 1px; }

/* ---------- Auth screens ---------- */
.auth { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; }
.auth-inner { max-width: 440px; margin: 0 auto; padding: 44px 20px 36px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.auth-inner > .mark, .auth-inner > .reveal-ic { align-self: center; }
.auth-inner .mark { filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent)); }
.auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.foot { margin-top: 8px; }
.demo-hint { border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accentWash); border-radius: var(--rc); padding: 10px 12px; text-align: left; font-size: 14px; }
.demo-hint p { margin: 2px 0; overflow-wrap: anywhere; }
.demo-hint strong { color: var(--accent); user-select: all; }
.demo-hint .mono { user-select: all; }
.demo-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; color: var(--accent); text-transform: uppercase; }
.reveal { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.reveal-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accentWash); color: var(--accent); align-self: center; --svg-hole: var(--accentWash); }
.reveal-ic svg.ic { width: 34px; height: 34px; }
.file-card { display: flex; gap: 10px; align-items: center; margin: 0; text-align: left; }
.file-card svg.ic { color: var(--accent); --svg-hole: var(--surface); }
.file-card > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }

/* ---------- iPhone main ---------- */
.phone-main { position: absolute; inset: 0; display: flex; flex-direction: column; }
.stack-wrap { flex: 1; position: relative; min-height: 0; }
.tab-page, .push { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--canvas); }
.tab-page { z-index: 1; }
.push { z-index: 3; animation: push-in .32s cubic-bezier(.2,.8,.2,1); box-shadow: -8px 0 24px rgba(0,0,0,.08); }
@keyframes push-in { from { transform: translateX(100%); } }
.navbar { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 48px; padding: 0 6px; z-index: 4; }
.nav-title { position: absolute; left: 50%; transform: translateX(-50%); max-width: 46%; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .18s; pointer-events: none; }
.nav-title.show { opacity: 1; }
.nb-right { display: flex; align-items: center; }
.filter-btn { display: inline-flex; gap: 4px; }
.filter-name { font-size: 14px; font-weight: 500; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-back { display: inline-flex; align-items: center; gap: 0; border: 0; background: none; color: var(--accent); font-size: 17px; min-height: 44px; padding: 0 8px 0 2px; }
.nav-back svg.ic { width: 24px; height: 24px; }
.bar-btn { border: 0; background: none; color: var(--accent); font-size: 17px; min-height: 44px; padding: 0 10px; white-space: nowrap; }
.bar-btn.bold { font-weight: 600; }
.bar-btn:disabled { opacity: .4; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; overscroll-behavior: contain; }
.large-title { margin: 2px 16px 10px; font-size: 34px; font-weight: 700; letter-spacing: .3px; line-height: 1.15; overflow-wrap: anywhere; }
.tab-body { padding-bottom: 28px; }
.tabbar { flex: none; display: flex; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 4; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; background: none; color: var(--inkSecondary); font-size: 10.5px; font-weight: 500; }
.tab svg.ic { width: 25px; height: 25px; }
.tab.on { color: var(--accent); }
.stack { padding: 0 16px; }
.stack > .sec-h:first-child { margin-top: 4px; }
.stack > .lede { margin: 0 2px 14px; }
.stack > .btn { margin-top: 12px; }
.stack > .card + .btn, .stack > .err + .btn { margin-top: 10px; }
.stack > .err, .stack > .ok { margin-top: 10px; }
.stack > .card + .card { margin-top: 10px; }

.search { display: flex; align-items: center; margin: 0 16px 12px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 10px; min-height: 40px; }
.search-ic { display: grid; place-items: center; padding-left: 9px; color: var(--inkSecondary); }
.search-ic svg.ic { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; min-height: 40px; padding: 0 10px 0 6px; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--inkSecondary); }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- Rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.list-host > .rows { margin: 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.row-wrap { position: relative; overflow: hidden; }
.row-wrap + .row-wrap > .row::before, .rows > .row + .row::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; border-top: 1px solid var(--border); }
.row { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--row-h); padding: 9px 12px 9px 14px; border: 0; background: var(--surface); color: var(--ink); text-align: left; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button.row:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.row.selected { background: var(--accentWash); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--inkSecondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-totp, .row-chev, .row-ic { color: var(--inkSecondary); display: grid; }
.row-totp svg.ic { width: 19px; height: 19px; color: var(--accent); }
.row-chev svg.ic { width: 16px; height: 16px; opacity: .6; }
.row-ic svg.ic { color: var(--accent); --svg-hole: var(--surface); }
.row.static { cursor: default; }
.swipe-actions { position: absolute; top: 0; right: 0; bottom: 0; display: flex; visibility: hidden; }
.row-wrap.swiping .swipe-actions, .row-wrap.swiped .swipe-actions { visibility: visible; }
.sw { width: 78px; border: 0; font-weight: 600; font-size: 15px; }
.sw-copy { background: var(--accent); color: var(--accentInk); }
.sw-del { background: #D93A3A; color: #fff; }
.file-row { gap: 10px; }

/* ---------- Empty states ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 28px; text-align: center; }
.empty-ic { width: 38px !important; height: 38px !important; color: var(--inkSecondary); }
.empty-title { margin: 0; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.empty-msg { margin: 0; color: var(--inkSecondary); font-size: 15px; max-width: 320px; }
.empty .btn { margin-top: 6px; }

/* ---------- Detail ---------- */
.detail { padding: 4px 16px 32px; }
.detail-inner { max-width: 640px; margin: 0 auto; }
.detail-head { display: flex; align-items: center; gap: 14px; margin: 6px 2px 16px; }
.detail-head > div { min-width: 0; }
.detail-title { margin: 0; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.detail-url { margin: 2px 0 0; color: var(--inkSecondary); font-size: 14px; overflow-wrap: anywhere; }
.kv { position: relative; display: flex; align-items: center; gap: 2px; min-height: 60px; padding: 8px 6px 8px 14px; }
.kv + .kv::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--border); }
.kv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kv-k { font-size: 12px; color: var(--inkSecondary); }
.kv-v { font-size: 16px; overflow-wrap: anywhere; }
.kv-v.pw { letter-spacing: 1px; }
.totp { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; }
.totp-code { flex: 1; font-size: 32px; font-weight: 600; letter-spacing: 1.5px; color: var(--accent); font-variant-numeric: tabular-nums; }
.totp-ring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.totp-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.totp-ring circle { fill: none; stroke-width: 3; }
.totp-ring .trk { stroke: color-mix(in srgb, var(--ink) 12%, transparent); }
.totp-ring .prg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .9s linear; }
.totp-s { font-size: 12px; font-weight: 600; color: var(--inkSecondary); font-variant-numeric: tabular-nums; }
.totp.low .prg { stroke: var(--danger); }
.totp.low .totp-s { color: var(--danger); }
.body-text { padding: 14px 16px; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--accentWash); color: var(--accent); font-size: 13px; font-weight: 500; }
.bc { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.bc .spinner { margin-top: 3px; color: var(--accent); }
.bc strong { font-size: 15.5px; display: block; }
.bc p { margin: 3px 0 0; font-size: 13px; color: var(--inkSecondary); }
.bc-ic { color: var(--inkSecondary); display: grid; }
.bc.good .bc-ic, .bc.good strong { color: var(--good); }
.bc.danger .bc-ic, .bc.danger strong { color: var(--danger); }
.breach:has(.bc.danger) { background: var(--dangerWash); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* ---------- Mac ---------- */
.mac-titlebar { flex: none; display: flex; align-items: center; height: 38px; padding: 0 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mac-main { position: absolute; inset: 0; display: flex; flex-direction: column; }
.toolbar { flex: none; display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 12px 0 18px; background: var(--surface); border-bottom: 1px solid var(--border); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.lights i:nth-child(2) { background: #FEBC2E; } .lights i:nth-child(3) { background: #28C840; }
.tb-title { font-weight: 700; font-size: 15px; }
.tb-right { margin-left: auto; display: flex; gap: 2px; }
.split { flex: 1; min-height: 0; display: grid; }
.split.three { grid-template-columns: minmax(150px, 220px) minmax(200px, 300px) minmax(0, 1fr); }
.split.two { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 1px; padding: 12px 8px; background: color-mix(in srgb, var(--ink) 3.5%, var(--canvas)); border-right: 1px solid var(--border); }
.side-h { margin: 2px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--inkSecondary); text-transform: uppercase; }
.side-item { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; font-size: 14.5px; }
.side-item svg.ic { width: 19px; height: 19px; color: var(--accent); }
.side-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.side-item.on { background: var(--accentWash); color: var(--accent); font-weight: 600; }
.side-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-n { font-size: 12.5px; color: var(--inkSecondary); font-variant-numeric: tabular-nums; }
.side-gap { height: 14px; }
.side-foot { margin-top: auto; padding-top: 10px; }
.side-new { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 14.5px; border-radius: 8px; }
.side-new:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.col-list { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); background: var(--canvas); }
.list-head { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 8px 10px 10px; border-bottom: 1px solid var(--border); }
.list-head .search { flex: 1; margin: 0; }
.col-list .list-host > .rows { margin: 0; border: 0; border-radius: 0; background: transparent; }
.col-list .row { padding-left: 12px; }
.col-list .row-wrap + .row-wrap > .row::before { left: 60px; }
.col-list .empty { padding: 36px 18px; }
.col-detail { position: relative; min-width: 0; background: var(--canvas); }
.detail-bar { display: flex; justify-content: flex-end; padding: 10px 14px 0; position: relative; z-index: 1; }
.detail-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; color: var(--inkSecondary); font-size: 15px; text-align: center; z-index: 1; }
.col-tool { min-width: 0; background: var(--canvas); }
.col-tool .large-title { margin: 18px 22px 8px; font-size: 28px; }
.tool-body { max-width: 640px; padding: 0 6px 36px; }
.mac .large-title { font-size: 28px; }

/* ---------- Sheets, alerts, menus ---------- */
.overlays { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.overlays > * { pointer-events: auto; }
.modal { position: absolute; inset: 0; isolation: isolate; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.34); opacity: 0; transition: opacity .24s; }
.modal.in .backdrop { opacity: 1; }
.sheet { position: absolute; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); overflow: hidden; }
.sheet-wrap.phone .sheet { left: 0; right: 0; bottom: 0; top: 12px; border-radius: 14px 14px 0 0; transform: translateY(100%); transition: transform .34s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -6px 30px rgba(0,0,0,.18); }
html.framed .app.iphone .sheet-wrap.phone .sheet, html.embed[data-device="iphone"] .sheet-wrap.phone .sheet { top: 58px; }
.sheet-wrap.phone.in .sheet { transform: none; }
.sheet-wrap.phone.out .sheet { transform: translateY(100%); }
.sheet-wrap.mac .sheet { left: 50%; top: 52px; width: min(560px, calc(100% - 40px)); max-height: calc(100% - 72px); margin-left: calc(min(560px, calc(100% - 40px)) / -2); border-radius: 0 0 12px 12px; border: 1px solid var(--border); border-top: 0; box-shadow: 0 22px 60px rgba(0,0,0,.28); transform: translateY(-16px); opacity: 0; transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.sheet-wrap.mac.in .sheet { transform: none; opacity: 1; }
.sheet-wrap.mac.out .sheet { opacity: 0; transform: translateY(-16px); }
.sheet-wrap.offer.phone .sheet { top: auto !important; max-height: 90%; }
.sheet-wrap.offer .sheet-body { padding-top: 0; }
.sheet-bar { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 54px; padding: 4px 6px; border-bottom: 1px solid var(--border); background: var(--surface); }
.sheet-title { margin: 0; font-size: 17px; font-weight: 600; text-align: center; max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.sheet-wrap.phone .sheet-title { max-width: 210px; }
.bar-side { display: flex; min-width: 0; }
.bar-side.trail { justify-content: flex-end; }
.bar-btn.back { display: inline-flex; align-items: center; padding-left: 0; max-width: 100%; overflow: hidden; }
.bar-btn.back svg.ic { width: 24px; height: 24px; }
.bar-btn.back span { overflow: hidden; text-overflow: ellipsis; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 16px 34px; }
.form { display: flex; flex-direction: column; }
.form > .card + .card, .form > .card + .btn, .form > .btn + .btn, .form > .err + .btn, .form > .ok + .btn { margin-top: 12px; }
.form > .err, .form > .ok { margin-top: 10px; }
.form > .lede { margin: 12px 4px 4px; }
.form > .pad-card:first-child { margin-top: 12px; }
.nav-card { overflow: hidden; }
.nav-row { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 12px 0 16px; border: 0; background: none; color: var(--ink); text-align: left; font-size: 16px; }
.nav-row > span:first-child { flex: 1; min-width: 0; }
.nav-row + .nav-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--border); }
.nav-row svg.ic { width: 16px; height: 16px; color: var(--inkSecondary); }
.nav-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.nav-row.act { color: var(--accent); }
.nav-row.destructive { color: var(--danger); }
.two-t { display: flex; flex-direction: column; flex: 1; }
.nav-sub { font-size: 13px; color: var(--inkSecondary); }
.folder-name { color: var(--ink); overflow-wrap: anywhere; }
.demo-f { font-style: italic; }

.alert-wrap .alert { position: absolute; left: 50%; top: 50%; width: min(290px, calc(100% - 40px)); transform: translate(-50%, -50%) scale(1.08); opacity: 0; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s; background: color-mix(in srgb, var(--surfaceRaised) 96%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 50px rgba(0,0,0,.3); text-align: center; }
.alert-wrap.in .alert { transform: translate(-50%, -50%); opacity: 1; }
.alert-wrap.as-sheet .alert { top: auto; bottom: 16px; transform: translate(-50%, 30px); width: calc(100% - 20px); }
.alert-wrap.as-sheet.in .alert { transform: translate(-50%, 0); }
html.framed .app.iphone .alert-wrap.as-sheet .alert, html.embed[data-device="iphone"] .alert-wrap.as-sheet .alert { bottom: 34px; }
.alert-text { padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.alert-title { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.as-sheet .alert-title { font-size: 14px; font-weight: 500; color: var(--inkSecondary); }
.alert-msg { margin: 0; font-size: 13.5px; color: var(--inkSecondary); line-height: 1.4; }
.alert-field { margin-top: 8px; min-height: 40px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: var(--surface); color: var(--ink); font-size: 16px; outline: none; }
.alert-field:focus { border-color: var(--accent); }
.alert-btns { display: flex; border-top: 1px solid var(--border); }
.alert-btns.stack { flex-direction: column; }
.alert-btn { flex: 1; min-height: 46px; border: 0; background: none; color: var(--accent); font-size: 17px; padding: 0 8px; }
.alert-btns:not(.stack) .alert-btn + .alert-btn { border-left: 1px solid var(--border); }
.alert-btns.stack .alert-btn + .alert-btn { border-top: 1px solid var(--border); }
.alert-btn.cancel { font-weight: 600; }
.alert-btn.destructive { color: var(--danger); }
.alert-btn:disabled { opacity: .4; }
.alert-btn:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }

.menu-wrap .menu-catch { position: absolute; inset: 0; }
.menu { position: absolute; min-width: 220px; max-width: min(290px, calc(100% - 16px)); padding: 5px; border-radius: 13px; background: color-mix(in srgb, var(--surfaceRaised) 94%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border); box-shadow: 0 14px 44px rgba(0,0,0,.26); opacity: 0; transform: scale(.94); transform-origin: top left; transition: opacity .14s, transform .18s cubic-bezier(.2,.8,.2,1); }
.menu-wrap.in .menu { opacity: 1; transform: none; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; font-size: 15px; }
.menu-item > span:not(.ic) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item span.ic { width: 20px; flex: none; }
.menu-item svg.ic { width: 20px; height: 20px; color: var(--accent); }
.menu-item svg.sub, .menu-item svg.chk { width: 16px; height: 16px; color: var(--inkSecondary); }
.menu-item svg.chk { color: var(--accent); }
.menu-item:hover, .menu-item:focus-visible { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: none; }
.menu-item.destructive, .menu-item.destructive svg.ic { color: var(--danger); }
.menu-item.back { color: var(--accent); font-weight: 600; }
.menu-item:disabled { opacity: .4; }
.menu-sep { height: 1px; margin: 4px 8px; background: var(--border); }

.toast { position: absolute; left: 50%; top: 64px; z-index: 80; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-weight: 600; font-size: 14px; pointer-events: none; opacity: 0; transform: translate(-50%, -8px); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
html.framed .app.iphone .toast, html.embed[data-device="iphone"] .toast { top: 100px; }

.demo-note { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 40; display: flex; align-items: flex-start; gap: 4px; padding: 9px 2px 9px 13px; border-radius: 14px; background: color-mix(in srgb, var(--surfaceRaised) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); box-shadow: 0 8px 26px rgba(0,0,0,.14); font-size: 12.5px; color: var(--inkSecondary); animation: note-in .5s .6s both cubic-bezier(.2,.8,.2,1); }
.demo-note p { margin: 3px 0 0; flex: 1; line-height: 1.4; }
.demo-note .icon-btn { color: var(--inkSecondary); height: 36px; min-width: 40px; }
.app.iphone[data-phase="main"] .demo-note { bottom: 66px; }
html.framed .app.iphone[data-phase="main"] .demo-note, html.embed[data-device="iphone"] .app[data-phase="main"] .demo-note { bottom: 92px; }
.app.mac .demo-note { left: auto; right: 16px; width: min(420px, calc(100% - 32px)); }
@keyframes note-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Biometric simulation and offer ---------- */
.bio-sim { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.18); opacity: 0; transition: opacity .18s; }
.bio-sim.in { opacity: 1; }
.bio-card { width: 188px; padding: 22px 12px 10px; border-radius: 30px; background: rgba(28,30,34,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: scale(.9); transition: transform .25s cubic-bezier(.2,.8,.2,1.3); }
.bio-sim.in .bio-card { transform: none; }
.bio-glyph { position: relative; width: 76px; height: 76px; display: grid; place-items: center; }
.bio-glyph svg.ic { width: 76px; height: 76px; stroke-width: 1.3; }
.bio-glyph.face > svg.ic { animation: face-scan 1.1s ease-in-out infinite; }
.bio-glyph.touch > svg.ic { animation: touch-pulse 1s ease-in-out infinite; color: #FF5A6E; }
.bio-ok { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s cubic-bezier(.2,.8,.2,1.4); }
.bio-ok svg.ic { color: #34C759; }
.bio-sim.ok .bio-glyph > svg.ic { opacity: 0; transition: opacity .15s; }
.bio-sim.ok .bio-ok { opacity: 1; transform: none; }
.bio-sim.fail .bio-card { animation: shake .4s; }
.bio-name { margin: 10px 0 0; font-weight: 600; font-size: 16px; }
.bio-sub { margin: 0; font-size: 12px; color: rgba(255,255,255,.66); }
.bio-card .link { color: #9CD8F0; }
@keyframes face-scan { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.94); opacity: .75; } }
@keyframes touch-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.offer-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 4px 6px; text-align: center; }
.offer-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--accentWash); color: var(--accent); }
.offer-ic svg.ic { width: 44px; height: 44px; stroke-width: 1.5; }

/* ---------- About / documents ---------- */
.about-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 0 6px; text-align: center; }
.about-head p { margin: 0; }
.about .card p, .doc p { margin: 0; font-size: 15px; line-height: 1.5; }
.doc { padding: 14px 4px; }
.doc > p { margin: 0 2px; }
.doc-date { font-size: 12px !important; letter-spacing: .6px; color: var(--inkSecondary); margin-bottom: 10px !important; }
.doc a { color: var(--accent); }

/* ---------- Privacy shield ---------- */
.shield { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--shieldGround); opacity: 0; transition: opacity .3s; --shield-mark-ground: color-mix(in srgb, var(--shieldGlow) 16%, var(--shieldGround)); }
.shield.on { opacity: 1; }
.glows { position: absolute; inset: 0; animation: breath 5.46s ease-in-out infinite; }
.glow { position: absolute; inset: 0; border-radius: 56px; padding: var(--lw); background: conic-gradient(from var(--a), color-mix(in srgb, var(--shieldGlow) 10%, transparent) 0%, color-mix(in srgb, var(--shieldGlow) 55%, transparent) 16%, var(--shieldGlow) 28%, color-mix(in srgb, var(--shieldGlow) 45%, transparent) 44%, color-mix(in srgb, var(--shieldGlow) 12%, transparent) 62%, color-mix(in srgb, var(--shieldGlow) 30%, transparent) 80%, color-mix(in srgb, var(--shieldGlow) 10%, transparent) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: sweep 13.85s linear infinite; }
.app.mac .glow { border-radius: 12px; }
.gl { position: absolute; inset: 0; }
.g1 { --lw: 34px; filter: blur(26px); opacity: .55; }
.g2 { --lw: 10px; filter: blur(7px); opacity: .8; }
.g3 { --lw: 1.4px; opacity: .9; }
@keyframes sweep { to { --a: 360deg; } }
@keyframes breath { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
.shield-c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sh-name { margin: 2px 0 0; font: 600 20px/1.2 var(--font); color: var(--shieldInk); }
.sh-sub { margin: -6px 0 0; font: 12.5px/1.2 var(--font); color: var(--shieldInk2); }

/* ---------- Carnation ---------- */
[data-skin="carnation"] .list-host > .rows, [data-skin="carnation"] .col-list .list-host > .rows { background: color-mix(in srgb, var(--surface) 72%, transparent); }
[data-skin="carnation"] .row:not(.selected) { background: transparent; }
[data-skin="carnation"] .row-wrap.swiping .row, [data-skin="carnation"] .row-wrap.swiped .row { background: var(--surface); }
[data-skin="carnation"] .card { background: color-mix(in srgb, var(--surface) 86%, transparent); }
[data-skin="carnation"] .tab-page, [data-skin="carnation"] .push { background: var(--canvas); }

/* ---------- Terminal ---------- */
[data-skin="terminal"] .app { font-family: var(--mono); font-size: 15px; text-shadow: 0 0 5px color-mix(in srgb, var(--ink) 45%, transparent); }
[data-skin="terminal"] .large-title { font-size: 20px; font-weight: 600; letter-spacing: .5px; margin-top: 8px; }
[data-skin="terminal"] .screen-h { font-size: 19px; }
[data-skin="terminal"] .screen-h.big { font-size: 24px; }
[data-skin="terminal"] .sec-h { font-size: 12px; }
[data-skin="terminal"] .badge { background: none; padding: 0; color: var(--danger); font-size: 12px; border-radius: 0; }
[data-skin="terminal"] .avatar { border-radius: 2px; border: 1px solid var(--border); }
[data-skin="terminal"] .btn { font-size: 14px; letter-spacing: .6px; }
[data-skin="terminal"] .btn.primary { text-shadow: none; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent); }
[data-skin="terminal"] .tgl, [data-skin="terminal"] .tgl .knob { border-radius: 2px; }
[data-skin="terminal"] .tgl { border: 1px solid var(--border); background: transparent; }
[data-skin="terminal"] .tgl .knob { background: var(--inkSecondary); box-shadow: none; top: 3px; left: 3px; width: 23px; height: 23px; }
[data-skin="terminal"] .tgl[aria-checked="true"] { background: var(--accentWash); border-color: var(--accent); }
[data-skin="terminal"] .tgl[aria-checked="true"] .knob { background: var(--accent); transform: translateX(20px); }
[data-skin="terminal"] .seg, [data-skin="terminal"] .seg [role="radio"] { border-radius: 2px; }
[data-skin="terminal"] .seg { background: transparent; border: 1px solid var(--border); }
[data-skin="terminal"] .seg [role="radio"][aria-checked="true"] { background: var(--accent); color: var(--canvas); text-shadow: none; box-shadow: none; }
[data-skin="terminal"] .search { background: transparent; border: 1px solid var(--border); border-radius: 2px; }
[data-skin="terminal"] .toast { border-radius: 2px; background: var(--accent); color: var(--canvas); text-shadow: none; }
[data-skin="terminal"] .sheet, [data-skin="terminal"] .alert, [data-skin="terminal"] .menu, [data-skin="terminal"] .demo-note { border-radius: 4px; border: 1px solid var(--border); }
[data-skin="terminal"] .sheet-wrap.phone .sheet { border-radius: 4px 4px 0 0; }
[data-skin="terminal"] .meter span { border-radius: 0; }
[data-skin="terminal"] .tag { border-radius: 2px; border: 1px solid var(--border); background: none; }
[data-skin="terminal"] .code-block { border: 1px solid var(--accent); }
[data-skin="terminal"] .mark { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 55%, transparent)); }
[data-skin="terminal"] .lights i { filter: grayscale(1) brightness(.6); }
[data-skin="terminal"] .sw-del { background: var(--danger); color: var(--canvas); }
[data-skin="terminal"] .bio-card { background: rgba(0,0,0,.9); border: 1px solid var(--accent); border-radius: 4px; }
[data-skin="terminal"] .bio-glyph svg.ic { color: var(--accent); }
[data-skin="terminal"] .glow { border-radius: 10px; }
.crt { display: none; }
[data-skin="terminal"] .crt { display: block; position: absolute; inset: 0; z-index: 120; pointer-events: none; }
.crt-scan .crt { background: repeating-linear-gradient(to bottom, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); }
.crt-curve .crt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,.18) 100%); box-shadow: inset 0 0 70px rgba(0,0,0,.35); }
html.framed .app.iphone .crt { border-radius: 54px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .glows, .glow { animation: none !important; }
  .crt { display: none !important; }
}
@media (prefers-reduced-transparency: reduce) { .crt { display: none !important; } }
@media (hover: none) { button.row:hover, .nav-row:hover, .icon-btn:hover { background: none; } }
.app:has(.demo-note) .tab-body, .app:has(.demo-note) .tool-body, .app:has(.demo-note) .auth-inner, .app:has(.demo-note) .detail, .app:has(.demo-note) .col-list .list-host { padding-bottom: 120px; }
