:root {
  color-scheme: dark;
  --bg: #070b16;
  --panel: #11182a;
  --panel-2: #172036;
  --line: rgba(255,255,255,.09);
  --text: #f4f7ff;
  --muted: #8e9bb4;
  --primary: #795cf5;
  --cyan: #39d4f2;
  --green: #44dfa0;
  --red: #ff6482;
  --shadow: 0 22px 60px rgba(0,0,0,.38);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100dvh; font-family: Tahoma, Arial, sans-serif; color: var(--text); background: radial-gradient(circle at 100% 0, rgba(121,92,245,.18), transparent 32%), radial-gradient(circle at 0 35%, rgba(57,212,242,.08), transparent 30%), var(--bg); }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.app-shell { width: min(100%, 760px); min-height: 100dvh; margin: auto; padding: 20px 16px 104px; }
.topbar, .section-intro, .section-head, .sheet-head, .watch-head, .filter-section-head, .watch-actions, .row-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar { margin-bottom: 20px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 24px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
.eyebrow { color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: 1.4px; direction: ltr; }
.status-pill { display: flex; align-items: center; gap: 7px; max-width: 48%; min-height: 34px; padding: 0 11px; border: 1px solid rgba(68,223,160,.25); border-radius: 999px; color: #c9ffe7; background: rgba(68,223,160,.08); font-size: 9px; }
.status-pill.error { border-color: rgba(255,100,130,.3); color: #ffc7d1; background: rgba(255,100,130,.08); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(68,223,160,.08); }
.page { display: none; }.page.active { display: block; }
.hero-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 155px; padding: 22px; border: 1px solid rgba(121,92,245,.2); border-radius: 25px; background: linear-gradient(145deg, rgba(121,92,245,.18), rgba(17,24,42,.94)); box-shadow: var(--shadow); }
.hero-card h2 { max-width: 420px; margin: 7px 0; line-height: 1.6; }.hero-card small { color: var(--muted); font-size: 9px; }
.primary,.secondary,.danger-button { min-height: 42px; padding: 0 16px; border-radius: 13px; cursor: pointer; font-weight: 800; }
.primary { border: 0; color: #fff; background: linear-gradient(135deg, #795cf5, #5c7df4); box-shadow: 0 10px 30px rgba(121,92,245,.25); }
.secondary { border: 1px solid var(--line); color: #d9e0ee; background: rgba(255,255,255,.035); }
.danger-button { border: 1px solid rgba(255,100,130,.22); color: #ffc3ce; background: rgba(255,100,130,.06); }
.compact { min-height: 34px; padding: 0 12px; font-size: 10px; }.grow { flex: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 14px 0 24px; }
.stat-card { min-height: 116px; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: rgba(17,24,42,.78); }
.stat-card span,.stat-card strong,.stat-card small { display: block; }.stat-card span { color: #c9d2e4; font-size: 10px; }.stat-card strong { margin: 12px 0 6px; font-size: 27px; direction: ltr; }.stat-card small { color: var(--muted); font-size: 8px; line-height: 1.7; }
.section-head,.section-intro { margin: 22px 2px 12px; }.section-head h3,.section-intro h2 { margin-top: 3px; }
.stack { display: grid; gap: 11px; }
.empty-card,.empty-filter { display: grid; place-items: center; gap: 9px; min-height: 125px; padding: 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; font-size: 10px; }
.empty-card span { font-size: 28px; color: var(--primary); }
.alert-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(17,24,42,.76); }
.gift-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(121,92,245,.13); }.alert-row b,.alert-row small { display: block; }.alert-row b { font-size: 11px; }.alert-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }.price-tag { direction: ltr; color: var(--green); text-align: left; font-size: 10px; font-weight: 900; }
.info-note { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; padding: 12px 14px; border: 1px solid rgba(57,212,242,.15); border-radius: 15px; color: #b7c5da; background: rgba(57,212,242,.045); font-size: 9px; line-height: 1.9; }
.search-box { display: flex; align-items: center; gap: 8px; min-height: 45px; margin: 10px 0 14px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,24,42,.75); }
.search-box input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; }
.watch-card { overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: 22px; background: rgba(17,24,42,.9); box-shadow: 0 15px 38px rgba(0,0,0,.18); }.watch-card.disabled { opacity: .68; }
.watch-head { align-items: flex-start; }.watch-icon { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 auto; border-radius: 14px; background: rgba(121,92,245,.15); }.watch-copy { flex: 1; min-width: 0; }.watch-copy > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }.watch-copy h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.watch-copy > b,.watch-copy > small { display: block; }.watch-copy > b { margin-top: 5px; color: #dce3f4; font-size: 11px; }.watch-copy > small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.7; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; color: #c9d2e4; background: rgba(255,255,255,.035); cursor: pointer; }
.badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 99px; color: #d9d2ff; background: rgba(121,92,245,.14); font-size: 8px; }.badge.success { color: #c7ffe4; background: rgba(68,223,160,.11); }.badge.muted { color: #aab3c4; background: rgba(148,163,184,.1); }
.satellite-summary { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; gap: 8px; align-items: center; margin: 14px 0; padding: 11px; border: 1px solid rgba(57,212,242,.13); border-radius: 14px; background: rgba(57,212,242,.045); font-size: 8px; }.satellite-summary span { color: var(--cyan); font-weight: 900; }.satellite-summary b { direction: ltr; }.satellite-summary i { overflow: hidden; color: var(--muted); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.satellite-summary strong { color: var(--green); }
.error-note { margin: 8px 0; padding: 10px; border-radius: 12px; color: #ffc2ce; background: rgba(255,100,130,.08); font-size: 8px; line-height: 1.8; }
.filter-section-head { margin: 15px 0 9px; }.filter-section-head b,.filter-section-head small { display: block; }.filter-section-head b { font-size: 11px; }.filter-section-head small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.filter-list { display: grid; gap: 7px; }.filter-card { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }.filter-card.fallback { border-color: rgba(68,223,160,.2); background: rgba(68,223,160,.04); }.filter-card.disabled { opacity: .55; }.filter-index { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #d7d0ff; background: rgba(121,92,245,.13); font-size: 9px; font-weight: 900; }.filter-card.fallback .filter-index { color: var(--green); background: rgba(68,223,160,.1); }.filter-main { min-width: 0; }.filter-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }.filter-title b { font-size: 10px; }.filter-main > small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }.filter-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }.filter-meta span { padding: 4px 6px; border-radius: 7px; color: #b8c3d7; background: rgba(148,163,184,.07); font-size: 7px; }
.filter-actions { display: grid; grid-template-columns: repeat(2, 28px); gap: 4px; }.filter-actions button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: #bec8da; background: rgba(255,255,255,.03); cursor: pointer; }.filter-actions button:disabled { opacity: .25; cursor: default; }.filter-actions .danger { color: #ff9caf; }
.watch-actions { margin-top: 12px; }.watch-actions > * { flex: 1; }
.account-card { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: rgba(17,24,42,.82); }.account-status { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(68,223,160,.08); }.account-status.offline { background: #758096; box-shadow: none; }.account-card b,.account-card small { display: block; }.account-card b { font-size: 11px; }.account-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }.account-details { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 7px; color: #aeb8ca; font-size: 7px; }.row-actions button { min-height: 30px; border: 1px solid var(--line); border-radius: 9px; color: #cbd4e4; background: transparent; cursor: pointer; font-size: 8px; }
.bottom-nav { position: fixed; z-index: 30; right: 50%; bottom: 0; transform: translateX(50%); display: grid; grid-template-columns: repeat(3,1fr); width: min(100%,760px); padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(7,11,22,.92); backdrop-filter: blur(18px); }.bottom-nav button { display: grid; place-items: center; gap: 2px; min-height: 52px; border: 0; border-radius: 13px; color: #758198; background: transparent; cursor: pointer; }.bottom-nav button.active { color: #fff; background: rgba(121,92,245,.12); }.bottom-nav span { font-size: 18px; }.bottom-nav small { font-size: 8px; }
dialog { color: var(--text); }.sheet,.picker { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }.sheet:not([open]),.picker:not([open]) { display: none; }.sheet::backdrop,.picker::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }.sheet form,.picker-panel { position: absolute; right: 50%; bottom: 0; transform: translateX(50%); width: min(100%,620px); max-height: 94dvh; overflow: auto; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); border: 1px solid rgba(255,255,255,.1); border-radius: 26px 26px 0 0; background: #0e1526; box-shadow: 0 -25px 70px rgba(0,0,0,.5); }.sheet-handle { width: 44px; height: 4px; margin: 0 auto 15px; border-radius: 99px; background: rgba(255,255,255,.16); }.sheet-head { align-items: flex-start; margin-bottom: 14px; }.sheet-head h2 { margin-top: 3px; }.sheet-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.field { display: grid; gap: 7px; margin-bottom: 11px; }.field > span { color: #bec8da; font-size: 9px; font-weight: 800; }.field input,.field select,.field textarea,.picker-button { width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 13px; outline: 0; padding: 10px 12px; color: #fff; background: #151e32; }.field textarea { resize: vertical; }.field small { color: var(--muted); font-size: 8px; }.picker-button { display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: right; }.picker-button i { color: var(--muted); font-style: normal; }
.form-section { margin: 11px 0; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.02); }.field-title { display: flex; gap: 9px; align-items: flex-start; }.field-title > span { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 auto; border-radius: 8px; color: #d9d2ff; background: rgba(121,92,245,.15); font-size: 9px; font-weight: 900; }.field-title b,.field-title small { display: block; }.field-title b { font-size: 10px; }.field-title small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.7; }
.percent-control { display: grid; grid-template-columns: 1fr 90px; gap: 13px; align-items: center; margin-top: 14px; }.percent-control > input { accent-color: var(--primary); }.percent-control label { display: flex; align-items: center; border: 1px solid rgba(121,92,245,.35); border-radius: 12px; padding: 5px 9px; background: rgba(121,92,245,.08); }.percent-control label input { width: 100%; border: 0; outline: 0; color: #d7d0ff; background: transparent; direction: ltr; font-weight: 900; }.quick-percent { display: flex; gap: 6px; margin-top: 10px; }.quick-percent button { flex: 1; min-height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; }.quick-percent button.active { color: #fff; border-color: rgba(121,92,245,.35); background: rgba(121,92,245,.15); }
.market-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 12px; }.market-grid button { min-height: 38px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; }.market-grid button.selected { color: #e4fbff; border-color: rgba(57,212,242,.38); background: rgba(57,212,242,.08); }.market-grid span { margin-left: 4px; color: var(--cyan); }
.segmented { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; margin-top: 12px; padding: 4px; border-radius: 13px; background: rgba(255,255,255,.035); }.segmented#filterFloorBasis { grid-template-columns: repeat(3,1fr); }.segmented button { min-height: 37px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }.segmented button.active { color: #fff; background: rgba(121,92,245,.2); box-shadow: inset 0 0 0 1px rgba(121,92,245,.25); }.basis-note { margin: 9px 2px 0; color: var(--muted); font-size: 8px; line-height: 1.8; }
.filter-toolbar { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 12px; direction: ltr; }.filter-toolbar button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; border: 1px solid var(--line); border-radius: 99px; color: #fff; background: rgba(255,255,255,.035); cursor: pointer; font-size: 9px; }.filter-toolbar button.has-selection { border-color: rgba(121,92,245,.5); background: rgba(121,92,245,.18); }.filter-toolbar em { display: none; place-items: center; width: 18px; height: 18px; border-radius: 99px; background: var(--primary); font-size: 7px; font-style: normal; }.filter-toolbar .has-selection em { display: grid; }.filter-toolbar i { color: var(--muted); font-style: normal; }.selected-trait-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }.selected-trait-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 99px; color: #d6deec; background: rgba(148,163,184,.06); font-size: 8px; }.selected-trait-chip button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.preview-card { display: flex; align-items: flex-start; gap: 11px; margin: 12px 0; padding: 13px; border: 1px solid rgba(68,223,160,.16); border-radius: 16px; background: rgba(68,223,160,.045); }.preview-card > span { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 10px; color: var(--green); background: rgba(68,223,160,.1); }.preview-card b,.preview-card small { display: block; }.preview-card b { font-size: 10px; }.preview-card small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.9; }
.sheet-actions { position: sticky; bottom: -17px; margin: 12px -1px -8px; padding: 12px 1px 8px; background: linear-gradient(180deg, transparent, #0e1526 28%); }.picker-panel { display: flex; flex-direction: column; height: min(88dvh,800px); }.picker-panel .search-box { flex: 0 0 auto; }.picker-list { flex: 1; overflow: auto; }.picker-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto 30px; gap: 10px; align-items: center; width: 100%; min-height: 62px; padding: 7px 2px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); color: #fff; background: transparent; text-align: right; cursor: pointer; }.picker-row.collection-row { grid-template-columns: 48px minmax(0,1fr) auto; }.picker-row.selected { background: rgba(121,92,245,.07); }.picker-row .visual { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.05); }.picker-row img { width: 100%; height: 100%; object-fit: contain; }.picker-row b,.picker-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.picker-row b { font-size: 11px; }.picker-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }.picker-row strong { direction: ltr; color: #dce6f5; font-size: 8px; }.picker-row i { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; color: #fff; font-style: normal; }.picker-row.selected i { border-color: var(--primary); background: var(--primary); }.picker-empty { display: grid; place-items: center; min-height: 180px; color: var(--muted); font-size: 9px; }
.toast { position: fixed; z-index: 100; right: 50%; bottom: 92px; transform: translate(50%,20px); width: min(calc(100% - 32px),450px); padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; color: #fff; background: rgba(17,24,42,.97); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; text-align: center; font-size: 10px; }.toast.show { opacity: 1; transform: translate(50%,0); }.toast.error { border-color: rgba(255,100,130,.35); color: #ffc3ce; }
.loading { position: fixed; z-index: 90; inset: 0; display: grid; place-content: center; place-items: center; gap: 10px; background: rgba(7,11,22,.76); backdrop-filter: blur(4px); }.loading span { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--cyan); border-radius: 50%; animation: spin .7s linear infinite; }.loading p { color: var(--muted); font-size: 9px; }@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .app-shell { padding-inline: 10px; }.hero-card { align-items: flex-start; flex-direction: column; min-height: 170px; }.stats-grid { gap: 6px; }.stat-card { min-height: 108px; padding: 12px 9px; }.stat-card strong { font-size: 22px; }.form-grid { grid-template-columns: 1fr; gap: 0; }.market-grid { grid-template-columns: repeat(2,1fr); }.segmented#filterFloorBasis { grid-template-columns: 1fr; }.satellite-summary { grid-template-columns: auto auto 1fr; }.satellite-summary strong { grid-column: 1 / -1; }.filter-card { grid-template-columns: 27px minmax(0,1fr); }.filter-actions { grid-column: 1 / -1; grid-template-columns: repeat(5,1fr); }.filter-actions button { width: 100%; }.watch-actions { flex-direction: column; }.watch-actions > * { width: 100%; }.account-card { grid-template-columns: 10px minmax(0,1fr); }.account-card .row-actions { grid-column: 1 / -1; }.sheet form,.picker-panel { width: calc(100% - 6px); }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
