/* Web planner (/planner): the app's look on a bigger screen. Builds on
   styles.css (palette, nav, buttons). Classes are w- prefixed so the site's
   own (.plant, .card…) don't leak in. */
:root {
  --overdue: #C62828;
  --today: #D9542B;
  --upcoming: #1B7FC4;
  --done: #6F7B69;
}
.ms { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; user-select: none; }

.w-main { padding-top: 20px; padding-bottom: 64px; max-width: 960px; }
.w-signin h1 { font-size: 2.1rem; font-weight: 900; margin-bottom: 6px; }
.w-signin .lead { color: var(--muted); margin-bottom: 22px; max-width: 40rem; }
.w-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; max-width: 460px; }
.w-panel label, .w-field label { display: block; font-weight: 800; margin: 0 0 6px; }
.w-panel input, .w-field input, .w-field select, .w-field textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1.05rem; background: var(--bg); color: var(--text); margin-bottom: 14px;
}
.w-field textarea { min-height: 96px; resize: vertical; }
.w-panel .btn { width: 100%; }
.btn { min-height: 52px; border: none; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.02rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-outline { background: var(--surface); color: var(--green-strong); border: 1.5px solid var(--line); }
.w-msg { margin-top: 12px; color: var(--muted); }
.w-msg.err { color: var(--overdue); font-weight: 700; }
.w-upsell { background: var(--green-pale); border-radius: 20px; padding: 24px; max-width: 560px; }
.w-upsell h2 { font-weight: 900; margin-bottom: 6px; }

/* Bar + tabs */
.w-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.w-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px; overflow-x: auto; }
.w-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 800; white-space: nowrap; }
.w-tabs a .ms { font-size: 22px; }
.w-tabs a.on { background: var(--green-pale); color: var(--green-dark); }
.w-who { color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.w-link { background: none; border: none; color: var(--green-strong); font: inherit; font-weight: 800; cursor: pointer; min-height: 44px; padding: 0 6px; }

/* Header (Today) */
.w-date { color: var(--green); font-weight: 800; letter-spacing: .06em; font-size: .9rem; }
.w-hello { font-size: 2.3rem; font-weight: 900; line-height: 1.1; margin: 2px 0 10px; }
.w-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.w-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--text); border-radius: 99px; padding: 6px 12px; font-weight: 700; font-size: .95rem; }
.w-pill .ms { font-size: 20px; }

.w-summary { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; margin-bottom: 8px; }
.w-summary.done { background: var(--green-pale); border-color: transparent; }
.w-ring { width: 72px; height: 72px; flex: none; }
.w-summary b { font-size: 1.45rem; font-weight: 900; display: block; }
.w-summary span { color: var(--muted); }

.w-h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; margin: 22px 0 10px; }
.w-h2 .w-count { background: var(--surface-2); border-radius: 99px; padding: 2px 10px; font-size: .95rem; }
.w-h2 .w-more { margin-left: auto; font-size: 1rem; }
.w-h2.overdue { color: var(--overdue); }

/* Job tiles */
.w-task { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 12px 14px; margin-bottom: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.w-task:hover { box-shadow: var(--shadow); }
.w-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.w-ic .ms { font-size: 28px; }
.w-task .w-body { flex: 1; min-width: 0; }
.w-sub { color: var(--muted); font-size: 1rem; }
.w-task b { display: block; font-size: 1.15rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.w-task .w-sub { color: var(--muted); }
.w-task .w-due { font-weight: 700; }
.w-task.done b { text-decoration: line-through; color: var(--muted); }
.w-check { width: 52px; height: 52px; border-radius: 50%; border: none; background: none; color: var(--green); cursor: pointer; display: grid; place-items: center; flex: none; }
.w-check .ms { font-size: 36px; }
.w-check:hover { background: var(--green-pale); }

.w-seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.w-seg a { display: inline-flex; align-items: center; gap: 6px; padding: 0 20px; min-height: 48px; text-decoration: none; color: var(--text); font-weight: 800; }
.w-seg a.on { background: var(--terra-pale); }

.w-empty { color: var(--muted); padding: 24px 0; }

/* Garden */
.w-garden-head { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; flex-wrap: wrap; }
.w-garden-head h2 { font-size: 1.35rem; font-weight: 900; margin-right: auto; }
.w-plants { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.w-plant { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; text-decoration: none; color: inherit; }
.w-plant:hover { box-shadow: var(--shadow); }
.w-thumb { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; }
.w-plant b { display: block; font-size: 1.15rem; }
.w-plant .w-next { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-plant .w-next { font-weight: 700; font-size: .95rem; }

/* Detail pages */
.w-back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--green-strong); font-weight: 800; min-height: 44px; margin-bottom: 6px; }
.w-hero { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: start; margin-bottom: 8px; }
.w-hero img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.w-hero h1, .w-detail h1 { font-size: 2rem; font-weight: 900; line-height: 1.15; margin-bottom: 6px; }
.w-detail { max-width: 720px; }
.w-detail .w-ic { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 12px; }
.w-detail .w-ic .ms { font-size: 34px; }
.w-callout { display: flex; gap: 12px; background: var(--sky-pale); border-radius: 16px; padding: 14px; margin: 14px 0; }
.w-plantcard { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; text-decoration: none; color: inherit; margin: 16px 0; }
.w-plantcard img, .w-plantcard .w-thumb { width: 56px; height: 56px; }
.w-section-title { font-size: 1.15rem; font-weight: 800; margin: 22px 0 6px; }
.w-steps { background: var(--surface-2); border-radius: 16px; padding: 16px; white-space: pre-line; }
.w-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; max-width: 460px; }
.w-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.w-photos figure { margin: 0; }
.w-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.w-photos figcaption { font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* Add plant */
.w-search { display: flex; gap: 10px; margin-bottom: 14px; }
.w-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.w-result { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; cursor: pointer; font: inherit; text-align: left; color: inherit; }
.w-result img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.w-result:hover { box-shadow: var(--shadow); }
.w-radio { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.w-radio label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 700; background: var(--surface); }
.w-radio input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; min-height: 0; }
.w-checkline { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; margin-bottom: 10px; }
.w-checkline input { width: 22px; height: 22px; accent-color: var(--green); }

/* Dialog + toast */
.w-dialog { margin: auto; border: none; border-radius: 24px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.w-dialog::backdrop { background: rgba(11, 30, 14, .45); }
.w-dialog form { padding: 22px; }
.w-dialog h2 { font-size: 1.35rem; font-weight: 900; margin-bottom: 2px; }
.w-dialog .w-sub { color: var(--muted); margin-bottom: 16px; }
.w-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--green-dark); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; z-index: 10; max-width: calc(100vw - 32px); }

/* Printed plan: compact, real dates, one line per job */
.w-ptitle { font-size: 1.3rem; font-weight: 900; margin: 4px 0 6px; }
.w-pgroup { font-size: 1rem; font-weight: 900; color: var(--green-dark); margin: 14px 0 4px; padding-bottom: 3px; border-bottom: 2px solid var(--green); }
.w-pgroup.overdue { color: var(--overdue); border-color: var(--overdue); }
.w-ptable { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .98rem; table-layout: fixed; }
/* Fixed columns: dates line up from one week to the next. */
.w-ptable .c-box { width: 30px; }
.w-ptable .c-date { width: 13em; }
.w-ptable .c-plant { width: 12em; }
.w-pplant-in { display: none; }
.w-ptable td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.w-pbox { width: 26px; }
.w-pbox span { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--green); border-radius: 3px; margin-top: 3px; }
.w-pdate { font-weight: 800; }
.w-pdate.overdue { color: var(--overdue); }
.w-pjob a { color: var(--text); text-decoration: none; font-weight: 700; }
.w-pjob a:hover { text-decoration: underline; }
.w-popt { font-size: .8rem; color: var(--muted); font-weight: 700; }
.w-pplant { color: var(--muted); text-align: right; }

/* Print */
.w-print-head { display: none; }
@media print {
  body::before, .nav, footer, .w-bar, .no-print, .w-toast { display: none !important; }
  body { background: white; }
  .w-main { padding: 0; max-width: none; }
  .w-print-head { display: block; margin-bottom: 12px; }
  .w-task { border-color: #bbb; break-inside: avoid; padding: 6px 8px; }
  @page { margin: 12mm; }
  .w-ptitle { font-size: 14pt; }
  .w-pgroup { font-size: 11pt; margin-top: 10px; break-after: avoid; }
  .w-ptable { font-size: 9.5pt; background: none; }
  .w-ptable td { padding: 3px 6px; border-color: #ccc; }
  .w-ptable tr { break-inside: avoid; }
  .w-pjob a { color: black; }
  .w-check, .w-ic { display: none; }
  .w-print-box { display: inline-block !important; width: 16px; height: 16px; border: 2px solid #2E8B3A; border-radius: 4px; flex: none; }
}
.w-print-box { display: none; }

@media (max-width: 640px) {
  .w-ptable .c-date { width: 7.5em; }
  .w-ptable .c-plant { width: 0; }
  .w-pplant { display: none; }
  .w-pplant-in { display: block; color: var(--muted); font-size: .92rem; }
  .w-bar { flex-direction: column; align-items: stretch; }
  .w-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 20px; }
  .w-tabs a { flex-direction: column; gap: 2px; min-height: 56px; padding: 6px 2px; border-radius: 16px; font-size: .88rem; justify-content: center; }
  .w-who { justify-content: flex-end; }
  .w-hero { grid-template-columns: 1fr; }
  .w-hero img { max-height: 280px; }
  .w-hello { font-size: 1.9rem; }
  .w-who #who { display: none; }
}

/* Plant page: the later jobs, faded and undated (like the app). */
.w-later-head { color: var(--muted); font-weight: 700; margin: 6px 0 8px 4px; }
.w-later { list-style: none; margin: 0 0 18px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; opacity: .62; }
.w-later li { display: flex; align-items: center; gap: 16px; padding: 11px 16px; font-size: 1.05rem; }
.w-later li + li { border-top: 1px solid var(--line); }
.w-later li > .ms { color: var(--muted); }
.w-later li > span:not(.ms) { flex: 1; display: grid; }
.w-later em { font-style: normal; font-size: .9rem; color: var(--muted); }
.w-later small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; }
.w-later small .ms { font-size: 16px; }
