:root {
  color-scheme: light;
  --petrol: #04344a;
  --petrol-dark: #032637;
  --petrol-soft: #0a4c6a;
  --ink: #1a3340;
  --body: #3c505c;
  --muted: #566b76;
  --line: #dae3e7;
  --bg: #f4f7f8;
  --white: #fff;
  --mint: #8ee3ca;
  --pale: #ecf7f5;
  --radius: 16px;
  --shadow: 0 3px 12px #09304408;
  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 #2a819e; 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: #49af9b; 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: #fff; 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: 18px; align-items: center; height: 73px; }
.brand-separator { width: 1px; height: 23px; background: var(--line); }
.brand-context { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.account-link { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ink); min-width: 0; }
.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: 10px; color: #11544f; background: #e4f5ef; font-size: 12px; font-weight: 800; }
.icon-btn { width: 41px; height: 41px; border-radius: 9px; 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 #edf1f3; overflow-x: auto; scrollbar-width: thin; }
.nav-inner { display: flex; min-width: max-content; gap: 23px; }
.nav-inner a { display: flex; align-items: center; gap: 8px; height: 48px; border-bottom: 2px solid transparent; padding: 0 3px; white-space: nowrap; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav-inner a[aria-current], .nav-inner a:hover { color: var(--petrol); border-bottom-color: #238575; }
.nav-inner .icon { width: 17px; height: 17px; }
.shell { padding-top: 31px; padding-bottom: 46px; min-height: calc(100vh - 210px); }
.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: #237967; }
.hero {
  position: relative; display: flex; align-items: end; justify-content: space-between; isolation: isolate;
  min-height: 235px; gap: 28px; padding: 33px 36px; overflow: hidden; border-radius: 20px;
  background: radial-gradient(ellipse at 95% 110%, #1b756c 0, transparent 60%), linear-gradient(110deg, #032637, #0b4560 84%);
}
.hero::before, .auth-brand::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: linear-gradient(#a8e6df22 1px, transparent 1px), linear-gradient(90deg, #a8e6df22 1px, transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(118deg, transparent 38%, #000 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -24px; bottom: -147px; width: 430px; height: 405px;
  transform: rotate(-18deg); border: 1px solid #c0f5e35a; border-radius: 35%; box-shadow: 0 0 0 31px #95e1ca13, 0 0 0 62px #95e1ca0e;
}
.hero h1 { color: #fff; margin: 11px 0 9px; max-width: 22ch; overflow-wrap: anywhere; }
.hero p:not(.eyebrow) { color: #d4e8ee; }
.hero .eyebrow, .auth-intro .eyebrow { color: #abebda; }
.pulse { width: 8px; height: 8px; background: #8ee3ca; box-shadow: 0 0 0 4px #a2ecd324; border-radius: 50%; display: inline-block; margin-right: 9px; }
.hero-dot { color: #8bb4bd; margin-inline: 8px; }
.hero-aside { display: flex; align-items: center; gap: 13px; flex: none; min-width: 232px; padding: 14px 19px; border: 1px solid #c6eee353; border-radius: 13px; background: #ffffff0e; color: white; }
.hero-calendar { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: #c6f3e31c; color: #acf3df; }
.hero-aside-text small, .hero-aside-text strong { display: block; }
.hero-aside-text small { color: #d3eced; 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: 9px; 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: #0b4c67; border-color: #0b4c67; }
.btn.ghost { background: #fff; color: var(--petrol); border-color: var(--line); }
.btn.ghost:hover { background: #f1f6f7; border-color: #a0bac4; }
.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; }
.btn.hero-btn { margin-top: 22px; color: #053b42; background: #9fe6d1; border-color: #9fe6d1; }
.btn.hero-btn:hover { background: #c5f1e3; border-color: #c5f1e3; }
.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-radius: 20px; background: #e5f3ee; color: #216358; 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; box-shadow: var(--shadow); }
.balance-card.total { background: #eaf7f2; border-color: #c5e7da; }
.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: 9px; background: #edf4f7; color: var(--petrol-soft); flex: none; }
.total .metric-icon { background: #d2eee4; color: #17675b; }
.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 small { color: #1e645e; font-size: 12px; font-weight: 700; }
.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); box-shadow: var(--shadow); 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: 10px; background: #eaf3f6; 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 #cbd9df; border-radius: 9px;
  padding: 9px 11px; color: var(--ink); background: #fff;
}
.field input::placeholder { color: #687d86; }
.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: 8px; background: #edf5f7; 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: #16664f; background: #e2f5ed; }
.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: 5px 0 21px; display: grid; gap: 7px; }
.page-title p:last-child { overflow-wrap: anywhere; }
.back { margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters a { padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid #e6edef; }
.filters a[aria-current], .filters a:hover { background: #e6f3f2; border-color: #cde6e1; color: #175853; }
.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; background: radial-gradient(ellipse at top right, #e5f3f2, transparent 60%), var(--bg); }
.auth-card { width: min(100%, 980px); min-height: 540px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 55px #123e5520; overflow: hidden; }
.auth-brand { isolation: isolate; position: relative; background: radial-gradient(ellipse at 95% 100%, #166f67 0, transparent 62%), linear-gradient(145deg, #032637, #0c4861 86%); padding: 34px; }
.auth-brand-content { height: 100%; min-height: 468px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; align-items: start; }
.brand-tile { background: #fff; border-radius: 10px; padding: 10px 14px; }
.brand-tile img { width: 154px; }
.auth-display { color: #fff; line-height: .99; font-weight: 770; font-size: clamp(42px, 5.6vw, 70px); letter-spacing: -.064em; margin: 10px 0 18px; }
.auth-display span { color: var(--mint); }
.auth-intro > p:last-child { color: #d4e9ed; max-width: 28ch; }
.auth-features { display: flex; flex-wrap: wrap; gap: 7px; }
.auth-features > span { display: inline-flex; align-items: center; gap: 5px; color: #d9f0ef; border: 1px solid #a4ddd647; border-radius: 20px; background: #ffffff10; padding: 5px 7px; font-size: 11px; white-space: nowrap; }
.auth-features .icon { width: 13px; height: 13px; }
.auth-form { display: grid; align-items: center; padding: 33px 44px; }
.auth-form-inner { width: 100%; min-width: 0; max-width: 390px; margin-inline: auto; }
.auth-form h1 { font-size: clamp(28px, 3.2vw, 39px); margin: 8px 0 10px; }
.auth-form .notice { margin: 14px 0 0; }
.auth-fields { margin: 22px 0 13px; }
.auth-emblem { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #e9f4f7; color: var(--petrol-soft); margin-bottom: 14px; }
.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: #24816e; 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%; gap: 16px; }
  .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 { min-height: auto; padding: 22px; border-radius: 15px; align-items: start; flex-direction: column; gap: 16px; }
  .hero-aside { min-width: 0; padding: 8px 11px; gap: 8px; max-width: 100%; }
  .hero-calendar { width: 29px; height: 29px; }
  .hero-calendar .icon { width: 16px; height: 16px; }
  .hero .btn { margin-top: 15px; }
  .section-head { margin-top: 20px; }
  .auth-shell { padding: 17px; }
  .auth-card { grid-template-columns: 1fr; max-width: 445px; min-height: 0; border-radius: 17px; }
  .auth-brand { padding: 18px 22px; }
  .auth-brand-content { min-height: 0; gap: 12px; }
  .auth-display, .auth-features, .auth-intro > p:last-child { display: none; }
  .brand-tile { padding: 7px 10px; }
  .brand-tile img { width: 131px; }
  .auth-form { padding: 24px 22px; }
  .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 { height: 57px; gap: 8px; }
  .nav-inner { padding-inline: 12px; gap: 12px; }
  .nav-inner a { height: 44px; gap: 5px; font-size: 13px; }
  .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; border-radius: 11px; 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 span, .metric small { font-size: 11px; }
  .metric-icon { width: 20px; height: 20px; border-radius: 6px; }
  .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: 10px; }
.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, .calendar-grid tfoot th, .calendar-grid tfoot td { background: #f4f8f9; }
.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 tfoot th, .calendar-grid tfoot td { border-bottom: 0; font-weight: 700; }
.calendar-grid small, .calendar-mobile small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.calendar-grid .weekend { background: #eef3f5; }
.calendar-grid .is-today { background: #dff2ec; box-shadow: inset 1px 0 #b3dcd0, inset -1px 0 #b3dcd0; }
.calendar-mark {
  width: 23px; height: 23px; border-radius: 5px; display: inline-grid; place-items: center;
  background: #d6eee6; color: #145d4e; 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-mobile { display: none; list-style: none; padding: 0; margin: 0; }
.calendar-mobile > 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: 6px; background: #e1f3ec; color: #145d4e; 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; }
[data-annual-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); }
