/* 70-navigation.css — Views, navbar, home screen, dialogs
   Part of the ordered set linked from index.html. The parts concatenate to the
   original stylesheet byte for byte; link order IS the cascade order, so never
   reorder the <link> tags and never move a rule between files. */

@media (max-width: 560px) {
  .summary-strip,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   NAVIGATION SYSTEM — views, navbar, home screen
   ============================================================ */

/* View show/hide */


/* ── Persistent navbar ── */
.gf-navbar {
  height: 58px;
  border-bottom: 1px solid var(--line);
}

.gf-back-btn {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.gf-back-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.gf-nav-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gf-nav-right {
  flex-shrink: 0;
}

.gf-nav-role {
  border: 1px solid rgba(143, 195, 106, 0.4);
  padding: 4px 10px;
  white-space: nowrap;
}

.gf-nav-role:empty {
  display: none;
}


/* ── Auth view ── */
.auth-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.auth-hero h1 {
  font-size: clamp(36px, 8vw, 72px);
  margin: 8px 0 12px;
  line-height: 1;
}

.auth-hero-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

#view-auth .auth-panel {
  max-width: 820px;
  margin: 0 auto;
}

#view-auth .sign-in-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

#view-auth .sign-in-form > div:first-child {
  grid-column: 1 / -1;
}

#view-auth .data-panel {
  max-width: 820px;
  margin: 12px auto 0;
}

#view-auth .data-panel > div {
  min-width: 0;
}

#projectUrl {
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── Home view ── */
.home-header {
  padding: 28px 0 8px;
}

.room-nav {
  padding-bottom: 28px;
}

.room-nav-btn {
  flex-direction: column;
  cursor: pointer;
  border-left-width: 3px;
}

.room-nav-name {
  display: block;
}

.room-nav-sub {
  display: block;
  font-weight: 400;
}

/* Per-room accent colours */
.room-clone  { border-left-color: rgba(143, 195, 106, 0.7); }
.room-clone:hover  { background: rgba(143, 195, 106, 0.06); border-color: rgba(143, 195, 106, 0.5); border-left-color: rgba(143, 195, 106, 0.9); }

.room-mother { border-left-color: rgba(228, 180, 93, 0.7); }
.room-mother:hover { background: rgba(228, 180, 93, 0.06); border-color: rgba(228, 180, 93, 0.5); border-left-color: rgba(228, 180, 93, 0.9); }

.room-veg    { border-left-color: rgba(100, 169, 196, 0.7); }
.room-veg:hover    { background: rgba(100, 169, 196, 0.06); border-color: rgba(100, 169, 196, 0.5); border-left-color: rgba(100, 169, 196, 0.9); }

.room-flower { border-left-color: rgba(196, 143, 100, 0.7); }
.room-flower:hover { background: rgba(196, 143, 100, 0.06); border-color: rgba(196, 143, 100, 0.5); border-left-color: rgba(196, 143, 100, 0.9); }

.room-cure   { border-left-color: rgba(180, 120, 220, 0.7); }
.room-cure:hover   { background: rgba(180, 120, 220, 0.06); border-color: rgba(180, 120, 220, 0.5); border-left-color: rgba(180, 120, 220, 0.9); }

.room-dashboard { border-left-color: var(--line); }
.room-dashboard:hover { background: rgba(255, 255, 255, 0.04); }
.room-dashboard .room-nav-name { color: var(--muted); font-size: 18px; }

/* ── Tablet mode ── */
body.tablet-mode .room-nav {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

body.tablet-mode .room-nav-btn {
  min-height: 150px;
  padding: 28px 24px;
}

body.tablet-mode .room-nav-name {
  font-size: 28px;
}

body.tablet-mode .room-nav-sub {
  font-size: 15px;
}

/* Bigger touch targets in room views */
body.tablet-mode button,
body.tablet-mode .fr-action-btn,
body.tablet-mode .mr-action-btn {
  min-height: 44px;
}

body.tablet-mode .fr-zone-btn {
  padding: 10px 16px;
  font-size: 14px;
}

body.tablet-mode .mr-pot {
  width: 50px;
  height: 50px;
}

body.tablet-mode .vr-dot-plant {
  width: 20px;
  height: 20px;
}

body.tablet-mode .fr-cell {
  width: 24px;
  height: 14px;
}

body.tablet-mode .fr-grid {
  grid-template-columns: repeat(4, 24px);
  grid-template-rows: repeat(40, 14px);
}

/* Tablet mode navbar indicator */
body.tablet-mode .gf-navbar::after {
  content: "TABLET";
  font-size: 10px;
  font-weight: 700;
  color: var(--warn);
  border: 1px solid rgba(228, 180, 93, 0.4);
  padding: 3px 7px;
  letter-spacing: 0.06em;
}

/* ── Responsive home nav ── */
@media (max-width: 700px) {
  .room-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-nav-name {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .room-nav {
    grid-template-columns: 1fr;
  }
}

/* ── app-shell top padding when navbar is present ── */
.gf-navbar:not([hidden]) + .app-shell {
  padding-top: 20px;
}

/* In-app dialogs (gfPrompt / gfConfirm) */
.gf-dialog-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}
.gf-dialog {
  background: #161616; border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 22px; width: min(420px, 90vw);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.gf-dialog-input {
  width: 100%; box-sizing: border-box; margin-bottom: 18px; min-height: 50px;
  background: #0d0d0d; border: 1px solid #333; border-radius: 8px;
  color: #fff; padding: 10px 12px; font-size: 16px;
}
.gf-dialog-input:focus { outline: none; border-color: #4CAF50; }
.gf-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
/* Retail-sized (2026-10-06): a dialog's two buttons are the whole decision,
   so they are the biggest thing on it. */
.gf-dialog-btn {
  min-height: 52px; border-radius: 8px; padding: 9px 18px; font-size: 17px; font-weight: 800; cursor: pointer;
  border: 1px solid #333; background: #222; color: #ddd;
}
.gf-dialog-btn:hover { background: #2c2c2c; }
.gf-dialog-ok { background: #4CAF50; border-color: #4CAF50; color: #0d0d0d; font-weight: 600; }
.gf-dialog-ok:hover { background: #43a047; }
/* Destructive confirmations read as destructive before the button is pressed.
   81-redesign-rooms.css paints every .gf-dialog-ok green with !important, which
   had made every danger button green since that layer landed (found by the
   Retail tester, 2026-10-05), so these must be !important too. */
.gf-dialog-ok.gf-dialog-danger { background: #c0392b !important; border-color: #c0392b !important; color: #fff !important; }
.gf-dialog-ok.gf-dialog-danger:hover { background: #a93226 !important; }

/* Clone slot grid (individual clones per dome).
   Slot appearance lives in the "Clone slot dots" block at the end of this
   file — filled slots take the dome's strain color from --slot-color. */
.cr-slot-grid {
  display: grid;
  margin: 8px 0 12px;
}

/* Fill wizard source toggle */
.fw-mode-toggle { display: flex; gap: 6px; margin: 4px 0 12px; }
.fw-mode-btn {
  flex: 1; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  background: #161616; border: 1px solid #333; color: #aaa; font-size: 14px;
}
.fw-mode-btn.active { background: #4CAF50; border-color: #4CAF50; color: #0d0d0d; font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   Unified watering module (watering.js)
   ════════════════════════════════════════════════════════════ */

/* ── Log modal ── */
.gfw-overlay {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6); padding: 16px;
}
.gfw-modal {
  background: #161616; border: 1px solid #2a2a2a; border-radius: 14px;
  width: min(480px, 96vw); max-height: 92vh; overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.gfw-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 20px 20px 10px;
}
.gfw-eyebrow {
  margin: 0 0 2px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent, #8fc36a);
}
.gfw-modal-title { margin: 0; font-size: 18px; color: #fff; }
.gfw-modal-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted, #a8b4aa); }
.gfw-close {
  background: none; border: none; color: #888; font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.gfw-close:hover { color: #fff; }

.gfw-modal-body { padding: 4px 20px 12px; }
.gfw-pair { display: flex; gap: 12px; }
.gfw-pair .gfw-field { flex: 1; }
.gfw-group-label {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted, #a8b4aa); margin: 6px 0 8px;
}
.gfw-group-hint {
  font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0;
  color: var(--muted, #8a968c); opacity: 0.8; margin-left: 6px;
}
#substrateSection { margin-top: 28px; }
.gfw-sub-log {
  font-size: 14px; padding: 7px 12px; white-space: nowrap;
  background: var(--accent, #4CAF50); color: #08130b; border: none; border-radius: 8px;
  font-weight: 600; cursor: pointer;
}
.gfw-sub-log:hover { filter: brightness(1.08); }
.gfw-sub-hint {
  font-size: 14px; line-height: 1.5; color: var(--muted, #a8b4aa);
  margin: 0 0 14px; max-width: 70ch;
}
.gfw-cell.gfw-off dd { color: #f0a23b; font-weight: 700; }
.gfw-flag {
  display: inline-block; font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 1px 5px; border-radius: 6px; vertical-align: middle; margin-left: 4px;
}
.gfw-flag-high { background: rgba(224, 101, 74, 0.18); color: #e0654a; }
.gfw-flag-low  { background: rgba(91, 155, 255, 0.18); color: #5b9bff; }

/* target editor */
.gfw-edit-targets {
  font-size: 14px; padding: 7px 12px; white-space: nowrap; cursor: pointer;
  background: transparent; color: var(--accent, #4CAF50);
  border: 1px solid var(--accent, #4CAF50); border-radius: 8px; font-weight: 600;
}
.gfw-edit-targets:hover { background: rgba(76, 175, 80, 0.12); }
.gft-modal { max-width: 560px; }
.gft-grid { display: flex; flex-direction: column; gap: 14px; }
.gft-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 6px 12px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gft-room { font-weight: 700; font-size: 14px; grid-row: span 3; align-self: start; padding-top: 2px; }
.gft-roomhead {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent, #4CAF50); margin: 6px 0 2px; padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.gft-row.gft-sub .gft-room { font-weight: 600; font-size: 14px; color: var(--muted, #a8b4aa); }
.gft-row.gft-sub { padding-bottom: 8px; }
.gft-band { display: flex; align-items: center; gap: 10px; }
.gft-band > span {
  font-size: 14px; color: var(--muted, #a8b4aa); width: 96px; flex: none;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.gft-pair { display: flex; align-items: center; gap: 8px; flex: 1; }
.gft-pair input {
  width: 72px; padding: 6px 8px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: inherit;
}
.gft-dash { font-size: 14px; color: var(--muted, #8a968c); }
@media (max-width: 540px) {
  .gft-band { flex-wrap: wrap; }
  .gft-band > span { width: 100%; }
}
.gfw-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.gfw-field > span {
  font-size: 14px; color: var(--muted, #a8b4aa); letter-spacing: 0.02em;
}
.gfw-field input, .gfw-field textarea {
  width: 100%; box-sizing: border-box;
  background: #0d0d0d; border: 1px solid #333; border-radius: 8px;
  color: #fff; padding: 9px 11px; font-size: 14px; font-family: inherit;
}
.gfw-field input:focus, .gfw-field textarea:focus { outline: none; border-color: var(--accent, #4CAF50); }

.gfw-nutrients {
  border: 1px solid #262626; border-radius: 10px; padding: 10px 12px;
  margin: 4px 0 14px; background: #121212;
}
.gfw-nutrients-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--muted, #a8b4aa); text-transform: uppercase; letter-spacing: 0.04em;
}
.gfw-add-nutrient {
  background: none; border: 1px solid #333; border-radius: 7px; color: var(--accent, #8fc36a);
  font-size: 14px; padding: 4px 10px; cursor: pointer;
}
.gfw-add-nutrient:hover { background: #1c1c1c; }
.gfw-nutrient-rows { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.gfw-nutrient-row { display: flex; gap: 6px; align-items: center; }
.gfw-nutrient-row .gfw-nut-unit { flex: 1; }
.gfw-nutrient-row input {
  box-sizing: border-box; background: #0d0d0d; border: 1px solid #333;
  border-radius: 7px; color: #fff; padding: 7px 9px; font-size: 14px; min-width: 0;
}
.gfw-nut-del {
  background: none; border: 1px solid #333; border-radius: 7px; color: #e86f5f;
  font-size: 16px; line-height: 1; cursor: pointer; padding: 4px 9px;
}
.gfw-nut-del:hover { background: #1c1c1c; }

.gfw-error { color: #e86f5f; font-size: 14px; margin: 4px 0 0; }

.gfw-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 6px 20px 20px;
}
.gfw-btn {
  border-radius: 8px; padding: 9px 18px; font-size: 14px; cursor: pointer;
  border: 1px solid #333; background: #222; color: #ddd;
}
.gfw-btn:hover { background: #2c2c2c; }
.gfw-save { background: var(--accent, #4CAF50); border-color: var(--accent, #4CAF50); color: #0d0d0d; font-weight: 600; }
.gfw-save:hover { filter: brightness(1.08); }

/* ── History view ── */
#wateringSection { padding: 4px 0 40px; }
.gfw-history-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.gfw-history-title { margin: 2px 0 0; font-size: 20px; color: #fff; }
.gfw-tag {
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 9px;
  border-radius: 6px; white-space: nowrap;
}
.gfw-tag.live { background: rgba(143, 195, 106, 0.16); color: var(--accent, #8fc36a); border: 1px solid rgba(143, 195, 106, 0.4); }
.gfw-tag.mock { background: rgba(228, 180, 93, 0.14); color: var(--warn, #e4b45d); border: 1px solid rgba(228, 180, 93, 0.4); }

.gfw-history-actions { display: flex; align-items: center; gap: 10px; }
.gfw-quicklog {
  background: var(--accent, #4CAF50); border: 1px solid var(--accent, #4CAF50);
  color: #0d0d0d; font-weight: 600; font-size: 14px;
  border-radius: 8px; padding: 9px 16px; cursor: pointer; white-space: nowrap;
}
.gfw-quicklog:hover { filter: brightness(1.08); }

/* Quick-log room picker */
.gfw-pick-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.gfw-pick-pill {
  background: #161616; border: 1px solid #2c3831; border-radius: 999px;
  color: var(--muted, #a8b4aa); font-size: 14px; padding: 9px 18px; cursor: pointer;
}
.gfw-pick-pill:hover { background: #1c1c1c; }
.gfw-pick-pill.active { background: var(--accent, #4CAF50); border-color: var(--accent, #4CAF50); color: #0d0d0d; font-weight: 600; }
.gfw-pick-fields { margin-top: 10px; }
.gfw-pick-next:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

.gfw-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gfw-filter {
  background: #161616; border: 1px solid #2c3831; border-radius: 999px;
  color: var(--muted, #a8b4aa); font-size: 14px; padding: 6px 14px; cursor: pointer;
}
.gfw-filter:hover { background: #1c1c1c; }
.gfw-filter.active { background: var(--accent, #4CAF50); border-color: var(--accent, #4CAF50); color: #0d0d0d; font-weight: 600; }

.gfw-runs { display: flex; flex-direction: column; gap: 10px; }
.gfw-run {
  background: var(--panel, #171d1a); border: 1px solid var(--line, #2c3831);
  border-radius: 12px; padding: 14px 16px;
}
.gfw-run-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gfw-run-loc { display: flex; align-items: baseline; gap: 8px; }
.gfw-run-loc strong { color: #fff; font-size: 15px; }
.gfw-run-sub { color: var(--muted, #a8b4aa); font-size: 14px; }
.gfw-run-time { color: var(--muted, #a8b4aa); font-size: 14px; white-space: nowrap; }
.gfw-run-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 10px 0 0;
}
.gfw-run-meta div { display: flex; flex-direction: column; gap: 2px; }
.gfw-run-meta dt { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted, #a8b4aa); }
.gfw-run-meta dd { margin: 0; font-size: 14px; color: var(--text, #f4f7f1); }
.gfw-run-profile { margin: 10px 0 0; font-size: 14px; color: var(--accent, #8fc36a); }
.gfw-run-nutrients { margin: 4px 0 0; font-size: 14px; color: var(--muted, #a8b4aa); }
.gfw-run-notes { margin: 6px 0 0; font-size: 14px; color: var(--text, #f4f7f1); opacity: 0.85; }
.gfw-empty { color: var(--muted, #a8b4aa); font-size: 14px; padding: 24px 0; text-align: center; }

@media (max-width: 480px) {
  .gfw-pair { flex-direction: column; gap: 0; }
  .gfw-run-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mother room drag-and-drop (pointer-based: touch + mouse) ── */
.mr-tile { touch-action: none; -webkit-user-select: none; user-select: none; }
.mr-tile:active { cursor: grabbing; }
.mr-tile.dragging { opacity: 0.4; }
.mr-tile-grip {
  width: 12px;
  height: 16px;
  flex: 0 0 12px;
  color: var(--muted, #a8b4aa);
  cursor: grab;
  opacity: 0.72;
  background-image: radial-gradient(circle, currentColor 1.35px, transparent 1.45px);
  background-size: 5px 5px;
  background-position: 0 1px;
}
.mr-tile:hover .mr-tile-grip,
.mr-tile.dragging .mr-tile-grip {
  opacity: 1;
}
.mr-drag-ghost {
  position: fixed; z-index: 1200; pointer-events: none;
  transform: translate(-50%, -50%);
  min-width: 26px; height: 26px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: #0d0d0d; font-size: 12px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5); opacity: 0.92;
}
.mr-tile.drag-over,
.mr-tiles.drag-over,
.mr-row.drag-over,
.mr-newrow-drop.drag-over {
  outline: 2px dashed var(--accent, #8fc36a);
  outline-offset: 2px;
  background: rgba(143, 195, 106, 0.10);
  border-radius: 8px;
}
.mr-row-meta { cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.mr-row-meta:active { cursor: grabbing; }
.mr-row-meta.dragging { opacity: 0.4; }
.mr-row-grip { color: var(--muted, #a8b4aa); font-size: 12px; letter-spacing: 1px; }
.mr-newrow-drop {
  margin: 12px 0 4px;
  font-size: 14px;
  transition: background 0.12s, outline 0.12s;
}

/* ── Clone room dome drag-and-drop (pointer-based: touch + mouse) ── */
.cr-dome { touch-action: none; }
.cr-dome:not(.empty) { cursor: grab; }
.cr-dome:not(.empty):active { cursor: grabbing; }
.cr-dome.cr-dragging { opacity: 0.4; }
.cr-dome.empty.drag-over {
  outline: 2px dashed var(--accent, #8fc36a);
  outline-offset: 2px;
  background: rgba(143, 195, 106, 0.12);
}
.cr-dome.merge-over {
  outline: 2px dashed var(--blue, #6FB7D9);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(111, 183, 217, 0.14);
}

/* ── Watering form: nutrient catalog dropdown (v=19) ── */
.gfw-nutrients-actions { display: flex; gap: 6px; }
.gfw-new-type {
  background: none; border: 1px solid #333; border-radius: 7px;
  color: var(--accent, #8fc36a); font-size: 14px; padding: 4px 10px; cursor: pointer;
}
.gfw-new-type:hover { background: #1c1c1c; }
.gfw-nutrient-row .gfw-nut-name {
  flex: 2; box-sizing: border-box; min-width: 0;
  background: #0d0d0d; border: 1px solid #333; border-radius: 7px;
  color: #fff; padding: 7px 9px; font-size: 14px;
}
.gfw-nutrient-row .gfw-nut-amt { flex: 1; }
.gfw-nut-unit { flex: 0 0 auto; min-width: 46px; color: var(--muted, #a8b4aa); font-size: 14px; }
.gfw-nut-hint { margin: 8px 0 0; font-size: 14px; color: var(--muted, #a8b4aa); }
.gfw-last-hint { margin: -4px 0 0; font-size: 14px; color: var(--muted, #a8b4aa); }

/* What the crew is aiming for, sat directly above the pH/PPM inputs. */
.gfw-target-banner {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 8px 11px;
  border: 1px solid #262626; border-left: 3px solid var(--accent, #8fc36a);
  border-radius: 8px; background: #121212;
  font-size: 14px; color: #ddd;
}
.gfw-target-banner strong {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent, #8fc36a);
}

.gfw-required-banner {
  margin: 0 0 12px; padding: 10px 12px;
  border: 1px solid rgba(232, 111, 95, 0.55); border-left: 4px solid #e86f5f;
  border-radius: 8px; background: rgba(232, 111, 95, 0.1);
  color: #f3d6d2; font-size: 14px; line-height: 1.4;
}
.gfw-required-banner strong {
  display: block; margin-bottom: 2px; color: #ff8f80;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em;
}
.gfw-duration-field > span b { color: #ff8f80; font-size: 14px; letter-spacing: 0.06em; }
.gfw-duration-field input.is-required-missing {
  border-color: #e86f5f; box-shadow: 0 0 0 3px rgba(232, 111, 95, 0.16);
}

/* The room's standing mix, read-only, for roles that follow it rather than
   set it. Stands in for .gfw-nutrient-rows, so it takes the same rhythm. */
.gfw-recipe-list { list-style: none; margin: 8px 0 0; padding: 0; }
.gfw-recipe-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 6px 0; font-size: 14px;
  border-bottom: 1px solid #1e1e1e;
}
.gfw-recipe-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.gfw-recipe-list span { color: #ddd; min-width: 0; }
.gfw-recipe-list strong {
  color: var(--muted, #a8b4aa); font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mr-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── flower cycle schedule view ─────────────────────────────────────────────── */
.cyc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.cyc-title { margin: 2px 0 0; font-size: 22px; }
.cyc-timeline { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 14px 16px 4px; margin-bottom: 18px; overflow-x: auto; }
.cyc-timeline svg { display: block; min-width: 720px; }
.cyc-cards { flex-wrap: wrap; margin-bottom: 22px; }
.cyc-card { flex: 1; min-width: 240px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 16px 18px; }
.cyc-room { margin: 0 0 10px; }
.cyc-statusline { margin-bottom: 12px; }
.cyc-badge { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(76,175,80,0.18); color: #7bd88f; }
.cyc-badge.cyc-flush { background: rgba(240,162,59,0.18); color: #f0a23b; }
.cyc-badge.cyc-empty { background: rgba(255,255,255,0.08); color: var(--muted,#a8b4aa); }
.cyc-meta { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; }
.cyc-meta > div { display: flex; justify-content: space-between; gap: 10px; }
.cyc-meta dt { color: var(--muted,#a8b4aa); font-size: 14px; }
.cyc-meta dd { margin: 0; font-size: 14px; font-weight: 600; }
.cyc-subhead { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted,#a8b4aa); margin: 0 0 8px; }
.cyc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cyc-table th { text-align: left; color: var(--muted,#a8b4aa); padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.cyc-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cyc-note { font-size: 14px; color: var(--muted,#8a968c); margin-top: 16px; max-width: 70ch; line-height: 1.5; }

/* Stashboard tablet redesign override */

/* Choice and form dialogs (gfChoose / gfForm). A question with more than two
   answers gets one button per answer; a job with more than one decision gets
   one panel instead of a chain of prompts. */
.gf-dialog-wide { width: min(520px, 94vw); max-height: 88vh; overflow-y: auto; }
.gf-choice-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
.gf-choice {
  display: flex; flex-direction: column; justify-content: center; gap: 3px; text-align: left;
  min-height: 56px; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  background: #1d1d1d; border: 1px solid #333; color: #eee;
}
.gf-choice:hover:not(:disabled) { background: #262626; border-color: #4a4a4a; }
.gf-choice:disabled { opacity: 0.45; cursor: not-allowed; }
.gf-choice.primary { background: #1f3a22; border-color: #4CAF50; }
.gf-choice.primary:hover:not(:disabled) { background: #26472a; }
.gf-choice.danger { border-color: #8d3b3b; }
.gf-choice.danger:hover:not(:disabled) { background: #33201f; }
.gf-choice-label { font-size: 17px; font-weight: 700; }
.gf-choice-hint { font-size: 14px; color: #9a9a9a; line-height: 1.35; }
.gf-form-fields { display: flex; flex-direction: column; gap: 16px; margin: 6px 0 14px; }
.gf-form-row { display: flex; flex-direction: column; gap: 7px; }
/* A row's own display beats the UA rule for [hidden], so a field that showIf
   has ruled out stays on screen unless this says otherwise. */
.gf-form-row[hidden], .gf-form-note[hidden] { display: none; }
.gf-form-label { font-size: 15px; font-weight: 700; color: #b4beb6; }
.gf-form-control { margin-bottom: 0; }
.gf-form-hint { font-size: 14px; color: #7fa87f; min-height: 18px; }
.gf-form-note { font-size: 15px; color: #c9d2ca; line-height: 1.45; border-left: 3px solid #3b4a3e; padding-left: 12px; white-space: pre-line; }
.gf-form-error { margin: 0 0 12px; font-size: 15px; color: #e08a7a; }
/* Wraps, so a question with six answers is two rows of buttons, not a row
   running off the side of a phone. */
.gf-form-segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-form-multi { flex-wrap: wrap; }
.gf-form-multi .gf-seg-btn { flex: 0 1 auto; padding: 10px 14px; }
.gf-seg-btn.active .gf-seg-label::before { content: "\2713\00a0"; }
.gf-seg-sub { font-size: 14px; font-weight: 500; opacity: 0.8; }
.gf-seg-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  flex: 1 1 auto; min-height: 50px; padding: 10px 14px; border-radius: 12px; cursor: pointer; font-size: 16px;
  background: #161616; border: 1px solid #333; color: #ddd;
}
.gf-seg-label { font-weight: 700; }
.gf-seg-btn.active { background: #4CAF50; border-color: #4CAF50; color: #0d0d0d; font-weight: 600; }
.gf-dialog-btn:disabled { opacity: 0.4; cursor: not-allowed; }
