:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #68738a;
  --line: #dce4f2;
  --green: #3072f6;
  --green-dark: #164fae;
  --green-soft: #eaf1ff;
  --orange: #d76722;
  --orange-soft: #fff0e5;
  --red: #b8403b;
  --red-soft: #fbe9e7;
  --blue: #3072f6;
  --blue-soft: #eaf1ff;
  --shadow: 0 14px 32px rgba(36, 85, 170, .08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px; padding: 12px 24px;
  border-bottom: 1px solid rgba(220, 228, 242, .9);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px);
}
.brand, .identity, .role-tabs, .identity-select { display: flex; align-items: center; }
.brand { gap: 12px; min-width: 250px; }
.brand .mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  color: white; font-size: 18px; font-weight: 900; background: var(--green);
  border-radius: 11px 11px 3px 11px; box-shadow: 0 7px 16px rgba(48,114,246,.22);
}
.brand strong { display: block; font-size: 17px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.identity { gap: 10px; }
.role-tabs { gap: 3px; padding: 4px; border-radius: 10px; background: #edf2fa; }
.role-tabs button { padding: 8px 13px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; font-weight: 700; }
.role-tabs button.active { color: white; background: var(--green-dark); }
.identity-select { gap: 9px; padding: 4px 5px 4px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.identity-select span { color: var(--muted); font-size: 11px; }
.identity-select select { min-width: 170px; height: 34px; border: 0; outline: none; background: transparent; font-weight: 700; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 20px; }

main { max-width: 1540px; margin: 0 auto; padding: 26px 22px 48px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.hero h1 { margin: 4px 0 7px; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -.04em; }
.hero p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--green) !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.business-date { min-width: 150px; padding-left: 18px; border-left: 2px solid var(--green); }
.business-date span, .business-date em { display: block; color: var(--muted); font-size: 11px; font-style: normal; }
.business-date strong { display: block; margin: 3px 0; font-size: 20px; }

.weekly-rhythm {
  display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr auto;
  align-items: center; gap: 8px; margin-bottom: 14px; padding: 12px;
  border: 1px solid #b9cef7; border-radius: 14px; background: linear-gradient(120deg, #f8fbff, #edf3ff);
}
.weekly-rhythm > i { color: #88a6df; text-align: center; font-style: normal; }
.rhythm-step { padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.7); }
.rhythm-step b, .rhythm-step span, .rhythm-step small { display: block; }
.rhythm-step b { color: var(--blue); font-size: 9px; letter-spacing: .1em; }
.rhythm-step span { margin: 2px 0; font-size: 12px; font-weight: 900; }
.rhythm-step small { color: var(--muted); font-size: 9px; }
.rhythm-step.active { color: white; background: var(--blue); }
.rhythm-step.active b, .rhythm-step.active small { color: white; opacity: .76; }
.rhythm-summary { padding: 8px 12px; border-left: 1px solid #b9cef7; white-space: nowrap; }
.rhythm-summary span, .rhythm-summary strong { display: block; }
.rhythm-summary span { color: var(--muted); font-size: 9px; }
.rhythm-summary strong { margin-top: 3px; font-size: 11px; }

.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-card {
  position: relative; overflow: hidden; min-height: 118px; padding: 17px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow);
}
.kpi-card::after { content: ""; position: absolute; right: -24px; bottom: -30px; width: 95px; height: 95px; border-radius: 50%; background: var(--green-soft); }
.kpi-card.tone-2::after { background: var(--blue-soft); }
.kpi-card.tone-3::after { background: var(--red-soft); }
.kpi-card.tone-4::after { background: var(--orange-soft); }
.kpi-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi-card strong { position: relative; z-index: 1; display: block; margin: 5px 0 2px; font-size: 34px; letter-spacing: -.04em; }
.kpi-card small { color: var(--muted); font-size: 11px; }

.view-panel, .funnel-section {
  margin-bottom: 18px; padding: 18px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
}
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-title span, .panel-kicker { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.section-title h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.02em; }
.section-title > p { margin: 0; color: var(--muted); font-size: 12px; }
.section-title.compact { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-title.mini { align-items: center; margin-bottom: 12px; }
.section-title.mini h2 { font-size: 18px; }

.district-layout, .battle-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 14px; }
.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.region-card {
  position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 11px;
  min-height: 135px; padding: 15px; text-align: left;
  border: 1px solid var(--line); border-radius: 13px; background: #f9faf7;
}
.region-card:hover { transform: translateY(-2px); border-color: #94b7fb; box-shadow: 0 9px 20px rgba(48,114,246,.10); }
.region-card.hot { background: linear-gradient(145deg, #f8fbff, #edf3ff); border-color: #a9c5fb; }
.region-card .rank { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 900; }
.region-card span { color: var(--muted); font-size: 12px; }
.region-card strong { float: right; color: var(--green); font-size: 24px; }
.region-card p { clear: both; margin: 17px 0 5px; font-weight: 800; }
.region-card small { color: var(--muted); font-size: 11px; }

.command-panel, .coach-panel, .where-panel, .what-panel, .how-panel {
  padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f9faf7;
}
.command-hero { margin: 10px 0 13px; padding: 16px; color: white; border-radius: 12px; background: var(--green-dark); }
.command-hero span { font-size: 11px; opacity: .72; }
.command-hero strong { display: block; margin: 4px 0 7px; font-size: 22px; }
.command-hero p { margin: 0; font-size: 12px; line-height: 1.55; opacity: .85; }
.command-item, .coach-task {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px;
  width: 100%; padding: 10px 6px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent;
}
.command-item b, .coach-task b { display: grid; place-items: center; width: 25px; height: 25px; color: white; border-radius: 7px; background: var(--orange); font-size: 11px; }
.command-item span strong, .coach-task span strong { display: block; font-size: 13px; }
.command-item small, .coach-task small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.command-item em { color: var(--green); font-size: 11px; font-style: normal; font-weight: 800; }
.risk-callout { margin-top: 12px; padding: 12px; border-left: 3px solid var(--red); border-radius: 6px; background: var(--red-soft); }
.risk-callout span, .risk-callout strong { display: block; }
.risk-callout span { color: var(--red); font-size: 10px; font-weight: 900; }
.risk-callout strong { margin-top: 4px; font-size: 12px; }

.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 12px; color: var(--muted); text-align: left; background: #f1f3ef; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f7faf7; }
td strong, td small { display: block; }
td small { margin-top: 2px; color: var(--muted); }
.score-pill { display: inline-grid; place-items: center; min-width: 38px; padding: 5px 8px; color: white; border-radius: 9px; background: var(--green); font-weight: 900; }
.rate-pill, .yes-pill, .win-pill { display: inline-block; padding: 5px 7px; border-radius: 7px; font-size: 10px; font-weight: 900; }
.rate-pill { color: var(--green-dark); background: var(--green-soft); }
.yes-pill { color: #9a4d08; background: var(--orange-soft); }
.win-pill { color: white; background: var(--green); }
.danger { color: var(--red); font-weight: 900; }
.task-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.task-stats > div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; }
.task-stats span, .task-stats strong, .task-stats small { display: block; }
.task-stats span { color: var(--muted); font-size: 9px; }
.task-stats strong { margin: 3px 0; font-size: 22px; }
.task-stats small { color: var(--muted); font-size: 9px; }

.soft-button, .primary-button { min-height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 800; }
.soft-button { border: 1px solid #aac6fb; background: var(--green-soft); color: var(--green-dark); }
.primary-button { border: 0; background: var(--orange); color: white; }
.battlefield { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.battle-card { padding: 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: white; }
.battle-card.priority { border-color: #94b7fb; background: var(--green-soft); }
.battle-card > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; }
.battle-card > div strong { color: var(--green); font-size: 22px; }
.battle-card h3 { margin: 10px 0 3px; font-size: 16px; }
.battle-card p { margin: 0; min-height: 32px; font-size: 12px; font-weight: 700; }
.battle-card ul { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 12px 0; list-style: none; }
.battle-card li { padding: 4px 6px; border-radius: 6px; background: #f1f3ef; font-size: 10px; }
.battle-card small { display: block; color: var(--muted); line-height: 1.5; }
.coach-task { grid-template-columns: 26px 115px 1fr; }
.coach-task em { color: var(--ink); font-size: 11px; font-style: normal; line-height: 1.4; }
.manager-diagnosis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.diagnosis-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; }
.person-head { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; color: white; border-radius: 10px; background: var(--green); font-weight: 900; }
.person-head strong, .person-head small { display: block; }
.person-head small { color: var(--muted); font-size: 10px; }
.person-head em { padding: 5px 7px; color: var(--orange); border-radius: 7px; background: var(--orange-soft); font-size: 10px; font-style: normal; font-weight: 900; }
.mini-funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0; }
.mini-funnel span { padding: 7px 3px; text-align: center; border-radius: 7px; background: #eff2ee; color: var(--muted); font-size: 9px; }
.mini-funnel b { display: block; margin-top: 2px; color: var(--ink); font-size: 14px; }
.diagnosis-card p { margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.diagnosis-card p b { color: var(--ink); }
.diagnosis-card button { width: 100%; margin-top: 7px; padding: 8px; color: var(--green); border: 0; border-radius: 7px; background: var(--green-soft); font-size: 11px; font-weight: 900; }

.today-plan { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 15px 17px; color: white; border-radius: 13px; background: var(--green-dark); }
.today-plan > div { display: grid; grid-template-columns: 10px auto; align-items: center; gap: 7px 9px; }
.today-plan p { grid-column: 2; margin: 0; opacity: .78; font-size: 12px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #61a0ff; box-shadow: 0 0 0 5px rgba(48,114,246,.13); }
.selection-banner { display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: 18px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #b9cef7; border-radius: 12px; background: var(--green-soft); }
.selection-banner span, .selection-banner strong { display: block; }
.selection-banner span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.selection-banner strong { margin: 3px 0; font-size: 17px; }
.selection-banner p { margin: 0; color: var(--muted); font-size: 10px; }
.selection-progress { height: 10px; overflow: hidden; border-radius: 99px; background: white; }
.selection-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s; }
.manager-workspace { display: grid; grid-template-columns: minmax(225px, .65fr) minmax(370px, 1.05fr) minmax(320px, .9fr); gap: 12px; align-items: start; }
.where-card { display: block; width: 100%; margin-bottom: 9px; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: white; }
.where-card.active { border-color: #94b7fb; box-shadow: inset 3px 0 var(--green); }
.where-card > span { color: var(--orange); font-size: 9px; font-weight: 900; }
.where-card > strong { display: block; margin: 4px 0 2px; }
.where-card > p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.where-card > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); }
.where-card > div.why-project { display: block; }
.where-card > div.why-project small, .where-card > div.why-project b { display: block; }
.where-card > div.why-project b { margin-top: 3px; color: var(--green-dark); line-height: 1.45; }
.where-card small { color: var(--muted); font-size: 9px; }
.where-card b { font-size: 10px; }
.where-card em { display: inline-block; margin-top: 8px; padding: 4px 6px; color: var(--green); border-radius: 5px; background: var(--green-soft); font-size: 9px; font-style: normal; font-weight: 900; }
.segmented { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: #edf2fa; }
.segmented button { padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; font-size: 10px; font-weight: 800; }
.segmented button.active { background: white; color: var(--green); }
.search-row { display: grid; grid-template-columns: 1fr 115px; gap: 7px; margin-bottom: 9px; }
.search-row input, .search-row select { min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 11px; }
.opportunity-list { max-height: 650px; overflow: auto; }
.opportunity-card { display: block; width: 100%; margin-bottom: 7px; padding: 11px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: white; }
.opportunity-card.active { border-color: #8eb3fb; box-shadow: 0 6px 14px rgba(48,114,246,.10); }
.opportunity-card.selected { box-shadow: inset 3px 0 var(--green); }
.opportunity-top { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 7px; }
.grade { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 5px; color: white; border-radius: 7px; background: var(--blue); font-size: 10px; font-weight: 900; }
.grade-A { background: var(--red); }
.grade-B { background: var(--orange); }
.opportunity-top em { color: var(--green); font-size: 15px; font-style: normal; font-weight: 900; }
.opportunity-card p { margin: 8px 0; font-size: 11px; font-weight: 700; }
.opportunity-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.opportunity-meta span { padding: 3px 5px; border-radius: 5px; background: #eff2ee; color: var(--muted); font-size: 9px; }
.opportunity-meta .status { color: var(--green); background: var(--green-soft); }
.opportunity-card > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.property-ref { margin-bottom: 3px !important; color: var(--ink); font-weight: 900 !important; }
.opportunity-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5px; margin-top: 9px; }
.opportunity-actions button { min-height: 30px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; font-weight: 800; }
.opportunity-actions .select-task { color: var(--green); border-color: #aac6fb; background: var(--green-soft); }
.opportunity-actions .select-task.active { color: white; background: var(--green); }
.strategy-score { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.strategy-score .grade { height: 34px; }
.strategy-score strong, .strategy-score small { display: block; }
.strategy-score small { color: var(--muted); font-size: 10px; }
.strategy-score > b { color: var(--green); font-size: 24px; }
.property-identity { padding: 11px 0; border-bottom: 1px solid var(--line); }
.property-identity span, .property-identity strong, .property-identity small { display: block; }
.property-identity span { color: var(--green); font-size: 9px; font-weight: 900; }
.property-identity strong { margin: 4px 0; font-size: 14px; }
.property-identity small { color: var(--muted); font-size: 9px; }
.open-task-page { display: block; margin: 9px 0; padding: 10px; color: white; text-align: center; text-decoration: none; border-radius: 8px; background: var(--green); font-size: 11px; font-weight: 900; }
.market-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 10px 0; }
.market-board div { padding: 8px 6px; border-radius: 8px; background: #eef3fc; }
.market-board span, .market-board b, .market-board small { display: block; }
.market-board span { color: var(--muted); font-size: 8px; }
.market-board b { margin: 3px 0; font-size: 11px; }
.market-board small { color: var(--muted); font-size: 8px; }
.pre-reference { display: grid; gap: 5px; margin-bottom: 10px; }
.pre-reference div { padding: 7px 8px; border-left: 3px solid var(--blue); border-radius: 6px; background: #f7faff; }
.pre-reference span { display: block; color: var(--muted); font-size: 8px; }
.pre-reference b { display: block; margin-top: 2px; font-size: 9px; line-height: 1.4; }
.owner-brief { padding: 10px; border-radius: 9px; background: #fff8f0; }
.owner-brief > span { color: var(--orange); font-size: 9px; font-weight: 900; }
.owner-brief p { margin: 5px 0 0; font-size: 10px; line-height: 1.45; }
.strategy-section { padding: 11px 0; border-bottom: 1px solid var(--line); }
.strategy-section > span { display: block; margin-bottom: 6px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.strategy-section p, .strategy-section small { margin: 0; font-size: 11px; line-height: 1.55; }
.strategy-section small { display: block; margin-top: 5px; color: var(--red); }
.strategy-section ul { margin: 0; padding-left: 17px; }
.strategy-section li { margin: 4px 0; font-size: 11px; }
.collab { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; }
.collab b { padding: 5px 7px; border-radius: 6px; background: var(--green-soft); font-size: 10px; }
.collab i { color: var(--muted); font-style: normal; }
blockquote { margin: 0; padding: 10px; border-left: 3px solid var(--orange); background: var(--orange-soft); font-size: 11px; line-height: 1.65; }
.certainty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 11px 0; }
.certainty-grid div { padding: 9px; border: 1px solid #c9d8f4; border-radius: 8px; background: #f7faff; }
.certainty-grid span { display: block; color: var(--green); font-size: 9px; font-weight: 900; }
.certainty-grid p { margin: 4px 0 0; font-size: 9px; line-height: 1.5; }
.interview-guide { margin: 7px 0; border: 1px solid var(--line); border-radius: 8px; background: white; }
.interview-guide summary { padding: 9px 10px; color: var(--green-dark); font-size: 10px; font-weight: 900; cursor: pointer; }
.interview-guide ol { margin: 0; padding: 0 12px 10px 28px; }
.interview-guide li { margin: 5px 0; font-size: 9px; line-height: 1.45; }
.battle-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 11px 0; padding: 11px; border-radius: 9px; background: #eef3fc; }
.battle-form > span { grid-column: 1 / -1; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.battle-form label { color: var(--muted); font-size: 9px; }
.battle-form input, .battle-form select, .battle-form textarea { display: block; width: 100%; margin-top: 4px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 10px; }
.battle-form textarea { min-height: 58px; resize: vertical; }
.battle-form button { grid-column: 1 / -1; min-height: 34px; color: white; border: 0; border-radius: 7px; background: var(--green); font-size: 10px; font-weight: 900; }
.strategy-section.next strong { display: block; font-size: 12px; }
.strategy-section.next p { margin-top: 5px; color: var(--red); }
.direction-card strong { display: block; margin-bottom: 5px; font-size: 12px; }
.direction-card p { margin-bottom: 5px; }
.closed-loop { display: grid; gap: 5px; margin: 10px 0; }
.closed-loop div { display: grid; grid-template-columns: 25px 62px 1fr; align-items: center; gap: 7px; padding: 7px; border-radius: 7px; background: #f4f7fc; }
.closed-loop b { display: grid; place-items: center; width: 23px; height: 23px; color: white; border-radius: 6px; background: var(--green); font-size: 9px; }
.closed-loop span { color: var(--green-dark); font-size: 9px; font-weight: 900; }
.closed-loop p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.action-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 11px; }
.action-buttons button { min-height: 31px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; font-weight: 800; }
.action-buttons button.active { color: white; border-color: var(--green); background: var(--green); }
.ability-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ability-card > div { padding: 14px; border-radius: 11px; background: #f3f6f2; }
.ability-card span, .ability-card strong { display: block; }
.ability-card span { color: var(--muted); font-size: 10px; }
.ability-card strong { margin: 6px 0; font-size: 13px; }
.ability-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.funnel-grid { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; }
.funnel-stage { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf7; }
.funnel-stage > span { color: var(--green); font-size: 10px; font-weight: 900; }
.funnel-stage small, .funnel-stage strong { display: block; }
.funnel-stage small { color: var(--muted); font-size: 9px; }
.funnel-stage strong { font-size: 21px; }
.funnel-stage em { color: var(--green); font-size: 10px; font-style: normal; font-weight: 900; }
.funnel-arrow { color: #9aa59f; text-align: center; }
.empty { padding: 28px 12px; color: var(--muted); text-align: center; font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 12px 16px; color: white; border-radius: 10px; background: var(--green-dark); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.fatal { padding: 60px 24px; text-align: center; }

@media (max-width: 1180px) {
  .district-layout, .battle-layout { grid-template-columns: 1fr; }
  .manager-workspace { grid-template-columns: 240px 1fr; }
  .how-panel { grid-column: 1 / -1; }
  .manager-diagnosis { grid-template-columns: repeat(2, 1fr); }
  .task-stats { grid-template-columns: repeat(2, 1fr); }
  .weekly-rhythm { grid-template-columns: repeat(4, 1fr); }
  .weekly-rhythm > i { display: none; }
  .rhythm-summary { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #b9cef7; }
}
@media (max-width: 820px) {
  .topbar { align-items: flex-start; padding: 11px 14px; }
  .brand { min-width: auto; }
  .brand small { display: none; }
  .identity { align-items: flex-end; flex-direction: column; }
  .identity-select span { display: none; }
  .identity-select select { min-width: 160px; }
  main { padding: 18px 12px 36px; }
  .hero { align-items: flex-start; }
  .business-date { display: none; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .region-grid, .battlefield, .manager-diagnosis, .ability-card { grid-template-columns: 1fr; }
  .manager-workspace { grid-template-columns: 1fr; }
  .how-panel { grid-column: auto; }
  .funnel-grid { grid-template-columns: 1fr; gap: 6px; }
  .funnel-arrow { transform: rotate(90deg); }
  .selection-banner { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .topbar { position: static; display: block; }
  .identity { margin-top: 11px; align-items: stretch; }
  .role-tabs { justify-content: center; }
  .identity-select { justify-content: center; }
  .hero h1 { font-size: 29px; }
  .kpi-card { min-height: 100px; padding: 14px; }
  .kpi-card strong { font-size: 27px; }
  .view-panel, .funnel-section { padding: 13px; border-radius: 13px; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .weekly-rhythm { grid-template-columns: 1fr 1fr; }
  .market-board { grid-template-columns: repeat(2, 1fr); }
  .certainty-grid, .battle-form { grid-template-columns: 1fr; }
  .battle-form > span, .battle-form button { grid-column: auto; }
}
