/* Hoodveil app — layout and components (dark, purple accent). Loaded after /base.css. */
html { font-size: 16px; }
body { min-height: 100svh; background: #000; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60rem 22rem at 78% -6rem, rgba(var(--brand-rgb), .22), transparent 70%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(var(--brand-rgb), .10), transparent 70%); }
body::after { content: ''; position: fixed; left: 248px; right: 0; top: 0; height: 14rem; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.small { font-size: .8125rem; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100svh; }

/* ---------- sidebar ---------- */
.side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 40%), #050506; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 30px; text-decoration: none; }
.tag { font-size: .75rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; line-height: 1.4; }
.side-nav { display: grid; gap: 6px; }
.nv { display: flex; align-items: center; gap: 14px; height: 43px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #d6dadd; font-size: 1rem; text-align: left; transition: background .2s var(--ease); }
.nv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.nv:hover { background: rgba(255,255,255,.04); }
.nv.on { background: rgba(var(--brand-rgb), .22); color: #fff; }
.nv.on svg { color: var(--accent); }
.nv-badge { margin-left: auto; font: 500 .7rem var(--mono); background: var(--brand); color: var(--on-brand, #fff); border-radius: 999px; padding: 2px 7px; }
.side-foot { margin-top: auto; display: grid; gap: 14px; }
.side-wallet { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.side-wallet img { border-radius: 6px; }
.side-brand img, .m-brand img { border-radius: 28%; box-shadow: 0 6px 18px -6px rgba(201,138,46,.6); }
.side-wallet div { display: grid; min-width: 0; }
.side-wallet span { font-size: .8125rem; }
.side-wallet small { color: var(--dim); font-size: .75rem; }
.side-note { margin: 0; color: var(--dim); font-size: .75rem; line-height: 1.5; padding: 0 4px; }

/* ---------- main ---------- */
.main { min-width: 0; padding: 22px 32px 40px; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.top-l { min-width: 0; }
.m-brand { display: none; }
.top h1 { margin: 2px 0 6px; font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.top h1 em { font-size: 2.05rem; letter-spacing: -.01em; }
.top p { margin: 0; color: #b3b8bd; font-size: .95rem; max-width: 62rem; }
.top-r { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.net { font: .8rem var(--mono); color: #f1c27d; border: 1px solid #6a4f22; background: #1b140a; border-radius: 999px; padding: 9px 14px; }
.acct { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #0d0e10; font-size: .875rem; }
.acct .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.acct.on .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.logout { height: 36px; padding: 0 14px; border: 1px solid rgba(255,123,138,.35); border-radius: 999px; background: rgba(255,123,138,.06); color: #ffb3bc; font-size: .875rem; }
.eye { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: #0d0e10; }
.eye svg { width: 16px; height: 16px; fill: none; stroke: #d6dadd; stroke-width: 1.6; }
.eye.on { border-color: rgba(var(--accent-rgb), .6); }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 1px solid rgba(255,207,110,.35); background: rgba(255,207,110,.06); color: #ffe2a8; border-radius: 14px; font-size: .9rem; }

/* ---------- cards ---------- */
.card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), #08080a; box-shadow: 0 .5rem 1.375rem -.25rem rgba(0,0,0,.5); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-h h2 { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.pad { padding: 20px 24px 24px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.view { display: flex; flex-direction: column; gap: 20px; }

/* stepper */
.steps { display: flex; gap: 10px; padding: 16px 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.st { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: transparent; color: #b3b8bd; font-size: .875rem; white-space: nowrap; }
.st i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: normal .7rem var(--mono); color: var(--muted); }
.st.on { background: rgba(255,255,255,.06); color: #fff; }
.st.on i { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.st.past i { background: rgba(var(--accent-rgb), .18); border-color: rgba(var(--accent-rgb), .5); color: var(--accent); }
.pane { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.lbl { font-size: .875rem; color: #d6dadd; }
.field { width: 100%; border: 1px solid rgba(255,255,255,.14); background: #0e0f11; color: #fff; border-radius: 12px; padding: 14px 16px; font-size: .9rem; outline: none; transition: border-color .2s; resize: none; }
.field:focus { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--brand-rgb), .06); }
.field.mono { font-family: var(--mono); font-size: .82rem; line-height: 1.5; word-break: break-all; }
.field-wrap { position: relative; }
.field-wrap .field { padding-right: 76px; }
.chip-btn { position: absolute; right: 10px; top: 10px; border: 1px solid var(--line-2); background: #17181b; border-radius: 999px; padding: 5px 12px; font-size: .78rem; color: #d6dadd; }
.resolve { min-height: 1.25rem; font-size: .85rem; }
.resolve .ok { color: var(--ok); }
.resolve .bad { color: var(--bad); }
.resolve .wait { color: var(--muted); }
.hint { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; }
.hint p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.hint a { color: var(--accent); text-decoration: none; }
.row-end { display: flex; justify-content: flex-end; margin-top: 6px; }
.row-split { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: .95rem; font-weight: 500; transition: transform .15s var(--ease), background .2s, opacity .2s; }
.btn.sm { height: 34px; padding: 0 14px; font-size: .82rem; }
.btn.primary { background: var(--brand); color: var(--on-brand, #fff); box-shadow: 0 6px 22px -6px rgba(var(--brand-rgb), .75); }
.btn.primary:hover { background: var(--brand-hi, var(--brand)); }
.btn.primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: #0d0e10; border-color: var(--line-2); color: #fff; }
.btn.ghost:hover { background: #15161a; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.busy { pointer-events: none; opacity: .8; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { border: 0; background: none; color: var(--accent); font-size: .82rem; padding: 0; }
.link.center { display: block; margin: 14px auto 0; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { height: 48px; text-align: left; padding: 0 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #0e0f11; font-size: .95rem; }
.opt.on { border-color: rgba(var(--accent-rgb), .75); background: rgba(var(--brand-rgb), .16); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.amount { position: relative; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: #0e0f11; padding: 18px 20px 14px; }
.amount:focus-within { border-color: rgba(var(--accent-rgb), .7); }
.amount-in { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 2.1rem; font-weight: 500; letter-spacing: -.02em; padding-right: 60px; }
.amount-in::placeholder { color: #4b4f55; }
.amount-unit { position: absolute; right: 20px; top: 22px; font: .9rem var(--mono); color: #d6dadd; }
.amount-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .8rem; color: var(--dim); }
.err { margin: 0; min-height: 1.1rem; color: var(--bad); font-size: .84rem; }

.review { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-size: .84rem; }
.review dd { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.review dd .mono, .review dd.mono { word-break: break-all; }
.review dd small { display: block; color: var(--dim); font-size: .76rem; margin-top: 3px; word-break: normal; }
.note { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(var(--accent-rgb), .3); background: rgba(var(--brand-rgb), .1); border-radius: 12px; padding: 12px 14px; }
.note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.note p { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--accent-soft); }
.note.warn { border-color: rgba(255,207,110,.35); background: rgba(255,207,110,.06); }
.note.warn svg { stroke: var(--warn); }
.note.warn p { color: #ffe9bd; }

.done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 12px 0 6px; }
.done-mark { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--brand-rgb), .25); border: 1px solid rgba(var(--accent-rgb), .55); box-shadow: 0 0 34px rgba(var(--brand-rgb), .6); }
.done-mark svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { margin: 4px 0 0; font-size: 1.6rem; font-weight: 600; }
.done h3 em { font-size: 1.9rem; }
.done p { margin: 0; color: #b3b8bd; font-size: .9rem; max-width: 30rem; line-height: 1.55; }
.done-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.done-links a { font: .8rem var(--mono); color: var(--accent); text-decoration: none; border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 999px; padding: 6px 12px; }

/* route */
.route-list { list-style: none; margin: 0; padding: 14px 24px 22px; position: relative; }
.route-list li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; }
.route-list li:not(:last-child)::after { content: ''; position: absolute; left: 15.5px; top: 46px; bottom: -14px; width: 1px; background: var(--line); }
.route-list i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: normal .72rem var(--mono); color: var(--muted); background: #0b0b0d; position: relative; z-index: 1; }
.route-list b { display: block; font-size: .98rem; font-weight: 500; }
.route-list span { display: block; color: var(--muted); font-size: .84rem; margin-top: 3px; }
.route-list em { font: normal .78rem var(--mono); color: var(--dim); }
.route-list li.active i { border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.route-list li.active em { color: var(--accent); }
.route-list li.ok i { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.route-list li.ok em { color: var(--ok); }
.route-list li.ok::after { background: rgba(var(--accent-rgb), .45); }

/* tables */
.table-card .card-h { border-bottom: 0; }
.tbl { display: grid; }
.tr { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr 1.2fr .8fr; gap: 12px; align-items: center; padding: 13px 24px; border-top: 1px solid var(--line); font-size: .86rem; min-width: 0; }
.tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr.th { color: var(--muted); font-size: .8rem; background: rgba(255,255,255,.015); }
.tr.th > :last-child, .tr > :last-child { text-align: right; }
.tr a { color: var(--accent); text-decoration: none; font-family: var(--mono); font-size: .8rem; }
.tbl .empty { padding: 18px 24px 22px; text-align: center; color: #b3b8bd; font-size: .9rem; border-top: 1px solid var(--line); }
.status { font: .76rem var(--mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.status.ok { color: var(--ok); border-color: rgba(126,226,168,.35); }
.status.run { color: var(--accent); border-color: rgba(var(--accent-rgb), .4); }
.status.bad { color: var(--bad); border-color: rgba(255,123,138,.35); }
.inbox-tbl .tr { grid-template-columns: 1fr .9fr 1.3fr .9fr .9fr; }
.money { transition: filter .2s; }
body.hide .money { filter: blur(7px); }

/* inbox */
.lock { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; padding: 30px; align-items: start; }
.lock-art { width: 72px; height: 72px; display: grid; place-items: center; background: none; border: 0; box-shadow: none; }
.lock-art img { border-radius: 28%; box-shadow: 0 14px 34px -10px rgba(201,138,46,.7); }
.lock-body h2 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 600; }
.lock-body p { margin: 0 0 14px; color: #b3b8bd; line-height: 1.6; font-size: .95rem; max-width: 40rem; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; font-size: .9rem; color: #d6dadd; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { padding: 20px 22px; }
.stat span { display: block; color: #d6dadd; font-size: .86rem; }
.stat b { display: block; margin-top: 8px; font-size: 1.55rem; font-weight: 600; }
.stat b small { font-size: .85rem; color: var(--muted); font-weight: 400; }
.meta-box { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: #0e0f11; border: 1px solid rgba(255,255,255,.12); font-size: .78rem; line-height: 1.6; word-break: break-all; color: var(--accent-soft); }
.pill-ok { font: .74rem var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.pill-ok.on { color: var(--ok); border-color: rgba(126,226,168,.4); }
.bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; transition: width .4s var(--ease); }

/* scan */
.scan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 8px; }
.scan-row .btn { height: auto; }
.scan-opts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; }
.tog { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; cursor: pointer; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog > span { width: 38px; height: 22px; border-radius: 99px; background: #1a1b1f; border: 1px solid var(--line-2); position: relative; transition: background .2s; flex-shrink: 0; }
.tog > span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #9ba0a6; transition: transform .2s var(--ease), background .2s; }
.tog input:checked + span { background: var(--brand); border-color: var(--brand); }
.tog input:checked + span::after { transform: translateX(16px); background: var(--on-brand, #fff); }
.tog input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tog em { font-style: normal; font-size: .72rem; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 999px; padding: 1px 7px; }
.score-card { padding-bottom: 20px; }
.score { position: relative; width: 168px; height: 168px; margin: 22px auto 6px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: rgba(255,255,255,.08); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1s var(--ease), stroke .3s; }
.score-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-num b { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.score-num span { color: var(--muted); font-size: .85rem; }
.score-level { text-align: center; margin: 4px 0 0; font: 1.05rem var(--mono); }
.score-level.Low { color: var(--ok); } .score-level.Medium { color: var(--warn); } .score-level.High { color: var(--bad); }
.score-sum { text-align: center; color: #b3b8bd; font-size: .9rem; margin: 8px 24px 0; line-height: 1.5; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 24px 0; }
.mini-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mini-stats span { display: block; color: var(--dim); font-size: .72rem; }
.mini-stats b { display: block; font-size: .95rem; font-weight: 500; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factors { padding: 8px 24px 18px; }
.fac { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 3rem; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fac:last-child { border-bottom: 0; }
.fac b { display: block; font: .86rem var(--mono); color: #fff; font-weight: 400; }
.fac small { display: block; color: var(--dim); font-size: .74rem; margin-top: 2px; }
.fac .trk { position: relative; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); }
.fac .trk i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: #6a6e74; transition: width .9s var(--ease); }
.fac .trk i::after { content: ''; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 0 0 3px rgba(0,0,0,.6); }
.fac.hi .trk i { background: var(--accent); }
.fac em { font: normal .82rem var(--mono); text-align: right; }
.fac p { grid-column: 1 / -1; margin: 0; color: #b3b8bd; font-size: .84rem; line-height: 1.5; }
.fixes { margin: 0; padding: 10px 24px 20px 46px; display: grid; gap: 12px; }
.fixes li { font-size: .9rem; line-height: 1.55; color: #d6dadd; padding-left: 4px; }
.fixes li b { color: #fff; font-weight: 500; }
.fixes li::marker { font-family: var(--mono); color: var(--accent); }
.linked-tbl .tr { grid-template-columns: 1.4fr .7fr .7fr .9fr; }

/* settings */
.set-list { display: grid; gap: 0; padding-top: 8px; }
.set { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.set:last-child { border-bottom: 0; }
.set b { display: block; font-weight: 500; font-size: .95rem; }
.set span:not(.tog):not(.tog span) { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.contracts { display: grid; gap: 12px; }
.contracts a { display: grid; gap: 2px; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.contracts a b { font-weight: 500; font-size: .9rem; }
.contracts a span { font: .76rem var(--mono); color: var(--accent); word-break: break-all; }
.contracts a small { color: var(--dim); font-size: .78rem; }

.app-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 10px; color: var(--dim); font-size: .78rem; }
.app-foot a { color: var(--muted); text-decoration: none; margin-left: 14px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); }
.modal-card { width: min(28rem, 100%); max-height: calc(100svh - 32px); overflow: auto; border: 1px solid var(--line-2); border-radius: 22px; background: #0b0b0d; padding: 22px; box-shadow: 0 30px 80px -20px rgba(var(--brand-rgb), .5); display: flex; flex-direction: column; gap: 12px; }
.small-card { width: min(22rem, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: center; }
.modal-h h2 { margin: 0; font-size: 1.3rem; font-weight: 600; }
.modal-h h2 em { font-size: 1.5rem; }
.x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #121315; font-size: 1.2rem; line-height: 1; }
.wallets { display: grid; gap: 8px; margin-top: 4px; }
.wl { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #0e0f11; text-align: left; text-decoration: none; }
.wl:hover { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--brand-rgb), .08); }
.wl img { width: 36px; height: 36px; border-radius: 9px; background: #fff1; object-fit: contain; }
.wl b { font-weight: 500; font-size: .95rem; }
.wl small { font: .72rem var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; }
.wl small.det { color: var(--ok); border-color: rgba(126,226,168,.4); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: #16171a; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px; font-size: .86rem; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* skeleton */
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #15161a, #202126, #15161a); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  body::after { left: 0; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 14px 16px 104px; gap: 16px; }
  .m-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 18px; }
  .top { flex-direction: column; gap: 14px; }
  .top h1 { font-size: 1.55rem; } .top h1 em { font-size: 1.8rem; }
  .top p { font-size: .92rem; line-height: 1.5; }
  .top-r { flex-wrap: wrap; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; padding: 6px; border: 1px solid var(--line-2); border-radius: 20px; background: #0c0c0e; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
  .tb { display: grid; justify-items: center; gap: 4px; padding: 8px 0 6px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-size: .72rem; }
  .tb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .tb.on { background: rgba(255,255,255,.07); color: #fff; }
  .stats3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stat { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
  .stat b { margin: 0; font-size: 1.2rem; }
  .card-h, .pad, .pane, .steps { padding-left: 16px; padding-right: 16px; }
  .route-list { padding-left: 16px; padding-right: 16px; }
  .tr { padding: 12px 16px; grid-template-columns: 1fr 1fr auto !important; }
  .tr > :nth-child(3), .tr > :nth-child(4) { display: none; }
  .linked-tbl .tr > :nth-child(3) { display: block; }
  .review div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lock { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .lock-art { width: 72px; height: 72px; border-radius: 20px; }
  .fac { grid-template-columns: minmax(0, 1fr) 3rem; }
  .fac .trk { grid-column: 1 / -1; grid-row: 2; }
  .amount-in { font-size: 1.8rem; }
  .app-foot { padding-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
