@font-face {
  font-family: DM;
  src: url("assets/dm-sans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Display;
  src: url("assets/display.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  --paper: #fdfcfa;
  --card: #fff6ea;
  --ink: #1f1612;
  --muted: #7a6558;
  --aqua: #d4784a;
  --terra: #c24a1c;
  --olive: #4a4030;
  --line: #ead9c4;
  --sea: #edd4b8;
  --shadow: 0 8px 28px #3a241218;
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #1a1410;
  --card: #261c16;
  --ink: #f6e6d4;
  --muted: #c4b0a0;
  --line: #3d3228;
  --olive: #e0c9a4;
  --terra: #f0b48a;
  --sea: #3a2c22;
  color-scheme: dark;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.55 DM,
    "Avenir Next",
    Arial,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  text-underline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
:focus,
:focus-visible {
  outline: none;
}
button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
button:active {
  transform: translateY(1px);
}
svg.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.app {
  max-width: 900px;
  margin: auto;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Base header : disposition. Le verre flottant + repli au scroll
   est défini plus bas, seule version active. */
.masthead {
  height: 88px;
  padding: 20px 24px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wordmark {
  text-decoration: none;
  font-family: Display, Georgia, serif;
  font-size: 30px;
  letter-spacing: -1.5px;
  line-height: 1;
}
#theme {
  margin-left: auto;
}
.icon-button {
  height: 44px;
  min-width: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
}
main {
  padding: 14px 24px 120px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: none;
}
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 12px; }
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Display, Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.7px;
}
h1 {
  font-size: 40px;
  margin-bottom: 12px;
}
h2 {
  font-size: 27px;
  margin-bottom: 15px;
}
h3 {
  font-size: 23px;
  margin-bottom: 7px;
}
p {
  margin-bottom: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
  line-height: 1.5;
}
.intro {
  color: var(--muted);
  margin-bottom: 20px;
}
.avatars {
  display: flex;
  padding-left: 0;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e0d9cb;
  border: 2px solid var(--paper);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  font-size: 9px;
  color: #354132;
  margin-left: -5px;
}
.avatar:nth-child(2) {
  background: #c9ddd4;
}
.avatar:nth-child(3) {
  background: #e8c9b4;
}
.weather {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 17px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.weather strong {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.weather .icon {
  color: var(--terra);
  width: 27px;
  height: 27px;
}
.weather .refresh {
  margin-left: auto;
  font-size: 11px;
  text-decoration: underline;
  min-height: 44px;
}
.hero {
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  overflow: hidden;
  background: #4a3028;
  height: 365px;
  color: white;
}
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a100c10 15%, #1a100c60 45%, #1a100cec);
  z-index: 0;
}
.hero-content {
  position: absolute;
  bottom: 23px;
  left: 22px;
  right: 22px;
  z-index: 1;
}
.hero-content h2 {
  font-size: 37px;
  margin-bottom: 6px;
  max-width: 300px;
}
.hero-content p {
  font-size: 12px;
  max-width: 290px;
}
.hero-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.2px;
}
.pill.aqua {
  background: var(--aqua);
  color: #102d2d;
}
.save-button {
  color: white;
  background: #12252766;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.primary,
.secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 10px;
  padding: 12px 17px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary.aqua {
  background: var(--aqua);
  color: #08292b;
}
.secondary {
  background: color-mix(in srgb, var(--ink) 6%, var(--paper));
}
.hero .primary {
  justify-content: space-between;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 26px;
  gap: 10px;
}
.section-head h2 {
  font-size: 25px;
}
.text-button {
  font-size: 11px;
  text-decoration: underline;
  min-height: 44px;
  flex-shrink: 0;
}
.timeline {
  display: grid;
  gap: 0;
}
.timeline-row {
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.timeline-time {
  font-size: 10px;
  color: var(--muted);
  align-self: start;
  padding-top: 5px;
}
.timeline-row strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.timeline-row span.small {
  display: block;
  color: var(--muted);
}
.tonight {
  margin-top: 23px;
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  width: 100%;
  text-align: left;
}
.tonight img {
  width: 65px;
  height: 75px;
  object-fit: cover;
  border-radius: 12px;
}
.tonight h3 {
  font-size: 23px;
}
.tonight .icon {
  margin-left: auto;
}
.controls {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: var(--card);
}
summary {
  cursor: pointer;
  min-height: 28px;
  font-size: 12px;
  font-weight: 500;
}
.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 12px;
}
input,
textarea,
select {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
}
textarea {
  width: 100%;
  resize: vertical;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--olive);
}
/* Base nav : position et grille. Le chrome flottant (fond verre,
   pastille, coins) est défini plus bas, seule version active. */
nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
}
nav button {
  font-size: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  min-width: 0;
  color: var(--muted);
}
/* Base filtres : disposition. L'aspect souligné (onglet actif)
   est défini plus bas, seule version active. */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 12px;
  margin-top: 16px;
}
.chip {
  white-space: nowrap;
  min-height: 40px;
  padding: 8px 15px;
  font-size: 11px;
  background: var(--card);
}
.map-container {
  position: relative;
  border-radius: 24px;
  background: var(--sea);
  overflow: hidden;
  height: 430px;
  border: 1px solid var(--line);
}
#swipe-day { touch-action: pan-y; }
.island-map {
  touch-action: none;
  width: 100%;
  height: 100%;
}
.land {
  fill: #e6e4c9;
  stroke: #829c81;
  stroke-width: 0.6;
}
.map-route {
  fill: none;
  stroke: var(--terra);
  stroke-width: 1.7;
  stroke-dasharray: 4 3;
  opacity: 0.75;
}
.map-pin .hit-area {fill: transparent !important; stroke: none !important;}
.map-pin.cluster circle:not(.hit-area) {fill: var(--ink);stroke: var(--paper);stroke-width: 2;}
.map-pin.cluster text {fill: var(--paper);font-size: 9px;font-weight: 600;}
.map-pin text {font-size: 8px;}
.map-pin {
  cursor: pointer;
  outline: none;
}
.map-pin circle {
  fill: #fffdf8;
  stroke: #365448;
  stroke-width: 1.2;
}
.map-pin:hover circle {
  fill: var(--aqua);
  stroke-width: 3;
}
.map-pin text {
  font:
    6px DM,
    Arial;
  fill: #0e1a22;
  pointer-events: none;
}
.map-label {
  font:
    8px DM,
    Arial;
  fill: #365448;
}
.sea-label {
  font: italic 13px Georgia;
  fill: #477d80;
  letter-spacing: 2px;
}
.map-note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 9px;
  background: var(--card);
  padding: 6px 10px;
  border-radius: 10px;
}
.map-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 6px;
}
.map-controls button {
  width: 38px;
  height: 38px;
  background: var(--card);
  border-radius: 50%;
  font-size: 20px;
}
.spot-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.spot-card img {
  width: 92px;
  height: 107px;
  object-fit: cover;
  border-radius: 16px;
}
.spot-card h3 {
  font-size: 23px;
}
.spot-card p {
  font-size: 11px;
  margin: 6px 0;
}
.spot-card .eyebrow {
  font-size: 8px;
  margin-top: 2px;
}
.day-strip {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin: 20px 0;
}
.day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 35px;
  min-height: 65px;
  border-radius: 22px;
  border: 1px solid var(--line);
  font-size: 11px;
}
.day-chip b {
  font-size: 17px;
  font-weight: 500;
}
.day-chip.active {
  background: var(--ink);
  color: var(--paper);
}
.day-editor {
  display: flex;
  gap: 8px;
  margin: 13px 0;
}
.day-editor button {
  flex: 1;
  font-size: 11px;
}
.week-list {
  margin-top: 24px;
}
.week-row {
  display: flex;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.week-row img {
  width: 56px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}
.week-row > button:first-of-type {
  flex: 1;
  text-align: left;
  padding: 0;
}
.week-row strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.week-row .drag-handle {
  touch-action: none;
  color: var(--muted);
  min-width: 35px;
  min-height: 44px;
  cursor: grab;
}
.week-row.dragging {
  opacity: 0.4;
  outline: 2px solid var(--aqua);
}
.departure {
  padding: 15px 0;
  display: flex;
  gap: 13px;
  font-size: 12px;
}
.food-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 180px;
  margin-bottom: 11px;
}
.food-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.food-image .pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
}
.food-card {
  margin-bottom: 14px;
  text-align: left;
  width: 100%;
  padding: 0;
}
.food-card h3 {
  font-size: 25px;
}
.food-card p {
  font-size: 12px;
}
.food-card .image-caption {
  position: absolute;
  bottom: 12px;
  right: 10px;
  font-size: 8px;
  color: white;
  background: #102527aa;
  padding: 4px;
  border-radius: 6px;
}
.flavours {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 0 15px;
}
.flavour {
  min-width: 120px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
}
.flavour b {
  font-family: Display, Georgia;
  font-size: 18px;
  font-weight: 400;
  display: block;
}
.flavour span {
  font-size: 10px;
  color: var(--muted);
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin: 15px 0;
}
.panel h3 {
  font-size: 24px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.balance-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.positive {
  color: var(--olive);
}
.negative {
  color: var(--terra);
}
.expense-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.expense-row button {
  min-height: 44px;
  min-width: 44px;
}
.vote-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.vote-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.vote-cell > span {
  display: grid;
  gap: 2px;
}
.vote-cell .secondary {
  min-height: 44px;
  flex-shrink: 0;
}
dialog {
  position: fixed;
  top: auto;
  bottom: 0;
  margin: 0 auto;
  max-width: 680px;
  width: 100%;
  max-height: 90dvh;
  border: 0;
  border-radius: 27px 27px 0 0;
  padding: 30px 24px calc(28px + env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  box-shadow: 0 -12px 70px #0002;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
dialog::backdrop {
  background: #07192088;
}
.grabber {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 2;
  touch-action: none;
}
.grabber::after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(50% - 20px);
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.sheet-image {
  width: calc(100% + 48px);
  margin: -30px -24px 20px;
  height: 240px;
  object-fit: cover;
  border-radius: 27px 27px 0 0;
}
.sheet-title {
  font-size: 34px;
  padding-right: 20px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
  padding: 15px 0;
  border-block: 1px solid var(--line);
}
.facts strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.facts span {
  font-size: 10px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}
.actions > * {
  flex: 1;
}
.source {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.source a {
  color: inherit;
}
.forecast {
  display: flex;
  overflow: auto;
  gap: 8px;
  margin: 15px 0;
}
.forecast > div {
  min-width: 75px;
  padding: 10px;
  border-radius: 12px;
  background: var(--card);
  font-size: 10px;
  text-align: center;
}
.forecast b {
  display: block;
  font-size: 15px;
}
#toast {
  position: fixed;
  z-index: 50;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#toast.visible {
  opacity: 1;
}
.skip {
  position: fixed;
  top: -100px;
  background: var(--card);
  z-index: 100;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.notice {
  font-size: 11px;
  color: var(--muted);
  padding: 12px 0;
}
.footer-note {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  margin: 24px 0;
}
@media (min-width: 650px) {
  main {
    padding-inline: 40px;
  }
  .masthead {
    padding-inline: 40px;
  }
  h1 {
    font-size: 49px;
  }
  .today-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 25px;
    align-items: start;
  }
  .today-grid > .hero {
    height: 465px;
  }
  .today-side .section-head {
    margin-top: 0;
  }
  .hero-content h2 {
    font-size: 43px;
  }
  .food-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .map-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
  }
  .map-container {
    height: 560px;
  }
  .map-list {
    max-height: 560px;
    overflow: auto;
  }
  .day-chip {
    min-width: 65px;
  }
  .hero.week-hero {
    height: 420px;
  }
}
@media (max-width: 375px) {
  main {
    padding-inline: 18px;
  }
  .masthead {
    padding-inline: 18px;
  }
  h1 {
    font-size: 36px;
  }
  .hero {
    height: 345px;
  }
  .hero-content h2 {
    font-size: 34px;
  }
  .day-chip {
    min-width: 33px;
  }
  .form-row {
    gap: 8px;
  }
}
/* Editorial: hierarchy on paper. (Valeurs déjà fusionnées dans
   les règles de base ci-dessus : hero 18px sans ombre, pill 6px/11px,
   save-button 44px sans bordure, boutons 10px, secondary sans bordure.) */
.spot-card .eyebrow { font-size: 11px; }
.timeline-row { grid-template-columns: 46px minmax(0, 1fr) 22px; padding-block: 17px; }
.timeline-time { font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline-row strong { font-size: 15px; }
.tonight { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.controls { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0; background: transparent; }
summary { min-height: 44px; }
.chip { min-height: 44px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 12px; font-size: 12px; background: transparent; color: var(--muted); }
.chip.active { background: transparent; color: var(--olive); border-color: var(--olive); font-weight: 600; }
.map-controls button { width: 44px; height: 44px; border-radius: 10px; }
.day-chip { flex: 1; border: 0; border-bottom: 2px solid transparent; border-radius: 8px; }
.day-chip.active { background: var(--sea); color: var(--olive); border-bottom-color: var(--olive); }
.flavour { min-width: 145px; border: 0; border-right: 1px solid var(--line); padding: 6px 16px 6px 0; border-radius: 0; background: transparent; }
.flavour span, .facts span { font-size: 12px; }
.forecast > div { background: transparent; border-radius: 0; border-right: 1px solid var(--line); font-size: 12px; }
/* Chrome floats above a solid paper document; no blur on content. */
:root { --glass: #fff6eaed; }
html[data-theme="dark"] { --glass: #261c16ed; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { --glass: #261c16ed; }
}
.app { position: relative; }
.masthead {
  position: absolute;
  inset: 0 0 auto;
  z-index: 15;
  height: calc(88px + env(safe-area-inset-top));
  padding-top: calc(20px + env(safe-area-inset-top));
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.masthead.is-collapsed { transform: translateY(-100%); }
.masthead:focus-within { transform: translateY(0); }
#theme {
  border: 0;
  border-radius: 16px;
  background: var(--glass);
  box-shadow: 0 3px 14px #0000000c;
}
main {
  padding-top: calc(102px + env(safe-area-inset-top));
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
main.sliding {
  overflow: hidden;
  position: relative;
}
main.sliding > .pane {
  width: 100%;
  box-sizing: border-box;
  background: var(--paper);
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
main.sliding > .pane.out {
  position: absolute;
  left: 0;
  z-index: 1;
  padding: inherit;
  pointer-events: none;
}
main.sliding > .pane.in {
  position: relative;
  z-index: 2;
}
nav {
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 560px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  backdrop-filter: blur(24px) saturate(1.25);
  border: 0;
  border-radius: 40px;
  box-shadow: 0 8px 32px #07192024;
  padding: 7px;
}
.nav-thumb {
  position: absolute;
  left: 0;
  z-index: 0;
  border-radius: 30px;
  background: var(--sea);
  box-shadow: inset 0 1px 0 #ffffff80, 0 2px 8px #1a302018;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
nav button {
  position: relative;
  z-index: 1;
  padding: 7px 0;
  border-radius: 30px;
  font-size: 8px;
  min-width: 0;
}
nav button .icon {
  width: 20px;
  height: 20px;
}
nav button > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
nav button[aria-current="page"] {
  background: none;
  color: var(--olive);
  box-shadow: none;
}
nav button[aria-current="page"]:before { content: none; }
nav button[aria-current="page"] .icon { color: var(--olive); }
:is(main:not(.sliding), .pane)[data-view="food"] .food-grid {
  display: block;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
:is(main:not(.sliding), .pane)[data-view="food"] .food-card {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
:is(main:not(.sliding), .pane)[data-view="food"] .food-card:last-child { border-bottom: 0; }
:is(main:not(.sliding), .pane)[data-view="food"] .food-image { height: 150px; border-radius: 16px; }
:is(main:not(.sliding), .pane)[data-view="us"] .panel { border: 0; border-radius: 0; background: transparent; padding: 24px 0; margin: 0; }
:is(main:not(.sliding), .pane)[data-view="us"] .panel + .panel { border-top: 1px solid var(--line); }
:is(main:not(.sliding), .pane)[data-view="us"] .panel > .check,
:is(main:not(.sliding), .pane)[data-view="us"] .expense-row { border-bottom: 1px solid var(--line); padding-block: 10px; }
:is(main:not(.sliding), .pane)[data-view="us"] .panel > .check:last-child { border-bottom: 0; }
dialog {
  border-radius: 36px 36px 0 0;
  padding-top: 44px;
  background: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: transform .48s cubic-bezier(.2, 1.18, .32, 1);
}
dialog[open] { animation: sheet-enter .48s cubic-bezier(.2, 1.18, .32, 1); }
@keyframes sheet-enter { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-image { margin-top: 0; border-radius: 0; }
#toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --paper: #1a1410;
    --card: #261c16;
    --ink: #f6e6d4;
    --muted: #c4b0a0;
    --line: #3d3228;
    --olive: #e0c9a4;
    --terra: #f0b48a;
    --sea: #3a2c22;
    color-scheme: dark;
  }
}
