@font-face {
  font-family: "IndosatTitle";
  src: url("fonts/IndosatRegular-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IndosatTitle";
  src: url("fonts/IndosatMedium-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IndosatTitle";
  src: url("fonts/IndosatBold-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IndosatSans";
  src: url("fonts/IndosatSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IndosatSans";
  src: url("fonts/IndosatSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IndosatSans";
  src: url("fonts/IndosatSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "IndosatSans";
  src: url("fonts/IndosatSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ioh-primary-red: #EC008C;
  --ioh-yellow: #F4C300;
  --ioh-orange: #1CB5A9;
  --ioh-deep-accent: #C11E92;
  --ioh-black: #4C4F55;
  --ioh-white: #FFFFFF;
  --ioh-light-bg: #E3E3E3;
  --ioh-border: rgba(76, 79, 85, 0.18);
  --ioh-text-muted: rgba(76, 79, 85, 0.78);
  --ioh-magenta: #EC008C;
  --ioh-teal: #1CB5A9;
  --ioh-purple: #C11E92;
  --ioh-red: #F7192B;
  --ioh-charcoal: #4C4F55;
  --ioh-neutral-gray: #BFC1C4;
  --ioh-magenta-rgb: 236, 0, 140;
  --ioh-teal-rgb: 28, 181, 169;
  --ioh-yellow-rgb: 244, 195, 0;
  --ioh-red-rgb: 247, 25, 43;
  --ioh-charcoal-rgb: 76, 79, 85;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --radius: 8px;
  --shadow-soft: 0 8px 28px rgba(76, 79, 85, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "IndosatSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--ioh-black);
  background:
    radial-gradient(circle at 12% 10%, rgba(var(--ioh-teal-rgb), 0.18), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(var(--ioh-magenta-rgb), 0.22), transparent 32%),
    linear-gradient(180deg, #f0f0f0 0%, #dfdfdf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--ioh-charcoal-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ioh-charcoal-rgb), 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1 {
  font-family: "IndosatTitle", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
}

h2 {
  font-family: "IndosatTitle", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
}

h3,
h4,
h5,
h6 {
  font-family: "IndosatTitle", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
}

p,
li,
label,
input,
select,
textarea,
button {
  font-family: "IndosatSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-areas:
    "navbar navbar"
    "sidebar main";
  grid-template-columns: 260px 1fr;
  grid-template-rows: 72px 1fr;
}

.navbar {
  grid-area: navbar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ioh-border);
}

.navbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 700;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

.brand-title {
  font-family: "IndosatTitle", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ioh-black);
  white-space: nowrap;
}

.brand-mark {
  width: 12px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    var(--ioh-primary-red) 0 33%,
    var(--ioh-orange) 33% 66%,
    var(--ioh-yellow) 66% 100%
  );
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(var(--ioh-magenta-rgb), 0.15);
  font-size: 0.78rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ioh-primary-red);
  animation: pulse 1.2s infinite;
}

.nav-meta {
  color: var(--ioh-text-muted);
  font-size: 0.9rem;
}

.clock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.18);
  background: var(--ioh-white);
  font-size: 0.82rem;
  font-weight: 700;
}

.sidebar {
  grid-area: sidebar;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--ioh-border);
  padding: var(--space-3) var(--space-2);
}

.sidebar h2 {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
  color: var(--ioh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(var(--ioh-magenta-rgb), 0.14);
  transform: translateX(2px);
}

.nav-link.active {
  background: var(--ioh-primary-red);
  color: var(--ioh-white);
}

.main-content {
  grid-area: main;
  padding: var(--space-3);
  display: grid;
  gap: var(--space-3);
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.12);
  padding: var(--space-2);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(var(--ioh-magenta-rgb), 0.09),
    rgba(var(--ioh-teal-rgb), 0.08),
    rgba(var(--ioh-yellow-rgb), 0.06),
    transparent 55%
  );
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.page-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.command-panel {
  display: grid;
  gap: var(--space-2);
}

.command-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--ioh-text-muted);
  font-weight: 700;
}

.command-panel h1 {
  margin: 0;
  font-size: 1.75rem;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.telemetry-block {
  border-radius: var(--radius);
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.16);
  background: var(--ioh-white);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.telemetry-block span {
  color: var(--ioh-text-muted);
  font-size: 0.78rem;
}

.telemetry-block strong {
  font-size: 1.05rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.custom-date-inline {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}

.custom-date-inline[hidden] {
  display: none !important;
}

.filter-group-date {
  min-width: 170px;
}

.filter-group {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.filter-group label {
  font-size: 0.85rem;
  color: var(--ioh-text-muted);
}

.filter-group select,
.filter-group input {
  background: var(--ioh-white);
  border: 1px solid var(--ioh-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 42px;
}

.button-filter {
  align-self: end;
}

.status-text {
  margin: 0;
  color: var(--ioh-text-muted);
  font-size: 0.9rem;
}

.kpi-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.kpi-card {
  display: grid;
  gap: 8px;
}

.kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.kpi-label {
  font-size: 0.84rem;
  color: var(--ioh-text-muted);
}

.kpi-delta {
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--ioh-magenta);
  background: rgba(var(--ioh-magenta-rgb), 0.14);
}

.kpi-value {
  font-size: 1.52rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--ioh-yellow), transparent);
  width: fit-content;
  padding: 2px 8px;
  border-radius: 6px;
}

.kpi-foot {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ioh-text-muted);
}

.sparkline {
  height: 26px;
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  align-items: end;
}

.spark-bar {
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--ioh-primary-red), var(--ioh-orange));
  min-height: 4px;
  opacity: 0.9;
}

.charts-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.chart-container {
  display: grid;
  gap: var(--space-2);
}

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

.chart-container h2,
.section-header h2 {
  margin: 0;
  font-size: 1rem;
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(var(--ioh-yellow-rgb), 0.28);
}

.chart {
  display: grid;
  gap: 10px;
}

.prepost-trend-card {
  display: grid;
  gap: 12px;
}

.prepost-trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.prepost-trend-caption {
  max-width: 500px;
}

.prepost-trend-summary {
  min-width: 230px;
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 6px;
}

.prepost-trend-summary-label {
  font-size: 0.75rem;
  color: var(--ioh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.prepost-trend-summary-value {
  font-size: 1.9rem;
  line-height: 1;
  color: #0fa958;
  font-family: "IndosatTitle", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.prepost-trend-summary-legend {
  display: grid;
  gap: 6px;
}

.prepost-trend-summary-legend .legend-pill {
  font-size: 0.72rem;
  padding: 4px 8px;
}

.prepost-area {
  stroke: none;
}

.prepost-area.pre {
  fill: rgba(var(--ioh-yellow-rgb), 0.22);
}

.prepost-area.post {
  fill: rgba(var(--ioh-magenta-rgb), 0.2);
}

.prepost-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prepost-line.pre {
  stroke: var(--ioh-yellow);
}

.prepost-line.post {
  stroke: var(--ioh-magenta);
}

.prepost-dot {
  stroke: var(--ioh-white);
  stroke-width: 2;
}

.prepost-dot.pre {
  fill: var(--ioh-yellow);
}

.prepost-dot.post {
  fill: var(--ioh-magenta);
}

.prepost-improve-label {
  font-size: 12px;
  fill: #0fa958;
  text-anchor: middle;
  font-weight: 700;
}

.impact-lift-shell {
  padding-top: 8px;
}

.impact-lift-track {
  stroke: rgba(var(--ioh-charcoal-rgb), 0.22);
  stroke-width: 8;
  stroke-linecap: round;
}

.impact-lift-zero {
  stroke: rgba(var(--ioh-charcoal-rgb), 0.5);
  stroke-width: 1.3;
}

.impact-lift-fill {
  stroke-width: 8;
  stroke-linecap: round;
}

.impact-lift-value {
  fill: var(--ioh-charcoal);
  font-size: 12px;
  font-weight: 700;
}

.pie-mix-layout {
  display: block;
}

.pie-panel {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.pie-chart {
  position: relative;
  width: min(270px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.22);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.36),
    0 1px 0 rgba(var(--ioh-charcoal-rgb), 0.22);
}

.pie-center {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: #d9dbdd;
  border: 10px solid #f5f5f6;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  color: var(--ioh-charcoal);
}

.pie-center-title {
  font-size: 0.95rem;
  line-height: 1.1;
}

.pie-center-main {
  font-family: "IndosatTitle", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.pie-legend {
  width: min(380px, 100%);
  display: grid;
  gap: 6px;
  margin: 0 auto;
}

.pie-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.pie-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pie-legend-label {
  color: var(--ioh-black);
}

.pie-legend-value {
  color: var(--ioh-text-muted);
  font-weight: 700;
}

.bar-row {
  display: grid;
  grid-template-columns: 124px 1fr auto;
  align-items: center;
  gap: 10px;
}

.bar-label,
.bar-value {
  font-size: 0.88rem;
}

.bar-track {
  background: var(--ioh-neutral-gray);
  border-radius: 999px;
  overflow: hidden;
  height: 18px;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.prepost-panel {
  display: grid;
  gap: 12px;
}

.prepost-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 12px;
}

.prepost-label,
.prepost-value {
  font-size: 0.94rem;
  font-weight: 500;
}

.prepost-track {
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ioh-neutral-gray);
}

.prepost-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.prepost-pre {
  background: var(--ioh-yellow);
}

.prepost-post {
  background: var(--ioh-magenta);
}

.prepost-improvement {
  display: inline-grid;
  gap: 2px;
  width: fit-content;
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(var(--ioh-teal-rgb), 0.14);
  border: 1px solid rgba(var(--ioh-teal-rgb), 0.3);
}

.prepost-improvement-main {
  font-family: "IndosatTitle", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.prepost-improvement-sub {
  font-size: 0.82rem;
  color: var(--ioh-text-muted);
}

.complex-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, minmax(340px, 1fr));
}

.complex-caption {
  margin-top: -4px;
}

.svg-chart-shell {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 236, 236, 0.96));
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.15);
  overflow: hidden;
}

.advanced-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.svg-grid-line {
  stroke: rgba(var(--ioh-charcoal-rgb), 0.2);
  stroke-width: 1;
}

.svg-axis-line {
  stroke: rgba(var(--ioh-charcoal-rgb), 0.42);
  stroke-width: 1.2;
}

.svg-axis-text {
  fill: rgba(var(--ioh-charcoal-rgb), 0.92);
  font-size: 12px;
  font-family: inherit;
}

.svg-crosshair-line {
  stroke: rgba(var(--ioh-charcoal-rgb), 0.52);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
}

.svg-pinned-line-a {
  stroke: rgba(var(--ioh-magenta-rgb), 0.78);
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.svg-pinned-line-b {
  stroke: rgba(var(--ioh-teal-rgb), 0.82);
  stroke-width: 2;
  stroke-dasharray: 3 3;
}

.svg-series-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-series-dot {
  stroke: var(--ioh-white);
  stroke-width: 2;
}

.bubble-dot {
  fill-opacity: 0.72;
  stroke-width: 2;
}

.bubble-dot.active {
  stroke: var(--ioh-primary-red);
  fill-opacity: 0.9;
}

.bubble-dot.pinned-a {
  stroke: var(--ioh-magenta);
  fill-opacity: 0.9;
}

.bubble-dot.pinned-b {
  stroke: var(--ioh-teal);
  fill-opacity: 0.9;
}

.bubble-label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--ioh-black);
  text-anchor: middle;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interaction-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn-mini {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.btn-mini.active {
  background: var(--ioh-magenta);
  color: var(--ioh-white);
}

.interaction-status {
  font-size: 0.8rem;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 260px;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ioh-black);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.22);
  box-shadow: 0 8px 20px rgba(var(--ioh-charcoal-rgb), 0.24);
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.16);
  background: var(--ioh-white);
  font-size: 0.76rem;
}

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

.insights-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}

.matrix-table th,
.matrix-table td {
  font-size: 0.82rem;
}

.heat-cell {
  border-radius: 6px;
  color: var(--ioh-black);
  font-weight: 600;
}

.simulator-card {
  display: grid;
  gap: 12px;
}

#scenario-slider {
  width: 100%;
  accent-color: var(--ioh-primary-red);
}

.progress-stack {
  display: grid;
  gap: 10px;
}

.progress-item {
  display: grid;
  gap: 6px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
}

.progress-track {
  height: 14px;
  border-radius: 999px;
  background: var(--ioh-neutral-gray);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  transition: width 0.25s ease;
}

.target-fill {
  background: var(--ioh-primary-red);
}

.confidence-fill {
  background: var(--ioh-orange);
}

.risk-fill {
  background: var(--ioh-yellow);
}

.insights-feed {
  display: grid;
  gap: 10px;
}

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

.insight-item {
  border-radius: var(--radius);
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.16);
  background: var(--ioh-white);
  padding: 10px 12px;
  font-size: 0.9rem;
}

.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ioh-border);
  white-space: nowrap;
}

.table th {
  background: #d8d8d8;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sort-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sort-glyph {
  width: 11px;
  height: 14px;
  position: relative;
  display: inline-block;
  opacity: 0.78;
}

.sort-glyph::before,
.sort-glyph::after {
  content: "";
  position: absolute;
  left: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.sort-glyph::before {
  top: 1px;
  border-bottom: 5px solid var(--ioh-text-muted);
}

.sort-glyph::after {
  bottom: 1px;
  border-top: 5px solid var(--ioh-text-muted);
}

.sort-button[data-direction="asc"] .sort-glyph::before {
  border-bottom-color: var(--ioh-magenta);
}

.sort-button[data-direction="desc"] .sort-glyph::after {
  border-top-color: var(--ioh-magenta);
}

.pagination-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-info {
  color: var(--ioh-text-muted);
  font-size: 0.84rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  min-width: 36px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(var(--ioh-charcoal-rgb), 0.2);
  background: var(--ioh-white);
  color: var(--ioh-black);
  font-weight: 600;
  cursor: pointer;
}

.page-btn:hover {
  border-color: var(--ioh-magenta);
}

.page-btn.active {
  background: var(--ioh-magenta);
  color: var(--ioh-white);
  border-color: var(--ioh-magenta);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary,
.btn-secondary {
  border: 0;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--ioh-primary-red);
  color: var(--ioh-white);
}

.btn-secondary {
  background: var(--ioh-orange);
  color: var(--ioh-black);
}

.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-link:focus-visible,
.sort-button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ioh-deep-accent);
  outline-offset: 2px;
}

.alert {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.alert.error {
  background: rgba(var(--ioh-red-rgb), 0.16);
  color: var(--ioh-black);
}

.alert.success {
  background: rgba(var(--ioh-teal-rgb), 0.22);
  color: var(--ioh-black);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-2);
}

.login-card {
  width: min(100%, 400px);
  display: grid;
  gap: var(--space-2);
}

.login-card form {
  display: grid;
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group input {
  border: 1px solid var(--ioh-border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.login-card .btn-primary {
  width: 100%;
  margin-top: 4px;
}

.preview-placeholder {
  color: var(--ioh-text-muted);
  font-size: 0.9rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--ioh-magenta-rgb), 0.55);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(var(--ioh-magenta-rgb), 0);
  }
}

@media (max-width: 1250px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .charts-grid,
  .complex-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .ops-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .pie-mix-layout {
    display: block;
  }

  .pie-panel {
    justify-items: start;
  }

  .prepost-trend-summary {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-areas:
      "navbar"
      "main";
    grid-template-columns: 1fr;
    grid-template-rows: 72px 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: var(--space-2);
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .navbar-meta .nav-meta {
    display: none;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .ops-metrics {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
