:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #162033;
  background: #f3f6fa;
  font-synthesis: none;
  --ink: #162033;
  --ink-2: #33435c;
  --muted: #78859a;
  --subtle: #a6b0c0;
  --line: #e4e9f0;
  --line-strong: #d5dde8;
  --card: #ffffff;
  --soft: #f7f9fc;
  --blue: #356fe8;
  --blue-soft: #edf3ff;
  --green: #16956a;
  --green-soft: #e9f8f1;
  --red: #dc5b66;
  --red-soft: #fff0f1;
  --amber: #a87522;
  --amber-soft: #fff7e7;
  --shadow: 0 14px 40px rgba(25, 42, 71, .06);
  --shadow-lg: 0 24px 70px rgba(25, 42, 71, .13);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: #f3f6fa; }
body { margin: 0; min-width: 320px; background: linear-gradient(145deg, #f8fafc 0%, #f2f5f9 52%, #edf2f8 100%); }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
input, textarea, select { width: 100%; color: var(--ink); background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; outline: 0; transition: border-color .18s, box-shadow .18s, background .18s; }
input, select { min-height: 44px; padding: 0 13px; }
textarea { min-height: 100px; padding: 12px 13px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #b0b8c5; }
input:focus, textarea:focus, select:focus { border-color: #98b8f4; background: #fff; box-shadow: 0 0 0 4px rgba(53, 111, 232, .11); }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 15% 15%, rgba(223, 235, 255, .9), transparent 35%), radial-gradient(circle at 85% 85%, rgba(226, 248, 239, .75), transparent 32%), #f5f8fc; }
.auth-card { width: min(450px, 100%); padding: 48px 42px 40px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 30px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-lg); text-align: center; backdrop-filter: blur(18px); }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 17px; background: linear-gradient(145deg, #1b2a40, #0c1523); color: #fff; font-size: 23px; font-weight: 850; box-shadow: 0 10px 22px rgba(17, 32, 55, .2); }
.brand-mark.small { width: 34px; height: 34px; margin: 0; border-radius: 11px; font-size: 15px; }
.auth-card h1 { margin: 6px 0 10px; color: #101c30; font-size: 36px; letter-spacing: -.065em; }
.auth-card .muted { max-width: 300px; margin: auto; line-height: 1.7; }
.auth-card .stack { margin-top: 28px; }
.auth-card .tiny { margin-top: 17px; }
.eyebrow { margin: 0 0 9px; color: #8d9aae; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.tiny { color: var(--subtle); font-size: 11px; line-height: 1.5; }
.mode-switch { display: flex; gap: 5px; margin-top: 27px; padding: 5px; border: 1px solid #e9edf3; border-radius: 14px; background: #f2f5f8; }
.mode-switch button { flex: 1; padding: 10px 8px; border-radius: 10px; color: var(--muted); background: transparent; }
.mode-switch button.selected { color: var(--ink); background: #fff; box-shadow: 0 4px 12px rgba(32, 47, 72, .1); font-weight: 700; }

.stack { display: grid; gap: 12px; }
.primary, .secondary, .ghost, .danger-button { min-height: 42px; padding: 0 16px; border-radius: 11px; font-size: 13px; font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s, color .18s; }
.primary { color: #fff; background: linear-gradient(135deg, #1b2a40, #263a58); box-shadow: 0 7px 16px rgba(24, 42, 68, .16); }
.primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, #223552, #30496d); box-shadow: 0 10px 20px rgba(24, 42, 68, .2); }
.secondary { color: #2461d2; background: var(--blue-soft); }
.secondary:hover { background: #dfeaff; }
.ghost { color: #56657a; background: #f3f6f9; }
.ghost:hover { color: var(--ink); background: #e9eef5; }
.danger-button { color: #bf4d59; background: var(--red-soft); }
.danger-button:hover { background: #ffe0e3; }
.wide { width: 100%; margin-top: 4px; }
.error { margin: 12px 0 0; color: #c8434f; font-size: 13px; line-height: 1.55; }
.text-green { color: var(--green) !important; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: 252px; display: flex; flex-direction: column; padding: 26px 16px 18px; border-right: 1px solid rgba(218, 226, 237, .9); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; color: #142137; font-size: 18px; font-weight: 850; letter-spacing: -.04em; }
.side-caption { margin: 11px 12px 30px; color: #a1acbb; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 13px; border-radius: 12px; color: #78869a; background: transparent; text-align: left; font-size: 13px; font-weight: 600; }
.sidebar nav button span { width: 20px; color: #8e9bad; font-size: 18px; line-height: 1; text-align: center; }
.sidebar nav button:hover { color: var(--ink); background: #f4f7fb; }
.sidebar nav button.active { color: #2865d6; background: linear-gradient(100deg, #edf3ff, #e7f0ff); box-shadow: inset 3px 0 0 #4c82eb; font-weight: 800; }
.sidebar nav button.active span { color: #2865d6; }
.side-foot { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px; color: #8793a5; font-size: 11px; }
.dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.dot.green { background: #36bf82; box-shadow: 0 0 0 4px #e2f7ed; }
.icon-button { margin-left: auto; padding: 6px 8px; color: #8390a2; background: transparent; font-size: 11px; }
.icon-button:hover { color: #c24955; }

.main { width: calc(100% - 252px); min-width: 0; margin-left: 252px; padding: 0 42px 72px; }
.topbar { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h2 { margin: 0; color: #142137; font-size: 29px; letter-spacing: -.06em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.status-pill, .quality { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 99px; color: #77859a; background: #f1f4f7; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.status-pill.ok, .quality { color: #158459; background: var(--green-soft); }
.status-pill.off, .quality.warn { color: #ad6d23; background: var(--amber-soft); }
.user-chip { padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; color: #68778c; background: #fff; font-size: 11px; box-shadow: 0 4px 12px rgba(30, 48, 76, .04); }
.toast { position: fixed; z-index: 10; top: 23px; right: 30px; max-width: min(420px, calc(100vw - 40px)); padding: 13px 16px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; color: var(--ink-2); background: #fff; box-shadow: var(--shadow-lg); font-size: 13px; }
.toast.bad { border-left-color: var(--red); }

.page-grid, .research-page { display: grid; gap: 18px; }
.card { min-width: 0; border: 1px solid rgba(221, 228, 237, .9); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.panel { padding: 25px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-head h2, .panel-head h3 { margin: 0; color: #17243a; letter-spacing: -.045em; }
.panel-head h2 { font-size: 22px; }
.panel-head h3 { font-size: 17px; }
.panel-head .eyebrow { margin-bottom: 6px; }
.compact-head { align-items: center; margin-top: 26px; margin-bottom: 12px; }
.compact-head h3 { font-size: 15px; }
.empty { padding: 24px; border: 1px dashed #d9e0ea; border-radius: 13px; color: #8996a8; background: #fbfcfd; font-size: 13px; line-height: 1.7; text-align: center; }

.hero { display: flex; align-items: center; justify-content: space-between; min-height: 270px; padding: 34px 38px; overflow: hidden; background: radial-gradient(circle at 84% 50%, rgba(210, 227, 255, .72), transparent 28%), linear-gradient(122deg, #fff 0%, #f5f8ff 100%); }
.hero h1 { margin: 4px 0 13px; color: #12213a; font-size: 34px; letter-spacing: -.075em; }
.max { max-width: 630px; font-size: 13px; line-height: 1.8; }
.hero-orbit { display: flex; align-items: center; gap: 12px; color: #7893c7; font-size: 10px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.hero-orbit b { color: var(--blue); font-size: 18px; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric { padding: 20px 21px; }
.metric span, .metric small { color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 12px; color: #16243a; font-size: 28px; letter-spacing: -.06em; }
.metric small { margin-left: 5px; }
.mini-list, .table-list { display: grid; }
.mini-item, .table-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-width: 0; padding: 14px 0; border-bottom: 1px solid #eef1f5; color: #68768a; font-size: 12px; }
.mini-item:last-child, .table-row:last-child { border-bottom: 0; }
.symbol { color: #1b2a40; font-weight: 850; letter-spacing: .04em; }
.push-right { margin-left: auto; }
.status-text { color: #718dbb; }

.two-col { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .85fr); align-items: start; }
.research-control { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: 20px; padding: 29px; }
.research-control h1 { margin: 0 0 7px; color: #15243a; font-size: 29px; letter-spacing: -.065em; }
.research-control > .wide { grid-column: 1 / -1; }
.research-input { display: flex; gap: 9px; min-width: 0; }
.research-input input { min-width: 0; }
.mode-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mode-row button { min-height: 72px; padding: 13px 14px; border: 1px solid transparent; border-radius: 13px; color: #6e7d92; background: #f5f7fa; text-align: left; }
.mode-row button:hover { border-color: #dce5f4; background: #f1f5fb; }
.mode-row button b, .mode-row button span { display: block; }
.mode-row button b { margin-bottom: 6px; color: #26364f; font-size: 13px; }
.mode-row button span { font-size: 10px; line-height: 1.5; }
.mode-row button.modeActive { border-color: #bcd1fa; color: #2b61c5; background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(53, 111, 232, .04); }
.snapshot-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; }
.quote-card, .indicators, .progress-card { padding: 25px; }
.quote-card h2 { margin: 0; color: #1b2a40; font-size: 23px; }
.quote-card h2 small { margin-left: 7px; color: #94a0b1; font-size: 12px; font-weight: 500; }
.quote-main { display: flex; align-items: baseline; gap: 14px; margin: 31px 0 18px; }
.quote-main strong { color: #12213a; font-size: 43px; letter-spacing: -.075em; }
.quote-main span { font-size: 20px; font-weight: 800; }
.up { color: var(--red); }
.down { color: var(--green); }
/* A-share convention: gain/up = red; loss/down = green.
   Keep these separate from success/error colors used by system health UI. */
.market-gain { color: #d94f5b !important; }
.market-loss { color: #16855f !important; }
.market-flat { color: var(--muted) !important; }
.facts { display: flex; flex-wrap: wrap; gap: 9px 15px; color: #8b97a8; font-size: 10px; }
.explain { margin: 17px 0 0; padding: 11px 13px; border-radius: 10px; color: #718097; background: #f5f9ff; font-size: 11px; line-height: 1.65; }
.indicator-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.indicator-grid div { padding: 12px; border: 1px solid #eef1f5; border-radius: 11px; background: #fafbfd; }
.indicator-grid small, .indicator-grid b { display: block; }
.indicator-grid small { margin-bottom: 6px; color: #8996a8; font-size: 10px; }
.indicator-grid b { color: #283850; font-size: 12px; }
.progress-line { display: flex; flex-wrap: wrap; gap: 8px; }
.progress-line span { padding: 8px 10px; border-radius: 9px; color: #8b97a8; background: #f4f6f8; font-size: 11px; }
.progress-line span.done { color: #18855e; background: var(--green-soft); }
.progress-line i { margin-left: 4px; font-style: normal; }
.analyst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.analyst-card { min-height: 205px; padding: 19px; }
.analyst-head { display: flex; align-items: center; gap: 10px; }
.analyst-avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #2865d6; background: var(--blue-soft); font-size: 12px; font-weight: 850; }
.analyst-head b, .analyst-head small { display: block; }
.analyst-head b { color: #25344b; font-size: 12px; }
.analyst-head small { margin-top: 4px; color: #8c98a8; font-size: 10px; line-height: 1.45; }
.analyst-head .tiny { margin-left: auto; white-space: nowrap; }
.stance { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin: 22px 0 8px; }
.stance strong { color: #20314a; font-size: 17px; }
.stance span { color: #8b97a7; font-size: 10px; white-space: nowrap; }
.analyst-card p { min-height: 38px; margin: 0 0 12px; color: #66758a; font-size: 12px; line-height: 1.6; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 4px 7px; border-radius: 6px; color: #758398; background: #f3f5f8; font-size: 10px; }
.tag.risk { color: #bc5962; background: var(--red-soft); }
.judge-card { padding: 29px; background: radial-gradient(circle at 85% 20%, rgba(221, 234, 255, .85), transparent 28%), linear-gradient(125deg, #fff 0%, #f5f9ff 100%); }
.judge-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.judge-top h2 { margin: 0; color: #182840; font-size: 25px; letter-spacing: -.055em; }
.judge-top h2 span { color: var(--blue); }
.judge-score { text-align: right; }
.judge-score b { display: block; color: #1d2d46; font-size: 35px; letter-spacing: -.06em; }
.judge-score small { color: #8693a6; font-size: 10px; }
.judge-summary { margin: 25px 0; color: #5f6e83; font-size: 14px; line-height: 1.8; }
.decision-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 19px; }
.decision-facts span { padding: 8px 10px; border-radius: 8px; color: #64738a; background: #f3f6fa; font-size: 11px; }
.judge-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 19px; border-top: 1px solid var(--line); }
.judge-cols h4 { margin: 0 0 9px; color: #33435b; font-size: 12px; }
.judge-cols ul { margin: 0; padding-left: 18px; color: #68778c; font-size: 12px; line-height: 1.75; }
.guardrail { margin-top: 20px; padding: 11px 13px; border-radius: 9px; color: #936d2d; background: var(--amber-soft); font-size: 11px; line-height: 1.6; }

.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.data-grid > div { min-width: 0; padding: 15px; border: 1px solid #edf1f5; border-radius: 13px; background: #fafbfd; }
.data-grid > div > b { display: block; margin-bottom: 12px; color: #30415b; font-size: 12px; }
.data-grid p { display: flex; justify-content: space-between; gap: 8px; margin: 9px 0 0; color: #6f7d91; font-size: 11px; }
.data-grid p span { font-weight: 800; }
.calendar-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.calendar-row span { padding: 9px 8px; border-radius: 8px; color: #8a96a6; background: #f4f6f8; font-size: 10px; text-align: center; }
.calendar-row span.done { color: #18855d; background: var(--green-soft); }

.category-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 12px; }
.category-tabs button { padding: 9px 12px; border-radius: 9px; color: #6d7b8f; background: #f3f6f9; font-size: 11px; }
.category-tabs button.selected { color: #2865d6; background: var(--blue-soft); font-weight: 800; }
.category-tabs small { margin-left: 4px; color: #9ba6b5; }
.helper-text { margin: 7px 0 15px; font-size: 11px; line-height: 1.65; }
.inline-select, .full-select { min-height: 38px; padding: 0 10px; border-radius: 9px; font-size: 11px; }
.field-label { display: grid; gap: 6px; color: #7a8799; font-size: 11px; }
.field-label input, .field-label select { margin-top: 1px; }
.check-label { display: flex; align-items: center; gap: 8px; color: #6f7d91; font-size: 12px; }
.check-label input, .switches input, .slot-row input, .source-row input, .task-row input { width: auto; min-height: 0; accent-color: var(--blue); }
.watch-row { grid-template-columns: minmax(150px, 1fr) minmax(145px, .72fr) minmax(115px, .65fr) auto; }
.security-cell { display: grid; gap: 4px; min-width: 0; }
.security-cell b { overflow: hidden; color: #25354c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.security-cell small { color: #94a0b0; font-size: 10px; letter-spacing: .05em; }
.pagination-bar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 15px; color: #8a96a7; font-size: 10px; }
.pagination-bar > span { margin-right: auto; }
.pagination-bar label { display: inline-flex; align-items: center; gap: 5px; }
.pagination-bar select { min-height: 30px; padding: 0 7px; border: 1px solid #e6ebf2; border-radius: 7px; color: #68778b; background: #fbfcfe; font-size: 10px; }
.pagination-bar .ghost { min-height: 30px; padding: 0 10px; }
.panel-wide { grid-column: 1 / -1; }
.category-research-panel { border-color: #dfe9fb; background: radial-gradient(circle at 93% 0%, rgba(215, 230, 255, .78), transparent 28%), #fff; }
.category-query { display: flex; gap: 10px; }
.category-query input { min-width: 0; flex: 1; }
.batch-badge { padding: 8px 10px; border-radius: 999px; color: #2562c7; background: var(--blue-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.category-result-list { margin-top: 17px; border-top: 1px solid #e9eff8; }
.category-result-row { display: grid; grid-template-columns: minmax(140px, .7fr) 110px 135px minmax(220px, 1.5fr); align-items: center; gap: 14px; min-width: 0; padding: 13px 0; border-bottom: 1px solid #eef2f7; }
.category-result-row:last-child { border-bottom: 0; }
.decision-chip, .score-chip { justify-self: start; padding: 6px 8px; border-radius: 7px; font-size: 10px; white-space: nowrap; }
.decision-chip { color: #2674c9; background: #edf5ff; }
.decision-chip.buy { color: #17835b; background: var(--green-soft); }
.decision-chip.sell, .decision-chip.reduce { color: #bb5b62; background: var(--red-soft); }
.score-chip { color: #6e7d92; background: #f4f6f9; }
.category-summary { overflow: hidden; margin: 0; color: #68778b; font-size: 11px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }

.admin-page { gap: 18px; }
.admin-welcome { display: flex; align-items: center; gap: 26px; padding: 27px 29px; }
.admin-welcome > div:first-child { flex: 1; min-width: 0; }
.admin-welcome h2 { margin: 0 0 7px; color: #17263d; letter-spacing: -.055em; }
.setup-progress { display: flex; flex-wrap: wrap; gap: 6px; }
.setup-progress span { padding: 8px 10px; border-radius: 9px; color: #8a96a7; background: #f3f5f8; font-size: 11px; white-space: nowrap; }
.setup-progress span.done { color: #18855d; background: var(--green-soft); }
.simple-guide { border-color: #d9e7fb; color: #526d91; background: linear-gradient(110deg, #f7fbff, #f2f7ff); font-size: 12px; line-height: 1.75; }
.simple-guide b { color: #2e5eae; }
.simple-guide p { margin: 7px 0 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr); gap: 18px; align-items: start; }
.admin-page .provider-form { display: grid; gap: 11px; margin-bottom: 21px; }
.admin-page .provider-form input { margin-top: 2px; }
.provider-list, .users { border-top: 1px solid var(--line); }
.provider-card { grid-template-columns: minmax(130px, 1fr) minmax(170px, 1fr) auto; min-height: 72px; }
.provider-card > span, .users .table-row > span { min-width: 0; }
.provider-card b, .provider-card small, .table-row small { display: block; }
.provider-card b { overflow: hidden; color: #26364e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.provider-card small, .table-row small { margin-top: 4px; color: #99a4b3; font-size: 10px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.row-actions .primary, .row-actions .secondary, .row-actions .ghost, .row-actions .danger-button { min-height: 36px; padding: 0 11px; font-size: 11px; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin: 0 5px 1px 0; border-radius: 50%; background: #aab4c1; }
.status-dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-dot.off { background: #c8ced7; }
.subsection { padding: 17px 0; border-top: 1px solid #edf0f4; }
.subsection h4 { margin: 0 0 12px; color: #304059; font-size: 12px; }
.users .table-row { grid-template-columns: minmax(130px, 1fr) auto auto; }
.budget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 21px; }
.budget-grid label { color: #7b8798; font-size: 11px; }
.budget-grid input { margin-top: 6px; }
.switches { display: grid; gap: 11px; color: #68778b; font-size: 12px; }
.switches label { display: flex; align-items: center; gap: 8px; }
.health-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 21px; color: #788598; font-size: 12px; }
.health-row b { color: #243650; }
.error-log { padding: 10px 0; border-bottom: 1px solid #eef1f4; color: #b6515a; font-size: 11px; }
.error-log span { margin-right: 7px; padding: 3px 6px; border-radius: 4px; background: var(--red-soft); }
.slot-grid, .prompt-row { display: grid; gap: 0; }
.slot-row { display: grid; grid-template-columns: minmax(230px, 1.1fr) minmax(220px, 1fr) auto auto; align-items: center; gap: 14px; min-width: 0; padding: 15px 0; border-bottom: 1px solid #edf0f4; }
.slot-row:last-child, .source-row:last-child, .task-row:last-child { border-bottom: 0; }
.slot-row span, .source-row > span, .task-row > span { min-width: 0; }
.slot-row b, .slot-row small, .source-row b, .source-row small, .task-row b, .task-row small { display: block; }
.slot-row b, .source-row b, .task-row b { color: #26364f; font-size: 12px; }
.slot-row small, .source-row small, .task-row small { margin-top: 4px; color: #909cab; font-size: 10px; line-height: 1.5; }
.slot-row select { min-width: 0; }
.slot-row label, .source-row label, .task-row label { display: flex; align-items: center; gap: 6px; color: #69788b; font-size: 11px; white-space: nowrap; }
.slot-row .ghost, .source-row .ghost, .task-row .ghost, .task-row .secondary, .task-row .danger-button { min-height: 36px; padding: 0 11px; font-size: 11px; white-space: nowrap; }
.prompt-row { padding: 16px 0; border-bottom: 1px solid #edf0f4; }
.prompt-row:last-child { border-bottom: 0; }
.prompt-row .panel-head { align-items: center; margin-bottom: 10px; }
.prompt-row textarea { min-height: 108px; font-size: 11px; line-height: 1.65; }
.source-row { display: grid; grid-template-columns: minmax(205px, 1fr) minmax(250px, 1.35fr) auto auto auto; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid #edf0f4; }
.source-row.itick-source { grid-template-columns: minmax(205px, 1fr) minmax(220px, 1.05fr) minmax(190px, .88fr) auto auto auto auto; }
.source-row input { min-width: 0; min-height: 38px; font-size: 11px; }
.source-token-input { letter-spacing: .02em; }
.task-form { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1.1fr .9fr auto; gap: 9px; margin-bottom: 13px; }
.task-form input, .task-form select { min-width: 0; min-height: 42px; font-size: 11px; }
.task-row { display: grid; grid-template-columns: minmax(210px, 1.5fr) auto auto auto auto auto; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid #edf0f4; }
.task-row .tiny { white-space: nowrap; }

.knowledge-search { display: flex; gap: 9px; }
.knowledge-search input { min-width: 0; }
.search-results { display: grid; gap: 8px; margin-top: 11px; }
.doc-list { display: grid; gap: 9px; margin-top: 20px; }
.doc-item { min-width: 0; padding: 13px 14px; border: 1px solid #edf0f4; border-radius: 11px; background: #fafbfd; }
.doc-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doc-item-head .danger-button { min-height: 30px; padding: 0 9px; font-size: 10px; }
.doc-item b { color: #30405a; font-size: 12px; }
.doc-item small { display: block; margin-top: 5px; color: #9aa5b4; font-size: 10px; }
.doc-item p { margin: 8px 0 0; color: #68778b; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.knowledge-note { margin-top: 16px; padding: 14px; border: 1px solid #f4e5be; border-radius: 11px; color: #8d6b30; background: #fffaf0; font-size: 11px; line-height: 1.65; }
.knowledge-note p { margin: 5px 0 0; }
.upload-box { display: block; padding: 12px; border: 1px dashed #b7c9e7; border-radius: 10px; color: #5674a3; background: #f7faff; font-size: 12px; text-align: center; }
.upload-box input { display: none; }

@media (max-width: 1240px) {
  .main { padding-right: 28px; padding-left: 28px; }
  .admin-grid { grid-template-columns: 1fr; }
  .task-form { grid-template-columns: repeat(3, 1fr); }
  .task-form .primary { grid-column: span 3; }
  .source-row { grid-template-columns: 1fr 1.2fr auto auto auto; }
  .source-row.itick-source { grid-template-columns: minmax(190px, 1fr) minmax(210px, 1fr) minmax(175px, .8fr) auto auto auto auto; }
}
@media (max-width: 1000px) {
  .sidebar { width: 220px; }
  .main { width: calc(100% - 220px); margin-left: 220px; padding: 0 22px 68px; }
  .hero-orbit { display: none; }
  .snapshot-grid, .two-col { grid-template-columns: 1fr; }
  .analyst-grid { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-row { grid-template-columns: 1fr 1fr auto auto; }
  .source-row, .source-row.itick-source { grid-template-columns: 1fr 1fr auto auto; }
  .source-row .source-url-input, .source-row .source-token-input { grid-column: 1 / -1; grid-row: auto; }
  .task-row { grid-template-columns: minmax(170px, 1fr) auto auto auto; }
  .task-row > span:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .auth-shell { padding: 16px; }
  .auth-card { padding: 36px 22px 30px; border-radius: 24px; }
  .auth-card h1 { font-size: 32px; }
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 68px; display: block; padding: 5px 7px; border-top: 1px solid var(--line); border-right: 0; background: rgba(255, 255, 255, .93); }
  .side-brand, .side-caption, .side-foot { display: none; }
  .sidebar nav { display: flex; justify-content: space-around; height: 100%; gap: 2px; }
  .sidebar nav button { display: grid; flex: 1; place-items: center; gap: 2px; min-height: 0; padding: 4px 2px; border-radius: 9px; font-size: 9px; text-align: center; }
  .sidebar nav button span { width: auto; font-size: 18px; }
  .sidebar nav button.active { box-shadow: none; }
  .main { width: 100%; margin-left: 0; padding: 0 13px 87px; }
  .topbar { min-height: 86px; }
  .topbar h2 { font-size: 22px; }
  .top-actions { gap: 5px; }
  .user-chip { display: none; }
  .status-pill { min-height: 25px; padding: 0 8px; font-size: 9px; }
  .toast { top: 12px; right: 13px; left: 13px; max-width: none; }
  .panel { padding: 18px; }
  .hero { min-height: 0; padding: 25px 22px; }
  .hero h1 { font-size: 27px; }
  .metric-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 24px; }
  .research-control { grid-template-columns: 1fr; padding: 21px; }
  .research-input { flex-direction: column; }
  .mode-row { grid-template-columns: 1fr; }
  .indicator-grid { grid-template-columns: repeat(2, 1fr); }
  .analyst-grid { grid-template-columns: 1fr; }
  .judge-top { flex-direction: column; }
  .judge-score { text-align: left; }
  .judge-cols { grid-template-columns: 1fr; gap: 10px; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .calendar-row { grid-template-columns: repeat(2, 1fr); }
  .source-row, .source-row.itick-source { grid-template-columns: 1fr auto auto; gap: 8px; }
  .source-row > span, .source-row .source-url-input, .source-row .source-token-input { grid-column: 1 / -1; }
  .source-row > label { justify-self: start; }
  .watch-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .watch-row .inline-select { grid-column: 1; }
  .watch-row .icon-button { grid-column: 2; grid-row: 1; }
  .category-query { flex-direction: column; }
  .category-result-row { grid-template-columns: 1fr auto; gap: 8px; }
  .category-result-row .security-cell { grid-column: 1; }
  .category-result-row .decision-chip, .category-result-row .score-chip { grid-column: 2; }
  .category-summary { grid-column: 1 / -1; white-space: normal; }
  .pagination-bar { justify-content: flex-start; }
  .pagination-bar > span { width: 100%; margin-right: 0; }
  .admin-welcome { align-items: stretch; flex-direction: column; gap: 16px; padding: 21px; }
  .admin-welcome .ghost { width: 100%; }
  .setup-progress { display: grid; grid-template-columns: repeat(3, 1fr); }
  .setup-progress span { padding: 8px 5px; font-size: 10px; text-align: center; white-space: normal; }
  .provider-card { grid-template-columns: 1fr auto; gap: 9px; }
  .provider-card > span:nth-child(2) { grid-column: 1; }
  .provider-card .row-actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; }
  .task-form { grid-template-columns: 1fr; }
  .task-form .primary { grid-column: auto; }
  .slot-row { grid-template-columns: 1fr auto; gap: 10px; }
  .slot-row select { grid-column: 1 / -1; }
  .source-row { grid-template-columns: 1fr 1fr; }
  .source-row input { grid-column: 1 / -1; }
  .source-row label { justify-self: start; }
  .source-row .ghost { justify-self: start; }
  .task-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .task-row > span:first-child { grid-column: 1 / -1; }
  .task-row .tiny { grid-column: 1 / -1; }
  .knowledge-search { flex-direction: column; }
  .topbar .eyebrow { margin-bottom: 5px; }
}

/* =========================================================
   PGDS UI FINISH — visual-only refinement layer
   No business logic / API / data behavior changes.
   ========================================================= */
:root {
  --ink: #0d1728;
  --ink-2: #26364c;
  --muted: #68778d;
  --subtle: #9aa7b8;
  --line: #e6ebf2;
  --line-strong: #d7dfe9;
  --card: rgba(255,255,255,.96);
  --soft: #f7f9fc;
  --blue: #285fd7;
  --blue-2: #174aa9;
  --blue-soft: #edf3ff;
  --green: #0e9b6c;
  --green-soft: #eaf8f3;
  --red: #d94f5c;
  --red-soft: #fff0f2;
  --amber: #a96e16;
  --amber-soft: #fff7e8;
  --shadow: 0 8px 30px rgba(20, 35, 58, .055), 0 1px 2px rgba(20,35,58,.03);
  --shadow-lg: 0 24px 70px rgba(20, 35, 58, .14), 0 2px 8px rgba(20,35,58,.06);
}
html { background:#f5f7fb; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(72,116,218,.10), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(49,174,132,.055), transparent 20%),
    linear-gradient(180deg,#f8faff 0%,#f4f7fb 46%,#f6f8fb 100%);
}
body, button, input, textarea, select { -webkit-font-smoothing: antialiased; }
::selection { background:#dce8ff; color:#0f2345; }

input, textarea, select {
  border-color:#e3e9f1;
  border-radius:10px;
  background:#fbfcfe;
  box-shadow: inset 0 1px 0 rgba(15,28,48,.012);
}
input:hover, textarea:hover, select:hover { border-color:#d2dbe7; background:#fff; }
input:focus, textarea:focus, select:focus {
  border-color:#8eafea;
  box-shadow:0 0 0 3px rgba(40,95,215,.09), 0 5px 14px rgba(36,74,145,.04);
}

.auth-shell {
  background:
    radial-gradient(circle at 18% 15%, rgba(66,113,219,.16), transparent 27%),
    radial-gradient(circle at 82% 78%, rgba(41,168,127,.10), transparent 24%),
    linear-gradient(145deg,#f8faff,#eef3f9);
}
.auth-card {
  border:1px solid rgba(255,255,255,.95);
  border-radius:28px;
  background:rgba(255,255,255,.92);
  box-shadow:0 32px 90px rgba(30,50,84,.16), 0 2px 10px rgba(30,50,84,.05);
}
.brand-mark {
  background:linear-gradient(145deg,#14243c 0%,#091321 100%);
  box-shadow:0 12px 28px rgba(13,28,51,.25), inset 0 1px 0 rgba(255,255,255,.16);
}
.auth-card h1 { color:#0c182a; font-weight:850; }

.primary, .secondary, .ghost, .danger-button {
  border-radius:9px;
  letter-spacing:-.01em;
  box-shadow:none;
}
.primary {
  background:linear-gradient(180deg,#18345c 0%,#102744 100%);
  box-shadow:0 6px 16px rgba(18,45,79,.15), inset 0 1px 0 rgba(255,255,255,.15);
}
.primary:hover { background:linear-gradient(180deg,#1d4070,#153054); box-shadow:0 8px 20px rgba(18,45,79,.18); }
.secondary { color:#245ec8; background:#edf3ff; border:1px solid #dfe9fb; }
.secondary:hover { background:#e5efff; }
.ghost { color:#526178; background:#f3f6f9; border:1px solid #ebeff4; }
.ghost:hover { background:#eaf0f6; }
.danger-button { border:1px solid #f5dfe2; }

.sidebar {
  width:244px;
  padding:22px 14px 16px;
  border-right:1px solid rgba(217,225,236,.92);
  background:rgba(249,251,254,.89);
  box-shadow:10px 0 40px rgba(30,48,76,.025);
  backdrop-filter:blur(24px) saturate(1.15);
}
.side-brand { padding:3px 10px; font-size:17px; color:#0f1e33; }
.side-caption { margin:10px 10px 25px; color:#a1adbc; font-size:8px; letter-spacing:.19em; }
.sidebar nav { gap:4px; }
.sidebar nav button {
  min-height:43px;
  padding:0 11px;
  border:1px solid transparent;
  border-radius:10px;
  color:#6c7a8e;
  font-size:12px;
  font-weight:650;
  transition:all .16s ease;
}
.sidebar nav button span { color:#93a0b1; font-size:17px; }
.sidebar nav button:hover { color:#263951; background:rgba(255,255,255,.75); border-color:#e9edf3; }
.sidebar nav button.active {
  color:#173e84;
  border-color:#dbe7fb;
  background:linear-gradient(180deg,#f4f8ff 0%,#edf4ff 100%);
  box-shadow:0 6px 18px rgba(58,101,185,.07), inset 0 1px 0 #fff;
  font-weight:800;
}
.sidebar nav button.active::before {
  content:"";
  width:3px;
  height:17px;
  margin-left:-12px;
  margin-right:-3px;
  border-radius:4px;
  background:#316bd8;
  box-shadow:0 0 0 3px rgba(49,107,216,.07);
}
.sidebar nav button.active span { color:#2b63ca; }
.side-foot { border-top:1px solid #edf1f5; margin-top:auto; padding-top:15px; }

.main { width:calc(100% - 244px); margin-left:244px; padding:0 38px 76px; }
.topbar {
  min-height:96px;
  position:sticky;
  top:0;
  z-index:4;
  margin:0 -12px 10px;
  padding:0 12px;
  background:linear-gradient(180deg,rgba(247,249,253,.94) 0%,rgba(247,249,253,.83) 72%,rgba(247,249,253,0) 100%);
  backdrop-filter:blur(15px);
}
.topbar h2 { color:#0f1c30; font-size:25px; font-weight:850; letter-spacing:-.055em; }
.user-chip { border-color:#e4e9f0; background:rgba(255,255,255,.9); box-shadow:0 4px 14px rgba(29,46,73,.04); }
.status-pill, .quality { border:1px solid #e8edf3; background:#f2f5f8; }
.status-pill.ok, .quality { border-color:#d7eee6; }
.status-pill.off, .quality.warn { border-color:#f2e4c9; }

.toast { border-radius:10px; box-shadow:0 18px 50px rgba(26,42,68,.16); backdrop-filter:blur(15px); }

.page-grid, .research-page, .admin-page { gap:16px; }
.card {
  border:1px solid rgba(222,228,237,.95);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card:hover { border-color:#d8e0ea; }
.panel { padding:22px; }
.panel-head { margin-bottom:17px; }
.panel-head h2 { font-size:20px; font-weight:850; }
.panel-head h3 { font-size:16px; font-weight:800; }
.eyebrow { color:#8492a7; font-size:9px; letter-spacing:.18em; }
.empty { border-radius:10px; background:#fafcfe; }

.hero {
  min-height:245px;
  padding:31px 34px;
  border-color:#dce5f2;
  background:
    radial-gradient(circle at 86% 42%, rgba(46,96,205,.12), transparent 24%),
    radial-gradient(circle at 72% 100%, rgba(31,166,121,.06), transparent 25%),
    linear-gradient(125deg,#ffffff 0%,#f7faff 58%,#eef4ff 100%);
  box-shadow:0 14px 40px rgba(38,66,110,.075);
}
.hero::after {
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  right:-70px;
  top:-80px;
  border:1px solid rgba(57,103,201,.10);
  border-radius:50%;
  box-shadow:0 0 0 32px rgba(57,103,201,.028),0 0 0 70px rgba(57,103,201,.018);
  pointer-events:none;
}
.hero { position:relative; }
.hero h1 { color:#0c1b30; font-size:32px; font-weight:900; }
.hero .muted { color:#66758a; }
.hero-orbit { color:#7189b8; }
.hero-orbit b { color:#1f59ca; }

.metric-row { gap:14px; }
.metric {
  position:relative;
  padding:18px 19px;
  border-radius:14px;
}
.metric::before {
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg,#325fc0,rgba(50,95,192,0));
  opacity:.4;
}
.metric strong { margin-top:9px; font-size:25px; font-variant-numeric:tabular-nums; color:#11223a; }
.metric span { color:#77869a; font-weight:650; }

.mini-item, .table-row { padding:13px 3px; border-bottom-color:#edf1f5; }
.table-row:hover, .mini-item:hover { background:#fafcff; }
.symbol { color:#152941; }

.research-control {
  padding:25px;
  border-color:#dbe5f2;
  background:linear-gradient(135deg,#fff,#fbfdff);
}
.research-control h1 { color:#0f2037; font-size:27px; }
.mode-row { gap:8px; }
.mode-row button { border:1px solid #e4eaf2; background:#f7f9fc; }
.mode-row button.selected { border-color:#cfdcf4; background:#edf4ff; color:#1e55bb; box-shadow:inset 0 0 0 1px rgba(69,111,199,.05); }

.snapshot-card { border-color:#dde6f2; }
.snapshot-grid > div, .indicator-grid > div, .data-grid > div {
  border-color:#e8edf3;
  background:linear-gradient(180deg,#fbfcfe 0%,#f8fafc 100%);
  border-radius:11px;
}
.snapshot-grid strong, .indicator-grid strong { font-variant-numeric:tabular-nums; }

.analyst-grid { gap:12px; }
.analyst-card {
  padding:18px;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#fbfcfe);
}
.analyst-card:hover { box-shadow:0 10px 25px rgba(24,46,80,.065); transform:translateY(-1px); transition:.15s ease; }
.analyst-avatar {
  width:31px;
  height:31px;
  border-radius:9px;
  background:linear-gradient(145deg,#1b3760,#102440);
  color:#fff;
  box-shadow:0 5px 12px rgba(22,48,83,.16);
}
.analyst-head b { color:#22344d; }
.stance { border-top:1px solid #edf1f5; border-bottom:1px solid #edf1f5; }

.judge-card {
  position:relative;
  padding:27px;
  border-color:#cfddf3;
  background:
    radial-gradient(circle at 90% 10%,rgba(68,112,215,.13),transparent 23%),
    linear-gradient(125deg,#ffffff 0%,#f7faff 70%,#f0f5ff 100%);
  box-shadow:0 16px 40px rgba(38,69,119,.09);
}
.judge-card::before {
  content:"最终裁决";
  position:absolute;
  top:0;
  right:22px;
  padding:6px 10px;
  border-radius:0 0 8px 8px;
  color:#315fae;
  background:#eaf2ff;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
}
.judge-top h2 { color:#132844; }
.judge-score b { color:#173a72; font-variant-numeric:tabular-nums; }
.decision-facts span { border:1px solid #e4eaf2; background:#f7f9fc; }
.guardrail { border:1px solid #f1e2c6; }

.category-tabs button { border:1px solid transparent; }
.category-tabs button.selected { border-color:#dce7fa; box-shadow:0 3px 10px rgba(52,96,181,.05); }
.batch-badge { border:1px solid #d8e5fb; }

.pagination-bar { border-top:1px solid #edf1f5; margin-top:4px; }
.inline-select, .full-select { background:#fbfcfe; }

.admin-welcome {
  border-color:#dbe5f2;
  background:
    radial-gradient(circle at 90% 0%,rgba(53,102,208,.10),transparent 26%),
    linear-gradient(130deg,#fff,#f8fbff);
}
.setup-progress span { border:1px solid #e7ecf2; }
.setup-progress span.done { border-color:#d8eee6; }
.simple-guide { background:#f7faff; }
.provider-list, .users { border-top-color:#e9edf3; }
.provider-card:hover, .users .table-row:hover, .source-row:hover, .task-row:hover, .slot-row:hover { background:#fafcff; }
.status-dot.on { box-shadow:0 0 0 3px rgba(14,155,108,.10); }

.doc-item { border-color:#e7ecf2; background:#fbfcfe; }
.doc-item:hover { border-color:#d9e2ed; background:#fff; }
.knowledge-note { border-color:#f0e2c5; background:#fffbf3; }
.upload-box { border-color:#c9d7ec; color:#4f6f9e; background:#f7faff; }

/* clearer decision chips */
.decision-chip, .score-chip { border:1px solid #e5eaf1; box-shadow:inset 0 1px 0 rgba(255,255,255,.7); }
.decision-chip.buy, .decision-chip.strong_buy, .decision-chip.small_buy { color:#c14450; background:#fff1f2; border-color:#f3dfe2; }
.decision-chip.sell, .decision-chip.reduce { color:#16805b; background:#ecf8f2; border-color:#d9eee5; }
.decision-chip.hold, .decision-chip.wait { color:#7a651f; background:#fff8e8; border-color:#f1e4c8; }

/* stronger numeric hierarchy */
.metric strong, .judge-score b, .score-chip, .snapshot-grid strong, .indicator-grid strong { font-feature-settings:"tnum" 1,"ss01" 1; }

/* compact scrollbars */
* { scrollbar-width:thin; scrollbar-color:#cbd4df transparent; }
*::-webkit-scrollbar { width:8px; height:8px; }
*::-webkit-scrollbar-track { background:transparent; }
*::-webkit-scrollbar-thumb { background:#ccd5e0; border:2px solid transparent; background-clip:padding-box; border-radius:999px; }
*::-webkit-scrollbar-thumb:hover { background:#b9c4d1; border:2px solid transparent; background-clip:padding-box; }

@media (max-width:1240px) {
  .main { padding-right:24px; padding-left:24px; }
}
@media (max-width:1000px) {
  .sidebar { width:214px; }
  .main { width:calc(100% - 214px); margin-left:214px; padding:0 20px 68px; }
}
@media (max-width:720px) {
  .sidebar {
    height:70px;
    padding:5px 6px 7px;
    background:rgba(255,255,255,.96);
    box-shadow:0 -8px 30px rgba(23,40,65,.07);
  }
  .sidebar nav button { border:0; border-radius:10px; }
  .sidebar nav button.active::before { display:none; }
  .sidebar nav button.active { background:#edf4ff; }
  .main { padding:0 12px 88px; }
  .topbar { min-height:76px; margin:0 -4px 8px; padding:0 4px; }
  .topbar h2 { font-size:21px; }
  .card { border-radius:14px; }
  .panel { padding:17px; }
  .hero { padding:23px 20px; border-radius:15px; }
  .hero h1 { font-size:26px; }
  .metric-row { gap:8px; }
  .metric { padding:14px; }
  .metric strong { font-size:22px; }
  .judge-card { padding:21px; }
  .judge-card::before { right:14px; }
  .analyst-card { padding:16px; }
}


/* === V1.0.1 Provider connectivity + AI slot recommendation refinement === */
.form-actions {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);
  gap:10px;
  margin-top:2px;
}
.test-provider-button {
  min-height:44px;
  padding:0 16px;
  border:1px solid #c9dbff;
  border-radius:9px;
  color:#184fba;
  background:linear-gradient(180deg,#f4f8ff 0%,#eaf2ff 100%);
  font-size:13px;
  font-weight:800;
  letter-spacing:-.01em;
  cursor:pointer;
  transition:all .16s ease;
}
.test-provider-button:hover:not(:disabled) {
  transform:translateY(-1px);
  border-color:#a9c4f7;
  background:#e3eeff;
  box-shadow:0 7px 18px rgba(35,85,174,.10);
}
.test-provider-button:disabled { opacity:.55; cursor:wait; }

.connection-result {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:12px 14px;
  border:1px solid;
  border-radius:10px;
  line-height:1.5;
}
.connection-result > div { min-width:0; }
.connection-result b,
.connection-result span,
.connection-result small { display:block; }
.connection-result b { margin-bottom:2px; font-size:12px; }
.connection-result span { font-size:11px; overflow-wrap:anywhere; }
.connection-result small { max-width:240px; font-size:10px; text-align:right; }
.connection-result.success {
  border-color:#cbe9dd;
  color:#167155;
  background:#f2fbf7;
}
.connection-result.success small { color:#6b9887; }
.connection-result.failed {
  border-color:#f1d4d8;
  color:#ad3f4a;
  background:#fff5f6;
}
.connection-result.failed small { color:#a97980; }

.provider-card .test-ok { color:#278064; }
.provider-card .test-bad { color:#bd5961; }

.recommend-legend {
  padding:6px 9px;
  border:1px solid #dfe8f7;
  border-radius:999px;
  color:#607797;
  background:#f7faff;
  font-size:10px;
  white-space:nowrap;
}
.slot-row {
  grid-template-columns:minmax(205px,.92fr) minmax(270px,1.08fr) minmax(240px,1fr) auto auto;
  gap:16px;
  padding:17px 0;
}
.slot-role b { font-size:12px; }
.slot-role small { max-width:360px; }
.slot-recommend {
  display:flex;
  align-items:flex-start;
  gap:9px;
  min-width:0;
  padding:9px 11px;
  border:1px solid #e4ebf6;
  border-radius:10px;
  background:linear-gradient(180deg,#fbfdff,#f6f9fd);
}
.slot-recommend .recommend-label {
  flex:0 0 auto;
  margin-top:1px;
  padding:3px 6px;
  border:1px solid #d7e4fb;
  border-radius:5px;
  color:#2d65c7;
  background:#edf4ff;
  font-size:9px;
  font-weight:800;
  letter-spacing:.04em;
}
.slot-recommend > div { min-width:0; }
.slot-recommend b {
  color:#1b355b;
  font-size:11px;
  line-height:1.35;
}
.slot-recommend small {
  margin-top:3px;
  color:#77869a;
  font-size:9.5px;
  line-height:1.45;
}
.slot-recommend em {
  display:block;
  margin-top:4px;
  color:#9aa5b3;
  font-size:9px;
  font-style:normal;
}
.slot-row select {
  min-height:42px;
  border-color:#e1e7ef;
  background:#fbfcfe;
}
.slot-footnote {
  margin-top:14px;
  padding:11px 13px;
  border:1px solid #e5eaf1;
  border-radius:9px;
  color:#68788e;
  background:#fafbfd;
  font-size:10.5px;
  line-height:1.65;
}
.slot-footnote b { color:#31465f; }

@media (max-width:1380px) {
  .slot-row {
    grid-template-columns:minmax(190px,.85fr) minmax(235px,1fr) minmax(220px,.9fr) auto auto;
    gap:11px;
  }
}
@media (max-width:1120px) {
  .slot-row {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto;
  }
  .slot-recommend { grid-column:2; grid-row:1 / span 2; }
  .slot-row select { grid-column:1 / 3; }
}
@media (max-width:720px) {
  .form-actions { grid-template-columns:1fr; }
  .connection-result { flex-direction:column; gap:7px; }
  .connection-result small { max-width:none; text-align:left; }
  .recommend-legend { display:none; }
  .slot-row { grid-template-columns:1fr auto; gap:10px; }
  .slot-role { grid-column:1 / -1; }
  .slot-recommend { grid-column:1 / -1; grid-row:auto; }
  .slot-row select { grid-column:1 / -1; }
}


/* V1.0.4 数据源管理 */
.data-source-add{display:grid;grid-template-columns:1.2fr 1.35fr 1.2fr .55fr auto auto;gap:10px;align-items:end;padding:16px;margin:8px 0 18px;border:1px dashed #b9c9df;border-radius:16px;background:#f8fbff}
.data-source-add>div:first-child{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;color:#172b4d}.data-source-add small{color:#718096;font-weight:400}
.data-source-add label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#667892}.data-source-add .check-label{flex-direction:row;align-items:center;align-self:center}
.source-test-message { max-width:460px; overflow:hidden; color:#8a96a7; text-overflow:ellipsis; white-space:nowrap; }
.source-row:has(.source-test-message) .source-test-message { color:#72839a; }
@media(max-width:1100px){.data-source-add{grid-template-columns:1fr 1fr}.data-source-add>div:first-child{grid-column:1/-1}}
@media(max-width:700px){.data-source-add{grid-template-columns:1fr}.data-source-add>div:first-child{grid-column:auto}.research-input{flex-wrap:wrap}}

.research-note { margin:8px 0 0; color:#6f8097; font-size:12px; line-height:1.6; }

/* V1.0.5 历史研判详情：整条记录可点击，保留当时快照与全部结构化结论 */
.history-row { cursor:pointer; transition:background .16s ease, border-color .16s ease; }
.history-row:hover { background:#f5f9ff; border-bottom-color:#dce8f8; }
.history-row > button { justify-self:end; }
.history-detail { margin-top:18px; padding:18px; border:1px solid #dce7f6; border-radius:14px; background:linear-gradient(135deg,#fbfdff 0%,#f5f9ff 100%); box-shadow:0 10px 28px rgba(35,71,122,.06); }
.history-detail .compact-head { margin-top:0; }
.history-detail h3 small { margin-left:6px; font-size:11px; font-weight:500; }
.history-facts { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.history-facts span, .history-decision-grid span { padding:7px 9px; border:1px solid #e4ebf4; border-radius:8px; color:#64758b; background:#fff; font-size:10.5px; }
.history-judge { display:grid; gap:9px; padding:14px; border:1px solid #dce8f8; border-radius:11px; background:rgba(255,255,255,.82); }
.history-judge > b, .history-columns > div > b { color:#2d4260; font-size:12px; }
.history-judge > strong { color:#4f627b; font-size:12px; font-weight:600; line-height:1.7; }
.history-decision-grid { display:flex; flex-wrap:wrap; gap:7px; }
.history-note { margin:0; padding:9px 11px; border-radius:8px; color:#7b6b3c; background:#fff9ec; font-size:10.5px; line-height:1.6; }
.history-columns { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding-top:11px; border-top:1px solid #edf1f6; }
.history-columns ul { margin:7px 0 0; padding-left:17px; color:#68798f; font-size:10.5px; line-height:1.7; }
.history-analysts { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:9px; margin-top:12px; }
.history-analyst { min-width:0; padding:12px; border:1px solid #e7edf4; border-radius:10px; background:#fff; }
.history-analyst b, .history-analyst span { display:block; }
.history-analyst b { overflow:hidden; color:#2b405f; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.history-analyst span { margin-top:5px; color:#3773cd; font-size:10px; }
.history-analyst p { min-height:0; margin:8px 0; color:#6b7b90; font-size:10.5px; line-height:1.6; }
.history-analyst .tag { display:inline-block; margin:2px 2px 0 0; }

@media(max-width:720px){
  .history-detail { padding:13px; }
  .history-row { grid-template-columns:minmax(0,1fr) auto; gap:6px 9px; }
  .history-row > span:nth-child(2), .history-row > span:nth-child(3) { grid-column:1; }
  .history-row > button { grid-column:2; grid-row:1 / span 3; }
  .history-columns, .history-analysts { grid-template-columns:1fr; }
}

/* V2.0 — readiness / six-provider setup / data-quality polish */
.readiness-badge {
  min-width:210px; display:grid; gap:3px; padding:12px 14px; border:1px solid #e4eaf1;
  border-radius:12px; background:#f8fafc; box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.readiness-badge b { color:#3a4b61; font-size:11.5px; }
.readiness-badge small { color:#8794a6; font-size:9.5px; }
.readiness-badge.ready { border-color:#d8eee5; background:#f1faf6; }
.readiness-badge.ready b { color:#17835b; }
.readiness-badge.blocked { border-color:#f2dfe1; background:#fff7f7; }
.readiness-badge.blocked b { color:#ba505a; }
.readiness-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:18px; align-items:start; }
.readiness-panel > div { display:grid; align-content:start; gap:7px; min-width:0; }
.readiness-panel > div > b { color:#2f425d; font-size:11px; }
.readiness-error, .readiness-warning { display:block; padding:7px 9px; border-radius:8px; font-size:10px; line-height:1.45; }
.readiness-error { color:#b44f58; background:#fff3f4; }
.readiness-warning { color:#826b2b; background:#fff9ec; }
.readiness-actions { min-width:285px; padding-left:18px; border-left:1px solid #e9edf3; }
.readiness-actions .secondary { width:100%; min-height:40px; }
.readiness-actions small { color:#8593a5; font-size:9.5px; line-height:1.55; }
.preset-note { margin:-4px 0 2px; color:#6f8097; font-size:10px; line-height:1.55; }
.source-options { display:flex !important; flex-wrap:wrap; gap:8px 12px; margin-top:8px !important; }
.source-options label { color:#65758b !important; font-size:9.5px !important; }
.source-options input { min-height:0 !important; }
.quality-breakdown { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; padding-top:12px; border-top:1px solid #edf1f5; }
.quality-breakdown span { display:inline-flex; gap:5px; align-items:center; padding:5px 8px; border:1px solid #e6ebf2; border-radius:7px; color:#8290a3; background:#fafbfd; font-size:9.5px; }
.quality-breakdown b { color:#52647b; font-weight:700; }

/* source row has name + URL + optional replacement token + enabled + test + save + optional delete */
.source-row { grid-template-columns:minmax(210px,1.15fr) minmax(180px,.9fr) minmax(180px,.9fr) auto auto auto auto; }
.source-token-input { min-width:180px !important; }
@media(max-width:1240px){
  .readiness-panel { grid-template-columns:1fr 1fr; }
  .readiness-actions { grid-column:1/-1; min-width:0; padding:14px 0 0; border-left:0; border-top:1px solid #e9edf3; }
  .source-row { grid-template-columns:1fr 1fr 1fr auto auto auto; }
  .source-row > span { grid-column:1/-1; }
}
@media(max-width:1000px){
  .source-row { grid-template-columns:1fr auto auto auto auto; }
  .source-row > input { grid-column:1/-1 !important; grid-row:auto !important; }
}
@media(max-width:720px){
  .readiness-badge { min-width:0; width:100%; }
  .readiness-panel { grid-template-columns:1fr; gap:14px; }
  .readiness-actions { grid-column:auto; }
  .source-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .source-row > span, .source-row > input { grid-column:1/-1 !important; }
  .source-row label, .source-row .ghost, .source-row .danger-button { justify-self:stretch; }
  .source-row .ghost, .source-row .danger-button { width:100%; }
}

/* V2.0.1 auth preflight */
.auth-probe{margin:10px 0 14px;padding:10px 12px;border-radius:12px;font-size:12px;line-height:1.55;background:#f4f7fb;color:#60718a;border:1px solid #e4eaf2}
.auth-probe.good{background:#f0faf6;color:#247357;border-color:#d8efe5}
.auth-probe.bad{background:#fff4f4;color:#b34141;border-color:#f1d3d3}
.auth-card input:disabled,.auth-card button:disabled{cursor:not-allowed;opacity:.6}

/* V2.0.5 all-free market data */
.free-source-banner{display:flex;flex-direction:column;gap:5px;margin:4px 0 14px;padding:13px 15px;border:1px solid #d7eee6;border-radius:13px;background:#f3fbf7;color:#187153}
.free-source-banner b{font-size:12px}.free-source-banner small{font-size:10px;line-height:1.55;color:#678579}
.source-row.legacy-source{opacity:.62;background:#fafafa}
.source-row.legacy-source b{text-decoration:line-through;text-decoration-color:#9aa6b5}

/* === V2.0.6 live research progress / compact admin / TXT watchlist === */
.research-progress-card { padding:22px 24px; }
.progress-now { margin:7px 0 0; font-size:11px; }
.progress-percent { display:flex; align-items:center; gap:10px; }
.progress-percent > b { min-width:58px; color:#173a72; font-size:27px; line-height:1; text-align:right; font-variant-numeric:tabular-nums; }
.research-progress-track { position:relative; height:9px; margin:2px 0 14px; overflow:hidden; border:1px solid #e2e8f1; border-radius:999px; background:#eef2f7; }
.research-progress-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2f68d2,#3f86e9); box-shadow:0 0 14px rgba(47,104,210,.25); transition:width .45s ease; }
.progress-line span.pending { color:#a2acba; background:#f5f7fa; }
.progress-line span.running { color:#285dad; border:1px solid #d6e3f8; background:#edf4ff; }
.progress-line span.failed { color:#bd4b57; border:1px solid #f2dfe2; background:#fff0f1; }
.judge-handoff { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:14px; padding:11px 13px; border:1px solid #dce6f5; border-radius:10px; color:#52657f; background:#f7faff; font-size:11px; }
.judge-handoff b { color:#1b4f9f; }
.judge-provider { margin:7px 0 0; color:#7b899c; font-size:10px; }
.judge-failed-card { display:flex; justify-content:space-between; gap:20px; padding:20px 22px; border-color:#f0d9dc; color:#a84752; background:#fff8f8; }
.judge-failed-card b { color:#983943; }
.judge-failed-card p { margin:7px 0 0; font-size:12px; line-height:1.65; }
.judge-failed-card > span { align-self:center; white-space:nowrap; color:#8d6b70; font-size:11px; }
.analyst-provider { color:#a0aab8 !important; font-size:9px !important; }
.fallback-note { margin:10px 0 0; padding:8px 10px; border-radius:8px; color:#7e641e; background:#fff8e8; font-size:10px; line-height:1.5; }

.admin-tabs { position:sticky; top:94px; z-index:3; display:flex; gap:6px; padding:7px; overflow-x:auto; border:1px solid #e0e6ee; border-radius:13px; background:rgba(248,250,253,.94); box-shadow:0 8px 24px rgba(31,49,77,.06); backdrop-filter:blur(16px); }
.admin-tabs button { flex:0 0 auto; min-height:38px; padding:0 14px; border:1px solid transparent; border-radius:9px; color:#6c7b90; background:transparent; font-size:11px; font-weight:750; white-space:nowrap; }
.admin-tabs button:hover { color:#284a7c; background:#f0f4f9; }
.admin-tabs button.active { color:#194fAD; border-color:#d3e1f8; background:#edf4ff; box-shadow:0 3px 10px rgba(52,96,181,.06); }
.admin-tabs small { margin-left:4px; padding:2px 5px; border-radius:99px; background:rgba(255,255,255,.8); font-size:9px; }
.admin-single-panel { min-height:360px; }
.compact-provider-form { max-width:920px; display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px !important; }
.compact-provider-form .preset-note, .compact-provider-form .form-actions, .compact-provider-form .connection-result, .compact-provider-form .check-label { grid-column:1/-1; }
.compact-provider-list { margin-top:20px; }
.account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:20px; }
.compact-source-add { grid-template-columns:minmax(230px,1.2fr) minmax(160px,.8fr) minmax(220px,1fr) minmax(180px,.8fr) 110px auto !important; }

.watchlist-head-actions { display:flex; align-items:center; gap:7px; }
.watchlist-head-actions .ghost { min-height:34px; padding:0 11px; font-size:10px; }
.hidden-file-input { display:none !important; }
.txt-format-note { display:flex; flex-wrap:wrap; gap:7px 13px; margin:0 0 13px; padding:10px 12px; border:1px solid #e1e8f1; border-radius:10px; color:#758399; background:#f8fafd; font-size:10px; line-height:1.55; }
.txt-format-note b { color:#38516f; }

@media (max-width:900px) {
  .compact-provider-form { grid-template-columns:1fr; }
  .compact-provider-form > * { grid-column:1 !important; }
  .account-grid { grid-template-columns:1fr; }
  .compact-source-add { grid-template-columns:1fr 1fr !important; }
  .compact-source-add > div { grid-column:1/-1; }
  .admin-tabs { top:76px; }
}
@media (max-width:720px) {
  .research-progress-card { padding:17px; }
  .progress-percent > b { font-size:22px; }
  .judge-handoff, .judge-failed-card { align-items:flex-start; flex-direction:column; }
  .watchlist-head-actions { flex-wrap:wrap; justify-content:flex-end; }
  .txt-format-note { display:grid; }
  .compact-source-add { grid-template-columns:1fr !important; }
  .compact-source-add > * { grid-column:1 !important; }
}

/* V2.0.6 compact watchlist / knowledge center */
.compact-page { align-items:start; }
.watchlist-shell, .knowledge-shell { padding:22px 24px; }
.watchlist-main-head, .knowledge-head { align-items:center; margin-bottom:14px; }
.count-badge {
  display:inline-flex; align-items:center; min-height:30px; padding:0 10px;
  border:1px solid #e2e8f0; border-radius:999px; color:#64748b; background:#f8fafc;
  font-size:10px; font-weight:800; white-space:nowrap;
}
.sub-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:4px; border:1px solid #e8edf4; border-radius:12px; background:#f6f8fb; }
.sub-tabs button { min-height:34px; padding:0 13px; border-radius:9px; color:#718096; background:transparent; font-size:11px; font-weight:700; }
.sub-tabs button:hover { color:#334155; background:#fff; }
.sub-tabs button.active { color:#245fca; background:#fff; box-shadow:0 3px 10px rgba(32,55,87,.07); }
.sub-tabs button small { margin-left:5px; color:#9aa6b6; }
.watch-sub-tabs { margin:0 0 14px; max-width:440px; }
.watchlist-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 0 13px; border-bottom:1px solid #edf1f5; }
.watchlist-toolbar .push-right { margin-left:auto; }
.inline-add-card { display:grid; grid-template-columns:minmax(120px,.8fr) minmax(160px,1.2fr) minmax(150px,.85fr) auto; gap:8px; padding:12px; margin:12px 0; border:1px solid #e4eaf2; border-radius:13px; background:#fafcff; }
.format-details, .knowledge-add-details { margin:10px 0 12px; border:1px solid #e8edf3; border-radius:11px; background:#fbfcfe; }
.format-details summary, .knowledge-add-details summary { padding:10px 12px; color:#6d7c91; font-size:11px; font-weight:700; cursor:pointer; }
.format-details pre { margin:0 12px 12px; padding:11px; overflow:auto; border-radius:9px; color:#4a5b72; background:#f2f5f9; font-size:10px; line-height:1.65; }
.category-research-compact { padding-top:2px; }
.sweep-hint { margin:0 0 12px; color:#8190a4; font-size:11px; line-height:1.7; }

.knowledge-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:0 0 14px; }
.knowledge-metrics > div { min-width:0; padding:12px 13px; border:1px solid #e9eef4; border-radius:12px; background:#fafbfd; }
.knowledge-metrics span, .knowledge-metrics small, .knowledge-metrics b { display:block; }
.knowledge-metrics span { color:#7d899b; font-size:10px; }
.knowledge-metrics b { margin:6px 0 3px; color:#22344d; font-size:20px; letter-spacing:-.04em; }
.knowledge-metrics small { overflow:hidden; color:#9aa5b4; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.knowledge-tabs { margin-bottom:14px; }
.knowledge-toolbar { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.knowledge-search { display:flex; flex:1; min-width:240px; gap:7px; }
.knowledge-search input { min-width:0; }
.file-upload-button { position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 14px; white-space:nowrap; cursor:pointer; }
.file-upload-button input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.inline-knowledge-form { display:grid; grid-template-columns:minmax(190px,.65fr) minmax(300px,1.6fr) auto; gap:8px; padding:0 12px 12px; align-items:end; }
.inline-knowledge-form textarea { min-height:72px; }
.compact-search-results { max-height:300px; overflow:auto; margin:10px 0 13px; padding:12px; border:1px solid #dce6f5; border-radius:13px; background:#f9fbff; }
.compact-search-results .compact-head { margin:0 0 8px; }
.paged-doc-list { display:grid; gap:7px; }
.paged-doc-list .doc-item { margin:0; padding:12px 13px; border-radius:11px; }
.paged-doc-list .doc-item p { display:-webkit-box; margin:7px 0 0; overflow:hidden; color:#6f7d91; font-size:11px; line-height:1.6; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.inline-rule-form { display:grid; grid-template-columns:minmax(180px,.65fr) minmax(320px,1.5fr) auto; gap:8px; align-items:end; margin-bottom:12px; }
.inline-rule-form textarea { min-height:68px; }
.compact-memory-note { margin:0 0 10px; padding:11px 12px; }
.compact-memory-note b { color:#47617f; }
.compact-memory-note p { margin:5px 0 0; color:#77879b; font-size:10px; line-height:1.6; }
.memory-regime-chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.memory-regime-chips span { padding:6px 8px; border:1px solid #e6ebf2; border-radius:999px; color:#6b7b90; background:#fafbfd; font-size:9px; }

@media (max-width:1000px) {
  .knowledge-metrics { grid-template-columns:repeat(2,1fr); }
  .inline-add-card, .inline-knowledge-form, .inline-rule-form { grid-template-columns:1fr 1fr; }
  .inline-add-card > button, .inline-knowledge-form > button, .inline-rule-form > button { grid-column:1 / -1; }
}
@media (max-width:720px) {
  .watchlist-shell, .knowledge-shell { padding:16px; }
  .watchlist-main-head, .knowledge-head { align-items:flex-start; }
  .count-badge { white-space:normal; }
  .knowledge-metrics { grid-template-columns:1fr 1fr; }
  .knowledge-toolbar, .knowledge-search { align-items:stretch; flex-direction:column; min-width:0; }
  .knowledge-toolbar .file-upload-button { width:100%; }
  .inline-add-card, .inline-knowledge-form, .inline-rule-form { grid-template-columns:1fr; }
  .inline-add-card > button, .inline-knowledge-form > button, .inline-rule-form > button { grid-column:auto; }
  .watchlist-toolbar .push-right { margin-left:0; }
}
.watchlist-head-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:7px; }
.hidden-file-input { position:absolute !important; width:1px !important; height:1px !important; opacity:0; pointer-events:none; }
.inline-add-card { grid-template-columns:minmax(105px,.72fr) minmax(150px,1fr) minmax(125px,.72fr) minmax(150px,.9fr) auto; align-items:end; }
.inline-add-card > div:first-child { grid-column:1 / -1; display:flex; align-items:baseline; gap:10px; }
.inline-add-card > div:first-child b { color:#33445c; font-size:12px; }
.inline-add-card > div:first-child small { color:#8e9aab; font-size:10px; }
.format-details > div { display:flex; flex-wrap:wrap; gap:7px; padding:0 12px 12px; align-items:center; }
.format-details code { padding:7px 9px; border-radius:7px; color:#4b607c; background:#f1f5f9; font-size:10px; white-space:pre-line; }
.format-details span { color:#8b97a8; font-size:10px; }
.sweep-hint { display:flex; flex-wrap:wrap; align-items:center; gap:7px 14px; }
.compact-watch-table .watch-row { grid-template-columns:minmax(150px,1fr) minmax(140px,.55fr) auto; }
@media (max-width:1000px) {
  .inline-add-card { grid-template-columns:1fr 1fr; }
  .inline-add-card > div:first-child { grid-column:1 / -1; }
}
@media (max-width:720px) {
  .watchlist-head-actions { justify-content:flex-start; width:100%; }
  .inline-add-card { grid-template-columns:1fr; }
  .inline-add-card > div:first-child { grid-column:auto; display:grid; gap:4px; }
  .compact-watch-table .watch-row { grid-template-columns:minmax(120px,1fr) minmax(105px,.7fr) auto; }
}

/* V2.0.6 portfolio decision board */
.portfolio-page { gap:14px; }
.portfolio-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.portfolio-stat { padding:15px 16px; border:1px solid #e7edf4; }
.portfolio-stat span,.portfolio-stat small,.portfolio-stat b { display:block; }
.portfolio-stat span { color:#7a8799; font-size:10px; font-weight:700; }
.portfolio-stat b { margin:7px 0 3px; color:#182a43; font-size:22px; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.portfolio-stat small { color:#9aa5b4; font-size:9px; }
.portfolio-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(300px,.72fr); gap:14px; align-items:start; }
.portfolio-list-panel,.portfolio-entry-panel { min-width:0; }
.portfolio-entry-panel { position:sticky; top:96px; }
.portfolio-card-list { display:grid; gap:10px; }
.position-card { padding:15px; border:1px solid #e7edf4; border-radius:14px; background:#fff; box-shadow:0 7px 22px rgba(38,57,82,.035); }
.position-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:11px; border-bottom:1px solid #eef2f6; }
.position-actions { display:flex; align-items:center; gap:6px; }
.position-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:11px; }
.position-facts > div { min-width:0; padding:9px 10px; border-radius:10px; background:#f8fafc; }
.position-facts span,.position-facts small,.position-facts b { display:block; }
.position-facts span { color:#8a97a8; font-size:9px; }
.position-facts b { margin-top:4px; color:#30425b; font-size:13px; font-variant-numeric:tabular-nums; }
.position-facts small { margin-top:2px; color:#a0aaba; font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.position-pnl { margin-top:8px; padding:8px 10px; border-radius:9px; font-size:10px; font-weight:650; }
.position-pnl.positive { color:#c94350; background:#fff1f2; }
.position-pnl.negative { color:#157b59; background:#eef9f4; }
.position-advice { margin-top:10px; padding:11px 12px; border:1px solid #dfe8f3; border-radius:12px; background:#fbfcff; }
.advice-head { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.advice-head > span { color:#5f6e83; font-size:10px; font-weight:800; }
.advice-head > small { margin-left:auto; color:#99a4b4; font-size:9px; }
.advice-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:9px; }
.advice-grid > span { min-width:0; padding:8px 9px; border:1px solid #ebeff5; border-radius:9px; background:#fff; }
.advice-grid small,.advice-grid b { display:block; }
.advice-grid small { color:#929eae; font-size:8px; }
.advice-grid b { margin-top:4px; color:#3b4b61; font-size:11px; font-variant-numeric:tabular-nums; }
.advice-summary { display:-webkit-box; margin:9px 0 0; overflow:hidden; color:#68778b; font-size:10px; line-height:1.6; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.advice-warning { margin:8px 0 0; padding:7px 9px; border-radius:8px; color:#9a6d28; background:#fff7e9; font-size:9px; line-height:1.5; }
.position-no-advice { display:flex; align-items:center; gap:9px; margin-top:10px; padding:10px 11px; border:1px dashed #dce3ec; border-radius:11px; background:#fafbfc; }
.position-no-advice b { color:#64748b; font-size:11px; white-space:nowrap; }
.position-no-advice span { flex:1; color:#95a0af; font-size:9px; line-height:1.5; }
.position-no-advice .secondary { min-height:32px; padding:0 10px; white-space:nowrap; }
.portfolio-form { display:grid; gap:9px; margin-top:12px; }
.portfolio-form label { display:grid; gap:5px; }
.portfolio-form label > span { color:#69788d; font-size:10px; font-weight:700; }
.portfolio-form-total { padding:11px 12px; border:1px solid #dce7f4; border-radius:11px; background:#f8fbff; }
.portfolio-form-total span,.portfolio-form-total small,.portfolio-form-total b { display:block; }
.portfolio-form-total span { color:#718096; font-size:9px; }
.portfolio-form-total b { margin:5px 0 2px; color:#1f3f67; font-size:18px; font-variant-numeric:tabular-nums; }
.portfolio-form-total small { color:#9aa5b4; font-size:8px; }
@media (max-width:1100px) {
  .portfolio-layout { grid-template-columns:1fr; }
  .portfolio-entry-panel { position:static; }
  .position-facts,.advice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .portfolio-summary-grid { grid-template-columns:1fr; }
  .position-head,.position-no-advice { align-items:flex-start; flex-direction:column; }
  .position-actions { width:100%; justify-content:flex-end; }
  .position-facts,.advice-grid { grid-template-columns:1fr 1fr; }
  .advice-head > small { width:100%; margin-left:0; }
  .position-no-advice .secondary { width:100%; }
}

/* V2.0.7 — visible release marker + stale-cache proof */
.side-version { margin-left:5px; padding:2px 5px; border:1px solid #dce5f0; border-radius:99px; color:#6f8199; background:#f7f9fc; font-size:8px; letter-spacing:0; }

/* V2.0.7 — market quality is human-readable, never dumps dict/object strings */
.quality-breakdown.human { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; padding:12px; border:1px solid #e8edf3; border-radius:12px; background:#fafbfd; }
.quality-breakdown.human span { display:grid; gap:3px; min-width:0; padding:8px 9px; border-radius:9px; background:#fff; }
.quality-breakdown.human span.ok { border-color:#d9eee6; background:#f5fbf8; }
.quality-breakdown.human span.miss { border-color:#f1dddd; background:#fff8f8; }
.quality-breakdown.human b { overflow:hidden; color:#465a73; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.quality-breakdown.human small { color:#8997a9; font-size:8px; line-height:1.35; }
@media (max-width:1100px) { .quality-breakdown.human { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:720px) { .quality-breakdown.human { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* V2.0.7 — admin partial-loading diagnostics */
.admin-load-errors { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(0,2fr) auto; gap:12px; align-items:center; padding:13px 14px; border:1px solid #f1dddd; background:#fff9f9; }
.admin-load-errors > div:first-child { display:grid; gap:3px; }
.admin-load-errors > div:first-child b { color:#a94d55; font-size:11px; }
.admin-load-errors > div:first-child span { color:#8c7380; font-size:9px; line-height:1.5; }
.admin-load-error-list { display:flex; flex-wrap:wrap; gap:6px; }
.admin-load-error-list > span { display:grid; gap:2px; max-width:330px; padding:7px 8px; border:1px solid #efdddd; border-radius:8px; background:#fff; }
.admin-load-error-list b { color:#744e55; font-size:9px; }
.admin-load-error-list code { overflow:hidden; color:#687789; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.admin-load-error-list small { color:#a06067; font-size:8px; line-height:1.35; }
@media (max-width:900px) { .admin-load-errors { grid-template-columns:1fr; } }

/* V2.0.7 — accuracy / validation dashboard */
.performance-page { gap:12px; }
.performance-hero { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:22px 24px; background:linear-gradient(125deg,#fff 10%,#f6f9fd 100%); }
.performance-score { min-width:190px; padding:14px 16px; border:1px solid #dde7f2; border-radius:15px; background:rgba(255,255,255,.86); text-align:right; }
.performance-score small,.performance-score span,.performance-score b { display:block; }
.performance-score small { color:#8290a3; font-size:9px; font-weight:750; }
.performance-score b { margin:5px 0 2px; color:#153c69; font-size:34px; letter-spacing:-.06em; font-variant-numeric:tabular-nums; }
.performance-score span { color:#98a3b2; font-size:9px; }
.performance-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.performance-metrics .card { padding:14px 16px; }
.performance-metrics span,.performance-metrics small,.performance-metrics b { display:block; }
.performance-metrics span { color:#7b899b; font-size:9px; font-weight:750; }
.performance-metrics b { margin:6px 0 3px; color:#263b57; font-size:20px; font-variant-numeric:tabular-nums; }
.performance-metrics small { color:#9aa5b4; font-size:8px; }
.evaluation-rule-card { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; padding:14px 16px; border-color:#e4eaf2; background:#fafbfd; }
.evaluation-rule-card b { grid-row:1/3; align-self:start; padding:5px 8px; border-radius:7px; color:#45617f; background:#eef4fa; font-size:9px; }
.evaluation-rule-card p { margin:0; color:#657489; font-size:10px; line-height:1.55; }
.evaluation-rule-card small { color:#9aa4b3; font-size:8px; }
.performance-table { overflow:hidden; border:1px solid #e8edf3; border-radius:11px; }
.performance-row { display:grid; grid-template-columns:.8fr 1fr 1.2fr .7fr .65fr 1fr; gap:10px; align-items:center; min-height:44px; padding:9px 12px; border-top:1px solid #eef2f6; color:#5f7086; font-size:9.5px; }
.performance-row:first-child { border-top:0; }
.performance-row.header { min-height:36px; color:#8c98a8; background:#f7f9fb; font-size:8.5px; font-weight:800; }
.performance-row strong { font-size:11px; }
.performance-row small { color:#a1aab7; font-size:8px; }
.recent-eval-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.recent-eval { display:grid; grid-template-columns:minmax(100px,.8fr) auto minmax(180px,1.2fr); gap:10px; align-items:center; padding:10px 11px; border:1px solid #e9eef4; border-radius:10px; background:#fbfcfd; }
.recent-eval > div { display:grid; gap:2px; }
.recent-eval b { color:#30445f; font-size:10px; }
.recent-eval small,.recent-eval span { color:#8794a6; font-size:8.5px; }
.recent-eval strong { padding:4px 7px; border-radius:99px; font-size:8.5px; }
.recent-eval strong.hit { color:#18795b; background:#eaf8f2; }
.recent-eval strong.miss { color:#b04e55; background:#fff0f1; }
@media (max-width:900px) { .performance-hero { align-items:flex-start; flex-direction:column; } .performance-score { width:100%; text-align:left; } .recent-eval-grid { grid-template-columns:1fr; } .performance-row { grid-template-columns:1fr 1fr 1fr; } .performance-row.header { display:none; } }
@media (max-width:650px) { .performance-metrics { grid-template-columns:1fr; } .performance-row { grid-template-columns:1fr 1fr; } .recent-eval { grid-template-columns:1fr auto; } .recent-eval > span { grid-column:1/-1; } }

/* V2.0.7 — task run ledger; result is visible, not just OK:N */
.task-list-v207 { display:grid; gap:9px; margin-top:12px; }
.task-card-v207 { padding:12px 13px; border:1px solid #e6ebf2; border-radius:12px; background:#fff; }
.task-card-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.task-card-head > div { display:grid; gap:3px; }
.task-card-head b { color:#2b3f5a; font-size:11px; }
.task-card-head small { color:#8e9aaa; font-size:8.5px; line-height:1.45; }
.task-run-status { flex:0 0 auto; padding:5px 8px; border-radius:99px; color:#776b57; background:#f7f3eb; font-size:8.5px; font-weight:750; }
.task-run-status.ok { color:#16765a; background:#eaf8f2; }
.task-last-summary { display:flex; flex-wrap:wrap; gap:5px 12px; margin-top:9px; padding:8px 10px; border-radius:9px; background:#f7f9fc; }
.task-last-summary span,.task-last-summary b { color:#748399; font-size:8.5px; }
.task-last-summary b { color:#425874; }
.task-card-actions { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; align-items:center; margin-top:9px; }
.task-card-actions label { margin-right:auto; color:#77869a; font-size:9px; }
.task-result-panel { margin-top:10px; padding-top:10px; border-top:1px solid #edf1f5; }
.task-run-detail { border:1px solid #e9eef4; border-radius:10px; background:#fafbfd; }
.task-run-detail + .task-run-detail { margin-top:6px; }
.task-run-detail summary { display:flex; gap:10px; justify-content:space-between; padding:9px 10px; cursor:pointer; color:#62738a; font-size:9px; }
.task-run-items { display:grid; gap:6px; padding:0 9px 9px; }
.task-result-item { display:grid; grid-template-columns:minmax(130px,1fr) minmax(120px,.8fr) minmax(100px,.55fr) auto; gap:8px; align-items:center; padding:8px 9px; border:1px solid #e7edf4; border-radius:9px; background:#fff; }
.task-result-item > span:first-child { display:grid; }
.task-result-item b { color:#344a66; font-size:9.5px; }
.task-result-item small,.task-result-item > span { color:#8492a5; font-size:8.5px; }
.task-result-item p { grid-column:1/-1; margin:0; }
@media (max-width:850px) { .task-result-item { grid-template-columns:1fr 1fr; } .task-result-item button { justify-self:end; } }
.task-legacy-note { margin-top:8px; padding:8px 10px; border:1px dashed #e3d8c7; border-radius:9px; color:#8e7656; background:#fffaf2; font-size:8.5px; line-height:1.5; }

/* ========================================================================== */
/* V2.0.8 — iOS / macOS glass visual system                                    */
/* ========================================================================== */
:root {
  --ios-blue: #0a84ff;
  --ios-blue-strong: #0574e8;
  --ios-blue-soft: rgba(10,132,255,.105);
  --ios-green: #20a66a;
  --ios-red: #e45662;
  --ios-amber: #b7832d;
  --glass: rgba(255,255,255,.72);
  --glass-strong: rgba(255,255,255,.88);
  --glass-soft: rgba(248,250,253,.72);
  --glass-border: rgba(255,255,255,.82);
  --ios-line: rgba(126,145,171,.16);
  --ios-shadow: 0 14px 38px rgba(43,58,82,.075), 0 2px 8px rgba(43,58,82,.035);
  --ios-shadow-hover: 0 18px 48px rgba(43,58,82,.105), 0 3px 10px rgba(43,58,82,.045);
  --radius-xl: 22px;
  --radius-lg: 17px;
  --radius-md: 13px;
  --radius-sm: 10px;
}

html, body { min-height:100%; }
html { background:#eef3f9; }
body {
  color:#17243a;
  background:
    radial-gradient(circle at 13% 8%, rgba(187,214,255,.42), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(211,239,232,.36), transparent 26%),
    linear-gradient(145deg,#f7f9fc 0%,#f1f5fa 50%,#edf3f8 100%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Frosted shell */
.sidebar {
  width:238px;
  padding:22px 14px 16px;
  border-right:1px solid rgba(132,149,171,.15);
  background:rgba(247,250,253,.74);
  box-shadow:12px 0 38px rgba(45,62,86,.035);
  backdrop-filter:blur(28px) saturate(170%);
  -webkit-backdrop-filter:blur(28px) saturate(170%);
}
.main { width:calc(100% - 238px); margin-left:238px; padding:0 34px 64px; }
.topbar {
  position:sticky; top:0; z-index:4;
  min-height:96px;
  padding:0 2px;
  border-bottom:1px solid rgba(125,143,166,.08);
  background:linear-gradient(180deg,rgba(245,248,252,.86),rgba(245,248,252,.56));
  backdrop-filter:blur(24px) saturate(165%);
  -webkit-backdrop-filter:blur(24px) saturate(165%);
}
.topbar h2 { font-size:27px; letter-spacing:-.055em; }
.side-caption { margin:9px 12px 25px; }
.side-brand { padding:0 10px; font-size:17px; }
.brand-mark.small { width:36px; height:36px; border-radius:12px; box-shadow:0 10px 24px rgba(19,36,59,.14); }
.side-version { color:#687b94; border-color:rgba(112,137,169,.18); background:rgba(255,255,255,.62); }

.sidebar nav { gap:4px; }
.sidebar nav button {
  min-height:44px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:13px;
  color:#6f7e92;
  font-size:12.5px;
  transition:background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sidebar nav button span {
  width:26px; height:26px; display:grid; place-items:center;
  border-radius:8px; color:#8a99ac; background:rgba(255,255,255,.48);
  font-size:15px;
}
.sidebar nav button:hover { color:#253954; background:rgba(255,255,255,.68); transform:translateX(1px); }
.sidebar nav button.active {
  color:#0b63c7;
  border-color:rgba(10,132,255,.13);
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(231,242,255,.92));
  box-shadow:0 8px 22px rgba(63,102,159,.08), inset 0 0 0 1px rgba(255,255,255,.58);
}
.sidebar nav button.active span { color:#0671df; background:rgba(10,132,255,.10); }
.side-foot { padding:11px 10px; border-radius:12px; background:rgba(255,255,255,.42); }

/* Cards / panels */
.page-grid, .research-page, .admin-page, .performance-page { gap:14px; }
.card {
  border:1px solid var(--glass-border);
  border-radius:var(--radius-xl);
  background:var(--glass);
  box-shadow:var(--ios-shadow);
  backdrop-filter:blur(28px) saturate(155%);
  -webkit-backdrop-filter:blur(28px) saturate(155%);
  transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover { border-color:rgba(255,255,255,.96); box-shadow:var(--ios-shadow-hover); }
.panel { padding:21px 22px; }
.panel-head { margin-bottom:16px; }
.panel-head h2 { font-size:21px; }
.panel-head h3 { font-size:16px; }
.eyebrow { color:#8390a2; font-size:9px; letter-spacing:.18em; }
.muted { color:#74839a; }
.empty {
  padding:20px;
  border:1px dashed rgba(115,139,170,.22);
  border-radius:14px;
  color:#8795a8;
  background:rgba(255,255,255,.46);
}

/* iOS form controls */
input:not([type="checkbox"]), textarea, select {
  border:1px solid rgba(112,136,166,.16);
  border-radius:12px;
  color:#21334d;
  background:rgba(255,255,255,.68);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
input:not([type="checkbox"]), select { min-height:42px; padding:0 13px; }
textarea { padding:12px 13px; }
input:not([type="checkbox"]):hover, textarea:hover, select:hover { border-color:rgba(87,123,170,.25); background:rgba(255,255,255,.82); }
input:not([type="checkbox"]):focus, textarea:focus, select:focus {
  border-color:rgba(10,132,255,.44);
  background:rgba(255,255,255,.94);
  box-shadow:0 0 0 4px rgba(10,132,255,.10), inset 0 1px 0 #fff;
}

/* Every boolean control is a compact iOS switch; this also fixes the giant task checkbox. */
input[type="checkbox"] {
  appearance:none;
  -webkit-appearance:none;
  width:42px !important;
  min-width:42px !important;
  height:24px !important;
  min-height:24px !important;
  margin:0;
  padding:0;
  position:relative;
  flex:0 0 42px;
  border:0 !important;
  border-radius:999px !important;
  outline:0;
  cursor:pointer;
  background:rgba(116,130,151,.22);
  box-shadow:inset 0 0 0 1px rgba(89,104,126,.08), inset 0 2px 5px rgba(48,63,84,.07);
  transition:background .2s ease, box-shadow .2s ease;
}
input[type="checkbox"]::after {
  content:"";
  position:absolute;
  top:2px; left:2px;
  width:20px; height:20px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(32,43,59,.22), 0 0 0 .5px rgba(76,88,107,.12);
  transition:transform .2s cubic-bezier(.2,.8,.2,1);
}
input[type="checkbox"]:checked {
  background:linear-gradient(180deg,#19a5ff,#0a84ff);
  box-shadow:inset 0 0 0 1px rgba(0,96,200,.06), 0 0 0 3px rgba(10,132,255,.08);
}
input[type="checkbox"]:checked::after { transform:translateX(18px); }
input[type="checkbox"]:disabled { opacity:.45; cursor:not-allowed; }
.check-label, .switches label, .slot-row label, .source-row label, .task-card-actions label { gap:9px !important; }

/* Buttons */
.primary, .secondary, .ghost, .danger-button, .test-provider-button {
  min-height:39px;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:12px;
  font-size:11.5px;
  font-weight:750;
  letter-spacing:-.01em;
  box-shadow:0 4px 10px rgba(39,58,84,.035);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.primary {
  color:#fff;
  border-color:rgba(0,103,215,.10);
  background:linear-gradient(180deg,#258fff 0%,#0a7ce8 100%);
  box-shadow:0 8px 18px rgba(10,132,255,.20), inset 0 1px 0 rgba(255,255,255,.24);
}
.primary:hover { transform:translateY(-1px); background:linear-gradient(180deg,#3298ff,#0876dd); box-shadow:0 10px 22px rgba(10,132,255,.25); }
.secondary, .test-provider-button {
  color:#086dce;
  border-color:rgba(10,132,255,.10);
  background:rgba(10,132,255,.095);
}
.secondary:hover, .test-provider-button:hover { transform:translateY(-1px); background:rgba(10,132,255,.145); }
.ghost {
  color:#53667f;
  border-color:rgba(112,136,166,.10);
  background:rgba(255,255,255,.56);
}
.ghost:hover { transform:translateY(-1px); color:#263a56; border-color:rgba(112,136,166,.17); background:rgba(255,255,255,.84); }
.danger-button {
  color:#c64d58;
  border-color:rgba(214,77,91,.10);
  background:rgba(228,86,98,.085);
}
.danger-button:hover { transform:translateY(-1px); background:rgba(228,86,98,.13); }
button:active:not(:disabled) { transform:scale(.985); }

/* Status / pills */
.status-pill, .quality, .task-run-status, .decision-chip, .score-chip, .batch-badge {
  border:1px solid rgba(111,137,168,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
.status-pill.ok, .quality { color:#137653; background:rgba(36,178,111,.10); }
.user-chip {
  border-color:rgba(110,134,164,.13);
  border-radius:13px;
  background:rgba(255,255,255,.62);
  box-shadow:0 6px 18px rgba(39,56,79,.04);
  backdrop-filter:blur(14px);
}
.toast {
  border:1px solid rgba(255,255,255,.88);
  border-left:0;
  border-radius:15px;
  background:rgba(255,255,255,.88);
  box-shadow:0 20px 55px rgba(31,45,65,.16);
  backdrop-filter:blur(24px) saturate(170%);
  -webkit-backdrop-filter:blur(24px) saturate(170%);
}
.toast::before { content:""; width:4px; position:absolute; inset:9px auto 9px 0; border-radius:99px; background:var(--ios-green); }
.toast.bad::before { background:var(--ios-red); }

/* Segmented controls / tabs */
.admin-tabs, .category-tabs, .knowledge-tabs, .mode-switch {
  border:1px solid rgba(115,139,168,.13);
  background:rgba(240,244,249,.68);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72), 0 7px 22px rgba(39,58,83,.04);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}
.admin-tabs { top:86px; border-radius:15px; padding:5px; }
.admin-tabs button, .category-tabs button, .knowledge-tabs button {
  border-radius:11px;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease;
}
.admin-tabs button.active, .category-tabs button.selected, .knowledge-tabs button.active {
  color:#0b66c7;
  border-color:rgba(255,255,255,.82);
  background:rgba(255,255,255,.90);
  box-shadow:0 4px 12px rgba(43,61,86,.08), inset 0 0 0 1px rgba(10,132,255,.06);
}

/* Tables and rows */
.table-list, .provider-list, .source-list { border-top:0; }
.mini-item, .table-row, .slot-row, .source-row, .task-row {
  border-bottom-color:rgba(113,136,164,.10);
}
.table-row:hover, .mini-item:hover, .provider-card:hover, .source-row:hover, .slot-row:hover {
  background:rgba(255,255,255,.42);
}

/* Admin page */
.admin-welcome {
  min-height:158px;
  padding:23px 25px;
  background:
    radial-gradient(circle at 92% 35%,rgba(182,214,255,.38),transparent 26%),
    rgba(255,255,255,.69);
}
.readiness-badge {
  border-color:rgba(125,148,176,.12);
  border-radius:15px;
  background:rgba(255,255,255,.62);
}
.readiness-badge.ready { border-color:rgba(35,165,104,.13); background:rgba(231,249,240,.72); }
.admin-single-panel { overflow:hidden; }
.budget-grid { gap:10px; }
.health-row { padding-top:12px; border-top:1px solid rgba(113,136,164,.10); }

.admin-load-errors {
  padding:0;
  overflow:hidden;
  border:1px solid rgba(201,146,75,.16);
  border-radius:15px;
  background:rgba(255,249,239,.72);
  box-shadow:0 10px 30px rgba(97,72,35,.035);
}
.admin-load-errors summary {
  list-style:none;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
  padding:11px 13px;
  cursor:pointer;
}
.admin-load-errors summary::-webkit-details-marker { display:none; }
.admin-error-icon {
  width:24px; height:24px; display:grid; place-items:center;
  border-radius:50%; color:#9a681f; background:rgba(222,165,70,.13); font-size:12px; font-weight:850;
}
.admin-load-errors summary div { display:grid; gap:2px; }
.admin-load-errors summary b { color:#72562f; font-size:10.5px; }
.admin-load-errors summary small { color:#927d5f; font-size:8.5px; }
.admin-error-count { padding:5px 8px; border-radius:99px; color:#8d6a35; background:rgba(255,255,255,.58); font-size:8.5px; }
.admin-load-error-body { display:flex; gap:10px; align-items:flex-end; padding:0 13px 12px; border-top:1px solid rgba(187,149,91,.10); }
.admin-load-error-list { flex:1; padding-top:10px; }
.admin-load-error-list > span { border-color:rgba(193,145,76,.12); background:rgba(255,255,255,.55); }

/* Research */
.research-progress-card { padding:19px 21px; }
.research-progress-track {
  height:8px;
  border:0;
  background:rgba(106,128,156,.12);
  box-shadow:inset 0 1px 2px rgba(56,75,100,.07);
}
.research-progress-track i {
  background:linear-gradient(90deg,#0a84ff,#58a7ff);
  box-shadow:0 0 16px rgba(10,132,255,.24);
}
.progress-percent > b { color:#0b65c4; font-size:25px; }
.analyst-card, .judge-card, .history-detail, .history-analyst {
  border-color:rgba(111,136,166,.12);
  background:rgba(255,255,255,.62);
  box-shadow:0 8px 22px rgba(42,57,79,.035);
}

/* Portfolio / watchlist / knowledge */
.position-card, .watchlist-shell, .knowledge-shell, .portfolio-entry-panel {
  border-color:rgba(112,136,166,.12);
  background:rgba(255,255,255,.64);
}
.position-card { border-radius:17px; box-shadow:0 10px 26px rgba(38,57,82,.04); }
.portfolio-form-total, .knowledge-metrics > div, .performance-score, .evaluation-rule-card {
  border-color:rgba(112,136,166,.12);
  background:rgba(255,255,255,.52);
}
.watchlist-toolbar, .knowledge-toolbar { border-bottom-color:rgba(113,136,164,.10); }
.format-details, .knowledge-add-details, .task-run-detail {
  border-color:rgba(112,136,166,.12);
  background:rgba(255,255,255,.48);
}

/* Data center */
.data-grid { gap:10px; }
.data-grid > div {
  padding:14px;
  border-color:rgba(112,136,166,.11);
  border-radius:15px;
  background:rgba(255,255,255,.54);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
}
.quality-breakdown.human {
  border-color:rgba(112,136,166,.11);
  border-radius:15px;
  background:rgba(255,255,255,.38);
}
.quality-breakdown.human span { border-radius:11px; background:rgba(255,255,255,.64); }

/* Performance */
.performance-hero {
  border-radius:var(--radius-xl);
  background:
    radial-gradient(circle at 90% 20%,rgba(184,215,255,.38),transparent 28%),
    rgba(255,255,255,.70);
}
.performance-score { border-radius:17px; }
.performance-score b { color:#0c5eaf; }
.performance-row { border-top-color:rgba(112,136,166,.09); }
.performance-row.header { background:rgba(242,246,250,.58); }
.recent-eval, .performance-table { border-color:rgba(112,136,166,.11); background:rgba(255,255,255,.48); }

/* Automation — compact, obvious, no raw giant checkbox */
.automation-panel { padding:20px 21px; }
.task-form {
  grid-template-columns:1.15fr .68fr .95fr 1.15fr .82fr auto;
  gap:8px;
  margin-bottom:12px;
  padding:10px;
  border:1px solid rgba(111,136,166,.10);
  border-radius:15px;
  background:rgba(246,249,252,.58);
}
.task-list-v207 { gap:8px; }
.task-card-v207 {
  padding:12px 13px;
  border:1px solid rgba(111,136,166,.11);
  border-radius:15px;
  background:rgba(255,255,255,.56);
  box-shadow:0 8px 22px rgba(38,57,82,.03);
}
.task-card-v207:hover { background:rgba(255,255,255,.72); }
.task-card-head b { font-size:11.5px; }
.task-card-head small { font-size:8.8px; }
.task-run-status { padding:6px 9px; border-radius:99px; }
.task-last-summary { border:1px solid rgba(112,136,166,.08); background:rgba(244,247,251,.56); }
.task-card-actions { gap:7px; margin-top:10px; }
.task-card-actions label {
  display:inline-flex; align-items:center;
  margin-right:auto;
  padding:5px 8px 5px 6px;
  border:1px solid rgba(112,136,166,.09);
  border-radius:999px;
  background:rgba(255,255,255,.52);
  color:#61728a;
  font-size:9px;
}
.task-card-actions .ghost, .task-card-actions .secondary, .task-card-actions .danger-button { min-height:35px; padding:0 11px; border-radius:10px; font-size:10px; }
.task-legacy-note { border-color:rgba(196,153,83,.16); background:rgba(255,249,237,.62); }
.task-result-panel { border-top-color:rgba(112,136,166,.10); }
.task-run-detail summary { padding:10px 11px; }
.task-result-item { border-color:rgba(112,136,166,.10); border-radius:11px; background:rgba(255,255,255,.62); }

/* Auth */
.auth-shell {
  background:
    radial-gradient(circle at 15% 16%,rgba(185,214,255,.60),transparent 30%),
    radial-gradient(circle at 86% 82%,rgba(205,240,231,.48),transparent 30%),
    #f3f7fb;
}
.auth-card {
  border:1px solid rgba(255,255,255,.92);
  border-radius:30px;
  background:rgba(255,255,255,.70);
  box-shadow:0 30px 80px rgba(35,52,76,.13);
  backdrop-filter:blur(30px) saturate(170%);
  -webkit-backdrop-filter:blur(30px) saturate(170%);
}
.mode-switch { border-radius:15px; background:rgba(228,234,242,.60); }
.mode-switch button.selected { border-radius:11px; background:rgba(255,255,255,.90); }

/* Responsive polish */
@media (max-width:1180px) {
  .main { padding-left:24px; padding-right:24px; }
  .task-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .task-form .primary { grid-column:span 3; }
}
@media (max-width:900px) {
  .sidebar { width:218px; }
  .main { width:calc(100% - 218px); margin-left:218px; padding:0 18px 50px; }
  .topbar { min-height:82px; }
  .admin-tabs { top:74px; }
  .admin-load-error-body { align-items:stretch; flex-direction:column; }
}
@media (max-width:720px) {
  .sidebar {
    width:100%; height:auto; inset:auto 0 0 0;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top:1px solid rgba(115,138,166,.14); border-right:0;
    box-shadow:0 -10px 30px rgba(38,52,72,.07);
  }
  .side-brand, .side-caption, .side-foot { display:none; }
  .sidebar nav { grid-template-columns:repeat(5,1fr); gap:3px; }
  .sidebar nav button { min-height:48px; justify-content:center; padding:3px; font-size:0; }
  .sidebar nav button span { width:30px; height:30px; margin:0; font-size:16px; }
  .main { width:100%; margin-left:0; padding:0 12px 84px; }
  .topbar { min-height:74px; top:0; }
  .topbar h2 { font-size:23px; }
  .top-actions { gap:6px; }
  .user-chip { display:none; }
  .status-pill { min-height:26px; font-size:9px; }
  .panel { padding:16px; }
  .card { border-radius:18px; }
  .admin-tabs { top:68px; }
  .task-form { grid-template-columns:1fr; padding:8px; }
  .task-form .primary { grid-column:auto; }
  .task-card-actions { justify-content:flex-start; }
  .task-card-actions label { width:100%; margin-right:0; justify-content:space-between; }
  .task-card-actions .ghost, .task-card-actions .secondary, .task-card-actions .danger-button { flex:1 1 auto; }
  .data-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:450px) {
  .sidebar nav { grid-template-columns:repeat(5,1fr); }
  .data-grid { grid-template-columns:1fr; }
  .admin-load-errors summary { grid-template-columns:auto 1fr; }
  .admin-error-count { display:none; }
}

/* ========================================================================== */
/* V2.0.9 — privacy, inline history, closed positions & mobile navigation      */
/* ========================================================================== */
.text-red { color:#d8515d !important; }
.top-actions { min-width:auto; }
.research-control h3 { margin:0 0 7px; color:#102239; font-size:20px; letter-spacing:-.035em; }

/* Active / sold portfolio ledger */
.portfolio-summary-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.portfolio-tabs { width:max-content; max-width:100%; margin:0 0 14px; }
.position-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.sell-button { color:#8b641f; border-color:rgba(199,150,69,.18); background:rgba(255,248,232,.72); }
.subtle-delete { color:#9b6570; opacity:.72; }
.sell-editor {
  display:grid; grid-template-columns:1fr 1fr minmax(170px,.75fr) auto; gap:9px; align-items:end;
  margin:10px 0; padding:12px; border:1px solid rgba(199,150,69,.16); border-radius:14px;
  background:linear-gradient(135deg,rgba(255,251,241,.82),rgba(255,255,255,.66));
}
.sell-editor > div { display:grid; gap:5px; }
.sell-editor small { color:#8f7a5c; font-size:8.5px; }
.sell-preview b { font-size:13px; }
.sell-editor-actions { display:flex !important; grid-auto-flow:column; gap:6px !important; }
.sell-editor-actions button { min-height:40px; white-space:nowrap; }
.sold-position-card { background:linear-gradient(145deg,rgba(255,255,255,.68),rgba(247,249,252,.72)); }
.sold-facts { grid-template-columns:repeat(4,minmax(0,1fr)); }
.realized-result {
  display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center;
  margin-top:10px; padding:12px 14px; border-radius:13px; border:1px solid rgba(109,133,162,.10);
}
.realized-result span { color:#73839a; font-size:9px; font-weight:700; }
.realized-result b { font-size:18px; letter-spacing:-.035em; }
.realized-result strong { padding:5px 8px; border-radius:999px; font-size:10px; }
.realized-result.profit { background:rgba(255,239,241,.80); color:#c94350; }
.realized-result.profit strong { background:rgba(220,79,91,.11); color:#c94350; }
.realized-result.loss { background:rgba(237,249,243,.82); color:#157b59; }
.realized-result.loss strong { background:rgba(22,149,106,.11); color:#157b59; }
.sold-note { margin:9px 2px 0; font-size:9px; }

/* History: each detail belongs to its own row */
.history-panel > .panel-head { margin-bottom:10px; }
.history-list-v209 { display:grid; gap:8px; }
.history-entry {
  overflow:hidden; border:1px solid rgba(111,136,166,.11); border-radius:15px;
  background:rgba(255,255,255,.52); transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.history-entry:hover { border-color:rgba(10,132,255,.14); background:rgba(255,255,255,.68); }
.history-entry.expanded { border-color:rgba(10,132,255,.16); box-shadow:0 12px 32px rgba(39,68,105,.06); }
.history-row-v209 {
  display:grid; grid-template-columns:minmax(250px,1.35fr) minmax(120px,.55fr) minmax(180px,.72fr) auto;
  gap:14px; align-items:center; min-height:74px; padding:12px 14px; cursor:pointer;
}
.history-status-chip { justify-self:start; padding:5px 8px; border-radius:999px; color:#677990; background:rgba(237,242,248,.78); font-size:9px; font-weight:700; }
.history-decision { display:grid; gap:2px; }
.history-decision b { color:#334a67; font-size:11px; }
.history-decision small { color:#8b98a8; font-size:8.5px; }
.history-toggle {
  min-width:104px; min-height:38px; display:inline-flex; justify-content:center; align-items:center; gap:7px;
  border:1px solid rgba(10,132,255,.12); border-radius:11px; color:#1769c8;
  background:rgba(237,246,255,.78); font-size:9.5px; font-weight:800;
}
.history-toggle span { font-size:12px; }
.inline-history-detail { margin:0; padding:14px; border-width:1px 0 0; border-radius:0; box-shadow:none; background:rgba(247,250,253,.56); }
.inline-judge-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:8px; }
.inline-judge-head small { color:#98a4b4; font-size:8.5px; }
.analyst-details-fold { margin-top:10px; border:1px solid rgba(111,136,166,.10); border-radius:12px; background:rgba(255,255,255,.46); }
.analyst-details-fold summary { padding:10px 12px; cursor:pointer; color:#667990; font-size:9px; font-weight:750; }
.analyst-details-fold .history-analysts { padding:0 10px 10px; }
.history-pagination { margin-top:12px; }

/* V2.0.9 mobile tab bar: icon + Chinese label; less-used tools live in a side sheet. */
.mobile-tabbar, .mobile-menu-backdrop { display:none; }

@media (max-width:1180px) {
  .portfolio-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sell-editor { grid-template-columns:1fr 1fr; }
  .sell-editor-actions { justify-content:flex-end; }
  .history-row-v209 { grid-template-columns:minmax(220px,1fr) minmax(115px,.45fr) minmax(160px,.65fr) auto; gap:10px; }
}

@media (max-width:720px) {
  body { background:linear-gradient(155deg,#f5f8fc 0%,#eef4f9 58%,#edf5f3 100%); }
  .sidebar { display:none !important; }
  .main { width:100%; margin-left:0; padding:0 10px calc(88px + env(safe-area-inset-bottom)); }
  .topbar {
    min-height:66px; margin:0 -2px 8px; padding:0 4px;
    background:linear-gradient(180deg,rgba(245,249,253,.94),rgba(245,249,253,.72));
  }
  .topbar .eyebrow { margin-bottom:2px; font-size:7px; }
  .topbar h2 { font-size:20px; letter-spacing:-.045em; }
  .status-pill { min-height:25px; padding:0 9px; font-size:8px; }
  .user-chip { display:none !important; }

  .mobile-tabbar {
    position:fixed; z-index:40; left:8px; right:8px; bottom:calc(7px + env(safe-area-inset-bottom));
    display:grid; grid-template-columns:repeat(5,1fr); gap:4px; padding:5px;
    border:1px solid rgba(255,255,255,.88); border-radius:19px;
    background:rgba(249,251,254,.88); box-shadow:0 12px 38px rgba(36,52,73,.16);
    backdrop-filter:blur(28px) saturate(180%); -webkit-backdrop-filter:blur(28px) saturate(180%);
  }
  .mobile-tabbar button {
    min-width:0; min-height:53px; display:grid; place-items:center; align-content:center; gap:3px; padding:4px 1px;
    border:0; border-radius:14px; color:#8290a3; background:transparent;
  }
  .mobile-tabbar button span { width:28px; height:25px; display:grid; place-items:center; border-radius:9px; font-size:15px; font-weight:800; }
  .mobile-tabbar button em { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-style:normal; font-size:8px; font-weight:700; }
  .mobile-tabbar button.active { color:#0870d9; background:rgba(229,241,255,.82); }
  .mobile-tabbar button.active span { background:rgba(10,132,255,.10); }

  .mobile-menu-backdrop {
    position:fixed; z-index:50; inset:0; display:block; background:rgba(20,31,47,.22);
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  }
  .mobile-menu-sheet {
    position:absolute; right:0; top:0; bottom:0; width:min(84vw,340px); padding:calc(16px + env(safe-area-inset-top)) 12px 18px;
    border-left:1px solid rgba(255,255,255,.86); background:rgba(248,251,254,.92);
    box-shadow:-18px 0 50px rgba(31,45,64,.16); backdrop-filter:blur(30px) saturate(180%); -webkit-backdrop-filter:blur(30px) saturate(180%);
  }
  .mobile-menu-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 6px 16px; }
  .mobile-menu-head > div { display:grid; gap:2px; }
  .mobile-menu-head small { color:#8b98a9; font-size:8px; letter-spacing:.12em; }
  .mobile-menu-head b { color:#182943; font-size:20px; }
  .mobile-menu-sheet > button:not(.mobile-logout) , .mobile-logout {
    width:100%; min-height:50px; display:grid; grid-template-columns:34px 1fr auto; gap:8px; align-items:center;
    padding:0 10px; border:0; border-bottom:1px solid rgba(111,136,166,.10); color:#566b85; background:transparent; text-align:left;
  }
  .mobile-menu-sheet > button span { width:29px; height:29px; display:grid; place-items:center; border-radius:9px; background:rgba(255,255,255,.60); }
  .mobile-menu-sheet > button b { font-size:12px; }
  .mobile-menu-sheet > button i { color:#a4afbd; font-style:normal; font-size:20px; }
  .mobile-menu-sheet > button.active { color:#086bce; background:rgba(231,242,255,.62); border-radius:12px; border-bottom-color:transparent; }
  .mobile-logout { margin-top:14px !important; color:#b65661 !important; }

  .card { border-radius:17px; box-shadow:0 9px 28px rgba(40,57,79,.055); }
  .panel { padding:14px; }
  .page-grid, .research-page, .admin-page, .performance-page { gap:10px; }
  .hero { min-height:auto; padding:23px 20px; }
  .hero h1 { font-size:29px; line-height:1.1; }
  .hero-orbit { display:none; }
  .metric-row { gap:9px; }
  .metric { min-height:112px; padding:17px; }
  .metric strong { font-size:27px; }
  .research-control { padding:16px; gap:12px; }
  .research-control h3 { font-size:17px; }
  .research-input { display:grid; grid-template-columns:1fr auto; gap:7px; }
  .mode-row { grid-template-columns:1fr; gap:6px; }
  .snapshot-grid, .analyst-grid, .judge-cols, .portfolio-layout { grid-template-columns:1fr !important; }
  .portfolio-summary-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .portfolio-stat { min-height:102px; padding:15px; }
  .portfolio-stat b { font-size:19px; }
  .portfolio-list-panel { order:1; }
  .portfolio-entry-panel { order:2; position:static !important; }
  .position-head { align-items:flex-start; gap:8px; }
  .position-actions { justify-content:flex-end; }
  .position-actions button { min-height:34px; padding:0 9px; font-size:8.5px; }
  .position-facts, .sold-facts { grid-template-columns:1fr 1fr; gap:7px; }
  .position-facts > div { padding:10px; }
  .advice-grid { grid-template-columns:1fr 1fr; }
  .sell-editor { grid-template-columns:1fr; }
  .sell-editor-actions { grid-auto-flow:row; grid-template-columns:1fr 1fr; }
  .realized-result { grid-template-columns:1fr auto; }
  .realized-result span { grid-column:1/-1; }
  .realized-result b { font-size:17px; }
  .portfolio-tabs { width:100%; display:grid; grid-template-columns:1fr 1fr; }

  .history-panel { padding:14px; }
  .history-panel > .panel-head { align-items:flex-start; }
  .history-row-v209 { grid-template-columns:1fr auto; gap:7px 10px; min-height:0; padding:12px; }
  .history-row-v209 .security-cell { grid-column:1; }
  .history-status-chip { grid-column:2; grid-row:1; align-self:start; }
  .history-decision { grid-column:1; }
  .history-toggle { grid-column:2; grid-row:2; min-width:84px; min-height:34px; padding:0 7px; }
  .inline-history-detail { padding:11px; }
  .history-facts, .history-decision-grid, .history-columns { grid-template-columns:1fr 1fr; }
  .history-columns { gap:8px; }
  .history-analysts { grid-template-columns:1fr !important; }
  .history-pagination { flex-wrap:wrap; }

  .knowledge-metrics { grid-template-columns:1fr 1fr; }
  .knowledge-toolbar, .knowledge-search { grid-template-columns:1fr; }
  .admin-tabs { top:62px; overflow-x:auto; justify-content:flex-start; scrollbar-width:none; }
  .admin-tabs::-webkit-scrollbar { display:none; }
  .admin-tabs button { flex:0 0 auto; }
  .task-card-actions .ghost, .task-card-actions .secondary, .task-card-actions .danger-button { min-width:calc(50% - 5px); }
  .data-grid { grid-template-columns:1fr; }
}

@media (max-width:430px) {
  .main { padding-left:8px; padding-right:8px; }
  .portfolio-summary-grid { grid-template-columns:1fr 1fr; }
  .portfolio-stat { padding:13px; }
  .portfolio-stat span { font-size:8px; }
  .portfolio-stat b { font-size:17px; }
  .history-facts, .history-decision-grid, .history-columns { grid-template-columns:1fr; }
  .mobile-tabbar { left:6px; right:6px; }
}

/* V2.0.10 — A-share color convention & ZSHTEC notice */

.copyright-notice {
  max-width: 900px;
  margin: 8px 0 0;
  color: #6f7d91;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: .01em;
}
@media (max-width: 720px) {
  .copyright-notice { font-size: 11px; line-height: 1.65; }
}


/* V2.1.0 SALES DEMO — display wording only, business logic unchanged */
.demo-pill {
  display:inline-flex; align-items:center; min-height:28px; padding:0 11px;
  border:1px solid rgba(53,111,232,.16); border-radius:999px;
  color:#2f65c9; background:rgba(237,243,255,.78);
  font-size:10px; font-weight:800; letter-spacing:.04em;
  backdrop-filter:blur(14px);
}
.sales-demo-notice {
  display:flex; align-items:flex-start; gap:10px;
  margin:-2px 0 16px; padding:10px 14px;
  border:1px solid rgba(191,155,70,.18); border-radius:14px;
  color:#776846; background:rgba(255,249,235,.72);
  box-shadow:0 8px 24px rgba(84,68,31,.035);
  backdrop-filter:blur(16px); font-size:11px; line-height:1.65;
}
.sales-demo-notice b { flex:0 0 auto; color:#876d32; }
.model-output-note {
  margin:10px 0 0; padding:9px 11px; border-radius:10px;
  color:#7a6c4a; background:rgba(255,248,230,.72);
  font-size:10px; line-height:1.6;
}
@media (max-width:720px) {
  .demo-pill { min-height:25px; padding:0 8px; font-size:9px; }
  .sales-demo-notice { margin:0 0 12px; padding:9px 11px; font-size:10px; }
}
