:root {
  --navy: #08152d;
  --ink: #14213d;
  --muted: #75809a;
  --line: #e7ebf2;
  --bg: #f5f7fb;
  --blue: #315efb;
  --cyan: #10bde4;
  --green: #14a673;
  --violet: #7467f0;
  --orange: #f49b3f;
  --white: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); min-width: 1100px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--navy); color: #dce5f8; padding: 24px 16px 18px; display: flex; flex-direction: column; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.brand strong, .brand span { display: block; }
.brand strong { color: white; font-size: 17px; letter-spacing: .08em; }
.brand span { color: #8795b5; font-size: 12px; margin-top: 3px; }
.nav-label { padding: 0 10px 8px; color: #63718f; font-size: 11px; letter-spacing: .12em; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 12px 13px; display: flex; justify-content: space-between; color: #dce5f8; background: transparent; text-align: left; margin-bottom: 4px; }
.nav-item.active { color: white; background: linear-gradient(90deg, #1c3e78, #173363); }
.nav-item b { color: #55d7ef; font-size: 11px; font-weight: 500; }
.account-heading { display: flex; justify-content: space-between; margin: 26px 9px 10px; font-size: 12px; color: #8d9bb8; }
.account-heading span:last-child { color: white; background: #213355; border-radius: 12px; padding: 1px 7px; }
.search { height: 38px; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #263858; border-radius: 9px; padding: 0 10px; background: #0d1e39; }
.search span { color: #7f8ca8; font-size: 19px; }
.search input { min-width: 0; width: 100%; color: #e9effb; background: transparent; border: 0; outline: none; font-size: 12px; }
.search input::placeholder { color: #60708f; }
.account-list { overflow: auto; min-height: 80px; scrollbar-width: thin; scrollbar-color: #2c4268 transparent; }
.account-item { width: 100%; border: 0; background: transparent; color: #aebbd2; border-radius: 9px; padding: 10px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; text-align: left; margin-bottom: 3px; }
.account-item:hover, .account-item.active { color: white; background: #142a4d; }
.account-avatar { width: 28px; height: 28px; border-radius: 9px; background: #1f3a66; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #61d7f1; }
.account-item.active .account-avatar { color: white; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.account-meta strong, .account-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-meta strong { font-size: 12px; font-weight: 600; }
.account-meta span { margin-top: 3px; font-size: 10px; color: #6f7f9d; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #1d2d49; padding: 18px 7px 0; display: flex; gap: 9px; align-items: flex-start; }
.safe-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d59a; box-shadow: 0 0 0 4px rgba(53,213,154,.1); margin-top: 5px; }
.sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer strong { color: #dce5f8; font-size: 11px; }
.sidebar-footer div span { color: #697895; font-size: 10px; margin-top: 4px; }
main { grid-column: 2; padding: 26px 34px 42px; max-width: 1700px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; margin: 0 0 5px; }
h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.status-badge { color: var(--green); background: #e8f8f2; border-radius: 18px; padding: 8px 12px; font-size: 12px; font-weight: 600; }
.button { border: 0; border-radius: 9px; padding: 10px 15px; font-size: 12px; font-weight: 600; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 8px 20px rgba(49,94,251,.2); }
.button.secondary { color: #40506e; background: white; border: 1px solid var(--line); }
.button:disabled { opacity: .55; cursor: wait; }
.toolbar { margin: 25px 0 18px; display: flex; justify-content: space-between; align-items: center; }
.period-tabs { display: flex; background: #e9edf5; padding: 3px; border-radius: 9px; }
.period { border: 0; color: #6e7990; background: transparent; border-radius: 7px; padding: 7px 14px; font-size: 12px; }
.period.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(28,44,75,.08); font-weight: 600; }
.muted { color: var(--muted); font-size: 11px; }
.message { margin-bottom: 15px; padding: 11px 14px; color: #805312; background: #fff8e8; border: 1px solid #f4dfae; border-radius: 9px; font-size: 12px; }
.message.success { color: #23644f; background: #ecfaf4; border-color: #bfe9d8; }
.sync-freshness { margin-top: 16px; min-height: 48px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; color: #23644f; background: #ecfaf4; border: 1px solid #bfe9d8; border-radius: 10px; }
.sync-freshness.stale, .sync-freshness.starting, .sync-freshness.degraded { color: #805312; background: #fff8e8; border-color: #f4dfae; }
.sync-freshness.error { color: #9a382f; background: #fff0ee; border-color: #ffc9c3; }
.sync-freshness strong, .sync-freshness small { display: block; }
.sync-freshness strong { font-size: 11px; }
.sync-freshness small { margin-top: 3px; color: inherit; opacity: .78; font-size: 9px; }
.sync-pulse { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #22b985; box-shadow: 0 0 0 5px rgba(34,185,133,.12); }
.sync-freshness.stale .sync-pulse, .sync-freshness.starting .sync-pulse, .sync-freshness.degraded .sync-pulse { background: #e6a43c; box-shadow: 0 0 0 5px rgba(230,164,60,.12); }
.sync-freshness.error .sync-pulse { background: #e86458; box-shadow: 0 0 0 5px rgba(232,100,88,.12); }
.view { margin-top: 24px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.kpi-card { position: relative; min-height: 132px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 19px 20px; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 76px; height: 76px; border-radius: 50%; right: -25px; top: -25px; opacity: .1; background: currentColor; }
.kpi-card span { display: block; color: #68738b; font-size: 12px; }
.kpi-card strong { display: block; color: var(--ink); font-size: 25px; margin: 14px 0 7px; letter-spacing: -.02em; }
.kpi-card small { color: #9aa3b6; font-size: 10px; }
.accent-blue { color: var(--blue); }
.accent-violet { color: var(--violet); }
.accent-green { color: var(--green); }
.accent-orange { color: var(--orange); }
.content-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(250px, .9fr); gap: 15px; margin-top: 15px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 19px 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel-heading h2 { font-size: 14px; margin: 0 0 5px; }
.panel-heading p { color: var(--muted); font-size: 10px; margin: 0; }
.legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.legend i.gmv { background: #80d8ea; margin-left: 8px; }
.chart-wrap { position: relative; height: 275px; margin-top: 18px; }
#performanceChart { width: 100%; height: 100%; }
.daily-trend-details { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 3px; }
.daily-trend-card { min-width: 112px; padding: 10px; border: 1px solid #e8edf6; border-radius: 9px; background: #f9fbff; }
.daily-trend-card strong { display: block; margin-bottom: 7px; color: #22304b; font-size: 11px; }
.daily-trend-card span { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; color: #78849b; font-size: 9px; }
.daily-trend-card span b { color: #27344e; font-size: 9px; }
.daily-trend-card .roi-good { color: #138963; }
.daily-trend-card .roi-risk { color: #d45b50; }
.status-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #edf0f5; font-size: 11px; }
.status-row span { color: var(--muted); }
.status-row b { font-weight: 600; color: var(--ink); }
.status-row b.danger { color: #e5655a; }
.safety-note { margin-top: 17px; padding: 12px; border-radius: 9px; background: #f1fbf7; color: #34745f; font-size: 10px; line-height: 1.6; }
.table-panel { margin-top: 15px; padding-bottom: 8px; }
.table-scroll { margin: 16px -20px 0; overflow: auto; position: relative; min-height: 120px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { color: #8791a6; font-weight: 500; background: #fafbfc; text-align: left; padding: 11px 20px; border-block: 1px solid #edf0f5; white-space: nowrap; }
td { padding: 13px 20px; border-bottom: 1px solid #f0f2f6; white-space: nowrap; }
td.analysis-cell { min-width: 220px; max-width: 320px; white-space: normal; line-height: 1.55; }
td.analysis-cell strong { display: block; margin-bottom: 3px; }
td.analysis-cell small { color: #7f8ba1; }
td.primary-cell { font-weight: 600; color: #27344e; }
td.primary-cell small, .reason-cell small { display: block; color: #929caf; font-size: 9px; font-weight: 400; margin-top: 4px; }
td.id-cell { color: #8b95a9; font-variant-numeric: tabular-nums; }
.roi-pill { display: inline-block; min-width: 46px; text-align: center; color: var(--green); background: #eaf8f3; border-radius: 12px; padding: 4px 8px; font-weight: 600; }
.empty { position: absolute; inset: 0; display: grid; place-items: center; color: #9da6b8; font-size: 12px; background: rgba(255,255,255,.92); }
.loading { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--ink); background: rgba(245,247,251,.88); backdrop-filter: blur(3px); }
.loading[hidden], [hidden] { display: none !important; }
.loading strong { font-size: 14px; }
.loading span { color: var(--muted); font-size: 11px; }
.view.is-refreshing::before { content: "正在切换账户并读取真实报表…"; position: sticky; top: 8px; z-index: 8; display: table; margin: 0 auto -28px; padding: 7px 14px; color: #315efb; background: rgba(239,244,255,.96); border: 1px solid #cfdcff; border-radius: 999px; box-shadow: 0 8px 20px rgba(49,94,251,.12); font-size: 11px; }
.spinner { width: 34px; height: 34px; border: 3px solid #dce3f2; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.section-intro { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-intro h2 { font-size: 21px; margin: 8px 0 5px; }
.section-intro p { margin: 0; color: var(--muted); font-size: 11px; }
.mode-chip { display: inline-block; color: #315efb; background: #edf1ff; border-radius: 12px; padding: 4px 8px; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.form-panel { margin-bottom: 16px; border-color: #dce4ff; box-shadow: 0 14px 40px rgba(38,62,120,.08); }
.icon-button { border: 0; background: #f1f3f7; color: #69758c; width: 28px; height: 28px; border-radius: 8px; font-size: 18px; }
.strategy-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 20px; }
.strategy-form label { color: #5f6b82; font-size: 10px; }
.strategy-form label small { display: block; color: #929caf; margin-top: 6px; line-height: 1.4; }
.strategy-form input, .strategy-form select { display: block; width: 100%; height: 40px; margin-top: 7px; border: 1px solid #dfe4ed; border-radius: 8px; padding: 0 11px; color: var(--ink); background: white; outline: none; }
.strategy-form input:focus, .strategy-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,94,251,.08); }
.strategy-form .formula-note { grid-column: span 3; align-self: center; color: #6e7990; background: #f7f9fc; border-radius: 8px; padding: 11px 13px; font-size: 10px; }
.strategy-form > .button { align-self: end; height: 40px; }
.room-select-label { grid-column: span 2; }
.select-with-button { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.select-with-button select { margin-top: 7px; }
.mini-button { align-self: end; height: 40px; border: 1px solid #dfe4ed; border-radius: 8px; color: var(--blue); background: #f5f7ff; padding: 0 12px; font-size: 10px; }
.mini-button:disabled { opacity: .5; }
.onboarding { text-align: center; padding: 50px 24px; }
.onboarding-mark { margin: 0 auto 18px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: white; background: linear-gradient(135deg, #315efb, #12bfe6); font-weight: 800; }
.onboarding h2 { font-size: 17px; margin: 0 0 8px; }
.onboarding p { color: var(--muted); font-size: 11px; margin: 0 auto 20px; max-width: 560px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-card { padding: 22px; }
.profile-card.live-card { grid-column: 1 / -1; }
.profile-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.profile-card h2 { font-size: 17px; margin: 9px 0 5px; }
.profile-card p { color: var(--muted); font-size: 10px; margin: 0; }
.health-ring { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 6px solid #dce5ff; color: var(--blue); font-size: 16px; font-weight: 800; }
.dual-goal { min-width: 145px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; background: #edf7f4; color: #227257; }
.dual-goal span { grid-column: 1 / -1; font-size: 9px; color: #68877c; }
.dual-goal b { font-size: 11px; }
.profile-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 14px; }
.profile-metrics div { padding: 12px; background: #f7f9fc; border-radius: 9px; }
.profile-metrics span, .profile-metrics b { display: block; }
.profile-metrics span { color: var(--muted); font-size: 9px; }
.profile-metrics b { margin-top: 6px; font-size: 13px; }
.profile-guard { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 0 16px; border-top: 1px solid #edf0f5; }
.profile-guard span { color: #66728a; background: #f4f6fa; border-radius: 12px; padding: 5px 8px; font-size: 9px; }
.decision-button { width: 100%; }
.realtime-zone { margin: 6px 0 14px; border: 1px solid #e6eaf2; border-radius: 12px; overflow: hidden; background: #fbfcfe; }
.realtime-loading, .realtime-error { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #7d879b; font-size: 11px; }
.realtime-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(49,94,251,.1); }
.realtime-error { color: #a24e48; background: #fff6f5; }
.offline-state { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 15px; padding: 18px; align-items: stretch; }
.offline-state h3, .live-head h3 { font-size: 14px; margin: 9px 0 5px; }
.offline-state p, .live-head p { color: var(--muted); font-size: 10px; margin: 0; }
.live-status { display: inline-block; border-radius: 12px; padding: 4px 8px; font-size: 9px; font-weight: 700; }
.live-status.offline { color: #6f7788; background: #eef1f5; }
.live-status.live { color: #087d59; background: #dcf8ed; }
.baseline-box, .objective-box { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; padding: 13px; border-radius: 9px; background: white; border: 1px solid #edf0f5; }
.baseline-box span, .objective-box span { grid-column: 1 / -1; color: #7b8599; font-size: 9px; }
.baseline-box b, .objective-box b { font-size: 11px; }
.baseline-box small, .objective-box small { grid-column: 1 / -1; color: #9ba3b3; font-size: 8px; line-height: 1.45; }
.objective-box { border-color: #dce5ff; background: #f7f9ff; }
.live-head { display: flex; justify-content: space-between; padding: 17px 18px 12px; }
.live-action { min-width: 200px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-content: center; padding: 10px 12px; border-radius: 9px; background: #eff4ff; }
.live-action span { color: #66738a; font-size: 9px; }
.live-action b { color: var(--blue); font-size: 12px; text-align: right; }
.live-action small { grid-column: 1 / -1; color: #8e98aa; font-size: 8px; text-align: right; }
.live-kpis { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid #edf0f5; background: white; }
.live-kpis div { padding: 13px 18px; border-right: 1px solid #edf0f5; }
.live-kpis div:last-child { border-right: 0; }
.live-kpis span, .live-kpis b { display: block; }
.live-kpis span { color: #8791a5; font-size: 9px; }
.live-kpis b { margin-top: 6px; font-size: 14px; }
.live-kpis b.good { color: var(--green); }
.live-kpis b.bad { color: #d95f55; }
.strategy-reason { display: grid; grid-template-columns: 90px 1fr; padding: 14px 18px 8px; font-size: 10px; line-height: 1.55; }
.strategy-reason strong { color: #27344e; }
.strategy-reason span { color: #647087; }
.signal-strip { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 18px 16px; }
.signal { border-radius: 12px; padding: 5px 8px; font-size: 8px; }
.signal.good { color: #23735b; background: #e6f8f1; }
.signal.pending { color: #8a641d; background: #fff4d9; }
.signal.neutral { color: #5d69a6; background: #edf0ff; }
.material-section { border-top: 1px solid #edf0f5; padding: 15px 18px; background: white; }
.material-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.material-heading h4 { font-size: 11px; margin: 0 0 4px; }
.material-heading p { color: #8a94a7; font-size: 8px; margin: 0; }
.capability { border-radius: 12px; padding: 4px 8px; font-size: 8px; }
.capability.available { color: #23735b; background: #e5f7f0; }
.capability.unavailable { color: #a15047; background: #ffebe9; }
.capability.no_data { color: #816323; background: #fff3d5; }
.material-empty { color: #8c96a8; background: #f7f9fc; border-radius: 8px; padding: 14px; font-size: 9px; text-align: center; }
.material-list { border: 1px solid #edf0f5; border-radius: 9px; overflow: hidden; }
.material-row { display: grid; grid-template-columns: minmax(190px, 1.6fr) repeat(4, minmax(70px, .55fr)) minmax(190px, 1.4fr); gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #edf0f5; }
.material-row:last-child { border-bottom: 0; }
.material-row > div > span, .material-row > div > b { display: block; }
.material-row > div > span { color: #8a94a7; font-size: 8px; }
.material-row > div > b { color: #2a374f; font-size: 10px; margin-top: 3px; }
.material-row > div > b.good { color: var(--green); }
.material-row > div > b.bad { color: #d95f55; }
.material-name strong, .material-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-name strong { color: #27344e; font-size: 10px; }
.material-name span { color: #98a1b2; font-size: 8px; margin-top: 4px; }
.material-diagnosis { border-radius: 7px; padding: 7px 9px; background: #f5f7fa; }
.material-diagnosis.winner { background: #eaf8f3; }
.material-diagnosis.fatigue_or_mismatch { background: #fff0ee; }
.material-diagnosis b { font-size: 9px !important; margin: 0 !important; }
.material-diagnosis span { margin-top: 3px; line-height: 1.4; white-space: normal; }
.proof-note { display: flex; gap: 12px; padding: 10px 18px; color: #6d7690; background: #f7f5ff; border-top: 1px solid #ece8ff; font-size: 8px; line-height: 1.5; }
.proof-note b { color: #6557b8; white-space: nowrap; }
.learning-readiness { margin-top: 14px; border: 1px solid #dce5ff; border-radius: 16px; overflow: hidden; background: #fbfcff; }
.learning-readiness-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px 10px; }
.learning-readiness-head span { color: #315efb; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.learning-readiness-head h4 { margin: 4px 0 0; font-size: 15px; color: #102044; }
.learning-readiness-head > b { color: #315efb; background: #edf2ff; border-radius: 20px; padding: 7px 11px; font-size: 10px; }
.learning-counts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #edf1fa; border-bottom: 1px solid #edf1fa; }
.learning-counts div { padding: 12px 18px; border-right: 1px solid #edf1fa; }
.learning-counts div:last-child { border-right: 0; }
.learning-counts span { display: block; color: #778198; font-size: 9px; margin-bottom: 5px; }
.learning-counts b { color: #102044; font-size: 16px; }
.expert-learning-strip { display: grid; grid-template-columns: 180px 150px 1fr; gap: 12px; align-items: center; margin: 12px 0; padding: 12px 14px; border: 1px solid #dce8ff; border-radius: 12px; background: #f5f9ff; }
.expert-learning-strip span { color: #687996; font-size: 9px; }
.expert-learning-strip b { display: block; margin-top: 4px; color: #10264b; font-size: 13px; }
.expert-learning-strip p { margin: 0; color: #31527e; line-height: 1.6; font-size: 9px; }
.operator-action-strip { display: grid; grid-template-columns: 1.2fr repeat(3, .8fr) 2fr; gap: 12px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border: 1px solid #d9e8df; border-radius: 12px; background: #f4fbf7; }
.operator-action-strip span { display: block; color: #6d7f75; font-size: 9px; }
.operator-action-strip b { display: block; margin-top: 4px; color: #173d2c; font-size: 12px; }
.operator-action-strip p { margin: 0; color: #49685a; font-size: 9px; line-height: 1.55; }
@media (max-width: 1100px) { .operator-action-strip { grid-template-columns: repeat(2, 1fr); } .operator-action-strip p { grid-column: 1 / -1; } }
.fact-ledger-panel { margin: 14px 18px; padding: 16px; border: 1px solid #dfe8f6; border-radius: 14px; background: #fbfdff; }
.fact-ledger-head, .session-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fact-ledger-head span { display: block; color: #2e66ff; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.fact-ledger-head b { display: block; margin-top: 4px; color: #102044; font-size: 14px; }
.fact-ledger-head small { max-width: 58%; color: #6c7890; line-height: 1.6; text-align: right; }
.maturity-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 18px; }
.maturity-cards div { padding: 11px 12px; border-radius: 10px; border: 1px solid #e5ebf5; background: #fff; }
.maturity-cards span, .maturity-cards small { display: block; color: #74819a; font-size: 8px; }
.maturity-cards b { display: block; margin: 5px 0; color: #152748; font-size: 18px; }
.maturity-cards .provisional { border-left: 3px solid #f5a623; }
.maturity-cards .preliminary { border-left: 3px solid #3573ff; }
.maturity-cards .settled { border-left: 3px solid #18ad79; }
.maturity-cards .corrected { border-left: 3px solid #8f62d9; }
.session-timeline-head b { color: #172743; font-size: 12px; }
.timeline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.timeline-actions button { padding: 6px 9px; border: 1px solid #d9e3f5; border-radius: 8px; background: #fff; color: #31527e; font-size: 8px; cursor: pointer; }
.session-timeline { margin-top: 10px; border-top: 1px solid #edf1f7; }
.session-timeline article { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid #edf1f7; }
.session-timeline time { color: #73819a; font-size: 9px; }
.session-timeline b { color: #172743; font-size: 10px; }
.session-timeline p { margin: 3px 0 0; color: #6d7890; font-size: 8px; }
.session-timeline article > span { padding: 4px 7px; border-radius: 999px; background: #eef5ff; color: #3462a7; font-size: 8px; }
.learning-checks { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 18px 5px; }
.learning-checks span { border-radius: 14px; padding: 5px 8px; font-size: 9px; }
.learning-checks .ready { color: #087f5b; background: #e9f8f2; }
.learning-checks .blocked { color: #8b5e12; background: #fff5dc; }
.learning-readiness > p { margin: 6px 18px 12px; color: #66728a; font-size: 9px; line-height: 1.6; }
.learning-gate { display: flex; justify-content: space-between; gap: 15px; padding: 10px 18px; background: #f3f6ff; color: #5e6980; font-size: 9px; }
.learning-gate b { color: #243b76; }
@media (max-width: 900px) { .learning-counts { grid-template-columns: repeat(2, 1fr); } .learning-gate { flex-direction: column; } }
.history-zone { margin: 14px 0; border: 1px solid #dfe6f3; border-radius: 12px; overflow: hidden; background: #fff; }
.history-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 18px; }
.history-heading h3 { font-size: 14px; margin: 8px 0 5px; }
.history-heading p { color: var(--muted); font-size: 9px; margin: 0; }
.history-actions { display: flex; align-items: center; gap: 8px; }
.history-actions span { color: #23735b; background: #e7f8f1; border-radius: 12px; padding: 5px 8px; font-size: 8px; }
.history-actions button { border: 1px solid #dce4f2; color: var(--blue); background: white; border-radius: 7px; padding: 6px 10px; font-size: 9px; }
.history-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid #edf0f5; background: #f9fbfe; }
.history-kpis div { padding: 13px 18px; border-right: 1px solid #edf0f5; }
.history-kpis div:last-child { border-right: 0; }
.history-kpis span, .history-kpis b { display: block; }
.history-kpis span { color: #8791a5; font-size: 9px; }
.history-kpis b { color: #25324b; margin-top: 6px; font-size: 14px; }
.history-truth { display: flex; gap: 12px; padding: 10px 18px; color: #6f7890; background: #fff9e9; font-size: 8px; line-height: 1.5; }
.history-truth b { color: #8a651f; white-space: nowrap; }
.history-truth.material-scope { background: #eef7ff; color: #60738f; border-top: 1px solid #dfeaf6; }
.history-truth.material-scope b { color: #315e9b; }
.plan-section { padding: 16px 18px 18px; }
.plan-card { border: 1px solid #e7ebf2; border-radius: 9px; margin-top: 8px; overflow: hidden; }
.plan-card summary { list-style: none; display: grid; grid-template-columns: minmax(240px, 1.8fr) minmax(100px, .7fr) minmax(95px, .6fr) minmax(75px, .5fr) minmax(100px, .7fr); gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; background: #fbfcfe; }
.plan-card summary::-webkit-details-marker { display: none; }
.plan-card summary strong, .plan-card summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-card summary strong { font-size: 10px; color: #28354e; }
.plan-card summary small { margin-top: 4px; color: #929cad; font-size: 8px; }
.plan-card summary > span { color: #62708a; font-size: 9px; }
.plan-card summary > b { color: #27344e; font-size: 10px; }
.plan-material-table { border-top: 1px solid #e9edf3; overflow-x: auto; }
.plan-material-head, .plan-material-line { min-width: 900px; display: grid; grid-template-columns: minmax(220px, 1.7fr) 90px repeat(5, minmax(90px, .6fr)); gap: 10px; align-items: center; padding: 9px 14px; }
.plan-material-head { color: #8a94a7; background: #f7f9fc; font-size: 8px; }
.plan-material-line { border-top: 1px solid #f0f2f6; font-size: 9px; }
.plan-material-line:first-of-type { border-top: 0; }
.plan-material-line strong, .plan-material-line small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-material-line strong { color: #2c3952; font-size: 9px; }
.plan-material-line small { color: #9aa3b3; font-size: 7px; margin-top: 3px; }
.plan-material-line > span { color: #778299; }
.plan-material-line > b { color: #2c3952; }
.plan-material-line > b.good { color: var(--green); }
.plan-material-line > b.bad { color: #d95f55; }
.plan-material-empty { padding: 14px; color: #929caf; border-top: 1px solid #edf0f5; background: white; text-align: center; font-size: 9px; }
.history-warning { padding: 10px 18px; color: #8b681f; background: #fff7df; border-top: 1px solid #f3e5b8; font-size: 8px; }
.plan-status { display: inline-block; color: #51617d; background: #f0f3f8; border-radius: 11px; padding: 4px 7px; font-size: 8px; }
.clickable-row { cursor: pointer; transition: background .15s ease; }
.clickable-row:hover { background: #f5f8ff; }
.account-material-panel { margin-top: 15px; padding: 0; overflow: hidden; }
.backend-version-error { display: flex; flex-direction: column; gap: 8px; padding: 22px; color: #8e3f39; background: #fff2f0; border: 1px solid #f2c4c0; border-radius: 13px; }
.backend-version-error strong { font-size: 14px; }
.backend-version-error span { color: #9b5a55; font-size: 10px; line-height: 1.7; }
.account-material-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px; }
.account-material-title h2 { font-size: 16px; margin: 8px 0 5px; }
.account-material-title p { margin: 0; color: var(--muted); font-size: 9px; }
.material-scope-badge { color: #315e9b; background: #eaf3ff; border-radius: 14px; padding: 6px 10px; font-size: 9px; }
.material-scope-badge.blocked { color: #b7473d; background: #ffebe8; }
.data-readiness-block { display: grid; gap: 5px; margin: 0 20px 16px; padding: 13px 16px; color: #8b3f38; background: #fff1ef; border: 1px solid #ffc8c2; border-radius: 10px; }
.data-readiness-block strong { font-size: 11px; }
.data-readiness-block span { font-size: 9px; line-height: 1.55; }
.data-readiness-block small { color: #9c6963; font-size: 8px; line-height: 1.5; }
.data-readiness-block.observation { color: #77591b; background: #fff8e7; border-color: #efd491; }
.data-readiness-block.observation small { color: #8a7342; }
.weekly-material-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 20px; }
.weekly-material-checks > div { padding: 12px; border: 1px solid #e8edf5; border-radius: 9px; background: #fafcff; }
.weekly-material-checks span, .weekly-material-checks b, .weekly-material-checks small { display: block; }
.weekly-material-checks span { color: #77839a; font-size: 9px; }
.weekly-material-checks b { margin: 7px 0 4px; font-size: 11px; }
.weekly-material-checks b.good { color: #188760; }
.weekly-material-checks b.bad { color: #d05b51; }
.weekly-material-checks small { color: #9aa4b6; font-size: 8px; }
.snapshot-details { margin: 18px 20px; border: 1px solid #e5eaf2; border-radius: 10px; overflow: hidden; }
.snapshot-details summary { cursor: pointer; padding: 13px 15px; color: #526079; background: #f8fafc; font-size: 10px; font-weight: 600; }
.snapshot-details .material-scope-note { margin: 0; border-radius: 0; }
.material-account-context, .material-type-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid #edf0f5; }
.material-account-context { background: #f8faff; }
.material-account-context div, .material-type-summary div { padding: 14px 18px; border-right: 1px solid #edf0f5; }
.material-account-context div:last-child, .material-type-summary div:last-child { border-right: 0; }
.material-account-context span, .material-account-context b, .material-type-summary span, .material-type-summary b, .material-type-summary small { display: block; }
.material-account-context span, .material-type-summary span { color: #7d889e; font-size: 9px; }
.material-account-context b, .material-type-summary b { margin-top: 6px; color: #24314a; font-size: 14px; }
.material-type-summary { margin: 16px 20px; border: 1px solid #e7ebf2; border-radius: 10px; overflow: hidden; }
.material-type-summary .direct { background: #eef9f6; }
.material-type-summary .direct b { color: #15805e; }
.material-type-summary small { color: #9aa3b4; font-size: 8px; margin-top: 4px; }
.material-scope-note { display: flex; gap: 12px; padding: 10px 20px; color: #64758f; background: #edf6ff; font-size: 9px; line-height: 1.5; }
.material-scope-note b { color: #315e9b; white-space: nowrap; }
.material-analysis-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 20px 12px; }
.material-analysis-head h3 { font-size: 12px; margin: 0 0 4px; }
.material-analysis-head p { color: #8a94a7; font-size: 8px; margin: 0; }
.material-analysis-head > span { color: #64728b; background: #f1f4f8; border-radius: 12px; padding: 4px 8px; font-size: 8px; }
.account-material-table { overflow-x: auto; border-top: 1px solid #edf0f5; }
.account-material-th, .account-material-tr { min-width: 1100px; display: grid; grid-template-columns: minmax(260px, 1.8fr) repeat(4, minmax(90px, .55fr)) minmax(110px, .65fr) minmax(220px, 1.25fr); gap: 12px; align-items: center; padding: 10px 20px; }
.account-material-th { color: #8791a6; background: #fafbfc; font-size: 8px; }
.account-material-tr { border-top: 1px solid #f0f2f6; font-size: 9px; }
.account-material-tr.direct { background: #f3fbf8; }
.account-material-tr > div em, .account-material-tr > div strong, .account-material-tr > div small { display: block; }
.account-material-tr > div em { width: max-content; color: #53647e; background: #edf1f6; border-radius: 10px; padding: 3px 6px; font-size: 7px; font-style: normal; }
.account-material-tr.direct > div em { color: #137657; background: #dff5ed; }
.account-material-tr > div strong { color: #27344e; margin-top: 5px; font-size: 9px; }
.account-material-tr > div small { color: #98a1b2; margin-top: 3px; font-size: 7px; }
.account-material-tr > b { color: #28364f; }
.account-material-tr > b.good { color: var(--green); }
.account-material-tr > span { color: #68758c; }
.account-material-tr .analysis { border-radius: 7px; padding: 7px 9px; white-space: normal; line-height: 1.4; }
.account-material-tr .analysis.learning { color: #80601f; background: #fff5dc; }
.account-material-tr .analysis.positive { color: #1d7658; background: #e7f8f1; }
.account-material-tr .analysis.risk { color: #a34f47; background: #ffebe9; }
.account-material-tr .analysis.idle { color: #778198; background: #f2f4f7; }
.account-material-tr .analysis.not_ready { color: #9b4b43; background: #ffefed; }
.account-material-table.compact .account-material-th,
.account-material-table.compact .account-material-tr { min-width: 700px; grid-template-columns: minmax(300px, 1.8fr) minmax(100px, .6fr) minmax(100px, .6fr) minmax(120px, .7fr); }
.history-truth.material-scope.blocked { color: #8b3f38; background: #fff1ef; border-color: #ffc8c2; }
.history-truth.material-scope.blocked b { color: #b7473d; }
.analysis-cell.expert { min-width: 260px; }
.analysis-cell.expert strong { color: #172846; }
.analysis-cell.expert small { margin-top: 6px; line-height: 1.65; white-space: normal; }
.channel-split-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 20px 18px; }
.channel-card { position: relative; display: grid; gap: 6px; min-height: 112px; padding: 16px; overflow: hidden; border: 1px solid #e5eaf3; border-radius: 12px; background: #f9fbff; }
.channel-card::after { content: ""; position: absolute; right: -24px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: #edf2ff; }
.channel-card.direct { background: #f0faf6; border-color: #d8eee5; }
.channel-card.direct::after { background: #dff4eb; }
.channel-card.video { background: #f5f7ff; }
.channel-card.waste { background: #fff8f2; border-color: #f2e3d4; }
.channel-card.waste::after { background: #f9eadb; }
.channel-card span, .channel-card strong, .channel-card small, .channel-card i { position: relative; z-index: 1; display: block; }
.channel-card span { color: #65738d; font-size: 9px; font-weight: 600; }
.channel-card strong { color: #14223d; font-size: 21px; }
.channel-card small { color: #63708a; font-size: 9px; line-height: 1.5; }
.channel-card i { width: max-content; color: #48617d; background: rgba(255, 255, 255, .75); border-radius: 10px; padding: 3px 7px; font-size: 8px; font-style: normal; }
.operator-brief { margin: 0 20px 18px; overflow: hidden; border: 1px solid #dce5f4; border-radius: 13px; background: white; box-shadow: 0 12px 28px rgba(29, 52, 91, .06); }
.operator-brief-main { padding: 18px; color: white; background: linear-gradient(125deg, #12284d, #2850a4); }
.operator-brief-main span { display: inline-block; color: #c9d8ff; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.operator-brief-main h3 { max-width: 1100px; margin: 8px 0 6px; font-size: 16px; line-height: 1.5; }
.operator-brief-main p { max-width: 1100px; margin: 0; color: #bfccec; font-size: 8px; line-height: 1.65; }
.root-cause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e8edf5; }
.root-cause-grid article { min-height: 112px; padding: 15px; background: #fbfcff; }
.root-cause-grid em { display: inline-block; color: #51689c; background: #eaf0ff; border-radius: 10px; padding: 3px 7px; font-size: 7px; font-style: normal; }
.root-cause-grid strong { display: block; margin-top: 8px; color: #1d2d49; font-size: 10px; line-height: 1.45; }
.root-cause-grid p { margin: 6px 0 0; color: #64718a; font-size: 8px; line-height: 1.65; }
.action-plan { display: grid; grid-template-columns: 190px repeat(4, 1fr); gap: 1px; background: #e9edf3; border-top: 1px solid #e9edf3; }
.action-plan > div, .action-plan article { padding: 14px; background: white; }
.action-plan > div { background: #f4f7fc; }
.action-plan > div span, .action-plan > div strong { display: block; }
.action-plan > div span { color: #68758d; font-size: 8px; }
.action-plan > div strong { margin-top: 7px; color: #22334f; font-size: 10px; line-height: 1.5; }
.action-plan article { display: flex; gap: 8px; }
.action-plan article em { flex: 0 0 auto; height: max-content; color: #fff; background: #315efb; border-radius: 9px; padding: 3px 6px; font-size: 7px; font-style: normal; }
.action-plan article strong { display: block; color: #273650; font-size: 9px; line-height: 1.45; }
.action-plan article p { margin: 5px 0 0; color: #778299; font-size: 8px; line-height: 1.55; }
.expert-material-list { border-top: 1px solid #edf0f5; }
.expert-material-row { display: grid; grid-template-columns: 112px minmax(180px, .8fr) minmax(420px, 1.35fr) minmax(330px, 1.2fr); gap: 14px; align-items: center; min-width: 1150px; padding: 14px 20px; border-top: 1px solid #edf0f5; }
.expert-material-row:first-child { border-top: 0; }
.expert-material-row.direct { background: #f3fbf8; }
.material-preview-button { position: relative; width: 112px; height: 72px; overflow: hidden; border: 0; border-radius: 9px; padding: 0; cursor: pointer; background: #14233e; }
.material-preview-button img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .2s ease, opacity .2s ease; }
.material-preview-button span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: white; background: rgba(10, 22, 43, .76); border-radius: 12px; padding: 5px 8px; font-size: 8px; white-space: nowrap; }
.material-preview-button:hover img { opacity: 1; transform: scale(1.04); }
.material-preview-unavailable { display: grid; place-items: center; width: 112px; height: 72px; color: #6b7890; background: #e9eef5; border-radius: 9px; font-size: 9px; }
.expert-material-name em, .expert-material-name strong, .expert-material-name small { display: block; }
.expert-material-name em { width: max-content; color: #46617e; background: #eaf0f6; border-radius: 10px; padding: 3px 7px; font-size: 7px; font-style: normal; }
.expert-material-row.direct .expert-material-name em { color: #147656; background: #ddf3ea; }
.expert-material-name strong { margin-top: 7px; color: #172743; font-size: 10px; line-height: 1.4; }
.expert-material-name small { margin-top: 5px; color: #929cad; font-size: 7px; line-height: 1.45; }
.expert-material-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.expert-material-metrics span { color: #8390a5; font-size: 8px; }
.expert-material-metrics b { display: block; margin-top: 3px; color: #23334f; font-size: 10px; }
.expert-material-analysis { padding: 11px 13px; border-left: 3px solid #8b9ab1; border-radius: 8px; background: #f6f8fb; }
.expert-material-analysis.good { border-color: #20a475; background: #eef9f5; }
.expert-material-analysis.risk { border-color: #e46659; background: #fff2f0; }
.expert-material-analysis.watch { border-color: #e1a337; background: #fff8e9; }
.expert-material-analysis.learning { border-color: #8190aa; }
.expert-material-analysis strong { display: block; color: #263750; font-size: 9px; }
.expert-material-analysis p { margin: 5px 0; color: #66748c; font-size: 8px; line-height: 1.6; }
.expert-material-analysis small { color: #4f5f78; font-size: 8px; line-height: 1.55; }
.expert-material-analysis details { margin-top: 8px; border-top: 1px solid rgba(91, 111, 143, .18); padding-top: 7px; }
.expert-material-analysis summary { color: #315efb; font-size: 8px; font-weight: 700; cursor: pointer; }
.expert-material-analysis details small { display: block; margin-top: 6px; }
.live-funnel-panel { margin-top: 18px; overflow: hidden; border: 1px solid #dce5f4; border-radius: 13px; background: #fff; }
.mode-chip.monitor-only { color: #147656; background: #e6f7f0; }
.dual-goal.pending { background: #fff7e8; }
.dual-goal.pending b { color: #94611f; }
.profile-metrics.monitoring b { color: #147656; }
.full-domain-control { margin-top: 18px; overflow: hidden; border: 1px solid #cfdcf3; border-radius: 14px; background: #fff; }
.control-head { display: flex; justify-content: space-between; gap: 24px; padding: 17px 19px; background: linear-gradient(120deg, #f5f8ff, #eefaf6); }
.control-head span { color: #315efb; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.control-head h4 { margin: 5px 0; color: #142642; font-size: 14px; }
.control-head p { margin: 0; color: #63718a; font-size: 9px; }
.control-head > div:last-child { min-width: 180px; text-align: right; }
.control-head > div:last-child b, .control-head > div:last-child small { display: block; }
.control-head > div:last-child b { color: #147656; font-size: 12px; }
.control-head > div:last-child small { margin-top: 5px; color: #6f7e94; font-size: 8px; }
.control-plan, .control-velocity { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1px; background: #e8edf5; border-top: 1px solid #e8edf5; }
.control-velocity { grid-template-columns: repeat(4, 1fr); }
.control-plan > div, .control-velocity > div { padding: 13px 15px; background: white; }
.control-plan span, .control-velocity span, .control-plan b, .control-velocity b { display: block; }
.control-plan span, .control-velocity span { color: #7b879b; font-size: 8px; }
.control-plan b, .control-velocity b { margin-top: 5px; color: #22334f; font-size: 10px; line-height: 1.45; }
.control-gates { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 17px; border-top: 1px solid #edf1f6; }
.control-gates > div { display: grid; gap: 3px; border-radius: 9px; padding: 7px 9px; background: #f4f6f9; }
.control-gates > div.passed { color: #147656; background: #eaf8f2; }
.control-gates > div.blocked { color: #a45a32; background: #fff3e9; }
.control-gates b { font-size: 8px; }
.control-gates span { color: #748197; font-size: 7px; }
.control-reason { padding: 13px 17px; border-top: 1px solid #edf1f6; background: #fbfcff; }
.control-reason b { color: #243650; font-size: 9px; }
.control-reason p { margin: 5px 0 0; color: #5f6f88; font-size: 9px; line-height: 1.6; }
.control-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 17px; border-top: 1px solid #edf1f6; }
.control-candidates article { border-left: 3px solid #a8b2c1; border-radius: 8px; padding: 11px 12px; background: #f6f8fb; }
.control-candidates article.eligible { border-color: #315efb; background: #eef3ff; }
.control-candidates article > div { display: flex; justify-content: space-between; gap: 12px; }
.control-candidates b { color: #22334f; font-size: 9px; }
.control-candidates span { color: #315efb; font-size: 8px; font-weight: 700; }
.control-candidates p { margin: 6px 0; color: #64718a; font-size: 8px; line-height: 1.55; }
.control-candidates small { color: #8993a4; font-size: 7px; }
.control-safety { display: flex; gap: 11px; align-items: center; padding: 10px 17px; color: #9b3f36; background: #fff0ee; font-size: 8px; }
.control-safety b { flex: 0 0 auto; }
.live-funnel-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; background: #f6f9ff; }
.live-funnel-head span { color: #315efb; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.live-funnel-head h4 { margin: 5px 0 0; color: #172743; font-size: 13px; }
.live-funnel-head > b { color: #53698e; background: #eaf0ff; border-radius: 12px; padding: 5px 9px; font-size: 8px; }
.live-funnel-headline { margin: 0; padding: 14px 18px; color: #273852; background: #fff; font-size: 10px; font-weight: 650; line-height: 1.6; }
.live-flow-kpis { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid #edf1f6; background: #edf1f6; gap: 1px; }
.live-flow-kpis > div { min-height: 74px; padding: 12px; background: white; }
.live-flow-kpis span, .live-flow-kpis b, .live-flow-kpis small { display: block; }
.live-flow-kpis span { color: #7d899e; font-size: 8px; }
.live-flow-kpis b { margin-top: 6px; color: #1d2d49; font-size: 13px; }
.live-flow-kpis small { margin-top: 3px; color: #71809a; font-size: 8px; }
.hourly-window-list { display: grid; gap: 8px; padding: 14px 18px; }
.hourly-window-list article { display: grid; grid-template-columns: 150px minmax(330px, .9fr) 1fr; gap: 12px; align-items: center; border-left: 3px solid #7f8da6; border-radius: 7px; padding: 10px 12px; background: #f7f9fc; }
.hourly-window-list article.validated_window { border-color: #20a475; background: #eef9f5; }
.hourly-window-list article.conversion_break,
.hourly-window-list article.below_break_even { border-color: #e46659; background: #fff2f0; }
.hourly-window-list article.below_target { border-color: #dfa431; background: #fff8e9; }
.hourly-window-list article span { color: #5f6f88; font-size: 8px; }
.hourly-window-list article b { color: #24354f; font-size: 9px; }
.hourly-window-list article p { margin: 0; color: #68768d; font-size: 8px; line-height: 1.5; }
.funnel-next-checks { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 15px; }
.funnel-next-checks span { color: #526681; background: #eef3fa; border-radius: 12px; padding: 5px 8px; font-size: 8px; }
.material-preview-dialog { width: min(720px, 92vw); padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #0b1425; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); }
.material-preview-dialog::backdrop { background: rgba(4, 10, 22, .72); backdrop-filter: blur(3px); }
.material-preview-dialog video { display: block; width: 100%; max-height: 76vh; background: #050a12; }
.preview-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 16px; color: white; }
.preview-dialog-head strong, .preview-dialog-head span { display: block; }
.preview-dialog-head strong { font-size: 11px; }
.preview-dialog-head span { margin-top: 3px; color: #9ba9c1; font-size: 8px; }
.preview-dialog-head button { border: 0; color: white; background: transparent; font-size: 22px; cursor: pointer; }
.launch-readiness { display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr; gap: 18px; align-items: center; margin: 14px 0 18px; padding: 14px 17px; border: 1px solid #efcf91; border-radius: 12px; background: #fff8e9; }
.launch-readiness.ready { border-color: #a9dfc9; background: #edf9f4; }
.launch-readiness.error { display: block; border-color: #efb6ae; background: #fff0ee; }
.launch-readiness-title span, .launch-readiness-title strong, .launch-readiness-title small { display: block; }
.launch-readiness-title span { color: #315efb; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.launch-readiness-title strong { margin-top: 5px; color: #253650; font-size: 12px; }
.launch-readiness-title small { margin-top: 4px; color: #728097; font-size: 8px; line-height: 1.5; }
.launch-readiness-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 7px; }
.launch-readiness-counts b { color: #23344f; border-radius: 8px; padding: 8px 9px; background: rgba(255, 255, 255, .72); font-size: 10px; }
.launch-readiness-counts span { display: block; margin-bottom: 4px; color: #78859a; font-size: 7px; font-weight: 500; }
.launch-readiness > p { grid-column: 1 / -1; margin: 0; color: #8a5d23; font-size: 8px; line-height: 1.5; }
.decision-panel .table-scroll { min-height: 260px; margin-top: 0; }
.reason-cell { max-width: 420px; white-space: normal; line-height: 1.5; }
.state-pill, .shadow-pill { display: inline-block; padding: 5px 8px; border-radius: 12px; font-size: 9px; font-weight: 600; }
.state-pill.cold_start { color: #86601e; background: #fff5d9; }
.state-pill.scaling { color: #1e7459; background: #e7f8f1; }
.state-pill.stable { color: #315efb; background: #edf1ff; }
.state-pill.decay { color: #b04b43; background: #ffebe9; }
.shadow-pill { color: #6858cf; background: #f0edff; }
.decision-feedback { display: flex; gap: 6px; min-width: 150px; }
.decision-feedback button { border: 1px solid #d7dfed; border-radius: 8px; padding: 6px 8px; color: #315efb; background: white; font-size: 8px; cursor: pointer; }
.decision-feedback button:last-child { color: #69778f; }
.decision-outcome b, .decision-outcome small { display: block; }
.decision-outcome b { color: #1d7658; font-size: 9px; }
.decision-outcome small { max-width: 180px; margin-top: 4px; color: #7c8799; white-space: normal; font-size: 8px; }
.decision-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid #dfe6f2; border-radius: 10px; background: #fff; }
.decision-summary span { color: #66748c; font-size: 9px; }
.decision-summary b { color: #172743; font-size: 11px; }
.decision-summary small { margin-left: auto; color: #8a95a7; font-size: 8px; }
.learning-record b, .learning-record small { display: block; }
.learning-record b { color: #53698e; font-size: 9px; }
.learning-record small { max-width: 180px; margin-top: 4px; color: #8b96a8; white-space: normal; font-size: 8px; line-height: 1.4; }
.decision-feedback-dialog { width: min(760px, 94vw); padding: 0; border: 0; border-radius: 15px; background: #fff; box-shadow: 0 24px 70px rgba(15, 29, 52, .28); }
.decision-feedback-dialog::backdrop { background: rgba(7, 16, 33, .58); backdrop-filter: blur(3px); }
.expert-feedback-form { padding: 0; }
.feedback-dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid #e9edf4; background: #f7f9fd; }
.feedback-dialog-head span { color: #315efb; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.feedback-dialog-head h3 { margin: 6px 0; color: #172743; font-size: 15px; }
.feedback-dialog-head p { max-width: 620px; margin: 0; color: #68758c; font-size: 9px; line-height: 1.5; }
.feedback-dialog-head button { align-self: flex-start; border: 0; color: #75829a; background: transparent; font-size: 23px; cursor: pointer; }
.feedback-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding: 18px 20px; }
.feedback-grid label { display: grid; gap: 6px; color: #57667f; font-size: 9px; }
.feedback-grid input, .feedback-grid select, .feedback-grid textarea { width: 100%; box-sizing: border-box; border: 1px solid #d7dfeb; border-radius: 8px; padding: 9px 10px; color: #263750; background: white; font: inherit; }
.feedback-grid .feedback-note { grid-column: 1 / -1; }
.feedback-policy { margin: 0 20px; padding: 10px 12px; color: #576b8c; border-radius: 8px; background: #eef4ff; font-size: 8px; line-height: 1.55; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 20px 20px; }
.feedback-actions > button:not(.primary) { border: 1px solid #d7dfeb; border-radius: 8px; padding: 8px 13px; color: #617089; background: white; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #eaf0ff 0, transparent 35%), #f4f7fb; }
.login-card { width: min(390px, 92vw); box-sizing: border-box; padding: 30px; border: 1px solid #dfe6f2; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(23, 39, 67, .12); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-brand img { width: 42px; height: 42px; border-radius: 12px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { color: #172743; font-size: 14px; }
.login-brand span { margin-top: 4px; color: #7b879b; font-size: 9px; }
.login-card h1 { margin: 0; color: #172743; font-size: 23px; }
.login-card > p { margin: 9px 0 22px; color: #71809a; font-size: 10px; line-height: 1.6; }
.login-card label { display: grid; gap: 7px; margin-top: 14px; color: #52627c; font-size: 10px; }
.login-card input { box-sizing: border-box; width: 100%; border: 1px solid #d7dfeb; border-radius: 9px; padding: 12px; color: #22334f; font: inherit; }
.login-card .button { width: 100%; margin-top: 20px; }
.login-card > small { display: block; min-height: 16px; margin-top: 10px; color: #c45349; font-size: 9px; text-align: center; }
.workspace-identity { display: grid; grid-template-columns: auto minmax(120px, 190px); align-items: center; gap: 9px; border-right: 1px solid #dfe5ef; padding-right: 13px; text-align: right; }
.workspace-identity strong, .workspace-identity span { display: block; }
.workspace-identity strong { color: #263750; font-size: 10px; }
.workspace-identity span { color: #7b8799; font-size: 8px; }
.workspace-identity select { border: 1px solid #d8e0ed; border-radius: 8px; padding: 7px 9px; color: #30415c; background: white; font-size: 9px; }
.organization-dialog { width: min(980px, 94vw); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 16px; background: white; box-shadow: 0 24px 70px rgba(15, 29, 52, .28); }
.organization-dialog::backdrop { background: rgba(7, 16, 33, .58); backdrop-filter: blur(3px); }
.organization-dialog-head { display: flex; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid #e8edf5; background: #f7f9fd; }
.organization-dialog-head span { color: #315efb; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.organization-dialog-head h3 { margin: 6px 0; color: #172743; font-size: 16px; }
.organization-dialog-head p { margin: 0; color: #68758c; font-size: 9px; }
.organization-dialog-head button { align-self: flex-start; border: 0; color: #75829a; background: transparent; font-size: 23px; cursor: pointer; }
.organization-dialog-status { margin: 14px 22px 0; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 10px; color: #b91c1c; background: #fef2f2; font-size: 9px; }
.organization-dialog-status.success { border-color: #bbf7d0; color: #15803d; background: #f0fdf4; }
.organization-dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px; }
.organization-dialog-grid form { display: grid; align-content: start; gap: 11px; border: 1px solid #e1e7f0; border-radius: 12px; padding: 17px; }
.organization-dialog-grid h4 { margin: 0 0 4px; color: #253650; font-size: 12px; }
.organization-dialog-grid label { display: grid; gap: 6px; color: #596981; font-size: 9px; }
.organization-dialog-grid input, .organization-dialog-grid select { box-sizing: border-box; width: 100%; border: 1px solid #d7dfeb; border-radius: 8px; padding: 9px 10px; color: #263750; background: white; font: inherit; }
.organization-user-section { margin: 0 22px 22px; border: 1px solid #e1e7f0; border-radius: 12px; overflow: hidden; }
.organization-user-section > div:first-child { padding: 14px 16px; border-bottom: 1px solid #e8edf5; background: #f7f9fd; }
.organization-user-section h4 { margin: 0; color: #253650; font-size: 12px; }
.organization-user-section p { margin: 5px 0 0; color: #71809a; font-size: 8px; }
.organization-user-table article { display: grid; grid-template-columns: minmax(150px, 1.4fr) 100px 100px minmax(160px, auto); align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eef1f6; }
.organization-user-table article:last-child { border-bottom: 0; }
.organization-user-table strong, .organization-user-table span { display: block; }
.organization-user-table strong { color: #263750; font-size: 10px; }
.organization-user-table span { margin-top: 3px; color: #7b8799; font-size: 8px; }
.organization-user-table b { color: #536582; font-size: 9px; }
.organization-user-table em { justify-self: start; border-radius: 12px; padding: 5px 8px; font-size: 8px; font-style: normal; }
.organization-user-table em.active { color: #197257; background: #e7f8f1; }
.organization-user-table em.inactive { color: #a2463f; background: #ffebe9; }
.organization-user-actions { display: flex; justify-content: flex-end; gap: 6px; }
.organization-user-actions button { border: 1px solid #d7dfeb; border-radius: 7px; padding: 6px 8px; color: #315efb; background: white; font-size: 8px; cursor: pointer; }
.organization-user-empty { padding: 18px; color: #71809a; font-size: 9px; text-align: center; }
.organization-user-empty.error { color: #b91c1c; }
.password-dialog { width: min(480px, 92vw); padding: 0; border: 0; border-radius: 16px; background: white; box-shadow: 0 24px 70px rgba(15, 29, 52, .28); }
.password-dialog::backdrop { background: rgba(7, 16, 33, .58); backdrop-filter: blur(3px); }
.password-form { margin: 0; }
.password-form-body { display: grid; gap: 13px; padding: 20px 22px 22px; }
.password-form-body .organization-dialog-status { margin: 0; }
.password-form-body label { display: grid; gap: 6px; color: #596981; font-size: 9px; }
.password-form-body input { box-sizing: border-box; width: 100%; border: 1px solid #d7dfeb; border-radius: 8px; padding: 10px; color: #263750; background: white; font: inherit; }
@media (max-width: 1200px) {
  main { padding-inline: 24px; }
  .kpi-card { padding-inline: 16px; }
  .content-grid { grid-template-columns: minmax(0, 1.7fr) minmax(230px, .8fr); }
  .strategy-form { grid-template-columns: repeat(3, 1fr); }
  .strategy-form .formula-note { grid-column: span 2; }
  .channel-split-summary { grid-template-columns: repeat(2, 1fr); }
  .action-plan { grid-template-columns: repeat(2, 1fr); }
  .action-plan > div { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .organization-dialog-grid { grid-template-columns: 1fr; }
  .organization-user-table article { grid-template-columns: 1fr 1fr; }
  .organization-user-actions { justify-content: flex-start; }
}
