/* HabiTech brand: navy #0F172A / #1E293B, slate #475569 / #64748B, teal #0D9488 / #0F766E / #14B8A6, wash #F0FDFA, canvas #F8FAFC */
:root {
  --bg: #F8FAFC; --surface: #ffffff; --surface-2: #F8FAFC; --surface-3: #F1F5F9; --border: #E2E8F0;
  --text: #0F172A; --muted: #475569; --faint: #64748B;
  --primary: #0D9488; --primary-dark: #0F766E; --primary-soft: #F0FDFA; --primary-ink: #ffffff;
  --side: #0F172A; --side-2: #1E293B; --side-text: #CBD5E1; --side-active: #ffffff; --side-accent: #14B8A6;
  --good: #16794a; --good-soft: #e3f4ea; --warn: #9a5b00; --warn-soft: #fff3dc; --bad: #b42318; --bad-soft: #fde8e6;
  --info: #3a55b4; --info-soft: #e8ecfa; --violet: #6b46c1; --violet-soft: #efe9fb;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 12px; --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --c1: #0D9488; --c2: #0F172A; --c3: #F59E0B; --c4: #14B8A6; --c5: #475569;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141c; --surface: #171e29; --surface-2: #1c2431; --surface-3: #222c3b; --border: #2b3647;
    --text: #e5eaf2; --muted: #9aa7bb; --faint: #6f7d92;
    --primary: #14B8A6; --primary-dark: #0D9488; --primary-soft: #0f2a2a; --primary-ink: #04201d;
    --side: #0a0f1a; --side-2: #1E293B; --side-text: #94A3B8;
    --good: #4cc38a; --good-soft: #15291f; --warn: #f0b75a; --warn-soft: #2f2511; --bad: #ff8c80; --bad-soft: #341716;
    --info: #9fb2ff; --info-soft: #1c2440; --violet: #b69cff; --violet-soft: #251d3b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #fff; padding: 3px; }
.brand-name { color: #fff; font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--side-text); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nav { padding: 6px 10px 16px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-group-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #6d7a96; padding: 0 10px 6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); font-weight: 500; }
.nav-link:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--side-2); color: var(--side-active); box-shadow: inset 3px 0 0 var(--side-accent); }
.nav-link svg { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.nav-badge { margin-left: auto; background: var(--side-accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.sidebar-foot { font-size: 11px; color: #5d6a86; padding: 12px 20px 18px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.crumbs { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs b { color: var(--text); font-weight: 600; }
.search { position: relative; margin-left: auto; width: min(320px, 40vw); }
.search input { width: 100%; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.search-results { position: absolute; top: 40px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.search-results a { display: block; padding: 8px 12px; color: var(--text); border-bottom: 1px solid var(--border); }
.search-results a:hover { background: var(--surface-2); text-decoration: none; }
.acting { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.acting select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: var(--surface-3); }
.menu-btn { display: none; }
.view { padding: 22px 24px 48px; max-width: 1400px; width: 100%; margin: 0 auto; }
.loading { color: var(--muted); padding: 60px; text-align: center; }

/* ---------- page furniture ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .spacer { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; }
.card-head h2 { font-size: 14px; font-weight: 600; margin: 0; }
.card-head .spacer { flex: 1; }
.card.flush { padding: 0; }
.card.flush .card-head { padding: 16px 18px 0; }
.grid { display: grid; gap: 18px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid > .card { margin-bottom: 0; }

.kpi { display: flex; gap: 14px; align-items: center; }
.kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 44px; }
.kpi-icon svg { width: 22px; height: 22px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 500; }
.kpi .value { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.kpi .sub { color: var(--muted); font-size: 12px; }
.tone-blue { background: var(--primary-soft); color: var(--primary); }
.tone-green { background: var(--good-soft); color: var(--good); }
.tone-amber { background: var(--warn-soft); color: var(--warn); }
.tone-violet { background: var(--violet-soft); color: var(--violet); }
.tone-red { background: var(--bad-soft); color: var(--bad); }

/* ---------- buttons & forms ---------- */
.btn { font: inherit; font-weight: 600; font-size: 13px; border-radius: 8px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.success { background: var(--good); border-color: var(--good); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: -1px; border-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; }
.field.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.form-section { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; grid-column: 1 / -1; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.form-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.days-pick { display: flex; gap: 4px; flex-wrap: wrap; }
.days-pick label { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: var(--surface-2); }
tr.total td { font-weight: 600; background: var(--surface-2); }
.cell-main { font-weight: 600; }
.cell-sub { color: var(--muted); font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }
table.grid-edit input[type=number] { width: 64px; padding: 4px 6px; }
table.grid-edit select { padding: 4px 6px; }
table.grid-edit td { padding: 5px 8px; }
tr.row-rest td { background: color-mix(in srgb, var(--surface-3) 60%, transparent); }
tr.row-holiday td { background: color-mix(in srgb, var(--warn-soft) 70%, transparent); }
tr.row-leave td { background: color-mix(in srgb, var(--info-soft) 70%, transparent); }

/* ---------- pills, avatars, progress ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.p-green { background: var(--good-soft); color: var(--good); }
.p-amber { background: var(--warn-soft); color: var(--warn); }
.p-red { background: var(--bad-soft); color: var(--bad); }
.p-blue { background: var(--primary-soft); color: var(--primary); }
.p-violet { background: var(--violet-soft); color: var(--violet); }
.p-grey { background: var(--surface-3); color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; flex: 0 0 34px; color: #fff; }
.avatar.lg { width: 64px; height: 64px; flex-basis: 64px; font-size: 22px; }
.person { display: flex; align-items: center; gap: 10px; }
.progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

/* ---------- tabs & stepper ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.stepper { display: flex; gap: 0; margin: 4px 0 2px; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--faint); position: relative; }
.step:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border); margin: 0 10px; }
.step .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border); background: var(--surface); font-size: 11px; flex: 0 0 24px; }
.step.done { color: var(--good); }
.step.done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.step.done:not(:last-child)::after { background: var(--good); }
.step.current { color: var(--primary); }
.step.current .dot { border-color: var(--primary); color: var(--primary); }
.step.bad { color: var(--bad); }
.step.bad .dot { border-color: var(--bad); background: var(--bad); color: #fff; }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; font-size: 22px; font-weight: 600; }
.profile-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 6px; }
dl.facts { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 8px 12px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: 12.5px; }
dl.facts dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.balance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.balance { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface-2); }
.balance .b-name { font-size: 12px; color: var(--muted); font-weight: 600; }
.balance .b-val { font-size: 22px; font-weight: 600; }
.balance .b-sub { font-size: 11.5px; color: var(--muted); }

/* ---------- charts ---------- */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding: 8px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, var(--side-accent), var(--primary-dark)); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.bar-val { font-size: 11px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.bar-lbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.hbar .track { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 999px; }
.stat-list { display: grid; gap: 10px; }
.stat-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.stat-row .s-label { font-weight: 600; }
.stat-row .s-sub { color: var(--muted); font-size: 12px; }
.stat-row .s-val { margin-left: auto; text-align: right; font-family: var(--mono); font-weight: 600; }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.activity li:last-child { border-bottom: 0; }
.activity .when { color: var(--faint); font-size: 11.5px; white-space: nowrap; margin-left: auto; }
.alert { border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; border: 1px solid; font-size: 13px; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.alert.info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }

/* ---------- drawer, modal, toasts ---------- */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(10, 16, 28, .45); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 60; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0, 0, 0, .18); }
.drawer-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; }
.drawer-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border); position: sticky; bottom: -18px; background: var(--surface); padding-bottom: 4px; }
.modal-backdrop { display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: 14px; width: min(860px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; }
.modal-actions { display: flex; gap: 8px; }
.modal-body { padding: 18px; overflow-y: auto; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--text); color: var(--surface); border-radius: 10px; padding: 11px 14px; box-shadow: var(--shadow); font-size: 13px; }
.toast.error { background: var(--bad); color: #fff; }
.toast.success { background: var(--good); color: #fff; }

/* ---------- payslip document ---------- */
.payslip { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ps-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ps-co { font-weight: 600; font-size: 15px; }
.ps-title { text-align: right; }
.ps-title b { font-size: 15px; }
.ps-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.ps-info span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ps-cols { display: grid; grid-template-columns: 1fr 1fr; }
.ps-cols > div:first-child { border-right: 1px solid var(--border); }
.ps-cols table th { background: transparent; }
.ps-net { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 18px; }
.ps-foot { padding: 12px 18px; font-size: 12px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
iframe.embedded { width: 100%; border: 0; min-height: calc(100vh - 170px); background: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 10px 0 30px rgba(0, 0, 0, .3); }
  .menu-btn { display: inline-block; }
  .view { padding: 16px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .crumbs { display: none; }
  .search { width: auto; flex: 1; }
  .acting span { display: none; }
  .g-2, .g-4, .form-grid, .ps-info, .ps-cols { grid-template-columns: minmax(0, 1fr); }
  .ps-cols > div:first-child { border-right: 0; border-bottom: 1px solid var(--border); }
  .stepper { flex-wrap: wrap; gap: 8px; }
  .step:not(:last-child)::after { display: none; }
}

/* ---------- print: payslip only ---------- */
@media print {
  body * { visibility: hidden; }
  #modal-body, #modal-body * { visibility: visible; }
  #modal-body { position: absolute; inset: 0; padding: 0; }
  .modal-backdrop { background: none; }
}

/* ---------- sign-in ---------- */
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(20, 184, 166, .22), transparent 60%), linear-gradient(160deg, #0F172A, #1E293B); }
.auth-panel { width: min(420px, 100%); background: var(--surface); border-radius: 16px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.auth-mark { width: 48px; height: 48px; object-fit: contain; }
.auth-name { font-size: 19px; font-weight: 600; color: var(--text); }
.auth-sub { font-size: 12.5px; color: var(--muted); }
.auth-panel h2 { font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.auth-panel p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.auth-panel form { display: grid; gap: 12px; }
.auth-panel .btn.primary { justify-content: center; padding: 10px 14px; font-size: 14px; }
.auth-error { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.auth-foot { color: #94A3B8; font-size: 12px; margin-top: 18px; text-align: center; }
.pw-rules { font-size: 12px; color: var(--muted); margin: 0; padding-left: 18px; }

/* ---------- user menu ---------- */
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.user-chip b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.user-chip .cell-sub { display: block; font-size: 11px; line-height: 1.2; }
.avatar.sm { width: 28px; height: 28px; flex-basis: 28px; font-size: 11px; }
.user-pop { position: absolute; right: 0; top: 42px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); min-width: 180px; overflow: hidden; z-index: 40; }
.user-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; font: inherit; color: var(--text); cursor: pointer; }
.user-pop button:hover { background: var(--surface-2); }
.secret { font-family: var(--mono); font-size: 20px; letter-spacing: .06em; background: var(--surface-3); border-radius: 10px; padding: 14px; text-align: center; user-select: all; }
@media (max-width: 860px) { .user-chip > span:last-child { display: none; } .user-chip { padding: 3px; } }
