.remote-version-tabs { display:flex; gap:8px; overflow-x:auto; padding:8px 0 14px; }
.remote-version-tab { flex:1 0 130px; min-height:48px; padding:12px; border:1px solid var(--remote-line); border-radius:10px; background:#101b28; color:var(--remote-muted); font:inherit; cursor:pointer; }
.remote-version-tab[data-selected="true"] { color:var(--remote-ink); border-color:var(--remote-cyan); background:#163345; box-shadow:inset 0 -3px var(--remote-cyan); }
.remote-version-tab:focus-visible { outline:2px solid var(--remote-cyan); outline-offset:2px; }
.remote-paper [role="tabpanel"][hidden] { display:none !important; }
.remote-boundary[data-core-capacity="warning"],.remote-boundary[data-core-capacity="maintenance"] { color:var(--remote-amber); }
.remote-boundary[data-core-capacity="critical"] { color:var(--remote-red); }
.remote-standby,
.remote-paper {
  --remote-ink: #eaf4ff;
  --remote-muted: #91a4b8;
  --remote-line: rgba(148, 184, 216, .18);
  --remote-cyan: #62d8ff;
  --remote-amber: #f0c778;
  --remote-green: #65d9aa;
  --remote-red: #ff8a8a;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--remote-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 27, 40, .96), rgba(7, 13, 22, .96));
  color: var(--remote-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 50px rgba(0, 0, 0, .18);
}
.remote-head,
.remote-paper-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.remote-heading,
.remote-paper-head > :nth-child(2) { flex: 1 1 260px; }
.remote-eyebrow { margin: 0 0 4px; color: var(--remote-cyan); font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.remote-title { margin: 0; font-size: clamp(17px, 2vw, 22px); font-weight: 760; letter-spacing: -.02em; }
.remote-mode,
.remote-paper-state { padding: 7px 10px; border: 1px solid var(--remote-line); border-radius: 999px; color: var(--remote-amber); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.remote-toggle { min-height: 42px; padding: 0 14px; border: 1px solid rgba(240, 199, 120, .42); border-radius: 12px; background: rgba(240, 199, 120, .1); color: #ffe4ad; font: inherit; font-weight: 720; cursor: pointer; }
.remote-toggle:disabled { opacity: .5; cursor: default; }
.remote-toggle:focus-visible { outline: 2px solid var(--remote-cyan); outline-offset: 3px; }
.remote-message,
.remote-limitation,
.remote-paper-note,
.remote-spot-note { margin: 12px 0; color: var(--remote-muted); font-size: 13px; line-height: 1.65; }
.remote-rail { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.remote-rail::before { content: ''; position: absolute; top: 18px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, var(--remote-cyan), var(--remote-amber)); opacity: .36; }
.remote-node { position: relative; z-index: 1; min-height: 62px; padding: 11px; border: 1px solid var(--remote-line); border-radius: 12px; background: rgba(6, 12, 20, .86); }
.remote-node small,
.remote-paper-metric small { display: block; margin-bottom: 6px; color: var(--remote-muted); font-size: 10px; letter-spacing: .05em; }
.remote-node strong { display: block; overflow: hidden; color: var(--remote-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.remote-ack { margin: 0 0 13px; padding: 10px 12px; border-left: 3px solid var(--remote-amber); background: rgba(240, 199, 120, .07); color: #e8d2a7; font-size: 12px; line-height: 1.55; }
.remote-ack[data-acknowledged="true"] { border-color: var(--remote-green); background: rgba(101, 217, 170, .07); color: #bcebd7; }
.remote-quota { padding-top: 12px; border-top: 1px solid var(--remote-line); }
.remote-quota-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.remote-quota-title small,
.remote-boundary { color: var(--remote-muted); font-size: 11px; }
.remote-quota-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.remote-meter { min-width: 0; }
.remote-meter span { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.remote-meter-track { display: block; height: 4px; margin-top: 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.remote-meter-fill { display: block; width: 0; height: 100%; background: var(--remote-cyan); transition: width .25s ease; }
.remote-quota[data-level="warning"] .remote-meter-fill { background: var(--remote-amber); }
.remote-quota[data-level="conserve"] .remote-meter-fill { background: var(--remote-amber); }
.remote-quota[data-level="halt"] .remote-meter-fill { background: var(--remote-red); }
.remote-boundary { margin: 10px 0 0; }
.remote-standby[data-remote-connection="stale"] { border-color: rgba(255, 138, 138, .45); }
.remote-standby[data-remote-state="running"] .remote-mode { color: var(--remote-green); border-color: rgba(101, 217, 170, .4); }
.remote-standby[data-remote-state="off"] .remote-mode { color: var(--remote-red); border-color: rgba(255, 138, 138, .42); }
.remote-paper-head .remote-paper-state { margin-left: auto; }
.remote-paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.remote-product { padding: 13px; border: 1px solid var(--remote-line); border-radius: 14px; background: rgba(5, 11, 18, .58); }
.remote-product h3,
.remote-event-summary h3 { margin: 0 0 11px; font-size: 14px; }
.remote-paper-account { display: grid; grid-template-columns: minmax(120px, 1.2fr) repeat(6, minmax(82px, 1fr)); gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--remote-line); }
.remote-account-title strong,
.remote-account-title small,
.remote-paper-metric strong { display: block; }
.remote-account-title small { margin-top: 4px; color: var(--remote-muted); font-size: 10px; }
.remote-paper-metric strong { color: var(--remote-ink); font: 650 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.remote-event-summary { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; padding: 13px; border: 1px solid var(--remote-line); border-radius: 14px; }
.remote-event-summary h3 { flex: 1 0 100%; }
.remote-event-summary .remote-paper-metric { min-width: 120px; }
.remote-event-boundary,
.remote-empty { flex: 1 0 100%; margin: 4px 0 0; color: var(--remote-muted); font-size: 12px; line-height: 1.55; }
.remote-control-heading { margin: 24px 0 12px; color: var(--remote-muted); font-size: 14px; }
.remote-forward { margin: 16px 0; padding: 16px; border: 1px solid var(--remote-line); border-top: 2px solid var(--remote-cyan); border-radius: 12px; background: rgba(5, 11, 18, .58); }
.remote-forward-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.remote-forward-head h3 { margin: 0; font-size: 16px; }
.remote-forward-badge { color: var(--remote-amber); font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.remote-forward-meta, .remote-forward-note { margin: 10px 0 0; color: var(--remote-muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.remote-forward-meta { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.remote-forward-product { margin-top: 20px; }
.remote-forward-product h4 { margin: 0 0 10px; color: var(--remote-cyan); font-size: 13px; }
.remote-forward-product[data-product="cfd"] h4 { color: var(--remote-amber); }
.remote-forward-asset { margin-top: 12px; }
.remote-forward-asset h5 { margin: 0; padding: 9px 10px; border-bottom: 1px solid var(--remote-line); font: 750 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.remote-forward-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.remote-forward-scroll:focus-visible { outline: 2px solid var(--remote-cyan); outline-offset: 2px; }
.remote-forward-table { width: 100%; min-width: 840px; border-collapse: collapse; text-align: left; font: 550 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.remote-forward-table caption { padding: 6px 10px; color: var(--remote-muted); text-align: left; font-size: 10px; }
.remote-forward-table th, .remote-forward-table td { padding: 10px; border-bottom: 1px solid var(--remote-line); vertical-align: top; }
.remote-forward-table thead th { color: var(--remote-muted); font-size: 10px; font-weight: 550; }
.remote-forward-strategy { width: 28%; font-weight: 550; }
.remote-forward-strategy strong, .remote-forward-strategy small, .remote-forward-time span, .remote-forward-time small { display: block; }
.remote-forward-strategy small, .remote-forward-time small { margin-top: 3px; color: var(--remote-muted); font-size: 10px; }
.remote-forward-reason { overflow-wrap: anywhere; max-width: 240px; }
.remote-forward-trades { padding: 10px; color: var(--remote-muted); font-size: 11px; line-height: 1.65; }
.remote-forward-trades summary { cursor: pointer; }
.remote-forward-trades summary:focus-visible { outline: 2px solid var(--remote-cyan); outline-offset: 3px; }
.remote-forward-trades ul { margin: 8px 0 0; padding-left: 18px; }
.remote-forward-trades li + li { margin-top: 5px; }
.remote-forward-table tr[data-strategy="ema-baseline"] .remote-forward-strategy strong { color: var(--remote-muted); }
.remote-forward-table tr:not([data-strategy="ema-baseline"]) .remote-forward-strategy strong { color: var(--remote-cyan); }
.remote-forward[data-remote-forward="not-enabled"], .remote-forward[data-remote-forward="stale"] { border-top-color: var(--remote-amber); }
.remote-paper[data-paper-state="unavailable"] .remote-forward-table { opacity: .6; }
.remote-paper[data-paper-state="unavailable"] .remote-forward::before { content: '本次读取未确认；以下保留上次提交，不能当作当前运行状态。'; display: block; margin-bottom: 12px; color: var(--remote-red); font-size: 12px; line-height: 1.5; }
@media (max-width: 760px) {
  .remote-quota-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remote-paper-grid { grid-template-columns: 1fr; }
  .remote-paper-account { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remote-account-title { grid-column: 1 / -1; }
  .remote-forward { padding: 12px; }
}
@media (max-width: 520px) {
  .remote-standby, .remote-paper { padding: 14px; border-radius: 14px; }
  .remote-head { align-items: stretch; }
  .remote-toggle { width: 100%; }
  .remote-rail { grid-template-columns: 1fr; }
  .remote-rail::before { display: none; }
  .remote-quota-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .remote-meter-fill { transition: none; } }
