/* Portale compensi – Scuola Basket Ferrara
   Palette ricavata dal logo: blu notte, arancio, fucsia, petrolio, lime. */

@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: normal; font-display: swap; src: url('/static/fonts/poppins-latin-800-normal.woff2') format('woff2'); }

:root {
  --navy: #282e69;
  --navy-700: #1f2456;
  --navy-900: #151937;
  --navy-50: #eef0f8;
  --orange: #f68b1e;
  --orange-700: #d9720a;
  --orange-50: #fff3e6;
  --pink: #e63363;
  --pink-50: #fdecf1;
  --teal: #007e90;
  --teal-50: #e3f4f6;
  --lime: #c2bd00;
  --lime-50: #f8f7da;

  --bg: #f4f5fa;
  --surface: #ffffff;
  --text: #1b1f45;
  --muted: #646a8c;
  --border: #e1e4f0;
  --ring: rgba(246, 139, 30, .35);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(21, 25, 55, .06), 0 6px 24px rgba(21, 25, 55, .06);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-700); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.95rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.18rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mb-0 { margin-bottom: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar__inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand__logo { width: 52px; height: 52px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .98rem; }
.brand__sub { font-size: .76rem; opacity: .75; font-weight: 500; }
.stripe { height: 5px; background: linear-gradient(90deg, var(--orange) 0 25%, var(--pink) 25% 50%, var(--teal) 50% 75%, var(--lime) 75% 100%); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav__links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav__links::-webkit-scrollbar { display: none; }
.nav a {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .9rem;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.is-active { background: #fff; color: var(--navy); }
.nav__switch { border: 1px solid rgba(255,255,255,.35); }
.nav__user { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.nav__name { font-size: .85rem; opacity: .85; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}
.btn-logout { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.btn-logout:hover { background: rgba(255,255,255,.12); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 20px 48px; flex: 1; }
.container--narrow { max-width: 860px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.page-head p { margin: 0; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--orange-700); margin-bottom: 4px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.stack > * + * { margin-top: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }

.footer { color: var(--muted); font-size: .8rem; text-align: center; padding: 18px 20px 26px; }

/* ---------- Card ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 22px; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card__head h2, .card__head h3 { margin: 0; }
.card--accent { border-top: 4px solid var(--orange); }
.card--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--navy h2, .card--navy h3 { color: #fff; }

.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat__label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.stat__value { font-size: 1.7rem; font-weight: 700; color: var(--navy-900); line-height: 1.2; }
.stat__note { font-size: .8rem; color: var(--muted); }
.stat::after { content: ''; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; opacity: .12; background: var(--c, var(--navy)); }
.stat--orange { --c: var(--orange); } .stat--pink { --c: var(--pink); } .stat--teal { --c: var(--teal); } .stat--lime { --c: var(--lime); }

/* ---------- Bottoni ---------- */
.btn {
  --b: var(--navy); --f: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .92rem; line-height: 1.2;
  padding: 11px 18px; border-radius: 10px; border: 1.5px solid var(--b);
  background: var(--b); color: var(--f); text-decoration: none; cursor: pointer;
  transition: transform .06s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); color: var(--f); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn--primary { --b: var(--orange); }
.btn--teal { --b: var(--teal); }
.btn--danger { --b: var(--pink); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { background: var(--navy-50); color: var(--navy); filter: none; }
.btn--sm { padding: 6px 11px; font-size: .8rem; border-radius: 8px; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(12, 1fr); }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; }
@media (max-width: 720px) { .form-grid > [class*='col-'] { grid-column: span 12; } .form-grid > .col-3.keep, .form-grid > .col-2.keep { grid-column: span 6; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; color: var(--navy-900); margin-bottom: 12px; padding: 0; font-size: 1.02rem; }
.section-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.02rem; margin: 0 0 14px; color: var(--navy-900); }
.section-title .num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .82rem; flex-shrink: 0; }
.field label, .label { display: block; font-size: .84rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=month], input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text);
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }
input[readonly] { background: var(--bg); color: var(--muted); }
textarea { min-height: 90px; resize: vertical; }
.input-euro { position: relative; }
.input-euro input { padding-left: 34px; font-weight: 600; font-size: 1.1rem; }
.input-euro::before { content: '€'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.error-text { font-size: .8rem; color: var(--pink); margin-top: 5px; font-weight: 500; }
.field--error input, .field--error select { border-color: var(--pink); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s;
}
.choice:hover { border-color: #c9cde2; }
.choice:has(input:checked) { border-color: var(--orange); background: var(--orange-50); }
.choice > input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); flex-shrink: 0; }
.choice__title { font-weight: 600; }
.choice__body { flex: 1; min-width: 0; }
.choices { display: grid; gap: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 22px; }

/* ---------- Avvisi ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.alert::before { content: ''; width: 8px; align-self: stretch; border-radius: 4px; flex-shrink: 0; background: currentColor; opacity: .8; }
.alert > div { flex: 1; }
.alert p:last-child { margin: 0; }
.alert--success { background: var(--teal-50); color: #00525e; border-color: #bfe4e9; }
.alert--info { background: var(--navy-50); color: var(--navy); border-color: #d6dbef; }
.alert--warning { background: var(--orange-50); color: #8a4a05; border-color: #fbd9b3; }
.alert--error { background: var(--pink-50); color: #a3163f; border-color: #f7c4d3; }
.alert form { display: inline; }

/* ---------- Badge di stato ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge--signed { background: var(--teal-50); color: var(--teal); }
.badge--open { background: var(--orange-50); color: var(--orange-700); }
.badge--overdue { background: var(--pink-50); color: var(--pink); }
.badge--exempt { background: var(--lime-50); color: #6b6800; }
.badge--neutral { background: var(--navy-50); color: var(--navy); }
.badge--admin { background: var(--navy); color: #fff; }
.badge--off { background: #eceef4; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Dashboard utente: mesi da compilare ---------- */
.todo-list { display: grid; gap: 12px; }
.todo {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: #fff; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.todo:hover { border-color: var(--orange); box-shadow: 0 6px 18px rgba(246,139,30,.15); color: inherit; transform: translateY(-1px); }
.todo__cal { width: 56px; height: 60px; border-radius: 10px; overflow: hidden; text-align: center; flex-shrink: 0; border: 1.5px solid var(--border); background: #fff; }
.todo__cal b { display: block; background: var(--orange); color: #fff; font-size: .7rem; letter-spacing: .08em; padding: 3px 0; text-transform: uppercase; }
.todo--overdue .todo__cal b { background: var(--pink); }
.todo__cal span { display: block; font-weight: 700; font-size: 1.05rem; padding-top: 6px; color: var(--navy-900); }
.todo__body { flex: 1; min-width: 0; }
.todo__title { font-weight: 600; }
.todo__go { font-weight: 600; color: var(--orange-700); white-space: nowrap; }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty__icon { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); font-size: 1.6rem; }

/* ---------- Barre soglie ---------- */
.meter { margin-top: 12px; }
.meter__top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 6px; gap: 10px; }
.meter__bar { height: 10px; background: var(--navy-50); border-radius: 999px; overflow: hidden; position: relative; }
.meter__fill { height: 100%; border-radius: 999px; background: var(--teal); width: var(--w, 0%); transition: width .3s; }
.meter__proj { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; width: var(--p, 0%); background: repeating-linear-gradient(45deg, rgba(0,126,144,.25) 0 4px, transparent 4px 8px); }
.meter--warn .meter__fill { background: var(--orange); }
.meter--over .meter__fill { background: var(--pink); }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 11px 14px; background: #fafbfe; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfbfe; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.person { display: flex; flex-direction: column; line-height: 1.3; }
.person a { font-weight: 600; text-decoration: none; }
.person small { color: var(--muted); }

/* ---------- Griglia mesi (amministrazione) ---------- */
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .85rem; }
.matrix th, .matrix td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: center; }
.matrix thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fafbfe; position: sticky; top: 0; }
.matrix th.is-current { color: var(--orange-700); }
.matrix .sticky { position: sticky; left: 0; background: #fff; text-align: left; z-index: 1; min-width: 220px; padding-left: 14px; }
.matrix thead .sticky { background: #fafbfe; z-index: 2; }
.matrix tbody tr:hover td, .matrix tbody tr:hover .sticky { background: #fbfbfe; }
.cell {
  width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700;
  text-decoration: none; border: 0; padding: 0; font-family: inherit; cursor: default;
}
a.cell, button.cell { cursor: pointer; }
.cell--signed { background: var(--teal); color: #fff; }
.cell--open { background: var(--orange-50); color: var(--orange-700); box-shadow: inset 0 0 0 2px var(--orange); }
.cell--overdue { background: var(--pink); color: #fff; }
.cell--exempt { background: var(--lime-50); color: #6b6800; box-shadow: inset 0 0 0 1.5px var(--lime); }
.cell--not_required { background: transparent; color: #c5c9db; }
.cell--future { background: transparent; color: #dfe2ec; }
a.cell:hover, button.cell:hover { filter: brightness(1.08); transform: scale(1.06); color: inherit; }
a.cell--signed:hover, button.cell--overdue:hover { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); align-items: center; }
.legend .cell { width: 20px; height: 20px; border-radius: 6px; font-size: .65rem; margin-right: 4px; vertical-align: middle; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar select, .toolbar input[type=search] { width: auto; padding: 7px 10px; font-size: .88rem; }
.year-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--navy-50); border-radius: 999px; padding: 3px; }
.year-nav a { text-decoration: none; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .88rem; }
.year-nav strong { padding: 4px 12px; background: var(--navy); color: #fff; border-radius: 999px; font-size: .88rem; }

/* ---------- Firma ---------- */
.sign-box { position: relative; border: 2px dashed #c9cde2; border-radius: 12px; background: #fff; touch-action: none; }
.sign-box.has-ink { border-style: solid; border-color: var(--navy); }
.sign-box canvas { display: block; width: 100%; height: 200px; border-radius: 10px; cursor: crosshair; touch-action: none; }
.sign-box__hint { position: absolute; inset: 0; display: grid; place-items: center; color: #b3b8cf; pointer-events: none; font-size: .95rem; text-align: center; padding: 10px; }
.sign-box__line { position: absolute; left: 8%; right: 8%; bottom: 46px; border-bottom: 1.5px solid #dfe2ee; pointer-events: none; }
.sign-box.has-ink .sign-box__hint { display: none; }
.sign-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; flex-wrap: wrap; }

.data-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .9rem; margin: 0; }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.suggest {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .82rem; background: var(--navy-50);
  color: var(--navy); padding: 8px 12px; border-radius: 8px; margin-top: 8px;
}
.suggest button { margin-left: auto; }
.notes { margin: 8px 0 0; padding-left: 18px; font-size: .8rem; color: var(--muted); }

.threshold-box { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.threshold { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.threshold__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.threshold__result { font-weight: 600; margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.threshold--ok { border-color: #bfe4e9; background: var(--teal-50); }
.threshold--ok .threshold__result { color: #00525e; }
.threshold--ko { border-color: #f7c4d3; background: var(--pink-50); }
.threshold--ko .threshold__result { color: #a3163f; }
.threshold--na { background: #fafbfe; }
.threshold--na .threshold__result { color: var(--muted); }

.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 6px; z-index: 5; }

/* ---------- Pagine di accesso ---------- */
.auth-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: calc(100vh - 0px); }
.auth-hero {
  background: radial-gradient(circle at 20% 15%, #353c86 0, var(--navy) 45%, var(--navy-900) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px clamp(24px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.auth-hero::before, .auth-hero::after { content: ''; position: absolute; border-radius: 50%; border: 3px solid rgba(255,255,255,.07); }
.auth-hero::before { width: 520px; height: 520px; right: -200px; bottom: -180px; }
.auth-hero::after { width: 340px; height: 340px; right: -110px; bottom: -90px; border-color: rgba(246,139,30,.22); }
.auth-hero .logo { width: clamp(120px, 16vw, 180px); height: auto; margin-bottom: 26px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); position: relative; z-index: 1; }
.auth-hero h1 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; }
.auth-hero p { opacity: .82; max-width: 430px; position: relative; z-index: 1; }
.auth-hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; position: relative; z-index: 1; }
.auth-hero .chip { font-size: .78rem; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.auth-hero .chip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 7px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card--wide { max-width: 760px; }
.auth-card h2 { font-size: 1.5rem; font-weight: 700; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-top: 16px; }
@media (min-width: 901px) { .auth-hero { position: sticky; top: 0; height: 100vh; align-self: start; } }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr !important; }
  .auth-hero { padding: 28px 22px; flex-direction: row; align-items: center; gap: 18px; }
  .auth-hero .logo { width: 76px; margin: 0; }
  .auth-hero h1 { font-size: 1.25rem; margin: 0; }
  .auth-hero p, .auth-hero .chips { display: none; }
}

/* ---------- Responsive header ---------- */
@media (max-width: 1240px) { .nav__name { display: none; } .brand__sub { display: none; } }
@media (max-width: 1080px) {
  .topbar__inner { flex-wrap: wrap; gap: 10px 16px; padding: 10px 14px; }
  .nav { order: 3; width: 100%; flex-basis: 100%; }
  .nav__user { position: absolute; right: 14px; top: 18px; }
  .topbar__inner { position: relative; }
  .nav__name { display: none; }
  .brand__logo { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .avatar { display: none; }
  .brand { max-width: calc(100% - 70px); }
  .sticky-actions { position: static; background: none; }
  .form-actions .btn { flex: 1 1 auto; }
  .brand__name { font-size: .82rem; }
  .container { padding: 20px 14px 40px; }
  .card { padding: 18px 16px; }
  .brand__sub { display: none; }
  .todo { gap: 12px; padding: 12px; }
  .todo__go { display: none; }
  .data-list { grid-template-columns: 1fr; gap: 0; }
  .data-list dd { margin-bottom: 8px; }
}

@media print {
  .topbar, .footer, .form-actions, .btn { display: none !important; }
  body { background: #fff; }
}
