/* ==========================================================================
   Cek Judul Skripsi — design system
   Deep green + gold (UIN identity), Plus Jakarta Sans (UI) + Fraunces (display),
   eight-point star motif, 3D thesis globe in the hero.
   ========================================================================== */
:root {
  --paper: #f6f5ef;
  --surface: #ffffff;
  --surface-2: #f1f0e8;
  --ink: #14211b;
  --ink-2: #3c4a43;
  --muted: #6b7871;
  --line: #e2e1d8;
  --line-strong: #cfcec3;

  --g-950: #03170f;
  --g-900: #062a1c;
  --g-800: #0a3d29;
  --g-700: #0d5c3d;
  --g-600: #12784f;
  --g-500: #1a9a66;
  --g-100: #e3f3ea;
  --gold: #d6a740;
  --gold-2: #f1cf7a;
  --gold-soft: #fbf1d9;

  --brand: var(--g-700);
  --brand-ink: #ffffff;
  --focus: #e0b04a;

  --ok: #15805a;   --ok-soft: #e1f4ea;
  --warn: #b26a00; --warn-soft: #fcf0d6;
  --bad: #c0362c;  --bad-soft: #fbe5e2;
  --mark: rgba(214, 167, 64, .28);

  /* faculty palette (10) */
  --f0: #1a9a66; --f1: #d6a740; --f2: #3b82c4; --f3: #c0567a; --f4: #7a62c9;
  --f5: #e07b39; --f6: #2bb3a8; --f7: #8a9a3a; --f8: #b04a3d; --f9: #5d7389;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(10, 30, 20, .06), 0 2px 8px rgba(10, 30, 20, .05);
  --shadow-2: 0 2px 6px rgba(10, 30, 20, .06), 0 18px 48px -12px rgba(10, 40, 25, .22);
  --shadow-3: 0 30px 80px -20px rgba(3, 23, 15, .45);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1411; --surface: #131d18; --surface-2: #18241e;
    --ink: #e8eee9; --ink-2: #c3cec8; --muted: #8fa097; --line: #24322b; --line-strong: #33443b;
    --g-100: #15301f; --gold-soft: #2e2511;
    --brand: #1fae74; --brand-ink: #03170f;
    --ok: #4fd39a; --ok-soft: #12301f; --warn: #f0b552; --warn-soft: #33270e;
    --bad: #f2786b; --bad-soft: #3a1714; --mark: rgba(241, 207, 122, .22);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- top bar -------------------------------------------------------------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20; color: #fff;
}
.topbar.solid { position: sticky; top: 0; background: rgba(6, 42, 28, .92); backdrop-filter: blur(12px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo b { display: block; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; line-height: 1.2; }
.logo small { display: block; font-size: .74rem; opacity: .72; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; }
.nav a {
  white-space: nowrap;
  color: rgba(255,255,255,.82); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 99px; transition: background .2s, color .2s;
}
.nav a:hover, .nav a.active { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 560px) {
  .logo small { display: none; }
  .logo b { font-size: .92rem; }
  .nav a { padding: 8px 10px; font-size: .85rem; }
  .nav a.opt { display: none; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 500px at 78% 40%, rgba(26, 154, 102, .35), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(214, 167, 64, .18), transparent 60%),
    linear-gradient(160deg, var(--g-900) 0%, var(--g-950) 70%);
  padding: 120px 0 170px;
}
.hero::before { /* eight-point star lattice */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M32 14l5.3 12.7L50 32l-12.7 5.3L32 50l-5.3-12.7L14 32l12.7-5.3z'/%3E%3Crect x='19.3' y='19.3' width='25.4' height='25.4' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2);
  padding: 6px 12px 6px 8px; border: 1px solid rgba(241, 207, 122, .3); border-radius: 99px;
  background: rgba(241, 207, 122, .06);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(241,207,122,.18); }
.hero h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.04; letter-spacing: -.025em; margin: 22px 0 18px;
}
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.hero .sub { font-size: 1.08rem; color: rgba(255,255,255,.76); max-width: 34em; margin: 0 0 30px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.hero-stats div span { font-size: .82rem; color: rgba(255,255,255,.6); }
@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .hero-stats div b { font-size: 1.6rem; }
  .hero-stats div span { font-size: .74rem; }
}

.globe-stage { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; justify-self: end; perspective: 1200px; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-halo {
  position: absolute; inset: 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(26,154,102,.35), transparent 65%); filter: blur(20px);
}

/* floating 3D paper cards */
.float-card {
  position: absolute; width: 210px; padding: 14px 16px; border-radius: 14px; color: #14211b;
  background: rgba(255,255,255,.95); box-shadow: var(--shadow-3);
  transform-style: preserve-3d; animation: floaty 7s ease-in-out infinite;
  font-size: .78rem; line-height: 1.35;
}
.float-card .k { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #6b7871; font-weight: 700; }
.float-card .t { font-weight: 600; margin: 6px 0 10px; }
.float-card .lines i { display: block; height: 6px; border-radius: 3px; background: #e7e6dd; margin-top: 6px; }
.float-card .lines i:nth-child(2) { width: 82%; } .float-card .lines i:nth-child(3) { width: 64%; }
.float-card .pct { position: absolute; top: -14px; right: -12px; font-weight: 800; font-size: .9rem;
  padding: 6px 10px; border-radius: 99px; color: #fff; box-shadow: 0 8px 20px -6px rgba(0,0,0,.4); }
.fc-1 { left: -4%; bottom: 12%; --rx: 14deg; --ry: 22deg; --rz: -4deg; }
.fc-1 .pct { background: linear-gradient(135deg, #e0574a, #b8322a); }
.fc-2 { right: -2%; top: 8%; --rx: -10deg; --ry: -24deg; --rz: 5deg; animation-delay: -3.5s; width: 190px; }
.fc-2 .pct { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--g-950); }
@keyframes floaty {
  0%, 100% { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) translate3d(0, 0, 40px); }
  50% { transform: rotateX(calc(var(--rx) * .5)) rotateY(calc(var(--ry) * .6)) rotateZ(var(--rz)) translate3d(0, -14px, 70px); }
}
@media (max-width: 900px) {
  .hero { padding: 104px 0 150px; }
  .hero-grid { grid-template-columns: 1fr; }
  .globe-stage { justify-self: center; max-width: 380px; margin-top: 8px; }
  .float-card { width: 170px; font-size: .72rem; }
  .fc-2 { width: 160px; }
}
@media (max-width: 480px) { .fc-1 { left: 0; } .fc-2 { right: 0; } }

/* --- form panel (overlaps hero) ------------------------------------------ */
.panel {
  position: relative; z-index: 5; margin-top: -110px;
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-2);
  border: 1px solid var(--line); padding: 34px;
}
.panel::before { /* gold top edge */
  content: ""; position: absolute; left: 34px; right: 34px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
@media (max-width: 600px) { .panel { padding: 22px 18px; border-radius: 20px; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.panel-head h2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; margin: 0; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: .88rem; margin-bottom: 8px; color: var(--ink-2); }
.field label .hint { font-weight: 400; color: var(--muted); }
.input, textarea.input, select.input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .98rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--g-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g-500) 18%, transparent); }
.input.title-input { font-size: 1.12rem; font-weight: 600; padding: 16px 18px; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
select.input {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7871' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.word-count { font-size: .78rem; color: var(--muted); font-weight: 500; }
.word-count.ok { color: var(--ok); }

.filters {
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px 16px 2px; margin-bottom: 22px;
  border: 1px dashed var(--line-strong);
}
.filters-title { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 10px; }

.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 15px 26px; border: 0; border-radius: 99px; font: inherit; font-weight: 700; font-size: 1rem;
  color: #fff; text-decoration: none; overflow: hidden;
  background: linear-gradient(135deg, var(--g-600), var(--g-800));
  box-shadow: 0 10px 24px -10px rgba(13, 92, 61, .8), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .15s, box-shadow .2s;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transition: transform .7s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(13, 92, 61, .9), inset 0 1px 0 rgba(255,255,255,.18); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--g-950); box-shadow: 0 10px 24px -10px rgba(214,167,64,.9); }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost::after { display: none; }
.btn.small { padding: 9px 16px; font-size: .86rem; }
.btn.danger { background: var(--bad-soft); color: var(--bad); box-shadow: none; padding: 7px 14px; font-size: .82rem; }
.btn.danger::after { display: none; }
.privacy { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.privacy svg { width: 16px; height: 16px; flex: none; }

/* --- notices --------------------------------------------------------------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; }
.notice.info { background: var(--g-100); color: var(--ink-2); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.err { background: var(--bad-soft); color: var(--bad); }
.notice .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 1s linear infinite; flex: none; margin-top: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- sections ------------------------------------------------------------- */
.section { padding: 88px 0 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.kicker { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--g-600); }
@media (prefers-color-scheme: dark) { .kicker { color: var(--gold-2); } }
.section h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; line-height: 1.12; margin: 8px 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; box-shadow: var(--shadow-1); transition: transform .3s, box-shadow .3s;
  transform-style: preserve-3d;
}
.step:hover { box-shadow: var(--shadow-2); }
.step-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(145deg, var(--g-600), var(--g-900)); color: var(--gold-2);
  box-shadow: 0 12px 22px -10px rgba(6, 42, 28, .7), inset 0 1px 0 rgba(255,255,255,.15);
  transform: translateZ(30px);
}
.step-icon svg { width: 28px; height: 28px; }
.step::after {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; right: 22px;
  font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--line);
}
.step h3 { margin: 0 0 6px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 760px) { .scale { grid-template-columns: 1fr; } }
.scale > div { padding: 24px; position: relative; }
.scale > div + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .scale > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.scale .band { height: 8px; border-radius: 4px; margin-bottom: 16px; }
.scale .aman .band { background: linear-gradient(90deg, #7fd3a8, var(--ok)); }
.scale .tinjau .band { background: linear-gradient(90deg, #f6cf7c, var(--warn)); }
.scale .tinggi .band { background: linear-gradient(90deg, #f0948a, var(--bad)); }
.scale b { display: block; font-size: 1.05rem; }
.scale .range { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.scale .aman .range { color: var(--ok); } .scale .tinjau .range { color: var(--warn); } .scale .tinggi .range { color: var(--bad); }
.scale p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }

.coverage { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; } }
.fac-bars { display: grid; gap: 12px; }
.fac-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .88rem; }
.fac-bar .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.fac-bar .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.fac-bar .track { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
/* Full width by default; app.js collapses the bars until they scroll into view. */
.fac-bar .fill { height: 100%; border-radius: 5px; width: var(--w); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.fac-bars.pending .fill { width: 0; }

.f0 { --fc: var(--f0); } .f1 { --fc: var(--f1); } .f2 { --fc: var(--f2); } .f3 { --fc: var(--f3); } .f4 { --fc: var(--f4); }
.f5 { --fc: var(--f5); } .f6 { --fc: var(--f6); } .f7 { --fc: var(--f7); } .f8 { --fc: var(--f8); } .f9 { --fc: var(--f9); }
.fill { background: linear-gradient(90deg, color-mix(in srgb, var(--fc) 70%, white), var(--fc)); }

.big-number { font-family: var(--display); font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 600; line-height: .95; letter-spacing: -.04em; color: var(--g-700); }
@media (prefers-color-scheme: dark) { .big-number { color: var(--gold-2); } }

.footer { margin-top: 100px; padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* --- loading overlay ------------------------------------------------------- */
.loading {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 45%, rgba(13, 92, 61, .96), rgba(3, 23, 15, .98));
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.loading.show { opacity: 1; pointer-events: auto; }
.orbit { position: relative; width: 150px; height: 150px; margin: 0 auto 28px; transform-style: preserve-3d; transform: rotateX(64deg); }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(241, 207, 122, .35); animation: orbit 2.4s linear infinite; }
.orbit i:nth-child(2) { inset: 18px; border-color: rgba(255,255,255,.25); animation-duration: 1.8s; animation-direction: reverse; }
.orbit i:nth-child(3) { inset: 38px; border-color: rgba(26, 154, 102, .8); animation-duration: 1.2s; }
.orbit i::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 14px var(--gold-2); }
.orbit .core { position: absolute; inset: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--gold) 60%); transform: rotateX(-64deg); box-shadow: 0 0 40px rgba(241,207,122,.6); }
@keyframes orbit { to { transform: rotateZ(360deg); } }
.loading h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 0 0 6px; }
.loading p { margin: 0; color: rgba(255,255,255,.7); min-height: 1.6em; }

/* --- result page ---------------------------------------------------------- */
.result-hero { padding: 108px 0 140px; }
.verdict-grid { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
@media (max-width: 760px) { .verdict-grid { grid-template-columns: 1fr; gap: 24px; justify-items: start; } }
.ring { position: relative; width: 210px; height: 210px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: rgba(255,255,255,.1); }
/* Final position is in the markup; the animation only plays the entrance from empty. */
.ring .bar { stroke-linecap: round; filter: drop-shadow(0 0 10px var(--rc)); animation: ring-in 1.6s cubic-bezier(.2, .8, .2, 1) .15s backwards; }
@keyframes ring-in { from { stroke-dashoffset: 100; } }
.ring .value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .value b { font-family: var(--display); font-size: 3.6rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.ring .value span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 6px; }
.aman { --rc: #4fd39a; } .tinjau { --rc: #f3c057; } .tinggi { --rc: #f2786b; }
.ring .bar { stroke: var(--rc); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 99px; font-weight: 700; font-size: .86rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 25%, transparent); }
.verdict h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; margin: 16px 0 12px; }
.verdict .advice { color: rgba(255,255,255,.78); max-width: 40em; margin: 0 0 18px; }
.verdict .proposal { font-size: .9rem; color: rgba(255,255,255,.6); }
.verdict .proposal q { color: #fff; font-weight: 600; quotes: "“" "”"; }
.meter { position: relative; margin-top: 22px; max-width: 520px; }
.meter-bar { height: 8px; border-radius: 4px; display: flex; overflow: hidden; }
.meter-bar span:nth-child(1) { background: #3fbf86; } .meter-bar span:nth-child(2) { background: #e8b047; } .meter-bar span:nth-child(3) { background: #e2604f; }
.meter-pin { position: absolute; top: -6px; width: 4px; height: 20px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.25); transform: translateX(-50%); animation: pin-in 1.6s cubic-bezier(.2,.8,.2,1) .15s backwards; }
@keyframes pin-in { from { left: 0; } }
.meter-labels { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 8px; }

.results-panel { padding: 30px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

.match {
  position: relative; display: grid; grid-template-columns: 54px 1fr 96px; gap: 20px; align-items: start;
  padding: 22px; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: rise .6s cubic-bezier(.2,.8,.2,1) backwards;
}
.match:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 680px) {
  .match { grid-template-columns: 1fr auto; gap: 12px; padding: 18px; }
  .match .rank { display: none; }
}
.rank {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink-2);
  background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  box-shadow: inset 0 -3px 0 var(--line);
}
.match .t { font-weight: 650; font-size: 1.04rem; line-height: 1.45; }
.match mark { background: var(--mark); color: inherit; padding: 0 3px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: .84rem; margin-top: 8px; }
.meta .fac { display: inline-flex; align-items: center; gap: 6px; }
.meta .fac i { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); }
.src { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--g-100); color: var(--g-600); }
.src.internal { background: var(--gold-soft); color: var(--warn); }
@media (prefers-color-scheme: dark) { .src { color: var(--ok); } }
.bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin-top: 14px; }
@media (max-width: 680px) { .bars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini { font-size: .74rem; color: var(--muted); }
.mini div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.mini b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mini .track { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.mini .track span { display: block; height: 100%; border-radius: 3px; background: var(--g-500); }
.match details { margin-top: 12px; }
.match summary { cursor: pointer; color: var(--brand); font-size: .85rem; font-weight: 600; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.match summary::-webkit-details-marker { display: none; }
.match summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--g-100); font-size: .8rem; }
.match details[open] summary::before { content: "–"; }
.match details p { color: var(--ink-2); font-size: .9rem; margin: 10px 0 0; padding: 14px 16px; background: var(--surface-2); border-radius: var(--radius-sm); }
.link-out { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.link-out:hover { text-decoration: underline; }

.score-badge {
  text-align: center; border-radius: 16px; padding: 12px 6px 10px; transform-style: preserve-3d;
  background: var(--sb); color: var(--sc); border: 1px solid color-mix(in srgb, var(--sc) 25%, transparent);
}
.score-badge b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.score-badge small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.score-badge.aman { --sb: var(--ok-soft); --sc: var(--ok); }
.score-badge.tinjau { --sb: var(--warn-soft); --sc: var(--warn); }
.score-badge.tinggi { --sb: var(--bad-soft); --sc: var(--bad); }

.recheck summary { list-style: none; cursor: pointer; }
.recheck summary::-webkit-details-marker { display: none; }

/* --- admin ---------------------------------------------------------------- */
.admin-hero { padding: 104px 0 120px; }
.admin-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 14px 0 8px; letter-spacing: -.02em; }
.admin-hero p { color: rgba(255,255,255,.72); margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.tile .lbl { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tile .num { font-family: var(--display); font-size: 2.1rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.tile .sub { font-size: .78rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-1); }
.card h2 { font-size: 1.1rem; margin: 0 0 4px; }
.card .desc { color: var(--muted); font-size: .88rem; margin: 0 0 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.dropzone {
  display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 16px; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2);
  transition: border-color .2s, background .2s; color: var(--muted); font-size: .9rem;
}
.dropzone:hover, .dropzone.drag { border-color: var(--g-500); background: var(--g-100); }
.dropzone svg { width: 36px; height: 36px; color: var(--g-500); }
.dropzone b { color: var(--ink); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.running { background: var(--g-100); color: var(--g-600); }
.badge.failed, .badge.terputus { background: var(--bad-soft); color: var(--bad); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.muted { color: var(--muted); font-size: .86rem; }

/* --- motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
