:root {
  --ink: #17201d;
  --muted: #68736f;
  --line: #dce4e0;
  --paper: #f5f7f6;
  --white: #fff;
  --green: #153f36;
  --green-2: #23715e;
  --mint: #dff3ea;
  --yellow: #f2c85b;
  --red: #c95043;
  --blue: #3f6f90;
  --shadow: 0 12px 30px rgba(23, 32, 29, .08);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, Arial, sans-serif; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; color: var(--muted); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto; background: var(--green); color: white; font-weight: 800; border-radius: 7px; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 520px); background: var(--white); }
.auth-scene { position: relative; min-height: 100vh; overflow: hidden; background: linear-gradient(135deg, #133c34 0%, #265f52 55%, #b4cdbb 100%); color: white; padding: clamp(32px, 6vw, 86px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-scene::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,.35) 49%, transparent 51%), linear-gradient(150deg, transparent 48%, rgba(255,255,255,.2) 49%, transparent 51%); background-size: 110px 72px; }
.auth-scene > * { position: relative; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; }
.auth-logo .brand-mark, .sidebar-brand .brand-mark { margin: 0; }
.auth-copy { max-width: 680px; }
.auth-copy h1 { margin: 0 0 18px; max-width: 760px; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: 0; }
.auth-copy p { margin: 0; max-width: 610px; font-size: clamp(16px, 2vw, 20px); line-height: 1.65; color: rgba(255,255,255,.82); }
.auth-panel { display: grid; align-content: center; padding: clamp(30px, 6vw, 72px); }
.auth-panel h2 { margin: 0 0 8px; font-size: 28px; }
.auth-panel > p { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: #43504c; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid #cdd8d3; border-radius: 6px; background: white; padding: 10px 12px; color: var(--ink); outline: none; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(35,113,94,.12); }
.btn { min-height: 42px; border: 0; border-radius: 6px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; background: var(--green); color: white; text-decoration: none; }
.btn:hover { background: #0c3129; }
.btn.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.btn.secondary:hover { background: #f0f4f2; }
.btn.danger { background: #fff0ee; color: #a5372d; border: 1px solid #efc5c0; }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.text-button { border: 0; background: transparent; color: var(--green-2); padding: 8px 0; font-weight: 700; }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; }
.demo-note { margin-top: 22px; border: 1px solid #d6e6df; background: #f2faf6; color: #355349; padding: 13px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px; background: var(--green); color: white; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; gap: 11px; align-items: center; padding: 8px 9px 22px; }
.sidebar-brand strong { display: block; font-size: 18px; }
.sidebar-brand span:last-child { display: block; color: rgba(255,255,255,.6); font-size: 11px; margin-top: 2px; }
.nav { display: grid; gap: 4px; }
.nav button { width: 100%; min-height: 41px; border: 0; background: transparent; color: rgba(255,255,255,.72); border-radius: 5px; padding: 9px 11px; display: flex; align-items: center; gap: 11px; text-align: left; font-weight: 650; }
.nav button svg { width: 18px; height: 18px; flex: none; }
.nav button:hover, .nav button.active { color: white; background: rgba(255,255,255,.11); }
.sidebar-foot { margin-top: auto; padding: 14px 9px 4px; border-top: 1px solid rgba(255,255,255,.13); }
.sidebar-foot strong, .sidebar-foot span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot strong { font-size: 13px; }
.sidebar-foot span { color: rgba(255,255,255,.55); font-size: 11px; margin: 4px 0 10px; }
.sidebar-foot button { border: 0; padding: 0; background: transparent; color: rgba(255,255,255,.72); font-weight: 700; }
.main { min-width: 0; }
.topbar { height: 68px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 42px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar strong { font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.plan-pill { padding: 6px 9px; border-radius: 999px; background: var(--mint); color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mobile-menu { display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: white; border-radius: 5px; }
.content { width: min(1280px, 100%); margin: 0 auto; padding: 30px clamp(18px, 4vw, 42px) 56px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 5px; color: var(--green-2); text-transform: uppercase; font-size: 11px; font-weight: 800; }
.page-head h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.page-head p:last-child { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.grid { display: grid; gap: 16px; }
.grid > *, .panel { min-width: 0; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.stat { min-height: 116px; border: 1px solid var(--line); background: white; padding: 18px; border-radius: 7px; }
.stat-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-head svg { width: 18px; height: 18px; color: var(--green-2); }
.stat strong { display: block; margin-top: 14px; font-size: 27px; }
.stat small { color: var(--muted); }
.panel { border: 1px solid var(--line); background: white; border-radius: 7px; }
.panel-head { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.panel-body { padding: 18px; }
.two-col { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
.weather-strip { grid-template-columns: repeat(7, minmax(95px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
.weather-day { min-height: 172px; border: 1px solid var(--line); border-top: 4px solid var(--green-2); border-radius: 6px; padding: 13px; background: #fbfcfb; }
.weather-day.poor { border-top-color: var(--red); }
.weather-day.fair { border-top-color: var(--yellow); }
.weather-day strong { display: block; font-size: 13px; }
.weather-icon { margin: 13px 0; color: var(--green-2); }
.weather-icon svg { width: 25px; height: 25px; }
.weather-score { font-size: 22px; font-weight: 800; }
.weather-day small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.list { display: grid; }
.list-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(100px, .7fr)) auto; gap: 14px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row strong { display: block; font-size: 13px; }
.list-row small { color: var(--muted); line-height: 1.5; }
.compact-job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.compact-job:last-child { border-bottom: 0; }
.compact-job strong, .compact-job small { display: block; }
.compact-job strong { font-size: 13px; }
.compact-job small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.compact-job > div:last-child { text-align: right; }
.compact-job .badge { margin: 0 0 5px auto; }
.badge { width: fit-content; display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #edf2f0; color: #43504c; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.badge.good { background: var(--mint); color: var(--green); }
.badge.warn { background: #fff4d7; color: #755a14; }
.badge.bad { background: #fde8e5; color: #98372d; }
.score { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 800; }
.empty { padding: 44px 20px; color: var(--muted); text-align: center; }
.empty svg { width: 28px; height: 28px; margin-bottom: 8px; color: #8ba098; }
.inline-form { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; gap: 10px; align-items: end; }
.inline-form .field { gap: 5px; }
.inline-form .field input, .inline-form .field select { min-height: 40px; }
.search-meter { min-width: 190px; }
.meter-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.meter { height: 6px; overflow: hidden; background: #e5ebe8; border-radius: 9px; }
.meter span { height: 100%; display: block; background: var(--green-2); }
.pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.price { padding: 24px; border: 1px solid var(--line); background: white; border-radius: 7px; display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--green-2); box-shadow: var(--shadow); }
.price h2 { margin: 6px 0; }
.price .amount { font-size: 34px; font-weight: 800; }
.price .amount small { font-size: 12px; color: var(--muted); }
.price ul { padding: 0; margin: 20px 0 26px; display: grid; gap: 11px; list-style: none; color: #46534f; font-size: 13px; }
.price li::before { content: "✓"; margin-right: 8px; color: var(--green-2); font-weight: 800; }
.price .btn { margin-top: auto; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notice { padding: 12px 14px; background: #fff8e5; border: 1px solid #eedda7; border-radius: 6px; color: #69551f; font-size: 12px; line-height: 1.5; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 99; max-width: min(380px, calc(100vw - 40px)); padding: 12px 15px; border-radius: 6px; color: white; background: #1e2925; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #9b3d34; }
.loading-line { height: 3px; position: fixed; inset: 0 0 auto; z-index: 100; overflow: hidden; background: #dbe8e3; }
.loading-line::after { content: ""; display: block; width: 35%; height: 100%; background: var(--green-2); animation: loading 1s infinite ease-in-out; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(380%); } }
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-scene { min-height: 42vh; }
  .auth-copy h1 { font-size: 42px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -250px; z-index: 50; width: 236px; transition: left .2s ease; }
  .sidebar.open { left: 0; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .mobile-menu { display: grid; place-items: center; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .settings-grid { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form .btn { align-self: stretch; }
}
@media (max-width: 680px) {
  .auth-scene { min-height: 360px; padding: 28px 22px; }
  .auth-copy h1 { font-size: 36px; }
  .auth-panel { padding: 38px 22px; }
  .topbar { height: 60px; }
  .content { padding-top: 22px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .stats, .pricing { grid-template-columns: 1fr; }
  .stat { min-height: 100px; }
  .inline-form { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 1fr auto; }
  .list-row > *:not(:first-child):not(:last-child) { display: none; }
  .plan-pill { display: none; }
}
