/* 88BB Altcoin Alpha + Edge Learning Polish v35 */
body[data-page="altcoin-alpha"]{
  background:
    radial-gradient(circle at 15% 0%, rgba(41, 209, 255, .10), transparent 28%),
    radial-gradient(circle at 85% 4%, rgba(255, 210, 93, .08), transparent 24%),
    #050914;
}
body[data-page="altcoin-alpha"] .app-shell{
  width:min(1440px, calc(100vw - 28px));
  max-width:1440px;
  margin:0 auto 44px;
  padding:0;
  display:block;
}
body[data-page="altcoin-alpha"] .sidebar{
  display:none !important;
}
body[data-page="altcoin-alpha"] .main-panel.alpha-command{
  width:100%;
  max-width:1440px;
  margin:0 auto;
  padding:0 0 28px;
}
body[data-page="altcoin-alpha"] .alpha-topbar,
body[data-page="altcoin-alpha"] .alpha-hero,
body[data-page="altcoin-alpha"] .alpha-stat-grid,
body[data-page="altcoin-alpha"] .alpha-control-bar,
body[data-page="altcoin-alpha"] .alpha-workbench,
body[data-page="altcoin-alpha"] .alpha-edge-learning-panel{
  max-width:1440px;
  margin-left:auto;
  margin-right:auto;
}
body[data-page="altcoin-alpha"] .alpha-workbench{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(280px, 340px);
  align-items:start;
  gap:18px;
}
.alpha-edge-learning-panel{
  margin:18px 0;
  border:1px solid rgba(80,220,255,.22);
  background:
    radial-gradient(circle at top left, rgba(43,207,255,.14), transparent 30%),
    linear-gradient(135deg, rgba(8,16,32,.96), rgba(9,20,34,.9));
  box-shadow:0 20px 54px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.alpha-edge-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.alpha-edge-health-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  margin:16px 0;
}
.alpha-edge-health-grid article{
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  padding:13px 14px;
  background:rgba(255,255,255,.045);
}
.alpha-edge-health-grid span,
.alpha-edge-health-grid small{
  display:block;
  color:#9fb0c8;
  font-size:12px;
}
.alpha-edge-health-grid strong{
  display:block;
  margin:5px 0;
  font-size:24px;
  color:#eafbff;
  line-height:1;
}
.alpha-edge-status{
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  padding:10px 12px;
  color:#b9c8dc;
  background:rgba(0,0,0,.18);
  font-size:13px;
}
.alpha-edge-status.is-ok{ color:#9fffd1; border-color:rgba(66,255,177,.24); background:rgba(25,175,111,.08); }
.alpha-edge-status.is-warn{ color:#ffe09d; border-color:rgba(255,216,104,.24); background:rgba(255,193,79,.08); }
.alpha-edge-layout{
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);
  gap:14px;
  margin-top:14px;
}
.alpha-edge-summary,
.alpha-edge-records{
  min-width:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(0,0,0,.16);
  overflow:hidden;
}
.alpha-edge-summary h4,
.alpha-edge-records h4{
  margin:0;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.07);
  color:#eafbff;
  font-size:13px;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.alpha-edge-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}
.alpha-edge-table th,
.alpha-edge-table td{
  padding:9px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:middle;
  text-align:left;
}
.alpha-edge-table th{
  color:#82def5;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.alpha-edge-table strong{ color:#f3fbff; }
.alpha-edge-table .is-up{ color:#80ffc4; }
.alpha-edge-table .is-down{ color:#ff9fae; }
.alpha-edge-coin{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.alpha-edge-coin small{
  color:#8799b2;
  font-size:11px;
}
.alpha-edge-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.06);
  color:#d8e5f5;
  font-size:11px;
  white-space:nowrap;
}
.alpha-edge-empty{
  padding:14px;
  color:#aebad0;
}
@media (max-width:1100px){
  body[data-page="altcoin-alpha"] .alpha-workbench,
  .alpha-edge-layout{
    grid-template-columns:1fr;
  }
  body[data-page="altcoin-alpha"] .alpha-workbench-side{
    order:2;
  }
}
@media (max-width:720px){
  body[data-page="altcoin-alpha"] .app-shell{
    width:calc(100vw - 18px);
  }
  .alpha-edge-health-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .alpha-edge-actions{
    justify-content:flex-start;
  }
  .alpha-edge-summary,
  .alpha-edge-records{
    overflow-x:auto;
  }
  .alpha-edge-table{
    min-width:620px;
  }
}

/* Edge AI Learning V3 — SGR strategic lifecycle + VCP validation */
.alpha-learning-thresholds,
.alpha-learning-conversions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:12px 14px;
}
.alpha-learning-conversions{
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding-top:0;
}
.alpha-learning-kpi{
  min-width:0;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  padding:10px 11px;
  background:rgba(255,255,255,.035);
}
.alpha-learning-kpi span,
.alpha-learning-kpi small{
  display:block;
  color:#91a7c2;
  font-size:10px;
}
.alpha-learning-kpi strong{
  display:block;
  margin:4px 0;
  color:#eafcff;
  font-size:19px;
  line-height:1.1;
}
.alpha-learning-subhead{
  border-top:1px solid rgba(255,255,255,.06);
}
.alpha-edge-pill.is-up{color:#80ffc4;border-color:rgba(76,255,177,.18);background:rgba(26,176,114,.08)}
.alpha-edge-pill.is-down{color:#ff9fae;border-color:rgba(255,115,136,.18);background:rgba(205,56,83,.08)}
@media(max-width:720px){
  .alpha-learning-thresholds{grid-template-columns:repeat(2,minmax(0,1fr))}
  .alpha-learning-conversions{grid-template-columns:1fr}
}

/* Edge AI Learning v3.2 — collapsed-by-default, honest cron state */
.alpha-edge-learning-panel.is-collapsed{
  padding-top:14px;
  padding-bottom:14px;
}
.alpha-edge-learning-panel.is-collapsed .alpha-edge-learning-head{
  margin-bottom:0;
}
.alpha-edge-learning-body[hidden]{
  display:none !important;
}
.alpha-edge-learning-panel.is-expanded .alpha-edge-learning-body{
  display:block;
}
.alpha-edge-learning-head{
  gap:16px;
}
.alpha-edge-engine-state{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#b9c8dc;
  font-size:11px;
  white-space:nowrap;
}
.alpha-edge-engine-state::before{
  content:"";
  width:7px;
  height:7px;
  margin-right:7px;
  border-radius:50%;
  background:#8fa2b8;
  box-shadow:0 0 10px rgba(143,162,184,.45);
}
.alpha-edge-engine-state.is-active{
  color:#9fffd1;
  border-color:rgba(66,255,177,.24);
  background:rgba(25,175,111,.08);
}
.alpha-edge-engine-state.is-active::before{
  background:#65ffc0;
  box-shadow:0 0 12px rgba(101,255,192,.75);
}
.alpha-edge-engine-state.is-waiting{
  color:#c7d5e7;
}
.alpha-edge-engine-state.is-stale{
  color:#ffe09d;
  border-color:rgba(255,216,104,.24);
  background:rgba(255,193,79,.08);
}
.alpha-edge-engine-state.is-stale::before{
  background:#ffd56b;
  box-shadow:0 0 12px rgba(255,213,107,.65);
}
.alpha-edge-pill.is-pending{
  color:#c9d5e6;
  border-color:rgba(147,174,210,.18);
  background:rgba(93,117,151,.08);
}
.alpha-edge-pill.is-overdue{
  color:#ffe09d;
  border-color:rgba(255,216,104,.24);
  background:rgba(255,193,79,.08);
}
.alpha-edge-pill.is-data{
  color:#9fdcff;
  border-color:rgba(91,201,255,.22);
  background:rgba(41,151,205,.08);
}
@media(max-width:720px){
  .alpha-edge-learning-head{
    align-items:flex-start;
  }
  .alpha-edge-engine-state{
    white-space:normal;
  }
}

/* SGR Trader Intelligence v4.0 — human-readable evidence dashboard */
.alpha-trader-insights{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  padding:12px 14px;
}
.alpha-trader-insight{
  min-width:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  padding:11px 12px;
  background:rgba(255,255,255,.032);
}
.alpha-trader-insight>span{
  display:block;
  color:#88a0ba;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.alpha-trader-insight>strong{
  display:block;
  margin:5px 0 4px;
  color:#ecf8ff;
  font-size:12px;
  line-height:1.35;
}
.alpha-trader-insight>p{
  margin:0;
  color:#9fb0c4;
  font-size:10px;
  line-height:1.45;
}
.alpha-trader-insight.is-positive{border-color:rgba(67,239,164,.18);background:rgba(28,128,83,.07)}
.alpha-trader-insight.is-negative{border-color:rgba(255,107,135,.18);background:rgba(132,35,58,.07)}
.alpha-trader-insight.is-warning{border-color:rgba(255,209,102,.20);background:rgba(129,92,22,.08)}
.alpha-table-scroll{overflow:auto}
.alpha-validation-table{min-width:840px}
.alpha-outcome-table{min-width:760px}
.alpha-validation-table td:first-child{min-width:210px}
.alpha-edge-table td small.alpha-price-route{
  display:block;
  margin-top:2px;
  color:#8194aa;
  font-size:9px;
  font-weight:500;
}
.alpha-evidence{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  color:#c6d5e6;
  background:rgba(255,255,255,.04);
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}
.alpha-evidence.is-strong{color:#80ffc4;border-color:rgba(67,239,164,.20);background:rgba(28,128,83,.09)}
.alpha-evidence.is-moderate{color:#aee8ff;border-color:rgba(83,198,255,.18);background:rgba(40,123,170,.08)}
.alpha-evidence.is-early{color:#ffe09d;border-color:rgba(255,216,104,.20);background:rgba(129,92,22,.08)}
.alpha-evidence.is-preliminary{color:#d8c8ff;border-color:rgba(173,133,255,.18);background:rgba(91,59,154,.08)}
.alpha-evidence.is-insufficient{color:#ffadb9;border-color:rgba(255,107,135,.18);background:rgba(132,35,58,.07)}
.alpha-learning-details{
  border-top:1px solid rgba(255,255,255,.06);
}
.alpha-learning-details>summary{
  cursor:pointer;
  padding:11px 14px;
  color:#9fcfe2;
  font-size:11px;
  font-weight:800;
  list-style:none;
}
.alpha-learning-details>summary::-webkit-details-marker{display:none}
.alpha-learning-details>summary::after{content:"＋";float:right;color:#72dfff}
.alpha-learning-details[open]>summary::after{content:"－"}
.alpha-learning-note{
  margin:10px 14px 0;
  padding:8px 10px;
  border:1px solid rgba(255,209,102,.16);
  border-radius:10px;
  color:#d9c68b;
  background:rgba(129,92,22,.06);
  font-size:10px;
  line-height:1.45;
}
.alpha-learning-queue{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-top:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.018);
}
.alpha-learning-queue strong,
.alpha-learning-queue small{display:block}
.alpha-learning-queue strong{color:#dceafa;font-size:11px}
.alpha-learning-queue small{margin-top:3px;color:#8598ad;font-size:9px}
.alpha-learning-queue-pills{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.alpha-queue-pill{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:23px;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid rgba(124,162,201,.15);
  background:rgba(75,105,141,.07);
  color:#b9cbe0;
  font-size:9px;
}
.alpha-queue-pill.is-overdue{color:#ffe09d;border-color:rgba(255,216,104,.2);background:rgba(129,92,22,.08)}
@media(max-width:900px){
  .alpha-trader-insights{grid-template-columns:1fr}
  .alpha-learning-queue{flex-direction:column}
  .alpha-learning-queue-pills{justify-content:flex-start}
}
