/* Password Manager — hand-written stylesheet (no build step; shipped as-is). */

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #f3f5f8;
    --border: #e6e8ec;
    --border-strong: #d6dae1;
    --text: #10131a;
    --muted: #6b7280;
    --faint: #9aa2ad;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-soft: #eef1ff;
    --danger: #d92d20;
    --danger-soft: #fef3f2;
    --ok: #12b76a;
    --ok-soft: #ecfdf3;
    --warn: #b26a00;
    --warn-soft: #fff6ea;
    --radius: 10px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 4px 14px rgba(16, 24, 40, .08);
    --shadow-lg: 0 16px 48px rgba(16, 24, 40, .18);
    --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- forms & buttons */

.field { display: block; margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text); }

.input, select.input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 76px; }
input[type="file"].input { height: auto; padding: 12px; text-align: center; cursor: pointer; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .14); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 15px;
    font-size: 14px; font-weight: 600; font-family: inherit; white-space: nowrap;
    color: #fff; background: var(--accent);
    border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
    transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }

/* secondary = white with border */
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }
/* ghost = transparent */
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b42318; }

/* compact square icon button */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; min-width: 34px; padding: 0 9px;
    font-size: 13px; color: var(--muted);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    cursor: pointer; transition: border-color .12s, color .12s, background .12s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }

.alert { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 13.5px; margin-bottom: 14px; border: 1px solid #fecdca; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.perm { background: var(--surface-2); color: var(--muted); text-transform: capitalize; }
.badge.weak { background: var(--danger-soft); color: var(--danger); }
.badge.fair { background: var(--warn-soft); color: var(--warn); }
.badge.good { background: #eaf1ff; color: #2563eb; }
.badge.strong { background: var(--ok-soft); color: var(--ok); }

/* ---------------------------------------------------------------- auth screen */

.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
    width: 100%; max-width: 396px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow); padding: 32px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 21px; }
.auth-card .lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-weight: 700; font-size: 17px; }
.brand-mark {
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(135deg, #6366f1, #4f46e5); font-size: 14px;
}
/* Logo dropped into public/images/logo.png (falls back to .brand-mark when absent). */
.brand-logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; flex: none; border-radius: 7px; }
.sidebar .brand .brand-logo { height: 26px; }

.auth-alt { margin: 16px 0 0; font-size: 14px; text-align: center; }
.recovery-box { margin: 6px 0 16px; padding: 14px; border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.recovery-box .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.recovery-code { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .5px; word-break: break-all; margin: 8px 0 0; }

/* ---------------------------------------------------------------- app shell */

.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px; flex: none;
    background: var(--surface); border-right: 1px solid var(--border);
    padding: 18px 14px; display: flex; flex-direction: column;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; margin-bottom: 22px; padding: 4px 6px; }
.nav-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); font-weight: 600; margin: 16px 8px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-weight: 500; }
.nav-item i { width: 16px; text-align: center; color: var(--faint); }
.nav-item:hover { background: var(--surface-2); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item.active i { color: var(--accent); }
.nav-item.disabled { color: var(--faint); cursor: default; }
.nav-item.disabled:hover { background: transparent; }

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px; margin-bottom: 8px; }
.side-user .u-meta { min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #818cf8, #4f46e5); }
.side-user .u-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .u-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }

.main { flex: 1; padding: 26px 30px; max-width: 1160px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.mw-420 { max-width: 420px; }
.locked-title { margin: 0 0 6px; font-size: 18px; }
.locked-title i { color: var(--accent); margin-right: 6px; }

/* ---------------------------------------------------------------- vault manager */

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.toolbar .spacer { flex: 1; }
.toolbar h1 { margin: 0; font-size: 21px; }
.toolbar h2 { margin: 0; font-size: 18px; }

.vault-layout { display: grid; grid-template-columns: 268px 1fr; gap: 22px; align-items: start; }
.panel-title { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); font-weight: 600; margin: 0 4px 8px; }

.vault-list { display: flex; flex-direction: column; gap: 3px; }
.vault-row {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid transparent;
    cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; width: 100%;
    font-family: inherit;
}
.vault-row i { width: 16px; text-align: center; color: var(--faint); }
.vault-row:hover { background: var(--surface-2); }
.vault-row.active { background: var(--accent-soft); color: var(--accent); }
.vault-row.active i { color: var(--accent); }
.vault-row .count { margin-left: auto; font-weight: 500; color: var(--faint); font-size: 12px; }

.item-list { display: flex; flex-direction: column; gap: 7px; }
.folder-head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; margin: 16px 2px 3px; }
.folder-head i { color: var(--faint); }

.item-row {
    display: flex; align-items: center; gap: 13px;
    padding: 11px 14px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .04s;
}
.item-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.item-row:active { transform: translateY(1px); }
.item-row .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; font-size: 15px; }
.item-row .meta { min-width: 0; flex: 1; }
.item-row .title { font-weight: 600; font-size: 14px; }
.item-row .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-row .chev { color: var(--faint); font-size: 12px; }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.empty i { font-size: 22px; color: var(--faint); display: block; margin-bottom: 10px; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .5); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 20px 20px; z-index: 50; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 24px; max-height: 84vh; overflow: auto; }
.modal h3 { margin: 0 0 18px; font-size: 18px; }
.modal-actions { display: flex; gap: 8px; align-items: center; margin-top: 22px; }
.modal-actions .spacer { flex: 1; }

/* copyable field row in the item detail */
.kv { margin-bottom: 14px; }
.kv > label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.kv .val { display: flex; align-items: center; gap: 8px; }
.kv .val .text { flex: 1; font-size: 14px; word-break: break-all; }
.kv .val .text.mono { font-family: var(--mono); font-size: 13.5px; }

@media (max-width: 780px) {
    .sidebar { display: none; }
    .vault-layout { grid-template-columns: 1fr; }
    .main { padding: 20px 16px; }
}

/* ---------------------------------------------------------------- table (members) */

.table-card { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table .sel-role { height: 34px; width: auto; min-width: 110px; padding: 0 8px; font-size: 13px; }
.table td.cell-actions { text-align: right; white-space: nowrap; width: 1%; }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }

/* ---------------------------------------------------------------- share modal */

.share-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.share-row .meta { flex: 1; min-width: 0; }
.share-row .meta .title { font-weight: 600; font-size: 14px; }
.share-row .meta .sub { font-size: 12.5px; color: var(--muted); }
.share-row .input.sm, .share-add-row .input.sm { height: 34px; width: auto; min-width: 92px; padding: 0 8px; font-size: 13px; }
.share-add { border-top: 1px solid var(--border); padding-top: 14px; }
.share-add-row { display: flex; gap: 8px; align-items: center; }
.share-add-row .input { flex: 1; }

/* ---------------------------------------------------------------- rich item + folder nav */

.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: none; font-family: inherit; font-size: 18px; font-weight: 700; color: var(--text); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.crumb:hover { background: var(--surface-2); }
.crumb i { color: var(--faint); font-size: 15px; }
.crumb-sep { color: var(--faint); font-size: 12px; }

.item-row .ico.folder { background: #fff4d6; color: #d99a00; }
.item-row.folder .title { font-weight: 600; }
.item-row .title .dot, .modal h3 .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: middle; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.note-box { white-space: pre-wrap; font-size: 14px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }

/* color swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.swatch.none { background: var(--surface-2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; border: 1px solid var(--border-strong); }

/* item field editor rows */
.field-row { display: flex; gap: 6px; align-items: center; margin-bottom: 7px; }
.field-row .input.sm.label { width: 120px; flex: none; height: 38px; }
.field-row .input.value { flex: 1; height: 38px; }
.field-row .icon-btn { height: 38px; }
.add-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------------------------------------------------------------- password generator */

.gen-preview { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.gen-preview .mono { flex: 1; font-family: var(--mono); font-size: 15px; word-break: break-all; }
.gen-strength { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.gen-strength .bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.gen-strength .bar > div { height: 100%; border-radius: 999px; transition: width .15s, background .15s; }
.gen-strength .bar > div.weak { background: var(--danger); }
.gen-strength .bar > div.fair { background: #e5891a; }
.gen-strength .bar > div.good { background: #3b82f6; }
.gen-strength .bar > div.strong { background: var(--ok); }
.gen-strength span { font-size: 13px; white-space: nowrap; }
.gen-opts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.gen-opts .check { font-size: 13px; }
input[type=range] { width: 100%; accent-color: var(--accent); }

/* ---------------------------------------------------------------- password health */

.health-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.health-grid .stat { display: flex; align-items: center; gap: 12px; padding: 16px; }
.stat-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.stat-ico.muted { background: var(--surface-2); color: var(--muted); }
.stat-ico.ok { background: var(--ok-soft); color: var(--ok); }
.stat-ico.weak { background: var(--danger-soft); color: var(--danger); }
.stat-ico.fair { background: var(--warn-soft); color: var(--warn); }
.stat-ico.good { background: #eaf1ff; color: #3b82f6; }
.stat-n { font-size: 22px; font-weight: 700; line-height: 1.1; }
.stat-l { font-size: 12.5px; color: var(--muted); }

.health-section { margin-bottom: 26px; }
.health-head { margin-bottom: 10px; }
.health-head h3 { margin: 0 0 2px; font-size: 16px; }
.health-head p { margin: 0; font-size: 13px; }
.health-list { display: flex; flex-direction: column; }
.health-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.health-row:last-child { border-bottom: none; }
.health-row .meta { flex: 1; min-width: 0; }
.health-row .meta .title { font-weight: 600; font-size: 14px; }
.health-row .meta .sub { font-size: 12.5px; color: var(--muted); }
.reuse-head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px 4px; }
.reuse-gap { height: 8px; background: var(--surface-2); }
.ok-empty { color: var(--ok); border-color: #b7ebce; }
.ok-empty i { color: var(--ok); }

@media (max-width: 780px) { .health-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- audit log */

.audit-note { margin: -8px 0 18px; font-size: 13px; }
.audit-act { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.stat-ico.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.table td.nowrap, .table .nowrap { white-space: nowrap; }
.empty-cell { text-align: center; color: var(--muted); padding: 40px 16px; }

/* ---------------------------------------------------------------- auth split (login) */

.auth-split { display: flex; min-height: 100vh; }

.brand-panel {
    flex: 1; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px; color: #fff;
    background: linear-gradient(150deg, #3730a3 0%, #4f46e5 55%, #818cf8 100%);
}
.brand-panel::before, .brand-panel::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.brand-panel::before { width: 340px; height: 340px; top: -80px; left: -90px; }
.brand-panel::after { width: 460px; height: 460px; bottom: -140px; right: -120px; }
.brand-panel-inner { position: relative; z-index: 1; text-align: center; max-width: 420px; }
/* Brand logo on a single white card — real colours, readable on the dark panel. */
.auth-logo-card { display: inline-block; margin: 0 auto 32px; padding: 22px 30px; background: #fff; border-radius: 20px; box-shadow: 0 14px 34px rgba(0, 0, 0, .2); }
.auth-logo { height: 40px; width: auto; display: block; }
.auth-wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 36px; }
.auth-hero-box {
    width: 128px; height: 128px; margin: 0 auto 28px; background: #fff; border-radius: 30px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.auth-hero-box svg { width: 68px; height: 68px; }
.auth-tagline { font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.auth-sub { font-size: 15px; line-height: 1.6; opacity: .9; margin: 0; }
.auth-copyright { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .75); z-index: 1; }

.form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.form-panel-inner { width: 100%; max-width: 340px; }
.form-panel h1 { font-size: 28px; margin: 0 0 6px; color: var(--text); }
.auth-hello { color: var(--muted); margin: 0 0 28px; font-size: 15px; }

.auth-input {
    display: block; width: 100%; margin-bottom: 14px; padding: 13px 15px;
    border: 1px solid transparent; border-radius: 10px; background: #eef1fb;
    font-size: 15px; font-family: inherit; color: var(--text);
}
.auth-input::placeholder { color: #9aa2b1; }
.auth-input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .14); }
.form-panel .pw-wrap .auth-input { padding-right: 44px; margin-bottom: 0; }
.form-panel .remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 16px 0 20px; }
.form-panel .remember input[type="checkbox"] { width: auto; flex: none; margin: 0; accent-color: var(--accent); }
.auth-submit { width: 100%; padding: 13px; border: none; border-radius: 10px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.auth-submit:hover { background: var(--accent-hover); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-panel .alert { margin-bottom: 16px; }

.pw-wrap { position: relative; display: block; }
.pw-toggle {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 2px; line-height: 0; color: var(--faint); display: inline-flex;
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye { display: none; }
.pw-toggle.on .eye-off { display: inline; }

@media (max-width: 820px) {
    .auth-split { flex-direction: column; }
    .brand-panel { flex: none; padding: 32px 24px 44px; }
    .auth-copyright { position: static; margin-top: 24px; }
    .form-panel { flex: none; }
}

/* ---------------------------------------------------------------- profile / misc */

.alert.ok-alert { background: var(--ok-soft); color: var(--ok); border-color: #b7ebce; }
.mw-560 { max-width: 560px; }
.card.stack { display: block; }
.card .card-h { font-size: 16px; margin: 0 0 14px; }
.card .card-h.gap-top { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.card .sub { margin: -8px 0 14px; font-size: 13px; }
.side-user { text-decoration: none; border-radius: var(--radius-sm); }
.side-user:hover { background: var(--surface-2); text-decoration: none; }
.side-user.active { background: var(--accent-soft); }
.side-user.active .u-name { color: var(--accent); }
