body.panel-body {
  --bg: #f6f8fb;
  --bg-2: #ffffff;
  --bg-3: #eef3f8;
  --ink: #1b2836;
  --muted: #526170;
  --soft: #6a7886;
  --line: rgba(31, 78, 121, 0.14);
  --silver: #4d5d6c;
  --gold: #8a6424;
  --gold-deep: #6e4e16;
  --ok: #1d7a4a;
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  color-scheme: light;
  background:
    radial-gradient(880px 420px at 100% -12%, rgba(31, 111, 138, 0.12), transparent 56%),
    radial-gradient(640px 360px at -8% 8%, rgba(196, 161, 90, 0.16), transparent 52%),
    var(--bg);
}
body.panel-body .card,
body.panel-body .slip,
body.panel-body .ledger {
  background: #ffffff;
  border-color: rgba(31, 78, 121, 0.12);
  box-shadow: 0 12px 28px rgba(22, 58, 92, 0.06);
  color: var(--ink);
}
body.panel-body input,
body.panel-body select,
body.panel-body textarea {
  background: #ffffff;
  color: #1b2836;
  border-color: rgba(31, 78, 121, 0.2);
}
body.panel-body input::placeholder { color: #8a97a3; }
.shell { min-height: 100vh; max-width: 100%; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 22px;
  background: #ffffff;
  border-bottom: 1px solid rgba(31, 78, 121, 0.12);
  box-shadow: 0 8px 24px rgba(22, 58, 92, 0.05);
}
.top-meta { margin-left: auto; display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar .brand strong { white-space: nowrap; letter-spacing: 0.04em; font-size: 0.92rem; }
.topbar .btn { white-space: nowrap; }
.who { margin: 0; display: grid; line-height: 1.15; text-align: right; }
.who strong { font-size: 0.95rem; }
.who span { color: var(--soft); font-size: 0.72rem; letter-spacing: 0.12em; }
.panel-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(31, 78, 121, 0.2);
  background: #fff;
  position: relative;
}
.panel-toggle span,
.panel-toggle span::before,
.panel-toggle span::after {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: #1f4e79;
  content: "";
}
.panel-toggle span { top: 20px; }
.panel-toggle span::before { top: -6px; }
.panel-toggle span::after { top: 6px; }
.desk { min-height: calc(100vh - 72px); }
.side {
  display: flex;
  gap: 18px;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
  padding: 18px 12px 28px;
  background: #f8fafc;
  border-right: 1px solid var(--line);
}
.nav-label {
  margin: 16px 12px 6px;
  color: var(--soft);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.level-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.day-picks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.day-picks legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-size: 0.92rem; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.side .brand strong { letter-spacing: 0.06em; font-size: 0.78rem; white-space: nowrap; }
.side .brand small { letter-spacing: 0.08em; }
.side-nav {
  display: flex;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.side-nav a { color: var(--muted); white-space: nowrap; font-size: 0.92rem; }
.side-nav a.is-on, .side-nav a:hover { color: var(--ink); }
.main { min-width: 0; max-width: 100%; padding: 8px 0 40px; }
.main-bar, .main-body { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }
.main-bar { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding: 18px 0 8px; }
.main-bar h1 { font-family: var(--serif); font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.12; margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.panel-body h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.2; overflow-wrap: anywhere; }
.panel-body input, .panel-body select, .panel-body textarea { font-size: 16px; max-width: 100%; }
.wallet-pill { text-align: right; }
.wallet-pill span { display: block; color: var(--soft); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.wallet-pill strong { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 600; color: #1f4e79; }
.grid-3, .grid-2 { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; }
.stat span { color: var(--soft); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stat strong { display: block; margin-top: 6px; font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 1.7rem; font-weight: 600; overflow-wrap: anywhere; letter-spacing: 0; }
.form-card + .form-card { margin-top: 18px; }
.sheet-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 18px; background: #ffffff; }
table.sheet { width: 100%; border-collapse: collapse; min-width: 680px; }
.sheet th, .sheet td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet th { color: var(--soft); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.sheet td { font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; font-size: 0.78rem; letter-spacing: 0.04em; }
.badge.yes { background: rgba(183, 215, 198, 0.16); color: var(--ok); }
.badge.no { background: rgba(168, 58, 58, 0.12); color: #8d2f2f; }
.note { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.note.good { border-color: rgba(183, 215, 198, 0.4); }
.note.bad { border-color: rgba(196, 92, 74, 0.45); }
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.week article, .closed-days { padding: 12px; border-radius: 14px; background: #f4f8fb; border: 1px solid var(--line); }
.week span, .closed-days span { display: block; color: var(--soft); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.form-card { max-width: 640px; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth .card { width: min(520px, 100%); }
.invoice {
  background: #f7f5f1;
  color: #1b1a17;
  border-radius: 8px;
  padding: 28px;
  max-width: 860px;
}
.invoice h2, .invoice h3 { font-family: var(--serif); color: #1b1a17; margin: 0 0 6px; }
.invoice p, .invoice td, .invoice th { color: #2a2926; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th, .invoice td { border-bottom: 1px solid #ddd6cc; padding: 8px 6px; text-align: left; }
.invoice .right { text-align: right; }
.muted-ink { color: #6d675e; }
.side-nav a {
  padding: 7px 10px;
  border-radius: 10px;
}
.side-nav a.is-on {
  background: #e7f1f8;
  color: #1f4e79;
}
.side-nav a.side-out { color: var(--gold); }
.stat {
  background:
    linear-gradient(180deg, rgba(31, 111, 138, 0.08), #ffffff 52%);
  border-color: rgba(31, 78, 121, 0.12);
  box-shadow: 0 10px 24px rgba(22, 58, 92, 0.05);
}
.quick, .pkg-grid { display: grid; gap: 12px; }
.quick { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.quick a {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(22, 58, 92, 0.05);
}
.quick a:hover { border-color: rgba(224, 196, 138, 0.55); }
.quick a strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.quick a span { color: var(--soft); font-size: 0.86rem; }
.pkg-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pkg {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(224, 196, 138, 0.35);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 58, 92, 0.05);
}
.pkg b { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--gold); }
.pkg form, .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.inline-form select, .inline-form input { min-width: 0; }
@media (min-width: 980px) {
  .desk { display: grid; grid-template-columns: 232px 1fr; }
  .side { flex-direction: column; align-items: stretch; position: sticky; top: 72px; height: calc(100vh - 72px); overflow: auto; }
  .side-nav { flex-direction: column; gap: 2px; overflow: visible; }
}
@media (max-width: 979px) {
  .panel-toggle { display: inline-block; }
  .side { display: none; border-right: 0; border-bottom: 1px solid var(--line); background: #fff; }
  body.nav-open .side { display: block; box-shadow: 0 18px 36px rgba(22, 58, 92, 0.1); }
  .side-nav { width: 100%; flex-direction: column; }
  .who { display: none; }
  .topbar .brand > span:last-child { display: none; }
  .top-meta { gap: 10px; }
}
@media (max-width: 640px) {
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { padding: 0 12px; gap: 10px; }
  .wallet-pill strong { font-size: 1.15rem; }
}
@media (max-width: 800px) {
  .grid-2, .grid-3, .week { grid-template-columns: 1fr 1fr; }
  .main-bar { align-items: start; flex-direction: column; }
  .wallet-pill { text-align: left; }
  .main-bar, .main-body { width: min(1100px, calc(100% - 28px)); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.45rem; }
  .main-bar h1 { font-size: 1.85rem; }
}
@media print {
  .nav, .side, .main-bar, .no-print, .footer { display: none !important; }
  body, .panel-body { background: white; }
  .shell, .main, .main-body { display: block; width: auto; margin: 0; }
  .invoice { box-shadow: none; }
}
