:root {
  --bg: #0b1118; --surface: #111c26; --surface-2: #172531; --surface-3: #20323d;
  --text: #eef4f2; --muted: #8b9fa9; --line: rgba(204,230,226,.1);
  --accent: #d7fa81; --accent-ink: #172313; --cyan: #83d9d3; --warn: #ffc48a;
  --danger: #ff8a84; --shadow: 0 18px 44px rgba(0,0,0,.2);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 360px; pointer-events: none; background: radial-gradient(circle at 78% -15%, rgba(149,216,198,.13), transparent 55%), radial-gradient(circle at 8% 12%, rgba(215,250,129,.08), transparent 45%); z-index: -1; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.app-shell { max-width: 740px; min-height: 100dvh; margin: 0 auto; padding: 0 18px calc(96px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; gap: 12px; min-height: 82px; padding-top: env(safe-area-inset-top); }
.brand-mark { width: 36px; height: 36px; border: 1px solid rgba(215,250,129,.45); border-radius: 11px; display: flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 8px; background: linear-gradient(145deg,#26392f,#13232b); box-shadow: inset 0 0 22px rgba(215,250,129,.08); }
.brand-mark span { width: 4px; border-radius: 4px; background: var(--accent); transform: rotate(18deg); }
.brand-mark span:nth-child(1) { height: 10px; opacity: .6; }.brand-mark span:nth-child(2) { height: 18px; }.brand-mark span:nth-child(3) { height: 24px; }
.brand-text { display: grid; line-height: 1.05; gap: 4px; }.brand-text strong { font-size: 18px; letter-spacing: -.045em; }.brand-text strong span { color: var(--accent); }.brand-text small { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.status-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 7px 10px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-pill i { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; box-shadow: 0 0 0 4px rgba(139,159,169,.1); }.status-running i { background: var(--accent); box-shadow: 0 0 0 4px rgba(215,250,129,.1); }.status-warning i { background: var(--warn); box-shadow: 0 0 0 4px rgba(255,196,138,.1); }
.main-content { padding-top: 13px; }.eyebrow { display: block; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 9px; }
h1,h2,h3,p { margin-top: 0; } h1 { font-size: clamp(31px,8vw,48px); line-height: 1.02; letter-spacing: -.06em; margin-bottom: 13px; } h2 { font-size: 23px; line-height: 1.15; letter-spacing: -.04em; margin-bottom: 10px; } h3 { font-size: 16px; letter-spacing: -.025em; margin-bottom: 8px; }
.lede, .muted { color: var(--muted); }.lede { font-size: 14px; max-width: 560px; line-height: 1.6; }.small { font-size: 12px; }.tiny { font-size: 11px; }.mono { font-variant-numeric: tabular-nums; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 13px; }.section-heading h2 { margin: 0; }.section-heading p { margin: 2px 0 0; }
.hero { position: relative; overflow: hidden; border: 1px solid rgba(215,250,129,.14); border-radius: 25px; padding: 27px 22px 22px; background: linear-gradient(125deg,#1b302f 0%,#162731 53%,#15202b 100%); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(215,250,129,.14); border-radius: 50%; right: -70px; top: -145px; box-shadow: 0 0 0 45px rgba(215,250,129,.025),0 0 0 90px rgba(215,250,129,.02); pointer-events: none; }.hero > * { position: relative; z-index: 1; }
.hero h1 em { color: var(--accent); font-style: normal; }.hero .lede { color: #b8cbc7; }.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 23px; }
.btn { border: 1px solid var(--line); border-radius: 13px; min-height: 42px; padding: 10px 16px; color: var(--text); background: var(--surface-2); font-weight: 720; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .16s,background .16s; }
.btn:active { transform: scale(.98); }.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }.btn-ghost { background: rgba(255,255,255,.045); }.btn-danger { color: var(--danger); border-color: rgba(255,138,132,.25); background: rgba(255,138,132,.08); }.btn-sm { min-height: 35px; padding: 7px 11px; border-radius: 10px; font-size: 12px; }.btn-full { width: 100%; }.btn[disabled] { opacity: .45; cursor: not-allowed; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.metric { padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }.metric strong { display: block; font-size: 25px; letter-spacing: -.05em; line-height: 1.1; margin: 9px 0 2px; }.metric span { color: var(--muted); font-size: 12px; }.metric-icon { font-size: 17px; color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 19px; padding: 18px; margin-bottom: 11px; }.panel-soft { background: var(--surface-2); }.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.panel p:last-child { margin-bottom: 0; }
.scope-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; min-height: 33px; color: #c6d5d3; background: var(--surface-2); border: 1px solid var(--line); border-radius: 100px; font-size: 12px; font-weight: 650; }.chip.selected { border-color: rgba(215,250,129,.6); background: rgba(215,250,129,.12); color: var(--accent); }.chip.unavailable { border-color: rgba(255,138,132,.4); color: var(--danger); }
.chip-button { cursor: pointer; transition: border-color .15s,transform .15s; }.chip-button:active { transform: scale(.97); }
.card-stack { display: grid; gap: 12px; }.gift-card { display: grid; grid-template-columns: 108px 1fr; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 6px 25px rgba(0,0,0,.09); }.gift-art { position: relative; height: 116px; border-radius: 14px; background: radial-gradient(circle at 70% 20%,rgba(215,250,129,.3),transparent 42%),linear-gradient(145deg,#243c3e,#14212d); overflow: hidden; display: grid; place-items: center; }.gift-art::before { content:"◈"; color: rgba(215,250,129,.5); font-size: 44px; }.gift-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; }.gift-art small { position: absolute; left: 6px; bottom: 6px; font-size: 9px; padding: 4px 6px; border-radius: 5px; background: rgba(8,18,24,.75); color: #d0ded9; }
.gift-body { min-width: 0; }.gift-top { display:flex; align-items:flex-start; justify-content:space-between; gap: 8px; }.gift-title { font-weight: 760; font-size: 15px; line-height: 1.15; }.gift-title span { color: var(--muted); font-weight: 550; }.price { color: var(--accent); font-size: 17px; font-weight: 790; white-space: nowrap; letter-spacing: -.04em; }.gift-sub { color: var(--muted); font-size: 12px; margin: 3px 0 8px; }.gift-tags { display:flex; gap:5px; flex-wrap:wrap; margin-bottom:8px; }.tag { font-size:10px; font-weight:750; border-radius:6px; padding:4px 6px; color:var(--cyan); background:rgba(131,217,211,.1); }.tag.hot { color:var(--accent); background:rgba(215,250,129,.1); }.gift-foot { display:flex; gap:7px; flex-wrap:wrap; align-items:center; font-size:11px; color:var(--muted); }.gift-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; }.link { color:var(--accent); font-size:12px; font-weight:750; }.icon-btn { border:1px solid var(--line); color:var(--muted); background:var(--surface-2); border-radius:9px; min-width:32px; height:30px; }.icon-btn.saved { color:var(--accent); }
.toolbar { display:grid; grid-template-columns:1fr 118px; gap:8px; margin: 20px 0 12px; }.field, .select { width:100%; border:1px solid var(--line); border-radius:12px; color:var(--text); background:var(--surface); min-height:44px; padding:10px 12px; outline:none; }.field::placeholder { color:#647884; }.select { cursor:pointer; }
.form-label { display:block; color:var(--muted); font-size:12px; font-weight:700; margin:14px 0 7px; }.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.form-grid .form-label { margin:0 0 7px; }.hint { color:var(--muted); font-size:11px; margin:6px 0 0; }.segment { display:flex; padding:4px; border:1px solid var(--line); border-radius:13px; background:var(--surface-2); }.segment button { flex:1; border:0; background:transparent; color:var(--muted); border-radius:9px; min-height:36px; font-size:12px; font-weight:700; }.segment button.active { background:var(--surface-3); color:var(--text); box-shadow:0 2px 7px rgba(0,0,0,.14); }
.switch { appearance:none; width:44px; height:26px; border-radius:20px; position:relative; background:#40505a; flex:none; cursor:pointer; }.switch::after { content:""; position:absolute; width:18px; height:18px; border-radius:50%; background:white; top:4px; left:4px; transition:left .15s; }.switch:checked { background:#95bc47; }.switch:checked::after { left:22px; }
.empty { text-align:center; padding:36px 18px; border:1px dashed rgba(204,230,226,.18); border-radius:19px; background:rgba(255,255,255,.015); }.empty-symbol { display:block; font-size:37px; color:var(--accent); margin-bottom:13px; }.empty p { max-width:360px; margin:0 auto 16px; color:var(--muted); }
.bottom-nav { position:fixed; z-index:10; bottom:0; left:0; right:0; max-width:740px; margin:auto; display:flex; justify-content:space-around; gap:2px; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:rgba(13,21,29,.96); backdrop-filter:blur(16px); }.bottom-nav[hidden] { display:none; }.nav-item { border:0; background:none; color:var(--muted); min-width:0; flex:1; display:grid; justify-items:center; gap:2px; padding:4px 0; font-size:10px; font-weight:650; }.nav-item[hidden] { display:none; }.nav-item.active { color:var(--accent); }.nav-icon { font-size:21px; line-height:1.2; }
.toast { position:fixed; bottom:calc(86px + env(safe-area-inset-bottom)); left:50%; transform:translate(-50%,12px); z-index:20; max-width:calc(100vw - 30px); min-width:190px; text-align:center; padding:11px 14px; border:1px solid var(--line); border-radius:11px; background:#2a3b42; color:var(--text); opacity:0; pointer-events:none; transition:all .22s; box-shadow:var(--shadow); }.toast.show { opacity:1; transform:translate(-50%,0); }
.loading-state { min-height:55dvh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }.loading-state p { color:var(--muted); }.loader { width:36px; height:36px; border:3px solid rgba(215,250,129,.17); border-top-color:var(--accent); border-radius:50%; animation:spin .7s linear infinite; margin-bottom:23px; }@keyframes spin { to { transform:rotate(360deg); } }
.divider { height:1px; background:var(--line); margin:16px 0; }.list-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 0; border-bottom:1px solid var(--line); }.list-row:last-child { border-bottom:0; }.code { color:var(--cyan); font-family:ui-monospace,Consolas,monospace; font-size:12px; }.banner { border:1px solid rgba(255,196,138,.22); border-radius:13px; padding:12px; background:rgba(255,196,138,.08); color:var(--warn); font-size:12px; line-height:1.55; margin:13px 0; }
@media (max-width:480px) { .app-shell { padding-inline:14px; }.topbar { min-height:74px; }.brand-text small { font-size:9px; }.status-pill { padding:6px 8px; font-size:10px; }.hero { padding:24px 19px 21px; }.gift-card { grid-template-columns:88px 1fr; gap:10px; }.gift-art { height:102px; }.price { font-size:15px; }.gift-title { font-size:14px; }.toolbar { grid-template-columns:1fr 106px; }.form-grid { grid-template-columns:1fr 1fr; }.nav-item { font-size:9px; }.nav-icon { font-size:19px; } }
body.light { --bg:#f4f5f0; --surface:#fff; --surface-2:#edf1eb; --surface-3:#e4e9e3; --text:#182925; --muted:#62746c; --line:rgba(30,62,48,.12); --accent:#456f35; --accent-ink:#fff; --cyan:#397a76; --warn:#9f5d2b; --danger:#b94c4c; --shadow:0 14px 36px rgba(44,60,44,.08); color-scheme:light; }.light .bottom-nav { background:rgba(248,250,246,.96); }.light .hero { background:linear-gradient(125deg,#dcebd8,#e7f0e7 60%,#e7eddf); }.light .hero .lede { color:#516963; }.light .chip.selected,.light .tag.hot { background:rgba(69,111,53,.09); }

.light .chip { color: var(--text); } .light .chip.selected { color: var(--accent); } .light .chip.unavailable { color: var(--danger); }

