:root {
    --pine-950: #09271e;
    --pine-900: #10382a;
    --pine-800: #194d3a;
    --pine-700: #27634c;
    --lime: #b7e84a;
    --lime-soft: #eaf7c9;
    --cream: #f4f6f0;
    --warm: #fbfcf8;
    --surface: #ffffff;
    --ink: #14251e;
    --muted: #6e7b74;
    --line: #e2e8e1;
    --amber: #e9a23b;
    --violet: #8267d8;
    --blue: #3e91c9;
    --danger: #d05f4d;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 6px 20px rgba(20, 37, 30, .055);
    --shadow: 0 18px 50px rgba(20, 37, 30, .1);
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { width: 100%; max-width: 100%; margin: 0; min-width: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: var(--cream); font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(183, 232, 74, .65); outline-offset: 2px; }

.app-shell { width: 100%; min-width: 0; max-width: 100%; min-height: 100vh; overflow-x: clip; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 264px; padding: 26px 20px 20px; color: #fff; background: var(--pine-950); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: #fff; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand > span { display: flex; align-items: baseline; gap: 5px; letter-spacing: -.035em; }
.brand strong { font-size: 1.28rem; font-weight: 760; }
.brand small { color: var(--lime); font-size: .7rem; font-weight: 850; letter-spacing: .14em; }
.side-nav { margin-top: 42px; }
.side-nav > p { margin: 0 12px 10px; color: #789486; font-size: .66rem; font-weight: 800; letter-spacing: .18em; }
.nav-item { position: relative; display: flex; align-items: center; width: 100%; min-height: 48px; gap: 13px; margin: 3px 0; padding: 0 13px; border: 0; border-radius: 14px; color: #a9beb4; background: transparent; text-align: left; transition: color .18s, background .18s, transform .18s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-item.active { color: #fff; background: var(--pine-800); box-shadow: inset 3px 0 var(--lime); }
.nav-item svg { width: 20px; height: 20px; }
.nav-item span { flex: 1; font-size: .9rem; font-weight: 650; }
.nav-item em { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--pine-950); background: var(--lime); font-size: .72rem; font-style: normal; font-weight: 850; }
.nav-item b { padding: 4px 6px; border-radius: 6px; color: var(--lime); background: rgba(183,232,74,.1); font-size: .56rem; letter-spacing: .08em; }
.sidebar-insight { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: linear-gradient(145deg, rgba(39,99,76,.7), rgba(16,56,42,.55)); }
.insight-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; color: var(--pine-950); background: var(--lime); }
.insight-icon svg { width: 18px; }
.sidebar-insight strong { font-size: .84rem; }
.sidebar-insight p { margin: 7px 0 12px; color: #b7c9c0; font-size: .75rem; line-height: 1.55; }
.sidebar-insight button { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--lime); background: transparent; font-size: .73rem; font-weight: 750; }
.sidebar-insight button svg { width: 14px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 15px 7px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.avatar, .top-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--pine-950); background: var(--lime); font-weight: 850; }
.avatar { width: 37px; height: 37px; font-size: .73rem; }
.sidebar-profile > span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-profile strong, .sidebar-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile strong { font-size: .76rem; }
.sidebar-profile small { margin-top: 3px; color: #88a296; font-size: .65rem; }
.sidebar-profile > svg { width: 16px; color: #789486; }

.workspace { min-width: 0; min-height: 100vh; margin-left: 264px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 10px clamp(20px, 3.2vw, 48px); border-bottom: 1px solid rgba(226,232,225,.85); background: rgba(244,246,240,.88); backdrop-filter: blur(20px); }
.page-context { display: grid; gap: 3px; }
.page-context span { color: #93a098; font-size: .62rem; font-weight: 800; letter-spacing: .16em; }
.page-context strong { font-size: .93rem; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .more-button { display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.75); }
.icon-button { position: relative; width: 40px; height: 40px; border-radius: 13px; }
.icon-button svg { width: 18px; }
.has-alert::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: #e16b52; }
.install-button { display: flex; align-items: center; min-height: 40px; gap: 7px; padding: 0 13px; border: 0; border-radius: 12px; color: white; background: var(--pine-800); font-weight: 750; }
.install-button[hidden] { display: none; }
.install-button svg { width: 16px; }
.top-avatar { width: 40px; height: 40px; margin-left: 3px; font-size: .75rem; }
.mobile-brand { display: none; color: var(--ink); text-decoration: none; }

main { width: min(1450px, 100%); min-width: 0; max-width: 100%; margin: 0 auto; padding: 36px clamp(20px, 3.2vw, 48px) 64px; }
.page { display: none; width: 100%; min-width: 0; max-width: 100%; animation: page-in .35s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.eyebrow { margin-bottom: 8px; color: var(--pine-700); font-size: .66rem; font-weight: 850; letter-spacing: .15em; }
.welcome-row, .page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 25px; }
.welcome-row h1, .page-heading h1, .pricing-heading h1 { margin-bottom: 7px; font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.055em; }
.welcome-row h1 span { font-size: .72em; }
.lead, .page-heading > div > p:last-child, .pricing-heading > p { margin: 0; color: var(--muted); line-height: 1.55; }
.date-chip { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.75); }
.date-chip > svg { width: 19px; color: var(--pine-700); }
.date-chip span { display: grid; gap: 2px; }
.date-chip small { color: #96a29a; font-size: .57rem; font-weight: 850; letter-spacing: .13em; }
.date-chip strong { font-size: .82rem; text-transform: capitalize; }

.hero-card { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; align-items: end; min-height: 360px; overflow: hidden; padding: clamp(26px, 4vw, 54px); border-radius: var(--radius-lg); color: #fff; background: url("assets/hero-modern.jpg") center 56%/cover; box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,29,21,.92) 0%, rgba(6,35,25,.72) 48%, rgba(6,35,25,.16) 100%); }
.hero-content { max-width: 670px; }
.live-badge, .ai-pill, .online-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: .64rem; font-weight: 850; letter-spacing: .1em; }
.live-badge { padding: 7px 10px; color: var(--lime); background: rgba(9,39,30,.55); backdrop-filter: blur(10px); }
.live-badge svg { width: 14px; }
.hero-content h2 { max-width: 680px; margin: 20px 0 13px; font-size: clamp(2.1rem, 4vw, 4rem); line-height: .99; letter-spacing: -.058em; }
.hero-content > p { max-width: 590px; margin-bottom: 25px; color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 13px; font-size: .82rem; font-weight: 780; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 17px; height: 17px; }
.button-lime { color: var(--pine-950); background: var(--lime); box-shadow: 0 9px 24px rgba(183,232,74,.2); }
.button-glass { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.button-dark { color: #fff; background: var(--pine-800); box-shadow: 0 10px 25px rgba(16,56,42,.16); }
.button-soft { color: var(--pine-800); background: #edf3ed; }
.button-outline { color: var(--pine-800); border-color: #cfd9d1; background: #fff; }
.full-button { width: 100%; }
.weather-card { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 22px; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: rgba(255,255,255,.12); backdrop-filter: blur(18px); }
.weather-card > div { display: flex; align-items: center; gap: 10px; }
.weather-card > div span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #ffe08a; background: rgba(255,255,255,.14); }
.weather-card > div span svg { width: 23px; }
.weather-card > div strong { font-size: 2.35rem; letter-spacing: -.06em; }
.weather-card > p { margin: 8px 0 20px; color: rgba(255,255,255,.75); font-size: .75rem; }
.weather-card ul { margin: 0; padding: 13px 0 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; }
.weather-card li { display: flex; justify-content: space-between; padding: 5px 0; font-size: .72rem; }
.weather-card li span { color: rgba(255,255,255,.65); }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 18px 0; }
.metric-card { display: flex; align-items: center; gap: 15px; min-height: 118px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); }
.metric-icon { display: grid; flex: 0 0 auto; place-items: center; width: 46px; height: 46px; border-radius: 15px; }
.metric-icon svg { width: 21px; }
.metric-icon.green { color: #277053; background: #e3f2e8; }
.metric-icon.amber { color: #b66d19; background: #fff0d9; }
.metric-icon.violet { color: #6a51c4; background: #eee9ff; }
.metric-card > div { min-width: 0; flex: 1; }
.metric-card small { color: #94a098; font-size: .57rem; font-weight: 850; letter-spacing: .12em; }
.metric-card strong { display: block; margin: 3px 0; font-size: 1.65rem; letter-spacing: -.05em; }
.metric-card strong span { font-size: .8rem; }
.metric-card p { margin: 0; color: var(--muted); font-size: .67rem; }
.metric-card p b { color: #368361; }
.metric-card > svg { width: 17px; color: #a6b0aa; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-heading h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.03em; }
.text-button { display: flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; color: var(--pine-700); background: transparent; font-size: .73rem; font-weight: 780; }
.text-button svg { width: 14px; }
.more-button { width: 34px; height: 34px; border-radius: 11px; }
.more-button svg { width: 17px; }
.task-progress { display: grid; grid-template-columns: auto 120px; justify-content: end; align-items: center; gap: 12px; margin-top: -4px; color: var(--muted); font-size: .66rem; }
.task-progress b { color: var(--ink); }
.progress-track { height: 5px; overflow: hidden; border-radius: 8px; background: #e8ece8; }
.progress-track i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--lime); transition: width .3s; }
.today-tasks { margin-top: 18px; }
.today-task { position: relative; display: grid; grid-template-columns: 20px 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #edf0ed; cursor: pointer; }
.today-task:first-child { border-top: 0; }
.today-task > input { position: absolute; opacity: 0; }
.custom-check { display: grid; place-items: center; width: 19px; height: 19px; border: 1.5px solid #bec9c1; border-radius: 6px; color: var(--pine-950); transition: background .2s, border .2s; }
.custom-check svg { width: 12px; opacity: 0; }
.today-task input:checked + .custom-check { border-color: var(--lime); background: var(--lime); }
.today-task input:checked + .custom-check svg { opacity: 1; }
.today-task input:checked ~ span:nth-of-type(3) strong { color: #9aa39d; text-decoration: line-through; }
.task-type { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; }
.task-type svg { width: 18px; }
.task-type.blue { color: #287dac; background: #e4f4fb; }
.task-type.green { color: #277053; background: #e4f3e9; }
.task-type.amber { color: #b46b18; background: #fff1da; }
.task-type.violet { color: #7059c2; background: #efeaff; }
.today-task > span:nth-of-type(3) strong, .today-task > span:nth-of-type(3) small { display: block; }
.today-task > span:nth-of-type(3) strong { font-size: .82rem; }
.today-task > span:nth-of-type(3) small { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #8b978f; font-size: .65rem; }
.today-task > span:nth-of-type(3) small svg { width: 12px; }
.today-task > em { color: #87938b; font-size: .65rem; font-style: normal; }
.health-overview { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 18px; margin: 25px 0; }
.score-ring { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--score) * 1%), #e7ece7 0); }
.score-ring::before { content: ""; grid-area: 1/1; width: 90px; height: 90px; border-radius: 50%; background: #fff; }
.score-ring span { z-index: 1; grid-area: 1/1; text-align: center; }
.score-ring strong, .score-ring small { display: block; }
.score-ring strong { font-size: 1.8rem; letter-spacing: -.05em; }
.score-ring small { color: var(--muted); font-size: .59rem; }
.status-good { display: inline-flex; align-items: center; gap: 5px; color: #377c5d; font-size: .7rem; font-weight: 800; }
.status-good svg { width: 14px; }
.health-overview p { margin: 8px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.health-bars { display: grid; gap: 15px; margin-bottom: 22px; }
.health-bars > div > span { display: flex; align-items: center; margin-bottom: 7px; font-size: .68rem; }
.health-bars > div > span b { margin-left: auto; }
.dot { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }
.green-dot { background: #3b8a65; }.lime-dot { background: var(--lime); }.amber-dot { background: var(--amber); }
.health-bars > div > i { display: block; height: 5px; overflow: hidden; border-radius: 6px; background: #ebefeb; }
.health-bars > div > i b { display: block; height: 100%; border-radius: inherit; background: var(--pine-700); }

.recommendations { margin-top: 34px; }
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 15px; }
.article-grid article { position: relative; min-height: 240px; overflow: hidden; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow-sm); }
.article-grid article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,31,22,.9), rgba(5,31,22,.06) 75%); }
.article-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-grid article:hover img { transform: scale(1.04); }
.article-grid article > div { position: absolute; inset: auto 20px 18px; z-index: 1; }
.article-grid span { color: var(--lime); font-size: .56rem; font-weight: 850; letter-spacing: .1em; }
.article-grid h3 { margin: 6px 0 10px; font-size: 1.1rem; letter-spacing: -.025em; }
.article-grid button { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; color: rgba(255,255,255,.8); background: none; font-size: .68rem; font-weight: 750; }
.article-grid button svg { width: 13px; }

.page-heading { align-items: center; }
.page-heading h1 { margin-bottom: 8px; }
.ai-pill { padding: 9px 12px; color: var(--pine-800); background: var(--lime-soft); }
.ai-pill svg { width: 15px; }
.online-pill { padding: 9px 12px; color: #327457; background: #e4f3e9; letter-spacing: 0; }
.online-pill i { width: 7px; height: 7px; border-radius: 50%; background: #45a979; box-shadow: 0 0 0 4px rgba(69,169,121,.13); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.filter-chip { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #fff; white-space: nowrap; font-size: .75rem; font-weight: 700; }
.filter-chip span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: #eef1ee; font-size: .6rem; }
.filter-chip.active { color: white; border-color: var(--pine-800); background: var(--pine-800); }
.filter-chip.active span { color: var(--pine-950); background: var(--lime); }
.crop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 18px 0; }
.crop-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s, border .2s, box-shadow .2s; }
.crop-card:hover { transform: translateY(-3px); }
.crop-card.selected { border-color: #9fc75a; box-shadow: 0 0 0 3px rgba(183,232,74,.22), var(--shadow-sm); }
.crop-card[hidden] { display: none; }
.crop-image { position: relative; height: 170px; overflow: hidden; }
.crop-image > img { width: 100%; height: 100%; object-fit: cover; }
.crop-image > button { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 9px; color: white; background: rgba(9,39,30,.52); backdrop-filter: blur(8px); }
.crop-image > button svg { width: 15px; }
.crop-image > .crop-delete-btn { right: auto; left: 11px; background: rgba(208,95,77,.75); }
.crop-image > .crop-delete-btn:hover { background: var(--danger); }
.crop-status { position: absolute; left: 11px; bottom: 11px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(9,39,30,.66); backdrop-filter: blur(8px); font-size: .58rem; font-weight: 800; }
.crop-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.crop-status.attention i { background: #ffc357; }
.watering-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 9px; border-radius: 999px; font-size: .62rem; font-weight: 750; background: var(--lime-soft); color: #3f6b2b; }
.watering-chip.due { background: #fdedd3; color: #8a5a15; }
.watering-chip.overdue { background: #fbe3df; color: #a7402e; }
.watering-chip svg { width: 12px; }
.crop-copy { padding: 16px; }
.crop-copy > span { color: #8d9991; font-size: .55rem; font-weight: 850; letter-spacing: .12em; }
.crop-copy h3 { margin: 6px 0; font-size: 1.05rem; }
.crop-copy > p { display: flex; gap: 5px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: .66rem; }
.crop-copy > p svg { width: 12px; }
.crop-copy > div > span { display: flex; justify-content: space-between; color: var(--muted); font-size: .62rem; }
.crop-copy > div > span b { color: var(--ink); }
.crop-copy > div > i { display: block; height: 5px; margin-top: 7px; overflow: hidden; border-radius: 7px; background: #e9eee9; }
.crop-copy > div > i b { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.crop-detail { display: grid; grid-template-columns: 330px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.detail-cover { position: relative; min-height: 300px; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,38,27,.88), transparent 68%); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover > span { position: absolute; z-index: 1; inset: auto 23px 22px; color: #fff; }
.detail-cover small, .detail-cover strong { display: block; }
.detail-cover small { color: var(--lime); font-size: .58rem; font-weight: 850; letter-spacing: .13em; }
.detail-cover strong { margin-top: 5px; font-size: 1.45rem; }
.detail-content { display: grid; grid-template-columns: 1fr minmax(230px,.6fr); gap: 30px; padding: 28px; }
.detail-content h2 { margin-bottom: 8px; font-size: 1.4rem; }
.detail-content > div > p:not(.eyebrow) { max-width: 630px; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 25px; }
.detail-stats span { display: grid; gap: 4px; }
.detail-stats small, .next-actions > span { color: #98a29c; font-size: .56rem; font-weight: 850; letter-spacing: .11em; }
.detail-stats strong { font-size: .78rem; }
.next-actions { padding-left: 25px; border-left: 1px solid var(--line); }
.next-actions ul { display: grid; gap: 13px; margin: 16px 0 0; padding: 0; list-style: none; }
.next-actions li { display: flex; gap: 8px; align-items: center; color: #4f6057; font-size: .72rem; line-height: 1.35; }
.next-actions li svg { flex: 0 0 auto; width: 16px; color: #66a371; }

.steps { display: flex; align-items: center; max-width: 700px; margin: 0 auto 27px; }
.steps > span { display: flex; align-items: center; gap: 8px; color: #a0aaa3; font-size: .68rem; font-weight: 730; white-space: nowrap; }
.steps > span b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #cfd7d1; border-radius: 50%; font-size: .66rem; }
.steps > span.active { color: var(--pine-800); }
.steps > span.active b { color: var(--pine-950); border-color: var(--lime); background: var(--lime); }
.steps > i { flex: 1; height: 1px; margin: 0 12px; background: #d9dfda; }
.diagnostic-layout { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.25fr); gap: 18px; }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 510px; padding: 30px; border: 1.5px dashed #a8bbae; border-radius: var(--radius); background: linear-gradient(145deg, #f9fcf7, #eef5ed); text-align: center; cursor: pointer; }
.upload-zone:hover { border-color: var(--pine-700); }
.upload-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 20px; border-radius: 21px; color: var(--pine-800); background: var(--lime); box-shadow: 0 12px 28px rgba(183,232,74,.28); }
.upload-icon svg { width: 28px; }
.upload-zone > strong { font-size: 1.25rem; letter-spacing: -.025em; }
.upload-zone > p { max-width: 310px; margin: 8px 0 20px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.upload-zone > small { margin-top: 13px; color: #9aa49d; font-size: .58rem; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.diagnostic-preview { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.image-frame { position: relative; height: 300px; overflow: hidden; background: #dce5dc; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame.scanning::after { content: ""; position: absolute; inset: 0; background: rgba(183,232,74,.08); }
#scan-line { position: absolute; z-index: 2; left: 7%; right: 7%; top: -3px; height: 3px; opacity: 0; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.image-frame.scanning #scan-line { opacity: 1; animation: scan 1.4s ease-in-out 2; }
@keyframes scan { 0% { top: 5%; } 50% { top: 90%; } 100% { top: 5%; } }
.diagnostic-result { padding: 28px; }
.result-label { display: inline-flex; align-items: center; gap: 6px; color: #4a8c68; font-size: .6rem; font-weight: 850; letter-spacing: .1em; }
.result-label svg { width: 14px; }
.diagnostic-result h2 { margin: 9px 0 7px; font-size: 1.35rem; }
.diagnostic-result > p { color: var(--muted); font-size: .76rem; line-height: 1.6; }
.result-tips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-tips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: #647169; background: #f2f5f1; font-size: .62rem; }
.result-tips svg { width: 14px; color: var(--pine-700); }
.analysis-header { display: flex; align-items: center; gap: 14px; }
.analysis-score { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--pine-950); background: var(--lime); font-weight: 850; }
.analysis-score small { font-size: .55rem; }
.analysis-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.analysis-findings span { padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .68rem; }
.analysis-findings small, .analysis-findings b { display: block; }
.analysis-findings small { margin-bottom: 4px; color: var(--muted); }
.disclaimer { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 14px 17px; border-radius: 13px; color: #6c756f; background: #ebeFEB; }
.disclaimer svg { flex: 0 0 auto; width: 17px; }
.disclaimer p { margin: 0; font-size: .65rem; line-height: 1.45; }
.disclaimer strong { margin-right: 7px; color: var(--ink); }

.expert-layout { display: grid; grid-template-columns: minmax(300px,.75fr) minmax(0,1.25fr); gap: 18px; align-items: start; }
.expert-card, .specialist-form, .specialist-response { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.expert-photo { position: relative; height: 210px; }
.expert-photo img { width: 100%; height: 100%; object-fit: cover; }
.expert-photo > span { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: white; background: rgba(9,39,30,.72); backdrop-filter: blur(10px); font-size: .62rem; font-weight: 750; }
.expert-photo > span svg { width: 14px; color: var(--lime); }
.expert-card > div:last-child { padding: 24px; }
.expert-card h2 { margin-bottom: 10px; font-size: 1.45rem; letter-spacing: -.035em; }
.expert-card > div:last-child > p:not(.eyebrow) { color: var(--muted); font-size: .73rem; line-height: 1.6; }
.expert-card ul { display: grid; gap: 13px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.expert-card li { display: flex; align-items: center; gap: 11px; }
.expert-card li > svg { width: 18px; color: var(--pine-700); }
.expert-card li span { display: grid; gap: 2px; }
.expert-card li strong { font-size: .74rem; }
.expert-card li small { color: var(--muted); font-size: .62rem; }
.specialist-form { padding: clamp(22px,3vw,34px); }
.form-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-heading > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--pine-800); background: var(--lime-soft); }
.form-heading > span svg { width: 21px; }
.form-heading h2 { margin: 0 0 3px; font-size: 1.15rem; }
.form-heading p { margin: 0; color: var(--muted); font-size: .7rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 21px 0; }
.form-grid label { position: relative; display: grid; gap: 7px; color: #4d5e54; font-size: .68rem; font-weight: 750; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 12px 13px; border: 1px solid #d8e0da; border-radius: 12px; color: var(--ink); background: #fbfcfa; font-size: .76rem; transition: border .2s, box-shadow .2s; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #8caf75; box-shadow: 0 0 0 3px rgba(183,232,74,.17); outline: 0; }
.form-grid textarea { min-height: 145px; resize: vertical; }
.form-grid label > small { position: absolute; right: 10px; bottom: 8px; color: #a0aaa3; font-size: .56rem; font-weight: 500; }
.full-row { grid-column: 1/-1; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: #8e9992; font-size: .58rem; }
.privacy-note svg { width: 12px; }
.specialist-response { margin-top: 16px; padding: 20px; border-left: 4px solid var(--lime); }
.specialist-response h2 { margin: 6px 0; font-size: 1.1rem; }
.specialist-response p { margin-bottom: 4px; color: var(--muted); font-size: .74rem; line-height: 1.5; }

.pricing-heading { max-width: 740px; margin: 0 auto 32px; text-align: center; }
.pricing-heading h1 { margin: 15px 0 9px; }
.billing-toggle { display: inline-flex; margin-top: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.billing-toggle button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 750; }
.billing-toggle button.active { color: white; background: var(--pine-800); }
.billing-toggle button span { color: #4b8b67; }
.billing-toggle button.active span { color: var(--lime); }
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-sm); }
.plan-card.featured { color: #fff; border-color: var(--pine-900); background: var(--pine-900); transform: translateY(-8px); box-shadow: var(--shadow); }
.popular { position: absolute; top: 14px; right: 14px; padding: 5px 7px; border-radius: 7px; color: var(--pine-950); background: var(--lime); font-size: .51rem; font-weight: 850; letter-spacing: .08em; }
.plan-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 16px; border-radius: 13px; color: var(--pine-700); background: var(--lime-soft); }
.plan-icon svg { width: 20px; }
.plan-name { display: block; font-size: 1.12rem; font-weight: 820; }
.plan-top > p { min-height: 40px; margin: 7px 0 18px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.featured .plan-top > p { color: #a8c0b5; }
.plan-top > strong { display: flex; align-items: flex-end; font-size: 2.5rem; letter-spacing: -.06em; }
.plan-top sup { margin: 0 0 8px 5px; font-size: .72rem; letter-spacing: 0; }
.plan-top small { margin: 0 0 8px 4px; color: var(--muted); font-size: .6rem; letter-spacing: 0; }
.featured .plan-top small { color: #9ab2a7; }
.plan-card ul { display: grid; gap: 12px; margin: 22px 0 26px; padding: 21px 0 0; border-top: 1px solid var(--line); list-style: none; }
.featured ul { border-color: rgba(255,255,255,.12); }
.plan-card li { display: flex; align-items: center; gap: 8px; color: #536159; font-size: .71rem; }
.featured li { color: #d6e0db; }
.plan-card li svg { width: 16px; color: #4d976f; }
.featured li svg { color: var(--lime); }
.plan-card li.muted { color: #a3aaa5; }
.plan-card li.muted svg { color: #adb5af; }
.plan-card .button { margin-top: auto; }
.plan-card.selected-plan { box-shadow: 0 0 0 3px rgba(183,232,74,.35), var(--shadow); }
.pricing-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 25px 0 0; color: var(--muted); font-size: .65rem; }
.pricing-note svg { width: 15px; color: #4d976f; }

.bottom-nav { display: none; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 30px); padding: 13px 16px; border-radius: 13px; color: #fff; background: var(--pine-950); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(15px); transition: .25s; }
.toast.visible { opacity: 1; transform: none; }
.toast svg { width: 18px; color: var(--lime); }
.toast span { font-size: .72rem; font-weight: 700; }

[hidden] { display: none !important; }
body:not(.authenticated) .bottom-nav,
body:not(.authenticated) .toast { display: none; }

.auth-screen { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.1fr); width: 100%; min-height: 100dvh; background: #f7f8f3; }
.auth-visual { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; overflow: hidden; padding: clamp(28px, 5vw, 70px); color: #fff; background: url("assets/hero-modern.jpg") center/cover; }
.auth-visual::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(155deg, rgba(8,39,29,.93), rgba(9,39,30,.74) 62%, rgba(9,39,30,.9)); }
.auth-brand { display: flex; align-items: center; gap: 12px; width: fit-content; color: #fff; text-decoration: none; }
.auth-brand img { width: 50px; height: 50px; }
.auth-brand > span { display: flex; align-items: baseline; gap: 5px; }
.auth-brand strong { font-size: 1.3rem; }
.auth-brand small { color: var(--lime); font-size: .66rem; font-weight: 900; letter-spacing: .14em; }
.auth-message { max-width: 580px; padding-bottom: 4vh; }
.auth-message > span { display: inline-flex; align-items: center; gap: 7px; color: var(--lime); font-size: .65rem; font-weight: 850; letter-spacing: .13em; }
.auth-message > span svg { width: 16px; }
.auth-message h1 { margin: 18px 0 14px; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .96; letter-spacing: -.065em; }
.auth-message > p { max-width: 520px; color: rgba(255,255,255,.75); line-height: 1.65; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.auth-benefits span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); font-size: .65rem; }
.auth-benefits svg { width: 15px; color: var(--lime); }
.auth-panel { display: grid; place-items: center; min-height: 100dvh; padding: 35px 20px; }
.auth-card { width: min(100%, 460px); }
.auth-mobile-logo { display: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 28px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: #eef1ec; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 780; }
.auth-tabs button.active { color: var(--pine-900); background: #fff; box-shadow: var(--shadow-sm); }
.auth-form { display: none; }
.auth-form.active { display: grid; gap: 16px; animation: page-in .25s ease; }
.auth-heading { margin-bottom: 6px; }
.auth-heading p { margin-bottom: 5px; color: var(--pine-700); font-size: .66rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.auth-heading h2 { margin-bottom: 6px; font-size: 2rem; letter-spacing: -.045em; }
.auth-heading > span { color: var(--muted); font-size: .74rem; }
.auth-form > label { display: grid; gap: 7px; color: #4f5f56; font-size: .67rem; font-weight: 760; }
.input-with-icon { position: relative; }
.input-with-icon > svg { position: absolute; top: 50%; left: 13px; width: 17px; color: #92a098; transform: translateY(-50%); pointer-events: none; }
.input-with-icon input { width: 100%; height: 49px; padding: 0 44px 0 42px; border: 1px solid #d7dfd9; border-radius: 13px; color: var(--ink); background: #fff; font-size: .78rem; }
.input-with-icon input:focus { border-color: #8caf75; box-shadow: 0 0 0 3px rgba(183,232,74,.18); outline: none; }
.toggle-password { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; color: #8d9991; background: transparent; transform: translateY(-50%); }
.toggle-password svg { width: 16px; }
.auth-submit { min-height: 50px; margin-top: 3px; }
.form-error { min-height: 17px; margin: -7px 0 -5px; color: #c45143; font-size: .65rem; line-height: 1.4; }
.local-account-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: #8c9890; font-size: .59rem; }
.local-account-note svg { width: 13px; }

.weather-dashboard { margin: 18px 0; overflow: hidden; }
.weather-heading { align-items: center; }
.weather-heading h2 span { color: var(--pine-700); }
.weather-heading > div > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: .66rem; }
.weather-content { margin-top: 22px; }
.weather-loading { display: flex; align-items: center; justify-content: center; min-height: 180px; gap: 10px; color: var(--muted); font-size: .74rem; }
.weather-loading svg { width: 20px; color: var(--pine-700); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.weather-now { display: grid; grid-template-columns: minmax(210px,.65fr) minmax(0,1.35fr); gap: 22px; }
.weather-current { display: flex; align-items: center; gap: 17px; min-height: 150px; padding: 22px; border-radius: 18px; color: #fff; background: linear-gradient(140deg, var(--pine-800), var(--pine-950)); }
.weather-current > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #ffe18d; background: rgba(255,255,255,.1); }
.weather-current > span svg { width: 30px; }
.weather-current strong { display: block; font-size: 2.4rem; letter-spacing: -.06em; }
.weather-current p { margin: 2px 0 0; color: rgba(255,255,255,.7); font-size: .7rem; }
.weather-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.weather-details span { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf8; }
.weather-details small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .56rem; }
.weather-details small svg { width: 13px; color: var(--pine-700); }
.weather-details b { font-size: .78rem; }
.forecast-title { margin: 23px 0 10px; color: #8b978f; font-size: .57rem; font-weight: 850; letter-spacing: .11em; }
.forecast-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; }
.forecast-day { display: grid; justify-items: center; gap: 7px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; text-align: center; }
.forecast-day.today { border-color: #a9ce69; background: var(--lime-soft); }
.forecast-day > span { color: var(--muted); font-size: .59rem; text-transform: capitalize; }
.forecast-day svg { width: 21px; color: var(--pine-700); }
.forecast-day div { display: flex; gap: 4px; font-size: .65rem; }
.forecast-day div b:last-child { color: #98a29c; font-weight: 600; }
.forecast-day small { color: #4481a0; font-size: .55rem; }
.weather-error { display: grid; justify-items: center; min-height: 180px; padding: 25px; text-align: center; }
.weather-error > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #aa6c22; background: #fff0d8; }
.weather-error > span svg { width: 22px; }
.weather-error h3 { margin: 12px 0 5px; }
.weather-error p { max-width: 470px; margin-bottom: 14px; color: var(--muted); font-size: .7rem; line-height: 1.5; }

.empty-crops { display: grid; justify-items: center; min-height: 350px; margin-top: 18px; padding: 35px; border: 1.5px dashed #bdcbbf; border-radius: var(--radius); background: #f8faf6; text-align: center; }
.empty-crops > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--pine-800); background: var(--lime-soft); }
.empty-crops > span svg { width: 29px; }
.empty-crops h2 { margin: 16px 0 7px; font-size: 1.35rem; }
.empty-crops p { max-width: 460px; margin-bottom: 19px; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.delete-crop { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; color: #b95649; background: transparent; font-size: .66rem; font-weight: 750; }
.delete-crop svg { width: 14px; }
.care-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.care-treatment-note { margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; background: var(--cream); color: #4f6057; font-size: .7rem; line-height: 1.5; }
.care-journal { grid-column: 1 / -1; padding: 27px; border-top: 1px solid var(--line); background: #fff; }
.care-journal-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.care-journal-heading h2 { margin: 2px 0 4px; font-size: 1.25rem; }
.care-journal-heading p:last-child { margin: 0; color: var(--muted); font-size: .72rem; }
.care-timeline { display: grid; gap: 10px; margin-top: 20px; }
.care-entry { display: grid; grid-template-columns: 43px minmax(0, 1fr) 34px; gap: 13px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--warm); }
.care-entry-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; }
.care-entry-icon svg { width: 19px; }
.care-entry-icon.blue { color: #2473a8; background: #deeff9; }
.care-entry-icon.red { color: #b9574b; background: #fae5df; }
.care-entry-icon.green { color: var(--pine-800); background: var(--lime-soft); }
.care-entry-icon.amber { color: #966718; background: #faedce; }
.care-entry-icon.violet { color: #7158a0; background: #eee7f8; }
.care-entry-meta { color: var(--pine-700); font-size: .59rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.care-entry h3 { margin: 4px 0; font-size: .84rem; }
.care-entry b { color: var(--pine-700); font-size: .68rem; }
.care-entry p { margin: 5px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; white-space: pre-wrap; }
.care-entry > button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; color: #b95649; background: #fff; }
.care-entry > button svg { width: 15px; }
.care-reminder { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 8px; border-radius: 8px; color: #5b4a17; background: #f8ebbd; font-size: .58rem; font-weight: 750; }
.care-reminder svg { width: 12px; }
.care-empty { padding: 28px; text-align: center; border: 1px dashed #cfd8d1; border-radius: 15px; color: var(--muted); }
.care-empty > svg { width: 26px; color: var(--pine-700); }
.care-empty strong { display: block; margin-top: 8px; color: var(--ink); font-size: .8rem; }
.care-empty p { margin: 5px 0 0; font-size: .68rem; }

.admin-announcement { display: flex; align-items: center; gap: 12px; margin: -8px 0 20px; padding: 14px 17px; border: 1px solid #d8e6aa; border-radius: 14px; color: var(--pine-900); background: linear-gradient(135deg, #f0f8d8, #fff); }
.admin-announcement svg { flex: 0 0 auto; width: 20px; color: var(--pine-700); }
.admin-announcement p { margin: 0; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.admin-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; color: var(--pine-800); background: var(--lime-soft); font-size: .64rem; font-weight: 800; }
.admin-badge svg { width: 16px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-stats article { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.admin-stats article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--pine-800); background: var(--lime-soft); }
.admin-stats svg { width: 19px; }
.admin-stats small { display: block; color: var(--muted); font-size: .56rem; font-weight: 800; letter-spacing: .08em; }
.admin-stats strong { display: block; margin-top: 3px; font-size: 1.25rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
.admin-cloud-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.admin-cloud-panels .panel-heading > svg { width: 20px; color: var(--pine-700); }
.admin-request-list, .admin-activity-list { display: grid; gap: 9px; max-height: 360px; overflow: auto; }
.admin-request-list article, .admin-activity-list article { display: flex; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
.admin-request-list strong, .admin-request-list small, .admin-request-list p, .admin-activity-list strong, .admin-activity-list small { display: block; }
.admin-request-list strong, .admin-activity-list strong { font-size: .72rem; }
.admin-request-list small, .admin-activity-list small, .admin-activity-list time { color: var(--muted); font-size: .58rem; }
.admin-request-list p { margin: 6px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.4; }
.admin-request-list em { color: var(--pine-700); font-size: .55rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.admin-activity-list time { white-space: nowrap; }
.admin-settings { display: grid; gap: 15px; align-content: start; }
.admin-settings label { display: grid; gap: 7px; color: #4e5f55; font-size: .67rem; font-weight: 750; }
.admin-settings input, .admin-settings textarea { width: 100%; padding: 12px 13px; border: 1px solid #d7dfd9; border-radius: 12px; color: var(--ink); background: #fbfcfa; font-size: .75rem; }
.admin-user-list { display: grid; gap: 9px; }
.admin-user-list article { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; }
.admin-user-list article > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--pine-800); font-size: .65rem; font-weight: 800; }
.admin-user-list strong, .admin-user-list small { display: block; }
.admin-user-list strong { font-size: .72rem; }
.admin-user-list small { margin-top: 3px; color: var(--muted); font-size: .59rem; overflow-wrap: anywhere; }
.admin-user-list em { color: var(--pine-700); font-size: .54rem; font-style: normal; font-weight: 850; }
.admin-cloud { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.admin-cloud > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--pine-800); background: var(--lime-soft); }
.admin-cloud strong { font-size: .73rem; }
.admin-cloud p { margin: 3px 0 0; color: var(--muted); font-size: .61rem; line-height: 1.4; }

.diagnostic-context { margin-bottom: 18px; padding: 18px; }
.diagnostic-context > div { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr); gap: 13px; }
.diagnostic-context label { display: grid; gap: 7px; color: #4d5e54; font-size: .66rem; font-weight: 750; }
.diagnostic-context select, .diagnostic-context input { width: 100%; padding: 11px 12px; border: 1px solid #d8e0da; border-radius: 11px; color: var(--ink); background: #fbfcfa; font-size: .72rem; }
.diagnostic-context > p { display: flex; align-items: center; gap: 7px; margin: 11px 0 0; color: var(--muted); font-size: .61rem; }
.diagnostic-context > p svg { width: 14px; }
.diagnostic-consent { display: grid; gap: 10px; margin: 0 0 18px; padding: 16px 18px; }
.diagnostic-consent label { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: .7rem; line-height: 1.5; font-weight: 650; }
.diagnostic-consent input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--pine-800); }
.diagnostic-consent p { margin: 0; color: var(--muted); font-size: .62rem; line-height: 1.5; }
.diagnostic-consent a { color: var(--pine-700); font-weight: 750; }
#turnstile-container { min-height: 65px; }
.coming-soon { display: grid; place-items: start; max-width: 620px; margin: clamp(35px, 9vw, 100px) auto; padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.coming-soon > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 20px; color: var(--pine-800); background: var(--lime-soft); font-size: .65rem; font-weight: 850; letter-spacing: .05em; }
.coming-soon > span svg { width: 15px; }
.coming-soon > p:first-of-type { margin: 22px 0 5px; color: var(--pine-700); font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.coming-soon h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.coming-soon > p:last-of-type { max-width: 430px; margin: 12px 0 24px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.diagnosis-identity { margin: 1px 0 0; color: var(--muted); font-size: .66rem; }
.urgency-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 17px; padding: 7px 9px; border-radius: 9px; font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.urgency-badge svg { width: 14px; }
.urgency-badge.scăzut { color: #347251; background: #e2f4e8; }
.urgency-badge.moderat { color: #8a621d; background: #faedcc; }
.urgency-badge.ridicat, .urgency-badge.critic { color: #a84438; background: #fae1dd; }
.symptom-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.symptom-chips span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: #536159; background: #f7f9f6; font-size: .59rem; }
.diagnosis-section { margin-top: 22px; }
.diagnosis-section > h3 { margin-bottom: 10px; font-size: .82rem; }
.diagnosis-causes { display: grid; gap: 8px; }
.diagnosis-causes article { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--warm); }
.diagnosis-causes article > div { display: flex; justify-content: space-between; gap: 10px; }
.diagnosis-causes strong { font-size: .68rem; }
.diagnosis-causes em { color: var(--pine-700); font-size: .58rem; font-style: normal; font-weight: 800; }
.diagnosis-causes p { margin: 5px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.treatment-plan { display: grid; gap: 9px; }
.treatment-plan article { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.treatment-plan article > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--pine-950); background: var(--lime); font-size: .62rem; font-weight: 850; }
.treatment-plan small, .treatment-plan strong { display: block; }
.treatment-plan small { color: var(--pine-700); font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.treatment-plan strong { margin-top: 2px; font-size: .68rem; }
.treatment-plan p { margin: 3px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.avoid-list ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.avoid-list li { display: flex; align-items: flex-start; gap: 7px; color: #8e4d44; font-size: .63rem; }
.avoid-list li svg { flex: 0 0 auto; width: 14px; }
.specialist-trigger { margin: 18px 0 0; padding: 10px 12px; border-radius: 10px; color: #5c665f; background: #f1f4f0; font-size: .63rem !important; }
.engineer-cta { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-top: 16px; padding: 14px; border: 1px solid #d8e6aa; border-radius: 14px; background: linear-gradient(135deg, #f0f8d8, #fff); }
.engineer-cta > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--pine-800); background: var(--lime); }
.engineer-cta > span svg { width: 20px; }
.engineer-cta strong { font-size: .7rem; }
.engineer-cta p { margin: 3px 0 0; color: var(--muted); font-size: .6rem; line-height: 1.4; }
.engineer-cta .button { white-space: nowrap; }
.ai-disclaimer { display: flex; align-items: flex-start; gap: 7px; margin: 14px 0 0 !important; font-size: .58rem !important; }
.ai-disclaimer svg { flex: 0 0 auto; width: 13px; }

.shop-cart-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 12px; color: var(--pine-800); background: var(--lime-soft); font-size: .65rem; font-weight: 750; }
.shop-cart-badge svg { width: 17px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.shop-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.shop-product { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.shop-product-image { position: relative; height: 210px; overflow: hidden; }
.shop-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shop-product:hover .shop-product-image img { transform: scale(1.035); }
.shop-product-image span { position: absolute; top: 12px; left: 12px; padding: 6px 8px; border-radius: 8px; color: var(--pine-950); background: var(--lime); font-size: .52rem; font-weight: 850; letter-spacing: .05em; }
.shop-product-image em { position: absolute; right: 9px; bottom: 8px; padding: 4px 6px; border-radius: 6px; color: #fff; background: rgba(9,39,30,.65); font-size: .48rem; font-style: normal; }
.shop-product-copy { padding: 17px; }
.shop-product-copy > small { color: var(--pine-700); font-size: .54rem; font-weight: 850; letter-spacing: .09em; }
.shop-product-copy h2 { margin: 5px 0 7px; font-size: 1rem; }
.shop-product-copy > p { min-height: 37px; margin-bottom: 15px; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.shop-product-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-product-copy strong { font-size: .92rem; }
.shop-product-copy button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border: 0; border-radius: 10px; color: #fff; background: var(--pine-800); font-size: .62rem; font-weight: 750; }
.shop-product-copy button svg { width: 14px; }
.shop-cart { position: sticky; top: 95px; }
.shop-cart-items { display: grid; gap: 9px; min-height: 100px; }
.shop-cart-items article { display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; align-items: center; gap: 9px; }
.shop-cart-items img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.shop-cart-items strong, .shop-cart-items small { display: block; }
.shop-cart-items strong { font-size: .64rem; line-height: 1.3; }
.shop-cart-items small { margin-top: 3px; color: var(--muted); font-size: .57rem; }
.shop-cart-items button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; color: #a34e43; background: #fae9e5; }
.shop-cart-items button svg { width: 13px; }
.shop-cart-empty { display: grid; place-items: center; align-content: center; min-height: 100px; color: var(--muted); }
.shop-cart-empty svg { width: 25px; }
.shop-cart-empty p { margin: 6px 0 0; font-size: .64rem; }
.shop-total { display: flex; align-items: center; justify-content: space-between; margin: 17px 0; padding-top: 15px; border-top: 1px solid var(--line); }
.shop-total span { color: var(--muted); font-size: .67rem; }
.shop-total strong { font-size: 1.05rem; }
.shop-cart > small { display: block; margin-top: 10px; color: var(--muted); font-size: .56rem; line-height: 1.4; text-align: center; }
.shop-cart button:disabled { opacity: .45; cursor: not-allowed; }
.automation-notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 13px 15px; border: 1px solid #d8e6aa; border-radius: 13px; color: #52634f; background: #f3f8df; font-size: .68rem; line-height: 1.45; }
.automation-notice svg { flex: 0 0 auto; width: 16px; color: var(--pine-700); }
.automation-support-link { display: inline; padding: 0; border: 0; color: var(--pine-800); background: transparent; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.automation-promo { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 16px; padding: 22px 24px; border: 1px solid #bfd477; border-radius: 18px; color: #f7faee; background: linear-gradient(125deg, var(--pine-950), var(--pine-700)); box-shadow: 0 12px 28px rgba(16, 54, 34, .16); }
.automation-promo-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; color: var(--pine-950); background: var(--lime); }
.automation-promo-icon svg { width: 29px; height: 29px; }
.automation-promo .eyebrow { margin: 0 0 5px; color: #d9ef91; }
.automation-promo h2 { margin: 0 0 8px; font-size: 1.35rem; }
.automation-promo-description { max-width: 900px; margin: 0 0 16px; color: #e5eedb; font-size: .92rem; line-height: 1.7; }
.automation-offer { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 3px 10px; max-width: 900px; margin: 0 0 20px; padding: 15px 17px; border: 1px solid rgba(217, 239, 145, .45); border-radius: 13px; background: rgba(217, 239, 145, .13); }
.automation-offer svg { grid-row: span 2; width: 22px; margin-top: 2px; color: var(--lime); }
.automation-offer strong { color: #f5f9df; font-size: .98rem; line-height: 1.35; }
.automation-offer span { color: #dbe8cf; font-size: .72rem; line-height: 1.45; }
.automation-promo .button { width: fit-content; }
.automation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.automation-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.automation-card.enabled { border-color: #c9df83; background: linear-gradient(135deg, #fff, #f5f9e8); }
.automation-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--pine-800); background: var(--lime-soft); }
.automation-icon svg { width: 20px; }
.automation-card small { color: var(--pine-700); font-size: .52rem; font-weight: 800; text-transform: uppercase; }
.automation-card h2 { margin: 3px 0; font-size: .78rem; }
.automation-card p { margin: 0; color: var(--muted); font-size: .59rem; }
.automation-switch input { display: none; }
.automation-switch span { display: block; width: 34px; height: 20px; border-radius: 20px; background: #cfd8d0; cursor: pointer; }
.automation-switch span::after { display: block; width: 16px; height: 16px; margin: 2px; border-radius: 50%; background: #fff; content: ""; transition: transform .2s; }
.automation-switch input:checked + span { background: var(--pine-700); }
.automation-switch input:checked + span::after { transform: translateX(14px); }
.automation-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--line); border-radius: 15px; color: var(--muted); text-align: center; }
.automation-empty svg { width: 30px; color: var(--pine-700); }
.automation-empty h2 { margin: 8px 0 4px; color: var(--ink); font-size: .9rem; }
.automation-empty p { margin: 0; font-size: .65rem; }
.automation-add { max-width: 700px; }

/* Compact storefront layout: denser cards with the purchase action always visible. */
.shop-page .page-heading { margin-bottom: 18px; }
.shop-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 16px; }
.shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop-product { border-radius: 15px; }
.shop-product-image { height: 142px; }
.shop-product-image span { top: 8px; left: 8px; padding: 5px 6px; font-size: .46rem; }
.shop-product-image em { right: 7px; bottom: 6px; padding: 3px 5px; font-size: .42rem; }
.shop-product-copy { padding: 12px; }
.shop-product-copy h2 { min-height: 34px; margin: 4px 0 5px; font-size: .82rem; line-height: 1.25; }
.shop-product-copy > p { min-height: 48px; margin-bottom: 10px; font-size: .58rem; line-height: 1.4; }
.shop-product-copy strong { font-size: .8rem; white-space: nowrap; }
.shop-product-copy button { gap: 4px; padding: 7px 8px; border-radius: 8px; font-size: .54rem; }
.shop-product-copy button svg { width: 12px; }
.shop-cart { border-radius: 15px; }

@media (max-width: 1100px) and (min-width: 701px) {
    .shop-layout { grid-template-columns: minmax(0, 1fr) 250px; }
    .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .shop-product-image { height: 112px; }
    .shop-product-copy { padding: 9px; }
    .shop-product-copy h2 { min-height: 31px; font-size: .72rem; }
    .shop-product-copy > p { min-height: 50px; font-size: .53rem; }
    .shop-product-copy > div { align-items: flex-end; gap: 5px; }
    .shop-product-copy strong { font-size: .68rem; }
    .shop-product-copy button { padding: 6px 7px; font-size: .5rem; }
    .automation-grid { grid-template-columns: 1fr; }
    .automation-card { grid-template-columns: 38px minmax(0, 1fr) auto auto; padding: 11px; }
    .automation-icon { width: 38px; height: 38px; }
}

.guide-modal { position: relative; width: min(100%, 760px); max-height: calc(100dvh - 36px); overflow-y: auto; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(3,22,15,.3); }
.guide-modal > img { width: 100%; height: 270px; object-fit: cover; }
.guide-modal > div { padding: 26px; }
.guide-modal h2 { margin: 4px 0 9px; font-size: 1.6rem; }
.guide-intro { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.guide-close { position: absolute; z-index: 2; top: 14px; right: 14px; color: #fff; background: rgba(9,39,30,.72); backdrop-filter: blur(10px); }
.guide-steps { display: grid; gap: 13px; margin-top: 20px; }
.guide-steps article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
.guide-steps article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--pine-950); background: var(--lime); font-size: .68rem; font-weight: 850; }
.guide-steps h3 { margin: 0 0 4px; font-size: .78rem; }
.guide-steps p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.55; }
.guide-warning { display: flex; align-items: flex-start; gap: 9px; margin-top: 21px; padding: 13px; border-radius: 12px; color: #725a25; background: #fbf1d9; }
.guide-warning svg { flex: 0 0 auto; width: 17px; }
.guide-warning p { margin: 0; font-size: .63rem; line-height: 1.5; }
.order-method { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #d8e6aa; border-radius: 12px; background: #f5fadf; }
.order-method > svg { width: 20px; color: var(--pine-700); }
.order-method span, .order-method strong, .order-method small { display: block; }
.order-method strong { font-size: .68rem; }
.order-method small { margin-top: 2px; color: var(--muted); font-size: .58rem; }

.modal-backdrop { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 18px; overflow-y: auto; background: rgba(7,31,23,.72); backdrop-filter: blur(9px); }
.crop-modal { width: min(100%, 580px); max-height: calc(100dvh - 36px); overflow-y: auto; padding: 25px; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px rgba(3,22,15,.3); animation: page-in .25s ease; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 21px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.modal-heading h2 { margin: 0; font-size: 1.35rem; }
.crop-form { display: grid; gap: 15px; }
.crop-form label { display: grid; gap: 7px; color: #4e5f55; font-size: .67rem; font-weight: 750; }
.crop-form input, .crop-form select, .crop-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #d7dfd9; border-radius: 12px; color: var(--ink); background: #fbfcfa; font-size: .75rem; }
.crop-form input:focus, .crop-form select:focus, .crop-form textarea:focus { border-color: #8caf75; box-shadow: 0 0 0 3px rgba(183,232,74,.17); outline: none; }
.care-fieldset { display: grid; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--warm); }
.care-fieldset-title { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--pine-800); font-size: .68rem; font-weight: 800; }
.care-fieldset-title svg { width: 15px; }
.unit-input { display: flex; align-items: center; gap: 8px; }
.unit-input input { width: 100%; }
.unit-input span { flex: 0 0 auto; color: var(--muted); font-size: .68rem; font-weight: 700; }
.care-notify-toggle { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; }
.care-notify-toggle input { width: auto !important; padding: 0 !important; accent-color: var(--pine-800); }
.quantity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 1180px) {
    .crop-grid { grid-template-columns: repeat(2,1fr); }
    .detail-content { grid-template-columns: 1fr; }
    .next-actions { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .health-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
    .health-panel .panel-heading { grid-column: 1/-1; }
    .health-panel .full-button { grid-column: 2; }
}

@media (max-width: 900px) {
    .auth-screen { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100dvh; padding: 25px 18px; }
    .auth-mobile-logo { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 24px; }
    .auth-mobile-logo img { width: 42px; height: 42px; }
    .auth-mobile-logo strong { font-size: .95rem; }
    .auth-mobile-logo span { color: var(--pine-700); font-size: .62rem; letter-spacing: .1em; }
    html, body { width: 100vw; max-width: 100vw; overflow-x: hidden; }
    .sidebar { display: none; }
    .workspace, .page { width: 100%; min-width: 0; max-width: 100%; margin-left: 0; }
    .topbar { width: 100%; min-width: 0; max-width: 100%; min-height: 68px; padding: calc(8px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); overflow: hidden; }
    .page-context { display: none; }
    .mobile-brand { display: flex; align-items: center; gap: 8px; }
    .mobile-brand img { width: 38px; height: 38px; }
    .mobile-brand strong { font-size: .92rem; letter-spacing: -.03em; }
    .mobile-brand span { color: var(--pine-700); font-size: .65rem; letter-spacing: .1em; }
    .top-actions .icon-button:first-child, .top-avatar { display: none; }
    main { width: 100%; min-width: 0; max-width: 100%; padding: 25px 16px calc(104px + env(safe-area-inset-bottom)); overflow: hidden; }
    main *, .topbar *, .bottom-nav * { min-width: 0; }
    .bottom-nav { position: fixed; z-index: 50; inset: auto 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; max-width: 100vw; min-height: 70px; padding: 7px max(5px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); overflow: visible; border-top: 1px solid var(--line); background: rgba(255,255,255,.95); box-shadow: 0 -10px 35px rgba(20,37,30,.08); backdrop-filter: blur(18px); }
    .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 0; border: 0; color: #8b978f; background: transparent; font-size: .55rem; font-weight: 740; }
    .bottom-nav button svg { width: 20px; height: 20px; }
    .bottom-nav button span { display: block; width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
    .bottom-nav button.active { color: var(--pine-800); }
    .bottom-nav .scan-button { position: relative; margin-top: -25px; }
    .bottom-nav .scan-button svg { box-sizing: content-box; width: 23px; height: 23px; padding: 13px; border: 5px solid var(--cream); border-radius: 18px; color: var(--pine-950); background: var(--lime); box-shadow: 0 8px 22px rgba(63,91,38,.2); }
    .bottom-nav .scan-button span { margin-top: -2px; }
    .toast { right: 15px; bottom: calc(88px + env(safe-area-inset-bottom)); }
    .top-actions .admin-only { display: grid; }
}

@media (max-width: 700px) {
    .welcome-row, .page-heading { display: block; margin-bottom: 20px; }
    .welcome-row > div, .page-heading > div, .panel-heading > div, .metric-card > div, .form-heading > div { min-width: 0; max-width: 100%; }
    .welcome-row h1, .page-heading h1, .pricing-heading h1 { font-size: 2.05rem; }
    .welcome-row h1, .welcome-row p, .page-heading h1, .page-heading p, .panel h2, .panel p { max-width: 100%; overflow-wrap: anywhere; }
    .date-chip { display: none; }
    .page-heading > .button, .page-heading > .ai-pill, .page-heading > .online-pill { margin-top: 16px; }
    .hero-card { display: flex; width: 100%; min-width: 0; max-width: 100%; min-height: 500px; align-items: flex-end; padding: 24px; overflow: hidden; background-position: 55% center; }
    .hero-content { min-width: 0; width: 100%; }
    .hero-card::before { background: linear-gradient(0deg, rgba(5,29,21,.97) 0%, rgba(5,29,21,.68) 58%, rgba(5,29,21,.12) 100%); }
    .hero-content h2 { max-width: 100%; font-size: 2.4rem; overflow-wrap: anywhere; }
    .weather-card { position: absolute; top: 17px; right: 17px; display: block; min-height: auto; width: 145px; padding: 12px; border-radius: 16px; }
    .weather-card > div span { width: 32px; height: 32px; border-radius: 10px; }
    .weather-card > div span svg { width: 18px; }
    .weather-card > div strong { font-size: 1.65rem; }
    .weather-card > p { margin: 5px 0 0; font-size: .56rem; }
    .weather-card ul { display: none; }
    .metrics-grid, .dashboard-grid, .article-grid, .crop-grid, .diagnostic-layout, .expert-layout, .plans-grid, .shop-layout, .shop-products { width: 100%; min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr); }
    .shop-cart { position: static; }
    .weather-heading .button { width: 100%; margin-top: 15px; }
    .weather-now { grid-template-columns: minmax(0, 1fr); }
    .weather-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .forecast-days { grid-template-columns: repeat(7, 78px); overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
    .metric-card { min-height: 94px; }
    .panel { padding: 20px; }
    .automation-promo { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
    .automation-promo-icon { width: 48px; height: 48px; border-radius: 14px; }
    .automation-promo-icon svg { width: 24px; height: 24px; }
    .automation-promo h2 { font-size: 1.12rem; }
    .automation-promo-description { font-size: .78rem; }
    .automation-offer strong { font-size: .86rem; }
    .automation-offer span { font-size: .68rem; }
    .automation-promo .button { width: 100%; }
    .task-progress { grid-template-columns: 1fr; margin-top: 16px; }
    .today-task { grid-template-columns: 19px 40px minmax(0,1fr); gap: 9px; }
    .today-task > em { display: none; }
    .today-task > span:nth-of-type(3) strong { font-size: .76rem; }
    .health-panel { display: block; }
    .health-overview { grid-template-columns: 105px 1fr; gap: 13px; }
    .score-ring { width: 103px; height: 103px; }
    .score-ring::before { width: 78px; height: 78px; }
    .health-panel .full-button { margin-top: 20px; }
    .article-grid article { min-height: 220px; }
    .crop-image { height: 210px; }
    .crop-detail { grid-template-columns: 1fr; }
    .detail-cover { min-height: 230px; }
    .detail-content { padding: 22px; }
    .detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .steps { justify-content: center; }
    .steps > span em, .steps > i { display: none; }
    .steps > span { margin: 0 6px; }
    .steps > span b { width: 32px; height: 32px; }
    .upload-zone { min-height: 350px; }
    .image-frame { height: 250px; }
    .expert-card { order: 2; }
    .specialist-form { order: 1; }
    .form-grid { grid-template-columns: 1fr; }
    .full-row { grid-column: auto; }
    .plan-card.featured { order: -1; transform: none; }
    .admin-stats, .admin-grid, .admin-cloud-panels { grid-template-columns: minmax(0, 1fr); }
    .diagnostic-context > div { grid-template-columns: minmax(0, 1fr); }
    .engineer-cta { grid-template-columns: 42px minmax(0, 1fr); }
    .engineer-cta .button { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .auth-panel { padding: 18px 14px; }
    .auth-card { width: 100%; }
    .auth-heading h2 { font-size: 1.7rem; }
    .auth-tabs { margin-bottom: 22px; }
    main { padding: 20px 12px calc(100px + env(safe-area-inset-bottom)); }
    .topbar { padding-right: 11px; padding-left: 11px; }
    .mobile-brand { max-width: calc(100% - 60px); }
    .mobile-brand img { width: 35px; height: 35px; }
    .mobile-brand strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
    .top-actions { flex: 0 0 auto; }
    .install-button span { display: none; }
    .install-button { width: 40px; padding: 0; }
    .welcome-row h1, .page-heading h1, .pricing-heading h1 { font-size: clamp(1.65rem, 8vw, 1.9rem); letter-spacing: -.045em; }
    .lead, .page-heading > div > p:last-child, .pricing-heading > p { font-size: .82rem; }
    .hero-card { min-height: 490px; padding: 20px; border-radius: 22px; }
    .hero-content h2 { font-size: clamp(1.75rem, 9vw, 2.1rem); }
    .hero-content > p { font-size: .84rem; }
    .weather-card { top: 13px; right: 13px; width: 128px; padding: 10px; }
    .hero-actions { display: grid; }
    .button { width: 100%; }
    .panel { padding: 17px; border-radius: 17px; }
    .panel-heading { gap: 10px; }
    .panel-heading h2 { font-size: 1.1rem; }
    .metric-card { padding: 16px; }
    .today-task { grid-template-columns: 18px 37px minmax(0, 1fr); }
    .task-type { width: 37px; height: 37px; }
    .today-task > span:nth-of-type(3) small { line-height: 1.35; }
    .health-overview { grid-template-columns: 92px minmax(0, 1fr); }
    .score-ring { width: 90px; height: 90px; }
    .score-ring::before { width: 68px; height: 68px; }
    .score-ring strong { font-size: 1.45rem; }
    .crop-image { height: 185px; }
    .detail-content, .diagnostic-result, .expert-card > div:last-child, .specialist-form, .plan-card { padding: 19px; }
    .weather-dashboard { padding: 17px; }
    .weather-current { min-height: 125px; padding: 17px; }
    .weather-current strong { font-size: 2rem; }
    .weather-details span { min-height: 65px; padding: 10px; }
    .detail-stats { grid-template-columns: minmax(0, 1fr); }
    .upload-zone { min-height: 325px; padding: 22px 16px; }
    .image-frame { height: 220px; }
    .result-tips { display: grid; grid-template-columns: 1fr; }
    .analysis-findings { grid-template-columns: 1fr; }
    .form-heading { align-items: flex-start; }
    .plan-top > p { min-height: 0; }
    .crop-modal { padding: 19px; border-radius: 20px; }
    .quantity-fields { grid-template-columns: minmax(0, 1fr); }
    .care-journal { padding: 18px; }
    .care-journal-heading { display: block; }
    .care-journal-heading .button { margin-top: 14px; }
    .care-entry { grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 9px; padding: 11px; }
    .care-entry-icon { width: 38px; height: 38px; }
    .admin-stats article { padding: 14px; }
    .admin-cloud { grid-template-columns: 38px minmax(0, 1fr); }
    .admin-cloud .button { grid-column: 1 / -1; }
    .shop-product-image { height: 190px; }
    .guide-modal > img { height: 210px; }
    .guide-modal > div { padding: 20px; }
    .guide-modal h2 { font-size: 1.3rem; }
    .bottom-nav { padding-right: 2px; padding-left: 2px; }
    .bottom-nav button { font-size: .5rem; }
    .bottom-nav button svg { width: 19px; height: 19px; }
    .bottom-nav .scan-button svg { width: 21px; height: 21px; padding: 11px; }
}

@media (max-width: 350px) {
    main { padding-right: 9px; padding-left: 9px; }
    .mobile-brand strong { font-size: .74rem; }
    .hero-card { min-height: 510px; padding: 17px; }
    .hero-content h2 { font-size: 1.7rem; }
    .bottom-nav button span { font-size: .46rem; }
}
