:root {
  color-scheme: dark;
  --paper: #0c1512;
  --paper-2: #101c17;
  --card: #16251f;
  --card-2: #1b2c24;
  --card-3: #20342b;
  --ink: #edf3ea;
  --muted: #9cac9f;
  --muted-2: #7f9084;
  --line: #273a30;
  --line-strong: #355045;
  --moss: #a5cfa9;
  --accent: #eccb96;
  --clay: #e0ab8f;
  --danger: #e8a795;
  --shadow: 0 18px 50px rgb(0 0 0 / 0.32);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 500px at 84% -10%, rgb(76 126 102 / 0.32), transparent 62%),
    radial-gradient(700px 440px at -12% 0%, rgb(58 104 84 / 0.24), transparent 56%),
    linear-gradient(180deg, #0d1915 0%, #0b1411 56%, #09110e 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58vh;
  background: url("/landscape.svg") bottom center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 100%);
  mask-image: linear-gradient(to top, #000 35%, transparent 100%);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #e7c892;
  outline-offset: 3px;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  min-height: 100dvh;
  margin: auto;
  padding: env(safe-area-inset-top) 18px calc(100px + env(safe-area-inset-bottom));
}
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.brand em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #2f5542, #1d3a2c);
  border: 1px solid rgb(165 207 169 / 0.28);
  color: var(--moss);
  font-size: 18px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.04);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
}
.icon-button:disabled {
  opacity: 0.5;
}
.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  padding-top: 4px;
}
.view {
  display: none;
  animation: appear 0.26s ease-out;
}
.view.active {
  display: block;
}
@keyframes appear {
  from {
    opacity: 0.4;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 28px;
  background: url("/hero.svg") center / cover no-repeat, #1b332a;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(8 18 14 / 0.04) 18%, rgb(8 18 14 / 0.7) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 110px;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: #d7ddc9;
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 10vw, 50px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  color: #fbf8ec;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.25);
}
.hero h1 span {
  color: var(--accent);
}
.hero-subtitle {
  margin: 10px 0 18px;
  color: #dde5d7;
  font-size: 14px;
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hero-actions .button {
  min-height: 46px;
  font-size: 14px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s, background 0.15s, border-color 0.15s;
}
.button:active {
  transform: scale(0.975);
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.button-light {
  background: #f4efdf;
  color: #1c2f25;
}
.button-primary {
  background: linear-gradient(180deg, #b6daba, #96c49d);
  color: #10251a;
  box-shadow: 0 10px 24px rgb(126 178 133 / 0.16);
}
.button-quiet {
  border-color: rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.1);
  color: #f1f5ea;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.button-outline {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.02);
  color: var(--ink);
}
.button-danger {
  border-color: rgb(232 167 149 / 0.35);
  background: rgb(232 167 149 / 0.1);
  color: var(--danger);
}
.button-small {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 13px;
}
.full-button {
  width: 100%;
}
.text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--moss);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.text-button:active {
  opacity: 0.7;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 30px 2px 13px;
}
.section-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}
.section-heading .eyebrow {
  margin-bottom: 5px;
}
.compact-heading {
  margin-top: 28px;
}

.weather-card {
  width: 100%;
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgb(31 51 42 / 0.96), rgb(20 35 29 / 0.96));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.18);
  transition: border-color 0.2s, transform 0.12s;
}
.weather-card:active {
  transform: scale(0.99);
}
.weather-card:hover {
  border-color: var(--line-strong);
}
.weather-card:focus-visible {
  outline: 3px solid #e7c892;
  outline-offset: 3px;
}
.weather-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.weather-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: rgb(236 203 150 / 0.12);
  font-size: 32px;
}
.weather-main > div {
  flex: 1;
  display: grid;
  gap: 3px;
}
.weather-main strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.2px;
}
#weather-description {
  color: var(--muted);
  font-size: 13px;
}
.chevron {
  color: var(--muted-2);
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}
.weather-place {
  margin: 8px 0 14px 72px;
  color: var(--muted-2);
  font-size: 11px;
}
.weather-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.weather-details span {
  display: grid;
  gap: 3px;
}
.weather-details span + span {
  padding-left: 13px;
  border-left: 1px solid var(--line);
}
.weather-details b {
  font-size: 13px;
  font-weight: 650;
}
.weather-details small {
  color: var(--muted-2);
  font-size: 10px;
}
.weather-advice {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgb(165 207 169 / 0.09);
  color: #c9d8c6;
  font-size: 12.5px;
  line-height: 1.5;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--moss);
  font-size: 11px;
  font-weight: 650;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.quick-card {
  min-height: 134px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.2s, filter 0.2s;
}
.quick-card:active {
  transform: scale(0.975);
}
.quick-card:hover {
  border-color: var(--line-strong);
}
.quick-card.sage {
  background: linear-gradient(155deg, #21382b, #172a21);
}
.quick-card.clay {
  background: linear-gradient(155deg, #352a22, #241e1a);
}
.quick-card.sand {
  background: linear-gradient(155deg, #33301f, #232116);
}
.quick-card.mist {
  background: linear-gradient(155deg, #1e3230, #172823);
}
.quick-icon {
  grid-column: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.06);
  color: var(--moss);
}
.quick-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick-card.clay .quick-icon {
  color: var(--clay);
}
.quick-card.sand .quick-icon {
  color: var(--accent);
}
.quick-card.mist .quick-icon {
  color: #a9c8d6;
}
.quick-text {
  grid-column: 1;
  align-self: end;
  display: grid;
  gap: 3px;
}
.quick-text strong {
  font-size: 14px;
}
.quick-text small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.quick-card .chevron {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}
.quick-card.map-card {
  grid-column: 1 / -1;
  min-height: 78px;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, #1e3330, #172823);
}
.quick-card.map-card .quick-icon {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}
.quick-card.map-card .quick-text {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.quick-card.map-card .chevron {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}

.today-strip {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
}
.step-badge {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgb(165 207 169 / 0.11);
  color: var(--moss);
  font-size: 20px;
}
.step-copy {
  flex: 1;
  display: grid;
  gap: 3px;
}
.step-copy strong {
  font-size: 12.5px;
}
.step-copy small {
  color: var(--muted-2);
  font-size: 10.5px;
}
.today-strip .button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12.5px;
}
.home-footnote {
  margin: 22px 4px 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.page-heading {
  padding: 20px 2px 22px;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.page-heading h1 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.page-heading > p:last-child,
.page-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.ai-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ai-heading .text-button {
  margin-top: 22px;
}

.entry-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}
.entry-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(24 39 32 / 0.9);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.12s;
}
.entry-card:active {
  transform: scale(0.99);
}
.entry-card:hover {
  border-color: var(--line-strong);
}
.entry-thumb {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: rgb(255 255 255 / 0.04);
  color: var(--moss);
  font-size: 24px;
}
.entry-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.entry-content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.entry-date {
  color: var(--muted-2);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.entry-title {
  font-size: 15px;
  line-height: 1.3;
}
.entry-note {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.empty-state {
  padding: 44px 20px;
  text-align: center;
}
.empty-state > span {
  color: var(--moss);
  font-size: 40px;
}
.empty-state h2 {
  margin: 10px 0 6px;
  font-size: 19px;
}
.empty-state p {
  max-width: 280px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.field-group {
  margin-bottom: 6px;
}
.field-label {
  display: block;
  margin: 18px 2px 8px;
  color: #c8d3c7;
  font-size: 12.5px;
  font-weight: 650;
}
.field-group .field-label {
  margin-top: 8px;
}
.chip-row,
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.chip:active {
  transform: scale(0.97);
}
.chip.selected {
  border-color: rgb(165 207 169 / 0.46);
  background: rgb(165 207 169 / 0.15);
  color: var(--ink);
}
.energy-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.energy-option {
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgb(255 255 255 / 0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.energy-option.selected {
  border-color: rgb(165 207 169 / 0.5);
  background: linear-gradient(180deg, rgb(165 207 169 / 0.2), rgb(165 207 169 / 0.1));
  color: var(--ink);
}
.text-area,
.text-input,
.select-field {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgb(10 20 16 / 0.55);
  color: var(--ink);
  font-size: 15px;
}
.text-area {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}
.text-area::placeholder,
.text-input::placeholder,
.chat-input::placeholder {
  color: #6f8175;
}
.text-input:focus,
.text-area:focus {
  border-color: rgb(165 207 169 / 0.5);
}
.weather-context {
  margin: 13px 2px 0;
  color: var(--moss);
  font-size: 11.5px;
  line-height: 1.5;
}
#find-place {
  margin-top: 15px;
}
.ai-result {
  margin-top: 17px;
}
.ai-result:empty {
  display: none;
}
.ai-result.visible:empty {
  display: none;
}
.privacy-note,
.fine-print {
  margin: 14px 3px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.tool-card {
  margin-bottom: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(170deg, rgb(25 41 33 / 0.94), rgb(19 32 26 / 0.94));
}
.tool-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.tool-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgb(165 207 169 / 0.11);
  color: var(--moss);
  font-size: 20px;
}
.clay-icon {
  background: rgb(224 171 143 / 0.12);
  color: var(--clay);
}
.food-icon {
  background: rgb(236 203 150 / 0.12);
  color: var(--accent);
}
.step-icon {
  background: rgb(169 200 214 / 0.1);
  color: #a9c8d6;
}
.tool-title h2 {
  margin: 0 0 3px;
  font-size: 16px;
}
.tool-title p {
  margin: 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.4;
}

.compass-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 0 16px;
}
.compass {
  position: relative;
  width: 136px;
  height: 136px;
  flex: 0 0 136px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #223830 0%, #17271f 62%, #12211a 100%);
  box-shadow: inset 0 0 0 8px rgb(255 255 255 / 0.02), 0 10px 24px rgb(0 0 0 / 0.25);
}
.compass::before,
.compass::after {
  content: "";
  position: absolute;
  background: rgb(255 255 255 / 0.05);
}
.compass::before {
  top: 16px;
  bottom: 16px;
  left: calc(50% - 0.5px);
  width: 1px;
}
.compass::after {
  top: calc(50% - 0.5px);
  right: 16px;
  left: 16px;
  height: 1px;
}
.compass-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: rotate(calc(-1 * var(--heading, 0deg)));
  transition: transform 0.18s ease-out;
}
.compass-label {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  transform: rotate(var(--heading, 0deg));
}
.compass-label.north {
  top: 11px;
  left: calc(50% - 11px);
  color: var(--clay);
}
.compass-label.south {
  bottom: 11px;
  left: calc(50% - 11px);
}
.compass-label.east {
  top: calc(50% - 8px);
  right: 11px;
}
.compass-label.west {
  top: calc(50% - 8px);
  left: 11px;
}
.compass-needle {
  position: absolute;
  top: 21px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 47px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--clay) 0 46%, #5e7a68 46% 100%);
  transform-origin: 50% 100%;
}
.compass-center {
  position: absolute;
  z-index: 3;
  top: calc(50% - 4px);
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6e4d4;
  box-shadow: 0 0 0 3px #1a2b23;
}
.compass-look {
  position: absolute;
  top: 0;
  left: calc(50% - 5px);
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 8px solid var(--moss);
  opacity: 0.9;
}
.compass-sun {
  position: absolute;
  z-index: 2;
  top: calc(50% - 9px);
  left: calc(50% - 9px);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(245 215 156 / 0.16);
  color: #f5d79c;
  font-size: 12px;
  box-shadow: 0 0 12px rgb(245 215 156 / 0.35);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s;
}
.compass-info {
  display: grid;
  justify-items: start;
  gap: 6px;
}
.compass-info strong {
  font-size: 14px;
}
.compass-info small {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.45;
}
.compass-info .button {
  min-height: 40px;
  padding: 0 13px;
  font-size: 12px;
}
.sun-info {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgb(236 203 150 / 0.16);
  border-radius: 14px;
  background: rgb(236 203 150 / 0.08);
  color: var(--accent);
}
.sun-info > span {
  font-size: 21px;
}
.sun-info p {
  display: grid;
  gap: 3px;
  margin: 0;
}
.sun-info strong {
  color: #e6d9bd;
  font-size: 12px;
}
.sun-info small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.check-list {
  display: grid;
}
.check-list label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  color: #c3d0c2;
  font-size: 13px;
  cursor: pointer;
}
.check-list label:first-child {
  border-top: 0;
}
.check-list input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  accent-color: #8fbd97;
}
.check-list input:checked + span {
  color: var(--muted-2);
  text-decoration: line-through;
}
#refresh-packing {
  margin-top: 8px;
  font-size: 12px;
}
.food-suggestion {
  padding: 14px;
  border: 1px solid rgb(236 203 150 / 0.14);
  border-radius: 15px;
  background: rgb(236 203 150 / 0.07);
}
.food-suggestion strong {
  font-size: 14px;
}
.food-suggestion p {
  margin: 6px 0;
  color: #b9c3b2;
  font-size: 12.5px;
  line-height: 1.5;
}
.food-suggestion span {
  color: var(--accent);
  font-size: 10.5px;
}
.food-card .text-button {
  margin-top: 8px;
  font-size: 12px;
}
.step-total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.step-total > strong {
  font-size: 32px;
  letter-spacing: -1px;
}
.step-total > span {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
}
.step-total .button {
  min-height: 40px;
  padding: 0 13px;
  font-size: 12px;
}

.ai-welcome {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgb(29 48 39 / 0.9), rgb(21 36 29 / 0.9));
}
.ai-welcome > span {
  color: var(--accent);
  font-size: 22px;
}
.ai-welcome strong {
  font-size: 14px;
}
.ai-welcome p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.ai-chips {
  margin: 4px 0 16px;
}
.ai-chips.gone {
  display: none;
}
.chat-thread {
  display: grid;
  gap: 14px;
}
.chat-messages {
  display: grid;
  gap: 14px;
}
.chat-thread:empty {
  display: none;
}
.chat-message.user {
  justify-self: end;
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(160deg, #aacfad, #8fbd97);
  color: #10231a;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-message.assistant {
  width: 100%;
}
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgb(19 33 27 / 0.95);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.chat-composer:focus-within {
  border-color: rgb(165 207 169 / 0.55);
  box-shadow: 0 0 0 3px rgb(165 207 169 / 0.1);
}
.chat-input {
  flex: 1;
  min-height: 44px;
  max-height: 132px;
  padding: 11px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  resize: none;
}
.chat-input:focus {
  outline: none;
}
.send-button {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(180deg, #b6daba, #96c49d);
  color: #0f2418;
  cursor: pointer;
}
.send-button:active {
  transform: scale(0.95);
}
.send-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(165deg, rgb(28 45 37 / 0.97), rgb(19 33 27 / 0.97));
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.16);
}
.plan-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.plan-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.plan-summary {
  margin: 0;
  color: #c8d4c7;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.plan-plain {
  font-size: 14.5px;
}
.answer-card {
  border-radius: 20px 20px 20px 6px;
  background: linear-gradient(165deg, rgb(30 48 39 / 0.97), rgb(20 35 28 / 0.97));
}
.answer-text {
  color: #d7e0d3;
  font-size: 14.5px;
}
.plan-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.plan-section h4,
.plan-gear h4 {
  margin: 0 0 6px;
  color: var(--moss);
  font-size: 13px;
  letter-spacing: 0.1px;
}
.plan-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.plan-items {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: #cbd6ca;
  font-size: 13px;
  line-height: 1.55;
}
.plan-items li::marker {
  color: var(--moss);
}
.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--moss);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.plan-gear {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.gear-chips,
.follow-ups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gear-chip {
  min-height: 35px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.03);
  color: #c3d0c2;
  font-size: 12px;
  cursor: pointer;
}
.gear-chip.checked {
  border-color: rgb(165 207 169 / 0.5);
  background: rgb(165 207 169 / 0.16);
  color: #eaf4e8;
  text-decoration: line-through;
  text-decoration-color: rgb(165 207 169 / 0.7);
}
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.follow-ups {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.follow-ups .chip {
  min-height: 35px;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}
.loading-card {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 128px;
}
.loading-title {
  margin: 0;
  color: #cbd6ca;
  font-size: 14px;
}
.loading-dots {
  display: flex;
  gap: 6px;
}
.loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  animation: bounce 1.05s infinite ease-in-out;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.14s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.28s;
}
@keyframes bounce {
  0%,
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.error-card .plan-summary {
  margin-bottom: 14px;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 0.06);
  background: rgb(11 20 16 / 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-item {
  width: min(16.666%, 96px);
  min-height: 54px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #7e8f83;
  cursor: pointer;
}
.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item small {
  font-size: 9.5px;
  letter-spacing: 0.2px;
}
.nav-item.active {
  background: rgb(165 207 169 / 0.08);
  color: var(--moss);
}

.sheet {
  width: min(100% - 20px, 520px);
  max-height: 88dvh;
  margin: auto auto 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(170deg, #1a2b23, #121f19);
  color: var(--ink);
  box-shadow: 0 -16px 60px rgb(0 0 0 / 0.5);
}
.sheet::backdrop {
  background: rgb(4 10 7 / 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sheet[open] {
  animation: sheet-in 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes sheet-in {
  from {
    opacity: 0.5;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.8px;
}
.dialog-place {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.dialog-heading .icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-color: transparent;
  background: rgb(255 255 255 / 0.06);
  font-size: 22px;
}
.hourly-list {
  display: grid;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.hourly-row {
  display: grid;
  grid-template-columns: 1fr 34px 52px 54px;
  align-items: center;
  gap: 8px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.hourly-row:last-child {
  border-bottom: 0;
}
.hour-time {
  color: var(--muted);
  font-size: 13px;
}
.hour-icon {
  font-size: 17px;
  text-align: center;
}
.hour-temp {
  font-weight: 650;
  text-align: right;
}
.hour-rain {
  color: #a9c8d6;
  font-size: 12px;
  text-align: right;
}
.hourly-empty {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.sheet-actions .button {
  flex: 1;
  min-height: 46px;
  font-size: 13.5px;
}
.entry-dialog {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.entry-dialog .field-label:first-of-type {
  margin-top: 14px;
}
.file-input {
  display: block;
  width: 100%;
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.photo-preview img {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}
.photo-preview .text-button {
  font-size: 12px;
}
.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgb(232 167 149 / 0.3);
  border-radius: 12px;
  background: rgb(232 167 149 / 0.1);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}
.entry-dialog .full-button {
  margin-top: 20px;
}
.entry-view-dialog #entry-view-content {
  display: grid;
  gap: 12px;
}
.entry-view-image {
  width: 100%;
  max-height: 300px;
  border-radius: 18px;
  object-fit: cover;
}
.entry-view-date {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.entry-view-note {
  margin: 0;
  color: #c8d4c7;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.map-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.map-search .text-input {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 50px;
}
.map-search .button {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 17px;
}
.map-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.map-status {
  margin: 4px 2px 12px;
  color: var(--moss);
  font-size: 12.5px;
  line-height: 1.5;
}
.map-frame-wrap {
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.map-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.map-result {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.map-result.selected {
  border-color: rgb(165 207 169 / 0.5);
  background: rgb(165 207 169 / 0.09);
}
.map-result-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.map-result strong {
  font-size: 14px;
}
.map-result small {
  color: var(--muted);
  font-size: 11px;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.map-actions .button {
  flex: 1;
  min-width: 140px;
}
.map-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .map-frame-wrap {
    height: 380px;
  }
}

.toast {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 18px;
  width: fit-content;
  max-width: calc(100% - 36px);
  margin: auto;
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 14px;
  background: #244035;
  color: #f2f6ef;
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.35);
}
.toast.show {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  body {
    padding: 26px 0;
  }
  .app-shell {
    min-height: calc(100dvh - 52px);
    padding-top: 4px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgb(12 21 18 / 0.55);
    box-shadow: 0 24px 80px rgb(0 0 0 / 0.28);
  }
  .bottom-nav {
    position: sticky;
    bottom: 0;
    width: min(100%, 580px);
    margin: 0 auto;
    border-radius: 0 0 30px 30px;
  }
  .sheet {
    margin: auto;
    border-radius: 26px;
    padding-bottom: 22px;
  }
  .hero {
    min-height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
