:root {
  --bg: #121018;
  --sb: #17151f;
  --pane: #1a1823;
  --detail: #1d1b27;
  --surface: #221f2e;
  --surface-2: #2b2739;
  --hover: #2a2640;
  --border: #2f2a3f;
  --text: #ece9f5;
  --muted: #9d97b3;
  --faint: #6f6a85;
  --accent: #a78bfa;
  --accent-ink: #1a1030;
  --accent-soft: rgba(167, 139, 250, .14);
  --danger: #f87171;
  --ok: #4ade80;
  --warn: #fbbf24;
  --r: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; display: block; }
[data-icon] { display: inline-grid; place-items: center; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.faint { color: var(--faint); }
.muted { color: var(--muted); }
.danger-text { color: var(--danger); }
.kbd { font: 11px var(--mono); color: var(--faint); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.xs { width: 24px; height: 24px; border-radius: 6px; }
.icon-btn.xs .ic { width: 16px; height: 16px; }
.round-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.round-btn:hover { background: var(--hover); color: var(--text); }
.round-btn.sm { width: 32px; height: 32px; }
.round-btn.sm .ic { width: 16px; height: 16px; }
.round-btn.on { color: var(--warn); }
.round-btn.on .ic { fill: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.btn .ic { width: 16px; height: 16px; }
.btn.pill { border-radius: 999px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { background: var(--danger); color: #2a0b0b; }
.btn.block { width: 100%; height: 46px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }
.link-btn { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-size: 13px; padding: 6px 0; }
.link-btn .ic { width: 15px; height: 15px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

/* ---------- Layout ---------- */
.app {
  display: grid;
  height: 100vh; height: 100dvh;
  grid-template-columns: 260px 350px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "sb top top" "sb list detail";
}
.sidebar { grid-area: sb; }
.topbar { grid-area: top; }
.list-pane { grid-area: list; }
.detail-pane { grid-area: detail; }
.scrim { display: none; }
.only-mobile { display: none !important; }

/* ---------- Sidebar ---------- */
.sidebar { background: var(--sb); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 10px 12px; min-height: 0; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 700; font-size: 15px; }
.brand-logo { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #c4b5fd, #7c3aed); color: #fff; }
.brand-logo .ic { width: 14px; height: 14px; fill: rgba(255, 255, 255, .35); }
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px 10px; }
.sb-title { color: var(--accent); font-weight: 600; font-size: 14.5px; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 10px; cursor: pointer; user-select: none; min-height: 40px; }
.sb-item:hover { background: var(--hover); }
.sb-item.active { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.sb-ic { color: var(--muted); display: grid; place-items: center; }
.sb-ic.colored { color: var(--vc); }
.sb-ic.accent { color: var(--accent); }
.sb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.sb-item .icon-btn.xs { opacity: 0; }
.sb-item:hover .icon-btn.xs, .sb-item.active .icon-btn.xs, .sb-item .icon-btn.xs:focus-visible { opacity: 1; }
.sb-menu-ph { width: 24px; flex: none; }
.sb-spacer { flex: 1; min-height: 16px; }
.sb-section { border-top: 1px solid var(--border); padding-top: 8px; }
.sb-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; }
.sb-row:hover { background: var(--hover); }
.sb-row > span { flex: 1; }
.sb-row .ic { color: var(--muted); }
.sb-row.sm { font-size: 13px; color: var(--muted); padding: 7px 10px 7px 22px; }
.sb-row.sm:hover { color: var(--text); }
.sb-row.sm .ic { width: 16px; height: 16px; }
.chev { transition: transform .2s; }
.chev.up { transform: rotate(180deg); }
.sb-foot { border-top: 1px solid var(--border); margin-top: 8px; padding: 12px 4px 0 8px; display: flex; align-items: center; gap: 8px; }
.sb-acct { flex: 1; display: flex; gap: 10px; align-items: center; color: var(--accent); min-width: 0; }
.acct-name { color: var(--text); font-size: 13px; font-weight: 600; }
.acct-plan { color: var(--muted); font-size: 12px; }

/* ---------- Top bar ---------- */
.topbar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--pane); }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 10px 0 12px; height: 38px; color: var(--muted); min-width: 0; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; color: var(--text); }
.search input::placeholder { color: var(--faint); }
.fab { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); flex: none; }
.fab:hover { filter: brightness(1.08); }

/* ---------- List ---------- */
.list-pane { background: var(--pane); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chips { display: flex; gap: 6px; padding: 10px 12px; align-items: center; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.chip { display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12.5px; white-space: nowrap; flex: none; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent-soft); color: var(--accent); }
.chip .ic { width: 15px; height: 15px; }
.chip-spacer { flex: 1; }
.items { flex: 1; overflow: auto; padding: 0 8px 16px; }
.group-h { font-size: 12px; color: var(--muted); padding: 12px 8px 6px; position: sticky; top: 0; background: var(--pane); z-index: 1; }
.item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px; border-radius: 10px; text-align: left; }
.item:hover { background: var(--hover); }
.item.active { background: var(--surface-2); }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: hsl(var(--h, 260) 42% 30%); color: hsl(var(--h, 260) 90% 86%); font-weight: 700; font-size: 15px; flex: none; }
.avatar .ic { width: 18px; height: 18px; }
.avatar.t-note { --h: 40; }
.avatar.t-card { --h: 195; }
.item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.item-title, .item-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-title { font-weight: 550; }
.item-sub { color: var(--muted); font-size: 12.5px; }
.item { cursor: pointer; }
.fav-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--faint); flex: none; opacity: 0; transition: opacity .15s; }
.fav-btn .ic { width: 15px; height: 15px; }
.fav-btn:hover { color: var(--warn); background: var(--surface-2); }
.fav-btn.on { color: var(--warn); opacity: 1; }
.fav-btn.on .ic { fill: currentColor; }
.item:hover .fav-btn, .vtable tr:hover .fav-btn, .fav-btn:focus-visible { opacity: 1; }
.vtable .t-name { gap: 6px; }
.vtable .t-name .avatar { margin-right: 4px; }
@media (hover: none) { .fav-btn { opacity: 1; } }
.trash-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 4px 0; padding: 8px 12px; background: var(--surface); border-radius: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- Detail ---------- */
.detail-pane { background: var(--detail); overflow: auto; min-width: 0; min-height: 0; }
.detail { max-width: 760px; margin: 0 auto; padding: 22px 26px 48px; }
.d-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.d-title-wrap { flex: 1; min-width: 0; }
.d-title { font-size: 22px; margin: 0; font-weight: 700; word-break: break-word; }
.d-vault { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
.d-vault .ic { width: 14px; height: 14px; }
.d-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.f-row { display: flex; gap: 14px; align-items: center; padding: 12px 16px; }
.f-row + .f-row { border-top: 1px solid var(--border); }
.f-row.copyable { cursor: pointer; }
.f-row.copyable:hover { background: var(--hover); }
.f-ic { color: var(--muted); }
.f-main { flex: 1; min-width: 0; }
.f-label { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; display: block; }
.f-val { word-break: break-all; line-height: 1.45; }
.f-val.sm { font-size: 13px; }
.f-act { display: flex; gap: 6px; align-items: center; flex: none; }
.copy-hint { color: var(--faint); opacity: 0; transition: opacity .15s; }
.copyable:hover .copy-hint { opacity: 1; }
.pd { color: #60a5fa; }
.ps { color: #f472b6; }
.dots { letter-spacing: .18em; }
.note-text { white-space: pre-wrap; word-break: break-word; font-family: inherit; }
.card.meta .f-row { padding: 10px 16px; }
.link-line a { color: var(--accent); text-decoration: none; }
.link-line a:hover { text-decoration: underline; }
.link-line + .link-line { margin-top: 2px; }
.more-btn { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; padding: 6px 4px; margin-bottom: 8px; }
.more-btn:hover { color: var(--text); }
.more-btn .ic { width: 16px; height: 16px; }
.totp-code { font-size: 19px; color: var(--accent); letter-spacing: .08em; }
.totp-ring { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--muted); position: relative; background: conic-gradient(var(--accent) calc(var(--p, 1) * 360deg), var(--surface-2) 0); }
.totp-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); }
.totp-ring span { position: relative; }
.hist { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 13px; }
.hist .mono { flex: 1; min-width: 0; word-break: break-all; }

/* strength meter */
.meter { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 8px; }
.meter i { width: 22px; height: 5px; border-radius: 3px; background: var(--surface-2); }
.meter.s1 i:nth-child(-n+1) { background: var(--danger); }
.meter.s2 i:nth-child(-n+2) { background: #fb923c; }
.meter.s3 i:nth-child(-n+3) { background: var(--warn); }
.meter.s4 i:nth-child(-n+4) { background: #a3e635; }
.meter.s5 i { background: var(--ok); }
.meter-l { font-size: 12px; color: var(--muted); vertical-align: middle; }

/* editor */
.editor .f-row.edit { align-items: flex-start; }
.editor .f-row.edit > .ic { margin-top: 20px; }
.editor .f-row.edit > .f-act { margin-top: 14px; }
.f-row.edit:focus-within { background: rgba(167, 139, 250, .05); }
.f-input { width: 100%; background: transparent; border: 0; outline: 0; padding: 2px 0; font-size: 14.5px; }
.f-input::placeholder { color: var(--faint); }
.f-input.big { font-size: 19px; font-weight: 650; }
select.f-input { appearance: none; cursor: pointer; }
select.f-input option { background: var(--surface); }
textarea.f-input { resize: vertical; min-height: 84px; line-height: 1.5; }
.ed-kicker { font-size: 19px; font-weight: 700; padding-top: 6px; }
.ed-strength { padding: 0 16px 12px 48px; }
.ed-strength:empty { display: none; }
.url-line { display: flex; gap: 6px; align-items: center; padding: 3px 0; }
.url-line + .url-line { border-top: 1px dashed var(--border); }

/* vault table */
.detail.wide { max-width: 1100px; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow-x: auto; }
.vtable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.vtable th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.vtable td { padding: 8px 14px; border-top: 1px solid var(--border); vertical-align: middle; max-width: 260px; }
.vtable tbody tr:first-child td { border-top: 0; }
.vtable tbody tr { cursor: pointer; }
.vtable tbody tr:hover { background: var(--hover); }
.vtable .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.t-name { display: flex; align-items: center; gap: 10px; font-weight: 550; min-width: 0; }
.t-name span:last-child, .t-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.t-cell { display: flex; align-items: center; gap: 2px; min-width: 0; }
.t-text { flex: 0 1 auto; margin-right: 4px; }
a.t-text { color: var(--accent); text-decoration: none; }
a.t-text:hover { text-decoration: underline; }
.t-more { font-size: 12px; margin-left: 4px; }
.vtable .icon-btn.xs { opacity: .55; }
.vtable tr:hover .icon-btn.xs, .vtable .icon-btn.xs:focus-visible { opacity: 1; }

/* empty states */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 48px 24px; color: var(--muted); min-height: 100%; }
.empty .big-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty .big-ic .ic { width: 30px; height: 30px; }
.empty h3 { color: var(--text); margin: 6px 0 0; font-size: 17px; }
.empty p { margin: 0; max-width: 340px; line-height: 1.5; }
.empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.items .empty { padding: 48px 12px; min-height: auto; }

/* ---------- Popover ---------- */
.popover { position: fixed; z-index: 50; min-width: 210px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; background: #262235; border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.menu-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 13.5px; }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.menu-item > span { flex: 1; }
.menu-item > .ic:first-child { color: var(--muted); }
.menu-item.danger, .menu-item.danger > .ic:first-child { color: var(--danger); }
.menu-item .menu-check { color: var(--accent); }
.menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.menu-h { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 8px 10px 4px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 6, 14, .6); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 60; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 420px; background: var(--sb); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); max-height: calc(100dvh - 32px); overflow: auto; animation: pop .18s; }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { line-height: 1.5; margin: 0; font-size: 13.5px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-h h3 { margin: 0; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.fld { display: block; margin-top: 14px; }
.fld > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.inp { width: 100%; height: 42px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; outline: none; }
.inp:focus { border-color: var(--accent); }
select.inp { cursor: pointer; }
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch, .icon-pick { position: relative; }
.swatch input, .icon-pick input, .toggle input { position: absolute; opacity: 0; pointer-events: none; }
.swatch i { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); outline: 2px solid transparent; outline-offset: 2px; cursor: pointer; }
.swatch input:checked + i { outline-color: var(--text); }
.swatch input:focus-visible + i { outline-color: var(--accent); }
.icon-pick i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-pick input:checked + i { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.icon-pick input:focus-visible + i { outline: 2px solid var(--accent); }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; text-align: left; }
.gen-out { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.gen-pw { flex: 1; font-family: var(--mono); font-size: 17px; word-break: break-all; line-height: 1.45; min-height: 25px; }
.gen-strength { margin: 10px 0 4px; min-height: 18px; }
.gen-row { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 13px; }
.gen-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.range { width: 100%; accent-color: var(--accent); margin: 8px 0 6px; }
.toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); cursor: pointer; font-size: 13.5px; }
.toggle i { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-2); position: relative; transition: .2s; flex: none; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { left: 19px; background: #fff; }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 80; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #2b2640; border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); display: flex; gap: 8px; align-items: center; animation: pop .18s; font-size: 13.5px; }
.toast .ic { color: var(--ok); width: 16px; height: 16px; }
.toast.error { border-color: rgba(248, 113, 113, .5); }
.toast.error .ic { color: var(--danger); }
.toast.out { opacity: 0; transition: opacity .3s; }

/* ---------- Lock screen ---------- */
.lock { height: 100vh; height: 100dvh; overflow: auto; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 560px at 50% -10%, rgba(139, 92, 246, .28), transparent 60%), var(--bg); }
.lock-card { width: 100%; max-width: 400px; background: rgba(28, 26, 38, .88); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px 26px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.brand-mark { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, #c4b5fd, #7c3aed); color: #fff; box-shadow: 0 10px 30px rgba(124, 58, 237, .45); }
.brand-mark .ic { width: 28px; height: 28px; fill: rgba(255, 255, 255, .3); }
.lock-card h1 { font-size: 22px; margin: 0 0 8px; }
.lock-card > p.muted { line-height: 1.5; margin: 0 0 20px; font-size: 13.5px; }
.pw-input { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 6px 0 14px; margin-bottom: 10px; }
.pw-input:focus-within { border-color: var(--accent); }
.pw-input input { flex: 1; min-width: 0; height: 46px; background: none; border: 0; outline: 0; font-size: 15px; }
.lock-card .strength { text-align: left; margin: -2px 0 10px 2px; min-height: 16px; }
.lock-card .form-error { margin: 0 0 12px; }
.lock-note { color: var(--warn); font-size: 13px; margin: -8px 0 14px; }
.fine { font-size: 11.5px; color: var(--faint); margin: 18px 0 0; display: flex; gap: 6px; align-items: flex-start; justify-content: center; line-height: 1.5; text-align: left; }
.fine .ic { width: 14px; height: 14px; margin-top: 2px; }
.lock-card .link-btn { margin-top: 12px; color: var(--muted); }

@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 220px 300px minmax(0, 1fr); }
  .kbd { display: none; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top" "list"; }
  .app[data-view="detail"] { grid-template-rows: minmax(0, 1fr); grid-template-areas: "detail"; }
  .app[data-view="detail"] .topbar, .app[data-view="detail"] .list-pane, .app[data-view="list"] .detail-pane { display: none; }
  .list-pane { border-right: 0; }
  .only-mobile { display: inline-grid !important; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform .25s ease; }
  .app.drawer-open .sidebar { transform: none; }
  .app.drawer-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 39; }
  .topbar { padding: 10px 12px; }
  .detail { padding: 14px 16px 40px; }
  .d-head { gap: 8px; }
  .d-title { font-size: 19px; }
  .btn.pill.hide-sm-text span { display: none; }
  .copy-hint { opacity: 1; }
  .sb-item .icon-btn.xs { opacity: 1; }
}
