:root{color-scheme:light;--bg: #f3f7f1;--bg-accent: radial-gradient(circle at top left, rgba(185, 255, 59, .16), transparent 30%), radial-gradient(circle at top right, rgba(23, 77, 44, .12), transparent 28%), linear-gradient(180deg, #f7fbf5 0%, #eef4ec 100%);--panel: rgba(255, 255, 255, .92);--panel-2: #f1f6ee;--panel-3: #f8fbf7;--text: #172117;--muted: #5f6b62;--border: #d9e4d7;--primary: #174d2c;--primary-strong: #10371f;--accent: #b9ff3b;--accent-soft: rgba(185, 255, 59, .18);--danger-bg: #fff1f1;--danger-text: #a33a3a;--success-bg: #eef8d8;--shadow: 0 18px 45px rgba(23, 43, 24, .08)}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;background:var(--bg-accent);color:var(--text)}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}button:hover:not(:disabled),a.primary-button:hover,a.secondary-button:hover,.batch-card:hover,.nav-link:hover{transform:translateY(-1px)}input,textarea,select{width:100%;border:1px solid var(--border);background:#fff;color:var(--text);border-radius:14px;padding:.85rem 1rem;outline:none;transition:border-color .18s ease,box-shadow .18s ease}input:focus,textarea:focus,select:focus{border-color:#174d2c59;box-shadow:0 0 0 4px #174d2c14}textarea{resize:vertical}button:disabled{opacity:.7;cursor:not-allowed}.app-shell{display:grid;grid-template-columns:300px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#fbfcfae0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-right:1px solid rgba(217,228,215,.9);padding:1.5rem 1.25rem}.sidebar-brand-card{padding:1.15rem;border-radius:24px;background:linear-gradient(180deg,#ffffffeb,#f1f6eef5);border:1px solid rgba(217,228,215,.9);box-shadow:var(--shadow)}.brand-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,var(--primary) 0%,#2d7a48 100%);color:#fff;font-weight:700;margin-bottom:.9rem;box-shadow:0 10px 20px #174d2c38}.brand-title{font-size:1.55rem;font-weight:700}.brand-subtitle,.muted{color:var(--muted)}.sidebar-note{margin:.8rem 0 0;line-height:1.55}.nav-list{display:grid;gap:.75rem;margin-top:1.4rem}.nav-link{padding:1rem;border-radius:16px;color:#35503b}.nav-link.active{background:var(--accent);color:#16371f;font-weight:700;box-shadow:0 10px 24px #b9ff3b47}.main-panel{padding:1.5rem}.topbar,.section-header,.actions,.metric-list li,.summary-row{display:flex;justify-content:space-between;align-items:center;gap:1rem}.topbar{margin-bottom:1.25rem}.topbar h1,.hero-card h2,.card h2,.card h3,.card h4,.card p{margin-top:0}.topbar-copy,.hero-copy{max-width:760px;line-height:1.6;margin-bottom:0}.topbar-badges,.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:flex-end}.section-header.compact{align-items:flex-start}.wrap-actions{flex-wrap:wrap;justify-content:flex-end}.page-kicker{color:var(--primary);font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;margin-bottom:.35rem}.page-grid{display:grid;gap:1.25rem}.cardless-grid{display:grid;gap:1rem}.two-column-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:1.25rem}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.card{background:var(--panel);border:1px solid rgba(217,228,215,.9);border-radius:26px;padding:1.25rem;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.hero-card{background:linear-gradient(135deg,#fffffff5,#f1f6eeeb 60%,#b9ff3b1f)}.hero-header{align-items:center}.stack-gap{display:grid;gap:.85rem}.stat-card{position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;inset:auto -24px -30px auto;width:110px;height:110px;border-radius:999px;background:#b9ff3b29}.stat-card-title{font-size:.92rem;position:relative;z-index:1}.stat-card h3{font-size:2.2rem;margin:.35rem 0;position:relative;z-index:1}.stat-card-hint{position:relative;z-index:1}.status-badge,.pill,.subtle-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.6rem .92rem;border-radius:999px;font-weight:700}.status-badge,.pill{background:#eef8d8;color:var(--primary)}.subtle-pill{width:fit-content;background:var(--panel-2);border:1px solid var(--border);color:var(--primary-strong)}.primary-button,.secondary-button,.filter-chip{border:1px solid transparent;border-radius:14px;padding:.85rem 1.15rem;cursor:pointer;font-weight:600}.primary-button{background:var(--primary);color:#fff;box-shadow:0 12px 24px #174d2c2e}.primary-button:hover:not(:disabled){background:var(--primary-strong)}.secondary-button,.filter-chip{background:#fff;border-color:var(--border)}.secondary-button:hover:not(:disabled),.filter-chip:hover:not(:disabled){border-color:#174d2c40;box-shadow:0 8px 18px #172b1814}.active-chip{background:var(--accent);border-color:transparent;color:#15301b;font-weight:700}.feedback-banner{border-radius:18px;padding:.95rem 1rem}.error-banner{background:var(--danger-bg);color:var(--danger-text)}.success-banner{background:var(--success-bg);color:var(--primary)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-grid label{display:grid;gap:.45rem}.form-grid label>span,.field-group-header strong{color:var(--primary-strong)}.full-width{grid-column:1 / -1}.actions{justify-content:flex-end}.list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.batch-card{border:1px solid rgba(217,228,215,.95);border-radius:22px;padding:1rem;background:linear-gradient(180deg,#fffffff5,#f8fbf7f5);box-shadow:0 12px 28px #172b180f}.batch-card-link{display:block}.progress-bar{height:12px;background:#edf1ea;border-radius:999px;overflow:hidden;margin:.4rem 0 .2rem}.compact-progress{height:10px;margin-top:-.15rem}.progress-fill{height:100%;background:linear-gradient(90deg,#8cd72f,#174d2c)}.metric-list,.history-list{list-style:none;padding:0;margin:0;display:grid;gap:.8rem}.metric-highlight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.metric-highlight-card,.overview-chip,.field-group{border:1px solid var(--border);background:var(--panel-3);border-radius:18px}.metric-highlight-card{padding:1rem;display:grid;gap:.35rem}.metric-highlight-card span,.overview-chip span,.input-hint{color:var(--muted);font-size:.9rem}.metric-highlight-card strong{font-size:1.25rem;color:var(--primary-strong)}.overview-chip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.overview-chip{padding:.95rem 1rem;display:grid;gap:.3rem}.field-group{padding:1rem;display:grid;gap:.95rem}.optional-group{background:linear-gradient(180deg,#f8fbf7,#f1f6ee)}.field-group-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.input-hint{font-style:normal;font-weight:600}.sensor-entry-card{gap:1.1rem}.history-item{display:grid;gap:.28rem;padding:1rem 0;border-bottom:1px solid var(--border)}.history-item:last-child{border-bottom:none}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.gallery-item{display:grid;gap:.75rem;padding:1rem;border:1px solid var(--border);border-radius:20px;background:#fff}.gallery-image{width:100%;aspect-ratio:4 / 3;object-fit:cover;border-radius:16px;border:1px solid var(--border)}.gallery-meta{display:grid;gap:.3rem}.gallery-upload-form{display:grid;grid-template-columns:1.2fr 1fr 1fr .8fr auto;gap:.75rem;align-items:center}.gallery-empty{padding:1rem;border:1px dashed var(--border);border-radius:16px}.toolbar-grid{display:grid;gap:1rem}.tab-row{display:flex;flex-wrap:wrap;gap:.75rem}.timeline-item{border-left:3px solid var(--border);padding:.5rem 0 .5rem 1rem;margin-left:.5rem}.timeline-item.active{border-color:#8cd72f}.task-list{margin:0;padding-left:1.1rem}.login-page{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.login-card{width:min(420px,100%);display:grid;gap:1rem}@media (max-width: 1180px){.app-shell{grid-template-columns:250px 1fr}.list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 980px){.app-shell,.stats-grid,.two-column-grid,.list-grid,.form-grid,.gallery-grid,.gallery-upload-form,.metric-highlight-grid,.overview-chip-grid,.mini-grid{grid-template-columns:1fr}.sidebar{display:none}.main-panel{padding:1rem}.topbar,.section-header,.field-group-header,.hero-header,.summary-row,.actions{align-items:flex-start;flex-direction:column}.topbar-badges,.hero-actions{justify-content:flex-start}}
