/**
 * 云枢 · 雷达台 —— 独立产品界面（非啊美雅衍生）
 * 结构：底栏登录 / 顶栏+Bento 工作台 / 整页诊断 / KPI 网格报告
 * 不 @import Google Fonts：国内会阻塞首屏样式。
 */
:root {
  --ys-bg: #e8edf3;
  --ys-ink: #0b1220;
  --ys-mute: #5a6b7d;
  --ys-line: rgba(11, 18, 32, 0.12);
  --ys-panel: #ffffff;
  --ys-accent: #00a3ff;
  --ys-accent-deep: #0077c2;
  --ys-hot: #ff3d81;
  --ys-ok: #12a36a;
  --ys-bad: #e23b3b;
  --ys-radius: 22px;
  --ys-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ys-display: "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font: var(--ys-font);
  --serif: var(--ys-display);
  --g: var(--ys-accent);
  --gd: var(--ys-accent-deep);
  --accent: var(--ys-accent);
  --ink: var(--ys-ink);
  --t1: var(--ys-ink);
  --t2: #314255;
  --t3: var(--ys-mute);
  --ln: var(--ys-line);
  --bg: var(--ys-bg);
  --ok: var(--ys-ok);
  --bad: var(--ys-bad);
  --r: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ys-font);
  color: var(--ys-ink);
  background: var(--ys-bg);
  min-height: 100vh;
}
a { color: var(--ys-accent-deep); }
.btn, button.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  border-radius: 999px; padding: 10px 18px;
}
.btn-primary { background: var(--ys-accent); color: #fff; }
.btn-primary:hover { background: var(--ys-accent-deep); }
.btn-ghost { background: transparent; border: 1px solid var(--ys-line); color: var(--ys-ink); }
.btn-block { width: 100%; display: block; }
.linkish { background: none; border: 0; color: var(--ys-accent-deep); cursor: pointer; font: inherit; font-weight: 650; text-decoration: underline; padding: 0; }
.req { color: var(--ys-hot); }
.err { color: var(--ys-bad); font-size: 0.88rem; }
.hint { color: var(--ys-mute); font-size: 0.82rem; line-height: 1.5; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ys-accent-deep); font-weight: 700; }

/* ========== LOGIN: bottom sheet on radar field ========== */
/* geo.css 的 .page-home::before 是 fixed 旧氛围层，会盖住雷达登录页 */
body.ys-gate.page-home::before,
body.ys-gate::before {
  display: none !important;
  content: none !important;
}
body.ys-gate {
  background:
    radial-gradient(circle at 50% 18%, rgba(0,163,255,0.28), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(255,61,129,0.12), transparent 40%),
    linear-gradient(180deg, #0b1220 0%, #152238 48%, #1a2b45 100%);
  color: #e8f3ff;
  overflow-x: hidden;
}
.ys-gate-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}
.ys-gate-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 24px;
  position: relative;
}
.ys-gate-hero h1 {
  margin: 0;
  font-family: var(--ys-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #fff;
}
.ys-gate-hero p {
  margin: 12px 0 0;
  max-width: 22em;
  color: rgba(232,243,255,0.7);
  line-height: 1.55;
}
.ys-gate-sheet {
  background: var(--ys-panel);
  color: var(--ys-ink);
  border-radius: 28px 28px 0 0;
  padding: 28px 22px 36px;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.35);
}
.ys-gate-sheet .buy-panel,
.ys-gate-sheet .price-card {
  width: min(420px, 100%);
  margin: 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  padding: 0 !important;
}
.ys-gate-sheet label { display: block; margin: 12px 0 6px; font-size: 0.82rem; font-weight: 650; color: var(--ys-mute); }
.ys-gate-sheet input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--ys-line); border-radius: 14px;
  background: #f4f7fb; font: inherit;
}
.ys-gate-sheet input:focus { outline: 2px solid rgba(0,163,255,0.35); border-color: var(--ys-accent); }
.ys-gate-sheet .btn-primary {
  min-height: 52px; border-radius: 16px; font-size: 1rem; margin-top: 8px;
}
.ys-gate-sheet .ys-access-title {
  margin: 6px 0 8px; font-family: var(--ys-display); font-size: 1.6rem; font-weight: 800;
}
.ys-gate-sheet .ys-access-lead { margin: 0 0 8px; color: var(--ys-mute); font-size: 0.92rem; line-height: 1.5; }
.ys-gate-sheet .checkout-sms { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
@media (min-width: 900px) {
  .ys-gate-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
  .ys-gate-hero { justify-content: center; padding: 40px; }
  .ys-gate-sheet {
    border-radius: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px;
  }
}

body.ys-gate.is-logged-in {
  background: var(--ys-bg) !important;
  color: var(--ys-ink);
}
body.ys-gate.is-logged-in .ys-gate-shell { display: none !important; }

/* ========== APP: top bar + bento (no side rails) ========== */
.ys-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ys-app[hidden] { display: none !important; }
body.ys-gate.is-logged-in .ys-app:not([hidden]) { display: flex !important; }

.ys-app-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ys-line);
}
.ys-app-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ys-display); font-weight: 800; letter-spacing: 0.12em;
}
.ys-app-tabs {
  display: flex; gap: 4px; flex: 1; overflow-x: auto;
  background: #eef3f8; border-radius: 999px; padding: 4px;
}
.ys-app-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.86rem;
  padding: 8px 14px; border-radius: 999px; color: var(--ys-mute); white-space: nowrap;
}
.ys-app-tab.is-active { background: #fff; color: var(--ys-ink); box-shadow: 0 4px 14px rgba(11,18,32,0.08); }
.ys-app-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ys-app-actions .uc-top-user { font-size: 0.86rem; color: var(--ys-mute); font-weight: 600; }

.ys-app-main {
  width: min(1100px, calc(100% - 28px));
  margin: 20px auto 48px;
}

/* Bento home */
.ys-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  align-items: start;
}
.ys-tile {
  background: var(--ys-panel);
  border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius);
  padding: 22px;
}
.ys-tile--hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(0,163,255,0.18), transparent 40%),
    #fff;
}
.ys-tile--hero h1 {
  margin: 8px 0 0;
  font-family: var(--ys-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
.ys-tile--hero p { margin: 8px 0 0; color: var(--ys-mute); }
.ys-score-pill {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
  text-align: right;
  color: var(--ys-ink);
  background:
    linear-gradient(145deg, rgba(0, 163, 255, 0.12), rgba(255, 255, 255, 0.95) 55%),
    #f4f8fc;
  border: 1px solid rgba(0, 163, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.ys-score-pill span { display: block; font-size: 0.75rem; color: var(--ys-mute); font-weight: 650; }
.ys-score-pill strong {
  display: block; margin-top: 4px;
  font-family: var(--ys-display); font-size: 2.4rem; line-height: 1; color: var(--ys-accent-deep);
}
.ys-bento-main {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ys-bento-main > .err,
.ys-bento-main > .hint,
.ys-bento-main > .acct-insufficient,
.ys-bento-main > .ys-credits-hint {
  margin: 0;
}
.ys-bento-main > .acct-insufficient {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(181, 71, 8, 0.08);
  border: 1px solid rgba(181, 71, 8, 0.22);
  color: #9a3412;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ys-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.ys-action {
  appearance: none; border: 1px solid var(--ys-line); background: #fff;
  border-radius: 18px; padding: 18px 16px; text-align: left; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: 6px; transition: transform .15s ease, border-color .15s ease;
}
.ys-action:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(0,163,255,0.5); }
.ys-action:disabled { opacity: 0.45; cursor: not-allowed; }
.ys-action--go { background: var(--ys-accent); border-color: var(--ys-accent); color: #fff; }
.ys-action--go:hover:not(:disabled) { background: var(--ys-accent-deep); border-color: var(--ys-accent-deep); }
.ys-action b { font-size: 1.05rem; }
.ys-action span { font-size: 0.82rem; opacity: 0.75; line-height: 1.4; }
.ys-feed {
  grid-column: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.ys-feed-hd {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px;
}
.ys-feed h2 { margin: 0; font-size: 1rem; }
.ys-feed-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ys-feed-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: #f7fafc;
  border: 1px solid var(--ys-line); text-decoration: none; color: inherit;
}
.ys-feed-item-main {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1;
}
.ys-feed-item-main strong { font-size: 0.95rem; }
.ys-feed-item-main span { font-size: 0.8rem; color: var(--ys-mute); }
.ys-feed-stop,
.ys-log-stop {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 163, 255, 0.35);
  background: rgba(0, 163, 255, 0.06);
  color: var(--ys-accent-deep);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.ys-feed-stop:hover:not(:disabled),
.ys-log-stop:hover:not(:disabled) {
  background: rgba(0, 163, 255, 0.12);
  border-color: rgba(0, 163, 255, 0.55);
}
.ys-feed-stop:disabled,
.ys-log-stop:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ys-feed-item:hover { background: #fff; border-color: rgba(0,163,255,0.35); }
.ys-feed-item--pending { border-style: dashed; opacity: 0.92; }
.ys-feed-item strong { font-size: 0.95rem; }
.ys-feed-item span { font-size: 0.8rem; color: var(--ys-mute); white-space: nowrap; }
.ys-feed-empty {
  display: block; text-align: center; color: var(--ys-mute); font-size: 0.88rem;
  border-style: dashed; justify-content: center;
}

/* Generic panels for overview/history etc */
.uc-panel {
  background: #fff; border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius); padding: 22px; min-height: auto;
}
.uc-panel-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.uc-panel-hd h1 { margin: 0; font-size: 1.25rem; font-family: var(--ys-display); }
.uc-ov-block { margin-top: 12px; border: 1px solid var(--ys-line); border-radius: 16px; overflow: hidden; }
.uc-ov-block-hd { padding: 10px 16px; background: #f3f7fb; font-size: 0.82rem; font-weight: 700; color: var(--ys-mute); }
.uc-ov-rows { padding: 4px 8px 12px; }
.uc-ov-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 10px; border-bottom: 1px solid var(--ys-line); }
.uc-ov-row:last-child { border-bottom: 0; }
.uc-ov-btn { border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; border: 1px solid var(--ys-line); background: #fff; }
.uc-ov-btn--solid { background: var(--ys-accent); border-color: var(--ys-accent); color: #fff; }
.uc-ov-btn--ghost { color: var(--ys-accent-deep); border-color: rgba(0,163,255,0.35); background: rgba(0,163,255,0.06); }
.uc-ov-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.uc-ov-ok {
  display: inline-flex; align-items: center; margin-left: 6px;
  padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  color: #0a7a5c; background: rgba(10,122,92,0.1);
}
.uc-ov-warn {
  display: inline-flex; align-items: center; margin-left: 6px;
  padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  color: #b54708; background: rgba(181,71,8,0.1);
}

/* Account overview — radar desk */
.ys-ov { display: flex; flex-direction: column; gap: 14px; }
.ys-ov-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.ys-ov-top h1 {
  margin: 4px 0 0; font-family: var(--ys-display); font-size: 1.55rem; font-weight: 800;
}
.ys-ov-refresh { margin-top: 8px; }
.ys-ov-id {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: var(--ys-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(0,163,255,0.16), transparent 42%),
    #0b1220;
  color: #e8f3ff;
}
.ys-ov-avatar {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(0,163,255,0.18);
  border: 1px solid rgba(0,163,255,0.45);
  font-family: var(--ys-display); font-size: 1.4rem; font-weight: 800; color: #7fd4ff;
}
.ys-ov-id-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ys-ov-id-body strong { font-size: 1.15rem; font-weight: 800; color: #00a3ff; }
.ys-ov-id-body > span { font-size: 0.86rem; color: rgba(232,243,255,0.68); }
.ys-ov-pill {
  align-self: flex-start !important;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,163,255,0.18);
  color: #9adbff !important;
  font-size: 0.75rem !important;
  font-weight: 700;
}
.ys-ov-credits {
  padding: 20px;
  border-radius: var(--ys-radius);
  border: 1px solid var(--ys-line);
  background: #fff;
}
.ys-ov-credits-main {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.ys-ov-credits h2 { margin: 4px 0 0; font-size: 1.2rem; font-family: var(--ys-display); }
.ys-ov-credits-sub { margin: 8px 0 0; color: var(--ys-mute); font-size: 0.88rem; line-height: 1.45; max-width: 28em; }
.ys-ov-credits-num { text-align: right; }
.ys-ov-credits-num strong {
  display: block; font-family: var(--ys-display); font-size: 2.6rem; line-height: 1;
  color: var(--ys-accent-deep); font-weight: 800;
}
.ys-ov-credits-num span { font-size: 0.78rem; color: var(--ys-mute); }
.ys-ov-meter {
  margin-top: 16px; height: 8px; border-radius: 999px; background: #e7eef5; overflow: hidden;
}
.ys-ov-meter i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #0077c2, #00a3ff);
}
.ys-ov-credits-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.ys-ov-credits .acct-insufficient,
.ys-ov-credits .hint { margin: 12px 0 0; }
.ys-ov-shortcuts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ys-ov-chip {
  appearance: none; border: 1px solid var(--ys-line); background: #fff;
  border-radius: 16px; padding: 16px; text-align: left; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s ease, transform .15s ease;
}
.ys-ov-chip:hover { border-color: rgba(0,163,255,0.45); transform: translateY(-1px); }
.ys-ov-chip b { font-size: 0.95rem; }
.ys-ov-chip span { font-size: 0.8rem; color: var(--ys-mute); line-height: 1.4; }
.ys-ov-settings {
  border: 1px solid var(--ys-line); border-radius: var(--ys-radius);
  background: #fff; overflow: hidden;
}
.ys-ov-settings-hd {
  padding: 12px 18px; background: #f3f7fb;
  font-size: 0.82rem; font-weight: 700; color: var(--ys-mute);
}
.ys-ov-set {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-top: 1px solid var(--ys-line);
}
.ys-ov-set-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(0,163,255,0.1); color: var(--ys-accent-deep);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
}
.ys-ov-set-ico--phone { background: rgba(255,61,129,0.1); color: #c2185b; }
.ys-ov-set-body { flex: 1; min-width: 0; }
.ys-ov-set-title { font-weight: 750; font-size: 0.95rem; }
.ys-ov-set-desc { margin-top: 4px; color: var(--ys-mute); font-size: 0.82rem; line-height: 1.45; }

@media (max-width: 800px) {
  .ys-bento, .ys-tile--hero, .ys-ov-shortcuts { grid-template-columns: 1fr; }
  .ys-bento-main, .ys-feed { grid-column: 1; }
  .ys-app-bar { flex-wrap: wrap; }
  .ys-app-tabs { order: 3; width: 100%; }
  .ys-ov-credits-main { flex-direction: column; }
  .ys-ov-credits-num { text-align: left; }
  .ys-ov-set { flex-wrap: wrap; }
}

/* ========== DIAGNOSE: mission board (not ameiya step-rail) ========== */
body.ys-wiz {
  background:
    radial-gradient(circle at 88% -8%, rgba(0, 163, 255, 0.16), transparent 42%),
    radial-gradient(circle at 6% 100%, rgba(255, 61, 129, 0.06), transparent 36%),
    var(--ys-bg);
  color: var(--ys-ink);
}
.ys-wiz-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  color: var(--ys-ink);
  border-bottom: 1px solid var(--ys-line);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 4px 18px rgba(11, 18, 32, 0.08);
}
.ys-wiz-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ys-ink); font-weight: 800; letter-spacing: 0.14em;
}
.ys-wiz-bar-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.86rem; color: var(--ys-mute);
}
.ys-wiz-bar-meta a { color: var(--ys-accent-deep); text-decoration: none; font-weight: 650; }
.ys-wiz-wrap { width: min(880px, calc(100% - 28px)); margin: 22px auto 64px; }

.ys-board {
  background: #fff;
  border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(11, 18, 32, 0.06);
}
.ys-board-hd {
  padding: 22px 24px 18px;
  background:
    linear-gradient(145deg, rgba(0, 163, 255, 0.1), rgba(255, 255, 255, 0.96) 55%),
    #f4f8fc;
  color: var(--ys-ink);
  border-bottom: 1px solid rgba(0, 163, 255, 0.18);
}
.ys-board-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ys-accent-deep);
}
.ys-board-hd h1 {
  margin: 0;
  font-family: var(--ys-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ys-ink);
}
.ys-board-hd .lead {
  margin: 8px 0 0;
  color: var(--ys-mute);
  font-size: 0.9rem;
  line-height: 1.5;
}
.ys-board-plats-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  min-width: 0;
}
.ys-plats-lab {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ys-ink);
}
.ys-board-plats {
  margin: 0;
  min-width: 0;
  flex: 1;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ys-accent-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ys-board-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f3f7fb;
  border-bottom: 1px solid var(--ys-line);
  overflow-x: auto;
}
.ys-board-tab {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  padding: 10px 18px; border-radius: 999px;
  background: transparent; color: var(--ys-mute); font-weight: 750; white-space: nowrap;
}
.ys-board-tab.is-on {
  background: rgba(0, 163, 255, 0.16);
  color: var(--ys-accent-deep);
  box-shadow: none;
}

.ys-board-panels {
  position: relative;
  overflow: hidden;
}
.ys-board-panels.is-resizing {
  transition: none;
}
.ys-board-panel {
  padding: 8px 8px 16px;
  width: 100%;
  box-sizing: border-box;
}
.ys-board-panel.is-sliding {
  will-change: transform;
}
.ys-board-panel[hidden] { display: none !important; }

.ys-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 0;
}
.ys-row:last-child { border-bottom: 0; }
.ys-row--stack { grid-template-columns: 1fr; }
.ys-row-lab {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-top: 0;
}
.ys-row-lab label {
  font-weight: 700; font-size: 0.9rem; color: var(--ys-ink);
}
.ys-row-lab .char-count {
  flex-shrink: 0; font-size: 0.75rem; color: var(--ys-mute); font-variant-numeric: tabular-nums;
}
.ys-row-ctl { min-width: 0; width: 100%; }
.ys-wiz .geo-note { margin: 8px 0 0; color: var(--ys-mute); font-size: 0.82rem; line-height: 1.45; }
.ys-wiz .req { color: var(--ys-hot); }

.ys-wiz input,
.ys-wiz textarea {
  width: 100%;
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 14px;
  padding: 13px 16px;
  font: inherit;
  background: #f4f8fc;
  color: var(--ys-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ys-wiz textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}
.ys-wiz input:hover,
.ys-wiz textarea:hover {
  border-color: rgba(0, 163, 255, 0.35);
  background: #f7fbff;
}
.ys-wiz input:focus,
.ys-wiz textarea:focus {
  outline: none;
  border-color: var(--ys-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.14);
}
.ys-wiz input::placeholder,
.ys-wiz textarea::placeholder { color: rgba(11, 18, 32, 0.34); }

.ys-prod-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px 4px;
}
.ys-prod-hint { font-size: 0.82rem; color: var(--ys-mute); }
.ys-mini-add {
  appearance: none; border: 1px solid rgba(0, 163, 255, 0.35);
  background: rgba(0, 163, 255, 0.08); color: var(--ys-accent-deep);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 750; cursor: pointer;
}
.ys-mini-add:disabled { opacity: 0.4; cursor: not-allowed; }

.ys-prod-table { padding: 4px 8px 12px; }
.ys-wiz .prod-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  align-items: start;
  margin: 0 0 10px;
  padding: 4px 0 8px;
  border: 0;
  border-bottom: 1px dashed rgba(11, 18, 32, 0.12);
  border-radius: 0;
  background: transparent;
}
.ys-wiz .prod-idx {
  width: 40px; height: 40px; margin-top: 8px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(0, 163, 255, 0.14);
  color: var(--ys-accent-deep);
  border: 1px solid rgba(0, 163, 255, 0.28);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em;
}
.ys-wiz .prod-body { min-width: 0; }
.ys-wiz .prod-body .ys-row { padding-left: 0; padding-right: 0; border-bottom: 0; }
.ys-wiz .prod-remove {
  margin-top: 12px;
  appearance: none; border: 0; background: transparent;
  color: var(--ys-bad); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.ys-wiz .prod-remove-ph { width: 36px; }

.ys-wiz .kw-box {
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  background: #f4f8fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ys-wiz .kw-box:hover {
  border-color: rgba(0, 163, 255, 0.35);
  background: #f7fbff;
}
.ys-wiz .kw-box:focus-within {
  border-color: var(--ys-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.14);
}
.ys-wiz .kw-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ys-wiz .kw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0, 163, 255, 0.12); color: var(--ys-accent-deep);
  border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; font-weight: 650;
}
.ys-wiz .kw-chip button {
  appearance: none; border: 0; background: transparent; color: inherit;
  cursor: pointer; font-size: 1rem; line-height: 1; padding: 0;
}
.ys-wiz .kw-input {
  flex: 1; min-width: 160px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px 0 !important;
  border-radius: 0 !important;
}

.ys-board-ft {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--ys-line);
  background: #f7fafc;
}
.ys-board-ft .err { margin: 0 0 12px; }
.ys-board-ft-row {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px;
}
.ys-page-hint {
  margin-right: auto;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ys-mute);
}
.ys-board-ft-row .btn { min-width: 112px; min-height: 46px; }
.ys-board-ft-row .btn-primary { min-width: 148px; }
.ys-wiz [hidden] { display: none !important; }
.ys-wiz .acct-insufficient,
.ys-wiz .am-diag-softwarn {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; font-size: 0.88rem; line-height: 1.45;
}
.ys-wiz .acct-insufficient {
  background: rgba(226, 59, 59, 0.08); color: #b42318; border: 1px solid rgba(226, 59, 59, 0.22);
}
.ys-wiz .am-diag-softwarn {
  background: rgba(0, 163, 255, 0.08); color: var(--ys-accent-deep); border: 1px solid rgba(0, 163, 255, 0.22);
}

@media (max-width: 720px) {
  .ys-row { grid-template-columns: 1fr; gap: 8px; }
  .ys-row-lab { padding-top: 0; }
  .ys-wiz .prod-card { grid-template-columns: 36px 1fr; }
  .ys-wiz .prod-remove { grid-column: 2; margin-top: 0; justify-self: end; }
  .ys-board-ft-row { justify-content: stretch; }
  .ys-board-ft-row .btn { flex: 1; min-width: 0; }
}

/* ========== REPORT: KPI bento ========== */
body.ys-report {
  background: var(--ys-bg);
  font-family: var(--ys-font);
}
.ys-report-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ys-line);
}
.ys-report-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ys-ink); font-weight: 800; letter-spacing: 0.1em; }
.ys-report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ys-report-actions .rpt-btn {
  border-radius: 999px; border: 1px solid var(--ys-line); background: #fff;
  color: var(--ys-ink); text-decoration: none; padding: 8px 14px; font-size: 0.8rem; font-weight: 700;
}
.ys-report-actions .rpt-btn.primary { background: var(--ys-accent); border-color: var(--ys-accent); color: #fff; }
.ys-report-shell { width: min(980px, calc(100% - 24px)); margin: 18px auto 72px; }
.ys-report .rpt-top, .ys-report .am-rpt-spine, .ys-report .ys-doc-spine { display: none !important; }

.ys-doc-cover {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; margin-bottom: 14px;
}
.ys-doc-cover-brand {
  grid-column: 1; display: flex; flex-direction: column; gap: 12px;
  padding: 18px 20px; background: #fff; border: 1px solid var(--ys-line); border-radius: var(--ys-radius);
}
.ys-doc-cover-kicker {
  margin: 0; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ys-accent-deep); font-weight: 700;
}
.ys-doc-cover-title {
  margin: 0; font-family: var(--ys-display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
}
.ys-doc-cover-scoreline {
  grid-column: 2; grid-row: 1;
  background: #fff; color: var(--ys-ink); border-radius: var(--ys-radius); padding: 0;
  display: flex; flex-direction: column; gap: 0; overflow: hidden;
  border: 1px solid var(--ys-line);
}
.ys-doc-cover-score { text-align: center; padding: 18px 14px 12px; background: #f4f9fd; }
.ys-doc-cover-score em {
  font-style: normal; font-family: var(--ys-display); font-size: 3.2rem; color: var(--ys-accent-deep); line-height: 1;
}
.ys-doc-cover-score span { display: block; margin-top: 6px; color: var(--ys-mute); font-size: 0.8rem; font-weight: 700; }
.ys-doc-cover-score-meta { display: grid; grid-template-columns: 1fr; gap: 0; }
.ys-doc-cover-score-meta > div {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-top: 1px solid var(--ys-line); font-size: 0.86rem;
}
.ys-doc-cover-score-meta b { color: var(--ys-ink); }
.ys-doc-cover-score-meta i { font-style: normal; color: var(--ys-mute); }
.ys-doc-pullquote {
  grid-column: 1; margin: 0; padding: 14px 16px; border-radius: 16px;
  background: rgba(0,163,255,0.08); border: 1px solid rgba(0,163,255,0.2);
}
.ys-doc-cover-index, .ys-doc-cover-meta {
  grid-column: 1 / -1; background: #fff; border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius); padding: 16px;
}
.ys-doc-cover-index-label { margin: 0 0 10px; font-weight: 700; font-size: 0.85rem; color: var(--ys-mute); }
.ys-doc-breakdown-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ys-doc-break-cell { background: #f4f8fc; border-radius: 12px; padding: 10px; }
.ys-doc-break-label { font-size: 0.72rem; color: var(--ys-mute); }
.ys-doc-break-val { font-weight: 800; margin: 4px 0; font-family: var(--ys-display); }
.ys-doc-break-bar { height: 6px; background: #e1e8ef; border-radius: 999px; overflow: hidden; }
.ys-doc-break-bar i { display: block; height: 100%; background: var(--ys-accent); border-radius: 999px; }
.ys-doc-meta-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.ys-doc-meta-cols dt { margin: 0 0 4px; font-size: 0.72rem; color: var(--ys-mute); font-weight: 700; }
.ys-doc-meta-cols dd { margin: 0; line-height: 1.45; }

.ys-doc-toc-wrap, .rpt-toc-wrap {
  position: sticky; top: 56px; z-index: 30; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--ys-line); border-radius: 999px; padding: 6px;
}
.ys-doc-toc, .rpt-toc { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.ys-doc-toc a, .rpt-toc a {
  text-decoration: none; color: var(--ys-mute); font-weight: 700; font-size: 0.8rem;
  padding: 8px 12px; border-radius: 999px;
}
.ys-doc-toc a.is-active, .rpt-toc a.is-active,
.ys-doc-toc a:hover, .rpt-toc a:hover { background: rgba(0,163,255,0.12); color: var(--ys-accent-deep); }

.ys-doc-sec, .ys-doc-chapter, .rpt-section {
  background: #fff !important; border: 1px solid var(--ys-line) !important;
  border-radius: var(--ys-radius) !important; padding: 0 !important; margin-bottom: 14px !important;
  box-shadow: none !important;
}
.ys-doc-chap-hd { padding: 16px 18px 8px; }
.ys-doc-chap-hd h2 { margin: 0; font-family: var(--ys-display); font-size: 1.15rem; }
.ys-doc-dek { margin: 6px 0 0; color: var(--ys-mute); font-size: 0.88rem; }
.ys-doc-frame, .ys-doc-split, .ys-doc-folios { padding: 8px 18px 18px; }
.ys-doc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ys-doc-col { background: #f7fafc; border-radius: 14px; padding: 14px; }
.ys-doc-col-title { margin: 0 0 10px; font-size: 0.9rem; }
.ys-doc-rank { list-style: none; margin: 0; padding: 0; }
.ys-doc-rank li { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ys-line); }
.ys-doc-rank-bar { grid-column: 2 / -1; height: 6px; background: #e4ebf2; border-radius: 999px; overflow: hidden; }
.ys-doc-rank-bar i { display: block; height: 100%; background: var(--ys-accent); }

@media (max-width: 800px) {
  .ys-doc-cover { grid-template-columns: 1fr; }
  .ys-doc-cover-brand, .ys-doc-cover-title, .ys-doc-cover-scoreline, .ys-doc-pullquote { grid-column: 1; grid-row: auto; }
  .ys-doc-breakdown-strip { grid-template-columns: 1fr 1fr; }
  .ys-doc-meta-cols, .ys-doc-split { grid-template-columns: 1fr; }
}

/* ========== SIGNAL LOG (history / consume / purchase) ==========
 * 不用啊美雅「左侧时间 + 圆角色块图标卡」结构，改成台账式信号行。
 */
.uc-meta {
  font-size: 0.82rem; font-weight: 700; color: var(--ys-mute);
  padding: 4px 10px; border-radius: 999px; background: #eef3f8;
}
.ys-log {
  background: #fff;
  border: 1px solid var(--ys-line);
  border-radius: var(--ys-radius);
  overflow: hidden;
}
.ys-log-hd {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 20px 22px 16px;
  background:
    linear-gradient(180deg, rgba(0,163,255,0.06), transparent 70%),
    #0b1220;
  color: #e8f3ff;
}
.ys-log-hd .eyebrow { color: rgba(0,163,255,0.85); margin: 0; }
.ys-log-hd h1 {
  margin: 6px 0 0; font-family: var(--ys-display); font-size: 1.35rem; font-weight: 800; color: #fff;
}
.ys-log-count {
  min-width: 2.4rem; height: 2.4rem; padding: 0 10px;
  display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid rgba(0,163,255,0.45);
  background: rgba(0,163,255,0.12); color: #7fd4ff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 800; font-size: 1rem;
}
.ys-log-body { padding: 8px 0 12px; }
.ys-log-block + .ys-log-block { border-top: 1px solid var(--ys-line); }
.ys-log-day {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px 8px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--ys-mute); text-transform: uppercase;
}
.ys-log-day i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ys-accent);
  box-shadow: 0 0 0 4px rgba(0,163,255,0.15);
}
.ys-log-rows { display: flex; flex-direction: column; }
.ys-log-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  margin: 0 12px; padding: 14px 12px;
  border-radius: 0;
  border-bottom: 1px dashed rgba(11,18,32,0.1);
  text-decoration: none; color: inherit;
  transition: background .15s ease;
}
.ys-log-rows > .ys-log-row:last-child { border-bottom: 0; }
a.ys-log-row:hover { background: rgba(0,163,255,0.06); }
.ys-log-row--live { opacity: 0.95; }
.ys-log-sig {
  justify-self: start;
  padding: 4px 8px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  background: #0b1220; color: #7fd4ff;
}
.ys-log-sig--live {
  background: rgba(0,163,255,0.14); color: var(--ys-accent-deep);
  animation: ys-sig-pulse 1.4s ease-in-out infinite;
}
.ys-log-sig--burn { background: rgba(255,61,129,0.12); color: #c2185b; }
.ys-log-sig--buy { background: rgba(0,163,255,0.12); color: var(--ys-accent-deep); }
@keyframes ys-sig-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,163,255,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(0,163,255,0); }
}
.ys-log-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ys-log-main strong {
  font-size: 0.95rem; font-weight: 750;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ys-log-main span {
  font-size: 0.78rem; color: var(--ys-mute);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ys-log-val {
  font-size: 0.88rem; font-weight: 800; color: var(--ys-accent-deep);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  white-space: nowrap;
}
.ys-log-val--mute { color: var(--ys-mute); font-weight: 650; }
.ys-log-val--burn { color: #c2185b; }
.ys-log-val--buy { color: #0b1220; }
.ys-log-empty, .uc-empty {
  margin: 16px 22px 22px; padding: 40px 20px; text-align: center;
  color: var(--ys-mute); font-size: 0.92rem;
  border: 1px dashed var(--ys-line); border-radius: 16px; background: #f4f8fc;
}
@media (max-width: 560px) {
  .ys-log-row { grid-template-columns: 56px minmax(0, 1fr); }
  .ys-log-val { grid-column: 2; justify-self: start; }
}

/* ========== MODAL ========== */
.uc-modal[hidden] { display: none !important; }
.uc-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
.uc-modal-backdrop { position: absolute; inset: 0; background: rgba(11,18,32,0.5); }
.uc-modal-panel {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: #fff; border-radius: 22px;
  box-shadow: 0 28px 80px rgba(11,18,32,0.28); overflow: hidden;
}
.uc-modal-hd {
  position: relative; padding: 18px 48px 14px; text-align: center;
  border-bottom: 1px solid var(--ys-line);
}
.uc-modal-hd h2 { margin: 0; font-size: 1.05rem; font-weight: 800; font-family: var(--ys-display); }
.uc-modal-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: 0; background: transparent; font-size: 1.4rem; line-height: 1;
  color: var(--ys-mute); cursor: pointer; border-radius: 10px;
}
.uc-modal-x:hover { background: #f0f3f5; color: var(--ys-ink); }
.uc-modal-body { padding: 18px 22px 20px; }
.uc-modal-label {
  display: block; margin: 12px 0 8px; font-size: 0.86rem; font-weight: 650; color: var(--t2);
}
.uc-modal-label .req { color: var(--ys-hot); margin-right: 2px; }
.uc-modal-locked, .uc-modal-input-wrap {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--ys-line); border-radius: 14px;
  padding: 0 12px; background: #f7f9fa; min-height: 46px;
}
.uc-modal-input-wrap { background: #fff; }
.uc-modal-locked input, .uc-modal-input-wrap input {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: 0.95rem;
  color: var(--ys-ink); outline: none; min-width: 0; padding: 10px 0;
}
.uc-modal-locked input { color: var(--ys-mute); }
.uc-modal-lock {
  width: 18px; height: 18px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='5' y='11' width='14' height='9' rx='2' stroke='%235a6b7d' stroke-width='1.8'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' stroke='%235a6b7d' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.uc-modal-code-row {
  display: flex; align-items: stretch;
  border: 1px solid var(--ys-line); border-radius: 14px; overflow: hidden; background: #fff; min-height: 46px;
}
.uc-modal-code-row input {
  flex: 1; border: 0; padding: 10px 12px; font: inherit; font-size: 0.95rem; outline: none; min-width: 0;
}
.uc-modal-sms {
  flex-shrink: 0; border: 0; border-left: 1px solid var(--ys-line);
  padding: 0 14px; background: var(--ys-accent); color: #fff;
  font: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.uc-modal-sms:hover:not(:disabled) { background: var(--ys-accent-deep); }
.uc-modal-sms:disabled { opacity: 0.65; cursor: not-allowed; }
.uc-modal-step-tip { margin: 0 0 4px; font-size: 0.84rem; color: var(--ys-mute); }
.uc-modal-ft { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.uc-modal-btn {
  appearance: none; border-radius: 999px; padding: 10px 18px;
  font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.uc-modal-btn--ghost {
  border: 1px solid var(--ys-line); background: #fff; color: var(--t2);
}
.uc-modal-btn--ghost:hover { background: #f5f7f8; }
.uc-modal-btn--solid {
  border: 1px solid var(--ys-accent); background: var(--ys-accent); color: #fff;
}
.uc-modal-btn--solid:hover:not(:disabled) {
  background: var(--ys-accent-deep); border-color: var(--ys-accent-deep);
}

/* ========== RECHARGE ========== */
.uc-panel--recharge, .uc-panel--pay {
  max-width: 680px; margin: 0 auto; min-height: auto;
}
.uc-panel--recharge .uc-panel-hd, .uc-panel--pay .uc-panel-hd {
  justify-content: center; position: relative;
}
.uc-panel--recharge .uc-panel-hd .btn, .uc-panel--pay .uc-panel-hd .btn {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
}
.uc-recharge-tip {
  display: inline-block; margin: 0 0 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,163,255,0.12); color: var(--ys-accent-deep); font-size: 0.88rem; font-weight: 700;
}
.uc-recharge-sub { margin: 0 0 16px; color: var(--ys-mute); font-size: 0.86rem; }
.uc-recharge-chips {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px;
}
.uc-recharge-chip {
  appearance: none; border: 1px solid var(--ys-line); border-radius: 16px;
  background: #f7fafc; padding: 14px 10px 12px; cursor: pointer; text-align: center;
  font: inherit; color: var(--ys-ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.uc-recharge-chip strong { display: block; font-size: 1.15rem; font-weight: 800; }
.uc-recharge-chip span { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--ys-mute); }
.uc-recharge-chip:hover { border-color: rgba(0,163,255,0.4); background: #fff; }
.uc-recharge-chip.is-active {
  border-color: var(--ys-accent); background: rgba(0,163,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,163,255,0.14);
}
.uc-recharge-chip.is-active span { color: var(--ys-accent-deep); font-weight: 650; }
.uc-recharge-label {
  display: block; margin: 0 0 8px; font-size: 0.82rem; font-weight: 650; color: var(--ys-ink);
}
.uc-recharge-input-wrap {
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border: 1px solid var(--ys-line); border-radius: 14px; background: #fff;
}
.uc-recharge-input-wrap span { font-size: 1.1rem; font-weight: 700; color: var(--ys-mute); }
.uc-recharge-input-wrap input {
  flex: 1; border: 0; outline: none; background: transparent; font: inherit;
  font-size: 1.2rem; font-weight: 700; padding: 12px 0; min-width: 0; color: var(--ys-ink);
}
.uc-recharge-input-wrap:focus-within {
  border-color: var(--ys-accent); box-shadow: 0 0 0 3px rgba(0,163,255,0.14);
}
.uc-recharge-hint { margin: 10px 0 18px; font-size: 0.86rem; color: var(--ys-mute); }
.uc-recharge-pay { min-height: 46px; width: 100%; border-radius: 999px; }
@media (max-width: 560px) {
  .uc-recharge-chips { grid-template-columns: 1fr; }
}

/* ========== DIAGNOSE POLISH ========== */
.ys-wiz .kw-box {
  border: 1px solid var(--ys-line); border-radius: 14px; padding: 10px 12px; background: #f7fafc;
}
.ys-wiz .prod-card-hd {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.ys-wiz .prod-remove {
  appearance: none; border: 0; background: transparent; color: var(--ys-hot);
  font: inherit; font-weight: 700; cursor: pointer;
}
.ys-wiz .acct-insufficient, .ys-wiz .am-diag-softwarn {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; font-size: 0.9rem;
}
.ys-wiz .acct-insufficient {
  background: rgba(226,59,59,0.1); color: #a61b1b; border: 1px solid rgba(226,59,59,0.2);
}
.ys-wiz .am-diag-softwarn {
  background: rgba(181,71,8,0.08); color: #8a4500; border: 1px solid rgba(181,71,8,0.18);
}
.ys-wiz-bar > div { color: var(--ys-mute); font-size: 0.86rem; }
.ys-wiz-bar a { color: var(--ys-accent-deep); font-weight: 700; text-decoration: none; }
#veritaBadge {
  display: inline-flex; padding: 3px 8px; border-radius: 999px;
  background: rgba(0,163,255,0.12); color: var(--ys-accent-deep); font-size: 0.75rem; font-weight: 800;
}

/* ========== JOB PAGE ========== */
body.ys-job {
  background:
    radial-gradient(circle at 50% 0%, rgba(0,163,255,0.18), transparent 42%),
    var(--ys-bg);
}
.ys-job-wrap { width: min(720px, calc(100% - 28px)); margin: 28px auto 72px; }
.ys-job-card {
  background: #fff; border: 1px solid var(--ys-line); border-radius: var(--ys-radius);
  padding: 28px 24px; box-shadow: 0 18px 50px rgba(11,18,32,0.06);
}
.ys-job-hd {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.ys-job-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(0,163,255,0.2); border-top-color: var(--ys-accent);
  animation: ys-uc-spin .9s linear infinite; flex-shrink: 0;
}
@keyframes ys-uc-spin { to { transform: rotate(360deg); } }
.ys-job-hd h1 {
  margin: 0; font-family: var(--ys-display); font-size: 1.35rem; font-weight: 800;
}
.ys-job-brand {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 16px;
  background: #0b1220; color: rgba(232,243,255,0.75); font-size: 0.95rem;
}
.ys-job-brand em { font-style: normal; color: var(--ys-accent); font-weight: 800; }
.ys-job-tip {
  display: flex; gap: 12px; padding: 14px; border-radius: 16px;
  background: rgba(0,163,255,0.08); border: 1px solid rgba(0,163,255,0.18);
  margin-bottom: 18px;
}
.ys-job-tip strong { display: block; margin-bottom: 4px; }
.ys-job-tip p { margin: 0; color: var(--ys-mute); font-size: 0.88rem; line-height: 1.5; }
.ys-job-sec { margin-top: 16px; }
.ys-job-sec h2 { margin: 0 0 8px; font-size: 0.95rem; }
.ys-job-sec ul {
  margin: 0; padding-left: 1.15em; color: var(--ys-mute); font-size: 0.88rem; line-height: 1.65;
}
.ys-job-actions {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px;
}
.ys-job-ack {
  min-width: 180px; min-height: 46px;
  border-radius: 999px !important;
  border: 1.5px solid var(--ys-accent) !important;
  background: rgba(0, 163, 255, 0.08) !important;
  color: var(--ys-accent-deep) !important;
  font-weight: 750 !important;
}
.ys-job-ack:hover {
  background: rgba(0, 163, 255, 0.16) !important;
}
.ys-job-thanks { margin: 0; color: var(--ys-mute); font-size: 0.84rem; text-align: center; }
.ys-job-done {
  margin-top: 18px; padding: 18px; border-radius: 16px;
  background: rgba(18,163,106,0.08); border: 1px solid rgba(18,163,106,0.2);
}
.ys-job-done p { margin: 0 0 12px; font-weight: 700; }

/* ========== REPORT CYAN OVERRIDES ========== */
body.ys-report {
  --g: var(--ys-accent);
  --gd: var(--ys-accent-deep);
  --gl: #4dc3ff;
  --accent: var(--ys-accent);
  --bg: var(--ys-bg);
  --ink: var(--ys-ink);
  /* 报告背景由 yunshu-report.css 接管 */
}
body.ys-report .rpt-shell { background: transparent; }
/* 报告按钮样式由 yunshu-report.css 接管 */
body.ys-report .rpt-empty {
  color: var(--ys-mute); padding: 48px 24px; text-align: center;
}
.ys-doc-cover-intro {
  grid-column: 1 / -1; margin: 0; padding: 14px 0 0;
  background: transparent; border: 0; color: var(--ys-mute); line-height: 1.55;
}
