:root {
  --gold: #d4b07a;
  --gold-2: #f3e2bf;
  --gold-dim: rgba(212, 176, 122, 0.18);
  --teal: #49eacb;
  --blue: #0a84ff;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --indigo: #5e5ce6;
  --label: #f5f5f7;
  --label-2: rgba(235, 235, 245, 0.62);
  --label-3: rgba(235, 235, 245, 0.34);
  --hairline: rgba(255, 255, 255, 0.12);
  --glass: rgba(18, 18, 20, 0.52);
  --glass-2: rgba(28, 28, 32, 0.72);
  --fill: rgba(255, 255, 255, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: calc(88px + var(--safe-b));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html.has-wallet #page-lock .list,
html.has-wallet #page-lock .notice,
html.has-wallet #lock-net,
html.has-wallet #import-box { display: none !important; }
.boot-veil {
  display: none;
  position: absolute; inset: 0; z-index: 70;
  place-items: center; align-content: center;
  background: rgba(5,5,6,.72);
  color: var(--gold-2); font-size: 14px; font-weight: 650;
  text-align: center; padding: 24px;
}
html.has-wallet:not(.booted) .boot-veil { display: grid; }

html, body {
  height: 100%;
  background: #050506 url("../assets/bg.jpg") center 32% / cover no-repeat;
  color: var(--label);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.22px;
  overflow: hidden;
  color-scheme: dark;
}
button, input, textarea { font-family: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]),
textarea,
select {
  color: var(--label);
  -webkit-text-fill-color: var(--label);
  caret-color: var(--gold-2);
  background-color: #1c1c1e;
  color-scheme: dark;
}
input::placeholder,
textarea::placeholder {
  color: var(--label-3);
  -webkit-text-fill-color: var(--label-3);
  opacity: 1;
}
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="month"],
input[type="number"] {
  color-scheme: dark;
  background-color: #1c1c1e;
  color: #f5f5f7;
  -webkit-text-fill-color: #f5f5f7;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}
.sheet input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]),
.sheet textarea,
.sheet select,
#page-vault input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]),
#page-vault textarea,
#page-vault select {
  background-color: #1c1c1e;
  color: #f5f5f7;
  -webkit-text-fill-color: #f5f5f7;
  border: 0.5px solid var(--hairline);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #f5f5f7 !important;
  caret-color: var(--gold-2);
  box-shadow: 0 0 0 1000px #1c1c1e inset !important;
  transition: background-color 99999s ease-out;
}
img { display: block; max-width: 100%; }

.bg-poster {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  z-index: 0;
  filter: saturate(1.18) contrast(1.08) brightness(1.16);
}
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% 18%, rgba(8,8,10,0.08), transparent 58%),
    linear-gradient(180deg, rgba(5,5,7,0.18) 0%, rgba(5,5,7,0.28) 46%, rgba(5,5,7,0.58) 100%);
}
.sheen {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0.14;
  background: linear-gradient(115deg, transparent 30%, rgba(243,226,191,0.16) 50%, transparent 70%);
}

.stage {
  position: relative; z-index: 3;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
}

.phone {
  position: relative;
  width: min(430px, 100vw);
  height: min(932px, 100dvh);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: rgba(0,0,0,0.04);
}
@media (min-width: 520px) {
  .phone {
    border-radius: 46px;
    border: 10px solid #141416;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.08),
      0 40px 90px rgba(0,0,0,0.55),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }
  .phone::before {
    content: "";
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 128px; height: 28px; border-radius: 18px;
    background: #050506; z-index: 20;
  }
}

.status {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: calc(12px + var(--safe-t)) 16px 8px;
  font-size: 13px; font-weight: 600; color: var(--label-2);
}
.status .clock { color: var(--label); letter-spacing: 0.4px; font-variant-numeric: tabular-nums; font-size: 12px; flex-shrink: 0; }
.status-pips { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.connected-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px 0 7px;
  border-radius: 999px;
  border: 0.5px solid var(--hairline);
  background: rgba(255,255,255,0.06);
  color: var(--label-2);
  font-size: 11px; font-weight: 750; letter-spacing: -0.15px;
  margin: 0 auto;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}
.connected-pill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--label-3);
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.connected-pill em {
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  font-size: 10px; font-style: normal; font-weight: 800;
  display: grid; place-items: center;
}
.connected-pill.on {
  color: #30d158;
  background: rgba(48,209,88,0.14);
  border-color: rgba(48,209,88,0.32);
}
.connected-pill.on i {
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
}
.connected-pill.on em { background: rgba(48,209,88,0.28); color: #d8ffd8; }
.connected-pill.live i { animation: pulse 1.4s ease-in-out infinite; }
.connected-pill.sm { height: 24px; margin: 0; flex-shrink: 0; }
.connected-pill:active { transform: scale(0.96); }
.dapp-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.dapp-head h3 { margin-bottom: 0; flex: 1; min-width: 0; }
.conn-list {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 0 12px;
}
.conn-list.hidden { display: none !important; }
.conn-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--hairline);
  animation: connIn 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.conn-row.on {
  border-color: rgba(48,209,88,0.4);
  background: rgba(48,209,88,0.08);
}
@keyframes connIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.conn-mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(212,176,122,0.16); color: var(--gold-2);
  font-weight: 800; font-size: 14px;
}
.conn-copy { min-width: 0; flex: 1; text-align: left; }
.conn-copy b { display: block; font-size: 14px; font-weight: 700; }
.conn-copy span, .conn-copy em {
  display: block; font-size: 11px; color: var(--label-2);
  font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conn-x {
  height: 28px; padding: 0 10px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,69,58,0.12); color: var(--red);
  font-size: 11px; font-weight: 750; border: 0;
}
.conn-x:active { transform: scale(0.96); }
.status-pips i {
  display: block; width: 16px; height: 10px; border: 1.4px solid var(--label-2); border-radius: 3px; position: relative;
}
.status-pips i::after {
  content: ""; position: absolute; inset: 2px 5px 2px 2px; background: var(--green); border-radius: 1px;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 18px 10px;
}
.nav h1 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.4px; text-align: center; flex: 1;
}
.nav-btn {
  min-width: 44px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-2); font-size: 15px; font-weight: 500;
}
.nav-btn.ghost { color: var(--label-2); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fill); border: 0.5px solid var(--hairline);
  display: grid; place-items: center;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.ttt {
  padding: 0; overflow: hidden; background: #fff; border: 0;
}
.icon-btn.ttt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ttt-screen {
  position: absolute; inset: 0; z-index: 87;
  background: #050506;
  display: flex; flex-direction: column;
  padding: calc(12px + var(--safe-t)) 0 0;
  overflow: hidden;
}
.ttt-screen.hidden { display: none !important; }
.ttt-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 0 16px 8px; flex-shrink: 0;
}
.ttt-head h2 { font-size: 17px; font-weight: 750; letter-spacing: -0.3px; flex: 1; text-align: center; }
.ttt-fund {
  height: 28px; padding: 0 12px; border: 0; border-radius: 9px;
  font-size: 12px; font-weight: 750; letter-spacing: -0.2px; cursor: pointer;
  background: linear-gradient(180deg, #f3e2bf, #c9a36a); color: #1a140c;
  flex-shrink: 0;
}
.ttt-sweep {
  background: rgba(255,255,255,0.12); color: #f3e2bf;
}
.ttt-mark { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff; }
.ttt-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }

.scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 18px var(--tab-h);
  -webkit-overflow-scrolling: touch;
}
.scroll.home-noscroll {
  overflow: hidden;
  padding-bottom: calc(var(--tab-h) + 4px);
}
.scroll::-webkit-scrollbar { width: 0; }

.page { display: none; animation: rise 0.42s cubic-bezier(0.32,0.72,0,1); }
.page.active { display: block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero-brand { text-align: center; padding: 28px 8px 18px; }
.hero-brand img.app-icon {
  width: 86px; height: 86px; margin: 0 auto 18px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 0.5px rgba(255,255,255,0.12);
}
.hero-brand h2 {
  font-size: 34px; font-weight: 700; letter-spacing: -1.2px;
}
.hero-brand p {
  margin-top: 8px; font-size: 15px; color: var(--label-2); line-height: 1.45;
}

.glass {
  background: rgba(18, 18, 20, 0.38);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 0.5px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.list { overflow: hidden; margin-bottom: 16px; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; min-height: 62px;
  border-bottom: 0.5px solid var(--hairline);
  width: 100%; text-align: left;
}
.row:last-child { border-bottom: 0; }
.row:active { background: rgba(255,255,255,0.05); }
.row .glyph {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.row .title { font-size: 17px; font-weight: 500; }
.row .sub { font-size: 13px; color: var(--label-2); margin-top: 2px; }
.chev { margin-left: auto; color: var(--label-3); font-size: 20px; font-weight: 300; }

.metal-card {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 22px 22px 18px;
  min-height: 196px;
  background:
    linear-gradient(145deg, rgba(42,38,34,0.72) 0%, rgba(18,16,15,0.55) 50%, rgba(28,22,16,0.7) 100%);
  border: 0.5px solid rgba(243,226,191,0.28);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.16);
  margin-bottom: 16px;
}
.metal-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.16) 45%, transparent 70%);
  transform: translateX(-60%);
  animation: cardShine 5.5s ease-in-out infinite;
}
@keyframes cardShine {
  0%, 55% { transform: translateX(-70%); }
  100% { transform: translateX(70%); }
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.card-chip {
  width: 38px; height: 28px; border-radius: 6px;
  background: linear-gradient(180deg, #f3e2bf, #b0894a);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
  position: relative;
}
.card-chip::before, .card-chip::after {
  content: ""; position: absolute; background: rgba(80,50,10,0.35);
}
.card-chip::before { left: 8px; top: 4px; bottom: 4px; width: 1px; }
.card-chip::after { top: 13px; left: 4px; right: 4px; height: 1px; }
.card-mark { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--gold-2); text-transform: uppercase; }
.card-wallet {
  position: relative; z-index: 2;
  max-width: 72%;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2px;
  color: var(--gold-2);
  background: rgba(0,0,0,0.28);
  border: 0.5px solid rgba(243,226,191,0.32);
  border-radius: 999px;
  padding: 6px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-wallet:active { opacity: 0.8; }
.nav-wallet {
  font: inherit; color: inherit; letter-spacing: inherit;
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 190px; overflow: hidden;
}
.nav-wallet b {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650;
}
.nav-wallet span { font-size: 11px; color: var(--gold-2); flex-shrink: 0; }
.wallet-switch {
  display: flex; align-items: stretch; gap: 6px;
  margin: 0 0 14px; padding: 2px 0 6px;
  overflow: hidden;
}
.w-track {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.w-arrow {
  flex-shrink: 0; width: 28px; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--glass-2);
  border: 0.5px solid var(--hairline);
  color: var(--gold-2); font-size: 22px; font-weight: 600; line-height: 1;
}
.w-arrow:disabled { opacity: 0.28; color: var(--label-2); }
.w-chip {
  min-width: 0; width: 100%;
  display: flex; align-items: stretch; gap: 2px;
  padding: 6px 6px 6px 8px;
  border-radius: 14px;
  background: var(--glass-2);
  border: 0.5px solid var(--hairline);
  color: var(--label); text-align: left;
}
.w-chip.on {
  border-color: var(--gold);
  background: rgba(212,176,122,0.16);
}
.w-chip-main {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px;
  background: none; border: 0; padding: 0; color: inherit; text-align: left; min-width: 0; flex: 1;
}
.w-kas {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: #0b2a26 url("../assets/kas.svg") center / 78% no-repeat;
}
.w-chip b {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 650; line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.w-chip b .kns-check { flex-shrink: 0; }
.kns-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(180deg, #5ac8fa, #0a84ff);
  color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}
.kns-check svg { width: 9px; height: 9px; display: block; }
.you-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 750; letter-spacing: -0.3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: none; border: 0; padding: 0; color: inherit; max-width: 100%;
}
.you-name .kns-check { width: 16px; height: 16px; }
.you-name .kns-check svg { width: 10px; height: 10px; }
.you-kns { display: flex; align-items: center; gap: 5px; }
#page-tokens.at-fit.active {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; gap: 6px;
}
.at-head { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.at-head .seg { flex: 1; margin: 0; }
.at-tokens-btn {
  height: 32px; padding: 0 10px; border-radius: 10px; flex-shrink: 0;
  background: var(--fill); border: 0.5px solid var(--hairline);
  color: var(--gold-2); font-size: 11px; font-weight: 750;
}
.at-tokens-btn.on { background: rgba(212,176,122,0.2); }
.at-tokens-btn.bet { color: #111; background: linear-gradient(180deg, #f3e2bf, #c9a36a); border: 0; }
.at-tokens-btn.bet.on { background: linear-gradient(180deg, #fff6e0, #d4b07a); }
#at-bet { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0; }
#at-bet.hidden { display: none !important; }
#at-bet > * { flex-shrink: 0; }
#at-bet-play {
  position: sticky; top: 0; z-index: 4;
  padding: 0 0 8px; margin: 0 0 6px;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(14px);
}
#at-bet .glass.list { flex: 0 0 auto; }
.bet-q {
  font-size: 17px; font-weight: 750; line-height: 1.28; letter-spacing: -0.3px;
  color: var(--label); margin: 2px 0 8px;
}
.bet-q b { color: var(--gold-2); font-weight: 800; }
.bet-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 0 8px;
}
.bet-clock {
  font-size: 15px; font-weight: 750; letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums; margin: 0; color: var(--gold-2);
}
.bet-net { font-size: 11px; font-weight: 650; color: var(--label-2); }
.bet-odds {
  height: 6px; border-radius: 99px; overflow: hidden;
  background: rgba(255,69,58,0.38); margin: 0 0 8px;
}
.bet-odds-yes {
  display: block; height: 100%; width: 50%;
  background: #49eacb; border-radius: 99px 0 0 99px;
}
.bet-yn { display: flex; gap: 8px; margin: 0 0 6px; }
.bet-yes, .bet-no {
  flex: 1; min-height: 38px; height: 38px; border-radius: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
}
.bet-yes { background: rgba(73,234,203,0.16); color: #49eacb; border: 0.5px solid rgba(73,234,203,0.35); }
.bet-no { background: rgba(255,69,58,0.16); color: #ff6b6b; border: 0.5px solid rgba(255,69,58,0.35); }
.bet-yes b, .bet-no b { display: inline; font-size: 13px; margin: 0 0 0 6px; font-weight: 800; }
.bet-pool, .bet-how {
  font-size: 11px; color: var(--label-2); line-height: 1.4;
  margin: 0 0 8px;
}
.bet-how { margin-bottom: 12px; }
.bet-ticket {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; color: inherit;
  font: inherit; padding: 6px 0; cursor: pointer;
}
.bet-ticket .bet-id {
  display: inline-block; margin-right: 6px;
  color: var(--gold-2); font-weight: 800; font-variant-numeric: tabular-nums;
}
#bet-stop {
  position: relative; z-index: 6;
  margin-top: 8px; min-height: 44px;
  pointer-events: auto;
}
#tok-seg { margin: 0 0 8px; flex-shrink: 0; }
#tok-kron, #tok-kcom, #tok-scorpion {
  flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column;
  padding-top: 2px;
}
#at-holdings .row.token-row {
  align-items: center; padding: 10px 12px; min-height: 52px;
}
#at-holdings .token-row .dot {
  width: 34px; height: 34px; align-self: center;
}
#at-holdings .token-row .dot img {
  object-fit: cover; object-position: 50% 30%;
}
#at-holdings .token-row .title { font-size: 15px; line-height: 1.2; margin: 0; }
#at-holdings .token-row .sub { margin-top: 1px; font-size: 12px; line-height: 1.2; }
#at-holdings .token-row .amt b { font-size: 14px; line-height: 1.2; }
.dot.ttt-dot { background: #f4f4f6; }
.at-id { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.at-logo-up { display: flex; align-items: center; gap: 10px; }
.at-logo-up img {
  width: 48px; height: 48px; border-radius: 14px; object-fit: cover;
  object-position: 50% 28%; background: #f4f4f6; flex-shrink: 0;
}
.at-logo-up .btn { height: 40px; flex: 1; margin: 0; }
#tok-kron.hidden, #tok-kcom.hidden, #tok-scorpion.hidden { display: none !important; }
.at-src { margin: 2px 0 8px; flex-shrink: 0; }
#at-src button.hidden, #tok-seg button.hidden { display: none !important; }
.at-desk-back {
  align-self: flex-start; background: none; border: 0; color: var(--gold-2);
  font-size: 12px; font-weight: 700; padding: 0 0 8px;
}
.at-desk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.at-desk-head .dot { width: 40px; height: 40px; flex-shrink: 0; }
.at-desk-head .meta { min-width: 0; }
.at-desk-head .title { font-size: 18px; font-weight: 750; line-height: 1.1; }
.at-desk-head .sub { font-size: 12px; color: var(--label-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.at-desk-head .px { margin-left: auto; text-align: right; font-weight: 750; font-size: 16px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.at-desk-head .px em { display: block; font-style: normal; font-size: 11px; font-weight: 650; }
.at-venue {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-2); border: 0.5px solid rgba(212,176,122,0.4);
  border-radius: 999px; padding: 1px 6px;
}
.at-chg.up { color: var(--teal); }
.at-chg.down { color: var(--red); }
.at-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 8px;
}
.at-stat {
  background: rgba(0,0,0,0.28); border: 0.5px solid var(--hairline);
  border-radius: 10px; padding: 6px 7px; min-width: 0;
}
.at-stat b {
  display: block; font-size: 11px; font-weight: 750;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.at-stat span {
  display: block; font-size: 9px; color: var(--label-2);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ag-picks {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 8px 0 2px;
}
.ag-picks button {
  height: 28px; padding: 0 10px; border-radius: 14px;
  font-size: 11px; font-weight: 750; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.06); color: inherit;
  border: 0.5px solid var(--hairline);
}
.ag-picks button.on { background: rgba(243,226,191,0.16); color: var(--gold-2); border-color: rgba(212,176,122,0.45); }
.ag-now {
  margin: 8px 0 6px; font-size: 14px; font-weight: 750;
  font-variant-numeric: tabular-nums; letter-spacing: -0.2px;
}
.at-chart {
  width: 100%; height: 168px; display: block; border-radius: 14px;
  background: linear-gradient(180deg, rgba(8,10,12,0.78), rgba(8,10,12,0.4));
  border: 0.5px solid var(--hairline);
  margin-bottom: 8px;
}
.at-ob {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  font-size: 11px; margin-bottom: 8px;
  background: rgba(0,0,0,0.22); border: 0.5px solid var(--hairline);
  border-radius: 14px; padding: 8px;
}
.at-ob b { display: block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label-2); margin-bottom: 4px; }
.at-ob .col { min-width: 0; }
.at-ob .ask { color: #ff6b6b; }
.at-ob .bid { color: #49eacb; }
.at-ob .lvl {
  position: relative; display: flex; justify-content: space-between; gap: 8px;
  font-variant-numeric: tabular-nums; padding: 3px 5px; border-radius: 6px;
  width: 100%; color: inherit; text-align: left;
}
.at-ob .lvl i {
  position: absolute; inset: 0 auto 0 0; border-radius: 6px; pointer-events: none;
}
.at-ob .ask i { background: rgba(255,69,58,0.18); }
.at-ob .bid i { background: rgba(73,234,203,0.16); }
.at-ob .lvl span, .at-ob .lvl em { position: relative; z-index: 1; }
.at-ob .lvl em { font-style: normal; color: var(--label-2); }
.at-spread {
  grid-column: 1 / -1; text-align: center; font-size: 11px; font-weight: 750;
  padding: 4px 0 0; color: var(--gold-2);
}
.at-ana {
  margin: 0 0 8px; padding: 8px 10px; border-radius: 12px;
  background: rgba(0,0,0,0.22); border: 0.5px solid var(--hairline);
  flex-shrink: 0;
}
.at-ana summary { font-size: 12px; font-weight: 750; color: var(--gold-2); cursor: pointer; }
.at-ana .kv { margin-top: 6px; }
.at-ticket { flex-shrink: 0; }
#at-desk { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
#at-desk.hidden, #at-mkt-wrap.hidden { display: none !important; }
#at-mkt-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.at-mkts .token-row { min-height: 56px; }
.at-note, .at-tiny { font-size: 10px; color: var(--label-2); line-height: 1.3; margin: 0; flex-shrink: 0; }
.at-help {
  margin: 0 0 8px; padding: 8px 10px; border-radius: 12px;
  background: rgba(0,0,0,0.22); border: 0.5px solid var(--hairline);
  flex-shrink: 0;
}
.at-help summary {
  font-size: 12px; font-weight: 750; color: var(--gold-2); cursor: pointer;
}
.at-help ul { margin: 8px 0 0; padding-left: 16px; }
.at-help li { font-size: 11px; color: var(--label-2); line-height: 1.35; margin: 0 0 5px; }
.at-help b { color: var(--label); }
.field span em {
  font-style: normal; font-weight: 500; color: var(--label-2);
  font-size: 9px; margin-left: 4px;
}
.at-row { display: flex; gap: 8px; }
.at-row .field { margin-bottom: 6px; }
.at-quote {
  font-size: 11px; color: var(--label-2); line-height: 1.35;
  min-height: 2.4em; margin: 0 0 4px;
}
.at-mkts { flex: 1; min-height: 0; overflow-y: auto; margin: 0; }
#at-book, #at-launch, #at-agent, #at-holdings {
  flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column;
}
#at-book.hidden, #at-launch.hidden, #at-agent.hidden, #at-holdings.hidden { display: none !important; }
.ag-net {
  font-size: 11px; font-weight: 650; color: var(--gold-2);
  margin: 0 0 8px; letter-spacing: -0.1px;
}
.ag-preview { margin: 0 0 10px; flex-shrink: 0; }
.ag-fills {
  font-size: 11px; color: var(--label-2); line-height: 1.4;
  margin: 6px 0 0;
}
.ag-fills a { color: var(--gold-2); }
.ag-fills .up { color: #49eacb; }
.ag-fills .down { color: #ff6b6b; }
.ag-fills-h { font-weight: 700; color: var(--gold-2); margin: 0 0 4px; }
.ag-fill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 0.5px solid var(--hairline);
}
.ag-fill:last-child { border-bottom: 0; }
.ag-fill .dot { width: 22px; height: 22px; }
.act-badge {
  display: inline-block; margin-left: 6px; vertical-align: 1px;
  font-size: 10px; font-weight: 750; letter-spacing: 0.02em;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(212,176,122,0.22); color: var(--gold-2);
}
.tx .dir .dot { width: 36px; height: 36px; }
.ag-strats { flex-wrap: wrap; }
.ag-strats button { flex: 1 1 30%; min-width: 72px; font-size: 11px; }
#ag-pct-wrap.hidden, #ag-levels.hidden { display: none !important; }
.boost-card {
  padding: 12px; margin-bottom: 12px;
}
.boost-top { display: flex; align-items: center; gap: 10px; }
.boost-top b { display: block; font-size: 14px; font-weight: 750; }
.boost-top p { margin: 2px 0 0; font-size: 11px; color: var(--label-2); line-height: 1.3; }
.boost-go {
  flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 10px;
  background: linear-gradient(180deg, #f3e2bf, #c9a36a); color: #1a140c;
  font-size: 12px; font-weight: 750;
}
.boost-rail {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.boost-rail:empty { display: none; }
.boost-pill {
  flex-shrink: 0; min-width: 108px; text-align: left;
  padding: 8px 10px; border-radius: 12px;
  background: rgba(212,176,122,0.14); border: 0.5px solid rgba(212,176,122,0.35);
}
.boost-pill b { display: block; font-size: 13px; }
.boost-pill em { display: block; font-style: normal; font-size: 11px; color: var(--gold-2); }
.boost-pill span { display: block; font-size: 10px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.w-chip em { display: block; font-style: normal; font-size: 11px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.w-send {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(212,176,122,0.18); color: var(--gold-2);
  font-size: 14px; font-weight: 700; line-height: 1;
}
.w-chip.add {
  flex: 0 0 36px; width: 36px; min-width: 36px; padding: 0;
  align-items: center; justify-content: center;
  color: var(--gold-2); font-size: 20px; font-weight: 600;
}
.card-foot-btns { display: flex; gap: 12px; flex-shrink: 0; }
.pk-mask {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 0.5px solid var(--hairline);
  font-size: 13px; letter-spacing: 2px;
  color: var(--label-2); word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.pk-mask.shown {
  letter-spacing: 0; color: var(--gold-2); font-size: 13px;
}
.trade-quote {
  text-align: left; padding: 8px 0 4px;
}
.trade-quote .kv { padding: 8px 0; }
.mkt-chg.up { color: var(--green); }
.mkt-chg.down { color: var(--red); }
.card-label { margin-top: 28px; font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 1.4px; text-transform: uppercase; position: relative; z-index: 1; display:flex; align-items:center; gap:8px; }
.live-pill {
  display:inline-flex; align-items:center; gap:5px;
  font-size:10px; letter-spacing:0.8px; font-weight:700;
  color:#30d158; background:rgba(48,209,88,0.14);
  border-radius:999px; padding:3px 8px; text-transform:uppercase;
}
.live-pill::before {
  content:""; width:6px; height:6px; border-radius:50%; background:#30d158;
  box-shadow:0 0 8px #30d158; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.flash-up { animation: flashUp 1.1s ease; }
@keyframes flashUp { 0% { color: #30d158; } 100% { color: inherit; } }
.card-bal {
  font-size: 40px; font-weight: 700; letter-spacing: -1.6px;
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.card-bal small { font-size: 18px; font-weight: 600; opacity: 0.55; margin-left: 6px; }
.card-usd { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 2px; position: relative; z-index: 1; }
.card-foot {
  margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,0.55);
}
#card-addr {
  min-width: 0; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: inherit; font-weight: 650;
}

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 4px 10px;
}
.action .orb {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-2);
  border: 0.5px solid var(--hairline);
  backdrop-filter: blur(20px);
}
.action:active .orb { transform: scale(0.94); }
.action span { font-size: 12px; font-weight: 500; color: var(--label-2); }
.action svg { width: 20px; height: 20px; }

.section-label {
  font-size: 13px; font-weight: 600; color: var(--label-2);
  text-transform: uppercase; letter-spacing: 0.7px;
  padding: 4px 4px 8px;
}
.hold-lab {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.kron-24h-btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--gold-dim); color: var(--gold-2);
  font: 650 11px/1 var(--font); letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  flex-shrink: 0;
}
.kron-24h-btn:active { transform: scale(0.96); }
.kron-board-list {
  flex: 1; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

.token-row .amt { margin-left: auto; text-align: right; flex-shrink: 0; }
.token-row .amt b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.3px; }
.token-row .amt em { font-style: normal; font-size: 12px; color: var(--label-2); }
.token-row > div:not(.dot):not(.amt) { flex: 1; min-width: 0; }
.token-row .title, .token-row .sub {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  overflow: hidden; flex-shrink: 0; line-height: 1;
}
.dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kas-dot,
.token-row[data-ticker="KAS"] .dot,
.token-row[data-token-key="native:KAS"] .dot {
  background: #0b2a26 url("../assets/kas.svg") center / 72% no-repeat;
  padding: 0;
}
.token-row[data-ticker="KAS"] .dot img,
.token-row[data-token-key="native:KAS"] .dot img {
  display: none;
}

.utxo-bar {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 16px;
  font-size: 14px; font-weight: 600;
}
.utxo-bar .utxo-go { color: var(--gold-2); }
.trade-cta span:first-child { letter-spacing: 0.8px; font-weight: 750; }

#page-home.home-fit {
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}
#page-home.home-fit.active { display: flex; }
#page-home.home-fit .metal-card {
  min-height: 0; padding: 12px 16px 12px; margin-bottom: 8px; border-radius: 18px;
}
#page-home.home-fit .card-label { margin-top: 8px; font-size: 10px; }
#page-home.home-fit .card-bal { font-size: 28px; letter-spacing: -1px; }
#page-home.home-fit .card-bal small { font-size: 13px; }
#page-home.home-fit .card-usd { font-size: 12px; }
#page-home.home-fit .card-foot { margin-top: 8px; font-size: 11px; }
#page-home.home-fit .card-chip { width: 28px; height: 20px; }
#page-home.home-fit .wallet-switch { margin: 0 0 8px; padding: 0; gap: 4px; }
#page-home.home-fit .w-track { gap: 4px; }
#page-home.home-fit .w-arrow { width: 22px; border-radius: 10px; font-size: 18px; }
#page-home.home-fit .w-chip { padding: 6px 5px 6px 6px; min-width: 0; border-radius: 12px; }
#page-home.home-fit .w-chip b { font-size: 10px; line-height: 1.2; }
#page-home.home-fit .w-chip em { font-size: 9px; }
#page-home.home-fit .w-kas { display: none; }
#page-home.home-fit .w-send { width: 18px; height: 18px; font-size: 10px; border-radius: 6px; align-self: center; }
#page-home.home-fit .w-chip.add { flex-basis: 28px; width: 28px; min-width: 28px; font-size: 16px; }
#page-home.home-fit .w-chip .kns-check { width: 11px; height: 11px; }
#page-home.home-fit .w-chip .kns-check svg { width: 7px; height: 7px; }
#page-home.home-fit .actions { margin-bottom: 6px; gap: 4px; }
#page-home.home-fit .action { padding: 2px 2px 4px; gap: 4px; }
#page-home.home-fit .action .orb { width: 40px; height: 40px; }
#page-home.home-fit .action svg { width: 18px; height: 18px; }
#page-home.home-fit .action span { font-size: 11px; }
#page-home.home-fit .utxo-bar { padding: 8px 12px; margin-bottom: 6px; font-size: 13px; }
#page-home.home-fit .section-label { padding: 2px 4px 4px; font-size: 11px; }
#page-home.home-fit .holdings-pills,
#page-home.home-fit #holdings {
  flex: 1; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 0 6px;
  -webkit-overflow-scrolling: touch;
}
#page-home.home-fit #holdings .row {
  padding: 8px 12px; min-height: 58px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid var(--hairline);
}
#page-home.home-fit #holdings .row:last-child { border-bottom: 0.5px solid var(--hairline); }
#page-home.home-fit #holdings .dot { width: 28px; height: 28px; }
#page-home.home-fit #holdings .title { font-size: 14px; }
#page-home.home-fit #holdings .sub { font-size: 11px; }
#page-home.home-fit #holdings .amt b { font-size: 13px; }
#page-home.home-fit #holdings .amt em { display: none; }
#page-home.home-fit #holdings .amt em.pnl,
#page-home.home-fit #holdings .amt em.pnl-val {
  display: block; font-size: 10px; font-weight: 700; margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
#page-home.home-fit #holdings .amt em.pnl-val { color: var(--label-2); font-weight: 600; }
#page-home.home-fit #holdings .amt em.pnl.up { color: #49eacb; }
#page-home.home-fit #holdings .amt em.pnl.down { color: #ff6b6b; }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: none; z-index: 12;
  padding: 6px 8px var(--safe-b);
  background: rgba(8,8,10,0.92);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-top: 0.5px solid var(--hairline);
}
.tabbar.show { display: flex; }
.tab {
  flex: 1; text-align: center; color: var(--label-3); padding: 6px 2px 8px;
  min-width: 0;
}
.tab.active { color: var(--gold-2); }
.tab svg { width: 22px; height: 22px; margin: 0 auto 2px; display: block; }
.tab span { font-size: 10px; font-weight: 500; letter-spacing: 0.1px; display:block; white-space:nowrap; }

.btn {
  width: 100%; height: 52px; border-radius: 16px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.3px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(0.985); opacity: 0.9; }
.btn-gold {
  background: linear-gradient(180deg, #f3e2bf, #c9a36a);
  color: #1a140c;
  box-shadow: 0 10px 24px rgba(201,163,106,0.28);
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-glass {
  background: var(--fill); color: var(--label);
  border: 0.5px solid var(--hairline);
}
.btn-danger { background: rgba(255,69,58,0.18); color: var(--red); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn:disabled { opacity: 0.4; }

.tk-hero { text-align: center; padding: 2px 0 6px; }
.tk-hero-logo {
  width: 72px; height: 72px; border-radius: 22px; object-fit: cover;
  margin: 0 auto 12px; background: rgba(255,255,255,0.06);
}
.tk-hero-logo.kas {
  background: #0b2a26 url("../assets/kas.svg") center / 70% no-repeat;
}
.tk-hero .tk-amt {
  font-size: 28px; font-weight: 700; letter-spacing: -0.7px; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.tk-hero .tk-amt small { font-size: 15px; font-weight: 600; opacity: 0.55; margin-left: 6px; }
.tk-hero .tk-meta { margin-top: 6px; font-size: 13px; color: var(--label-2); }
.tk-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 16px 0 8px;
}
.tk-actions.tk-2 { grid-template-columns: repeat(2, 1fr); }
.tk-actions.tk-5 { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tk-actions.tk-5 .tk-act { padding: 10px 2px 8px; }
.tk-actions.tk-5 .tk-act-orb { width: 40px; height: 40px; }
.tk-actions.tk-5 .tk-act span:last-child { font-size: 10px; }
.tk-act {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px 10px; border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid var(--hairline);
  min-width: 0;
}
.tk-act:active { transform: scale(0.96); opacity: 0.88; }
.tk-act-orb {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(212,176,122,0.18);
  color: var(--gold-2);
}
.tk-act-orb svg { width: 20px; height: 20px; }
.tk-act span:last-child {
  font-size: 11px; font-weight: 650; letter-spacing: 0.02em;
  color: var(--label); white-space: nowrap;
}
.tk-act.tk-sell .tk-act-orb { background: rgba(255,69,58,0.16); color: #ff8a82; }
.tk-act.tk-buy .tk-act-orb { background: rgba(48,209,88,0.16); color: #49eacb; }
.tk-more { margin-top: 4px; }
.tk-more svg { width: 18px; height: 18px; }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 13px; color: var(--label-2); font-weight: 500; margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 0.5px solid var(--hairline);
  font-size: 17px; outline: none;
  color: var(--label);
  -webkit-text-fill-color: var(--label);
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field select {
  color: var(--label);
  -webkit-text-fill-color: var(--label);
  background: rgba(0,0,0,0.55);
}
.field select option {
  color: #111;
  background: #fff;
}
.field textarea { min-height: 88px; font-size: 15px; resize: vertical; }

.notice {
  padding: 14px 16px; border-radius: 16px; font-size: 13px; line-height: 1.45;
  color: var(--label-2); margin: 14px 0 18px;
  background: rgba(255,159,10,0.1); border: 0.5px solid rgba(255,159,10,0.22);
}

.sheet-overlay {
  position: absolute; inset: 0; z-index: 88;
  background: rgba(0,0,0,0.72);
  display: none; align-items: flex-end;
  pointer-events: none;
}
.sheet-overlay.open { display: flex; pointer-events: auto; }
#dapp-overlay { z-index: 89; }
#dapp-origin { margin-top: 0; overflow-wrap: anywhere; word-break: break-word; }
.dapp-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.dapp-head h3 { margin-bottom: 0 !important; flex: 1; min-width: 0; }
.dapp-wallets {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 12px;
}
.dapp-wallets.hidden { display: none !important; }
.dapp-wallets-lab {
  flex: 1 1 100%;
  font-size: 11px; color: var(--label-2); margin: 0;
}
.dapp-wchip {
  text-align: left;
  padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 0.5px solid var(--hairline);
  min-width: 104px; max-width: 100%;
}
.dapp-wchip.on {
  border-color: rgba(212,176,122,.7);
  background: rgba(212,176,122,.16);
}
.dapp-wchip b { display: block; font-size: 13px; }
.dapp-wchip span { display: block; font-size: 11px; color: var(--label-2); }
.sheet {
  width: 100%; max-width: 100%; max-height: 88%;
  background: #141416;
  backdrop-filter: blur(40px);
  border-radius: 28px 28px 0 0;
  border-top: 0.5px solid var(--hairline);
  padding: 10px 18px calc(28px + var(--safe-b));
  overflow-x: hidden;
  overflow-y: auto;
  animation: slide 0.38s cubic-bezier(0.32,0.72,0,1);
  box-sizing: border-box;
}
#sheet-body, #sheet-title { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
@keyframes slide { from { transform: translateY(100%); } to { transform: none; } }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 6px auto 16px; }
.sheet h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 14px; }
.kv {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; padding: 10px 0; border-bottom: 0.5px solid var(--hairline);
  min-width: 0; max-width: 100%;
}
.kv .k { color: var(--label-2); font-size: 13px; flex: 0 1 36%; min-width: 0; overflow-wrap: anywhere; }
.kv .v {
  font-size: 13px; text-align: right; flex: 1 1 58%; min-width: 0; max-width: 64%;
  overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.kv.kv-stack { flex-direction: column; gap: 4px; }
.kv.kv-stack .k, .kv.kv-stack .v { max-width: 100%; flex: none; text-align: left; }

#sheet-status { flex: 1 0 100%; margin: 0 !important; }
.toast {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 120; padding: 12px 16px; border-radius: 14px;
  background: var(--glass-2); border: 0.5px solid var(--hairline);
  font-size: 13px; white-space: normal; word-break: break-word;
  max-width: 88%; max-height: 40%; overflow: auto;
  line-height: 1.35; text-align: left;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  animation: toast 0.25s ease;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, -8px); } }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--hairline); border-top-color: var(--gold);
  animation: spin 0.7s linear infinite; margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--label-2); font-size: 14px; text-align: center; padding: 24px 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }
.qr-wrap {
  background: #fff; border-radius: 20px; padding: 16px; width: 220px; margin: 8px auto 16px;
}
.qr-wrap canvas, .qr-wrap img { width: 188px; height: 188px; }
.recv-nav {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 0 8px;
}
.recv-arrow {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px;
  background: rgba(212,176,122,0.16);
  border: 0.5px solid var(--hairline);
  color: var(--gold-2);
  font-size: 22px; font-weight: 650; line-height: 1;
}
.recv-arrow:disabled { opacity: 0.28; }
.recv-arrow:active:not(:disabled) { opacity: 0.8; }
.recv-pager { font-size: 13px; color: var(--label-2); min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.recv-pill {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.recv-pill.fresh { background: rgba(48,209,88,0.16); color: var(--green); }
.recv-pill.used { background: rgba(255,255,255,0.08); color: var(--label-2); }
.recv-pill.wait { background: rgba(212,176,122,0.14); color: var(--gold-2); }
.recv-mode {
  display: flex; gap: 6px; justify-content: center; margin: 0 0 8px;
}
.recv-mode button {
  flex: 1; max-width: 160px; height: 34px; border-radius: 999px;
  border: 0.5px solid var(--hairline);
  background: rgba(255,255,255,0.06);
  color: var(--label-2); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.recv-mode button.on {
  background: rgba(212,176,122,0.22);
  color: var(--gold-2);
  border-color: rgba(212,176,122,0.4);
}
.seg {
  display: flex; background: rgba(255,255,255,0.08); border-radius: 12px; padding: 3px; margin-bottom: 16px;
}
.seg button {
  flex: 1; padding: 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--label-2);
}
.seg button.on { background: rgba(255,255,255,0.14); color: var(--label); }

.chat { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vault-composer { padding: 12px 12px 10px; margin-bottom: 12px; }
.vault-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 0;
}
#page-vault.active {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  position: relative;
}
#page-vault > .seg { flex-shrink: 0; margin-bottom: 8px; }
#vault-create {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  overflow: hidden;
  padding-bottom: 70px;
}
#vault-mine-wrap { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#argent-dock {
  position: absolute; right: 6px; bottom: 8px; z-index: 24;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.argent-orb {
  pointer-events: auto;
  width: 58px; height: 58px; border-radius: 50%;
  position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff8e8 0%, #f3e2bf 28%, #d4b07a 62%, #8a6230 100%);
  box-shadow:
    0 10px 28px rgba(201,163,106,0.48),
    inset 0 -8px 12px rgba(70,40,8,0.28),
    inset 0 10px 14px rgba(255,255,255,0.38);
  color: #1a140c;
  animation: argent-float 3.4s ease-in-out infinite;
}
.argent-orb-shine {
  position: absolute; inset: 7px 16px auto 8px; height: 16px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  pointer-events: none;
}
.argent-orb-core { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; position: relative; z-index: 1; }
.argent-orb:active { transform: scale(0.94); }
#argent-dock.open .argent-orb { animation: none; transform: scale(0.92); }
@keyframes argent-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.argent-panel {
  pointer-events: auto;
  width: min(352px, calc(100vw - 40px));
  height: min(420px, 54vh);
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
  transform-origin: bottom right;
  transform: translateY(14px) scale(0.86);
  opacity: 0; visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease, visibility 0.24s;
}
#argent-dock.open .argent-panel {
  transform: translateY(0) scale(1);
  opacity: 1; visibility: visible;
}
.argent-x {
  color: var(--label-2); font-size: 13px; font-weight: 650; padding: 4px 2px;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px 6px; flex-shrink: 0;
}
.chat-agent { font-size: 13px; font-weight: 700; color: var(--gold-2); }
.chat-ready { font-size: 11px; color: var(--label-2); }
#chat-log.chat {
  flex: 1; padding: 4px 12px 10px; max-height: none; min-height: 0;
}
.argent-panel .chatbar {
  flex-shrink: 0;
  padding: 8px 10px 10px;
  border-top: 0.5px solid var(--hairline);
  background: rgba(8,8,10,0.35);
}
@media (prefers-reduced-motion: reduce) {
  .argent-orb { animation: none; }
  .argent-panel { transition: none; }
}
.vault-sweep { padding: 12px; margin-top: 12px; }
.vault-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.vault-card-actions .nav-btn { min-width: 0; height: 28px; font-size: 13px; padding: 0 4px; }
.vault-empty { padding: 16px 12px !important; font-size: 13px; }
#vault-life-wrap { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 70px; }
#vault-bridge-wrap { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 80px; }
#vault-bridge-wrap .field { margin-bottom: 8px; }
#vault-bridge-wrap .at-help { margin: 0 0 10px; }
#vault-bridge-wrap .at-quote { min-height: 4.2em; }
.life-filters {
  display: flex; gap: 6px; overflow-x: auto; margin: 0 0 8px; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.life-filters::-webkit-scrollbar { display: none; }
.life-filters button {
  flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 0.5px solid var(--hairline); background: rgba(255,255,255,0.06);
  color: var(--label-2); font-size: 12px; font-weight: 650;
}
.life-filters button.on { background: rgba(212,176,122,0.22); color: var(--gold-2); border-color: rgba(212,176,122,0.4); }
.life-card .title { font-size: 15px; }
.life-card .sub { font-size: 12px; color: var(--label-2); }
.life-amt { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.life-amt em { display: block; font-style: normal; font-size: 11px; color: var(--gold-2); font-weight: 600; }
.vault-card.history { opacity: 0.55; }
.vault-card.history .title { text-decoration: none; }
.bubble {
  max-width: 88%; padding: 10px 12px; border-radius: 18px; font-size: 15px; line-height: 1.4;
  word-break: break-word; overflow-wrap: anywhere;
}
.bubble.me { align-self: flex-end; background: var(--blue); border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: rgba(255,255,255,0.08); border-bottom-left-radius: 5px; }
.bubble .btn { width: 100%; max-width: 100%; }
.chatbar { display: flex; gap: 8px; align-items: flex-end; }
.chatbar input,
.chatbar textarea {
  flex: 1; border-radius: 16px; padding: 12px 16px;
  background: rgba(0,0,0,0.35); border: 0.5px solid var(--hairline);
  font-size: 15px; outline: none; min-width: 0;
  font-family: inherit; color: inherit; resize: none;
  min-height: 44px; max-height: 140px; line-height: 1.35;
}
.send-orb {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue);
  display: grid; place-items: center; flex-shrink: 0; color: #fff; font-size: 18px;
}

.product {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 0; text-align: left; width: 100%; min-height: 0;
}
#page-vault #vault-create { overflow: hidden; }
#page-vault .vault-grid {
  flex: 1; min-height: 0; height: 100%;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px; overflow: hidden; max-height: none;
}
.vault-group { margin-bottom: 0; }
.vault-hint { display: none; }
.product-why { display: none; }
.dur-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.dur-chips button {
  height: 32px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
  border: 0.5px solid var(--hairline); background: rgba(255,255,255,0.06); color: var(--label-2);
}
.dur-chips button.on { background: rgba(212,176,122,0.22); color: var(--gold-2); }
.vault-steps { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: var(--label-2); line-height: 1.45; }
.vault-steps code { font-size: 11px; color: var(--gold-2); }
#ct-kit, #v-witness { width: 100%; min-height: 120px; border-radius: 12px; padding: 10px; background: rgba(0,0,0,0.35); border: 0.5px solid var(--hairline); color: var(--label); font: 11px/1.4 ui-monospace, monospace; }
.product .glyph {
  width: 32px; height: 32px; border-radius: 10px; background: var(--gold-dim);
  display: grid; place-items: center; color: var(--gold-2); font-weight: 700; font-size: 14px;
}
.product h4 { font-size: 13px; font-weight: 650; letter-spacing: -0.2px; line-height: 1.2; }
.product p { display: none; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px;
}
.badge.live { background: rgba(48,209,88,0.16); color: var(--green); }
.badge.local { background: rgba(10,132,255,0.16); color: var(--blue); }

.tx { padding: 12px 14px; display: flex; gap: 10px; align-items: center; border-bottom: 0.5px solid var(--hairline); min-width: 0; width: 100%; box-sizing: border-box; }
.tx:last-child { border-bottom: 0; }
.tx .dir {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 16px;
  background: rgba(255,255,255,0.08); flex-shrink: 0;
}
.tx .meta { flex: 1; min-width: 0; }
.tx .meta b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .meta span { display: block; font-size: 12px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .val { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; flex: 0 1 40%; min-width: 0; max-width: 42%; overflow-wrap: anywhere; }
.tx .val.in { color: var(--green); }
.tx .val.out { color: var(--label); }
.tx .val small { display: block; font-size: 11px; font-weight: 500; color: var(--label-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txid-v { display: flex; align-items: flex-start; gap: 8px; justify-content: flex-start; max-width: 100%; flex-wrap: wrap; }
.txid-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; word-break: break-all;
  text-align: left; color: var(--gold-2); min-width: 0; flex: 1 1 160px;
}
.copy-chip {
  flex-shrink: 0; height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--fill); border: 0.5px solid var(--hairline);
  color: var(--gold-2); font-size: 12px; font-weight: 650;
}
.copy-chip:active { opacity: 0.75; }
.tx .copy-chip { display: block; margin: 6px 0 0 auto; height: 24px; font-size: 11px; }
.tx-links { text-align: left; padding: 4px 0 0; }
.tx-links a { color: var(--gold-2); font-weight: 600; }

.empty {
  text-align: center; padding: 28px 12px; color: var(--label-2); font-size: 14px; line-height: 1.5;
}

.profile-card { padding: 14px 14px 12px; text-align: left; margin-bottom: 14px; }
.profile-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.profile-id { flex: 1; min-width: 0; }
.profile-name { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.profile-avatar, .you-avatar {
  width: 48px; height: 48px; border-radius: 16px; margin: 0; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f3e2bf, #c9a36a);
  color: #1a140c; font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 18px rgba(201,163,106,0.28);
  overflow: hidden;
}
.you-avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 16px; border: 2px solid rgba(12,12,14,0.92); }
.you-avatar img, .you-wava img { width: 100%; height: 100%; object-fit: cover; display: block; }
#page-you.you-fit.active {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; gap: 8px;
}
.you-card {
  flex-shrink: 0; padding: 0; overflow: hidden; margin: 0; text-align: left;
}
.you-cover {
  position: relative; height: 58px;
  background:
    linear-gradient(180deg, rgba(212,176,122,0.38), rgba(12,10,8,0.55)),
    radial-gradient(120% 80% at 80% 0%, rgba(243,226,191,0.28), transparent 55%);
  background-size: cover;
  background-position: center;
}
.you-cover.has-img { background-color: #1a140c; }
.you-cover-btn {
  position: absolute; right: 8px; bottom: 6px;
  height: 20px; padding: 0 8px; border-radius: 999px;
  background: rgba(0,0,0,0.45); border: 0.5px solid rgba(255,255,255,0.22);
  color: var(--gold-2); font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
}
.you-ident {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 0 10px 4px; margin-top: -20px; position: relative; z-index: 1;
}
.you-id { flex: 1; min-width: 0; padding-bottom: 2px; }
.you-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 750; letter-spacing: -0.3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: none; border: 0; padding: 0; color: inherit; max-width: 100%;
}
.you-kns {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--label-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.you-card .profile-addr { margin: 0 10px 6px; padding: 5px 8px; font-size: 10px; border-radius: 10px; }
.you-stats { margin: 0 10px 6px; gap: 4px; }
.you-stats div { padding: 5px 4px; border-radius: 10px; }
.you-stats b { font-size: 12px; }
.you-stats span { font-size: 9px; }
.you-actions { display: flex; gap: 6px; padding: 0 10px 8px; }
.you-chip {
  flex: 1; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--fill); border: 0.5px solid var(--hairline);
  color: var(--label); font-size: 11px; font-weight: 650; text-decoration: none;
}
.you-chip.gold {
  background: linear-gradient(180deg, #f3e2bf, #c9a36a); color: #1a140c; border: 0;
}
.you-block {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px;
}
.you-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--label-2); flex-shrink: 0;
}
.you-head-btns { display: flex; gap: 8px; }
.you-head-btns button {
  font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--gold-2);
}
.you-wallet-list {
  flex: 1; min-height: 0; overflow-y: auto; margin: 0;
  -webkit-overflow-scrolling: touch;
}
.you-wallet-list .row {
  padding: 8px 10px; min-height: 0; gap: 8px;
}
.you-wallet-list .title { font-size: 13px; }
.you-wallet-list .sub { font-size: 11px; margin-top: 0; }
.you-wallet-list .amt b { font-size: 12px; }
.you-wallet-list .amt em { display: none; }
.you-wallet-list .chev { font-size: 11px; font-weight: 650; color: var(--gold-2); }
.you-wallet-list .empty { padding: 12px 8px; font-size: 12px; }
.you-wava {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(255,255,255,0.08); color: var(--label-2); font-size: 11px; font-weight: 700;
}
.you-wava.on { background: rgba(48,209,88,0.16); color: var(--green); }
.you-apps-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 16px;
  background: var(--glass-2); border: 0.5px solid var(--hairline);
  color: var(--label);
}
.you-apps-mark {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  background: #fff; flex-shrink: 0;
}
.you-apps-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.you-apps-copy { flex: 1; min-width: 0; }
.you-apps-copy b { display: block; font-size: 15px; font-weight: 750; }
.you-apps-copy em { display: block; font-style: normal; font-size: 11px; color: var(--label-2); }
.you-settings { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.app-ico-img { padding: 0; overflow: hidden; background: #fff; }
.app-ico-ksocial { background: #000 !important; }
.app-ico-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ksocial-feed {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  margin: 0 -4px 8px;
}
.ksocial-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-shrink: 0;
}
.ksocial-bar .build-lede { margin: 0; }
.ksocial-refresh, .ksocial-more {
  flex-shrink: 0; height: 28px; padding: 0 10px; border-radius: 999px;
  background: var(--fill); border: 0.5px solid var(--hairline);
  color: var(--label-2); font-size: 11px; font-weight: 650;
}
.ksocial-more { display: block; width: 100%; height: 36px; margin: 0 0 8px; }
.ksocial-more.hidden { display: none !important; }
.ksocial-compose {
  flex-shrink: 0; margin: 8px 0 10px; padding: 10px;
  border-radius: 16px; background: var(--glass-2); border: 0.5px solid var(--hairline);
}
.ksocial-as {
  font-size: 11px; color: var(--label-3); margin: 0 0 6px;
}
.ksocial-as.on { color: var(--gold-2); font-weight: 650; }
.ksocial-compose textarea {
  width: 100%; min-height: 64px; resize: none; border: 0; outline: none;
  background: transparent; color: var(--label); font-size: 14px; line-height: 1.4;
}
.ksocial-compose-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px;
}
.ksocial-compose-row span { font-size: 11px; color: var(--label-3); }
#ksocial-fee { color: var(--gold-2); font-weight: 650; }
.ksocial-compose-row .btn { height: 34px; padding: 0 14px; font-size: 13px; width: auto; }
.ksocial-card {
  display: block; width: 100%; text-align: left; color: inherit; text-decoration: none;
  padding: 12px 10px; border-bottom: 0.5px solid var(--hairline);
  background: transparent; border-left: 0; border-right: 0; border-top: 0;
}
.ksocial-card b { display: block; font-size: 13px; color: var(--gold-2); }
.ksocial-card em { font-style: normal; font-size: 11px; color: var(--label-3); margin-left: 6px; }
.ksocial-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--label); white-space: pre-wrap; word-break: break-word; }
.ksocial-quote {
  margin: 8px 0 0; padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 0.5px solid var(--hairline);
}
.ksocial-quote b { font-size: 11px; }
.ksocial-quote p { font-size: 12px; color: var(--label-2); }
.ksocial-pic {
  display: block; width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 12px; margin-top: 8px;
}
.ksocial-link { color: var(--teal); word-break: break-all; }
.ksocial-acts {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
}
.ksocial-acts button, .ksocial-acts span {
  background: transparent; border: 0; color: var(--label-3);
  font-size: 11px; font-weight: 650; padding: 0;
}
.ksocial-acts button.on { color: var(--gold-2); }
.ksocial-thread-head {
  flex-shrink: 0; font-size: 12px; color: var(--label-2); margin: 0 0 6px;
}
.you-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.you-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px 7px; border-radius: 12px;
  background: var(--glass-2); border: 0.5px solid var(--hairline);
  font-size: 10px; font-weight: 650; color: var(--label);
  min-width: 0;
}
.you-tile .glyph {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 12px;
  background: rgba(255,255,255,0.08);
}
.you-tile .glyph.pin { background: rgba(94,92,230,.16); color: var(--indigo); }
.you-tile .glyph.kns { background: rgba(73,234,203,.16); color: var(--teal); font-size: 9px; font-weight: 800; }
.you-tile .glyph.gold { background: rgba(212,176,122,.16); color: var(--gold-2); }
.you-tile .glyph.keys { background: rgba(10,132,255,.16); }
.you-tile .glyph.look { background: rgba(243,226,191,.14); color: var(--gold-2); }
.you-tile .glyph.sco { background: rgba(212,176,122,.16); }
.you-tile .glyph.wipe { background: rgba(255,69,58,.16); color: var(--red); }
.you-tile .glyph.kw { background: rgba(73,234,203,.16); color: var(--teal); font-weight: 800; }
.you-tile .glyph.net { background: rgba(10,132,255,.16); color: #64d2ff; font-weight: 800; }
.you-tile .glyph.desk { background: rgba(48,209,88,.16); color: var(--green); }
.desk-box { padding: 10px 12px 12px; margin-bottom: 10px; text-align: left; }
.desk-box .at-tiny { margin: 6px 0; }
.desk-verdict { font-size: 12px; line-height: 1.45; color: var(--label-2); white-space: pre-wrap; min-height: 48px; }
.desk-facts { list-style: none; padding: 0; margin: 8px 0 0; }
.desk-facts li { font-size: 12px; padding: 6px 0; border-bottom: 0.5px solid var(--hairline); }
.desk-facts b { color: var(--gold-2); }
.desk-facts .false { color: var(--red); }
.desk-facts .true { color: var(--green); }
.desk-facts .weak, .desk-facts .unproven { color: var(--orange); }
.kw-toggle {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 4px; font-size: 15px; font-weight: 650;
}
.kw-toggle input {
  width: 42px; height: 26px; padding: 0; margin: 0; flex: none;
  appearance: none; -webkit-appearance: none;
  border-radius: 999px; background: rgba(255,255,255,0.12);
  border: 0.5px solid var(--hairline); position: relative; cursor: pointer;
}
.kw-toggle input::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #f5f5f7;
  transition: transform 0.18s ease;
}
.kw-toggle input:checked { background: var(--teal); border-color: var(--teal); }
.kw-toggle input:checked::after { transform: translateX(16px); }
.kw-toggle input:disabled { opacity: 0.4; cursor: not-allowed; }
.you-tile.danger { color: var(--red); }
.you-tile:active { transform: scale(0.96); opacity: 0.88; }
.sheet .scorpion-chat { max-height: 42vh; min-height: 140px; }
@media (max-height: 700px) {
  .you-cover { height: 48px; }
  .you-ident { margin-top: -16px; }
  .you-avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
  .you-name { font-size: 14px; }
  .you-stats { display: none; }
}
.build-fab {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(212,176,122,0.18);
  border: 0.5px solid rgba(212,176,122,0.4);
  color: var(--gold-2);
}
.build-fab svg { width: 22px; height: 22px; }
.build-fab:active { transform: scale(0.94); }
.profile-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; line-height: 1.35;
  color: var(--gold-2); text-align: left;
  padding: 8px 10px; border-radius: 12px;
  background: rgba(0,0,0,0.35); border: 0.5px solid var(--hairline);
  margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  margin-top: 10px;
}
.profile-stats div {
  background: rgba(255,255,255,0.05); border: 0.5px solid var(--hairline);
  border-radius: 12px; padding: 8px 6px; text-align: center;
}
.profile-stats b { display: block; font-size: 13px; font-weight: 700; }
.profile-stats span { font-size: 10px; color: var(--label-2); letter-spacing: 0.04em; text-transform: uppercase; }
.profile-link {
  display: inline-block; margin-top: 8px; color: var(--gold-2);
  font-size: 12px; font-weight: 600; text-decoration: none;
}
.build-screen {
  position: absolute; inset: 0; z-index: 86;
  background: #050506;
  display: flex; flex-direction: column;
  padding: calc(12px + var(--safe-t)) 16px calc(12px + var(--safe-b));
  overflow: hidden;
}
.build-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; margin-bottom: 8px;
}
.build-head h2 { font-size: 18px; font-weight: 750; letter-spacing: -0.4px; }
.build-mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold-2); }
.build-mark svg { width: 20px; height: 20px; }
.build-lede {
  font-size: 12px; color: var(--label-2); line-height: 1.35;
  flex-shrink: 0; margin: 0 0 10px;
}
.build-phases {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  flex: 0 0 auto; margin-bottom: 8px;
}
.build-phase {
  text-align: left; padding: 10px 10px 9px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 0.5px solid var(--hairline);
  min-height: 72px;
}
.build-phase em {
  display: block; font-style: normal; font-size: 10px; font-weight: 700;
  color: var(--gold-2); letter-spacing: 0.08em;
}
.build-phase b { display: block; font-size: 14px; margin: 2px 0 2px; }
.build-phase span { display: block; font-size: 11px; color: var(--label-2); line-height: 1.25; }
.build-phase.on {
  background: rgba(212,176,122,0.16);
  border-color: rgba(212,176,122,0.4);
}
.build-copy {
  font-size: 12px; color: var(--label-2); line-height: 1.4;
  min-height: 2.8em; flex-shrink: 0; margin: 0 0 8px;
}
.build-demo {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 10px 12px; margin: 0;
}
.build-demo label { font-size: 11px; font-weight: 650; color: var(--label-2); margin-bottom: 4px; }
.build-demo textarea {
  flex: 1; min-height: 44px; max-height: 72px; resize: none;
  width: 100%; border-radius: 10px; padding: 8px 10px;
  background: rgba(0,0,0,0.4); border: 0.5px solid var(--hairline);
  font-size: 13px; line-height: 1.35;
}
.build-demo-row { display: flex; gap: 8px; margin: 8px 0 6px; flex-shrink: 0; }
.build-demo-row .btn { height: 40px; font-size: 15px; }
.build-hash {
  display: block; font-size: 10px; word-break: break-all; color: var(--teal);
  background: rgba(0,0,0,0.35); border-radius: 8px; padding: 6px 8px;
  min-height: 2.4em; flex-shrink: 0;
}
.build-status { font-size: 11px; color: var(--label-2); margin-top: 6px; line-height: 1.3; flex-shrink: 0; }
.app-home { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 6px;
  padding: 10px 2px 28px;
}
.app-tile {
  text-align: center; padding: 0; border: 0; background: transparent;
  min-height: 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--label);
}
.app-tile:active { transform: scale(0.92); }
.app-ico {
  width: 60px; height: 60px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: var(--gold-2); font-size: 22px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  flex-shrink: 0;
}
.app-ico-k {
  background: linear-gradient(180deg, #2a2f38, #15181e);
  color: #49eacb; font-weight: 750; font-size: 22px; letter-spacing: -0.6px;
}
.app-ico-kas { background: #fff !important; padding: 8px; }
.app-ico-kas img { object-fit: contain !important; }
.app-tile b {
  font-size: 11px; font-weight: 500; line-height: 1.15;
  letter-spacing: -0.15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; width: 100%;
}
.app-docs {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  text-align: left; padding: 4px 2px 28px;
}
.app-docs.hidden { display: none !important; }
.app-docs-hero {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px;
}
.app-docs-mark {
  width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex-shrink: 0;
  background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.app-docs-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-docs-mark.kas { padding: 10px; background: #fff; }
.app-docs-mark.kas img { object-fit: contain; }
.app-docs-copy { flex: 1; min-width: 0; }
.app-docs-copy h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 6px;
}
.app-docs-lede {
  font-size: 13px; line-height: 1.4; color: var(--label-2); margin: 0 0 10px;
}
.app-docs-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.app-docs-pills span {
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.08); color: var(--label-2);
}
.app-docs-pills span.on { background: rgba(73,234,203,0.16); color: #49eacb; }
.app-docs-cta { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.app-docs-cta .btn { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.app-docs-tabs {
  display: flex; gap: 4px; border-bottom: 0.5px solid var(--hairline);
  margin: 0 0 14px; overflow-x: auto;
}
.app-docs-tabs button {
  height: 36px; padding: 0 12px; border: 0; background: transparent;
  color: var(--label-2); font-size: 13px; font-weight: 600; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.app-docs-tabs button.on { color: var(--label); border-bottom-color: #49eacb; }
.app-docs-body { font-size: 14px; line-height: 1.5; color: var(--label-2); }
.app-docs-body p { margin: 0 0 10px; }
.app-docs-body b { color: var(--label); font-weight: 650; }
.app-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.app-pane.hidden { display: none !important; }
#app-vprog { overflow: auto; -webkit-overflow-scrolling: touch; }
#vprog-play { flex-shrink: 0; padding: 0 2px 4px; }
#vprog-lobby { flex: 1; min-height: 0; padding: 0 2px 18px; }
.vprog-how { margin: 0 0 12px; padding-left: 18px; color: var(--label-2); font-size: 13px; line-height: 1.45; text-align: left; }
.vprog-how li { margin: 0 0 8px; }
.vprog-how b { color: var(--gold-2); }
.vprog-play-card {
  background: rgba(255,255,255,0.05); border: 0.5px solid var(--hairline);
  border-radius: 16px; padding: 12px; margin: 0 0 8px;
}
.vprog-play-card .ttt-board { margin: 8px 0 12px; }
.ttt-cell.play { pointer-events: auto; }
.ttt-cell.play.on { color: var(--teal); }
.ttt-cell.play.wait { opacity: 0.55; }
#veyra-screen { z-index: 40; }
.veyra-doc { flex: 1; min-height: 0; overflow: auto; padding: 4px 6px 36px; -webkit-overflow-scrolling: touch; text-align: left; }
.veyra-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.veyra-title { font-size: 26px; letter-spacing: -.4px; margin: 0 0 8px; color: var(--label); }
.veyra-lede { font-size: 17px; line-height: 1.4; color: var(--gold-2); margin: 0 0 14px; }
.veyra-doc h4 { font-size: 14px; margin: 20px 0 8px; color: var(--gold-2); }
.veyra-doc p { font-size: 14px; line-height: 1.5; color: var(--label-2); margin: 0 0 10px; }
.veyra-doc b { color: var(--label); font-weight: 650; }
.veyra-doc code { font-size: 12px; color: var(--gold-2); }
.veyra-close { color: var(--gold-2) !important; font-size: 15px !important; margin-top: 18px !important; }
.veyra-links { font-size: 13px; }
.vprog-mini { font-size: 12px; color: var(--label-2); display: flex; align-items: center; gap: 6px; }
.vprog-mini select {
  background: rgba(0,0,0,0.35); color: var(--label); border: 0.5px solid var(--hairline);
  border-radius: 10px; padding: 6px 8px;
}
.vprog-h { font-size: 13px; font-weight: 700; margin: 16px 0 8px; color: var(--gold-2); }
.vprog-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.vprog-acts .btn { height: 40px; font-size: 13px; }
.vprog-game {
  background: rgba(255,255,255,0.05); border: 0.5px solid var(--hairline);
  border-radius: 16px; padding: 12px; margin: 0 0 10px;
}
.vprog-game.mine { border-color: rgba(212,176,122,0.45); }
.vprog-game-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.vprog-game-h span { color: var(--label-2); }
.vprog-seats { font-size: 11px; color: var(--label-2); margin-top: 8px; }
.ttt-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 220px; }
.ttt-cell {
  aspect-ratio: 1; border-radius: 12px; border: 0;
  background: rgba(0,0,0,0.35); color: var(--gold-2);
  font-size: 22px; font-weight: 800;
}
.ttt-cell-wait { outline: 1px dashed var(--gold); }
.studio-form { flex-shrink: 0; }
.studio-form .field { margin-bottom: 8px; }
.studio-form .field > span {
  display: block; font-size: 11px; font-weight: 650; color: var(--label-2); margin-bottom: 4px;
}
.studio-form textarea, .studio-form select, .studio-form input[type=number], #studio-url {
  width: 100%; border-radius: 12px; padding: 8px 10px;
  background: rgba(0,0,0,0.35); border: 0.5px solid var(--hairline); font-size: 14px;
}
.studio-form textarea { min-height: 48px; resize: none; }
.studio-row { display: flex; gap: 8px; align-items: flex-end; }
.studio-row .grow { flex: 1; min-width: 0; }
.studio-row .small { width: 72px; flex-shrink: 0; }
.studio-form .check {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px; width: 44px; flex-shrink: 0; margin: 0 0 8px; padding: 0;
  font-size: 11px; font-weight: 650; color: var(--label-2);
}
.studio-form .check input {
  width: 18px; height: 18px; padding: 0; margin: 0; flex: none;
  accent-color: var(--gold); -webkit-text-fill-color: unset;
  background: none; border: 0;
}
#studio-go { height: 44px; margin: 6px 0 6px; }
.studio-hint { font-size: 11px; color: var(--label-2); line-height: 1.35; margin: 0 0 8px; }
.studio-stage { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.studio-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; flex-shrink: 0; }
.studio-steps li {
  flex: 1; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 2px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--label-3);
}
.studio-steps li.on { color: var(--gold-2); background: rgba(212,176,122,0.18); }
.studio-steps li.done { color: var(--green); }
.studio-status { font-size: 12px; color: var(--label-2); margin: 0 0 8px; flex-shrink: 0; }
.studio-live {
  display: none; flex: 1; min-height: 0;
  background: #000; border-radius: 12px; overflow: hidden;
  margin-bottom: 8px;
}
.studio-live canvas {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #000;
}
.studio-stills { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; flex-shrink: 0; }
.studio-stills canvas, .studio-stills img {
  width: 72px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
#app-studio.working .studio-form { display: none; }
#app-studio.working .studio-live { display: flex; }
#app-studio.playing .studio-form,
#app-studio.playing .studio-steps,
#app-studio.playing .studio-stills,
#app-studio.playing .studio-live { display: none; }
#app-studio.playing .studio-stage,
#app-studio.working .studio-stage {
  overflow: hidden; display: flex; flex-direction: column; flex: 1; min-height: 0;
}
#app-studio.playing .studio-status,
#app-studio.working .studio-status { flex-shrink: 0; }
.studio-player {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: #000; border-radius: 12px; overflow: hidden;
}
.studio-player.hidden { display: none !important; }
#studio-video {
  flex: 1; width: 100%; min-height: 0; height: auto;
  object-fit: contain; background: #000; margin: 0;
}
.studio-bar {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(8,8,10,0.94);
}
.studio-play {
  height: 36px; min-width: 68px; padding: 0 12px; border-radius: 10px;
  background: var(--gold-2); color: #1a140c; font-size: 13px; font-weight: 700;
}
#studio-seek { flex: 1; accent-color: var(--gold); height: 4px; }
#studio-time { font-size: 11px; color: var(--label-2); min-width: 64px; font-variant-numeric: tabular-nums; }
.studio-save {
  height: 36px; padding: 0 12px; border-radius: 10px;
  background: rgba(255,255,255,0.1); color: var(--gold-2);
  font-size: 13px; font-weight: 700; display: grid; place-items: center; text-decoration: none;
}
@media (max-height: 700px) {
  .build-phase { min-height: 58px; padding: 7px 8px; }
  .build-lede { display: none; }
  .build-copy { min-height: 2.2em; }
  .app-ico { width: 56px; height: 56px; border-radius: 13px; }
}
.scorpion-banner, .scorpion-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 12px;
}
.scorpion-banner { cursor: default; }
.scorpion-banner .title, .scorpion-head .title { font-size: 16px; font-weight: 650; }
.scorpion-banner .sub, .scorpion-head .sub { font-size: 12px; color: var(--label-2); margin-top: 2px; }
.scorp-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(212,176,122,0.16);
}
.scorpion-box { padding: 4px 12px 12px; margin-bottom: 16px; }
.scorpion-chat { max-height: 220px; min-height: 88px; }
.scorpion-card { max-width: 100%; overflow-x: hidden; }
.scorpion-lede {
  text-align: left; font-size: 15px; line-height: 1.45; margin: 0 0 8px;
  overflow-wrap: anywhere; word-break: break-word;
}
.scorpion-bullets {
  text-align: left; padding-left: 18px; color: var(--label-2);
  font-size: 13px; line-height: 1.45; margin: 0 0 8px;
}
.scorpion-bullets li { overflow-wrap: anywhere; word-break: break-word; }
.scorpion-next { text-align: left; padding: 10px 0 0; overflow-wrap: anywhere; }
.scorpion-factors { margin-top: 8px; text-align: left; max-width: 100%; overflow-x: hidden; }
.scorpion-factors .kv { padding: 8px 0; }
.kind-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--gold-2);
  background: rgba(212,176,122,0.16);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 8px;
}
button.tx { width: 100%; max-width: 100%; text-align: left; color: inherit; overflow: hidden; }
#activity-list { overflow-x: hidden; max-width: 100%; }
.act-log-bar { display: flex; gap: 8px; padding: 0 0 10px; }
.act-log-bar.hidden { display: none !important; }
.tx-log {
  text-align: left; padding: 12px 0; border-bottom: 0.5px solid var(--hairline);
}
.tx-log .meta { margin-bottom: 6px; }
.tx-log .meta b { display: block; }
.tx-log .meta span { font-size: 12px; color: var(--label-2); }
.log-id { font-size: 12px; color: var(--label-2); word-break: break-all; padding: 3px 0; }
.log-id code { color: var(--label); font-size: 11px; }
.log-id.pending, .log-id em { color: var(--orange); font-style: normal; }

.asset-pick {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(0,0,0,0.45);
  border: 0.5px solid var(--hairline);
  color: var(--label); text-align: left;
}
.asset-pick.open { border-color: var(--gold); }
.asset-pick b {
  display: block; font-size: 17px; font-weight: 650; color: var(--gold-2);
}
.asset-pick small {
  display: block; font-size: 12px; color: var(--label-2); margin-top: 2px; font-weight: 500;
}
.asset-pick-bal {
  margin-left: auto; font-size: 16px; font-weight: 650;
  font-variant-numeric: tabular-nums; color: var(--label);
}
.asset-pick .chev { color: var(--label-2); transform: rotate(90deg); }
.asset-pick.open .chev { transform: rotate(-90deg); }
.asset-pick-list {
  margin-top: 8px; border-radius: 14px; overflow: hidden;
  border: 0.5px solid var(--hairline);
  background: rgba(18,18,20,0.92);
  max-height: 220px; overflow-y: auto;
}
.asset-opt {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; text-align: left; color: var(--label);
  border-bottom: 0.5px solid var(--hairline);
  background: transparent;
}
.asset-opt:last-child { border-bottom: 0; }
.asset-opt.on { background: rgba(212,176,122,0.12); }
.asset-opt-tick { font-size: 16px; font-weight: 650; color: var(--gold-2); min-width: 72px; }
.asset-opt-proto { font-size: 12px; color: var(--label-2); flex: 1; }
.asset-opt-bal { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.send-hint { text-align: left; padding: 0 0 8px; }
#nav-right { display: flex; gap: 6px; justify-content: flex-end; min-width: 44px; }

.dest-row { display: flex; gap: 8px; align-items: stretch; }
.dest-row input { flex: 1; min-width: 0; width: auto; }
.scan-btn {
  width: 52px; flex-shrink: 0;
  border-radius: 14px;
  background: rgba(212,176,122,0.16);
  border: 0.5px solid var(--hairline);
  color: var(--gold-2);
  display: grid; place-items: center;
}
.scan-btn svg { width: 22px; height: 22px; }
.scan-btn:active { opacity: 0.8; }
.max-btn {
  flex-shrink: 0; min-width: 56px; padding: 0 14px;
  border-radius: 14px;
  background: rgba(212,176,122,0.2);
  border: 0.5px solid var(--hairline);
  color: var(--gold-2);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.max-btn:active { opacity: 0.8; }
.avail-line {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 2px 0 10px;
  color: var(--label-2); font-size: 12px; line-height: 1.35;
  cursor: pointer;
}
.avail-line b { color: var(--gold-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.qr-scan {
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 0.5px solid var(--hairline);
}
.qr-scan video {
  width: 100%; height: 220px; object-fit: cover; display: block; background: #111;
}
.qr-scan .muted { padding: 8px 10px 4px; font-size: 12px; }
.qr-scan .btn { margin: 0 10px 10px; width: calc(100% - 20px); height: 40px; }

.wallet-row .amt { margin-left: auto; text-align: right; flex-shrink: 0; }
.wallet-row .amt b { display: block; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.wallet-row .amt em { font-style: normal; font-size: 11px; color: var(--label-2); max-width: 140px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-row .chev { margin-left: 8px; font-size: 12px; font-weight: 650; color: var(--gold-2); }

.pin-lock {
  position: absolute; inset: 0; z-index: 90;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px calc(28px + var(--safe-b));
}
.pin-inner { width: 100%; max-width: 320px; text-align: center; }
.pin-app-icon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 18px;
}
.pin-inner h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; color: #fff; }
.pin-sub { color: rgba(235,235,245,0.62); font-size: 14px; margin: 8px 0 22px; }
.pin-dots {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 22px; min-height: 14px;
}
.pin-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
}
.pin-dots i.on { background: #fff; }
.pin-err { color: var(--red); font-size: 13px; margin: 0 0 12px; min-height: 18px; }
.pin-cancel {
  display: block; margin: 0 auto 16px; color: #0a84ff; font-size: 17px; font-weight: 500;
}
.pin-pad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px;
  max-width: 280px; margin: 12px auto 0;
}
.pin-pad button {
  width: 72px; height: 72px; margin: 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 0;
  color: #fff;
  font-size: 28px; font-weight: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.pin-pad button small {
  font-size: 9px; letter-spacing: 1.6px; font-weight: 600; opacity: 0.72;
}
.pin-pad .pin-ghost { background: transparent; font-size: 17px; font-weight: 500; color: #0a84ff; }
.trade-screen {
  position: absolute; inset: 0; z-index: 85;
  background: #050506;
  display: flex; flex-direction: column;
  padding: calc(18px + var(--safe-t)) 18px calc(18px + var(--safe-b));
  overflow: hidden;
}
#trade-go { position: relative; z-index: 2; flex-shrink: 0; margin-top: 10px; }
.trade-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-shrink: 0;
}
.trade-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
.trade-x, .trade-head-space { min-width: 56px; color: var(--gold-2); font-size: 16px; font-weight: 600; }
.trade-head-space { visibility: hidden; }
.trade-meta { padding: 12px 14px; margin-bottom: 12px; text-align: left; flex-shrink: 0; }
.trade-meta .title { font-size: 16px; font-weight: 650; }
.trade-meta .sub { font-size: 12px; color: var(--label-2); margin-top: 2px; }
#trade-screen .btn-gold { height: 52px; margin-top: 10px; flex-shrink: 0; }
#trade-screen .seg, #trade-screen > .field { flex-shrink: 0; }
#trade-spot, #trade-dca {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
#trade-spot.hidden, #trade-dca.hidden { display: none !important; }
#dca-plan { margin-bottom: 8px; }
.dca-steps { margin: 8px 0 0; padding-left: 18px; }
.dca-steps li { font-size: 12px; color: var(--label-2); line-height: 1.4; margin: 0 0 6px; }
.dca-steps b { color: var(--label); }
.dca-live { padding: 12px 14px; margin: 8px 0; text-align: left; }
.dca-live b { display: block; font-size: 14px; font-weight: 750; }
.dca-live p { margin: 4px 0 0; font-size: 12px; color: var(--label-2); line-height: 1.35; }
.dca-home {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 0 0 12px; text-align: left;
  width: 100%;
}
.dca-home b { display: block; font-size: 13px; }
.dca-home span { display: block; font-size: 11px; color: var(--label-2); }
.dca-cmp {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 8px 0; text-align: left;
}
.dca-cmp > span {
  display: block; padding: 8px; border-radius: 10px;
  background: rgba(0,0,0,0.28); border: 0.5px solid var(--hairline);
  font-size: 11px; color: var(--label-2); line-height: 1.35;
}
.dca-cmp em { display: block; font-style: normal; font-weight: 750; color: var(--label); margin-bottom: 4px; }
.tk-act.tk-dca .tk-act-orb { background: rgba(10,132,255,0.16); color: #64d2ff; }
.pin-pad button:active { background: rgba(255,255,255,0.28); }
.pin-lock.shake .pin-dots { animation: pinshake 0.4s ease; }
@keyframes pinshake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .argent-orb { animation: none !important; }
  .sheen, .metal-card::after { animation: none; }
  .page, .sheet { animation: none; }
}

@media (max-width: 519px), (pointer: coarse) {
  .bg-poster {
    filter: saturate(1.12) contrast(1.05) brightness(1.12);
  }
  .sheen { display: none; }
}

#app-forge { overflow: auto; -webkit-overflow-scrolling: touch; }
.fg-presets { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; -webkit-overflow-scrolling: touch; }
.fg-preset {
  flex: 0 0 auto; min-width: 132px; text-align: left; padding: 10px 12px;
  border-radius: 14px; border: 0.5px solid var(--hairline); background: rgba(255,255,255,.05);
  color: var(--label); cursor: pointer;
}
.fg-preset b { display: block; font-size: 13px; }
.fg-preset i { display: block; font-style: normal; font-size: 11px; color: var(--label-2); margin-top: 2px; }
.fg-preset:hover { border-color: var(--gold); }
.fg-shell { display: grid; grid-template-columns: 132px 1fr 140px; gap: 10px; min-height: 420px; }
.fg-shell.fg-pro { grid-template-columns: 132px 1fr 200px; }
@media (max-width: 720px) {
  .fg-shell, .fg-shell.fg-pro { grid-template-columns: 1fr; }
}
.fg-pal, .fg-insp { background: rgba(0,0,0,.28); border: 0.5px solid var(--hairline); border-radius: 16px; padding: 10px; }
.fg-pal b, .fg-insp b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.fg-chip {
  display: block; width: 100%; text-align: left; margin: 0 0 6px; padding: 8px 10px;
  border-radius: 12px; border: 0.5px solid var(--hairline); background: rgba(255,255,255,.04);
  color: var(--label); font-size: 13px; cursor: grab;
}
.fg-chip i { display: block; font-style: normal; font-size: 11px; color: var(--label-2); }
.fg-canvas {
  min-height: 380px; border-radius: 22px; border: 1px dashed rgba(201,163,106,.35);
  background: radial-gradient(800px 400px at 50% -20%, #1c2436, #07080c); padding: 12px;
}
.fg-canvas.over { border-color: var(--gold); }
.fg-phone { max-width: 380px; margin: 0 auto; }
.fg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fg-card.full { grid-column: 1 / -1; }
.fg-card.col0 { grid-column: 1; }
.fg-card.col1 { grid-column: 2; }
.fg-top { font-weight: 800; margin: 0 0 10px; color: var(--fg-gold, var(--gold-2)); }
.fg-canvas { background: var(--fg-bg, radial-gradient(800px 400px at 50% -20%, #1c2436, #07080c)); }
.fg-card {
  position: relative; background: var(--fg-card, rgba(18,20,28,.92)); border: 0.5px solid var(--hairline);
  border-radius: var(--fg-radius, 16px); padding: 12px 14px; margin: 0; text-align: left; color: var(--fg-text, var(--label));
}
.fg-card.on { outline: 1px solid var(--gold); }
.fg-k { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.fg-brand { display: flex; gap: 10px; align-items: center; }
.fg-kas { width: 34px; height: 34px; }
.fg-id { display: block; font-size: 18px; }
.fg-card code { font-size: 11px; color: var(--label-2); }
.fg-kas-bal strong { font-size: 26px; letter-spacing: -.4px; }
.fg-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-top: 0.5px solid var(--hairline); }
.fg-empty { color: var(--label-2); font-size: 13px; }
.fg-cta {
  margin-top: 8px; height: 40px; width: 100%; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #e8c98a, #c9a36a); color: #1a1408; font-weight: 700;
}
.fg-x {
  position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border: 0;
  border-radius: 8px; background: transparent; color: var(--label-2); font-size: 16px;
}
.fg-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.fg-chat, .fg-insp { background: rgba(0,0,0,.28); border: 0.5px solid var(--hairline); border-radius: 16px; padding: 10px; }
.fg-chat b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.fg-log { max-height: 140px; overflow: auto; font-size: 12px; color: var(--label-2); }
.fg-msg { margin: 0 0 6px; } .fg-msg b { color: var(--gold-2); text-transform: none; letter-spacing: 0; font-size: 12px; display: inline; }
.fg-up { display: block; font-size: 11px; color: var(--label-2); margin: 8px 0; }
.fg-img-name { font-size: 11px; color: var(--gold); min-height: 1em; }
#fg-ask { width: 100%; border-radius: 10px; border: 0.5px solid var(--hairline); background: rgba(0,0,0,.35); color: var(--label); padding: 8px; font: inherit; }
.fg-in { width: 100%; margin: 6px 0 0; height: 36px; border-radius: 10px; border: 0.5px solid var(--hairline); background: rgba(0,0,0,.35); color: var(--label); padding: 0 8px; }
.fg-qr { display: flex; justify-content: center; padding: 8px 0; }
.fg-qr canvas { border-radius: 12px; }
.fg-qr-addr { font-size: 10px; word-break: break-all; color: var(--label-2); }
.fg-hint { font-size: 11px; color: var(--label-2); margin-top: 8px; }
.fg-kas-n { font-size: 26px; letter-spacing: -.4px; }
.fg-modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fg-modal.hidden { display: none !important; }
.fg-modal-in { width: min(420px, 100%); max-height: 92vh; overflow: auto; background: var(--fg-bg, #07080c); border-radius: 24px; padding: 16px 14px 24px; position: relative; }
.fg-modal-x { position: absolute; top: 10px; right: 10px; height: 32px; padding: 0 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; }
