:root {
  --bg: #1f2024;
  --bg-top: #33343a;
  --card: #252327;
  --card-soft: #2e2b31;
  --text: #f4f4f4;
  --muted: #bebec4;
  --line: rgba(159, 231, 151, 0.16);
  --green: #7ad16d;
  --green-deep: #203e22;
  --blue: #3f97ff;
  --cyan: #4dc6ca;
  --yellow: #e3d64d;
  --red: #ff6f6f;
  --pink: #d47fe5;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(54vw, 720px);
  height: min(54vw, 720px);
  background: url("/branding/daggadroom-mark.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.95) brightness(0.95);
  transform: translate(-50%, -50%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(34, 35, 39, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-brand span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.nav-brand strong,
.nav-brand em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-brand strong {
  font-size: 1rem;
}

.nav-brand em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1;
}

.nav-link,
.nav-dropdown-link {
  color: #d8d8dc;
}

.nav-link {
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.94rem;
}

.nav-link.active,
.nav-dropdown-link.active {
  color: var(--green);
}

.nav-link.active {
  background: rgba(122, 209, 109, 0.08);
  border-color: rgba(122, 209, 109, 0.18);
}

.nav-tools,
.nav-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.nav-logout,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(122, 209, 109, 0.18);
  background: rgba(122, 209, 109, 0.08);
  color: var(--green);
  font: inherit;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
  display: none;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  width: min(280px, calc(100vw - 24px));
  padding: 0.6rem;
  border-radius: 20px;
  background: rgba(34, 35, 39, 0.98);
  border: 1px solid rgba(122, 209, 109, 0.16);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.3rem;
}

.nav-dropdown-link {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
}

.nav-dropdown-link.active {
  background: rgba(122, 209, 109, 0.08);
}

.screen {
  width: min(calc(100% - 48px), 1440px);
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.9rem;
}

.chart-date-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chart-range-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.chart-range-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 209, 109, 0.18);
  background: rgba(122, 209, 109, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-range-tab.active {
  color: var(--green);
  border-color: rgba(122, 209, 109, 0.34);
  background: rgba(122, 209, 109, 0.14);
}

.desktop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}

.desktop-main,
.desktop-side {
  display: grid;
  gap: 1rem;
}

.page-heading,
.month-bar,
.tab-headline,
.section-title,
.card-header,
.detail-grid,
.metric-strip,
.header-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-heading,
.month-bar,
.tab-headline {
  justify-content: space-between;
  align-items: center;
}

.month-bar {
  padding: 1.1rem 0 0.6rem;
}

.month-bar h1,
.month-bar h2,
.page-heading h1,
.highlight-card h1,
.promo-card h1 {
  margin-bottom: 0;
}

.month-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(122, 209, 109, 0.08);
  color: var(--green);
}

.compact {
  padding-top: 0;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.page-strip {
  display: grid;
  gap: 1rem;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1.3rem;
}

.month-grid-head {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.2rem;
}

.month-cell {
  min-height: 104px;
  padding: 0.7rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.month-cell.selected {
  border-color: rgba(122, 209, 109, 0.4);
  box-shadow: inset 0 0 0 1px rgba(122, 209, 109, 0.2);
}

.muted-month-cell {
  opacity: 0.42;
}

.calendar-day {
  display: grid;
  justify-items: center;
  gap: 0.32rem;
  color: #8a8a91;
  padding: 0.75rem 0.35rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-day.selected {
  color: var(--text);
  border-color: rgba(122, 209, 109, 0.4);
  box-shadow: inset 0 0 0 1px rgba(122, 209, 109, 0.2);
}

.calendar-weekday {
  font-size: 0.78rem;
}

.calendar-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 247, 177, 0.35);
  background: radial-gradient(circle at 28% 50%, #fdf1bc 0 45%, #18103c 47% 100%);
}

.calendar-day.selected .calendar-dot {
  background: var(--green);
  border-color: transparent;
}

.calendar-markers {
  min-height: 10px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.tab-headline {
  margin-bottom: 1.2rem;
}

.tab-title {
  padding-bottom: 0.55rem;
  border-bottom: 3px solid transparent;
  color: #d6d6da;
  font-size: 1.5rem;
}

.tab-title.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.calendar-dropdown {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(122, 209, 109, 0.12);
  overflow: hidden;
}

.calendar-summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  color: var(--green);
  font-weight: 600;
}

.calendar-summary::-webkit-details-marker {
  display: none;
}

.month-grid-dropdown {
  padding: 0 1rem 1rem;
  margin-bottom: 0;
}

.glass-card,
.form-card,
.graph-card,
.highlight-card,
.promo-card,
.menu-card,
.info-card {
  background: linear-gradient(180deg, rgba(38, 35, 41, 0.98), rgba(33, 31, 37, 0.98));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.card-stack,
.timeline-stack,
.graph-stack,
.menu-card-list {
  display: grid;
  gap: 1rem;
}

.panel-section {
  display: grid;
  gap: 0.9rem;
}

.glass-card,
.form-card,
.graph-card,
.info-card {
  padding: 1.15rem;
}

.action-page-shell {
  display: grid;
  gap: 1rem;
}

.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 2rem 0 4rem;
}

.account-shell {
  min-height: auto;
  place-items: start center;
}

.auth-card {
  width: min(100%, 520px);
  padding: 1.5rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(38, 35, 41, 0.98), rgba(33, 31, 37, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card-wide {
  width: min(100%, 760px);
}

.auth-card::before {
  content: "";
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  background: url("/branding/daggadroom-full.png") center / contain no-repeat;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.auth-helper,
.reset-copy {
  margin-top: 1rem;
  color: var(--muted);
}

.auth-helper a,
.reset-copy a {
  color: var(--green);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.wizard-step {
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  text-align: center;
}

.wizard-step.active {
  border-color: rgba(122, 209, 109, 0.35);
  color: var(--green);
}

.wizard-step.done {
  color: #dcedd3;
  background: rgba(122, 209, 109, 0.1);
}

.wizard-skip {
  margin-top: 1rem;
}

.alert-card {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
}

.alert-error {
  background: rgba(120, 37, 37, 0.24);
  border: 1px solid rgba(255, 111, 111, 0.35);
  color: #ffb1b1;
}

.alert-success {
  background: rgba(52, 95, 47, 0.28);
  border: 1px solid rgba(122, 209, 109, 0.35);
  color: #b8f0b0;
}

.highlight-card,
.promo-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.hero-icon,
.promo-icon {
  min-width: 66px;
  height: 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(122, 209, 109, 0.14);
  color: var(--green);
}

.promo-icon-image {
  padding: 0.35rem;
  overflow: hidden;
}

.promo-icon-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blue-title {
  font-size: 1.7rem;
  color: var(--blue);
  margin-bottom: 0.3rem;
}

.muted-line,
.muted-kicker,
.empty-copy,
.menu-card p,
.timeline-card p {
  color: var(--muted);
}

.muted-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.pill,
.phase-chip,
.soil-chip,
.counter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.pill,
.phase-chip {
  background: rgba(122, 209, 109, 0.14);
  color: var(--green);
}

.counter-pill {
  background: #edf3e7;
  color: #3a6536;
}

.soil-chip {
  background: rgba(227, 214, 77, 0.16);
  color: var(--yellow);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.detail-grid p {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.mini-plants-grid,
.plant-overview-grid,
.gallery-grid {
  display: grid;
  gap: 0.9rem;
}

.mini-plants-grid,
.plant-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.mini-plant-card,
.plant-tile {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem;
  border-radius: 22px;
  background: #22262f;
  border: 1px solid rgba(122, 209, 109, 0.16);
}

.plant-tile {
  flex-direction: column;
  align-items: start;
}

.avatar-badge {
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f6fff0, #b6ddb1);
  color: #204320;
  font-weight: 700;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.metric-box {
  padding: 0.9rem;
  border-radius: 20px;
  background: var(--card-soft);
}

.metric-box span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.metric-box strong {
  font-size: 1.2rem;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.inline-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.full-span {
  grid-column: 1 / -1;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #37353a;
  color: var(--text);
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #37353a;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: none;
  border-radius: 18px;
  font: inherit;
  background: linear-gradient(135deg, #5fdc77, #4fbf61);
  color: #173119;
  font-weight: 700;
  cursor: pointer;
}

.mini-button {
  min-height: 38px;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(122, 209, 109, 0.2);
  background: rgba(122, 209, 109, 0.12);
  color: var(--green);
  font: inherit;
  cursor: pointer;
}

.learn-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.learn-card-media {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(122, 209, 109, 0.14);
  background: rgba(122, 209, 109, 0.08);
}

.learn-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.learn-card-body {
  display: grid;
  gap: 0.85rem;
}

.legal-copy {
  display: grid;
  gap: 0.45rem;
}

.legal-copy h2 {
  margin: 0.7rem 0 0;
  font-size: 1.05rem;
}

.danger-button {
  margin-top: 0.8rem;
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 111, 111, 0.35);
  border-radius: 18px;
  background: rgba(120, 37, 37, 0.24);
  color: #ff9e9e;
  font: inherit;
  cursor: pointer;
}

.compact-danger {
  margin-top: 0;
  min-height: 40px;
  padding-inline: 1rem;
  width: auto;
}

.reminder-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(122, 209, 109, 0.12);
}

.reminder-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.plant-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(122, 209, 109, 0.16);
}

.plant-card:first-of-type {
  border-top: none;
}

.plant-card-left {
  display: flex;
  gap: 1rem;
}

.row-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.ghost-link {
  color: var(--blue);
}

.vertical-stem {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #63d15b, #2f7d34);
}

.plant-card-right {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.plant-card-right img,
.gallery-card img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 20px;
}

.image-placeholder {
  width: 128px;
  height: 128px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #323037;
  color: var(--muted);
}

.back-link {
  color: var(--muted);
  display: inline-block;
  margin-bottom: 0.6rem;
}

.timeline-card {
  position: relative;
  margin-left: 0.8rem;
  padding: 1rem 1rem 1rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 0.9rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.timeline-card-body strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.timeline-card-body span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.log-water {
  color: #53a8ff;
  background: rgba(37, 77, 124, 0.22);
}

.log-train {
  color: #9fe86f;
  background: rgba(54, 86, 41, 0.24);
}

.log-feed {
  color: #efb251;
  background: rgba(107, 72, 18, 0.24);
}

.log-stage {
  color: var(--pink);
  background: rgba(108, 45, 116, 0.24);
}

.log-medium,
.log-pot {
  color: #6ad8ff;
  background: rgba(32, 87, 103, 0.22);
}

.log-pest,
.log-temp {
  color: #ff7d7d;
  background: rgba(102, 43, 43, 0.24);
}

.log-light {
  color: #f2dd51;
  background: rgba(98, 88, 20, 0.24);
}

.log-humidity {
  color: #ace4ff;
  background: rgba(52, 76, 93, 0.24);
}

.log-photo,
.log-custom {
  color: #d6d9ff;
  background: rgba(70, 74, 102, 0.24);
}

.graph-stack {
  margin-top: 1rem;
}

.chart-canvas {
  width: 100%;
  height: 100% !important;
}

.chart-shell {
  height: 320px;
}

.inline-editor {
  margin-top: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(122, 209, 109, 0.12);
}

.action-drawer-summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #5fdc77, #4fbf61);
  color: #173119;
  font-weight: 700;
  margin-bottom: 1rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.action-option {
  min-height: 96px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #2d2b31;
  color: var(--text);
  display: grid;
  place-items: center;
  gap: 0.45rem;
  font: inherit;
  cursor: pointer;
  padding: 0.65rem 0.55rem;
  text-align: center;
  line-height: 1.15;
}

.action-option-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}

.action-option i {
  font-size: 1.2rem;
}

.action-option span:last-child {
  font-size: 0.84rem;
}

.action-option.selected {
  border-color: rgba(122, 209, 109, 0.45);
  box-shadow: inset 0 0 0 1px rgba(122, 209, 109, 0.18);
}

.action-option.log-water .action-option-icon {
  background: rgba(53, 132, 220, 0.25);
  color: #5ab6ff;
}

.action-option.log-train .action-option-icon {
  background: rgba(91, 135, 54, 0.26);
  color: #9ee96e;
}

.action-option.log-feed .action-option-icon {
  background: rgba(133, 92, 25, 0.28);
  color: #efb251;
}

.action-option.log-stage .action-option-icon {
  background: rgba(118, 43, 133, 0.28);
  color: #dd8af3;
}

.action-option.log-medium .action-option-icon,
.action-option.log-pot .action-option-icon {
  background: rgba(31, 108, 128, 0.28);
  color: #66dfff;
}

.action-option.log-pest .action-option-icon {
  background: rgba(118, 41, 41, 0.28);
  color: #ff8585;
}

.action-option.log-custom .action-option-icon,
.action-option.log-photo .action-option-icon {
  background: rgba(58, 68, 136, 0.24);
  color: #b6c4ff;
}

.action-option.log-light .action-option-icon {
  background: rgba(128, 111, 23, 0.28);
  color: #f7e15d;
}

.action-option.log-humidity .action-option-icon {
  background: rgba(49, 87, 115, 0.28);
  color: #b8e8ff;
}

.action-option.log-temp .action-option-icon {
  background: rgba(120, 48, 48, 0.28);
  color: #ff9b9b;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quick-action-card {
  min-height: 110px;
  padding: 1rem;
  border-radius: 22px;
  background: #2b2930;
  border: 1px solid rgba(122, 209, 109, 0.14);
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.quick-action-card i {
  font-size: 1.4rem;
}

.quick-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.page-action-link {
  text-decoration: none;
}

.highlight-copy {
  display: grid;
  gap: 0.2rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  display: contents;
}

.is-hidden {
  display: none !important;
}

.inline-editor summary {
  cursor: pointer;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.plant-tile-title {
  font-weight: 600;
}

.graph-card h2,
.section-title h2 {
  margin-bottom: 0;
}

.series-row {
  margin-top: 1rem;
}

.series-row strong {
  display: block;
  margin-bottom: 0.6rem;
  text-transform: capitalize;
}

.bar-series {
  display: flex;
  gap: 0.8rem;
  align-items: end;
  min-height: 100px;
}

.bar-col {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 42px;
}

.bar-col i {
  width: 24px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #81dd8a, #3a8d48);
}

.bar-col span,
.series-table-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.series-table {
  display: grid;
  gap: 0.6rem;
}

.series-table-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(122, 209, 109, 0.12);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-stack-item {
  display: grid;
  gap: 0.8rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #28262b;
  min-height: 180px;
}

.gallery-card img {
  width: 100%;
  height: 180px;
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 0.75rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.gallery-overlay small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.25rem;
}

.appliance-section {
  margin: 1rem 0;
}

.appliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.appliance-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 209, 109, 0.12);
}

.menu-card-list {
  margin-top: 1rem;
}

.menu-card {
  padding: 1.2rem;
}

.green-text {
  color: var(--green);
}

@media (max-width: 760px) {
  .screen {
    width: calc(100% - 20px);
    padding-inline: 0;
  }

  .site-nav {
    padding: 0.75rem 0.85rem;
    gap: 0.7rem;
  }

  .nav-brand span {
    max-width: 140px;
  }

  .nav-brand strong {
    font-size: 0.9rem;
  }

  .nav-brand em {
    font-size: 0.72rem;
  }

  .nav-links {
    display: none;
  }

  .nav-dropdown {
    display: block;
  }

  .nav-logout,
  .nav-dropdown-toggle {
    min-height: 40px;
    padding: 0.62rem 0.8rem;
    font-size: 0.88rem;
  }

  .auth-card::before {
    width: 108px;
    height: 108px;
  }

  .detail-grid,
  .metric-strip,
  .summary-grid,
  .inline-form,
  .mini-plants-grid,
  .plant-overview-grid,
  .quick-actions-grid,
  .appliance-grid,
  .gallery-grid,
  .series-table-row {
    grid-template-columns: 1fr;
  }

  .desktop-grid {
    grid-template-columns: 1fr;
  }

  .learn-card {
    grid-template-columns: 1fr;
  }

  .plant-card {
    grid-template-columns: 1fr;
  }

  .plant-card-right {
    justify-items: start;
  }

  .plant-card-right img,
  .image-placeholder {
    width: 100%;
    height: 180px;
  }

  .quick-actions-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .quick-actions-row .mini-button,
  .quick-actions-row .action-button {
    flex: 1 1 calc(50% - 0.4rem);
  }

  .page-heading,
  .tab-headline {
    gap: 0.75rem;
  }

  .chart-toolbar,
  .chart-date-form {
    align-items: stretch;
  }

  .chart-date-form {
    width: 100%;
  }

  .chart-date-form input,
  .chart-date-form button {
    flex: 1 1 100%;
  }

  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .action-option {
    min-height: 88px;
    padding: 0.55rem 0.45rem;
  }

  .action-option-icon {
    width: 38px;
    height: 38px;
  }

  .action-option span:last-child {
    font-size: 0.74rem;
  }

  .mini-button,
  .action-button {
    min-height: 42px;
    padding: 0.62rem 0.82rem;
    font-size: 0.92rem;
  }

  .page-action-link {
    padding-inline: 0.9rem;
  }

  .month-cell {
    min-height: 72px;
    padding: 0.45rem;
  }
}

@media (max-width: 430px) {
  .nav-brand span {
    max-width: 112px;
  }

  .nav-logout span,
  .nav-dropdown-toggle span {
    display: none;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions-row .mini-button,
  .quick-actions-row .action-button {
    flex-basis: 100%;
  }
}

@media (min-width: 1000px) {
  .site-nav {
    padding-inline: max(28px, calc((100vw - 1440px) / 2 + 28px));
  }
}
