/* 80-redesign.css — Claude Design tablet redesign, imported as a layer ON TOP of everything above. This is why room styles exist in two places
   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. */

:root {
  color-scheme: dark;
  --bg: #0B0E0C;
  --panel: #161B18;
  --sheet: #191F1B;
  --toast: #212823;
  --seg-active: #28312A;
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.14);
  --input-line: rgba(255,255,255,0.09);
  --text: #F2F5F0;
  --muted: #9AA79C;
  --faint: #6E7B70;
  --fainter: #5E6A60;
  --disabled: #8B968D;
  --accent: #34D46A;
  --accent-text: #06130A;
  --green-light: #6EDD97;
  --warn: #F0A23B;
  --gold: #E8C35A;
  --bad: #F27D6A;
  --bad-bg: rgba(226,88,66,0.12);
  --blue: #6FB7D9;
  --blue-active: #20303E;
  --blue-text: #CFE4F5;
  --purple: #B478DC;
  --purple-text: #140A1C;
  --ease: cubic-bezier(0.32,0.72,0,1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.view-watering-active {
  background:
    radial-gradient(1100px 460px at 50% -60px, rgba(70,140,210,0.17), transparent 70%),
    var(--bg);
}

body.view-lights-active {
  background:
    radial-gradient(900px 420px at 50% -70px, rgba(232,195,90,0.12), transparent 68%),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

[hidden] {
  display: none !important;
}

/* Solid, and tall enough for its 44px buttons (58px with 70-navigation's
   height and border). It used to fade to clear over a 54px box the buttons
   hung 4px out of, so whatever scrolled under it showed through around Sign
   out and looked tappable while the bar caught the tap (2026-10-07). */
.gf-navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  padding: 6px 0 7px;
  background: var(--bg);
}

.gf-back-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 40px;
  line-height: 1;
  padding: 0 0 4px;
}

.gf-back-btn:active,
.room-nav-btn:active,
.gf-tabbar button:active,
.mr-action-btn:active,
.fr-action-btn:active,
.cr-dome:active,
.cure-net:active {
  transform: scale(0.98);
}

.gf-nav-brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gf-nav-logo {
  width: clamp(74px, 12vw, 118px);
  max-height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(52,212,106,0.12));
}

.gf-nav-title {
  min-width: 0;
  flex: 0 1 auto;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.gf-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gf-nav-role {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.connection-pill {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.connection-pill.good {
  border-color: rgba(52,212,106,0.4);
  color: var(--accent);
}

.connection-pill.warn {
  border-color: rgba(240,162,59,0.4);
  color: var(--warn);
}

.connection-pill.bad {
  border-color: rgba(242,125,106,0.45);
  color: var(--bad);
}

.gf-nav-signout {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 700;
}

.app-shell {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 118px;
}

.gf-view {
  display: none;
}

.gf-view.active {
  display: block;
  animation: gfFadeUp 0.35s var(--ease);
}

@keyframes gfFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gf-page-head,
.home-header,
.fr-header,
.cr-header,
.mr-header,
.vr-header,
.cure-header,
.cyc-head,
.gfw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.home-header h1,
.gf-page-head h1,
.auth-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.home-header p,
.gf-page-head p,
.auth-hero-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.auth-logo {
  display: block;
  width: min(520px, 88vw);
  max-height: 190px;
  object-fit: contain;
  margin: 0 auto 14px;
  filter: drop-shadow(0 18px 40px rgba(52,212,106,0.16));
}

.home-brand,
.stashboard-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.home-logo {
  width: min(260px, 34vw);
  max-height: 82px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 26px rgba(52,212,106,0.14));
}

.stashboard-header {
  margin: 0 0 14px;
}

.stashboard-logo {
  width: min(240px, 32vw);
  max-height: 74px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 26px rgba(52,212,106,0.14));
}

.stashboard-brand h1 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.stashboard-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.eyebrow,
.section-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fr-tabs,
.gfw-tabs,
.gfw-filters {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  padding: 4px;
}

.fr-tab,
.gfw-tab,
.gfw-filter {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
}

.fr-tab.active,
.gfw-tab.active,
.gfw-filter.active {
  background: var(--seg-active);
  color: var(--text);
}

.room-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.room-nav-btn {
  min-height: 174px;
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  padding: 18px;
  text-align: left;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.room-nav-btn:hover {
  border-color: rgba(255,255,255,0.13);
  background: #181F1A;
}

.room-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--room-tint);
  color: var(--room-color);
}

.room-icon svg,
.gf-tabbar svg,
.gf-light-bulb svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.room-nav-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.room-nav-name {
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
}

.room-nav-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.room-nav-count {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.room-nav-count strong {
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.room-strain-dots {
  grid-column: 2 / 4;
  display: flex;
  align-self: end;
  gap: 6px;
}

.room-strain-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--room-color);
  opacity: 0.65;
}

.room-strain-dots i:nth-child(2) { opacity: 0.46; }
.room-strain-dots i:nth-child(3) { opacity: 0.32; }
.room-strain-dots i:nth-child(4) { opacity: 0.2; }

.room-light-badge,
.room-alert-chip,
.fr-table-fill-btn,
.fr-table-move-btn,
.gf-light-chip,
.cyc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.room-light-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 10px;
  background: rgba(232,195,90,0.12);
  color: var(--gold);
}

.room-alert-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 10px;
}

.room-alert-chip.warn {
  background: rgba(240,162,59,0.12);
  color: var(--warn);
}

.gf-tabbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 30px;
  background: rgba(19,24,20,0.78);
  padding: 6px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.34);
  backdrop-filter: blur(24px) saturate(1.6);
}

.gf-tabbar button {
  position: relative;
  min-width: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--disabled);
  padding: 7px 9px;
  font-size: 14px;
  font-weight: 800;
}

.gf-tabbar button.active {
  background: rgba(52,212,106,0.13);
  color: var(--accent);
}

.gf-tabbar svg {
  width: 22px;
  height: 22px;
}

.gf-tabbar i {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 0 2px rgba(19,24,20,0.78);
}

.summary-strip,
.dashboard-grid,
.approval-panel,
.auth-panel,
.data-panel,
.fr-table,
.fr-detail,
.cr-unit,
.cr-detail,
.mr-rows,
.mr-row,
.mr-detail,
.vr-section,
.vr-detail,
.cure-detail,
.cyc-card,
.gfw-card,
.gfw-reading,
.approval-item,
.approval-empty {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 16px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.summary-strip div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 16px;
}

.summary-strip span,
.room-module dt,
.mr-detail-dl dt,
.fr-detail-dl dt {
  color: var(--faint);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.room-module {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 16px;
}

.module-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.room-module h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
}

.room-module dl,
.approval-meta,
.mr-detail-dl,
.fr-detail-dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.room-module dl > div,
.approval-meta > div,
.mr-detail-dl > div,
.fr-detail-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

dd {
  margin: 0;
}

.approval-panel {
  margin-bottom: 16px;
}

.approval-head,
.approval-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.approval-head {
  margin-bottom: 14px;
}

.approval-role-note,
.gf-source-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.approval-role-note.good {
  border-color: rgba(52,212,106,0.4);
  color: var(--accent);
}

.approval-role-note.warn {
  border-color: rgba(240,162,59,0.4);
  color: var(--warn);
}

.approval-list {
  display: grid;
  gap: 12px;
}

.approval-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
}

.approval-actions {
  display: flex;
  gap: 8px;
}

.approval-actions button,
button:not(.gf-back-btn):not(.gf-switch):not(.gf-tabbar button):not(.room-nav-btn):not(.fr-tab):not(.cr-dome):not(.cure-net):not(.mr-pot):not(.vr-dot-plant):not(.fr-cell):not(.cr-slot):not(.gf-scroll-thumb):not(.gf-seg-btn):not(.boh-sm-choice button):not(.boh-sm-crew button):not(.rt-btn) {
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  padding: 11px 14px;
  font-weight: 750;
}

.approval-actions button:first-child,
button[type="submit"],
.fr-fill-btn,
.mr-add-btn,
.mr-action-btn.accent,
.fr-action-btn.accent,
.vr-move-btn,
.gfw-log,
.gfw-save {
  border-color: transparent !important;
  background: var(--accent) !important;
  color: var(--accent-text) !important;
}

/* Destructive BUTTONS only. This used to match a bare `.warn`, which also hit
   every warning pill and chip — .approval-role-note.warn, .room-alert-chip.warn —
   painting amber "heads up" states in the red reserved for irreversible actions,
   and the !important meant their own rules further up could never win it back.
   Every .danger / .warn that should read as destructive is a <button>. */
button.danger,
button.warn {
  color: var(--bad) !important;
  background: var(--bad-bg) !important;
  border-color: transparent !important;
}

.auth-hero {
  margin-bottom: 16px;
}

.auth-panel,
.data-panel {
  margin-top: 14px;
}

.sign-in-form,
.session-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(180px, 240px) auto;
  align-items: end;
  gap: 14px;
  width: 100%;
}

label,
.session-panel span {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea,
.gf-dialog-input,
.gfw-field,
.gfw-select {
  width: 100%;
  border: 1px solid var(--input-line);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

/* Windows can keep the native select popup white even in a dark color scheme.
   Give every menu row an explicit dark surface so its light text stays legible. */
select option,
select optgroup {
  background-color: var(--sheet);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus,
.gf-dialog-input:focus {
  border-color: rgba(52,212,106,0.55);
  box-shadow: 0 0 0 3px rgba(52,212,106,0.08);
}

.fr-title,
.cr-title,
.mr-title,
.vr-title,
.cure-title,
.cyc-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
}

.fr-subtitle,
.cr-subtitle,
.mr-subtitle,
.vr-subtitle,
.cure-subtitle {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.fr-header-right,
.mr-header-actions,
.fr-stats-bar,
.cr-stats-bar,
.mr-stats-bar,
.vr-stats-bar,
.cure-stats-bar,
.fr-zone-bar,
.vr-section-actions,
.mr-actions,
.fr-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gf-room-lights-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  padding: 15px 16px;
  text-align: left;
}

.gf-room-lights-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.gf-room-lights-row strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.fr-stats-bar,
.cr-stats-bar,
.mr-stats-bar,
.vr-stats-bar,
.cure-stats-bar,
.fr-zone-bar {
  margin-bottom: 14px;
}

.fr-stat-badge,
.cr-badge,
.mr-stat-badge,
.vr-badge,
.cure-badge,
.fr-status-chip,
.cr-status-chip,
.cure-status-chip,
.vr-status-chip,
.cr-dome-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.fr-dot,
.cr-dot,
.cure-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.healthy,
.rooted,
.cured,
.green { --chip: var(--green-light); }
.flagged,
.rooting,
.drying { --chip: var(--warn); }
.dead,
.failed,
.bad { --chip: var(--bad); }
.empty,
.moved,
.retired { --chip: var(--disabled); }

.fr-dot.healthy,
.cr-dot.rooted,
.cure-dot.cured { background: var(--green-light); }
.fr-dot.flagged,
.cr-dot.rooting,
.cure-dot.drying { background: var(--warn); }
.fr-dot.dead,
.cr-dot.failed { background: var(--bad); }
.fr-dot.retired,
.cure-dot.moved,
.cure-dot.empty { background: var(--disabled); }

.fr-table {
  border-radius: 20px;
  padding: 16px;
}

.fr-tables {
  display: grid;
  gap: 14px;
}

.fr-table-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 800;
}

.fr-table-fill-btn,
.fr-table-move-btn {
  border: 0;
  padding: 8px 10px;
}
.fr-table-fill-btn { background: rgba(52,212,106,0.13); color: var(--accent); }
.fr-table-move-btn { background: rgba(255,255,255,0.08); color: var(--muted); }
.fr-table-move-btn:hover { color: var(--text); background: rgba(255,255,255,0.14); }

.fr-table-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.fr-grid {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: minmax(7px, 1fr);
  gap: 2px;
  width: 100%;
  overflow: hidden;
}

.fr-cell {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  position: relative;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.fr-cell.empty {
  background: rgba(255,255,255,0.05) !important;
}

.fr-cell.flagged {
  box-shadow: inset 0 0 0 1.5px var(--warn);
}

.fr-cell.dead {
  background: rgba(226,88,66,0.45) !important;
}

.fr-cell.sel {
  box-shadow: 0 0 0 2px var(--text), inset 0 0 0 1px rgba(0,0,0,0.3);
}

.fr-multi-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.fr-multi-bar.active {
  padding: 10px 12px;
  border: 1px solid rgba(111, 183, 217, 0.35);
  border-radius: 14px;
  background: rgba(111, 183, 217, 0.07);
}

.fr-multi-toggle,
.fr-multi-action,
.fr-multi-clear {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.fr-multi-bar.active .fr-multi-toggle { border-color: var(--blue); color: var(--blue-text); }
.fr-multi-action.warn { border-color: rgba(242, 125, 106, 0.48); color: var(--bad); }
.fr-multi-action.accent { border-color: rgba(52, 212,106, 0.48); color: var(--accent); }
.fr-multi-count { color: var(--blue-text); font-size: 14px; font-weight: 800; }
.fr-multi-clear { margin-left: auto; color: var(--muted); }
.fr-multi-bar button:disabled { opacity: 0.42; cursor: not-allowed; }

.fr-multi-bar.active + .fr-zone-bar + .fr-tables .fr-cell.sel {
  z-index: 2;
  box-shadow: 0 0 0 2px var(--blue), 0 0 0 4px rgba(111, 183, 217, 0.25);
}

.fr-cell.hl {
  filter: saturate(1.25) brightness(1.12);
}

.fr-sdot,
.vr-sdot,
.mr-sdot {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.fr-sdot.flagged,
.vr-sdot.flagged,
.mr-sdot.flagged { background: var(--warn); }
.fr-sdot.dead,
.vr-sdot.dead,
.mr-sdot.retired { background: var(--bad); }

.fr-zone-ticks {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0;
}

.fr-ztick {
  height: auto !important;
  border-left: 1px solid rgba(255,255,255,0.08);
  color: var(--fainter);
  padding-top: 5px;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
}

.fr-ztick.hl {
  color: var(--accent);
}

.fr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.fr-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  padding: 6px 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.fr-legend-swatch,
.mr-detail-swatch,
.fr-detail-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.fr-detail,
.cr-detail,
.mr-detail,
.vr-detail,
.cure-detail {
  margin-top: 14px;
  border-radius: 18px;
  animation: gfFadeUp 0.25s var(--ease);
}

.fr-detail-inner,
.cr-detail-inner,
.mr-detail-inner,
.vr-detail-inner,
.cure-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.fr-detail-strain,
.mr-detail-strain {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.mr-notes,
.fr-notes,
.fr-pending-note,
.mr-pending-note,
.gf-live-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.fr-actions,
.mr-actions {
  margin-top: 12px;
}

/* A detail panel's actions are what the crew came to do: Retail-sized. */
.fr-action-btn,
.mr-action-btn,
.vr-row-btn,
.vr-move-btn {
  min-height: 48px;
  font-size: 15px;
}

.cr-units {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.cr-unit {
  display: grid;
  gap: 10px;
  border-radius: 20px;
}

.cr-unit-label {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.cr-level {
  display: grid;
  grid-template-columns: 50px repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.cr-level-label {
  align-self: center;
  color: var(--fainter);
  font-size: 11px;
  font-weight: 800;
}

.cr-domes {
  grid-column: span 4;
  display: contents;
}

.cr-dome {
  min-height: 76px;
  display: grid;
  align-content: space-between;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px;
}

.cr-dome.empty {
  border-style: dashed;
  color: var(--disabled);
}

.cr-dome.failed,
.cr-dome.moved_to_veg {
  opacity: 0.58;
}

.cr-dome.sel,
.cure-net.sel,
.mr-pot.sel,
.vr-dot-plant.sel {
  box-shadow: 0 0 0 2px var(--text);
}

.cr-dome-num,
.cure-net-num {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.cr-dome-strain {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-dome-count {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mr-rows {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.mr-row {
  display: grid;
  grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 12px;
}

.mr-row-meta {
  display: grid;
  gap: 4px;
}

.mr-row-label {
  color: var(--fainter);
  font-size: 11px;
  font-weight: 800;
}

.mr-row-strain {
  color: var(--text) !important;
  font-size: 15px;
  font-weight: 800;
}

.mr-row-count {
  color: var(--muted);
  font-size: 12px;
}

.mr-pots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mr-pot {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.mr-pot.flagged {
  border-color: var(--warn);
}

.mr-pot .mr-sdot {
  width: 10px;
  height: 10px;
  top: -1px;
  right: -1px;
  box-shadow: 0 0 0 2px var(--panel);
}

.mr-newrow-drop {
  margin-top: 12px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
  color: var(--muted);
  padding: 12px;
  text-align: center;
}

/* Strain batch tiles (a row holds one tile per strain+sku batch) */
