:root {
  color-scheme: light;
  --ink: #232432;
  --muted: #858895;
  --line: #eceff5;
  --surface: #ffffff;
  --surface-2: #f5f6fa;
  --surface-3: #fbfbfd;
  --sidebar: #f0f1f5;
  --teal: #ff2f5f;
  --teal-dark: #eb2754;
  --blue: #4d7cff;
  --amber: #ffc83d;
  --red: #ff3b5f;
  --green: #21a67a;
  --violet: #7a63ff;
  --pink-soft: #fff0ee;
  --blue-soft: #edf6ff;
  --violet-soft: #f1edff;
  --yellow-soft: #fff7d8;
  --shadow: 0 18px 44px rgba(36, 39, 58, 0.07);
  --soft-shadow: 0 8px 24px rgba(36, 39, 58, 0.055);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 74% 0%, rgba(217, 210, 255, 0.52), transparent 34%),
    linear-gradient(180deg, #f7f7fb 0%, #f4f6fa 42%, #f6f7fb 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  overflow-x: hidden;
}

.topbar {
  grid-column: 2;
  grid-row: 1;
  min-height: 188px;
  padding: 28px 40px 56px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.88) 0 8%, transparent 9% 100%),
    radial-gradient(circle at 84% 0%, transparent 0 18%, rgba(255, 255, 255, 0.35) 18.3% 18.8%, transparent 19% 100%),
    radial-gradient(circle at 76% 5%, transparent 0 28%, rgba(255, 255, 255, 0.25) 28.2% 28.7%, transparent 29% 100%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.82) 0%, rgba(239, 240, 255, 0.92) 52%, rgba(218, 219, 255, 0.86) 100%);
  background-size: cover;
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.topbar-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.45), transparent 26%),
    linear-gradient(135deg, #0b7b6d, #5b7ce8);
  box-shadow: var(--soft-shadow);
  font-size: 26px;
  font-weight: 950;
}

.eyebrow {
  margin: 0 0 4px;
  color: #8a8da0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.control-panel {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  display: block;
  overflow-y: auto;
}

.panel-section {
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.panel-section:first-child {
  padding-top: 0;
}

.panel-section.compact {
  padding-bottom: 0;
}

.control-panel .panel-section:last-child {
  border-bottom: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--blue));
  font-size: 22px;
  font-weight: 950;
}

.sidebar-brand strong,
.sidebar-brand small {
  display: block;
}

.sidebar-brand strong {
  font-size: 18px;
}

.sidebar-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

label,
.section-heading span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 143, 122, 0.14);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading.wide {
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-heading.wide p,
.time-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  margin-top: -34px;
  padding: 0 40px 42px;
  overflow-x: hidden;
  overflow-y: visible;
}

.tabs {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 22px 0 10px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  overflow: visible;
}

.tab {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px 10px 18px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  white-space: nowrap;
  text-align: left;
}

.tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.tab.active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 99px;
  background: var(--teal);
}

.view {
  display: none;
  min-width: 0;
}

.view.active {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ranking-intro,
.ranking-intro[hidden],
.ranking-summary,
.ranking-summary[hidden] {
  display: none !important;
}

.metric-card,
.analysis-panel,
.layer-card,
.opportunity-card,
.pipeline-step,
.insight-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.metric-card {
  min-height: 120px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
  margin-bottom: 14px;
}

.system-completion-panel {
  margin-bottom: 14px;
}

.system-completion-summary {
  display: grid;
  grid-template-columns: minmax(160px, 0.24fr) minmax(0, 1fr);
  gap: 12px;
}

.system-completion-score {
  background: linear-gradient(135deg, #ff2f5f, #4d7cff);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 18px;
}

.system-completion-score strong {
  font-size: 48px;
  line-height: 1;
}

.system-completion-score span {
  font-size: 18px;
  font-weight: 900;
}

.system-completion-score small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.system-completion-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.system-completion-item {
  background: #f8f8fb;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 14px;
}

.system-completion-item header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.system-completion-item header strong {
  color: #20222e;
  font-size: 16px;
}

.system-completion-item header span {
  background: #fff;
  border-radius: 999px;
  color: #ff2d55;
  font-size: 14px;
  font-weight: 950;
  min-width: 42px;
  padding: 6px 9px;
  text-align: center;
}

.system-completion-item p {
  color: #6f737c;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.system-completion-item small {
  color: #2d3038;
  font-weight: 800;
  line-height: 1.45;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
  gap: 14px;
}

.sample-opportunity-section,
.sample-opportunity-section[hidden] {
  display: none !important;
}

.analysis-panel {
  padding: 18px;
}

.dimension-scores {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.dimension-name {
  color: var(--ink);
  font-weight: 800;
}

.meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.24s ease;
}

.dimension-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.market-map {
  position: relative;
  min-height: 314px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(11, 143, 122, 0.1), transparent 42%),
    linear-gradient(180deg, transparent 0 49%, rgba(100, 112, 109, 0.25) 50%, transparent 51%),
    linear-gradient(90deg, transparent 0 49%, rgba(100, 112, 109, 0.25) 50%, transparent 51%),
    #f7faf9;
  overflow: hidden;
}

.market-map::before,
.market-map::after {
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-map::before {
  content: "供给成熟度";
  left: 12px;
  top: 12px;
}

.market-map::after {
  content: "需求强度";
  right: 12px;
  bottom: 10px;
}

.map-bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: var(--bubble-color);
  box-shadow: var(--shadow);
}

.map-bubble button {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
}

.map-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 5px);
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.opportunity-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.opportunity-card {
  width: 100%;
  padding: 14px;
  text-align: left;
  background: #fff;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.opportunity-card:hover,
.opportunity-card.active {
  border-color: var(--teal);
  box-shadow: 0 10px 28px rgba(24, 32, 31, 0.09);
  transform: translateY(-1px);
}

.opportunity-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.opportunity-card h3 {
  margin: 0 0 4px;
}

.opportunity-card p {
  margin: 0;
  color: var(--muted);
}

.score-pill {
  flex: 0 0 auto;
  min-width: 58px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 900;
  text-align: center;
}

.opportunity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
}

.tag.good {
  color: #0b5e43;
  background: #dcf3e7;
}

.tag.warn {
  color: #8a5a0c;
  background: #fbefd7;
}

.tag.risk {
  color: #8d2d2d;
  background: #f8dfdf;
}

.opportunity-detail {
  margin-top: 14px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.radial-score {
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background:
    radial-gradient(circle at center, #fff 0 54%, transparent 55%),
    conic-gradient(var(--teal) var(--score), var(--surface-2) 0);
  font-size: 24px;
  font-weight: 950;
}

.detail-hero p,
.detail-block p {
  color: var(--muted);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stat-box strong {
  font-size: 20px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.detail-block ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.layer-card {
  padding: 15px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layer-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.layer-index {
  color: var(--muted);
  font-weight: 900;
}

.layer-card p {
  margin: 0;
  color: var(--muted);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.source-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--muted);
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 700;
}

.data-audit-summary {
  display: grid;
  gap: 14px;
}

.data-audit-summary[hidden] {
  display: none !important;
}

.data-audit-actions .status-badge {
  margin-bottom: 0;
}

.audit-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.audit-toggle-button[aria-expanded="true"] {
  color: var(--teal-dark);
  background: #fff0f3;
}

.data-audit-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.data-audit-counts article,
.data-audit-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.data-audit-counts span,
.data-audit-grid h3,
.data-provenance-panel h3 {
  color: var(--muted);
  font-weight: 900;
}

.data-audit-counts strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

.data-audit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.data-audit-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.data-audit-grid li + li {
  margin-top: 6px;
}

.data-provenance-panel .data-audit-grid li {
  display: grid;
  gap: 3px;
}

.data-provenance-panel small {
  color: var(--muted-2);
  font-weight: 800;
}

.data-source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.data-source-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
}

.audit-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.time-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.segmented {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.segment {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
}

.segment.active {
  color: #fff;
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.chart-panel {
  padding: 10px;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.insight-card {
  padding: 14px;
}

.insight-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.insight-card strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.graph-panel {
  padding: 0;
  overflow: hidden;
}

#knowledgeGraph {
  display: block;
  width: 100%;
  height: 540px;
  background:
    linear-gradient(90deg, rgba(217, 226, 223, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(217, 226, 223, 0.55) 1px, transparent 1px);
  background-size: 34px 34px;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

.taxonomy-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.ranking-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ranking-toolbar select {
  max-width: 280px;
}

.ranking-group-native-select {
  display: none !important;
}

.ranking-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 100%;
  flex-wrap: wrap;
}

.searchable-select {
  position: relative;
  width: min(320px, 100%);
  max-width: 100%;
  min-width: 200px;
}

.searchable-select[hidden] {
  display: none !important;
}

.searchable-select-trigger {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dfe3ec;
  border-radius: 10px;
  padding: 0 10px;
  color: #20242f;
  background: #f5f6fa;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(29, 34, 47, 0.04);
}

.searchable-select-trigger span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-arrow {
  color: #333946;
  font-size: 14px;
}

.searchable-select-menu {
  position: static;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin-top: 5px;
  border: 1px solid #dde2ec;
  border-radius: 12px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 36, 50, 0.10);
}

.searchable-select-menu[hidden] {
  display: none !important;
}

.searchable-select-input {
  width: 100%;
  height: 34px;
  border: 1px solid #dfe3ec;
  border-radius: 9px;
  padding: 0 10px;
  color: #20242f;
  background: #f7f8fb;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  outline: none;
}

.searchable-select-input:focus {
  border-color: #ff2f5f;
  box-shadow: 0 0 0 3px rgba(255, 47, 95, 0.12);
}

.searchable-select-options {
  display: grid;
  gap: 2px;
  max-height: 190px;
  margin-top: 6px;
  overflow-y: auto;
  padding-right: 2px;
}

.searchable-select-option {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  color: #303542;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option.active {
  color: #ff2f5f;
  background: #fff0f4;
}

.searchable-select-empty {
  padding: 18px 12px;
  color: #777d8a;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.review-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 8px 10px;
  margin: -4px 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.review-status,
.review-status[hidden],
.country-gap-matrix .matrix-heading {
  display: none !important;
}

.review-status.running {
  color: var(--teal-dark);
  border-color: rgba(0, 119, 101, 0.35);
  background: rgba(0, 119, 101, 0.08);
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-3);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-size: 18px;
  font-weight: 950;
}

.ranking-main h3 {
  margin: 0 0 5px;
}

.ranking-main p {
  margin: 0;
  color: var(--muted);
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.decision-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  gap: 2px;
  margin-top: 8px;
}

.decision-stats span {
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.12;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.decision-stats strong {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.decision-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.decision-notes div {
  border-left: 3px solid var(--teal);
  padding: 2px 0 2px 10px;
}

.decision-notes span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 3px;
}

.decision-notes p {
  font-size: 13px;
  line-height: 1.45;
}

.ranking-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.operation-config-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.operation-config-form label {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.operation-config-form input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.ranking-score {
  min-width: 70px;
  border-radius: var(--radius);
  padding: 8px 10px;
  color: #fff;
  background: var(--blue);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.country-gap-matrix {
  display: grid;
  gap: 12px;
}

.matrix-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-3);
}

.matrix-heading h3 {
  margin: 0 0 4px;
}

.matrix-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.matrix-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
  border-collapse: collapse;
}

.country-gap-table {
  min-width: 1680px;
}

.country-gap-table .matrix-col-rank {
  width: 70px;
}

.country-gap-table .matrix-col-country {
  width: 170px;
}

.country-gap-table .matrix-col-industry {
  width: 180px;
}

.country-gap-table .matrix-col-demand_strength,
.country-gap-table .matrix-col-demand_supply_gap,
.country-gap-table .matrix-col-supply_shortage_score,
.country-gap-table .matrix-col-matrix_score {
  width: 100px;
}

.country-gap-table .matrix-col-local_supply_adequacy,
.country-gap-table .matrix-col-supply_repair_months {
  width: 132px;
}

.country-gap-table .matrix-col-investment {
  width: 220px;
  overflow-wrap: normal;
  word-break: keep-all;
}

.country-gap-table .matrix-col-judgment {
  width: 240px;
}

.country-gap-table .matrix-col-action {
  width: 76px;
}

.matrix-table th,
.matrix-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.country-gap-table .matrix-col-investment strong,
.country-gap-table .matrix-col-investment .matrix-sort-button span {
  white-space: nowrap;
}

.matrix-table th {
  color: var(--muted);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 950;
}

.matrix-sort-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}

.matrix-sort-button em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.matrix-sort-button.active {
  color: var(--teal-dark);
}

.matrix-sort-button.active em {
  color: var(--teal-dark);
}

.matrix-table td {
  font-size: 14px;
  font-weight: 850;
}

.matrix-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.matrix-table tbody tr:hover {
  background: rgba(0, 119, 101, 0.06);
}

.table-link {
  color: var(--teal-dark);
  font-weight: 950;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.operation-plan-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

body.modal-open {
  overflow: hidden;
}

.operation-table-card {
  max-width: 100%;
  min-width: 0;
}

.operation-table-card-wide {
  grid-column: 1 / -1;
}

.operation-table-card-compact .operation-table {
  min-width: 620px;
}

.operation-table-card-modal {
  display: grid;
  gap: 6px;
}

.operation-table-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.operation-table {
  width: 100%;
  min-width: 820px;
}

.operation-table th,
.operation-table td {
  padding: 7px 8px;
  line-height: 1.38;
}

.operation-table td {
  font-size: 12px;
  font-weight: 820;
}

.operation-table th {
  font-size: 12px;
}

.operation-table th:first-child,
.operation-table td:first-child {
  width: 96px;
}

.operation-glossary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--surface-3);
}

.operation-glossary-card h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.operation-glossary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operation-glossary-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.operation-glossary-preview span {
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.operation-modal[hidden] {
  display: none !important;
}

.operation-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.operation-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(24, 32, 31, 0.38);
  cursor: default;
}

.operation-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: auto;
}

.operation-modal-panel > header {
  position: sticky;
  top: -12px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: -12px -12px 0;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.operation-modal-panel h2 {
  margin: 0;
  font-size: 18px;
}

.operation-modal-panel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-close-button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  min-height: 34px;
  font-size: 18px;
  line-height: 1;
}

.basis-toggle {
  margin-top: 7px;
}

.basis-toggle summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.basis-toggle summary::-webkit-details-marker {
  display: none;
}

.basis-toggle summary::after {
  content: "展开";
  margin-left: 5px;
  color: var(--muted);
  font-size: 11px;
}

.basis-toggle[open] summary::after {
  content: "收起";
}

.basis-toggle ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.matrix-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.matrix-card-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.matrix-card-grid header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.matrix-card-grid header span,
.matrix-card-grid div span {
  color: var(--muted);
  font-weight: 900;
}

.matrix-card-grid header strong {
  border-radius: 8px;
  padding: 5px 8px;
  color: #fff;
  background: var(--blue);
}

.matrix-card-grid h4 {
  margin: 8px 0 5px;
}

.matrix-card-grid p {
  color: var(--muted);
  font-weight: 800;
}

.matrix-card-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.matrix-card-grid div span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-2);
  font-size: 12px;
}

.track-detail-shell {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.track-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface);
}

.track-hero h3 {
  margin: 7px 0 4px;
  font-size: 20px;
}

.track-hero p {
  margin: 0;
  color: var(--muted);
}

.track-hero > strong {
  display: grid;
  place-items: center;
  min-height: 64px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
  font-size: 26px;
  font-weight: 950;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 3px;
  align-items: stretch;
}

.detail-metric-grid article {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 6px;
  background: var(--surface);
}

.detail-metric-grid span,
.capability-table span,
.related-track-grid span,
.source-note {
  color: var(--muted);
  font-weight: 800;
}

.detail-metric-grid span {
  font-size: 10px;
  line-height: 1.12;
  white-space: nowrap;
}

.detail-metric-grid strong {
  display: block;
  margin-top: 1px;
  font-size: clamp(12px, 0.78vw, 14px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.country-industry-panel {
  display: grid;
  gap: 14px;
}

.currency-outlook-panel {
  display: grid;
  gap: 14px;
}

.history-india-panel {
  display: grid;
  gap: 14px;
}

.legal-compliance-panel {
  display: grid;
  gap: 14px;
}

.hightech-competition-panel {
  display: grid;
  gap: 14px;
}

.china-overseas-panel {
  display: grid;
  gap: 14px;
}

.china-overseas-panel .country-industry-grid {
  gap: 10px;
}

.china-overseas-panel .detail-list {
  max-height: 260px;
  min-height: 0;
  overflow: hidden;
  padding: 14px 16px;
}

.china-overseas-panel .detail-list h3 {
  margin-bottom: 8px;
}

.china-overseas-panel .detail-list ul {
  max-height: 196px;
  overflow-y: auto;
  padding-left: 18px;
}

.china-overseas-panel .detail-list li {
  line-height: 1.42;
  margin: 0 0 5px;
}

.currency-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.currency-metric-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.currency-metric-grid span {
  color: var(--muted);
  font-weight: 800;
}

.currency-metric-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.country-industry-grid,
.search-signal-grid {
  display: grid;
  gap: 10px;
}

.country-industry-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.search-signal-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 340px);
  align-items: start;
}

.search-signal-grid,
.keyword-cloud,
.recent-news-card {
  display: none !important;
}

.country-industry-grid article,
.search-signal-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-3);
}

.country-industry-grid h3,
.search-signal-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.country-industry-grid ul,
.validation-action-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.country-industry-grid li + li,
.validation-action-list li + li {
  margin-top: 6px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud span {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
}

.source-link-list {
  display: grid;
  gap: 8px;
}

.source-link-list a,
.source-link-list p {
  display: grid;
  gap: 3px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.source-link-list span {
  color: var(--muted);
  font-weight: 800;
}

.recent-news-card {
  max-width: 340px;
  justify-self: stretch;
}

.compact-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.compact-card-heading h3 {
  margin: 0;
}

.compact-card-heading span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.recent-news-card .source-link-list {
  gap: 6px;
}

.recent-news-card .source-link-list a,
.recent-news-card .source-link-list p {
  padding: 8px;
}

.recent-news-card .source-link-list strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.35;
}

.recent-news-card .source-link-list span {
  font-size: 12px;
}

.recent-news-details {
  margin-top: 8px;
}

.recent-news-details summary {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--teal-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.recent-news-details summary::-webkit-details-marker {
  display: none;
}

.recent-news-close {
  display: none;
}

.recent-news-details[open] .recent-news-open {
  display: none;
}

.recent-news-details[open] .recent-news-close {
  display: inline;
}

.recent-news-more {
  max-height: 260px;
  margin-top: 8px;
  overflow: auto;
}

.compact-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.pillar-outlook-panel {
  display: grid;
  gap: 14px;
}

.pillar-grid,
.industry-impact-grid {
  display: grid;
  gap: 10px;
}

.pillar-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pillar-card,
.industry-impact-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-3);
}

.pillar-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pillar-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.pillar-card header span,
.pillar-card p {
  color: var(--muted);
  font-weight: 800;
}

.pillar-card header > strong {
  white-space: nowrap;
  color: var(--teal-dark);
}

.sparkline {
  width: 100%;
  height: 82px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sparkline polyline {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.sparkline circle {
  fill: var(--blue);
}

.sparkline.empty {
  min-height: 82px;
}

.pillar-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pillar-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.pillar-metrics strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
}

.trend-up {
  color: var(--teal-dark) !important;
}

.trend-down {
  color: #a63b3b !important;
}

.trend-flat {
  color: var(--muted) !important;
}

.industry-impact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.industry-impact-grid strong {
  color: var(--ink);
}

.industry-impact-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.track-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

.track-detail-shell.ranking-detail-mode {
  gap: 24px;
}

.track-detail-summary-card {
  grid-template-columns: 74px minmax(0, 1fr) 116px;
  align-items: center;
  gap: 28px;
  border: 0;
  border-radius: 8px;
  padding: 28px 30px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(43, 47, 68, 0.055);
}

.track-detail-summary-card .rank-number {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.track-detail-summary-card .ranking-main {
  display: grid;
  gap: 12px;
}

.track-detail-summary-card .ranking-main h3 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.15;
}

.track-detail-summary-card .ranking-main p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.7;
}

.track-detail-summary-card .ranking-meta {
  gap: 9px;
}

.track-detail-summary-card .tag {
  padding: 8px 13px;
  font-size: clamp(13px, 1vw, 16px);
}

.track-detail-summary-card .ranking-score {
  min-width: 112px;
  min-height: 88px;
  border-radius: 18px;
  font-size: clamp(34px, 3vw, 48px);
}

.track-detail-summary-card .ranking-actions-row {
  margin-top: 2px;
}

.track-detail-summary-card .detail-link {
  width: fit-content;
  min-height: 40px;
  padding: 8px 16px;
  background: #fff0f3;
}

.track-detail-shell.ranking-detail-mode .analysis-panel {
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(43, 47, 68, 0.045);
}

.track-detail-shell.ranking-detail-mode .target-entry-panel,
.track-detail-shell.ranking-detail-mode .operation-plan-actions {
  border-top: 0;
}

.track-detail-shell.ranking-detail-mode .detail-metric-grid {
  gap: 10px;
}

.track-detail-shell.ranking-detail-mode .detail-metric-grid article {
  min-height: 76px;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f5f6fa !important;
}

.track-detail-shell.ranking-detail-mode .detail-metric-grid span {
  font-size: 13px;
  white-space: normal;
}

.track-detail-shell.ranking-detail-mode .detail-metric-grid strong {
  margin-top: 5px;
  font-size: clamp(17px, 1.35vw, 23px);
}

.remote-operation-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.remote-operation-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-3);
}

.remote-operation-metrics span,
.remote-operation-metrics strong {
  display: block;
}

.remote-operation-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.remote-operation-metrics strong {
  margin-top: 4px;
  font-size: 24px;
}

.remote-operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.remote-operation-grid .insight-block {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.insight-block {
  margin-top: 12px;
}

.insight-block h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.insight-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.insight-block li {
  margin: 6px 0;
}

.validation-plan,
.capability-table,
.related-track-grid {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.validation-plan div,
.capability-table div,
.related-track-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  background: var(--surface-3);
}

.validation-plan strong,
.validation-plan span,
.capability-table strong,
.capability-table span,
.related-track-grid strong,
.related-track-grid span {
  display: block;
}

.related-track-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.related-track-grid a {
  color: var(--ink);
  text-decoration: none;
}

.wiki-extract {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.65;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.wiki-toc {
  position: sticky;
  top: 12px;
  display: grid;
  max-height: 520px;
  overflow: auto;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-3);
}

.wiki-toc span {
  border-radius: 7px;
  padding: 6px 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.wiki-sections {
  display: grid;
  gap: 10px;
}

.wiki-sections article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-3);
}

.wiki-sections h3 {
  margin: 0 0 8px;
}

.wiki-sections p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.full-wiki-text {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
}

.full-wiki-text summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}

.full-wiki-text pre {
  max-height: 520px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
  font: 13px/1.65 var(--font);
}

.contact-resource-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.contact-resource-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-3);
}

.contact-resource-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.contact-resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-resource-grid header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.contact-resource-grid h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.contact-resource-grid p {
  color: var(--muted);
}

.contact-resource-grid span,
.contact-resource-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.contact-channel-list,
.contact-point-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.contact-channel-list span,
.contact-point-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.contact-point-list a strong,
.contact-point-list a span {
  display: block;
}

.contact-point-list a span {
  margin-top: 2px;
  color: var(--muted);
}

.contact-resource-grid details {
  margin-top: 10px;
}

.contact-resource-grid summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 900;
}

.capability-layout.three {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.user-match-panel {
  margin-bottom: 14px;
}

.user-match-ad-panel {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}

.user-match-ad-panel[hidden] {
  display: none !important;
}

.user-match-ad-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 22px 28px;
  border-radius: inherit;
  color: #fff;
  background: #252b3a;
  text-decoration: none;
  isolation: isolate;
}

.user-match-ad-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #252b3a 0%, #252b3a 56%, #ff2f5f 56%, #ff2f5f 100%);
  z-index: -2;
}

.user-match-ad-banner::after {
  content: "填写问卷";
  position: absolute;
  right: 28px;
  bottom: 18px;
  border-radius: 999px;
  padding: 9px 14px;
  color: #20222e;
  background: #fff;
  font-size: 13px;
  font-weight: 950;
  z-index: -1;
}

.user-match-ad-kicker,
.user-match-ad-banner em {
  border-radius: 999px;
  padding: 8px 12px;
  color: #20222e;
  background: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.user-match-ad-banner strong {
  display: block;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 950;
  line-height: 1.1;
}

.user-match-ad-banner small {
  display: block;
  grid-column: 2 / 3;
  margin-top: -8px;
  color: #eef1f7;
  font-size: 15px;
  font-weight: 850;
}

.user-match-ad-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(35, 39, 54, 0.12);
}

.user-match-ad-banner-button {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.user-questionnaire-view {
  display: grid;
  gap: 14px;
  padding-top: 36px;
}

.questionnaire-page-backbar {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.dark-back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff !important;
  background: #050505;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 43, 58, 0.12);
  -webkit-text-fill-color: #fff;
}

.dark-back-button span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #050505;
  background: #fff;
  font-size: 19px;
  line-height: 1;
}

.user-match-page-panel {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  .user-match-ad-banner {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 140px;
    padding: 18px;
  }

  .user-match-ad-banner::before {
    background: #252b3a;
  }

  .user-match-ad-banner::after {
    right: 18px;
    bottom: 18px;
  }

  .user-match-ad-banner small {
    grid-column: auto;
    margin-top: 0;
    padding-right: 110px;
  }
}

.user-questionnaire-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.user-questionnaire-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.user-questionnaire-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 900;
}

.user-questionnaire-grid input,
.user-questionnaire-grid select {
  width: 100%;
}

.questionnaire-range {
  grid-template-columns: 1fr minmax(90px, 1.3fr) 34px;
  align-items: center;
}

.questionnaire-range span {
  color: var(--muted);
}

.questionnaire-range input {
  min-height: auto;
  padding: 0;
  accent-color: var(--teal);
}

.questionnaire-range strong {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.user-questionnaire-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-match-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.user-match-card,
.user-match-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-3);
}

.user-match-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-match-card header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.user-match-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.user-match-card header strong {
  min-width: 48px;
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: var(--teal-dark);
  text-align: center;
}

.user-match-card p,
.user-match-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.capability-model,
.merchant-profile,
.gap-list,
.package-list,
.marketplace-list,
.completion-flow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.capability-row,
.profile-row,
.gap-card,
.package-card,
.provider-card,
.flow-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: var(--surface-3);
}

.capability-row header,
.profile-row header,
.gap-card header,
.package-card header,
.provider-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.capability-row small,
.profile-row small,
.gap-card small,
.package-card small,
.provider-card small {
  color: var(--muted);
  font-weight: 800;
}

.capability-bar {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: #dde8e5;
  overflow: hidden;
}

.capability-bar span {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--teal));
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.profile-row input {
  min-height: auto;
  padding: 0;
  accent-color: var(--teal);
}

.gap-card.critical {
  border-color: rgba(186, 61, 61, 0.35);
  background: #fff5f3;
}

.gap-card.moderate {
  border-color: rgba(189, 122, 23, 0.35);
  background: #fffaf0;
}

.gap-card p,
.package-card p,
.provider-card p,
.flow-step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.method-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.method-pill {
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff;
  background: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.method-pill.train {
  background: var(--blue);
}

.method-pill.tool {
  background: var(--green);
}

.method-pill.outsource {
  background: var(--amber);
}

.method-pill.partner {
  background: var(--violet);
}

.method-pill.operation {
  background: var(--red);
}

.package-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.provider-score {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 900;
}

.completion-flow {
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.flow-step {
  min-height: 118px;
}

.flow-step span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 900;
}

.classifier-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.classifier-form label {
  margin-bottom: 0;
}

.classifier-form label:nth-child(6) {
  grid-column: 1 / -1;
}

.gbod-cell {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-3);
}

.cell-id {
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--teal-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cell-path {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cell-path span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plain-summary,
.example-pill {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.support-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: var(--surface-3);
}

.support-grid strong,
.support-grid span {
  display: block;
}

.support-grid span {
  margin-top: 6px;
  color: var(--muted);
}

.scale-grid,
.taxonomy-grid,
.library-grid,
.routing-grid,
.table-grid,
.formula-grid {
  display: grid;
  gap: 14px;
}

.scale-grid {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin-top: 14px;
}

.scale-item,
.taxonomy-card,
.library-item,
.route-card,
.table-card,
.formula-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.scale-item {
  padding: 13px;
  background: var(--surface-3);
}

.scale-item span,
.taxonomy-card span,
.library-item span,
.route-card span,
.table-card span,
.formula-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scale-item strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.taxonomy-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.taxonomy-card {
  min-height: 198px;
  padding: 15px;
}

.taxonomy-card p,
.route-card p,
.table-card p,
.formula-card p,
.library-item p {
  color: var(--muted);
}

.schema-preview {
  margin-top: 12px;
  border-radius: var(--radius);
  padding: 10px;
  color: #f7faf9;
  background: #1e2a28;
  font-size: 12px;
  overflow: auto;
}

.library-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.library-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.library-item {
  padding: 13px;
  background: var(--surface-3);
}

.library-item strong {
  display: block;
  margin: 3px 0;
}

.routing-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  margin-bottom: 14px;
}

.route-card,
.table-card,
.formula-card {
  padding: 14px;
}

.table-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  margin-bottom: 14px;
}

.formula-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  margin-bottom: 14px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.pipeline-step {
  min-height: 180px;
  padding: 14px;
}

.pipeline-step .step-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 900;
}

.pipeline-step p {
  color: var(--muted);
}

.api-panel pre {
  margin: 12px 0 0;
  overflow: auto;
  border-radius: var(--radius);
  padding: 16px;
  color: #f7faf9;
  background: #1e2a28;
}

.weight-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.weight-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weight-control input {
  padding: 0;
  min-height: auto;
  accent-color: var(--teal);
}

.opportunity-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.form-grid {
  display: grid;
  grid-column: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.primary-button,
.ghost-button,
.text-button,
.icon-button {
  min-height: 38px;
  border-radius: var(--radius);
  font-weight: 850;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 8px 18px rgba(8, 114, 101, 0.18);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(8, 114, 101, 0.22);
}

.ghost-button {
  border: 1px solid rgba(90, 102, 146, 0.16);
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.workspace .ghost-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.text-button {
  min-height: auto;
  color: var(--teal-dark);
  background: transparent;
}

.icon-button {
  width: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--soft-shadow);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #fff;
  background: #1f3834;
  box-shadow: var(--shadow);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.confirm-review-modal {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 80;
}

.confirm-review-backdrop {
  background: rgba(23, 27, 38, 0.42);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
}

.confirm-review-panel {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(23, 27, 38, 0.25);
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding: 22px;
  position: relative;
  width: min(520px, calc(100vw - 36px));
}

.confirm-review-panel strong {
  color: #20222e;
  font-size: 22px;
  font-weight: 950;
}

.confirm-review-panel p {
  color: #616975;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.confirm-review-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.confirm-review-panel .primary-button,
.confirm-review-panel .ghost-button {
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
}

.empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

/* Creator-center inspired visual system. */
body {
  background:
    linear-gradient(90deg, rgba(240, 241, 245, 0.96) 0 286px, transparent 286px),
    linear-gradient(180deg, #f8f8fb 0%, #f7f7fa 100%);
  color: var(--ink);
  font-weight: 650;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: 286px;
  right: 0;
  height: 218px;
  background:
    radial-gradient(circle at 88% -18%, rgba(255, 255, 255, 0.76) 0 74px, transparent 75px),
    radial-gradient(circle at 82% -2%, transparent 0 132px, rgba(255, 255, 255, 0.36) 133px 135px, transparent 136px),
    radial-gradient(circle at 76% -12%, transparent 0 202px, rgba(255, 255, 255, 0.24) 203px 205px, transparent 206px),
    linear-gradient(112deg, #fbfbff 0%, #f4f1ff 58%, #dedcff 100%);
  pointer-events: none;
}

.app-shell {
  grid-template-columns: 286px minmax(0, 1fr);
  background: transparent;
}

.control-panel {
  padding: 34px 30px 28px;
  border-right: 0;
  background: #f0f1f5;
  box-shadow: inset -1px 0 0 rgba(218, 221, 229, 0.82);
}

.sidebar-brand {
  min-height: 76px;
  gap: 10px;
  padding-bottom: 28px;
  border-bottom-color: #dedfe6;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #050507;
  box-shadow: none;
  font-size: 24px;
}

.sidebar-brand strong {
  color: #08090d;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
}

.sidebar-brand small {
  display: inline-flex;
  width: max-content;
  margin-top: 5px;
  border-radius: 5px;
  padding: 2px 7px;
  color: #fff;
  background: #08090d;
  font-size: 12px;
  font-weight: 900;
}

.tabs {
  gap: 10px;
  margin: 26px 0 4px;
  padding-bottom: 26px;
  border-bottom-color: #dedfe6;
}

.tab {
  min-height: 46px;
  border-radius: 8px;
  padding: 10px 12px 10px 52px;
  color: #858894;
  background: transparent;
  font-size: 15px;
  font-weight: 900;
}

.tab::after {
  position: absolute;
  left: 3px;
  top: 50%;
  width: 28px;
  transform: translateY(-50%);
  color: #8c8f9a;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.tab:nth-child(1)::after { content: "⌁"; }
.tab:nth-child(2)::after { content: "▣"; }
.tab:nth-child(3)::after { content: "◇"; }
.tab:nth-child(4)::after { content: "▤"; }
.tab:nth-child(5)::after { content: "◫"; }
.tab:nth-child(6)::after { content: "⌁"; }
.tab:nth-child(7)::after { content: "◎"; }
.tab:nth-child(8)::after { content: "▧"; }

.tab:hover,
.tab.active {
  color: #252633;
  background: transparent;
  box-shadow: none;
}

.tab.active::before {
  left: auto;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: #8a8d98;
}

.panel-section {
  padding: 20px 0;
  border-bottom-color: #dedfe6;
}

.panel-section label,
.section-heading span:first-child {
  color: #7f828e;
  font-size: 14px;
  font-weight: 900;
}

input,
select {
  min-height: 48px;
  border-color: #e1e4eb;
  border-radius: 8px;
  padding: 10px 14px;
  color: #2b2d39;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 22, 35, 0.02);
}

input::placeholder {
  color: #a4a7b1;
  font-weight: 800;
}

input:focus,
select:focus {
  border-color: rgba(255, 47, 95, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 47, 95, 0.09);
}

.topbar {
  position: relative;
  min-height: 218px;
  padding: 32px 44px 62px;
  color: #242633;
  background:
    radial-gradient(circle at 90% -20%, rgba(255, 255, 255, 0.76) 0 78px, transparent 79px),
    radial-gradient(circle at 83% -4%, transparent 0 138px, rgba(255, 255, 255, 0.38) 139px 141px, transparent 142px),
    radial-gradient(circle at 76% -12%, transparent 0 214px, rgba(255, 255, 255, 0.22) 215px 217px, transparent 218px),
    linear-gradient(112deg, #fbfbff 0%, #f4f1ff 56%, #dfddff 100%);
}

.topbar-profile {
  align-items: center;
  gap: 22px;
  max-width: min(920px, calc(100vw - 420px));
}

.topbar-avatar {
  width: 76px;
  height: 76px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.55), transparent 26%),
    linear-gradient(135deg, #5b8aa2, #284b54 55%, #d9b351);
  box-shadow: 0 16px 36px rgba(48, 55, 82, 0.16);
}

.eyebrow {
  color: #8f92a0;
  font-size: 14px;
  font-weight: 850;
  text-transform: none;
}

h1 {
  color: #282a36;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 950;
}

.topbar-subtitle {
  color: #868997;
  font-size: 15px;
  font-weight: 750;
}

.topbar-actions {
  gap: 18px;
  align-items: flex-start;
}

.topbar-actions::before,
.topbar-actions::after {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(72, 76, 108, 0.08);
}

.topbar-actions::before {
  background:
    radial-gradient(circle at center, #9b9ea8 0 4px, transparent 5px),
    rgba(255, 255, 255, 0.62);
}

.topbar-actions::after {
  background:
    linear-gradient(#9b9ea8 0 0) center 12px / 15px 4px no-repeat,
    linear-gradient(#9b9ea8 0 0) center 18px / 15px 4px no-repeat,
    linear-gradient(#9b9ea8 0 0) center 24px / 15px 4px no-repeat,
    rgba(255, 255, 255, 0.62);
}

.icon-button,
.ghost-button {
  min-width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: #878a96;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 28px rgba(72, 76, 108, 0.08);
}

.ghost-button {
  border-radius: 8px;
  padding: 8px 13px;
}

.workspace {
  margin-top: -78px;
  padding: 0 44px 48px;
}

.view.active {
  animation: pageFade 0.18s ease-out;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.summary-grid {
  gap: 18px;
  margin-bottom: 22px;
}

.metric-card,
.analysis-panel,
.layer-card,
.opportunity-card,
.pipeline-step,
.insight-card,
.track-hero,
.matrix-heading,
.matrix-table-wrap,
.operation-modal-panel,
.operation-glossary-card,
.country-industry-grid article,
.search-signal-grid article,
.pillar-card,
.industry-impact-grid article,
.validation-plan div,
.capability-table div,
.related-track-grid a,
.wiki-toc,
.wiki-sections article,
.full-wiki-text,
.contact-resource-grid article,
.user-match-card,
.user-match-empty,
.capability-row,
.profile-row,
.gap-card,
.package-card,
.provider-card,
.flow-step,
.gbod-cell,
.plain-summary,
.example-pill,
.scale-item,
.taxonomy-card,
.library-item,
.route-card,
.table-card,
.formula-card,
.support-grid article,
.currency-metric-grid article,
.matrix-card-grid article {
  border-color: #e9edf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(43, 47, 68, 0.035);
}

.analysis-panel {
  padding: 28px 30px;
}

.section-heading {
  align-items: center;
}

.section-heading.wide {
  margin-bottom: 20px;
}

.section-heading h2,
.time-toolbar h2 {
  color: #252734;
  font-size: 21px;
  font-weight: 950;
}

.section-heading.wide p,
.time-toolbar p,
.analysis-panel p,
.ranking-main p,
.track-hero p,
.detail-hero p,
.detail-block p {
  color: #858895;
  font-weight: 750;
}

.metric-card {
  min-height: 108px;
  padding: 18px 20px;
  border: 0;
  overflow: hidden;
  position: relative;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -18px;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(28deg);
}

.metric-card:nth-child(4n + 1) {
  background: linear-gradient(112deg, #fff2ef 0%, #fff8f5 100%);
}

.metric-card:nth-child(4n + 2) {
  background: linear-gradient(112deg, #eef7ff 0%, #f8fcff 100%);
}

.metric-card:nth-child(4n + 3) {
  background: linear-gradient(112deg, #f1edff 0%, #fbf9ff 100%);
}

.metric-card:nth-child(4n + 4) {
  background: linear-gradient(112deg, #fff6d6 0%, #fffdf4 100%);
}

.metric-card span,
.metric-card small {
  color: #868997;
  font-weight: 850;
}

.metric-card strong {
  color: #20222e;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 950;
}

.dashboard-grid,
.split-grid,
.taxonomy-layout,
.capability-layout,
.library-grid {
  gap: 24px;
}

.dashboard-grid {
  grid-template-columns: minmax(460px, 1fr) minmax(420px, 0.92fr);
}

.user-match-panel,
.ranking-toolbar,
.time-toolbar,
.section-heading.wide,
.track-detail-shell > .analysis-panel {
  border-radius: 8px;
}

.dimension-scores,
.capability-model,
.merchant-profile,
.gap-list,
.package-list,
.marketplace-list,
.completion-flow,
.library-list,
.validation-plan,
.capability-table,
.related-track-grid,
.contact-resource-grid {
  gap: 14px;
}

.meter,
.capability-bar {
  height: 8px;
  background: #edf0f5;
}

.meter-fill,
.capability-bar span,
.sparkline polyline {
  background: linear-gradient(90deg, #ff2f5f, #4d7cff);
  stroke: #4d7cff;
}

.status-badge,
.tag,
.source-chip,
.cell-path span,
.compact-card-heading span,
.basis-toggle summary,
.legend-item,
.contact-channel-list span,
.contact-point-list a,
.method-pill {
  border-color: #edf0f5;
  color: #858895;
  background: #f5f6fa;
  box-shadow: none;
}

.tag.good {
  color: #0b7358;
  background: #e9fbf4;
}

.tag.warn {
  color: #9b6a07;
  background: #fff3d9;
}

.tag.risk {
  color: #d72951;
  background: #fff0f3;
}

.primary-button {
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff2f5f, #ff6a7d);
  box-shadow: 0 12px 28px rgba(255, 47, 95, 0.20);
}

.primary-button:hover {
  box-shadow: 0 16px 36px rgba(255, 47, 95, 0.24);
}

.text-button {
  color: #ff2f5f;
  font-weight: 950;
}

.segmented {
  gap: 12px;
}

.segment {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  color: #818490;
  background: #f1f2f6;
  font-weight: 900;
}

.segment.active {
  color: #ff2f5f;
  background: #fff;
  box-shadow: inset 0 -3px 0 #ff2f5f;
}

.ranking-toolbar {
  border: 0;
  padding: 0;
  background: transparent;
}

.ranking-actions select,
.ranking-toolbar select {
  background: #f5f6fa;
}

.ranking-list {
  gap: 16px;
}

.ranking-card {
  grid-template-columns: 44px minmax(0, 1fr) 78px;
  gap: 20px;
  border: 0;
  border-radius: 8px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(43, 47, 68, 0.04);
}

.ranking-card:nth-child(4n + 1) .ranking-score,
.ranking-card:nth-child(4n + 1) .rank-number {
  background: linear-gradient(135deg, #ff2f5f, #ff7b86);
}

.ranking-card:nth-child(4n + 2) .ranking-score,
.ranking-card:nth-child(4n + 2) .rank-number {
  background: linear-gradient(135deg, #2f8dff, #63c8ff);
}

.ranking-card:nth-child(4n + 3) .ranking-score,
.ranking-card:nth-child(4n + 3) .rank-number {
  background: linear-gradient(135deg, #7a63ff, #a98fff);
}

.ranking-card:nth-child(4n + 4) .ranking-score,
.ranking-card:nth-child(4n + 4) .rank-number {
  background: linear-gradient(135deg, #ffc83d, #ffdf78);
  color: #2a2731;
}

.rank-number {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

.ranking-score {
  min-width: 66px;
  border-radius: 8px;
  padding: 8px;
  font-size: 24px;
}

.ranking-main h3 {
  color: #20222e;
  font-size: 18px;
  font-weight: 950;
}

.ranking-meta {
  gap: 8px;
}

.decision-stats {
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}

.decision-stats span {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7f8fb;
  font-size: 11px;
}

.decision-stats strong {
  color: #20222e;
  font-size: 15px;
}

.decision-notes div {
  border-left-color: #ff2f5f;
}

.market-map,
#knowledgeGraph,
.sparkline,
.wiki-toc,
.matrix-table-wrap {
  border-color: #eef1f5;
  background-color: #fbfbfd;
}

.market-map {
  background:
    linear-gradient(90deg, rgba(255, 47, 95, 0.08), transparent 45%),
    linear-gradient(180deg, transparent 0 49%, rgba(167, 171, 184, 0.22) 50%, transparent 51%),
    linear-gradient(90deg, transparent 0 49%, rgba(167, 171, 184, 0.22) 50%, transparent 51%),
    #fbfbfd;
}

.map-bubble {
  box-shadow: 0 14px 32px rgba(43, 47, 68, 0.14);
}

.matrix-table-wrap {
  box-shadow: 0 10px 30px rgba(43, 47, 68, 0.035);
}

.matrix-table th {
  color: #858895;
  background: #f5f6fa;
}

.matrix-table td {
  color: #252734;
}

.matrix-table tbody tr:hover {
  background: #fff7fa;
}

.matrix-sort-button.active,
.matrix-sort-button.active em,
.full-wiki-text summary,
.recent-news-details summary,
.contact-resource-grid summary,
.basis-toggle summary,
.matrix-card-grid header span,
.matrix-card-grid div span {
  color: #ff2f5f;
}

.track-hero {
  grid-template-columns: minmax(0, 1fr) 86px;
  padding: 28px 30px;
  background:
    linear-gradient(112deg, #fff 0%, #fff 62%, #f5f2ff 100%);
}

.track-hero > strong {
  min-height: 78px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4d7cff, #70c8ff);
  font-size: 30px;
}

.track-hero h3 {
  color: #20222e;
  font-size: 28px;
  font-weight: 950;
}

.track-detail-shell.is-country-themed {
  --country-primary: var(--teal);
  --country-secondary: var(--blue);
  --country-accent: #fff;
  --country-on-primary: #fff;
}

.track-detail-shell.is-country-themed .text-button,
.track-detail-shell.is-country-themed .matrix-sort-button.active,
.track-detail-shell.is-country-themed .hero-source-link {
  color: var(--country-primary);
}

.track-detail-shell.is-country-themed .analysis-panel {
  border-top: 3px solid color-mix(in srgb, var(--country-primary) 42%, #ffffff);
}

.track-detail-shell.is-country-themed .detail-metric-grid article {
  border-top: 3px solid color-mix(in srgb, var(--country-secondary) 32%, #ffffff);
}

.track-detail-shell.is-country-themed .detail-metric-grid article strong {
  color: var(--country-primary);
}

.track-hero.country-themed-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 96px;
  min-height: 230px;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--country-secondary) 28%, transparent), transparent 30%),
    linear-gradient(118deg, color-mix(in srgb, var(--country-primary) 10%, #ffffff) 0%, #ffffff 48%, color-mix(in srgb, var(--country-secondary) 16%, #ffffff) 100%);
  box-shadow: 0 18px 44px rgba(36, 39, 58, 0.07);
}

.track-hero.country-themed-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -42% 48%;
  height: 72%;
  z-index: -1;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--country-primary) 72%, transparent), transparent 62%),
    linear-gradient(45deg, transparent 18%, color-mix(in srgb, var(--country-accent) 74%, transparent) 18% 26%, transparent 26%);
  opacity: 0.58;
  transform: skewX(-12deg);
}

.track-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  opacity: 0.86;
  filter: saturate(1.04);
}

.track-hero-media:not([style*="url"]) {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--country-primary) 18%, #ffffff), color-mix(in srgb, var(--country-secondary) 20%, #ffffff));
}

.track-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flag-color-strip {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.flag-color-strip span {
  width: 42px;
  height: 8px;
  border: 1px solid rgba(32, 34, 46, 0.08);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(32, 34, 46, 0.08);
}

.track-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.track-hero-meta .status-badge {
  color: var(--country-primary);
  background: color-mix(in srgb, var(--country-primary) 10%, #ffffff);
}

.hero-source-link {
  text-decoration: none;
  font-weight: 950;
}

.track-hero.country-themed-hero > strong {
  position: relative;
  z-index: 1;
  width: 86px;
  min-height: 86px;
  margin: 30px;
  align-self: center;
  border: 1px solid color-mix(in srgb, var(--country-accent) 55%, transparent);
  color: var(--country-on-primary);
  background: linear-gradient(135deg, var(--country-primary), var(--country-secondary));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--country-primary) 22%, transparent);
}

.target-entry-panel .section-heading {
  gap: 18px;
}

.target-workbench-shell {
  display: grid;
  gap: 22px;
}

.target-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 18px 42px rgba(21, 26, 35, 0.06);
}

.target-hero-panel h3 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}

.target-hero-panel p {
  max-width: 980px;
  color: #70737c;
  font-size: 18px;
  line-height: 1.75;
}

.target-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.target-hero-metrics article {
  min-height: 96px;
}

.target-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.target-action-button {
  border: 0;
  border-radius: 12px;
  background: #f7f7fa;
  color: #252832;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.target-action-button strong {
  font-size: 17px;
}

.target-action-button span {
  color: #858891;
  font-size: 13px;
  line-height: 1.4;
}

.target-action-button:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 12px 24px rgba(21, 26, 35, 0.08);
  transform: translateY(-1px);
}

.target-action-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.operation-autopilot-panel {
  display: grid;
  gap: 16px;
}

.ai-title-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ai-title-heading {
  margin: 0;
}

.ai-title-button {
  align-items: center;
  background: #fff;
  border: 1px solid #e8ebf2;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  padding: 4px 8px 4px 12px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ai-title-block.h2 .ai-title-button,
.ai-title-block.h3 .ai-title-button {
  border-radius: 14px;
  padding: 6px 10px 6px 12px;
}

.ai-title-button:hover:not(:disabled),
.ai-title-button:focus-visible {
  background: #f1ffe8;
  border-color: rgba(104, 184, 42, 0.38);
  box-shadow: 0 10px 22px rgba(104, 184, 42, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.ai-title-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ai-title-button > span {
  overflow-wrap: anywhere;
}

.ai-title-button > em {
  background: #68b82a;
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.ai-title-insight {
  background: #fff;
  border: 1px solid #eef0f5;
  border-left: 4px solid #ff2d55;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(21, 26, 35, 0.06);
  color: #20222e;
  display: grid;
  gap: 10px;
  margin: 2px 0 6px;
  padding: 12px;
}

.ai-title-insight.error {
  border-left-color: #ffb020;
}

.ai-title-insight strong {
  color: #20222e;
  font-size: 13px;
}

.ai-title-insight p,
.ai-title-insight li,
.ai-title-insight footer {
  color: #68707b;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.ai-title-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-title-insight article {
  background: #f8f8fb;
  border-radius: 10px;
  display: grid;
  gap: 7px;
  padding: 10px;
}

.ai-title-insight ol,
.ai-title-insight ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.ai-title-insight footer {
  background: #fff7e8;
  border-radius: 10px;
  color: #20222e;
  font-weight: 800;
  padding: 9px 10px;
}

.ai-title-action-console {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.ai-title-action-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.ai-title-action-heading span {
  color: #747982;
  font-size: 12px;
}

.ai-title-action-record {
  background: #fff;
  border: 1px solid #eef0f5;
  border-left: 4px solid #42a5f5;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 9px;
}

.ai-title-action-record header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.ai-title-action-record header b {
  background: #f2f4f8;
  border-radius: 999px;
  color: #20222e;
  font-size: 11px;
  padding: 5px 7px;
}

.ai-title-advisor-result {
  background: #f8f8fb;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.ai-title-advisor-result small {
  color: #747982;
  font-size: 11px;
  line-height: 1.45;
}

.ai-title-action-form {
  display: grid;
  gap: 9px;
}

.ai-title-action-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-title-action-fields label {
  display: grid;
  gap: 5px;
}

.ai-title-action-fields label.wide {
  grid-column: 1 / -1;
}

.ai-title-action-fields label span {
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
}

.ai-title-action-fields input,
.ai-title-action-fields select,
.ai-title-action-fields textarea {
  background: #fff;
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  color: #20222e;
  font: inherit;
  font-size: 12px;
  padding: 8px 9px;
  resize: vertical;
}

.ai-title-action-fields select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8b9099 50%), linear-gradient(135deg, #8b9099 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.ai-title-dispatch-status {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ai-title-dispatch-status div {
  background: #f6fbf4;
  border: 1px solid #d8efce;
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 8px;
}

.ai-title-dispatch-status strong {
  color: #256f18;
  font-size: 12px;
}

.ai-title-dispatch-status span,
.ai-title-dispatch-status small {
  color: #606771;
  font-size: 11px;
  line-height: 1.4;
}

.ai-title-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.title-action-review-submit,
.operation-action-backfill-submit {
  background: #ff2f5f;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(255, 47, 95, 0.22);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  min-height: 48px;
  min-width: 210px;
  padding: 0 22px;
}

.title-action-review-submit:hover,
.operation-action-backfill-submit:hover {
  background: #f52255;
  box-shadow: 0 18px 34px rgba(255, 47, 95, 0.28);
}

.title-action-review-submit:disabled,
.operation-action-backfill-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.target-task-center-page {
  display: grid;
  gap: 18px;
}

.target-task-center-back {
  align-items: center;
  background: #050505;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  justify-self: start;
  min-height: 46px;
  padding: 0 18px 0 10px;
  -webkit-text-fill-color: #fff;
}

.target-task-center-back span {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #050505;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.target-task-center-back strong {
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
  -webkit-text-fill-color: #fff;
}

.target-task-center-header {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
}

.target-task-center-kicker {
  background: #f3f5f9;
  border-radius: 999px;
  color: #4f5662;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  padding: 8px 12px;
}

.target-task-center-header h2 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.target-task-center-header p {
  color: #666d78;
  font-size: 18px;
  line-height: 1.7;
  margin: 12px 0 0;
}

.target-task-center-meta {
  display: grid;
  gap: 10px;
}

.target-task-center-meta span,
.task-center-assignment-intro {
  background: #f7f8fb;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  color: #333944;
  font-weight: 800;
  padding: 12px 14px;
}

.task-center-assignment-form {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  padding: 18px;
}

.task-center-assignment-intro {
  display: grid;
  gap: 4px;
}

.task-center-assignment-intro strong {
  font-size: 18px;
}

.task-center-assignment-intro span {
  color: #666d78;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.task-center-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.system-consult-menu {
  background: #fff;
  border: 1px solid #d8eecf;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(31, 45, 28, 0.18);
  display: grid;
  gap: 8px;
  max-width: 280px;
  padding: 10px;
  position: fixed;
  z-index: 1000;
}

.system-consult-menu button {
  background: #68b82a;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 9px 14px;
  text-align: left;
}

.system-consult-menu button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.system-consult-menu small {
  color: #646a73;
  font-size: 12px;
  line-height: 1.45;
}

.system-consultation-page {
  display: grid;
  gap: 14px;
}

.system-consultation-head,
.system-consultation-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.system-consultation-source,
.system-consultation-prompt,
.system-consultation-answer,
.system-consultation-list {
  background: #fff;
  border: 1px solid #e8ebf2;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.system-consultation-source span,
.system-consultation-prompt span,
.system-consultation-answer strong,
.system-consultation-list strong {
  color: #20222e;
  font-size: 14px;
  font-weight: 900;
}

.system-consultation-source p,
.system-consultation-prompt p,
.system-consultation-answer p {
  color: #646a73;
  line-height: 1.65;
  margin: 0;
}

.system-consultation-prompt {
  background: #f1ffe8;
  border-color: rgba(104, 184, 42, 0.32);
}

.system-consultation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-consultation-list ul {
  color: #646a73;
  display: grid;
  gap: 7px;
  line-height: 1.55;
  margin: 0;
  padding-left: 18px;
}

.system-consultation-meta {
  justify-content: flex-start;
}

.system-consultation-meta span {
  background: #f7f8fb;
  border-radius: 999px;
  color: #646a73;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.operation-autopilot-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.operation-autopilot-stats article {
  background: #f7f8fb;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px;
}

.operation-autopilot-stats span {
  color: #747982;
  font-size: 13px;
  font-weight: 800;
}

.operation-autopilot-stats strong {
  color: #20222e;
  font-size: 28px;
  line-height: 1;
}

.operation-autopilot-notice {
  background: #fff5f7;
  border-radius: 12px;
  color: #676c75;
  font-weight: 700;
  margin: 0;
  padding: 12px 14px;
}

.operation-user-batches {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.operation-user-batches-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.operation-user-batches-head strong {
  color: #20222e;
  font-size: 16px;
}

.operation-user-batches-head p {
  color: #6d737c;
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.operation-user-batches-head span {
  background: #ff2d55;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
  white-space: nowrap;
}

.operation-user-batch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.operation-user-batch-grid article {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 10px;
}

.operation-user-batch-grid article.active {
  background: #fff7f9;
  border-color: #ffb8c7;
  box-shadow: 0 10px 22px rgba(255, 45, 85, 0.08);
}

.operation-user-batch-grid article.done {
  background: #f4fbf8;
  border-color: #d8f2e7;
}

.operation-user-batch-grid strong {
  color: #20222e;
  font-size: 13px;
}

.operation-user-batch-grid span,
.operation-user-batch-grid small {
  color: #747982;
  font-size: 11px;
  line-height: 1.35;
}

.operation-profit-command {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.operation-profit-command-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.operation-profit-command-head strong {
  color: #20222e;
  font-size: 18px;
}

.operation-profit-command-head p,
.operation-profit-formula {
  color: #646a73;
  font-size: 13px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.operation-profit-command-head span {
  background: #ff2d55;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}

.operation-profit-formula {
  background: #fff7e8;
  border-radius: 12px;
  color: #20222e;
  font-weight: 800;
  margin: 0;
  padding: 10px 12px;
}

.operation-profit-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.operation-profit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.operation-profit-grid article {
  background: #f8f8fb;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.operation-profit-grid article > strong {
  color: #20222e;
  font-size: 14px;
}

.operation-profit-grid ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.operation-profit-grid li {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 9px;
}

.operation-profit-grid span,
.operation-profit-mandates strong {
  color: #20222e;
  font-size: 13px;
  font-weight: 900;
}

.operation-profit-grid small,
.operation-profit-grid em,
.operation-profit-mandates span,
.operation-profit-mandates small,
.operation-profit-mandates em {
  color: #747982;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.operation-profit-mandates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.operation-profit-mandates button {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 150px;
  padding: 11px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.operation-profit-mandates button:hover,
.operation-profit-mandates button:focus-visible,
.operation-autopilot-module-states button:hover,
.operation-autopilot-module-states button:focus-visible {
  border-color: rgba(255, 45, 85, 0.34);
  box-shadow: 0 12px 26px rgba(255, 45, 85, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.operation-profit-mandates em {
  border-top: 1px solid #edf0f5;
  color: #ff2d55;
  font-weight: 900;
  padding-top: 6px;
}

.operation-autopilot-cycles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.operation-autopilot-cycles article {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 13px;
}

.operation-autopilot-cycles article.done {
  background: #f4fbf8;
  border-color: #d8f2e7;
}

.operation-autopilot-cycles article.ready {
  background: #fff8ea;
  border-color: #ffe7ad;
}

.operation-autopilot-cycles span {
  background: #fff;
  border-radius: 999px;
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 5px 8px;
}

.operation-autopilot-cycles strong,
.operation-autopilot-module-states strong {
  color: #20222e;
  font-size: 14px;
}

.operation-autopilot-cycles small {
  color: #747982;
  font-size: 12px;
  line-height: 1.45;
}

.operation-autopilot-board {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.operation-autopilot-board-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.operation-autopilot-board-head strong {
  color: #20222e;
  font-size: 17px;
}

.operation-autopilot-board-head p {
  color: #6d737c;
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.operation-autopilot-board-head span {
  background: #ff2d55;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}

.operation-autopilot-board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.operation-autopilot-lane {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 11px;
}

.operation-autopilot-lane.research_work_orders {
  background: #f4fbff;
  border-color: #d8efff;
}

.operation-autopilot-lane.logic_decisions {
  background: #fffaf0;
  border-color: #ffe9bd;
}

.operation-autopilot-lane.handoff_queue {
  background: #f4fbf8;
  border-color: #d8f2e7;
}

.operation-autopilot-lane.supervision_queue {
  background: #f7f5ff;
  border-color: #e6defd;
}

.operation-autopilot-lane header {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.operation-autopilot-lane header strong {
  color: #20222e;
  font-size: 14px;
}

.operation-autopilot-lane header small {
  color: #747982;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}

.operation-autopilot-lane header span {
  background: #fff;
  border-radius: 999px;
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.operation-autopilot-lane > div {
  display: grid;
  gap: 8px;
}

.operation-autopilot-lane > div > p {
  color: #747982;
  font-size: 12px;
  margin: 0;
}

.operation-autopilot-run-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 26, 35, 0.05);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 9px;
}

.operation-autopilot-run-card small,
.operation-autopilot-run-card p,
.operation-autopilot-run-card em,
.operation-autopilot-run-card span,
.operation-autopilot-run-card b {
  color: #747982;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  margin: 0;
}

.operation-autopilot-run-card strong {
  color: #20222e;
  font-size: 13px;
  line-height: 1.35;
}

.operation-autopilot-run-card em,
.operation-autopilot-run-card span,
.operation-autopilot-run-card b {
  border-top: 1px solid rgba(21, 26, 35, 0.06);
  padding-top: 5px;
}

.operation-autopilot-run-card b {
  color: #ff2d55;
  font-weight: 900;
}

.operation-autopilot-module-states {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.operation-autopilot-module-states button {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 10px;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.operation-autopilot-module-states span {
  color: #ff2d55;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.operation-autopilot-module-states small {
  color: #747982;
  font-size: 11px;
  line-height: 1.35;
}

.operation-autopilot-module-states em {
  color: #ff2d55;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.operation-autopilot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.operation-autopilot-queue {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.operation-autopilot-queue.user {
  background: #fff7f9;
  border-color: #ffd8e0;
}

.operation-autopilot-queue.research {
  background: #f4fbff;
  border-color: #d8efff;
}

.operation-autopilot-queue.logic {
  background: #fffaf0;
  border-color: #ffe9bd;
}

.operation-autopilot-queue.system {
  background: #f4fbf8;
  border-color: #d8f2e7;
}

.operation-autopilot-queue.review {
  background: #f7f5ff;
  border-color: #e6defd;
}

.operation-autopilot-queue header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.operation-autopilot-queue header strong {
  color: #20222e;
  font-size: 16px;
}

.operation-autopilot-queue header span {
  background: #fff;
  border-radius: 999px;
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.operation-autopilot-queue > div {
  display: grid;
  gap: 10px;
}

.operation-autopilot-queue section {
  background: rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.operation-autopilot-queue small,
.operation-autopilot-queue p,
.operation-autopilot-queue em {
  color: #747982;
  font-size: 12px;
  line-height: 1.45;
}

.operation-autopilot-queue strong {
  color: #20222e;
  font-size: 14px;
}

.operation-autopilot-queue p {
  margin: 0;
}

.operation-autopilot-queue em {
  border-top: 1px solid rgba(21, 26, 35, 0.06);
  font-style: normal;
  padding-top: 6px;
}

.operation-autopilot-focus {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.operation-autopilot-focus strong {
  color: #20222e;
  font-size: 15px;
}

.operation-autopilot-focus div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operation-autopilot-focus span {
  background: #fff;
  border-radius: 999px;
  color: #3b3f48;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.operation-autopilot-input-panel {
  display: grid;
  gap: 12px;
}

.operation-autopilot-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.operation-autopilot-form {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(21, 26, 35, 0.04);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.operation-autopilot-form.submitted {
  border-color: #d8f2e7;
}

.operation-autopilot-form header {
  display: grid;
  gap: 6px;
}

.operation-autopilot-form header span {
  background: #fff0f3;
  border-radius: 999px;
  color: #ff2d55;
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 5px 8px;
}

.operation-autopilot-form.submitted header span {
  background: #e7fbf3;
  color: #14765d;
}

.operation-autopilot-form header strong {
  color: #20222e;
  font-size: 15px;
  line-height: 1.35;
}

.operation-autopilot-form header small,
.operation-autopilot-form p {
  color: #747982;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.operation-autopilot-form label {
  display: grid;
  gap: 6px;
}

.operation-autopilot-form label span {
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
}

.operation-autopilot-form input,
.operation-autopilot-form textarea {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  color: #20222e;
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
  resize: vertical;
}

.operation-control-center {
  display: grid;
  gap: 14px;
}

.operation-control-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.operation-control-stats article {
  background: #f7f8fb;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 12px;
}

.operation-control-stats article.focus {
  background: #f1ffe8;
  border-color: rgba(104, 184, 42, 0.35);
}

.operation-control-stats article.warning {
  background: #fff7e8;
  border-color: #ffe1ad;
}

.operation-control-stats article.danger {
  background: #fff0f3;
  border-color: #ffc7d2;
}

.operation-control-stats article.ok {
  background: #f4fbf8;
  border-color: #d8f2e7;
}

.operation-control-stats span,
.operation-control-stats small {
  color: #747982;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.operation-control-stats strong {
  color: #20222e;
  font-size: 24px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.operation-control-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.operation-control-distribution,
.operation-control-list {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 12px;
}

.operation-control-distribution strong,
.operation-control-list strong {
  color: #20222e;
  font-size: 14px;
  font-weight: 900;
}

.operation-control-distribution > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.operation-control-distribution span {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid #eef0f5;
  border-radius: 999px;
  color: #747982;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  padding: 6px 8px;
}

.operation-control-distribution span.active {
  background: #f1ffe8;
  border-color: rgba(104, 184, 42, 0.35);
  color: #20222e;
}

.operation-control-distribution b {
  color: #20222e;
  font-size: 12px;
}

.operation-control-distribution small,
.operation-control-list small {
  color: #747982;
  font-size: 12px;
  line-height: 1.4;
}

.operation-control-list ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.operation-control-list li {
  background: #f8f8fb;
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 8px;
}

.operation-control-list span {
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
}

.operation-control-notice {
  background: #fff0f3;
  border-radius: 12px;
  color: #626873;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
  padding: 12px 14px;
}

.operation-governance-fields {
  background: #f8fff4;
  border: 1px solid rgba(104, 184, 42, 0.22);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.operation-governance-head {
  display: grid;
  gap: 4px;
}

.operation-governance-head strong {
  color: #20222e;
  font-size: 13px;
  font-weight: 900;
}

.operation-governance-head span {
  color: #69717c;
  font-size: 12px;
  line-height: 1.4;
}

.operation-governance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.operation-governance-grid label,
.operation-metric-options label {
  display: grid;
  gap: 5px;
}

.operation-governance-grid label span {
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
}

.operation-governance-grid select,
.operation-governance-grid input {
  appearance: none;
  background: #fff;
  border: 1px solid #dcebd4;
  border-radius: 10px;
  color: #20222e;
  font: inherit;
  font-size: 12px;
  padding: 9px 10px;
}

.operation-metric-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.operation-metric-options label {
  align-items: center;
  background: #fff;
  border: 1px solid #dcebd4;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  padding: 7px 9px;
}

.operation-metric-options input {
  accent-color: #68b82a;
}

.operation-metric-options span {
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
}

.operation-action-backfill-panel {
  margin-top: 10px;
}

.operation-node-work-controls {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.operation-node-action-grid {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-node-action-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operation-node-action-grid--three > .operation-action-backfill-panel {
  margin-top: 0;
}

.operation-node-title-action-panel {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  padding: 8px;
}

.operation-node-title-action-panel summary {
  margin-top: 0;
}

.operation-assignment-panel summary {
  background: #eef6ff;
  border-color: #cfe4ff;
}

.operation-assignment-panel summary::before {
  background: #2f80ed;
}

.operation-assignment-panel summary em {
  color: #2f80ed;
}

.operation-assignment-panel[open] summary {
  background: #2f80ed;
  border-color: #2f80ed;
}

.operation-assignment-panel[open] summary::before {
  color: #2f80ed;
}

.operation-outsourcing-panel summary {
  background: #fff7e8;
  border-color: #ffe1ad;
}

.operation-outsourcing-panel summary::before {
  background: #f28c28;
}

.operation-outsourcing-panel summary em {
  color: #f28c28;
}

.operation-outsourcing-panel[open] summary {
  background: #f28c28;
  border-color: #f28c28;
}

.operation-outsourcing-panel[open] summary::before {
  color: #f28c28;
}

.operation-node-title-action-form {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  margin-top: 8px;
  padding: 10px;
}

.operation-task-center-entry {
  align-content: start;
  background: #fff8fa;
  border-color: #ffd2dc;
  gap: 10px;
  padding: 12px;
}

.operation-task-center-button {
  align-items: center;
  background: #fff0f3;
  border: 1px solid #ffd0db;
  border-radius: 999px;
  color: #171a22;
  cursor: pointer;
  display: inline-flex;
  gap: 12px;
  justify-content: flex-start;
  justify-self: start;
  min-height: 52px;
  padding: 8px 18px 8px 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.operation-task-center-button:hover {
  border-color: #ff2f5f;
  box-shadow: 0 12px 24px rgba(255, 47, 95, 0.16);
  transform: translateY(-1px);
}

.operation-task-center-button strong {
  color: #171a22;
  font-size: 15px;
  font-weight: 900;
}

.operation-task-center-button em {
  background: #fff;
  border-radius: 999px;
  color: #171a22;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  padding: 7px 12px;
}

.operation-task-center-plus {
  align-items: center;
  background: #ff2f5f;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.operation-title-action-submit {
  justify-self: start;
}

.operation-action-backfill-panel summary {
  align-items: center;
  background: #fff0f3;
  border: 1px solid #ffd8e0;
  border-radius: 999px;
  color: #20222e;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  justify-content: space-between;
  justify-self: start;
  list-style: none;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 12px;
  user-select: none;
  width: fit-content;
}

.operation-action-backfill-panel summary::-webkit-details-marker {
  display: none;
}

.operation-action-backfill-panel summary::before {
  background: #ff2d55;
  border-radius: 50%;
  color: #fff;
  content: "+";
  display: inline-grid;
  font-size: 14px;
  height: 22px;
  line-height: 1;
  place-items: center;
  width: 22px;
}

.operation-action-backfill-panel summary span {
  color: inherit;
  font-weight: 900;
}

.operation-action-backfill-panel summary em {
  background: #fff;
  border-radius: 999px;
  color: #ff2d55;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 7px;
}

.operation-action-backfill-panel[open] summary {
  background: #ff2d55;
  border-color: #ff2d55;
  color: #fff;
  margin-bottom: 8px;
}

.operation-action-backfill-panel[open] summary::before {
  background: #fff;
  color: #ff2d55;
  content: "−";
}

.operation-action-backfill-panel[open] summary em {
  color: #20222e;
}

.operation-action-backfill-form {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.operation-action-backfill-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.operation-action-backfill-form label {
  display: grid;
  gap: 5px;
}

.operation-action-backfill-form label span {
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
}

.operation-action-backfill-form input,
.operation-action-backfill-form textarea {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  color: #20222e;
  font: inherit;
  font-size: 12px;
  padding: 8px 9px;
  resize: vertical;
}

.operation-generated-backfill-fields {
  background: #fbfff7;
  border: 1px solid #d9efca;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.operation-generated-backfill-fields > strong {
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
}

.operation-generated-backfill-fields > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-generated-backfill-fields textarea {
  min-height: 58px;
}

.operation-custom-field-records {
  border-top: 1px solid #eef0f5;
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-top: 8px;
}

.operation-custom-field-records div {
  display: grid;
  gap: 3px;
}

.operation-custom-field-records dt {
  color: #20222e;
  font-size: 11px;
  font-weight: 900;
}

.operation-custom-field-records dd {
  color: #616975;
  font-size: 12px;
  margin: 0;
}

.operation-action-backfill-submit {
  justify-self: start;
}

.operation-task-backfill-panel {
  border-top: 1px solid #eef0f5;
  padding-top: 8px;
}

.operation-task-backfill-context {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operation-task-backfill-context span {
  background: #f4fff0;
  border: 1px solid #def3d1;
  border-radius: 10px;
  color: #4d5964;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  padding: 7px 8px;
}

.operation-backfill-review {
  background: #fff;
  border: 1px solid #eef0f5;
  border-left: 4px solid #ffb020;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.operation-backfill-review.decision-next_step {
  border-left-color: #20b486;
}

.operation-backfill-review.decision-rework,
.operation-backfill-review.decision-pause_review {
  border-left-color: #ff2d55;
}

.operation-backfill-review.decision-external_help {
  border-left-color: #4a90ff;
}

.operation-backfill-review header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.operation-backfill-review header span {
  background: #f6f7fb;
  border-radius: 999px;
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 8px;
}

.operation-backfill-review header strong {
  color: #20222e;
  font-size: 22px;
}

.operation-backfill-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.operation-backfill-score-grid small {
  background: #f8f8fb;
  border-radius: 999px;
  color: #626976;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
  text-align: center;
}

.operation-backfill-review p,
.operation-backfill-review li {
  color: #68707b;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.operation-backfill-review div > b {
  color: #20222e;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.operation-backfill-review ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.operation-attachment-upload {
  background: #f8f8fb;
  border: 1px dashed #d9deea;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.operation-attachment-upload label {
  display: grid;
  gap: 7px;
}

.operation-attachment-upload label span {
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
}

.operation-attachment-upload input[type="file"] {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  color: #616670;
  font-size: 12px;
  padding: 8px;
}

.operation-attachment-upload small {
  color: #747982;
  font-size: 11px;
  line-height: 1.35;
}

.operation-attachment-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.operation-attachment-list li {
  align-items: center;
  background: #fff;
  border-radius: 9px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 7px 8px;
}

.operation-attachment-list a {
  color: #ff2f5f;
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-attachment-list span {
  color: #858895;
  flex: 0 0 auto;
  font-size: 11px;
}

.target-task-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.target-task-column {
  background: #f8f8fb;
  border-radius: 14px;
  padding: 14px;
}

.target-task-column h3 {
  color: #2d3038;
  font-size: 16px;
  margin: 0 0 12px;
}

.target-task-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(21, 26, 35, 0.05);
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
}

.target-task-card span {
  color: #ff2d55;
  font-size: 13px;
  font-weight: 700;
}

.target-task-card strong {
  color: #252832;
  font-size: 16px;
}

.target-task-card p,
.target-task-card small,
.target-task-card em {
  color: #777b84;
  font-style: normal;
  line-height: 1.5;
}

.target-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.target-task-actions button,
.mini-button {
  border: 0;
  border-radius: 999px;
  background: #f0f1f5;
  color: #3a3e48;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
}

.target-task-actions button:hover,
.mini-button:hover {
  background: #ff2d55;
  color: #fff;
}

.target-action-panel select {
  background: #f7f7fa;
  border: 0;
  border-radius: 999px;
  color: #333743;
  font-weight: 700;
  padding: 10px 14px;
}

.target-lead-table .mini-button {
  margin: 2px 4px 2px 0;
}

.table-subtext {
  color: #858891;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 4px;
}

.target-action-cell {
  min-width: 220px;
}

.target-inline-editor {
  display: inline-block;
  margin-top: 4px;
  position: relative;
  vertical-align: top;
}

.target-inline-editor summary {
  background: #f0f1f5;
  border-radius: 999px;
  color: #3a3e48;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  padding: 7px 12px;
}

.target-inline-editor summary::-webkit-details-marker {
  display: none;
}

.target-inline-editor[open] summary {
  background: #ff2d55;
  color: #fff;
}

.target-inline-form {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(21, 26, 35, 0.12);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-top: 8px;
  min-width: min(720px, 78vw);
  padding: 14px;
  position: absolute;
  right: 0;
  z-index: 8;
}

.target-inline-form label {
  display: grid;
  gap: 6px;
}

.target-inline-form label.wide,
.target-inline-form .primary-button {
  grid-column: 1 / -1;
}

.target-inline-form span {
  color: #777b84;
  font-size: 12px;
  font-weight: 850;
}

.target-inline-form input,
.target-inline-form select,
.target-inline-form textarea {
  background: #f8f8fb;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  color: #20222e;
  font: inherit;
  font-weight: 750;
  min-height: 36px;
  padding: 8px 10px;
  resize: vertical;
}

.target-progress-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
}

.operation-system-empty {
  background: #f8f8fb;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.operation-system-empty strong {
  color: #252832;
  font-size: 17px;
}

.operation-system-empty p {
  color: #747782;
  line-height: 1.65;
  margin: 0;
}

.operation-system-grid {
  display: grid;
  align-items: start;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.target-operation-system-panel-compact {
  margin-top: 0;
  padding: 18px;
}

.target-operation-system-panel-compact .operation-system-grid {
  margin: 0;
}

.target-project-intro-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
}

.target-project-intro-head {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.target-project-intro-panel h2 {
  color: #20222e;
  font-size: 24px;
  line-height: 1.2;
  margin: 10px 0 8px;
}

.target-project-intro-panel p {
  color: #676c76;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 1120px;
}

.target-project-intro-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.target-project-intro-metrics article {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
}

.target-project-intro-metrics article span {
  color: #747982;
  font-size: 12px;
  font-weight: 850;
}

.target-project-intro-metrics article strong {
  color: #20222e;
  font-size: 15px;
  line-height: 1.25;
}

.target-project-decision {
  background: #fff7e6;
  border: 1px solid #ffe0a8;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.target-project-decision span,
.target-project-mini-card > strong,
.target-project-budget-split > strong,
.target-project-stop-rule strong {
  color: #20222e;
  font-size: 13px;
  font-weight: 900;
}

.target-project-decision strong {
  color: #20222e;
  font-size: 24px;
  line-height: 1.1;
}

.target-project-decision small {
  color: #606672;
  font-size: 13px;
  line-height: 1.45;
}

.target-project-decision.ok {
  background: #edfdf4;
  border-color: #bfeccc;
}

.target-project-decision.warning,
.target-project-decision.focus {
  background: #fff7e6;
  border-color: #ffe0a8;
}

.target-project-decision.danger {
  background: #fff0f2;
  border-color: #ffc7d1;
}

.target-project-stage-row {
  align-items: center;
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 10px;
}

.target-project-stage-row span {
  align-items: center;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 999px;
  color: #747982;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
}

.target-project-stage-row b {
  align-items: center;
  background: #eef1f6;
  border-radius: 999px;
  color: #20222e;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.target-project-stage-row span.active {
  background: #ecfdf5;
  border-color: #bfeccc;
  color: #20222e;
}

.target-project-stage-row span.active b {
  background: #58bf24;
  color: #fff;
}

.target-project-control-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.target-project-mini-card {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  min-height: 130px;
  padding: 14px;
}

.target-project-mini-card ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.target-project-mini-card li {
  background: #fff;
  border-radius: 12px;
  color: #20222e;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.target-project-mini-card li span {
  font-size: 13px;
  font-weight: 850;
}

.target-project-mini-card li small,
.target-project-mini-card p {
  color: #676c76;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.target-project-evidence-ladder {
  display: grid;
  gap: 8px;
}

.target-project-evidence-ladder span {
  align-items: center;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 999px;
  color: #747982;
  display: flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: space-between;
  padding: 8px 10px;
}

.target-project-evidence-ladder span.active {
  background: #ecfdf5;
  border-color: #bfeccc;
  color: #20222e;
}

.target-project-evidence-ladder b {
  color: #20222e;
}

.target-project-module-progress {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-project-module-progress span {
  background: #fff;
  border-radius: 12px;
  color: #676c76;
  display: grid;
  gap: 2px;
  padding: 10px;
}

.target-project-module-progress b {
  color: #20222e;
  font-size: 20px;
  line-height: 1;
}

.target-project-budget-split {
  background: #fffaf0;
  border: 1px solid #ffe7b5;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.target-project-budget-split div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.target-project-budget-split span {
  background: #fff;
  border-radius: 12px;
  color: #20222e;
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 4px;
  padding: 10px;
}

.target-project-budget-split b {
  color: #747982;
  font-size: 12px;
}

.target-project-stop-rule {
  align-items: center;
  background: #fff0f2;
  border: 1px solid #ffc7d1;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}

.target-project-stop-rule span {
  color: #606672;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.secretary-flow-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
}

.secretary-next-button {
  min-height: 40px;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
}

.secretary-flow-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.secretary-refresh-button {
  min-height: 36px;
  padding: 8px 14px;
  white-space: nowrap;
}

.secretary-model-status {
  background: #f4f6fa;
  border-radius: 999px;
  color: #565c66;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.secretary-flow-empty {
  background: #fff7e6;
  border: 1px dashed #ffd597;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.secretary-flow-empty strong {
  color: #20222e;
  font-size: 18px;
  font-weight: 950;
}

.secretary-flow-empty span {
  color: #676c76;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.secretary-stage-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.secretary-stage-row span {
  align-items: center;
  background: #f7f8fb;
  border: 1px solid #edf0f5;
  border-radius: 999px;
  color: #747982;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
}

.secretary-stage-row b {
  align-items: center;
  background: #e8ebf2;
  border-radius: 999px;
  color: #20222e;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.secretary-stage-row span.active {
  background: #ecfdf5;
  border-color: #bfeccc;
  color: #20222e;
}

.secretary-stage-row span.active b {
  background: #58bf24;
  color: #fff;
}

.secretary-current-goal {
  align-items: center;
  background: #252b3a;
  border-radius: 14px;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.secretary-current-goal strong {
  font-size: 16px;
  font-weight: 950;
}

.secretary-current-goal span {
  color: #eef1f7;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.secretary-quick-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.secretary-quick-stats article,
.secretary-diagnosis,
.secretary-action-card {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 14px;
}

.secretary-quick-stats article {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
}

.secretary-quick-stats article span,
.secretary-action-card header span,
.secretary-action-card dt {
  color: #747982;
  font-size: 12px;
  font-weight: 900;
}

.secretary-quick-stats article strong {
  color: #20222e;
  font-size: 22px;
  line-height: 1;
}

.secretary-quick-stats article small {
  color: #676c76;
  font-size: 12px;
  font-weight: 800;
}

.secretary-quick-stats article.focus,
.secretary-action-card.focus {
  background: #fff7e6;
  border-color: #ffe0a8;
}

.secretary-quick-stats article.warning,
.secretary-action-card.warning {
  background: #fffaf0;
  border-color: #ffe7b5;
}

.secretary-quick-stats article.danger,
.secretary-action-card.danger {
  background: #fff0f2;
  border-color: #ffc7d1;
}

.secretary-quick-stats article.ok,
.secretary-action-card.ok {
  background: #edfdf4;
  border-color: #bfeccc;
}

.secretary-diagnosis {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.secretary-diagnosis strong {
  color: #20222e;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 950;
}

.secretary-diagnosis div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secretary-diagnosis span {
  background: #fff;
  border-radius: 999px;
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.secretary-action-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.secretary-action-card {
  appearance: none;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  padding: 14px;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  width: 100%;
}

.secretary-action-card:hover {
  border-color: #ff8aa6;
}

.secretary-action-card:focus-visible {
  outline: 3px solid rgba(255, 47, 95, 0.28);
  outline-offset: 3px;
}

.secretary-action-card:disabled {
  cursor: wait;
  opacity: 0.58;
}

.secretary-action-card.handled {
  background: #f3fbf6;
  border-color: #bfeccc;
}

.secretary-action-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.secretary-action-card header b {
  align-items: center;
  background: #252b3a;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 46px;
}

.secretary-action-card > strong {
  color: #20222e;
  font-size: 18px;
  font-weight: 950;
}

.secretary-action-card p {
  color: #606672;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

.secretary-action-card footer {
  align-items: center;
  color: #747982;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  justify-content: space-between;
}

.secretary-action-status {
  background: #fff;
  border: 1px solid #e1e5ec;
  border-radius: 999px;
  color: #606672;
  display: inline-flex;
  padding: 5px 9px;
}

.secretary-action-status.handled {
  background: #e7f8ed;
  border-color: #bfeccc;
  color: #247044;
}

.secretary-action-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.secretary-action-card dl div {
  background: rgba(255, 255, 255, 0.76);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 9px;
}

.secretary-action-card dd {
  color: #20222e;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  margin: 0;
}

.secretary-action-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.secretary-action-meta span {
  color: #747982;
  font-size: 12px;
  font-weight: 900;
}

.secretary-action-meta em {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #20222e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
}

.secretary-action-buttons {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.secretary-action-buttons > .secondary-button,
.secretary-action-backfill > summary {
  align-items: center;
  border: 1px solid #ffc7d1;
  border-radius: 999px;
  background: #fff;
  color: #20222e;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  text-align: center;
}

.secretary-action-backfill {
  min-width: 0;
}

.secretary-action-backfill > summary {
  list-style: none;
  width: 100%;
}

.secretary-action-backfill > summary::-webkit-details-marker {
  display: none;
}

.secretary-action-backfill[open] {
  grid-column: 1 / -1;
}

.secretary-action-backfill[open] > summary {
  background: #ff2f5f;
  color: #fff;
}

.secretary-action-backfill .ai-title-action-form {
  margin-top: 10px;
}

.secretary-queue-heading {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.secretary-queue-heading strong {
  color: #20222e;
  font-size: 16px;
  font-weight: 950;
}

.secretary-queue-heading span {
  color: #676c76;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: right;
}

.secretary-flow-modal {
  align-items: center;
  background: rgba(23, 27, 38, 0.58);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 70;
}

.secretary-flow-modal-panel {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(23, 27, 38, 0.28);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: min(900px, calc(100dvh - 36px));
  overflow: hidden;
  width: min(820px, calc(100vw - 36px));
}

.secretary-flow-modal-panel:focus {
  outline: none;
}

.secretary-flow-modal-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px 14px;
}

.secretary-flow-modal-header > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secretary-flow-modal-header span,
.secretary-flow-modal-header small {
  background: #f4f6fa;
  border-radius: 999px;
  color: #606672;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.secretary-flow-modal-header strong {
  color: #20222e;
  font-size: 16px;
  font-weight: 950;
}

.secretary-flow-modal-close {
  align-items: center;
  background: #f4f6fa;
  border: 1px solid #e4e8ef;
  border-radius: 999px;
  color: #4d5562;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  transition: background-color 0.18s ease, color 0.18s ease;
  width: 38px;
}

.secretary-flow-modal-close:hover {
  background: #fff0f2;
  color: #c4204a;
}

.secretary-flow-modal-close:focus-visible,
.secretary-flow-modal-actions button:focus-visible {
  outline: 3px solid rgba(255, 47, 95, 0.3);
  outline-offset: 2px;
}

.secretary-flow-progress {
  background: #edf0f5;
  height: 5px;
  overflow: hidden;
}

.secretary-flow-progress span {
  background: #ff2f5f;
  display: block;
  height: 100%;
  transition: width 0.2s ease;
}

.secretary-flow-modal-body {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 20px;
}

.secretary-flow-task-brief {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 15px;
}

.secretary-flow-task-brief.focus {
  background: #fff7e6;
  border-color: #ffe0a8;
}

.secretary-flow-task-brief.warning {
  background: #fffaf0;
  border-color: #ffe7b5;
}

.secretary-flow-task-brief.danger {
  background: #fff0f2;
  border-color: #ffc7d1;
}

.secretary-flow-task-brief.ok {
  background: #edfdf4;
  border-color: #bfeccc;
}

.secretary-flow-task-brief h3 {
  color: #20222e;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.3;
  margin: 0;
}

.secretary-flow-task-brief > p {
  color: #5d6470;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
  margin: 0;
}

.secretary-flow-task-brief dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.secretary-flow-task-brief dl div {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.secretary-flow-task-brief dt {
  color: #747982;
  font-size: 11px;
  font-weight: 950;
}

.secretary-flow-task-brief dd {
  color: #20222e;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
  margin: 0;
}

.secretary-flow-task-form {
  display: grid;
  gap: 12px;
}

.secretary-flow-core-fields textarea {
  min-height: 112px;
  resize: vertical;
}

.secretary-flow-core-fields label span em {
  color: #c4204a;
  font-size: 11px;
  font-style: normal;
  margin-left: 4px;
}

.secretary-flow-modal-actions {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #edf0f5;
  bottom: -20px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto auto minmax(220px, 1fr);
  margin: 2px -20px -20px;
  padding: 14px 20px 18px;
  position: sticky;
  z-index: 2;
}

.secretary-flow-modal-actions button {
  cursor: pointer;
  min-height: 44px;
}

.secretary-flow-save-next {
  justify-self: stretch;
}

.secretary-flow-error {
  background: #fff0f2;
  border: 1px solid #ffc7d1;
  border-radius: 10px;
  color: #a7193d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
  padding: 10px 12px;
}

.secretary-flow-complete {
  align-items: center;
  gap: 14px;
  grid-template-rows: auto;
  justify-items: center;
  max-width: 520px;
  overflow: visible;
  padding: 28px;
  position: relative;
  text-align: center;
}

.secretary-flow-complete .secretary-flow-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.secretary-flow-complete-mark {
  align-items: center;
  background: #e7f8ed;
  border: 1px solid #bfeccc;
  border-radius: 999px;
  color: #247044;
  display: inline-flex;
  font-size: 28px;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.secretary-flow-complete h3 {
  color: #20222e;
  font-size: 24px;
  margin: 0;
}

.secretary-flow-complete p {
  color: #606672;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.secretary-flow-complete .primary-button {
  min-height: 44px;
  padding: 10px 22px;
}

.secretary-operation-evidence {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 16px;
  margin-top: 14px;
  padding: 10px;
}

.secretary-operation-evidence > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 10px 12px;
}

.secretary-operation-evidence > summary::-webkit-details-marker {
  display: none;
}

.secretary-operation-evidence > summary span {
  color: #20222e;
  font-size: 15px;
  font-weight: 950;
}

.secretary-operation-evidence > summary small {
  color: #747982;
  font-size: 12px;
  font-weight: 850;
}

.secretary-operation-evidence > summary::after {
  content: "展开";
  background: #f1f3f7;
  border-radius: 999px;
  color: #20222e;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
}

.secretary-operation-evidence[open] > summary::after {
  content: "收起";
  background: #252b3a;
  color: #fff;
}

.operation-system-module {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(21, 26, 35, 0.04);
  overflow: hidden;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.operation-system-module:hover {
  background: #fff;
  border-color: rgba(255, 47, 95, 0.18);
  box-shadow: 0 16px 34px rgba(21, 26, 35, 0.08);
  transform: translateY(-1px);
}

.operation-system-module button {
  align-content: space-between;
  align-items: start;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  min-height: 128px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.operation-system-module button span {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #ff2d55;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.operation-system-module button strong {
  color: #20222e;
  font-size: 15px;
  line-height: 1.25;
}

.operation-system-module button em {
  background: #fff;
  border-radius: 999px;
  color: #777b84;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 6px 9px;
  width: fit-content;
}

.operation-system-module button small {
  color: #747982;
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.operation-module-page {
  display: grid;
  gap: 12px;
}

.operation-module-page-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.operation-module-page-head .text-button {
  align-items: center;
  background: #2f3542;
  border: 1px solid #2f3542;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(32, 34, 46, 0.14);
  color: #ffffff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px 8px 9px;
}

.operation-module-page-head .text-button::before {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: #20222e;
  content: "←";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.operation-module-page-head .text-button:hover {
  background: #252b36;
  border-color: #252b36;
  box-shadow: 0 16px 34px rgba(32, 34, 46, 0.18);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.operation-system-plan-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-system-plan-grid article {
  background: #fff;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.operation-system-plan-grid span {
  color: #858891;
  font-size: 13px;
  font-weight: 900;
}

.operation-system-plan-grid p {
  color: #343842;
  line-height: 1.65;
  margin: 0;
}

.operation-system-two-col {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-autonomy-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operation-autonomy-grid article {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 12px;
}

.operation-autonomy-grid span {
  color: #ff2f5f;
  font-size: 12px;
  font-weight: 900;
}

.operation-autonomy-grid p {
  color: #343842;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.operation-system-metrics {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.operation-submodule-panel {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.operation-submodule-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.operation-submodule-heading strong {
  color: #20222e;
  font-size: 16px;
}

.operation-submodule-heading span {
  background: #f7f8fb;
  border-radius: 999px;
  color: #747982;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.operation-submodule-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.operation-submodule-card {
  background: #f8f8fb;
  border-radius: 10px;
  min-height: 126px;
  overflow: hidden;
}

.operation-submodule-card button {
  align-content: space-between;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 8px;
  min-height: 126px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.operation-submodule-card button strong {
  color: #20222e;
  font-size: 15px;
  line-height: 1.25;
}

.operation-submodule-card button span {
  background: #fff;
  border-radius: 999px;
  color: #ff2f5f;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  width: fit-content;
}

.operation-submodule-card button small {
  color: #646a73;
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.operation-level-sibling-nav {
  align-items: start;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.operation-level-sibling-nav > span {
  color: #747982;
  font-size: 12px;
  font-weight: 900;
}

.operation-level-sibling-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operation-level-sibling-nav button {
  align-items: center;
  background: #f8f9fc;
  border: 1px solid #e8ebf2;
  border-radius: 999px;
  color: #252832;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 7px;
  max-width: min(100%, 360px);
  padding: 5px 10px 5px 5px;
  text-align: left;
}

.operation-level-sibling-nav button.active {
  background: #fff7f9;
  border-color: rgba(255, 47, 95, 0.28);
  box-shadow: 0 8px 18px rgba(255, 47, 95, 0.08);
}

.operation-level-sibling-nav button em {
  color: #252832;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-level-card-panel {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.operation-level-card-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.operation-level-card {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  min-height: 142px;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.operation-level-card:hover {
  background: #fff;
  border-color: rgba(255, 47, 95, 0.18);
  box-shadow: 0 16px 34px rgba(21, 26, 35, 0.07);
  transform: translateY(-1px);
}

.operation-level-card button {
  align-content: space-between;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  min-height: 142px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.operation-level-card button > span:not(.operation-level-title) {
  background: #fff;
  border-radius: 999px;
  color: #5f6672;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  width: fit-content;
}

.operation-level-card button small {
  color: #646a73;
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.operation-level-detail-panel {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.operation-sixth-task-detail {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.operation-sixth-task-detail div {
  background: #f8f9fc;
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.operation-sixth-task-detail dt {
  color: #7a808c;
  font-size: 12px;
  font-weight: 900;
}

.operation-sixth-task-detail dd {
  color: #262a33;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.operation-network-panel {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
}

.operation-network-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.operation-network-heading strong {
  color: #20222e;
  display: block;
  font-size: 16px;
}

.operation-network-heading p,
.operation-network-rule {
  color: #646a73;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.operation-network-heading span {
  background: #fff;
  border-radius: 999px;
  color: #ff2f5f;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.operation-network-loop-grid,
.operation-network-edge-grid {
  display: grid;
  gap: 8px;
}

.operation-network-loop-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.operation-network-edge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operation-network-loop-grid article,
.operation-network-edge-grid article {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 9px;
  display: grid;
  gap: 5px;
  padding: 9px;
}

.operation-network-loop-grid strong,
.operation-network-edge-grid strong {
  color: #20222e;
  font-size: 13px;
}

.operation-network-loop-grid span,
.operation-network-loop-grid small,
.operation-network-edge-grid small {
  color: #747982;
  font-size: 12px;
  line-height: 1.35;
}

.operation-network-edge-grid ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.operation-network-edge-grid li {
  display: grid;
  gap: 2px;
}

.operation-network-edge-grid li span {
  color: #20222e;
  font-size: 12px;
  font-weight: 800;
}

.operation-action-network-summary {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.operation-action-network-summary strong {
  color: #20222e;
  display: block;
  font-size: 14px;
}

.operation-action-network-summary p {
  color: #646a73;
  font-size: 12px;
  line-height: 1.45;
  margin: 3px 0 0;
}

.operation-action-network-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.operation-action-network-stats span {
  background: #f7f8fb;
  border-radius: 999px;
  color: #20222e;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 8px;
}

.operation-action-network-summary ol {
  color: #646a73;
  display: grid;
  font-size: 12px;
  gap: 3px;
  line-height: 1.4;
  margin: 0;
  padding-left: 18px;
}

.operation-network-health {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 9px;
  display: grid;
  gap: 4px;
  padding: 8px;
}

.operation-network-health strong,
.operation-network-health span,
.operation-network-health small {
  display: block;
}

.operation-network-health strong {
  color: #20222e;
  font-size: 13px;
}

.operation-network-health span,
.operation-network-health small {
  color: #646a73;
  font-size: 12px;
  line-height: 1.35;
}

.operation-network-subgrid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-network-subgrid article {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 9px;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.operation-network-subgrid article > strong {
  color: #20222e;
  font-size: 13px;
}

.operation-network-subgrid ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.operation-network-subgrid li {
  display: grid;
  gap: 2px;
}

.operation-network-subgrid li span {
  color: #20222e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.operation-network-subgrid li small {
  color: #747982;
  font-size: 11px;
  line-height: 1.35;
}

.operation-submodule-network {
  background: #fbfbfd;
}

.operation-third-level-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.operation-third-level-page-grid {
  gap: 12px;
  margin-top: 0;
}

.operation-third-level-grid article {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 8px;
}

.operation-third-level-grid article strong {
  color: #20222e;
  font-size: 13px;
}

.operation-third-level-grid article p {
  color: #747982;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.operation-third-level-grid ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.operation-third-level-grid li {
  background: #fbfbfd;
  border-radius: 7px;
  display: grid;
  gap: 2px;
  padding: 6px;
}

.operation-third-level-grid li span {
  color: #20222e;
  font-size: 12px;
  font-weight: 800;
}

.operation-third-level-grid li small {
  color: #747982;
  font-size: 11px;
  line-height: 1.35;
}

.operation-action-links {
  border-top: 1px solid #eef0f5;
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding-top: 5px;
}

.operation-action-links small {
  color: #646a73;
  display: grid;
  gap: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.operation-action-links b {
  color: #ff2f5f;
  font-weight: 900;
  margin-right: 5px;
}

.operation-action-links i {
  color: #747982;
  font-style: normal;
}

.operation-action-breakdown-empty {
  align-items: start;
  background: #fff;
  border: 1px dashed #ffd8e0;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
}

.operation-action-breakdown-trigger,
.operation-action-breakdown-empty strong {
  justify-self: start;
}

.operation-action-breakdown-empty strong {
  background: #fff4f6;
  border-radius: 999px;
  color: #20242c;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.operation-action-breakdown-empty small {
  color: #747982;
  font-size: 11px;
  line-height: 1.35;
}

.operation-action-breakdown-panel {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
}

.operation-action-breakdown-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.operation-action-breakdown-panel summary span {
  color: #20222e;
  font-size: 13px;
  font-weight: 900;
}

.operation-action-breakdown-panel summary b {
  background: #f6f7fb;
  border-radius: 999px;
  color: #20222e;
  font-size: 11px;
  padding: 5px 8px;
}

.operation-action-breakdown-body {
  border-top: 1px solid #eef0f5;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.operation-action-breakdown-topline {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.operation-action-breakdown-topline p {
  color: #646a73;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.operation-breakdown-gates {
  display: grid;
  gap: 5px;
}

.operation-breakdown-gates span {
  background: #fbfbfd;
  border-radius: 8px;
  color: #646a73;
  font-size: 11px;
  line-height: 1.35;
  padding: 7px 8px;
}

.operation-breakdown-quality {
  align-items: center;
  background: #f6fbf2;
  border: 1px solid #c7edb5;
  border-radius: 10px;
  color: #26321f;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 8px;
}

.operation-breakdown-quality span,
.operation-breakdown-quality b,
.operation-breakdown-quality em {
  background: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
  padding: 5px 8px;
}

.operation-breakdown-quality b {
  background: #58c322;
  color: #fff;
}

.operation-breakdown-quality em {
  color: #646a73;
}

.operation-fifth-level-list {
  display: grid;
  gap: 10px;
}

.operation-fifth-level-list article {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.operation-fifth-level-list article header {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.operation-fifth-level-list article header > span,
.operation-sixth-level-heading > span {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #20222e;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-height: 28px;
  min-width: 28px;
  padding: 4px;
}

.operation-fifth-level-list article p {
  color: #646a73;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.operation-fifth-level-meta,
.operation-fifth-level-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.operation-fifth-level-meta small,
.operation-fifth-level-checks span,
.operation-fifth-level-handoff b {
  background: #fff;
  border-radius: 999px;
  color: #20222e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  padding: 5px 7px;
}

.operation-fifth-level-handoff {
  color: #747982;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
}

.operation-sixth-level-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.operation-sixth-level-list li {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.operation-sixth-level-heading {
  align-items: start;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr);
}

.operation-sixth-level-list dl {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.operation-sixth-level-list dl div {
  background: #fbfbfd;
  border-radius: 8px;
  padding: 6px 7px;
}

.operation-sixth-level-list dt {
  color: #20222e;
  font-size: 10px;
  font-weight: 900;
  margin: 0 0 3px;
}

.operation-sixth-level-list dd {
  color: #646a73;
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}

.operation-sixth-level-empty {
  background: #fff;
  border-radius: 8px;
  color: #747982;
  font-size: 11px;
  padding: 8px;
}

.operation-third-level-grid .operation-action-breakdown-empty small,
.operation-third-level-grid .operation-action-breakdown-topline p,
.operation-third-level-grid .operation-fifth-level-list article p,
.operation-third-level-grid .operation-sixth-level-list dd {
  color: #646a73;
}

.operation-third-level-grid .operation-action-breakdown-panel summary span,
.operation-third-level-grid .operation-fifth-level-checks span,
.operation-third-level-grid .operation-fifth-level-handoff b,
.operation-third-level-grid .operation-sixth-level-heading > span {
  font-weight: 900;
}

.operation-level-title,
.operation-level-ai-title,
.operation-level-badge {
  --level-color: #7e57c2;
  --level-soft: #f4efff;
  --level-border: #d9c8ff;
}

.operation-level-title.level-1,
.operation-level-ai-title.level-1,
.operation-level-badge.level-1 {
  --level-color: #e53935;
  --level-soft: #fff1f0;
  --level-border: #ffc9c5;
}

.operation-level-title.level-2,
.operation-level-ai-title.level-2,
.operation-level-badge.level-2 {
  --level-color: #ef7d00;
  --level-soft: #fff5e8;
  --level-border: #ffd49b;
}

.operation-level-title.level-3,
.operation-level-ai-title.level-3,
.operation-level-badge.level-3 {
  --level-color: #b88900;
  --level-soft: #fff9db;
  --level-border: #f7da67;
}

.operation-level-title.level-4,
.operation-level-ai-title.level-4,
.operation-level-badge.level-4 {
  --level-color: #2e7d32;
  --level-soft: #edf9ed;
  --level-border: #a8dfa8;
}

.operation-level-title.level-5,
.operation-level-ai-title.level-5,
.operation-level-badge.level-5 {
  --level-color: #008b9a;
  --level-soft: #e8fbfd;
  --level-border: #9bdddf;
}

.operation-level-title.level-6,
.operation-level-ai-title.level-6,
.operation-level-badge.level-6 {
  --level-color: #1e64d8;
  --level-soft: #eef5ff;
  --level-border: #b7d2ff;
}

.operation-level-title.level-7,
.operation-level-ai-title.level-7,
.operation-level-badge.level-7 {
  --level-color: #7e57c2;
  --level-soft: #f4efff;
  --level-border: #d9c8ff;
}

.operation-level-title,
.operation-level-ai-title {
  align-items: center;
  color: var(--level-color);
  display: inline-flex;
  gap: 7px;
  line-height: 1.25;
  max-width: 100%;
  min-width: 0;
}

.operation-level-title {
  font-weight: 900;
}

.operation-level-ai-title {
  flex-wrap: wrap;
}

.operation-level-ai-title .ai-title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.operation-level-ai-title .ai-title-button {
  background: var(--level-soft);
  border-color: var(--level-border);
  color: var(--level-color);
}

.operation-level-ai-title .ai-title-button > span,
.operation-level-title .operation-level-name {
  color: var(--level-color);
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.operation-level-badge {
  align-items: center;
  background: var(--level-color);
  border: 1px solid var(--level-color);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 24px;
  min-width: 54px;
  padding: 3px 8px;
  white-space: nowrap;
}

.operation-level-badge.level-3 {
  color: #1f1f1f;
}

.operation-level-badge b {
  color: inherit;
  font: inherit;
  line-height: 1;
}

.operation-system-module button .operation-level-title,
.operation-submodule-card button .operation-level-title {
  align-items: flex-start;
  flex-direction: column;
}

.operation-system-module button .operation-level-title .operation-level-badge,
.operation-submodule-card button .operation-level-title .operation-level-badge,
.operation-third-level-grid li .operation-level-badge {
  background: var(--level-color);
  border: 1px solid var(--level-color);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: auto;
  min-height: 24px;
  min-width: 54px;
  padding: 3px 7px;
  width: fit-content;
}

.operation-system-module button .operation-level-title .operation-level-badge.level-3,
.operation-submodule-card button .operation-level-title .operation-level-badge.level-3,
.operation-third-level-grid li .operation-level-badge.level-3 {
  color: #1f1f1f;
}

.operation-system-module button .operation-level-title .operation-level-name,
.operation-submodule-card button .operation-level-title .operation-level-name,
.operation-third-level-grid li .operation-level-name {
  background: transparent;
  border-radius: 0;
  color: var(--level-color);
  display: inline;
  font-size: inherit;
  font-weight: 900;
  height: auto;
  justify-content: flex-start;
  padding: 0;
  width: auto;
}

.operation-third-level-grid li .operation-level-ai-title {
  align-items: center;
  display: flex;
}

.operation-third-level-grid li .operation-level-ai-title .ai-title-heading {
  background: transparent;
  border-radius: 0;
  color: inherit;
  display: block;
  font-size: inherit;
  font-weight: inherit;
  height: auto;
  padding: 0;
  width: auto;
}

.operation-third-level-grid li .operation-level-ai-title .ai-title-button > span {
  background: transparent;
  border-radius: 0;
  color: var(--level-color);
  display: inline;
  font-size: inherit;
  font-weight: 900;
  height: auto;
  padding: 0;
  width: auto;
}

.operation-sop-panel {
  background: #fbfbfd;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.operation-sop-overview {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 180px;
}

.operation-sop-overview strong {
  color: #20222e;
  font-size: 18px;
}

.operation-sop-overview p {
  color: #616670;
  line-height: 1.55;
  margin: 6px 0 0;
}

.operation-sop-overview small {
  color: #ff2f5f;
  display: block;
  font-weight: 700;
  margin-top: 6px;
}

.operation-sop-progress {
  display: grid;
  gap: 8px;
}

.operation-sop-progress span {
  color: #20222e;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.operation-sop-progress i {
  background: #eef0f5;
  border-radius: 999px;
  display: block;
  height: 10px;
  overflow: hidden;
}

.operation-sop-progress b {
  background: linear-gradient(90deg, #ff2f5f, #ff8fa0);
  display: block;
  height: 100%;
}

.operation-sop-steps {
  display: grid;
  gap: 12px;
}

.operation-sop-step {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.operation-sop-step header,
.operation-sop-step footer {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.operation-sop-step header span {
  color: #ff2f5f;
  font-size: 13px;
  font-weight: 900;
}

.operation-sop-step header strong {
  color: #20222e;
  display: block;
  font-size: 16px;
  line-height: 1.45;
  margin-top: 4px;
}

.operation-sop-step header small,
.operation-sop-step footer small {
  color: #747982;
  display: block;
  line-height: 1.45;
  margin-top: 4px;
}

.operation-sop-step select {
  background: #f7f8fb;
  border: 1px solid #eef0f5;
  border-radius: 999px;
  color: #20222e;
  font-weight: 800;
  padding: 8px 12px;
}

.operation-sop-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operation-sop-fields label {
  display: grid;
  gap: 6px;
}

.operation-sop-fields label span {
  color: #616670;
  font-size: 13px;
  font-weight: 800;
}

.operation-sop-fields textarea {
  background: #f8f8fb;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  color: #20222e;
  line-height: 1.5;
  min-height: 62px;
  padding: 10px;
  resize: vertical;
}

.operation-sop-feedback {
  background: #fff7f9;
  border-radius: 10px;
  color: #4d333a;
  line-height: 1.55;
  margin: 0;
  padding: 10px 12px;
}

.primary-mini-button {
  background: #ff2f5f !important;
  color: #fff !important;
}

.target-progress-card {
  background: #f8f8fb;
  border-radius: 12px;
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 15px;
}

.target-progress-card span {
  color: #858891;
  font-size: 13px;
  font-weight: 800;
}

.target-progress-card strong {
  color: #20222e;
  font-size: 24px;
  line-height: 1.1;
}

.target-progress-card small {
  color: #777b84;
  font-weight: 700;
}

.target-progress-bar {
  background: #edeff4;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.target-progress-bar i {
  background: linear-gradient(90deg, #ff2f5f, #4d7cff);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.target-rap-panel {
  border-top: 4px solid #8ccf55;
}

.target-rap-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-rap-grid article {
  background: #f8faf7;
  border: 1px solid #e5efdf;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.target-rap-grid article > strong {
  color: #20222e;
  font-size: 16px;
  font-weight: 900;
}

.target-rap-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.target-rap-stats span {
  background: #fff;
  border-radius: 999px;
  color: #20222e;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.target-rap-grid ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.target-rap-grid li {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.target-rap-grid li.due {
  border-color: #ffcad4;
  box-shadow: inset 4px 0 0 #ff2d55;
}

.target-rap-grid b {
  color: #20222e;
  font-size: 13px;
}

.target-rap-grid small,
.target-rap-grid p {
  color: #656d78;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.target-command-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.target-daily-form,
.target-roi-form {
  display: grid;
  gap: 12px;
}

.target-form-grid,
.target-roi-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-daily-form label,
.target-roi-form label {
  background: #f8f8fb;
  border-radius: 10px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.target-daily-form label > span,
.target-roi-form label > span {
  color: #777b84;
  font-size: 13px;
  font-weight: 800;
}

.target-daily-form input,
.target-daily-form textarea,
.target-roi-form input {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  color: #20222e;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 9px 10px;
  resize: vertical;
}

.target-daily-form > label {
  grid-column: 1 / -1;
}

.target-daily-form .primary-button,
.target-roi-form .primary-button {
  align-self: end;
  border-radius: 10px;
  min-height: 58px;
  width: 100%;
}

.target-log-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.target-log-card {
  background: #f8f8fb;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.target-log-card strong {
  color: #20222e;
  font-size: 14px;
}

.target-log-card p,
.target-log-card small {
  color: #747782;
  line-height: 1.5;
  margin: 0;
}

.target-roi-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.target-roi-summary article {
  background: #f8f8fb;
  border-radius: 10px;
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
}

.target-roi-summary span {
  color: #858891;
  font-size: 12px;
  font-weight: 800;
}

.target-roi-summary strong {
  color: #20222e;
  font-size: 18px;
  line-height: 1.2;
}

.target-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.target-list-card {
  background: #f8f8fb;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
}

.target-list-card > span {
  color: #ff2d55;
  font-size: 13px;
  font-weight: 900;
}

.target-list-card h3 {
  color: #252832;
  font-size: 21px;
  margin: 0;
}

.target-list-card p {
  color: #747782;
  line-height: 1.6;
  margin: 0;
}

.target-list-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.target-list-card small {
  background: #fff;
  border-radius: 999px;
  color: #777b84;
  font-weight: 800;
  padding: 6px 10px;
}

.target-playbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.target-playbook-grid .detail-list {
  background: #f8f8fb;
  border-radius: 12px;
  padding: 14px;
}

.detail-metric-grid {
  gap: 8px;
}

.detail-metric-grid article {
  min-height: 58px;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 22px rgba(43, 47, 68, 0.035);
}

.detail-metric-grid article:nth-child(4n + 1) { background: #fff2ef; }
.detail-metric-grid article:nth-child(4n + 2) { background: #eef7ff; }
.detail-metric-grid article:nth-child(4n + 3) { background: #f2efff; }
.detail-metric-grid article:nth-child(4n + 4) { background: #fff7d8; }

.detail-metric-grid span {
  color: #858895;
}

.detail-metric-grid strong {
  color: #20222e;
  font-size: clamp(13px, 0.9vw, 16px);
}

.operation-table-card h3 {
  color: #20222e;
  font-size: 18px;
  font-weight: 950;
}

.operation-table th,
.operation-table td,
.matrix-table th,
.matrix-table td {
  border-bottom-color: #edf0f5;
}

.operation-table th {
  background: #f5f6fa;
}

.operation-modal-backdrop {
  background: rgba(36, 38, 52, 0.32);
  backdrop-filter: blur(6px);
}

.operation-modal-panel {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(28, 30, 44, 0.18);
}

.user-questionnaire-grid {
  gap: 14px;
}

.user-questionnaire-grid label,
.classifier-form label {
  border-radius: 8px;
  padding: 12px;
  background: #f7f8fb;
}

.questionnaire-range input,
.profile-row input,
.weight-control input {
  accent-color: #ff2f5f;
}

.user-match-card header strong,
.provider-score,
.score-pill,
.method-pill,
.pipeline-step .step-number,
.flow-step span {
  background: linear-gradient(135deg, #ff2f5f, #ff6a7d);
}

.method-pill.train { background: linear-gradient(135deg, #4d7cff, #69c4ff); }
.method-pill.tool { background: linear-gradient(135deg, #21a67a, #62d8b0); }
.method-pill.outsource { background: linear-gradient(135deg, #ffc83d, #ffdf78); color: #2a2731; }
.method-pill.partner { background: linear-gradient(135deg, #7a63ff, #aa91ff); }
.method-pill.operation { background: linear-gradient(135deg, #ff2f5f, #ff8796); }

.user-match-card,
.capability-row,
.profile-row,
.gap-card,
.package-card,
.provider-card,
.flow-step,
.library-item,
.route-card,
.table-card,
.formula-card,
.taxonomy-card,
.layer-card,
.pipeline-step {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.user-match-card:hover,
.capability-row:hover,
.profile-row:hover,
.gap-card:hover,
.package-card:hover,
.provider-card:hover,
.flow-step:hover,
.library-item:hover,
.route-card:hover,
.table-card:hover,
.formula-card:hover,
.taxonomy-card:hover,
.layer-card:hover,
.pipeline-step:hover,
.ranking-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(43, 47, 68, 0.075);
}

.layer-card:nth-child(4n + 1),
.route-card:nth-child(4n + 1),
.table-card:nth-child(4n + 1),
.taxonomy-card:nth-child(4n + 1) {
  background: linear-gradient(180deg, #fff 0%, #fff6f4 100%);
}

.layer-card:nth-child(4n + 2),
.route-card:nth-child(4n + 2),
.table-card:nth-child(4n + 2),
.taxonomy-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, #fff 0%, #f0f8ff 100%);
}

.layer-card:nth-child(4n + 3),
.route-card:nth-child(4n + 3),
.table-card:nth-child(4n + 3),
.taxonomy-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, #fff 0%, #f3f0ff 100%);
}

.layer-card:nth-child(4n + 4),
.route-card:nth-child(4n + 4),
.table-card:nth-child(4n + 4),
.taxonomy-card:nth-child(4n + 4) {
  background: linear-gradient(180deg, #fff 0%, #fff8dc 100%);
}

.schema-preview,
.api-panel pre {
  color: #f7f8fb;
  background: #252734;
}

.toast {
  border-radius: 8px;
  background: #252734;
  box-shadow: 0 18px 44px rgba(36, 39, 58, 0.18);
}

@media (max-width: 1180px) {
  .ai-title-insight-grid {
    grid-template-columns: 1fr;
  }

  .ai-title-action-fields {
    grid-template-columns: 1fr;
  }

  .operation-action-backfill-fields,
  .operation-backfill-score-grid,
  .operation-task-backfill-context,
  .operation-sixth-level-list dl {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .control-panel {
    padding: 22px 16px;
  }

  .topbar {
    padding: 24px 28px 52px;
  }

  .workspace {
    padding: 0 28px 36px;
  }

  .summary-grid,
  .system-completion-list,
  .layer-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .dashboard-grid,
  .system-completion-summary,
  .split-grid,
  .detail-columns,
  .capability-layout,
  .capability-layout.three,
  .user-questionnaire-grid,
  .user-match-results,
  .taxonomy-layout,
  .taxonomy-grid,
  .library-grid,
  .routing-grid,
  .table-grid,
  .formula-grid,
  .support-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .topbar {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .control-panel {
    position: static;
    height: auto;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-brand {
    padding-bottom: 14px;
  }

  .tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .tab {
    width: auto;
    min-width: max-content;
    padding: 9px 12px;
  }

  .tab.active::before {
    display: none;
  }

  .weight-controls,
  .opportunity-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    margin-top: 0;
    padding: 14px;
  }

  .summary-grid,
  .system-completion-summary,
  .system-completion-list,
  .layer-grid,
  .insight-grid,
  .scale-grid,
  .detail-stats {
    grid-template-columns: 1fr;
  }

  .classifier-form {
    grid-template-columns: 1fr;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .ranking-toolbar,
  .ranking-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

	  .track-hero,
	  .track-detail-grid,
	  .remote-operation-grid,
	  .search-signal-grid,
    .operation-autopilot-grid,
    .operation-autopilot-cycles,
    .operation-autopilot-form-grid,
    .operation-user-batch-grid,
    .operation-profit-grid,
    .operation-profit-mandates,
	  .wiki-layout {
	    grid-template-columns: 1fr;
	  }

  .operation-autopilot-stats,
  .operation-profit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-autopilot-module-states {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-news-card {
    max-width: none;
  }

  .operation-glossary-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .operation-modal {
    padding: 12px;
  }

  .operation-modal-panel {
    max-height: calc(100vh - 24px);
  }

  .detail-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-toc {
    position: static;
    max-height: 220px;
  }

  .ranking-toolbar select {
    max-width: none;
  }

  .decision-stats,
  .decision-notes,
  .data-audit-counts,
  .data-audit-grid,
  .audit-links {
    grid-template-columns: 1fr;
  }

  .completion-flow {
    grid-template-columns: 1fr;
  }

  .time-toolbar,
  .section-heading.wide {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading.wide .section-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .dimension-row {
    grid-template-columns: 92px minmax(0, 1fr) 42px;
  }
}

@media (max-width: 1180px) {
  body {
    background:
      linear-gradient(90deg, rgba(240, 241, 245, 0.96) 0 246px, transparent 246px),
      linear-gradient(180deg, #f8f8fb 0%, #f7f7fa 100%);
  }

  body::before {
    left: 246px;
  }

  .app-shell {
    grid-template-columns: 246px minmax(0, 1fr);
  }

  .control-panel {
    padding: 28px 22px;
  }

  .tab {
    padding-left: 46px;
  }

  .topbar-profile {
    max-width: none;
  }

  .target-command-grid {
    grid-template-columns: 1fr;
  }

  .target-rap-grid {
    grid-template-columns: 1fr;
  }

  .target-progress-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  body {
    background: #f8f8fb;
  }

  body::before {
    left: 0;
    height: 150px;
  }

  .control-panel {
    background: #f0f1f5;
  }

  .topbar {
    padding: 20px 18px 28px;
  }

  .topbar-profile {
    gap: 14px;
  }

  .topbar-avatar {
    width: 58px;
    height: 58px;
    font-size: 20px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .workspace {
    margin-top: 0;
    padding: 18px;
  }

  .analysis-panel {
    padding: 18px;
  }

  .ranking-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ranking-score {
    width: 72px;
  }

  .track-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .track-hero > strong {
    width: 80px;
  }

  .track-hero.country-themed-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0;
  }

  .target-hero-panel,
  .target-command-grid,
  .target-task-board {
    grid-template-columns: 1fr;
  }

  .target-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .target-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .target-roi-summary,
  .target-roi-form,
  .target-form-grid,
  .target-inline-form {
    grid-template-columns: 1fr;
  }

  .target-inline-form {
    min-width: min(520px, 82vw);
    right: auto;
    left: 0;
  }

  .target-playbook-grid,
  .operation-system-plan-grid,
  .operation-autonomy-grid,
  .operation-system-two-col {
    grid-template-columns: 1fr;
  }

  .track-hero-copy {
    padding: 22px;
  }

  .track-hero.country-themed-hero > strong {
    width: 78px;
    min-height: 64px;
    margin: 0 22px 22px;
    justify-self: start;
  }
}

/* Compact creator-center visual pass */
:root {
  --ink: #252734;
  --muted: #858895;
  --soft: #a7aab3;
  --line: #eef0f5;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #fbfbfd;
  --sidebar: #f1f2f6;
  --teal: #ff2f5f;
  --teal-dark: #e92755;
  --blue: #4d7cff;
  --amber: #ffc83d;
  --red: #ff3b5f;
  --green: #22a982;
  --violet: #7a63ff;
  --pink-soft: #fff1f4;
  --blue-soft: #f0f7ff;
  --violet-soft: #f4f1ff;
  --yellow-soft: #fff8dc;
  --shadow: 0 16px 42px rgba(38, 41, 58, 0.055);
  --soft-shadow: 0 8px 24px rgba(38, 41, 58, 0.045);
  --radius: 10px;
}

html {
  font-size: 14px;
}

body {
  background:
    radial-gradient(circle at 78% 0%, rgba(223, 220, 255, 0.62), transparent 28%),
    linear-gradient(180deg, #fafafe 0%, #f6f7fa 34%, #f7f7fa 100%);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.42;
}

.app-shell {
  grid-template-columns: 244px minmax(0, 1fr);
}

.control-panel {
  padding: 24px 22px;
  background: var(--sidebar);
  border-right: 1px solid #e9ebf1;
}

.sidebar-brand {
  min-height: 52px;
  gap: 10px;
  padding-bottom: 16px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #232633, #11131a);
  font-size: 18px;
}

.sidebar-brand strong,
.section-heading h2,
.time-toolbar h2,
.operation-table-card h3 {
  color: #252734;
}

.sidebar-brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.sidebar-brand span,
.topbar-subtitle,
.section-heading.wide p,
.time-toolbar p,
.analysis-panel p,
.ranking-main p,
.track-hero p,
.detail-hero p,
.detail-block p {
  color: #858895;
}

.panel-section {
  padding: 14px 0;
  border-bottom-color: #e3e5eb;
}

.panel-section label,
.section-heading span:first-child,
.weight-row span,
.dimension-row span,
.helper-text,
.table-subtext {
  color: #858895;
  font-size: 12px;
  line-height: 1.35;
}

input,
select,
textarea {
  min-height: 36px;
  border-color: #e4e6ed;
  border-radius: 10px;
  padding: 8px 10px;
  color: #252734;
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
}

input::placeholder,
textarea::placeholder {
  color: #a7aab3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 47, 95, 0.52);
  box-shadow: 0 0 0 3px rgba(255, 47, 95, 0.08);
}

.topbar {
  min-height: 174px;
  padding: 22px 32px 48px;
  background:
    radial-gradient(circle at 90% -20%, rgba(255, 255, 255, 0.82) 0 70px, transparent 71px),
    radial-gradient(circle at 83% -8%, transparent 0 132px, rgba(255, 255, 255, 0.42) 133px 135px, transparent 136px),
    radial-gradient(circle at 74% -10%, transparent 0 202px, rgba(255, 255, 255, 0.24) 203px 205px, transparent 206px),
    linear-gradient(112deg, #fbfbff 0%, #f6f3ff 58%, #e5e2ff 100%);
}

.topbar-profile {
  gap: 16px;
}

.topbar-avatar {
  width: 58px;
  height: 58px;
  border-width: 4px;
  font-size: 20px;
}

.eyebrow {
  margin-bottom: 4px;
  color: #8f92a0;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

h2,
.section-heading h2,
.time-toolbar h2 {
  font-size: 18px;
  line-height: 1.18;
}

h3,
.operation-table-card h3,
.target-list-card h3 {
  font-size: 16px;
  line-height: 1.22;
}

.topbar-subtitle {
  font-size: 13px;
  line-height: 1.45;
}

.topbar-actions {
  gap: 12px;
}

.topbar-actions::before,
.topbar-actions::after,
.icon-button,
.ghost-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  box-shadow: 0 10px 22px rgba(72, 76, 108, 0.07);
}

.ghost-button {
  width: auto;
  height: auto;
  min-height: 34px;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 12px;
}

.workspace {
  margin-top: -56px;
  padding: 0 30px 36px;
}

.tabs {
  gap: 4px;
  margin: 16px 0 10px;
  padding-bottom: 12px;
}

.tab {
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 10px 8px 16px;
  color: #7f828e;
  font-size: 13px;
  line-height: 1.2;
}

.tab::before {
  width: 3px;
  border-radius: 999px;
}

.tab.active {
  color: #252734;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(232, 234, 241, 0.8);
}

.tab.active::before {
  background: var(--teal);
}

.summary-grid,
.dashboard-grid,
.split-grid,
.taxonomy-layout,
.capability-layout,
.library-grid,
.target-workbench-shell {
  gap: 14px;
}

.summary-grid {
  margin-bottom: 14px;
}

.metric-card,
.analysis-panel,
.layer-card,
.opportunity-card,
.pipeline-step,
.insight-card,
.track-hero,
.matrix-heading,
.matrix-table-wrap,
.operation-modal-panel,
.operation-glossary-card,
.country-industry-grid article,
.search-signal-grid article,
.pillar-card,
.industry-impact-grid article,
.validation-plan div,
.capability-table div,
.related-track-grid a,
.wiki-toc,
.wiki-sections article,
.full-wiki-text,
.contact-resource-grid article,
.user-match-card,
.user-match-empty,
.capability-row,
.profile-row,
.gap-card,
.package-card,
.provider-card,
.flow-step,
.gbod-cell,
.plain-summary,
.example-pill,
.scale-item,
.taxonomy-card,
.library-item,
.route-card,
.table-card,
.formula-card,
.support-grid article,
.currency-metric-grid article,
.matrix-card-grid article,
.target-hero-panel,
.target-task-column,
.target-task-card,
.target-progress-card,
.target-list-card,
.target-log-card,
.target-roi-summary article,
.target-playbook-grid .detail-list {
  border-color: #eceff4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(38, 41, 58, 0.04);
}

.analysis-panel {
  padding: 20px 22px;
}

.section-heading,
.section-heading.wide,
.time-toolbar {
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading.wide {
  align-items: center;
}

.section-heading.wide p,
.time-toolbar p,
.analysis-panel p {
  font-size: 13px;
  line-height: 1.45;
}

.metric-card {
  min-height: 86px;
  padding: 13px 14px;
  border: 0;
}

.metric-card::after {
  width: 70px;
  height: 70px;
  border-radius: 22px;
}

.metric-card span,
.metric-card small {
  font-size: 12px;
  line-height: 1.25;
}

.metric-card strong {
  margin-top: 4px;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.06;
}

.system-completion-panel {
  gap: 14px;
}

.system-completion-summary,
.system-completion-list,
.completion-flow,
.data-audit-grid,
.data-audit-counts,
.decision-stats,
.target-progress-grid,
.target-roi-summary,
.target-playbook-grid {
  gap: 10px;
}

.system-completion-score {
  min-height: 128px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff2f5f, #ff7a8c);
}

.system-completion-score strong {
  font-size: 36px;
  line-height: 1;
}

.system-completion-score span,
.system-completion-score small,
.system-completion-item p,
.system-completion-item small {
  font-size: 12px;
  line-height: 1.38;
}

.system-completion-item {
  min-height: 132px;
  padding: 14px;
}

.system-completion-item header strong {
  font-size: 14px;
}

.system-completion-item header span {
  font-size: 18px;
}

.status-badge,
.tag,
.source-chip,
.cell-path span,
.compact-card-heading span,
.basis-toggle summary,
.legend-item,
.contact-channel-list span,
.contact-point-list a,
.method-pill {
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  color: #858895;
  background: #f3f4f7;
  font-size: 12px;
  line-height: 1.2;
}

.tag.good {
  color: #14765d;
  background: #e7fbf3;
}

.tag.warn {
  color: #9a6a08;
  background: #fff3d9;
}

.tag.risk {
  color: #d92c53;
  background: #fff0f3;
}

.primary-button {
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #ff2f5f, #ff6c7f);
  box-shadow: 0 10px 24px rgba(255, 47, 95, 0.18);
  font-size: 13px;
}

.text-button,
.matrix-sort-button.active,
.matrix-sort-button.active em,
.full-wiki-text summary,
.recent-news-details summary,
.contact-resource-grid summary,
.basis-toggle summary,
.matrix-card-grid header span,
.matrix-card-grid div span {
  color: #ff2f5f;
}

.segment {
  min-height: 34px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
}

.segment.active {
  color: #fff;
  background: #ff2f5f;
  box-shadow: none;
}

.ranking-list {
  gap: 12px;
}

.ranking-card {
  grid-template-columns: 36px minmax(0, 1fr) 64px;
  gap: 14px;
  border: 0;
  border-radius: 14px;
  padding: 15px 16px;
}

.rank-number {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.ranking-score {
  min-width: 58px;
  border-radius: 12px;
  padding: 8px;
  font-size: 20px;
}

.ranking-main h3 {
  font-size: 16px;
  line-height: 1.25;
}

.ranking-main p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.42;
}

.ranking-meta {
  gap: 6px;
}

.decision-stats {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.decision-stats span {
  min-height: 40px;
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 11px;
}

.decision-stats strong {
  font-size: 14px;
}

.track-hero {
  grid-template-columns: minmax(0, 1fr) 72px;
  padding: 22px;
}

.track-hero h3 {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.15;
}

.track-hero > strong {
  min-height: 68px;
  border-radius: 14px;
  font-size: 24px;
}

.track-hero.country-themed-hero {
  min-height: 186px;
}

.track-hero-copy {
  padding: 24px;
}

.flag-color-strip {
  gap: 5px;
  margin-bottom: 10px;
}

.flag-color-strip span {
  width: 32px;
  height: 6px;
}

.track-hero-meta {
  gap: 7px;
  font-size: 12px;
}

.track-hero.country-themed-hero > strong {
  width: 72px;
  min-height: 72px;
  margin: 24px;
}

.detail-metric-grid {
  gap: 7px;
}

.detail-metric-grid article {
  min-height: 52px;
  padding: 9px 10px;
}

.detail-metric-grid span {
  font-size: 12px;
}

.detail-metric-grid strong {
  font-size: clamp(12px, 0.9vw, 15px);
  line-height: 1.2;
}

.operation-table-card {
  margin-bottom: 16px;
}

.operation-table,
.matrix-table {
  font-size: 12.5px;
  line-height: 1.42;
}

.operation-table th,
.operation-table td,
.matrix-table th,
.matrix-table td {
  padding: 9px 10px;
}

.operation-table th,
.matrix-table th {
  color: #858895;
  background: #f6f7fa;
}

.operation-table td,
.matrix-table td {
  color: #252734;
}

.matrix-table-wrap {
  border-radius: 14px;
}

.matrix-card-grid {
  gap: 10px;
}

.target-hero-panel {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 16px;
  padding: 22px;
}

.target-hero-panel h3 {
  margin: 10px 0 9px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.target-hero-panel p {
  font-size: 14px;
  line-height: 1.55;
}

.target-hero-metrics {
  gap: 8px;
}

.target-hero-metrics article {
  min-height: 72px;
  padding: 11px;
}

.target-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.target-action-button {
  min-height: 72px;
  border-radius: 12px;
  padding: 12px;
  gap: 6px;
}

.target-action-button strong {
  font-size: 14px;
}

.target-action-button span {
  font-size: 12px;
  line-height: 1.32;
}

.operation-autopilot-panel {
  gap: 12px;
}

.operation-autopilot-stats {
  gap: 8px;
}

.operation-autopilot-stats article {
  min-height: 64px;
  padding: 11px;
}

.operation-autopilot-stats span,
.operation-autopilot-queue small,
.operation-autopilot-queue p,
.operation-autopilot-queue em,
.operation-autopilot-focus span {
  font-size: 12px;
}

.operation-autopilot-stats strong {
  font-size: 22px;
}

.operation-autopilot-grid {
  gap: 10px;
}

.operation-profit-command {
  border-radius: 12px;
  gap: 10px;
  padding: 11px;
}

.operation-profit-command-head strong {
  font-size: 15px;
}

.operation-profit-command-head p,
.operation-profit-formula {
  font-size: 12px;
}

.operation-profit-metrics,
.operation-profit-grid,
.operation-profit-mandates {
  gap: 8px;
}

.operation-profit-grid article,
.operation-profit-mandates button {
  border-radius: 11px;
  padding: 10px;
}

.operation-profit-mandates button {
  min-height: 124px;
}

.operation-autopilot-cycles,
.operation-autopilot-form-grid {
  gap: 10px;
}

.operation-autopilot-cycles article {
  min-height: 92px;
  padding: 11px;
}

.operation-autopilot-module-states {
  gap: 7px;
}

.operation-autopilot-module-states button {
  min-height: 68px;
  padding: 9px;
}

.operation-autopilot-module-states span {
  font-size: 17px;
}

.operation-autopilot-form {
  border-radius: 12px;
  gap: 8px;
  padding: 11px;
}

.operation-autopilot-form input,
.operation-autopilot-form textarea {
  font-size: 12px;
  padding: 8px 9px;
}

.operation-autopilot-queue {
  border-radius: 12px;
  gap: 9px;
  padding: 11px;
}

.operation-autopilot-queue section {
  padding: 10px;
}

.operation-autopilot-queue header strong,
.operation-autopilot-focus strong {
  font-size: 14px;
}

.operation-autopilot-queue strong {
  font-size: 13px;
}

.target-task-board {
  gap: 10px;
}

.target-task-column {
  padding: 12px;
}

.target-task-column h3 {
  font-size: 14px;
  margin-bottom: 9px;
}

.target-task-card {
  gap: 6px;
  margin-bottom: 9px;
  padding: 11px;
}

.target-task-card span,
.target-task-card p,
.target-task-card small,
.target-task-card em {
  font-size: 12px;
}

.target-task-card strong {
  font-size: 13px;
}

.target-task-actions button,
.mini-button {
  padding: 6px 9px;
  font-size: 12px;
}

.target-progress-card {
  min-height: 86px;
  padding: 11px;
}

.target-progress-card span,
.target-progress-card small,
.target-daily-form label > span,
.target-roi-form label > span,
.target-roi-summary span,
.target-list-card > span,
.target-list-card small {
  font-size: 12px;
}

.target-progress-card strong {
  font-size: 18px;
}

.target-command-grid {
  grid-template-columns: minmax(300px, 0.85fr) minmax(440px, 1.15fr);
  gap: 12px;
}

.target-daily-form,
.target-roi-form {
  gap: 9px;
}

.target-daily-form label,
.target-roi-form label {
  gap: 6px;
  padding: 10px;
}

.target-daily-form input,
.target-daily-form textarea,
.target-roi-form input {
  min-height: 34px;
  padding: 8px 9px;
  font-size: 13px;
}

.target-daily-form .primary-button,
.target-roi-form .primary-button {
  min-height: 44px;
}

.target-roi-summary article {
  min-height: 62px;
  padding: 10px;
}

.target-roi-summary strong {
  font-size: 15px;
}

.target-list-grid {
  gap: 12px;
}

.target-list-card {
  min-height: 168px;
  padding: 14px;
  gap: 8px;
}

.target-list-card h3 {
  font-size: 17px;
}

.target-list-card p {
  font-size: 13px;
  line-height: 1.45;
}

.target-playbook-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.target-playbook-grid .detail-list {
  padding: 12px;
}

.target-inline-form {
  border-radius: 14px;
  padding: 12px;
}

.toast {
  border-radius: 12px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .control-panel {
    padding: 22px 18px;
  }

  .workspace {
    padding-inline: 24px;
  }

  .target-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operation-system-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .operation-network-edge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .target-hero-panel,
  .target-command-grid,
  .target-rap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .control-panel,
  .workspace,
  .view.active {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .control-panel {
    position: static;
    height: auto;
  }

  body {
    font-size: 13px;
  }

  .topbar {
    min-height: auto;
    padding: 18px 16px 24px;
  }

  .topbar-avatar {
    width: 48px;
    height: 48px;
  }

  .workspace {
    margin-top: 0;
    padding: 14px;
  }

  .analysis-panel {
    padding: 16px;
  }

  .metric-card {
    min-height: 78px;
  }

  .ranking-card {
    grid-template-columns: 1fr;
  }

  .ranking-toolbar,
  .ranking-actions,
  .searchable-select,
  .searchable-select-trigger,
  .searchable-select-menu {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ranking-toolbar,
  .ranking-actions {
    align-items: stretch;
  }

  .target-action-grid,
  .target-progress-grid,
  .target-roi-summary,
  .target-playbook-grid,
  .operation-level-card-grid,
  .operation-sixth-task-detail,
  .operation-system-grid,
  .operation-system-plan-grid,
  .operation-autonomy-grid,
  .operation-system-two-col,
  .operation-network-edge-grid,
  .operation-sop-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-sop-overview,
  .operation-sop-step header,
  .operation-sop-step footer {
    grid-template-columns: 1fr;
  }

  .operation-sop-progress span {
    text-align: left;
  }

  .operation-table,
  .matrix-table {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .operation-system-grid,
  .operation-system-plan-grid,
  .operation-autonomy-grid,
  .operation-system-two-col,
  .operation-level-card-grid,
  .operation-sixth-task-detail,
  .operation-network-loop-grid,
  .operation-network-edge-grid,
  .operation-sop-fields {
    grid-template-columns: 1fr;
  }

  .operation-network-heading {
    display: grid;
  }

  .operation-system-module button {
    min-height: 116px;
  }
}

/* Sidebar nav overlap fix */
.tabs .tab {
  position: relative;
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 14px 9px 46px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.tabs .tab::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #8b8e99;
  border: 2px solid currentColor;
  border-radius: 6px;
  background:
    linear-gradient(currentColor 0 0) center / 8px 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 8px no-repeat;
  pointer-events: none;
}

.tabs .tab.active::after {
  color: #ff2f5f;
  background:
    linear-gradient(currentColor 0 0) center / 8px 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 8px no-repeat,
    rgba(255, 47, 95, 0.08);
}

.tabs .tab.active::before {
  right: 0;
  left: auto;
  top: 10px;
  bottom: 10px;
}

@media (max-width: 1180px) {
  .tabs .tab {
    padding-left: 42px;
  }

  .tabs .tab::after {
    left: 12px;
  }
}

/* Global typography request: black Microsoft YaHei text */
:root {
  --ink: #000000;
  --muted: #000000;
  --soft: #000000;
}

body,
button,
input,
select,
textarea,
table,
label,
summary,
.tab,
.sidebar-brand,
.topbar,
.workspace,
.analysis-panel,
.metric-card,
.ranking-card,
.track-hero,
.operation-table,
.matrix-table,
.status-badge,
.tag,
.source-chip,
.method-pill,
.text-button,
.primary-button,
.ghost-button,
.icon-button {
  color: #000000;
  font-family: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
}

.sidebar-brand strong,
.sidebar-brand small,
.brand-mark,
.eyebrow,
h1,
h2,
h3,
p,
small,
strong,
span,
em,
li,
td,
th,
.topbar-subtitle,
.section-heading span:first-child,
.section-heading.wide p,
.time-toolbar p,
.analysis-panel p,
.ranking-main p,
.track-hero p,
.detail-hero p,
.detail-block p,
.metric-card span,
.metric-card small,
.metric-card strong,
.detail-metric-grid span,
.detail-metric-grid strong,
.target-action-button strong,
.target-action-button span,
.target-task-card span,
.target-task-card strong,
.target-task-card p,
.target-task-card small,
.target-task-card em,
.target-progress-card span,
.target-progress-card strong,
.target-progress-card small,
.target-list-card > span,
.target-list-card h3,
.target-list-card p,
.target-list-card small,
.target-roi-summary span,
.target-roi-summary strong,
.table-subtext,
.helper-text {
  color: #000000;
  font-family: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
}

input::placeholder,
textarea::placeholder {
  color: #000000;
  opacity: 0.62;
  font-family: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
}

.brand-mark {
  border: 1px solid #d9dce5;
  background: #ffffff;
}

.tabs .tab::after,
.tabs .tab.active::after {
  color: #000000;
}

body * {
  color: #000000 !important;
  font-family: "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif !important;
}

body input::placeholder,
body textarea::placeholder {
  color: #000000 !important;
  opacity: 0.62;
}

/* Creator-center typography fidelity pass */
:root {
  --ink: #1f2329;
  --muted: #646a73;
  --soft: #8f959e;
}

body,
body * {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Helvetica Neue",
    "Microsoft YaHei",
    Arial,
    sans-serif !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
table,
label,
summary,
.tab,
.sidebar-brand,
.topbar,
.workspace,
.analysis-panel,
.metric-card,
.ranking-card,
.track-hero,
.operation-table,
.matrix-table,
.status-badge,
.tag,
.source-chip,
.method-pill,
.text-button,
.primary-button,
.ghost-button,
.icon-button {
  color: #1f2329 !important;
  font-weight: 400 !important;
}

h1,
h2,
h3,
strong,
th,
.sidebar-brand strong,
.section-heading h2,
.time-toolbar h2,
.operation-table-card h3,
.ranking-main h3,
.track-hero h3,
.target-hero-panel h3,
.target-list-card h3,
.target-task-card strong,
.metric-card strong,
.detail-metric-grid strong,
.target-progress-card strong,
.target-roi-summary strong,
.system-completion-score strong,
.system-completion-item header strong,
.rank-number,
.ranking-score {
  color: #1f2329 !important;
  font-weight: 600 !important;
}

h1,
.sidebar-brand strong {
  font-weight: 700 !important;
}

p,
small,
li,
td,
.eyebrow,
.topbar-subtitle,
.sidebar-brand small,
.panel-section label,
.section-heading span:first-child,
.section-heading.wide p,
.time-toolbar p,
.analysis-panel p,
.ranking-main p,
.track-hero p,
.detail-hero p,
.detail-block p,
.metric-card span,
.metric-card small,
.detail-metric-grid span,
.target-action-button span,
.target-task-card p,
.target-task-card small,
.target-task-card em,
.target-progress-card span,
.target-progress-card small,
.target-list-card p,
.target-list-card small,
.target-roi-summary span,
.table-subtext,
.helper-text {
  color: #646a73 !important;
  font-weight: 400 !important;
}

.tabs .tab {
  color: #646a73 !important;
  font-weight: 500 !important;
}

.tabs .tab.active {
  color: #1f2329 !important;
  font-weight: 600 !important;
}

button,
.text-button,
.primary-button,
.ghost-button,
.icon-button,
.status-badge,
.tag,
.source-chip,
.method-pill,
input,
select,
textarea {
  font-weight: 500 !important;
}

.title-action-review-submit,
.operation-action-backfill-submit,
.confirm-review-panel .primary-button {
  color: #fff !important;
  font-weight: 950 !important;
}

.title-action-review-submit,
.operation-action-backfill-submit {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

input::placeholder,
textarea::placeholder {
  color: #8f959e !important;
  opacity: 1;
  font-weight: 400 !important;
}

.brand-mark,
.tabs .tab::after,
.tabs .tab.active::after {
  color: #1f2329 !important;
}

/* Sidebar title-specific icons */
.tabs .tab[data-view="dashboard"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 0 1 16 0'/%3E%3Cpath d='M7 13a5 5 0 0 1 10 0'/%3E%3Cpath d='M12 13l5-5'/%3E%3Ccircle cx='12' cy='13' r='1.6' fill='black' stroke='none'/%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E");
}

.tabs .tab[data-view="rankings"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M6 16v-5'/%3E%3Cpath d='M11 16V7'/%3E%3Cpath d='M16 16v-8'/%3E%3Cpath d='M6 8l4-3 4 2 4-5'/%3E%3C/svg%3E");
}

.tabs .tab[data-view="targetWorkbench"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M12 18v4'/%3E%3Cpath d='M2 12h4'/%3E%3Cpath d='M18 12h4'/%3E%3C/svg%3E");
}

.tabs .tab[data-view="capability"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5l4 4'/%3E%3Cpath d='M5 19l4.2-1 9.3-9.3a2.8 2.8 0 0 0-4-4L5.2 14 4 19z'/%3E%3Cpath d='M12 7l5 5'/%3E%3C/svg%3E");
}

.tabs .tab[data-view="taxonomy"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4-8 4-8-4 8-4z'/%3E%3Cpath d='M4 12l8 4 8-4'/%3E%3Cpath d='M4 17l8 4 8-4'/%3E%3C/svg%3E");
}

.tabs .tab[data-view="layers"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2' fill='black' stroke='none'/%3E%3Cpath d='M8 12a4 4 0 0 1 8 0'/%3E%3Cpath d='M5 12a7 7 0 0 1 14 0'/%3E%3Cpath d='M2 12a10 10 0 0 1 20 0'/%3E%3C/svg%3E");
}

.tabs .tab[data-view="timeseries"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
}

.tabs .tab[data-view="graph"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='7' r='3'/%3E%3Ccircle cx='18' cy='7' r='3'/%3E%3Ccircle cx='12' cy='18' r='3'/%3E%3Cpath d='M8.5 8.5l7 0'/%3E%3Cpath d='M7.8 9.7l3 5.8'/%3E%3Cpath d='M16.2 9.7l-3 5.8'/%3E%3C/svg%3E");
}

.tabs .tab[data-view="libraries"] {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='7' ry='3'/%3E%3Cpath d='M5 5v6c0 1.7 3.1 3 7 3s7-1.3 7-3V5'/%3E%3Cpath d='M5 11v6c0 1.7 3.1 3 7 3s7-1.3 7-3v-6'/%3E%3C/svg%3E");
}

.tabs .tab::after,
.tabs .tab.active::after {
  content: "" !important;
  width: 22px;
  height: 22px;
  border: 0 !important;
  border-radius: 0;
  background: currentColor !important;
  -webkit-mask: var(--tab-icon) center / 22px 22px no-repeat;
  mask: var(--tab-icon) center / 22px 22px no-repeat;
}

.tabs .tab::after {
  color: #8f959e !important;
}

.tabs .tab.active::after {
  color: #ff2f5f !important;
}

/* Compact opportunity lists: keep details on the routed detail pages. */
.ranking-card.ranking-card-compact {
  grid-template-columns: 36px minmax(0, 1fr) 64px !important;
  align-items: center;
  gap: 14px;
  padding: 14px 16px !important;
}

.ranking-card-compact .ranking-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ranking-card-compact .ranking-main h3 {
  margin: 0 !important;
}

.ranking-card-compact .ranking-summary-text {
  display: -webkit-box;
  margin: 0 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-card-compact .ranking-meta {
  gap: 6px;
  margin-top: 0 !important;
}

.ranking-card-compact .ranking-actions-row {
  margin-top: 0;
}

.ranking-card-compact .detail-link {
  min-height: 30px;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff0f3;
}

/* Routed opportunity detail header: keep rank, copy and score from overlapping. */
.track-detail-shell.ranking-detail-mode {
  gap: 14px;
}

.track-detail-summary-card {
  grid-template-columns: 48px minmax(0, 1fr) 82px !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px 22px !important;
  overflow: hidden;
}

.track-detail-summary-card .rank-number {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  font-size: 18px !important;
}

.track-detail-summary-card .ranking-main {
  min-width: 0;
  gap: 8px !important;
}

.track-detail-summary-card .ranking-main h3 {
  font-size: clamp(22px, 1.7vw, 30px) !important;
  line-height: 1.16 !important;
}

.track-detail-summary-card .ranking-main p {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.45 !important;
}

.track-detail-summary-card .ranking-meta {
  gap: 6px !important;
  margin-top: 0 !important;
}

.track-detail-summary-card .tag {
  max-width: 100%;
  padding: 6px 10px !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  white-space: normal;
}

.track-detail-summary-card .ranking-score {
  width: 78px !important;
  min-width: 78px !important;
  min-height: 58px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  font-size: clamp(26px, 2.1vw, 36px) !important;
  line-height: 1 !important;
}

.track-detail-summary-card .ranking-actions-row {
  margin-top: 0 !important;
}

.track-detail-summary-card .detail-link {
  min-height: 32px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
}

@media (max-width: 820px) {
  .track-detail-summary-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .operation-node-action-grid {
    grid-template-columns: 1fr;
  }

  .operation-control-stats,
  .operation-control-section-grid,
  .operation-governance-grid {
    grid-template-columns: 1fr;
  }

  .track-detail-summary-card .rank-number,
  .track-detail-summary-card .ranking-score {
    width: fit-content;
    min-width: 72px;
  }

  .ranking-card.ranking-card-compact {
    grid-template-columns: 1fr !important;
  }

  .ranking-card-compact .ranking-score {
    width: fit-content;
  }
}

/* Make generation actions read as primary buttons, not plain text links. */
.prominent-action-button {
  align-items: center;
  background: linear-gradient(135deg, #ff2f5f, #ff6b80) !important;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(255, 47, 95, 0.26);
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.prominent-action-button span {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800 !important;
  line-height: 1.2;
}

.prominent-action-button__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.prominent-action-button:hover:not(:disabled) {
  box-shadow: 0 18px 38px rgba(255, 47, 95, 0.32);
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.prominent-action-button:disabled {
  cursor: wait;
  filter: grayscale(0.15);
  opacity: 0.72;
}

.prominent-action-button--compact {
  min-height: 42px;
  padding: 0 16px;
}

.operation-plan-actions .ranking-actions-row {
  margin-top: 14px;
}

/* Keep the left navigation fully visible without its own scroll. */
@media (min-width: 821px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr) !important;
  }

  .control-panel {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden !important;
    padding: 14px 14px 12px !important;
  }

  .sidebar-brand {
    flex: 0 0 auto;
    gap: 8px !important;
    min-height: 50px !important;
    padding-bottom: 12px !important;
  }

  .brand-mark {
    flex: 0 0 38px;
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  .sidebar-brand strong {
    font-size: 15px !important;
    line-height: 1.08 !important;
  }

  .sidebar-brand small {
    max-width: 126px;
    margin-top: 3px !important;
    padding: 1px 6px !important;
    overflow: hidden;
    font-size: 10px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabs {
    display: grid !important;
    flex: 0 0 auto;
    gap: 4px !important;
    margin: 12px 0 2px !important;
    padding-bottom: 12px !important;
  }

  .tabs .tab {
    min-height: 34px !important;
    border-radius: 12px !important;
    padding: 6px 10px 6px 40px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  .tabs .tab::after,
  .tabs .tab.active::after {
    left: 10px !important;
    width: 20px !important;
    height: 20px !important;
    -webkit-mask-size: 20px 20px !important;
    mask-size: 20px 20px !important;
  }

  .tabs .tab.active {
    background: #ffffff !important;
  }

  .tabs .tab.active::before {
    top: 8px !important;
    bottom: 8px !important;
    width: 4px !important;
  }

  .panel-section {
    flex: 0 0 auto;
    padding: 7px 0 !important;
  }

  .panel-section label,
  .section-heading span:first-child {
    margin-bottom: 5px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .control-panel input,
  .control-panel select {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    padding: 6px 9px !important;
    font-size: 12px !important;
  }

  .sidebar-advanced-section {
    display: none !important;
  }
}

@media (min-width: 821px) and (max-height: 760px) {
  .control-panel {
    padding: 10px 12px 8px !important;
  }

  .sidebar-brand {
    min-height: 42px !important;
    padding-bottom: 8px !important;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px !important;
    height: 34px !important;
  }

  .tabs {
    gap: 3px !important;
    margin-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .tabs .tab {
    min-height: 31px !important;
    font-size: 12px !important;
  }

  .panel-section {
    padding: 5px 0 !important;
  }

  .control-panel input,
  .control-panel select {
    height: 30px !important;
    min-height: 30px !important;
  }
}

/* Compact the global header so the bottom blank area does not dominate the page. */
@media (min-width: 821px) {
  .topbar {
    min-height: 132px !important;
    padding: 18px 32px 22px !important;
  }

  .workspace {
    margin-top: -24px !important;
  }

  .operation-node-work-controls {
    align-items: start !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .operation-node-work-controls > .operation-node-action-grid {
    display: contents !important;
  }

  .operation-node-work-controls > .operation-action-backfill-panel,
  .operation-node-work-controls > .operation-node-action-grid > .operation-action-backfill-panel {
    margin-top: 0 !important;
    min-width: 0;
    width: 100%;
  }

  .operation-node-work-controls .operation-task-center-button,
  .operation-node-work-controls .operation-action-backfill-panel summary {
    max-width: 100%;
  }
}

@media (max-width: 1280px) {
  .target-project-intro-head,
  .target-project-control-grid {
    grid-template-columns: 1fr;
  }

  .target-project-intro-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .target-project-stage-row,
  .target-project-budget-split div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .target-project-intro-metrics,
  .target-project-stage-row,
  .target-project-budget-split div,
  .target-project-module-progress {
    grid-template-columns: 1fr;
  }

  .target-project-stop-rule {
    align-items: start;
    display: grid;
  }
}

/* Compact project intro board: keep all decision signals dense and scan-friendly. */
.target-project-intro-panel {
  gap: 8px !important;
  margin-bottom: 10px !important;
  padding: 12px !important;
}

.target-project-intro-head {
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) !important;
}

.target-project-intro-panel .status-badge {
  font-size: 12px;
  padding: 5px 10px;
}

.target-project-intro-panel h2 {
  font-size: 20px !important;
  line-height: 1.15 !important;
  margin: 6px 0 5px !important;
}

.target-project-intro-panel p {
  display: -webkit-box;
  font-size: 13px !important;
  line-height: 1.42 !important;
  max-width: none !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-project-decision {
  border-radius: 12px !important;
  gap: 4px !important;
  padding: 9px 10px !important;
}

.target-project-decision span,
.target-project-mini-card > strong,
.target-project-budget-split > strong,
.target-project-stop-rule strong {
  font-size: 12px !important;
}

.target-project-decision strong {
  font-size: 18px !important;
}

.target-project-decision small {
  display: -webkit-box;
  font-size: 12px !important;
  line-height: 1.35 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-project-intro-metrics {
  gap: 6px !important;
}

.target-project-intro-metrics article {
  border-radius: 10px !important;
  gap: 3px !important;
  min-height: 52px !important;
  padding: 8px !important;
}

.target-project-intro-metrics article span {
  font-size: 11px !important;
}

.target-project-intro-metrics article strong {
  font-size: 13px !important;
  line-height: 1.18 !important;
}

.target-project-stage-row {
  border-radius: 12px !important;
  gap: 5px !important;
  padding: 6px !important;
}

.target-project-stage-row span {
  font-size: 12px !important;
  gap: 5px !important;
  min-height: 28px !important;
  padding: 4px 6px !important;
}

.target-project-stage-row b {
  height: 18px !important;
  width: 18px !important;
}

.target-project-control-grid {
  gap: 8px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.target-project-mini-card {
  border-radius: 12px !important;
  gap: 6px !important;
  min-height: 92px !important;
  padding: 9px !important;
}

.target-project-mini-card ul,
.target-project-evidence-ladder,
.target-project-module-progress {
  gap: 5px !important;
}

.target-project-mini-card li,
.target-project-module-progress span {
  border-radius: 9px !important;
  gap: 1px !important;
  padding: 6px 7px !important;
}

.target-project-mini-card li span,
.target-project-evidence-ladder span {
  font-size: 11px !important;
}

.target-project-mini-card li small,
.target-project-mini-card p {
  display: -webkit-box;
  font-size: 11px !important;
  line-height: 1.3 !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.target-project-evidence-ladder span {
  border-radius: 999px !important;
  padding: 5px 7px !important;
}

.target-project-module-progress {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-project-module-progress b {
  font-size: 16px !important;
}

.target-project-budget-split {
  border-radius: 12px !important;
  gap: 6px !important;
  padding: 9px !important;
}

.target-project-budget-split div {
  gap: 6px !important;
}

.target-project-budget-split span {
  border-radius: 9px !important;
  font-size: 12px !important;
  gap: 2px !important;
  padding: 7px !important;
}

.target-project-budget-split b {
  font-size: 11px !important;
}

.target-project-stop-rule {
  border-radius: 12px !important;
  gap: 8px !important;
  padding: 8px 10px !important;
}

.target-project-stop-rule span {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

@media (max-width: 1500px) {
  .target-project-control-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .secretary-stage-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .secretary-action-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .target-project-intro-head,
  .target-project-control-grid {
    grid-template-columns: 1fr !important;
  }

  .secretary-stage-row,
  .secretary-quick-stats,
  .secretary-action-buttons {
    grid-template-columns: 1fr;
  }

  .secretary-current-goal,
  .secretary-diagnosis,
  .secretary-queue-heading,
  .secretary-operation-evidence > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .secretary-queue-heading span {
    text-align: left;
  }

  .secretary-flow-modal {
    align-items: end;
    padding: 0;
  }

  .secretary-flow-modal-panel {
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    max-height: 94dvh;
    width: 100%;
  }

  .secretary-flow-modal-header {
    padding: 14px 14px 12px;
  }

  .secretary-flow-modal-body {
    padding: 14px 14px 18px;
  }

  .secretary-flow-task-brief dl {
    grid-template-columns: 1fr;
  }

  .secretary-flow-modal-actions {
    bottom: -18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 2px -14px -18px;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .secretary-flow-modal-actions .secretary-flow-save-next {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .secretary-flow-complete {
    border-radius: 20px 20px 0 0;
    padding: 30px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* Keep the three node actions compact, equal, and aligned. */
.operation-node-work-controls {
  align-items: stretch;
  gap: 10px !important;
  margin: 10px 0 !important;
}

.operation-node-work-controls .operation-action-backfill-panel,
.operation-node-work-controls .operation-task-center-entry {
  align-content: center;
  min-height: 70px;
  padding: 8px 10px !important;
}

.operation-node-work-controls .operation-action-backfill-panel summary,
.operation-node-work-controls .operation-task-center-button {
  box-sizing: border-box;
  gap: 8px;
  min-height: 40px !important;
  min-width: 0;
  padding: 7px 10px !important;
  width: min(100%, 220px);
}

@media (prefers-reduced-motion: reduce) {
  .secretary-action-card,
  .secretary-flow-modal-close,
  .secretary-flow-progress span {
    transition: none;
  }
}

.operation-node-work-controls .operation-action-backfill-panel summary {
  font-size: 13px;
}

.operation-node-work-controls .operation-task-center-button strong {
  font-size: 13px;
  line-height: 1.1;
}

.operation-node-work-controls .operation-task-center-button em,
.operation-node-work-controls .operation-action-backfill-panel summary em {
  font-size: 11px;
  padding: 5px 8px;
  white-space: nowrap;
}

.operation-node-work-controls .operation-task-center-plus,
.operation-node-work-controls .operation-action-backfill-panel summary::before {
  font-size: 16px;
  height: 26px;
  width: 26px;
}

/* Key metrics on routed opportunity pages: compress from four rows into two. */
.track-detail-metrics-panel {
  padding: 20px 22px !important;
}

.track-detail-metrics-panel .section-heading {
  margin-bottom: 12px !important;
}

.track-detail-metrics-panel .detail-metric-grid {
  grid-template-columns: repeat(17, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.track-detail-metrics-panel .detail-metric-grid article {
  min-height: 64px !important;
  border-radius: 8px !important;
  padding: 8px 7px !important;
}

.track-detail-metrics-panel .detail-metric-grid span {
  display: block;
  min-height: 30px;
  color: #646a73 !important;
  font-size: 12px !important;
  line-height: 1.22 !important;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.track-detail-metrics-panel .detail-metric-grid strong {
  display: block;
  margin-top: 3px !important;
  color: #1f2329 !important;
  font-size: clamp(15px, 1.05vw, 22px) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
}

@media (max-width: 1600px) {
  .track-detail-metrics-panel .detail-metric-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .track-detail-metrics-panel .detail-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Country and industry policy intelligence page. */
.target-project-intro-actions {
  display: flex;
  margin-top: 9px;
}

.target-policy-entry-button {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 440px;
  padding: 8px 12px !important;
  text-align: left;
}

.target-policy-entry-button strong {
  color: inherit;
  font-size: 13px;
}

.target-policy-entry-button span {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.78;
}

.policy-intelligence-page {
  display: grid;
  gap: 18px;
}

.policy-intelligence-toolbar,
.policy-intelligence-toolbar-actions,
.policy-section-heading,
.policy-regulator-actions,
.policy-signal-card-head,
.policy-signal-source-row,
.policy-signal-buttons {
  align-items: center;
  display: flex;
}

.policy-intelligence-toolbar,
.policy-section-heading,
.policy-signal-card-head {
  justify-content: space-between;
}

.policy-intelligence-toolbar-actions,
.policy-regulator-actions,
.policy-signal-source-row,
.policy-signal-buttons {
  gap: 10px;
}

.policy-intelligence-hero {
  background: linear-gradient(135deg, #f7f9fc, #eef3f9);
  border: 1px solid #dce5ef;
  border-left: 5px solid #64748b;
  border-radius: 16px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  padding: 22px;
}

.policy-intelligence-hero.tone-positive {
  background: linear-gradient(135deg, #f5fbf7, #eaf7ef);
  border-left-color: #168354;
}

.policy-intelligence-hero.tone-negative {
  background: linear-gradient(135deg, #fff8f7, #fceeed);
  border-left-color: #bd3b35;
}

.policy-intelligence-hero.tone-mixed {
  background: linear-gradient(135deg, #fffaf0, #fbf2dd);
  border-left-color: #a66516;
}

.policy-intelligence-hero h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  margin: 8px 0;
}

.policy-intelligence-hero p {
  color: #535f6e;
  line-height: 1.65;
  margin: 0 0 10px;
  max-width: 880px;
}

.policy-intelligence-hero > div > small {
  color: #788493;
}

.policy-intelligence-hero aside {
  align-content: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(117, 134, 153, 0.22);
  border-radius: 14px;
  display: grid;
  gap: 7px;
  padding: 18px;
}

.policy-intelligence-hero aside span,
.policy-intelligence-hero aside small {
  color: #687586;
}

.policy-intelligence-hero aside strong {
  color: #1e293b;
  font-size: 26px;
}

.policy-intelligence-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.policy-intelligence-metrics article {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 13px 15px;
}

.policy-intelligence-metrics span {
  color: #6b7787;
  font-size: 12px;
}

.policy-intelligence-metrics strong {
  color: #192433;
  font-size: 24px;
}

.policy-intelligence-error {
  background: #fff2f1;
  border: 1px solid #efc7c3;
  border-radius: 10px;
  color: #a52d28 !important;
  margin: 0 !important;
  padding: 11px 13px;
}

.policy-intelligence-empty {
  align-content: center;
  background: #f7f9fb;
  border: 1px dashed #cbd5df;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  min-height: 180px;
  padding: 26px;
  text-align: center;
}

.policy-intelligence-empty.compact {
  min-height: 120px;
}

.policy-intelligence-empty span {
  color: #687586;
}

.policy-regulator-panel,
.policy-signal-section,
.policy-suggested-tasks {
  background: #fff;
  border: 1px solid #e1e7ee;
  border-radius: 16px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.policy-section-heading {
  gap: 16px;
}

.policy-section-heading h3 {
  font-size: 21px;
  margin: 4px 0;
}

.policy-section-heading p {
  color: #687586;
  margin: 0 !important;
}

.policy-coverage-badge,
.policy-task-status,
.policy-signal-labels span {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.policy-coverage-badge {
  background: #edf3f8;
  color: #42546a;
}

.policy-source-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.policy-source-grid article {
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 13px;
}

.policy-source-grid article > div:first-child {
  display: grid;
  gap: 4px;
}

.policy-source-grid article span,
.policy-source-grid article small {
  color: #6b7787;
  font-size: 12px;
}

.policy-source-grid article strong {
  color: #1f2937;
  line-height: 1.35;
}

.policy-source-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.policy-source-meta a,
.policy-signal-source-row a {
  color: #145eaa;
  font-weight: 700;
  text-decoration: none;
}

.policy-source-meta a:hover,
.policy-signal-source-row a:hover {
  text-decoration: underline;
}

.policy-signal-list {
  display: grid;
  gap: 12px;
}

.policy-signal-card {
  background: #f8fafc;
  border: 1px solid #dfe6ee;
  border-left: 5px solid #64748b;
  border-radius: 14px;
  display: grid;
  gap: 11px;
  padding: 16px;
}

.policy-signal-card.tone-positive {
  background: #f4fbf7;
  border-left-color: #168354;
}

.policy-signal-card.tone-negative {
  background: #fff7f6;
  border-left-color: #bd3b35;
}

.policy-signal-card.tone-mixed {
  background: #fffaf0;
  border-left-color: #a66516;
}

.policy-signal-card h4 {
  color: #172231;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

.policy-signal-card > p {
  color: #4b596b;
  line-height: 1.65;
  margin: 0 !important;
}

.policy-signal-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.policy-signal-labels span {
  background: #e9eef4;
  color: #4b5b6e;
}

.policy-signal-card.tone-positive .policy-impact-label {
  background: #dcefe3;
  color: #0d6940;
}

.policy-signal-card.tone-negative .policy-impact-label {
  background: #f5dedc;
  color: #9c2f2a;
}

.policy-signal-card.tone-neutral .policy-impact-label,
.policy-signal-card.tone-mixed .policy-impact-label {
  background: #efe8d9;
  color: #765019;
}

.policy-task-status.status-created {
  background: #deefe4;
  color: #116a42;
}

.policy-task-status.status-ignored {
  background: #e9edf1;
  color: #596575;
}

.policy-task-status.status-pending {
  background: #f7e9d1;
  color: #85560f;
}

.policy-signal-reason,
.policy-signal-actions-list {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.policy-signal-reason strong,
.policy-signal-actions-list strong {
  color: #314054;
  font-size: 12px;
}

.policy-signal-reason span,
.policy-signal-actions-list li {
  color: #526174;
  line-height: 1.55;
}

.policy-signal-actions-list ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
}

.policy-signal-source-row {
  color: #6b7787;
  flex-wrap: wrap;
  font-size: 12px;
}

.policy-signal-buttons {
  flex-wrap: wrap;
}

.policy-suggested-tasks > div:last-child {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.policy-suggested-tasks article {
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.policy-suggested-tasks article span,
.policy-suggested-tasks article small {
  color: #687586;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .policy-intelligence-hero {
    grid-template-columns: 1fr;
  }

  .policy-intelligence-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .policy-intelligence-page {
    gap: 12px;
  }

  .policy-intelligence-toolbar,
  .policy-signal-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-intelligence-toolbar-actions {
    justify-content: space-between;
    width: 100%;
  }

  .policy-intelligence-hero,
  .policy-regulator-panel,
  .policy-signal-section,
  .policy-suggested-tasks {
    border-radius: 12px;
    padding: 14px;
  }

  .policy-intelligence-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .policy-intelligence-metrics article {
    min-height: 68px;
    padding: 10px;
  }

  .policy-regulator-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .policy-regulator-actions .secondary-button,
  .policy-signal-buttons button {
    justify-content: center;
    width: 100%;
  }

  .policy-signal-buttons {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Work-suite visual layer: presentation only, all existing IDs and actions stay intact. */
:root {
  --ink: #1f2329;
  --muted: #646a73;
  --soft: #8f959e;
  --line: #dee0e3;
  --surface: #ffffff;
  --surface-2: #f5f6f7;
  --surface-3: #f8f9fa;
  --sidebar: #f5f6f7;
  --teal: #3370ff;
  --teal-dark: #1456f0;
  --blue: #3370ff;
  --blue-soft: #e8f0ff;
  --shadow: 0 2px 8px rgba(31, 35, 41, 0.02);
  --soft-shadow: 0 2px 8px rgba(31, 35, 41, 0.02);
  --radius: 12px;
}

body {
  background: #f5f6f7 !important;
  color: #1f2329 !important;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Tahoma, Arial, sans-serif !important;
}

.control-panel {
  border-right: 1px solid #dee0e3 !important;
  background: #f5f6f7 !important;
}

.brand-mark {
  border-radius: 10px !important;
  background: #3370ff !important;
  box-shadow: 0 8px 18px rgba(51, 112, 255, 0.18) !important;
}

.sidebar-brand strong,
.section-heading h2,
.time-toolbar h2,
.operation-table-card h3 {
  color: #1f2329 !important;
}

.sidebar-brand small {
  border-color: #d6e2ff !important;
  background: #eef4ff !important;
  color: #1456f0 !important;
}

.tabs .tab {
  border-radius: 8px !important;
  color: #4e5969 !important;
  transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease !important;
}

.tabs .tab:hover {
  background: #eaecef !important;
  color: #1f2329 !important;
}

.tabs .tab.active {
  background: #e8f0ff !important;
  color: #1456f0 !important;
  box-shadow: none !important;
}

.tabs .tab.active::before {
  background: #3370ff !important;
}

.tabs .tab::after,
.tabs .tab.active::after {
  background-color: currentColor !important;
}

input,
select,
textarea,
.control-panel input,
.control-panel select {
  border-color: #dee0e3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1f2329 !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3370ff !important;
  box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.12) !important;
}

.topbar {
  border-bottom: 1px solid #dee0e3 !important;
  background: #fff !important;
}

.topbar-avatar {
  border-color: #d6e2ff !important;
  background: #3370ff !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(51, 112, 255, 0.16) !important;
}

.eyebrow,
.topbar-subtitle,
.section-heading.wide p,
.time-toolbar p,
.analysis-panel p,
.ranking-main p,
.track-hero p,
.detail-hero p,
.detail-block p {
  color: #646a73 !important;
}

.primary-button,
.prominent-action-button,
.operation-task-center-button {
  border-color: #3370ff !important;
  background: #3370ff !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(51, 112, 255, 0.18) !important;
}

.primary-button:hover,
.prominent-action-button:hover,
.operation-task-center-button:hover {
  border-color: #1456f0 !important;
  background: #1456f0 !important;
}

.ghost-button,
.secondary-button,
.text-button,
.icon-button {
  border-color: #dee0e3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #4e5969 !important;
  box-shadow: none !important;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease !important;
}

.ghost-button:hover,
.secondary-button:hover,
.text-button:hover,
.icon-button:hover {
  border-color: #bacefd !important;
  background: #f5f8ff !important;
  color: #1456f0 !important;
}

.metric-card,
.analysis-panel,
.layer-card,
.opportunity-card,
.pipeline-step,
.insight-card,
.track-hero,
.matrix-heading,
.matrix-table-wrap,
.operation-modal-panel,
.operation-glossary-card,
.country-industry-grid article,
.search-signal-grid article,
.pillar-card,
.industry-impact-grid article,
.capability-row,
.profile-row,
.gap-card,
.package-card,
.provider-card,
.flow-step,
.plain-summary,
.taxonomy-card,
.library-item,
.route-card,
.table-card,
.formula-card,
.target-hero-panel,
.target-task-column,
.target-task-card,
.target-progress-card,
.target-list-card,
.target-log-card,
.policy-intelligence-hero,
.policy-regulator-panel,
.policy-signal-section,
.policy-suggested-tasks {
  border-color: #dee0e3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(31, 35, 41, 0.02) !important;
}

.opportunity-card,
.table-card,
.target-task-card,
.target-list-card,
.route-card,
.library-item,
.policy-signal-card {
  transition: border-color 200ms ease, box-shadow 300ms ease, background-color 200ms ease !important;
}

.opportunity-card:hover,
.table-card:hover,
.target-task-card:hover,
.target-list-card:hover,
.route-card:hover,
.library-item:hover,
.policy-signal-card:hover {
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.08) !important;
  transform: none !important;
}

@media (min-width: 821px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr) !important;
  }

  .topbar {
    min-height: 116px !important;
    padding: 18px 28px 26px !important;
  }

  .workspace {
    margin-top: -18px !important;
    padding: 0 24px 32px !important;
  }
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden !important;
  }

  .app-shell {
    width: 100% !important;
    max-width: 100% !important;
  }

  .workspace {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .topbar {
    min-height: 92px !important;
    padding: 14px 16px 22px !important;
  }

  .summary-grid,
  .dashboard-grid,
  .split-grid,
  .library-grid,
  .target-workbench-shell {
    gap: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body *,
  body *::before,
  body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Mobile global-collaboration shell: compact work-suite navigation. */
@media (max-width: 820px) {
  .control-panel {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    width: 100% !important;
    height: auto !important;
    padding: 10px 16px 12px !important;
    overflow: visible !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dee0e3 !important;
  }

  .sidebar-brand,
  .tabs,
  .control-panel > .panel-section:first-of-type {
    grid-column: 1 / -1;
  }

  .sidebar-brand {
    min-height: 44px !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
  }

  .brand-mark {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .sidebar-brand strong {
    font-size: 15px !important;
  }

  .sidebar-brand small {
    margin-top: 1px !important;
    font-size: 10px !important;
  }

  .tabs {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-bottom: 1px solid #dee0e3 !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs .tab {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 36px !important;
    padding: 7px 12px !important;
    text-align: center !important;
  }

  .tabs .tab::after,
  .tabs .tab.active::before {
    display: none !important;
  }

  .control-panel > .panel-section {
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
  }

  .control-panel > .panel-section label {
    margin-bottom: 4px !important;
    font-size: 11px !important;
  }

  .control-panel > .panel-section input,
  .control-panel > .panel-section select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  .control-panel > .sidebar-advanced-section {
    display: none !important;
  }

  .topbar {
    min-height: 60px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
  }

  .topbar-profile {
    flex: 1 1 auto;
    gap: 9px !important;
    min-width: 0;
  }

  .topbar-avatar {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .topbar .eyebrow,
  .topbar-subtitle {
    display: none !important;
  }

  .topbar h1 {
    overflow: hidden;
    font-size: 18px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px !important;
  }

  .topbar-actions button {
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  .workspace {
    margin-top: 0 !important;
    padding: 12px 16px 24px !important;
  }
}
