:root {
  color-scheme: light; --ink:#172622; --muted:#52655d; --line:#dce4de;
  --canvas:#f3f5ef; --paper:#fff; --dark:#101d1a; --lime:#def598;
  --dark-accent:#294637; --green:#294d3a; --pale:#eaf1e9; --rail:220px;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing:border-box }
body { margin:0; color:var(--ink); background:var(--canvas); min-width:280px }
button,input,textarea,select { font:inherit }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent }
button { cursor:pointer }
button:disabled { opacity:.63; cursor:wait }
a { color:inherit }
:focus-visible { outline:3px solid #458464; outline-offset:3px }
h1,h2,h3,p { margin:0 }
small { font-size:.78rem }
svg { width:21px; height:21px; display:block; flex:none }
.skip { position:fixed; z-index:20; top:.5rem; left:.5rem; transform:translateY(-200%); background:white; padding:12px }
.skip:focus { transform:none }
.sidebar { position:fixed; inset:0 auto 0 0; width:var(--rail); background:var(--dark); color:#f4f8ef; display:flex; flex-direction:column; padding:25px 15px 16px; z-index:3 }
.brand { display:flex; align-items:center; gap:11px; font-size:1.04rem; letter-spacing:.075em; font-weight:750; line-height:1.2; white-space:nowrap }
.brand img { border-radius:12px; object-fit:cover; background:#243831 }
.brand b { color:var(--lime) }
.brand small { display:block; color:#b5c7bc; margin-top:5px; font-size:.58rem; letter-spacing:.10em }
.sidebar .brand { margin:1px 5px 35px }
nav { display:grid; gap:5px }
nav button { display:flex; align-items:center; gap:11px; min-height:48px; padding:0 12px; text-align:left; border:0; border-radius:9px; color:#c7d6cd; background:transparent; font-weight:600; font-size:.88rem }
nav button:hover { background:#22352e }
nav button[aria-current="page"] { color:var(--lime); background:#263c30 }
.account { display:flex; gap:8px; align-items:center; margin-top:auto; padding:15px 0 0; border-top:1px solid #35443d; min-width:0 }
.avatar { background:#344c40; color:#eff6e7; border-radius:50%; width:34px; height:34px; display:grid; place-items:center; font-size:.72rem; flex:none }
.account-name { min-width:0; margin-right:auto }
.account-name strong,.account-name small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.account-name strong { font-size:.83rem }
.account-name small { color:#b9cbc0; font-size:.69rem }
.icon-button { border:0; background:transparent; color:inherit; width:44px; height:44px; display:grid; place-items:center; border-radius:9px; flex:none; padding:0 }
.icon-button:hover { background:#79897336 }
.workspace { margin-left:var(--rail) }
.topbar { min-height:66px; padding:0 clamp(20px,4vw,47px); background:#fbfcf8; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:.83rem; font-weight:650; gap:8px }
.demo { display:inline-flex; align-items:center; gap:7px; color:#3e5b46; background:#e9f0e2; padding:6px 10px; white-space:nowrap; border-radius:30px; font-size:.72rem }
.demo i { width:7px; height:7px; background:#56815c; border-radius:50% }
main#content { max-width:1420px; margin:auto; padding:31px clamp(20px,4vw,47px) 42px; outline:none }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:14px; margin-bottom:22px }
.page-head p { color:var(--muted); font-size:.9rem; margin-top:6px }
h1 { font-size:clamp(2rem,4vw,2.88rem); letter-spacing:-.06em; line-height:1.08; font-weight:750 }
h2 { font-size:1.24rem; letter-spacing:-.035em; line-height:1.2 }
h3 { font-size:.96rem; letter-spacing:-.015em }
.primary,.secondary { min-height:46px; border-radius:9px; border:1px solid transparent; padding:0 15px; font-weight:740; display:inline-flex; justify-content:center; align-items:center; gap:8px; text-decoration:none; white-space:nowrap; line-height:1; font-size:.87rem }
.primary { background:var(--lime); color:#20321d; border-color:#bbd378 }
.primary:hover { background:#d0ea83 }
.secondary { background:white; border-color:var(--line); color:var(--green) }
.secondary:hover { background:var(--pale) }
.primary svg,.secondary svg { width:17px; height:17px }
.hero { color:#f9fff4; background:radial-gradient(ellipse at 86% 20%,#3e5a3e,transparent 58%),#162921; border-radius:16px; min-height:180px; padding:26px 26px; display:flex; justify-content:space-between; align-items:center; gap:18px; position:relative; isolation:isolate; overflow:hidden; margin-bottom:15px }
.hero::before,.hero::after { content:""; position:absolute; width:360px; height:245px; right:-70px; bottom:-125px; border:1px solid #ceefa638; border-radius:50%; transform:rotate(-30deg); z-index:-1; pointer-events:none }
.hero::after { width:440px; height:280px; right:-94px; bottom:-140px; box-shadow:0 0 0 18px #d4eaa312,0 0 0 38px #bcda9010 }
.hero h2 { font-size:clamp(1.38rem,3vw,2.22rem); margin:7px 0 }
.hero p { color:#caddd0; font-size:.88rem; line-height:1.45 }
.hero .hero-label { color:#e0f6a8; font-size:.72rem; font-weight:720; letter-spacing:.06em; text-transform:uppercase }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px }
.stat,.card,.panel { background:var(--paper); border:1px solid var(--line); border-radius:13px }
.stat { display:block; text-align:left; padding:15px 16px; color:var(--ink); min-width:0 }
.stat:hover { border-color:#8fae8c }
.stat-top { color:var(--muted); display:flex; align-items:center; justify-content:space-between; gap:5px; font-weight:650; font-size:.8rem }
.stat-top svg { color:#496853 }
.stat strong { display:block; font-size:1.9rem; line-height:1; margin-top:11px; letter-spacing:-.06em }
.grid-two { display:grid; grid-template-columns:1.14fr 1fr; gap:14px; align-items:start }
.panel-head { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 15px; min-height:60px }
.text-button { border:0; color:#32543c; background:transparent; min-height:44px; font-weight:740; font-size:.79rem; padding:0 4px; white-space:nowrap; border-radius:6px }
.row { border:0; border-top:1px solid #e8ede7; display:flex; align-items:center; text-align:left; color:var(--ink); width:100%; min-height:66px; gap:12px; padding:10px 15px; background:transparent }
.row:last-child { border-radius:0 0 12px 12px }
button.row:hover { background:#f7f9f4 }
.row-icon { width:42px; height:43px; border-radius:9px; color:#3b5f46; background:var(--pale); flex:none; display:grid; place-items:center; font-size:.72rem; font-weight:750; line-height:1.1 }
.row-icon.date { display:flex; justify-content:center; align-items:center; flex-direction:column; font-size:.83rem }
.row-icon.date small { font-size:.6rem; text-transform:uppercase }
.row-copy { flex:1; min-width:0; overflow-wrap:anywhere }
.row-copy strong,.row-copy small { display:block }
.row-copy strong { font-size:.88rem }
.row-copy small { margin-top:4px; color:var(--muted) }
.row-tail { color:#5f7568; font-size:1.2rem }
.badge { display:inline-flex; align-items:center; border-radius:25px; padding:5px 8px; white-space:nowrap; font-size:.69rem; font-weight:750; color:#30523a; background:#e9f1e7 }
.badge.pending { color:#675419; background:#f7efd5 }
.empty { padding:18px; color:var(--muted); font-size:.9rem }
.filters { display:flex; gap:10px; margin-bottom:15px }
.filters > * { min-width:0; max-width:100% }
.filters input { flex:1 }
input,select,textarea { min-height:46px; min-width:0; width:100%; color:var(--ink); border:1px solid #bdcbc1; border-radius:8px; background:white; padding:9px 11px; font-size:16px }
input[type=date],input[type=time] { display:block; max-width:100%; appearance:none }
.filters select { width:auto }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px }
.card { color:var(--ink); text-align:left; padding:16px; min-width:0 }
button.card:hover { border-color:#8fae8c }
.card h2 { margin:11px 0 5px; overflow-wrap:anywhere }
.card p { font-size:.84rem; color:var(--muted); overflow-wrap:anywhere }
.card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:5px }
.list-panel + .list-panel { margin-top:16px }
.grid-two > .list-panel + .list-panel { margin-top:0 }
.task-check { min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:50%; color:var(--green); background:#f4f8f2; display:grid; place-items:center; padding:0 }
.task-check[aria-pressed=true] { background:#dcefd7 }
.map-layout { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(210px,1fr); align-items:start; gap:14px }
.map-panel { position:relative; overflow:hidden }
.map-surface { position:relative; background:#e9eee2; min-height:380px }
.map-surface canvas { width:100%; height:100%; position:absolute; inset:0 }
.map-pins { position:absolute; inset:0 }
.pin { position:absolute; transform:translate(-50%,-50%); display:grid; place-items:center; min-width:44px; min-height:44px; border:0; background:none; padding:0 }
.pin span { display:grid; place-items:center; min-width:27px; height:27px; padding:0 3px; border:2px solid white; border-radius:50%; color:white; background:#315942; box-shadow:0 2px 6px #173a3566; font-size:.66rem; font-weight:800 }
.pin[aria-pressed=true] { z-index:2 }
.pin[aria-pressed=true] span { color:#26391c; background:var(--lime); border-color:#294b32 }
.map-info { padding:14px; display:flex; flex-wrap:wrap; gap:5px 18px; color:var(--muted); font-size:.75rem }
.map-side h2 { padding:15px }
.map-side .selected { background:#edf5e7 }
.map-details { padding:13px 15px 15px; border-top:1px solid var(--line) }
.map-details .secondary { width:100% }
dialog { width:min(520px,calc(100% - 24px)); max-height:calc(100dvh - 26px); border:1px solid var(--line); color:var(--ink); border-radius:16px; padding:0; box-shadow:0 20px 70px #11251a55 }
dialog::backdrop { background:#12251b82 }
dialog form { padding:17px 20px 20px }
.dialog-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; gap:7px }
.close { font-size:1.6rem }
label { display:grid; gap:5px; font-size:.82rem; font-weight:680; margin-bottom:12px; min-width:0 }
textarea { min-height:120px; resize:vertical }
.field-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.dialog-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:7px; flex-wrap:wrap }
.details p { color:var(--muted); margin:0 0 13px; overflow-wrap:anywhere }
.details strong { color:var(--ink) }
.form-error { font-size:.84rem; color:#9e3327; margin:4px 0; min-height:1em }
.toast { display:none; position:fixed; z-index:5; right:20px; bottom:20px; color:white; background:#254a36; border-radius:10px; padding:12px 16px; max-width:calc(100% - 40px); box-shadow:0 4px 22px #192c2544 }
.toast.visible { display:block }
.login-page { min-height:100vh; min-height:100dvh; display:grid; place-items:center; padding:20px; background:radial-gradient(ellipse at 75% 15%,#395544,transparent 55%),#111f19 }
.login-panel { width:min(100%,410px); border-radius:18px; background:#f8faf2; padding:26px; box-shadow:0 18px 80px #0f191690 }
.login-panel .brand { color:#1e3729; margin-bottom:26px }
.login-panel .brand b,.login-panel .brand small { color:#46624c }
.login-panel > p { color:var(--muted); margin:9px 0 22px; font-size:.9rem }
.login-panel .primary { width:100%; margin-top:3px; justify-content:space-between }
@media (max-width:1070px) { :root { --rail:187px } .cards { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:840px) { .grid-two { grid-template-columns:1fr } .map-layout { grid-template-columns:1fr } }
@media (max-width:700px) {
  .sidebar { display:contents }
  .sidebar .brand,.account { position:absolute; z-index:2; margin:0; top:calc(10px + env(safe-area-inset-top)); left:max(15px,env(safe-area-inset-left)) }
  .sidebar .brand { color:var(--ink) }
  .sidebar .brand b,.sidebar .brand small { color:#4e6b53 }
  .account { left:auto; right:max(10px,env(safe-area-inset-right)); padding:0; border:0; top:calc(8px + env(safe-area-inset-top)); color:var(--ink) }
  .account .avatar,.account-name { display:none }
  .workspace { margin:0 }
  .topbar { justify-content:flex-end; padding:env(safe-area-inset-top) calc(56px + env(safe-area-inset-right)) 0 12px; min-height:calc(60px + env(safe-area-inset-top)) }
  #breadcrumb { display:none }
  nav { position:fixed; inset:auto 0 0; z-index:4; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:4px max(3px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(3px,env(safe-area-inset-left)); background:var(--dark); gap:0 }
  nav button { flex-direction:column; justify-content:center; align-items:center; gap:3px; min-height:53px; padding:2px 0; font-size:.66rem; line-height:1.15; text-align:center }
  main#content { padding:21px 14px calc(81px + env(safe-area-inset-bottom)) }
  .page-head { align-items:flex-start; margin-bottom:16px }
  .hero { border-radius:13px; padding:18px; min-height:168px }
  .stats { gap:6px }
  .stat { padding:11px 8px }
  .stat-top { font-size:.71rem; align-items:flex-start }
  .stat-top svg { width:15px; height:15px }
  .stat strong { font-size:1.65rem }
  .cards { gap:8px }
  .card { padding:10px }
  .card h2 { font-size:1rem }
  .map-surface { min-height:350px }
  .toast { bottom:calc(65px + env(safe-area-inset-bottom)); right:12px }
}
@media (max-width:405px) {
  .hero { display:block }
  .hero .primary { margin-top:13px }
  .filters { flex-wrap:wrap }
  .filters input { flex-basis:100% }
  .stat-top svg { display:none }
}
@media (max-width:340px) {
  .demo { font-size:.61rem; padding:6px 5px }
  .page-head { flex-wrap:wrap }
  .card-top { flex-wrap:wrap }
  .account { right:max(4px,env(safe-area-inset-right)) }
  .topbar { padding-right:calc(45px + env(safe-area-inset-right)) }
}

[hidden] { display:none !important }
