/* Horizon Education Manager — design system
   Bright, friendly education palette: white rounded cards on a soft blue canvas,
   saturated green / yellow / orange tiles, tinted table rows and round score badges. */

:root {
  --canvas: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f6f9fc;
  --line: #e5ebf2;
  --line-strong: #d3dce7;
  --ink: #1d2a3d;
  --ink-2: #4a5568;
  --muted: #8a96a8;

  --green: #78c11f;  --green-ink: #3f7a05;  --green-soft: #ebf6dd;
  --yellow: #f7c02b; --yellow-ink: #8a6200; --yellow-soft: #fff4d4;
  --orange: #ff8a5b; --orange-ink: #b44a1d; --orange-soft: #ffe9df;
  --red: #f0565d;    --red-ink: #b3262d;    --red-soft: #fde8e8;
  --blue: #4a8ee8;   --blue-ink: #1f5db3;   --blue-soft: #e5effc;
  --purple: #9b7be8; --purple-soft: #efe9fc;

  --primary: var(--green);
  --primary-ink: #ffffff;
  --focus: 0 0 0 3px rgba(120, 193, 31, .35);

  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --pill: 999px;
  --shadow: 0 1px 2px rgba(29, 42, 61, .04), 0 6px 20px rgba(29, 42, 61, .06);
  --shadow-lg: 0 20px 50px rgba(29, 42, 61, .18);

  --sidebar-w: 252px;
  --topbar-h: 72px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; gap: 3px; }
.brand-mark i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.brand-mark i:nth-child(1) { background: var(--red); }
.brand-mark i:nth-child(2) { background: var(--orange); }
.brand-mark i:nth-child(3) { background: var(--yellow); }
.brand-mark i:nth-child(4) { background: var(--green); }
.brand-name { font-weight: 900; font-size: 16px; line-height: 1.1; }
.brand-name small { display: block; font-weight: 700; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.nav a, .nav .nav-soon {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 700; font-size: 14.5px;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.active { background: var(--green-soft); color: var(--green-ink); }
.nav a.active .nav-ico { color: var(--green); }
.nav-ico { width: 20px; height: 20px; flex: none; color: var(--muted); }
.nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; border-radius: var(--pill); padding: 1px 7px; }
.nav .nav-soon { color: #b3bccb; cursor: default; }
.nav .nav-soon .tag { margin-left: auto; font-size: 10px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); border-radius: var(--pill); padding: 1px 7px; }
.sidebar-foot { margin-top: auto; padding: 14px 6px 0; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: rgba(238, 243, 249, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.menu-btn { display: none; }
.top-search { flex: 1; max-width: 420px; position: relative; }
.top-search input { padding-left: 40px; background: var(--surface); border-color: transparent; box-shadow: var(--shadow); border-radius: var(--pill); }
.top-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface); border: 0; color: var(--ink-2); box-shadow: var(--shadow); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--pill); background: var(--red); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.icon-btn:hover { text-decoration: none; color: var(--ink); }

.branch-switch select {
  appearance: none; -webkit-appearance: none; border-radius: var(--pill); border: 0; box-shadow: var(--shadow);
  padding: 10px 36px 10px 16px; font-weight: 800; background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a96a8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; min-height: 42px;
}

.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.user-chip:hover { text-decoration: none; }
.user-chip .who { line-height: 1.15; font-size: 13px; font-weight: 800; }
.user-chip .who small { display: block; color: var(--muted); font-weight: 700; font-size: 11px; }

.content { padding: 8px 28px 48px; width: 100%; max-width: 1440px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.page-head .sub { color: var(--muted); font-weight: 700; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* ---------- Avatars ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; color: #fff; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.tone-0 { background: var(--green); } .tone-1 { background: var(--yellow); color: #5c4300; } .tone-2 { background: var(--orange); }
.tone-3 { background: var(--blue); } .tone-4 { background: var(--purple); } .tone-5 { background: var(--red); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head .link { font-size: 13px; font-weight: 800; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 20px 22px 0; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: grid; gap: 20px; align-content: start; }

/* KPI */
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .label { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.kpi .value { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.kpi .foot { font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi-card { display: flex; gap: 16px; align-items: center; color: var(--ink); }
.kpi-card:hover { text-decoration: none; }
.kpi-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.kpi-ico svg { width: 26px; height: 26px; }
.ico-green { background: var(--green-soft); color: var(--green-ink); }
.ico-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.ico-orange { background: var(--orange-soft); color: var(--orange-ink); }
.ico-blue { background: var(--blue-soft); color: var(--blue-ink); }
.ico-red { background: var(--red-soft); color: var(--red-ink); }

/* Colored tiles (branch blocks) */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.tile {
  border-radius: var(--r); padding: 18px; color: #fff; position: relative; min-height: 168px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
}
.tile:hover { text-decoration: none; filter: brightness(1.03); }
.tile .big { font-size: 46px; font-weight: 900; line-height: 1; }
.tile .t-label { font-weight: 800; font-size: 13px; opacity: .95; margin-top: 6px; }
.tile .t-sub { font-weight: 700; font-size: 12px; opacity: .85; }
.tile .t-name { position: absolute; top: 16px; left: 18px; right: 18px; font-weight: 900; font-size: 15px; }
.tile .t-bubble { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.28); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.tile-0 { background: var(--green); } .tile-1 { background: var(--yellow); color: #3f2f00; } .tile-2 { background: var(--orange); }
.tile-3 { background: var(--blue); } .tile-4 { background: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: var(--pill); border: 1px solid transparent; font: inherit; font-weight: 800; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow); transition: transform .06s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(.98); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--line-strong); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn-link { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; color: var(--blue-ink); font-weight: 800; cursor: pointer; font: inherit; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.req::after { content: " *"; color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], input[type=search], input[type=time], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: var(--focus); }
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; }
.field { margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }
.field-error { color: var(--red-ink); font-size: 13px; font-weight: 700; margin: 6px 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink); margin: 0 0 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: var(--pill); font-weight: 800; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--green-ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { box-shadow: var(--focus); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 900; font-size: 16px; margin-bottom: 14px; padding: 0; }
.input-affix { position: relative; }
.input-affix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; }
.input-affix input { padding-left: 32px; }

/* ---------- Filters bar ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .grow { flex: 1 1 220px; }
.filters select, .filters input { min-height: 42px; }
.filters select { width: auto; min-width: 150px; }

/* ---------- Tables (desktop) → cards (mobile) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 14px; }
.table thead th {
  text-align: left; font-size: 12px; font-weight: 800; color: var(--muted); padding: 4px 14px; white-space: nowrap;
}
.table thead th a { color: var(--muted); }
.table thead th a.sorted { color: var(--ink); }
.table tbody td { background: var(--surface-2); padding: 12px 14px; vertical-align: middle; }
.table tbody td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.table tbody td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.table tbody tr.tint-green td { background: var(--green-soft); }
.table tbody tr.tint-yellow td { background: var(--yellow-soft); }
.table tbody tr.tint-red td { background: var(--red-soft); }
.table tbody tr.tint-orange td { background: var(--orange-soft); }
.table tbody tr.tint-grey td { background: #f1f3f6; color: var(--ink-2); }
.table tbody tr.row-link { cursor: pointer; }
.table tbody tr.row-link:hover td { filter: brightness(.985); }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .nm { font-weight: 800; color: var(--ink); }
.person .nm:hover { text-decoration: none; color: var(--green-ink); }
.person .sub { font-size: 12px; color: var(--muted); font-weight: 700; }
.table .actions { text-align: right; white-space: nowrap; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .em-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* Badges & score bubbles */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green-ink); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.badge-orange { background: var(--orange-soft); color: var(--orange-ink); }
.badge-red { background: var(--red-soft); color: var(--red-ink); }
.badge-blue { background: var(--blue-soft); color: var(--blue-ink); }
.badge-grey { background: #eef1f5; color: var(--ink-2); }
.bubble { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; }
.bubble.green { background: var(--green); } .bubble.yellow { background: var(--yellow); color: #4a3700; } .bubble.orange { background: var(--orange); } .bubble.red { background: var(--red); }

/* Progress bar (like "Average Score" bars) */
.meter { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.meter .bar { flex: 1; height: 10px; background: #e8edf3; border-radius: var(--pill); overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: var(--pill); background: var(--green); }
.meter .bar i.warn { background: var(--yellow); } .meter .bar i.over { background: var(--red); }
.meter b { font-size: 13px; min-width: 42px; text-align: right; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--r-sm); }
.list li + li { border-top: 1px solid var(--line); }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 800; font-size: 14px; }
.list .s { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.list .right { margin-left: auto; text-align: right; }

/* Birthday cards */
.bday-today { background: linear-gradient(135deg, var(--yellow-soft), var(--orange-soft)); }
.bday-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); line-height: 1; flex: none; }
.bday-chip b { font-size: 18px; font-weight: 900; }
.bday-chip small { font-size: 10px; font-weight: 800; color: var(--orange-ink); text-transform: uppercase; }

/* ---------- Alerts / flash ---------- */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-weight: 700; }
.flash-success { background: var(--green-soft); color: var(--green-ink); }
.flash-error { background: var(--red-soft); color: var(--red-ink); }
.flash-info { background: var(--blue-soft); color: var(--blue-ink); }
.flash-warn { background: var(--yellow-soft); color: var(--yellow-ink); }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding: 4px; background: var(--surface); border-radius: var(--pill); box-shadow: var(--shadow); width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 16px; border-radius: var(--pill); font-weight: 800; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tabs a:hover { text-decoration: none; background: var(--surface-2); }
.tabs a.active { background: var(--green); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.no-js .tab-panel { display: block; }

/* Detail list */
.dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px 16px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 800; font-size: 13px; }
.dl dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

/* Profile header */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Wizard */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; counter-reset: step; overflow-x: auto; scrollbar-width: none; }
.steps li { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow); font-weight: 800; font-size: 13px; color: var(--muted); counter-increment: step; }
.steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 12px; flex: none; }
.steps li.current { color: var(--ink); }
.steps li.current::before { background: var(--green); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--green-soft); color: var(--green-ink); }
.js .wizard-step { display: none; }
.js .wizard-step.current { display: block; }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; padding-top: 10px; }
.review dl { margin-bottom: 18px; }
.guardian-box { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.guardian-box[hidden] { display: none; }

/* Charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-weight: 700; fill: var(--muted); font-size: 11px; }
.chart .val { fill: var(--ink); font-weight: 900; font-size: 11px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.donut-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.donut-wrap svg { width: 150px; height: 150px; flex: none; }

/* Pagination */
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--pill); font-weight: 800; background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2); }
.pager span.current { background: var(--green); color: #fff; }
.pager a:hover { text-decoration: none; }

/* Notice / callouts */
.callout { border-radius: var(--r); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.callout.warn { background: var(--yellow-soft); color: var(--yellow-ink); }

/* Modal (native <dialog>) */
dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgba(29, 42, 61, .45); }
.dialog-body { padding: 24px; overflow-y: auto; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dialog-head button { background: var(--surface-2); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; }

/* Audit */
.audit-change { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.audit-change code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* ---------- Guest pages (login, installer) ---------- */
.guest { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background:
  radial-gradient(circle at 12% 18%, rgba(247,192,43,.25), transparent 28%),
  radial-gradient(circle at 88% 12%, rgba(120,193,31,.22), transparent 30%),
  radial-gradient(circle at 80% 90%, rgba(255,138,91,.22), transparent 32%), var(--canvas); }
.guest-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 34px; }
.guest-card.wide { max-width: 820px; }
.guest-card .brand { padding: 0 0 22px; justify-content: center; }
.guest-card h1 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.guest-card .lead { text-align: center; color: var(--muted); font-weight: 700; margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks .ok { color: var(--green-ink); } .checks .bad { color: var(--red-ink); }

/* Error page */
.error-page { text-align: center; padding: 60px 20px; }
.error-page .code { font-size: 72px; font-weight: 900; color: var(--line-strong); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  :root { --topbar-h: 64px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(300px, 86vw);
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg);
    padding-top: calc(20px + env(safe-area-inset-top));
  }
  .nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(29,42,61,.4); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: env(safe-area-inset-top) 16px 0; height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
  .content { padding: 4px 16px calc(40px + env(safe-area-inset-bottom)); }
  .g-main, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .user-chip .who { display: none; }
  .user-chip { padding: 4px; }
}

@media (max-width: 767px) {
  .top-search { display: none; }
  .topbar .branch-switch { display: none; }
  .mobile-only { display: block !important; }
}
.mobile-only { display: none; }

@media (max-width: 639px) {
  body { font-size: 15px; }
  h1 { font-size: 24px; }
  .grid { gap: 14px; }
  .g-2, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2.collapse { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; border-radius: 16px; }
  .kpi .value { font-size: 28px; }
  .kpi-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .kpi-ico { width: 42px; height: 42px; border-radius: 12px; }
  .tiles { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 110px; }
  .tile .big { font-size: 38px; }
  .field-row, .field-row.three { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page-head { margin-bottom: 16px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .filters select, .filters .btn { flex: 1 1 140px; width: 100%; }
  .form-actions .btn, .wizard-nav .btn { flex: 1; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .guest-card { padding: 26px 20px; }
  .steps li { min-width: auto; flex: none; }
  .steps li span { display: none; }
  .steps li.current span { display: inline; }

  /* Tables become stacked cards */
  table.table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive thead { display: none; }
  .table.responsive tbody tr { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px; }
  .table.responsive tbody tr.tint-green { background: var(--green-soft); }
  .table.responsive tbody tr.tint-yellow { background: var(--yellow-soft); }
  .table.responsive tbody tr.tint-red { background: var(--red-soft); }
  .table.responsive tbody tr.tint-orange { background: var(--orange-soft); }
  .table.responsive tbody tr.tint-grey { background: #f1f3f6; }
  .table.responsive tbody td { background: none !important; padding: 4px 0; border-radius: 0 !important; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.responsive tbody td::before { content: attr(data-label); font-weight: 800; color: var(--muted); font-size: 12px; text-align: left; }
  .table.responsive tbody td.primary { display: block; text-align: left; padding-bottom: 8px; }
  .table.responsive tbody td.primary::before { display: none; }
  .table.responsive tbody td.actions { justify-content: flex-end; }
  .table.responsive tbody td.actions::before { display: none; }
  .table.responsive tbody td:empty, .table.responsive td.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .sidebar, .topbar, .page-actions, .filters, .btn { display: none !important; }
  .shell { display: block; } .card { box-shadow: none; border: 1px solid var(--line); }
  body { background: #fff; }
}

/* Additions */
.search-btn { display: none; }
@media (max-width: 767px) { .search-btn { display: inline-grid; } }
.branch-switch-m { margin-bottom: 14px; }
.branch-switch-m select { width: 100%; }
.donut-num { font: 900 26px var(--font); fill: var(--ink); }
.donut-lbl { font: 800 10px var(--font); fill: var(--muted); }

/* Width steps for meters (CSP forbids inline styles) */
.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }
.center-text { text-align: center; margin-top: 18px; }
.mt { margin-top: 20px; } .mb { margin-bottom: 20px; } .mb-0 { margin-bottom: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline { display: inline; }
.d-block { display: block; }
.ico-xs { width: 14px; height: 14px; }
.sm-ico { width: 36px; height: 36px; border-radius: 12px; }
.sm-ico svg { width: 18px; height: 18px; }
.callout-ico { width: 22px; height: 22px; flex: none; }
.dot-active { background: var(--green); } .dot-trial { background: var(--blue); } .dot-paused { background: var(--orange); }
.dot-waitlist { background: var(--yellow); } .dot-withdrawn { background: var(--red); } .dot-graduated { background: var(--purple); }
.review-step { grid-column: 1 / -1; font-size: 12px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink) !important; padding-top: 10px; border-top: 1px solid var(--line); }
.review-step:first-child { border-top: 0; padding-top: 0; }
.review-step + dd { display: none; }
.meter-sm { min-width: 110px; max-width: 150px; }
.mt-xs { margin-top: 6px; gap: 6px; }
.h3 { font-size: 16px; font-weight: 900; }
.branch-card { align-items: stretch; }
.branch-tile { min-height: 0; width: 96px; flex: none; justify-content: center; align-items: center; text-align: center; padding: 12px; }
.branch-tile .big { font-size: 34px; }
.grow { flex: 1; min-width: 0; }
.list li.unread { background: var(--green-soft); }
button[aria-busy=true] { opacity: .7; }
.js .wizard-step:not(.current) { display: none; }
@media (max-width: 639px) { .branch-tile { width: 76px; } }
/* The scrim is only used by the mobile drawer; keep it out of the desktop grid. */
.scrim { display: none; }
@media (max-width: 1023px) { .scrim { display: block; } }
.icon-btn.menu-btn { display: none; }
@media (max-width: 1023px) { .icon-btn.menu-btn { display: inline-grid; } }
.top-search input[type=search] { padding-left: 42px; border-color: transparent; box-shadow: var(--shadow); border-radius: var(--pill); }
.tile .t-name { padding-right: 46px; }
@media (max-width: 639px) { .tile { min-height: 150px; } }
[hidden] { display: none !important; }

/* ---- v0.2: Albanian dashboard layout ---- */
.ico-sm { width: 17px; height: 17px; }
.date-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); font-weight: 800; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.date-pill svg { color: var(--muted); }
@media (max-width: 1279px) { .date-pill { display: none; } }
.branch-legend { list-style: none; margin: 0; padding: 0 12px 6px; display: grid; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.branch-legend li { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--green); } .dot-blue { background: var(--blue); } .dot-orange { background: var(--orange); }
.dot-purple { background: var(--purple); } .dot-yellow { background: var(--yellow); }
.welcome h1 { font-size: 32px; }
.welcome .sub { font-size: 16px; }

/* KPI strip */
.kpi-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.kpi-strip .card { padding: 18px; }
.kpi-mini { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.kpi-mini:hover { text-decoration: none; }
.kpi-mini .kpi-ico { width: 48px; height: 48px; border-radius: 14px; }
.kpi-mini .kpi .label { font-size: 13px; }
.kpi-mini .kpi .value { font-size: 28px; }
.kpi-mini .meter { margin-top: 6px; min-width: 0; }
.kpi-mini .meter .bar { height: 7px; }
@media (max-width: 1279px) { .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .kpi-mini { flex-direction: column; gap: 8px; } .kpi-mini .kpi-ico { width: 40px; height: 40px; } }

/* Branch cards */
.branch-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bcard-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; }
.bcard-head h3 { font-size: 17px; flex: 1; min-width: 0; }
.bcard-head a { font-size: 13px; font-weight: 800; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.bcard-head a svg { width: 16px; height: 16px; }
.bcard-band { margin: 0 20px; height: 92px; border-radius: 14px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px 14px; color: #fff; font-weight: 900; }
.bcard-band::before, .bcard-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.18); }
.bcard-band::before { width: 120px; height: 120px; right: -30px; top: -40px; }
.bcard-band::after { width: 70px; height: 70px; right: 70px; bottom: -36px; }
.bcard-band .big { font-size: 34px; line-height: 1; position: relative; }
.bcard-band small { font-size: 12.5px; font-weight: 800; opacity: .92; margin-left: 8px; position: relative; padding-bottom: 4px; }
.band-green { background: var(--green); } .band-blue { background: var(--blue); } .band-orange { background: var(--orange); }
.band-purple { background: var(--purple); } .band-yellow { background: var(--yellow); color: #3f2f00; }
.bcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 20px 6px; gap: 8px; }
.bcard-stat { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.bcard-stat svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.bcard-stat .l { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.bcard-stat .v { display: block; font-weight: 900; font-size: 17px; }
.bcard-meter { padding: 6px 20px 18px; }
.c-green { color: var(--green); } .c-blue { color: var(--blue); } .c-orange { color: var(--orange); } .c-purple { color: var(--purple); } .c-yellow { color: var(--yellow-ink); }
.bar i.fill-green { background: var(--green); } .bar i.fill-blue { background: var(--blue); } .bar i.fill-orange { background: var(--orange); }
.bar i.fill-purple { background: var(--purple); } .bar i.fill-yellow { background: var(--yellow); }
.bcard-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Charts row */
.g-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g-charts { grid-template-columns: minmax(0, 1fr); } }
.g-bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1599px) { .g-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1279px) { .g-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .g-bottom { grid-template-columns: minmax(0, 1fr); } }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 800; font-size: 13.5px; flex: 1; min-width: 140px; }
.legend-list li { display: flex; align-items: center; gap: 10px; }
.legend-list b { margin-left: auto; }
.chart .bar-green { fill: var(--green); } .chart .bar-blue { fill: var(--blue); } .chart .bar-orange { fill: var(--orange); }
.chart .bar-purple { fill: var(--purple); } .chart .bar-yellow { fill: var(--yellow); } .chart .bar-track { fill: #eef2f6; }
.chart .lbl { fill: var(--ink-2); font-weight: 800; font-size: 12px; }
.ring-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; text-align: center; }
.ring-row svg { width: 96px; height: 96px; display: block; margin: 6px auto 0; }
.ring-row .rn { font-weight: 900; font-size: 13.5px; }
.ring-num { font: 900 15px var(--font); fill: var(--ink); }
.ring-pct { font: 800 10px var(--font); fill: var(--muted); }
.list.compact li { padding: 8px 4px; }
.when { font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
@media (max-width: 1279px) { .kpi-strip > :last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
@media (max-width: 639px) { .kpi-strip > :last-child:nth-child(3n+1) { grid-column: auto; } .kpi-strip > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---- v0.3: finance ---- */
.r { text-align: right !important; }
.c-red { color: var(--red-ink); } .c-green { color: var(--green-ink); }
.fill-grey { background: var(--muted) !important; } .bar i.fill-red { background: var(--red); }
.month-nav { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: var(--pill); box-shadow: var(--shadow); padding: 4px; }
.month-nav .icon-btn { width: 34px; height: 34px; box-shadow: none; background: var(--surface-2); }
.month-nav .icon-btn.is-disabled { opacity: .35; }
.month-label { font-weight: 900; font-size: 14px; min-width: 116px; text-align: center; }
.money-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.money-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); padding: 18px 20px; }
.money-card:hover { text-decoration: none; }
.money-card .row { gap: 10px; flex-wrap: nowrap; }
.money-card .kpi-ico { width: 40px; height: 40px; border-radius: 12px; }
.money-card .kpi-ico svg { width: 21px; height: 21px; }
.money-card .label { font-weight: 800; font-size: 13.5px; color: var(--ink-2); }
.money-card .amount { font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.money-card .amount small { font-size: 15px; font-weight: 800; }
.money-strip.big .amount { font-size: 32px; margin-top: 4px; }
.money-card .foot { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.money-card .meter { min-width: 0; }
.money-card.is-profit { background: linear-gradient(180deg, var(--surface), var(--blue-soft)); }
.money-card.is-loss { background: linear-gradient(180deg, var(--surface), var(--red-soft)); }
@media (max-width: 1100px) { .money-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .money-strip { gap: 10px; } .money-card { padding: 14px; } .money-strip.big .amount, .money-card .amount { font-size: 22px; } .money-card .row { flex-direction: column; align-items: flex-start; gap: 6px; } }
.flash-link { color: var(--yellow-ink); align-items: center; }
.flash-link:hover { text-decoration: none; filter: brightness(.98); }
.flash-link svg:last-child { margin-left: auto; }
.chart-foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.chart-foot b { color: var(--ink); }
.chart-foot .link { margin-left: auto; font-weight: 800; }
.g-bottom3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g-bottom3 { grid-template-columns: minmax(0, 1fr); } }
.cat-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat-bars li { display: grid; gap: 6px; font-weight: 700; font-size: 13.5px; }
.cat-bars .bar { height: 8px; background: #edf1f6; border-radius: var(--pill); overflow: hidden; display: block; }
.cat-bars .bar i { display: block; height: 100%; border-radius: var(--pill); }
.empty.slim { padding: 22px 10px; }
.empty.slim .em-ico { width: 48px; height: 48px; }
.bday-line { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--orange-ink); }
.bcard-band .big { font-size: 30px; }
.bcard-meter { display: grid; gap: 4px; }
.money-table td, .money-table th { white-space: nowrap; }
.money-table tfoot th { padding: 12px 14px; font-weight: 900; color: var(--ink); text-align: left; border-top: 2px solid var(--line); }
.money-table tr.is-current td { background: var(--green-soft); font-weight: 800; }
.is-void .t, .is-void .nm, .is-void .num { text-decoration: line-through; color: var(--muted); }
.attention { border: 2px solid var(--yellow); }
.form-narrow { max-width: 820px; }
.file-input { padding: 10px; background: var(--surface-2); }
.money-dl { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; margin: 0 0 14px; font-weight: 800; }
.money-dl dd { margin: 0; font-size: 20px; font-weight: 900; text-align: right; }
.money-dl .strong { font-size: 22px; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code.ph { background: var(--blue-soft); color: var(--blue-ink); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; white-space: nowrap; }
.contract-editor { min-height: 520px; font: 600 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Contract document */
.contract-paper { padding: 40px 44px; }
.contract-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 3px solid var(--green); margin-bottom: 22px; }
.contract-title { text-align: center; font-size: 19px; letter-spacing: .02em; margin-bottom: 4px; text-wrap: balance; }
.contract-no { text-align: center; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.contract-facts { background: var(--surface-2); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 20px; }
.contract-body { font-size: 15px; line-height: 1.65; max-width: 70ch; }
.contract-body h3 { font-size: 15.5px; margin: 18px 0 6px; }
.contract-body ul { padding-left: 20px; margin: 0 0 10px; }
.contract-body p { margin-bottom: 10px; }
.contract-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 70px; font-size: 13px; color: var(--muted); font-weight: 700; }
.contract-sign span { border-top: 1.5px solid var(--ink); padding-top: 6px; }
@media (max-width: 639px) { .contract-paper { padding: 22px 18px; } .contract-sign { gap: 18px; } }
.print-page { background: var(--canvas); padding: 20px max(16px, env(safe-area-inset-left)) 40px; }
.print-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.sheet { max-width: 800px; margin: 0 auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
@media print {
  @page { size: A4; margin: 16mm; }
  .no-print, .print-bar { display: none !important; }
  .print-page { background: #fff; padding: 0; }
  .sheet { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .contract-facts { background: #f4f6f8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .contract-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- v0.3.2: cleaner greeting, logo, notifications drawer ---- */
.welcome h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.welcome .sub { font-size: 13.5px; margin-top: 2px; }
.welcome { margin-top: 0; }
@media (max-width: 639px) { .welcome h1 { font-size: 20px; } }
.brand-logo { display: block; max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.top-logo { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 900; font-size: 16px; }
.top-logo:hover { text-decoration: none; }
.top-logo img { display: block; max-height: 30px; width: auto; }
@media (max-width: 1023px) { .top-logo { display: inline-flex; } }
@media (max-width: 767px) { .top-actions { margin-left: auto; } }


/* =====================================================================
   v0.3.3 — Brand colours from the Horizon logo
   Navy #1A2232 (logo background) · Sun gold #F3B337
   ===================================================================== */
:root {
  --navy: #1A2232; --navy-2: #252F44; --navy-3: #313C54; --navy-soft: #E8EBF2;
  --gold: #F3B337; --gold-2: #E9A01C; --gold-soft: #FDF3DC; --gold-ink: #8A5A00;
  --primary: var(--navy);
  --focus: 0 0 0 3px rgba(243, 179, 55, .45);
  --canvas: #F2F4F8;
}
body { background: var(--canvas); }

/* Logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.logo-sun { width: 64px; height: auto; display: block; }
.logo-text { display: flex; flex-direction: column; align-items: center; gap: 5px; font-family: "Montserrat", "Nunito", system-ui, sans-serif; }
.logo-text b { font-weight: 600; font-size: 22px; letter-spacing: .12em; }
.logo-text small { font-weight: 600; font-size: 8.5px; letter-spacing: .2em; }
.logo-light .logo-text { color: #fff; } .logo-light .logo-text small { color: rgba(255,255,255,.72); }
.logo-dark .logo-text { color: var(--navy); } .logo-dark .logo-text small { color: #5B6478; }
.logo-compact { flex-direction: row; gap: 8px; }
.logo-compact .logo-sun { width: 34px; }
.logo-compact .logo-text b { font-size: 15px; letter-spacing: .1em; }

/* Sidebar in logo navy */
.sidebar { background: var(--navy); border-right: 0; color: #fff; scrollbar-color: var(--navy-3) transparent; }
.sidebar .brand { justify-content: center; padding: 10px 6px 24px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 8px; }
.sidebar .nav-label { color: rgba(255,255,255,.38); }
.sidebar .nav a { color: rgba(255,255,255,.74); }
.sidebar .nav a .nav-ico { color: rgba(255,255,255,.5); }
.sidebar .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav a.active { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(243,179,55,.25); }
.sidebar .nav a.active .nav-ico { color: var(--navy); }
.sidebar .nav .count { background: var(--gold); color: var(--navy); }
.sidebar .nav a.active .count { background: var(--navy); color: var(--gold); }
.sidebar .nav .nav-soon { color: rgba(255,255,255,.3); }
.sidebar .nav .nav-soon .nav-ico { color: rgba(255,255,255,.22); }
.sidebar .nav .nav-soon .tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.sidebar .branch-legend { color: rgba(255,255,255,.7); }
.sidebar .sidebar-foot .btn-ghost { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.16); background: transparent; }
.sidebar .sidebar-foot .btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Primary actions in navy, highlights in gold */
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); filter: none; }
.tabs a.active { background: var(--navy); color: #fff; }
.seg input:checked + span { color: var(--navy); }
.pager span.current { background: var(--navy); }
.steps li.current::before { background: var(--gold); color: var(--navy); }
.steps li.done::before { background: var(--gold-soft); color: var(--gold-ink); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: var(--focus); }
.check input, .seg input { accent-color: var(--navy); }
.user-chip .avatar { background: var(--navy); color: var(--gold); }
.icon-btn .dot { background: var(--gold); color: var(--navy); }
.month-label { color: var(--navy); }
.flash-warn, .callout.warn { background: var(--gold-soft); color: var(--gold-ink); }
.attention { border-color: var(--gold); }
.money-card.is-profit { background: linear-gradient(180deg, var(--surface), var(--gold-soft)); }
.money-card.is-profit .kpi-ico { background: var(--navy); color: var(--gold); }
.contract-head { border-bottom-color: var(--gold); }
.top-logo .logo-text b { color: var(--navy); }

/* Guest pages */
.guest { background:
  radial-gradient(circle at 50% -10%, rgba(243,179,55,.28), transparent 42%),
  linear-gradient(180deg, var(--navy) 0, var(--navy) 38%, var(--canvas) 38%); }
.guest-card .brand { padding: 4px 0 22px; }
.guest-card .brand .logo-sun { width: 80px; }

/* =====================================================================
   Notifications — premium dropdown
   ===================================================================== */
.icon-btn[data-notif-toggle] { transition: background .2s ease, box-shadow .2s ease; }
.icon-btn[data-notif-toggle][aria-expanded="true"] { background: var(--navy); color: var(--gold); box-shadow: 0 8px 22px rgba(26,34,50,.28); }
.icon-btn[data-notif-toggle] .dot { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.icon-btn[data-notif-toggle][aria-expanded="true"] .dot { transform: scale(0); }
.icon-btn.ring svg { animation: bellSwing .7s cubic-bezier(.36,.07,.19,.97); transform-origin: 50% 8%; }
@keyframes bellSwing { 0%,100% { transform: rotate(0) } 15% { transform: rotate(13deg) } 30% { transform: rotate(-11deg) } 45% { transform: rotate(7deg) } 60% { transform: rotate(-4deg) } 75% { transform: rotate(2deg) } }

.notif-catcher { position: fixed; inset: 0; z-index: 85; background: transparent; }
.notif-pop {
  --np-top: 76px; --np-right: 24px; --np-arrow: 26px;
  position: fixed; z-index: 90; top: var(--np-top); right: var(--np-right);
  width: 384px; max-width: calc(100vw - 24px); max-height: min(560px, calc(100dvh - var(--np-top) - 20px));
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(26,34,50,.08); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(26,34,50,.06), 0 12px 28px rgba(26,34,50,.12), 0 32px 64px rgba(26,34,50,.14);
  transform-origin: calc(100% - var(--np-arrow)) -8px;
  opacity: 0; transform: translateY(-6px) scale(.96); visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.4,0,.2,1), visibility 0s linear .22s;
}
.notif-pop::before { /* caret */
  content: ""; position: absolute; top: -7px; right: calc(var(--np-arrow) - 7px); width: 14px; height: 14px;
  background: inherit; border-left: 1px solid rgba(26,34,50,.08); border-top: 1px solid rgba(26,34,50,.08);
  transform: rotate(45deg); border-radius: 3px 0 0 0;
}
.notif-pop.open {
  opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity .2s ease, transform .42s cubic-bezier(.16,1,.3,1), visibility 0s;
}
.notif-pop:focus { outline: none; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 10px; }
.np-head h2 { font-size: 16.5px; color: var(--navy); }
.np-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--gold-ink); cursor: pointer; }
.np-link:hover { color: var(--navy); }
.np-tabs { position: relative; display: flex; gap: 4px; margin: 0 16px 6px; padding: 4px; background: #F1F3F7; border-radius: 12px; }
.np-tabs button { position: relative; z-index: 1; flex: 1; border: 0; background: none; padding: 7px 10px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 800; color: #6B7488; cursor: pointer; transition: color .25s ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.np-tabs button[aria-selected="true"] { color: var(--navy); }
.np-indicator { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); background: #fff; border-radius: 9px; box-shadow: 0 1px 3px rgba(26,34,50,.12); transition: transform .38s cubic-bezier(.16,1,.3,1); }
.np-tabs[data-active="unread"] .np-indicator { transform: translateX(calc(100% + 4px)); }
.np-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--navy); font-size: 11px; display: inline-grid; place-items: center; }
.np-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 6px; -webkit-overflow-scrolling: touch; }
.np-list { list-style: none; margin: 0; padding: 0; }
.np-item a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; color: var(--ink); transition: background .18s ease, transform .18s ease; }
.np-item a:hover { background: #F5F7FA; text-decoration: none; }
.np-item a:active { transform: scale(.985); }
.np-item + .np-item { margin-top: 2px; }
.np-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.np-ico svg { width: 18px; height: 18px; }
.k-gold { background: var(--gold-soft); color: var(--gold-ink); } .k-green { background: var(--green-soft); color: var(--green-ink); }
.k-red { background: var(--red-soft); color: var(--red-ink); } .k-navy { background: var(--navy-soft); color: var(--navy); }
.np-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.np-title { font-weight: 700; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.is-unread .np-title { font-weight: 800; color: var(--navy); }
.np-sub { font-size: 12.5px; color: #6B7488; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-time { font-size: 11.5px; color: #98A0B0; font-weight: 700; margin-top: 2px; }
.np-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; margin-top: 6px; box-shadow: 0 0 0 3px rgba(243,179,55,.18); }
.np-list.only-unread .np-item:not(.is-unread) { display: none; }
.np-empty { display: grid; justify-items: center; gap: 4px; padding: 34px 20px 38px; text-align: center; color: #6B7488; font-size: 13px; font-weight: 600; }
.np-empty b { color: var(--navy); font-size: 14.5px; }
.np-empty-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); margin-bottom: 6px; }
.np-empty-ico svg { width: 22px; height: 22px; }
.np-foot { border-top: 1px solid rgba(26,34,50,.07); padding: 4px 8px; }
.np-foot a { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 11px; border-radius: 12px; font-size: 13px; font-weight: 800; color: var(--navy); }
.np-foot a:hover { background: #F5F7FA; text-decoration: none; }
.np-foot svg { width: 15px; height: 15px; transition: transform .2s ease; }
.np-foot a:hover svg { transform: translateX(3px); }

/* Staggered entrance of items each time it opens */
.notif-pop.open .np-item, .notif-pop.open .np-empty { animation: npIn .5s cubic-bezier(.16,1,.3,1) both; }
.np-item[data-i="0"] { animation-delay: .05s !important; } .np-item[data-i="1"] { animation-delay: .08s !important; }
.np-item[data-i="2"] { animation-delay: .11s !important; } .np-item[data-i="3"] { animation-delay: .14s !important; }
.np-item[data-i="4"] { animation-delay: .17s !important; } .np-item[data-i="5"] { animation-delay: .2s !important; }
.np-item[data-i="6"] { animation-delay: .23s !important; } .np-item[data-i="7"] { animation-delay: .26s !important; }
.np-item[data-i="8"] { animation-delay: .29s !important; } .np-item[data-i="9"] { animation-delay: .32s !important; }
@keyframes npIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Phones: full-width sheet under the top bar */
@media (max-width: 639px) {
  .notif-pop { left: 10px; right: 10px !important; width: auto; max-width: none; border-radius: 18px; transform-origin: calc(100% - var(--np-arrow)) -8px; }
  .notif-catcher { background: rgba(26,34,50,.18); }
}
@media (prefers-reduced-motion: reduce) {
  .notif-pop, .notif-pop.open { transition: opacity .15s ease, visibility 0s; transform: none; }
  .notif-pop.open .np-item, .notif-pop.open .np-empty, .icon-btn.ring svg { animation: none; }
}
a { color: var(--navy); }
a:hover { color: var(--navy-3); }
.card-head .link, .link { color: var(--gold-ink); }
.guest { background:
  radial-gradient(ellipse 60% 55% at 50% 0%, rgba(243,179,55,.16), transparent 70%),
  linear-gradient(180deg, var(--navy) 0, var(--navy) 38%, var(--canvas) 38%); }

/* ── v0.4 Daily operations ─────────────────────────────────────── */
.mb-s { margin-bottom: 10px; }
.daybar { align-items: center; }
.daybar .month-label { min-width: 170px; text-align: center; }
.sheet-table td { vertical-align: middle; }
.sheet-table input[type="text"], .sheet-table select { min-width: 120px; padding: 8px 10px; font-size: 14px; }
.sheet-table .in-time { width: 132px; padding: 8px 10px; font-size: 14px; }
.seg-sm { padding: 3px; gap: 3px; flex-wrap: nowrap; }
.seg-sm span { padding: 6px 11px; font-size: 13px; min-width: 34px; text-align: center; }
.att-seg input:checked + .t-present { background: var(--green); color: #fff; }
.att-seg input:checked + .t-late { background: var(--yellow); color: #3f2f00; }
.att-seg input:checked + .t-absent { background: var(--red); color: #fff; }
.att-seg input:checked + .t-excused { background: var(--blue); color: #fff; }
tr.att-absent td.primary { box-shadow: inset 3px 0 0 var(--red); }
tr.att-late td.primary { box-shadow: inset 3px 0 0 var(--yellow); }
tr.att-present td.primary { box-shadow: inset 3px 0 0 var(--green); }
.sticky-save { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 2px; margin-top: 8px; border-top: 1px solid var(--line); z-index: 2; }
select.portion.p-all, select.portion.p-most { border-color: var(--green); }
select.portion.p-half { border-color: var(--yellow); }
select.portion.p-little, select.portion.p-none { border-color: var(--red); }

.week-list { list-style: none; margin: 0; padding: 0; }
.week-list > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.week-list > li:last-child { border-bottom: 0; }
.wk-day { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--surface-2); height: 58px; }
.wk-day b { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.wk-day span { font-size: 22px; font-weight: 900; line-height: 1.1; }
.week-list > li.is-today .wk-day { background: var(--navy); color: #fff; }
.week-list > li.is-today .wk-day b { color: var(--gold); }
.wk-items { display: grid; gap: 10px; align-content: center; }
.wk-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.wk-item .badge { margin-right: 6px; }

.shift-grid th, .shift-grid td { text-align: center; white-space: nowrap; }
.shift-grid th:first-child, .shift-grid td:first-child { text-align: left; }
.shift-grid .is-today { background: var(--gold-soft); }
.shift-chip { display: inline-block; background: var(--navy-soft); color: var(--navy); border-radius: var(--r-xs); padding: 4px 8px; font-weight: 800; font-size: 13px; }
.shift-chip small { font-weight: 700; color: var(--muted); font-size: 11px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.add-cell { width: 34px; height: 30px; border-radius: var(--r-xs); border: 1px dashed var(--line-strong); background: none; color: var(--muted); font-weight: 900; cursor: pointer; }
.add-cell:hover { border-color: var(--navy); color: var(--navy); }
.x-btn { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 0 4px; }
.x-btn:hover { color: var(--red); }

.feed { max-width: 760px; display: grid; gap: 16px; }
.composer textarea { width: 100%; resize: vertical; }
.composer .row { flex-wrap: wrap; gap: 10px; }
.post.is-pinned { border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.post .person .sub { font-size: 12px; }
.post-body { margin: 12px 0; font-size: 15px; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.post-tools { gap: 4px; margin-bottom: 6px; }
.comments { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.comment { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 12px; font-size: 14px; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; min-width: 0; }

.daily-report { max-width: 760px; }
.dr-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 3px solid var(--gold); margin-bottom: 6px; }
.dr-head h2 { font-size: 24px; margin: 0 0 4px; }
.dr-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dr-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 8px; color: var(--navy); }
.dr-sec h3 svg { width: 18px; height: 18px; color: var(--gold-2); }
.dr-sec p { margin: 0 0 6px; }
.dr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dr-list li { display: flex; justify-content: space-between; gap: 12px; }
.dr-foot { padding-top: 12px; }
@media print {
  .daily-report { max-width: none; border: 0 !important; }
  .dr-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 767px) {
  .sheet-table .in-time { width: 100%; }
  .sheet-table input[type="text"], .sheet-table select { min-width: 0; width: 100%; }
  .week-list > li { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .daybar .month-label { min-width: 0; }
}
.daybar input[type="date"] { width: auto; max-width: 190px; }
.badge-purple { background: var(--purple-soft); color: #5b3fa8; }
.composer select { width: auto; max-width: 100%; }
.comment-form input { min-height: 40px; font-size: 15px; }

/* =====================================================================
   v0.5 — Horizon Kids logo colours
   Terracotta #AE5244 · Sage #577068 · Light sage #94AAA2 · Blush #D4A39B
   (the old navy/gold tokens are remapped so every component follows)
   ===================================================================== */
:root {
  --navy: #2F4A43; --navy-2: #3B5951; --navy-3: #577068; --navy-soft: #E6EEEB;
  --gold: #AE5244; --gold-2: #963F33; --gold-soft: #F7E8E4; --gold-ink: #8E3B2F;
  --sage: #577068; --sage-light: #94AAA2; --blush: #D4A39B; --blush-soft: #FBF1EE;
  --primary: var(--navy);
  --focus: 0 0 0 3px rgba(174, 82, 68, .28);
  --canvas: #F6F3F1;
  --green-ink: #3E6B4F;
}

/* Light sidebar so the logo sits on white */
.sidebar { background: #fff; color: var(--ink); border-right: 1px solid #EDE6E2; scrollbar-color: #E3DAD5 transparent; }
.sidebar .brand { padding: 6px 4px 18px; border-bottom: 1px solid #F0E9E5; }
.sidebar .brand-logo { max-height: none; width: 190px; max-width: 100%; }
.sidebar .nav-label { color: var(--sage-light); }
.sidebar .nav a { color: #43524D; }
.sidebar .nav a .nav-ico { color: var(--sage-light); }
.sidebar .nav a:hover { background: var(--blush-soft); color: var(--gold-ink); }
.sidebar .nav a:hover .nav-ico { color: var(--gold); }
.sidebar .nav a.active { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(174, 82, 68, .25); }
.sidebar .nav a.active .nav-ico { color: #fff; }
.sidebar .nav .count { background: var(--gold); color: #fff; }
.sidebar .nav a.active .count { background: #fff; color: var(--gold); }
.sidebar .branch-legend { color: var(--ink-2); }
.sidebar .sidebar-foot .btn-ghost { color: var(--ink-2); border-color: var(--line); background: #fff; }
.sidebar .sidebar-foot .btn-ghost:hover { background: var(--blush-soft); color: var(--gold-ink); }

.top-logo img { max-height: 40px; }
.top-logo .logo-text b { color: var(--gold); }

/* Accents that used gold-on-navy now read terracotta / white */
.user-chip .avatar { background: var(--sage); color: #fff; }
.icon-btn .dot { background: var(--gold); color: #fff; }
.icon-btn[data-notif-toggle][aria-expanded="true"] { background: var(--sage); color: #fff; box-shadow: 0 8px 22px rgba(47, 74, 67, .25); }
.money-card.is-profit { background: linear-gradient(180deg, var(--surface), #EEF4F1); }
.money-card.is-profit .kpi-ico { background: var(--sage); color: #fff; }
.steps li.current::before { color: #fff; }
.flash-warn, .callout.warn { background: var(--yellow-soft); color: var(--yellow-ink); }
.week-list > li.is-today .wk-day { background: var(--sage); }
.week-list > li.is-today .wk-day b { color: #F3DCD6; }
.link { color: var(--gold); }
.month-label { color: var(--navy); }
a { color: var(--gold-ink); }

/* Guest (login) */
.guest { background:
  radial-gradient(circle at 15% 0%, rgba(212, 163, 155, .35), transparent 40%),
  radial-gradient(circle at 90% 10%, rgba(148, 170, 162, .35), transparent 42%),
  var(--canvas); }
.guest-logo { display: block; width: 230px; max-width: 80%; height: auto; margin: 0 auto; }

/* Place-hold box in the status dialog, parent birthdays */
.hold-box { border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 10px 14px 4px; margin: 0 0 16px; }
.hold-box legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.bday-sub { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 0 2px; }
.bday-chip.parent { background: #EEF4F1; color: var(--sage); }
a.bday-line { display: flex; color: var(--gold-ink); }
.topbar { background: rgba(246, 243, 241, .9); }
