/* HJ Board: phone-first single column; the Board view becomes a kanban at >= 900px.
   Tokens ported from the 10/26 mockup (hjproud brand: navy, royal, sky, gold). */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --fg: #1d2433;
  --muted: #5a6273;
  --line: #dfe3ec;
  --navy: #2d4788;
  --royal: #3d60b8;
  --sky: #4590ca;
  --gold: #f3bb00;
  --ok: #2e8b57;
  --warn: #d98a00;
  --crit: #c73a3a;
  --shadow: 0 1px 2px rgba(29, 36, 51, 0.06), 0 8px 24px rgba(29, 36, 51, 0.08);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --k: var(--muted);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131722; --surface: #1c2231; --surface-2: #232b3d; --fg: #eef1f7; --muted: #a3abbd; --line: #2d3547;
    --navy: #8fa7e6; --royal: #7f9ce6; --sky: #6fb0ea; --gold: #f3bb00; --ok: #4fb57a; --warn: #f0a83a; --crit: #e46a6a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
  /* the login logo (/img/hj-logo.png) is dark-on-transparent; lift it for dark surfaces */
  :root:not([data-theme="light"]) .login-card .logo { filter: invert(1) hue-rotate(180deg); }
}
:root[data-theme="dark"] {
  --bg: #131722; --surface: #1c2231; --surface-2: #232b3d; --fg: #eef1f7; --muted: #a3abbd; --line: #2d3547;
  --navy: #8fa7e6; --royal: #7f9ce6; --sky: #6fb0ea; --gold: #f3bb00; --ok: #4fb57a; --warn: #f0a83a; --crit: #e46a6a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
:root[data-theme="dark"] .login-card .logo { filter: invert(1) hue-rotate(180deg); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.45; margin: 0;
  font-variant-numeric: tabular-nums; min-height: 100dvh;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #2d4788; }
a { color: var(--royal); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1100px; margin: 0 auto; padding-block: 0 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap.wide { max-width: 1400px; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: #2d4788; color: #fff;
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.brand a.home { color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.brand b { font-weight: 600; letter-spacing: 0.02em; }
.brand small { opacity: 0.8; font-size: 12px; }
.pill-you { background: rgba(255, 255, 255, 0.14); border-radius: 50px; padding: 4px 12px; font-size: 12px; white-space: nowrap; }
nav.tabs { display: flex; gap: 4px; margin-top: 10px; align-items: flex-end; }
nav.tabs a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 12px 12px 0 0; font-size: 14px; font-weight: 500; opacity: 0.8; }
nav.tabs a[aria-current="page"] { background: var(--bg); color: var(--fg); opacity: 1; }
nav.tabs a.new { margin-left: auto; opacity: 1; background: var(--gold); color: #1d2433; border-radius: 50px; padding: 6px 14px; margin-bottom: 6px; font-weight: 600; }
nav.tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

main { padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  main.in { animation: in 0.18s ease-out; }
  @keyframes in { from { opacity: 0.6; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

/* ---------- chips, sections ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  border-radius: 50px; padding: 6px 14px; font-weight: 600; font-size: 13px; border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); text-decoration: none; cursor: pointer;
}
.chip.crit { border-color: var(--crit); color: var(--crit); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.chip.sky { border-color: var(--sky); color: var(--royal); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on.k { background: var(--k); border-color: var(--k); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h2.sec {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
h2.sec .n { background: var(--line); color: var(--fg); border-radius: 50px; padding: 0 8px; font-size: 11px; }
h2.sec .k { width: 10px; height: 10px; border-radius: 3px; background: var(--k); display: inline-block; }
h2.sec .r { margin-left: auto; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 12px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.empty { color: var(--muted); font-size: 13px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.empty.good { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

/* ---------- row ---------- */
.row {
  display: grid; grid-template-columns: 6px 1fr auto; gap: 0 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; min-width: 0;
}
.row:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.row .bar { background: var(--k); }
.row .body { padding: 10px 0 10px 4px; min-width: 0; }
.row .side { padding: 10px 12px 10px 0; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.row .side b { display: block; color: var(--fg); font-weight: 600; }
.row .side.crit b { color: var(--crit); }
.row .side.warn b { color: var(--warn); }
.row .side.ok b { color: var(--ok); }
.t1 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.code { font-weight: 700; color: var(--navy); font-size: 13px; letter-spacing: 0.02em; }
.title { font-weight: 500; }
.stage {
  display: inline-block; border-radius: 50px; padding: 1px 9px; font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--k) 14%, transparent); color: var(--fg); white-space: nowrap;
}
.next { font-size: 13px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.next b { color: var(--fg); font-weight: 500; }
.tag { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); border-radius: 50px; padding: 0 6px; }
.tag.snoozed { border-style: solid; }
.tag.done { border-style: solid; color: var(--ok); border-color: var(--ok); }

/* proposals from mail and texts: a row with Add / Skip buttons instead of a link */
.row.inbox { grid-template-columns: 6px 1fr; cursor: default; }
.row.inbox .body { padding-right: 12px; }
.row.inbox .next .dim { color: var(--muted); }
.row.inbox .acts { display: flex; gap: 8px; margin-top: 8px; }
.row.inbox.busy { opacity: 0.6; }

.group { margin-top: 8px; }
.group h3 { font-size: 13px; margin: 10px 0 6px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.group h3 span { color: var(--muted); font-weight: 500; font-size: 12px; }

/* ---------- buttons ---------- */
.btn {
  border-radius: 50px; padding: 8px 16px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap;
}
.btn.primary { background: var(--royal); border-color: var(--royal); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1d2433; }
.btn.danger { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 50%, var(--line)); }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.link { background: none; border: 0; color: var(--royal); padding: 0; cursor: pointer; font-weight: 500; text-decoration: underline; }

/* ---------- board ---------- */
.kinds { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kind i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); display: inline-block; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters .spacer { flex: 1; }
.filters input[type="search"] {
  min-width: 0; flex: 1 1 160px; border: 1px solid var(--line); background: var(--surface); border-radius: 50px; padding: 7px 14px; min-height: 36px;
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 50px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.kindtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.kindtabs::-webkit-scrollbar { display: none; }
.kindtabs .chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.kindtabs .chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--k); display: inline-block; }
.kindtabs .chip .n { color: var(--muted); font-weight: 600; }
.kindtabs .chip.on .n { color: inherit; }

.cols { display: grid; grid-template-columns: 1fr; gap: 12px; }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; }
.col h3 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; font-weight: 600; gap: 8px; }
.col h3 span { color: var(--muted); font-weight: 500; }
.col .none { color: var(--muted); font-size: 12px; padding: 4px 2px; }
.card {
  display: block; border-left: 4px solid var(--k); background: var(--bg); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px;
  text-decoration: none; color: inherit;
}
.card:last-child { margin-bottom: 0; }
.card .code { font-size: 12px; }
.card .when { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card .when.crit { color: var(--crit); }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.stack .row .side { min-width: 64px; }
@media (min-width: 900px) {
  .cols { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .cols.n2 { grid-template-columns: repeat(2, minmax(170px, 1fr)); max-width: 600px; }
  .cols.n4 { grid-template-columns: repeat(4, minmax(170px, 1fr)); }
}

/* ---------- item ---------- */
.item h1 { font-size: 20px; margin: 0 0 4px; text-wrap: balance; font-weight: 600; line-height: 1.3; }
.item .head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.item .head .kbar { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--k); margin-right: 6px; vertical-align: 0; }
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.meta b { color: var(--fg); font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.back:hover { color: var(--fg); }

.stepper { display: flex; gap: 4px; margin: 14px 0 4px; }
.stepper i { flex: 1; height: 6px; border-radius: 50px; background: var(--line); }
.stepper i.done { background: var(--ok); }
.stepper i.now { background: var(--gold); }
.stepper-lab { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }

.steps { list-style: none; padding: 0; margin: 14px 0 0 9px; display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; position: relative; left: -10px; }
.steps .dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: inline-grid; place-items: center;
  font-size: 11px; color: var(--muted);
}
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.skipped .dot { border-style: dashed; }
.steps li.skipped .lab { text-decoration: line-through; color: var(--muted); }
.steps li.now .dot { border-color: var(--gold); background: var(--gold); color: #1d2433; }
.steps li.now .lab { font-weight: 600; }
.steps .lab { min-width: 0; overflow-wrap: anywhere; }
.steps .who { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; }
.steps .who b { font-weight: 500; color: var(--fg); }
.steps .who .chipw { display: inline-block; border: 1px solid var(--line); border-radius: 50px; padding: 0 8px; background: var(--surface); }
.steps li.now .who .chipw { border-color: var(--gold); }

.waiting {
  background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line));
  border-radius: 12px; padding: 10px 12px; font-size: 14px;
}
.waiting b { color: var(--warn); }
.waiting.crit { background: color-mix(in srgb, var(--crit) 10%, var(--surface)); border-color: color-mix(in srgb, var(--crit) 40%, var(--line)); }
.waiting.crit b { color: var(--crit); }
.waiting.you { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.waiting.you b { color: var(--fg); }
.waiting.ok { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.waiting.ok b { color: var(--ok); }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 12px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd b { font-weight: 500; }
.notesbox { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notesbox.internal { border-style: dashed; }

.timeline { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.timeline li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.timeline time { white-space: nowrap; min-width: 52px; }
.timeline .who { color: var(--fg); font-weight: 500; }
.timeline .detail { display: block; color: var(--muted); }
.rems { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.rems li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.rems time { white-space: nowrap; min-width: 52px; color: var(--muted); }
.rems .st { margin-left: auto; font-size: 11px; color: var(--muted); }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  min-width: 200px; padding: 6px; z-index: 6; display: none;
}
.menu.open { display: block; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.menu button:hover, .menu button:focus-visible { background: var(--surface-2); outline: none; }
.menu button.danger { color: var(--crit); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; min-height: 44px; font-size: 16px; width: 100%;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--royal); }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
.field.inline label { font-weight: 500; }
.field.inline input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick .chip { font-weight: 500; padding: 4px 12px; }
.kindpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.kindpick button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 10px; text-align: left; cursor: pointer; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.kindpick button i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); flex: 0 0 auto; }
.kindpick button[aria-pressed="true"] { border-color: var(--k); background: color-mix(in srgb, var(--k) 12%, var(--surface)); }
.kindpick button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
details.more { border-top: 1px solid var(--line); padding-top: 8px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 500; }
details.more > div { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 6; max-height: 240px; overflow: auto; padding: 4px; display: none;
}
.suggest.open { display: block; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.suggest button:hover, .suggest button:focus-visible { background: var(--surface-2); outline: none; }
.suggest button small { color: var(--muted); display: block; font-size: 12px; }
.rel { position: relative; }
.err { color: var(--crit); font-size: 13px; min-height: 1.2em; }

/* ---------- sheet (bottom modal) ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(13, 17, 28, 0.45); z-index: 20; display: none; }
.sheet-bg.open { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: var(--shadow);
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  max-height: 88dvh; overflow: auto; display: none;
}
.sheet.open { display: block; }
.sheet h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.sheet .sub { color: var(--muted); font-size: 13px; margin: -6px 0 10px; }
.sheet .form { max-width: none; }
.sheet .actions { margin: 14px 0 0; justify-content: flex-end; }
@media (min-width: 640px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px)); border-radius: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet.open { animation: up 0.18s ease-out; }
  @keyframes up { from { transform: translateY(12px); opacity: 0.6; } to { transform: none; opacity: 1; } }
  @media (min-width: 640px) {
    @keyframes up { from { transform: translate(-50%, -48%); opacity: 0.6; } to { transform: translate(-50%, -50%); opacity: 1; } }
  }
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 30;
  background: #1d2433; color: #fff; padding: 10px 16px; border-radius: 50px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--crit); }
#toast.ok { background: var(--ok); }

/* ---------- footer / notes ---------- */
.note { font-size: 12px; color: var(--muted); margin-top: 20px; border-top: 1px solid var(--line); padding-top: 10px; }
.fresh { font-size: 12px; color: var(--muted); margin-top: 24px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.fresh .warn { color: var(--warn); }
.fresh button { margin-left: auto; }
.skel { background: linear-gradient(90deg, var(--line), var(--surface-2), var(--line)); background-size: 200% 100%; border-radius: 12px; height: 56px; }
@media (prefers-reduced-motion: no-preference) { .skel { animation: sk 1.2s linear infinite; } @keyframes sk { to { background-position: -200% 0; } } }

/* ---------- login ---------- */
body.login-page { display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.login-card .logo { display: block; width: 150px; margin: 0 auto 4px; }
.login-card h1 { font-size: 18px; margin: 0; text-align: center; font-weight: 600; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin: -4px 0 8px; }
.login-card input { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; min-height: 48px; font-size: 16px; width: 100%; }
.login-card input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.login-card .btn { min-height: 48px; margin-top: 4px; }
.login-card .foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- office strip (My Day) ---------- */
.office { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.office span b { color: var(--fg); font-weight: 500; }
.office .ot.warn b { color: var(--warn); }
.office .ot.crit b { color: var(--crit); }

@media (max-width: 420px) {
  .row { grid-template-columns: 6px 1fr auto; gap: 0 8px; }
  .row .side { padding-right: 10px; font-size: 11px; }
  .btn { padding: 8px 13px; }
}
@media print {
  header.top, .actions, .btn, nav { display: none !important; }
  body { background: #fff; color: #000; }
}
