:root {
  color-scheme: light;
  --ink: #112a3f;
  --muted: #718092;
  --line: rgba(17, 42, 63, .09);
  --paper: rgba(255, 255, 255, .88);
  --accent: #116149;
  --accent-deep: #0a4536;
  --warm: #f36b2b;
  --bg: #f3f6f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { padding: env(safe-area-inset-top) 0 calc(92px + env(safe-area-inset-bottom)); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app { width: min(100%, 760px); margin: 0 auto; padding: 18px 16px 32px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 15px; box-shadow: 0 8px 20px rgba(17,42,63,.12); }
.brand h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.ghost, .icon-button { border: 1px solid var(--line); background: rgba(255,255,255,.82); color: var(--ink); border-radius: 14px; min-height: 44px; padding: 0 15px; font-weight: 700; }
.icon-button { width: 44px; padding: 0; display: grid; place-items: center; font-size: 19px; }
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 26px; color: #fff; background: linear-gradient(140deg, var(--accent-deep), var(--accent)); box-shadow: 0 20px 55px rgba(13,77,58,.22); }
.hero::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -70px; top: -65px; background: radial-gradient(circle, rgba(255,255,255,.25), transparent 68%); }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; opacity: .72; font-weight: 800; }
.hero h2 { position: relative; margin: 0; max-width: 470px; font-size: clamp(28px, 8vw, 42px); line-height: 1.12; letter-spacing: -.04em; }
.hero p { position: relative; margin: 12px 0 0; max-width: 500px; line-height: 1.7; opacity: .82; font-size: 14px; }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.primary, .secondary, .danger { min-height: 48px; border: 0; border-radius: 15px; padding: 0 19px; font-weight: 800; }
.primary { background: var(--warm); color: #fff; box-shadow: 0 10px 22px rgba(243,107,43,.25); }
.secondary { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.danger { background: #fff0ed; color: #b63227; }
.section { margin-top: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.section h3 { margin: 0; font-size: 17px; }
.section-note { color: var(--muted); font-size: 12px; }
.card { background: var(--paper); border: 1px solid rgba(255,255,255,.85); border-radius: 22px; padding: 18px; box-shadow: 0 12px 34px rgba(17,42,63,.06); backdrop-filter: blur(18px); }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.stat strong { display: block; font-size: 24px; margin-bottom: 3px; }
.stat span { color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 7px; margin-bottom: 13px; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); padding: 13px 14px; outline: none; }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.65; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17,97,73,.10); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.list { display: grid; gap: 10px; }
.list-item { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 17px; padding: 14px; color: var(--ink); }
.list-item h4 { margin: 0; font-size: 15px; }
.list-item p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--muted); padding: 28px 14px; line-height: 1.7; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #e7f5ef; color: var(--accent); font-size: 12px; font-weight: 800; }
.status { min-height: 22px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.status.error { color: #b63227; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%,760px); display: flex; justify-content: space-around; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,252,252,.92); border-top: 1px solid var(--line); backdrop-filter: blur(22px); }
.bottom-nav button { min-width: 82px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.bottom-nav button.active { color: var(--accent); }
.install-fab { position: fixed; z-index: 30; right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); border: 0; border-radius: 999px; padding: 12px 16px; background: var(--warm); color: #fff; font-weight: 800; box-shadow: 0 12px 30px rgba(243,107,43,.35); }
.modal { position: fixed; z-index: 60; inset: 0; display: grid; align-items: end; padding: 16px; background: rgba(5,18,28,.54); }
.modal[hidden], [hidden] { display: none !important; }
.sheet { width: min(100%,520px); margin: 0 auto; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.sheet h3 { margin: 0 0 6px; font-size: 21px; }
.sheet p { margin: 0 0 16px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.steps { display: grid; gap: 9px; margin-bottom: 16px; }
.step { display: flex; gap: 11px; align-items: center; padding: 12px; border-radius: 15px; background: #f4f7f8; font-size: 13px; font-weight: 700; }
.step b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: #fff; }
.full { width: 100%; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 13px; background: #102a43; color: #fff; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
@media (min-width: 700px) { .app { padding-top: 28px; } .hero { padding: 34px; } }
@media (max-width: 440px) { .grid.two { grid-template-columns: 1fr; } .hero { padding: 23px 20px; } }

