:root {
  color-scheme: light;
  --green: #173b32;
  --green-2: #24594b;
  --mint: #e8f1ec;
  --ink: #1e2925;
  --muted: #697670;
  --line: #e1e8e3;
  --paper: #f6f8f6;
  --white: #fff;
  --orange: #9b5a13;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { display: flex; align-items: center; gap: 12px; background: var(--green); color: white; padding: calc(16px + env(safe-area-inset-top)) 20px 18px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #8ab19f; border-radius: 14px; font-weight: 800; letter-spacing: -1px; }
.topbar h1 { margin: 1px 0 0; font-size: 21px; letter-spacing: -.4px; }
.eyebrow { margin: 0; font-size: 10px; letter-spacing: 1.6px; font-weight: 800; color: #8a9991; }
.topbar .eyebrow { color: #bad0c4; }
.demo-pill { margin-left: auto; border: 1px solid #5c8172; border-radius: 20px; padding: 6px 8px; font-size: 9px; letter-spacing: .7px; white-space: nowrap; }
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 28px; }
.welcome { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px 18px; box-shadow: 0 5px 18px #173b3209; }
h2 { font-size: 21px; letter-spacing: -.5px; line-height: 1.2; margin: 7px 0 8px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.primary { border: 0; border-radius: 13px; background: var(--green); color: white; font-weight: 700; padding: 14px 16px; min-height: 48px; }
.primary:active { background: var(--green-2); transform: translateY(1px); }
.full { width: 100%; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 26px; }
.stat-card { background: var(--mint); border-radius: 17px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-size: 27px; font-weight: 800; color: var(--green); }
.stat-label { color: #51685d; font-size: 12px; }
.jobs-section { margin-top: 4px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-heading select { max-width: 150px; }
.section-heading h2 { margin-bottom: 0; }
select, input, textarea { width: 100%; border: 1px solid #d7e0da; background: white; border-radius: 11px; padding: 12px; color: var(--ink); outline-color: #719d89; }
.job-list { display: grid; gap: 10px; }
.job-card { border: 1px solid var(--line); border-radius: 17px; background: white; padding: 15px; display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; color: inherit; }
.job-card:active { background: #f0f5f1; }
.job-icon { flex: 0 0 42px; height: 42px; border-radius: 13px; background: var(--mint); display: grid; place-items: center; font-size: 20px; }
.job-main { min-width: 0; flex: 1; }
.job-title { font-weight: 750; font-size: 15px; margin: 1px 0 5px; }
.job-meta { color: var(--muted); font-size: 12px; line-height: 1.5; }
.job-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.status { border-radius: 20px; padding: 5px 8px; font-size: 10px; font-weight: 800; background: #edf1ed; color: #52635a; }
.status.new { background: #fff1d9; color: #80520e; }
.status.progress { background: #e4efff; color: #2c5a95; }
.status.done { background: #e0f2e7; color: #226543; }
.urgency { font-size: 11px; color: var(--muted); }
.form-panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; padding: 18px; }
.form-panel form { display: grid; gap: 9px; }
label { font-size: 13px; font-weight: 700; margin-top: 7px; }
textarea { resize: vertical; }
.small-note { font-size: 11px; line-height: 1.45; color: var(--muted); margin: 0 0 8px; }
.hidden { display: none !important; }
.icon-button { border: 0; background: #eff3f0; color: var(--ink); border-radius: 50%; width: 36px; height: 36px; font-size: 24px; line-height: 1; }
.detail-row { border-bottom: 1px solid var(--line); padding: 12px 0; }
.detail-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--muted); margin-bottom: 5px; }
.detail-value { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; background: #ffffffed; backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 3; }
.nav-item { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; min-width: 72px; border: 0; background: transparent; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 700; padding: 3px 8px; }
.nav-item span { font-size: 22px; line-height: 1.1; }
.nav-item.active { color: var(--green); }
footer { text-align: center; color: #87928b; font-size: 10px; padding: 0 16px 20px; }
dialog { border: 0; border-radius: 20px; max-width: calc(100% - 32px); width: 420px; padding: 0; box-shadow: 0 20px 60px #0003; }
dialog::backdrop { background: #0c211acc; }
.dialog-content { padding: 24px; position: relative; }
.dialog-content p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; }
.dialog-close { position: absolute; top: 16px; right: 16px; }
@media (min-width: 700px) {
  main { padding-top: 28px; }
  .welcome { padding: 28px; }
  .job-list { grid-template-columns: 1fr 1fr; }
}
