/* Dusker CRM — "butter white" professional theme
   Warm ivory canvas, hairline gridlines, Airtable-style record grids,
   single-select stage tags on a progress color ramp. */

:root {
  /* surfaces — warm whites, not cold grays */
  --canvas: #faf8f3;
  --surface: #ffffff;
  --surface-2: #fcfbf7;
  --sidebar: #ffffff;

  /* hairlines */
  --line: #ece9e0;
  --line-2: #e3dfd3;

  /* ink */
  --ink: #1d1b16;
  --ink-2: #5f5b52;
  --ink-3: #8c887d;

  /* accent — neutral graphite, no blue anywhere in the chrome */
  --accent: #26241f;
  --accent-soft: #f0eee7;
  --accent-ink: #2b2925;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(40, 33, 20, .05);
  --shadow-md: 0 4px 14px rgba(40, 33, 20, .07);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font-family: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }

/* ============ Sidebar ============ */
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}
.workspace { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.ws-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: #161512;
  color: #fff; font-weight: 700; font-size: 17px; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.ws-mark img { width: 24px; height: 24px; object-fit: contain; display: block; }
.ws-name { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.ws-sub { color: var(--ink-3); font-size: 12px; }

.nav { display: flex; flex-direction: column; gap: 1px; margin-top: 10px; }
.nav-group { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 5px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 8px; color: var(--ink-2);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background .12s, color .12s;
}
.nav-item .ico { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item:hover .ico { color: var(--ink-2); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); }
.nav-item.active .ico { color: var(--accent); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 20px; min-width: 19px; height: 18px; padding: 0 6px; display: grid; place-items: center; }
.nav-badge:empty { display: none; }

.sidebar-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.env-row { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.env-row .dot { width: 7px; height: 7px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 3px rgba(43,182,115,.16); }
.mode-pill { margin-top: 9px; display: inline-block; font-size: 11.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; text-transform: capitalize; }

/* ============ Main ============ */
.main { display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 22px; background: var(--surface);
  border-bottom: 1px solid var(--line); flex: none;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.crumb-root { color: var(--ink-3); }
.crumb-sep { color: var(--line-2); }
.crumb-cur { font-weight: 600; color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-ico { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--ink-3); }
.search { width: 220px; padding: 7px 12px 7px 31px; font-size: 13px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; }
.search::placeholder { color: var(--ink-3); }
.search:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; cursor: pointer; box-shadow: var(--shadow-sm); }
.btn-ico { width: 15px; height: 15px; color: var(--ink-2); }
.btn:hover { background: var(--surface-2); border-color: #d6d1c4; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: none; }
.btn-primary .btn-ico { color: #fff; }
.btn-primary:hover { background: #15140f; border-color: #15140f; }
/* read-only published board: hide write actions */
.readonly #addBtn { display: none; }

/* ---- Needs-attention cards (overview) ---- */
.att-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.att-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.att-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.att-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.att-label { font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.att-hint { color: var(--ink-3); font-size: 12px; margin-top: 3px; }

/* ---- Pipeline stacked bar ---- */
.stagebar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.stagebar .seg { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.leg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.leg b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- Pipeline board (kanban) ---- */
.kboard { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; min-height: 60vh; }
.kcol { width: 248px; flex: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; max-height: 74vh; }
.kcol-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.kcol-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.kcol-title i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.kcol-ct { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0 7px; }
.kcol-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.kcard { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px 12px; box-shadow: var(--shadow-sm); }
.kcard:hover { box-shadow: var(--shadow-md); }
.kc-top { display: flex; align-items: center; gap: 9px; }
.kc-nm { font-size: 13px; font-weight: 600; color: var(--ink); }
.kc-tt { font-size: 12px; color: var(--ink-3); }
.kc-co { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); font-weight: 500; }
.kcol-empty { color: var(--ink-3); font-size: 12px; text-align: center; padding: 18px 8px; border: 1px dashed var(--line-2); border-radius: 8px; }

/* ---- Pipeline progress (cumulative funnel) ---- */
.sl-note { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.fnl-row { display: grid; grid-template-columns: 112px 1fr 42px 44px; align-items: center; gap: 14px; padding: 7px 4px; }
.fnl-row + .fnl-row { border-top: 1px solid var(--line); }
.fnl-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); text-transform: capitalize; }
.fnl-label i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.fnl-track { height: 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fnl-bar { height: 100%; border-radius: 5px; min-width: 2px; transition: width .4s; }
.fnl-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }
.fnl-pct { text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---- Inline editable stage ---- */
.stage-edit { appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); cursor: pointer; padding: 3px 22px 3px 10px; font-weight: 600; font-size: 12px; text-transform: capitalize; border-radius: 6px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; }
.stage-edit:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- Modal ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,18,12,.4); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--surface); width: 100%; max-width: 560px; border-radius: 16px; box-shadow: 0 20px 60px rgba(20,18,12,.25); padding: 22px 24px 20px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-x { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.modal-x:hover { color: var(--ink); }
.modal-sub { color: var(--ink-2); font-size: 13px; margin: 4px 0 18px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label, .full { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea { font-size: 13.5px; font-weight: 400; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; background: var(--surface-2); font-family: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.req { color: #c23934; }
.form-err { background: #fcebea; color: #b91c1c; border: 1px solid #f3c9c6; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .att-grid, .tiles { grid-template-columns: 1fr 1fr; } }

.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 22px; background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.tool-left { font-size: 13px; color: var(--ink-2); }
.tool-right { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.content { flex: 1; overflow: auto; padding: 24px 22px; }
.empty { color: var(--ink-3); text-align: center; padding: 56px 0; }

.section-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 26px 2px 12px; }
.section-label:first-child { margin-top: 4px; }

/* ============ KPI tiles ============ */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.tile-top { display: flex; align-items: center; justify-content: space-between; }
.tile-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.tile-chip { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.tile-chip svg { width: 16px; height: 16px; }
.tile-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.tile-hint { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ============ Funnel ============ */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 8px 4px; }
.frow { display: grid; grid-template-columns: 130px 1fr 54px; align-items: center; gap: 16px; padding: 9px 18px; }
.frow + .frow { border-top: 1px solid var(--line); }
.fstage { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink); text-transform: capitalize; }
.fdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ftrack { height: 8px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.fbar { height: 100%; border-radius: 6px; min-width: 0; }
.fnum { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); font-family: var(--mono); font-size: 13px; }

/* ============ Stage tags (single-select, Airtable style) ============ */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.tag.sourced     { background: #f1f0ea; color: #6b6457; }
.tag.identified  { background: #e7f6f3; color: #0e8a6a; }
.tag.enriched    { background: #eceae4; color: #3f3b34; }
.tag.contacted   { background: #fdf3e1; color: #b07410; }
.tag.replied     { background: #f4ecfd; color: #7b35cf; }
.tag.qualified   { background: #f6ece1; color: #b5642a; }
.tag.meeting     { background: #e6f7f1; color: #0f8a5f; }
.tag.won         { background: #e7f7ea; color: #1d8a3c; }
.tag.lost, .tag.bounced, .tag.unsubscribed, .tag.do_not_contact { background: #fcebea; color: #c23934; }

.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #b07410; background: #fdf3e1; border-radius: 5px; padding: 1px 6px; }

/* personalization hooks — the dossier angles the writer used */
.hooks { display: flex; flex-wrap: wrap; gap: 5px; max-width: 360px; }
.hook { font-size: 11.5px; color: #3f3b34; background: #f3f1ea; border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 8px; line-height: 1.4; }
.draft-hooks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.draft-hooks .k { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

/* ============ Record grid (Airtable) ============ */
.grid-wrap { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { text-align: left; padding: 0 14px; height: 44px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 13.5px; }
.grid th:last-child, .grid td:last-child { border-right: 0; }
.grid thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; height: 38px; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover td { background: #fcfbf6; }
.gutter { width: 44px; text-align: center !important; color: var(--ink-3); font-family: var(--mono); font-size: 12px; padding: 0 !important; background: var(--surface-2); }
.cell-id { display: flex; align-items: center; gap: 11px; }
.avatar { width: 28px; height: 28px; border-radius: 7px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .02em; }
.cell-id .nm { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.cell-id .tt { font-size: 12px; color: var(--ink-3); }
.cell-mono { font-family: var(--mono); font-size: 12.5px; color: var(--accent-ink); }
.cell-muted { color: var(--ink-2); }
.grid-empty { text-align: center; color: var(--ink-3); padding: 40px; }

/* ============ Pipeline board ============ */
.board { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 10px; }
.col { width: 256px; flex: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.col-h .fdot { width: 9px; height: 9px; }
.col-h .nm { font-size: 12.5px; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.col-h .ct { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; min-width: 20px; height: 19px; display: grid; place-items: center; padding: 0 6px; }
.col-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; min-height: 60px; }
.dcard { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; box-shadow: var(--shadow-sm); cursor: default; }
.dcard:hover { border-color: #d6d1c4; box-shadow: var(--shadow-md); }
.dcard .row1 { display: flex; align-items: center; gap: 9px; }
.dcard .nm { font-size: 13px; font-weight: 600; }
.dcard .tt { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.dcard .row2 { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.dcard .co { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.col-empty { color: var(--line-2); text-align: center; font-size: 18px; padding: 8px 0; }

/* ============ Account cards ============ */
.acct-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.acct { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.acct:hover { box-shadow: var(--shadow-md); }
.acct-h { display: flex; align-items: center; gap: 12px; }
.acct-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; flex: none; }
.acct-name { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.acct-dom { font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
.acct-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
.chip.signal { color: #b07410; background: #fdf3e1; border-color: #f3e2c2; }
.acct-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* ============ Drafts ============ */
.draft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
.draft:hover { box-shadow: var(--shadow-md); }
.draft-h { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.draft-h .who { font-weight: 600; }
.draft-h .who .addr { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-weight: 400; }
.draft-h .meta { font-size: 12px; color: var(--ink-3); }
.draft-h .badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #b07410; background: #fdf3e1; border: 1px solid #f3e2c2; border-radius: 20px; padding: 3px 11px; }
.draft-b { padding: 16px 18px; }
.draft-subj { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.draft-subj .k { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-right: 8px; }
.draft-text { white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 12px 0 0; font-family: inherit; }
.li-row { display: flex; align-items: baseline; gap: 8px; }
.li-row .k { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; flex: none; }
.li-row a { word-break: break-all; }

@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .acct-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Login screen ---- */
.login { position: fixed; inset: 0; display: grid; place-items: center; background: var(--canvas); padding: 20px; }
.login[hidden] { display: none; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px rgba(20,18,12,.12); padding: 30px 28px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.login-brand .ws-mark { width: 30px; height: 30px; background: #161512; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.login-brand .ws-mark img { width: 20px; height: 20px; object-fit: contain; }
.login-card h1 { font-size: 22px; margin: 6px 0 0; }
.login-sub { color: var(--ink-2); font-size: 13px; margin: 0 0 4px; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.login-card input { font-size: 14px; font-weight: 400; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); }
.login-card input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-btn { justify-content: center; margin-top: 6px; padding: 10px; }

/* ---- small button (log activity) ---- */
.btn-sm { padding: 4px 10px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); border-radius: 7px; cursor: pointer; color: var(--ink-2); }
.btn-sm:hover { background: var(--surface-2); border-color: #d6d1c4; color: var(--ink); }
.app[hidden] { display: none; }
