:root {
  --bg: #0a0a0a;
  --bg-raised: #0e1217;
  --sidebar: #090c11;
  --panel: #11161d;
  --panel-2: #161c24;
  --panel-3: #1b232d;
  --line: #303a45;
  --line-soft: rgba(255, 255, 255, .1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .68);
  --muted-2: rgba(255, 255, 255, .48);
  --green: #34e28d;
  --green-deep: #14c362;
  --green-soft: rgba(52, 226, 141, .12);
  --red: #ff6478;
  --red-soft: rgba(255, 100, 120, .12);
  --amber: #f6c15f;
  --blue: #73a7ff;
  --violet: #9b87ff;
  --radius-lg: 18px;
  --radius-md: 13px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font: 15px/1.5 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-is-loading::before {
  content: "";
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg,transparent,var(--green),#8af6cd,transparent);
  box-shadow: 0 0 14px rgba(52,226,141,.7);
  animation: page-loading-track .85s ease-in-out infinite;
  pointer-events: none;
}

@keyframes page-loading-track {
  from { transform: translateX(-110%); }
  to { transform: translateX(365%); }
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell { width: min(1480px, calc(100% - 40px)); margin: 0 auto; }
.app-shell, .login-shell { width: 100%; min-height: 100vh; }

/* Shared brand */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: #07120e;
  background: linear-gradient(145deg, #7cf6c8, #45dba4);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(75, 220, 166, .2), inset 0 1px rgba(255, 255, 255, .5);
}
.brand-mark svg { width: 23px; height: 23px; stroke-width: 2; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.brand-large .brand-mark { width: 46px; height: 46px; border-radius: 14px; }
.brand-large strong { font-size: 19px; }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(109, 240, 189, .08), 0 0 16px rgba(109, 240, 189, .55);
}

/* Login */
.login-page {
  background:
    radial-gradient(circle at 12% 16%, rgba(83, 222, 168, .09), transparent 28%),
    radial-gradient(circle at 87% 88%, rgba(89, 123, 255, .08), transparent 30%),
    #080a0e;
}

.auth-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); min-height: 100vh; }
.auth-showcase {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: clamp(36px, 5vw, 72px);
  overflow: hidden;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  isolation: isolate;
}
.auth-showcase::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
  content: "";
}
.auth-showcase::after {
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -240px;
  top: 16%;
  border: 1px solid rgba(109, 240, 189, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(109, 240, 189, .018), 0 0 0 180px rgba(109, 240, 189, .01);
  content: "";
}
.showcase-copy { width: min(680px, 92%); margin: auto 0 38px; }
.section-kicker, .auth-kicker, .empty-kicker {
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section-kicker { display: flex; align-items: center; gap: 10px; }
.section-kicker i { width: 22px; height: 1px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.showcase-copy h1 { margin: 19px 0 22px; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -.06em; }
.showcase-copy h1 em { color: var(--green); font-style: normal; }
.showcase-copy p { width: min(610px, 92%); margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }

.signal-card {
  width: min(680px, 94%);
  padding: 18px 20px 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(19,25,34,.9), rgba(12,16,23,.86));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.signal-head { display: flex; justify-content: space-between; align-items: center; }
.signal-head > div { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; }
.signal-head small { padding: 3px 8px; color: var(--green); background: var(--green-soft); border-radius: 30px; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.signal-chart { height: 115px; margin-top: 8px; }
.signal-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-area { fill: url(#chart-fill); stroke: none; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.2; filter: drop-shadow(0 0 8px rgba(109,240,189,.45)); }
.signal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -20px; border-top: 1px solid var(--line-soft); }
.signal-metrics div { display: grid; gap: 3px; padding: 14px 20px; border-right: 1px solid var(--line-soft); }
.signal-metrics div:last-child { border: 0; }
.signal-metrics span { color: var(--muted-2); font-size: 9px; letter-spacing: .06em; }
.signal-metrics strong { font-size: 12px; }
.signal-metrics .safe-text { color: var(--green); }
.showcase-foot { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--muted-2); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.showcase-foot p { margin: 0; }
.showcase-foot span:first-child, .showcase-foot p:first-of-type { color: var(--green); }
.showcase-foot i { width: 28px; height: 1px; background: var(--line); }

.auth-panel { display: grid; place-items: center; min-height: 100vh; padding: clamp(28px, 6vw, 84px); }
.auth-card { width: min(410px, 100%); }
.mobile-brand { display: none; }
.auth-card h2 { margin: 10px 0 5px; font-size: clamp(32px, 3.2vw, 43px); line-height: 1.15; letter-spacing: -.045em; }
.auth-subtitle { margin: 0 0 34px; color: var(--muted); }
.login-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { color: #b7c0ce; font-size: 11px; font-weight: 650; }
.input-wrap {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  background: #0b0e14;
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-wrap:focus-within { background: #0d1118; border-color: rgba(109,240,189,.65); box-shadow: 0 0 0 4px rgba(109,240,189,.075); }
.input-wrap svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted-2); }
.input-wrap:focus-within svg { color: var(--green); }
.input-wrap input { width: 100%; height: 100%; padding: 0; color: var(--text); background: transparent; border: 0; outline: 0; }
.input-wrap input::placeholder { color: #505968; }
.primary-button {
  display: inline-flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  color: #07130f;
  background: linear-gradient(135deg, #76f3c2, #4edda8);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 10px 30px rgba(61, 218, 160, .13), inset 0 1px rgba(255,255,255,.45);
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s, filter .18s, box-shadow .18s;
}
.primary-button:hover { filter: brightness(1.04); box-shadow: 0 14px 38px rgba(61,218,160,.2); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { width: 17px; height: 17px; stroke-width: 2.2; }
.login-button { width: 100%; height: 52px; margin-top: 5px; }
.auth-divider { position: relative; margin: 30px 0 22px; color: var(--muted-2); text-align: center; font-size: 9px; letter-spacing: .16em; }
.auth-divider::before { position: absolute; z-index: -1; top: 50%; left: 0; width: 100%; height: 1px; background: var(--line); content: ""; }
.auth-divider span { padding: 0 12px; background: #080a0e; }
.security-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.security-list div { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px; color: #b9c2cf; background: rgba(255,255,255,.025); border: 1px solid var(--line-soft); border-radius: 9px; font-size: 10px; }
.security-list svg { width: 13px; height: 13px; color: var(--green); stroke-width: 2.5; }
.auth-note { margin: 19px 0 0; color: var(--muted-2); font-size: 10px; text-align: center; }
.login-error { margin: 0 0 20px; }

/* Dashboard frame */
.app-page { background: var(--bg); }
.app-frame { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  padding: 25px 18px 18px;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
}
.sidebar > .brand { padding: 0 8px; }
.side-nav { display: grid; gap: 5px; margin-top: 46px; }
.nav-label { margin: 0 11px 7px; color: #4f596a; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.nav-label-secondary { margin-top: 25px; }
.nav-item { position: relative; display: flex; height: 44px; align-items: center; gap: 11px; padding: 0 12px; color: var(--muted); border-radius: 10px; font-size: 12px; font-weight: 650; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(109,240,189,.11), rgba(109,240,189,.035)); }
.nav-item.active svg { color: var(--green); }
.nav-item.active > i { position: absolute; right: 0; width: 2px; height: 20px; background: var(--green); border-radius: 4px; box-shadow: 0 0 11px var(--green); }
.nav-item > small { margin-left: auto; color: #657083; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.nav-item.disabled { cursor: default; }
.nav-item.disabled small { margin-left: auto; color: #586172; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.nav-status b { margin-left: auto; color: var(--green); font-size: 9px; }
.sidebar-foot { display: grid; gap: 13px; margin-top: auto; }
.mini-safety { padding: 13px; background: var(--green-soft); border: 1px solid rgba(109,240,189,.12); border-radius: 11px; }
.mini-safety-head { display: flex; align-items: center; gap: 8px; }
.mini-safety-head strong { font-size: 10px; }
.mini-safety p { margin: 6px 0 0 15px; color: var(--muted); font-size: 8px; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 11px 8px 0; border-top: 1px solid var(--line-soft); }
.user-avatar { display: grid; width: 34px; height: 34px; place-items: center; color: var(--green); background: var(--green-soft); border: 1px solid rgba(109,240,189,.14); border-radius: 10px; font-size: 12px; font-weight: 850; }
.user-info { display: grid; min-width: 0; flex: 1; }
.user-info strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.user-info span { color: var(--muted-2); font-size: 9px; }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; color: var(--muted-2); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.icon-button:hover { color: var(--red); background: var(--red-soft); }
.icon-button svg { width: 16px; height: 16px; }

.workspace { min-width: 0; }
.topbar { display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(9,11,16,.82); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.breadcrumb span, .breadcrumb i { color: var(--muted-2); font-style: normal; }
.topbar-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.topbar-status b { color: var(--green); }
.poll-status small { min-width: 72px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.poll-status.is-refreshing b { color: var(--amber); }
.poll-status.is-refreshing .live-dot { background: var(--amber); box-shadow: 0 0 11px rgba(246,189,102,.7); }
.poll-status.is-error b { color: var(--red); }
.poll-status.is-error .live-dot { background: var(--red); box-shadow: 0 0 11px rgba(255,113,133,.65); }
.workspace-content { width: min(1440px, 100%); margin: 0 auto; padding: 34px clamp(24px, 3vw, 46px) 28px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.heading-line { display: flex; align-items: center; gap: 13px; }
.page-heading h1 { margin: 0; font-size: clamp(29px, 3vw, 38px); line-height: 1.15; letter-spacing: -.04em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.phase-badge { padding: 4px 8px; color: var(--violet); background: rgba(155,135,255,.09); border: 1px solid rgba(155,135,255,.14); border-radius: 6px; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.read-only-seal { display: flex; min-width: 230px; align-items: center; gap: 11px; padding: 11px 14px; background: var(--green-soft); border: 1px solid rgba(109,240,189,.13); border-radius: 12px; }
.read-only-seal svg { width: 22px; height: 22px; color: var(--green); }
.read-only-seal div { display: grid; }
.read-only-seal strong { font-size: 10px; }
.read-only-seal span { margin-top: 2px; color: var(--muted); font-size: 8px; }

.flash { margin: 0 0 16px; padding: 12px 15px; border-radius: 10px; font-size: 12px; }
.flash-success { color: var(--green); background: var(--green-soft); border: 1px solid rgba(109,240,189,.18); }
.flash-error { color: var(--red); background: var(--red-soft); border: 1px solid rgba(255,113,133,.18); }

/* Add form */
.add-panel { padding: 19px 20px 0; background: linear-gradient(135deg, rgba(18,23,32,.98), rgba(13,17,24,.98)); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 20px 55px rgba(0,0,0,.14); }
.panel-title { display: flex; align-items: center; gap: 11px; }
.panel-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--green); background: var(--green-soft); border: 1px solid rgba(109,240,189,.12); border-radius: 9px; }
.panel-icon svg { width: 17px; height: 17px; }
.panel-title h2 { margin: 0; font-size: 14px; }
.panel-title p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.add-form { display: grid; grid-template-columns: minmax(320px, 1.65fr) minmax(190px, .75fr) auto; gap: 11px; align-items: end; margin-top: 17px; }
.input-wrap.compact { height: 43px; background: #0c1016; border-radius: 9px; }
.input-wrap.compact svg { width: 15px; height: 15px; }
.add-button { height: 43px; white-space: nowrap; }
.panel-foot { display: flex; height: 44px; align-items: center; justify-content: space-between; margin-top: 16px; border-top: 1px solid var(--line-soft); }
.panel-foot > span { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 9px; }
.panel-foot svg { width: 13px; height: 13px; }
.panel-foot strong { color: var(--text); font-size: 10px; }
.panel-foot strong i { color: var(--muted-2); font-style: normal; font-weight: 500; }

/* Summary */
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 14px 0 22px; }
.summary-card { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.summary-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.summary-icon svg { width: 18px; height: 18px; }
.summary-icon.violet { color: var(--violet); background: rgba(155,135,255,.1); }
.summary-icon.green { color: var(--green); background: var(--green-soft); }
.summary-icon.blue { color: var(--blue); background: rgba(115,167,255,.1); }
.summary-icon.amber { color: var(--amber); background: rgba(246,189,102,.1); }
.summary-card > div:last-child { display: grid; min-width: 0; }
.summary-card span { color: var(--muted); font-size: 9px; }
.summary-card strong { margin: 1px 0; overflow: hidden; font-size: 23px; line-height: 1.15; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.summary-card strong.summary-text { font-size: 15px; letter-spacing: -.02em; }
.summary-card strong b { margin-left: 2px; color: var(--muted); font-size: 10px; }
.summary-card small { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 8px; }
.summary-card small .live-dot { width: 5px; height: 5px; }

/* Empty state */
.empty-state { padding: clamp(46px, 7vw, 78px) 24px 48px; text-align: center; background: linear-gradient(180deg, rgba(17,21,30,.72), rgba(11,14,20,.72)); border: 1px dashed #2a3341; border-radius: var(--radius-lg); }
.empty-visual { position: relative; display: grid; width: 116px; height: 116px; margin: 0 auto 18px; place-items: center; }
.empty-icon { display: grid; width: 54px; height: 54px; z-index: 2; place-items: center; color: var(--green); background: var(--green-soft); border: 1px solid rgba(109,240,189,.22); border-radius: 18px; box-shadow: 0 0 38px rgba(109,240,189,.1); }
.empty-icon svg { width: 26px; height: 26px; }
.orbit { position: absolute; border: 1px solid rgba(109,240,189,.1); border-radius: 50%; }
.orbit-one { width: 82px; height: 82px; }
.orbit-two { width: 112px; height: 112px; border-style: dashed; }
.empty-state h2 { margin: 9px 0 7px; font-size: 21px; letter-spacing: -.025em; }
.empty-state > p { width: min(560px, 100%); margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.8; }
.empty-steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 25px; color: var(--muted-2); font-size: 9px; }
.empty-steps span { display: flex; align-items: center; gap: 6px; }
.empty-steps b { display: grid; width: 19px; height: 19px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: 8px; }
.empty-steps i { width: 27px; height: 1px; background: var(--line); }

/* Accounts */
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 28px 1px 11px; }
.section-heading > div { display: flex; align-items: center; gap: 9px; }
.section-heading h2 { margin: 0; font-size: 15px; }
.section-heading > div > span { padding: 3px 7px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; font-size: 8px; }
.section-heading p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 9px; }
.accounts-grid { display: grid; gap: 14px; }
.account-card { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 48px rgba(0,0,0,.13); }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.account-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.wallet-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--blue); background: rgba(115,167,255,.1); border-radius: 10px; }
.wallet-avatar svg { width: 19px; height: 19px; }
.account-title-row { display: flex; align-items: center; gap: 8px; }
.account-title-row h2 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.address { display: flex; align-items: center; gap: 9px; margin-top: 3px; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.address small { padding-left: 9px; color: var(--muted-2); border-left: 1px solid var(--line); font: 8px/1.3 Inter, sans-serif; }
.account-actions { display: flex; align-items: center; gap: 3px; }
.account-actions form { margin: 0; }
.text-button { display: flex; height: 30px; align-items: center; gap: 5px; padding: 0 8px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 9px; cursor: pointer; }
.text-button svg { width: 13px; height: 13px; }
.text-button:hover { color: var(--text); background: rgba(255,255,255,.045); }
.text-button.danger:hover { color: var(--red); background: var(--red-soft); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 20px; font-size: 8px; font-weight: 750; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-healthy { color: var(--green); background: var(--green-soft); }
.status-stale, .status-pending { color: var(--amber); background: rgba(246,189,102,.1); }
.status-error { color: var(--red); background: var(--red-soft); }
.status-paused { color: var(--muted); background: rgba(140,150,168,.1); }
.inline-error { margin: 12px 18px 0; padding: 9px 11px; overflow: hidden; color: var(--red); background: var(--red-soft); border-radius: 8px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0 18px; background: var(--line-soft); }
.metric-grid div { display: grid; padding: 15px 14px; background: var(--panel); }
.metric-grid span { color: var(--muted); font-size: 9px; }
.metric-grid strong { margin-top: 3px; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.metric-grid small { margin-top: 3px; color: #4d5767; font-size: 7px; letter-spacing: .1em; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-soft); }
table { width: 100%; min-width: 980px; border-collapse: collapse; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted-2); background: #0e1219; font-size: 8px; font-weight: 650; letter-spacing: .05em; }
td { color: #cbd2dc; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.016); }
.coin { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; }
.coin-icon { display: grid; width: 24px; height: 24px; place-items: center; color: #0a1010; background: linear-gradient(145deg, #86f6cc, #50dba7); border-radius: 7px; font-size: 9px; }
.side { display: inline-flex; min-width: 25px; justify-content: center; padding: 2px 5px; border-radius: 5px; font-size: 8px; font-weight: 850; }
.side.long { color: var(--green); background: var(--green-soft); }
.side.short { color: var(--red); background: var(--red-soft); }
.positive { color: var(--green); }
.negative { color: var(--red); }
.no-positions { padding: 26px; color: var(--muted); text-align: center !important; }
.account-footer { display: flex; align-items: center; justify-content: space-between; padding: 9px 18px; color: var(--muted-2); background: #0e1219; border-top: 1px solid var(--line-soft); font-size: 8px; }
.account-footer span { display: flex; align-items: center; gap: 5px; }
.account-footer svg { width: 11px; height: 11px; }
.page-foot { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 27px; color: #4d5765; font-size: 8px; }
.page-foot i { width: 3px; height: 3px; background: #4d5765; border-radius: 50%; }

/* Portfolio workspace */
.account-switcher {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  margin: 15px 0 18px;
  padding: 10px 12px;
  overflow: hidden;
  background: rgba(17,21,30,.72);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.account-switcher-label { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 7px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .05em; }
.account-switcher-label .live-dot { width: 5px; height: 5px; }
.account-switcher-list { display: flex; min-width: 0; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.account-switcher-list, .overview-table-wrap, .order-group-list, .detail-tabs, .table-wrap, .overview-actions { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.account-chip { display: flex; min-width: 150px; align-items: center; gap: 8px; padding: 7px 10px; color: var(--muted); border: 1px solid transparent; border-radius: 9px; transition: .18s ease; }
.account-chip:hover { color: var(--text); background: rgba(255,255,255,.025); }
.account-chip.active { color: var(--text); background: var(--green-soft); border-color: rgba(109,240,189,.16); box-shadow: inset 0 0 22px rgba(109,240,189,.025); }
.chip-avatar { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; color: var(--blue); background: rgba(115,167,255,.1); border-radius: 8px; font-size: 10px; font-weight: 850; }
.account-chip.active .chip-avatar { color: #08130f; background: var(--green); }
.account-chip > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.account-chip strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-chip small { color: var(--muted-2); font: 7px ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; background: var(--muted-2); border-radius: 50%; }
.status-dot-healthy { background: var(--green); box-shadow: 0 0 10px rgba(109,240,189,.65); }
.status-dot-stale, .status-dot-pending { background: var(--amber); }
.status-dot-error { background: var(--red); }

.account-overview-head { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; padding: 0 2px; }
.overview-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.overview-avatar { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; color: #08130f; background: linear-gradient(145deg, #7cf6c8, #43d9a2); border-radius: 13px; box-shadow: 0 10px 28px rgba(69,217,164,.12); font-size: 15px; font-weight: 900; }
.overview-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.overview-title-row h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.inline-sync-time { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline-sync-time i { width: 5px; height: 5px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px rgba(109,240,189,.5); }
.full-address { display: flex; min-width: 0; align-items: center; gap: 6px; margin-top: 3px; color: var(--muted); }
.full-address code { overflow: hidden; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.copy-address { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; color: var(--muted-2); background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.copy-address:hover, .copy-address.copied { color: var(--green); background: var(--green-soft); }
.copy-address svg { width: 13px; height: 13px; }
.overview-actions { flex: 0 0 auto; }

.portfolio-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 11px; }
.portfolio-kpi { position: relative; display: flex; min-width: 0; min-height: 118px; align-items: center; justify-content: space-between; gap: 9px; overflow: hidden; padding: 17px 18px; background: linear-gradient(135deg, rgba(19,24,33,.98), rgba(14,18,25,.98)); border: 1px solid var(--line); border-radius: 15px; }
.portfolio-kpi::after { position: absolute; width: 110px; height: 110px; right: -54px; bottom: -72px; background: rgba(115,167,255,.035); border-radius: 50%; content: ""; }
.portfolio-kpi:nth-child(2)::after { background: rgba(109,240,189,.04); }
.portfolio-kpi:nth-child(3)::after { background: rgba(246,189,102,.04); }
.kpi-copy { display: grid; min-width: 0; z-index: 1; }
.kpi-copy > span { color: var(--muted); font-size: 9px; }
.kpi-copy > strong { margin: 4px 0 5px; overflow: hidden; font-size: clamp(16px, 1.55vw, 23px); font-variant-numeric: tabular-nums; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.kpi-copy > small { color: var(--muted-2); font-size: 8px; }
.kpi-copy > small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.metric-dot { display: inline-block; width: 5px; height: 5px; margin-left: 2px; border-radius: 50%; }
.metric-dot.perp { background: var(--violet); }
.metric-dot.spot { background: var(--blue); }
.ring-chart { width: 62px; height: 62px; flex: 0 0 auto; overflow: visible; transform: rotate(-90deg); }
.ring-track, .ring-value { fill: none; stroke-width: 8; }
.ring-track { stroke: #2a303a; }
.ring-value { stroke-linecap: round; }
.ring-blue { stroke: var(--blue); }
.ring-green { stroke: var(--green); }
.ring-amber { stroke: var(--amber); }
.performance-kpi { background: linear-gradient(135deg, rgba(19,24,33,.98), rgba(20,18,29,.98)); }
.performance-meta { display: grid; width: 57px; height: 57px; z-index: 1; flex: 0 0 auto; place-items: center; align-content: center; background: rgba(155,135,255,.09); border: 1px solid rgba(155,135,255,.13); border-radius: 50%; }
.performance-meta span { color: var(--violet); font-size: 18px; font-weight: 850; line-height: 1; }
.performance-meta small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.performance-breakdown { display: grid; z-index: 1; flex: 0 0 auto; grid-template-columns: repeat(2, 1fr); gap: 9px; text-align: center; }
.performance-breakdown div { display: grid; min-width: 43px; padding: 8px 6px; background: rgba(155,135,255,.07); border: 1px solid rgba(155,135,255,.1); border-radius: 9px; }
.performance-breakdown span { color: var(--violet); font-size: 11px; font-weight: 800; }
.performance-breakdown small { color: var(--muted-2); font-size: 6px; }

.analytics-grid { display: grid; grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); gap: 11px; margin-bottom: 11px; }
.risk-card, .history-card, .detail-card { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.risk-card { padding: 18px; }
.history-card { min-width: 0; padding: 18px 20px 14px; overflow: hidden; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-header h3 { margin: 3px 0 0; font-size: 13px; }
.card-kicker { color: var(--green); font-size: 7px; font-weight: 850; letter-spacing: .16em; }
.read-only-tag { padding: 4px 7px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); border-radius: 6px; font-size: 7px; }
.risk-total { display: grid; margin: 22px 0 18px; }
.risk-total span, .risk-row span { color: var(--muted); font-size: 9px; }
.risk-total strong { margin-top: 3px; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.risk-block { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.risk-row, .direction-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.risk-row strong { font-size: 10px; }
.risk-progress, .direction-progress { display: block; width: 100%; height: 7px; margin-top: 9px; overflow: hidden; appearance: none; background: #292f38; border: 0; border-radius: 20px; }
.risk-progress::-webkit-progress-bar, .direction-progress::-webkit-progress-bar { background: #292f38; border-radius: 20px; }
.risk-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--green-deep), #62eac4); border-radius: 20px; }
.risk-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--green-deep), #62eac4); border-radius: 20px; }
.direction-label { margin-top: 11px; color: var(--muted-2); font-size: 8px; }
.direction-label span:first-child { color: var(--green); }
.direction-label span:last-child { color: var(--red); }
.direction-progress { background: var(--red); }
.direction-progress::-webkit-progress-bar { background: var(--red); }
.direction-progress::-webkit-progress-value { background: var(--green); border-radius: 20px 0 0 20px; }
.direction-progress::-moz-progress-bar { background: var(--green); border-radius: 20px 0 0 20px; }
.distribution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.distribution-grid div { display: grid; min-width: 0; }
.distribution-grid span { color: var(--muted-2); font-size: 8px; }
.distribution-grid strong { margin-top: 2px; overflow: hidden; font-size: 11px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; }

.history-head { align-items: center; }
.history-tools { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.chart-filter { display: flex; padding: 3px; background: #0a0e14; border: 1px solid var(--line-soft); border-radius: 8px; }
.chart-filter a { padding: 4px 7px; color: var(--muted-2); border-radius: 6px; font-size: 7px; font-weight: 700; white-space: nowrap; }
.chart-filter a:hover { color: var(--text); }
.chart-filter a.active { color: #07130f; background: var(--green); }
.history-change { display: grid; text-align: right; }
.history-change span { color: var(--muted-2); font-size: 7px; }
.history-change strong { margin-top: 1px; font-size: 17px; font-variant-numeric: tabular-nums; }
.history-change small { color: var(--muted); font-size: 8px; }
.chart-wrap { position: relative; min-height: 255px; margin-top: 16px; padding: 6px 54px 24px 0; }
.chart-scale { position: absolute; z-index: 2; top: 13px; right: 0; bottom: 29px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font-size: 7px; font-variant-numeric: tabular-nums; }
.equity-chart { display: block; width: 100%; height: 225px; overflow: visible; }
.equity-chart .grid-line { stroke: rgba(255,255,255,.075); stroke-width: 1; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.equity-chart .equity-area { fill: url(#equity-fill); stroke: none; }
.equity-chart .equity-line { fill: none; stroke: url(#equity-line-color); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(32,215,128,.2)); }
.equity-chart .zero-line { stroke: rgba(255,255,255,.24); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.chart-time-axis { position: absolute; right: 54px; bottom: 0; left: 0; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 7px; }
.chart-empty { display: grid; min-height: 236px; place-items: center; align-content: center; color: var(--muted-2); text-align: center; }
.chart-empty svg { width: 30px; height: 30px; margin-bottom: 10px; color: #4b5667; }
.chart-empty strong { color: var(--muted); font-size: 11px; }
.chart-empty span { margin-top: 3px; font-size: 8px; }
.chart-disclaimer { margin: 6px 0 0; padding-top: 10px; color: #4e596a; border-top: 1px solid var(--line-soft); font-size: 7px; }

.detail-card { overflow: hidden; }
.detail-tabs { display: flex; min-width: 0; align-items: center; gap: 2px; padding: 0 16px; overflow-x: auto; background: #0e1219; border-bottom: 1px solid var(--line-soft); }
.detail-tab { position: relative; height: 50px; flex: 0 0 auto; padding: 0 13px; color: var(--muted); background: transparent; border: 0; font-size: 9px; font-weight: 750; cursor: pointer; }
.detail-tab::after { position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: transparent; border-radius: 3px 3px 0 0; content: ""; }
.detail-tab:hover { color: var(--text); }
.detail-tab.active { color: var(--text); }
.detail-tab.active::after { background: var(--green); box-shadow: 0 0 12px rgba(109,240,189,.35); }
.detail-tab span { margin-left: 3px; color: var(--muted-2); }
.detail-tab.active span { color: var(--green); }
.detail-tab-note { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--muted-2); font-size: 8px; white-space: nowrap; }
.detail-tab-note .live-dot { width: 5px; height: 5px; }
.tab-panel[hidden] { display: none; }
.positions-table-wrap, .sync-table-wrap { border-top: 0; }
.positions-table, .sync-table, .activity-table { min-width: 1080px; }
.positions-table { min-width: 1240px; }
.completed-trades-table { min-width: 1420px; }
.positions-table th, .sync-table th { height: 40px; background: #10141b; }
.positions-table td, .sync-table td, .activity-table td { padding-top: 14px; padding-bottom: 14px; }
.activity-table th { height: 40px; background: #10141b; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 16px; color: var(--muted-2); background: #0d1118; border-bottom: 1px solid var(--line-soft); font-size: 7px; }
.table-toolbar span:last-child { color: var(--muted); white-space: nowrap; }
.cell-progress { display: block; width: 82px; height: 4px; margin-top: 5px; appearance: none; background: #2a3039; border: 0; border-radius: 6px; }
.cell-progress::-webkit-progress-bar { background: #2a3039; border-radius: 6px; }
.cell-progress::-webkit-progress-value { background: var(--green); border-radius: 6px; }
.cell-progress::-moz-progress-bar { background: var(--green); border-radius: 6px; }
.coin-plain { color: var(--text); font-weight: 800; }
.order-status, .ledger-type { display: inline-flex; padding: 3px 7px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); border-radius: 20px; font-size: 7px; font-weight: 750; }
.status-filled, .status-triggered { color: var(--green); background: var(--green-soft); border-color: rgba(97,234,189,.12); }
.status-open { color: var(--blue); background: rgba(115,167,255,.09); border-color: rgba(115,167,255,.12); }
.status-rejected, .status-marginCanceled { color: var(--red); background: var(--red-soft); border-color: rgba(255,113,133,.12); }
.hash-cell, .destination-cell { display: inline-block; max-width: 180px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; vertical-align: middle; }
.detail-warning { padding: 9px 16px; color: var(--amber); background: rgba(244,185,94,.06); border-top: 1px solid rgba(244,185,94,.12); font-size: 8px; }
.coin > span:last-child { display: grid; }
.coin small, .cell-sub { display: block; margin-top: 2px; color: var(--muted-2); font-size: 7px; font-weight: 500; }
.liquidation-cell { color: var(--amber); }
.leverage-tag { display: inline-flex; padding: 3px 6px; color: var(--amber); background: rgba(246,189,102,.08); border: 1px solid rgba(246,189,102,.12); border-radius: 5px; font-size: 8px; font-weight: 750; }
.run-status { display: inline-flex; padding: 3px 7px; border-radius: 20px; font-size: 7px; font-weight: 750; }
.run-success { color: var(--green); background: var(--green-soft); }
.run-error { color: var(--red); background: var(--red-soft); }
.sync-message { max-width: 340px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }

/* Multi-account monitoring overview */
.quick-add { margin-bottom: 16px; padding-bottom: 0; }
.quick-add > summary { padding-bottom: 18px; list-style: none; cursor: pointer; }
.quick-add > summary::-webkit-details-marker { display: none; }
.quick-add[open] > summary { padding-bottom: 0; }
.quick-add-toggle { margin-left: auto; padding: 5px 9px; color: var(--green); background: var(--green-soft); border: 1px solid rgba(52,226,141,.16); border-radius: 7px; font-size: 11px; font-weight: 750; }
.account-label-panel { margin-bottom: 16px; padding-bottom: 0; }
.account-label-panel > summary { padding-bottom: 18px; list-style: none; cursor: pointer; }
.account-label-panel > summary::-webkit-details-marker { display: none; }
.account-label-panel[open] > summary { padding-bottom: 14px; }
.account-label-list { display: grid; margin: 0 -20px; border-top: 1px solid var(--line-soft); }
.account-label-row { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(230px, 1fr) minmax(180px, .62fr) auto; align-items: end; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.account-label-row:last-child { border-bottom: 0; }
.label-account-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.label-account-identity > span:last-child { display: grid; min-width: 0; }
.label-account-identity strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.label-account-identity code { margin-top: 3px; overflow: hidden; color: var(--muted-2); font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.label-edit-field { display: grid; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 700; }
.label-edit-field input { width: 100%; height: 38px; padding: 0 12px; color: var(--text); background: #0b0f15; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.label-edit-field input:focus { border-color: rgba(109,240,189,.55); box-shadow: 0 0 0 3px rgba(109,240,189,.07); }
.label-save-button { min-width: 88px; height: 38px; padding: 0 14px; }
.telegram-panel { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding: 16px 18px; background: linear-gradient(135deg, rgba(24,34,45,.98), rgba(12,18,25,.98)); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.telegram-panel.is-ready { border-color: rgba(72,190,255,.22); box-shadow: inset 0 0 38px rgba(72,190,255,.025); }
.telegram-panel-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; color: #58c8ff; background: rgba(72,190,255,.1); border: 1px solid rgba(72,190,255,.16); border-radius: 11px; }
.telegram-panel-icon svg { width: 20px; height: 20px; }
.telegram-panel-copy { display: grid; min-width: 0; flex: 1; }
.telegram-panel-copy h2 { margin: 2px 0 1px; font-size: 14px; }
.telegram-panel-copy p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.telegram-panel-copy p b { color: var(--amber); }
.telegram-panel-copy code { color: #a9cce0; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.telegram-test-button, .telegram-config-badge { display: inline-flex; height: 34px; flex: 0 0 auto; align-items: center; padding: 0 12px; color: #83d7ff; background: rgba(72,190,255,.08); border: 1px solid rgba(72,190,255,.18); border-radius: 8px; font-size: 9px; font-weight: 750; }
.telegram-test-button { cursor: pointer; }
.telegram-test-button:hover { color: #d8f3ff; background: rgba(72,190,255,.14); }
.telegram-config-badge { color: var(--muted); background: rgba(255,255,255,.025); border-color: var(--line); }
.telegram-toggle { display: flex; height: 38px; align-items: center; gap: 9px; padding: 0 10px; color: var(--muted); text-align: left; background: #0c1016; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.telegram-toggle > span:last-child { display: grid; min-width: 0; }
.telegram-toggle strong { color: var(--text); font-size: 9px; }
.telegram-toggle small { margin-top: 1px; overflow: hidden; color: var(--muted-2); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.telegram-toggle:disabled { opacity: .48; cursor: not-allowed; }
.telegram-switch { position: relative; width: 30px; height: 17px; flex: 0 0 auto; background: #2a313d; border-radius: 20px; transition: .18s ease; }
.telegram-switch i { position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; background: #8993a1; border-radius: 50%; transition: .18s ease; }
.telegram-toggle.is-on { border-color: rgba(72,190,255,.2); background: rgba(72,190,255,.055); }
.telegram-toggle.is-on .telegram-switch { background: #35bff5; }
.telegram-toggle.is-on .telegram-switch i { left: 16px; background: white; }
.text-button.telegram-on { color: #58c8ff; background: rgba(72,190,255,.07); }
.text-button:disabled { opacity: .42; cursor: not-allowed; }
.home-core-state { margin-bottom: 14px; overflow: hidden; background: linear-gradient(135deg,rgba(16,24,32,.99),rgba(10,15,21,.99)); border: 1px solid var(--line); border-radius: 16px; }
.home-core-state > header { display: flex; min-height: 64px; padding: 13px 17px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line-soft); }
.home-core-state > header h2 { margin: 2px 0 0; font-size: 17px; }
.home-core-state > header a { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 800; }
.home-core-state > header a span { font-size: 16px; }
.home-core-state-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 11px; }
.home-core-state-grid article { display: grid; min-width: 0; min-height: 122px; padding: 13px 14px; align-content: space-between; gap: 10px; background: #0a1016; border: 1px solid var(--line-soft); border-left: 3px solid #64748b; border-radius: 11px; }
.home-core-state-grid article.is-bullish { border-left-color: var(--green); background: linear-gradient(130deg,rgba(52,226,141,.075),#0a1016 58%); }
.home-core-state-grid article.is-bearish { border-left-color: var(--red); background: linear-gradient(130deg,rgba(255,100,120,.075),#0a1016 58%); }
.home-core-state-grid article.is-diverging { border-left-color: var(--amber); background: linear-gradient(130deg,rgba(246,193,95,.07),#0a1016 58%); }
.home-core-state-grid article.is-neutral, .home-core-state-grid article.is-watching { border-left-color: var(--blue); }
.home-core-state-heading, .home-core-state-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-core-state-heading > b { padding: 4px 8px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); border-radius: 99px; font-size: 9px; }
.is-bullish .home-core-state-heading > b { color: var(--green); border-color: rgba(52,226,141,.24); }
.is-bearish .home-core-state-heading > b { color: var(--red); border-color: rgba(255,100,120,.24); }
.is-diverging .home-core-state-heading > b { color: var(--amber); border-color: rgba(246,193,95,.24); }
.home-core-coin { display: flex; align-items: center; gap: 8px; }
.home-core-coin i { display: grid; width: 29px; height: 29px; place-items: center; color: #07120d; background: linear-gradient(135deg,#49efab,#32c98d); border-radius: 9px; font-style: normal; font-weight: 950; }
.home-core-state-grid article:nth-child(2) .home-core-coin i { color: #eef4ff; background: linear-gradient(135deg,#718eea,#5368ba); }
.home-core-state-grid article p { margin: 0; overflow-wrap: anywhere; color: #e6edf3; line-height: 1.65; font-size: 11px; font-weight: 700; }
.home-core-state-grid footer { color: var(--muted); font-size: 9px; }
.home-core-state-grid footer small { color: var(--muted-2); }
.overview-home { display: grid; gap: 14px; }
.overview-home-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px; background: linear-gradient(130deg, rgba(18,25,31,.98), rgba(12,18,24,.98)); border: 1px solid var(--line); border-radius: 16px; }
.overview-home-head h2 { margin: 4px 0 1px; font-size: 22px; letter-spacing: -.025em; }
.overview-home-head p { margin: 0; color: var(--muted); font-size: 11px; }
.overview-live { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; padding: 10px 13px; background: rgba(52,226,141,.07); border: 1px solid rgba(52,226,141,.13); border-radius: 10px; }
.overview-live small { grid-column: 2; color: var(--muted-2); font-size: 10px; }
.overview-account-switcher { margin: 0; }
.today-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.today-stat-card { min-width: 0; padding: 16px 17px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.today-stat-card.positive { background: linear-gradient(140deg, rgba(18,30,28,.98), rgba(15,21,27,.98)); }
.today-stat-card.negative { background: linear-gradient(140deg, rgba(33,22,27,.98), rgba(16,20,26,.98)); }
.today-stat-title, .today-stat-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.today-stat-title span { color: var(--muted); font-size: 12px; }
.today-stat-title strong { color: var(--text); font-size: 12px; }
.today-stat-card.positive .today-stat-title strong { color: var(--green); }
.today-stat-card.negative .today-stat-title strong { color: var(--red); }
.today-stat-card.amber .today-stat-title strong { color: var(--amber); }
.today-stat-card.blue .today-stat-title strong { color: var(--blue); }
.today-stat-money { margin: 7px 0 8px; overflow: hidden; font-size: clamp(20px, 2vw, 27px); font-weight: 850; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.today-stat-meta { color: var(--muted-2); font-size: 10px; }
.today-stat-meta b { color: var(--muted); }
.overview-two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .55fr); gap: 14px; min-width: 0; }
.overview-panel { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.overview-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 68px; padding: 14px 17px; border-bottom: 1px solid var(--line-soft); }
.overview-panel-head h3 { margin: 2px 0 0; font-size: 16px; }
.overview-panel-head > span { color: var(--muted-2); font-size: 10px; }
.overview-table-wrap { overflow: auto; }
.overview-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.overview-table th { height: 42px; padding: 0 12px; text-align: left; white-space: nowrap; }
.overview-table td { padding: 13px 12px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.overview-table td > small, .account-cell small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.ranking-pnl-cell > strong { font-size: 12px; }
.ranking-pnl-cell .day-comparison { margin-top: 5px; padding-top: 5px; color: var(--muted); border-top: 1px dashed rgba(143,154,171,.16); }
.ranking-pnl-cell .day-comparison b { font-weight: 750; }
.ranking-pnl-cell .day-comparison i { margin-left: 6px; color: var(--muted-2); font-size: 8px; font-style: normal; }
.coin-summary-row { cursor: pointer; transition: background-color .16s ease; }
.coin-summary-row:hover, .coin-summary-row:focus-visible, .coin-summary-row[aria-expanded="true"] { background: rgba(109,240,189,.035); outline: 0; }
.coin-summary-row .coin small { display: flex; align-items: center; gap: 7px; }
.coin-row-chevron { display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .16s ease; }
.coin-summary-row[aria-expanded="true"] .coin-row-chevron { transform: rotate(225deg); }
.coin-contributors-row > td { padding: 0 !important; background: #0c1117; white-space: normal; }
.coin-contributor-list { display: grid; padding: 9px 12px 13px; border-top: 1px solid rgba(109,240,189,.14); animation: panel-reveal .16s ease-out; }
.coin-contributor { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(600px, 2fr) minmax(120px, .45fr); align-items: center; gap: 14px; padding: 12px 8px; border-top: 1px solid var(--line-soft); }
.coin-contributor:first-child { border-top: 0; }
.coin-contributor-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.coin-contributor-identity > span:last-child { display: grid; min-width: 0; }
.coin-contributor-identity strong, .coin-contributor-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-contributor-identity:hover strong { color: var(--green); }
.coin-contributor-identity small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.coin-contributor-actions { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 7px; }
.coin-address-action { display: grid; gap: 2px; padding: 8px 9px; background: rgba(255,255,255,.025); border: 1px solid var(--line-soft); border-radius: 8px; }
.coin-address-action span, .coin-address-action small { color: var(--muted-2); font-size: 9px; }
.coin-address-action strong { font-size: 10px; }
.coin-address-action.positive strong { color: var(--green); }
.coin-address-action.negative strong { color: var(--red); }
.coin-address-action.amber strong { color: var(--amber); }
.coin-address-action.blue strong { color: var(--blue); }
.coin-contributor-total { display: grid; justify-items: end; font-size: 13px; }
.coin-contributor-total small { margin-top: 2px; color: var(--muted-2); font-size: 9px; font-weight: 500; }
@keyframes panel-reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.account-cell { display: grid; }
.account-cell:hover strong { color: var(--green); }
.rank-number { display: grid; width: 27px; height: 27px; place-items: center; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 8px; font-size: 11px; font-weight: 850; }
.rank-1 { color: #171006; background: var(--amber); }
.rank-2 { color: #0e141a; background: #b9c5d3; }
.rank-3 { color: #160d07; background: #cd895e; }
.activity-stream { max-height: 560px; overflow-y: auto; }
.activity-event { padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.activity-event:first-child { border-top: 0; }
.activity-event-head, .activity-event-body { display: flex; align-items: center; gap: 10px; }
.activity-event-head { justify-content: space-between; margin-bottom: 10px; }
.activity-event-head a { display: grid; }
.activity-event-head a:hover strong { color: var(--green); }
.activity-event-head small, .activity-event-head time { color: var(--muted-2); font-size: 10px; }
.activity-event-body { display: grid; grid-template-columns: auto minmax(100px, 1fr) repeat(3, minmax(76px, auto)); }
.activity-event-body > div { display: grid; }
.activity-event-body small { color: var(--muted-2); font-size: 9px; }
.activity-event-body strong { font-size: 12px; }
.activity-event-body .side { width: fit-content; margin-top: 3px; }
.overview-empty { padding: 36px 20px; color: var(--muted-2); text-align: center; }
.orders-head { flex-wrap: wrap; }
.orders-kpis { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.orders-kpis span { padding: 6px 9px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); border-radius: 8px; font-size: 10px; }
.order-group { border-top: 1px solid var(--line-soft); }
.order-group:first-child { border-top: 0; }
.order-group > summary, .order-address > summary { display: grid; align-items: center; list-style: none; cursor: pointer; }
.order-group > summary::-webkit-details-marker, .order-address > summary::-webkit-details-marker { display: none; }
.order-group > summary { grid-template-columns: auto minmax(220px, 1.2fr) repeat(4, minmax(120px, .75fr)) auto; gap: 14px; padding: 16px 17px; }
.order-group > summary:hover { background: rgba(255,255,255,.018); }
.order-group-name { display: grid; }
.order-group-name small, .order-group > summary > span:not(.order-group-name) small { display: block; color: var(--muted-2); font-size: 10px; }
.order-group > summary > span:not(.order-group-name) strong { display: block; margin-top: 2px; font-size: 13px; }
.order-group summary > i { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: .15s ease; }
.order-group[open] > summary > i, .order-address[open] > summary > i { transform: rotate(225deg); }
.order-address-list { padding: 0 14px 14px; }
.order-address { margin-top: 7px; overflow: hidden; background: #0d1218; border: 1px solid var(--line-soft); border-radius: 10px; }
.order-address > summary { grid-template-columns: minmax(190px, 1fr) repeat(4, minmax(105px, auto)) auto; gap: 13px; padding: 12px 13px; color: var(--muted); font-size: 11px; }
.order-address > summary a { display: grid; }
.order-address > summary a:hover strong { color: var(--green); }
.order-address > summary small { color: var(--muted-2); font-size: 9px; }
.raw-order-list { border-top: 1px solid var(--line-soft); }
.raw-order-list > div { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)) 1.2fr 1fr 1fr; gap: 12px; padding: 10px 13px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.05); font-size: 10px; }
.raw-order-list > div:first-child { border-top: 0; }
.raw-order-list code { color: var(--muted-2); }
.orders-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 16px; color: var(--muted-2); border-top: 1px solid var(--line-soft); font-size: 10px; }

/* Hyperbot-inspired readability pass: keep dense data, but never rely on 6–9px text. */
.brand strong { font-size: 20px; }
.brand small { font-size: 10px; color: var(--muted-2); }
.nav-label { color: var(--muted-2); font-size: 11px; }
.nav-item { height: 50px; color: var(--muted); font-size: 14px; }
.nav-item > small { font-size: 9px; }
.nav-status b { font-size: 11px; }
.mini-safety-head strong { font-size: 12px; }
.mini-safety p { font-size: 10px; }
.user-info strong { font-size: 13px; }
.user-info span { font-size: 11px; }
.breadcrumb { font-size: 13px; }
.topbar-status { font-size: 12px; }
.page-heading p { font-size: 14px; }
.phase-badge { font-size: 10px; }
.read-only-seal strong { font-size: 12px; }
.read-only-seal span { font-size: 10px; }
.panel-title h2 { font-size: 16px; }
.panel-title p { font-size: 11px; }
.panel-foot > span, .panel-foot strong { font-size: 11px; }
.summary-card span { font-size: 12px; }
.summary-card strong { font-size: 25px; }
.summary-card strong.summary-text { font-size: 17px; }
.summary-card strong b, .summary-card small { font-size: 11px; }
.section-heading h2 { font-size: 17px; }
.section-heading > div > span { font-size: 10px; }
.section-heading p { font-size: 11px; }
.account-title-row h2 { font-size: 16px; }
.address { font-size: 11px; }
.address small { font-size: 10px; }
.text-button { font-size: 11px; }
.status { font-size: 10px; }
.inline-error { font-size: 11px; }
.metric-grid span { font-size: 12px; }
.metric-grid strong { font-size: 20px; }
.metric-grid small { color: var(--muted-2); font-size: 10px; }
th { color: var(--muted); background: #141a22; font-size: 12px; }
td { color: rgba(255,255,255,.86); font-size: 14px; }
.account-footer, .page-foot { font-size: 10px; }
.account-switcher-label { font-size: 11px; }
.account-chip strong { font-size: 12px; }
.account-chip small { font-size: 10px; }
.overview-title-row h2 { font-size: 19px; }
.kpi-copy > span { font-size: 12px; }
.kpi-copy > strong { font-size: clamp(20px, 1.7vw, 26px); }
.kpi-copy > small { font-size: 10px; }
.performance-meta span { font-size: 20px; }
.performance-meta small { font-size: 10px; }
.performance-breakdown span { font-size: 13px; }
.performance-breakdown small { font-size: 9px; }
.card-header h3 { font-size: 16px; }
.card-kicker, .read-only-tag { font-size: 10px; }
.risk-total span, .risk-row span { font-size: 12px; }
.risk-total strong { font-size: 26px; }
.risk-row strong { font-size: 13px; }
.direction-label { font-size: 11px; }
.distribution-grid span { font-size: 10px; }
.distribution-grid strong { font-size: 13px; }
.chart-filter a { padding: 6px 9px; font-size: 10px; }
.history-change span { font-size: 10px; }
.history-change strong { font-size: 20px; }
.history-change small { font-size: 10px; }
.chart-scale, .chart-time-axis { font-size: 10px; }
.chart-empty strong { font-size: 13px; }
.chart-empty span, .chart-disclaimer { font-size: 10px; }
.detail-tabs { background: #121820; }
.detail-tab { height: 56px; font-size: 13px; }
.detail-tab-note { font-size: 10px; }
.positions-table th, .sync-table th, .activity-table th { height: 46px; background: #141a22; }
.positions-table td, .sync-table td, .activity-table td { padding-top: 16px; padding-bottom: 16px; }
.table-toolbar { padding-block: 11px; background: #10151c; font-size: 10px; }
.order-status, .ledger-type, .run-status { font-size: 10px; }
.hash-cell, .destination-cell { font-size: 10px; }
.detail-warning { font-size: 11px; }
.coin small, .cell-sub { font-size: 10px; }
.leverage-tag { font-size: 10px; }
.field > span { font-size: 13px; }
.auth-divider { font-size: 11px; }
.security-list div, .auth-note { font-size: 12px; }

@media (max-width: 1180px) {
  .app-frame { grid-template-columns: 220px minmax(0, 1fr); }
  .add-form { grid-template-columns: minmax(300px, 1.3fr) minmax(170px, .7fr); }
  .add-button { grid-column: 1 / -1; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .today-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-two-column { grid-template-columns: 1fr; }
  .activity-stream { max-height: 460px; }
  .order-group > summary { grid-template-columns: auto minmax(180px, 1fr) repeat(3, minmax(110px, .7fr)) auto; }
  .order-group > summary > span:nth-of-type(5) { display: none; }
}

@media (max-width: 920px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-panel { padding: 38px 24px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
  .mobile-brand .brand-mark { width: 38px; height: 38px; }
  .mobile-brand strong { font-size: 16px; }

  .app-frame { display: block; }
  .sidebar { position: static; height: auto; padding: 14px 18px; flex-direction: row; align-items: center; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .sidebar > .brand { padding: 0; }
  .sidebar .brand small { display: none; }
  .side-nav { display: flex; min-width: 0; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav .nav-item { flex: 0 0 auto; }
  .nav-label, .nav-item.disabled, .nav-status, .mini-safety { display: none; }
  .nav-item { height: 38px; padding: 0 11px; }
  .nav-item.active > i { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; }
  .user-row { padding: 0; border: 0; }
  .user-info { display: none; }
  .topbar { display: none; }
  .workspace-content { padding-top: 28px; }
  .account-overview-head { align-items: flex-start; flex-direction: column; }
  .overview-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 700px) {
  .workspace-content { padding: 22px 15px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .read-only-seal { width: 100%; }
  .add-form { grid-template-columns: 1fr; }
  .add-button { grid-column: auto; }
  .summary-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-foot { gap: 15px; }
  .panel-foot > span { max-width: 75%; }
  .account-label-row { grid-template-columns: 1fr; align-items: stretch; }
  .label-save-button { width: 100%; }
  .telegram-panel { align-items: flex-start; flex-wrap: wrap; }
  .telegram-panel-copy { min-width: calc(100% - 54px); }
  .telegram-panel form, .telegram-test-button, .telegram-config-badge { width: 100%; }
  .telegram-test-button, .telegram-config-badge { justify-content: center; }
  .account-head { align-items: flex-start; flex-direction: column; }
  .account-actions { width: 100%; justify-content: flex-end; }
  .empty-steps { gap: 7px; }
  .empty-steps i { width: 12px; }
  .account-switcher { align-items: flex-start; flex-direction: column; }
  .account-switcher-list { width: 100%; }
  .portfolio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-kpi { min-height: 105px; padding: 14px; }
  .ring-chart { width: 49px; height: 49px; }
  .history-card { padding-inline: 15px; }
  .history-head { align-items: flex-start; flex-direction: column; }
  .history-tools { width: 100%; justify-content: flex-start; }
  .history-change { margin-left: auto; }
  .chart-wrap { min-height: 210px; padding-right: 44px; }
  .equity-chart { height: 180px; }
  .chart-time-axis { right: 44px; }
  .detail-tabs { padding-inline: 7px; }
  .detail-tab-note { display: none; }
  .table-toolbar { align-items: flex-start; flex-direction: column; gap: 3px; }
  .overview-home-head { align-items: flex-start; flex-direction: column; }
  .home-core-state > header { align-items: flex-start; }
  .home-core-state-grid { grid-template-columns: 1fr; }
  .overview-live { width: 100%; }
  .today-summary-grid { grid-template-columns: 1fr; }
  .coin-contributor { grid-template-columns: minmax(155px, .7fr) minmax(560px, 2fr) minmax(110px, .4fr); }
  .overview-panel-head { align-items: flex-start; flex-direction: column; }
  .activity-event-body { grid-template-columns: auto 1fr 1fr; }
  .activity-event-body > div:nth-last-child(-n+2) { display: none; }
  .order-group-list { overflow-x: auto; }
  .order-group { min-width: 760px; }
  .orders-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .auth-card h2 { font-size: 34px; }
  .security-list { gap: 5px; }
  .security-list div { padding: 8px 4px; }
  .sidebar { gap: 10px; padding-inline: 13px; }
  .sidebar .brand > span:last-child { display: none; }
  .nav-item { padding: 0 9px; }
  .heading-line { align-items: flex-start; flex-direction: column; gap: 7px; }
  .summary-grid { gap: 8px; }
  .summary-card { align-items: flex-start; gap: 9px; padding: 13px 11px; }
  .summary-icon { width: 32px; height: 32px; }
  .summary-card strong { font-size: 20px; }
  .metric-grid { grid-template-columns: 1fr; }
  .empty-steps { display: grid; grid-template-columns: 1fr; justify-items: center; }
  .empty-steps i { width: 1px; height: 11px; }
  .address small { display: none; }
  .panel-foot > span { font-size: 8px; }
  .overview-identity { width: 100%; }
  .overview-title-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .overview-actions { justify-content: flex-start; overflow-x: auto; }
  .home-core-state > header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .home-core-state-grid footer { align-items: flex-start; flex-direction: column; gap: 2px; }
  .portfolio-kpis { grid-template-columns: 1fr; }
  .portfolio-kpi { min-height: 96px; }
  .kpi-copy > strong { font-size: 21px; }
  .risk-card { padding: 15px; }
  .history-head { align-items: flex-start; }
  .history-tools { display: grid; grid-template-columns: 1fr; }
  .history-change { margin-left: 0; text-align: left; }
  .history-change strong { font-size: 14px; }
  .chart-scale { display: none; }
  .chart-wrap { padding-right: 0; }
  .chart-time-axis { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* BSC exchange-flow radar */
.cex-page-content { max-width: 1700px; }
.secondary-button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #17202a;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
}
.secondary-button:hover { color: var(--green); border-color: rgba(52, 226, 141, .45); }
.secondary-button:disabled, .tiny-action:disabled { opacity: .42; cursor: not-allowed; }
.cex-setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.cex-setup-card {
  padding: 20px;
  background: linear-gradient(145deg, rgba(19, 27, 35, .98), rgba(13, 18, 24, .98));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cex-setup-card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.cex-setup-card h2 { margin: 0; font-size: 17px; }
.cex-setup-card p { margin: 2px 0 0; color: var(--muted-2); font-size: 12px; }
.setup-step {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  color: #06130e;
  background: linear-gradient(145deg, #79f4c5, #38d99d);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
}
.cex-token-form { display: grid; grid-template-columns: minmax(260px, 1fr) 110px 82px auto; gap: 9px; align-items: end; }
.cex-token-form label { display: grid; gap: 6px; }
.cex-token-form label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.cex-token-form input, .manual-address-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  background: #0c1117;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.cex-token-form input:focus, .manual-address-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.cex-token-form .primary-button { min-height: 40px; padding-inline: 16px; }
.cex-address-status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.cex-address-status span { display: flex; min-height: 42px; padding: 7px 10px; align-items: baseline; gap: 6px; color: var(--muted); background: #0c1117; border: 1px solid var(--line-soft); border-radius: 9px; font-size: 11px; }
.cex-address-status strong { color: var(--green); font-size: 18px; }
.cex-address-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; }
.manual-address-form { display: grid; grid-template-columns: 130px minmax(210px, 1fr) auto; gap: 8px; }
.auto-discovery-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(360px, 1fr) auto;
  gap: 14px 20px;
  margin-bottom: 14px;
  padding: 17px 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(24, 46, 41, .82), rgba(14, 20, 27, .96) 48%, rgba(22, 25, 37, .96));
  border: 1px solid rgba(75, 230, 174, .28);
  border-radius: var(--radius-lg);
}
.auto-discovery-main { display: flex; min-width: 0; align-items: center; gap: 12px; }
.auto-mode-icon { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; color: #06130e; background: var(--green); border-radius: 12px; font-size: 15px; font-weight: 950; }
.auto-mode-title { display: flex; align-items: center; gap: 9px; }
.auto-mode-title h2 { margin: 0; font-size: 17px; }
.auto-mode-badge { padding: 4px 8px; color: var(--muted); background: #0c1117; border: 1px solid var(--line); border-radius: 99px; font-size: 9px; font-weight: 850; }
.auto-mode-badge.is-on { color: var(--green); background: var(--green-soft); border-color: rgba(52, 226, 141, .28); }
.auto-discovery-main p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.auto-discovery-stats { display: grid; grid-template-columns: repeat(4, minmax(74px, 1fr)); gap: 7px; }
.auto-discovery-stats span { display: grid; min-height: 52px; padding: 8px 10px; align-content: center; color: var(--muted-2); background: rgba(8, 13, 18, .65); border: 1px solid var(--line-soft); border-radius: 9px; font-size: 9px; }
.auto-discovery-stats strong { color: var(--green); font-size: 17px; }
.auto-discovery-rule { display: flex; grid-column: 1 / 3; flex-wrap: wrap; gap: 6px; }
.auto-discovery-rule span { padding: 5px 8px; color: var(--muted); background: rgba(8, 13, 18, .58); border: 1px solid var(--line-soft); border-radius: 99px; font-size: 9px; }
.auto-discovery-actions { display: flex; grid-column: 3; grid-row: 1 / 3; align-items: flex-end; flex-direction: column; gap: 7px; }
.auto-discovery-actions > span { max-width: 180px; color: var(--muted-2); font-size: 9px; text-align: right; }
.cex-toolbar {
  display: flex;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 9px 14px;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 22, 29, .82);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.cex-toolbar > div { display: flex; align-items: center; gap: 8px; }
.cex-toolbar small { color: var(--muted-2); }
.cex-dashboard-inner { display: grid; gap: 14px; }
.cex-config-warning { display: grid; gap: 3px; padding: 14px 16px; color: var(--amber); background: rgba(246, 193, 95, .08); border: 1px solid rgba(246, 193, 95, .32); border-radius: 13px; }
.cex-config-warning span { color: var(--muted); }
.cex-config-warning code { color: #f8d88f; }
.cex-config-warning.is-error { color: var(--red); background: var(--red-soft); border-color: rgba(255, 100, 120, .32); }
.cex-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cex-kpi-grid article {
  position: relative;
  display: grid;
  min-height: 118px;
  padding: 18px;
  align-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #121821, #0e1319);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cex-kpi-grid article::after { position: absolute; right: -34px; bottom: -62px; width: 120px; height: 120px; background: var(--green-soft); border-radius: 50%; content: ""; }
.cex-kpi-grid span { color: var(--muted); font-size: 12px; }
.cex-kpi-grid strong { margin: 5px 0 2px; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.cex-kpi-grid small { color: var(--muted-2); font-size: 10px; }
.cex-panel { overflow: hidden; background: #11161d; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cex-panel-head { display: flex; min-height: 72px; padding: 15px 18px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.cex-panel-head h2 { margin: 2px 0 0; font-size: 18px; }
.cex-panel-head > span { color: var(--muted-2); font-size: 11px; }
.cex-table-wrap { overflow: auto; scrollbar-color: #6b747e #151a20; scrollbar-width: thin; }
.cex-table { width: 100%; min-width: 1320px; border-collapse: collapse; white-space: nowrap; }
.cex-table th { padding: 12px 14px; color: var(--muted); background: #0f141a; font-size: 11px; text-align: left; }
.cex-table td { padding: 14px; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.cex-table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.token-cell { display: flex; align-items: center; gap: 10px; }
.token-cell > i { display: grid; width: 34px; height: 34px; place-items: center; color: #06130e; background: var(--green); border-radius: 10px; font-style: normal; font-weight: 900; }
.token-cell > span { display: grid; }
.token-cell code { color: var(--muted-2); font-size: 9px; }
.token-cell small { max-width: 235px; overflow: hidden; color: var(--muted-2); font-size: 8px; text-overflow: ellipsis; }
.token-origin { width: fit-content; margin: 2px 0; padding: 2px 5px; color: var(--muted); background: #0c1117; border: 1px solid var(--line-soft); border-radius: 99px; font-size: 8px; font-weight: 800; }
.token-origin.is-auto { color: var(--green); background: var(--green-soft); border-color: rgba(52, 226, 141, .2); }
.exchange-tags { display: flex; max-width: 210px; flex-wrap: wrap; gap: 4px; white-space: normal; }
.exchange-tags i { padding: 3px 7px; color: #b9d6ff; background: rgba(115, 167, 255, .09); border: 1px solid rgba(115, 167, 255, .16); border-radius: 99px; font-size: 9px; font-style: normal; }
.exchange-tags em { color: var(--muted-2); font-style: normal; }
.risk-badge, .direction-badge { display: inline-flex; min-height: 26px; padding: 0 9px; align-items: center; border: 1px solid var(--line); border-radius: 99px; font-size: 10px; font-weight: 800; }
.risk-red { color: #ff8b9a; background: rgba(255, 100, 120, .12); border-color: rgba(255, 100, 120, .35); }
.risk-orange { color: #ffad68; background: rgba(255, 151, 71, .12); border-color: rgba(255, 151, 71, .35); }
.risk-yellow { color: #f8d274; background: rgba(246, 193, 95, .1); border-color: rgba(246, 193, 95, .32); }
.risk-normal { color: var(--muted); }
.cex-row-actions { display: flex; align-items: center; gap: 4px; }
.tiny-action { min-height: 28px; padding: 0 8px; color: var(--muted); background: #0d1218; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 9px; }
.tiny-action:hover, .tiny-action.is-on { color: var(--green); border-color: rgba(52, 226, 141, .4); }
.tiny-action.danger:hover { color: var(--red); border-color: rgba(255, 100, 120, .4); }
.event-table { min-width: 1120px; }
.event-table-wrap { max-height: 480px; }
.direction-inflow { color: var(--red); background: var(--red-soft); border-color: rgba(255, 100, 120, .28); }
.direction-outflow { color: var(--green); background: var(--green-soft); border-color: rgba(52, 226, 141, .28); }
.direction-internal { color: var(--muted); }
.tx-link { color: var(--blue); font-weight: 700; }
.cex-evidence-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; align-items: center; color: var(--muted); background: #0e1319; border: 1px solid var(--line-soft); border-radius: 12px; font-size: 11px; }
.cex-evidence-note strong { color: var(--amber); }
.cex-evidence-note time { color: var(--muted-2); }

@media (max-width: 1280px) {
  .cex-setup-grid { grid-template-columns: 1fr; }
  .auto-discovery-card { grid-template-columns: 1fr; }
  .auto-discovery-rule, .auto-discovery-actions { grid-column: auto; grid-row: auto; }
  .auto-discovery-actions { align-items: flex-start; }
  .auto-discovery-actions > span { max-width: none; text-align: left; }
  .cex-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cex-token-form { grid-template-columns: 1fr 1fr; }
  .cex-token-form label:first-of-type, .cex-token-form .primary-button { grid-column: 1 / -1; }
  .cex-address-actions { grid-template-columns: 1fr; }
  .manual-address-form { grid-template-columns: 1fr; }
  .auto-discovery-card { padding: 15px; }
  .auto-discovery-stats { grid-template-columns: repeat(2, 1fr); }
  .cex-address-actions .secondary-button { width: 100%; }
  .cex-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .cex-toolbar > div { align-items: flex-start; flex-wrap: wrap; }
  .cex-toolbar small { width: 100%; padding-left: 15px; }
  .cex-kpi-grid { grid-template-columns: 1fr; }
  .cex-kpi-grid article { min-height: 100px; }
  .cex-panel-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .cex-evidence-note { grid-template-columns: 1fr; }
}

/* Automatic price-grid notification center */
.price-alert-page-content { max-width: 1700px; }
.price-rule-builder {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(520px, 1.2fr);
  gap: 20px;
  margin-bottom: 14px;
  padding: 20px;
  align-items: end;
  background: linear-gradient(135deg, rgba(22, 52, 43, .86), rgba(15, 21, 28, .98) 52%, rgba(23, 25, 39, .96));
  border: 1px solid rgba(52, 226, 141, .3);
  border-radius: var(--radius-lg);
}
.price-rule-copy { display: flex; align-items: center; gap: 13px; }
.price-rule-copy h2 { margin: 0; font-size: 18px; }
.price-rule-copy p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.price-rule-form { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(220px, 1fr) auto; gap: 10px; align-items: end; }
.price-rule-form label, .price-step-form label { display: grid; gap: 6px; }
.price-rule-form label > span, .price-step-form label > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.price-rule-form input, .price-step-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  background: #0c1117;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.price-rule-form input:focus, .price-step-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.price-rule-form .primary-button { min-height: 40px; padding-inline: 18px; }
.price-alert-dashboard-inner { display: grid; gap: 14px; }
.price-alert-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.price-alert-kpis article {
  display: grid;
  min-height: 105px;
  padding: 17px;
  align-content: center;
  background: linear-gradient(145deg, #121821, #0e1319);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.price-alert-kpis span { color: var(--muted); font-size: 11px; }
.price-alert-kpis strong { margin: 4px 0 2px; color: var(--green); font-size: 28px; }
.price-alert-kpis strong.price-kpi-time { color: var(--text); font-size: 14px; }
.price-alert-kpis small { color: var(--muted-2); font-size: 9px; }
.price-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price-rule-card {
  display: grid;
  gap: 15px;
  padding: 18px;
  background: linear-gradient(145deg, #121820, #0e1319);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.price-rule-card.is-paused { opacity: .62; }
.price-rule-card > header { display: flex; align-items: center; gap: 11px; }
.price-symbol-mark { display: grid; width: 42px; height: 42px; place-items: center; color: #06130e; background: var(--green); border-radius: 12px; font-size: 17px; font-weight: 950; }
.price-rule-card > header h2 { margin: 0; font-size: 19px; }
.price-rule-card > header div > span { color: var(--muted-2); font-size: 9px; }
.price-rule-live { width: 8px; height: 8px; margin-left: auto; background: var(--muted-2); border-radius: 50%; }
.price-rule-live.is-on { background: var(--green); box-shadow: 0 0 12px rgba(52, 226, 141, .7); }
.price-now { display: grid; gap: 2px; }
.price-now span { color: var(--muted); font-size: 11px; }
.price-now strong { font-size: clamp(25px, 3vw, 38px); font-variant-numeric: tabular-nums; }
.price-grid-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.price-grid-levels > span { display: grid; padding: 10px 12px; background: #0c1117; border: 1px solid var(--line-soft); border-radius: 10px; }
.price-grid-levels small { color: var(--muted-2); font-size: 9px; }
.price-grid-levels strong { margin-top: 2px; color: var(--amber); font-size: 16px; }
.price-step-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.price-rule-error { margin: 0; padding: 8px 10px; color: var(--red); background: var(--red-soft); border-radius: 8px; font-size: 10px; }
.price-rule-card > footer { display: flex; align-items: center; gap: 5px; }
.price-rule-card > footer time { margin-left: auto; color: var(--muted-2); font-size: 9px; }
.price-history-table { min-width: 920px; }
.price-history-panel .cex-table-wrap { max-height: 430px; }
.btc-radar-panel {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 25, 34, .99), rgba(12, 17, 23, .99));
  border: 1px solid rgba(113, 163, 224, .28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.btc-radar-head { display: flex; min-height: 92px; padding: 18px 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.btc-radar-head h2 { margin: 3px 0; font-size: 20px; }
.btc-radar-head p { margin: 0; color: var(--muted); font-size: 11px; }
.btc-live-state { display: flex; padding: 9px 12px; align-items: center; gap: 9px; color: var(--muted); background: #0b1016; border: 1px solid var(--line); border-radius: 11px; }
.btc-live-state > i { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 12px rgba(246, 193, 95, .55); }
.btc-live-state.is-online > i { background: var(--green); box-shadow: 0 0 12px rgba(52, 226, 141, .7); }
.btc-live-state span { display: grid; }
.btc-live-state strong { font-size: 10px; }
.btc-live-state small { color: var(--muted-2); font-size: 8px; }
.btc-radar-error { margin: 12px 18px 0; padding: 9px 11px; color: var(--red); background: var(--red-soft); border: 1px solid rgba(255, 100, 120, .25); border-radius: 9px; font-size: 10px; }
.btc-radar-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 9px; padding: 14px 18px 9px; }
.btc-radar-grid article { display: grid; min-height: 86px; padding: 13px 14px; align-content: center; background: #0c1117; border: 1px solid var(--line-soft); border-radius: 11px; }
.btc-radar-grid span, .btc-context-grid small { color: var(--muted); font-size: 9px; }
.btc-radar-grid strong { margin: 3px 0; font-size: 22px; font-variant-numeric: tabular-nums; }
.btc-radar-grid strong.is-up { color: var(--green); }
.btc-radar-grid strong.is-down { color: var(--red); }
.btc-radar-grid small { color: var(--muted-2); font-size: 8px; }
.btc-price-tile strong { color: var(--text) !important; font-size: 27px !important; }
.btc-context-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; padding: 0 18px 12px; }
.btc-context-grid > span { display: grid; min-height: 55px; padding: 9px 10px; align-content: center; background: rgba(9, 14, 20, .68); border: 1px solid var(--line-soft); border-radius: 9px; }
.btc-context-grid strong { margin-top: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.btc-threshold-note { display: flex; padding: 10px 18px 14px; align-items: center; gap: 6px; }
.btc-threshold-note p { margin: 0 0 0 7px; color: var(--muted-2); font-size: 9px; }
.btc-event-wrap { max-height: 360px; border-top: 1px solid var(--line-soft); }
.btc-event-table { min-width: 1200px; }
.telegram-delivery-cell { min-width: 145px; }
.telegram-delivery-details { margin-top: 5px; max-width: 265px; color: #c7d5de; font-size: 12px; line-height: 1.45; }
.telegram-delivery-details summary { width: max-content; color: #9fc3e5; cursor: pointer; }
.telegram-delivery-details span { display: block; margin-top: 5px; overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .price-rule-builder { grid-template-columns: 1fr; }
  .price-alert-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btc-radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btc-context-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .price-rule-form { grid-template-columns: 1fr; }
  .price-rule-grid { grid-template-columns: 1fr; }
  .price-alert-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-rule-card > footer { flex-wrap: wrap; }
  .price-rule-card > footer time { width: 100%; margin: 5px 0 0; }
  .btc-radar-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .btc-live-state { width: 100%; }
  .btc-threshold-note { align-items: flex-start; flex-wrap: wrap; }
  .btc-threshold-note p { width: 100%; margin: 5px 0 0; }
}

@media (max-width: 480px) {
  .price-rule-builder { padding: 15px; }
  .price-alert-kpis { grid-template-columns: 1fr; }
  .price-alert-kpis article { min-height: 88px; }
  .price-grid-levels { grid-template-columns: 1fr; }
  .btc-radar-grid, .btc-context-grid { grid-template-columns: 1fr; }
}

/* HyperliquidRPC market microstructure console */
.micro-page-content { max-width: 1740px; }
.micro-dashboard-inner { display: grid; gap: 14px; }
.micro-warning {
  display: flex;
  padding: 14px 16px;
  align-items: center;
  gap: 12px;
  color: var(--amber);
  background: rgba(246, 193, 95, .09);
  border: 1px solid rgba(246, 193, 95, .28);
  border-radius: 12px;
}
.micro-warning span { color: var(--muted); font-size: 13px; }
.micro-warning code { color: var(--text); }
.micro-warning.is-error { color: var(--red); background: var(--red-soft); border-color: rgba(255, 100, 120, .3); }
.micro-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.micro-kpi-grid article {
  position: relative;
  display: grid;
  min-height: 112px;
  padding: 17px;
  align-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #121922, #0d1319);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.micro-kpi-grid article::after { content: ""; position: absolute; right: -38px; bottom: -52px; width: 115px; height: 115px; background: rgba(52, 226, 141, .09); border-radius: 50%; }
.micro-kpi-grid span { color: var(--muted); font-size: 12px; }
.micro-kpi-grid strong { margin: 5px 0 3px; color: var(--green); font-size: 30px; font-variant-numeric: tabular-nums; }
.micro-kpi-grid strong em { color: var(--muted); font-size: 13px; font-style: normal; }
.micro-kpi-grid small { color: var(--muted-2); font-size: 11px; }
.micro-usage { display: block; width: 100%; height: 5px; margin-top: 8px; overflow: hidden; background: #222b35; border-radius: 99px; }
.micro-usage-fill { fill: var(--green); }
.micro-stream-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.micro-stream-card { padding: 15px; background: #0e141b; border: 1px solid var(--line); border-radius: 14px; }
.micro-stream-card > header { display: flex; align-items: center; gap: 9px; }
.micro-stream-card > header .live-dot { background: var(--muted-2); box-shadow: none; }
.micro-stream-card.is-online > header .live-dot { background: var(--green); box-shadow: 0 0 12px rgba(52, 226, 141, .65); }
.micro-stream-card > header div { display: grid; }
.micro-stream-card > header strong { font-size: 15px; }
.micro-stream-card > header small { color: var(--muted-2); font-size: 10px; }
.micro-stream-card > header > b { margin-left: auto; color: var(--muted); font-size: 11px; }
.micro-stream-card.is-online > header > b { color: var(--green); }
.micro-stream-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 13px 0 10px; padding: 9px 0; background: #0a0f15; border: 1px solid var(--line-soft); border-radius: 9px; }
.micro-stream-card dl div { display: grid; padding: 0 10px; border-right: 1px solid var(--line-soft); }
.micro-stream-card dl div:last-child { border-right: 0; }
.micro-stream-card dt { color: var(--muted-2); font-size: 10px; }
.micro-stream-card dd { margin: 3px 0 0; color: var(--text); font-size: 14px; font-weight: 800; }
.micro-stream-card footer { min-height: 18px; color: var(--muted-2); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.micro-stream-card footer .is-error { color: var(--red); }
.micro-core-state { overflow: hidden; background: linear-gradient(145deg, rgba(15,24,32,.98), rgba(10,16,22,.98)); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.micro-core-state > header { display: flex; min-height: 76px; padding: 16px 18px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.micro-core-state > header h2 { margin: 4px 0 0; font-size: 21px; }
.micro-core-state > header p { max-width: 520px; margin: 0; color: var(--muted-2); font-size: 11px; text-align: right; }
.micro-core-state-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 14px; }
.micro-core-state-grid article { display: grid; min-height: 150px; padding: 16px; align-content: space-between; gap: 15px; background: #0a1016; border: 1px solid var(--line-soft); border-left: 4px solid #64748b; border-radius: 12px; }
.micro-core-state-grid article.is-bullish { border-left-color: var(--green); background: linear-gradient(135deg,rgba(52,226,141,.09),rgba(10,16,22,.98) 56%); }
.micro-core-state-grid article.is-bearish { border-left-color: var(--red); background: linear-gradient(135deg,rgba(255,100,120,.09),rgba(10,16,22,.98) 56%); }
.micro-core-state-grid article.is-diverging { border-left-color: var(--amber); background: linear-gradient(135deg,rgba(246,193,95,.08),rgba(10,16,22,.98) 56%); }
.micro-core-state-grid article.is-neutral, .micro-core-state-grid article.is-watching { border-left-color: var(--blue); }
.micro-core-state-top, .micro-core-state-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.micro-core-state-top > b { padding: 5px 9px; color: var(--muted); background: rgba(255,255,255,.045); border: 1px solid var(--line-soft); border-radius: 99px; font-size: 10px; }
.is-bullish .micro-core-state-top > b { color: var(--green); border-color: rgba(52,226,141,.26); }
.is-bearish .micro-core-state-top > b { color: var(--red); border-color: rgba(255,100,120,.26); }
.is-diverging .micro-core-state-top > b { color: var(--amber); border-color: rgba(246,193,95,.26); }
.micro-core-coin { display: flex; align-items: center; gap: 9px; }
.micro-core-coin i { display: grid; width: 34px; height: 34px; place-items: center; color: #07120d; background: linear-gradient(135deg,#49efab,#32c98d); border-radius: 10px; font-style: normal; font-weight: 950; }
.micro-core-state-grid article:nth-child(2) .micro-core-coin i { color: #eef4ff; background: linear-gradient(135deg,#718eea,#5368ba); }
.micro-core-sentence { color: #e8eef4; line-height: 1.75; font-size: 14px; }
.micro-core-state-grid footer { color: var(--muted); font-size: 10px; }
.micro-core-state-grid footer small { color: var(--muted-2); }
.micro-spot-zones { overflow: hidden; background: #111a22; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.micro-spot-zones > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 20px 8px; }
.micro-spot-zones h2 { margin: 5px 0 0; font-size: 21px; }
.micro-spot-zones-status { color: var(--green); font-size: 13px; }
.micro-spot-zones-status.is-stale { color: var(--amber); }
.micro-spot-zones-note { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.micro-spot-zones-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 20px 20px; }
.micro-spot-zones-grid article { padding: 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: #0d151c; }
.micro-spot-zones-grid article.is-bid { border-left: 4px solid var(--green); }
.micro-spot-zones-grid article.is-ask { border-left: 4px solid var(--red); }
.micro-spot-zones-grid h3 { margin: 0 0 9px; color: var(--text); font-size: 17px; }
.micro-spot-zone-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.micro-spot-zone-row strong { font-size: 17px; }
.micro-spot-zone-row span { font-size: 14px; text-align: right; }
.micro-spot-zone-row small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.micro-spot-zones-grid article.is-bid .micro-spot-zone-row span { color: var(--green); }
.micro-spot-zones-grid article.is-ask .micro-spot-zone-row span { color: var(--red); }
.micro-spot-zones-warning { margin: 0; padding: 0 20px 18px; color: var(--amber); font-size: 13px; line-height: 1.6; }
.micro-book-balance { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 17px 18px; align-items: center; background: rgba(8, 14, 19, .58); border-bottom: 1px solid var(--line-soft); }
.micro-book-balance > div:first-child { display: grid; }
.micro-book-balance > div:first-child span { color: var(--muted); font-size: 12px; }
.micro-book-balance > div:first-child strong { margin-top: 4px; font-size: 20px; }
.micro-balance-body, .micro-bias-block { display: grid; gap: 8px; }
.micro-balance-labels, .micro-balance-values { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 750; }
.micro-balance-labels span:first-child, .micro-balance-values span:first-child { color: var(--green); }
.micro-balance-labels span:last-child, .micro-balance-values span:last-child { color: var(--red); }
.micro-balance-track { display: block; width: 100%; height: 18px; overflow: hidden; background: #202934; border: 1px solid rgba(255, 255, 255, .06); border-radius: 99px; }
.micro-balance-left { fill: #26df91; }
.micro-balance-right { fill: #f63f50; }
.micro-balance-mid { stroke: rgba(255, 255, 255, .72); stroke-width: .35; }
.micro-balance-percentages { display: flex; align-items: center; justify-content: space-between; }
.micro-balance-percentages strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.micro-balance-percentages strong:first-child { color: var(--green); }
.micro-balance-percentages strong:last-child { color: var(--red); }
.micro-bias-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.micro-bias-card { display: grid; gap: 12px; padding: 13px; background: #0a1016; border: 1px solid var(--line-soft); border-radius: 11px; }
.micro-bias-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.micro-bias-card > header strong { padding: 5px 8px; background: rgba(255, 255, 255, .035); border-radius: 7px; font-size: 12px; }
.micro-bias-block small { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 11px; }
.micro-bias-block small em { font-style: normal; font-weight: 850; }
.micro-bias-block.is-book { padding-top: 10px; border-top: 1px solid var(--line-soft); }
.micro-bias-block.is-book .micro-balance-labels span:first-child { color: #4e8dff; }
.micro-bias-block.is-book .micro-balance-labels span:last-child { color: #b45cff; }
.micro-bias-block.is-book .micro-balance-left { fill: #3478f6; }
.micro-bias-block.is-book .micro-balance-right { fill: #a943eb; }
.micro-bias-block.is-book .micro-balance-percentages strong:first-child { color: #4e8dff; }
.micro-bias-block.is-book .micro-balance-percentages strong:last-child { color: #c072ff; }
.micro-bias-left { color: var(--green); }
.micro-bias-right { color: var(--red); }
.micro-bias-balanced { color: var(--amber); }
.micro-bias-empty { color: var(--muted-2); }
.micro-panel { overflow: hidden; background: linear-gradient(145deg, #111820, #0d1319); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.micro-panel-head { display: flex; min-height: 76px; padding: 16px 18px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.micro-panel-head h2 { margin: 4px 0 0; font-size: 21px; }
.micro-panel-head > span { color: var(--muted-2); font-size: 11px; }
.micro-table-wrap { overflow: auto; }
.micro-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 12px; }
.micro-table th { padding: 13px 16px; color: #c3cedb; background: #0c1218; border-bottom: 1px solid var(--line-soft); text-align: right; font-size: 12px; white-space: nowrap; }
.micro-table td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.micro-table th:first-child, .micro-table td:first-child { text-align: left; }
.micro-table tbody tr:last-child td { border-bottom: 0; }
.micro-table tbody tr:hover { background: rgba(52, 226, 141, .025); }
.micro-table td > small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.micro-btc-ws-panel { border-color: rgba(69, 160, 235, .32); }
.micro-btc-ws-state { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.micro-btc-ws-state.is-live { color: var(--green); border-color: rgba(52, 226, 141, .32); background: rgba(52, 226, 141, .07); }
.micro-btc-ws-state.is-waiting { color: var(--muted); border-color: var(--line); }
.micro-btc-ws-state.is-stale { color: var(--amber); border-color: rgba(246, 193, 95, .35); background: rgba(246, 193, 95, .07); }
.micro-btc-ws-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 0 20px 16px; color: var(--muted-2); font-size: 12px; }
.micro-btc-ws-meta .is-error { color: var(--amber); }
.micro-btc-ws-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.micro-btc-ws-bucket { min-width: 0; padding: 14px; background: rgba(7, 14, 20, .6); border: 1px solid var(--line-soft); border-radius: 12px; }
.micro-btc-ws-bucket > header { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.micro-btc-ws-bucket > header > div { display: grid; gap: 3px; }
.micro-btc-ws-bucket > header span { color: var(--muted); font-size: 11px; }
.micro-btc-ws-bucket > header strong { color: var(--text); font-size: 16px; }
.micro-btc-ws-bucket > header b { padding: 4px 8px; border-radius: 7px; font-size: 11px; }
.micro-btc-ws-bucket > header b.is-provisional, .micro-btc-ws-bucket > header b.is-waiting { color: var(--blue); background: rgba(113, 163, 224, .1); }
.micro-btc-ws-bucket > header b.is-matched { color: var(--green); background: rgba(52, 226, 141, .1); }
.micro-btc-ws-bucket > header b.is-stale { color: var(--amber); background: rgba(246, 193, 95, .1); }
.micro-btc-ws-market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.micro-btc-ws-market { min-width: 0; padding: 12px; background: #0c151d; border: 1px solid var(--line-soft); border-radius: 9px; }
.micro-btc-ws-market h4 { margin: 0 0 8px; color: var(--text); font-size: 13px; }
.micro-btc-ws-amounts { display: grid; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 800; }
.micro-btc-ws-market p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.micro-btc-ws-market small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 11px; }
.micro-btc-ws-empty, .micro-btc-ws-foot { margin: 0; color: var(--muted-2); font-size: 12px; line-height: 1.6; }
.micro-btc-ws-foot { margin-top: 10px; }
.micro-coin { display: flex; align-items: center; gap: 8px; }
.micro-coin i { display: grid; width: 30px; height: 30px; place-items: center; color: #07120d; background: var(--green); border-radius: 9px; font-style: normal; font-weight: 950; }
.micro-window-badge { display: inline-flex; min-width: 58px; min-height: 29px; padding: 0 10px; align-items: center; justify-content: center; color: var(--muted); background: #0a1016; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 850; }
.micro-window-5m { color: var(--green); border-color: rgba(52, 226, 141, .3); }
.micro-window-15m { color: var(--blue); border-color: rgba(113, 163, 224, .3); }
.micro-window-1h { color: var(--amber); border-color: rgba(246, 193, 95, .3); }
.micro-window-24h { color: #c59cff; border-color: rgba(197, 156, 255, .3); }
.micro-vwap-pair, .micro-book-net { display: grid; gap: 2px; }
.micro-vwap-pair i, .micro-book-net i { font-style: normal; }
.micro-vwap-pair i:first-child { color: var(--green); }
.micro-vwap-pair i:last-child { color: var(--red); }
.micro-book-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.micro-wall-wrap { max-height: 520px; }
.micro-wall-table thead th { position: sticky; top: 0; z-index: 3; }
.micro-wall-row-ask { background: linear-gradient(90deg, rgba(246, 63, 80, .045), transparent 46%); }
.micro-wall-row-bid { background: linear-gradient(90deg, rgba(38, 223, 145, .045), transparent 46%); }
.micro-wall-row-ask td:nth-child(2) strong { color: #ff6879; }
.micro-wall-row-bid td:nth-child(2) strong { color: #4ceca5; }
.micro-wall-notional-cell { position: relative; isolation: isolate; overflow: hidden; }
.micro-wall-notional-cell > strong { position: relative; z-index: 2; color: #f4f8fb; text-shadow: 0 1px 2px rgba(0, 0, 0, .75); }
.micro-wall-source { display: grid; min-width: 150px; gap: 4px; }
.micro-wall-source strong { color: var(--text); font-size: 12px; }
.micro-wall-source small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.micro-wall-depth-meter { position: absolute; z-index: 0; inset: 8px 10px; width: calc(100% - 20px); height: calc(100% - 16px); pointer-events: none; }
.micro-wall-depth-track { fill: rgba(255, 255, 255, .015); }
.micro-wall-depth-bid .micro-wall-depth-fill { fill: rgba(24, 197, 132, .20); }
.micro-wall-depth-ask .micro-wall-depth-fill { fill: rgba(238, 62, 82, .20); }
.micro-wall-depth-medium.micro-wall-depth-bid .micro-wall-depth-fill { fill: rgba(24, 197, 132, .28); }
.micro-wall-depth-medium.micro-wall-depth-ask .micro-wall-depth-fill { fill: rgba(238, 62, 82, .28); }
.micro-wall-depth-strong.micro-wall-depth-bid .micro-wall-depth-fill { fill: rgba(24, 197, 132, .38); }
.micro-wall-depth-strong.micro-wall-depth-ask .micro-wall-depth-fill { fill: rgba(238, 62, 82, .38); }
.micro-wall-depth-extreme.micro-wall-depth-bid .micro-wall-depth-fill { fill: rgba(24, 197, 132, .52); }
.micro-wall-depth-extreme.micro-wall-depth-ask .micro-wall-depth-fill { fill: rgba(238, 62, 82, .52); }
.micro-market-row td { color: #dff8f0; background: rgba(45, 190, 150, .16); border-top: 1px solid rgba(62, 226, 177, .5); border-bottom: 1px solid rgba(62, 226, 177, .5) !important; }
.micro-market-row td:nth-child(2) strong { color: #65f0bd; font-size: 16px; }
.micro-market-pill { display: inline-flex; min-height: 30px; padding: 0 11px; align-items: center; color: #06140f; background: #50e9b3; border-radius: 8px; font-size: 11px; font-weight: 950; }
.micro-market-hint { color: #8fc9b5; font-size: 11px; }
.micro-side, .micro-type, .micro-match { display: inline-flex; min-height: 29px; padding: 0 10px; align-items: center; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; font-weight: 800; }
.micro-side-bid { color: var(--green); background: var(--green-soft); border-color: rgba(52, 226, 141, .28); }
.micro-side-ask { color: var(--red); background: var(--red-soft); border-color: rgba(255, 100, 120, .28); }
.micro-book-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 14px; }
.micro-book-cards > div { display: grid; min-height: 91px; padding: 12px; align-content: center; background: #0a1016; border: 1px solid var(--line-soft); border-radius: 10px; }
.micro-book-cards span { color: var(--muted); font-size: 12px; }
.micro-book-cards strong { margin: 4px 0; font-size: 20px; font-variant-numeric: tabular-nums; }
.micro-book-cards small { color: var(--muted-2); font-size: 10px; }
.micro-book-cards .micro-book-wide { grid-column: 1 / -1; min-height: 76px; }
.micro-book-current { padding-bottom: 10px; }
.micro-book-current { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.micro-book-current .micro-book-wide { grid-column: auto; min-height: 91px; }
.micro-book-window-wrap { border-top: 1px solid var(--line-soft); }
.micro-book-window-table { min-width: 820px; }
.micro-event-wrap { max-height: 500px; }
.micro-event-table { min-width: 1180px; }
.micro-wallet { display: grid; }
.micro-wallet strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.micro-wallet code { margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.micro-source-note { display: grid; gap: 3px; }
.micro-source-note strong { color: #c7d2df; font-size: 12px; }
.micro-source-note small { color: var(--muted-2); font-size: 10px; }
.micro-source-note small.is-stale { color: var(--amber); }
.micro-flow-table tr.is-data-stale td { background: rgba(246,193,95,.025); }
.micro-flow-table .micro-no-data { color: var(--muted-2); }
.micro-type { color: var(--blue); background: rgba(113, 163, 224, .08); border-color: rgba(113, 163, 224, .25); }
.micro-match { color: var(--amber); }
.micro-match.is-yes { color: var(--green); background: var(--green-soft); border-color: rgba(52, 226, 141, .28); }
.micro-evidence-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 15px 17px; color: var(--muted); background: #0e1319; border: 1px solid var(--line-soft); border-radius: 12px; font-size: 12px; }
.micro-evidence-note strong { color: var(--amber); }

@media (max-width: 1280px) {
  .micro-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .micro-book-grid { grid-template-columns: 1fr; }
  .micro-bias-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .micro-stream-grid { grid-template-columns: 1fr; }
  .micro-core-state-grid { grid-template-columns: 1fr; }
  .micro-spot-zones-grid { grid-template-columns: 1fr; }
  .micro-btc-ws-sections { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .micro-warning, .micro-panel-head, .micro-core-state > header { align-items: flex-start; flex-direction: column; }
  .micro-spot-zones > header { align-items: flex-start; flex-direction: column; }
  .micro-core-state > header p { text-align: left; }
  .micro-core-state-grid article { min-height: 166px; }
  .micro-core-state-grid footer { align-items: flex-start; flex-direction: column; gap: 3px; }
  .micro-kpi-grid { grid-template-columns: 1fr; }
  .micro-book-balance { grid-template-columns: 1fr; gap: 10px; }
  .micro-bias-grid { grid-template-columns: 1fr; }
  .micro-book-cards { grid-template-columns: 1fr; }
  .micro-book-current { grid-template-columns: 1fr; }
  .micro-book-cards .micro-book-wide { grid-column: auto; }
  .micro-evidence-note { grid-template-columns: 1fr; }
  .micro-btc-ws-market-grid { grid-template-columns: 1fr; }
}

/* Secure data-source settings */
.settings-page-content { max-width: 1260px; }
.data-source-form { display: grid; gap: 16px; }
.source-card { overflow: hidden; background: linear-gradient(145deg, rgba(17,24,33,.98), rgba(11,16,23,.98)); border: 1px solid #2a3542; border-radius: 22px; box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.source-card-featured { border-color: rgba(50,225,158,.34); box-shadow: 0 20px 60px rgba(18,164,111,.08); }
.source-card-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.source-identity { display: flex; min-width: 0; align-items: center; gap: 15px; }
.source-identity h2 { margin: 2px 0 3px; font-size: 21px; letter-spacing: -.02em; }
.source-identity p { margin: 0; color: var(--muted-2); font-size: 12px; }
.source-logo { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: #07110d; font-size: 15px; font-weight: 950; border-radius: 15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.source-logo-cg { background: linear-gradient(145deg, #63f6bf, #24ce91); }
.source-logo-cmc { color: #fff; background: linear-gradient(145deg, #678cff, #3155ce); font-size: 12px; }
.source-logo-hl { color: #fff; background: linear-gradient(145deg, #8b71ff, #4a37cf); }
.source-logo-bsc { background: linear-gradient(145deg, #ffd95a, #e8a914); }
.source-state { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 8px 11px; color: var(--muted); background: #0b1016; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.source-state > span { width: 8px; height: 8px; background: #657080; border-radius: 50%; }
.source-state.is-online { color: #54efb2; border-color: rgba(50,225,158,.25); background: rgba(50,225,158,.07); }
.source-state.is-online > span { background: #32e19e; box-shadow: 0 0 11px rgba(50,225,158,.85); }
.source-state.is-waiting { color: #ffb86a; border-color: rgba(255,166,80,.25); background: rgba(255,166,80,.06); }
.source-state.is-waiting > span { background: #ff9b55; box-shadow: 0 0 10px rgba(255,155,85,.6); }
.source-card-body { display: grid; gap: 18px; padding: 22px 25px 24px; }
.source-master-toggle, .source-option-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.source-master-toggle { min-height: 58px; padding: 11px 14px; background: rgba(255,255,255,.018); border: 1px solid var(--line); border-radius: 13px; }
.source-master-toggle > input, .source-option-toggle > input { position: absolute; opacity: 0; pointer-events: none; }
.source-master-toggle > span:last-child, .source-option-toggle > span:last-child { display: grid; gap: 2px; }
.source-master-toggle strong, .source-option-toggle strong { color: var(--text); font-size: 13px; }
.source-master-toggle small, .source-option-toggle small { color: var(--muted-2); font-size: 11px; line-height: 1.45; }
.source-switch { position: relative; width: 45px; height: 25px; flex: 0 0 auto; background: #2b3440; border: 1px solid #3b4655; border-radius: 30px; transition: .2s ease; }
.source-switch i { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; background: #84909f; border-radius: 50%; transition: .2s ease; }
input:checked + .source-switch { background: #25d795; border-color: #52edb4; box-shadow: 0 0 18px rgba(37,215,149,.18); }
input:checked + .source-switch i { left: 23px; background: #fff; }
.source-switch-small { width: 38px; height: 22px; }
.source-switch-small i { top: 3px; width: 14px; height: 14px; }
input:checked + .source-switch-small i { left: 19px; }
.source-field-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: stretch; gap: 14px; }
.source-secret-field { display: grid; gap: 8px; }
.source-secret-field > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.source-input-row { display: flex; min-height: 48px; align-items: center; gap: 12px; padding: 0 13px; background: #090e14; border: 1px solid #2c3744; border-radius: 11px; transition: .18s ease; }
.source-input-row:focus-within { border-color: rgba(82,237,180,.58); box-shadow: 0 0 0 4px rgba(82,237,180,.06); }
.source-input-row input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 13px; }
.source-input-row input::placeholder { color: #596474; }
.source-input-row b { flex: 0 0 auto; color: #80a698; font-size: 10px; font-weight: 700; }
.source-option-toggle { min-height: 48px; padding: 8px 12px; background: #090e14; border: 1px solid #2c3744; border-radius: 11px; }
.source-options-stack { display: grid; gap: 9px; }
.source-secret-field-wide { max-width: 820px; }
.source-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; background: #090e14; border: 1px solid var(--line); border-radius: 12px; }
.source-metrics > span { display: grid; gap: 5px; padding: 13px 15px; border-right: 1px solid var(--line); }
.source-metrics > span:last-child { border-right: 0; }
.source-metrics small { color: var(--muted-2); font-size: 10px; }
.source-metrics strong { overflow: hidden; color: var(--text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.source-metrics .metric-danger { color: #ff637c; }
.source-inline-error { padding: 11px 13px; overflow-wrap: anywhere; color: #ff7b90; background: rgba(255,75,102,.075); border: 1px solid rgba(255,75,102,.2); border-radius: 10px; font-size: 11px; }
.source-clear { display: inline-flex; width: fit-content; align-items: center; gap: 7px; color: var(--muted-2); font-size: 10px; cursor: pointer; }
.source-clear input { accent-color: #ff5d77; }
.settings-save-bar { position: sticky; bottom: 16px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; background: rgba(13,19,27,.94); border: 1px solid rgba(82,237,180,.32); border-radius: 16px; box-shadow: 0 18px 55px rgba(0,0,0,.42); backdrop-filter: blur(16px); }
.settings-save-bar > div { display: grid; gap: 2px; }
.settings-save-bar strong { font-size: 13px; }
.settings-save-bar span { color: var(--muted-2); font-size: 11px; }
.settings-save-button { min-width: 160px; }
.settings-save-button svg { width: 17px; height: 17px; }
.settings-restart-banner { display: flex; align-items: center; gap: 13px; padding: 14px 17px; color: #85f4c2; background: rgba(50,225,158,.07); border: 1px solid rgba(50,225,158,.28); border-radius: 13px; }
.settings-restart-banner strong { font-size: 13px; }
.settings-restart-banner p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.settings-spinner { width: 20px; height: 20px; flex: 0 0 auto; border: 2px solid rgba(82,237,180,.2); border-top-color: #52edb4; border-radius: 50%; animation: settings-spin .8s linear infinite; }
@keyframes settings-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .source-field-grid { grid-template-columns: 1fr; }
  .source-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-metrics > span:nth-child(2) { border-right: 0; }
  .source-metrics > span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .source-card-head { align-items: flex-start; padding: 18px; flex-direction: column; }
  .source-card-body { padding: 17px; }
  .source-identity { align-items: flex-start; }
  .source-identity p { line-height: 1.55; }
  .source-state { margin-left: 63px; }
  .source-input-row { align-items: flex-start; padding-block: 10px; flex-direction: column; gap: 5px; }
  .source-metrics { grid-template-columns: 1fr; }
  .source-metrics > span { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-metrics > span:last-child { border-bottom: 0; }
  .settings-save-bar { align-items: stretch; flex-direction: column; }
  .settings-save-button { width: 100%; }
}

/* Mobile application shell */
.mobile-appbar, .mobile-nav-overlay { display: none; }
.pwa-install-button { width: 100%; min-height: 38px; color: var(--green); background: rgba(52,226,141,.08); border: 1px solid rgba(52,226,141,.23); border-radius: 9px; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }

/* Manual portfolio */
.manual-page-content { max-width: 1480px; }
.manual-add-trigger { min-width: 130px; }
.manual-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.manual-kpis article { display: grid; min-height: 118px; padding: 19px; align-content: center; background: linear-gradient(145deg,#111820,#0d1319); border: 1px solid var(--line); border-radius: 16px; }
.manual-kpis span { color: var(--muted); font-size: 12px; }
.manual-kpis strong { margin: 7px 0 4px; font-size: clamp(22px,2vw,30px); font-variant-numeric: tabular-nums; }
.manual-kpis small { color: var(--muted-2); font-size: 10px; }
.manual-kpis .manual-win-rate { background: linear-gradient(145deg,rgba(155,135,255,.11),#0d1319 72%); border-color: rgba(155,135,255,.24); }
.manual-kpis .manual-win-rate strong { color: #b7a8ff; }
.is-positive { color: var(--green) !important; }
.is-negative { color: var(--red) !important; }
.is-neutral { color: var(--amber) !important; }
.manual-context-note { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 11px 14px; color: var(--muted); background: rgba(113,163,224,.05); border: 1px solid rgba(113,163,224,.16); border-radius: 11px; font-size: 11px; }
.manual-context-note strong { color: var(--blue); }
.manual-context-note i { margin-left: auto; color: var(--green); font-style: normal; font-weight: 800; }
.manual-context-note i b { color: inherit; font-weight: inherit; }
[data-live-price-status].is-stale { color: var(--red) !important; }
.manual-position-panel { overflow: hidden; background: linear-gradient(145deg,#111820,#0d1319); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.manual-position-panel > header { display: flex; min-height: 80px; padding: 17px 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.manual-position-panel > header span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.manual-position-panel > header h2 { margin: 4px 0 0; font-size: 22px; }
.manual-position-panel > header small { color: var(--muted-2); font-size: 10px; }
.manual-position-head, .manual-position-row { display: grid; grid-template-columns: minmax(165px,1.1fr) minmax(145px,.9fr) minmax(105px,.65fr) minmax(120px,.75fr) minmax(125px,.8fr) minmax(125px,.8fr) 90px; column-gap: 16px; align-items: center; }
.manual-position-head { min-height: 42px; padding: 0 18px; color: var(--muted-2); background: #0b1117; border-bottom: 1px solid var(--line-soft); font-size: 10px; font-weight: 800; }
.manual-position-head .head-price { color: var(--green); }
.manual-position-head .head-value { color: var(--blue); }
.manual-position-head .head-daily { color: var(--amber); }
.manual-position-head .head-total { color: var(--violet); }
.manual-position-row { min-height: 94px; padding: 13px 18px; background: linear-gradient(90deg,rgba(115,167,255,.025),transparent 32%); border-bottom: 1px solid var(--line-soft); box-shadow: inset 3px 0 transparent; transition: background .18s ease,box-shadow .18s ease; }
.manual-position-row.is-profit-row { background: linear-gradient(90deg,rgba(52,226,141,.065),transparent 34%); box-shadow: inset 3px 0 rgba(52,226,141,.75); }
.manual-position-row.is-loss-row { background: linear-gradient(90deg,rgba(255,100,120,.065),transparent 34%); box-shadow: inset 3px 0 rgba(255,100,120,.78); }
.manual-position-row.is-flat-row { box-shadow: inset 3px 0 rgba(115,167,255,.55); }
.manual-position-row:last-of-type { border-bottom: 0; }
.manual-position-row:hover { background: linear-gradient(90deg,rgba(115,167,255,.09),rgba(155,135,255,.025) 56%,transparent); }
.manual-position-row.is-profit-row:hover { background: linear-gradient(90deg,rgba(52,226,141,.11),rgba(52,226,141,.02) 58%,transparent); }
.manual-position-row.is-loss-row:hover { background: linear-gradient(90deg,rgba(255,100,120,.11),rgba(255,100,120,.02) 58%,transparent); }
.manual-position-row > div { display: grid; gap: 4px; min-width: 0; }
.manual-position-row > div > strong { overflow: hidden; color: #eef5fb; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.manual-position-row > div > small { color: var(--muted-2); font-size: 10px; }
.manual-cost > small { color: #79d6df !important; }
.manual-current-price, .manual-position-value, .manual-pnl { min-height: 54px; padding: 8px 10px; align-content: center; border-radius: 10px; }
.manual-current-price { background: rgba(246,193,95,.055); border: 1px solid rgba(246,193,95,.16); }
.manual-current-price > strong { color: var(--amber) !important; font-size: 15px !important; }
.manual-current-price.is-price-up { background: rgba(52,226,141,.075); border-color: rgba(52,226,141,.20); }
.manual-current-price.is-price-up > strong, .manual-current-price.is-price-up > small, .manual-current-price.is-price-up > span { color: var(--green) !important; text-shadow: 0 0 18px rgba(52,226,141,.18); }
.manual-current-price.is-price-down { background: rgba(255,100,120,.075); border-color: rgba(255,100,120,.20); }
.manual-current-price.is-price-down > strong, .manual-current-price.is-price-down > small, .manual-current-price.is-price-down > span { color: var(--red) !important; text-shadow: 0 0 18px rgba(255,100,120,.16); }
.manual-current-price.is-price-flat > strong, .manual-current-price.is-price-flat > small, .manual-current-price.is-price-flat > span { color: var(--amber) !important; }
.manual-position-value { background: rgba(115,167,255,.07); border: 1px solid rgba(115,167,255,.16); }
.manual-position-value > strong { color: #8bb6ff !important; }
.manual-pnl { background: rgba(246,193,95,.035); border: 1px solid rgba(246,193,95,.10); }
.manual-pnl.is-positive { background: rgba(52,226,141,.075); border-color: rgba(52,226,141,.18); }
.manual-pnl.is-negative { background: rgba(255,100,120,.075); border-color: rgba(255,100,120,.18); }
.manual-pnl.is-positive > strong, .manual-pnl.is-positive > small { color: var(--green) !important; }
.manual-pnl.is-negative > strong, .manual-pnl.is-negative > small { color: var(--red) !important; }
.manual-position-coin { display: flex !important; align-items: center; gap: 11px !important; }
.manual-position-coin-link { min-width: 0; padding: 7px; margin: -7px; color: inherit; text-decoration: none; border-radius: 10px; transition: background .18s ease, box-shadow .18s ease; }
.manual-position-coin-link:hover { background: rgba(52,226,141,.08); box-shadow: inset 0 0 0 1px rgba(52,226,141,.22); }
.manual-position-coin-link:focus-visible { outline: 2px solid #5ce2a6; outline-offset: 3px; }
.manual-position-coin-link .manual-coin-open { color: #7beab5; font-size: 10px; font-weight: 800; }
.manual-position-coin > i { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #06140e; background: linear-gradient(145deg,#62f0b8,#26d58f); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.22); font-style: normal; font-weight: 950; }
.manual-position-coin > i.coin-tone-1 { color: #061326; background: linear-gradient(145deg,#83c1ff,#4f7dff); }
.manual-position-coin > i.coin-tone-2 { color: #170a24; background: linear-gradient(145deg,#c8a5ff,#9670f5); }
.manual-position-coin > i.coin-tone-3 { color: #241500; background: linear-gradient(145deg,#ffd77d,#f4a940); }
.manual-position-coin > i.coin-tone-4 { color: #201019; background: linear-gradient(145deg,#ff9bc1,#f26399); }
.manual-position-row.is-short-row .manual-position-coin > i { color: #26070d; background: linear-gradient(145deg,#ff9aa8,#ff5e73); }
.manual-position-coin span { display: grid; gap: 3px; min-width: 0; }
.manual-position-coin strong { font-size: 14px; }
.manual-position-coin small { color: var(--muted); font-size: 10px; }
.manual-position-row.is-long-row .manual-position-coin small { color: #75dbae; }
.manual-position-row.is-short-row .manual-position-coin small { color: #ff8c9b; }
.manual-position-title { display: flex !important; align-items: center; gap: 7px !important; }
.manual-horizon-badge { display: inline-flex; width: max-content; min-height: 21px; padding: 0 8px; align-items: center; color: #aeb9c4; background: rgba(148,163,184,.09); border: 1px solid rgba(148,163,184,.20); border-radius: 99px; font-size: 9px; font-style: normal; font-weight: 900; white-space: nowrap; }
.manual-horizon-badge.short_term { color: #ffd36f; background: rgba(246,193,95,.11); border-color: rgba(246,193,95,.30); box-shadow: 0 0 18px rgba(246,193,95,.07); }
.manual-horizon-badge.long_term { color: #ad9cff; background: rgba(155,135,255,.10); border-color: rgba(155,135,255,.28); }
.manual-research-state { display: inline-block; color: #aeb9c4; font-size: 11px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.manual-research-state.is-green { color: #5ce2a6; }
.manual-research-state.is-blue { color: #91b9ff; }
.manual-research-state.is-amber { color: #ffd36f; }
.manual-research-state.is-violet { color: #c1a6ff; }
.manual-research-state.is-red { color: #ff8496; }
.manual-research-state.is-stale { color: #a0aab6; }
.manual-research-card { display: grid; gap: 7px; padding: 13px 14px; background: #101b23; border: 1px solid var(--line-soft); border-radius: 11px; }
.manual-research-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.manual-research-card header strong { color: #e9f4f0; font-size: 13px; }
.manual-research-card header a { color: #70eab3; font-size: 12px; }
.manual-research-card > .manual-research-state { font-size: 15px; }
.manual-research-card > small { color: #aebdc7; font-size: 12px; line-height: 1.5; }
.manual-position-note { max-width: 190px; overflow: hidden; color: #a8b4c0 !important; text-overflow: ellipsis; white-space: nowrap; }
.manual-position-row.is-short-term-position { border-top-color: rgba(246,193,95,.17); }
.manual-position-annotation { display: flex; padding: 12px 14px; align-items: center; gap: 12px; background: linear-gradient(135deg,rgba(246,193,95,.055),rgba(155,135,255,.035)); border: 1px solid rgba(246,193,95,.15); border-radius: 11px; }
.manual-position-annotation > span { display: grid; gap: 4px; min-width: 0; }
.manual-position-annotation small { color: var(--muted-2); font-size: 9px; }
.manual-position-annotation strong { overflow-wrap: anywhere; color: #dfe7ee; line-height: 1.5; font-size: 11px; }
.manual-detail-button { min-height: 38px; color: #6ff1b3; background: linear-gradient(135deg,rgba(52,226,141,.13),rgba(35,154,111,.07)); border: 1px solid rgba(52,226,141,.32); border-radius: 9px; box-shadow: 0 8px 20px rgba(0,0,0,.13); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.manual-detail-button:hover { color: #07150f; background: linear-gradient(135deg,#5ff0ad,#2ed88d); }
.manual-empty { display: grid; min-height: 360px; padding: 40px; place-items: center; align-content: center; text-align: center; background: linear-gradient(145deg,#111820,#0d1319); border: 1px solid var(--line); border-radius: 18px; }
.manual-empty img { width: 62px; }
.manual-empty h2 { margin: 18px 0 7px; }
.manual-empty p { max-width: 540px; margin: 0 0 20px; color: var(--muted); line-height: 1.7; font-size: 12px; }
.manual-closed { margin-top: 15px; padding: 14px 17px; background: #0d1319; border: 1px solid var(--line); border-radius: 13px; }
.manual-closed summary { color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.manual-closed > div { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 11px; }
.manual-closed > div:first-of-type { margin-top: 12px; }
.manual-closed span { color: var(--muted); }
.manual-closed small { color: var(--muted-2); }

dialog { color: var(--text); }
.manual-modal, .manual-drawer { padding: 0; background: transparent; border: 0; }
.manual-modal::backdrop, .manual-drawer::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.manual-modal { width: min(680px,calc(100vw - 28px)); max-width: none; }
.manual-modal-card { display: grid; gap: 17px; padding: 24px; background: #10171f; border: 1px solid #344150; border-radius: 18px; box-shadow: 0 25px 80px rgba(0,0,0,.55); }
.manual-modal-card > header, .manual-drawer-inner > header { display: flex; align-items: center; justify-content: space-between; }
.manual-modal-card > header span, .manual-drawer-inner > header span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.manual-modal-card h2, .manual-drawer-inner h2 { margin: 4px 0 0; font-size: 22px; }
.manual-modal-card > header button, .manual-drawer-inner > header button { width: 36px; height: 36px; color: var(--muted); background: #0a1016; border: 1px solid var(--line); border-radius: 9px; font-size: 24px; cursor: pointer; }
.manual-modal-card > p { margin: 0; color: var(--muted); font-size: 11px; }
.manual-form-grid, .manual-action form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.manual-form-grid label, .manual-action label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.manual-form-grid input, .manual-form-grid select, .manual-action input, .manual-action select { width: 100%; height: 42px; padding: 0 11px; color: var(--text); background: #090e14; border: 1px solid #2c3744; border-radius: 9px; outline: 0; }
.manual-form-grid input:focus, .manual-form-grid select:focus, .manual-action input:focus, .manual-action select:focus { border-color: var(--green); }
.manual-form-wide, .manual-action .primary-button { grid-column: 1 / -1; }
.manual-drawer { width: min(650px,100vw); max-width: none; height: 100vh; max-height: none; margin: 0 0 0 auto; }
.manual-drawer-inner { display: grid; grid-template-rows: auto minmax(0,1fr); height: 100%; background: #0d141b; border-left: 1px solid #344150; box-shadow: -25px 0 80px rgba(0,0,0,.5); }
.manual-drawer-inner > header { padding: 19px 21px; border-bottom: 1px solid var(--line); }
.manual-drawer-scroll { display: grid; grid-auto-rows: max-content; gap: 14px; padding: 17px; align-content: start; overflow-y: auto; }
.manual-detail-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; background: #090f15; border: 1px solid var(--line); border-radius: 12px; }
.manual-detail-summary > div { display: grid; gap: 5px; padding: 13px; border-right: 1px solid var(--line); }
.manual-detail-summary > div:last-child { border: 0; }
.manual-detail-summary span { color: var(--muted-2); font-size: 9px; }
.manual-detail-summary strong { font-size: 13px; }
.manual-market-card, .manual-action, .manual-event-log { padding: 16px; background: #101820; border: 1px solid var(--line); border-radius: 13px; }
.manual-market-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.manual-market-card > header div { display: grid; gap: 5px; }
.manual-market-card > header span, .manual-market-card > header small { color: var(--muted-2); font-size: 9px; }
.manual-market-card > header strong { font-size: 13px; }
.manual-market-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.manual-market-metrics > div { display: grid; gap: 4px; padding: 12px; background: #090f15; border: 1px solid var(--line-soft); border-radius: 9px; }
.manual-market-metrics span, .manual-market-metrics small { color: var(--muted-2); font-size: 9px; }
.manual-market-metrics strong { font-size: 14px; }
.manual-pressure-block { display: grid; gap: 7px; margin-top: 14px; }
.manual-pressure-block > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.manual-pressure-block > div:first-child span:first-child { color: var(--green); }
.manual-pressure-block > div:first-child span:last-child { color: var(--red); }
.manual-pressure-block > small { color: var(--muted-2); font-size: 9px; }
.manual-split-bar { display: flex; width: 100%; height: 12px; overflow: hidden; background: #222c37; border-radius: 99px; }
.manual-split-bar i { background: #26dc91; }
.manual-split-bar b { background: #f4495d; }
.manual-pressure-block.liquidation .manual-split-bar i { background: #e95c63; }
.manual-pressure-block.liquidation .manual-split-bar b { background: #4c8dff; }
.manual-trend-summary { display: grid; gap: 7px; margin-top: 15px; padding: 13px 14px; background: linear-gradient(135deg,rgba(155,135,255,.09),rgba(115,167,255,.045)); border: 1px solid rgba(155,135,255,.22); border-radius: 11px; }
.manual-trend-summary span { color: #b5a7ff; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.manual-trend-summary strong { color: #e8e4ff; line-height: 1.65; font-size: 11px; }
.manual-trend-summary small { color: var(--muted-2); font-size: 9px; }
.manual-exit-history { padding: 16px; background: #101820; border: 1px solid var(--line); border-radius: 13px; }
.manual-exit-history > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.manual-exit-history > header span { color: var(--violet); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.manual-exit-history > header h3 { margin: 4px 0 0; font-size: 15px; }
.manual-exit-history > header > strong { color: #c0b3ff; font-size: 22px; }
.manual-exit-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 14px; overflow: hidden; background: #0a1016; border: 1px solid var(--line-soft); border-radius: 10px; }
.manual-exit-stats > div { display: grid; gap: 5px; padding: 11px 12px; border-right: 1px solid var(--line-soft); }
.manual-exit-stats > div:last-child { border-right: 0; }
.manual-exit-stats span { color: var(--muted-2); font-size: 8px; }
.manual-exit-stats strong { color: #e3ebf2; font-size: 12px; }
.manual-exit-stats strong i { color: var(--green); font-style: normal; }
.manual-exit-stats strong b { color: var(--red); }
.manual-exit-table { margin-top: 12px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 10px; }
.manual-exit-table-head, .manual-exit-table article { display: grid; grid-template-columns: 1.05fr 1.1fr .8fr 1fr 1.05fr; gap: 12px; align-items: center; }
.manual-exit-table-head { min-height: 34px; padding: 0 12px; color: var(--muted-2); background: #090e14; font-size: 8px; font-weight: 800; }
.manual-exit-table article { min-height: 58px; padding: 9px 12px; background: rgba(115,167,255,.018); border-top: 1px solid var(--line-soft); box-shadow: inset 3px 0 rgba(148,163,184,.25); }
.manual-exit-table article.is-win { box-shadow: inset 3px 0 rgba(52,226,141,.78); }
.manual-exit-table article.is-loss { box-shadow: inset 3px 0 rgba(255,100,120,.8); }
.manual-exit-table article > div { display: grid; gap: 3px; min-width: 0; }
.manual-exit-table article strong { overflow-wrap: anywhere; color: #e4ebf1; font-size: 10px; }
.manual-exit-table article small { overflow-wrap: anywhere; color: var(--muted-2); font-size: 8px; }
.manual-exit-empty { margin-top: 13px; padding: 16px; color: var(--muted); background: #0a1016; border: 1px dashed var(--line); border-radius: 10px; line-height: 1.65; font-size: 10px; }
.manual-exit-history > footer { margin-top: 10px; color: var(--muted-2); line-height: 1.55; font-size: 8px; }
.manual-action { padding: 0; overflow: hidden; }
.manual-action summary { padding: 14px 16px; color: #d8e3ec; font-size: 12px; font-weight: 850; cursor: pointer; }
.manual-action[open] summary { border-bottom: 1px solid var(--line-soft); }
.manual-action form { padding: 15px; }
.manual-action-note, .manual-action-warning { grid-column: 1/-1; margin: 0; padding: 11px 13px; border-radius: 9px; line-height: 1.65; font-size: 10px; }
.manual-action-note { color: #a9c2d4; background: rgba(62,139,255,.07); border: 1px solid rgba(62,139,255,.18); }
.manual-action-warning { color: #f3c878; background: rgba(246,185,59,.06); border: 1px solid rgba(246,185,59,.18); }
.manual-close-form { padding-top: 0 !important; border-top: 1px dashed var(--line); }
.manual-danger-button { min-height: 42px; align-self: end; color: var(--red); background: rgba(244,73,93,.08); border: 1px solid rgba(244,73,93,.3); border-radius: 9px; font-weight: 850; cursor: pointer; }
.manual-event-log h3 { margin: 0 0 10px; font-size: 13px; }
.manual-event-log > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.manual-event-log span { color: var(--muted-2); font-size: 9px; }
.manual-event-log strong { color: var(--blue); font-size: 10px; }
.manual-event-log small { grid-column: 1/-1; color: var(--muted); font-size: 10px; }

@media (max-width: 1100px) {
  .manual-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .manual-position-head { display: none; }
  .manual-position-row { grid-template-columns: minmax(170px,1.2fr) repeat(2,minmax(130px,1fr)); }
  .manual-position-row .manual-detail-button { grid-column: 1/-1; }
  .manual-exit-table-head { display: none; }
  .manual-exit-table article { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .manual-exit-table article > div:last-child { grid-column: 1/-1; }
}

@media (max-width: 920px) {
  body.nav-open { overflow: hidden; }
  .mobile-appbar { position: sticky; z-index: 30; top: 0; display: flex; height: 60px; padding: 0 15px; align-items: center; justify-content: space-between; background: rgba(9,13,18,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-appbar-brand { display: flex; align-items: center; gap: 9px; color: var(--text); }
  .mobile-appbar-brand img { width: 35px; height: 35px; }
  .mobile-appbar-brand span { display: grid; }
  .mobile-appbar-brand strong { font-size: 13px; }
  .mobile-appbar-brand small { color: var(--green); font-size: 9px; }
  .mobile-menu-button { display: grid; width: 40px; height: 40px; padding: 10px; align-content: center; gap: 4px; background: #111820; border: 1px solid var(--line); border-radius: 10px; }
  .mobile-menu-button i { display: block; height: 2px; background: #dce5ed; border-radius: 3px; }
  .mobile-nav-overlay { position: fixed; z-index: 39; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(0,0,0,.68); border: 0; transition: .2s; }
  .nav-open .mobile-nav-overlay { visibility: visible; opacity: 1; }
  .app-frame > .sidebar { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; display: flex; width: min(310px,86vw); height: 100dvh; padding: 24px 18px 18px; align-items: stretch; flex-direction: column; gap: 0; overflow-y: auto; border-right: 1px solid var(--line); border-bottom: 0; transform: translateX(-105%); transition: transform .22s ease; }
  .app-frame > .sidebar.is-open { transform: translateX(0); }
  .app-frame > .sidebar > .brand { padding: 0 8px; }
  .app-frame > .sidebar .brand small { display: block; }
  .app-frame > .sidebar .side-nav { display: grid; flex: none; margin-top: 34px; overflow: visible; }
  .app-frame > .sidebar .nav-label { display: block; }
  .app-frame > .sidebar .nav-item { height: 44px; padding: 0 12px; }
  .app-frame > .sidebar .nav-item.disabled, .app-frame > .sidebar .nav-status { display: flex; }
  .app-frame > .sidebar .nav-item.active > i { display: block; }
  .app-frame > .sidebar .sidebar-foot { display: grid; margin-top: auto; }
  .app-frame > .sidebar .mini-safety { display: block; }
  .app-frame > .sidebar .user-info { display: grid; }
  .manual-position-row { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "coin coin" "cost cost" "value price" "total daily" "detail detail"; gap: 14px; padding: 16px; }
  .manual-position-row > .manual-position-coin { grid-area: coin; }
  .manual-position-row > .manual-cost { grid-area: cost; }
  .manual-position-row > .manual-current-price { grid-area: price; }
  .manual-position-row > .manual-position-value { grid-area: value; }
  .manual-position-row > [data-live-card="daily-pnl"] { grid-area: daily; }
  .manual-position-row > [data-live-card="total-pnl"] { grid-area: total; }
  .manual-position-row > .manual-detail-button { grid-area: detail; }
}

@media (max-width: 620px) {
  .manual-kpis { grid-template-columns: 1fr; }
  .manual-kpis article { min-height: 94px; }
  .manual-context-note { align-items: flex-start; flex-direction: column; }
  .manual-context-note i { margin-left: 0; }
  .manual-position-panel > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .manual-position-row { grid-template-columns: 1fr 1fr; }
  .manual-position-row > div > strong { font-size: 12px; }
  .manual-drawer { width: 100vw; height: min(92dvh,850px); margin-top: auto; }
  .manual-drawer-inner { border-top: 1px solid #344150; border-left: 0; border-radius: 18px 18px 0 0; }
  .manual-detail-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .manual-detail-summary > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .manual-detail-summary > div:nth-child(even) { border-right: 0; }
  .manual-detail-summary > div:last-child { grid-column: 1/-1; border-right: 0; border-bottom: 0; }
  .manual-market-metrics, .manual-form-grid, .manual-action form { grid-template-columns: 1fr; }
  .manual-exit-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .manual-exit-stats > div:nth-child(2) { border-right: 0; }
  .manual-exit-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .manual-exit-table article { grid-template-columns: 1fr; gap: 8px; }
  .manual-exit-table article > div:last-child { grid-column: auto; }
  .manual-form-wide, .manual-action .primary-button { grid-column: auto; }
  .manual-modal-card { padding: 19px; }
  .manual-closed > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Research / ambush pool -------------------------------------------------- */
.research-page-content { max-width: 1680px; }
.research-heading { align-items: center; }
.research-rule { display: grid; min-width: 330px; gap: 5px; padding: 14px 17px; background: linear-gradient(135deg,rgba(52,226,141,.09),rgba(62,139,255,.05)); border: 1px solid rgba(52,226,141,.2); border-radius: 13px; }
.research-rule strong { color: var(--green); font-size: 10px; letter-spacing: .1em; }
.research-rule span { color: #aabac7; font-size: 9px; }
.research-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.research-kpis article { display: grid; min-height: 116px; align-content: center; gap: 8px; padding: 18px 20px; overflow: hidden; background: linear-gradient(145deg,#111a22,#0d141b); border: 1px solid var(--line); border-radius: 15px; position: relative; }
.research-kpis article::after { position: absolute; right: -24px; bottom: -42px; width: 105px; height: 105px; content: ""; background: rgba(52,226,141,.08); border-radius: 50%; }
.research-kpis span { color: var(--muted); font-size: 10px; }
.research-kpis strong { color: var(--green); font-size: 28px; letter-spacing: -.04em; }
.research-kpis strong i { margin-left: 4px; color: #687987; font-size: 13px; font-style: normal; }
.research-kpis small { color: var(--muted-2); font-size: 9px; }
.research-review-overview { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 16px; margin-top: 12px; padding: 12px 18px; background: #111c24; border: 1px solid rgba(62,139,255,.24); border-radius: 11px; }
.research-review-overview > strong { color: #9ac0ff; font-size: 13px; }
.research-review-overview > span { color: #e4edf5; font-size: 13px; font-weight: 800; }
.research-review-overview > small { flex-basis: 100%; color: #9eb1be; font-size: 11px; line-height: 1.5; }
.research-warning { display: grid; grid-template-columns: auto 1fr; gap: 4px 13px; margin-top: 13px; padding: 12px 15px; background: rgba(246,185,59,.06); border: 1px solid rgba(246,185,59,.2); border-radius: 11px; }
.research-warning strong { color: #f4ca75; font-size: 10px; }
.research-warning span { color: #d8c498; font-size: 9px; overflow-wrap: anywhere; }
.research-warning small { grid-column: 2; color: var(--muted-2); font-size: 8px; }
.research-coverage { margin-top: 14px; overflow: hidden; background: linear-gradient(135deg,rgba(62,139,255,.055),#101820 42%); border: 1px solid rgba(62,139,255,.2); border-radius: 15px; }
.research-coverage.is-ready { border-color: rgba(52,226,141,.22); background: linear-gradient(135deg,rgba(52,226,141,.055),#101820 42%); }
.research-coverage > header { display: flex; min-height: 70px; padding: 15px 20px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line-soft); }
.research-coverage > header span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.research-coverage > header h2 { margin: 5px 0 0; color: #eef4f7; font-size: 20px; }
.research-coverage > header > strong { padding: 7px 11px; color: #58efb3; background: rgba(52,226,141,.08); border: 1px solid rgba(52,226,141,.24); border-radius: 999px; font-size: 11px; }
.research-coverage.is-warning > header > strong { color: #f4ca75; background: rgba(246,185,59,.08); border-color: rgba(246,185,59,.24); }
.research-coverage-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.research-foundation-heading { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; padding: 14px 20px 10px; border-top: 1px solid var(--line-soft); }
.research-foundation-heading strong { color: #dcecf3; font-size: 12px; }
.research-foundation-heading small { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.research-foundation-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.research-foundation-grid article { display: grid; min-height: 100px; align-content: center; gap: 7px; padding: 14px 20px; border-top: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.research-foundation-grid article:last-child { border-right: 0; }
.research-foundation-grid span { color: #9fb0bd; font-size: 11px; }
.research-foundation-grid strong { color: #eef5f8; font-size: 25px; letter-spacing: -.03em; }
.research-foundation-grid strong i { color: #8093a1; font-size: 12px; font-style: normal; }
.research-foundation-grid small { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.research-coverage-grid article { display: grid; min-height: 112px; align-content: center; gap: 7px; padding: 16px 20px; border-right: 1px solid var(--line-soft); }
.research-coverage-grid article:last-child { border-right: 0; }
.research-coverage-grid span { color: #9fb0bd; font-size: 11px; }
.research-coverage-grid strong { color: #eef5f8; font-size: 25px; letter-spacing: -.03em; }
.research-coverage-grid strong i { color: #8093a1; font-size: 12px; font-style: normal; }
.research-coverage-grid small { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.research-coverage > p { margin: 0; padding: 12px 20px; color: #8093a1; border-top: 1px solid var(--line-soft); font-size: 10px; line-height: 1.5; }
.research-coverage-errors { display: flex; padding: 11px 20px; flex-wrap: wrap; gap: 7px; align-items: center; border-top: 1px solid var(--line-soft); }
.research-coverage-errors > strong { margin-right: 3px; color: #f4ca75; font-size: 11px; }
.research-coverage-errors span { padding: 5px 7px; color: #bdc9d1; background: #0a1218; border: 1px solid rgba(246,185,59,.16); border-radius: 7px; font-size: 10px; }
.research-coverage-errors b { color: #f1c66d; }
.research-coverage-full { padding: 11px 20px; border-top: 1px solid var(--line-soft); color: #b9cbd3; font-size: 11px; }
.research-coverage-full summary { cursor: pointer; color: #f1c66d; font-weight: 800; }
.research-coverage-full > div { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 10px; }
.research-coverage-full span { padding: 5px 7px; background: #0a1218; border: 1px solid rgba(246,185,59,.16); border-radius: 7px; font-size: 10px; }
.research-core-strip, .research-candidates, .research-method { margin-top: 14px; background: #101820; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.research-core-strip > header, .research-candidates > header { display: flex; min-height: 77px; padding: 16px 20px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.research-core-strip header span, .research-candidates header span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.research-core-strip h2, .research-candidates h2 { margin: 5px 0 0; font-size: 17px; }
.research-core-strip header a { color: #8db6ff; font-size: 9px; }
.research-core-strip > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.research-core-strip article { display: grid; min-height: 92px; grid-template-columns: 1.2fr .8fr .9fr 1.8fr; gap: 18px; align-items: center; padding: 15px 20px; border-right: 1px solid var(--line-soft); background: linear-gradient(90deg,rgba(52,226,141,.035),transparent); }
.research-core-strip article:last-child { border-right: 0; }
.research-core-strip article > div:not(.research-symbol) { display: grid; gap: 5px; }
.research-core-strip article > div > span { color: var(--muted-2); font-size: 8px; }
.research-core-strip article > div > strong { color: #e9f2f8; font-size: 11px; }
.research-symbol { display: flex; min-width: 0; align-items: center; gap: 11px; }
.research-symbol > i { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; color: #06110d; background: linear-gradient(135deg,#58efb3,#2bd99d); border-radius: 11px; font-size: 14px; font-style: normal; font-weight: 950; }
.research-symbol > span { display: grid; min-width: 0; gap: 5px; }
.research-symbol strong { color: #f2f7fa; font-size: 12px; }
.research-symbol strong a { color: inherit; text-decoration: none; }
.research-symbol strong a:hover { color: var(--green); }
.research-symbol small { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 8px; }
.research-empty-inline { grid-column: 1/-1; display: flex !important; min-height: 88px !important; align-items: center; justify-content: center; flex-direction: column; gap: 7px; text-align: center; }
.research-empty-inline strong { color: #dce7ee; font-size: 11px; }
.research-empty-inline small { color: var(--muted-2); font-size: 9px; }
.research-tier-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.research-tier-legend i, .research-tier { padding: 4px 7px; border: 1px solid rgba(148,163,184,.22); border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 850; }
.research-tier-legend .tier-t0, .research-tier.t0 { color: #ffcd61; background: rgba(246,185,59,.08); border-color: rgba(246,185,59,.28); }
.research-tier-legend .tier-t1, .research-tier.t1 { color: #58efb3; background: rgba(52,226,141,.07); border-color: rgba(52,226,141,.25); }
.research-tier-legend .tier-t2, .research-tier.t2 { color: #79aaff; background: rgba(62,139,255,.07); border-color: rgba(62,139,255,.25); }
.research-tier-legend .tier-t3, .research-tier.t3 { color: #a2afba; }
.research-tier.unrated { color: #a2afba; background: rgba(148,163,184,.07); }
.research-tier.excluded { color: #c6b0ff; background: rgba(151,100,255,.08); border-color: rgba(151,100,255,.26); }
.research-identity-badges { flex-wrap: wrap; }
.research-tier-review { white-space: nowrap; }
.research-asset-category, .research-asset-unverified { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid rgba(148,163,184,.25); border-radius: 999px; color: #d4e1e8; background: rgba(148,163,184,.07); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.research-asset-category.is-general { color: #8ddcb9; border-color: rgba(52,226,141,.25); background: rgba(52,226,141,.07); }
.research-asset-category.is-fan { color: #a9c9ff; border-color: rgba(62,139,255,.27); background: rgba(62,139,255,.08); }
.research-asset-category.is-meme { color: #f4ca75; border-color: rgba(246,185,59,.27); background: rgba(246,185,59,.08); }
.research-asset-category.is-fiat, .research-asset-category.is-pegged { color: #cbb0ff; border-color: rgba(151,100,255,.28); background: rgba(151,100,255,.08); }
.research-asset-category.is-unknown, .research-asset-unverified { color: #f4ca75; border-color: rgba(246,185,59,.27); background: rgba(246,185,59,.08); }
.research-held-badge, .research-proxy-badge { padding: 4px 7px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.research-held-badge { color: #5ce4ad; background: rgba(52,226,141,.07); border: 1px solid rgba(52,226,141,.22); }
.research-proxy-badge { color: #f4ca75; background: rgba(246,185,59,.08); border: 1px solid rgba(246,185,59,.22); }
.research-operational-tier { color: #8fa3b0; font-size: 10px; white-space: nowrap; }
.research-table { overflow-x: auto; }
.research-table-head, .research-row { display: grid; min-width: 1390px; grid-template-columns: 1.05fr .7fr .78fr 1.1fr 1.45fr .95fr 1.3fr; gap: 17px; align-items: center; }
.research-table-head { min-height: 42px; padding: 0 18px; color: var(--muted-2); background: #0a1016; font-size: 8px; font-weight: 850; }
.research-row { min-height: 92px; padding: 13px 18px; border-top: 1px solid var(--line-soft); box-shadow: inset 3px 0 rgba(148,163,184,.22); }
.research-row.is-t0 { background: rgba(246,185,59,.025); box-shadow: inset 3px 0 rgba(246,185,59,.75); }
.research-row.is-t1 { background: rgba(52,226,141,.024); box-shadow: inset 3px 0 rgba(52,226,141,.75); }
.research-row.is-t2 { box-shadow: inset 3px 0 rgba(62,139,255,.7); }
.research-row > div:not(.research-symbol):not(.research-box):not(.research-reasons) { display: grid; gap: 5px; }
.research-row > div > strong { color: #e9f0f5; font-size: 11px; }
.research-row > div > small { color: var(--muted-2); font-size: 8px; }
.research-score strong { color: var(--green) !important; font-size: 20px !important; }
.research-score > span { display: block; height: 3px; overflow: hidden; background: #202d37; border-radius: 6px; }
.research-score > span i { display: block; height: 100%; background: linear-gradient(90deg,var(--blue),var(--green)); border-radius: inherit; }
.research-box { display: grid; gap: 9px; }
.research-box > div { display: grid; gap: 4px; }
.research-box > span { display: block; height: 7px; position: relative; background: linear-gradient(90deg,#2bd99d 0 34%,#3e8bff 34% 67%,#ff6478 67% 100%); border-radius: 8px; opacity: .78; }
.research-box > span i { position: absolute; top: -4px; width: 2px; height: 15px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 3px rgba(255,255,255,.16); transform: translateX(-1px); }
.research-reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.research-reasons span { padding: 5px 7px; color: #aebeca; background: #0b1218; border: 1px solid var(--line-soft); border-radius: 7px; font-size: 8px; }
.research-reasons .research-review-reason { flex-basis: 100%; color: #a9c9ff; border-color: rgba(62,139,255,.2); line-height: 1.5; overflow-wrap: anywhere; }
.research-detail-link { display: inline-flex; padding: 6px 9px; align-items: center; color: var(--green); background: rgba(52,226,141,.07); border: 1px solid rgba(52,226,141,.22); border-radius: 7px; font-size: 10px; font-weight: 850; text-decoration: none; }
.research-detail-link:hover { background: rgba(52,226,141,.13); }
.research-market-context { display: grid; gap: 4px; padding: 9px 10px; background: rgba(148,163,184,.035); border: 1px solid var(--line-soft); border-radius: 9px; }
.research-market-context strong { color: #d9e5ec; line-height: 1.45; font-size: 9px; }
.research-market-context small { color: var(--muted-2); font-size: 8px; }
.research-market-context.is-spot_buy_led, .research-market-context.is-aligned_buy { background: rgba(52,226,141,.055); border-color: rgba(52,226,141,.18); }
.research-market-context.is-spot_buy_led strong, .research-market-context.is-aligned_buy strong { color: #6cf0b8; }
.research-market-context.is-spot_sell_led, .research-market-context.is-aligned_sell { background: rgba(255,100,120,.055); border-color: rgba(255,100,120,.18); }
.research-market-context.is-spot_sell_led strong, .research-market-context.is-aligned_sell strong { color: #ff8496; }
.research-market-context.is-perp_buy_led, .research-market-context.is-perp_sell_led, .research-market-context.is-spot_buy_perp_sell, .research-market-context.is-spot_sell_perp_buy { background: rgba(246,185,59,.05); border-color: rgba(246,185,59,.18); }
.research-market-context.is-perp_buy_led strong, .research-market-context.is-perp_sell_led strong, .research-market-context.is-spot_buy_perp_sell strong, .research-market-context.is-spot_sell_perp_buy strong { color: #f1c66d; }
.research-market-cap em { width: fit-content; padding: 3px 6px; color: #7f97a8; background: rgba(148,163,184,.06); border-radius: 6px; font-size: 9px; font-style: normal; }
.research-market-cap.is-warning strong, .research-market-cap.is-warning em { color: #f4ca75; }
.research-market-cap.is-warning em { background: rgba(246,185,59,.09); border: 1px solid rgba(246,185,59,.2); }
.research-empty { display: grid; min-height: 235px; place-items: center; align-content: center; gap: 9px; padding: 30px; text-align: center; }
.research-empty i { color: var(--green); font-size: 34px; font-style: normal; }
.research-empty strong { color: #e5edf2; font-size: 14px; }
.research-empty span { max-width: 660px; color: var(--muted); line-height: 1.7; font-size: 10px; }
.research-method { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.research-method > div { display: grid; gap: 6px; padding: 18px 20px; border-right: 1px solid var(--line-soft); }
.research-method > div:last-child { border-right: 0; }
.research-method span { color: var(--violet); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.research-method strong { color: #e8eef2; font-size: 12px; }
.research-method p { margin: 0; color: var(--muted-2); line-height: 1.7; font-size: 9px; }

/* Research list typography: readable at 100% browser zoom. */
.research-rule strong { font-size: 11px; }
.research-rule span { font-size: 11px; line-height: 1.45; }
.research-kpis span { font-size: 11px; }
.research-kpis small { font-size: 10px; line-height: 1.45; }
.research-warning strong { font-size: 12px; }
.research-warning span { font-size: 11px; }
.research-warning small { font-size: 10px; }
.research-core-strip header span, .research-candidates header span { font-size: 10px; }
.research-core-strip h2, .research-candidates h2 { font-size: 20px; }
.research-core-strip header a { font-size: 11px; }
.research-core-strip article > div > span { font-size: 10px; }
.research-core-strip article > div > strong { font-size: 13px; line-height: 1.4; }
.research-symbol strong { font-size: 15px; }
.research-symbol small { font-size: 10px; line-height: 1.4; }
.research-tier-legend i, .research-tier { padding: 5px 8px; font-size: 10px; }
.research-table-head, .research-row { min-width: 1560px; grid-template-columns: 1.08fr .78fr .82fr 1.16fr 1.48fr 1fr 1.36fr; gap: 20px; }
.research-table-head { min-height: 49px; font-size: 11px; }
.research-row { min-height: 112px; padding-top: 16px; padding-bottom: 16px; }
.research-row > div > strong { font-size: 14px; line-height: 1.4; }
.research-row > div > small { font-size: 10px; line-height: 1.45; }
.research-score strong { font-size: 24px !important; }
.research-box > div strong { font-size: 15px; }
.research-box > div small { font-size: 11px; }
.research-reasons span { padding: 6px 8px; font-size: 10px; line-height: 1.4; }
.research-market-context { gap: 6px; padding: 11px 12px; }
.research-market-context strong { font-size: 12px; line-height: 1.5; }
.research-market-context small { font-size: 10px; line-height: 1.4; }
.research-empty strong { font-size: 16px; }
.research-empty span { font-size: 11px; }
.research-method span { font-size: 10px; }
.research-method strong { font-size: 14px; }
.research-method p { font-size: 11px; }

/* Research asset detail -------------------------------------------------- */
.research-detail-heading { align-items: flex-end; }
.research-back { display: inline-block; margin-bottom: 9px; color: #7f9db3; font-size: 9px; text-decoration: none; }
.research-back:hover { color: var(--green); }
.research-detail-price { display: grid; min-width: 210px; gap: 5px; padding: 13px 17px; text-align: right; background: linear-gradient(135deg,rgba(52,226,141,.08),rgba(62,139,255,.06)); border: 1px solid rgba(52,226,141,.2); border-radius: 13px; }
.research-detail-price span, .research-detail-price small { color: var(--muted-2); font-size: 8px; }
.research-detail-price strong { color: var(--green); font-size: 23px; }
.research-detail-hero { display: flex; min-height: 110px; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(110deg,rgba(148,163,184,.055),#101820 62%); border: 1px solid var(--line); border-radius: 15px; }
.research-detail-hero > div:first-child { display: grid; max-width: 780px; gap: 7px; }
.research-detail-hero > div:first-child span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.research-detail-hero > div:first-child strong { color: #eef5f8; font-size: 18px; }
.research-detail-hero > div:first-child small { color: var(--muted-2); font-size: 9px; }
.research-detail-hero.is-spot_buy_led, .research-detail-hero.is-aligned_buy { border-color: rgba(52,226,141,.25); background: linear-gradient(110deg,rgba(52,226,141,.085),#101820 62%); }
.research-detail-hero.is-spot_sell_led, .research-detail-hero.is-aligned_sell { border-color: rgba(255,100,120,.24); background: linear-gradient(110deg,rgba(255,100,120,.075),#101820 62%); }
.research-detail-hero.is-spot_buy_perp_sell, .research-detail-hero.is-spot_sell_perp_buy, .research-detail-hero.is-perp_buy_led, .research-detail-hero.is-perp_sell_led { border-color: rgba(246,185,59,.23); background: linear-gradient(110deg,rgba(246,185,59,.075),#101820 62%); }
.research-continuity { display: flex; max-width: 620px; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.research-continuity > span { display: grid; min-width: 190px; gap: 3px; padding: 10px 12px; background: #0a1218; border: 1px solid var(--line-soft); border-radius: 10px; }
.research-continuity > span i { color: var(--muted-2); font-size: 8px; font-style: normal; }
.research-continuity > span strong { color: #dce6ec; font-size: 10px; }
.research-continuity > span small { color: var(--muted-2); font-size: 8px; }
.research-continuity > span.is-in { border-color: rgba(52,226,141,.2); }
.research-continuity > span.is-in strong, .research-continuity > span.is-in small { color: var(--green); }
.research-continuity > span.is-out { border-color: rgba(255,100,120,.2); }
.research-continuity > span.is-out strong, .research-continuity > span.is-out small { color: var(--red); }
.research-detail-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 13px; }
.research-detail-kpis article { display: grid; min-height: 102px; align-content: center; gap: 7px; padding: 16px 18px; background: #101820; border: 1px solid var(--line); border-radius: 13px; }
.research-detail-kpis article > span, .research-detail-kpis article > small { color: var(--muted-2); font-size: 8px; }
.research-detail-kpis article > strong { color: #edf4f7; font-size: 20px; }
.research-detail-kpis article > strong i { margin-left: 3px; color: #60717e; font-size: 10px; font-style: normal; }
.research-detail-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.85fr); gap: 13px; margin-top: 13px; }
.research-detail-panel { overflow: hidden; background: #101820; border: 1px solid var(--line); border-radius: 15px; }
.research-detail-panel > header { display: flex; min-height: 70px; padding: 14px 18px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.research-detail-panel > header span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.research-detail-panel > header h2 { margin: 5px 0 0; font-size: 15px; }
.research-detail-panel > header > strong { color: #92a7b6; font-size: 9px; }
.research-box-scale { display: grid; grid-template-columns: auto minmax(120px,1fr) auto; gap: 16px; padding: 23px 22px 12px; align-items: end; }
.research-box-scale > div:not(.research-box-track) { display: grid; gap: 5px; }
.research-box-scale > div:last-child { text-align: right; }
.research-box-scale span { color: var(--muted-2); font-size: 8px; }
.research-box-scale strong { font-size: 12px; }
.research-box-track { height: 11px; position: relative; background: linear-gradient(90deg,#2bd99d 0 30%,#3e8bff 46% 67%,#ff6478 84% 100%); border-radius: 10px; }
.research-box-track::after { position: absolute; inset: -5px 33% -5px; content: ""; border-right: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.research-box-track i { position: absolute; z-index: 1; top: -6px; width: 3px; height: 23px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 4px rgba(255,255,255,.14),0 0 18px rgba(255,255,255,.35); transform: translateX(-1px); }
.research-box-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 10px 22px 20px; }
.research-box-facts > span { display: grid; gap: 5px; padding: 10px 12px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.research-box-facts > span:nth-child(3n) { border-right: 0; }
.research-box-facts > span:nth-last-child(-n+3) { border-bottom: 0; }
.research-box-facts small { color: var(--muted-2); font-size: 8px; }
.research-box-facts strong { color: #e6eef3; font-size: 11px; }
.research-score-panel { display: grid; grid-template-columns: 105px 1fr; grid-template-rows: auto 1fr auto; }
.research-score-panel > header { grid-column: 1/-1; }
.research-score-ring { display: grid; width: 82px; height: 82px; margin: 20px 0 15px 18px; place-content: center; text-align: center; background: radial-gradient(circle at center,#101820 57%,transparent 59%),conic-gradient(var(--green) calc(var(--score) * 1%),#24313b 0); border-radius: 50%; }
.research-score-ring strong { color: var(--green); font-size: 23px; }
.research-score-ring small { color: var(--muted-2); font-size: 7px; }
.research-score-reasons { display: flex; padding: 18px 18px 10px 10px; align-content: flex-start; flex-wrap: wrap; gap: 6px; }
.research-score-reasons span { padding: 6px 8px; color: #b6c5cf; background: #0b1218; border: 1px solid var(--line-soft); border-radius: 8px; font-size: 8px; }
.research-score-panel > p { grid-column: 1/-1; margin: 0; padding: 0 18px 17px; color: var(--muted-2); font-size: 8px; }
.research-flow-panel, .research-history-panel { margin-top: 13px; }
.research-flow-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.research-flow-cards > article { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; padding: 18px 20px 20px; border-right: 1px solid var(--line-soft); }
.research-flow-cards > article:last-child { border-right: 0; }
.research-flow-cards article > header { display: flex; grid-column: 1/-1; padding-bottom: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.research-flow-cards article > header span { font-size: 11px; font-weight: 900; }
.research-flow-cards .is-spot > header span { color: var(--green); }
.research-flow-cards .is-perp > header span { color: #79aaff; }
.research-flow-cards .is-derivative > header span { color: var(--violet); }
.research-flow-cards article > header small { color: var(--muted-2); font-size: 8px; }
.research-flow-cards article > div { display: grid; gap: 4px; }
.research-flow-cards article > div span { color: var(--muted-2); font-size: 8px; }
.research-flow-cards article > div strong { color: #e5edf2; font-size: 11px; }
.research-flow-cards article > div strong b { font-weight: 850; }
.research-flow-cards article > p { grid-column: 1/-1; color: var(--muted-2); font-size: 9px; }
.research-history-head, .research-history-list article { display: grid; grid-template-columns: .75fr 1fr 1fr .65fr 1.7fr; gap: 15px; align-items: center; }
.research-history-head { min-height: 39px; padding: 0 18px; color: var(--muted-2); background: #0a1016; font-size: 8px; font-weight: 850; }
.research-history-list article { min-height: 62px; padding: 9px 18px; border-top: 1px solid var(--line-soft); }
.research-history-list time, .research-history-list article > strong { color: #c4d0d8; font-size: 9px; }
.research-history-list article > div { display: grid; gap: 5px; }
.research-history-list article > div strong { font-size: 9px; }
.research-history-list article > div span { display: block; height: 3px; overflow: hidden; background: #1e2932; border-radius: 5px; }
.research-history-list article > div span i { display: block; height: 100%; background: currentColor; border-radius: inherit; }
.research-history-list article > div small { color: var(--muted-2); font-size: 8px; }
.research-history-list p { margin: 0; color: #9eafbb; line-height: 1.45; font-size: 8px; }
.research-health-grid { grid-template-columns: 1.15fr .85fr; }
.research-health-list { display: grid; }
.research-health-list > div { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; min-height: 62px; padding: 12px 17px; align-items: center; border-top: 1px solid var(--line-soft); }
.research-health-list > div:first-child { border-top: 0; }
.research-health-list > div > i { width: 7px; height: 7px; background: #63727d; border-radius: 50%; }
.research-health-list > div > i.is-fresh { background: var(--green); box-shadow: 0 0 10px rgba(52,226,141,.45); }
.research-health-list > div > i.is-stale { background: var(--amber); }
.research-health-list > div > i.is-missing { background: var(--red); }
.research-health-list > div > span { display: grid; gap: 4px; }
.research-health-list strong { font-size: 9px; }
.research-health-list small { color: var(--muted-2); font-size: 8px; }
.research-health-list em { color: #d39b79; font-size: 7px; font-style: normal; overflow-wrap: anywhere; }
.research-health-list b { color: #8ca0af; font-size: 8px; }
.research-source-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; padding: 16px; }
.research-source-list > span { display: grid; gap: 5px; padding: 10px 11px; background: #0b1218; }
.research-source-list small { color: var(--muted-2); font-size: 8px; }
.research-source-list strong { color: #dce7ed; font-size: 9px; overflow-wrap: anywhere; }
.research-source-list > i { padding: 6px 8px; color: #8db6ff; background: rgba(62,139,255,.06); border-radius: 6px; font-size: 7px; font-style: normal; }
.research-missing-list { display: flex; padding: 0 16px 16px; flex-wrap: wrap; gap: 6px; }
.research-missing-list span { padding: 6px 8px; color: #e1b16a; background: rgba(246,185,59,.06); border: 1px solid rgba(246,185,59,.17); border-radius: 7px; font-size: 8px; }
.research-complete { margin: 0 16px 16px; padding: 10px; color: var(--green); background: rgba(52,226,141,.06); border: 1px solid rgba(52,226,141,.18); border-radius: 8px; font-size: 9px; }
.research-detail-empty { min-height: 130px; display: grid; padding: 25px; place-items: center; color: var(--muted-2); font-size: 9px; text-align: center; }

.research-unlock-panel { margin-top: 13px; }
.research-unlock-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 17px; }
.research-unlock-grid article { display: grid; min-width: 0; align-content: start; gap: 8px; padding: 15px; background: #0b151c; border: 1px solid var(--line-soft); border-radius: 11px; }
.research-unlock-grid article.is-high { background: rgba(255,100,120,.07); border-color: rgba(255,100,120,.28); }
.research-unlock-grid article.is-watch { background: rgba(246,185,59,.06); border-color: rgba(246,185,59,.25); }
.research-unlock-grid span { color: #a8bac5; font-size: 13px; }
.research-unlock-grid strong { color: #e7f2f4; font-size: 17px; overflow-wrap: anywhere; }
.research-unlock-grid article.is-high strong { color: #ff8496; }
.research-ignition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.research-ignition-note { margin: 0 17px 17px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; color: #c7d8df; font-size: 14px; line-height: 1.55; }
.research-unlock-grid small { color: #9cabb7; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.research-unlock-summary { display: grid; gap: 7px; margin: 0 17px 16px; padding: 15px; background: rgba(52,226,141,.045); border: 1px solid rgba(52,226,141,.18); border-radius: 10px; }
.research-unlock-summary.is-risk { background: rgba(255,100,120,.07); border-color: rgba(255,100,120,.3); }
.research-unlock-summary strong { color: #76eab9; font-size: 15px; }
.research-unlock-summary.is-risk strong { color: #ff8496; }
.research-unlock-summary span { color: #d8e5e8; font-size: 13px; line-height: 1.5; }
.research-unlock-summary small { color: #a8bac5; font-size: 12px; line-height: 1.5; }
.research-unlock-discrepancy { margin: 0 17px 16px; padding: 12px 14px; color: #ffd891; background: rgba(246,185,59,.08); border: 1px solid rgba(246,185,59,.28); border-radius: 9px; font-size: 13px; line-height: 1.5; }
.research-unlock-audit { margin: 0 17px 16px; padding: 12px 14px; color: #c8d6dd; background: #0b151c; border: 1px solid var(--line-soft); border-radius: 9px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.research-unlock-audit summary { color: #8deac3; cursor: pointer; font-weight: 700; }
.research-unlock-audit p { margin: 9px 0 0; }
.research-unlock-allocations { padding: 0 17px 16px; }
.research-unlock-allocations h3 { margin: 0 0 9px; color: #eaf3f4; font-size: 16px; }
.research-unlock-allocations > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.research-unlock-allocations article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; min-width: 0; padding: 12px; background: #0b151c; border: 1px solid var(--line-soft); border-radius: 9px; }
.research-unlock-allocations article strong { color: #e5eef2; font-size: 13px; overflow-wrap: anywhere; }
.research-unlock-allocations article span { color: #c8d6dd; font-size: 12px; }
.research-unlock-allocations article small { grid-column: 1 / -1; color: #a8bac5; font-size: 11px; }
.research-unlock-source { margin: 0; padding: 12px 17px; color: #9faeba; border-top: 1px solid var(--line-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.research-maturity-summary { display: grid; gap: 7px; margin: 0 17px 16px; padding: 15px; background: rgba(52,226,141,.045); border: 1px solid rgba(52,226,141,.2); border-radius: 10px; }
.research-maturity-summary strong { color: #70eabb; font-size: 18px; }
.research-maturity-summary span { color: #e0eee9; font-size: 13px; line-height: 1.5; }
.research-maturity-summary small { color: #a8bac5; font-size: 12px; line-height: 1.5; }

/* Research maturity watch: score and stage lead; audit detail stays optional. */
.research-review-overview { display: block; }
.research-review-overview > summary, .research-coverage-collapse > summary, .research-tier-filters > summary { color: #c2d5de; font-size: 13px; font-weight: 750; cursor: pointer; }
.research-review-overview > span, .research-review-overview > small { display: block; margin-top: 8px; }
.research-coverage-collapse { margin-top: 12px; padding: 12px 16px; background: #0f1820; border: 1px solid var(--line); border-radius: 12px; }
.research-coverage-collapse > summary small { margin-left: 10px; color: #93aab7; font-size: 12px; font-weight: 500; }
.research-coverage-collapse > .research-coverage { margin-top: 12px; }
.research-tier-filters { margin: 3px 0 8px; padding: 11px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.research-tier-filters > p { margin: 3px 0 0 124px; color: #93aab7; font-size: 12px; line-height: 1.5; }
.research-scoring-method { margin: 3px 0 0 124px; color: #93aab7; font-size: 12px; line-height: 1.5; }
.research-scoring-method > summary { cursor: pointer; }
.research-scoring-method > p { margin: 6px 0 0; }
.research-watch-stage, .research-spot-badge { display: inline-flex; width: fit-content; align-items: center; padding: 5px 8px; color: #a8c8df; background: rgba(62,139,255,.07); border: 1px solid rgba(62,139,255,.25); border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.research-watch-stage.is-base, .research-watch-stage.is-improving { color: #69e9b4; background: rgba(52,226,141,.07); border-color: rgba(52,226,141,.25); }
.research-watch-stage.is-early_strength { color: #c6afff; background: rgba(151,100,255,.07); border-color: rgba(151,100,255,.3); }
.research-watch-stage.is-wait_pullback { color: #f4ca75; background: rgba(246,185,59,.07); border-color: rgba(246,185,59,.28); }
.research-watch-stage.is-weakening { color: #ff91a0; background: rgba(255,100,120,.07); border-color: rgba(255,100,120,.3); }
.research-watch-stage.is-pending { color: #a8b8c3; background: rgba(148,163,184,.06); border-color: rgba(148,163,184,.22); }
.research-spot-badge { padding: 4px 7px; color: #a8c8df; font-size: 10px; }
.research-watch-warning { color: #d6bc86 !important; font-size: 11px !important; line-height: 1.5; }
.research-watch-warning:empty { display: none; }
.research-rank { color: #bad9cb !important; font-weight: 750; }
.research-base-metrics { align-content: start; }
.research-base-metrics > small { line-height: 1.5 !important; overflow-wrap: anywhere; }
.research-base-metrics > .research-history-label { color: #a5c6d6 !important; padding-top: 3px; border-top: 1px solid var(--line-soft); }
.research-reasons > .research-watch-reason { flex-basis: 100%; color: #bce6d2; background: rgba(52,226,141,.035); border-color: rgba(52,226,141,.15); }
.research-reasons > .research-watch-warning { flex-basis: 100%; }
.research-row-auxiliary { flex: 0 0 100%; font-size: 11px; line-height: 1.5; }
.research-row-auxiliary > summary { padding: 5px 0; color: #93aab7; cursor: pointer; }
.research-row-auxiliary > span { display: block; margin: 4px 0; }
.research-row-auxiliary > .research-mobile-metrics { display: none; }
.research-row.is-watch-early_strength { box-shadow: inset 3px 0 rgba(151,100,255,.55); }
.research-row.is-watch-wait_pullback { box-shadow: inset 3px 0 rgba(246,185,59,.5); }
.research-row.is-watch-weakening { box-shadow: inset 3px 0 rgba(255,100,120,.5); }
.research-watch-warnings { display: grid; gap: 6px; margin: 0 17px 16px; }
.research-watch-warnings > span { color: #d6bc86; font-size: 12px; line-height: 1.5; }

/* Research script state machine ---------------------------------------- */
.research-search { position: relative; z-index: 3; display: grid; gap: 8px; margin-top: 14px; padding: 17px 20px; background: #142029; border: 1px solid var(--line); border-radius: 14px; }
.research-search > label { color: #e3eff2; font-size: 15px; font-weight: 850; }
.research-search-line { display: flex; gap: 9px; }
.research-search-line input { min-width: 0; flex: 1; min-height: 45px; padding: 10px 13px; color: #edf8f5; background: #0b141a; border: 1px solid #38515b; border-radius: 9px; font-size: 15px; }
.research-search-line input:focus { outline: 2px solid #54dea8; outline-offset: 1px; }
.research-search-line button { min-width: 90px; padding: 10px 15px; color: #092319; background: #5be4ae; border: 0; border-radius: 9px; font-size: 14px; font-weight: 900; cursor: pointer; }
.research-search > small { color: #a8bac4; font-size: 13px; }
.research-search-results { position: absolute; top: calc(100% - 6px); left: 20px; right: 20px; max-height: 355px; overflow-y: auto; background: #0c171d; border: 1px solid #416158; border-radius: 10px; box-shadow: 0 18px 36px rgba(0,0,0,.4); }
.research-search-results[hidden] { display: none; }
.research-search-results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px; color: #dcebe9; border-bottom: 1px solid var(--line-soft); font-size: 13px; text-decoration: none; }
.research-search-results a:hover, .research-search-results a:focus { background: rgba(91,228,174,.11); }
.research-search-results a strong { color: #67e9b3; font-size: 15px; }
.research-search-results p { margin: 0; padding: 14px; color: #b8c9d0; font-size: 13px; }
.research-mobile-detail { display: none; }
.research-row[id] { scroll-margin-top: 100px; }
.research-detail-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 12px 0 15px; padding: 12px 16px; background: #142029; border: 1px solid var(--line); border-radius: 12px; }
.research-detail-nav > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.research-detail-nav > div:first-child strong { color: #e7f2ef; font-size: 14px; }
.research-detail-nav > div:first-child span { color: #acbec7; font-size: 13px; }
.research-detail-nav a, .research-detail-nav .is-disabled { display: inline-flex; min-height: 39px; align-items: center; padding: 9px 12px; border: 1px solid rgba(52,226,141,.3); border-radius: 8px; color: #64e9b2; text-decoration: none; font-size: 13px; font-weight: 850; }
.research-detail-nav a:hover { background: rgba(52,226,141,.1); }
.research-detail-nav .is-disabled { border-color: var(--line-soft); color: #74838d; }
.research-state-summary { display: flex; max-width: 820px; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.research-filter-panel { display: grid; gap: 2px; padding: 12px 20px 13px; border-bottom: 1px solid var(--line-soft); background: #0c151c; }
.research-filter-row { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 14px; align-items: start; padding: 9px 0; }
.research-filter-row + .research-filter-row { border-top: 1px solid var(--line-soft); }
.research-filter-row > strong { padding-top: 10px; color: #e2efec; font-size: 13px; white-space: nowrap; }
.research-filter-options { display: flex; flex-wrap: wrap; gap: 7px; }
.research-filter-chip { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 8px 12px; color: #b9c8d0; background: #0a1218; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 13px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.research-filter-chip small { display: inline-block; min-width: 19px; padding: 2px 5px; border-radius: 999px; background: rgba(255,255,255,.07); color: inherit; font-size: 11px; font-weight: 900; line-height: 1.2; text-align: center; }
.research-filter-chip:hover, .research-filter-chip:focus { border-color: #65e8b1; background: rgba(52,226,141,.11); }
.research-filter-chip.is-green { color: #65efb7; border-color: rgba(52,226,141,.23); background: rgba(52,226,141,.06); }
.research-filter-chip.is-amber { color: #f2c96c; border-color: rgba(246,185,59,.23); background: rgba(246,185,59,.06); }
.research-filter-chip.is-meme { color: #f4ca75; border-color: rgba(246,185,59,.23); background: rgba(246,185,59,.06); }
.research-filter-chip.is-violet { color: #c5a5ff; border-color: rgba(151,100,255,.26); background: rgba(151,100,255,.07); }
.research-filter-chip.is-red { color: #ff8496; border-color: rgba(255,100,120,.23); background: rgba(255,100,120,.06); }
.research-filter-chip.is-active { border-color: currentColor; box-shadow: 0 0 0 1px currentColor inset; }
.research-filter-note { margin: 2px 0 0 124px; color: #94a9b4; font-size: 12px; line-height: 1.5; }
.research-list-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 20px; color: #b9c9d1; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.research-list-summary strong { color: #e9f1f3; font-size: 14px; }
.research-list-summary > div { display: flex; align-items: center; gap: 14px; }
.research-list-summary a { color: #64e8b2; text-decoration: none; }
.research-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 15px; border-top: 1px solid var(--line-soft); color: #b8c8d0; font-size: 13px; }
.research-pagination a { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 13px; color: #65e9b4; border: 1px solid rgba(52,226,141,.35); border-radius: 8px; text-decoration: none; font-weight: 850; }
.research-pagination a:hover { background: rgba(52,226,141,.1); }
.research-pagination a.is-disabled { color: #61737c; border-color: var(--line-soft); pointer-events: none; }
.research-script-badge { display: inline-flex; width: fit-content; padding: 5px 8px; align-items: center; color: #aab8c2; background: rgba(148,163,184,.07); border: 1px solid rgba(148,163,184,.2); border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 900; white-space: nowrap; }
.research-script-badge.is-green { color: #61efb4; background: rgba(52,226,141,.09); border-color: rgba(52,226,141,.28); }
.research-script-badge.is-blue { color: #86b2ff; background: rgba(62,139,255,.09); border-color: rgba(62,139,255,.28); }
.research-script-badge.is-amber { color: #f4ca75; background: rgba(246,185,59,.09); border-color: rgba(246,185,59,.28); }
.research-script-badge.is-violet { color: #c5a5ff; background: rgba(151,100,255,.09); border-color: rgba(151,100,255,.28); }
.research-script-badge.is-red { color: #ff8496; background: rgba(255,100,120,.09); border-color: rgba(255,100,120,.28); }
.research-state-reason { flex-basis: 100%; color: #c8d4dc !important; line-height: 1.5 !important; }
.research-state-reason.is-green { color: #6beebb !important; border-color: rgba(52,226,141,.2) !important; }
.research-state-reason.is-amber { color: #f0ca79 !important; border-color: rgba(246,185,59,.2) !important; }
.research-state-reason.is-red { color: #ff8fa0 !important; border-color: rgba(255,100,120,.2) !important; }
.research-script-hero.is-green { border-color: rgba(52,226,141,.3); background: linear-gradient(110deg,rgba(52,226,141,.1),#101820 62%); }
.research-script-hero.is-blue { border-color: rgba(62,139,255,.28); background: linear-gradient(110deg,rgba(62,139,255,.09),#101820 62%); }
.research-script-hero.is-amber { border-color: rgba(246,185,59,.28); background: linear-gradient(110deg,rgba(246,185,59,.09),#101820 62%); }
.research-script-hero.is-violet { border-color: rgba(151,100,255,.28); background: linear-gradient(110deg,rgba(151,100,255,.09),#101820 62%); }
.research-script-hero.is-red { border-color: rgba(255,100,120,.3); background: linear-gradient(110deg,rgba(255,100,120,.1),#101820 62%); }
.research-script-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.research-script-title small { color: #9aabb7 !important; }
.research-asset-identity-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 4px; }
.research-detail-hero .research-asset-identity-summary span { color: #b8c8d1; font-size: 11px; font-weight: 600; letter-spacing: normal; }
.research-asset-identity-summary a { color: #9ac0ff; font-size: 11px; font-weight: 700; text-decoration: none; }
.research-asset-identity-summary a:hover { text-decoration: underline; }
.research-state-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 13px; }
.research-state-facts { display: grid; gap: 8px; padding: 17px 18px 19px; }
.research-state-facts span { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center; color: #c7d3da; line-height: 1.5; font-size: 12px; }
.research-state-facts i { display: grid; width: 19px; height: 19px; place-items: center; color: #55e9ae; background: rgba(52,226,141,.09); border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 950; }
.research-state-facts.is-risk i { color: #f3c86d; background: rgba(246,185,59,.09); }
.research-event-panel { margin-top: 13px; }
.research-event-list { display: grid; }
.research-event-list article { display: grid; grid-template-columns: 150px minmax(220px,.75fr) minmax(260px,1.6fr) 70px; min-height: 66px; padding: 11px 18px; align-items: center; gap: 16px; border-top: 1px solid var(--line-soft); }
.research-event-list article:first-child { border-top: 0; }
.research-event-list time { color: #899ca9; font-size: 11px; }
.research-event-list article > div { display: flex; align-items: center; gap: 8px; }
.research-event-list article > div span { color: #8798a5; font-size: 11px; }
.research-event-list article > div i { color: #5e707d; font-style: normal; }
.research-event-list article > div strong { font-size: 12px; }
.research-event-list article > div strong.is-green { color: var(--green); }
.research-event-list article > div strong.is-blue { color: #79aaff; }
.research-event-list article > div strong.is-amber { color: #f2c96c; }
.research-event-list article > div strong.is-violet { color: #c09dff; }
.research-event-list article > div strong.is-red { color: var(--red); }
.research-event-list p { margin: 0; color: #b5c3cc; line-height: 1.5; font-size: 11px; }
.research-event-list article > b { color: #e9f0f4; font-size: 12px; text-align: right; }
.research-event-list article > .research-event-forward { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.research-event-forward > span { padding: 6px 9px; border: 1px solid var(--line-soft); border-radius: 7px; color: #b9cbd3; background: #0c141b; font-size: 12px !important; }
.research-event-forward strong { font-size: 12px; }

/* Research signal audit: readable evidence, not a trading scorecard. */
.research-audit-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.research-audit-kpis article { display: grid; gap: 7px; min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #142029; }
.research-audit-kpis span, .research-audit-kpis small { color: #a8bac4; font-size: 13px; line-height: 1.4; }
.research-audit-kpis strong { color: #63eeb3; font-size: 29px; line-height: 1.1; }
.research-audit-kpis strong.research-audit-time { color: #dcebf1; font-size: 16px; }
.research-audit-kpis strong.is-negative { color: #ff8190; }
.research-audit-panel { margin-bottom: 14px; }
.research-audit-note { margin: 0; padding: 16px 18px; color: #afc2cc; font-size: 14px; line-height: 1.65; }
.research-audit-table-wrap { overflow-x: auto; }
.research-audit-table { width: 100%; min-width: 930px; border-collapse: collapse; text-align: left; }
.research-audit-table th, .research-audit-table td { padding: 15px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; font-size: 14px; }
.research-audit-table thead th { color: #aabcc6; background: #0c141b; font-size: 13px; }
.research-audit-table tbody th { color: #e8f0f3; white-space: nowrap; }
.research-audit-table td strong { display: block; color: #dce8ee; font-size: 14px; }
.research-audit-table td strong.is-positive { color: #60e9ad; }
.research-audit-table td strong.is-negative { color: #ff8190; }
.research-audit-table td small { display: block; margin-top: 4px; color: #9dafbb; font-size: 12px; white-space: nowrap; }
.research-audit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.research-audit-churn-list, .research-audit-event-list { max-height: 650px; overflow-y: auto; }
.research-audit-churn-list a, .research-audit-event-list a { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 57px; padding: 12px 17px; border-top: 1px solid var(--line-soft); color: #dce9ef; text-decoration: none; font-size: 13px; }
.research-audit-churn-list a:hover, .research-audit-event-list a:hover { background: rgba(89,225,171,.06); }
.research-audit-churn-list a > strong { min-width: 75px; color: #70e9b4; font-size: 15px; }
.research-audit-churn-list a > small { color: #a9b9c3; font-size: 12px; }
.research-audit-churn-list a > i { margin-left: auto; color: #72e8b7; font-style: normal; font-size: 12px; }
.research-audit-event-list a > span:first-child { display: grid; min-width: 110px; gap: 3px; }
.research-audit-event-list a strong { color: #70e9b4; font-size: 15px; }
.research-audit-event-list a small { color: #a8bac4; font-size: 12px; }
.research-audit-event-list a > small { margin-left: auto; }

/* Detail typography: keep supporting text readable on desktop and mobile. */
.research-detail-heading p { font-size: 13px; line-height: 1.65; }
.research-detail-heading .phase-badge { padding: 6px 10px; font-size: 11px; }
.research-back { font-size: 12px; }
.research-detail-price span, .research-detail-price small { font-size: 11px; }
.research-detail-hero > div:first-child span { font-size: 10px; }
.research-detail-hero > div:first-child strong { font-size: 23px; line-height: 1.35; }
.research-detail-hero > div:first-child small { font-size: 12px; line-height: 1.55; }
.research-continuity > span i { font-size: 11px; }
.research-continuity > span strong { font-size: 13px; }
.research-continuity > span small { font-size: 11px; }
.research-detail-kpis article > span, .research-detail-kpis article > small { font-size: 11px; line-height: 1.45; }
.research-detail-kpis article > strong { font-size: 24px; }
.research-detail-kpis article > strong i { font-size: 12px; }
.research-detail-panel > header span { font-size: 10px; }
.research-detail-panel > header h2 { font-size: 19px; }
.research-detail-panel > header > strong { font-size: 12px; }
.research-box-scale span { font-size: 11px; }
.research-box-scale strong { font-size: 15px; }
.research-box-facts small { font-size: 11px; }
.research-box-facts strong { font-size: 14px; }
.research-score-ring small { font-size: 9px; }
.research-score-reasons span { font-size: 11px; line-height: 1.35; }
.research-score-panel > p { font-size: 10px; line-height: 1.5; }
.research-flow-cards article > header span { font-size: 14px; }
.research-flow-cards article > header small { font-size: 11px; }
.research-flow-cards article > div span { font-size: 11px; }
.research-flow-cards article > div strong { font-size: 14px; }
.research-flow-cards article > p { font-size: 11px; line-height: 1.5; }
.research-history-head { font-size: 10px; }
.research-history-list time, .research-history-list article > strong { font-size: 11px; }
.research-history-list article > div strong { font-size: 11px; }
.research-history-list article > div small { font-size: 10px; }
.research-history-list p { font-size: 11px; line-height: 1.5; }
.research-health-list strong { font-size: 12px; }
.research-health-list small { font-size: 10px; line-height: 1.45; }
.research-health-list em { font-size: 10px; line-height: 1.4; }
.research-health-list b { font-size: 10px; }
.research-source-list small { font-size: 10px; }
.research-source-list strong { font-size: 12px; }
.research-source-list > i { font-size: 10px; }
.research-missing-list span { font-size: 10px; line-height: 1.4; }
.research-complete, .research-detail-empty { font-size: 11px; line-height: 1.55; }

@media (max-width: 1100px) {
  .research-unlock-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-audit-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-audit-grid { grid-template-columns: 1fr; }
  .research-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-coverage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-foundation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-foundation-grid article:nth-child(2) { border-right: 0; }
  .research-coverage-grid article:nth-child(2) { border-right: 0; }
  .research-coverage-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .research-core-strip > div { grid-template-columns: 1fr; }
  .research-core-strip article { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .research-core-strip article:last-child { border-bottom: 0; }
  .research-detail-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-detail-grid, .research-health-grid, .research-state-grid { grid-template-columns: 1fr; }
  .research-flow-cards { grid-template-columns: 1fr; }
  .research-flow-cards > article { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .research-flow-cards > article:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .research-unlock-grid, .research-unlock-allocations > div { grid-template-columns: 1fr; }
  .research-mobile-detail { display: inline-flex; width: fit-content; min-height: 38px; align-items: center; padding: 7px 11px; border: 1px solid rgba(52,226,141,.35); border-radius: 8px; background: rgba(52,226,141,.08); color: #70efba; text-decoration: none; font-size: 13px; font-weight: 850; }
  .research-detail-nav { align-items: stretch; flex-direction: column; }
  .research-detail-nav > div:last-child { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-detail-nav a, .research-detail-nav .is-disabled { justify-content: center; text-align: center; }
  .research-search { padding: 13px; }
  .research-search-results { left: 13px; right: 13px; }
  .research-search-results a { align-items: flex-start; flex-direction: column; gap: 2px; }
  .research-list-summary { align-items: flex-start; flex-direction: column; }
  .research-list-summary > div { flex-wrap: wrap; }
  .research-filter-chip { min-height: 42px; font-size: 13px; }
  .research-filter-panel { padding: 11px 14px 13px; }
  .research-filter-row { grid-template-columns: 1fr; gap: 7px; }
  .research-filter-row > strong { padding-top: 0; }
  .research-maturity-filter-row .research-filter-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .research-maturity-filter-row .research-filter-chip { flex: 0 0 auto; }
  .research-filter-note { margin-left: 0; }
  .research-review-overview { display: grid; gap: 5px; padding: 11px 14px; }
  .research-review-overview > span { font-size: 12px; line-height: 1.5; }
  .research-review-overview > small { font-size: 11px; }
  .research-audit-kpis { gap: 8px; }
  .research-audit-kpis article { padding: 13px; min-height: 104px; }
  .research-audit-kpis strong { font-size: 23px; }
  .research-audit-kpis span, .research-audit-kpis small { font-size: 12px; }
  .research-audit-event-list a > small { margin-left: 0; width: 100%; }
  .research-heading { align-items: stretch; flex-direction: column; }
  .research-detail-heading { align-items: stretch; flex-direction: column; }
  .research-detail-price { min-width: 0; text-align: left; }
  .research-detail-hero { align-items: stretch; flex-direction: column; }
  .research-continuity { justify-content: stretch; }
  .research-continuity > span { min-width: 0; flex: 1 1 180px; }
  .research-rule { min-width: 0; }
  .research-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .research-kpis article { min-height: 100px; padding: 14px; }
  .research-kpis strong { font-size: 23px; }
  .research-warning { grid-template-columns: 1fr; }
  .research-warning small { grid-column: 1; }
  .research-coverage > header { align-items: flex-start; flex-direction: column; }
  .research-coverage-grid { grid-template-columns: 1fr; }
  .research-foundation-grid { grid-template-columns: 1fr; }
  .research-foundation-grid article { min-height: 90px; border-right: 0; }
  .research-foundation-heading { display: grid; gap: 4px; }
  .research-coverage-grid article { min-height: 96px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .research-coverage-grid article:last-child { border-bottom: 0; }
  .research-core-strip > header, .research-candidates > header { align-items: flex-start; flex-direction: column; }
  .research-state-summary { justify-content: flex-start; }
  .research-core-strip article { grid-template-columns: 1.2fr 1fr; gap: 12px; }
  .research-core-strip article > div:last-child { grid-column: 2; }
  .research-method { grid-template-columns: 1fr; }
  .research-method > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .research-method > div:last-child { border-bottom: 0; }
  .research-detail-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .research-detail-kpis article { min-height: 90px; padding: 13px; }
  .research-detail-kpis article > strong { font-size: 20px; }
  .research-box-scale { grid-template-columns: 1fr; align-items: stretch; }
  .research-box-scale > div:last-child { text-align: left; }
  .research-box-track { order: 3; }
  .research-box-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-box-facts > span:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .research-box-facts > span:nth-child(even) { border-right: 0; }
  .research-box-facts > span:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .research-box-facts > span:nth-last-child(-n+2) { border-bottom: 0; }
  .research-score-panel { grid-template-columns: 98px 1fr; }
  .research-history-panel { overflow-x: auto; }
  .research-history-head, .research-history-list { min-width: 780px; }
  .research-event-panel { overflow-x: auto; }
  .research-event-list { min-width: 850px; }
  .research-source-list { grid-template-columns: 1fr; }
}

/* Research on phones: keep each candidate and historical window in view. */
@media (max-width: 720px) {
  .research-page-content, .research-page-content main { min-width: 0; }
  .research-candidates > header { gap: 12px; }
  .research-state-summary { width: 100%; }
  .research-table { overflow-x: visible; }
  .research-table-head { display: none; }
  .research-row { min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin: 10px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; }
  .research-row > div { min-width: 0; }
  .research-row > .research-symbol, .research-row > div:nth-child(n+4) { grid-column: 1 / -1; }
  .research-row > .research-symbol { padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
  .research-row .research-symbol small { flex-wrap: wrap; }
  .research-row > div[data-label]::before { content: attr(data-label); display: block; color: #a9bac4; font-size: 12px; font-weight: 800; line-height: 1.35; }
  .research-row > div:nth-child(2), .research-row > div:nth-child(3) { align-content: start; gap: 5px; padding: 10px; background: rgba(148,163,184,.045); border: 1px solid var(--line-soft); border-radius: 9px; }
  .research-row > div:nth-child(4), .research-row > div:nth-child(6), .research-row > div:nth-child(7) { padding-top: 11px; border-top: 1px solid var(--line-soft); }
  .research-row > div:nth-child(3) > strong { font-size: 16px; }
  .research-row .research-score > small, .research-row .research-box small, .research-row .research-market-cap small { font-size: 12px; }
  .research-row .research-market-context strong, .research-row .research-state-reason { font-size: 14px; }
  .research-row .research-market-context small, .research-row .research-reasons span { font-size: 12px; }
  .research-row .research-base-metrics small { font-size: 12px; }
  .research-tier-filters > p { margin-left: 0; }
  .research-scoring-method { margin-left: 0; }
  .research-filter-row .research-filter-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .research-filter-row .research-filter-chip { flex: 0 0 auto; }
  .research-coverage-collapse > summary small { display: block; margin: 5px 0 0 16px; }
  .research-row-auxiliary { font-size: 12px; }
  .research-row > .research-market-context, .research-row > .research-market-cap { display: none !important; }
  .research-row-auxiliary > .research-mobile-metrics { display: block; }
  .research-row .research-reasons > span, .research-row .research-reasons > .research-watch-warning { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .research-row .research-reasons::before { flex: 0 0 100%; }
  .research-row .research-detail-link { min-height: 40px; align-items: center; font-size: 13px; }
  .research-row strong, .research-row small, .research-detail-kpis strong { overflow-wrap: anywhere; }
  .research-box > span { width: 100%; }
  .research-detail-heading .heading-line { flex-wrap: wrap; }
  .research-detail-price strong { overflow-wrap: anywhere; }
  .research-detail-panel > header { flex-wrap: wrap; }
  .research-score-panel { grid-template-columns: 98px minmax(0,1fr); }
  .research-flow-cards article > div strong, .research-state-facts span { min-width: 0; overflow-wrap: anywhere; }
  .research-box-scale { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .research-box-scale > div:last-child { text-align: right; }
  .research-box-track { grid-column: 1 / -1; }
  .research-history-panel, .research-event-panel { overflow: hidden; }
  .research-history-head { display: none; }
  .research-history-list, .research-event-list { min-width: 0; }
  .research-history-list article { min-width: 0; min-height: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 16px; }
  .research-history-list time, .research-history-list p { grid-column: 1 / -1; }
  .research-history-list time { font-size: 13px; font-weight: 800; }
  .research-history-list article > div { min-width: 0; }
  .research-history-list article > div::before, .research-history-list article > strong::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #a9bac4; font-size: 12px; font-weight: 700; }
  .research-history-list article > div strong, .research-history-list article > strong { font-size: 13px; overflow-wrap: anywhere; }
  .research-history-list article > strong { grid-column: 1 / -1; }
  .research-history-list p { padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 13px; }
  .research-event-list article { min-width: 0; min-height: 0; grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 16px; }
  .research-event-list time { font-size: 13px; }
  .research-event-list article > b { grid-column: 2; grid-row: 1; font-size: 13px; }
  .research-event-list article > div:not(.research-event-forward), .research-event-list p { grid-column: 1 / -1; }
  .research-event-list article > div:not(.research-event-forward) { flex-wrap: wrap; }
  .research-event-list article > div strong, .research-event-list p { font-size: 13px; }
  .research-event-list p { overflow-wrap: anywhere; }
}
