.settings-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}
.settings-tabs[hidden] {
  display: none !important;
}
.settings-tab {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}
.settings-tab.on {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cm-view {
  min-height: 100vh;
  background: var(--bg);
}
.cm-wrap {
  width: min(100% - 32px, 1320px);
  padding-bottom: 100px;
}
.cm-view *,
.cm-view *::before,
.cm-view *::after {
  box-sizing: border-box;
}
.cm-view b,
.cm-view strong,
.cm-view small,
.cm-view text {
  font-variant-numeric: tabular-nums lining-nums;
}
.cm-loading,
.cm-error {
  min-height: 65vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
}
.cm-loading > span {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cmspin .8s linear infinite;
}
@keyframes cmspin { to { rotate: 360deg; } }
.cm-loading b {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.cm-loading small,
.cm-error p {
  color: var(--muted);
}
.cm-error span,
.cm-kicker,
.cm-panel-head span,
.cm-brief > div:first-child > span,
.cm-next-move > span,
.cm-platforms-title > span {
  color: var(--accent);
  font: 760 .68rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cm-error h1 {
  margin: 10px 0 2px;
  font: 800 1.65rem/1.1 var(--font-display);
}
.cm-error .btn {
  width: max-content;
  margin: 18px auto 0;
}

.cm-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}
.cm-back {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.cm-back::before {
  content: "←";
  margin-right: 7px;
}
.cm-back:hover {
  color: var(--text);
}
.cm-hero h1 {
  margin-top: 9px;
  font: 820 var(--text-xl)/1 var(--font-display);
  letter-spacing: -.035em;
}
.cm-hero p {
  max-width: 66ch;
  margin-top: 10px;
  color: var(--text-2);
  font-size: .9rem;
}
.cm-live {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px 8px;
  flex: none;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.cm-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px var(--ok-soft);
}
.cm-live span {
  font-size: .76rem;
  font-weight: 800;
}
.cm-live small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .68rem;
}

.cm-platforms {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.cm-platforms-title {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 4px 8px;
  border-right: 1px solid var(--line-soft);
}
.cm-platforms-title small {
  color: var(--muted);
  font-size: .69rem;
}
.cm-platform-links {
  display: grid;
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.cm-platform-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  transition: border-color .16s ease, background .16s ease, translate .16s ease;
}
.cm-platform-links a:hover {
  translate: 0 -1px;
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.cm-platform-links a > i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--accent);
  font: 700 .62rem var(--font-mono);
  font-style: normal;
}
.cm-platform-links b,
.cm-platform-links small {
  display: block;
  white-space: nowrap;
}
.cm-platform-links b {
  font-size: .7rem;
}
.cm-platform-links small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .6rem;
}

.cm-controls {
  position: sticky;
  top: 62px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, .72fr)) minmax(175px, 1fr) auto;
  gap: 8px;
  padding: 11px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}
.cm-controls label {
  min-width: 0;
}
.cm-controls label > span {
  display: block;
  margin: 0 0 5px 4px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cm-controls select,
.cm-controls input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .76rem;
}
.cm-control-actions {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.cm-controls button {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.cm-controls button.cm-export {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
}
.cm-controls button.cm-export:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.cm-brief {
  display: grid;
  grid-template-columns: 1fr 138px 138px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--accent);
}
.cm-brief > div {
  padding: 18px 20px;
}
.cm-brief > div + div {
  display: grid;
  align-content: center;
  border-left: 1px solid var(--line);
}
.cm-brief > div:first-child b {
  display: block;
  margin-top: 8px;
  font: 780 1.02rem/1.25 var(--font-display);
}
.cm-brief p {
  margin-top: 5px;
  color: var(--text-2);
  font-size: .74rem;
}
.cm-brief small {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .05em;
}
.cm-brief > div:not(:first-child) > b {
  margin-top: 5px;
  font: 820 1.45rem var(--font-display);
}

.cm-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-top: 10px;
}
.cm-kpis article {
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 16px;
  overflow: clip;
  contain: paint;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.cm-kpis span {
  display: block;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cm-kpis b {
  display: block;
  margin-top: 16px;
  font: 820 1.58rem/1 var(--font-display);
  letter-spacing: -.025em;
}
.cm-kpis small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.35;
}
.cm-kpis .money {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.cm-delta.up { color: var(--ok); }
.cm-delta.down { color: var(--bad); }
.cm-delta.flat { color: var(--muted); }

.cm-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 12px 40px -38px rgba(0, 0, 0, .65);
}
.cm-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cm-panel-head h2 {
  margin-top: 6px;
  font: 780 1.05rem/1.2 var(--font-display);
  letter-spacing: -.015em;
}
.cm-panel-head > b {
  color: var(--muted);
  font: 700 .67rem var(--font-mono);
  text-align: right;
}
.cm-chart-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 12px;
  margin-top: 12px;
}
.cm-chart-panel {
  min-width: 0;
}
.cm-chart {
  margin-top: 11px;
}
.cm-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.cm-chart text {
  fill: var(--muted);
  font: 600 10px var(--font-mono);
}
.cm-gridline {
  stroke: var(--line-soft);
  stroke-width: 1;
}
.cm-question-bar {
  fill: color-mix(in oklab, var(--accent) 24%, transparent);
}
.cm-line-area {
  fill: color-mix(in oklab, var(--info) 10%, transparent);
}
.cm-line {
  fill: none;
  stroke: var(--info);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cm-line-dot {
  fill: var(--surface);
  stroke: var(--info);
  stroke-width: 3;
}
.cm-revenue-bar {
  fill: var(--accent);
}
.cm-buyer-dot {
  fill: var(--ok);
  stroke: var(--surface);
  stroke-width: 2;
}
.cm-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.cm-chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .65rem;
}
.cm-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}
.cm-chart-legend i.learners { border: 2px solid var(--info); border-radius: 50%; background: transparent; }
.cm-chart-legend i.questions { background: color-mix(in oklab, var(--accent) 50%, transparent); }
.cm-chart-legend i.buyers { border-radius: 50%; background: var(--ok); }
.cm-daily-ledger {
  display: grid;
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  gap: 5px;
  margin-top: 8px;
}
.cm-daily-ledger > div {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-2);
}
.cm-daily-ledger > div.today {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.cm-daily-ledger span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 750;
  text-transform: uppercase;
}
.cm-daily-ledger b {
  font: 750 .74rem var(--font-mono);
}
.cm-daily-ledger b small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font: 500 .55rem var(--font-body);
}

.cm-insight-grid,
.cm-command {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 12px;
  margin-top: 12px;
}
.cm-insight-grid > *,
.cm-command > * {
  min-width: 0;
}
.cm-command {
  grid-template-columns: .9fr 1.1fr;
}
.cm-source-table {
  display: grid;
  margin-top: 16px;
  max-width: 100%;
}
.cm-source-table > div {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(4, minmax(64px, .7fr));
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.cm-source-table span {
  min-width: 0;
}
.cm-source-table b,
.cm-source-table small {
  display: block;
}
.cm-source-table b {
  overflow: hidden;
  color: var(--text);
  font-size: .73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-source-table small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .61rem;
}

.cm-action-list {
  display: grid;
  margin-top: 16px;
}
.cm-action-list button {
  display: grid;
  grid-template-columns: 10px 1fr 44px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}
.cm-action-list button:hover b { color: var(--accent); }
.cm-action-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.cm-action-dot.hot { background: var(--bad); }
.cm-action-dot.warn { background: var(--warn); }
.cm-action-dot.good { background: var(--ok); }
.cm-action-list span b,
.cm-action-list span small {
  display: block;
}
.cm-action-list span b { font-size: .74rem; }
.cm-action-list span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .63rem;
}
.cm-action-list strong {
  text-align: right;
  font: 800 .78rem var(--font-mono);
}
.cm-action-list strong small {
  display: block;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 600;
}
.cm-module-bars {
  display: grid;
  gap: 12px;
  margin-top: 19px;
}
.cm-module-bars > div {
  display: grid;
  grid-template-columns: 145px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.cm-module-bars span b,
.cm-module-bars span small {
  display: block;
}
.cm-module-bars span b { font-size: .7rem; }
.cm-module-bars span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .61rem;
}
.cm-module-bars i,
.cm-funnel i,
.cm-score i,
.cm-module-grid i {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}
.cm-module-bars em,
.cm-funnel em,
.cm-score em,
.cm-module-grid em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.cm-module-bars strong {
  font: 700 .68rem var(--font-mono);
  text-align: right;
}
.cm-funnel {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}
.cm-funnel > div {
  display: grid;
  grid-template-columns: 125px 1fr 30px;
  gap: 10px;
  align-items: center;
  font-size: .69rem;
}
.cm-funnel span {
  font-size: .7rem;
  font-weight: 700;
}
.cm-funnel span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 500;
}
.cm-funnel b {
  text-align: right;
  font: 700 .7rem var(--font-mono);
}
.cm-leak > p {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-2);
  font-size: .75rem;
  line-height: 1.55;
}

.cm-table-panel {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}
.cm-table-panel > .cm-panel-head {
  padding: 20px;
}
.cm-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
}
.cm-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}
.cm-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .64rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cm-table td {
  padding: 14px;
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: .71rem;
}
.cm-table tbody tr {
  cursor: pointer;
  transition: background .15s ease;
}
.cm-table tbody tr:hover {
  background: var(--accent-soft);
}
.cm-table td > b,
.cm-table td > small {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-table td > b { font-size: .72rem; }
.cm-table td > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .62rem;
}
.cm-score {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-score > b { font: 800 .78rem var(--font-mono); }
.cm-score i { width: 58px; }
.cm-signal {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: .62rem;
  font-weight: 800;
}
.cm-signal.hot { background: var(--bad-soft); color: var(--bad); }
.cm-signal.warn { background: color-mix(in oklab, var(--warn) 13%, transparent); color: var(--warn); }
.cm-signal.good { background: var(--ok-soft); color: var(--ok); }
.cm-cards { display: none; }

.cm-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 250;
  width: min(520px, 96vw);
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -45px rgba(0, 0, 0, .7);
  animation: cmSlide .26s var(--ease) both;
}
@keyframes cmSlide {
  from { translate: 40px 0; opacity: 0; }
}
.cm-close {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--muted);
  font-size: 1.6rem;
}
.cm-drawer h2 {
  margin-top: 10px;
  padding-right: 35px;
  font: 820 1.5rem/1 var(--font-display);
}
.cm-drawer > a {
  display: inline-block;
  margin-top: 7px;
  color: var(--accent);
  font-size: .75rem;
}
.cm-drawer-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0;
}
.cm-drawer-kpis > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.cm-drawer-kpis span,
.cm-drawer dt,
.cm-mock-row span {
  color: var(--muted);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cm-drawer-kpis b {
  display: block;
  margin-top: 6px;
  font: 780 1rem var(--font-display);
}
.cm-drawer-kpis small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .6rem;
}
.cm-next-move {
  padding: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
}
.cm-next-move > b {
  display: block;
  margin-top: 7px;
  font-size: .83rem;
}
.cm-next-move p {
  margin-top: 5px;
  color: var(--text-2);
  font-size: .7rem;
  line-height: 1.5;
}
.cm-next-move.hot { border-color: color-mix(in oklab, var(--bad) 30%, var(--line)); background: var(--bad-soft); }
.cm-next-move.warn { border-color: color-mix(in oklab, var(--warn) 30%, var(--line)); background: color-mix(in oklab, var(--warn) 8%, var(--surface)); }
.cm-drawer h3 {
  margin: 26px 0 13px;
  font: 760 .9rem var(--font-display);
}
.cm-heat {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
}
.cm-heat i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: color-mix(in oklab, var(--accent) calc(var(--heat) * 80%), var(--surface-3));
}
.cm-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.cm-module-grid > div,
.cm-mock-row > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.cm-module-grid span {
  display: block;
  color: var(--text-2);
  font-size: .63rem;
}
.cm-module-grid b {
  display: block;
  margin-top: 5px;
  font: 780 .8rem var(--font-mono);
}
.cm-module-grid small {
  display: block;
  margin: 2px 0 7px;
  color: var(--muted);
  font-size: .58rem;
}
.cm-module-grid .empty { opacity: .62; }
.cm-mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.cm-mock-row b {
  display: block;
  margin-top: 5px;
  font: 780 .9rem var(--font-mono);
}
.cm-drawer dl {
  display: grid;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.cm-drawer dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-soft);
}
.cm-drawer dl > div:last-child { border: 0; }
.cm-drawer dd {
  max-width: 60%;
  margin: 0;
  text-align: right;
  font-size: .69rem;
}
.cm-timeline { display: grid; }
.cm-timeline > div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  min-height: 48px;
}
.cm-timeline i {
  position: relative;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cm-timeline i::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  width: 1px;
  height: 34px;
  background: var(--line);
}
.cm-timeline > div:last-child i::after { display: none; }
.cm-timeline b { display: block; font-size: .71rem; text-transform: capitalize; }
.cm-timeline small { display: block; margin-top: 3px; color: var(--muted); font-size: .62rem; }
.cm-empty { padding: 12px 0; color: var(--muted); font-size: .71rem; }

@media (max-width: 1120px) {
  .cm-platforms { grid-template-columns: 125px minmax(0, 1fr); }
  .cm-platform-links { grid-template-columns: repeat(9, minmax(105px, 1fr)); }
  .cm-kpis { grid-template-columns: repeat(3, 1fr); }
  .cm-controls { grid-template-columns: repeat(3, 1fr); }
  .cm-search { grid-column: span 2; }
  .cm-control-actions { justify-content: flex-end; }
  .cm-chart-grid { grid-template-columns: 1fr; }
  .cm-cash-panel .cm-chart { max-width: 760px; margin-inline: auto; }
}
@media (max-width: 850px) {
  .cm-insight-grid,
  .cm-command { grid-template-columns: 1fr; }
  .cm-daily-ledger { overflow-x: auto; grid-template-columns: repeat(7, minmax(94px, 1fr)); }
}
@media (max-width: 700px) {
  .cm-wrap { width: calc(100% - 24px); }
  .cm-hero { align-items: flex-start; padding-top: 12px; }
  .cm-live { display: none; }
  .cm-back { margin-bottom: 23px; }
  .cm-hero h1 { font-size: 1.75rem; }
  .cm-platforms { grid-template-columns: 1fr; }
  .cm-platforms-title { grid-template-columns: auto 1fr; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .cm-platforms-title small { text-align: right; }
  .cm-controls { position: static; grid-template-columns: 1fr 1fr; }
  .cm-search { grid-column: 1 / -1; }
  .cm-control-actions { grid-column: 1 / -1; }
  .cm-control-actions button { flex: 1; }
  .cm-brief { grid-template-columns: 1fr 1fr; }
  .cm-brief > div:first-child { grid-column: 1 / -1; }
  .cm-brief > div:nth-child(2) { border-top: 1px solid var(--line); border-left: 0; }
  .cm-brief > div:nth-child(3) { border-top: 1px solid var(--line); }
  .cm-kpis { grid-template-columns: 1fr 1fr; }
  .cm-kpis article { min-height: 108px; }
  .cm-panel { padding: 16px; }
  .cm-chart svg { min-width: 560px; }
  .cm-chart { overflow-x: auto; overscroll-behavior-inline: contain; }
  .cm-source-table { overflow-x: auto; }
  .cm-source-table > div { min-width: 600px; }
  .cm-table-wrap { display: none; }
  .cm-cards { display: grid; border-top: 1px solid var(--line-soft); }
  .cm-cards button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    width: 100%;
    padding: 15px 17px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
  }
  .cm-cards button > span:first-child b,
  .cm-cards button > span:first-child small { display: block; }
  .cm-cards button > span:first-child small,
  .cm-cards button > small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
  .cm-cards strong { font-size: .69rem; }
  .cm-module-bars > div { grid-template-columns: 120px 1fr 34px; }
  .cm-drawer { padding: 24px 18px; }
}
@media (max-width: 430px) {
  .cm-kpis { grid-template-columns: 1fr 1fr; }
  .cm-kpis b { font-size: 1.35rem; }
  .cm-module-grid { grid-template-columns: 1fr; }
  .cm-action-list button { grid-template-columns: 9px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-loading > span { animation-duration: 1.6s; }
  .cm-drawer { animation: none; }
}
