:root {
  --navy: #071226;
  --plate: #10203a;
  --plate-2: #162848;
  --ink: #e8eef7;
  --mist: #8a99b2;
  --line: rgba(196, 163, 90, 0.28);
  --brass: #c4a35a;
  --brass-soft: rgba(196, 163, 90, 0.16);
  --up: #3ddc97;
  --down: #f07178;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
  --font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; min-height: 100%; background: var(--navy); color: var(--ink); overflow: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--brass); text-decoration: none; }
img { max-width: 100%; }

#app {
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 100% -10%, rgba(196, 163, 90, 0.08), transparent 42%),
    radial-gradient(90% 50% at 0% 100%, rgba(61, 220, 151, 0.05), transparent 50%),
    var(--navy);
  position: relative;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  min-height: 52px;
  padding: calc(8px + var(--safe-t)) 16px 8px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--navy) 94%, transparent);
}
.mast-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.mast-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex-shrink: 0;
}
.mast-logo img {
  display: block;
  width: 42px;
  height: 42px;
  max-width: 42px;
  object-fit: contain;
}
.mast-logo.has-img {
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 3px;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--brand, var(--brass));
  border-radius: 8px;
}
.mast-logo.has-img img {
  height: 42px;
  max-height: 42px;
  width: 42px;
  max-width: 42px;
  background: transparent;
  border: none;
}
.mast-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, #c4a35a, #8d6f2e);
  color: #1a1408;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mast-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46%;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mast-slogan {
  min-width: 0;
  flex: 1 1 auto;
  padding-left: 10px;
  border-left: 1px solid color-mix(in srgb, var(--brass) 70%, transparent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--brass);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mast-home {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  line-height: 1.2;
  padding: 4px 0 1px;
}
.mast-home:active { opacity: 0.7; }
.topbar {
  padding: 10px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  backdrop-filter: blur(10px);
}
.topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.topbar .sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--mist);
}
.tape {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--plate);
  white-space: nowrap;
}
.tape.up { color: var(--up); }
.tape.down { color: var(--down); }

.stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  padding: 12px 16px calc(var(--tab-h) + var(--safe-b) + 18px);
}
.stage:focus { outline: none; }

.tabbar {
  position: absolute;
  z-index: 20;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b));
  padding: 4px 6px var(--safe-b);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--plate) 94%, #000);
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mist);
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
}
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tab.on { color: var(--brass); background: var(--brass-soft); }
.auth-tabbar .tab { color: var(--mist); }
.auth-tabbar .tab:active { color: var(--brass); background: var(--brass-soft); }
.tab span { font-size: 11px; font-weight: 600; }
.tab:active { opacity: 0.72; }
.tab:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 8px 4px 0;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.tags::-webkit-scrollbar { display: none; }
.tag {
  position: relative;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--plate);
  color: var(--mist);
  font-size: 13px;
  font-weight: 600;
}
.tag.on { color: var(--navy); background: var(--brass); border-color: var(--brass); }
.tag-count {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--navy);
}
.tag.on .tag-count {
  background: var(--navy);
  color: var(--brass);
  box-shadow: 0 0 0 2px var(--brass);
}

.card {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.plat-card { padding: 8px; }
.plat-toggle {
  width: 100%; min-height: 48px; padding: 6px 8px;
  display: flex; align-items: center; gap: 10px;
  border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left;
}
.plat-toggle:active { opacity: 0.72; }
.plat-brief { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.plat-brief b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.plat-brief small { overflow: hidden; color: var(--mist); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.plat-chev { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; color: var(--mist); }
.plat-chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; transform: rotate(90deg); }
.plat-card.is-open .plat-chev svg { transform: rotate(-90deg); }
.plat-more { padding: 4px 8px 8px; }
.plat-dl { margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.plat-dl div { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.plat-dl dt { color: var(--mist); font-size: 13px; flex: 0 0 auto; }
.plat-dl dd { margin: 0; min-width: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.card h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--mist);
  letter-spacing: 0.04em;
}

.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.dash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-stack > .kpis { margin-bottom: 0; }
.dash-stack > .card { margin-bottom: 0; }
.kpi {
  padding: 10px;
  border-radius: 12px;
  background: var(--plate-2);
}
.kpi span { display: block; font-size: 11px; color: var(--mist); }
.kpi b { display: block; margin-top: 4px; font-size: 18px; font-family: var(--mono); letter-spacing: -0.03em; }
.kpi b.up { color: var(--up); }
.kpi b.down { color: var(--down); }

.bd-name { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.bd-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip, .badge {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: var(--plate-2); color: var(--mist);
}
.badge.on { background: rgba(61, 220, 151, 0.16); color: var(--up); }
.lead { margin: 0; font-size: 13px; color: var(--mist); }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.si span { font-size: 11px; color: var(--mist); }
.si b { display: block; font-family: var(--mono); font-size: 15px; }

.chart { display: block; width: 100%; height: 140px; }
.chart svg { width: 100%; height: 140px; display: block; }

.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.cal-nav strong { font-size: 14px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--plate-2); color: var(--ink);
}
.seg { display: flex; gap: 6px; margin-bottom: 10px; }
.seg button {
  flex: 1; min-height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--mist);
}
.seg button.on { background: var(--brass-soft); color: var(--brass); border-color: var(--brass); }
.dash-panes button { min-height: 44px; font-weight: 650; }
.dash-panes button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.dash-cards {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
}
.dash-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--plate);
}
.dash-card .lab-ico {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--mist);
}
.dash-card .lab-ico svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8;
}
.dash-card b {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-size: 22px; font-weight: 650;
  letter-spacing: -0.04em;
}
.dash-card b.up { color: var(--up); }
.dash-card b.down { color: var(--down); }

.cal-sum {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin-bottom: 10px;
}
.cal-sum b { font-family: var(--mono); font-size: 20px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  position: relative;
  min-height: 52px;
  border-radius: 8px;
  padding: 15px 3px 4px;
  background: var(--plate-2);
  display: grid; place-items: center;
}
.cal-cell.is-head { min-height: 22px; padding: 4px 3px; background: transparent; color: var(--mist); font-size: 10px; }
.cal-cell.is-empty { background: transparent; }
.cal-num { position: absolute; top: 5px; left: 6px; color: var(--mist); font-size: 10px; line-height: 1; }
.cal-pnl { display: block; max-width: 100%; overflow: hidden; font-family: var(--mono); font-size: 10px; line-height: 1.15; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.cal-cell.is-up { background: rgba(61, 220, 151, var(--intensity, 0.22)); }
.cal-cell.is-down { background: rgba(240, 113, 120, var(--intensity, 0.22)); }
.cal-cell.is-up .cal-pnl { color: var(--up); }
.cal-cell.is-down .cal-pnl { color: var(--down); }
.mon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mon-cell {
  min-height: 64px; border-radius: 10px; padding: 8px;
  background: var(--plate-2);
}
.mon-cell.is-up { background: rgba(61, 220, 151, 0.14); }
.mon-cell.is-down { background: rgba(240, 113, 120, 0.14); }

.sym { margin-bottom: 10px; }
.sym-row { display: flex; justify-content: space-between; font-size: 13px; }
.bar { height: 4px; margin-top: 6px; border-radius: 99px; background: #1c2d4a; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brass); }

.row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 56px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.row:last-child { border-bottom: 0; }
.row .id { font-family: var(--mono); font-size: 14px; }
.row .meta { font-size: 12px; color: var(--mist); }
.row .amt { font-family: var(--mono); font-weight: 650; }
.row .amt.up { color: var(--up); }
.row .amt.down { color: var(--down); }

.order-list { display: flex; flex-direction: column; gap: 8px; }
.trade-order { padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: var(--plate); }
.trade-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.trade-order-head > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.trade-order-head > div > b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.trade-order-head > strong { flex-shrink: 0; font-family: var(--mono); font-size: 14px; }
.trade-order-head > strong.up { color: var(--up); }
.trade-order-head > strong.down { color: var(--down); }
.trade-order-head > strong.order-pnl-pending { color: var(--mist); font-weight: 600; }
.order-unsettled { display: block; margin-top: 2px; color: var(--mist); font-family: inherit; font-size: 9px; font-weight: 500; text-align: right; }
.history-order.is-unsettled .trade-order-head > strong { opacity: .85; }
.order-side { padding: 2px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.order-side.buy { background: rgba(61,220,151,.13); color: var(--up); }
.order-side.sell { background: rgba(240,113,120,.13); color: var(--down); }
.trade-order-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 10px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.06); }
.trade-order-grid > span { min-width: 0; padding: 8px; background: rgba(7,18,38,.6); }
.trade-order-grid small, .trade-order-grid b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-order-grid small { color: var(--mist); font-size: 9px; }
.trade-order-grid b { margin-top: 2px; font-family: var(--mono); font-size: 10px; }
.trade-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--mist); font-size: 9px; }
.trade-order-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-total { position: static; }
.order-total b.up { color: var(--up); }
.order-total b.down { color: var(--down); }
.order-sync { margin: -1px 0 8px; color: var(--mist); font-size: 10px; text-align: center; }

.total-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; margin-bottom: 8px;
  border-radius: 12px; background: var(--plate-2); border: 1px solid var(--line);
}
.total-bar b { font-family: var(--mono); font-size: 18px; }

.list-stats .seg { display: flex; gap: 6px; margin: 8px 0 10px; }
.list-stats .seg button {
  flex: 1; min-height: 32px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--mist); font-size: 12px; font-weight: 650;
}
.list-stats .seg button.on { color: var(--navy); background: var(--brass); border-color: var(--brass); }
.list-stats .list-groups { margin-top: 0; }
.list-stats-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 10px; }
.list-stats-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.list-stats-table th, .list-stats-table td { padding: 8px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.list-stats-table th:first-child, .list-stats-table td:first-child { text-align: left; }
.list-stats-table th { position: sticky; top: 0; background: var(--plate-2); color: var(--mist); font-weight: 650; font-size: 11px; z-index: 1; }
.list-stats-table .list-total td { font-weight: 700; font-size: 13px; }
.list-stats-table .list-empty { text-align: center; color: var(--mist); padding: 16px; }
.list-stats-table td.up, .list-stats-table .up { color: var(--up); }
.list-stats-table td.down, .list-stats-table .down { color: var(--down); }
.list-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 10px;
}
.list-pager button {
  min-height: 44px; min-width: 88px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--plate-2); color: var(--ink);
  font-size: 13px; font-weight: 650;
}
.list-pager button:disabled { opacity: 0.38; }
.list-pager button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.list-pager span { font-family: var(--mono); font-size: 13px; color: var(--mist); }

.sig-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.sig-head .hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--mist);
}
.sig-head .hint svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.sig-card {
  display: block; width: 100%; text-align: left;
  padding: 14px; margin-bottom: 10px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--plate);
}
.sig-card:active { opacity: 0.86; }
.sig-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.sig-top {
  display: flex; align-items: flex-start; gap: 10px;
}
.sig-ava {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brass-soft); color: var(--brass);
  position: relative;
}
.sig-ava svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.sig-ini {
  font-family: var(--mono); font-size: 15px; font-weight: 650;
  letter-spacing: -0.04em; line-height: 1;
}
.sig-live {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(61, 220, 151, 0.12); color: var(--up);
  font-size: 10px; font-weight: 650; letter-spacing: 0.04em;
}
.sig-live svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; }
.sig-ttl { min-width: 0; flex: 1; }
.sig-ttl .name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
}
.sig-ttl .meta {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin-top: 4px; font-size: 12px; color: var(--mist);
}
.sig-ttl .meta em {
  display: inline-flex; align-items: center; gap: 4px; font-style: normal;
}
.sig-ttl .meta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sig-go {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--brass); background: var(--brass-soft);
}
.sig-go svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.sig-spark { margin: 10px 0 2px; height: 36px; }
.sig-spark svg { width: 100%; height: 36px; display: block; }
.sig-nums {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px;
}
.sig-num {
  padding: 8px 6px; border-radius: 10px; background: var(--plate-2); min-width: 0;
}
.sig-num .lab {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; color: var(--mist);
}
.sig-num .lab svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.sig-num b {
  display: block; margin-top: 3px;
  font-family: var(--mono); font-size: 12px; font-weight: 650;
  letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sig-num b.up { color: var(--up); }
.sig-num b.down { color: var(--down); }

.sig-back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 4px 0 0;
  border: 0; background: transparent; color: var(--brass); font-weight: 650;
}
.sig-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.m-sign { margin: 0 0 12px; }
.m-sign-kicker { margin: 0; color: var(--brass); font-size: 12px; letter-spacing: 0.14em; }
.m-sign-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.m-sign-title {
  margin: 0; color: var(--brass); font-size: clamp(26px, 7.2vw, 34px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; word-break: break-word;
}
.m-sign-run {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px;
  border-radius: 999px; border: 1px solid rgba(61, 220, 151, 0.45);
  background: rgba(61, 220, 151, 0.14); color: var(--up); font-size: 12px; font-weight: 700;
}
.m-sign-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.m-sign-line i { flex: 1; height: 1px; background: var(--brass); }
.m-sign-line span { color: var(--brass); font-size: 12px; letter-spacing: 0.12em; }
.m-sign-line b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.m-sign-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; color: var(--mist); font-size: 13px; }
.m-sign-facts b { color: var(--ink); font-weight: 650; }
.m-sign-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.m-sign-meters div {
  padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--brass-soft);
}
.m-sign-meters span { display: block; margin-bottom: 4px; color: var(--mist); font-size: 11px; }
.m-sign-meters b { display: block; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.m-sign-dash { height: 0; margin: 0 0 12px; border: 0; border-top: 1px dashed var(--brass); }
.m-sign .btn { width: 100%; }
.kpi .lab-ico {
  display: inline-flex; align-items: center; gap: 4px;
}
.kpi .lab-ico svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.signal-detail-card { overflow: hidden; }
.signal-pending { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--brass-soft); }
.signal-ranges {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 10px;
}
.signal-ranges button {
  min-width: 0; min-height: 36px; padding: 0 3px;
  border: 1px solid var(--line); border-radius: 9px;
  background: transparent; color: var(--mist); font-size: 11px; font-weight: 650;
}
.signal-ranges button.on { border-color: var(--brass); background: var(--brass-soft); color: var(--brass); }
.signal-ranges button:focus-visible,
.signal-cal-tabs button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.signal-equity-chart { display: block; width: 100%; height: 176px; border-radius: 10px; background: rgba(7,18,38,.42); }
.signal-curve-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; color: var(--mist); font-size: 11px;
}
.signal-curve-meta b { font-family: var(--mono); font-size: 13px; }
.signal-cal-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-cal-tabs button { min-width: 0; padding: 0 2px; font-size: 10px; white-space: nowrap; }
.signal-cal-sum { align-items: center; }
.signal-cal-sum .lead { min-width: 0; font-size: 11px; }
.signal-cal-sum b { flex-shrink: 0; font-size: 17px; }
.week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.period-cell,
.year-cell {
  min-width: 0; padding: 9px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.05); background: var(--plate-2);
}
.period-cell.is-up,
.mon-cell.is-up,
.year-cell.is-up { background: rgba(61,220,151,var(--intensity,.14)); }
.period-cell.is-down,
.mon-cell.is-down,
.year-cell.is-down { background: rgba(240,113,120,var(--intensity,.14)); }
.period-cell span,
.year-cell span { display: block; overflow: hidden; color: var(--mist); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.period-cell b,
.year-cell b,
.mon-cell b { display: block; margin-top: 5px; font-family: var(--mono); font-size: 12px; letter-spacing: -.03em; }
.period-cell small,
.year-cell small,
.mon-cell small { display: block; margin-top: 3px; color: var(--mist); font-size: 9px; }
.signal-ret { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 1; }
.signal-ret.up { color: var(--up); }
.signal-ret.down { color: var(--down); }
.cal-cell .signal-ret { position: absolute; right: 3px; bottom: 3px; left: 3px; margin: 0; overflow: hidden; font-size: 8px; text-align: center; white-space: nowrap; }
.mon-cell span { display: block; color: var(--mist); font-size: 11px; }
.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.year-cell { min-height: 88px; }
.year-cell b { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.subtabs {
  display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px;
  scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button {
  flex: 0 0 auto; min-height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--plate); color: var(--mist); font-size: 13px; font-weight: 600;
}
.subtabs button.on { background: var(--brass); color: var(--navy); border-color: var(--brass); }

.acc-rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 12px;
}
.acc-rail-btn {
  position: relative;
  min-height: 52px; padding: 6px 2px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--plate); color: var(--mist);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.acc-badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #e11d48; color: #fff;
  font-size: 10px; font-weight: 700; font-style: normal; line-height: 16px; text-align: center;
}
.acc-rail-btn.on .acc-badge { background: #071226; color: #fff; }
.acc-rail-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.acc-rail-btn span { font-size: 11px; font-weight: 650; line-height: 1.1; }
.acc-rail-btn.on { color: var(--navy); background: var(--brass); border-color: var(--brass); }
.acc-rail-btn:active { opacity: 0.72; }
.acc-rail-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.edit-copy-sheet { margin-bottom: 12px; }
.edit-copy-sheet h2 { margin: 0 0 6px; font-size: 18px; }
.cond-copy { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cond-copy.is-off .cond-modes { opacity: .45; }
.cond-switch { min-height: 44px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cond-mode {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 12px; border: 2px solid var(--line); border-radius: 12px; min-width: 0;
}
.cond-mode.is-on { border-color: var(--brass); }
.cond-mode > span { min-width: 0; }
.cond-mode b { display: block; font-size: 15px; }
.cond-mode-body { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 0; }
.cond-mode-body[hidden] { display: none; }
.cond-num { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cond-num input,
.edit-copy-sheet input:not([type="radio"]):not([type="checkbox"]),
.edit-copy-sheet select {
  width: min(140px, 100%); min-height: 48px; padding: 0 12px;
  font-size: 20px; font-weight: 800;
  background: var(--input, var(--plate-2));
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--brass);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cond-switch input,
.cond-mode > input {
  width: 22px; height: 22px; min-height: 22px; margin-top: 2px; padding: 0; accent-color: var(--brass);
}
.edit-copy-sheet select { width: 100%; }
html[data-m-style="obsidian-tech"],
html[data-m-style="aurora-gold"],
html[data-m-style="crimson-pulse"],
html[data-m-style="radar-terminal"],
html[data-m-style="harbor-glass"],
html[data-m-style="exchange-desk"] { color-scheme: dark; }
html[data-m-style="scarlet-bronze"],
html[data-m-style="crimson-gold"],
html[data-m-style="garnet-amber"],
html[data-m-style="arctic-clean"],
html[data-m-style="tech-blue"],
html[data-m-style="system-clear"] { color-scheme: light; }
.cond-sides { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
.cond-sides label {
  width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-weight: 800; white-space: nowrap;
}
.cond-sides input { width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; flex: 0 0 20px; accent-color: var(--brass); }
.clog-row { margin-bottom: 8px; }
.clog-top { display: flex; justify-content: space-between; gap: 8px; }
.clog-meta { color: var(--mist); font-size: 13px; }
.clog-detail {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--ink, #e8eef8); font-size: 13px; line-height: 1.55; white-space: pre-wrap;
}
.btn-row { flex-wrap: wrap; }

.promo-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px;
  margin-bottom: 12px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,18,38,.62);
}
.promo-tabs button {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; min-height: 44px; padding: 0 4px; border: 0; border-radius: 10px;
  background: transparent; color: var(--mist); font-size: 11px; font-weight: 650; white-space: nowrap;
}
.promo-tabs button.on { background: var(--brass); color: #1a1408; }
.promo-tabs button:active { transform: scale(.98); }
.promo-tabs button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.promo-tabs svg { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.9; }
.promo-pane { animation: copyPaneIn .18s ease-out; }
.promo-invite {
  padding: 18px 15px 15px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(155deg, rgba(196,163,90,.16), transparent 52%), var(--plate);
}
.promo-invite-label { display: flex; align-items: center; gap: 6px; color: var(--mist); font-size: 11px; }
.promo-invite-label svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.promo-invite strong { display: block; margin: 9px 0 14px; font-family: var(--mono); font-size: 30px; letter-spacing: .08em; }
.promo-qr {
  width: 196px; height: 196px; margin: 0 auto 10px;
  padding: 10px; border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.promo-qr canvas { display: block; width: 176px; height: 176px; }
.promo-qr-hint { margin: 0 0 8px; color: var(--mist); font-size: 12px; }
.promo-qr-link {
  margin: 0 0 14px; color: var(--mist); font-size: 11px; line-height: 1.5;
  word-break: break-all; font-family: var(--mono);
}
.promo-dashboard, .settle-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }
.promo-dashboard section, .settle-summary section { min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: var(--plate); }
.promo-dashboard span, .settle-summary span { display: flex; align-items: center; gap: 5px; color: var(--mist); font-size: 10px; }
.promo-dashboard span svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.promo-dashboard b, .settle-summary b { display: block; margin-top: 5px; overflow: hidden; font-family: var(--mono); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.promo-dashboard small { display: block; margin-top: 3px; color: var(--mist); font-size: 9px; }
.promo-member { display: flex; align-items: center; gap: 9px; min-height: 64px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); }
.promo-member .sig-ava { width: 36px; height: 36px; border-radius: 10px; }
.promo-empty .sig-ava { margin: 0 auto 10px; }
.promo-empty .btn { width: auto; }
.withdraw-first-note { margin-bottom: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--brass-soft); color: var(--mist); font-size: 11px; }
.withdraw-order { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
.withdraw-order-top, .settle-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.withdraw-order-top > div b, .withdraw-order-top > div span, .settle-row-top > div b, .settle-row-top > div span { display: block; }
.withdraw-order-top > div b { font-family: var(--mono); font-size: 15px; }
.withdraw-order-top > div span, .settle-row-top > div span { margin-top: 2px; color: var(--mist); font-size: 9px; }
.withdraw-order-meta, .settle-row-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 8px; color: var(--mist); font-size: 10px; }
.withdraw-order > p, .settle-row > p { margin: 7px 0 0; color: var(--mist); font-size: 10px; }
.settle-summary b.up { color: var(--up); }
.settle-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.settle-split span { overflow: hidden; padding: 7px 4px; border-radius: 8px; background: var(--plate-2); color: var(--mist); font-family: var(--mono); font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.settle-row { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); }
.settle-row-top > div b { font-size: 12px; }
.settle-row-top > strong { flex-shrink: 0; color: var(--up); font-family: var(--mono); font-size: 14px; }

.acc-who {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.acc-blot, .acc-ticket {
  position: relative;
  padding: 16px 14px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(196,163,90,0.12), transparent 48%),
    var(--plate);
}
.acc-blot::before, .acc-ticket::before {
  content: "";
  position: absolute; left: 14px; right: 14px; top: 8px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 10px);
  opacity: 0.55;
}
.acc-blot-lab, .acc-h {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px;
  font-size: 12px; font-weight: 650; color: var(--mist);
}
.acc-blot-lab svg, .acc-h svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8;
}
.acc-blot-num, .acc-ticket-code {
  font-family: var(--mono);
  font-size: 28px; font-weight: 650;
  letter-spacing: -0.04em; line-height: 1.15;
  color: var(--ink);
  word-break: break-all;
}
@media (max-width: 360px) {
  .acc-blot-num, .acc-ticket-code { font-size: 24px; }
  .acc-rail-btn span { font-size: 10px; }
}
.acc-blot-sub { margin: 6px 0 12px; font-size: 12px; color: var(--mist); }
.acc-ticket .lead { margin: 8px 0 12px; word-break: break-all; }

.acc-lines {
  display: flex; flex-direction: column;
  margin-bottom: 10px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--plate);
}
.acc-lines.tight { margin: 10px 0 0; border: 0; background: transparent; }
.acc-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 44px; padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.acc-lines.tight .acc-line { padding-left: 0; padding-right: 0; }
.acc-line:last-child { border-bottom: 0; }
.acc-line span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--mist);
}
.acc-line span svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.acc-line b { font-family: var(--mono); font-size: 14px; font-weight: 650; }
.acc-line b.up { color: var(--up); }
.acc-line b.down { color: var(--down); }

.acc-fund { margin-bottom: 10px; }
.acc-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.acc-item-amt { text-align: right; flex-shrink: 0; }
.acc-item-amt b { display: block; font-family: var(--mono); font-size: 13px; }
.acc-item-amt span { display: block; font-family: var(--mono); font-size: 11px; }
.acc-item-amt span.up { color: var(--up); }
.acc-item-amt span.down { color: var(--down); }
.acc-lead { margin-bottom: 12px; }
.acc-warn {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 0 0 12px;
}
.acc-warn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 1px; }
.acc-job .sig-top { margin-bottom: 2px; }

.follow-hero {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px;
  background: linear-gradient(145deg, rgba(196,163,90,.12), transparent 56%), var(--plate);
}
.follow-hero > div { min-width: 0; }
.follow-hero span:not(.sig-ava):not(.sig-ini) { display: block; color: var(--mist); font-size: 10px; }
.follow-hero h1 { margin: 2px 0 0; overflow: hidden; font-size: 17px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.follow-progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 7px; margin: 2px 2px 15px; }
.follow-progress span { display: flex; align-items: center; gap: 4px; color: var(--mist); font-size: 10px; white-space: nowrap; }
.follow-progress span b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: var(--plate-2); font-family: var(--mono); font-size: 10px; }
.follow-progress span.on { color: var(--brass); }
.follow-progress span.on b { background: var(--brass); color: #1a1408; }
.follow-progress i { height: 1px; background: var(--line); }
.follow-section { margin-bottom: 12px; }
.follow-section > .acc-h { margin-bottom: 8px; }
.follow-account {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 68px;
  margin-bottom: 7px; padding: 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
  background: var(--plate); color: var(--ink); text-align: left;
}
.follow-account.selected { border-color: var(--brass); background: linear-gradient(90deg, var(--brass-soft), var(--plate)); }
.follow-account.busy { cursor: not-allowed; opacity: .48; }
.follow-account:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.follow-radio { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; color: #1a1408; }
.follow-account.selected .follow-radio { border-color: var(--brass); background: var(--brass); }
.follow-radio svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.follow-account .copy-account-mark { width: 36px; height: 36px; }
.follow-account-main { min-width: 0; flex: 1; }
.follow-account-main b, .follow-account-main small, .follow-account-value b, .follow-account-value small { display: block; }
.follow-account-main b { font-size: 13px; }
.follow-account-main small { margin-top: 2px; overflow: hidden; color: var(--mist); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.follow-account-value { flex-shrink: 0; text-align: right; }
.follow-account-value b { font-family: var(--mono); font-size: 11px; }
.follow-account-value small { margin-top: 2px; color: var(--mist); font-size: 9px; }
.follow-bind { margin-top: 14px; }
.follow-actions { margin-top: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--plate); }
.follow-actions.split { display: grid; grid-template-columns: .72fr 1.5fr; gap: 8px; margin-bottom: 8px; }
.follow-actions.split .btn { width: 100%; padding: 0 10px; }
.follow-picked { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--plate); }
.follow-picked > div { min-width: 0; }
.follow-picked span { display: block; color: var(--mist); font-size: 10px; }
.follow-picked > .copy-account-mark { display: grid; place-items: center; color: var(--brass); font-size: 10px; }
.follow-picked b { display: block; margin-top: 2px; font-size: 13px; }
.follow-picked-equity { margin-left: auto; flex-shrink: 0; text-align: right; }
.follow-picked-equity b { font-family: var(--mono); }
.follow-settings .field:last-child { margin-bottom: 0; }
.follow-protect-note { margin: -1px 0 12px; padding: 8px 10px; border-radius: 9px; background: var(--brass-soft); color: var(--mist); font-size: 11px; }
.follow-protect-field { padding: 11px; border: 1px solid; border-radius: 12px; }
.follow-protect-field + .follow-protect-field { margin-top: 10px; }
.follow-protect-field.loss { border-color: rgba(240,113,120,.3); background: rgba(240,113,120,.07); }
.follow-protect-field.take { border-color: rgba(61,220,151,.3); background: rgba(61,220,151,.07); }
.follow-protect-field label { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.follow-protect-field label > span:nth-child(2) { min-width: 0; flex: 1; }
.follow-protect-field label b, .follow-protect-field label small { display: block; }
.follow-protect-field label b { font-size: 13px; }
.follow-protect-field label small { margin-top: 1px; color: var(--mist); font-size: 10px; font-weight: 400; }
.follow-protect-field label em { color: var(--mist); font-family: var(--mono); font-size: 10px; font-style: normal; }
.follow-protect-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; }
.follow-protect-field.loss .follow-protect-icon { background: rgba(240,113,120,.15); color: var(--down); }
.follow-protect-field.take .follow-protect-icon { background: rgba(61,220,151,.15); color: var(--up); }
.follow-protect-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.follow-protect-input { display: flex; align-items: center; min-height: 46px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: var(--navy); }
.follow-protect-input:focus-within { outline: 2px solid var(--brass); outline-offset: 1px; }
.follow-protect-input > span { padding-left: 12px; color: var(--mist); font-family: var(--mono); }
.follow-protect-input input { min-width: 0; flex: 1; height: 44px; padding: 0 12px 0 5px; border: 0; outline: 0; background: transparent; font-family: var(--mono); font-size: 15px; }
.follow-protect-field > p { margin: 6px 0 0; color: var(--mist); font-size: 10px; }
.follow-protect-field.loss > p { color: color-mix(in srgb, var(--down) 72%, var(--mist)); }
.follow-protect-field.take > p { color: color-mix(in srgb, var(--up) 72%, var(--mist)); }
.follow-form-error { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 10px; padding: 10px 11px; border: 1px solid rgba(240,113,120,.3); border-radius: 10px; background: rgba(240,113,120,.1); color: var(--down); font-size: 12px; }
.follow-form-error svg { width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }
.follow-success { padding: 34px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--plate); text-align: center; }
.follow-success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background: rgba(61,220,151,.14); color: var(--up); }
.follow-success-icon svg { width: 27px; height: 27px; stroke: currentColor; fill: none; stroke-width: 2; }
.follow-success h2 { margin: 0 0 7px; font-size: 18px; }
.follow-success p { margin: 0 0 18px; color: var(--mist); font-size: 12px; }
.follow-success .btn + .btn { width: 100%; margin-top: 8px; }

.copy-pane-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin-bottom: 12px; padding: 4px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(7,18,38,.62);
}
.copy-pane-tabs button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--mist);
  font-size: 13px; font-weight: 650;
}
.copy-pane-tabs button.on { background: var(--brass); color: #1a1408; }
.copy-pane-tabs button:active { transform: scale(.98); }
.copy-pane-tabs button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.copy-pane-tabs svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.9; }
.copy-pane-tabs em {
  display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px;
  background: rgba(255,255,255,.08); color: inherit; font-family: var(--mono); font-size: 10px; font-style: normal;
}
.copy-pane-tabs button.on em { background: rgba(7,18,38,.16); }
.copy-pane { animation: copyPaneIn .18s ease-out; }
@keyframes copyPaneIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.copy-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  margin-bottom: 10px;
}
.copy-summary > div {
  min-width: 0; padding: 10px 8px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.06); background: var(--plate);
}
.copy-summary span { display: block; color: var(--mist); font-size: 9px; white-space: nowrap; }
.copy-summary b {
  display: block; margin-top: 4px; overflow: hidden;
  font-family: var(--mono); font-size: 13px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap;
}
.copy-summary b.up, .copy-job-grid b.up { color: var(--up); }
.copy-summary b.down, .copy-job-grid b.down { color: var(--down); }
.copy-summary small { font: inherit; color: var(--mist); }
.copy-job { overflow: hidden; }
.copy-job.is-protected { border-color: rgba(240,113,120,.45); }
.copy-signal-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 11px; padding: 9px 10px; border-radius: 9px;
  background: var(--brass-soft); font-size: 12px;
}
.copy-signal-row span { color: var(--mist); }
.copy-signal-row b { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.copy-job-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 8px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.06);
}
.copy-job-grid > div { min-width: 0; padding: 9px 10px; background: rgba(7,18,38,.56); }
.copy-job-grid span { display: block; color: var(--mist); font-size: 9px; }
.copy-job-grid b {
  display: block; margin-top: 3px; overflow: hidden;
  font-family: var(--mono); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap;
}
.copy-protection {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 9px 0 0; padding: 9px 10px; border-radius: 9px;
  background: rgba(240,113,120,.1); color: var(--down); font-size: 11px;
}
.copy-protection svg { width: 13px; height: 13px; margin-top: 1px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }
.copy-follow-empty { padding-top: 34px; }
.copy-follow-empty .sig-ava { margin: 0 auto 10px; }
.copy-follow-empty .btn { width: auto; }

.bound-accounts {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(196,163,90,.1), transparent 42%),
    var(--plate);
}
.bound-accounts-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 11px;
}
.bound-accounts-head > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.bound-accounts-head .acc-h { margin: 0; color: var(--ink); font-size: 13px; }
.bound-accounts-head strong {
  display: grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 7px; background: var(--brass-soft); color: var(--brass);
  font-family: var(--mono); font-size: 11px;
}
.bind-account-link {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  min-height: 44px; margin: -8px -6px -8px 0; padding: 0 6px;
  border: 0; background: transparent; color: var(--brass);
  font-size: 12px; font-weight: 650;
}
.bind-account-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.bind-account-link:active { opacity: .7; }
.bind-account-link:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; border-radius: 7px; }
.copy-account {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.copy-account:last-child { padding-bottom: 2px; }
.copy-account-top { display: flex; align-items: flex-start; gap: 10px; }
.copy-account-mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid rgba(196,163,90,.34); background: rgba(7,18,38,.55); color: var(--brass);
  font-family: var(--mono); font-size: 10px; font-weight: 650; letter-spacing: -.03em;
}
.copy-account-broker {
  display: flex; align-items: center; gap: 4px;
  min-width: 0; margin-top: 3px; color: var(--mist); font-size: 11px;
}
.copy-account-broker svg { width: 12px; height: 12px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; }
.copy-account-broker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-account-funds {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 10px 0 0; overflow: hidden;
  border-radius: 10px; background: rgba(255,255,255,.06);
}
.copy-account-funds div { padding: 8px 10px; background: rgba(7,18,38,.56); }
.copy-account-funds span { display: block; margin-bottom: 2px; color: var(--mist); font-size: 10px; }
.copy-account-funds b { display: block; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.copy-account-lock, .copy-account-error {
  display: flex; align-items: flex-start; gap: 5px;
  margin: 8px 0 0; font-size: 11px;
}
.copy-account-lock { color: var(--mist); }
.copy-account-error { color: var(--down); }
.copy-account-lock svg, .copy-account-error svg { width: 12px; height: 12px; margin-top: 2px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }
.copy-account-empty { border-top: 1px solid rgba(255,255,255,.07); }

.st-pill {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  min-height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 650;
  background: var(--plate-2); color: var(--mist);
}
.st-pill svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.st-pill.st-ok { background: rgba(61,220,151,0.14); color: var(--up); }
.st-pill.st-bad { background: rgba(240,113,120,0.14); color: var(--down); }
.st-pill.st-wait { background: var(--brass-soft); color: var(--brass); }

.copy-edit-launch { width: 100%; margin-top: 10px; }
.copy-edit-hint { margin: 6px 2px 0; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; }
.btn-row .btn { flex: 1; width: auto; min-width: 0; padding: 0 6px; font-size: 14px; white-space: nowrap; }
.sig-own-tabs { margin-bottom: 12px; }
.sig-own-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sig-own-tabs em {
  min-width: 18px; padding: 0 6px; border-radius: 999px;
  background: rgba(255,255,255,.08); font-style: normal; font-size: 11px;
}
.sig-own-tabs button.on em { background: rgba(7,18,38,.16); }
.sig-own-row { align-items: center; flex-wrap: wrap; }
.sig-own-row .sig-del { margin-left: auto; width: auto; min-height: 32px; padding: 0 10px; font-size: 12px; }
.sig-own-row .sig-del svg { width: 14px; height: 14px; }
.m-dialog-mask {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + var(--safe-b));
  background: rgba(4, 8, 16, .62);
  backdrop-filter: blur(6px);
}
.m-dialog {
  width: min(420px, 100%);
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: #121a28;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  color: var(--text, #e8eef8);
}
.m-dialog h3 { margin: 0 0 8px; font-size: 17px; font-weight: 750; }
.m-dialog p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--mist, #9aa8bd); }
.m-dialog-actions { display: flex; gap: 8px; margin-top: 16px; }
.m-dialog-actions .btn { flex: 1; width: auto; }
.empty.tight { padding: 20px 8px; }
.empty.tight .btn { width: auto; min-width: 160px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--mist); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--plate-2); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brass); outline-offset: 1px;
}
.help { margin: 6px 0 0; font-size: 12px; color: var(--mist); }
.err { color: var(--down); font-size: 13px; margin: 0 0 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 650;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; margin-right: 6px; }
.btn-primary { background: var(--brass); color: #1a1408; width: 100%; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-danger { background: rgba(240,113,120,0.16); color: var(--down); border-color: rgba(240,113,120,0.35); }
.btn-warn { background: rgba(251,191,36,0.16); color: #fbbf24; border-color: rgba(251,191,36,0.4); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.sil-parse { width: 100%; margin-bottom: 12px; }
.field textarea.sil-paste {
  min-height: 148px; resize: vertical;
  font-family: var(--mono); font-size: 13px; line-height: 1.45;
}
.sil-parsed {
  margin-bottom: 10px; padding: 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--plate-2);
}
.sil-parsed-h {
  margin: 0 0 8px; font-size: 11px; font-weight: 650; color: var(--mist);
  letter-spacing: 0.04em;
}
.sil-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: 28px; font-size: 13px;
}
.sil-row .mono { font-family: var(--mono); }
.sil-status {
  margin: 0 0 12px; padding: 12px;
  border-radius: 12px; font-size: 13px; line-height: 1.55;
  border: 1px solid var(--line); background: var(--plate-2); color: var(--mist);
}
.sil-status.info { color: var(--ink); }
.sil-status.ok { border-color: rgba(61,220,151,0.35); background: rgba(61,220,151,0.10); color: var(--up); }
.sil-status.warn { border-color: rgba(240,113,120,0.35); background: rgba(240,113,120,0.10); color: var(--down); }

.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #162848, #1d3358, #162848); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel.lg { height: 72px; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel, .copy-pane, .promo-pane { animation: none; }
  .tab, .btn, .sig-card, .acc-rail-btn { transition: none; }
}

.empty { text-align: center; padding: 36px 12px; color: var(--mist); }
.empty p { margin: 0 0 14px; }

.login {
  flex: 1;
  min-height: 0;
  padding: 28px 18px calc(var(--tab-h) + var(--safe-b) + 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.login-panel {
  width: 100%;
  padding: 26px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(22,40,72,.92), rgba(10,25,48,.96));
  box-shadow: 0 22px 54px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.035);
}
.login-intro { margin-bottom: 24px; }
.login-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brass);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.login h1 { margin: 0 0 7px; font-size: 29px; line-height: 1.12; letter-spacing: -.045em; }
.login-intro p { margin: 0; color: var(--mist); font-size: 13px; }
.login-fields { display: grid; gap: 15px; }
.login-field { margin: 0; }
.login-field label {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}
.login-input {
  min-height: 56px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(196,163,90,.32);
  border-radius: 14px;
  background: #0d1d35;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.login-input:hover { border-color: rgba(196,163,90,.48); }
.login-input:focus-within {
  border-color: var(--brass);
  background: #102441;
  box-shadow: 0 0 0 3px rgba(196,163,90,.12);
}
.login-input-icon {
  width: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: var(--brass);
}
.login-input-icon svg,
.login-pwd-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.field .login-input input {
  min-width: 0;
  min-height: 54px;
  padding: 0 10px 0 0;
  border: 0;
  border-radius: 0;
  background: #0d1d35;
  color: var(--ink);
  caret-color: var(--brass);
  box-shadow: none;
  outline: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
}
.field .login-input:focus-within input { background: #102441; }
.field .login-input input::placeholder { color: rgba(138,153,178,.72); font-size: 18px; letter-spacing: 0; }
.field .login-input input:focus { outline: 0; }
.field .login-input input:-webkit-autofill,
.field .login-input input:-webkit-autofill:hover,
.field .login-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--brass);
  box-shadow: 0 0 0 1000px #0d1d35 inset;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.field .login-input:focus-within input:-webkit-autofill { box-shadow: 0 0 0 1000px #102441 inset; }
.login-pwd-toggle {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  margin-right: 3px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--mist);
}
.login-pwd-toggle:hover,
.login-pwd-toggle[aria-pressed="true"] { color: var(--brass); background: var(--brass-soft); }
.login-pwd-toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.login-submit { min-height: 50px; margin-top: 20px; border-radius: 14px; font-size: 15px; }
.login-register { margin: 17px 0 0; text-align: center; color: var(--mist); font-size: 12px; }
.login-register a { margin-left: 3px; font-weight: 700; }
.register-page { align-items: flex-start; }
.register-page .login-panel { margin: auto 0; }
.register-page .login-intro { margin-bottom: 18px; }
.register-page .login-fields { gap: 11px; }
.register-page .login-submit { margin-top: 7px; }
.auth-msg { display: none; margin: 0 0 14px; padding: 10px 12px; border-radius: 11px; font-size: 12px; line-height: 1.45; }
.auth-msg.bad { display: block; border: 1px solid rgba(240,113,120,.32); background: rgba(240,113,120,.09); color: var(--down); }
.auth-msg.ok { display: block; border: 1px solid rgba(61,220,151,.32); background: rgba(61,220,151,.09); color: var(--up); }
.verify-actions { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8px; margin-top: 18px; }
.verify-actions .btn { min-height: 48px; }
.auth-link { padding: 6px; border: 0; background: transparent; color: var(--brass); font-weight: 700; }
.auth-link:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.login-error {
  margin: -10px 0 17px;
  padding: 10px 12px;
  border: 1px solid rgba(240,113,120,.32);
  border-radius: 11px;
  background: rgba(240,113,120,.09);
}
@media (max-height: 620px) {
  .login { align-items: flex-start; }
  .login-panel { padding-top: 20px; }
  .login-intro { margin-bottom: 18px; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 12px);
  transform: translateX(-50%);
  max-width: 86%; padding: 10px 14px; border-radius: 10px;
  background: #1c2a12; color: var(--up); border: 1px solid rgba(61,220,151,0.35);
  font-size: 13px; z-index: 20;
}
.toast.bad { background: #2a1418; color: var(--down); border-color: rgba(240,113,120,0.4); }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 4px 0 0;
  border: 0; background: transparent; color: var(--brass); font-weight: 650;
}
#myokAppFloat {
  position: fixed;
  right: 10px;
  top: 42%;
  z-index: 40;
  width: 72px;
}
#myokAppFloat .apk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  padding: 10px 6px 8px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: #1e6fd9;
}
#myokAppFloat .apk-card svg { width: 28px; height: 28px; }
#myokAppFloat .apk-card span { font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
#myokAppFloat .apk-x {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #111;
  color: #fff;
  font-size: 13px;
  line-height: 22px;
}
