:root {
  --bg: #f4f5f7; --surface: #fff; --border: #e6e8ec; --border-2: #eef0f3; --text: #1f2733; --text-2: #3b4452; --muted: #6b7280; --faint: #9aa1ac;
  --side: #222a35; --side-2: #2c3542; --side-text: #c9ced6; --side-muted: #8a93a1;
  --accent: #f26b1d; --accent-2: #e05a0e; --accent-soft: #fff1e8;
  --green: #15935a; --green-soft: #e7f6ee; --amber: #d98a04; --amber-soft: #fff5dc; --red: #d63b3b; --red-soft: #fdecec;
  --slate: #5b6676; --slate-soft: #eef1f5; --blue: #2f6fd6; --blue-soft: #eaf1fc;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 0 8px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 8px 20px; border-bottom: 1px solid #333c49; margin: 0 0 18px; }
.brand-mark { width: 40px; height: 40px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font: italic 800 22px/1 var(--sans); box-shadow: 0 2px 6px rgba(242,107,29,.35); }
.brand-name { font-weight: 800; letter-spacing: .14em; color: #fff; font-size: 17px; }
.brand-sub { font-size: 9.5px; letter-spacing: .22em; color: var(--side-muted); font-weight: 600; margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 15px 14px; border-radius: 8px; color: var(--side-text); font-weight: 600; font-size: 14px; border-left: 3px solid transparent; }
.nav a:hover { background: #28313d; color: #fff; }
.nav a.active { background: var(--side-2); color: #fff; border-left-color: var(--accent); }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .9; }
.nav .badge { margin-left: auto; }
.side-foot { border-top: 1px solid #333c49; padding: 12px 6px 14px; }
.side-help { display: flex; align-items: center; gap: 14px; padding: 12px 8px; color: var(--side-text); font-weight: 600; border-radius: 8px; }
.side-help:hover { background: #28313d; }
.side-help svg { width: 17px; height: 17px; flex: none; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 4px 0; position: relative; }
.me-name { color: #fff; font-weight: 700; font-size: 13px; }
.me-role { color: var(--side-muted); font-size: 11.5px; }
.me .icon-btn { margin-left: auto; color: var(--side-text); background: transparent; border: 0; }
.badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; padding: 14px 28px; position: sticky; top: 0; z-index: 20; min-height: 80px; }
.top h1 { font: 400 22px/1.2 var(--sans); margin: 0; }
.top .date { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.viewing { display: flex; flex-direction: column; }
.viewing label { font-size: 9.5px; letter-spacing: .14em; color: var(--faint); font-weight: 600; }
.viewing select { border: 0; background: transparent; font-weight: 700; font-size: 13px; padding: 2px 18px 2px 0; cursor: pointer; letter-spacing: .02em; }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn:hover { border-color: #cfd4db; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .badge { position: absolute; top: -8px; right: -8px; height: 18px; min-width: 18px; font-size: 10px; }
.hamburger { display: none; }
.content { padding: 28px; max-width: 1640px; width: 100%; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #c9ced6; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(242,107,29,.3); }
.btn.primary:hover { background: var(--accent-2); }
.btn.big { height: 44px; padding: 0 20px; font-size: 14px; }
.btn.danger { color: var(--red); }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { color: var(--accent); font-weight: 700; font-size: 12.5px; cursor: pointer; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field small { color: var(--muted); font-size: 11.5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 0 11px; background: var(--surface); min-width: 0; width: 100%; }
textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,107,29,.15); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.span2 { grid-column: span 2; }

/* ---------- page pieces ---------- */
.eyebrow { color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hello { font: 400 32px/1.15 var(--serif); margin: 14px 0 10px; letter-spacing: -.01em; }
.lede { color: var(--muted); margin: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 240px; }
.health { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 12px 16px; font-size: 11.5px; }
.health b { display: block; font-weight: 600; font-size: 11.5px; }
.health span { color: var(--muted); font-size: 10.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex: none; }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 20px; position: relative; box-shadow: var(--shadow); }
.stat-label { font-size: 9.5px; letter-spacing: .16em; font-weight: 800; color: var(--text-2); text-transform: uppercase; }
.stat-value { font: 600 30px/1 var(--serif); margin: 22px 0 22px; letter-spacing: -.01em; }
.stat-sub { font-size: 11px; color: var(--muted); }
.stat-sub b { font-weight: 600; }
.stat-icon { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; }
.stat-icon svg { width: 16px; height: 16px; }
.tone-accent { background: var(--accent-soft); color: var(--accent); }
.tone-slate { background: var(--slate-soft); color: var(--slate); }
.tone-warn { background: var(--amber-soft); color: var(--amber); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-danger { background: var(--red-soft); color: var(--red); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.up { color: var(--green); } .down { color: var(--red); } .urgent { color: var(--accent); }

.row { display: grid; gap: 16px; margin-bottom: 18px; }
.row.r-2-1 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.row.r-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.row.r-1-1 { grid-template-columns: 1fr 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border-2); }
.card-head h2 { font: 400 15.5px/1.3 var(--sans); margin: 0; }
.card-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.card-body { padding: 18px 20px; }
.card-body.flush { padding: 0; }
.empty { color: var(--muted); padding: 28px 20px; text-align: center; font-size: 13px; }

.shift-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border-2); }
.shift-row:last-child { border-bottom: 0; }
.shift-row:hover { background: #fafbfc; }
.datebox { width: 42px; height: 44px; border: 1px solid var(--border); border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; background: #fff; }
.datebox b { font: 600 18px/1 var(--serif); }
.datebox span { font-size: 8.5px; letter-spacing: .14em; color: var(--muted); margin-top: 3px; }
.shift-main { flex: 1; min-width: 0; }
.shift-title { font-size: 13px; font-weight: 500; }
.shift-meta { font-size: 10.5px; color: var(--muted); margin-top: 7px; display: flex; gap: 14px; flex-wrap: wrap; }
.shift-meta .fac { color: var(--slate); }
.shift-right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: 76px; }
.rate { font-size: 11.5px; font-weight: 700; }
.kebab { color: var(--muted); letter-spacing: 1px; font-weight: 900; padding: 4px; background: none; border: 0; cursor: pointer; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 10px; font-weight: 700; white-space: nowrap; background: var(--slate-soft); color: var(--slate); }
.pill.dotted::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: #a86a00; }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.accent { background: var(--accent-soft); color: var(--accent-2); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }

.attn { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border-2); }
.attn-icon { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; flex: none; }
.attn-icon svg { width: 15px; height: 15px; }
.attn b { font-size: 11.5px; font-weight: 600; display: block; }
.attn span { font-size: 10px; color: var(--muted); }
.attn .link { margin-left: auto; font-size: 11.5px; }
.meter { padding: 18px 20px 20px; }
.meter-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
.bar { height: 5px; border-radius: 3px; background: #eceef1; margin: 12px 0 10px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar i.slate { background: #5b6676; border-radius: 0; }
.meter small { font-size: 9.5px; color: var(--muted); }

.person { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--border-2); }
.person:last-child { border-bottom: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; flex: none; background: var(--accent); }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.person b { font-size: 11.5px; font-weight: 600; display: block; }
.person span { font-size: 9.5px; color: var(--muted); }
.person .pill { margin-left: auto; }

.fin { display: grid; grid-template-columns: repeat(3, 1fr); }
.fin > div { padding: 22px 20px 20px; border-right: 1px solid var(--border-2); }
.fin > div:last-child { border-right: 0; }
.fin label { font-size: 9.5px; color: var(--muted); }
.fin .v { font: 600 24px/1 var(--serif); margin: 18px 0 16px; }
.fin .v.green { color: var(--green); }
.fin small { font-size: 9.5px; color: var(--muted); }
.fin-bar { padding: 0 20px 22px; }
.fin-bar .bar { height: 5px; margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.t th { text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #fafbfc; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t .muted, .muted { color: var(--muted); }
.t .actions { text-align: right; white-space: nowrap; }
.t .actions .btn { margin-left: 6px; }
.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-person .avatar { width: 28px; height: 28px; font-size: 10px; }
.cell-person b { font-weight: 600; display: block; }
.cell-person span { color: var(--muted); font-size: 11px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a .badge { height: 18px; min-width: 18px; font-size: 10px; background: var(--slate-soft); color: var(--slate); }
.tabs a.active .badge { background: var(--accent); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input[type=search] { width: 260px; }
.filters select { width: auto; min-width: 150px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.list-reasons { margin: 6px 0 0; padding-left: 18px; color: var(--red); font-size: 12px; }
.list-reasons.slate { color: var(--slate); }
.req { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-2); font-size: 13px; }
.req:last-child { border-bottom: 0; }
.req .grow { flex: 1; }
.req small { color: var(--muted); display: block; font-size: 11px; }
.ok-i, .no-i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; flex: none; }
.ok-i { background: var(--green-soft); color: var(--green); }
.no-i { background: var(--red-soft); color: var(--red); }
.warn-i { background: var(--amber-soft); color: var(--amber); }

.board { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; }
.board-col { background: #eef0f3; border-radius: 10px; padding: 8px; min-height: 200px; }
.board-col h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 4px 4px 10px; color: var(--text-2); }
.board-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; font-size: 11.5px; cursor: pointer; border-left: 3px solid var(--slate); }
.board-card.open { border-left-color: var(--accent); }
.board-card.assigned { border-left-color: var(--green); }
.board-card b { display: block; font-size: 12px; font-weight: 600; }
.board-card span { color: var(--muted); display: block; margin-top: 2px; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban .board-col { min-height: 300px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-2); font-size: 12.5px; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); font-size: 11.5px; white-space: nowrap; min-width: 128px; }
.timeline code { font-size: 11px; color: var(--slate); background: var(--slate-soft); padding: 1px 6px; border-radius: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; }

.callout { border-radius: 10px; padding: 12px 14px; font-size: 12.5px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.callout.warn { background: var(--amber-soft); color: #7a5300; }
.callout.danger { background: var(--red-soft); color: #8f2424; }
.callout.info { background: var(--blue-soft); color: #1f4f9c; }
.callout.ok { background: var(--green-soft); color: #0f6b41; }
.big-action { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- overlays ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal.wide { width: min(780px, 100%); }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border-2); }
.modal-head h3 { margin: 0; font: 400 18px/1.2 var(--serif); }
.modal-head button { margin-left: auto; }
.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.form-error { color: var(--red); font-size: 12.5px; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: #1f2733; color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: 380px; animation: pop .18s ease-out; }
.toast.error { background: var(--red); }
.toast.ok { background: #136b45; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.panel { position: absolute; top: 48px; right: 0; width: 360px; max-height: 480px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); z-index: 50; }
.panel-head { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-2); font-weight: 600; }
.panel-head .link { margin-left: auto; }
.notif { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border-2); font-size: 12.5px; }
.notif:hover { background: #fafbfc; }
.notif.unread { background: #fffaf6; }
.notif small { color: var(--muted); display: block; margin-top: 3px; font-size: 11px; }
.menu { position: absolute; bottom: 44px; right: 0; background: var(--surface); color: var(--text); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.3); min-width: 180px; overflow: hidden; }
.menu button { display: block; width: 100%; text-align: left; padding: 11px 14px; background: none; border: 0; cursor: pointer; font-size: 13px; }
.menu button:hover { background: var(--bg); }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border-2); }
.search-results a:hover { background: #fafbfc; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h2 { font: 400 40px/1.1 var(--serif); margin: 0 0 16px; max-width: 520px; }
.login-art p { color: var(--side-text); max-width: 460px; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(420px, 100%); }
.login-card h1 { font: 400 28px/1.2 var(--serif); margin: 0 0 6px; }
.personas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.persona { text-align: left; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); cursor: pointer; }
.persona:hover { border-color: var(--accent); }
.persona b { display: block; font-size: 12.5px; }
.persona span { color: var(--muted); font-size: 11px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 11px; margin: 22px 0 6px; letter-spacing: .1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.foot-note { margin-top: 26px; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 8px; }
.foot-note img { width: 18px; height: 18px; border-radius: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row.r-2-1, .row.r-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  body.nav-open .side { transform: none; }
  .hamburger { display: grid; }
  .top { padding: 12px 16px; gap: 10px; min-height: 64px; }
  .top h1 { font-size: 18px; }
  .viewing { display: none; }
  .top .btn.primary .label { display: none; }
  .content { padding: 18px 16px; }
  .row.r-1-1, .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .fin { grid-template-columns: 1fr; }
  .fin > div { border-right: 0; border-bottom: 1px solid var(--border-2); }
  .hello { font-size: 26px; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .filters input[type=search] { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .panel { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .personas { grid-template-columns: 1fr; } }
