@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #10251b;
  --surface: rgb(9 27 18 / 76%);
  --surface-soft: rgb(225 243 221 / 6%);
  --ink: #f0f5eb;
  --muted: #c1d0c3;
  --line: rgb(226 246 221 / 20%);
  --g: #dcf0a6;
  --g-hover: #ecf8c9;
  --accent-ink: #213015;
  --light: rgb(210 236 190 / 10%);
  --ok: #aee1ad;
  --ok-bg: rgb(119 189 115 / 15%);
  --warn: #f5cd88;
  --warn-bg: rgb(245 186 91 / 14%);
  --danger: #ffb2a6;
  --danger-bg: rgb(255 147 131 / 13%);
  --shadow: 0 18px 42px rgb(3 14 9 / 28%);
  --radius: 23px;
  --numbers: Manrope, "Segoe UI", system-ui, sans-serif;
  font-family: Manrope, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(5 20 13 / 53%) 0%, rgb(5 20 13 / 37%) 21%, rgb(5 20 13 / 13%) 53%, rgb(4 16 10 / 58%) 100%),
    url("/assets/orchard-mist.webp") center / cover no-repeat,
    #14231b;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h2 { font-size: 18px; line-height: 1.35; font-weight: 700; }
p + p { margin-top: 8px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

.app {
  width: min(calc(100% - max(36px, env(safe-area-inset-left) + env(safe-area-inset-right) + 20px)), 460px);
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; letter-spacing: .06em; white-space: nowrap; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgb(239 253 230 / 18%), rgb(210 236 190 / 5%));
  border-radius: 10px;
  color: var(--g);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px rgb(255 255 255 / 16%);
}
.brand-mark .ico { width: 18px; height: 18px; stroke-width: 1.9; }
.date { justify-self: end; font: 600 12px var(--numbers); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav {
  position: fixed;
  z-index: 5;
  inset: auto 0 calc(11px + env(safe-area-inset-bottom));
  width: min(calc(100% - max(28px, env(safe-area-inset-left) + env(safe-area-inset-right) + 16px)), 474px);
  margin-inline: auto;
  display: flex;
  justify-content: space-around;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgb(8 26 17 / 82%);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 12px 38px rgb(0 0 0 / 38%), inset 0 1px rgb(255 255 255 / 10%);
}
.nav button {
  display: grid;
  flex: 1;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 49px;
  border: 0;
  border-radius: 18px;
  padding: 5px 3px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.nav button .ico { width: 19px; height: 19px; }
.nav button:hover { color: var(--g); }
.nav button.active { background: rgb(220 240 166 / 13%); color: var(--g); box-shadow: inset 0 1px rgb(220 240 166 / 30%); }

.page { display: none; }
.page.active { display: block; animation: page-in .22s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-header { margin: 9px 0 22px; padding: 6px 2px 0; text-shadow: 0 2px 15px rgb(3 13 8 / 80%); }
.page-header h1 { font-size: clamp(32px, 9vw, 42px); line-height: 1.16; font-weight: 400; letter-spacing: -.03em; }
.page-header h1 b { font-weight: 700; }
.page-header p { color: var(--muted); margin-top: 9px; font-size: 13px; }
.page-header .page-kicker { display: flex; align-items: center; gap: 9px; color: var(--g); margin: 0 0 8px; letter-spacing: .09em; }
.page-kicker::before { content: ""; width: 16px; height: 1px; background: currentColor; }

.dashboard, .settings-column, .ai-side { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: var(--shadow);
}
.monitor-panel, .result-panel {
  background: linear-gradient(155deg, rgb(224 242 214 / 12%), transparent 62%), rgb(8 26 17 / 74%);
  -webkit-backdrop-filter: blur(26px) saturate(1.18) brightness(.85);
  backdrop-filter: blur(26px) saturate(1.18) brightness(.85);
  box-shadow: var(--shadow), inset 0 1px rgb(255 255 255 / 17%);
}
.list-panel { background: rgb(8 23 15 / 60%); box-shadow: none; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.heading h2 { display: flex; align-items: center; gap: 8px; }
.heading .hint { margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.monitor-panel .grid { gap: 0; border-top: 1px solid var(--line); }
.monitor-panel .metric, .monitor-panel .empty {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.monitor-panel .metric { padding: 12px 10px; }
.monitor-panel .metric:nth-child(2n) { border-left: 1px solid var(--line); }
.monitor-panel .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
.monitor-panel .metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
.metric {
  min-width: 0;
  position: relative;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 14px;
}
.metric .name { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.metric-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--g);
  background: var(--light);
}
.metric-icon .ico { width: 18px; height: 18px; }
.metric-icon.tone-warn { color: var(--warn); background: var(--warn-bg); }
.metric-icon.tone-danger { color: var(--danger); background: var(--danger-bg); }
.metric .val {
  font: 600 clamp(25px, 3vw, 32px)/1.16 var(--numbers);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  margin: 11px 0 8px;
  overflow-wrap: anywhere;
}
.metric small { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 550; white-space: nowrap; }
.metric .time { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.metric .time span { display: block; }
.state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.ok { color: var(--ok); background: var(--ok-bg); }
.state.warn { color: var(--warn); background: var(--warn-bg); }
.state.danger { color: var(--danger); background: var(--danger-bg); }
.state.flat { color: var(--muted); background: var(--light); }

.device-list { display: grid; gap: 10px; min-width: 0; }
.panel > h2 + .device-list, .panel > h2 + .events { margin-top: 14px; }
.card { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.row:last-child { border-bottom: 0; }
.row > div { min-width: 0; overflow-wrap: anywhere; }
.row strong { font-size: 14px; }
.row small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.row button { flex: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; border-radius: 20px; padding: 4px 9px; background: var(--light); color: var(--ok); white-space: nowrap; font-weight: 600; }
.pill .ico { width: 12px; height: 12px; }
.pill.off { background: var(--danger-bg); color: var(--danger); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.muted, .hint { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.card .hint { margin-top: 8px; }
.empty {
  grid-column: 1 / -1;
  padding: 23px 12px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
}
.notice {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--light);
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.heading + .notice { margin: 0 0 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  background: var(--light);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .16s ease, transform .12s ease;
}
.btn .ico { width: 16px; height: 16px; }
.btn:enabled:hover { background: rgb(210 236 190 / 16%); }
.btn:enabled:active { transform: scale(.97); }
.btn.primary, .upload-panel:not(.has-photo) .capture-action { background: var(--g); color: var(--accent-ink); border-color: transparent; }
.btn.primary:enabled:hover, .upload-panel:not(.has-photo) .capture-action:enabled:hover { background: var(--g-hover); }
.btn.light { background: transparent; color: var(--muted); }
.btn.light:enabled:hover { background: var(--light); color: var(--ink); }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.danger:enabled:hover { background: rgb(255 147 131 / 22%); }
.btn:disabled { background: var(--surface-soft); color: var(--muted); opacity: .72; }
.scan-entry.btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: stretch;
  gap: 12px;
  padding: 11px 15px;
  text-align: left;
  border-radius: 19px;
  box-shadow: 0 9px 24px rgb(4 16 8 / 30%);
}
.scan-entry-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(38 61 19 / 13%); }
.scan-entry-icon .ico { width: 20px; height: 20px; }
.scan-entry-copy { min-width: 0; white-space: normal; }
.scan-entry-copy strong, .scan-entry-copy small { display: block; }
.scan-entry-copy strong { font-size: 15px; }
.scan-entry-copy small { font-size: 12px; font-weight: 550; opacity: .9; }
.scan-entry-arrow { justify-self: end; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actuator-help { margin-bottom: 12px; }
.actuator-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.actuator-description { min-width: 0; overflow-wrap: anywhere; }
.actuator-description > small { display: block; color: var(--muted); font-size: 12px; }
.actuator-feedback { margin-top: 4px; }
.actuator-switch {
  display: grid;
  place-items: center;
  width: 62px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  touch-action: pan-y;
  user-select: none;
}
.actuator-track {
  position: relative;
  width: 54px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #456353;
  pointer-events: none;
  transition: background .18s ease, border-color .18s ease;
}
.actuator-track::before {
  content: "";
  position: absolute;
  inset: 3px auto auto 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf5e9;
  box-shadow: 0 1px 3px rgb(17 40 29 / 28%);
  transition: transform .18s ease;
}
.actuator-switch[data-position=""]:not(:disabled) .actuator-track::before { transform: translateX(11px); }
.actuator-switch[aria-checked="true"] .actuator-track { background: var(--g); border-color: var(--g); }
.actuator-switch[aria-checked="true"] .actuator-track::before { transform: translateX(22px); background: #263728; }
.actuator-switch:disabled, .actuator-switch[aria-busy="true"] { opacity: .68; }
.actuator-switch[aria-busy="true"] { cursor: wait; }
.field { margin-top: 12px; }
.field label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #112219;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 70px; }
.field input::placeholder, .field textarea::placeholder { color: #a2b5a8; }
.field .hint { margin-top: 4px; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.settings-column, .ai-side { min-width: 0; }
.system-states { margin: 10px 0 0; }
.system-states > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.system-states dt { color: var(--muted); }
.system-states dd { margin: 0; font-weight: 650; text-align: end; }
#cloudAuthState, #aiStatus { margin-top: 10px; }
#aiStatus:empty { margin-top: 0; }
.h-ico { display: flex; align-items: center; gap: 8px; }
.h-ico .ico { color: var(--g); }
.upload-panel { padding: 12px; }
.photo-picker {
  padding: 37px 14px 18px;
  border: 1px solid rgb(202 231 183 / 27%);
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(9 25 16 / 32%), rgb(9 25 16 / 91%) 78%),
    #14281d url("/orchard-hero.webp") 67% 48% / cover no-repeat;
  text-align: center;
}
.photo-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 17px;
  color: var(--g);
  background: rgb(13 36 23 / 66%);
  border: 1px solid var(--line);
}
.photo-icon::before, .photo-icon::after {
  position: absolute;
  width: 16px;
  height: 16px;
  content: "";
  border: solid var(--g);
  pointer-events: none;
}
.photo-icon::before { inset: 0 auto auto 0; border-width: 2px 0 0 2px; border-top-left-radius: 9px; }
.photo-icon::after { inset: auto 0 0 auto; border-width: 0 2px 2px 0; border-bottom-right-radius: 9px; }
.photo-icon .ico { width: 31px; height: 31px; stroke-width: 1.5; }
.photo-picker p, .model-panel p { margin-top: 7px; }
.photo-picker .actions { justify-content: center; gap: 9px; margin-top: 18px; }
.photo-picker .actions .btn { min-height: 46px; flex: 1 1 auto; }
.photo-picker .actions .btn.light { background: rgb(9 25 16 / 36%); color: var(--ink); }
.retake-label, .has-photo .capture-label { display: none; }
.has-photo .retake-label { display: inline; }
.has-photo .photo-picker { margin-top: 12px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.has-photo .photo-picker > :not(.actions) { display: none; }
.has-photo .photo-picker .actions { justify-content: flex-start; margin-top: 0; }
.has-photo .photo-picker .actions .btn { flex: 0 1 auto; }
.photo-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 14px; }
.photo-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 13px;
  outline: 1px solid var(--line);
}
.preview { display: block; width: auto; height: auto; max-width: 100%; max-height: min(440px, 57svh); }
.lesion-boxes { position: absolute; inset: 0; pointer-events: none; }
.lesion-box { position: absolute; border: 2px solid #f7d264; box-shadow: 0 0 0 1px #392600; }
.leaf-selection-box { border-color: #5bc884; box-shadow: none; }
.candidate-selection-box { border-color: #70a6d4; box-shadow: none; }
.excluded-selection-box { border: 2px dashed #db8875; box-shadow: none; }
.lesion-box.leaf-selection-box > span { background: #297341; color: #fff; }
.lesion-box.candidate-selection-box > span { background: #365f86; color: #fff; }
.lesion-box.excluded-selection-box > span { background: #983e2e; color: #fff; }
.leaf-mask-preview { display: block; max-width: 100%; max-height: 250px; object-fit: contain; margin: 12px auto 0; border-radius: 11px; outline: 1px solid var(--line); }
.leaf-mask-preview[hidden] { display: none; }
.result-summary { padding-bottom: 20px; }
.result-panel { scroll-margin-top: 14px; }
.analysis-detail { border-top: 1px solid var(--line); padding-top: 18px; }
.analysis-detail > p { margin-top: 8px; }
.lesion-box > span {
  display: block;
  width: max-content;
  padding: 0 4px;
  background: #f7d264;
  color: #2e2307;
  font-size: 11px;
  font-weight: 750;
}
.lesion-result { margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--line); }
.lesion-result h3 { margin: 0 0 5px; font-size: 15px; }
.lesion-list { margin: 6px 0 0; padding-left: 24px; font-size: 13px; }
.lesion-list:empty { display: none; }
.class-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.class-list li { padding: 5px 10px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 12px; font-weight: 600; }
.class-list .healthy-label { color: var(--ok); background: var(--ok-bg); }
.model-panel .privacy-note { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.privacy-note .ico { width: 15px; height: 15px; color: var(--ok); }

.prediction {
  margin: 12px 0 5px;
  font-weight: 780;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.prediction.ok { color: var(--ok); }
.prediction.warn { color: var(--warn); }
.prediction.danger { color: var(--danger); }
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--light);
  color: var(--g);
}
.confidence-badge .ico { width: 14px; height: 14px; }
.confidence-badge.ok { background: var(--ok-bg); color: var(--ok); }
.confidence-badge.warn { background: var(--warn-bg); color: var(--warn); }
.confidence-badge.danger { background: var(--danger-bg); color: var(--danger); }
.probabilities { display: grid; gap: 11px; margin-top: 16px; }
.probabilities:empty { margin-top: 0; }
.probability { --bar: #9fbaab; }
.probability-label { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.probability-label strong { font-family: var(--numbers); font-variant-numeric: tabular-nums; }
.probability-label .prob-name { display: flex; align-items: center; gap: 6px; }
.prob-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bar); flex: none; }
.probability progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 5px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light);
}
.probability progress::-webkit-progress-bar { background: var(--light); border-radius: 10px; }
.probability progress::-webkit-progress-value { background: var(--bar, var(--g)); border-radius: 10px; transition: width .4s ease; }
.probability progress::-moz-progress-bar { background: var(--bar, var(--g)); border-radius: 10px; }
.probability.tone-ok { --bar: var(--ok); }
.probability.tone-warn { --bar: var(--warn); }
.probability.tone-danger { --bar: var(--danger); }
.probability.tone-flat { --bar: #96a89d; }
.probability.tone-danger:not(.is-leading) { --bar: #a7bbaa; }
.probability.is-leading .probability-label { color: var(--bar); font-weight: 700; }

dialog {
  width: min(calc(100% - 24px), 480px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #17291f;
  box-shadow: var(--shadow);
}
dialog.admin-dialog { width: min(calc(100% - 24px), 390px); }
dialog::backdrop { background: rgb(6 13 9 / 68%); backdrop-filter: blur(5px); }
dialog h2 + p, .form-error { margin: 8px 0; }
.form-error { color: var(--danger); }
.toast {
  position: fixed;
  z-index: 10;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 28px);
  transform: translateX(-50%) translateY(8px);
  padding: 11px 16px;
  border-radius: 11px;
  background: #274132;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.toast.show { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 600px) {
  body::before {
    background-image: linear-gradient(90deg, rgb(6 20 13 / 87%), rgb(6 20 13 / 10%) 50%, rgb(6 20 13 / 87%)),
      url("/assets/orchard-mist.webp");
  }
  .topbar { min-height: 74px; }
}

@media (max-width: 360px) {
  .app { width: calc(100% - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right) + 12px)); }
  .brand { font-size: 14px; }
  .photo-actions .btn { padding-inline: 10px; }
  .grid { gap: 8px; }
  .metric { padding: 10px; }
}

.field input, .field select, .field textarea { font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
