/* County Government of Garissa — Performance Management & Skills Audit Portal
   Corporate palette drawn from the county seal and the approved staff establishment cover. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format('woff2'); }

:root {
  --maroon: #7d2a2c; --maroon-d: #5b1f20; --maroon-l: #a13d2f; --gold: #d9a441; --gold-l: #f4dfb0; --green: #1f6b45; --green-l: #dff1e6;
  --teal: #138a86; --blue: #2f6db5; --coral: #e2574c; --orange: #ef8a2a; --purple: #6b4fa3; --yellow: #e9c43a;
  --cream: #faf6f0; --paper: #ffffff; --ink: #2b2320; --muted: #6d625a; --line: #eadfce; --shade: #f6efe6;
  --ok: #1f8a4c; --warn: #c77d0a; --bad: #c0392b; --info: #2f6db5;
  --r: 14px; --r-sm: 9px; --shadow: 0 6px 24px rgba(91, 31, 32, .08); --shadow-lg: 0 18px 50px rgba(91, 31, 32, .18);
  --side: 264px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; color: var(--ink); background: var(--cream); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--maroon); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; } h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .82rem; } .tiny { font-size: .74rem; } .center { text-align: center; } .right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt0 { margin-top: 0; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; background: var(--maroon); color: #fff; transition: transform .08s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { background: var(--maroon-l); box-shadow: 0 6px 16px rgba(125, 42, 44, .25); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.gold { background: var(--gold); color: var(--ink); } .btn.gold:hover { background: #e6b354; }
.btn.green { background: var(--green); } .btn.green:hover { background: #24804f; }
.btn.blue { background: var(--blue); } .btn.teal { background: var(--teal); }
.btn.ghost { background: transparent; color: var(--maroon); border: 1.5px solid var(--line); } .btn.ghost:hover { background: var(--shade); box-shadow: none; }
.btn.danger { background: var(--bad); } .btn.sm { padding: 6px 11px; font-size: .82rem; border-radius: 8px; } .btn.block { width: 100%; justify-content: center; }
.btn.google { background: #fff; color: #3c4043; border: 1.5px solid #dadce0; } .btn.google:hover { background: #f8f9fa; }
label.f { display: block; font-weight: 500; font-size: .85rem; margin: 0 0 5px; color: #4a3f39; } label.f .req { color: var(--coral); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, .18); }
.input[readonly], .input:disabled { background: #f7f2ea; color: #5d524a; }
textarea.input { min-height: 74px; resize: vertical; }
.field { margin-bottom: 14px; } .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.pw-wrap { position: relative; } .pw-wrap .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: .8rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: .78rem; }
.checklist li::before { content: '○ '; color: #b5a796; } .checklist li.ok { color: var(--ok); } .checklist li.ok::before { content: '✔ '; color: var(--ok); }
.meter { height: 7px; border-radius: 6px; background: #eee3d5; overflow: hidden; margin-top: 8px; } .meter > i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-hero { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at -10% -20%, #a13d2f 0, transparent 60%), linear-gradient(150deg, var(--maroon) 0%, var(--maroon-d) 70%, #3b1213 100%); }
.auth-hero .brand { display: flex; align-items: center; gap: 16px; } .auth-hero .brand img { width: 74px; height: 74px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); }
.auth-hero .brand b { display: block; font-size: 1.1rem; letter-spacing: .5px; } .auth-hero .brand span { opacity: .8; font-size: .85rem; }
.auth-hero h1 { font-size: 2.35rem; margin: 28px 0 10px; max-width: 520px; } .auth-hero h1 em { color: var(--gold); font-style: normal; }
.auth-hero p.lead { max-width: 480px; opacity: .88; font-size: 1.02rem; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 540px; margin-top: 24px; }
.feature-list div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 12px 14px; font-size: .86rem; backdrop-filter: blur(4px); }
.feature-list div b { display: block; color: var(--gold-l); }
.hexes { position: absolute; right: -150px; bottom: 60px; width: 360px; height: 420px; pointer-events: none; opacity: .45; }
.auth-hero > * { position: relative; z-index: 1; } .auth-hero .hexes { z-index: 0; position: absolute; }
.hex { position: absolute; width: 96px; height: 110px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex::after { content: ''; position: absolute; inset: 9px; clip-path: inherit; background: #3b1213; }
.h1 { background: var(--orange); top: 0; left: 120px; } .h2 { background: var(--coral); top: 86px; left: 210px; } .h3 { background: var(--yellow); top: 200px; left: 210px; }
.h4 { background: var(--blue); top: 286px; left: 120px; } .h5 { background: #e45a8b; top: 86px; left: 30px; } .h6 { background: var(--gold); top: 200px; left: 30px; }
.auth-hero footer { font-size: .78rem; opacity: .7; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 36px 24px; background: linear-gradient(180deg, #fffdf9, var(--cream)); }
.auth-card { width: 100%; max-width: 470px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 30px 32px; border-top: 6px solid var(--gold); }
.auth-card h2 { color: var(--maroon); } .auth-card .sub { color: var(--muted); margin-bottom: 18px; font-size: .9rem; }
.tabs { display: flex; background: var(--shade); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); } .tabs a:hover { text-decoration: none; color: var(--maroon); }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--maroon); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.divider { display: flex; align-items: center; gap: 10px; color: #a4968a; font-size: .8rem; margin: 16px 0; } .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.steps { display: flex; gap: 6px; margin-bottom: 18px; } .steps span { flex: 1; height: 6px; border-radius: 4px; background: #eee3d5; } .steps span.on { background: linear-gradient(90deg, var(--maroon), var(--gold)); }
.match-card { border: 1.5px solid #bfe2cc; background: var(--green-l); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.match-card b { color: var(--green); }
@media (max-width: 920px) { .auth { grid-template-columns: 1fr; } .auth-hero { padding: 28px; } .auth-hero h1 { font-size: 1.6rem; } .feature-list, .hexes { display: none; } }

/* ---------- application shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; color: #f7e9da; padding: 18px 14px;
  background: linear-gradient(185deg, var(--maroon) 0%, var(--maroon-d) 60%, #3b1213 100%); }
.side .brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 12px; }
.side .brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 2px; } .side .brand b { font-size: .86rem; line-height: 1.2; display: block; color: #fff; } .side .brand span { font-size: .7rem; color: var(--gold-l); }
.nav-sec { font-size: .66rem; letter-spacing: 1.4px; text-transform: uppercase; color: #d6b48a; margin: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #f7e9da; font-size: .9rem; margin-bottom: 2px; position: relative; }
.nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.on { background: linear-gradient(90deg, rgba(217, 164, 65, .95), rgba(217, 164, 65, .75)); color: #2b1a10; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.nav a .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .95rem; background: rgba(255, 255, 255, .08); }
.nav a.on .ic { background: rgba(255, 255, 255, .35); }
.nav a .pill:empty { display: none; }
.nav a .pill { margin-left: auto; background: var(--coral); color: #fff; font-size: .68rem; padding: 1px 7px; border-radius: 10px; }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 26px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .crumb { font-weight: 600; color: var(--maroon); } .top .crumb small { display: block; color: var(--muted); font-weight: 400; font-size: .74rem; }
.icon-btn { position: relative; border: 1.5px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; font-size: 1.05rem; }
.icon-btn .dot { position: absolute; top: -5px; right: -5px; background: var(--coral); color: #fff; font-size: .66rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--gold), var(--orange)); }
.me .who { font-size: .8rem; line-height: 1.2; } .me .who small { display: block; color: var(--muted); font-size: .7rem; }
.burger { display: none; }
.content { padding: 24px 26px 60px; max-width: 1320px; }
@media (max-width: 960px) { .shell { grid-template-columns: 1fr; } .side { position: fixed; z-index: 50; left: -290px; width: 270px; transition: left .25s; } .side.open { left: 0; box-shadow: var(--shadow-lg); } .burger { display: grid; } .content { padding: 16px; } .me .who { display: none; } }

/* ---------- cards, tiles, chips ---------- */
.card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; }
.card.accent { border-top: 4px solid var(--maroon); } .card.a-gold { border-top: 4px solid var(--gold); } .card.a-green { border-top: 4px solid var(--green); } .card.a-blue { border-top: 4px solid var(--blue); } .card.a-teal { border-top: 4px solid var(--teal); } .card.a-coral { border-top: 4px solid var(--coral); } .card.a-purple { border-top: 4px solid var(--purple); }
.card h3 { color: var(--maroon); display: flex; align-items: center; gap: 8px; }
.hero { border-radius: 20px; padding: 24px 28px; color: #fff; position: relative; overflow: hidden; margin-bottom: 20px;
  background: radial-gradient(600px 300px at 100% 0, rgba(217, 164, 65, .45), transparent 60%), linear-gradient(120deg, var(--maroon), var(--maroon-l)); box-shadow: var(--shadow-lg); }
.hero h1 { font-size: 1.55rem; } .hero p { opacity: .9; margin: 0; } .hero .tag { display: inline-block; background: rgba(255, 255, 255, .16); padding: 3px 10px; border-radius: 20px; font-size: .78rem; margin: 8px 8px 0 0; }
.tile { border-radius: 16px; padding: 16px 18px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); min-height: 108px; }
.tile .v { font-size: 1.9rem; font-weight: 700; line-height: 1.1; } .tile .l { font-size: .82rem; opacity: .92; } .tile .s { font-size: .74rem; opacity: .85; margin-top: 4px; }
.tile::after { content: ''; position: absolute; right: -20px; bottom: -30px; width: 110px; height: 120px; background: rgba(255, 255, 255, .12); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.t-maroon { background: linear-gradient(135deg, #8d3133, #5b1f20); } .t-gold { background: linear-gradient(135deg, #e3b04f, #c4862a); } .t-green { background: linear-gradient(135deg, #2b8a5a, #17583a); }
.t-blue { background: linear-gradient(135deg, #3b80cf, #24569a); } .t-teal { background: linear-gradient(135deg, #1ea39e, #0f6f6b); } .t-coral { background: linear-gradient(135deg, #ee6c61, #c2423a); }
.t-purple { background: linear-gradient(135deg, #8065b8, #553c8a); } .t-orange { background: linear-gradient(135deg, #f39b47, #d06d14); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--shade); color: var(--muted); white-space: nowrap; }
.chip.ok { background: #dcf3e5; color: #19703d; } .chip.warn { background: #fff0d6; color: #95600a; } .chip.bad { background: #fde3e0; color: #a3291c; } .chip.info { background: #e1ecfa; color: #1f5596; } .chip.maroon { background: #f6e1df; color: var(--maroon); } .chip.purple { background: #ece6f7; color: #553c8a; }
.progress { height: 9px; background: #efe5d8; border-radius: 6px; overflow: hidden; } .progress > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--maroon), var(--gold)); transition: width .4s; }
.ring { --p: 0; --c: var(--maroon); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #efe5d8 0); }
.ring > span { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: var(--maroon); }
.list { list-style: none; padding: 0; margin: 0; } .list li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; align-items: flex-start; } .list li:last-child { border-bottom: 0; }
.mod { display: block; border-radius: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; color: inherit; }
.mod:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.mod .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.alert { border-radius: 12px; padding: 12px 14px; display: block; font-size: .88rem; margin-bottom: 10px; border: 1px solid; }
.alert .btn { float: right; margin: -3px 0 0 10px; } .alert::after { content: ''; display: block; clear: both; }
.alert.info { background: #eef4fc; border-color: #c9dbf3; } .alert.warn { background: #fff7e8; border-color: #f2d9a6; } .alert.ok { background: #e9f7ef; border-color: #bfe2cc; } .alert.bad { background: #fdeceb; border-color: #f2c1bb; } .alert.action { background: #fbeee9; border-color: #efc6b7; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.t th { background: var(--maroon); color: #fff; font-weight: 600; text-align: left; padding: 10px 12px; position: sticky; top: 0; white-space: nowrap; }
table.t td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; } table.t tr:nth-child(even) td { background: #fcf9f4; }
table.t tr.grp td { background: #f2e6d6 !important; font-weight: 700; color: var(--maroon); }
table.t input.input, table.t select.input, table.t textarea.input { padding: 6px 8px; border-radius: 8px; font-size: .84rem; min-width: 70px; }
table.t textarea.input { min-height: 54px; min-width: 180px; }

/* ---------- forms (instruments) ---------- */
.form-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.form-head .title h1 { margin: 0; color: var(--maroon); } .form-head .title p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.savebar { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; } .savebar.saving { color: var(--warn); } .savebar.saved { color: var(--ok); } .savebar.err { color: var(--bad); }
.stepper { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; }
.stepper button { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 30px; padding: 7px 14px 7px 7px; cursor: pointer; font-weight: 500; font-size: .84rem; color: var(--muted); }
.stepper button .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--shade); font-size: .76rem; font-weight: 700; }
.stepper button.on { border-color: var(--maroon); color: var(--maroon); background: #fff6f2; } .stepper button.on .n { background: var(--maroon); color: #fff; }
.stepper button.done .n { background: var(--green); color: #fff; }
.target { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 26px; margin-bottom: 12px; background: #fff; position: relative; }
.target .num { position: absolute; left: -10px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.tips { margin-top: 8px; display: grid; gap: 4px; } .tips div { font-size: .78rem; padding: 5px 9px; border-radius: 8px; } .tips .warn { background: #fff4df; color: #8a5a0c; } .tips .info { background: #eef4fc; color: #255287; }
.scorebox { border-radius: 16px; padding: 16px; color: #fff; background: linear-gradient(135deg, var(--green), #17583a); }
.scorebox .big { font-size: 2rem; font-weight: 700; } .scorebox.r-Excellent { background: linear-gradient(135deg, #1f8a4c, #10592f); } .scorebox.r-VeryGood { background: linear-gradient(135deg, #2f6db5, #1f4f87); }
.scorebox.r-Good { background: linear-gradient(135deg, #138a86, #0d625f); } .scorebox.r-Fair { background: linear-gradient(135deg, #ef8a2a, #c06410); } .scorebox.r-Poor { background: linear-gradient(135deg, #e2574c, #a3291c); } .scorebox.r-none { background: linear-gradient(135deg, #8a7d71, #5d524a); }
.sigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sig { border: 1.5px dashed #d8c8b4; border-radius: 14px; padding: 12px; background: #fffdfa; } .sig.done { border-style: solid; border-color: #9fd3b4; background: #f3fbf6; }
.sig img { max-width: 100%; height: 56px; object-fit: contain; display: block; margin: 6px 0; background: #fff; border-radius: 8px; }
.sig h4 { font-size: .82rem; color: var(--maroon); margin: 0 0 4px; }
.rate { display: inline-flex; gap: 4px; } .rate button { width: 34px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; }
.rate button.on { color: #fff; border-color: transparent; } .rate button.on.v1 { background: var(--coral); } .rate button.on.v2 { background: var(--orange); } .rate button.on.v3 { background: var(--yellow); color: var(--ink); } .rate button.on.v4 { background: var(--teal); } .rate button.on.v5 { background: var(--green); }
.comp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.locked-note { font-size: .78rem; color: #7a5a14; background: #fff6df; border-radius: 8px; padding: 6px 10px; display: inline-block; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .calendar div { aspect-ratio: 1.3; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .74rem; padding: 4px; }
.calendar .hd { background: none; border: 0; text-align: center; font-weight: 600; color: var(--muted); aspect-ratio: auto; } .calendar .we { background: #f5efe7; } .calendar .hol { background: #fff0d6; } .calendar .lv { background: #dcf3e5; border-color: #9fd3b4; } .calendar .pend { background: #e1ecfa; } .calendar .today { outline: 2px solid var(--maroon); }

/* ---------- overlays ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(43, 20, 15, .55); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); border-top: 6px solid var(--gold); }
.modal.wide { max-width: 900px; } .modal header { padding: 18px 22px 0; display: flex; justify-content: space-between; align-items: center; } .modal header h3 { color: var(--maroon); margin: 0; }
.modal .body { padding: 16px 22px 22px; } .modal .x { border: 0; background: var(--shade); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { background: #2b2320; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 240px; max-width: 380px; font-size: .88rem; animation: up .2s; border-left: 5px solid var(--gold); }
.toast.ok { border-left-color: #3ccf7a; } .toast.bad { border-left-color: var(--coral); }
.sigpad { width: 100%; height: 200px; border: 2px dashed #d8c8b4; border-radius: 14px; background: #fff linear-gradient(transparent 150px, #eee3d5 150px, #eee3d5 152px, transparent 152px); touch-action: none; cursor: crosshair; display: block; }
.qr { display: grid; place-items: center; padding: 10px; } .qr img { width: 220px; height: 220px; border-radius: 12px; border: 6px solid var(--shade); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); } .empty .big { font-size: 2.4rem; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #eadfce; border-top-color: var(--maroon); animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(10px); opacity: 0; } }
.chart-box { position: relative; height: 260px; } .chart-box.tall { height: 320px; }
.kbd { font-family: ui-monospace, monospace; background: var(--shade); padding: 1px 6px; border-radius: 6px; font-size: .8rem; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 10px; }
@media print { .side, .top, .btn, .stepper { display: none !important; } .shell { display: block; } }
