* {
  box-sizing: border-box;
}


:root {

  --bg: #070a10;

  --surface: #10141d;

  --surface-2: #141923;

  --surface-3: #181e2a;

  --border: rgba(255,255,255,.075);

  --border-light: rgba(255,255,255,.11);

  --text: #f5f7fb;

  --muted: #929caf;

  --muted-2: #667084;

  --blue: #3ca8f5;

  --blue-light: #69b9ff;

  --purple: #8b5cf6;

  --green: #45d483;

  --orange: #ffad3d;

  --pink: #ff5d83;

}


html {
  scroll-behavior: smooth;
}


body {

  margin: 0;

  min-height: 100vh;

  background:

    radial-gradient(
      circle at 10% -10%,
      rgba(60,168,245,.13),
      transparent 30%
    ),

    radial-gradient(
      circle at 100% 15%,
      rgba(139,92,246,.10),
      transparent 28%
    ),

    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    Arial,
    sans-serif;

}


/* ================= BACKGROUND ================= */

.bg-glow {

  position: fixed;

  width: 320px;

  height: 320px;

  border-radius: 50%;

  filter: blur(100px);

  opacity: .12;

  pointer-events: none;

  z-index: -1;

}


.glow-one {

  background: #1688dc;

  left: -150px;

  top: 250px;

}


.glow-two {

  background: #7038dd;

  right: -150px;

  bottom: 100px;

}


/* ================= DASHBOARD ================= */

.dashboard {

  width: min(
    1480px,
    calc(100% - 50px)
  );

  margin: auto;

  padding:
    32px 0 30px;

}


/* ================= HEADER ================= */

.topbar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 30px;

  padding-bottom: 28px;

  border-bottom:
    1px solid var(--border);

}


.brand {

  display: flex;

  align-items: center;

  gap: 14px;

}


.brand-mark {

  width: 48px;

  height: 48px;

  border-radius: 14px;

  display: grid;

  place-items: center;

  font-size: 21px;

  font-weight: 800;

  background:
    linear-gradient(
      135deg,
      #2e9ae9,
      #6b5ce7
    );

  box-shadow:
    0 10px 30px
    rgba(60,168,245,.20);

}


.brand-small {

  color: #6ca9df;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: .2em;

}


h1 {

  margin:
    4px 0 4px;

  font-size:
    clamp(25px, 3vw, 38px);

  line-height: 1;

  letter-spacing: -.045em;

}


h1 span {

  color: var(--blue-light);

}


.brand p {

  margin: 0;

  color: var(--muted);

  font-size: 11px;

}


.top-actions {

  display: flex;

  align-items: center;

  gap: 10px;

}


.live-status {

  display: flex;

  align-items: center;

  gap: 8px;

  height: 38px;

  padding:
    0 13px;

  border:
    1px solid var(--border);

  border-radius: 10px;

  background:
    rgba(255,255,255,.025);

  color: #c7cedb;

  font-size: 10px;

  font-weight: 700;

}


.status-dot {

  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #f6b73c;

}


.refresh-btn {

  height: 38px;

  border:
    1px solid
    rgba(60,168,245,.30);

  border-radius: 10px;

  background:
    rgba(60,168,245,.10);

  color: #cce8ff;

  padding:
    0 14px;

  cursor: pointer;

  font-size: 11px;

  font-weight: 700;

  transition: .2s;

}


.refresh-btn:hover {

  background:
    rgba(60,168,245,.19);

  transform:
    translateY(-1px);

}


/* ================= KPI ================= */

.kpi-grid {

  display: grid;

  grid-template-columns:
    1.3fr 1fr 1fr 1fr;

  gap: 14px;

  margin:
    20px 0 42px;

}


.kpi-card {

  min-height: 126px;

  padding: 19px;

  border:
    1px solid var(--border);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    );

  box-shadow:
    0 15px 40px
    rgba(0,0,0,.15);

}


.kpi-primary {

  background:
    linear-gradient(
      145deg,
      rgba(60,168,245,.15),
      rgba(60,168,245,.035)
    );

  border-color:
    rgba(60,168,245,.17);

}


.kpi-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: var(--muted);

  font-size: 10px;

  font-weight: 700;

}


.kpi-icon {

  width: 28px;

  height: 28px;

  border-radius: 8px;

  display: grid;

  place-items: center;

  background:
    rgba(60,168,245,.10);

  color: var(--blue-light);

  font-size: 13px;

}


.kpi-card strong {

  display: block;

  margin:
    12px 0 5px;

  font-size: 33px;

  letter-spacing: -.04em;

}


.kpi-card small {

  color: var(--muted-2);

  font-size: 9px;

}


/* ================= SECTION HEADER ================= */

.section-header {

  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 20px;

  margin-bottom: 15px;

}


.section-label {

  font-size: 9px;

  letter-spacing: .2em;

  font-weight: 800;

  color: #65a9df;

}


.section-header h2 {

  margin:
    5px 0 4px;

  font-size: 21px;

  letter-spacing: -.025em;

}


.section-header p {

  margin: 0;

  color: var(--muted);

  font-size: 10px;

}


.last-updated {

  color: var(--muted-2);

  font-size: 9px;

}


/* ================= PROFILE ================= */

.profile-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;

  margin-bottom: 44px;

}


.profile-card {

  min-width: 0;

  border:
    1px solid var(--border);

  border-radius: 17px;

  background:
    rgba(16,20,29,.90);

  overflow: hidden;

  box-shadow:
    0 18px 45px
    rgba(0,0,0,.17);

}


.card-header {

  padding:
    17px 18px;

  border-bottom:
    1px solid var(--border);

}


.card-header > div {

  display: flex;

  align-items: center;

  gap: 10px;

}


.card-number {

  display: grid;

  place-items: center;

  width: 27px;

  height: 27px;

  border-radius: 8px;

  background:
    rgba(60,168,245,.09);

  border:
    1px solid
    rgba(60,168,245,.15);

  color: var(--blue-light);

  font-size: 8px;

  font-weight: 800;

}


.card-header h3 {

  margin: 0;

  font-size: 13px;

}


.card-header p {

  margin:
    3px 0 0;

  color: var(--muted-2);

  font-size: 8px;

}


/*
  INI BAGIAN PENTING.

  Chart dan legend berdampingan.
*/

.profile-content {

  display: grid;

  grid-template-columns:
    minmax(190px, 1fr)
    minmax(135px, .8fr);

  align-items: center;

  min-height: 270px;

  padding:
    15px 16px 18px;

}


.donut-wrapper {

  position: relative;

  width: 100%;

  height: 230px;

}


.donut-wrapper canvas {

  width: 100% !important;

  height: 100% !important;

}


/* ================= CUSTOM LEGEND ================= */

.custom-legend {

  display: flex;

  flex-direction: column;

  gap: 7px;

  max-height: 220px;

  overflow-y: auto;

  padding-right: 3px;

}


.custom-legend::-webkit-scrollbar {

  width: 3px;

}


.custom-legend::-webkit-scrollbar-thumb {

  background:
    rgba(255,255,255,.15);

  border-radius: 20px;

}


.legend-item {

  display: grid;

  grid-template-columns:
    8px 1fr auto;

  align-items: center;

  gap: 7px;

  min-width: 0;

}


.legend-color {

  width: 8px;

  height: 8px;

  border-radius: 3px;

}


.legend-name {

  min-width: 0;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;

  color: #aeb7c8;

  font-size: 8px;

}


.legend-percent {

  color: #f1f5f9;

  font-size: 8px;

  font-weight: 800;

}


.legend-count {

  grid-column:
    2 / 4;

  margin-top: -5px;

  color: #606b7e;

  font-size: 7px;

}


/* ================= QUESTIONS ================= */

.questions-header {

  margin-top: 2px;

}


.question-badge {

  padding:
    7px 10px;

  border-radius: 8px;

  background:
    rgba(255,255,255,.035);

  border:
    1px solid var(--border);

  color: var(--muted);

  font-size: 8px;

  font-weight: 800;

}


.question-grid {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 16px;

}


.question-card {

  border:
    1px solid var(--border);

  border-radius: 16px;

  background:
    rgba(16,20,29,.86);

  padding:
    18px;

  min-height: 300px;

}


.question-number {

  color: #66a9de;

  font-size: 8px;

  letter-spacing: .15em;

  font-weight: 800;

}


.question-title {

  margin-top: 7px;

  font-size: 12px;

  line-height: 1.45;

  font-weight: 700;

}


.question-chart {

  position: relative;

  height: 215px;

  margin-top: 12px;

}


.empty-state {

  margin-top: 15px;

  min-height: 180px;

  border:
    1px dashed var(--border);

  border-radius: 10px;

  display: grid;

  place-items: center;

  text-align: center;

  color: var(--muted-2);

  font-size: 9px;

  line-height: 1.6;

}


/* ================= FOOTER ================= */

footer {

  margin-top: 45px;

  padding:
    20px 0 5px;

  border-top:
    1px solid var(--border);

  display: flex;

  justify-content: space-between;

  gap: 20px;

  color: var(--muted-2);

  font-size: 8px;

  line-height: 1.7;

}


footer strong {

  color: #bdc6d5;

}


.footer-credit {

  text-align: right;

}


/* ================= TOAST ================= */

.toast {

  position: fixed;

  right: 20px;

  bottom: 20px;

  padding:
    11px 15px;

  border-radius: 10px;

  background:
    #171d28;

  border:
    1px solid var(--border-light);

  color: #dce4ef;

  font-size: 9px;

  opacity: 0;

  transform:
    translateY(15px);

  pointer-events: none;

  transition: .25s;

  z-index: 50;

}


.toast.show {

  opacity: 1;

  transform:
    translateY(0);

}


/* ================= TABLET ================= */

@media (max-width: 1150px) {

  .kpi-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }


  .profile-grid {

    grid-template-columns:
      1fr;

  }


  .profile-content {

    grid-template-columns:
      minmax(260px, .9fr)
      1fr;

  }

}


/* ================= MOBILE ================= */

@media (max-width: 750px) {

  .dashboard {

    width:
      calc(100% - 28px);

    padding-top: 20px;

  }


  .topbar {

    align-items: flex-start;

    flex-direction: column;

  }

  /* ================================
   PRODUCTION TEAM
================================ */

.production-team {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-header {
  margin-bottom: 22px;
}

.team-header h2 {
  margin: 0;
}

.team-header p {
  margin-top: 6px;
  opacity: 0.6;
  font-size: 12px;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.team-member {
  padding: 18px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.025);
}

.team-role {
  display: block;

  margin-bottom: 8px;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.12em;

  opacity: 0.55;
}

.team-name {
  display: block;

  font-size: 13px;
  font-weight: 600;

  line-height: 1.4;
}

.team-detail {
  display: block;

  margin-top: 5px;

  font-size: 10px;

  opacity: 0.5;
}


/* ================================
   DEVELOPMENT CREDIT
================================ */

.development-credit {
  margin-top: 28px;
  padding-top: 22px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 10px;
  line-height: 1.7;

  opacity: 0.65;
}

.development-credit > strong {
  display: block;

  margin-bottom: 7px;

  color: #fff;

  font-size: 11px;
}

.development-credit p {
  margin: 2px 0;
}

.development-credit p strong {
  color: #fff;
}


/* MOBILE */

@media (max-width: 800px) {

  .team-list {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 520px) {

  .team-list {
    grid-template-columns: 1fr;
  }

}


  .top-actions {

    width: 100%;

    justify-content:
      flex-start;

  }


  .kpi-grid {

    grid-template-columns:
      1fr;

  }


  .section-header {

    align-items: flex-start;

    flex-direction: column;

  }


  .profile-content {

    grid-template-columns:
      1fr;

  }


  .donut-wrapper {

    height: 245px;

  }


  .custom-legend {

    max-height: none;

    margin-top: 5px;

  }


  .question-grid {

    grid-template-columns:
      1fr;

  }


  footer {

    flex-direction: column;

  }


  .footer-credit {

    text-align: left;

  }

}

/* =====================================================
   QUESTION CHART - LEBIH LUAS
   ===================================================== */

.question-card {
  min-height: 430px;
}

.question-chart {
  position: relative;
  width: 100%;
  height: 330px;
  min-height: 330px;
  margin-top: 14px;
  padding: 18px 8px 8px;
  box-sizing: border-box;
}

.question-card:has(.question-chart) {
  overflow: visible;
}

/* Q4 memiliki banyak kategori sehingga diberi ruang vertikal lebih besar. */
.question-card:has(#chart-q4) .question-chart {
  height: 610px;
  min-height: 610px;
}

/* =====================================================
   EXPORT BUTTONS
===================================================== */

.export-btn {

  height: 38px;

  padding:
    0 13px;

  border:
    1px solid
    rgba(255,255,255,.10);

  border-radius:
    10px;

  cursor:
    pointer;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    6px;

  color:
    #dce6f3;

  font-family:
    inherit;

  font-size:
    10px;

  font-weight:
    800;

  transition:
    .2s ease;

  white-space:
    nowrap;

}


/* PDF */

.export-pdf {

  background:
    rgba(239,68,68,.08);

  border-color:
    rgba(239,68,68,.25);

}


.export-pdf:hover {

  background:
    rgba(239,68,68,.17);

  border-color:
    rgba(239,68,68,.40);

  transform:
    translateY(-1px);

}


/* PPT */

.export-ppt {

  background:
    rgba(249,115,22,.08);

  border-color:
    rgba(249,115,22,.25);

}


.export-ppt:hover {

  background:
    rgba(249,115,22,.17);

  border-color:
    rgba(249,115,22,.40);

  transform:
    translateY(-1px);

}


/* Disabled */

.export-btn:disabled {

  opacity:
    .55;

  cursor:
    not-allowed;

  transform:
    none;

}


/* =====================================================
   EXPORT MODE
===================================================== */

body.exporting
.export-btn,
body.exporting
#refreshBtn {

  display:
    none !important;

}


body.exporting
.top-actions {

  gap:
    0;

}


body.exporting
.live-status {

  display:
    none;

}

/* PDF / PPT export layout */
body.exporting .question-grid {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

body.exporting .question-card {
  width: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box;
}

body.exporting .question-chart {
  width: 100% !important;
}

body.exporting .production-team {
  break-inside: avoid;
}


/* =====================================================
   EXPORT RESPONSIVE
===================================================== */

@media (
  max-width: 900px
) {

  .top-actions {

    flex-wrap:
      wrap;

  }

}


@media (
  max-width: 600px
) {

  .export-btn {

    padding:
      0 10px;

  }

  .export-btn span {

    display:
      none;

  }

}


/* =====================================================
   MATW MAIN WEBSITE VISUAL SYSTEM
   Menyamakan dashboard dengan WEB/style.css
   ===================================================== */

:root {
  --bg: #08090d;
  --surface: #0e1016;
  --surface-2: #12151c;
  --surface-3: #181c25;
  --border: rgba(255,255,255,.09);
  --border-light: rgba(255,255,255,.18);
  --text: #f5f5f7;
  --muted: #9da3b0;
  --muted-2: #6f7582;
  --blue: #ffffff;
  --blue-light: #ffffff;
  --purple: #ffffff;
  --green: #ffffff;
  --orange: #ffffff;
  --pink: #ffffff;
  --font-main: "Inter", sans-serif;
  --font-display: "Montserrat", sans-serif;
}

body {
  background:
    radial-gradient(circle at 75% 45%, rgba(255,255,255,.08), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.035), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
}

.bg-glow {
  display: none;
}

.dashboard {
  width: min(1200px, calc(100% - 56px));
  padding: 38px 0 44px;
}

.topbar {
  min-height: 82px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  gap: 16px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .08em;
}

.brand-small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .30em;
}

h1 {
  margin: 5px 0 5px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

h1 span {
  color: var(--text);
}

.brand p {
  color: var(--muted);
  font-size: 10px;
}

.top-actions {
  gap: 8px;
}

.live-status,
.refresh-btn,
.export-btn {
  border-radius: 0;
  background: transparent;
  border-color: rgba(255,255,255,.18);
  color: var(--muted);
  height: 36px;
}

.refresh-btn:hover,
.export-btn:hover {
  background: #fff;
  color: #08090d;
  border-color: #fff;
  transform: translateY(-1px);
}

.status-dot {
  background: #fff;
}

.export-pdf,
.export-ppt {
  background: transparent;
  border-color: rgba(255,255,255,.18);
}

.kpi-grid {
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 0;
  margin: 34px 0 70px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kpi-card {
  min-height: 142px;
  padding: 24px 22px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kpi-card:last-child {
  border-right: 0;
}

.kpi-primary {
  background: transparent;
  border-color: var(--border);
}

.kpi-top {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.kpi-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.kpi-card strong {
  margin: 16px 0 7px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.05em;
}

.kpi-card small {
  color: var(--muted-2);
  font-size: 9px;
}

.section-header {
  margin-bottom: 22px;
  align-items: end;
}

.section-label {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.section-header h2,
.team-header h2 {
  margin: 7px 0 5px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.section-header p {
  color: var(--muted);
}

.last-updated {
  color: var(--muted-2);
}

.profile-grid {
  gap: 0;
  margin-bottom: 76px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.profile-card {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-card:last-child {
  border-right: 0;
}

.card-header {
  padding: 19px 20px;
  border-bottom: 1px solid var(--border);
}

.card-number {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 9px;
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.card-header p {
  color: var(--muted-2);
}

.profile-content {
  min-height: 300px;
  padding: 20px;
}

.custom-legend {
  gap: 9px;
}

.legend-color {
  border-radius: 0;
}

.legend-name {
  color: #b7bdc8;
}

.legend-percent {
  color: var(--text);
}

.questions-header {
  margin-top: 0;
}

.question-badge {
  border-radius: 0;
  background: transparent;
  border-color: var(--border-light);
  color: var(--muted);
  letter-spacing: .12em;
}

.question-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.question-card {
  min-height: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 30px 28px 28px;
  box-shadow: none;
}

.question-card:nth-child(even) {
  border-right: 0;
}

.question-card .question-chart {
  height: 390px;
  min-height: 390px;
}

.question-card:has(#chart-q4) .question-chart {
  height: 650px;
  min-height: 650px;
}

.question-number {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: .22em;
}

.question-title {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.question-chart {
  margin-top: 18px;
  padding: 18px 2px 8px;
}

.production-team {
  margin-top: 72px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.team-header {
  margin-bottom: 26px;
}

.team-header p {
  color: var(--muted);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.team-member {
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.team-role {
  color: var(--muted-2);
  opacity: 1;
  letter-spacing: .18em;
}

.team-name {
  color: var(--text);
}

.team-detail {
  color: var(--muted-2);
  opacity: 1;
}

footer {
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

footer strong {
  color: var(--text);
}

.development-credit {
  color: var(--muted-2);
}

@media (max-width: 1150px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .profile-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 750px) {
  .dashboard {
    width: calc(100% - 28px);
    padding-top: 22px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .kpi-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .kpi-card:last-child {
    border-bottom: 0;
  }
  .question-grid {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 24px 16px;
  }
  .question-card {
    border-right: 0;
  }
  .team-list {
    grid-template-columns: 1fr;
  }
}

/* Export retains the same MATW visual language. */
body.exporting {
  background: var(--bg);
}


/* =====================================================
   TYPOGRAPHY + CHART READABILITY
   Desktop & mobile
===================================================== */

.brand-small {
  font-size: 10px;
}

.brand p {
  font-size: 12px;
}

.section-label {
  font-size: 10px;
}

.section-header h2,
.team-header h2 {
  font-size: 28px;
}

.section-header p {
  font-size: 12px;
}

.last-updated {
  font-size: 11px;
}

.kpi-top {
  font-size: 10px;
}

.kpi-card strong {
  font-size: 42px;
}

.kpi-card small {
  font-size: 11px;
}

.card-header h3 {
  font-size: 15px;
}

.card-header p {
  font-size: 10px;
}

.profile-content {
  min-height: 330px;
}

.donut-wrapper {
  height: 270px;
}

.custom-legend {
  gap: 11px;
}

.legend-name,
.legend-percent {
  font-size: 10px;
}

.legend-count {
  font-size: 9px;
}

.question-number {
  font-size: 10px;
}

.question-title {
  font-size: 17px;
  line-height: 1.5;
}

.question-card .question-chart {
  height: 440px;
  min-height: 440px;
}

.question-card:has(#chart-q4) .question-chart {
  height: 760px;
  min-height: 760px;
}

.team-header p,
.team-detail {
  font-size: 11px;
}

.team-role {
  font-size: 10px;
}

.team-name {
  font-size: 14px;
}

footer {
  font-size: 10px;
}

@media (max-width: 750px) {
  .dashboard {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.05;
  }

  .brand-small {
    font-size: 9px;
  }

  .brand p {
    font-size: 12px;
    line-height: 1.5;
  }

  .live-status,
  .refresh-btn,
  .export-btn {
    font-size: 12px;
    min-height: 40px;
    height: 40px;
  }

  .kpi-card {
    min-height: 138px;
    padding: 24px 20px;
  }

  .kpi-top {
    font-size: 11px;
  }

  .kpi-card strong {
    font-size: 40px;
  }

  .kpi-card small {
    font-size: 11px;
  }

  .section-label {
    font-size: 10px;
  }

  .section-header h2,
  .team-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 12px;
    line-height: 1.55;
  }

  .card-header {
    padding: 20px 18px;
  }

  .card-header h3 {
    font-size: 15px;
  }

  .card-header p {
    font-size: 10px;
  }

  .profile-content {
    min-height: 0;
    padding: 22px 16px 26px;
  }

  .donut-wrapper {
    height: 300px;
  }

  .custom-legend {
    gap: 12px;
    margin-top: 14px;
  }

  .legend-name,
  .legend-percent {
    font-size: 11px;
  }

  .legend-count {
    font-size: 10px;
  }

  .question-card {
    padding: 28px 14px 30px;
  }

  .question-number {
    font-size: 10px;
  }

  .question-title {
    font-size: 18px;
    line-height: 1.5;
  }

  .question-card .question-chart {
    height: 470px;
    min-height: 470px;
    margin-top: 22px;
    padding: 20px 0 10px;
  }

  .question-card:has(#chart-q4) .question-chart {
    height: 980px;
    min-height: 980px;
  }
}

@media (max-width: 480px) {
  .question-title {
    font-size: 17px;
  }

  .question-card .question-chart {
    height: 500px;
    min-height: 500px;
  }

  .question-card:has(#chart-q4) .question-chart {
    height: 1100px;
    min-height: 1100px;
  }

  .donut-wrapper {
    height: 280px;
  }
}


/* =====================================================
   FULL-WIDTH + LARGER CHART PRESENTATION
===================================================== */

.dashboard {
  width: min(1600px, calc(100% - 40px));
}

.question-card {
  padding-left: 32px;
  padding-right: 32px;
}

.question-card .question-chart {
  height: 520px;
  min-height: 520px;
  padding: 24px 0 12px;
}

.question-card:has(#chart-q4) .question-chart {
  height: 820px;
  min-height: 820px;
}

@media (max-width: 750px) {
  .dashboard {
    width: calc(100% - 32px);
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .topbar {
    gap: 22px;
    padding-bottom: 26px;
  }

  .top-actions {
    gap: 10px;
  }

  .kpi-grid {
    margin-top: 28px;
    margin-bottom: 56px;
  }

  .kpi-card {
    padding: 24px 20px;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .profile-grid {
    margin-bottom: 60px;
  }

  .card-header {
    padding: 20px;
  }

  .profile-content {
    padding: 24px 20px 28px;
  }

  .question-card {
    padding: 30px 20px 34px;
  }

  .question-card .question-chart {
    height: 560px;
    min-height: 560px;
    margin-top: 22px;
    padding: 24px 10px 16px;
  }

  .question-card:has(#chart-q4) .question-chart {
    height: 720px;
    min-height: 720px;
  }

  .team-member {
    padding: 20px;
  }

  footer {
    margin-top: 48px;
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .dashboard {
    width: calc(100% - 28px);
  }

  .top-actions {
    gap: 8px;
  }

  .kpi-card {
    padding: 22px 18px;
  }

  .card-header {
    padding: 19px 18px;
  }

  .profile-content {
    padding: 22px 18px 26px;
  }

  .question-card {
    padding: 28px 18px 32px;
  }

  .question-card .question-chart {
    height: 590px;
    min-height: 590px;
    padding: 22px 8px 14px;
  }

  .question-card:has(#chart-q4) .question-chart {
    height: 760px;
    min-height: 760px;
  }

  .team-member {
    padding: 18px;
  }
}


/* =====================================================
   DASHBOARD MOTION SYSTEM
===================================================== */

.dashboard-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .7s cubic-bezier(.2,.75,.2,1),
    transform .7s cubic-bezier(.2,.75,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.dashboard-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kpi-card,
.profile-card,
.question-card,
.team-member {
  transition:
    transform .35s cubic-bezier(.2,.75,.2,1),
    border-color .35s ease,
    background .35s ease,
    box-shadow .35s ease;
}

.kpi-card:hover,
.profile-card:hover,
.question-card:hover,
.team-member:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}

.kpi-card strong,
.profile-card canvas,
.question-chart canvas {
  will-change: transform;
}

.kpi-card strong {
  display: inline-block;
}

.status-dot {
  animation: dashboardStatusPulse 2.2s ease-in-out infinite;
}

@keyframes dashboardStatusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(69,212,131,0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(69,212,131,.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-reveal,
  .dashboard-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-dot {
    animation: none;
  }

  .kpi-card:hover,
  .profile-card:hover,
  .question-card:hover,
  .team-member:hover {
    transform: none;
  }
}
