:root {
  --ground: #f6f5f1;
  --surface: #ffffff;
  --line: #e3e1da;
  --line-soft: #eeece6;
  --ink: #1b1b1a;
  --ink-2: #3f3e3a;
  --muted: #5f5e5a;
  --accent: #0f5c55;
  --accent-ink: #0a403b;
  --accent-soft: #e4f1ee;
  --ben-bg: #e3ecfb;
  --ben-ink: #1e3a8a;
  --misty-bg: #fce7d6;
  --misty-ink: #7a2e0b;
  --warn-bg: #fdf1c7;
  --warn-ink: #6b4a00;
  --danger: #9f1d1d;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, .brand { font-family: "Space Grotesk", Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
h1 { margin: 0; font-size: clamp(26px, 6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
h2, .h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.h2 { font-size: 22px; margin-bottom: 12px; }
.h3 { margin: 0 0 12px; font-size: 16px; }
p { margin: 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.main { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.top-row { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1 1 auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; }
.brand svg { color: var(--accent); }
.brand-lg { font-size: 28px; margin-bottom: 8px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent;
}
.tab[aria-current="page"] { color: var(--accent-ink); font-weight: 600; border-bottom-color: var(--accent); }
.tab-account { margin-left: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap; background: var(--surface); color: var(--ink);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-outline { border-color: #cfccc3; color: var(--ink); }
.btn-ghost { color: var(--ink-2); font-weight: 500; text-decoration: underline; padding: 0 10px; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 14px; border-color: #cfccc3; }
.btn-danger { border-color: #e8c4c4; color: var(--danger); }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #7fb7ae; outline-offset: 2px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 12px 20px; }
.card.narrow { max-width: 600px; width: 100%; margin: 0 auto; }
.page-head { display: flex; flex-direction: column; gap: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.balance { display: flex; flex-direction: column; gap: 14px; }
.balance-figure { display: flex; flex-direction: column; gap: 4px; }
.owes { font-weight: 600; font-size: 14px; }
.owes-ben { color: var(--ben-ink); }
.owes-misty { color: var(--misty-ink); }
.owes-even { color: #2b4a2c; }
.amount { font: 600 clamp(32px, 9vw, 40px)/1.05 "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; }
.amount-md { font: 600 26px/1.1 "Space Grotesk", Inter, sans-serif; }
.next { background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.balance-detail { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.notices { display: flex; flex-direction: column; gap: 8px; }
.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 8px 8px 8px 14px;
  text-decoration: none; font-weight: 500; min-height: 44px;
}
.notice .link { color: var(--warn-ink); padding-right: 6px; }
.flash { background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; padding: 12px 16px; font-weight: 500; }

/* tags & chips */
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag-activities { background: #e6f0e3; color: #2b4a2c; }
.tag-medical { background: #efe6f6; color: #55287a; }
.tag-other { background: #ecebe6; color: var(--ink-2); }
.chip-warn, .chip-del { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); }
.chip-del { background: #f7dede; color: var(--danger); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #cfccc3; background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px;
}
.chip-sm { min-height: 38px; font-weight: 500; }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* entry rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li .row, .card-head + .rows .row { border-top: 1px solid var(--line-soft); }
.row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 20px;
  color: inherit; text-decoration: none;
}
.row:hover { background: #faf9f6; }
.row-deleted { opacity: 0.6; }
.row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.row-title strong { font-weight: 600; overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; }
.empty { padding: 24px 20px; color: var(--muted); }

/* forms */
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; border: 0; padding: 0; margin: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="date"], select {
  min-height: 44px; padding: 0 12px; border: 1px solid #cfccc3; border-radius: 10px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; min-width: 0; width: 100%;
}
.has-error input, .has-error select { border-color: var(--danger); }
.error { color: var(--danger); font-size: 13px; font-weight: 500; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #cfccc3; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #7fb7ae; outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap-reverse; gap: 10px; justify-content: flex-end; }
.form-actions .btn { flex: 1 1 140px; min-height: 48px; font-size: 16px; }
.form-actions .btn-primary { flex-grow: 2; }

/* detail */
.detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.detail-head .h2 { margin-bottom: 4px; }
.deleted-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #f7dede; color: var(--danger); border-radius: 10px; padding: 10px 12px; }
.delete-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.events li { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--line); }
.events em { font-style: normal; font-weight: 600; }
.months { list-style: none; margin: 12px 0 0; padding: 0; }
.months li { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-top: 1px solid var(--line-soft); }

.login { max-width: 420px; width: 100%; margin: 8vh auto 0; }

.pct { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pct input { width: 72px; text-align: right; }
.pct[hidden] { display: none; }

.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); }
.inline-form { display: inline-flex; align-items: center; gap: 4px; }
.inline-form input { width: 96px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check > span { display: flex; flex-direction: column; gap: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* periods */
.period-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.period-nav { display: flex; gap: 8px; }
.btn.is-off { color: #a3a19a; border-color: var(--line); cursor: default; }
.pcard-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; padding: 18px 20px; }
.pcard-head > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.pcard-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--line-soft); }
.pblock { padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tint { background: #faf9f6; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 12px; }
.kv > :last-child { text-align: right; }
.kv-total { border-top: 1px solid var(--line); padding-top: 6px; }
.ledger-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line-soft); font-size: 14px; }
.ledger-sum > div { padding: 14px 20px; display: flex; flex-direction: column; gap: 2px; }
.amount-sm { font: 600 22px/1.2 "Space Grotesk", Inter, sans-serif; }
.psection { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: #faf9f6; }
.psection h3 { margin: 0; font-size: 15px; }
.pcard .rows .row { border-top: 1px solid var(--line-soft); }
.pcard .empty { border-top: 1px solid var(--line-soft); padding: 14px 20px; }
.pdetails summary { display: block; padding: 14px 20px; line-height: 20px; border-top: 1px solid var(--line-soft); color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; user-select: none; }
.pdetails summary::-webkit-details-marker { display: none; }
.pdetails summary:hover { background: #faf9f6; }
.pdetails .when-open { display: none; }
.pdetails[open] .when-open { display: inline; }
.pdetails[open] .when-closed { display: none; }
.payer { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.payer-0 { background: var(--ben-bg); color: var(--ben-ink); }
.payer-1 { background: var(--misty-bg); color: var(--misty-ink); }

/* new badge */
.chip-new { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }

/* edit modal */
dialog.modal {
  width: min(640px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.modal::backdrop { background: rgba(27, 27, 26, 0.45); }
body:has(dialog.modal[open]) { overflow: hidden; }
.modal-inner { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head .h2 { margin: 0 0 2px; }
.modal-head p { margin: 0; }
.modal-x { flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: 999px; background: transparent; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-x:hover { background: var(--ground); color: var(--ink); }
.modal-loading { margin: 0; padding: 40px 20px; text-align: center; color: var(--muted); }
.modal-history summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--accent); }
@media (max-width: 560px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; margin: 0;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: opacity 0.4s;
}
.toast-out { opacity: 0; }
.toast { display: flex; align-items: center; gap: 14px; width: max-content; }
.toast-action { margin: -8px -8px -8px 0; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #9fe0d4; font: inherit; font-weight: 700; cursor: pointer; }

/* the entry just saved */
@keyframes row-flash { from { background: var(--accent-soft); } to { background: transparent; } }
.row-flash { animation: row-flash 2.4s ease-out; }

/* floating Add button: phones only, once the header's button has scrolled away */
.fab { display: none; }
@media (max-width: 600px) {
  .fab {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
    background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s, opacity 0.18s;
  }
  .fab svg { width: 26px; height: 26px; }
  .fab-js .fab:not(.fab-show) { transform: scale(0.6); opacity: 0; pointer-events: none; }
  body:has(.fab.fab-show) .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  main.main { padding-bottom: 88px; }
}

/* export */
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 16px; margin-top: 4px; }
.check-tools { display: flex; gap: 8px; margin: 0 0 4px -8px; }

/* closed periods */
.lock-icon { vertical-align: -2px; }
.closed-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 13px/1.4 Inter, sans-serif; vertical-align: middle; }
.lockbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border: 1px dashed #cfccc3; border-radius: var(--radius); font-size: 14px; }
.lockbar p { margin: 0; flex: 1 1 320px; }
.lockbar form { margin: 0; }
.lockbar.is-closed { border-style: solid; background: #f1f0eb; }
.locked-banner { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 10px; background: #f1f0eb; font-size: 14px; }
.locked-banner .lock-icon { margin-top: 3px; flex: none; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.filter-note { margin: -4px 0 0; }

/* Google sign-in */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b6b6b); font-size: 0.85rem; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid #e3e0d8; }
.glogins { list-style: none; margin: 0 0 14px; padding: 0; }
.glogins li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eeebe4; }
.glogins li:last-child { border-bottom: 0; }

/* Admin */
.admin-user-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-logins { list-style: none; margin: 0 0 12px; padding: 0; }
.admin-logins > li { padding: 12px 0; border-bottom: 1px solid #eeebe4; }
.admin-login-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 8px; }
.admin-edit .field { flex: 1 1 160px; margin: 0; }
.admin-edit .error { flex-basis: 100%; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.admin-add summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.newpw { border: 2px solid #7fb7ae; }
.newpw-value code { font-size: 1.3rem; user-select: all; }

/* Entries filter bar: sort switch + dropdown pills */
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.fbar-sort { display: inline-flex; background: #e9e7e0; border-radius: 999px; padding: 3px; }
.fbar-sort a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.fbar-sort a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.fpill { position: relative; display: inline-flex; }
.fpill select { appearance: none; -webkit-appearance: none; border: 1px solid #cfccc3; background: var(--surface); color: var(--ink); border-radius: 999px; min-height: 40px; padding: 0 34px 0 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; max-width: 100%; }
.fpill::after { content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.fpill.on select { background: var(--ink); border-color: var(--ink); color: #fff; }
.fpill.on::after { color: #fff; }
.fbar-clear { color: var(--accent); font-size: 14px; padding: 6px; }
@media (max-width: 600px) {
  .fbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fbar-sort { grid-column: 1 / -1; display: flex; }
  .fbar-sort a { flex: 1; }
  .fpill select { width: 100%; padding: 0 26px 0 12px; font-size: 13px; text-overflow: ellipsis; }
  .fpill::after { right: 11px; }
  .fbar-clear, .fbar noscript { grid-column: 1 / -1; justify-self: start; padding: 0; }
}

/* Periods: half-year stepper inside the filter bar */
.fstep { display: inline-flex; align-items: center; gap: 4px; }
.fstep-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid #cfccc3; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 20px; line-height: 1; text-decoration: none; }
.fstep-btn:hover { background: #faf9f6; }
.fstep-btn.is-off { opacity: 0.35; }
.fstep .fpill select { font-weight: 600; }
.period-head { margin-bottom: 4px; }
@media (max-width: 600px) {
  .fbar-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fbar-periods .fstep { grid-column: 1 / -1; display: flex; }
  .fbar-periods .fstep .fpill { flex: 1; }
}

/* Sub-navigation within a section (Admin: Accounts | History) */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.subtabs a { padding: 8px 12px; color: var(--muted); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

/* Periods: the half-year picker is the page title */
.ptitle { display: flex; }
.ptitle .fstep { gap: 6px; }
.ptitle-pill select { border: 0; background: transparent; font: inherit; font-size: clamp(26px, 6vw, 32px); font-weight: 600; letter-spacing: -0.02em; min-height: 48px; padding: 0 36px 0 6px; border-radius: 10px; }
.ptitle-pill select:hover { background: #ecebe5; }
.ptitle-pill::after { width: 10px; height: 10px; right: 14px; border-width: 0 3px 3px 0; }
.ptitle-side { display: flex; align-items: center; gap: 8px; }
.ptitle-side .closed-tag { margin-left: 0; }
@media (max-width: 600px) {
  .ptitle, .ptitle .fstep { width: 100%; }
  .ptitle .fstep .fpill { flex: 1; }
  .ptitle-pill select { width: 100%; }
  .fbar-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
