@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --color-bg: #f3f4f6;
  --color-surface: #ffffff;
  --color-surface-muted: #f8fafc;
  --color-border: #e5e7eb;
  --color-border-strong: #d9dde3;
  --color-text: #0f172a;
  --color-text-muted: #667085;

  --color-sidebar-start: #4f3ff0;
  --color-sidebar-end: #4731e0;
  --color-sidebar-text: #eef0ff;
  --color-sidebar-item-active: rgba(60, 46, 202, 0.72);

  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;

  --pill-gray-bg: #eef0f4;
  --pill-gray-text: #344054;
  --pill-green-bg: #ccefdc;
  --pill-green-text: #0a7a42;
  --pill-red-bg: #f8d9de;
  --pill-red-text: #ce1e2b;

  --radius-sm: 8px;
  --radius-md: 12px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.08);

  --sidebar-width: 280px;
  --header-height: 66px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
}

.pc-layout {
  display: flex;
}

.pc-sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--color-sidebar-start) 0%, var(--color-sidebar-end) 100%);
  color: var(--color-sidebar-text);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
}

.pc-sidebar-head {
  min-height: var(--header-height);
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.pc-logo {
  height: 34px;
  width: auto;
}

.pc-sidebar-body {
  padding: 14px 12px;
}

.pc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pc-nav-link {
  color: var(--color-sidebar-text);
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
}

.pc-nav-link:hover {
  background: rgba(60, 46, 202, 0.45);
}

.pc-nav-link--active {
  background: var(--color-sidebar-item-active);
}

.pc-nav-icon {
  width: 18px;
  height: 18px;
}

.pc-nav-group {
  display: grid;
  gap: 4px;
}

.pc-nav-sub {
  display: grid;
  gap: 3px;
  padding-left: 10px;
}

.pc-nav-sub-link {
  color: #d8dcff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}

.pc-nav-sub-link:hover {
  background: rgba(60, 46, 202, 0.35);
}

.pc-nav-sub-link--active {
  background: rgba(60, 46, 202, 0.72);
  color: #ffffff;
}

.pc-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 22px;
}

.pc-header-left,
.pc-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-mobile-menu {
  display: none;
}

.pc-crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-crumb {
  font-size: 15px;
  font-weight: 600;
  color: #667085;
}

.pc-crumb.current {
  color: #1d2939;
}

.pc-crumb-sep {
  color: #98a2b3;
  font-size: 18px;
  line-height: 1;
}

.pc-header-divider {
  width: 1px;
  height: 34px;
  background: #eaecf0;
  margin: 0 6px;
}

.pc-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  cursor: pointer;
}

.pc-icon-btn:hover {
  background: var(--color-surface-muted);
}

.pc-locale {
  color: #667085;
  font-size: 16px;
  font-weight: 700;
}

.pc-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #101828;
  font-size: 16px;
  font-weight: 700;
}

.pc-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid #d0d5dd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
}

.pc-main {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding: calc(var(--header-height) + 24px) 20px 24px;
}

.pc-content-wrap {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.pc-canvas-empty {
  min-height: 220px;
  border: 1px dashed #cfd5de;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

.pc-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pc-page-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.pc-btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.pc-btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.pc-btn--primary:hover {
  background: var(--color-primary-hover);
}

.pc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.pc-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.pc-card-head h3 {
  margin: 0;
  font-size: 17px;
}

.pc-card-body {
  padding: 0;
}

.pc-journal-table-wrap {
  overflow: auto;
}

.pc-journal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

.pc-journal-table th,
.pc-journal-table td {
  border-bottom: 1px solid var(--color-border-strong);
  text-align: left;
  padding: 16px 14px;
  white-space: nowrap;
}

.pc-journal-table th {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  background: #f8fafc;
}

.pc-journal-table td {
  font-size: 15px;
  color: #1f2937;
}

.pc-journal-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.pc-journal-table tbody tr:hover td {
  background: #f3f5f8;
}

.pc-journal-table td:last-child,
.pc-journal-table th:last-child {
  text-align: right;
}

.pc-main--support .pc-journal-table th:last-child,
.pc-main--support .pc-journal-table td:last-child {
  text-align: left;
}

.pc-main--support .pc-journal-table th,
.pc-main--support .pc-journal-table td {
  white-space: normal;
  vertical-align: top;
}

.pc-journal-table--compact th,
.pc-journal-table--compact td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.pc-journal-table--fit {
  width: min(640px, 100%);
}

.pc-student-red {
  color: #ce1e2b;
  font-weight: 700;
}

.pc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.pc-pill--gray {
  background: var(--pill-gray-bg);
  color: var(--pill-gray-text);
}

.pc-pill--green {
  background: var(--pill-green-bg);
  color: var(--pill-green-text);
}

.pc-pill--red {
  background: var(--pill-red-bg);
  color: var(--pill-red-text);
}

.pc-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pc-mini-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 16px;
  min-height: 148px;
}

.pc-mini-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pc-mini-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #6661f8 0%, #5953ef 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pc-mini-title {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
}

.pc-mini-value {
  margin: 4px 0 0;
  color: #101828;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.pc-mini-sub {
  margin: 4px 0 0;
  color: #101828;
  font-size: 16px;
}

.pc-mini-trend {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.pc-mini-trend--up {
  color: #087443;
}

.pc-mini-trend--down {
  color: #b42318;
}

.pc-page-title--dashboard {
  font-size: 28px;
  line-height: 1.2;
}

.pc-page-subtitle {
  margin: 8px 0 0;
  color: #667085;
  font-size: 14px;
  max-width: 920px;
}

.pc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
}

.pc-mini-grid--dashboard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pc-mini-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pc-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pc-overview-card {
  background: #ffffff;
  border: 1px solid #d9dde3;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pc-overview-title {
  margin: 0;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.pc-overview-value {
  margin: 8px 0 0;
  color: #101828;
  font-size: 32px;
  font-weight: 800;
}

.pc-overview-sub {
  margin: 6px 0 0;
  color: #475467;
  font-size: 13px;
}

.pc-overview-link {
  display: inline-flex;
  margin-top: 12px;
  color: #4338ca;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pc-overview-link:hover {
  text-decoration: underline;
}

.pc-filter-panel {
  padding: 0;
}

.pc-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  gap: 10px;
}

.pc-filter-label {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.pc-filter-select {
  width: 100%;
  height: 44px;
  border: 1px solid #c8d0dc;
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  color: #101828;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.pc-mini-label {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.pc-card-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pc-domain-section {
  border-color: #d8dde6;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.pc-card-sub {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
}

.pc-segment {
  background: #eef2f7;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 3px;
  display: inline-flex;
  gap: 3px;
}

.pc-segment-btn {
  border: 0;
  background: transparent;
  color: #475467;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pc-segment-btn.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: var(--shadow-xs);
}

.pc-support-stack {
  padding: 18px;
  display: grid;
  gap: 20px;
}

.pc-group-divider {
  height: 0;
  border-top: 2px dashed #b8c0cd;
  margin: -2px 6px 0;
  position: relative;
}

.pc-group-divider::after {
  content: "•••";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -58%);
  padding: 0 8px;
  background: #f3f4f6;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 2px;
}

.pc-support-block {
  border: 1px solid #d6dbe4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pc-support-block h4 {
  margin: 0;
  padding: 14px 16px 13px;
  font-size: 14px;
  border-bottom: 1px solid #e4e7ec;
  background: #f8fafc;
}

.pc-main--admin .pc-support-stack {
  gap: 24px;
}

.pc-main--admin .pc-support-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pc-main--admin .pc-support-block h4 {
  padding: 0 2px 10px;
  border-bottom: 0;
  background: transparent;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.pc-main--admin .pc-block-head {
  padding: 0 2px 10px;
  border-bottom: 0;
  background: transparent;
}

.pc-main--admin .pc-block-head h4 {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.pc-main--admin .pc-support-block .pc-journal-table-wrap {
  border: 1px solid #d8dde6;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.pc-main--admin .pc-group-divider {
  display: none;
}

.pc-main--admin .pc-domain-section {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pc-main--admin .pc-page-title--dashboard {
  font-size: 30px;
}

.pc-main--admin .pc-filter-label,
.pc-main--admin .pc-filter-select {
  font-size: 14px;
}

.pc-main--admin .pc-journal-table th,
.pc-main--admin .pc-journal-table td {
  font-size: 14px;
}

.pc-main--admin .pc-note {
  font-size: 12px;
}

.pc-main--admin .pc-kpi-grid .pc-mini-label,
.pc-main--admin .pc-kpi-grid .pc-mini-sub {
  font-size: 14px;
  color: #667085;
}

.pc-main--admin .pc-kpi-grid .pc-mini-value {
  font-size: 32px;
  line-height: 1.15;
}

.pc-kpi-title {
  margin: 0 0 10px;
  color: #101828;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.pc-main--admin .pc-kpi-grid .pc-mini-card {
  min-height: 0;
  border-radius: 14px;
  border: 1px solid #d9dde3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 18px 20px;
}

.pc-main--admin .pc-kpi-grid .pc-mini-head {
  gap: 16px;
}

.pc-main--admin .pc-kpi-grid .pc-mini-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, #6661f8 0%, #5953ef 100%);
}

.pc-main--admin .pc-kpi-grid .pc-mini-icon svg {
  width: 24px;
  height: 24px;
}

.pc-kpi-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-bottom: 1px solid #e4e7ec;
  background: #f8fafc;
}

.pc-block-head h4 {
  border: 0;
  background: transparent;
  padding: 0;
}

.pc-status-select {
  width: 120px;
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #1d2939;
  background: #fff;
}

.pc-empty-cell {
  text-align: center !important;
  color: #667085 !important;
  font-style: italic;
}

.pc-note {
  border: 1px solid #d9dde3;
  border-left: 4px solid #4f46e5;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

body.pc-dark .pc-chip,
body.pc-dark .pc-block-head,
body.pc-dark .pc-support-block h4 {
  background: #f8fafc;
}

.pc-mobile-backdrop {
  display: none;
}

@media (max-width: 1200px) {
  .pc-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-mini-grid--two {
    grid-template-columns: 1fr;
  }

  .pc-card-head--row,
  .pc-block-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pc-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECTION LABEL  — uppercase tracked heading above content blocks
   Usage: <p class="pc-section-label">Heading</p>
   ============================================================ */
.pc-section-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #667085;
}

/* ============================================================
   FILTER BAR  — sits on the right side of .pc-page-head
   Usage: <div class="pc-filter-bar"> <div class="pc-filter-bar-field">...</div> </div>
   ============================================================ */
.pc-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pc-filter-bar-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pc-filter-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pc-filter-bar-select,
.pc-filter-bar-input {
  height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #101828;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  min-width: 120px;
}

.pc-filter-bar-input--wide {
  min-width: 280px;
}

/* ============================================================
   TAB NAVIGATION  — horizontal tabs within a page
   Usage: <div class="pc-tab-list"> <button class="pc-tab pc-tab--active">…</button> </div>
   ============================================================ */
.pc-tab-list {
  display: flex;
  border-bottom: 2px solid #e4e7ec;
  gap: 0;
  margin-bottom: 20px;
}

.pc-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #667085;
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.pc-tab:hover {
  color: #344054;
}

.pc-tab--active {
  color: #4f46e5;
  border-bottom-color: #4f46e5;
}

/* ============================================================
   TWO-COLUMN LAYOUT
   Usage: <div class="pc-two-col"> <div>…</div> <div>…</div> </div>
   ============================================================ */
.pc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   EMU MODE CARDS  — the 4-card learning/balanced/support/unknown block
   Usage: <div class="pc-emu-modes"> <article class="pc-emu-mode-card">…</article> × 4 </div>
   ============================================================ */
.pc-emu-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pc-emu-mode-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pc-emu-mode-illus {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
}

.pc-emu-mode-pill {
  width: 100%;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.pc-emu-mode-count {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.pc-emu-mode-pill--learning  { background: #166534; color: #ffffff; }
.pc-emu-mode-pill--balanced  { background: #dcfce7; color: #166534; }
.pc-emu-mode-pill--support   { background: #fee2e2; color: #991b1b; }
.pc-emu-mode-pill--unknown   { background: #f2f4f7; color: #475467; }

.pc-emu-mode-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #101828;
  text-align: center;
}

.pc-emu-mode-desc {
  margin: 0;
  font-size: 12px;
  color: #667085;
  line-height: 1.55;
  text-align: center;
}

/* ============================================================
   HIGHCHARTS CHART CONTAINERS
   Usage: <div class="pc-chart-box"> <p class="pc-chart-title">…</p> <div class="pc-chart-area" id="chart-id"></div> </div>
   Highcharts CDN: <script src="https://code.highcharts.com/highcharts.js"></script>
   ============================================================ */
.pc-chart-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 20px;
}

.pc-chart-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #101828;
}

.pc-chart-sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: #667085;
}

.pc-chart-area {
  width: 100%;
  min-height: 300px;
}

.pc-charts-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   KPI ICON COLOUR VARIANTS
   Usage: add modifier class alongside .pc-mini-icon
   ============================================================ */
.pc-mini-icon--orange {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
}

.pc-mini-icon--green {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.pc-mini-icon--red {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

/* ============================================================
   FAKE DROPDOWN  — static prototype-safe select replacement
   Usage: <div class="pc-fake-dd"> <span>Value</span> <svg chevron/> </div>
   Modifiers: --wide (min 220px), --narrow (72px fixed), --long (min 230px)
   ============================================================ */
.pc-fake-dd {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #101828;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  white-space: nowrap;
  user-select: none;
}

.pc-fake-dd svg {
  flex-shrink: 0;
  color: #667085;
}

.pc-fake-dd--wide   { min-width: 220px; }
.pc-fake-dd--narrow { min-width: 72px; max-width: 72px; }
.pc-fake-dd--long   { min-width: 230px; }

/* ============================================================
   KPI DELTA  — trend / comparison indicator (+/- value)
   Usage: <span class="pc-kpi-delta pc-kpi-delta--positive">+2.1 pp</span>
   States: --positive (green), --negative (red), --neutral (gray)
   ============================================================ */
.pc-kpi-delta {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.pc-kpi-delta--positive { color: #16a34a; }
.pc-kpi-delta--negative { color: #dc2626; }
.pc-kpi-delta--neutral  { color: #6b7280; }

@media (max-width: 1024px) {
  .pc-mobile-menu {
    display: inline-flex;
  }

  .pc-header {
    left: 0;
  }

  .pc-crumbs {
    display: none;
  }

  .pc-sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.pc-sidebar-open .pc-sidebar {
    transform: translateX(0);
  }

  .pc-mobile-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: rgba(17, 24, 39, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 20;
  }

  body.pc-sidebar-open .pc-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .pc-main {
    margin-left: 0;
    width: 100%;
  }

  .pc-profile-name,
  .pc-header-divider.hide-on-mobile,
  .pc-locale {
    display: none;
  }

  .pc-mini-grid {
    grid-template-columns: 1fr;
  }

  .pc-overview-grid {
    grid-template-columns: 1fr;
  }

  .pc-two-col {
    grid-template-columns: 1fr;
  }

  .pc-emu-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-charts-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pc-emu-modes {
    grid-template-columns: 1fr;
  }

  .pc-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pc-filter-bar-input--wide {
    min-width: 100%;
  }
}
