:root {
  --ink: #173126;
  --muted: #66766d;
  --paper: #f5f6ef;
  --panel: #ffffff;
  --forest: #123d2a;
  --leaf: #347352;
  --lime: #b8da7c;
  --blue: #82b8bc;
  --coral: #db7862;
  --amber: #e5b84f;
  --line: #dfe5da;
  --shadow: 0 14px 40px rgba(26, 56, 40, .07);
  --radius: 20px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; background: linear-gradient(180deg, #f8f9f3 0, var(--paper) 45%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
form, fieldset, form > div, form label { min-width: 0; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(223, 229, 218, .85);
  background: rgba(248, 249, 243, .88);
  backdrop-filter: blur(16px);
}

.brand { display: flex; min-width: 0; align-items: center; justify-self: start; }
.brand-mark-link { display: grid; grid-column: 2; place-items: center; justify-self: center; }
.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .08em; font-size: 14px; }
.brand-word { display: flex !important; align-items: center; gap: .07em; width: fit-content; line-height: 1; }
.brand-word svg { width: 1em; height: 1em; overflow: visible; fill: none; stroke: currentColor; stroke-dasharray: 21 4; stroke-dashoffset: -2; stroke-linecap: butt; stroke-width: 4; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 14px; justify-self: stretch; }
.public-view-heading { flex-wrap: wrap; gap: 3px 9px; text-align: right; }
.public-view-heading strong { font-size: 13px; }
.public-view-heading span { padding: 4px 7px; border-radius: 999px; background: #edf2ea; color: var(--muted); font-size: 10px; font-weight: 750; }
.desktop-nav { display: flex; min-width: 0; justify-content: flex-end; gap: 5px; }
.desktop-nav a { padding: 10px 8px; border-radius: 12px; color: #42564b; font-size: 14px; }
.desktop-nav a:hover { background: #e9eee4; color: var(--forest); }
.text-button, .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--leaf);
  cursor: pointer;
}
.user-menu { position: relative; flex: 0 0 auto; }
.user-menu > summary {
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--leaf);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary::after { content: "⌄"; display: inline-block; margin-left: 6px; transition: transform .18s ease; }
.user-menu[open] > summary { background: #e9eee4; color: var(--forest); }
.user-menu[open] > summary::after { transform: rotate(180deg); }
.user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 52, 35, .18);
}
.user-menu-link { display: block; padding: 10px; border-radius: 10px; color: var(--forest); font-size: 13px; font-weight: 700; }
.user-menu-link:last-of-type { margin-bottom: 10px; }
.user-menu-link:hover { background: #eef3ea; }
.garden-switcher { display: grid; gap: 7px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.garden-switcher label { color: var(--muted); font-size: 12px; font-weight: 700; }
.garden-switcher select { width: 100%; min-width: 0; }
.user-menu-panel form:last-child { margin-top: 8px; }
.user-menu-logout { width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: #9a3f2d; cursor: pointer; text-align: left; }
.user-menu-logout:hover { background: #fff2ef; }
.management-garden-switcher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; gap: 14px; margin-bottom: 28px; padding: 16px 18px; }
.management-garden-switcher label { color: var(--muted); font-size: 13px; font-weight: 750; }
.management-garden-switcher select { width: 100%; }
.account-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 16px; }
.account-summary span { color: var(--muted); font-size: 13px; }
.account-summary strong { color: var(--forest); }
.account-form + .account-form { margin-top: 16px; }
.account-form > .muted { margin-top: -2px; font-size: 13px; }
.help-sections { display: grid; gap: 14px; margin-top: 24px; }
.help-sections h2 { margin-bottom: 8px; }
.help-sections p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.help-contact .button { margin-top: 16px; }

.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 100px; }
.hero-row, .detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-family: var(--font-sans); font-size: clamp(34px, 5vw, 58px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.page-title-with-help { display: flex; width: fit-content; max-width: 100%; min-width: 0; align-items: center; gap: 10px; }
.page-title-with-help h1 { min-width: 0; }
.page-title-with-help .page-help-button { flex: 0 0 24px; margin-bottom: 8px; }
h2 { margin-bottom: 16px; font-size: 20px; }
h3 { margin-bottom: 7px; font-size: 18px; }
.eyebrow { margin-bottom: 9px; color: var(--leaf); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.lead { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.treatment-year { color: inherit; font-family: inherit; font-size: .34em; font-weight: inherit; letter-spacing: inherit; white-space: nowrap; }
.muted { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--leaf); font-size: 14px; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 700;
}
.button.primary { background: var(--forest); color: #fff; box-shadow: 0 8px 22px rgba(18, 61, 42, .18); }
.button.primary:hover { background: #0a2e1e; }
.button.secondary { border-color: #b8c8bc; background: #fff; color: var(--forest); }
.button.quiet { background: #e9eee4; color: var(--forest); }
.button.danger { border-color: #efc7be; background: #fff4f1; color: #9a3f2d; }
.button:disabled, .button:disabled:hover {
  cursor: not-allowed;
  background: #d8ddd7;
  color: #7d8881;
  opacity: .78;
  filter: grayscale(.65);
  box-shadow: none;
}
.button.wide { width: 100%; }

.dashboard-section { margin-top: 42px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading > div { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; }
.section-heading a { color: var(--leaf); font-size: 14px; }
.section-dot { width: 10px; height: 10px; border-radius: 50%; }
.section-dot.lime { background: var(--lime); }
.section-dot.blue { background: var(--blue); }
.section-dot.coral { background: var(--coral); }
.section-dot.amber { background: var(--amber); }
.count { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 20px; background: #e8ede3; font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card, .fact-card, .product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 5px 20px rgba(26, 56, 40, .035);
}
.treatment-card.status-draft { border-color: #d9dfdb; background: #f1f3f2; color: var(--ink); }
.treatment-card.status-planned { background: #fff; color: var(--ink); }
.treatment-card.status-completed { border-color: #d8eadb; background: #f3faf4; color: var(--ink); }
.treatment-card.status-partial { border-color: #ead8ab; background: #fff9e9; color: var(--ink); }
.treatment-card.status-cancelled { border-color: #d9dfdb; background: #eef1ef; color: var(--ink); }
.treatment-card.status-missed { border-color: #efd9d4; background: #fff2ef; color: var(--ink); }
.plan-card:hover, .product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: .18s ease; }
.plan-card > a, .fact-card > a { display: block; padding: 20px; }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.plan-card-top time { color: var(--muted); font-size: 14px; }
.plan-card p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.status-pill, .chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf2e7;
  color: #315744;
  font-size: 11px;
  font-weight: 750;
}
.help-tag { border: 0; cursor: pointer; font-family: inherit; line-height: normal; }
.action-character-value, .resistance-group-value { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.inline-info-button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--leaf);
  cursor: pointer;
}
.segmented-info-icon { display: block; width: 24px; height: 24px; overflow: visible; }
.segmented-info-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-dasharray: 21 4;
  stroke-dashoffset: -2;
  stroke-linecap: butt;
}
.segmented-info-dot { fill: currentColor; }
.segmented-info-stem { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.inline-info-button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.help-tag:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.tag-help-dialog { width: min(430px, calc(100% - 28px)); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(16, 52, 35, .25); color: var(--ink); text-align: center; }
.tag-help-dialog::backdrop { background: rgba(14, 37, 26, .38); backdrop-filter: blur(2px); }
.tag-help-dialog strong { display: block; margin-bottom: 8px; font-family: var(--font-sans); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.tag-help-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: left; white-space: pre-line; }
.status-completed { background: #dcebdc; color: #28613c; }
.status-partial { background: #fff0c8; color: #7b5611; }
.status-draft { background: #fff0c8; color: #7b5611; }
.status-cancelled { background: #ecefed; color: #59665f; }
.status-missed { background: #f7dfdc; color: #914b40; }
.partial-completion-note { margin-bottom: 18px; border-color: #ead8ab; background: #fff9e9; }
.partial-completion-note h2 { margin-bottom: 8px; color: #765310; }
.partial-completion-note dl { margin: 0; }
.partial-completion-note div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 7px 0; }
.partial-completion-note dt { color: var(--muted); }
.partial-completion-note dd { margin: 0; font-weight: 700; }
.status-pill.warning, .chip.warning { background: #fff0c8; color: #7b5611; }
.muted-pill { background: #e8e8e8; color: #5a5a5a; }
.mixture-line { display: flex; flex-wrap: wrap; gap: 5px; }
.mixture-line span { padding: 5px 8px; border-radius: 8px; background: #f2f5ef; color: #4e6155; font-size: 12px; }
.empty-state { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 24px; border: 1px dashed #cbd6c9; border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); }
.empty-state.compact { min-height: 90px; }
.fact-card.warning { border-color: #ead59e; background: #fffbef; }
.fact-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

.calendar-toolbar { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--leaf); font-size: 14px; }
.calendar-toolbar strong { color: var(--ink); font-weight: 750; }
.calendar-scroll { width: 100%; max-width: 100%; padding-bottom: 8px; }
.calendar-grid { display: grid; width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.weekday { padding: 12px; background: #eaf0e6; color: var(--muted); text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.calendar-day { display: flex; min-width: 0; min-height: 130px; flex-direction: column; padding: 9px; background: #fff; }
.calendar-day.outside { background: #f2f4ef; color: #9aa69f; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--leaf); }
.day-number { display: grid; width: 26px; height: 26px; place-items: center; margin-bottom: 7px; border-radius: 50%; font-size: 13px; }
.today .day-number { background: var(--forest); color: white; }
.day-plans { display: grid; gap: 5px; }
.protection-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.protection-legend-title { color: var(--ink); font-weight: 800; }
.protection-legend-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.protection-legend-item i { width: 20px; height: 4px; border-radius: 4px; background: var(--protection-color); }
.protection-legend-note { margin-left: auto; font-style: italic; }
.protection-scope-note { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.protection-fungicide { --protection-color: #c797db; }
.protection-insecticide { --protection-color: #97db9a; }
.protection-acaricide { --protection-color: #c7c1a9; }
.day-protection { position: relative; z-index: 1; display: grid; gap: 2px; margin: auto -10px 0 -9px; padding-top: 7px; }
.protection-track { position: relative; height: 5px; overflow: visible; background: transparent; }
.protection-segment { display: block; width: 100%; height: 5px; padding: 0; border: 0; border-radius: 0; background: var(--protection-color); cursor: help; opacity: var(--protection-opacity); }
.protection-segment.protection-projected { background: repeating-linear-gradient(90deg, var(--protection-color) 0 5px, transparent 5px 8px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--protection-color) 45%, transparent); }
.protection-segment:focus-visible { outline: 2px solid var(--protection-color); outline-offset: 2px; }
.calendar-event { --method-icon-size: 29px; position: relative; display: grid; width: 80%; min-width: 0; min-height: 38px; place-items: center; padding: 6px 5px; overflow: visible; border: 0; background: transparent; box-shadow: none; color: var(--forest); cursor: pointer; justify-self: center; touch-action: manipulation; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.calendar-event.scope-whole, .calendar-event.scope-local { width: 100%; min-height: 0; padding: 0; }
.calendar-draft-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #d85f52; box-shadow: 0 0 0 2px rgba(255, 255, 255, .92); }
.calendar-partial-mark { position: absolute; z-index: 3; top: 3px; right: 3px; display: block; color: #d64d41; font-size: 15px; font-weight: 950; line-height: 1; pointer-events: none; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; }
.application-method-icon { display: block; width: var(--method-icon-size, 29px); height: var(--method-icon-size, 29px); object-fit: contain; }
.calendar-event .application-method-icon { filter: none; opacity: 1; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.calendar-event.scope-whole .application-method-icon { width: 100%; height: auto; }
.calendar-event.scope-local .application-method-icon { width: 50%; height: auto; }
.calendar-event.scope-whole .calendar-draft-dot { width: 10px; height: 10px; }
.calendar-event.scope-local .calendar-draft-dot { right: calc(25% - 3px); width: 6px; height: 6px; }
.calendar-event.scope-whole .calendar-partial-mark { font-size: 17px; }
.calendar-event.scope-local .calendar-partial-mark { right: calc(25% - 3px); font-size: 13px; }
svg.application-method-icon { overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }
svg.application-method-icon circle { fill: currentColor; stroke: none; }
.calendar-event.status-draft, .calendar-event.status-completed, .calendar-event.status-cancelled, .calendar-event.status-missed { background: transparent; color: var(--forest); opacity: 1; }
.calendar-event.status-partial { background: transparent; color: var(--forest); opacity: 1; }
.calendar-hover-tooltip { position: fixed; z-index: 1000; width: max-content; max-width: min(280px, calc(100vw - 20px)); padding: 9px 11px; border: 1px solid #cbd8ca; border-radius: 10px; background: rgba(255, 255, 255, .98); box-shadow: 0 8px 24px rgba(16, 52, 35, .18); color: var(--ink); font-size: 12px; line-height: 1.4; pointer-events: none; }
.calendar-hover-tooltip span { display: block; }
.calendar-hover-tooltip strong { color: var(--muted); font-weight: 700; }
.calendar-event-dialog { width: min(430px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(16, 52, 35, .25); color: var(--ink); }
.calendar-event-dialog::backdrop { background: rgba(14, 37, 26, .45); backdrop-filter: blur(3px); }
.calendar-event-dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); color: var(--muted); font-size: 12px; font-weight: 750; }
.calendar-event-dialog-head button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef2eb; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; }
.calendar-event-dialog [data-calendar-dialog-content] { padding: 22px; }
.calendar-event-dialog h2 { margin-bottom: 18px; }
.calendar-event-facts { margin: 0 0 18px; }
.calendar-event-facts div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calendar-event-facts dt { color: var(--muted); }
.calendar-event-facts dd { margin: 0; font-weight: 700; }
.calendar-event-mixture > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.calendar-event-mixture p { margin: 0 0 6px; padding: 7px 9px; border-radius: 9px; background: #f2f5ef; font-size: 13px; }
.calendar-dialog-detail-link { display: grid; width: 40px; height: 40px; place-items: center; margin: 18px 0 0 auto; border: 1px solid #bdd0c0; border-radius: 12px; background: #edf5e9; color: var(--forest); }
.calendar-dialog-detail-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.calendar-view-switch { display: flex; width: fit-content; gap: 5px; margin: -18px 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.calendar-view-switch a { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.calendar-view-switch a.active { background: #e9f0e5; color: var(--forest); }
.calendar-list { display: grid; gap: 22px; }
.calendar-list-day { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
.calendar-list-day > header { padding-top: 14px; text-align: center; }
.calendar-list-day > header strong, .calendar-list-day > header span { display: block; }
.calendar-list-day > header strong { font-family: var(--font-sans); font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.calendar-list-day > header span { margin-top: 2px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.calendar-list-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.narrow-page { width: min(680px, 100%); margin: 0 auto; }
.narrow-page.wide-form { width: min(900px, 100%); }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 18px rgba(26, 56, 40, .035); }
.stack-form { display: grid; gap: 18px; }
.stack-form > div, .field-wrap { display: grid; gap: 7px; }
.stack-form label, .field-wrap > label, .field-label { font-size: 13px; font-weight: 750; }
.single-garden-value { min-height: 44px; padding: 10px 12px; border-radius: 11px; background: #f1f4ee; color: var(--ink); font-weight: 650; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cdd7cf;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  inline-size: 100%;
  min-inline-size: 0;
  overflow: hidden;
  -webkit-min-logical-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value,
input[type="month"]::-webkit-date-and-time-value,
input[type="week"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="month"]::-webkit-datetime-edit,
input[type="week"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit {
  min-width: 0;
  overflow: hidden;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(52, 115, 82, .12); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--leaf); }
.stack-form ul { margin: 0; padding: 0; list-style: none; }
.stack-form ul li { display: flex; align-items: center; gap: 7px; margin: 5px 0; }
.stack-form ul li label { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.form-actions, .sticky-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sticky-actions { position: sticky; z-index: 10; bottom: 14px; justify-content: flex-end; padding: 12px; border: 1px solid rgba(223,229,218,.9); border-radius: 16px; background: rgba(248,249,243,.92); backdrop-filter: blur(12px); }
.form-section h2 { margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.field-description, .field-targets, .field-weather_comment, .field-notes { grid-column: 1 / -1; }
.fact-form-details { margin-top: 20px; border-top: 1px solid var(--line); }
.fact-form-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 2px 0;
  color: var(--forest);
  font-weight: 750;
  cursor: pointer;
}
.fact-form-details > summary::after {
  content: "⌄";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: transform .18s ease;
}
.fact-form-details[open] > summary::after { transform: rotate(180deg); }
.fact-form-details[open] > summary { margin-bottom: 4px; }
.fact-form-details .form-grid { margin-top: 16px; }
.fact-details-intro { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.fact-details-intro + .form-grid { margin-top: 12px; }
.field-rain_same_day { align-content: end; }
.field-rain_same_day > input { width: 20px; min-height: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mixture-forms { display: grid; gap: 12px; margin: 20px 0 12px; }
.mixture-form { padding: 16px; border: 1px solid #dce4db; border-radius: 15px; background: #f9faf6; }
.mixture-enhanced .mixture-forms { display: none; }
.mixture-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.dose-hint { min-height: 17px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.resistance-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e6bd73;
  border-radius: 10px;
  background: #fff8e8;
  color: #7b4b0c;
  font-size: 13px;
  line-height: 1.4;
}
.resistance-hint p { margin: 0; }
.resistance-hint p + p { margin-top: 7px; }
.personal-product-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.personal-product-note h2 { margin-top: 0; }
.compact-note-form { gap: 10px; }
.compact-note-form textarea { width: 100%; }
.compact-note-form .button { align-self: flex-start; }
.voice-entry-button { margin: 4px 0 18px; }
.voice-input-page .lead { max-width: 720px; }
.voice-input-page form.panel { margin-top: 22px; }
.voice-controls { display: flex; align-items: center; gap: 14px; }
.voice-record-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #d6ded5;
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.voice-record-button > span:first-child { color: #c45145; font-size: 18px; }
.voice-record-button.is-recording { border-color: #c45145; background: #fff2f0; color: #8c3028; }
.voice-record-button.is-recording > span:first-child { animation: voice-pulse 1.2s infinite; }
.voice-record-button:disabled { opacity: .48; cursor: not-allowed; }
@keyframes voice-pulse { 50% { opacity: .35; transform: scale(.82); } }
.pending-voice-inputs { margin-top: 28px; }
.pending-voice-inputs > a {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.pending-voice-inputs > a span { color: var(--muted); font-size: 13px; }
.voice-review { margin: 18px 0; border-color: #cadccf; background: #fbfdf9; }
.voice-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.voice-review-heading h2 { margin: 0; }
.voice-review-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.voice-review-summary > div { padding: 10px 12px; border-radius: 11px; background: #f0f5ef; }
.voice-review-summary dt { color: var(--muted); font-size: 11px; }
.voice-review-summary dd { margin: 3px 0 0; font-weight: 750; }
.voice-review-products { display: grid; gap: 7px; }
.voice-review-products > span { padding-left: 12px; border-left: 2px solid #c6dacb; }
.voice-review-products small { margin-left: 5px; color: var(--muted); }
.voice-warnings { margin-top: 16px; padding: 12px 14px; border: 1px solid #e6bd73; border-radius: 12px; background: #fff8e8; color: #71450d; }
.voice-warnings ul { margin: 7px 0 0; padding-left: 20px; }
.voice-source-details { margin-top: 15px; }
.voice-source-details summary { color: var(--forest); cursor: pointer; font-weight: 700; }
.voice-source-details p { color: var(--muted); }
#add-mixture:disabled { cursor: not-allowed; opacity: .48; }
.mixture-section { position: relative; }
.mixture-section.is-locked { overflow: hidden; }
.mixture-section.is-locked > :not(.mixture-lock) {
  opacity: .52;
  pointer-events: none;
  user-select: none;
}
.mixture-lock {
  position: absolute;
  z-index: 25;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: inherit;
  background: rgba(255, 255, 255, .52);
  text-align: center;
}
.mixture-lock span {
  max-width: 300px;
  color: #4e6056;
  text-shadow: 0 1px 0 #fff;
  font-size: 15px;
  font-weight: 750;
}
.mixture-table-wrap { margin: 20px 0 14px; }
.mixture-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
.mixture-table { width: 100%; border-collapse: collapse; background: #fff; }
.mixture-table th, .mixture-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mixture-table th { background: #f2f5ef; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.mixture-table tr:last-child td { border-bottom: 0; }
.mixture-table td strong, .mixture-table td span { display: block; }
.mixture-product-brief {
  padding: 0;
  border: 0;
  background: none;
  color: var(--forest);
  font: inherit;
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(25, 91, 61, .3);
  text-underline-offset: 3px;
  cursor: pointer;
}
.mixture-product-brief:hover { text-decoration-color: currentColor; }
.mixture-product-brief.is-crossed { color: var(--muted); text-decoration: line-through; }
.mixture-planned-inline { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.mixture-change-note { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-style: italic; font-weight: 400; }
.mixture-row-omitted { background: #f5f5f1; color: var(--muted); }
.mixture-row-omitted .mixture-icon-action.restore { color: var(--forest); }
.mixture-dose-cell { font-size: 13px; line-height: 1.35; }
.mixture-row-actions-cell { width: 98px; }
.mixture-row-actions { display: flex; justify-content: flex-end; gap: 12px; white-space: nowrap; }
.danger-link { color: #9b493c; }
.table-error { margin-top: 3px; color: #a23f2e; font-size: 11px; }
.mixture-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: visible; border: 0; border-radius: 22px; background: transparent; }
.mixture-dialog::backdrop { background: rgba(14, 37, 26, .48); backdrop-filter: blur(3px); }
.mixture-dialog-card { max-height: calc(100dvh - 28px); padding: 24px; overflow-y: auto; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(10, 35, 22, .28); }
.mixture-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.mixture-dialog-context { margin: 0 0 9px; color: var(--forest); font-size: 15px; font-weight: 750; line-height: 1.35; }
.dialog-close { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #eef2eb; color: var(--muted); font-size: 25px; line-height: 1; cursor: pointer; }
.mixture-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.product-brief-dialog { width: min(560px, calc(100% - 28px)); }
.product-brief-dialog h2 { margin: 0; font-size: 30px; }
.product-brief-content { margin-top: 16px; }
.product-brief-content h3 { margin: 18px 0 6px; font-size: 15px; }
.product-brief-content p { margin: 0 0 10px; line-height: 1.55; }
.warning-text { color: #a35f13; font-weight: 700; }
.danger-text { color: #a23f2e; font-weight: 750; }
.errorlist, .error-text { margin: 4px 0 0; color: #a23f2e; font-size: 13px; }

.detail-head { align-items: flex-start; }
.detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; }
.detail-head .chips { margin: 8px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mixture-summary { display: grid; }
.mixture-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.mixture-summary-row:last-child { border-bottom: 0; }
.mixture-summary-row strong, .mixture-summary-row span { display: block; }
.mixture-summary-row span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.mixture-planned-value { display: block; margin-top: 8px; color: var(--muted); }
.mixture-omitted { color: var(--muted); background: #f7f7f3; }
.mixture-omitted .plan-mixture-content { padding: 8px 10px; }
.mixture-omitted .plan-mixture-title s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-mixture-row { display: block; }
.plan-mixture-content { width: 100%; }
.plan-mixture-categories { margin-bottom: 9px; }
.plan-mixture-categories .chip { margin: 0; color: #315744; font-size: 11px; }
.plan-mixture-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.plan-mixture-title strong { font-size: 16px; }
.plan-mixture-title .inline-dose { display: inline; margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.plan-mixture-description { max-width: 680px; margin: 7px 0 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-detail-icon-link {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-top: 7px;
  border: 1px solid #bdd0c0;
  border-radius: 10px;
  background: #f7faf4;
  color: var(--leaf);
}
.product-detail-icon-link:hover { background: #eaf2e6; }
.product-detail-icon-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.product-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.product-detail-toolbar form { margin: 0; }
.product-detail-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.product-back-button { padding: 9px 14px; }
.mixture-dose-note { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.fact-change-note { font-style: italic; font-weight: 400; }
.dose { flex: 0 0 auto; padding: 9px 11px; border-radius: 10px; background: #eef3ea; text-align: right; font-weight: 750; }
.dose small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.dose-warning { background: #fff0c8; color: #7b5611; }
.action-stack { display: grid; gap: 9px; margin-top: 22px; }
.plan-form-action-stack { display: grid; width: 100%; grid-column: 1 / -1; gap: 9px; }
.treatment-status-line { margin: 0; color: var(--muted); }
.treatment-status-line strong { color: var(--ink); }
.treatment-reason-line { margin: 10px 0 0; color: var(--muted); }
.treatment-reason-line strong { color: var(--ink); }
.weather-panel dl { margin: 0 0 20px; }
.weather-panel dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.weather-panel dt { color: var(--muted); }
.weather-panel dd { margin: 0; font-weight: 700; text-align: right; }

.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 190px 190px auto; gap: 10px; margin-bottom: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.filter-bar.multi { grid-template-columns: repeat(5, 1fr) auto; }
.history-filter-panel { margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.history-filter-panel > summary { display: flex; min-height: 52px; align-items: center; gap: 9px; padding: 12px 15px; color: var(--forest); cursor: pointer; font-weight: 750; list-style: none; }
.history-filter-panel > summary::-webkit-details-marker { display: none; }
.history-filter-panel > summary small { padding: 4px 7px; border-radius: 999px; background: #e9f0e5; color: var(--leaf); font-size: 10px; }
.history-filter-chevron { margin-left: auto; color: var(--muted); font-size: 20px; transition: transform .18s ease; }
.history-filter-panel[open] .history-filter-chevron { transform: rotate(180deg); }
.history-filter-panel .history-filter { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.history-filter { grid-template-columns: repeat(2, minmax(150px, 1fr)) minmax(330px, 1.5fr) auto; align-items: end; }
.history-filter.has-garden { grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(330px, 1.5fr) auto; }
.history-date-filter { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.history-date-filter legend { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 750; }
.history-date-filter label { display: grid; width: 100%; min-width: 0; gap: 4px; overflow: hidden; color: var(--muted); font-size: 12px; }
.history-date-filter input { display: block; width: 100%; min-width: 0; max-width: 100%; }
.catalog-tabs { display: flex; gap: 8px; margin: -12px 0 22px; }
.catalog-tabs a { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--muted); font-weight: 750; }
.catalog-tabs a.active { border-color: var(--forest); background: var(--forest); color: #fff; }
.catalog-tabs span { display: grid; min-width: 24px; height: 24px; place-items: center; padding: 0 6px; border-radius: 999px; background: rgba(128, 150, 137, .16); font-size: 12px; }
.catalog-tabs a.active span { background: rgba(255, 255, 255, .16); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card { display: flex; flex-direction: column; }
.product-card.is-removing { pointer-events: none; }
.product-card-main { display: block; flex: 1; padding: 22px; }
.product-card-link { display: block; }
.product-card h2 { margin: 16px 0 8px; font-family: var(--font-sans); font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.product-card p { min-height: 48px; color: var(--muted); line-height: 1.5; }
.product-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--line); background: #fafbf7; font-size: 13px; }
.favorite-product-groups { display: grid; gap: 28px; }
.favorite-product-group { display: grid; gap: 10px; }
.favorite-product-group-heading { display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.favorite-product-group-heading h2 { margin: 0; color: var(--forest); font-size: 20px; }
.favorite-product-group-heading span { display: grid; min-width: 24px; height: 24px; place-items: center; padding: 0 6px; border-radius: 999px; background: #e8ede3; color: var(--muted); font-size: 11px; font-weight: 750; }
.favorite-product-list { display: grid; gap: 8px; }
.favorite-product-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: 16px; }
.favorite-product-main { min-width: 0; padding: 14px 16px; }
.favorite-product-name { display: block; min-width: 0; overflow: hidden; color: var(--ink); font-size: 17px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.favorite-product-description { margin: 0; }
.favorite-product-description > summary { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; color: var(--leaf); cursor: pointer; list-style: none; }
.favorite-product-description > summary::-webkit-details-marker { display: none; }
.favorite-product-chevron { flex: 0 0 auto; color: var(--leaf); font-size: 17px; transition: transform .18s ease; }
.favorite-product-description[open] .favorite-product-chevron { transform: rotate(180deg); }
.favorite-product-description > div { display: grid; gap: 9px; padding-top: 12px; }
.favorite-product-description .chips { margin: 0; }
.favorite-product-description small { color: var(--muted); }
.favorite-product-description p { min-height: 0; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.favorite-product-description a { width: fit-content; color: var(--leaf); font-size: 12px; font-weight: 750; }
.favorite-product-actions.product-card-actions { align-self: stretch; border-top: 0; border-left: 1px solid var(--line); padding: 10px 12px; background: #fafbf7; }
.favorite-product-actions.product-card-actions.icon-actions > form { margin-left: 0; }
.favorite-product-actions .stock-availability-card { right: 0; left: auto; }
.favorite-product-actions .stock-availability-card::after { right: 12px; left: auto; }
.inventory-state { color: var(--leaf); font-weight: 750; }
.norm-card { display: grid; gap: 5px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.norm-card:last-child { border-bottom: 0; }
.norm-samosad-recommendation { display: grid; gap: 2px; margin: 7px 0 5px; }
.norm-card .norm-samosad-recommendation > small { color: var(--leaf); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.norm-card .norm-main { color: var(--forest); font-family: var(--font-sans); font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.norm-manufacturer-recommendation { display: grid; gap: 3px; margin-bottom: 3px; padding: 10px 12px; border-radius: 11px; background: #f2f5ef; }
.norm-manufacturer-recommendation small { color: var(--muted); font-size: 11px; }
.norm-manufacturer-recommendation span { font-size: 14px; }
.norm-card small { color: var(--muted); }
.product-facts { margin: 0 0 28px; }
.product-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--muted); }
.product-facts dd { margin: 0; font-weight: 700; text-align: right; }
.product-facts .hazard-row { margin: 4px -10px 0; padding: 11px 10px; border: 0; border-radius: 10px; background: #fff0c8; color: #72500e; }
.source-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.source-links li { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.source-links a { color: var(--leaf); font-weight: 750; }
.source-links small { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row strong, .list-row span { display: block; }
.list-row span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.list-row.archived { opacity: .52; }
.garden-list-main { min-width: 0; flex: 1; }
.public-share-enable { margin-top: 10px; }
.public-share-box { max-width: 720px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9f4; }
.public-share-box label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.public-share-box > div { display: flex; align-items: center; gap: 7px; }
.public-share-box input { min-width: 0; flex: 1; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 12px; }
.public-share-box .button { padding: 9px 11px; font-size: 12px; }
.public-share-actions { margin-top: 9px; }
.share-garden-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: center; gap: 14px; margin: 26px 0 16px; }
.share-garden-picker label { color: var(--muted); font-size: 13px; font-weight: 750; }
.share-garden-picker select { width: 100%; }
.share-garden-result h2 { margin-bottom: 8px; }
.single-share-box { max-width: none; margin-top: 16px; }
.pdf-plan-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.pdf-plan-form > div:first-of-type, .pdf-plan-form > div:last-of-type, .pdf-plan-form .errorlist, .pdf-plan-form > button { grid-column: 1 / -1; }
.pdf-plan-form > div { min-width: 0; }
.pdf-plan-form input, .pdf-plan-form select { width: 100%; }
.pdf-plan-form #id_layout { display: grid; grid-template-columns: 1fr; gap: 5px; margin-top: 7px; }
.pdf-plan-form #id_layout > div label { display: flex; align-items: center; gap: 9px; padding: 3px 0; color: var(--ink); font-weight: 750; white-space: nowrap; cursor: pointer; }
.pdf-plan-form #id_layout input { width: 18px; min-height: 18px; margin: 0; }
.danger-text { color: #b64f45; }
.row-actions { display: flex; gap: 14px; color: var(--leaf); font-size: 14px; }
.timeline { display: grid; gap: 12px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.timeline-item.without-date { grid-template-columns: 1fr; }
.treatment-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: .18s ease; }
.dashboard-section .card-grid { grid-template-columns: 1fr; }
.timeline-card-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.timeline-item > time, .timeline-item > div { position: relative; z-index: 2; pointer-events: none; }
.timeline-item .help-tag { pointer-events: auto; }
.timeline-item > time { text-align: center; }
.timeline-item > time strong, .timeline-item > time span { display: block; }
.timeline-item > time strong { font-family: var(--font-sans); font-size: 36px; font-weight: 600; letter-spacing: -.04em; }
.timeline-item > time span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.timeline-item h2 { margin: 10px 0 5px; }
.timeline-item p { color: var(--muted); }

.login-shell { display: grid; min-height: calc(100vh - 190px); place-items: center; }
.login-card { width: min(460px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.login-card h1 { font-size: 44px; }
.login-card .stack-form { margin-top: 26px; }
.login-access-button { margin-top: 12px; }
.stock-audit-page { padding-bottom: 110px; }
.stock-garden-picker { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; margin: 18px 0; }
.stock-garden-picker label { color: var(--muted); font-size: 13px; font-weight: 750; }
.stock-audit-list { display: grid; gap: 14px; }
.stock-audit-row { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(21, 55, 38, .05); }
.stock-audit-row.is-uncounted { background: #fbfcf9; }
.stock-audit-summary { display: flex; gap: 12px; align-items: center; padding: 15px 18px; list-style: none; cursor: pointer; }
.stock-audit-summary::-webkit-details-marker { display: none; }
.stock-audit-summary::after { content: "⌄"; flex: 0 0 auto; color: var(--muted); font-size: 18px; line-height: 1; transition: transform .2s; }
.stock-audit-row[open] > .stock-audit-summary { border-bottom: 1px solid var(--line); }
.stock-audit-row[open] > .stock-audit-summary::after { transform: rotate(180deg); }
.stock-audit-summary > div { min-width: 0; }
.stock-audit-summary strong { display: block; overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.stock-audit-summary small { display: block; color: var(--muted); font-size: 10px; }
.stock-current-balance { flex: 0 0 auto; margin-left: auto; color: var(--forest); font-size: 15px; font-weight: 800; white-space: nowrap; }
.stock-audit-body { padding: 18px; }
.stock-counted-toggle { display: flex; width: fit-content; gap: 7px; align-items: center; margin-bottom: 14px; color: var(--forest); font-size: 12px; font-weight: 750; cursor: pointer; }
.stock-counted-toggle input { width: 18px; height: 18px; margin: 0; }
.stock-audit-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stock-audit-fields label { min-height: 30px; color: var(--muted); font-size: 11px; line-height: 1.25; }
.stock-audit-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; margin-top: 12px; color: var(--muted); }
.stock-audit-total strong { color: var(--forest); font-size: 18px; }
.stock-audit-extra { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.stock-audit-extra summary { color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.stock-audit-extra .extra-fields { grid-template-columns: minmax(170px, .45fr) minmax(0, 1fr); margin-top: 12px; }
.stock-row-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 16px; }
.stock-row-save-message { color: var(--forest); font-size: 12px; font-weight: 750; }
.stock-row-actions .button { min-width: 130px; }
.messages { display: grid; gap: 8px; margin-bottom: 20px; }
.message { padding: 12px 15px; border-radius: 12px; background: #e5efe5; color: #2f5b3d; }
.message.error { background: #fff0ed; color: #8f3f30; }
.message.warning { background: #fff4d7; color: #785817; }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .topbar { min-height: 62px; padding: 8px 18px; }
  .topbar-actions { justify-self: end; }
  .page { width: min(100% - 24px, 720px); padding: 30px 0 100px; }
  .hero-row, .detail-head { align-items: flex-start; }
  .card-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .filter-bar, .filter-bar.multi, .history-filter, .history-filter.has-garden { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav {
    position: fixed;
    z-index: 50;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    min-height: 66px;
    padding: 6px;
    border: 1px solid rgba(208, 219, 207, .9);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 15px 45px rgba(16, 52, 35, .18);
    backdrop-filter: blur(16px);
  }
  .mobile-nav a { display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: 10px; }
  .mobile-nav a span { font-size: 21px; line-height: 1; }
  .mobile-nav .add { width: 48px; height: 48px; justify-self: center; border-radius: 17px; background: var(--forest); color: white; font-size: 30px; box-shadow: 0 8px 20px rgba(18, 61, 42, .25); }
}

@media (max-width: 600px) {
  h1 { font-size: 38px; }
  .brand small { display: none; }
  .hero-row, .detail-head { display: grid; gap: 18px; margin-bottom: 24px; }
  .hero-row .button, .detail-head .button { width: 100%; }
  .card-grid, .product-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; border-radius: 17px; }
  .form-grid, .mixture-fields { grid-template-columns: 1fr; }
  .field-description, .field-targets, .field-weather_comment, .field-notes { grid-column: auto; }
  .sticky-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mixture-table { min-width: 620px; }
  .mixture-dialog-card { padding: 18px; border-radius: 18px; }
  .mixture-dialog-actions { display: grid; grid-template-columns: 1fr; }
  .mixture-summary-row { align-items: flex-start; }
  .filter-bar, .filter-bar.multi, .history-filter, .history-filter.has-garden { grid-template-columns: 1fr; }
  .history-date-filter { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 52px 1fr; padding: 17px; }
  .timeline-item > time strong { font-size: 30px; }
  .list-row { align-items: flex-start; }
  .public-share-box > div { align-items: stretch; flex-direction: column; }
  .public-share-box input { width: 100%; }
  .public-share-actions { align-items: flex-start !important; }
  .management-garden-switcher { grid-template-columns: 1fr; }
  .share-garden-picker { grid-template-columns: 1fr; }
  .pdf-plan-form { grid-template-columns: 1fr; }
  .pdf-plan-form > div:first-of-type, .pdf-plan-form .errorlist, .pdf-plan-form > button { grid-column: auto; }
  .row-actions { flex-direction: column; align-items: flex-end; }
  .login-card { padding: 26px; border-radius: 22px; }
  .stock-garden-picker { grid-template-columns: 1fr; gap: 6px; }
  .stock-audit-row { border-radius: 15px; }
  .stock-audit-summary { padding: 13px 14px; }
  .stock-audit-summary strong { font-size: 14px; }
  .stock-current-balance { font-size: 14px; }
  .stock-audit-body { padding: 15px 14px; }
  .stock-audit-fields { grid-template-columns: 1fr 1fr; }
  .stock-audit-fields label { min-height: 0; }
  .stock-audit-extra .extra-fields { grid-template-columns: 1fr; }
  .stock-row-actions { align-items: stretch; flex-direction: column; }
  .stock-row-actions .button { width: 100%; }
  .favorite-product-groups { gap: 22px; }
  .favorite-product-card { grid-template-columns: minmax(0, 1fr) auto; }
  .favorite-product-main { padding: 13px 14px; }
  .favorite-product-actions.product-card-actions { flex-direction: row; justify-content: center; gap: 6px; padding: 8px; }
  .calendar-view-switch { width: 100%; margin-top: -8px; }
  .calendar-view-switch a { flex: 1; justify-content: center; }
  .calendar-grid { border-radius: 12px; }
  .weekday { padding: 7px 0; font-size: 9px; }
  .calendar-day { min-height: 86px; padding: 4px; }
  .day-number { width: 21px; height: 21px; margin-bottom: 4px; font-size: 10px; }
  .day-plans { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 3px; }
  .protection-legend { gap: 6px 8px; font-size: 10px; }
  .protection-legend-title, .protection-legend-note { width: 100%; margin-left: 0; }
  .day-protection { gap: 1px; margin-right: -5px; margin-left: -4px; padding-top: 4px; }
  .protection-track, .protection-segment { height: 4px; }
  .calendar-event { width: 100%; min-height: 0; padding: 0; }
  .calendar-event.scope-whole, .calendar-event.scope-local { width: 100%; min-height: 0; padding: 0; }
  .calendar-draft-dot { top: 3px; right: 3px; width: 7px; height: 7px; }
  .calendar-event:not(.scope-whole):not(.scope-local) { --method-icon-size: 27px; }
  .calendar-list-day { grid-template-columns: 54px minmax(0, 1fr); gap: 8px; }
  .calendar-list-day > header strong { font-size: 28px; }
  .calendar-list-items { grid-template-columns: 1fr; }
  .fact-bottom-actions .button, .fact-bottom-actions form { width: 100%; }
}

/* Account setup and shared garden messages */
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin: 14px 0; color: var(--leaf); font-size: 14px; font-weight: 700; }
.consent-line { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.consent-line input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.consent-line a { color: var(--leaf); text-decoration: underline; text-underline-offset: 2px; }
.form-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.success-text { color: var(--leaf); }
.account-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 16px; }
.account-danger-zone h2, .account-danger-zone p { margin-bottom: 5px; }
.destructive-confirmation { max-width: 620px; }

.onboarding-shell { width: min(720px, 100%); margin: 0 auto; }
.onboarding-heading { margin-bottom: 28px; }
.onboarding-card { padding: clamp(22px, 5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.onboarding-progress { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.onboarding-progress progress { width: 100%; height: 7px; accent-color: var(--leaf); }
.onboarding-card section > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.onboarding-card input:not([type="radio"]), .onboarding-card textarea { width: 100%; }
.role-options { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.role-options label { display: flex; align-items: flex-start; gap: 14px; padding: 16px; cursor: pointer; }
.role-options label + label { border-top: 1px solid var(--line); }
.role-options input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--leaf); }
.role-options span { display: grid; gap: 5px; }
.role-options strong { font-size: 16px; }
.role-options em { color: var(--muted); font-size: 14px; line-height: 1.45; }
.onboarding-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.chat-page { width: min(860px, 100%); margin: 0 auto; }
.chat-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.chat-page-heading h1 { font-size: clamp(34px, 5vw, 48px); }
.chat-garden-select { display: grid; gap: 5px; min-width: 210px; }
.chat-garden-select label { color: var(--muted); font-size: 12px; font-weight: 700; }
.chat-current-garden { padding: 10px 14px; border-radius: 999px; background: #e9eee4; color: var(--forest); }
.chat-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.chat-messages { display: flex; min-height: 420px; max-height: min(65vh, 720px); padding: 24px; overflow-y: auto; flex-direction: column; gap: 9px; background: linear-gradient(180deg, #f7f8f3, #f1f4ed); }
.chat-bubble { align-self: flex-start; width: fit-content; max-width: min(76%, 610px); padding: 10px 12px 7px; border-radius: 17px 17px 17px 5px; background: #fff; box-shadow: 0 3px 12px rgba(20, 50, 34, .06); }
.chat-bubble.mine { align-self: flex-end; border-radius: 17px 17px 5px 17px; background: #dfeadd; }
.chat-bubble > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.42; }
.chat-bubble footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 11px; }
.chat-photo-thumbnail { display: block; width: 190px; max-width: 100%; aspect-ratio: 1; margin-top: 3px; border-radius: 12px; object-fit: cover; cursor: zoom-in; }
.chat-message-menu { position: relative; }
.chat-message-menu summary { cursor: pointer; list-style: none; }
.chat-message-menu summary::-webkit-details-marker { display: none; }
.chat-message-menu > div { position: absolute; z-index: 10; right: 0; bottom: calc(100% + 5px); display: grid; min-width: 150px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.chat-message-menu button { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.chat-message-menu button:last-child { border-bottom: 0; }
.chat-message-menu .danger-text { color: #a04434; }
.chat-composer { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-composer textarea { width: 100%; min-height: 44px; max-height: 150px; padding: 11px 13px; resize: vertical; border-radius: 16px; }
.chat-photo-button, .chat-send-button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: #e9eee4; color: var(--leaf); cursor: pointer; font-size: 23px; }
.chat-send-button { background: var(--forest); color: #fff; }
.chat-composer .form-status { grid-column: 2 / -1; }
.chat-photo-preview { position: absolute; right: 60px; bottom: calc(100% + 10px); padding: 5px; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.chat-photo-preview img { display: block; width: 76px; height: 76px; border-radius: 9px; object-fit: cover; }
.chat-photo-preview button { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #1d3027; color: #fff; cursor: pointer; }
.chat-photo-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 0; border: 0; background: rgba(0, 0, 0, .94); }
.chat-photo-dialog::backdrop { background: rgba(0, 0, 0, .94); }
.chat-photo-dialog img { width: 100%; height: 100%; object-fit: contain; }
.chat-photo-dialog button { position: fixed; z-index: 2; top: 20px; right: 20px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #111; cursor: pointer; font-size: 22px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .account-danger-zone, .chat-page-heading { align-items: stretch; flex-direction: column; }
  .account-danger-zone .button, .chat-garden-select { width: 100%; }
  .onboarding-card { padding: 20px; }
  .onboarding-actions .button { flex: 1; padding-inline: 10px; }
  .chat-page { width: calc(100% + 20px); margin-left: -10px; }
  .chat-panel { border-radius: 18px; }
  .chat-messages { min-height: 52vh; padding: 14px 10px; }
  .chat-bubble { max-width: 88%; }
  .chat-photo-thumbnail { width: 150px; }
}


/* Compact history, inventory and treatment form controls */
.product-card-actions.icon-actions { justify-content: flex-start; min-height: 62px; }
.product-card-actions.icon-actions > form { margin-left: auto; }
.stock-availability-popover { position: relative; }
.stock-availability-popover > summary { list-style: none; }
.stock-availability-popover > summary::-webkit-details-marker { display: none; }
.stock-availability-indicator { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid #d1d9d1; border-radius: 50%; background: #fff; color: #8a958e; cursor: pointer; font-size: 13px; font-weight: 800; }
.stock-availability-indicator.available { border-color: #8ab796; background: #edf7ef; color: #31824a; }
.stock-availability-indicator.empty { background: #f6f7f4; color: #8b958f; }
.stock-availability-indicator svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.stock-availability-indicator:hover { transform: translateY(-1px); }
.stock-availability-indicator:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.stock-availability-card { position: absolute; z-index: 25; bottom: calc(100% + 9px); left: 0; width: min(270px, calc(100vw - 48px)); padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: var(--muted); font-size: 13px; line-height: 1.4; }
.stock-availability-card::after { position: absolute; bottom: -6px; left: 12px; width: 10px; height: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; content: ""; transform: rotate(45deg); }
.stock-availability-card > strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; }
.stock-availability-card ul { display: grid; gap: 6px; margin: 0 0 9px; padding: 0; list-style: none; }
.stock-availability-card li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stock-availability-card li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-availability-card li b { color: var(--forest); white-space: nowrap; }
.stock-availability-card p { margin: 0 0 9px; }
.stock-availability-card a { position: relative; z-index: 1; color: var(--leaf); font-size: 12px; font-weight: 750; }
.inventory-icon-button { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; }
.inventory-icon-button { border: 1px solid transparent; cursor: pointer; }
.inventory-icon-button.add { border-color: #cbd5ca; background: #f4f6f1; color: #738078; }
.inventory-icon-button.remove { border-color: #92b945; background: #d8f276; color: #2b663f; box-shadow: 0 4px 12px rgba(74, 117, 48, .18); }
.inventory-icon-button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(26, 56, 40, .1); }
.inventory-icon-button svg { width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.inventory-icon-button.remove .bookmark-shape { fill: #4f9159; stroke: #367546; }
.inventory-icon-button.remove .bookmark-check { fill: none; stroke: #fff; stroke-width: 2.25; }
.history-gardens { display: grid; gap: 38px; }
.history-garden { display: grid; gap: 14px; }
.history-garden-heading { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.history-garden-heading .eyebrow { margin-bottom: 2px; }
.history-garden-heading h2 { margin: 0; font-family: var(--font-sans); font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.history-garden-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #e6eee1; color: var(--forest); font-size: 24px; }
.history-mixture { display: grid; justify-items: start; gap: 5px; margin-top: 14px; }
.history-mixture-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 5px 8px; border-radius: 8px; background: #f2f5ef; }
.history-mixture-item strong { font-size: 13px; line-height: 1.25; }
.history-mixture-item small { color: var(--muted); font-size: 12px; }
.fact-bottom-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.fact-bottom-actions form { margin: 0; }
.section-title-with-help { display: flex; align-items: center; gap: 10px; }
.section-title-with-help h2 { margin: 0; }
.info-popover { position: relative; }
.info-popover summary { display: grid; width: 26px; height: 26px; place-items: center; color: var(--leaf); cursor: pointer; list-style: none; }
.info-popover summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 50%; }
.info-popover summary::-webkit-details-marker, .save-options summary::-webkit-details-marker { display: none; }
.info-popover > div { position: absolute; z-index: 20; top: 34px; left: -12px; width: min(360px, calc(100vw - 54px)); padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); color: var(--muted); font-size: 13px; line-height: 1.45; }
.info-popover p { margin: 0 0 8px; }
.info-popover p:last-child { margin-bottom: 0; }
.info-popover a { color: var(--leaf); font-weight: 700; }
.field-wrap { min-width: 0; }
.field-wrap input, .field-wrap select, .field-wrap textarea { min-width: 0; max-width: 100%; }
.field-date, .field-treatment_date {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.field-date input[type="date"], .field-treatment_date input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  inline-size: 100%;
  min-inline-size: 0;
  -webkit-min-logical-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field-targets #id_targets > div + div {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.field-targets #id_targets > div + div > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.field-targets #id_targets label[for] {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}
.field-targets #id_targets label[for] input[type="checkbox"] {
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
}
.zone-filter-notice { margin: 8px 0 0; font-size: 13px; }
.field-wrap > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.compact-actions { align-items: center; }
.save-options { position: relative; }
.save-options summary { list-style: none; }
.save-options-menu { position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; min-width: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.save-options-menu button, .save-options-menu a { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.save-options-menu > :last-child { border-bottom: 0; }
.save-options-menu button:hover, .save-options-menu a:hover { background: #f1f5ed; }
.mixture-icon-action { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid #cbd8cd; border-radius: 10px; background: #fff; color: var(--leaf); cursor: pointer; }
.mixture-icon-action.delete { border-color: #efd2cb; color: #a64d3c; }
.mixture-icon-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.legal-footer { display: flex; max-width: 1180px; margin: 24px auto 110px; padding: 0 22px; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 13px; }
.legal-footer a { color: inherit; }
.legal-document { line-height: 1.6; }
.legal-document h2 { margin: 28px 0 8px; font-size: 20px; }
.legal-document li + li { margin-top: 6px; }

@media (max-width: 600px) {
  .voice-controls, .voice-review-heading { align-items: stretch; flex-direction: column; }
  .voice-record-button { justify-content: center; }
  .voice-review-summary { grid-template-columns: 1fr 1fr; }
  .voice-review-heading .button { width: 100%; }
  .mixture-table { min-width: 0; table-layout: fixed; }
  .mixture-table th:first-child, .mixture-table td:first-child { overflow-wrap: anywhere; }
  .mixture-table th:nth-child(2), .mixture-table td:nth-child(2) { width: 92px; }
  .mixture-table th:last-child, .mixture-table td:last-child { width: 84px; }
  .mixture-table th, .mixture-table td { padding: 11px 8px; }
  .mixture-row-actions { gap: 6px; }
  .info-popover > div {
    position: fixed;
    z-index: 80;
    top: 50%;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    transform: translateY(-50%);
    padding: 18px;
    border-radius: 16px;
  }
  .sticky-actions.compact-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .save-options > summary { width: 100%; }
}
