    :root {
      --bg: #101315;
      --panel: #181d20;
      --panel-2: #20272a;
      --line: #30383c;
      --text: #eef3ef;
      --muted: #9aa7a2;
      --green: #4fce8a;
      --amber: #e8b84a;
      --red: #e26a5d;
      --cyan: #63c7d4;
      --ink: #0b0e0f;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      color: var(--text);
      background: radial-gradient(circle at top left, rgba(79,206,138,.12), transparent 28rem),
                  radial-gradient(circle at top right, rgba(232,184,74,.09), transparent 24rem),
                  var(--bg);
      font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    button, input, select { font: inherit; }
    .app { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
    aside {
      border-right: 1px solid var(--line);
      background: rgba(16,19,21,.86);
      padding: 24px 18px;
      position: sticky;
      top: 0;
      height: 100vh;
    }
    .brand { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
    .mark {
      width: 38px; height: 38px; border-radius: 8px;
      display: grid; place-items: center;
      background: var(--green); color: var(--ink); font-weight: 900;
    }
    .brand h1 { font-size: 16px; margin: 0; letter-spacing: 0; }
    .brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
    nav { display: grid; gap: 8px; }
    nav button {
      width: 100%; border: 1px solid transparent; color: var(--muted);
      background: transparent; text-align: left; padding: 10px 12px; border-radius: 8px;
      cursor: pointer;
    }
    nav button.active, nav button:hover {
      color: var(--text); border-color: var(--line); background: var(--panel);
    }
    .side-stat { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
    .side-stat strong { color: var(--text); display: block; font-size: 24px; }
    main { padding: 24px; max-width: none; width: 100%; }
    .topbar { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
    .title h2 { margin: 0; font-size: 26px; letter-spacing: 0; }
    .title p { margin: 6px 0 0; color: var(--muted); }
    .actions { display: flex; gap: 10px; align-items: center; }
    .pill {
      display: inline-flex; align-items: center; gap: 8px;
      border: 1px solid var(--line); background: var(--panel);
      color: var(--muted); padding: 8px 10px; border-radius: 8px;
    }
    .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 18px var(--amber); }
    .dot.ok { background: var(--green); box-shadow: 0 0 18px var(--green); }
    .dot.bad { background: var(--red); box-shadow: 0 0 18px var(--red); }
    .grid { display: grid; gap: 14px; }
    .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
    .card {
      background: rgba(24,29,32,.92);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 16px;
    }
    .metric { color: var(--muted); font-size: 12px; }
    .value { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: 0; }
    .sub { margin-top: 4px; color: var(--muted); font-size: 12px; min-height: 18px; }
    .workspace { grid-template-columns: minmax(0, 1.5fr) minmax(330px, .8fr); align-items: start; }
    .view-panel { display: none; }
    .view-panel.active { display: block; }
    .workspace.view-panel.active { display: grid; }
    .section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .section-title h3 { margin: 0; font-size: 15px; }
    .section-actions { display: flex; align-items: center; gap: 8px; }
    .small-action {
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--text);
      border-radius: 8px;
      padding: 6px 10px;
      cursor: pointer;
      white-space: nowrap;
    }
    .small-action:hover { border-color: var(--cyan); }
    .small-action:disabled { opacity: .55; cursor: default; }
    .toolbar { display: grid; grid-template-columns: minmax(170px, 1fr) 150px 140px; gap: 10px; margin-bottom: 12px; }
    input, select {
      width: 100%; border: 1px solid var(--line); background: #111618;
      color: var(--text); border-radius: 8px; padding: 10px 11px; outline: none;
    }
    input:focus, select:focus { border-color: var(--cyan); }
    table { width: 100%; border-collapse: collapse; table-layout: fixed; }
    th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
    th { color: var(--muted); font-size: 12px; text-align: left; font-weight: 600; }
    td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .table-scroll { width: 100%; overflow-x: visible; }
    .metric-table { min-width: 0; table-layout: fixed; }
    .metric-table th, .metric-table td { padding: 10px 8px; white-space: normal; }
    .metric-table .name { white-space: normal; line-height: 1.25; }
    .metric-pair { display: grid; gap: 2px; min-width: 0; }
    .metric-pair span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .metric-pair small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .metric-pair small.good { color: var(--green); }
    .metric-pair small.bad { color: var(--red); }
	    .metric-toolbar { grid-template-columns: minmax(220px, 1fr) 150px 160px 210px; }
	    .ai-toolbar { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
	    .intel-toolbar { grid-template-columns: minmax(260px, 1fr) 180px 140px; }
	    .intel-stats {
	      display: grid;
	      grid-template-columns: repeat(3, minmax(0, 1fr));
	      gap: 10px;
	      margin-bottom: 12px;
	    }
	    .intel-stats div {
	      border: 1px solid var(--line);
	      background: #121719;
	      border-radius: 8px;
	      padding: 10px 12px;
	      min-width: 0;
	    }
	    .intel-stats span { display: block; color: var(--muted); font-size: 12px; }
	    .intel-stats strong { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	    .intel-list { display: grid; gap: 10px; }
	    .intel-row {
	      border: 1px solid var(--line);
	      background: #121719;
	      border-radius: 8px;
	      padding: 12px;
	    }
	    .intel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
	    .intel-head strong { display: block; font-size: 15px; }
	    .intel-head small { display: block; color: var(--muted); margin-top: 3px; }
	    .intel-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
	    .intel-row p {
	      margin: 10px 0 0;
	      color: #d7e0dc;
	      line-height: 1.65;
	      white-space: pre-wrap;
	      overflow-wrap: anywhere;
	    }
	    .intel-recommendations {
	      border: 1px solid var(--line);
	      background: #121719;
	      border-radius: 8px;
	      padding: 12px;
	      margin-top: 12px;
	    }
	    .intel-rec-head {
	      display: flex;
	      align-items: center;
	      justify-content: space-between;
	      gap: 10px;
	      margin-bottom: 10px;
	    }
	    .intel-rec-head strong { font-size: 13px; }
	    .intel-rec-body { color: var(--muted); }
	    .intel-rec-meta, .intel-rec-tags {
	      display: flex;
	      flex-wrap: wrap;
	      gap: 6px;
	      margin-bottom: 8px;
	    }
	    .intel-rec-summary {
	      color: #d7e0dc;
	      margin-bottom: 8px;
	      line-height: 1.55;
	      overflow-wrap: anywhere;
	    }
	    .intel-rec-items {
	      display: grid;
	      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	      gap: 8px;
	    }
	    .intel-rec-sectors {
	      display: grid;
	      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	      gap: 8px;
	      margin-bottom: 8px;
	    }
	    .intel-rec-sector {
	      border: 1px solid var(--line);
	      background: #101517;
	      border-radius: 8px;
	      padding: 10px;
	      min-width: 0;
	    }
	    .intel-rec-sector.good, .intel-rec-item.good { border-color: rgba(79,206,138,.55); }
	    .intel-rec-sector.warn, .intel-rec-item.warn { border-color: rgba(232,184,74,.55); }
	    .intel-rec-sector.bad, .intel-rec-item.bad { border-color: rgba(226,106,93,.65); }
	    .intel-rec-sector strong {
	      display: block;
	      color: var(--text);
	      overflow: hidden;
	      text-overflow: ellipsis;
	      white-space: nowrap;
	    }
	    .intel-rec-sector small {
	      display: block;
	      color: var(--muted);
	      margin-top: 5px;
	      overflow-wrap: anywhere;
	    }
	    .intel-rec-sector p {
	      margin: 6px 0 0;
	      color: var(--muted);
	      font-size: 12px;
	      line-height: 1.45;
	    }
	    .intel-rec-sector-tags, .intel-rec-indicator {
	      display: flex;
	      flex-wrap: wrap;
	      gap: 5px;
	      margin-top: 6px;
	    }
	    .intel-rec-indicator p {
	      flex-basis: 100%;
	      margin: 0;
	      color: var(--muted);
	      font-size: 12px;
	      line-height: 1.45;
	    }
	    .intel-rec-item {
	      display: grid;
	      grid-template-columns: minmax(0, 1fr) auto;
	      gap: 10px;
	      border: 1px solid var(--line);
	      background: #0f1416;
	      border-radius: 8px;
	      padding: 10px;
	      min-width: 0;
	    }
	    .intel-rec-item strong {
	      display: block;
	      color: var(--text);
	      overflow: hidden;
	      text-overflow: ellipsis;
	      white-space: nowrap;
	    }
	    .intel-rec-item small {
	      display: block;
	      color: var(--muted);
	      overflow: hidden;
	      text-overflow: ellipsis;
	      white-space: nowrap;
	      margin-top: 2px;
	    }
	    .intel-rec-item p {
	      margin: 6px 0 0;
	      color: var(--muted);
	      line-height: 1.45;
	      font-size: 12px;
	    }
	    .intel-rec-side {
	      display: flex;
	      flex-direction: column;
	      gap: 5px;
	      align-items: flex-end;
	    }
	    .intel-rec-empty { color: var(--muted); }
	    .weight-panel {
      border: 1px solid var(--line);
      background: #121719;
      border-radius: 8px;
      padding: 12px;
      margin-bottom: 12px;
    }
    .weight-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
    .weight-head strong { font-size: 13px; }
    .weight-head button {
      margin-left: auto;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--text);
      border-radius: 8px;
      padding: 6px 9px;
      cursor: pointer;
    }
    .weight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
    .weight-row {
      display: grid;
      grid-template-columns: 92px minmax(0, 1fr) 30px;
      gap: 9px;
      align-items: center;
      min-width: 0;
      color: var(--muted);
      font-size: 12px;
    }
    .weight-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .weight-row strong { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
    .weight-row input[type="range"] {
      padding: 0;
      height: 22px;
      border: 0;
      background: transparent;
      accent-color: var(--green);
    }
    .ai-table td { vertical-align: top; }
    .score-cell { display: grid; gap: 2px; }
    .score-cell strong { font-size: 18px; line-height: 1; }
    .score-cell small { color: var(--muted); font-size: 12px; }
    .ai-reason {
      color: var(--text);
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .ai-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
    .ai-tags .tag { padding: 2px 6px; font-size: 11px; }
    .ai-components {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 5px;
      color: var(--muted);
    }
    .ai-components small { font-size: 11px; }
    .item-cell { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; }
    .thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; background: var(--panel-2); border: 1px solid var(--line); }
    .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hash { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tag { display: inline-block; padding: 4px 7px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: #131719; }
    .money { font-variant-numeric: tabular-nums; }
    .good { color: var(--green); }
    .warn { color: var(--amber); }
    .bad { color: var(--red); }
    .bars { display: grid; gap: 10px; }
    .bar-row { display: grid; grid-template-columns: 82px 1fr 44px; gap: 10px; align-items: center; }
    .bar-label, .bar-num { color: var(--muted); font-size: 12px; }
    .bar-track { height: 9px; background: #111618; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
    .bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); }
    .runs { display: grid; gap: 8px; }
    .run { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; padding: 9px; background: #121719; border: 1px solid var(--line); border-radius: 8px; }
    .run small { color: var(--muted); display: block; }
    pre {
      margin: 0; max-height: 340px; overflow: auto; white-space: pre-wrap;
      background: #0b0e0f; border: 1px solid var(--line); border-radius: 8px; padding: 12px;
      color: #cbd7d0; font-size: 12px;
    }
    .pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); }
    .pager button {
      border: 1px solid var(--line); background: var(--panel); color: var(--text);
      border-radius: 8px; padding: 8px 10px; cursor: pointer;
    }
    .pager button:disabled { opacity: .45; cursor: default; }
    tbody tr { cursor: pointer; }
    tbody tr:hover { background: rgba(99,199,212,.06); }
    .drawer-backdrop {
      position: fixed; inset: 0; background: rgba(0,0,0,.55);
      display: none; z-index: 20;
    }
    .drawer-backdrop.open { display: block; }
    .drawer {
      position: fixed; top: 0; right: 0; height: 100vh; width: min(720px, 96vw);
      background: #111618; border-left: 1px solid var(--line);
      box-shadow: -20px 0 60px rgba(0,0,0,.35);
      transform: translateX(100%); transition: transform .18s ease;
      z-index: 21; padding: 22px; overflow: auto;
    }
    .drawer.open { transform: translateX(0); }
    .drawer-head { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
    .drawer-title { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 14px; align-items: center; }
    .drawer-title img { width: 74px; height: 74px; object-fit: contain; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
    .drawer h3 { margin: 0; font-size: 20px; }
    .drawer .close {
      border: 1px solid var(--line); background: var(--panel); color: var(--text);
      width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
    }
    .detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 14px 0; }
    .detail-box { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 12px; min-height: 74px; }
    .detail-box span { display: block; color: var(--muted); font-size: 12px; }
    .detail-box strong { display: block; margin-top: 6px; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .chart-wrap { border: 1px solid var(--line); background: #0b0e0f; border-radius: 8px; padding: 12px; }
    .chart-wrap + .chart-wrap { margin-top: 12px; }
    .trend-canvas { width: 100%; height: 380px; display: block; cursor: crosshair; }
    .kline-canvas { width: 100%; height: 520px; display: block; cursor: crosshair; }
    .chip-canvas { width: 100%; height: 360px; display: block; cursor: crosshair; }
    .chip-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 8px 0 10px; }
    .chip-stat { border: 1px solid var(--line); background: #121719; border-radius: 8px; padding: 8px 10px; }
    .chip-stat span { display: block; color: var(--muted); font-size: 11px; }
    .chip-stat strong { display: block; margin-top: 4px; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .platform-grid { display: grid; gap: 8px; margin-top: 12px; }
    .platform-row { display: grid; grid-template-columns: 88px repeat(4, minmax(0,1fr)); gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #121719; }
    .empty { color: var(--muted); padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
    @media (max-width: 980px) {
      .app { grid-template-columns: 1fr; }
      aside { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
      main { padding: 16px; }
	      .cards, .workspace { grid-template-columns: 1fr; }
	      .toolbar, .ai-toolbar, .intel-toolbar, .intel-stats { grid-template-columns: 1fr; }
      .weight-grid { grid-template-columns: 1fr; }
      .topbar { display: grid; }
    }
