:root {
  --bg: #f6f3ea;
  --card: #ffffff;
  --green: #3a7d44;
  --green-dark: #2c5e34;
  --green-soft: #e4efe2;
  --green-pale: #f0f5ec;
  --text: #2d3a2e;
  --muted: #7d8a7a;
  --line: #e7e2d4;
  --amber: #c77b30;
  --amber-soft: #faeede;
  --red: #b3492f;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(60, 80, 55, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
}

#view {
  padding: 16px 16px calc(86px + env(safe-area-inset-bottom));
}

h1, h2, h3 { margin: 0; }

button {
  font-family: inherit;
  font-size: 15px;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
}

textarea { resize: vertical; min-height: 84px; }

/* ---------- header ---------- */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.app-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--green-dark);
}
.app-title .leaf { font-size: 22px; }

.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin: 22px 0 10px;
}

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 22px 0 10px;
}
.section-row .section-title { margin: 0; }
.bulk-link {
  color: var(--green);
  font-weight: 700;
  font-size: 13.5px;
  padding: 2px 4px;
}

/* ---------- bulk care sheet ---------- */

.bulk-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
}
.bulk-head label { margin-bottom: 0; }
.bulk-quick { font-size: 13px; color: var(--muted); }
.bulk-quick button { color: var(--green); font-weight: 700; font-size: 13px; padding: 2px 3px; }
.bulk-list {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  max-height: 38dvh;
  overflow-y: auto;
}
.bulk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.bulk-row:last-child { border-bottom: none; }
.bulk-row input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
  flex: none;
}
.bulk-name { flex: 1; font-size: 15px; font-weight: 600; }
.bulk-due { font-size: 12.5px; color: var(--amber); font-weight: 700; }

/* ---------- archived toggle ---------- */

.arch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 99px;
  background: #d9d4c5;
  transition: background 0.2s;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(16px); }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.plant-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--green-soft);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.plant-row-info { flex: 1; min-width: 0; }
.plant-row-name { font-weight: 700; font-size: 16px; }
.plant-row-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.plant-row-sub.overdue { color: var(--red); font-weight: 600; }
.plant-row-sub.due { color: var(--amber); font-weight: 600; }

.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.05s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:disabled:active { transform: none; }
.btn-primary { background: var(--green); color: #fff; flex: 1; }
.btn-secondary { background: var(--green-pale); color: var(--green-dark); flex: 1; }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.btn-danger { background: #f9e9e4; color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }

/* ---------- empty state ---------- */

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty .big { font-size: 44px; margin-bottom: 10px; }
.empty p { margin: 6px 0 16px; font-size: 15px; }

/* ---------- gallery ---------- */

.sort-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 10px 16px;
  margin-bottom: 8px;
  font-size: 14px;
}
.sort-pill .sort-label { color: var(--muted); }
.sort-pill .sort-value { color: var(--green-dark); font-weight: 700; flex: 1; }
.sort-pill svg { flex: none; }
.sort-pill select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px;
}

#gallery-search {
  margin-bottom: 8px;
  border-radius: 99px;
  padding: 10px 16px;
}
#gallery-search::-webkit-search-cancel-button { -webkit-appearance: none; }

.gallery-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 2px 4px 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  display: block;
  width: 100%;
}
.gallery-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-meta { padding: 10px 12px 12px; }
.gallery-name { font-weight: 700; font-size: 15px; }
.gallery-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--amber-soft);
  color: var(--amber);
  margin-top: 6px;
}

/* ---------- tab bar ---------- */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  display: flex;
  background: rgba(255, 255, 254, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 50;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.tab.active { color: var(--green-dark); }
.tab-icon { font-size: 22px; position: relative; filter: grayscale(0.6); }
.tab.active .tab-icon { filter: none; }

.due-badge {
  position: absolute;
  top: -4px;
  right: -12px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- FAB ---------- */

.fab {
  position: fixed;
  bottom: calc(78px + env(safe-area-inset-bottom));
  right: max(18px, calc(50% - 242px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 28px;
  font-weight: 400;
  box-shadow: 0 4px 14px rgba(44, 94, 52, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 49;
}

/* ---------- plant profile ---------- */

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.plant-nav { display: flex; align-items: center; gap: 4px; }
.plant-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}
.plant-nav button:disabled { opacity: 0.35; }
.plant-nav .pos {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  min-width: 54px;
  text-align: center;
}
.back-btn {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
  padding: 6px 10px 6px 0;
}

.hero {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.draggable {
  position: relative;
  touch-action: none;
  cursor: grab;
}
.hero.draggable:active { cursor: grabbing; }
.hero.draggable img { user-select: none; -webkit-user-drag: none; }
.hero-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(30, 40, 30, 0.55);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 99px;
  pointer-events: none;
}

.profile-name { font-size: 24px; font-weight: 800; margin-top: 14px; color: var(--green-dark); }
.profile-type { color: var(--muted); font-size: 15px; margin-top: 2px; }

.archived-banner {
  background: var(--amber-soft);
  color: var(--amber);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 4px; }
.detail-item .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; }
.detail-item .value { font-size: 15px; margin-top: 2px; }
.detail-item .value-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.detail-notes { grid-column: 1 / -1; }
.detail-notes .value { white-space: pre-wrap; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.card-head h3 { font-size: 16px; }
.card-head .edit-link { color: var(--green); font-weight: 700; font-size: 14px; }

.water-status { font-size: 14px; color: var(--muted); }
.water-status strong { color: var(--text); }
.water-status .overdue { color: var(--red); }
.water-status .due { color: var(--amber); }

.tip-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--green-pale);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.tip-text { flex: 1; }
.tip-text b { color: var(--green-dark); }
.tip-x {
  flex: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 2px 0 2px 4px;
}

/* ---------- upcoming-care groups ---------- */

.up-group { padding: 8px 14px; }
.up-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  text-align: left;
}
.up-title { font-weight: 800; font-size: 15px; color: var(--green-dark); flex: 1; }
.up-count {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 800;
  min-width: 24px;
  height: 22px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.up-chev { color: var(--muted); font-size: 13px; width: 14px; text-align: center; }
.up-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.thumb-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.up-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-meta { color: var(--muted); font-size: 13px; flex: none; }
.up-more {
  display: block;
  width: 100%;
  padding: 8px 0 4px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

.due-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.due-info { font-weight: 600; flex: 1; min-width: 0; }
.due-info.overdue { color: var(--red); }
.due-info.due { color: var(--amber); }
.due-actions { display: flex; gap: 6px; flex: none; }
.due-actions .btn { white-space: nowrap; }

.sched-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}
.sched-info { flex: 1; }
.sched-info b { color: var(--green-dark); }

.sug-box {
  margin-top: 10px;
  background: var(--green-pale);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sug-box .sug-text { flex: 1; }
.sug-box .btn { flex: none; }

/* ---------- photos strip ---------- */

.photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  -webkit-overflow-scrolling: touch;
}
.photo-strip::-webkit-scrollbar { display: none; }

.strip-photo {
  position: relative;
  flex: none;
  width: 86px;
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--green-soft);
}
.strip-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-photo .star {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(255,255,255,0.92);
  border-radius: 99px;
  font-size: 12px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.strip-add {
  flex: none;
  width: 86px; height: 86px;
  border-radius: 14px;
  border: 2px dashed var(--line);
  color: var(--muted);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* ---------- history ---------- */

.log-item {
  display: flex;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.log-item:last-child { border-bottom: none; }
.log-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.log-body { flex: 1; min-width: 0; }
.log-title { font-weight: 700; font-size: 14.5px; }
.log-date { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.log-note { font-size: 14px; margin-top: 4px; white-space: pre-wrap; }
.log-extra { font-size: 13px; color: var(--green-dark); margin-top: 4px; background: var(--green-pale); border-radius: 8px; padding: 6px 9px; display: inline-block; }
.log-actions { display: flex; flex-direction: column; gap: 6px; }
.log-actions button { font-size: 13px; color: var(--muted); padding: 3px 6px; }
.log-actions button:first-child { color: var(--green); font-weight: 600; }

/* ---------- sheet ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 50, 40, 0.45);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  animation: slideup 0.22s ease-out;
}
@keyframes slideup {
  from { transform: translateY(40px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-grab {
  padding: 8px 0 10px;
  margin: -10px -18px 2px;
  touch-action: none;
  cursor: grab;
}
.sheet-grab:active { cursor: grabbing; }
.sheet-handle {
  width: 38px; height: 4px;
  border-radius: 99px;
  background: #d6d1c2;
  margin: 0 auto;
}
.sheet h2 { font-size: 19px; margin-bottom: 14px; color: var(--green-dark); }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.seg button {
  padding: 9px 4px;
  border-radius: 11px;
  background: var(--card);
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.seg button.sel { background: var(--green); border-color: var(--green); color: #fff; }
.seg button:disabled { opacity: 0.35; }

.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-divider { height: 1px; background: var(--line); margin: 18px 0 12px; }
.danger-link {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  margin-top: 4px;
}

.reason-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}
.reason-btn .emoji { font-size: 22px; }
.reason-btn .desc { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 1px; }

/* ---------- photo viewer ---------- */

.viewer-wrap {
  position: relative;
  touch-action: pan-y;
}
.viewer-img {
  width: 100%;
  border-radius: 14px;
  max-height: 52dvh;
  object-fit: contain;
  background: #222a22;
  display: block;
}
.viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 254, 0.92);
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.viewer-arrow.left { left: 10px; }
.viewer-arrow.right { right: 10px; }
.viewer-caption { font-size: 14px; color: var(--muted); margin: 10px 2px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 600;
  max-width: 86%;
  text-align: center;
}

/* ---------- add-to-home-screen banner ---------- */

.install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  margin: 0 auto;
  max-width: 520px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
}
.ib-x {
  flex: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px 8px 2px;
  line-height: 1;
}
.ib-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
}
.ib-icon { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.ib-text { flex: 1; min-width: 0; line-height: 1.25; }
.ib-text b { display: block; font-size: 14.5px; color: var(--green-dark); }
.ib-sub { display: block; font-size: 12.5px; color: var(--muted); }
.ib-cta {
  flex: none;
  background: var(--green);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 99px;
}

body.has-install-banner #app { padding-top: 52px; }
body.has-install-banner .auth-screen { padding-top: 76px; }

/* install instructions sheet */
.install-hero { text-align: center; font-size: 46px; line-height: 1; margin: 4px 0 6px; }
.install-lead { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 16px; line-height: 1.5; }
.install-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-pale);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.install-step .num {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-step svg { flex: none; color: var(--green-dark); }
.install-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 2px 0;
  text-align: center;
}

/* ---------- auth ---------- */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-box { width: 100%; max-width: 340px; text-align: center; }
.auth-logo { font-size: 54px; }
.auth-title { color: var(--green-dark); font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 4px 0 6px; }
.auth-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.auth-box input { text-align: center; font-size: 17px; margin-bottom: 12px; }
#auth-code { letter-spacing: 4px; font-weight: 700; font-size: 20px; }
.auth-sent { font-size: 14px; color: var(--muted); margin: 0 0 10px; overflow-wrap: anywhere; }
.auth-back { color: var(--green); font-weight: 700; font-size: 14px; margin-top: 16px; }
.auth-error { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 14px; }

.signed-in { text-align: center; color: var(--muted); font-size: 13px; margin: 28px 0 4px; }
.signed-in button { color: var(--green); font-weight: 700; font-size: 13px; }

.hidden { display: none !important; }
.hidden-input { position: fixed; left: -9999px; }
