:root {
  color-scheme: light;
  --petrol: #04344a;
  --petrol-dark: #032637;
  --petrol-soft: #0a4c6a;
  --ink: #263c47;
  --body: #404140;
  --muted: #6b7076;
  --line: #e2e5e8;
  --line-soft: #edeff1;
  --bg: #f5f6f7;
  --white: #fff;
  --surface-muted: #f3f6f8;
  --accent-bg: #f2f7fa;
  --accent-line: #c8dbe5;
  --ok: #2e7d32;
  --radius: 5px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-size: 15px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--petrol); line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(29px, 4vw, 43px); }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { color: var(--body); }
a { color: var(--petrol-soft); text-decoration: none; }
a:hover { color: var(--petrol-dark); }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--petrol-soft); outline-offset: 3px;
}
.icon { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.skip { opacity: 0; position: fixed; left: 12px; top: -80px; z-index: 50; color: #fff; background: var(--petrol); padding: 10px 15px; border-radius: 6px; }
.skip:focus { opacity: 1; top: 12px; }
.splash { display: none; }
.splash.play {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  background: #fff; animation: splash-exit .8s ease both; pointer-events: none;
}
.splash-inner { width: min(270px, 68vw); display: grid; gap: 22px; place-items: center; }
.splash-inner span { display: block; width: 38px; height: 3px; background: var(--petrol); border-radius: 6px; }
@keyframes splash-exit {
  0%, 47% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--petrol-soft); }
.muted, .form-note { color: var(--muted); font-size: 14px; }
.form-note { font-size: 13px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 156px; }
.top { background: var(--white); color: var(--petrol); border-bottom: 1px solid var(--line); }
.top-inner, .nav-inner, .shell, .site-footer > div { width: min(100% - 64px, 1230px); margin-inline: auto; }
.top-inner { display: flex; gap: 16px; align-items: center; min-height: 64px; }
.brand-separator { width: 1px; height: 23px; background: var(--line); }
.brand-context { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.account-link { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--petrol); min-width: 0; }
.account-link:hover strong { text-decoration: underline; }
.account-link > span:last-child { min-width: 0; }
.account-link strong, .account-link small { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.account-link strong { font-size: 14px; }
.account-link small { color: var(--muted); font-size: 12px; }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--radius); color: var(--petrol); background: var(--accent-bg); font-size: 12px; font-weight: 800; }
.icon-btn { width: 41px; height: 41px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center; background: #fff; color: var(--petrol); }
.icon-btn:hover { background: var(--bg); }
.main-nav { border-top: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--accent-line) var(--white); }
.nav-inner { display: flex; min-width: max-content; }
.nav-inner a { display: flex; align-items: center; gap: 8px; height: 45px; border-bottom: 3px solid transparent; padding: 0 13px; white-space: nowrap; color: var(--muted); font-size: 13px; font-weight: 650; }
.nav-inner a:hover { color: var(--petrol); background: var(--surface-muted); }
.nav-inner a[aria-current] { color: var(--petrol); background: var(--accent-bg); border-bottom-color: var(--petrol); }
.nav-inner a:focus-visible { outline-offset: -3px; }
.nav-inner .icon { width: 17px; height: 17px; }
.shell { padding-top: 24px; padding-bottom: 42px; min-height: calc(100vh - 175px); }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.site-footer > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 12px; }
.site-footer .icon { width: 15px; height: 15px; margin-right: 4px; color: var(--petrol-soft); }
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 27px;
  border: 1px solid var(--line); border-left: 3px solid var(--petrol); border-radius: var(--radius);
  background: var(--white);
}
.hero-copy { min-width: 0; }
.hero h1 { margin: 7px 0 5px; overflow-wrap: anywhere; }
.hero-aside { display: flex; align-items: center; gap: 12px; flex: none; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-bg); color: var(--petrol); }
.hero-calendar { width: 37px; height: 37px; border-radius: var(--radius); display: grid; place-items: center; flex: none; background: var(--white); color: var(--petrol); }
.hero-aside-text small, .hero-aside-text strong { display: block; }
.hero-aside-text small { color: var(--muted); font-size: 12px; }
.hero-aside-text strong { font-size: 15px; font-weight: 750; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px;
  border: 1px solid transparent; border-radius: var(--radius); padding: 9px 15px; font-weight: 700; font-size: 14px; line-height: 1.35;
  text-align: center; max-width: 100%; transition: background-color .12s, border-color .12s;
}
.btn.primary { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.btn.primary:hover { background: var(--petrol-soft); border-color: var(--petrol-soft); }
.btn.ghost { background: #fff; color: var(--petrol); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-bg); border-color: var(--accent-line); }
.btn.ghost.danger { color: #a02636; }
.btn.ghost.danger:hover { background: #fff3f3; border-color: #dfa9ad; }
.btn.compact { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn.wide { width: 100%; justify-content: space-between; }
.section-head { margin: 27px 0 13px; display: flex; justify-content: space-between; align-items: end; gap: 11px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 4px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-bg); color: var(--petrol); font-size: 12px; }
.pill .icon { width: 15px; height: 15px; }
.balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.balance-card { position: relative; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); min-height: 132px; padding: 17px 19px; }
.balance-card.total { background: var(--accent-bg); border-color: var(--accent-line); border-top: 3px solid var(--petrol); }
.balance-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--petrol); font-size: 14px; font-weight: 700; }
.metric-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: var(--radius); background: var(--surface-muted); color: var(--petrol-soft); flex: none; }
.total .metric-icon { background: var(--petrol); color: var(--white); }
.metric { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.metric strong { font-size: 39px; line-height: 1.19; color: var(--petrol-dark); letter-spacing: -.05em; }
.metric span { color: var(--muted); font-size: 14px; }
.metric strong.fraction { font-size: 32px; }
.balance-card p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.balance-card p span { margin: 0 2px; color: #6b8e9c; }
.balance-foot { color: var(--muted); font-size: 13px; margin: 12px 0 23px; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dashboard-columns { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 15px; }
.panel > h2 + p { margin: 8px 0 14px; }
.panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.panel-head > div { min-width: 0; flex: 1; }
.panel-head p { color: var(--muted); margin-top: 3px; font-size: 13px; overflow-wrap: anywhere; }
.panel-icon { width: 39px; height: 39px; border-radius: var(--radius); background: var(--surface-muted); color: var(--petrol-soft); flex: none; display: grid; place-items: center; }
.panel-tail { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 13px; }
.stack { display: grid; gap: 14px; min-width: 0; }
.stack > .btn { justify-self: start; }
.stack > .btn.wide { justify-self: stretch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; color: var(--ink); }
.field > span { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-width: 0; min-height: 43px; border: 1px solid #c9d2d8; border-radius: var(--radius);
  padding: 9px 11px; color: var(--ink); background: #fff;
}
.field input::placeholder { color: var(--muted); }
.field textarea { resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.notice { display: flex; align-items: start; gap: 9px; border: 1px solid #cee1ea; background: #edf6fa; padding: 11px 13px; border-radius: 10px; margin: 0 0 14px; }
.notice p { color: #124967; font-size: 14px; overflow-wrap: anywhere; }
.notice .icon { color: #296483; margin-top: 1px; }
.notice.ok { background: #ebf8f2; border-color: #c5e9d8; }
.notice.ok p, .notice.ok .icon { color: #14614d; }
.notice.error { background: #fff0f2; border-color: #efc5cb; }
.notice.error p, .notice.error .icon { color: #882334; }
.notice.warning { background: #fff7e7; border-color: #efdcae; }
.notice.warning p, .notice.warning .icon { color: #745209; }
.plain-details { border-top: 1px solid var(--line); padding-top: 10px; margin: 9px 0 0; }
.plain-details > summary { color: var(--petrol-soft); cursor: pointer; font-size: 13px; font-weight: 750; padding: 5px 0; }
.plain-details > form, .plain-details > .check-field, .plain-details > p { margin-top: 9px; }
.check-field { display: flex; align-items: start; gap: 8px; color: var(--body); font-size: 13px; }
.check-field input { margin: 3px 0 0; accent-color: var(--petrol); }
.demand-note { color: #6d4f12; font-size: 13px; border-left: 3px solid #d9a539; background: #fff7e9; padding: 8px 11px; }
.demand-note[hidden] { display: none; }
.quote { display: flex; align-items: start; gap: 8px; padding: 9px 11px; border-radius: var(--radius); background: var(--accent-bg); color: var(--petrol-soft); font-size: 13px; }
.quote.error { background: #fff0f2; color: #882334; }
.quote .icon { width: 16px; height: 16px; margin-top: 1px; }
.record { min-width: 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e7edf0; padding: 11px 0; color: var(--ink); }
.record:hover { background: #f5f9fa; }
.record:last-child { border-bottom-color: transparent; }
.record-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--petrol-soft); background: #edf5f8; border-radius: 10px; flex: none; }
.record-icon.urgent { color: #885000; background: #fff1d9; }
.record-main { flex: 1; min-width: 0; }
.record-main strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.record-main small { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 12px; }
.record > .icon { width: 15px; height: 15px; color: #527783; }
.badge { font-size: 11px; font-weight: 750; padding: 4px 8px; border-radius: 16px; color: #2b5b6d; background: #edf3f6; line-height: 1.35; max-width: 116px; text-align: center; flex: none; }
.badge.pending { color: #745014; background: #fff0d1; }
.badge.approved { color: var(--ok); background: #eaf5ea; }
.badge.rejected { color: #8c2738; background: #fde9ed; }
.badge.cancelled { color: #515e67; background: #edf0f3; }
.empty { min-height: 150px; padding: 22px 10px; display: grid; place-items: center; align-content: center; gap: 5px; text-align: center; }
.empty > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #426a78; background: #edf5f7; margin-bottom: 4px; }
.empty p { font-size: 13px; color: var(--muted); max-width: 34ch; }
.text-link, .back { display: inline-flex; align-items: center; gap: 6px; color: var(--petrol-soft); font-size: 14px; font-weight: 750; }
.text-link { margin-top: 12px; }
.text-link:hover, .back:hover, .auth-link:hover { text-decoration: underline; }
.text-link .icon, .back .icon { width: 16px; height: 16px; }
.page-title { margin: 0 0 18px; display: grid; gap: 6px; padding: 6px 0 17px; border-bottom: 1px solid var(--line); }
.page-title h1, .page-title p:last-child { overflow-wrap: anywhere; }
.page-title p:last-child { color: var(--muted); }
.back { margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters a { padding: 7px 10px; border-radius: var(--radius); font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); background: #fff; }
.filters a[aria-current], .filters a:hover { background: var(--accent-bg); border-color: var(--accent-line); color: var(--petrol); }
.paging { display: flex; gap: 9px; margin-top: 15px; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.search-form, .year-form { display: flex; gap: 8px; align-items: end; margin-bottom: 10px; }
.search-form label { flex: 1; }
.year-form { margin: 0; }
.year-form input { max-width: 93px; }
.definition { display: grid; gap: 0; margin: 8px 0 16px; }
.definition > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 9px; padding: 8px 0; border-bottom: 1px solid #e7edf0; font-size: 14px; }
.definition dt { color: var(--muted); }
.definition dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.day-list { list-style: none; margin: 8px 0 12px; padding: 0; }
.day-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid #e7edf0; padding: 7px 0; font-size: 13px; color: var(--body); }
.decision-note { margin: 8px 0 14px; padding: 12px; background: #eef5f8; border-radius: 9px; overflow-wrap: anywhere; }
.decision-note p { margin-top: 4px; font-size: 14px; }
.week-grid { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.week-grid legend { color: var(--muted); font-weight: 650; font-size: 13px; padding: 0 4px; }
.wrap-code { overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; }
.queue-panel { margin-top: 18px; }
.queue-panel .day-list { margin-bottom: 0; }
.audit-item { border-bottom: 1px solid var(--line); padding: 9px 0; }
.audit-item summary { cursor: pointer; }
.audit-item summary span { color: var(--muted); margin-left: 7px; font-size: 13px; }
.audit-item p { margin-top: 5px; font-size: 13px; }
.narrow { max-width: 550px; }
.install-shell { width: min(100% - 30px, 780px); margin: 0 auto; padding: 26px 0 45px; }
.install-shell > .brand { margin-bottom: 18px; }
.install-shell h2 { margin-bottom: 12px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 38px 24px; }
.auth-card {
  width: min(100%, 448px); background: var(--white); padding: 32px 36px;
  border: 1px solid var(--line); border-top: 3px solid var(--petrol); border-radius: var(--radius);
  box-shadow: 0 10px 30px #04344a0d;
}
.auth-head { display: grid; justify-items: center; gap: 12px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.auth-head .brand img { width: 210px; }
.auth-card h1 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 8px; }
.auth-card .notice { margin: 14px 0 0; }
.auth-fields { margin: 22px 0 13px; }
.auth-link { display: inline-block; font-size: 14px; font-weight: 700; }
.auth-safe { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 21px; padding-top: 13px; }
.auth-safe .icon { color: var(--petrol-soft); width: 16px; height: 16px; }
@media (max-width: 900px) {
  .top-inner, .shell, .site-footer > div { width: calc(100% - 38px); }
  .nav-inner { padding-inline: 19px; width: max-content; min-width: 100%; }
  .brand-context { display: none; }
  .brand-separator { display: none; }
  .panel { padding: 17px; }
}
@media (max-width: 690px) {
  .columns, .dashboard-columns { grid-template-columns: 1fr; gap: 13px; }
  .shell { padding-top: 17px; padding-bottom: 27px; }
  .hero { padding: 20px; align-items: start; flex-direction: column; gap: 16px; }
  .hero-aside { padding: 8px 11px; gap: 8px; max-width: 100%; }
  .hero-calendar { width: 29px; height: 29px; }
  .hero-calendar .icon { width: 16px; height: 16px; }
  .hero-actions { margin-top: 15px; }
  .page-title { padding: 4px 0 14px; }
  .section-head { margin-top: 20px; }
  .auth-shell { padding: 17px; }
  .auth-card { padding: 25px 23px; }
  .auth-head .brand img { width: 178px; }
  .field input, .field select, .field textarea { font-size: 16px; }
}
@media (max-width: 430px) {
  .top-inner, .shell, .site-footer > div { width: calc(100% - 24px); }
  .top-inner { min-height: 57px; gap: 8px; }
  .nav-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; padding-inline: 12px; }
  .nav-inner a {
    min-height: 50px; height: auto; flex-direction: column; justify-content: center; gap: 3px;
    padding: 5px 3px; font-size: 11px; line-height: 1.2; white-space: normal; text-align: center;
  }
  .nav-inner .icon { width: 16px; height: 16px; }
  .brand img { width: 124px; }
  .account-link { gap: 5px; }
  .account-link strong { font-size: 12px; }
  .account-link small { font-size: 10px; }
  .avatar { display: none; }
  .icon-btn { height: 35px; width: 35px; }
  .balance-grid { gap: 6px; }
  .balance-card { padding: 9px; min-height: 108px; }
  .balance-caption { font-size: 11px; line-height: 1.3; }
  .balance-card p { font-size: 10px; }
  .metric { gap: 4px; }
  .metric strong { font-size: 28px; }
  .metric strong.fraction { font-size: clamp(16px, 5vw, 21px); }
  .metric span { font-size: 11px; }
  .metric-icon { width: 20px; height: 20px; }
  .metric-icon .icon { width: 13px; height: 13px; }
  .panel { padding: 14px; }
  .record { gap: 6px; }
  .record-icon { width: 28px; height: 28px; border-radius: 7px; }
  .record-icon .icon { width: 15px; height: 15px; }
  .record > .icon { display: none; }
  .badge { max-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .splash.play { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.calendar-toolbar, .calendar-navigation, .calendar-filters, .calendar-legend {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.calendar-toolbar { justify-content: space-between; margin-bottom: 14px; }
.calendar-toolbar .panel-head { margin-bottom: 0; }
.calendar-navigation { gap: 6px; }
.calendar-navigation .icon-btn { width: 36px; height: 36px; }
.calendar-filters { align-items: end; padding: 13px 0; border-top: 1px solid var(--line); }
.calendar-filters .field { min-width: 140px; }
.calendar-legend { gap: 14px; margin: 1px 0 11px; }
.calendar-legend > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.calendar-scroll { max-height: min(65vh, 580px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.calendar-scroll:focus-visible { outline: 2px solid var(--petrol-soft); outline-offset: 3px; }
.calendar-grid { width: 100%; border-spacing: 0; color: var(--petrol); font-size: 13px; }
.calendar-grid th, .calendar-grid td {
  min-width: 31px; padding: 7px 3px; text-align: center; border-bottom: 1px solid var(--line);
}
.calendar-grid thead th { background: var(--surface-muted); }
.calendar-grid th:first-child {
  position: sticky; left: 0; z-index: 1; min-width: 165px; max-width: 190px;
  padding: 9px 11px; text-align: left; border-right: 1px solid var(--line); overflow-wrap: anywhere;
}
.calendar-grid tbody th { background: #fff; }
.calendar-grid small, .calendar-mobile small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.calendar-grid .weekend { background: var(--bg); }
.calendar-grid .is-today { background: var(--accent-bg); box-shadow: inset 1px 0 var(--accent-line), inset -1px 0 var(--accent-line); }
.calendar-mark {
  width: 23px; height: 23px; border-radius: 5px; display: inline-grid; place-items: center;
  background: #ddeaf1; color: var(--petrol); font-size: 11px; font-weight: 750;
}
.calendar-mark.partial, .calendar-period.partial { background: #faeccf; color: #704b12; }
.calendar-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calendar-count {
  display: flex; width: max-content; min-width: 21px; justify-content: center;
  margin: 4px auto 0; padding: 1px 4px; border-radius: 5px;
  color: var(--muted); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.calendar-count.has-absence { background: var(--petrol); color: var(--white); }
.calendar-mobile { display: none; }
.calendar-mobile-title { margin: 0 0 8px; color: var(--petrol); font-size: 14px; }
.calendar-daily, .calendar-people { list-style: none; padding: 0; margin: 0; }
.calendar-daily { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.calendar-daily > li { padding: 5px 0; border: 1px solid var(--line); border-radius: 5px; text-align: center; font-size: 10px; }
.calendar-daily .weekend { background: var(--bg); }
.calendar-daily .is-today { background: var(--accent-bg); border-color: var(--petrol-soft); }
.calendar-people > li { padding: 11px 0; border-top: 1px solid var(--line); }
.calendar-periods { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.calendar-period { padding: 4px 8px; border-radius: var(--radius); background: #ddeaf1; color: var(--petrol); font-size: 12px; font-weight: 650; }
@media (max-width: 690px) {
  .calendar-desktop { display: none; }
  .calendar-mobile { display: block; }
  .calendar-filters .field { flex: 1 1 130px; min-width: 0; }
}

.calendar-grid thead th { position: sticky; top: 0; z-index: 2; }
.calendar-grid thead th:first-child { z-index: 3; }
.opening-fields { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.opening-fields legend { padding: 0 5px; color: var(--petrol); font-weight: 700; }
.opening-fields[hidden], [data-annual-opening][hidden], [data-monthly-opening][hidden] { display: none; }
.monthly-summary { margin: 0 0 17px; }
.monthly-summary .panel-head { margin-bottom: 9px; }
.monthly-metrics { display: flex; flex-wrap: wrap; gap: 9px 24px; margin: 0 0 9px; }
.monthly-metrics dt { font-size: 12px; color: var(--muted); }
.monthly-metrics dd { margin: 2px 0 0; font-size: 18px; font-weight: 750; color: var(--petrol); }
