:root {
  color-scheme: light;
  --bg: #f3f5f1;
  --bg-2: #e7ece6;
  --card: rgba(255, 255, 255, .86);
  --card-solid: #ffffff;
  --card-soft: rgba(39, 72, 63, .055);
  --stroke: rgba(36, 58, 52, .105);
  --stroke-strong: rgba(36, 58, 52, .18);
  --text: #20302b;
  --muted: #5f6f68;
  --muted-2: #627169;
  --accent: #2f6f61;
  --accent-strong: #23584d;
  --accent-soft: rgba(47, 111, 97, .12);
  --accent-glow: rgba(82, 145, 127, .22);
  --red: #a9473b;
  --red-soft: rgba(189, 88, 73, .11);
  --green: #3f7454;
  --green-soft: rgba(79, 134, 101, .12);
  --amber: #8d6629;
  --amber-soft: rgba(173, 129, 56, .13);
  --blue: #4a6f82;
  --blue-soft: rgba(82, 120, 139, .12);
  --shadow: 0 14px 38px rgba(34, 65, 55, .09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 17px;
  --radius-sm: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.ambient { position: fixed; pointer-events: none; filter: blur(90px); opacity: .32; border-radius: 50%; z-index: 0; }
.ambient-one { width: 300px; height: 300px; background: #a9c7b9; top: -150px; right: -125px; opacity: .42; }
.ambient-two { width: 280px; height: 280px; background: #b8c9d0; left: -175px; top: 38%; opacity: .28; }

.app-shell { position: relative; z-index: 1; width: min(100%, 780px); min-height: 100dvh; margin: 0 auto; padding-top: var(--safe-top); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; background: linear-gradient(180deg, rgba(243,245,241,.98) 58%, rgba(243,245,241,.88) 78%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.eyebrow { margin: 0 0 4px; color: var(--accent); letter-spacing: .16em; font-size: 11px; font-weight: 800; }
h1 { margin: 0; font-size: 30px; line-height: 1.05; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
p { line-height: 1.45; }
.main-content { padding: 8px 16px calc(104px + var(--safe-bottom)); }

.icon { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; }
.icon svg { width: 100%; height: 100%; display: block; }
.icon-button { border: 1px solid var(--stroke); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.76); box-shadow: 0 7px 18px rgba(34,65,55,.06), inset 0 1px 0 rgba(255,255,255,.85); cursor: pointer; }
.icon-button:active { transform: scale(.96); }

.tabbar { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 780px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 8px calc(7px + var(--safe-bottom)); background: rgba(249, 250, 247, .92); border-top: 1px solid var(--stroke); backdrop-filter: blur(25px) saturate(135%); -webkit-backdrop-filter: blur(25px) saturate(135%); }
.tab { appearance: none; border: 0; background: transparent; color: #87938e; padding: 4px 1px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 700; cursor: pointer; }
.tab .icon { width: 23px; height: 23px; }
.tab.active { color: var(--accent); }
.tab:active { transform: scale(.96); }

.hero-card, .glass-card, .task-card, .asset-card, .record-card, .section-card { border: 1px solid var(--stroke); background: var(--card); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.hero-card { border-radius: var(--radius-xl); padding: 22px; margin-bottom: 18px; overflow: hidden; position: relative; }
.hero-card::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 70%); right: -75px; top: -80px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-title { font-size: 25px; font-weight: 760; letter-spacing: -.035em; margin: 0 0 6px; }
.hero-subtitle { margin: 0; color: var(--muted); font-size: 14px; }
.score-ring { --score: 0deg; width: 82px; height: 82px; flex: 0 0 82px; border-radius: 50%; background: conic-gradient(var(--accent) var(--score), rgba(47,111,97,.10) 0); display: grid; place-items: center; position: relative; }
.score-ring::before { content: ""; width: 64px; height: 64px; position: absolute; border-radius: 50%; background: #ffffff; }
.score-ring strong, .score-ring span { position: relative; z-index: 1; }
.score-ring strong { font-size: 21px; }
.score-ring span { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.score-inner { text-align: center; display: flex; flex-direction: column; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.metric { background: var(--card-soft); border: 1px solid rgba(36,58,52,.055); border-radius: 15px; padding: 11px 8px; text-align: center; }
.metric strong { display: block; font-size: 19px; line-height: 1.1; }
.metric span { color: var(--muted); font-size: 10px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 4px 2px 10px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.text-button { border: 0; background: transparent; color: var(--accent); font-weight: 700; padding: 6px 0; cursor: pointer; }

.task-list, .record-list, .asset-list { display: grid; gap: 11px; margin-bottom: 22px; }
.task-card { border-radius: var(--radius-lg); padding: 15px; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; gap: 12px; align-items: center; cursor: pointer; }
.task-card:active, .asset-card:active, .record-card:active { transform: scale(.992); }
.complete-button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(47,111,97,.24); background: rgba(255,255,255,.72); display: grid; place-items: center; cursor: pointer; }
.complete-button .icon { width: 20px; height: 20px; opacity: .65; }
.complete-button:active { background: var(--green-soft); color: var(--green); transform: scale(.94); }
.task-title { font-size: 15px; font-weight: 750; margin: 0 0 5px; }
.task-meta { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.task-meta .dot::before { content: "•"; margin-right: 5px; color: var(--muted-2); }
.chevron { color: var(--muted-2); width: 17px; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; letter-spacing: .015em; margin-top: 7px; }
.status-overdue { color: var(--red); background: var(--red-soft); }
.status-today { color: var(--accent); background: var(--accent-soft); }
.status-soon { color: var(--amber); background: var(--amber-soft); }
.status-scheduled { color: var(--blue); background: var(--blue-soft); }
.status-paused, .status-offseason { color: var(--muted); background: rgba(47,111,97,.065); }

.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 12px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; border: 1px solid var(--stroke); background: rgba(255,255,255,.66); color: var(--muted); border-radius: 999px; padding: 9px 13px; font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-chip.active { background: var(--accent-soft); border-color: rgba(47,111,97,.34); color: var(--accent); }
.search-box { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.78); border: 1px solid var(--stroke); border-radius: 16px; padding: 11px 13px; margin-bottom: 12px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-box input::placeholder { color: var(--muted-2); }
.search-box .icon { color: var(--muted); width: 19px; }

.asset-card { border-radius: var(--radius-lg); padding: 17px; cursor: pointer; }
.asset-top { display: flex; align-items: center; gap: 13px; }
.asset-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.asset-icon .icon { width: 25px; height: 25px; }
.asset-main { min-width: 0; flex: 1; }
.asset-main h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.asset-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 15px; }
.asset-stat { background: var(--card-soft); border-radius: 12px; padding: 9px; }
.asset-stat strong { display: block; font-size: 15px; }
.asset-stat span { color: var(--muted); font-size: 10px; }
.asset-mileage { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 12px; }

.record-card { border-radius: var(--radius-lg); padding: 15px; cursor: pointer; }
.record-header { display: flex; align-items: flex-start; gap: 12px; }
.record-check { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 13px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.record-check .icon { width: 20px; }
.record-content { min-width: 0; flex: 1; }
.record-title { margin: 0 0 4px; font-weight: 740; font-size: 15px; }
.record-meta { color: var(--muted); font-size: 12px; }
.record-note { margin: 10px 0 0; color: #53635c; font-size: 13px; }

.empty-state { padding: 34px 22px; border-radius: var(--radius-xl); border: 1px dashed var(--stroke-strong); text-align: center; color: var(--muted); background: rgba(255,255,255,.48); }
.empty-state .icon { width: 42px; height: 42px; color: var(--muted-2); margin-bottom: 9px; }
.empty-state h3 { color: var(--text); margin-bottom: 7px; }
.empty-state p { margin: 0 auto 16px; max-width: 330px; font-size: 13px; }

.install-card { border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; border: 1px solid rgba(47,111,97,.22); background: linear-gradient(135deg, rgba(47,111,97,.105), rgba(255,255,255,.76)); }
.install-row { display: flex; align-items: flex-start; gap: 12px; }
.install-card h3 { margin-bottom: 4px; }
.install-card p { color: #5e6e67; font-size: 12px; margin: 0; }
.install-actions { display: flex; gap: 8px; margin-top: 12px; }

.settings-list { display: grid; gap: 10px; }
.setting-card { border: 1px solid var(--stroke); background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }
.setting-row { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 13px; padding: 15px; text-align: left; cursor: pointer; }
.setting-row + .setting-row { border-top: 1px solid var(--stroke); }
.setting-row .setting-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.setting-copy { min-width: 0; flex: 1; }
.setting-copy strong { display: block; font-size: 14px; margin-bottom: 3px; }
.setting-copy span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.danger { color: var(--red) !important; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(23, 39, 34, .34); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .18s ease; }
.modal-sheet { width: min(100%, 780px); max-height: 93dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 30px 30px 0 0; background: #ffffff; border: 1px solid var(--stroke-strong); border-bottom: 0; padding: 10px 18px calc(20px + var(--safe-bottom)); box-shadow: 0 -24px 70px rgba(28,55,46,.22); animation: slideUp .24s cubic-bezier(.22,.8,.24,1); }
.modal-handle { width: 42px; height: 5px; border-radius: 999px; margin: 2px auto 13px; background: rgba(47,111,97,.20); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.close-button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(47,111,97,.09); display: grid; place-items: center; cursor: pointer; }

.form-grid { display: grid; gap: 13px; }
.field { display: grid; gap: 7px; }
.field label { color: #53645d; font-size: 11px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255,255,255,.78); color: var(--text); padding: 12px 13px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(47,111,97,.58); box-shadow: 0 0 0 3px rgba(47,111,97,.10); }
.field textarea { min-height: 90px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--stroke); border-radius: 15px; background: rgba(255,255,255,.60); padding: 12px 13px; }
.checkbox-row span { font-size: 13px; }
.switch { position: relative; width: 50px; height: 29px; flex: 0 0 50px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; border-radius: 999px; background: rgba(47,111,97,.17); transition: .2s; }
.switch-slider::before { content: ""; position: absolute; width: 23px; height: 23px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.switch input:checked + .switch-slider { background: var(--accent); }
.switch input:checked + .switch-slider::before { transform: translateX(21px); }
.form-section-title { margin: 7px 0 -1px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.helper-text { margin: -1px 2px 0; color: var(--muted-2); font-size: 11px; }

.button-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 18px; }
.primary-button, .secondary-button, .danger-button { border-radius: 15px; min-height: 49px; font-weight: 780; border: 1px solid transparent; cursor: pointer; }
.primary-button { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: white; box-shadow: 0 10px 28px rgba(47,111,97,.20); }
.secondary-button { background: rgba(47,111,97,.065); border-color: var(--stroke); color: var(--text); }
.danger-button { background: var(--red-soft); border-color: rgba(189,88,73,.22); color: var(--red); }
.full-width { width: 100%; }
.small-button { min-height: 38px; padding: 0 13px; border-radius: 12px; }

.detail-hero { border-radius: var(--radius-xl); border: 1px solid var(--stroke); background: linear-gradient(145deg, rgba(47,111,97,.10), rgba(255,255,255,.78)); padding: 18px; margin-bottom: 14px; }
.detail-hero-top { display: flex; gap: 13px; align-items: flex-start; }
.detail-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.detail-icon .icon { width: 25px; height: 25px; }
.detail-hero p { color: #5b6a64; font-size: 13px; margin: 10px 0 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.detail-cell { border-radius: 13px; background: rgba(47,111,97,.055); padding: 11px; }
.detail-cell span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.detail-cell strong { font-size: 13px; }

.photo-preview { width: 100%; max-height: 240px; object-fit: cover; border-radius: 16px; border: 1px solid var(--stroke); margin-top: 8px; }
.pool-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.info-banner { display: flex; gap: 10px; padding: 12px; background: var(--blue-soft); color: #496a78; border: 1px solid rgba(82,120,139,.20); border-radius: 14px; font-size: 12px; }
.info-banner .icon { flex: 0 0 19px; }

.toast-root { position: fixed; left: 50%; bottom: calc(91px + var(--safe-bottom)); transform: translateX(-50%); width: min(calc(100% - 30px), 500px); z-index: 200; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; border: 1px solid var(--stroke-strong); border-radius: 15px; background: rgba(255,255,255,.97); padding: 12px 14px; box-shadow: var(--shadow); animation: toastIn .2s ease; font-size: 13px; }
.toast .icon { color: var(--green); }

.schedule-tools { display: flex; justify-content: flex-end; margin: 1px 0 12px; }
.calendar-export-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; }
.calendar-export-button .icon { width: 19px; height: 19px; }
.calendar-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 12px 0 14px; }
.calendar-summary .detail-cell { background: rgba(47,111,97,.06); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 700px) {
  .main-content { padding-left: 24px; padding-right: 24px; }
  .task-list, .asset-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .history-route .record-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 390px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .field-row { grid-template-columns: 1fr; }
  .task-card { grid-template-columns: 42px minmax(0,1fr) 12px; gap: 10px; }
}

/* Steward 2.0 */
.task-card { grid-template-columns: 56px minmax(0,1fr) auto; }
.task-leading { width: 54px; height: 54px; position: relative; display: grid; place-items: center; }
.task-category-icon { width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; border: 1px solid transparent; }
.task-category-icon .icon { width: 24px; height: 24px; }
.mini-complete { position: absolute; right: -1px; bottom: -2px; width: 25px; height: 25px; border-radius: 50%; border: 2px solid white; background: var(--card-solid); color: var(--muted); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(34,65,55,.16); cursor: pointer; }
.mini-complete .icon { width: 13px; height: 13px; }
.mini-complete:active { color: var(--green); background: var(--green-soft); transform: scale(.92); }
.task-body { min-width: 0; }
.task-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.task-title-row .task-title { min-width: 0; flex: 1; }
.category-badge { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; border-radius: 999px; padding: 3px 7px; font-size: 9px; font-weight: 800; line-height: 1; }
.category-badge .icon { width: 12px; height: 12px; }
.inline-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; }
.inline-badges .status-pill, .inline-badges .category-badge { margin-top: 0; }

.category-home { background: rgba(91,126,91,.13); color: #527555; border-color: rgba(91,126,91,.16); }
.category-auto { background: rgba(80,96,137,.12); color: #506089; border-color: rgba(80,96,137,.16); }
.category-pool { background: rgba(61,126,153,.13); color: #35718a; border-color: rgba(61,126,153,.17); }
.category-safety { background: rgba(178,94,66,.13); color: #a05239; border-color: rgba(178,94,66,.18); }
.category-other { background: rgba(115,105,94,.11); color: #6f655b; border-color: rgba(115,105,94,.15); }
.detail-icon.category-home, .detail-icon.category-auto, .detail-icon.category-pool, .detail-icon.category-safety, .detail-icon.category-other { background: inherit; }

.quick-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.quick-tool { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 12px; border: 1px solid var(--stroke); border-radius: 18px; background: rgba(255,255,255,.73); box-shadow: 0 8px 24px rgba(34,65,55,.055); text-align: left; cursor: pointer; }
.quick-tool > .icon { width: 35px; height: 35px; padding: 7px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.quick-tool span { min-width: 0; display: grid; gap: 2px; }
.quick-tool strong { font-size: 13px; }
.quick-tool small { font-size: 10px; color: var(--muted); }

.insight-list { display: grid; gap: 9px; margin-bottom: 22px; }
.insight-card { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--stroke); border-radius: 17px; background: rgba(255,255,255,.74); text-align: left; cursor: pointer; }
.insight-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.insight-icon .icon { width: 21px; height: 21px; }
.insight-copy { min-width: 0; flex: 1; }
.insight-copy strong { display: block; font-size: 13px; margin-bottom: 3px; }
.insight-copy small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.tone-danger .insight-icon { background: var(--red-soft); color: var(--red); }
.tone-warning .insight-icon { background: var(--amber-soft); color: var(--amber); }
.tone-success .insight-icon { background: var(--green-soft); color: var(--green); }
.tone-info .insight-icon { background: var(--blue-soft); color: var(--blue); }

.setting-section-label { padding: 7px 5px 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.detail-wide { grid-column: 1 / -1; }
.wide-modal { width: min(100%, 860px); }
.frequency-note { display: flex; align-items: center; gap: 9px; min-height: 46px; border: 1px solid var(--stroke); border-radius: 14px; padding: 11px 12px; color: var(--muted); background: rgba(255,255,255,.55); font-size: 12px; }
.frequency-note .icon { color: var(--accent); }

.segmented-control { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; background: var(--card-soft); border: 1px solid var(--stroke); padding: 4px; border-radius: 14px; margin-bottom: 13px; }
.segmented-control button { border: 0; border-radius: 10px; padding: 9px 5px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.segmented-control button.active { background: white; color: var(--accent); box-shadow: 0 3px 12px rgba(34,65,55,.09); }
.summary-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 13px; }
.summary-strip > div { border: 1px solid var(--stroke); border-radius: 14px; background: rgba(255,255,255,.68); padding: 11px 8px; text-align: center; }
.summary-strip strong { display: block; font-size: 17px; }
.summary-strip span { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.forecast-groups { margin-top: 15px; }
.forecast-group { margin-bottom: 17px; }
.forecast-group > h3 { font-size: 13px; color: var(--muted); padding: 0 3px 7px; text-transform: uppercase; letter-spacing: .08em; }
.forecast-row { width: 100%; border: 1px solid var(--stroke); border-radius: 15px; background: rgba(255,255,255,.72); padding: 10px; margin-bottom: 7px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; gap: 9px; align-items: center; text-align: left; cursor: pointer; }
.forecast-date { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; align-content: center; color: var(--accent); }
.forecast-date strong { font-size: 16px; line-height: 1; }
.forecast-date small { font-size: 8px; text-transform: uppercase; }
.forecast-copy { min-width: 0; }
.forecast-copy strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forecast-copy small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }

.bar-list { display: grid; gap: 11px; }
.bar-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 5px; }
.bar-row span { color: var(--muted); }
.bar-track { height: 9px; border-radius: 999px; background: var(--card-soft); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),#709d91); }
.month-chart { height: 150px; display: grid; grid-template-columns: repeat(12,1fr); gap: 4px; align-items: end; border: 1px solid var(--stroke); border-radius: 17px; padding: 12px 9px 8px; background: rgba(255,255,255,.60); }
.month-column { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 5px; text-align: center; }
.month-bar-wrap { min-height: 0; display: flex; align-items: end; justify-content: center; }
.month-bar-wrap i { width: 65%; max-width: 18px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg,#5f8d82,var(--accent)); }
.month-column span { color: var(--muted); font-size: 8px; }

.library-list { display: grid; gap: 9px; }
.library-card { display: flex; align-items: center; gap: 11px; border: 1px solid var(--stroke); border-radius: 17px; background: rgba(255,255,255,.72); padding: 13px; cursor: pointer; }
.library-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.library-copy { min-width: 0; flex: 1; }
.library-title { display: flex; align-items: center; gap: 6px; }
.library-title strong { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-copy > small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.library-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.mini-pill { display: inline-flex; border-radius: 999px; padding: 3px 6px; font-size: 8px; font-weight: 800; }
.mini-pill.warning { background: var(--amber-soft); color: var(--amber); }
.mini-pill.danger { background: var(--red-soft); color: var(--red); }
.low-stock, .expiring { border-color: rgba(173,129,56,.30); }
.expired { border-color: rgba(189,88,73,.30); }
.link-button { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 0 14px; }

.trend-grid { display: grid; gap: 10px; margin-bottom: 13px; }
.trend-card { border: 1px solid var(--stroke); border-radius: 17px; background: rgba(255,255,255,.70); padding: 12px; overflow: hidden; }
.trend-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.trend-title strong { font-size: 13px; }
.trend-title span { color: var(--accent); font-size: 12px; font-weight: 750; }
.trend-card svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-axis { stroke: rgba(36,58,52,.14); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart-point { fill: white; stroke: var(--accent); stroke-width: 2; }
.chart-label { fill: var(--muted); font-size: 8px; }
.trend-empty { height: 92px; display: grid; place-items: center; color: var(--muted-2); font-size: 11px; text-align: center; }

.checklist-stack { display: grid; gap: 13px; }
.checklist-card { border: 1px solid var(--stroke); border-radius: 19px; background: rgba(255,255,255,.70); overflow: hidden; }
.checklist-header { display: flex; align-items: center; gap: 11px; padding: 14px; }
.checklist-header > div:nth-child(2) { min-width: 0; flex: 1; }
.checklist-header h3 { font-size: 14px; }
.checklist-header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.checklist-season { width: 39px; height: 39px; flex: 0 0 39px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.progress-track { height: 5px; background: var(--card-soft); margin: 0 14px 10px; border-radius: 999px; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.checklist-items { border-top: 1px solid var(--stroke); }
.checklist-item { width: 100%; border: 0; border-bottom: 1px solid var(--stroke); background: transparent; display: flex; align-items: center; gap: 10px; padding: 11px 14px; text-align: left; font-size: 12px; cursor: pointer; }
.checklist-item:last-child { border-bottom: 0; }
.checklist-item.done { color: var(--muted); text-decoration: line-through; }
.check-circle { width: 24px; height: 24px; flex: 0 0 24px; border: 1.5px solid var(--stroke-strong); border-radius: 50%; display: grid; place-items: center; color: white; }
.check-circle .icon { width: 13px; }
.checklist-item.done .check-circle { background: var(--green); border-color: var(--green); }

.step-list { display: grid; gap: 10px; margin-bottom: 14px; }
.step-list > div { display: flex; align-items: center; gap: 12px; border: 1px solid var(--stroke); border-radius: 15px; padding: 12px; background: rgba(255,255,255,.60); }
.step-list strong { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.step-list span { font-size: 12px; }
.danger-banner { background: var(--red-soft); color: var(--red); border-color: rgba(189,88,73,.22); }
.warning-banner { background: var(--amber-soft); color: var(--amber); border-color: rgba(173,129,56,.22); }

@media (min-width:700px) {
  .quick-tool-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .trend-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:390px) {
  .task-card { grid-template-columns: 52px minmax(0,1fr) 12px; }
  .task-title-row { display: block; }
  .task-title-row .category-badge { margin-bottom: 5px; }
  .forecast-row { grid-template-columns: 40px minmax(0,1fr) auto; }
  .forecast-row .category-badge { display: none; }
  .summary-strip strong { font-size: 14px; }
}
