@font-face {
  font-family: "Life Journal Serif";
  src: url("/journal-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Life Journal UI";
  src: url("/journal-ui.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f8f9f5;
  --ink: #182d27;
  --muted: #596961;
  --line: #dfe4dc;
  --leaf: #2b5b46;
  --editorial: "Life Journal Serif", "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --sans: Inter, "DM Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Life Journal UI", system-ui, sans-serif;
  --content-width: 1240px;
  --gutter: clamp(1.25rem, 4.7vw, 4.5rem);
  font-family: var(--sans);
  font-synthesis: weight;
}
body { background: var(--paper); }
main, .masthead-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
main { padding-block: 1.8rem 3rem; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  min-height: 44px;
  white-space: nowrap;
  color: #18382d;
}
.wordmark img { width: 39px; height: 39px; border-radius: 12px; }
.wordmark > span { font: 400 1.37rem/1.2 var(--editorial); letter-spacing: .035em; }
.wordmark strong { font-weight: inherit; }
.brand-dot { padding: 0 .18em; }
.desktop-primary { display: flex; align-items: stretch; gap: .65rem; }
.desktop-primary a, .mobile-primary a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  min-height: 46px;
  padding: 0 1rem;
  color: #586960;
  font-size: .94rem;
}
.desktop-primary a .ic { width: 17px; height: 17px; }
.desktop-primary a.selected, .mobile-primary a.selected { color: #163f30; font-weight: 650; }
.desktop-primary a.selected::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #557351;
}
.desktop-primary a:hover, .essential:hover, .plain-action:hover { color: #14553d; }
.desktop-primary a:hover { background: #edf1e9; border-radius: 10px; }
.demo-label {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  border: 1px solid #d9e1d8;
  padding: .31rem .64rem;
  border-radius: 100px;
  font-size: .8rem;
  color: #4f6656;
  white-space: nowrap;
}
.mobile-primary { display: none; }
.journal-hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 23px;
  min-height: clamp(340px, 29vw, 420px);
  color: #fffef8;
  background: #1d2922;
}
.morning-still, .journal-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.morning-still { z-index: -2; object-fit: cover; object-position: 76% 8%; }
.journal-hero::after {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10,29,23,.66), rgba(17,33,23,.18) 46%, transparent 70%);
}
.journal-copy {
  padding: clamp(2rem, 3.2vw, 3.2rem) clamp(2rem, 4.7vw, 4.4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.journal-date {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #e4e4c9;
  font-size: .87rem;
  letter-spacing: .04em;
}
.journal-date .ic { color: #d9c78f; }
.journal-copy h1 {
  margin: 1.25rem 0 0;
  font: 400 clamp(1.45rem, 2.2vw, 2.1rem)/1.25 var(--editorial);
  letter-spacing: .06em;
}
.journal-duration {
  display: flex;
  align-items: baseline;
  gap: .42rem;
  margin: .3rem 0 .45rem;
  color: #fff9e8;
  line-height: 1;
  white-space: nowrap;
}
.journal-duration > span {
  font: 400 clamp(4.6rem,7.8vw,7.1rem)/1.12 var(--editorial);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.055em;
}
.journal-duration small { font-size: 1.04rem; margin: 0 .46rem 0 .04rem; color: #e7e7d7; }
.sleep-window {
  display: flex;
  gap: .8rem;
  align-items: center;
  color: #efefe2;
  font-size: .87rem;
}
.sleep-window span { white-space: nowrap; }
.sleep-window b { font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.sleep-window i { width: 1px; height: .82em; background: #b3b9a8; }
.ivory-btn, .purchase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  min-height: 47px;
  padding: .68rem 1.32rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .95rem;
  line-height: 1.3;
  font-weight: 600;
}
.ivory-btn {
  background: #f7f3e4;
  color: #253b2a;
  margin-top: 1.55rem;
}
.ivory-btn:hover { background: #fffdf5; }
.journal-empty { font: 400 clamp(1.9rem,4vw,3.3rem)/1.4 var(--editorial); margin-block: .6rem; }
.empty-caption { font-size: .94rem; color: #eaecdd; max-width: 18em; }
.section-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.section-head h2 {
  font: 400 clamp(1.22rem,1.65vw,1.53rem)/1.4 var(--editorial);
  letter-spacing: .055em;
}
.vitals { margin-top: clamp(1.5rem, 2.3vw, 2.25rem); }
.coverage { display: inline-flex; align-items: center; gap: .43rem; color: var(--muted); font-size: .83rem; }
.vital-strip {
  margin-top: .85rem;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 1.15rem 0;
  border-radius: 17px;
  background: #fff;
  border: 1px solid var(--line);
}
.vital { padding: 0 clamp(.8rem, 2.4vw, 2.1rem); min-width: 0; }
.vital + .vital { border-left: 1px solid #e3e6de; }
.vital-name { display: flex; align-items: center; gap: .63rem; font-size: .94rem; color: #44584c; }
.vital-icon, .essential-icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}
.vital-heart .vital-icon { color: #905a4e; background: #f5eae5; }
.vital-wind .vital-icon { color: #406859; background: #e9f0e9; }
.vital-bed .vital-icon { color: #856a3e; background: #f5efe2; }
.vital-value { display: flex; align-items: baseline; gap: .52rem; margin-top: .38rem; }
.vital-value b { font: 400 clamp(2rem,3.3vw,3.18rem)/1.2 var(--editorial); letter-spacing: -.045em; }
.vital-value small { color: var(--muted); font-size: .87rem; white-space: nowrap; }
.journal-lower { display: grid; grid-template-columns: minmax(0,1.78fr) minmax(250px,1fr); gap: 1.25rem; margin-top: 1.4rem; align-items: start; }
.journal-panel, .empty-tools .essentials {
  min-width: 0;
  padding: 1.4rem 1.55rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
}
.journal-panel .chartbox { height: clamp(150px,16vw,190px); }
.range-select { position: relative; display: inline-flex; align-items: center; }
.range-select select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 0 2rem 0 .8rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #f7f8f3;
  color: #3b5444;
  font-size: .85rem;
}
.range-select .ic { position: absolute; right: .7rem; pointer-events: none; }
.night-list { border-top: 1px solid var(--line); margin-top: .6rem; }
.night-list summary, .record-calendar summary { cursor: pointer; padding: .8rem 0; color: var(--leaf); font-size: .9rem; }
.night-list summary { line-height: 1.2; min-height: 44px; }
.essentials { display: grid; }
.essentials .section-head { min-height: 44px; margin-bottom: .2rem; }
.essential {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem .2rem;
  border-top: 1px solid var(--line);
}
.essential-icon { width: 39px; height: 39px; border-radius: 12px; background: #edf2e9; color: #44674d; }
.essential b, .essential small { display: block; }
.essential b { font-size: 1rem; font-weight: 590; line-height: 1.5; }
.essential small { color: var(--muted); font-size: .83rem; margin-top: .15rem; }
.empty-tools { margin-top: 1.2rem; }
.report-tabs { display: inline-flex; max-width: 100%; gap: .25rem; background: #eaf0e7; padding: 3px; border-radius: 100px; margin-bottom: 1.1rem; }
.report-tabs a { display: grid; align-items: center; text-align: center; min-height: 42px; padding: .35rem 1rem; color: #4a6053; border-radius: 100px; font-size: .92rem; }
.report-tabs a[aria-current] { background: white; color: #224a36; font-weight: 650; box-shadow: 0 1px 4px #1b322116; }
.pagehead h1 { font-family: var(--editorial); font-weight: 400; line-height: 1.3; letter-spacing: .025em; }
.pagehead p { font-size: .94rem; line-height: 1.6; }
.shop-heading { align-items: center; margin-bottom: 1.25rem; }
.plain-action { min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; color: #3d5f47; font-size: .92rem; }
.product-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  border-radius: 23px;
  border: 1px solid #dfe0d4;
  background: #fcfbf7;
  overflow: hidden;
}
.product-image { margin: 0; min-width: 0; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image figcaption {
  position: absolute;
  bottom: .8rem;
  left: .95rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: #fff;
  background: #302b21b8;
  border-radius: 5px;
  padding: .24rem .5rem;
}
.product-copy { padding: clamp(1.6rem,4.0vw,3.8rem); align-self: center; }
.product-family { color: #667357; display: flex; align-items: center; gap: .48rem; font-size: .86rem; }
.product-copy h2 { margin: .95rem 0 1rem; font: 400 clamp(1.8rem,3vw,2.85rem)/1.3 var(--editorial); letter-spacing: .035em; }
.product-copy > p { line-height: 1.85; font-size: 1rem; color: #526156; max-width: 25em; }
.product-order { margin-top: 1.75rem; padding-top: 1.3rem; border-top: 1px solid #dce0d5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product-price { display: grid; gap: .2rem; }
.product-price span, .order-item small { color: var(--muted); font-size: .83rem; }
.product-price b { font-size: 1.13rem; font-weight: 600; }
.purchase-btn { background: #244c37; color: #fffdf4; }
.purchase-btn:hover { background: #183d2c; }
.shop-form { display: grid; gap: 1rem; }
.order-item { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.order-item img, .order-history img { width: 77px; height: 67px; border-radius: 10px; object-fit: cover; }
.order-item strong, .order-item small { display: block; }
.order-item small { margin-top: .3rem; }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.order-line code { font-variant-numeric: tabular-nums; font-size: .96rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); }
.qty-stepper button { border: 0; background: transparent; border-radius: 50%; width: 44px; height: 44px; }
.qty-stepper input { width: 2rem; text-align: center; border: 0; padding: 0; background: transparent; }
.order-note { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.errmsg:empty { display: none; }
.receipt { display: grid; justify-items: center; gap: .8rem; }
.receipt-check { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #3a6448; background: #eaf1e6; }
.receipt .order-line, .receipt .purchase-btn { width: 100%; }
.receipt .order-line { margin: .4rem 0; border-block: 1px solid var(--line); font-size: .9rem; }
.orders-list, .orders-empty { border-radius: 18px; border: 1px solid var(--line); background: white; }
.order-history { display: flex; align-items: center; gap: 1rem; padding: 1.2rem; }
.order-history + .order-history { border-top: 1px solid var(--line); }
.order-history small, .order-history p { color: var(--muted); font-size: .82rem; }
.order-history h2 { font-size: 1.06rem; margin-block: .25rem; }
.order-history h2 span { font-weight: 400; white-space: nowrap; }
.order-status { margin-left: auto; color: #526748; font-size: .84rem; white-space: nowrap; }
.orders-empty { text-align: center; padding: 3rem 1.2rem; }
.orders-empty h2 { margin-top: 1rem; font-size: 1.3rem; }
.orders-empty p { margin: .6rem 0 1.5rem; color: var(--muted); }
dialog { border-radius: 21px; }
.dialog-head button { width: 44px; height: 44px; border-radius: 50%; }
.welcome-screen {
  width: min(950px, calc(100% - 3rem));
  margin: clamp(2rem,8vh,5rem) auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(630px,80vh);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 25px;
}
.welcome-photo { background: #24352d url("/rhythm-morning.webp") 74% 22% / cover no-repeat; }
.welcome-pane { padding: clamp(1.45rem,4vw,3.25rem); align-self: center; }
.welcome-form { margin-top: 2.4rem; }
.welcome-form h1 { font: 400 1.75rem/1.4 var(--editorial); margin-bottom: 1rem; }
.welcome-form > .button { margin-top: 1rem; width: 100%; }
.welcome-form .button { min-height: 46px; }
.welcome-form .config-row { margin-top: .5rem; }
@media (min-width: 701px) and (max-width: 900px) {
  .desktop-primary { gap: .15rem; }
  .desktop-primary a { padding-inline: .7rem; }
  .journal-copy { padding-block: 1.65rem; }
}
@media (max-width: 700px) {
  :root { --gutter: 1rem; }
  .masthead-inner { min-height: 62px; display: flex; justify-content: space-between; }
  .wordmark { gap: .55rem; }
  .wordmark img { width: 33px; height: 33px; border-radius: 10px; }
  .wordmark > span { font-size: 1.18rem; }
  .desktop-primary { display: none; }
  .demo-label { font-size: .77rem; padding: .27rem .48rem; }
  .mobile-primary {
    z-index: 8;
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    padding: .3rem .5rem max(.35rem,env(safe-area-inset-bottom));
    border-top: 1px solid #dce3d9;
    background: #fbfcf8f7;
    backdrop-filter: blur(12px);
  }
  .mobile-primary a { gap: .16rem; min-height: 49px; flex-direction: column; font-size: .81rem; padding: .15rem; }
  .mobile-primary a.selected::before { content: ""; position: absolute; top: -5px; height: 2px; width: 26px; border-radius: 2px; background: #456849; }
  .mobile-primary a.selected .ic { stroke-width: 2; }
  main { padding-block: .94rem calc(5.25rem + env(safe-area-inset-bottom)); }
  .journal-hero { min-height: clamp(305px,83vw,385px); border-radius: 19px; }
  .morning-still { object-position: 77% 10%; }
  .journal-hero::after { background: linear-gradient(90deg,#142820da 0%,#17291f97 31%,#19282022 64%,transparent 78%); }
  .journal-copy { padding: 1.5rem clamp(1.1rem,5.9vw,2rem); align-self: stretch; justify-content: center; }
  .journal-date { font-size: .79rem; gap: .45rem; }
  .journal-copy h1 { font-size: 1.42rem; margin-top: 1.38rem; }
  .journal-duration { margin: .18rem 0 .55rem; gap: .28rem; }
  .journal-duration > span { font-size: clamp(3.8rem,15.7vw,5.2rem); line-height: 1.16; }
  .journal-duration small { margin: 0 .22rem 0 .02rem; font-size: .9rem; }
  .sleep-window { font-size: .8rem; gap: .55rem; }
  .ivory-btn { margin-top: 1.4rem; min-height: 44px; padding: .58rem .95rem; font-size: .9rem; }
  .section-head { gap: .55rem; }
  .section-head h2 { font-size: 1.27rem; }
  .coverage { font-size: .77rem; gap: .28rem; }
  .coverage .ic { width: 13px; }
  .vitals { margin-top: 1.45rem; }
  .vital-strip { margin-top: .65rem; padding: .85rem 0; border-radius: 14px; }
  .vital { padding-inline: clamp(.45rem,2.7vw,.95rem); }
  .vital-name { font-size: .84rem; gap: .35rem; white-space: nowrap; }
  .vital-icon { width: 21px; height: 24px; border-radius: 6px; background: transparent !important; }
  .vital-icon .ic { width: 17px; }
  .vital-value { gap: .3rem; margin-top: .28rem; }
  .vital-value b { font-size: clamp(1.8rem,7.2vw,2.25rem); }
  .vital-value small { font-size: .76rem; }
  .journal-lower { grid-template-columns: minmax(0,1fr); gap: .9rem; margin-top: 1.05rem; }
  .journal-panel, .empty-tools .essentials { padding: .9rem 1rem .5rem; border-radius: 15px; }
  .journal-panel .chartbox { height: 150px; margin-top: .45rem; }
  .essentials .section-head { margin-bottom: .2rem; }
  .essential { padding-block: .75rem; }
  .range-select select { font-size: .83rem; }
  .report-tabs { display: flex; width: max-content; max-width: 100%; margin-bottom: .9rem; }
  .report-tabs a { min-height: 42px; font-size: .88rem; padding-inline: .9rem; }
  .pagehead h1 { font-size: 1.57rem; }
  .pagehead p { font-size: .87rem; margin-top: .28rem; }
  .shop-heading { display: flex; flex-direction: row; align-items: center; margin-bottom: .75rem; }
  .shop-heading .plain-action { font-size: .87rem; }
  .product-feature { display: block; border-radius: 18px; }
  .product-image { aspect-ratio: 1.45; }
  .product-copy { padding: 1.3rem 1.25rem; }
  .product-copy h2 { font-size: 1.83rem; margin: .65rem 0 .7rem; }
  .product-copy p { font-size: 1rem; line-height: 1.7; }
  .product-order { margin-top: 1.15rem; padding-top: 1rem; }
  .order-history { position: relative; flex-wrap: wrap; padding: 1rem; gap: .6rem; }
  .order-history img { width: 53px; height: 56px; }
  .order-history h2 { font-size: .94rem; }
  .order-status { font-size: .76rem; }
  .welcome-screen { grid-template-columns: 1fr; width: min(460px,calc(100% - 2rem)); margin: 1rem auto; min-height: 0; }
  .welcome-photo { height: clamp(145px,49vw,230px); background-position: 60% 13%; }
  .welcome-pane { padding: 1.15rem 1.45rem; }
  .welcome-form { margin-top: 1.25rem; }
  .formgrid input,.formgrid select,.formgrid textarea,.date-select input,.filters input,.filters select { font-size: 1rem; }
  .shop-form .purchase-btn, .receipt .purchase-btn { min-height: 48px; }
  #toast { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 365px) {
  :root { --gutter: .8rem; }
  .vital-name { gap: .12rem; font-size: .79rem; }
  .vital { padding-inline: .45rem; }
  .vital-value { gap: .15rem; }
  .vital-value b { font-size: 1.69rem; }
  .vital-value small { font-size: .75rem; }
  .order-status { margin-left: 0; }
}
.filter-drawer { padding-block: .65rem; }
.filter-drawer summary, .manage-data summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 550;
  font-size: .94rem;
  color: #375a42;
}
.filter-drawer summary { padding-block: .55rem; }
.filter-drawer summary span, .filter-drawer summary small { margin-left: .4rem; }
.filter-drawer summary .ic { margin-right: .4rem; }
.filter-drawer summary small { font-weight: 400; font-size: .85rem; color: var(--muted); }
.filter-drawer .filters { border-top: 1px solid var(--line); padding: 1rem 0 .5rem; }
.manage-data summary { padding: .85rem 0 .4rem; }
@media (max-width: 700px) {
  .filter-drawer summary small { display: block; margin: .35rem 0 0 1.22rem; }
}
@media (max-width: 365px) {
  .masthead-inner { column-gap: .45rem; }
  .wordmark { gap: .4rem; }
  .wordmark > span { font-size: 1.08rem; }
  .demo-label .ic { display: none; }
  .sleep-window { display: grid; gap: .12rem; }
  .sleep-window i { display: none; }
  .journal-copy h1 { margin-top: 1rem; }
  .ivory-btn { margin-top: 1rem; }
}
.bedside-entry{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;color:#335b45;font-size:.92rem;font-weight:600}
.bedside-feature {
  --guide-ink: #f2ede1;
  --guide-muted: #c2cfc5;
  --guide-gold: #e4c79a;
  margin-top: 1.25rem;
  background: #152523;
  color: var(--guide-ink);
  border: 1px solid #364c43;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
  align-items: center;
}
.bedside-feature > img { display: block; width: 100%; height: 100%; min-height: 235px; object-fit: cover; }
.bedside-feature > div { padding: clamp(1.3rem,3vw,2.7rem); }
.bedside-feature .product-family { color: var(--guide-gold); }
.bedside-feature h2 { color: var(--guide-ink); font: 400 clamp(1.5rem,2.5vw,2.1rem)/1.4 var(--editorial); margin: .6rem 0; }
.bedside-feature p { font-size: 1rem; color: var(--guide-muted); line-height: 1.75; margin-bottom: 1rem; }
.bedside-links { display: flex; gap: .6rem 1.35rem; flex-wrap: wrap; align-items: center; }
.bedside-feature .purchase-btn { color: #14231b; background: var(--guide-gold); }
.bedside-feature .feature-guide { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--guide-ink); }
.bedside-feature .feature-guide:hover { color: var(--guide-gold); }
@media(max-width:700px) {
  .bedside-feature { grid-template-columns: 1fr; }
  .bedside-feature > img { height: auto; min-height: 0; }
  .bedside-entry { font-size: .87rem; }
}

.real-archive-entry{display:flex;gap:15px;align-items:center;min-height:70px;padding:14px 22px;border:1px solid #537776;border-radius:14px;background:#183b3b;color:#f1f2df;text-decoration:none;margin:0 0 18px}.real-archive-entry span{display:grid;gap:4px;flex:1}.real-archive-entry small{color:#c6d7ce;font-size:.86rem}.real-archive-entry b{font-size:1.05rem}

.pass-entry{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin:1rem 0}.pass-entry h2{font-size:1.25rem}.pass-entry p{margin:.35rem 0 0}.pass-entry a{min-height:48px;white-space:nowrap}

.home-shortcuts {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(6px,1.4vw,14px);
  margin:0 0 clamp(12px,2vw,22px);
}

.home-shortcuts a {
  display:flex;
  align-items:center;
  gap:clamp(6px,1.4vw,16px);
  min-height:64px;
  border:1px solid #cddccf;
  padding:clamp(10px,1.7vw,19px);
  border-radius:14px;
  background:#fff;
  color:#224a37;
  text-decoration:none;
}

.home-shortcuts a:first-child {
  background:#203d31;
  border-color:#203d31;
  color:#f7f6e8;
}

.home-shortcuts a:focus-visible {
  outline:3px solid #468997;
}

.home-shortcuts b,.home-shortcuts small {
  display:block;
}

.home-shortcuts b {
  font-size:clamp(1rem,1.8vw,1.22rem);
}

.home-shortcuts small {
  font-size:.875rem;
  opacity:.88;
  margin-top:1px;
}

.night-overview {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:12px;
}

.night-overview>.metrics {
  display:grid;
  align-content:center;
  grid-template-columns:1fr;
  margin:0;
  gap:5px;
}

.night-overview .metric {
  min-height:0;
  padding:8px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.night-curves {
  margin:14px 0;
}

.night-curves>summary {
  min-height:44px;
  align-content:center;
  cursor:pointer;
  font-weight:650;
}

.night-curves[open]>p {
  margin:4px 0 12px;
}

@media(max-width:650px) {
  .home-shortcuts a {
    min-height:58px;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    text-align:center;
    padding:7px 2px;
  }
  .home-shortcuts small {
    display:none;
  }
  .home-shortcuts svg {
    width:18px;
    height:18px;
  }
  .night-overview {
    grid-template-columns:1fr;
  }
  .night-overview>.metrics {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
  }
  .night-overview .metric {
    display:block;
    padding:8px;
  }
  .night-overview .metric-label {
    font-size:.85rem;
  }
}

.welcome-shortcuts {
  display:flex;
  gap:20px;
  border-top:1px solid #dae2da;
  margin-top:18px;
  padding-top:5px;
}

.welcome-shortcuts a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#285947;
  text-underline-offset:3px;
}
