:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1d2433;
  --ink-2: #4b5466;
  --muted: #7a8293;
  --line: #e6e1d6;
  --navy: #1e3a5f;
  --gold: #e2a93b;
  --gold-soft: #fbf1dc;
  --primary: #1e3a5f;
  --primary-ink: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #9a6200;
  --warn-soft: #fff4dc;
  --ok: #157347;
  --ok-soft: #e5f4ec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 16px rgba(20, 30, 50, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161f; --surface: #1a202b; --surface-2: #202735; --ink: #e8ebf1; --ink-2: #b9c0cd;
    --muted: #8a93a3; --line: #2c3442; --navy: #9fbbe0; --gold: #f0bd5a; --gold-soft: #2f2715;
    --primary: #f0bd5a; --primary-ink: #1a1405; --danger: #ff8a7a; --danger-soft: #3a1d1a;
    --warn: #f3c162; --warn-soft: #33290f; --ok: #6fd39e; --ok-soft: #15301f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 550;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.icon { width: 36px; height: 36px; padding: 0; font-size: 18px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px 0; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------ forms */
label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
input:not([type=checkbox]), select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); font-size: 15px; font-weight: 400; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea { resize: vertical; min-height: 70px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 16px 0; }
.hint { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }
.form-error { color: var(--danger); font-size: 13.5px; min-height: 0; margin: 0 0 10px; }
.form-error:empty { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row { display: flex; align-items: center; }
.gap { gap: 8px; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------ brand */
.lock-mark {
  display: inline-block; width: 26px; height: 26px; border-radius: 7px; background: var(--navy); position: relative; flex: none;
}
.lock-mark::before {
  content: ""; position: absolute; left: 8px; top: 4px; width: 10px; height: 9px;
  border: 2.2px solid var(--gold); border-bottom: 0; border-radius: 6px 6px 0 0;
}
.lock-mark::after {
  content: ""; position: absolute; left: 6px; top: 12px; width: 14px; height: 10px; background: var(--gold); border-radius: 2px;
}
@media (prefers-color-scheme: dark) { .lock-mark { background: #2a4670; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand-lg { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 22px; }

/* ------------------------------------------------------------ auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 22px; margin-bottom: 8px; }
.auth-card .muted { margin: 0 0 18px; font-size: 14px; }
.rk {
  font-family: var(--mono); font-size: 19px; letter-spacing: .06em; text-align: center; padding: 16px 10px;
  background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 10px; margin-bottom: 12px; word-break: break-all;
}

/* ------------------------------------------------------------ app shell */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.search { flex: 1; max-width: 520px; }
.search input { background: var(--surface); }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: 42px; min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 20;
}
.menu-pop button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 7px; cursor: pointer; }
.menu-pop button:hover { background: var(--surface-2); }

.layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 61px); }
.sidebar { border-right: 1px solid var(--line); padding: 16px 12px; }
.sidebar ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.member-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.member-btn:hover { background: var(--surface-2); }
.member-btn[aria-current="true"] { background: var(--surface); box-shadow: var(--shadow); font-weight: 650; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 700; font-size: 13px;
}
.avatar.all { background: var(--navy); color: var(--surface); }
.member-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; }
.dot.soon { background: var(--gold); }

.main { padding: 24px 28px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* checklist */
.checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.chip.have { background: var(--ok-soft); border-color: transparent; color: var(--ok); cursor: default; }
.chip.missing { border-style: dashed; color: var(--ink-2); }
.chip.missing:hover { border-color: var(--gold); color: var(--ink); }

/* alerts */
.alerts { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 22px; }
.alerts h3 { font-size: 14px; color: var(--warn); margin-bottom: 6px; }
.alerts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.alerts li button { background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left; color: var(--ink); }
.alerts li button:hover { text-decoration: underline; }

/* sections + cards */
.section { margin-bottom: 28px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--ink-2); }
.section-title .avatar { width: 24px; height: 24px; font-size: 11px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-1px); }
.card-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card-top .ico { font-size: 18px; }
.card-top .type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h3 { font-size: 16px; font-weight: 650; }
.num { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.num button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 12px; padding: 2px 4px; border-radius: 5px; font-family: var(--font); }
.num button:hover { background: var(--surface-2); color: var(--ink); }
.card-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: auto; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.badge.expired { background: var(--danger-soft); color: var(--danger); }
.badge.soon { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty h2 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }

/* ------------------------------------------------------------ modal */
dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
dialog.wide { width: min(1100px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(15, 20, 30, .5); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 18px 20px 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* dropzone */
.drop {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted);
  cursor: pointer; margin-bottom: 12px; background: var(--surface-2);
}
.drop.over { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }
.drop strong { color: var(--ink); }
.pending { list-style: none; padding: 0; margin: -4px 0 12px; display: grid; gap: 4px; }
.pending li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 10px; background: var(--surface-2); border-radius: 7px; }
.pending li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* viewer */
.viewer { display: grid; grid-template-columns: 1fr 320px; gap: 18px; min-height: 60vh; }
.preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; overflow: hidden; min-height: 60vh; }
.preview iframe { width: 100%; height: 70vh; border: 0; background: #fff; }
.preview img { max-width: 100%; max-height: 70vh; object-fit: contain; }
.preview .nopreview { text-align: center; color: var(--muted); padding: 30px; }
.details dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; word-break: break-word; }
.details .notes { white-space: pre-wrap; font-size: 14px; background: var(--surface-2); padding: 10px; border-radius: 8px; margin-bottom: 14px; }
.file-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
.file-list li { display: flex; align-items: center; gap: 6px; }
.file-list .fname {
  flex: 1; min-width: 0; text-align: left; background: none; border: 1px solid transparent; padding: 7px 9px; border-radius: 8px;
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px;
}
.file-list .fname:hover { background: var(--surface-2); }
.file-list .fname[aria-current="true"] { border-color: var(--gold); background: var(--gold-soft); }
.file-list .size { font-size: 12px; color: var(--muted); white-space: nowrap; }
.stack { display: grid; gap: 8px; }
h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* selection */
.wrap { flex-wrap: wrap; }
.pick {
  width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--muted); background: var(--surface);
  display: grid; place-items: center; padding: 0; cursor: pointer; font: 700 12px/1 var(--font); color: var(--primary-ink);
  transition: background .12s, border-color .12s;
}
.pick:hover:not(:disabled) { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.pick.on { background: var(--primary); border-color: var(--primary); }
.pick:disabled { opacity: .3; cursor: not-allowed; }
.card.selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.selbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30;
  width: min(760px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 10px 40px rgba(15, 20, 30, .22); padding: 10px 12px 10px 18px;
}
.selbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sel-info { font-size: 14.5px; }
body.has-sel .main { padding-bottom: 120px; }
body.has-sel .toast { bottom: 100px; }
.arrange { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.arrange li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.arr-n { width: 22px; height: 22px; border-radius: 6px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.arr-ico { font-size: 18px; }
.arr-t { flex: 1; min-width: 0; display: grid; }
.arr-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* tabs */
.tabs { display: flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex: none; }
.tab { padding: 6px 12px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.hint.flush { margin: 6px 0 0; }
.auth-alt { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
a.btn { text-decoration: none; }

/* passwords */
.pw-main { padding: 28px 20px 60px; }
.pw-center { max-width: 760px; margin: 0 auto; text-align: center; }
.pw-center > h1 { font-size: 26px; margin: 10px 0 6px; letter-spacing: -.02em; }
.pw-center > p { margin: 0 auto 22px; max-width: 520px; }
.pw-note { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; text-align: left; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.who {
  display: grid; justify-items: center; gap: 8px; padding: 22px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.who:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.small { font-size: 12.5px; }
.pw-card { margin: 0 auto; text-align: left; }
.who-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.who-head h1 { font-size: 22px; margin: 0; }
.pw-list { max-width: 980px; margin: 0 auto; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px auto; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer;
}
.entry:hover { border-color: var(--gold); }
.e-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; }
.e-main { display: grid; min-width: 0; }
.e-main strong, .e-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-main span { font-size: 13px; }
.e-pw { font-family: var(--mono); font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-actions { display: flex; gap: 2px; }
.pw-field { display: flex; gap: 6px; }
.pw-field input { font-family: var(--mono); }
.meter { font-size: 12px; font-weight: 700; }
.meter.weak { color: var(--danger); }
.meter.ok { color: var(--warn); }
.meter.strong { color: var(--ok); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: .2s; z-index: 100; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); color: #fff; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .viewer { grid-template-columns: 1fr; }
  .preview, .preview iframe { min-height: 45vh; height: 50vh; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  #btn-add { padding: 8px 12px; }
  .layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; }
  .sidebar ul { display: flex; margin: 0; gap: 6px; }
  .member-btn { white-space: nowrap; padding: 6px 10px; }
  .member-btn .count { display: none; }
  .sidebar > .btn { white-space: nowrap; flex: none; }
  .main { padding: 18px 16px 50px; }
  .grid-2 { grid-template-columns: 1fr; }
  .tabs { order: 2; margin-left: auto; }
  .topbar .search { order: 4; }
  #btn-add, #pw-add { font-size: 0; padding: 0; width: 36px; height: 36px; }
  #btn-add::before, #pw-add::before { content: "+"; font-size: 20px; }
  .top-actions { order: 3; margin-left: 0; }
  .brand > span:last-child { display: none; }
  .pw-main { padding: 18px 16px 50px; }
  .pw-list .page-head h1 { font-size: 21px; }
  .pw-list .page-head .avatar { width: 36px !important; height: 36px !important; font-size: 14px !important; }
  .entry { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .e-ico { width: 36px; height: 36px; }
  .e-pw { display: none; }
  .e-actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .selbar { bottom: 10px; padding: 10px 12px; }
  .selbar-inner .row { width: 100%; }
  .selbar-inner .btn.primary { flex: 1; }
  body.has-sel .main { padding-bottom: 150px; }
  body.has-sel .toast { bottom: 140px; }
}

@media print {
  body * { visibility: hidden; }
  .rk, .rk * { visibility: visible; }
  .rk { position: absolute; top: 40px; left: 0; right: 0; }
}

/* ---- personal logins ---- */
.setup-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: 12px 16px 0; padding: 12px 14px; border-radius: 10px; background: #fff7e6; border: 1px solid #f1d8a8; font-size: 14px; }
.menu-who { margin: 0; padding: 8px 12px 6px; font-size: 12px; color: #6b7280; border-bottom: 1px solid #eee; white-space: nowrap; }
.users { display: grid; gap: 8px; margin: 4px 0 14px; padding: 0; list-style: none; }
.users li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; }
.users .lg-who { flex: 1 1 200px; min-width: 0; }
.users .lg-who b { display: block; }
.users .lg-who span { color: #6b7280; font-size: 13px; overflow-wrap: anywhere; }
.users .lg-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #eef2ff; color: #3730a3; margin-left: 6px; }
.users .lg-tag.off { background: #fee2e2; color: #991b1b; }
.users .lg-tag.wait { background: #fef3c7; color: #92400e; }
.users .lg-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.linkbox { display: flex; gap: 8px; margin: 8px 0; }
.linkbox input { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.section-title { margin: 14px 0 6px; font-size: 14px; font-weight: 700; }
#login-forgot-user { margin-top: 12px; }

/* households */
.menu-who small { display: block; font-weight: 400; color: var(--muted, #6b7280); margin-top: 2px; }
.link.inline { padding: 0; font: inherit; }
.lg-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin: 0; }
.lg-link select { padding: 4px 6px; font-size: 13px; width: auto; }
