/* ==========================================================================
   Seleksi Judul TA — satu file CSS, tanpa build step
   Palet: biru + putih. Font: Poppins (self-hosted). Ikon: SVG Material Symbols.
   ========================================================================== */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700.woff2') format('woff2');
}

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  --white: #ffffff;
  --bg: #f4f7fd;
  --line: #e5ebf5;
  --line-soft: #f1f5fb;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;

  --green-600: #16a34a;
  --green-50: #ecfdf3;
  --green-100: #d1fae5;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --red-100: #fecaca;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -18px rgba(37, 99, 235, 0.35);

  --sidebar-w: 264px;
  --topbar-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--blue-700);
  text-decoration: none;
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--blue-50);
  color: var(--blue-800);
  padding: 1px 6px;
  border-radius: 6px;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 6px;
}

.ic {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* ── Kerangka halaman ─────────────────────────────────────────────── */

.shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px 20px;
  background: var(--white);
  border-right: 1px solid var(--line);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.8);
}

.brand-mark-lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 11.5px;
  color: var(--ink-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sengaja dua kelas: .icon-btn didefinisikan setelah blok ini, jadi selector
   satu kelas akan kalah dan tombol tetap muncul di layar lebar. */
.icon-btn.sidebar-close {
  display: none;
  margin-left: auto;
}

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

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 0 12px 8px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  font-weight: 500;
  font-size: 13.5px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: var(--line-soft);
  color: var(--ink-900);
}

.nav-item.is-active {
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
}

.nav-item.is-active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--blue-600);
}

.nav-ic {
  opacity: 0.85;
}

.nav-item.is-active .nav-ic {
  opacity: 1;
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding: 13px 13px;
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--blue-50), var(--white));
  border: 1px solid var(--blue-100);
  color: var(--blue-800);
}

.sidebar-note p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-500);
}

.sidebar-note .ic {
  color: var(--blue-600);
  margin-top: 1px;
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 40;
}

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.icon-btn.menu-btn {
  display: none;
}

.topbar-title h1 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}

.topbar-title p {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 1px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-meta strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.user-meta small {
  font-size: 11px;
  color: var(--ink-400);
}

.content {
  padding: 24px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1440px;
  width: 100%;
}

/* ── Tombol & kontrol ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 16px -10px rgba(37, 99, 235, 0.9);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink-700);
}

.btn-ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--blue-700);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn.is-disabled,
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-400);
  min-width: 240px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.search input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
  width: 100%;
  color: var(--ink-900);
  background: transparent;
}

/* ── Kartu ────────────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

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

.card-head-wrap {
  flex-wrap: wrap;
}

.card-head h2 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.card-head p {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--line-soft);
  color: var(--ink-500);
  white-space: nowrap;
}

.chip-blue {
  background: var(--blue-50);
  color: var(--blue-700);
}

.chip-green {
  background: var(--green-50);
  color: var(--green-600);
}

.chip-amber {
  background: var(--amber-50);
  color: var(--amber-600);
}

.badge-count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 600;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: none;
}

.avatar-blue {
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  color: var(--white);
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
}

/* ── Statistik ────────────────────────────────────────────────────── */

.stat-grid {
  display: grid;
  /* Empat kartu sejajar di layar lebar; turun ke 2 kolom di tablet.
     Tanpa ini auto-fit menghasilkan susunan 3 + 1 yang terlihat pincang. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  flex: none;
}

.stat-card-warn .stat-icon {
  background: var(--amber-50);
  color: var(--amber-600);
}

.stat-label {
  font-size: 12.5px;
  color: var(--ink-500);
  font-weight: 500;
}

.stat-value {
  font-size: 27px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-meta {
  font-size: 11.5px;
  color: var(--ink-400);
}

/* ── Grid utama ───────────────────────────────────────────────────── */

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ── Tabel ────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin: 0 -6px;
  padding: 0 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: #fbfdff;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-900);
  white-space: nowrap;
}

.person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.person-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.person-meta strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-meta small {
  font-size: 11px;
  color: var(--ink-400);
}

.cell-progress {
  min-width: 140px;
}

.cell-progress small {
  display: block;
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 4px;
}

.col-code {
  white-space: nowrap;
}

.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 2px 7px;
  border-radius: 6px;
}

.col-title {
  color: var(--ink-900);
  min-width: 240px;
  line-height: 1.45;
}

.col-muted {
  color: var(--ink-500);
  font-size: 12.5px;
}

.progress {
  height: 7px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
  transition: width 0.4s ease;
}

.table .empty-row,
.empty-row {
  text-align: center;
  color: var(--ink-400);
  font-size: 12.5px;
  padding: 22px 12px;
  list-style: none;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.pager-info {
  font-size: 12px;
  color: var(--ink-400);
}

/* ── Ring progres ─────────────────────────────────────────────────── */

.ring-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 6px 0 14px;
}

.ring {
  width: 100%;
  max-width: 172px;
  height: auto;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-bg {
  stroke: var(--line-soft);
}

.ring-fg {
  stroke: var(--blue-600);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.ring-center strong {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.ring-center span {
  font-size: 11px;
  color: var(--ink-400);
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.mini-label {
  color: var(--ink-500);
}

.mini-list strong {
  color: var(--ink-900);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mini-strong-sm {
  font-size: 12px;
  font-weight: 500 !important;
  color: var(--ink-500) !important;
}

/* ── Aktivitas ────────────────────────────────────────────────────── */

.activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.activity-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  flex: none;
  margin-top: 1px;
}

.activity-body {
  min-width: 0;
  flex: 1;
}

.activity-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-body p {
  font-size: 11.5px;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity time {
  font-size: 11px;
  color: var(--ink-400);
  white-space: nowrap;
  margin-top: 2px;
}

.attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attention-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attention-name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Alert ────────────────────────────────────────────────────────── */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r);
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 13px;
}

.alert strong {
  display: block;
  font-weight: 600;
  margin-bottom: 1px;
}

.alert span {
  color: var(--ink-700);
}

.alert-danger {
  background: var(--red-50);
  border-color: var(--red-100);
  color: var(--red-600);
}

.alert-danger .ic {
  color: var(--red-600);
}

.alert-info .ic {
  color: var(--blue-600);
}

/* ── Empty state & halaman "tahap berikutnya" ─────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 46px 24px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: 4px;
}

.empty-state h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
}

.empty-state p {
  max-width: 460px;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 8px;
}

.soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 32px;
}

.soon-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.soon h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
}

.soon-lead {
  font-size: 13.5px;
  color: var(--ink-500);
  max-width: 620px;
}

.soon-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-700);
}

.soon-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.soon-actions {
  margin-top: 10px;
}

.tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  flex: none;
  margin-top: 1px;
}

/* ── Langkah import & dropzone ────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.step:last-child {
  border-bottom: 0;
}

.step-no {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  flex: none;
  margin-top: 1px;
}

.step strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.step p {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 2px;
}

.dropzone {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 26px 18px;
  border: 1.5px dashed var(--blue-200);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  color: var(--blue-600);
}

.dropzone strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.dropzone p {
  font-size: 12.5px;
  color: var(--ink-500);
  max-width: 380px;
}

.dropzone.is-disabled {
  opacity: 0.85;
}

.hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-600);
}

.hint p {
  font-size: 12.5px;
  color: var(--ink-700);
  line-height: 1.55;
}

/* ── Form & halaman login ─────────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-700);
}

.field input {
  font: inherit;
  font-size: 13.5px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: var(--ink-400);
}

.field input:focus {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}

/* Kontrol form tambahan (select & textarea) untuk halaman admin. */
.field select,
.field textarea {
  font: inherit;
  font-size: 13.5px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}

.field textarea::placeholder {
  color: var(--ink-400);
}

.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.field-hint {
  font-size: 11.5px;
  color: var(--ink-400);
  line-height: 1.4;
}

.field-error {
  font-size: 11.5px;
  color: var(--red-600);
  font-weight: 500;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--red-600);
}

.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 3px var(--red-50);
}

/* Form dua kolom untuk data reviewer. */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.form-grid .field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.back-row {
  display: flex;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Kotak link akses reviewer. */
.access-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px dashed var(--blue-200);
  border-radius: var(--r);
  background: var(--blue-50);
  color: var(--blue-600);
}

.access-box code {
  flex: 1 1 240px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--blue-700);
  word-break: break-all;
}

.access-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--ink-500);
}

.access-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Upload & laporan import ────────────────────────────────────── */
.upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.upload-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px dashed var(--blue-200);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  color: var(--blue-600);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.upload-pick:hover,
.upload-pick:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.upload-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.upload-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.upload-text small {
  font-size: 11.5px;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.report-stat-label {
  font-size: 11.5px;
  color: var(--ink-500);
}

.report-stat strong {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.report-stat.is-green {
  background: var(--green-50);
  border-color: transparent;
}

.report-stat.is-green strong {
  color: var(--green-600);
}

.report-stat.is-blue {
  background: var(--blue-50);
  border-color: transparent;
}

.report-stat.is-blue strong {
  color: var(--blue-700);
}

.report-stat.is-red {
  background: var(--red-50);
  border-color: transparent;
}

.report-stat.is-red strong {
  color: var(--red-600);
}

.report-stat.is-gray {
  background: var(--line-soft);
  border-color: transparent;
}

/* ── Grafik progres per prodi ───────────────────────────────────── */
.pchart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pchart-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pchart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pchart-head strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}

.pchart-head span {
  font-size: 12px;
  color: var(--ink-500);
  white-space: nowrap;
}

.pchart-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}

.pchart-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
  transition: width 0.4s ease;
}

.pchart-meta {
  font-size: 11.5px;
  color: var(--ink-400);
}

/* ── Detail form & aksi baris tabel ─────────────────────────────── */
.form-details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 14px;
  background: #fbfdff;
}

.form-details summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.form-details[open] {
  padding-bottom: 16px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-body {
  background:
    radial-gradient(900px 500px at 85% -10%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, var(--white), var(--bg));
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: center;
  gap: 56px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.auth-intro h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 20px 0 12px;
}

.auth-intro > p {
  font-size: 14px;
  color: var(--ink-500);
  max-width: 420px;
}

.auth-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-700);
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.auth-card h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
}

.auth-sub {
  font-size: 13px;
  color: var(--ink-500);
  margin: 3px 0 20px;
}

.auth-card .alert {
  margin-bottom: 14px;
}

.auth-foot {
  font-size: 11.5px;
  color: var(--ink-400);
  margin-top: 16px;
  line-height: 1.6;
}

/* ── Halaman error ────────────────────────────────────────────────── */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.error-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.error-code {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue-100);
  line-height: 1;
}

.error-card h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
}

.error-card p {
  font-size: 13px;
  color: var(--ink-500);
}

.error-card .btn {
  margin-top: 12px;
}

.error-detail {
  width: 100%;
  text-align: left;
  font-size: 11.5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  color: var(--ink-500);
  overflow-x: auto;
  white-space: pre-wrap;
}

/* ── Toast (salin link) ───────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--white);
  font-size: 12.5px;
  box-shadow: 0 16px 30px -14px rgba(15, 23, 42, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast .ic {
  color: #4ade80;
}

/* ── Responsif ────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.18);
  }

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

  .sidebar-close {
    display: inline-grid;
  }

  .icon-btn.sidebar-close {
    display: inline-grid;
  }

  .main {
    margin-left: 0;
  }

  .menu-btn {
    display: inline-grid;
  }

  .icon-btn.menu-btn {
    display: inline-grid;
  }

  .content {
    padding: 20px 18px 40px;
  }

  .topbar {
    padding: 12px 18px;
  }
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 20px;
  }

  .auth-intro h1 {
    font-size: 26px;
  }
}

@media (max-width: 720px) {
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .topbar-title h1 {
    font-size: 17px;
  }

  .user-meta {
    display: none;
  }

  .user {
    padding: 3px;
    border: 0;
  }

  .user form .icon-btn {
    width: 32px;
  }

  .stat-value {
    font-size: 23px;
  }

  .card {
    padding: 16px;
    border-radius: var(--r);
  }

  .card-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .card-head .btn,
  .card-head .search {
    width: 100%;
  }

  .search {
    min-width: 0;
  }

  .soon {
    padding: 22px 18px;
  }

  .pager {
    flex-direction: column;
    align-items: stretch;
  }

  .pager .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .head-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .head-tools .search,
  .head-tools .btn {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Halaman reviewer (/r/:token)
   Mobile-first: satu kolom, aksi kirim menempel di bawah.
   ========================================================================== */

.rv-body {
  background:
    radial-gradient(700px 380px at 50% -120px, var(--blue-100), transparent 70%),
    var(--bg);
}

.rv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.rv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.rv-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.rv-brand strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.2;
}

.rv-brand small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-400);
}

.rv-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rv-user strong {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.rv-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 18px 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-hero h1 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.25;
}

.rv-eyebrow {
  font-size: 12px;
  color: var(--ink-400);
}

.rv-hero-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.6;
}

.rv-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.rv-progress .progress {
  flex: 1;
  height: 9px;
}

.rv-progress-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
  white-space: nowrap;
}

.rv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rv-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rv-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.rv-group-who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.rv-group-who strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.rv-group-who small {
  font-size: 11.5px;
  color: var(--ink-400);
}

.rv-group-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tab judul milik mahasiswa yang sama */
.rv-tabs-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rv-tabs-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-500);
}

.rv-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.rv-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-700);
  font-size: 12.5px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rv-tab:hover {
  border-color: var(--blue-200);
  background: var(--blue-50);
  color: var(--blue-700);
}

.rv-tab.is-active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.rv-tab-no {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--ink-500);
  font-size: 10.5px;
  font-weight: 600;
}

.rv-tab.is-active .rv-tab-no {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.rv-tab-title {
  font-weight: 500;
}

.rv-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
}

.rv-tab.is-active .rv-tab-dot {
  background: #bbf7d0;
}

.rv-tabs-compact {
  margin-bottom: 2px;
}

.rv-card {
  display: block;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.rv-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue-200);
  transform: translateY(-1px);
}

.rv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rv-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.45;
}

.rv-card-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-500);
}

.rv-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-700);
}

.rv-foot {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.6;
}

.rv-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-500);
  width: fit-content;
}

.rv-back:hover {
  color: var(--blue-700);
}

.rv-title-card {
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--blue-100);
  background: linear-gradient(160deg, var(--blue-50), var(--white) 70%);
}

.rv-title-card h1 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.rv-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rv-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.rv-fieldset legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 0;
  margin-bottom: 8px;
}

.rv-required {
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: 1px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice {
  position: relative;
  display: block;
}

/* Radio disembunyikan secara visual, tetapi tetap fokusabel & terbaca
   screen reader (bukan display:none). */
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choice-body strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.choice-body small {
  font-size: 11.5px;
  color: var(--ink-500);
}

.choice-body:hover {
  border-color: var(--blue-200);
  background: #fbfdff;
}

.choice input:checked + .choice-body {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.choice input:checked + .choice-body strong {
  color: var(--blue-700);
}

.choice input:focus-visible + .choice-body {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.rv-form .field textarea {
  font: inherit;
  font-size: 13.5px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-900);
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rv-form .field textarea:focus {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.rv-form .field em {
  font-style: normal;
  color: var(--ink-400);
  font-weight: 400;
}

.rv-counter {
  text-align: right;
  font-size: 11px;
  color: var(--ink-400);
}

.rv-error {
  margin: 0;
  font-size: 12px;
  color: var(--red-600);
}

.rv-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(244, 247, 253, 0), var(--bg) 35%);
}

.rv-save-state {
  font-size: 12px;
  color: var(--ink-400);
  min-height: 18px;
}

.rv-save-state.is-ok {
  color: var(--green-600);
}

.rv-save-state.is-saving {
  color: var(--blue-600);
}

.rv-save-state.is-dirty {
  color: var(--amber-600);
}

.rv-save-state.is-error,
.rv-save-state.is-locked {
  color: var(--red-600);
}

.rv-hint {
  font-size: 11.5px;
  color: var(--ink-400);
  text-align: center;
}

.rv-summary {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rv-summary li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rv-summary li:last-child {
  border-bottom: 0;
}

.rv-summary-label {
  font-size: 12.5px;
  color: var(--ink-500);
  flex: none;
}

.rv-summary strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
}

.rv-summary-block {
  flex-direction: column;
  align-items: stretch !important;
  gap: 4px !important;
}

.rv-summary-block p {
  font-size: 13px;
  color: var(--ink-700);
  white-space: pre-wrap;
  line-height: 1.6;
}

.rv-disetujui {
  color: var(--green-600);
}

.rv-revisi {
  color: var(--amber-600);
}

.rv-ditolak {
  color: var(--red-600);
}

.rv-none {
  color: var(--ink-400);
}

.rv-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: var(--r);
  background: var(--blue-50);
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.55;
}

.rv-note .ic {
  color: var(--blue-600);
  margin-top: 1px;
}

.alert-success {
  background: var(--green-50);
  border-color: var(--green-100);
  color: var(--green-600);
}

.alert-success .ic {
  color: var(--green-600);
}

.rv-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.rv-404-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 34px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.rv-404-card h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 4px;
}

.rv-404-card p {
  font-size: 13px;
  color: var(--ink-500);
}

@media (min-width: 620px) {
  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rv-main {
    padding: 30px 24px 100px;
  }

  .rv-hero h1 {
    font-size: 26px;
  }
}

/* ==========================================================================
   Rekap & keputusan
   ========================================================================== */

.recap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.recap-stat {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.recap-stat-label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-500);
}

.recap-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.recap-stat.is-green {
  border-color: var(--green-100);
  background: linear-gradient(180deg, var(--green-50), var(--white));
}

.recap-stat.is-green strong {
  color: var(--green-600);
}

.recap-stat.is-amber {
  border-color: var(--amber-100);
  background: linear-gradient(180deg, var(--amber-50), var(--white));
}

.recap-stat.is-amber strong {
  color: var(--amber-600);
}

.recap-stat.is-red {
  border-color: var(--red-100);
  background: linear-gradient(180deg, var(--red-50), var(--white));
}

.recap-stat.is-red strong {
  color: var(--red-600);
}

.recap-stat.is-gray strong {
  color: var(--ink-500);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 11px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fbfdff;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink-400);
}

.filter-search:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.filter-search input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
  width: 100%;
  color: var(--ink-900);
  background: transparent;
}

.filter-bar select {
  font: inherit;
  font-size: 12.5px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink-700);
  cursor: pointer;
}

.filter-bar select:focus {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.rvchips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-red {
  background: var(--red-50);
  color: var(--red-600);
}

.chip-pending {
  background: var(--line-soft);
  color: var(--ink-400);
}

.col-reviews {
  min-width: 240px;
}

.final-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.final-green {
  background: var(--green-50);
  color: var(--green-600);
  border-color: var(--green-100);
}

.final-amber {
  background: var(--amber-50);
  color: var(--amber-600);
  border-color: var(--amber-100);
}

.final-red {
  background: var(--red-50);
  color: var(--red-600);
  border-color: var(--red-100);
}

.final-gray {
  background: var(--line-soft);
  color: var(--ink-500);
  border-color: var(--line);
}

.cell-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-400);
  font-weight: 400;
}

.recap-rule {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-500);
}

.recap-rule .ic {
  color: var(--blue-500);
  margin-top: 2px;
}

/* Tombol "Buka proposal" pada kartu judul reviewer */
.rv-proposal {
  margin-top: 12px;
  background: var(--white);
}

/* ==========================================================================
   Publikasi pengumuman (admin) & halaman publik /hasil
   ========================================================================== */

.announce-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-color: var(--blue-100);
  background: linear-gradient(160deg, var(--blue-50), var(--white) 65%);
}

.announce-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1 1 320px;
  min-width: 0;
}

.announce-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  color: var(--blue-600);
  flex: none;
}

.announce-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.announce-text {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-500);
  max-width: 620px;
  line-height: 1.6;
}

.announce-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pub-body {
  background:
    radial-gradient(760px 400px at 50% -140px, var(--blue-100), transparent 70%),
    var(--bg);
}

.pub-top {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.pub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pub-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.pub-brand strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.2;
}

.pub-brand small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pub-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 18px 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-hero h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-900);
  margin-top: 2px;
}

.pub-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-500);
}

.pub-note .ic {
  color: var(--blue-500);
  margin-top: 2px;
}

@media (max-width: 720px) {
  .pub-hero h1 {
    font-size: 21px;
  }

  .announce-actions {
    width: 100%;
  }

  .announce-actions .btn,
  .announce-actions form {
    flex: 1 1 auto;
  }

  .announce-actions form .btn {
    width: 100%;
  }
}

/* ── Info penelitian pada halaman reviewer ──────────────────────── */
.rv-card-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
}

.rv-card-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
}

.rv-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rv-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.rv-info h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.rv-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.rv-info-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.rv-info-grid dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-400);
}

.rv-info-grid dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink-900);
  line-height: 1.45;
}

.rv-info-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rv-info-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-600);
  flex: none;
}

.rv-info-text {
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.65;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .rv-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
