@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #1b302a;
  background: #f5f6f2;
  line-height: 1.5;
  --ink: #1b302a;
  --forest: #184c3e;
  --muted: #586a61;
  --border: #d9e1d9;
  --lime: #d4f3ae;
  --chart-morning: #23745b;
  --chart-evening: #a15b29;
  --pad: clamp(1.1rem, 2.2vw, 1.65rem);
  --radius: 15px;
  --gutter: 1.5rem;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 680; letter-spacing: -.055em; }
h2 { font-size: 1.34rem; font-weight: 660; letter-spacing: -.035em; }
h3 { font-size: 1rem; letter-spacing: -.014em; }
a { color: var(--forest); text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, .button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #24774e; outline-offset: 3px; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 42px;
  padding: .57rem .94rem;
  border: 1px solid var(--forest);
  border-radius: 9px;
  background: var(--forest);
  color: white;
  font-size: .88rem;
  font-weight: 620;
  text-decoration: none;
}
button:hover, .button:hover { background: #0d3a30; }
.secondary, .menu > summary {
  border: 1px solid #cbd6cc;
  background: white;
  color: var(--ink);
}
.secondary:hover, .menu > summary:hover { background: #f1f5ef; }
.icon { width: 1.12rem; height: 1.12rem; flex: none; }
.muted, .hint, .subtitle { color: var(--muted); }
.hint, .subtitle { font-size: .84rem; line-height: 1.5; }
h2 + .subtitle, .side-title + .subtitle { margin-top: .35rem; }
.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 5; background: white; padding: .6rem; }
.skip-link:focus { top: .7rem; }

.site-header { background: #fff; border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top, 0px); }
.header-inner, main, .site-footer {
  width: 100%; max-width: 79rem; margin-inline: auto;
  padding-left: max(var(--gutter), calc(env(safe-area-inset-left, 0px) + .5rem));
  padding-right: max(var(--gutter), calc(env(safe-area-inset-right, 0px) + .5rem));
}
.header-inner { display: flex; align-items: center; gap: 2.4rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .66rem; color: var(--ink); font-size: 1.16rem; letter-spacing: -.048em; font-weight: 720; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; height: 33px; width: 33px;
  border-radius: 10px; background: var(--forest); color: var(--lime);
}
.brand-mark .icon { height: 23px; width: 23px; }
.main-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.main-nav a, .quiet-button { text-decoration: none; font-size: .85rem; font-weight: 550; color: var(--muted); }
.main-nav a { padding-block: .7rem; }
.main-nav a:hover { color: var(--forest); text-decoration: underline; }
.main-nav a[aria-current] { color: var(--forest); text-decoration: underline; }
.logout { margin-left: auto; }
.main-nav + .logout { margin-left: 0; padding-left: 1.3rem; border-left: 1px solid var(--border); }
.quiet-button { background: transparent; border: 0; padding: .4rem 0 .4rem .4rem; }
.quiet-button:hover { background: transparent; color: var(--forest); text-decoration: underline; }

main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-block: 2.2rem 1.6rem; }
[id] { scroll-margin-top: .75rem; }
.page-heading, .section-heading, .heading-actions, .journal-tools, .assignment-tools {
  display: flex; align-items: center; gap: .75rem;
}
.page-heading, .section-heading, .assignment-tools { justify-content: space-between; }
.page-heading { margin-bottom: .4rem; }
.heading-date { margin-top: .36rem; font-size: .9rem; }
.heading-actions { max-width: 100%; }
.panel { min-width: 0; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); padding: var(--pad); }
.menu { position: relative; min-width: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.menu > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: .53rem;
  padding: .55rem .77rem; min-height: 42px; max-width: 100%;
  font-weight: 600; font-size: .86rem; border-radius: 9px;
}
.person-menu > summary { max-width: 15rem; }
.person-menu > summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-name { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; font-size: .94rem; color: var(--forest); }
.profile-name span { overflow-wrap: anywhere; }
.person-menu > summary .icon:last-child, .chart-help .icon, .goal-settings .icon { height: 14px; width: 14px; }
.menu-items {
  position: absolute; z-index: 3; top: calc(100% + .35rem); right: 0;
  width: max-content; min-width: min(11rem, 75vw); max-width: min(20rem, 75vw); max-height: 55vh; overflow: auto;
  padding: .34rem; box-shadow: 0 8px 24px #213e2b1a;
  border: 1px solid var(--border); border-radius: 10px; background: white;
}
.menu-items a { display: block; padding: .62rem .75rem; border-radius: 6px; font-size: .86rem; text-decoration: none; overflow-wrap: anywhere; }
.menu-items a:hover, .menu-items a[aria-current] { background: #edf3e9; }
.menu-items a[aria-current] { font-weight: 700; }
.all-export { border-top: 1px solid var(--border); }

.stat-value, .week-list dd, .delta strong, .table-weight { font-variant-numeric: tabular-nums; }
.stat-value { margin: .54rem 0 .2rem; font-size: clamp(2.15rem, 3.6vw, 2.9rem); font-weight: 620; line-height: 1.14; letter-spacing: -.065em; }
.stat-value small { color: var(--muted); font-size: .41em; letter-spacing: -.02em; font-weight: 500; }
.first-entry { position: relative; overflow: hidden; isolation: isolate; background: var(--forest); color: white; border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.1rem); }
/* A cropped scale dial recalls the instrument without implying another reading. */
.first-entry::after {
  content: ""; position: absolute; z-index: -1; width: 24rem; height: 24rem;
  right: -9rem; bottom: -12rem; border-radius: 50%;
  border: 1px solid #b9d99b40;
  background: repeating-conic-gradient(from 1deg, #bfddad4d 0 1deg, transparent 1deg 6deg);
  mask-image: radial-gradient(closest-side, transparent 74%, black 75% 94%, transparent 95% 98%, black 99%);
}
.first-symbol { display: inline-flex; color: var(--lime); margin-bottom: .7rem; }
.first-symbol .icon { width: 27px; height: 27px; }
.first-entry h2 { color: white; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.first-entry p { margin: .45rem 0 1.2rem; max-width: 50ch; color: #e0ebe0; }
.first-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.first-actions > a { color: white; font-size: .86rem; }
.first-actions .button { background: var(--lime); color: var(--ink); border-color: transparent; }
.first-actions .button:hover { background: #e3f8c8; }
.initial-goal .goal-form { max-width: 20rem; }

.insights { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(15rem, 1fr); gap: 1rem; align-items: start; }
.chart-header { display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.periods { display: inline-flex; max-width: 100%; gap: 1px; padding: 3px; background: #eff2ec; border: 1px solid #e1e5dd; border-radius: 9px; }
.periods a {
  color: #486054; padding: .35rem .59rem; white-space: nowrap; border-radius: 6px;
  font-size: .85rem; font-weight: 570; text-decoration: none; text-align: center;
}
.periods a:hover { background: #e1e8dc; }
.periods a[aria-current] { color: #fff; background: var(--forest); }
.chart-footer { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .65rem; border-top: 1px solid var(--border); padding-top: .83rem; margin-top: .45rem; }
.legend, .legend span, .chart-help summary, .goal-settings summary { display: inline-flex; align-items: center; }
.legend { gap: 1rem; font-size: .8rem; color: #40544a; }
.legend span, .chart-help summary, .goal-settings summary { gap: .43rem; }
.legend i { width: 8px; height: 8px; display: inline-block; }
.morning-key { background: var(--chart-morning); border-radius: 50%; }
.evening-key { border: 2px solid var(--chart-evening); border-radius: 1px; }
.chart-help { text-align: right; }
.chart-help[open] { flex-basis: 100%; text-align: left; }
.chart-help summary, .goal-settings summary { color: var(--forest); font-weight: 600; font-size: .82rem; }
.chart-help summary:hover, .goal-settings summary:hover { text-decoration: underline; }
.chart-help[open] .icon, .goal-settings[open] > summary .icon, .person-menu[open] > summary .icon:last-child { transform: rotate(180deg); }
.chart-help p { color: var(--muted); font-size: .85rem; margin-top: .45rem; }
.chart-empty { display: grid; justify-items: center; align-content: center; text-align: center; gap: .5rem; min-height: 17.6rem; padding: 1.1rem; }
.empty-mark, .icon-tile { display: inline-grid; place-items: center; background: #eff4e8; border-radius: 8px; color: var(--forest); }
.empty-mark { width: 42px; height: 42px; margin-bottom: .22rem; }
.chart-empty p, .journal-empty { max-width: 38ch; line-height: 1.5; color: var(--muted); font-size: .87rem; }
.chart-empty a { font-weight: 600; font-size: .85rem; }
.side-title { display: flex; align-items: center; gap: .6rem; }
.side-title h2 { font-size: 1.14rem; }
.comparison { align-self: stretch; display: flex; flex-direction: column; }
.comparison .week-list { flex: 1; display: flex; flex-direction: column; }
.comparison .week-list > div { flex: 1; }
.icon-tile { width: 31px; height: 31px; }
.week-list { margin-top: .55rem; }
.week-list > div, .delta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.week-list > div { padding: .74rem 0; border-bottom: 1px solid #e4e8e2; }
.week-list dt { font-size: .87rem; font-weight: 580; }
.week-list dt small, .when small, .origin small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.week-list dd { font-size: 1.1rem; font-weight: 650; letter-spacing: -.035em; }
.week-list dd small, .delta small, .table-weight small { font-size: .78em; font-weight: 500; color: #566b5d; }
.delta { padding: .63rem .72rem; background: #eff4e9; color: #375443; margin-top: .76rem; border-radius: 7px; font-size: .8rem; }
.delta strong { font-size: .94rem; color: var(--ink); }
.comparison-note { color: var(--muted); font-size: .8rem; margin-top: .75rem; }
.goal-form { margin-top: .8rem; display: grid; gap: .65rem; }
.goal-form button { justify-self: start; }

.journal { padding: 0; }
.section-heading { padding: 1.15rem var(--pad); }
.journal-tools { flex-wrap: wrap; justify-content: end; }
.unassigned-link { font-size: .82rem; }
.export-menu > summary { min-height: 38px; font-size: .8rem; }
.assignment-tools { padding: 0 var(--pad) 1rem; flex-wrap: wrap; }
.measurements { width: 100%; border-collapse: collapse; text-align: left; font-size: .93rem; }
.measurements th, .measurements td { padding: .73rem .6rem; }
.measurements :is(th, td):first-child { padding-left: var(--pad); }
.measurements :is(th, td):last-child { padding-right: var(--pad); }
.measurements th { color: #52665a; font-size: .8rem; font-weight: 630; background: #f3f5f0; border-block: 1px solid var(--border); }
.measurements td { border-bottom: 1px solid #e7ebe4; }
.measurements tbody tr:last-child td { border-bottom: 0; }
.when, .table-weight { white-space: nowrap; }
.table-weight { font-size: 1rem; font-weight: 650; letter-spacing: -.025em; }
.badge { display: inline-flex; align-items: center; gap: .4rem; border-radius: 5px; padding: .18rem .52rem; font-size: .75rem; background: #f0f2ef; color: #475850; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.morgens { background: #eaf4e9; color: #285e46; }
.badge.abends { background: #faf0e3; color: #804822; }
.badge.abends::before { background: transparent; border: 1px solid; border-radius: 0; }
.origin { color: #45584c; overflow-wrap: anywhere; max-width: 20rem; }
.origin .user-note { color: var(--ink); white-space: pre-line; }
.row-actions { white-space: nowrap; }
.row-actions a { display: inline-block; padding-block: .36rem; font-size: .81rem; }
.row-actions a + a { margin-left: .85rem; color: #675650; }
.pagination { border-top: 1px solid var(--border); }
.pagination, .journal-empty { padding: .95rem var(--pad); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 1.2rem; font-size: .83rem; }
.pagination span { color: var(--muted); }
.pagination a { font-weight: 600; padding-block: .27rem; }
.journal-empty { border-top: 1px solid var(--border); max-width: none; }
.journal-empty h3 { font-size: .94rem; margin: .2rem 0; }
.journal-empty a { display: inline-block; margin-top: .3rem; }

.narrow, .login { width: 100%; max-width: 36rem; margin: 1rem auto; padding: clamp(1.25rem, 3.6vw, 2.15rem); }
.login { max-width: 27rem; }
.narrow > a:first-child { display: inline-block; margin-bottom: 1.2rem; font-size: .84rem; }
.narrow h1, .login h1 { font-size: 2rem; margin-bottom: .8rem; }
.narrow p + p { margin-top: .6rem; }
.stack { display: grid; gap: 1.05rem; margin-top: 1.3rem; }
label { display: block; font-size: .86rem; font-weight: 600; }
.fixed-person { display: grid; gap: .3rem; }
.fixed-person span { color: var(--muted); font-size: .86rem; }
.fixed-person strong { overflow-wrap: anywhere; }
input, select, textarea {
  display: block; width: 100%; min-width: 0; margin-top: .33rem; padding: .65rem .73rem;
  background: #fff; color: var(--ink); border: 1px solid #becbc0; border-radius: 7px; font-size: 1rem;
}
textarea { resize: vertical; }
.two-fields { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1rem; }
.two-fields label { min-width: 0; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; margin-top: 1rem; }
.danger { background: #984432; border-color: #984432; }
.danger:hover { background: #773628; }
.error { padding: .75rem; background: #fff1e9; color: #853a2b; border-radius: 7px; margin-top: .8rem; }
.success { padding: .75rem; background: #edf5e8; color: var(--forest); border-radius: 7px; margin-top: .8rem; }
.account .muted strong { overflow-wrap: anywhere; }
.account h2 { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.account-identity, .member-row, .member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.account-identity, .member-row { justify-content: space-between; }
.account-identity p, .member-name { min-width: 0; overflow-wrap: anywhere; }
.member-list { padding: 0; margin: 1.25rem 0 0; list-style: none; }
.member-row { padding-block: 1rem; border-top: 1px solid var(--border); }
.member-row:last-child { padding-bottom: 0; }
.member-name { flex: 1 1 11rem; }
.member-name small { display: block; color: var(--muted); }
.member-actions { gap: .5rem; }
.member-actions a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: .4rem; font-size: .86rem; }
.member-actions .delete-link { color: #853a2b; }
.grouped-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.grouped-fields legend { margin-bottom: .65rem; padding: 0; font-weight: 650; }
.grouped-fields label + label { margin-top: .8rem; }
.grouped-fields .hint { margin-bottom: .65rem; }
.member-form .field-hint { margin-top: -.7rem; }
.admin-confirm { border-top: 1px solid var(--border); padding-top: 1rem; }
.member-form .form-actions { margin-top: 0; }
.account-delete strong { overflow-wrap: anywhere; }
.pin-fields { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.pin-fields input { letter-spacing: .22em; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-size: .78rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.site-footer a { display: inline-flex; align-items: center; min-height: 48px; padding-inline: .6rem; }
.site-footer .icon { width: 14px; height: 14px; }
.station { max-width: 38rem; overflow-wrap: anywhere; }
.station h1 { font-size: clamp(1.75rem, 5vw, 2.3rem); }
.station button { min-height: 3rem; }
.station [hidden] { display: none; }
button:disabled { opacity: .55; cursor: default; }
.station-entry { text-align: center; max-width: 31rem; }
.station-pin-form { max-width: 18rem; margin: 1.5rem auto 0; }
.station-pin-form input {
  min-height: 3.6rem; margin: .5rem 0 1rem; padding: .5rem 0 .5rem .35em; font-size: 1.65rem;
  font-weight: 650; font-variant-numeric: tabular-nums; text-align: center; letter-spacing: .35em;
}
.station-pin-form input::placeholder { color: var(--muted); font-weight: 400; }
.station-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.station-keypad button {
  min-height: 3.25rem; padding: .4rem; background: #f4f7f1; color: var(--forest);
  border-color: #cad8cc; font-size: 1.35rem; font-weight: 600; touch-action: manipulation;
}
.station-keypad button:active { background: var(--lime); border-color: var(--forest); }
.station-keypad [data-digit="0"] { grid-column: 2; }
.station-keypad .key-delete { border-color: transparent; background: transparent; }
.station-choices button { flex: 1 1 12rem; }
.station-choices { gap: .65rem; }
.station-device { padding-top: .9rem; margin-top: 1.6rem; border-top: 1px solid var(--border); }
.station-device summary { display: inline-flex; align-items: center; min-height: 48px; color: var(--forest); text-decoration: underline; }
.station-delta strong { margin-inline-start: .35rem; white-space: nowrap; }
.station-reading { padding: 1rem 1.3rem; margin-block: 1rem; background: var(--forest); color: #fff; border-radius: var(--radius); }
.station-reading .stat-value { margin: 0; font-size: clamp(3.25rem, 8vw, 5rem); line-height: 1.1; }
.station-reading .stat-value small { color: var(--lime); }
.station-reading time { font-size: .93rem; color: #e0ebe0; }
.station .form-actions + .hint { margin-top: .65rem; }

@media (max-width: 58rem) {
  :root { --gutter: 1.2rem; }
  .insights { grid-template-columns: minmax(0, 1.9fr) minmax(14rem, 1fr); }
  .row-actions a + a { margin-left: .5rem; }
}

@media (max-width: 44rem) {
  :root { --pad: 1rem; --radius: 12px; --gutter: .875rem; }
  .header-inner { min-height: 55px; gap: .75rem; }
  .brand { font-size: 1.04rem; gap: .49rem; }
  .brand-mark { height: 29px; width: 29px; }
  .brand-mark .icon { height: 20px; width: 20px; }
  .main-nav { gap: .6rem; }
  .main-nav .overview-link { display: none; }
  .main-nav + .logout { border: 0; padding: 0; }
  .quiet-button { font-size: .8rem; }
  main { gap: .8rem; padding-top: 1.2rem; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: .85rem; margin: 0 0 .15rem; }
  .heading-date { font-size: .85rem; margin-top: .13rem; }
  .heading-actions { width: 100%; gap: .55rem; }
  .heading-actions .primary { flex: none; }
  .person-menu > summary { max-width: 100%; }
  .person-menu .menu-items { right: auto; left: 0; }
  .first-entry::after { opacity: .54; }
  .insights { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .chart-header { gap: .8rem; }
  .periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .periods a { padding-inline: .15rem; }
  .chart-empty { min-height: 12rem; }
  .section-heading { position: relative; align-items: flex-start; gap: .6rem; flex-wrap: wrap; }
  .journal-tools { gap: .55rem; }
  .export-menu { position: static; }
  .export-menu .menu-items { right: var(--pad); top: calc(100% - .65rem); max-width: calc(100% - 2 * var(--pad)); }
  .measurements { display: block; }
  .measurements thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .measurements tbody { display: block; }
  .measurements tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
    gap: .38rem .75rem; padding: .85rem var(--pad); border-top: 1px solid var(--border);
  }
  .measurements td, .measurements td:first-child, .measurements td:last-child { padding: 0; border: 0; }
  .when { grid-column: 1; grid-row: 1; align-self: center; }
  .when small { display: inline; margin-left: .26rem; }
  .table-weight { grid-column: 2; grid-row: 1; text-align: right; font-size: 1.14rem; }
  .category { grid-column: 2; grid-row: 2; text-align: right; }
  .origin { grid-column: 1; grid-row: 2; }
  .row-actions { grid-column: 1 / -1; }
  .row-actions a { padding: .3rem .2rem; }
  .row-actions a + a { margin-left: .85rem; }
  .comparison .week-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .comparison .week-list > div { display: block; padding: .5rem 0; }
  .week-list dd { margin-top: .25rem; }
  .two-fields { grid-template-columns: 1fr; }
}
@media (max-width: 25rem) {
  .header-inner { gap: .65rem; }
  .quiet-button span { display: none; }
  .when small { display: block; margin: 0; }
  .journal-tools { justify-content: flex-start; }
}
@media (max-width: 22rem) {
  .header-inner { gap: .5rem; }
  .brand { font-size: .93rem; }
  .brand-mark { display: none; }
  .main-nav { gap: .3rem; }
}

/* A phone in landscape can be as wide as a small laptop. Keep the graph and its controls together. */
@media (orientation: landscape) and (min-width: 34rem) and (max-width: 62rem) and (max-height: 31rem) {
  .header-inner { min-height: 50px; }
  main { padding-top: .9rem; gap: .75rem; }
  .insights { grid-template-columns: minmax(0, 1fr); }
  .chart-header { align-items: center; gap: .65rem; }
  .chart-header .periods { width: auto; }
  .chart-header .periods a { padding-inline: .65rem; }
}

@media (pointer: coarse), (max-width: 44rem) {
  :root { --tap: 48px; }
  .brand, .main-nav a, .periods a, .row-actions a, .pagination a, .menu-items a,
  .unassigned-link, .chart-empty a, .journal-empty a, .narrow > a, .form-actions a, .first-actions a {
    display: inline-flex; align-items: center;
  }
  /* Hidden menu links still obey the native disclosure, and each choice occupies its own row. */
  .menu-items a { display: flex; }
  .periods a { justify-content: center; }
  button, .button, summary, input:not([type="hidden"]), select,
  .brand, .main-nav a, .periods a, .row-actions a, .pagination a, .menu-items a,
  .unassigned-link, .chart-empty a, .journal-empty a, .narrow > a, .form-actions a, .first-actions a,
  .menu > summary {
    min-height: var(--tap); min-width: var(--tap);
  }
  .quiet-button { padding: .4rem; }
  .row-actions a { padding-inline: .4rem; }
  .legend { align-self: center; }
  .chart-footer { align-items: center; padding-top: .2rem; }
  .chart-help summary, .goal-settings summary { font-size: .88rem; }
}
