/* Cockpit — mobile d'abord, clair/sombre */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --text: #1a1d24;
  --muted: #5b6270;
  --border: #dde1e8;
  --primary: #1c3d7a;
  --primary-text: #ffffff;
  --primary-soft: #e3eaf7;
  --focus: #2f6fed;
  --ok: #1b7a43;      --ok-bg: #e2f4e9;
  --warn: #8a5a00;    --warn-bg: #fdf1d6;
  --danger: #b42318;  --danger-bg: #fde7e5;
  --info: #185a9d;    --info-bg: #e1eefb;
  --neutral: #4a5160; --neutral-bg: #e8eaef;
  --violet: #5b3cc4;  --violet-bg: #ece6fd;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --nav-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --surface: #171b23; --surface-2: #1f2430; --text: #e8eaf0; --muted: #a2a9b8;
    --border: #2b313e; --primary: #7ea6f2; --primary-text: #0b1220; --primary-soft: #1d2a44; --focus: #8fb4ff;
    --ok: #6fd49b; --ok-bg: #133523; --warn: #f2c26b; --warn-bg: #3a2c0e; --danger: #ff8f84; --danger-bg: #43191a;
    --info: #8cc2ff; --info-bg: #13304f; --neutral: #b9c0cc; --neutral-bg: #262c38; --violet: #b9a5ff; --violet-bg: #2b2250;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --surface: #171b23; --surface-2: #1f2430; --text: #e8eaf0; --muted: #a2a9b8;
  --border: #2b313e; --primary: #7ea6f2; --primary-text: #0b1220; --primary-soft: #1d2a44; --focus: #8fb4ff;
  --ok: #6fd49b; --ok-bg: #133523; --warn: #f2c26b; --warn-bg: #3a2c0e; --danger: #ff8f84; --danger-bg: #43191a;
  --info: #8cc2ff; --info-bg: #13304f; --neutral: #b9c0cc; --neutral-bg: #262c38; --violet: #b9a5ff; --violet-bg: #2b2250;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .6em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.boot { padding: 2rem; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; word-break: break-word; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.shell { min-height: 100dvh; }
.sidebar { display: none; }
.main { padding: 16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; outline: none; }
.bottomnav {
  position: fixed; inset: auto 0 0 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); z-index: 40;
}
.bottomnav a, .bottomnav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; text-decoration: none; color: var(--muted); font-size: .72rem; background: none; border: 0; cursor: pointer; position: relative;
}
.bottomnav [aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav-badge { background: var(--danger); color: #fff; border-radius: 999px; font-size: .68rem; line-height: 1; padding: 3px 6px; min-width: 18px; text-align: center; font-weight: 700; }
.bottomnav .nav-badge { position: absolute; top: 6px; left: calc(50% + 6px); }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .icon { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 250px 1fr; }
  .bottomnav { display: none; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow: auto;
    background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px;
  }
  .main { padding: 28px 32px 48px; width: 100%; }
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; padding: 4px 10px 18px; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: var(--primary-text); display: grid; place-items: center; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 44px; border-radius: 10px;
  text-decoration: none; color: var(--text);
}
.side-nav a:hover { background: var(--surface-2); }
.side-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-nav .nav-badge { margin-left: auto; }
.side-foot { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  text-decoration: none; cursor: pointer; font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary); filter: brightness(1.08); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
:root[data-theme="dark"] .btn-ok { color: #0b1a10; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { min-height: 36px; padding: 4px 10px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 44px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.stack { display: grid; gap: 12px; }

.field { display: grid; gap: 4px; }
.field label, .label { font-weight: 600; font-size: .9rem; }
.hint { font-size: .8rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"],
input[type="search"], input[type="tel"], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
}
textarea { resize: vertical; min-height: 88px; }
input[type="color"] { width: 64px; height: 44px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
input[type="file"] { min-height: 44px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.check input { width: 22px; height: 22px; }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: 1 / -1; } }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.2em; }

/* ---------- Cards & layout ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head p { margin: 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.section { margin-top: 26px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); }
.notice { background: var(--info-bg); color: var(--info); padding: 10px 14px; border-radius: 10px; font-size: .9rem; }
.error-box { background: var(--danger-bg); color: var(--danger); padding: 12px 14px; border-radius: 10px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.tabs button, .chip {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--text);
}
.tabs button[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar > input[type="search"], .toolbar > select { flex: 1 1 180px; width: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--neutral-bg); color: var(--neutral); white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.violet { background: var(--violet-bg); color: var(--violet); }

/* ---------- Avatars / team ---------- */
.avatar {
  --size: 44px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--agent, #5f6b7a);
  font-size: calc(var(--size) * .4); object-fit: cover;
}
.agent-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 640px) { .agent-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.agent-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 18px 12px; min-height: 170px; text-decoration: none; color: var(--text);
  border-top: 4px solid var(--agent, var(--border));
}
.agent-card:hover { background: var(--surface-2); }
.agent-card .avatar { --size: 64px; }
.agent-card .name { font-weight: 800; font-size: 1.05rem; }
.agent-card .role { font-size: .85rem; color: var(--muted); }
.agent-card .desc { font-size: .8rem; color: var(--muted); display: none; }
@media (min-width: 640px) { .agent-card .desc { display: block; } }
.unread-dot { position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.team-cta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; text-decoration: none; color: var(--text); position: relative; }
.team-cta:hover { background: var(--surface-2); }
.team-cta .avatar { background: var(--primary); color: var(--primary-text); }

/* ---------- Chat ---------- */
.chat-layout { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .chat-layout { grid-template-columns: 270px 1fr; height: calc(100dvh - 56px); }
  .chat-layout .conv-panel { display: flex !important; }
  .conv-toggle { display: none !important; }
}
.conv-panel { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.conv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; overflow: auto; align-content: start; }
.conv-list button {
  width: 100%; text-align: left; padding: 10px 12px; min-height: 48px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; cursor: pointer; display: grid;
}
.conv-list button:hover { background: var(--surface-2); }
.conv-list button[aria-current="true"] { background: var(--primary-soft); border-color: var(--primary); }
.conv-list .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h) - 40px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .chat { min-height: 0; height: 100%; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who strong { display: block; }
.chat-head .who strong, .chat-head .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .who span { display: block; font-size: .82rem; color: var(--muted); }
@media (max-width: 480px) { .conv-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .conv-toggle { padding: 8px; min-width: 44px; min-height: 44px; } }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.msg .avatar { --size: 30px; }
.msg-body { background: var(--surface-2); padding: 9px 13px; border-radius: 16px 16px 16px 4px; min-width: 0; }
.msg-author { font-size: .78rem; font-weight: 700; color: var(--muted); }
.msg-text { white-space: pre-wrap; word-break: break-word; }
.msg-meta { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.msg-user { align-self: flex-end; }
.msg-user .msg-body { background: var(--primary); color: var(--primary-text); border-radius: 16px 16px 4px 16px; }
.msg-user .msg-meta { color: inherit; opacity: .8; text-align: right; }
.msg-user .msg-text a { color: inherit; }
.msg-system { align-self: center; max-width: 100%; }
.msg-system .msg-body { background: var(--warn-bg); color: var(--warn); border-radius: 10px; font-size: .9rem; text-align: center; }
.msg-error .msg-body { outline: 2px solid var(--danger); }
.typing { padding: 0 16px 8px; font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { min-height: 46px; max-height: 180px; resize: none; border-radius: 22px; padding: 11px 16px; }
.chat-form .btn { border-radius: 22px; min-height: 46px; }
.chat-welcome { margin: auto; text-align: center; color: var(--muted); max-width: 420px; }
.chat-welcome .avatar { --size: 72px; margin: 0 auto 10px; }

/* ---------- Stats / dashboard ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: block; text-decoration: none; color: var(--text); }
.stat .v { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.stat .l { font-size: .85rem; color: var(--muted); }
.stat.danger { border-left: 5px solid var(--danger); }
.stat.warn { border-left: 5px solid var(--warn); }
.stat.info { border-left: 5px solid var(--info); }
.stat.ok { border-left: 5px solid var(--ok); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.two-col { display: grid; gap: 14px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Kanban / lists ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 85%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
@media (min-width: 900px) { .kanban { grid-auto-columns: minmax(220px, 1fr); } }
.kcol { scroll-snap-align: start; background: var(--surface-2); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.kcol h2 { font-size: .95rem; display: flex; justify-content: space-between; margin: 2px 4px 4px; }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.item-title { font-weight: 700; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--text); }
.item-title:hover { text-decoration: underline; }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); }
.item select { min-height: 38px; padding: 4px 8px; font-size: .88rem; }
.agent-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; }
.agent-chip .avatar { --size: 22px; }
.list { display: grid; gap: 10px; }
.item.overdue, .item.late { border-left: 5px solid var(--danger); }
.late-text { color: var(--danger); font-weight: 700; }
.money { font-weight: 800; font-variant-numeric: tabular-nums; }

.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
@media (min-width: 640px) { .pipeline { grid-template-columns: repeat(6, 1fr); } }
.pipeline button { min-height: 58px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; padding: 6px; }
.pipeline button[aria-pressed="true"] { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.pipeline .n { font-size: 1.2rem; font-weight: 800; }
.pipeline .s { font-size: .78rem; }

/* ---------- Approvals ---------- */
.approval .preview { background: var(--surface-2); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }
.approval details pre { background: var(--surface-2); padding: 10px; border-radius: 10px; overflow: auto; font-size: .8rem; }
.approval .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 640px) { .approval .actions { display: flex; justify-content: flex-end; } }

/* ---------- Library ---------- */
.media-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .media-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.media-card { padding: 0; overflow: hidden; text-align: left; cursor: pointer; display: flex; flex-direction: column; color: var(--text); }
.media-card:hover { border-color: var(--primary); }
.media-thumb { aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 10px; display: grid; gap: 6px; }
.media-files { display: grid; gap: 12px; }
.media-files audio { width: 100%; }

/* ---------- Links ---------- */
.link-tile { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); min-height: 64px; }
.link-tile:hover { border-color: var(--primary); }
.link-tile .emoji { font-size: 1.6rem; width: 40px; text-align: center; }
.link-tile .host { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Dialog ---------- */
dialog.dialog {
  border: 0; padding: 0; border-radius: 18px; width: min(640px, calc(100vw - 20px)); max-height: calc(100dvh - 20px);
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
dialog.dialog::backdrop { background: rgba(10, 14, 22, .55); }
.dialog form, .dialog .dialog-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 20px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { margin: 0; }
.dialog-body { padding: 16px; overflow: auto; display: grid; gap: 12px; }
.dialog-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); }
.dialog-foot .spacer { flex: 1; }
@media (max-width: 639px) {
  dialog.dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}
.sheet-nav { display: grid; gap: 6px; }
.sheet-nav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid var(--border); }
.sheet-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }

.table-wrap { overflow-x: auto; }
table.preview-table { border-collapse: collapse; font-size: .82rem; width: 100%; }
.preview-table th, .preview-table td { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: left; white-space: nowrap; }

/* ---------- Toasts / login ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); display: grid; gap: 8px; z-index: 1000; width: min(92vw, 420px); }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; }
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(420px, 100%); padding: 28px 22px; }
.login .brand { justify-content: center; padding-bottom: 8px; font-size: 1.4rem; }
