﻿@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-strong: #eef5ef;
  --ink: #1d2b24;
  --muted: #66746c;
  --line: #d9ded7;
  --green: #315f4b;
  --leaf: #5c8d62;
  --amber: #bc7a25;
  --red: #b44737;
  --blue: #3f6d91;
  --soil: #9a5a2e;
  --shadow: 0 12px 32px rgba(32, 42, 36, 0.12);
  --font-korean: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-korean);
}

button,
input,
textarea,
select {
  font: inherit;
  font-family: var(--font-korean);
}

button {
  cursor: pointer;
}


.app-page.auth-pending main,
.app-page.auth-guest main,
.app-page.auth-unconfigured main,
.app-page.auth-pending .mobile-nav,
.app-page.auth-guest .mobile-nav,
.app-page.auth-unconfigured .mobile-nav {
  display: none;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-hero {
  display: grid;
  gap: 18px;
  width: min(720px, 100%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-icon {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: var(--surface);
  object-fit: contain;
  padding: 8px;
  box-shadow: var(--shadow);
}

.login-brand h1 {
  font-size: 36px;
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 18px 92px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 18px;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--surface);
  object-fit: contain;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(32, 42, 36, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px;
}

.auth-account {
  display: grid;
  gap: 2px;
  min-width: 132px;
}

.auth-account span,
.auth-account small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-account strong {
  max-width: 190px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-button,
.signout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.social-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.social-button span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.social-button.google span {
  background: #ffffff;
  color: #4285f4;
}

.social-button.kakao {
  border-color: #efd84f;
  background: #fee500;
  color: #191600;
}

.social-button.kakao span {
  background: #191600;
  color: #fee500;
}

.social-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.signout-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.today-basis {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(32, 42, 36, 0.08);
}

.icon-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  position: relative;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.summary-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.summary-card.overdue strong {
  color: var(--red);
}

.summary-card.today strong {
  color: var(--amber);
}

.summary-card.upcoming strong {
  color: var(--blue);
}

.login-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.login-copy {
  min-width: 0;
}

.login-copy span {
  display: block;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.login-copy h2 {
  margin: 4px 0 5px;
  overflow-wrap: anywhere;
  font-size: 19px;
}

.login-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.login-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 8px;
}

.temp-login-form {
  display: grid;
  gap: 10px;
  min-width: min(320px, 100%);
}

.temp-login-form label {
  display: grid;
  gap: 6px;
}

.temp-login-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.temp-login-form input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.temp-login-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 95, 75, 0.15);
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.provider-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px;
  text-align: left;
}

.provider-card > span {
  grid-row: 1 / 3;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.provider-card strong,
.provider-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-card strong {
  font-size: 13px;
}

.provider-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.provider-card.google > span {
  background: #ffffff;
  color: #4285f4;
  box-shadow: inset 0 0 0 1px var(--line);
}

.provider-card.kakao {
  border-color: #efd84f;
  background: #fee500;
  color: #191600;
}

.provider-card.kakao > span {
  background: #191600;
  color: #fee500;
}

.provider-card.signout > span {
  background: var(--surface-strong);
  color: var(--green);
}

.provider-card:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.search-field {
  display: grid;
  gap: 7px;
}

.search-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

.search-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 95, 75, 0.15);
}

.segmented {
  display: inline-flex;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 3px;
}

.segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.segmented button.active {
  background: var(--green);
  color: #fff;
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 10px;
}

.list-head h2 {
  margin: 0;
  font-size: 19px;
}

.list-head span {
  color: var(--muted);
  font-size: 14px;
}

.plant-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.plant-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 13px;
  min-height: 144px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.plant-image {
  width: 86px;
  height: 116px;
  border-radius: 6px;
  background: var(--surface-strong);
  object-fit: cover;
}

.plant-image-button {
  display: block;
  width: 86px;
  height: 116px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.plant-image-button:focus-visible,
.detail-photo-button:focus-visible {
  outline: 3px solid rgba(32, 191, 120, 0.28);
  outline-offset: 3px;
}

.plant-image-button .plant-image {
  display: block;
}

.plant-body {
  min-width: 0;
}

.plant-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.plant-title h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.3;
}

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.overdue {
  background: #fae7e2;
  color: var(--red);
}

.status.today {
  background: #fff0d7;
  color: var(--amber);
}

.status.upcoming {
  background: #e8f0f8;
  color: var(--blue);
}

.status.later {
  background: #edf2ed;
  color: var(--green);
}

.meta {
  display: grid;
  gap: 4px;
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.period-control {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.period-control label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.period-control input {
  width: 64px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
}

.water-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 800;
}

.water-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  padding: 34px;
  text-align: center;
}

.plant-image.placeholder {
  display: grid;
  place-items: center;
  color: var(--leaf);
  font-size: 15px;
  font-weight: 800;
}

.plant-image.placeholder img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.delete-button {
  height: 36px;
  border: 1px solid #f0c6bf;
  border-radius: 6px;
  background: #fff7f5;
  color: var(--red);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 800;
}

.plant-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.form-section h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.photo-preview {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
}

.photo-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.photo-crop-editor {
  place-items: center;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
}

.photo-crop-stage {
  position: relative;
  width: min(240px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border-radius: 18px;
  background: #dfece5;
  touch-action: none;
  cursor: grab;
}

.photo-crop-stage:active {
  cursor: grabbing;
}

.photo-crop-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid #cfeada;
  border-radius: 50%;
  background: #dfece5;
  touch-action: none;
}

.photo-crop-frame img,
.photo-crop-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-height: none;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-preview .photo-crop-backdrop {
  width: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.photo-crop-backdrop {
  filter: blur(12px);
  opacity: 0.5;
  pointer-events: none;
}

.photo-crop-guide {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.03);
  pointer-events: none;
}

.photo-zoom-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  justify-self: center;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.photo-zoom-control input {
  width: 100%;
  accent-color: var(--green);
}

.form-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.form-grid input {
  height: 44px;
}

.form-grid textarea {
  resize: vertical;
  min-height: 104px;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 95, 75, 0.15);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.primary-button,
.secondary-button {
  height: 42px;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: var(--green);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  width: min(420px, calc(100% - 24px));
  transform: translateX(-50%);
  border: 1px solid rgba(217, 222, 215, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(32, 42, 36, 0.18);
  backdrop-filter: blur(12px);
  padding: 4px;
}

.mobile-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.nav-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.mobile-nav strong {
  font-size: 12px;
  line-height: 1.2;
}

.mobile-nav button.active {
  background: var(--green);
  color: #fff;
}

.mobile-nav button.active .nav-icon {
  filter: brightness(0) invert(1);
}

.camera-dialog {
  width: min(560px, calc(100% - 24px));
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.camera-dialog::backdrop {
  background: rgba(15, 22, 18, 0.52);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 19px;
}

#cameraPreview {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  background: #111;
  object-fit: cover;
}

#cameraStatus {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px 12px 96px;
  }

  h1 {
    font-size: 25px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-card {
    min-height: 76px;
    padding: 11px;
  }

  .summary-card strong {
    font-size: 25px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .login-dashboard {
    grid-template-columns: 1fr;
  }

  .temp-login-form {
    min-width: 0;
  }

  .login-provider-grid {
    grid-template-columns: 1fr;
  }

  .segmented {
    display: grid;
    width: 100%;
  }

  .filter-tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .sort-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .segmented button {
    padding: 0 6px;
    font-size: 13px;
  }

  .plant-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
    margin: 0 -12px;
    padding: 12px;
    background: rgba(244, 241, 234, 0.94);
    backdrop-filter: blur(12px);
  }

  .topbar-actions {
    width: 100%;
    align-items: stretch;
  }

  .auth-panel {
    flex: 1;
    justify-content: space-between;
    min-width: 0;
  }

  .auth-account {
    min-width: 0;
  }

  .auth-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .form-section {
    padding: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .plant-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .plant-image {
    width: 74px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .water-button {
    width: 100%;
  }
}




.add-plant-panel {
  margin-top: 18px;
}

.add-plant-panel summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.add-plant-panel .plant-form {
  margin-top: 12px;
}

.health-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.health-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.health-panel p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 720px) {

  .health-panel {
    display: grid;
    min-height: 180px;
    padding: 16px;
  }
}

.notice-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow);
}

.notice-panel span {
  display: block;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.notice-panel h2 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.notice-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.main-tabs {
  margin-top: 18px;
}

.main-tab-panel {
  display: none;
}

.main-tab-panel.active {
  display: block;
}

.todo-list {
  display: grid;
  gap: 10px;
}

.todo-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
}

.todo-item > span {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: var(--leaf);
}

.todo-item.danger > span {
  background: var(--red);
}

#todoPanel {
  cursor: pointer;
}

.todo-item.today > span {
  background: var(--leaf);
}

.todo-item.neutral > span {
  background: var(--blue);
}

.todo-item.repotting > span {
  background: var(--soil);
}

.todo-item strong {
  display: block;
  font-size: 15px;
}

.todo-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .notice-panel {
    display: block;
    padding: 14px;
  }

  .main-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}


/* Mobile app composition */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-strong: #f0f3f1;
  --ink: #171717;
  --muted: #777d84;
  --line: #e7e9ec;
  --green: #2f5e46;
  --leaf: #4f7f66;
  --amber: #f6c445;
  --red: #d65745;
  --blue: #4c7ea7;
  --kakao: #fee500;
  --shadow: none;
}

body {
  background: var(--bg);
}

.app-shell {
  width: min(520px, 100%);
  padding: 10px 14px 92px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -14px 8px;
  padding: 12px 14px;
  background: rgba(245, 246, 248, 0.96);
  backdrop-filter: blur(14px);
}

.brand-head {
  gap: 10px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.login-icon {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.brand-head .eyebrow,
.notice-panel span,
.login-copy span {
  color: var(--muted);
}

.notice-panel {
  margin-bottom: 12px;
  border: 0;
  border-radius: 8px;
  background: #fff7c6;
  padding: 14px;
  box-shadow: none;
}

.notice-panel h2 {
  font-size: 17px;
}

.notice-panel p {
  font-size: 13px;
}

.summary-grid {
  gap: 8px;
}

.summary-card {
  min-height: 78px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  box-shadow: none;
}

.summary-icon {
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
}

.summary-card strong {
  margin-top: 10px;
  font-size: 28px;
}


.main-tab-panel {
  display: block;
}

.todo-list,
.plant-list {
  display: grid;
  gap: 8px;
}

.todo-item,
.plant-card {
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.todo-item {
  min-height: 64px;
  padding: 12px;
}

.todo-item > span {
  height: 36px;
}

.plant-list {
  grid-template-columns: 1fr;
}

.plant-card {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 124px;
  padding: 10px;
}

.plant-image {
  width: 72px;
  height: 104px;
  border-radius: 8px;
  background: #eef3ef;
}

.plant-image-button {
  width: 72px;
  height: 104px;
  border-radius: 8px;
}

.plant-image.placeholder {
  background: transparent;
}

.plant-image.placeholder img {
  width: 52px;
  height: 52px;
}

.plant-title h3 {
  font-size: 13px;
}

.meta {
  gap: 3px;
  font-size: 12px;
}

.water-button {
  border: 1px solid #d8e6df;
  background: #f5fbf7;
  color: var(--green);
  box-shadow: none;
}

.water-button img {
  width: 20px;
  height: 20px;
}

.water-button:hover {
  background: #eaf7ef;
}

.mobile-nav {
  bottom: 12px;
  border: 1px solid rgba(220, 222, 225, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
}

.mobile-nav button.active {
  background: var(--kakao);
  color: #171717;
}

.mobile-nav button.active .nav-icon {
  filter: none;
}

.auth-panel,
.login-dashboard,
.form-section,
.health-panel {
  box-shadow: none;
}

@media (min-width: 721px) {
  .plant-list {
    grid-template-columns: 1fr;
  }
}


/* Bounded responsive plant list */
.app-shell {
  width: min(640px, 100%);
}

#plantList {
  max-height: clamp(440px, calc(100dvh - 330px), 652px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scroll-padding: 8px;
}

#plantList::-webkit-scrollbar {
  width: 8px;
}

#plantList::-webkit-scrollbar-track {
  background: transparent;
}

#plantList::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #cdd4d0;
}

#plantList .plant-card:last-child {
  margin-bottom: 2px;
}

@media (min-width: 900px) {
  .app-shell {
    width: min(760px, 100%);
  }

  #plantList {
    max-height: 652px;
  }
}

@media (max-width: 520px) {
  #plantList {
    max-height: clamp(390px, calc(100dvh - 360px), 652px);
  }
}


/* Header and notice refinements from provided reference */
.brand-icon {
  width: 142px;
  height: 56px;
  object-fit: contain;
}

.login-icon {
  width: 142px;
  height: 56px;
  object-fit: contain;
}

.topbar-actions {
  gap: 12px;
}

.auth-panel.compact {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
}

.auth-panel.compact .auth-account,
.auth-panel.compact .auth-actions {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.header-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  background: #ffffff;
  color: #00190c;
  padding: 0;
}

.header-icon-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(260px, calc(100vw - 28px));
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 16px 32px rgba(32, 42, 36, 0.16);
}

.account-menu[hidden] {
  display: none;
}

.account-menu-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-menu-info span {
  color: #315f4b;
  font-size: 12px;
  font-weight: 900;
}

.account-menu-info strong,
.account-menu-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-info strong {
  color: #1d2b24;
  font-size: 14px;
  font-weight: 900;
}

.account-menu-info small {
  color: #66746c;
  font-size: 12px;
  font-weight: 700;
}

.account-menu-signout {
  width: 100%;
  border-color: #f0cbc5;
  background: #fff3f1;
  color: #b44737;
}

.bell-icon,
.person-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
}

.bell-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 16px;
  height: 17px;
  border: 3px solid currentColor;
  border-bottom-width: 2px;
  border-radius: 10px 10px 6px 6px;
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 11px -22px 0 -1px #11c986;
}

.person-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.person-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 22px;
  height: 13px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
}

.notice-panel {
  border: 2px solid #ff9346;
  background: #fff2e8;
  padding: 22px 22px 20px;
}

.notice-panel > div {
  position: relative;
  padding-left: 76px;
}

.notice-panel > div::before {
  content: "??";
  position: absolute;
  left: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff9142;
  font-size: 25px;
}

.notice-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #ff9142;
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.notice-panel h2 {
  margin-top: 18px;
  color: #00190c;
  font-size: 24px;
  font-weight: 900;
}

.notice-panel p {
  color: #31523d;
  font-size: 15px;
  line-height: 1.7;
}

.plant-list-head {
  align-items: center;
  padding: 0 10px;
}

.plant-list-head > div:first-child {
  display: grid;
  gap: 2px;
}

.plant-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 36px;
  margin-left: auto;
}

.compact-sort {
  min-height: 30px;
  border-radius: 999px;
  padding: 2px;
}

.compact-sort button {
  min-width: 44px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}

.compact-sort button.active {
  background: #00190c;
  color: #fff;
}

@media (max-width: 520px) {
  .brand-icon {
    width: 112px;
    height: 44px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .header-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  background: #ffffff;
  color: #00190c;
  padding: 0;
}

.header-icon-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

}

/* Final header/icon refinements */
.page-title-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.topbar {
  justify-content: space-between;
  min-height: 112px;
}

.topbar-actions {
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.header-main-icon {
  order: -1;
  width: 168px;
  height: 70px;
  max-width: 33vw;
  margin-right: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.header-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  background: #ffffff;
  color: #00190c;
  padding: 0;
}

.header-icon-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header-icon-button img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  display: block;
}

.auth-panel.compact {
  flex: 0 0 auto;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.water-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #cfe3d8;
  background: #eef8f2;
  color: var(--green);
}

.water-button img {
  width: 24px;
  height: 24px;
}

.water-button span,
.period-control {
  display: none;
}

@media (max-width: 520px) {
  .topbar {
    min-height: 92px;
    padding: 10px 14px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .header-main-icon {
    width: clamp(106px, 30vw, 134px);
    height: 56px;
    max-width: 30vw;
    margin-right: auto;
  }

  .header-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  background: #ffffff;
  color: #00190c;
  padding: 0;
}

.header-icon-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

}

.compact-sort.sort-tabs {
  display: inline-flex;
  width: auto;
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 0;
}


/* Add plant flow */
.add-plant-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
}

.add-plant-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.timeline-head h2 {
  font-size: 18px;
}

.back-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.add-plant-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.add-flow-grid {
  grid-template-columns: 1fr;
}

.field-block small {
  color: var(--muted);
  font-size: 12px;
}

.choice-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.choice-section legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  margin-bottom: 8px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.space-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-grid,
.grow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card {
  display: block;
  min-width: 0;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-box {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.space-choice .choice-box {
  aspect-ratio: 1 / 1;
  min-height: auto;
}

.choice-box img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.choice-box strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.25;
}

.choice-card input:checked + .choice-box {
  border-color: var(--green);
  background: #edf7f0;
  box-shadow: 0 0 0 3px rgba(49, 95, 75, 0.14);
}

.photo-field input[type="file"] {
  min-height: 54px;
  height: auto;
  padding: 13px 12px;
  cursor: pointer;
}

.photo-source-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.photo-source-actions button {
  width: 100%;
  min-width: 0;
  border-color: #cfeada;
  background: #ffffff;
  color: #0b7f4e;
  font-weight: 900;
}

.add-form-actions {
  justify-content: space-between;
}

@media (max-width: 520px) {
  .space-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid,
  .grow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .choice-box {
    min-height: 74px;
  }

  .add-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


/* Six-step add plant wizard and green notice */
.notice-panel {
  border: 2px solid #20bf78;
  background: #effaf4;
}

.notice-panel > div::before {
  content: "";
  background: #dff7eb url("../icons/pullog-megaphone-green-v2.svg") center / 36px 36px no-repeat;
}

.notice-panel span {
  background: #20bf78;
  color: #fff;
}

.notice-panel h2 {
  color: #083b25;
}

.notice-panel p {
  color: #315f4b;
}

.calendar-panel {
  display: grid;
  gap: 14px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f7fbf8;
  padding: 18px;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.calendar-head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #e5f8ed;
  color: #315f4b;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.calendar-head h2 {
  margin: 7px 0 0;
  color: #083b25;
  font-size: 23px;
}

.calendar-head small {
  color: #6b8176;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.calendar-month-label {
  display: none;
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.calendar-legend small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.calendar-legend i,
.calendar-markers i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.calendar-legend .water,
.calendar-markers .water {
  background: #20bf78;
}

.calendar-legend .overdue,
.calendar-markers .overdue {
  background: var(--red);
}

.calendar-legend .repotting,
.calendar-markers .repotting {
  background: var(--soil);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays span {
  color: #6b8176;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: #24382f;
  padding: 0;
  appearance: none;
}

.calendar-day strong {
  font-size: 13px;
  line-height: 1;
}


.calendar-day.today {
  border-color: #20bf78;
  background: #eaf7ef;
  color: #083b25;
  box-shadow: inset 0 0 0 1px #20bf78;
}

.calendar-day.selected {
  border-color: #315f4b;
  background: #dff7eb;
  color: #083b25;
  box-shadow: inset 0 0 0 2px #315f4b;
}

.calendar-markers {
  position: absolute;
  bottom: 6px;
  left: 50%;
  display: inline-flex;
  gap: 3px;
  transform: translateX(-50%);
}

.calendar-markers i {
  width: 6px;
  height: 6px;
}

.calendar-day.empty-day {
  background: transparent;
}

.notice-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.notice-icon-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header-notice-button {
  flex: 0 0 auto;
}

.notice-dialog {
  width: min(420px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.notice-dialog::backdrop {
  background: rgba(15, 22, 18, 0.4);
}

.notice-dialog-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border-radius: 8px;
  background: #f0fbf5;
  padding: 14px;
}

.notice-dialog-body span {
  color: #083b25;
  font-size: 17px;
  font-weight: 900;
}

.notice-dialog-body p {
  margin: 0;
  color: #315f4b;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 420px) {
  .calendar-panel {
    padding: 14px;
  }

  .calendar-head {
    align-items: start;
  }

  .calendar-head h2 {
    font-size: 20px;
  }

  .calendar-head small {
    max-width: 128px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 4px;
  }
}

.add-wizard-section {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  padding: 18px;
  box-shadow: 0 16px 32px rgba(32, 42, 36, 0.10);
}

.step-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.step-segment {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #dce7df;
}

.step-segment.active,
.step-segment.complete {
  background: #20bf78;
}

.add-step {
  display: none;
  min-width: 0;
  min-height: 360px;
}

.add-step.active {
  display: grid;
  align-content: start;
  gap: 18px;
}

.step-title {
  display: grid;
  gap: 5px;
  border-radius: 18px;
  background: #eef9f3;
  padding: 14px;
}

.step-title span {
  color: #20bf78;
  font-size: 13px;
  font-weight: 900;
}

.step-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.add-step .field-block {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
}

.repotting-date-field {
  margin-top: 12px;
}

.repotting-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wizard-actions button[hidden] {
  display: none;
}

.wizard-actions button:first-child[hidden] + button,
.wizard-actions button:first-child[hidden] ~ #addPlantSubmitButton:not([hidden]) {
  grid-column: 2;
}

.add-step .space-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.add-step .method-grid,
.add-step .grow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.add-step .choice-box {
  min-height: 96px;
  border-radius: 18px;
}

.add-step .space-choice .choice-box {
  aspect-ratio: 1 / 1;
  min-height: auto;
}

@media (max-width: 520px) {
  .notice-panel > div::before {
    background-size: 32px 32px;
  }

  .add-step {
    width: 100%;
    min-height: 330px;
  }

  .step-title h3 {
    font-size: 20px;
  }

  .add-step .space-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .add-step .method-grid,
  .add-step .grow-grid {
    grid-template-columns: 1fr;
  }

  .add-plant-view,
  .add-plant-form,
  .add-wizard-section,
  .add-step,
  .add-step .field-block,
  .photo-preview,
  .photo-crop-editor {
    max-width: 100%;
    min-width: 0;
  }

  .add-wizard-section {
    padding: 14px;
    overflow-x: hidden;
  }

  .add-step input:not([type="radio"]):not([type="checkbox"]),
  .add-step textarea,
  .add-step select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}


/* White app background and light-green text boxes */
:root {
  --bg: #ffffff;
  --field-bg: #eef8f2;
  --field-bg-strong: #e6f5ec;
  --field-line: #c9e2d4;
}

html,
body,
.app-page,
.app-shell {
  background: #ffffff;
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
}

.search-field input,
.form-grid input,
.form-grid textarea,
.add-step input:not([type="radio"]):not([type="checkbox"]),
.add-step textarea,
.add-step select,
.photo-field input[type="file"],
.photo-preview {
  border-radius: 18px;
  border-color: var(--field-line);
  background: var(--field-bg);
}

.add-step input:not([type="radio"]):not([type="checkbox"]),
.add-step textarea,
.add-step select,
.photo-field input[type="file"] {
  border-radius: 16px;
}

.add-form-actions button {
  border-radius: 18px;
}

.search-field input:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.add-step input:not([type="radio"]):not([type="checkbox"]):focus,
.add-step textarea:focus,
.add-step select:focus {
  border-color: var(--green);
  background: var(--field-bg-strong);
  box-shadow: 0 0 0 3px rgba(32, 191, 120, 0.15);
}


/* Search field icon treatment */
.search-field {
  position: relative;
}

.search-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-field::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23315f4b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.8;
}

.search-field input {
  padding-left: 42px;
}


/* Favorite plant action */
.favorite-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid #d8e2dc;
  border-radius: 50%;
  background: #ffffff;
  padding: 0;
  box-shadow: none;
}

.favorite-button img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}

.favorite-button.active {
  border-color: #f2cf57;
  background: #fff8df;
}

@media (max-width: 520px) {
  .favorite-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .favorite-button img {
    width: 23px;
    height: 23px;
  }
}

.compact-sort.sort-tabs {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: auto;
}


/* Horizontal overflow guard */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.app-shell {
  max-width: 100%;
  overflow-x: clip;
}

.topbar,
.topbar-actions,
.mobile-nav,
.controls,
.plant-card,
.form-section,
.add-wizard-section {
  max-width: 100%;
}

.topbar-actions {
  min-width: 0;
}

.header-main-icon {
  flex: 0 1 auto;
  min-width: 0;
}

@media (max-width: 380px) {
  .topbar-actions {
    gap: 4px;
  }

  .header-main-icon {
    width: clamp(87px, 27vw, 103px);
    height: 42px;
    max-width: 27vw;
  }

  .header-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  background: #ffffff;
  color: #00190c;
  padding: 0;
}

.header-icon-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

}

/* Notification opt-in state */
.header-icon-button.notification-enabled {
  background: #e5f8ed;
}

.header-icon-button.notification-enabled img {
  filter: sepia(1) saturate(1.8) hue-rotate(85deg) brightness(0.72);
}


.install-shortcut-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  background: #0fbf77;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.install-shortcut-button img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.install-shortcut-button:hover {
  background: #0aa869;
}

.install-help {
  margin: 10px 0 0;
  color: #315f4b;
  font-size: 0.9rem;
  line-height: 1.5;
}


/* Latest layout alignment */
.topbar {
  padding-left: 0;
  padding-right: 0;
}

.topbar-actions {
  padding-right: 0;
}

.header-main-icon {
  margin-left: 12px;
}

.install-shortcut-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.install-shortcut-strip[hidden] {
  display: none;
}

.install-shortcut-strip .install-shortcut-button {
  margin-top: 0;
}

@media (max-width: 520px) {
  .topbar {
    padding-left: 0;
    padding-right: 0;
  }

  .header-main-icon {
    margin-left: 10px;
  }

  .topbar-actions {
    justify-content: flex-end;
  }
}


/* Water action buttons */
.card-actions {
  justify-content: flex-end;
  width: 100%;
}

.water-button.watered-today {
  border-color: #0b7f4e;
  background: #118c59;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 140, 89, 0.32);
}

.water-button.watered-today img {
  filter: brightness(0) invert(1);
}

.timeline-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid #d6e5dc;
  border-radius: 50%;
  background: #ffffff;
  color: #315f4b;
  font-size: 18px;
  font-weight: 900;
}

.clock-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 2.5px solid #315f4b;
  border-radius: 50%;
}

.clock-icon::before,
.clock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.5px;
  border-radius: 999px;
  background: #315f4b;
  transform-origin: 50% 0;
}

.clock-icon::before {
  height: 7px;
  transform: translate(-50%, -1px) rotate(180deg);
}

.clock-icon::after {
  height: 6px;
  transform: translate(-50%, -1px) rotate(125deg);
}


/* Plant order editing and watering timeline */
.compact-sort {
  align-items: center;
  gap: 12px;
}

.order-edit-button,
.compact-sort .order-edit-button {
  min-width: 52px;
  width: auto;
  height: 32px;
  border: 1px solid #cfeada;
  border-radius: 999px;
  background: #ffffff;
  color: #0b7f4e;
  padding: 0 12px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
}

.order-edit-button.active,
.compact-sort button.order-edit-button.active {
  border-color: #20bf78;
  background: #e8f9ef;
  color: #075f3b;
}

.floating-add-button {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 24;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 50%;
  background: #20bf78;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(32, 191, 120, 0.35);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.floating-add-button[hidden] {
  display: none;
}

.floating-add-button:active {
  transform: translateX(-50%) scale(0.96);
}

.plant-list.order-editing {
  touch-action: pan-y;
}

#myPlantsView.order-edit-active {
  border-radius: 10px;
  background: #f1fbf6;
  box-shadow: inset 0 0 0 1px #d9eadf;
}

#myPlantsView.order-edit-active .plant-list-head {
  border-radius: 8px;
  background: #e8f9ef;
  padding: 10px;
}

#myPlantsView.order-edit-active #plantList {
  padding: 8px;
}

.plant-card.order-edit-card {
  cursor: grab;
  transition: margin 140ms ease, transform 140ms ease, background 140ms ease, border-color 140ms ease;
  user-select: none;
}

.plant-card.dragging {
  position: relative;
  z-index: 5;
  opacity: 0.92;
  outline: 2px solid #20bf78;
  transform: translateY(var(--drag-y, 0));
  transition: none;
  box-shadow: 0 14px 28px rgba(32, 42, 36, 0.18);
}

.plant-card.drag-over,
.plant-card.drag-over-after {
  border-color: #20bf78;
  background: #f0fbf5;
}

.plant-card.drag-over {
  margin-top: 22px;
}

.plant-card.drag-over-after {
  margin-bottom: 22px;
}

.drag-handle {
  touch-action: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf7ef;
  color: #315f4b;
  font-size: 18px;
  font-weight: 900;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 12px;
}

.timeline-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 38px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #ffffff;
  color: #6b8176;
  font-size: 12px;
  font-weight: 900;
  padding: 0 4px;
  white-space: nowrap;
}

.timeline-tabs img,
.memo-tab-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.timeline-tabs img {
  object-fit: contain;
}

.memo-tab-icon {
  position: relative;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.memo-tab-icon::before,
.memo-tab-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.memo-tab-icon::before {
  top: 4px;
}

.memo-tab-icon::after {
  top: 9px;
}

.timeline-tabs button.active {
  border-color: #20bf78;
  background: #eaf7ef;
  color: #083b25;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
  padding: 13px 14px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #20bf78;
  box-shadow: 0 0 0 5px #e2f7ec;
}

.timeline-item strong,
.timeline-item span {
  display: block;
}

.timeline-item strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.timeline-item span {
  margin-top: 4px;
  color: #315f4b;
  font-size: 13px;
  font-weight: 800;
}

.timeline-photo {
  display: block;
  width: min(180px, 100%);
  aspect-ratio: 1;
  margin-top: 10px;
  border-radius: 8px;
  object-fit: cover;
  background: #eaf7ef;
}

.timeline-add-button {
  position: fixed;
  right: max(18px, calc((100vw - 640px) / 2 + 18px));
  bottom: 96px;
  z-index: 24;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #20bf78;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(32, 191, 120, 0.35);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.timeline-add-button[hidden] {
  display: none;
}

.timeline-entry-dialog,
.profile-photo-dialog {
  width: min(420px, calc(100% - 28px));
  max-width: calc(100vw - 28px);
  border: 0;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.timeline-entry-dialog::backdrop,
.profile-photo-dialog::backdrop {
  background: rgba(15, 22, 18, 0.4);
}

.timeline-entry-dialog form,
.profile-photo-dialog form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.timeline-entry-dialog textarea,
.profile-photo-dialog textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
}

.timeline-entry-dialog .field-block,
.profile-photo-dialog .field-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.timeline-entry-dialog .field-block > span,
.timeline-entry-dialog .field-block > small,
.profile-photo-dialog .field-block > span,
.profile-photo-dialog .field-block > small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline-entry-dialog .field-block > small,
.profile-photo-dialog .field-block > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-entry-dialog input,
.timeline-entry-dialog textarea,
.timeline-entry-dialog button,
.profile-photo-dialog input,
.profile-photo-dialog textarea,
.profile-photo-dialog button {
  max-width: 100%;
  min-width: 0;
}

.profile-photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 420px) {
  .timeline-entry-dialog,
  .profile-photo-dialog {
    width: calc(100% - 20px);
    padding: 14px;
  }
}

.detail-head {
  margin-bottom: 12px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f7fbf8;
  padding: 12px;
}

.detail-photo,
.detail-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf7ef;
}

.detail-photo-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.detail-photo img,
.detail-photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-photo-placeholder img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.detail-hero-text {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.detail-hero-text span {
  justify-self: start;
  border-radius: 999px;
  background: #e5f8ed;
  color: #315f4b;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.detail-hero-text strong {
  overflow: hidden;
  color: #083b25;
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-panel {
  display: none;
}

.detail-panel.active {
  display: block;
}

.detail-list,
.detail-care-form {
  display: grid;
  gap: 10px;
}

.detail-row,
.detail-field {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #ffffff;
  padding: 13px 14px;
}

.detail-row dt,
.detail-field > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #6b8176;
  font-size: 13px;
  font-weight: 900;
}

.detail-row dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #083b25;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-input-row {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.detail-input-row > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b8176;
  font-size: 13px;
  font-weight: 900;
}

.detail-input-row input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f7fbf8;
  color: #083b25;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.detail-row-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf7ef;
}

.detail-row-icon::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #20bf78;
}

.detail-row-icon.calendar::before {
  border-radius: 3px;
  background: #315f4b;
}

.detail-row-icon.star::before {
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
  border-radius: 0;
  background: #20bf78;
}

.detail-field > span {
  display: grid;
  gap: 2px;
}

.detail-field small {
  color: #8a9a91;
  font-size: 11px;
  font-weight: 800;
}

.detail-field > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.detail-field input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #f7fbf8;
  color: #083b25;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.detail-field.readonly input {
  color: #6b8176;
}

.detail-field em {
  color: #315f4b;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.detail-save-button {
  width: 100%;
  min-height: 42px;
}

.detail-save-status {
  min-height: 18px;
  margin: 0;
  color: #20a86b;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.detail-photo-panel {
  margin: 0;
}

.detail-photo-panel img {
  display: block;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #eaf7ef;
}

.detail-photo-panel figcaption {
  margin-top: 8px;
  color: #6b8176;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.green-star-list {
  margin-bottom: 12px;
}

.green-star-actions {
  display: grid;
  gap: 10px;
}

.green-star-actions.confirm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.green-star-actions.confirm.single {
  grid-template-columns: 1fr;
}

.green-star-reveal-button,
.green-star-send-button,
.permanent-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.green-star-reveal-button,
.green-star-send-button {
  border: 1px solid #bfe8cf;
  background: #e8f9ef;
  color: #0b633d;
}

.green-star-reveal-button img,
.green-star-send-button img {
  width: 20px;
  height: 20px;
}

.permanent-delete-button {
  border: 1px solid #f0c6bf;
  background: #fff7f5;
  color: var(--red);
}

.trash-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.trash-icon::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -5px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.trash-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -9px;
  width: 7px;
  height: 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

@media (max-width: 520px) {
  .detail-hero {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .detail-hero-text strong {
    font-size: 15px;
  }

  .detail-row,
  .detail-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-row dd {
    text-align: left;
  }

  .detail-input-row input {
    text-align: left;
  }

  .green-star-actions.confirm {
    grid-template-columns: 1fr;
  }
}

/* Compact circular plant cards */
#plantList .plant-card {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 8px 10px;
}

#plantList .plant-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0;
}

#plantList .plant-image-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

#plantList .plant-image.placeholder {
  border-radius: 50%;
}

#plantList .plant-image.placeholder img {
  width: 32px;
  height: 32px;
}

#plantList .plant-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#plantList .plant-title {
  display: grid;
  justify-content: start;
  gap: 4px;
  min-width: 0;
}

#plantList .plant-title h3 {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#plantList .last-watered-text {
  color: #6b8176;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

#plantList .last-watered-text.today {
  color: #20a86b;
}

#plantList .last-watered-text.overdue {
  color: #d35d3f;
}

#plantList .meta {
  display: none;
}

#plantList .card-actions {
  align-self: center;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin-top: 0;
}

#plantList .timeline-button,
#plantList .detail-button,
#plantList .water-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
}

#plantList .water-button img {
  width: 21px;
  height: 21px;
}

#plantList .water-button.watered-today {
  border-color: #075f3b;
  background: #0b7f4e;
  box-shadow: 0 5px 12px rgba(11, 127, 78, 0.34);
}

#plantList .water-button.watered-today img {
  filter: brightness(0) invert(1);
}

#plantList .green-star-card {
  border-color: #bfe8cf;
  background: #f5fcf8;
}

.green-star-card-badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 1px solid #bfe8cf;
  border-radius: 50%;
  background: #e8f9ef;
}

.green-star-card-badge img {
  width: 21px;
  height: 21px;
}

#plantList .clock-icon {
  width: 19px;
  height: 19px;
}

.detail-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  background: #ffffff;
  color: #315f4b;
}

.ellipsis-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.ellipsis-icon i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

#myPlantsView .plant-list-head h2 {
  font-size: 14px;
}

#myPlantsView .plant-list-head span {
  font-size: 11px;
}


/* Main todo refinements */
#mainView #todoListTitle {
  font-size: 15px;
}

#mainView .list-head {
  margin-top: 18px;
}

#mainView .todo-item.today {
  border-color: #cfeada;
  background: #effaf4;
}

#mainView .todo-item.danger {
  border-color: #f0cbc5;
  background: #fff3f1;
}

#mainView .todo-item.repotting {
  border-color: #ead4c4;
  background: #fff6ef;
}

#mainView .todo-item.neutral {
  border-color: #cdddea;
  background: #f2f8fc;
}

@media (max-width: 420px) {
  .mobile-nav strong {
    font-size: 11px;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }
}

/* Mobile-first login screen */
body.login-page {
  min-height: 100dvh;
  background: #f7fbf8;
}

.login-page .login-shell {
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
  place-items: stretch;
}

.login-page .login-hero {
  align-content: center;
  gap: 22px;
  width: min(420px, 100%);
  min-height: calc(100dvh - 44px);
  margin: 0 auto;
}

.login-page .login-brand {
  justify-content: center;
  gap: 12px;
  text-align: left;
}

.login-page .login-icon {
  width: 112px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  object-fit: contain;
}

.login-page .login-brand-text {
  display: grid;
  gap: 2px;
}

.login-page .login-brand .eyebrow {
  margin: 0;
  color: #6b8176;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-page .login-brand h1 {
  margin: 0;
  color: #083b25;
  font-size: 28px;
  line-height: 1;
}

.login-page .login-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
  border: 1px solid #d9eadf;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(32, 42, 36, 0.1);
}

.login-page .login-copy {
  display: grid;
  gap: 7px;
  text-align: center;
}

.login-page .login-copy span {
  justify-self: center;
  border-radius: 999px;
  background: #e8f9ef;
  color: #0b633d;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.login-page .login-copy h2 {
  margin: 0;
  color: #083b25;
  font-size: 21px;
  line-height: 1.25;
}

.login-page .login-copy p {
  margin: 0 auto;
  max-width: 320px;
  color: #6b8176;
  font-size: 13px;
  line-height: 1.5;
}

.login-page .login-provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.login-page .provider-card {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 56px;
  border-radius: 8px;
  padding: 10px 12px;
}

.login-page .provider-card > span {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

.login-page .provider-card strong {
  font-size: 15px;
}

.login-page .provider-card small {
  font-size: 12px;
}

.login-page .provider-card.google {
  border-color: #d9eadf;
  background: #ffffff;
}

.login-page .provider-card.google > span {
  background: #ffffff;
  color: #4285f4;
  box-shadow: inset 0 0 0 1px #d8e2dc;
}

.login-page .provider-card.signout > span::before {
  content: "";
  width: 17px;
  height: 17px;
  background: url("../icons/person.svg") center / contain no-repeat;
}

.login-page .temp-login-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid #e5eee8;
  padding-top: 16px;
}

.login-page .temp-login-head {
  display: grid;
  gap: 2px;
}

.login-page .temp-login-head strong {
  color: #083b25;
  font-size: 13px;
  font-weight: 900;
}

.login-page .temp-login-head small {
  color: #8a9a91;
  font-size: 12px;
  font-weight: 800;
}

.login-page .temp-login-form label {
  gap: 6px;
}

.login-page .temp-login-form label span {
  color: #6b8176;
  font-size: 12px;
}

.login-page .temp-login-form input {
  height: 46px;
  border-color: #d9eadf;
  border-radius: 8px;
  background: #f7fbf8;
  font-size: 15px;
}

.login-page .temp-login-form .primary-button {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
}

@media (min-width: 720px) {
  .login-page .login-shell {
    place-items: center;
    padding: 32px;
  }

  .login-page .login-hero {
    width: min(460px, 100%);
    min-height: auto;
  }
}

@media (max-width: 360px) {
  .login-page .login-dashboard {
    padding: 16px;
  }

  .login-page .login-brand h1 {
    font-size: 24px;
  }

  .login-page .login-copy h2 {
    font-size: 19px;
  }
}









