/* ============================================================
   DESIGN SYSTEM — "Pola Pikir"
   Sumber: Aplikasi Pemetaan Profil Pola Pikir (PMKKA 2026)
   ============================================================ */

/* ---------- 1. PALET WARNA (CSS Variables) ---------- */
:root {
  /* Latar & permukaan */
  --bg-body: #f1f5f9;             /* slate-100  */
  --bg-card: #ffffff;
  --bg-soft: #f8fafc;             /* slate-50   */
  --bg-muted: #f1f5f9;            /* slate-100  */

  /* Border */
  --border: #e2e8f0;              /* slate-200  */
  --border-strong: #cbd5e1;       /* slate-300  */

  /* Teks */
  --text-strong: #0f172a;         /* slate-900  */
  --text: #334155;                /* slate-700  */
  --text-muted: #64748b;          /* slate-500  */
  --text-faint: #94a3b8;          /* slate-400  */
  --text-inverse: #ffffff;

  /* Warna primer (indigo) */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;
  --primary-950: #1e1b4b;

  /* Warna aksen */
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --emerald-50: #ecfdf5;
  --emerald-400: #34d399;
  --emerald-600: #059669;
  --emerald-900: #064e3b;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-900: #78350f;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;

  /* Gelap (footer, banner) */
  --dark-800: #1e293b;
  --dark-900: #0f172a;
  --dark-950: #020617;

  /* Bayangan */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-indigo: 0 4px 6px -1px rgba(199, 210, 254, 0.6);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

/* ---------- 2. BASE / RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  letter-spacing: -0.025em;
  margin-top: 0;
}

/* ---------- 3. LAYOUT ---------- */
.container {
  max-width: 1152px;              /* setara max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- 4. TOMBOL ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Tombol primer */
.btn-primary {
  background: var(--primary-600);
  color: var(--text-inverse);
  box-shadow: var(--shadow-indigo);
}
.btn-primary:hover {
  background: var(--primary-700);
  box-shadow: var(--shadow-lg);
}

/* Tombol sekunder / abu-abu */
.btn-secondary {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid rgba(203, 213, 225, 0.7);
}
.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-strong);
}

/* ---------- 5. KARTU ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 2rem;
}

.card-clickable {
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.25rem;
  transition: all 0.15s ease;
}
.card-clickable:hover {
  border-color: #cbd5e1;
}
.card-clickable.selected {
  border-color: var(--primary-600);
  background: rgba(238, 242, 255, 0.6);
  box-shadow: var(--shadow-sm);
}

/* ---------- 6. BANNER GRADASI ---------- */
.banner {
  background: linear-gradient(90deg, var(--primary-900), var(--primary-800), var(--dark-900));
  border-radius: var(--radius-xl);
  padding: 1.5rem 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}
.banner h2 {
  color: #fff;
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.banner p {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.625;
}

/* ---------- 7. BADGE ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}
.badge-indigo {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid rgba(199, 210, 254, 0.6);
}
.badge-amber {
  background: var(--amber-100);
  color: var(--amber-900);
  border: 1px solid rgba(253, 230, 138, 0.8);
}
.badge-emerald {
  background: var(--emerald-50);
  color: var(--emerald-900);
  border: 1px solid rgba(167, 243, 208, 0.8);
}
.badge-dark {
  background: rgba(30, 41, 59, 0.6);
  color: #c7d2fe;
  border: 1px solid rgba(67, 56, 202, 0.5);
}

/* ---------- 8. INPUT ---------- */
.input {
  width: 100%;
  padding: 0.625rem 1rem;
  padding-left: 2.5rem;           /* ruang ikon di kiri */
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  font-size: 0.875rem;
  color: var(--text-strong);
  transition: all 0.15s ease;
}
.input:focus {
  background: #fff;
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-200);
}
.input-error {
  border-color: var(--rose-400);
}
.input-error:focus {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 2px #fecdd3;
}
.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.field-required {
  color: var(--rose-500);
}
.field-error {
  font-size: 0.75rem;
  color: var(--rose-500);
  margin-top: 0.25rem;
}

/* ---------- 9. HEADER (sticky) ---------- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
}
@media (min-width: 640px) {
  .header-inner { flex-direction: row; }
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.header-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500), var(--sky-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow-indigo);
  transition: transform 0.2s ease;
}
.header-brand:hover .header-logo {
  transform: scale(1.05);
}
.header-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}
.header-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- 10. FOOTER (gelap) ---------- */
.footer {
  background: var(--dark-900);
  color: #cbd5e1;
  padding: 2rem 0;
  border-top: 1px solid var(--dark-800);
  margin-top: auto;
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
.footer-copyright {
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
@media (min-width: 640px) {
  .footer-copyright { flex-direction: row; }
}
.footer-copyright strong {
  color: #cbd5e1;
}

/* ---------- 11. TEKS HELPER ---------- */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.strong { color: var(--text-strong); }
.white { color: #fff; }
.center { text-align: center; }

/* ---------- 12. CETAK / PDF ---------- */
@media print {
  .no-print { display: none !important; }
}

/* ---------- 13. UTILITAS & KOMPONEN (JawabKita) ---------- */
.hidden { display: none !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-1-5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }

.text-center { text-align: center; }
.break-words { overflow-wrap: break-word; }
.uppercase { text-transform: uppercase; }
.semibold { font-weight: 600; }
.text-success { color: var(--emerald-600); }
.text-danger { color: var(--rose-500); }

.grid { display: grid; }
.sm-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .sm-grid { grid-template-columns: 1fr 1fr; } }
.grid-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .grid-actions { grid-template-columns: repeat(4, 1fr); } }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }

/* Input tanpa ruang ikon */
.input-plain {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  font-size: 0.875rem;
  color: var(--text-strong);
  transition: all 0.15s ease;
}
.input-plain:focus {
  background: #fff;
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-200);
}

/* Select */
.select {
  width: 100%;
  padding: 0.625rem 2.25rem 0.625rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-soft);
  font-size: 0.875rem;
  color: var(--text-strong);
  cursor: pointer;
  transition: all 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.875rem;
}
.select:focus {
  background-color: #fff;
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-200);
}

/* Tombol kecil & variasi */
.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.75rem; }
.btn-danger { background: var(--rose-600); color: #fff; }
.btn-danger:hover { background: #be123c; box-shadow: var(--shadow-lg); }
.btn-emerald { background: var(--emerald-600); color: #fff; }
.btn-emerald:hover { background: #047857; box-shadow: var(--shadow-lg); }
.btn-dashed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  border: 2px dashed var(--primary-200);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--primary-600);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-dashed:hover { background: var(--primary-50); }

/* Tautan */
.link {
  color: var(--primary-600);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}
.link:hover { color: var(--primary-700); text-decoration: underline; }
.link-danger {
  color: var(--rose-600);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}
.link-danger:hover { color: var(--rose-500); text-decoration: underline; }
.link:disabled, .link-danger:disabled { opacity: 0.35; cursor: not-allowed; }

/* Kartu kecil */
.card-sm { padding: 1.25rem 1.5rem; }

/* Badge tambahan */
.badge-slate {
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Kode set soal */
.code-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary-600);
}

/* Toggle kuis */
.quiz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-900);
  background: var(--emerald-50);
  border: 1px solid rgba(167, 243, 208, 0.8);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
}
.quiz-toggle input { accent-color: var(--emerald-600); margin: 0; }
.quiz-box {
  border: 1px solid rgba(167, 243, 208, 0.8);
  border-radius: var(--radius-md);
  background: var(--emerald-50);
  padding: 1rem;
}

/* ---------- 14. KOMPONEN LIVE (JawabKita) ---------- */
.btn-orange { background: var(--amber-600); color: #fff; }
.btn-orange:hover { background: var(--amber-500); box-shadow: var(--shadow-lg); }
.btn-dark { background: var(--dark-800); color: #fff; }
.btn-dark:hover { background: var(--dark-900); box-shadow: var(--shadow-lg); }

.live-badge { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 700; color: var(--rose-500); letter-spacing: 0.05em; }
.live-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--rose-500); animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.view-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.625rem 1rem; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; border: 1px solid transparent; }
.view-btn.active { background: var(--primary-600); color: #fff; box-shadow: var(--shadow-indigo); }
.view-btn:not(.active) { background: var(--bg-muted); color: var(--text); border-color: rgba(203, 213, 225, 0.7); }
.view-btn:not(.active):hover { background: #e2e8f0; color: var(--text-strong); }

.bar { height: 0.375rem; background: var(--bg-muted); border-radius: 9999px; overflow: hidden; }
.bar-lg { height: 0.625rem; }
.bar-dark { background: #1e293b; }
.bar-fill { height: 100%; border-radius: 9999px; transition: width 0.5s ease; }
.bar-fill.indigo { background: var(--primary-500); }
.bar-fill.emerald { background: var(--emerald-400); }
.bar-fill.emerald-soft { background: var(--emerald-400); opacity: 0.45; }
.bar-fill.amber { background: var(--amber-400); }

.stat-cell { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.75rem; background: #fff; }

.answer-row { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.75rem 1rem; }
.answer-row.new { box-shadow: 0 0 0 2px var(--emerald-400); }

.qr-box { width: 6rem; height: 6rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 0.75rem; color: var(--text-faint); text-align: center; }

.word-cloud { margin-bottom: 1rem; padding: 1rem; background: var(--primary-50); border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; }
.word-cloud span { font-weight: 600; color: var(--primary-700); }

.badge-btn { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; padding: 0.375rem 0.75rem; border-radius: var(--radius-full); background: var(--primary-50); color: var(--primary-700); border: 1px solid rgba(199, 210, 254, 0.6); cursor: pointer; transition: all 0.15s ease; }
.badge-btn:hover { background: var(--primary-100); }

.overlay { position: fixed; inset: 0; z-index: 50; background: var(--dark-950); overflow-y: auto; }
.overlay .container { padding-top: 2rem; padding-bottom: 2rem; }

.pres-question { font-size: 1.875rem; font-weight: 800; margin-bottom: 2.5rem; overflow-wrap: break-word; color: #fff; }
@media (min-width: 640px) { .pres-question { font-size: 3rem; } }
.pres-count { font-size: 1.875rem; font-weight: 700; color: var(--sky-300); }
.pres-star { font-size: 1.5rem; font-weight: 800; color: var(--amber-200); }
.pres-row { background: #1e293b; border-radius: var(--radius-lg); padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.pres-name { font-weight: 700; color: var(--sky-300); flex-shrink: 0; }

.leader-first { background: var(--amber-100); border-radius: var(--radius-md); padding: 0.25rem 0.75rem; }
.leader-bar { width: 8rem; }
@media (min-width: 640px) { .leader-bar { width: 12rem; } }

.text-orange { color: var(--amber-600); }
.fw-bold { font-weight: 700; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.pr-1 { padding-right: 0.25rem; }
.max-h-64 { max-height: 16rem; overflow-y: auto; }
.space-y-1-5 > * + * { margin-top: 0.375rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .grid-6 { grid-template-columns: repeat(6, 1fr); } }

/* ---------- 15. KOMPONEN PESERTA (JawabKita) ---------- */
.mt-5 { margin-top: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.code-input {
  width: 100%;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--bg-soft);
  color: var(--text-strong);
  transition: all 0.15s ease;
}
.code-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-200);
  background: #fff;
}

.pick-btn {
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pick-btn:hover { border-color: var(--primary-500); background: var(--primary-50); }
.pick-btn.selected { border-color: var(--primary-600); background: rgba(238, 242, 255, 0.6); box-shadow: var(--shadow-indigo); }
.pick-emotion { font-size: 2rem; }

.choice-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}
.choice-opt:hover { border-color: var(--primary-500); background: var(--primary-50); }
.choice-opt:has(input:checked) { border-color: var(--primary-600); background: rgba(238, 242, 255, 0.6); box-shadow: var(--shadow-indigo); }
.choice-opt input { accent-color: var(--primary-600); width: 1.25rem; height: 1.25rem; margin: 0; }

/* ---------- 16. TABEL & HALAMAN AUTH (JawabKita) ---------- */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow-x: auto; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
.table th { background: var(--bg-soft); color: var(--text-muted); text-transform: uppercase; font-size: 0.6875rem; font-weight: 600; padding: 0.75rem 1rem; letter-spacing: 0.05em; white-space: nowrap; }
.table td { padding: 0.75rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:first-child td { border-top: none; }
.row-empty { color: var(--text-faint); padding: 1rem; }

.btn-xs { padding: 0.375rem 0.75rem; font-size: 0.6875rem; }
.btn-sky { background: var(--sky-500); color: #fff; }
.btn-sky:hover { background: var(--sky-400); box-shadow: var(--shadow-lg); }

.badge-red { background: #ffe4e6; color: #9f1239; border: 1px solid rgba(254, 205, 211, 0.8); }
.badge-purple { background: #faf5ff; color: #6b21a8; border: 1px solid rgba(233, 213, 255, 0.8); }

.note-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.75rem; font-size: 0.75rem; color: var(--text-muted); text-align: center; }
