:root {
  /* Tema global: hitam & emas mewah */
  --gold: #C9A227;
  --gold-bright: #E8C878;
  --gold-deep: #A8841A;
  --gold-soft: #F4E6B5;
  --gold-mist: #F7F0DC;
  --black: #111111;
  --black-soft: #1A1A1A;
  --black-deep: #0A0A0A;
  --primary: var(--gold);
  --primary-deep: var(--gold-deep);
  --primary-soft: var(--gold-mist);
  --secondary: var(--black);
  --secondary-deep: var(--black-deep);
  --secondary-soft: #EFEBE3;
  --ink: #141414;
  --ink-soft: #5C5C5C;
  --paper: #FFFFFF;
  --paper-2: #FAF8F3;
  --card: #FFFFFF;
  --line: #E6E0D4;
  --accent: var(--gold);
  --accent-deep: var(--gold-deep);
  --accent-soft: var(--gold-mist);
  --coral: var(--gold);
  --ok: #1F7A4D;
  --err: #B42318;
  --shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
  --shine: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 48%);
  --gold-grad: linear-gradient(180deg, #E8C878 0%, #C9A227 48%, #A8841A 100%);
  --black-grad: linear-gradient(180deg, #2A2A2A 0%, #141414 55%, #0A0A0A 100%);
  --radius: 12px;
  --space-1: 0.25rem;
  --space-2: 0.45rem;
  --space-3: 0.65rem;
  --space-4: 0.85rem;
  --font: "Outfit", system-ui, sans-serif;
  --kr: "Noto Serif KR", "Noto Sans KR", serif;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(17, 17, 17, 0.06), transparent 52%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF8F3 100%);
  min-height: 100vh;
  line-height: 1.4;
  overflow-x: hidden;
}
img, video, svg, canvas { max-width: 100%; height: auto; }
table { max-width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-word; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--black); }

.dk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem clamp(0.75rem, 2vw, 1.4rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 50%),
    linear-gradient(180deg, #1A1A1A, #111111);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.22);
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  color: #F7F3E8;
}
.dk-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; min-width: 0; }
.dk-brand:hover { text-decoration: none; color: #F7F3E8; }
.dk-brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background:
    var(--shine),
    var(--gold-grad);
  color: #1A1408; font-family: var(--kr); font-weight: 700; font-size: 1.15rem;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 8px 18px rgba(168, 132, 26, 0.35);
}
.dk-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dk-brand-text strong { font-size: 1.05rem; letter-spacing: -0.02em; color: #FFFFFF; }
.dk-brand-text em { font-style: normal; color: rgba(232, 200, 120, 0.85); font-size: 0.78rem; }
.dk-topbar-right { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; margin-left: auto; }
.dk-topbar .dk-btn-ghost {
  color: #F4E6B5;
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(255,255,255,0.04);
}
.dk-topbar .dk-btn-ghost:hover {
  background: rgba(201, 162, 39, 0.16);
  color: #F4E6B5;
}
.dk-user-chip {
  font-size: 0.82rem; color: #F4E6B5;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 0.35rem 0.7rem; border-radius: 999px;
  max-width: min(240px, 55vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}

/* Fluid shell: full on large screens, padded on small */
.dk-shell,
.dk-shell-wide {
  width: 100%;
  max-width: min(1680px, 100%);
  margin: 1rem auto 2.5rem;
  padding-inline: clamp(0.75rem, 2.2vw, 1.75rem);
  box-sizing: border-box;
}
.dk-page-pekerja .dk-shell-wide { width: 100%; max-width: min(1680px, 100%); }

.dk-footer {
  text-align: center; color: var(--ink-soft); font-size: 0.85rem;
  padding: 1.5rem clamp(0.75rem, 2vw, 1.5rem) 2.5rem;
}

/* Gate — pintu masuk mewah hitam & emas full color */
.dk-page-gate {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(201, 162, 39, 0.28), transparent 55%),
    radial-gradient(800px 520px at 100% 100%, rgba(232, 200, 120, 0.12), transparent 50%),
    linear-gradient(160deg, #0A0A0A 0%, #141414 45%, #1A1408 100%);
  color: #F7F3E8;
}
.dk-page-gate .dk-footer { display: none; }

.dk-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem) 1rem 2rem;
  position: relative;
  overflow: hidden;
}
.dk-gate-glow {
  position: absolute;
  inset: auto 50% 18% auto;
  width: min(640px, 90vw);
  height: 280px;
  transform: translateX(50%);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.dk-gate-card {
  width: min(980px, 100%);
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    linear-gradient(155deg, #1C1C1C 0%, #121212 55%, #0C0C0C 100%);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0,0,0,0.35);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  overflow: hidden;
}
.dk-gate-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #F0D78A, #C9A227 45%, #8B7014 100%);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.45);
}
.dk-gate-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 120, 0.55), transparent);
  pointer-events: none;
}

.dk-gate-brand {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-inline: 0.5rem;
}
.dk-gate-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 18px;
  font-family: var(--kr);
  font-size: 1.7rem;
  font-weight: 700;
  color: #1A1408;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), transparent 45%),
    linear-gradient(145deg, #F0D78A, #C9A227 55%, #A8841A);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 14px 28px rgba(168, 132, 26, 0.35);
}
.dk-gate-kr {
  font-family: var(--kr);
  color: #E8C878;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  font-weight: 700;
}
.dk-gate h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.dk-gate-sub {
  color: rgba(247, 243, 232, 0.78);
  margin: 0.7rem auto 0;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.dk-gate-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  perspective: 1000px;
}
@media (max-width: 800px) {
  .dk-gate-grid { grid-template-columns: 1fr; }
}

.dk-gate-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 180px;
  padding: 1.25rem 1.15rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, filter .22s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.28) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 16px 32px rgba(0,0,0,0.28);
}
.dk-gate-link:hover,
.dk-gate-link:focus-visible {
  transform: translateY(-10px) scale(1.02);
  filter: brightness(1.05);
  text-decoration: none;
  outline: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 26px 48px rgba(0,0,0,0.4),
    0 10px 24px rgba(168, 132, 26, 0.22);
}
.dk-gate-link-shine {
  position: absolute;
  inset: -25% -40% auto;
  height: 60%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.1) 36%,
    rgba(255,255,255,0.42) 48%,
    rgba(255,255,255,0.08) 58%,
    transparent 72%
  );
  transform: rotate(-10deg);
  pointer-events: none;
}
.dk-gate-link:hover .dk-gate-link-shine {
  transform: rotate(-10deg) translateX(10%);
}

.dk-gate-link-gold {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(155deg, #F0D78A 0%, #E8C878 24%, #C9A227 60%, #A8841A 100%);
  border: 1px solid rgba(168, 132, 26, 0.5);
  color: #1A1408;
}
.dk-gate-link-black {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(155deg, #2C2C2C 0%, #1A1A1A 42%, #0F0F0F 100%);
  border: 1px solid rgba(201, 162, 39, 0.42);
  color: #F7F3E8;
}

.dk-gate-role {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}
.dk-gate-link-gold .dk-gate-role { color: #5C4810; }
.dk-gate-link-black .dk-gate-role { color: #E8C878; }

.dk-gate-link strong {
  display: block;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
  position: relative;
  z-index: 1;
}
.dk-gate-link p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.85;
  flex: 1;
  position: relative;
  z-index: 1;
}
.dk-gate-cta {
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.dk-gate-link-gold .dk-gate-cta {
  color: #1A1408;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(26, 20, 8, 0.12);
  align-self: flex-start;
}
.dk-gate-link-black .dk-gate-cta {
  color: #1A1408;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #E8C878, #C9A227);
  align-self: flex-start;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset;
}

.dk-gate-foot {
  margin: 1.35rem 0 0;
  text-align: center;
  color: rgba(247, 243, 232, 0.45);
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}

/* Buttons & forms — gold glossy */
.dk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; border-radius: 12px; padding: 0.7rem 1.15rem;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  color: #1A1408;
  background:
    var(--shine),
    var(--gold-grad);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 8px 18px rgba(168, 132, 26, 0.28);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.dk-btn:hover {
  filter: brightness(1.05);
  text-decoration: none; color: #1A1408;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 12px 24px rgba(168, 132, 26, 0.34);
}
.dk-btn-ghost {
  background: linear-gradient(180deg, #fff, var(--paper-2));
  color: var(--ink);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}
.dk-btn-ghost:hover {
  background: var(--secondary-soft);
  color: var(--ink);
  filter: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}
.dk-btn-coral {
  background:
    var(--shine),
    var(--black-grad);
  color: #F4E6B5;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 8px 18px rgba(17, 17, 17, 0.28);
}
.dk-btn-coral:hover { filter: brightness(1.08); color: #F4E6B5; }
.dk-btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; border-radius: 10px; }
.dk-btn-block { width: 100%; }

.dk-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), #fff);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    var(--shadow);
  padding: clamp(0.9rem, 2vw, 1.35rem); margin-bottom: 1.1rem;
  max-width: 100%;
  overflow: hidden;
}
.dk-card h1, .dk-card h2 {
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  overflow-wrap: anywhere; word-break: break-word;
}
.dk-muted { color: var(--ink-soft); }
.dk-flash {
  padding: 0.85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500;
  overflow-wrap: anywhere;
}
.dk-flash.ok { background: #e5f6ec; color: var(--ok); border: 1px solid #b7e4c7; }
.dk-flash.err { background: #fdeceb; color: var(--err); border: 1px solid #f5c2c0; }

.dk-form-grid { display: grid; gap: 0.9rem; width: 100%; }
.dk-form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .dk-form-grid.cols-2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.35rem; }
input[type="text"], input[type="password"], input[type="number"], input[type="email"],
input[type="search"], input[type="date"], input[type="file"],
select, textarea {
  width: 100%; max-width: 100%; padding: 0.7rem 0.85rem; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink);
  box-sizing: border-box;
}
textarea { min-height: 90px; resize: vertical; }
.dk-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.dk-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
table.dk-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: auto;
}
.dk-table th, .dk-table td {
  text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top;
  overflow-wrap: anywhere; word-break: break-word;
}
.dk-table th {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #F4E6B5;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 45%),
    var(--black-grad);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}
.dk-badge {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
}
.dk-badge-ok { background: #e5f6ec; color: var(--ok); }
.dk-badge-fail { background: #fdeceb; color: var(--err); }
.dk-badge-info { background: var(--gold-mist); color: #5C4810; }
.dk-badge-soft { background: var(--paper-2); color: var(--ink-soft); }

.dk-stats {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) { .dk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .dk-stats { grid-template-columns: 1fr; } }
.dk-stat {
  background: linear-gradient(180deg, #fff, var(--paper-2));
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 16px; padding: 1rem;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 10px 22px rgba(17, 17, 17, 0.05);
}
.dk-stat span { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.dk-stat strong { font-size: clamp(1.2rem, 3vw, 1.6rem); letter-spacing: -0.03em; color: var(--ink); }

.dk-paket-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.dk-paket-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.15rem; border-radius: 18px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(165deg, #fff 0%, #FAF8F3 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 12px 28px rgba(17, 17, 17, 0.06);
  text-decoration: none; color: inherit; min-height: 180px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dk-paket-card:hover {
  border-color: rgba(201, 162, 39, 0.55);
  text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 16px 32px rgba(168, 132, 26, 0.14);
}
.dk-paket-card .chip {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--gold-mist); color: #5C4810;
  padding: 0.25rem 0.55rem; border-radius: 999px;
}
.dk-paket-card h3 { margin: 0; font-size: 1.1rem; }
.dk-paket-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.dk-paket-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dk-paket-meta span {
  font-size: 0.75rem; background: var(--secondary-soft); color: var(--ink);
  padding: 0.2rem 0.5rem; border-radius: 8px;
}

/* Login */
.dk-login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
}
.dk-login-card {
  width: min(420px, 100%); background: var(--card);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 24px; box-shadow: var(--shadow); padding: 1.75rem;
}
.dk-login-card h1 { margin: 0 0 0.35rem; font-size: 1.55rem; }
.dk-login-card .kr { font-family: var(--kr); color: var(--gold-deep); margin: 0 0 1rem; }

/* CBT */
.dk-cbt-shell {
  width: 100%;
  max-width: min(900px, 100%);
  margin: 1rem auto 2.5rem;
  padding-inline: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}
.dk-cbt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.85rem; flex-wrap: wrap;
}
.dk-timer {
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.15rem;
  background: var(--black); color: #F4E6B5; padding: 0.45rem 0.85rem; border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.dk-timer.warn { background: var(--gold-deep); color: #1A1408; }
.dk-progress-track {
  height: 8px; background: var(--secondary-soft); border-radius: 999px; overflow: hidden; margin-bottom: 1rem;
}
.dk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--black), var(--gold));
  width: 0%; transition: width .2s ease;
}
.dk-question-type {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gold-deep); margin-bottom: 0.5rem;
}
.dk-korean-line {
  font-family: var(--kr); font-size: 1.45rem; margin: 0.4rem 0 0.8rem; line-height: 1.35;
}
.dk-choices { display: grid; gap: 0.65rem; margin-top: 1rem; }
.dk-choice {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.9rem 1rem; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; cursor: pointer; text-align: left; font: inherit;
}
.dk-choice:hover, .dk-choice.is-selected {
  border-color: var(--gold);
  background: var(--gold-mist);
}
.dk-choice-key {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--black); color: #E8C878; font-weight: 700; flex-shrink: 0;
}
.dk-choice img { max-width: 120px; border-radius: 10px; display: block; object-fit: contain; }
.dk-choice-body { display: grid; gap: 0.2rem; min-width: 0; }
.dk-choice-text { display: block; }
.dk-choices-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dk-choices-tf {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dk-choices-tf .dk-choice {
  min-height: 4.5rem;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.15rem;
  font-weight: 700;
}
.dk-qnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.75rem;
}
.dk-qnav-item {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.dk-qnav-item.is-current {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-mist);
}
.dk-qnav-item.is-answered {
  background: #e5f6ec;
  color: var(--ok);
}
.dk-qnav-item.is-unanswered {
  background: var(--paper-2);
}
.dk-qnav-item.is-marked {
  outline: 2px dashed var(--coral);
}
.dk-autosave-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: auto;
}
.dk-autosave-status.is-ok { color: var(--ok); }
.dk-autosave-status.is-err { color: var(--err); }
.dk-autosave-status.is-saving { color: var(--ink-soft); }
.dk-cbt-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
@media (max-width: 600px) {
  .dk-choices-images { grid-template-columns: 1fr; }
}
.dk-q-image { max-width: 100%; border-radius: 14px; margin: 0.75rem 0; border: 1px solid var(--line); object-fit: contain; }
.dk-audio-box {
  background: var(--paper-2); border-radius: 14px; padding: 0.9rem 1rem; margin: 0.75rem 0;
}
.dk-audio-box audio { width: 100%; margin-top: 0.4rem; }
.dk-result-score {
  font-size: clamp(3rem, 10vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1; margin: 0.4rem 0;
}
.dk-review-item {
  border-top: 1px solid var(--line); padding: 1rem 0;
}
.dk-review-item:first-child { border-top: none; }
.dk-explain {
  margin-top: 0.5rem; padding: 0.7rem 0.85rem; border-radius: 12px;
  background: var(--gold-mist); color: var(--ink-soft); font-size: 0.92rem;
}

/* Form buat/edit soal — field dinamis + segmen berwarna */
.dk-q-card {
  background:
    linear-gradient(180deg, #FAF8F3 0%, #F3EFE6 100%);
  border: 1px solid rgba(201, 162, 39, 0.22);
}
.dk-q-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.55rem;
}
.dk-q-seg {
  border-radius: 12px;
  border: 1px solid transparent;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 16px rgba(17,17,17,0.05);
}
.dk-q-seg-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(17,17,17,0.06);
}
.dk-q-seg-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.dk-q-seg-head h2 {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.dk-q-seg-head p {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  opacity: 0.78;
  font-weight: 550;
  line-height: 1.3;
}
.dk-q-seg-body {
  padding: 0.6rem 0.7rem 0.7rem;
}
.dk-q-seg-body.dk-form-grid { gap: 0.5rem; }
.dk-q-seg-body label { margin-bottom: 0.18rem; }
.dk-q-actions {
  margin-top: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.25);
  position: sticky;
  bottom: 0.4rem;
  z-index: 5;
}

/* Warna per segmen */
.dk-q-seg-type {
  background: linear-gradient(180deg, #1A1A1A, #111111);
  border-color: rgba(201, 162, 39, 0.4);
  color: #F7F3E8;
}
.dk-q-seg-type .dk-q-seg-head {
  border-bottom-color: rgba(201, 162, 39, 0.28);
}
.dk-q-seg-type .dk-q-seg-num {
  background: var(--gold-grad);
  color: #1A1408;
}
.dk-q-seg-type h2 { color: #fff; }
.dk-q-seg-type p { color: rgba(232, 200, 120, 0.85); }
.dk-q-seg-type label { color: #F4E6B5; }
.dk-q-seg-type select {
  background: #FAF8F3;
  border-color: rgba(201, 162, 39, 0.45);
}

.dk-q-seg-content {
  background: #FFFBF2;
  border-color: rgba(201, 162, 39, 0.35);
  border-left: 4px solid var(--gold);
}
.dk-q-seg-content .dk-q-seg-num {
  background: var(--gold-mist);
  color: #5C4810;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.dk-q-seg-media {
  background: #F1F5F9;
  border-color: #CBD5E1;
  border-left: 4px solid #475569;
}
.dk-q-seg-media .dk-q-seg-num {
  background: #334155;
  color: #F8FAFC;
}

.dk-q-seg-audio {
  background: #FFF4E5;
  border-color: #F0C98A;
  border-left: 4px solid #C27A1A;
}
.dk-q-seg-audio .dk-q-seg-num {
  background: #C27A1A;
  color: #FFF8EB;
}

.dk-q-seg-choices {
  background: #F0F7F3;
  border-color: #B7DCC8;
  border-left: 4px solid #1F7A4D;
}
.dk-q-seg-choices .dk-q-seg-num {
  background: #1F7A4D;
  color: #fff;
}

.dk-q-seg-imgchoices {
  background: #EEF6F8;
  border-color: #B8D4DC;
  border-left: 4px solid #2F6F7A;
}
.dk-q-seg-imgchoices .dk-q-seg-num {
  background: #2F6F7A;
  color: #fff;
}

.dk-q-seg-meta {
  background: #F7F0DC;
  border-color: rgba(201, 162, 39, 0.4);
  border-left: 4px solid var(--black);
}
.dk-q-seg-meta .dk-q-seg-num {
  background: var(--black);
  color: #E8C878;
}

.dk-q-type-hint {
  margin: 0.4rem 0 0;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #F4E6B5;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 600;
}
.dk-q-form [data-qfield][hidden] { display: none !important; }
.dk-req-mark {
  color: var(--err);
  font-weight: 800;
}
.dk-q-form textarea { min-height: 52px; }

/* V2 builder + preview (Phase 4) */
.dk-v2-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.dk-v2-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.55rem;
  background: linear-gradient(180deg, #fff, var(--paper-2));
}
.dk-v2-option-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.dk-v2-opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  font-weight: 800;
  background: var(--gold-mist);
  color: #5C4810;
}
.dk-v2-correct {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.dk-v2-thumb,
.dk-preview-opt-img,
.dk-preview-image {
  max-width: min(100%, 280px);
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  margin: 0.35rem 0;
}
.dk-preview-wrap { padding: 1rem 1.1rem 1.25rem; }
.dk-preview-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem; }
.dk-preview-ko { font-family: var(--kr); }
.dk-preview-instruction,
.dk-preview-stimulus,
.dk-preview-question {
  margin-bottom: 0.85rem;
}
.dk-preview-prompt {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  line-height: 1.35;
}
.dk-preview-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.dk-preview-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.dk-preview.is-interactive .dk-preview-option {
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.dk-preview.is-interactive .dk-preview-option:hover,
.dk-preview.is-interactive .dk-preview-option:focus-visible {
  border-color: rgba(13, 110, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.12);
  outline: none;
}
.dk-preview-option.is-selected {
  border-color: rgba(13, 110, 110, 0.55);
  background: #f3fbfb;
}
.dk-preview-option.is-correct {
  border-color: rgba(31, 122, 77, 0.45);
  background: #f2faf5;
}
.dk-preview-option.is-wrong {
  border-color: rgba(180, 35, 24, 0.4);
  background: #fff5f4;
}
.dk-preview-opt-label {
  font-weight: 800;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--paper-2);
}
.dk-preview-opt-body { display: grid; gap: 0.2rem; }
.dk-preview-correct-mark {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ok);
}
.dk-preview-option.is-wrong .dk-preview-correct-mark {
  color: var(--err);
}
.dk-preview-explanation {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}
.dk-preview-audio { width: 100%; max-width: 420px; margin-top: 0.35rem; }
.dk-preview-try-bar {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.55rem;
}
.dk-preview-try-hint { margin: 0; }
.dk-preview-try-status {
  margin: 0;
  font-weight: 700;
}
.dk-preview-try-status.is-ok { color: var(--ok); }
.dk-preview-try-status.is-err { color: var(--err); }
.dk-preview-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.dk-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .dk-preview-option { grid-template-columns: auto 1fr; }
  .dk-preview-correct-mark { grid-column: 2; }
}

.dk-nav-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.dk-nav-pills a {
  padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: linear-gradient(180deg, #fff, var(--paper-2));
  color: var(--ink); font-size: 0.88rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset;
}
.dk-nav-pills a.is-active, .dk-nav-pills a:hover {
  background:
    var(--shine),
    var(--gold-grad);
  color: #1A1408; border-color: rgba(168, 132, 26, 0.4); text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 8px 16px rgba(168, 132, 26, 0.28);
}

.dk-hidden { display: none !important; }

.dk-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.dk-table-lux th {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 45%),
    var(--black-grad);
  color: #F4E6B5;
  position: sticky;
  top: 0;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}
.dk-table-lux td { vertical-align: middle; }
.dk-kode {
  display: inline-block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFF9E8, #F4E6B5);
  color: #5C4810;
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.dk-pekerja-panel { overflow: hidden; }
.dk-pekerja-head {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: flex-start; margin-bottom: 1rem;
}
.dk-pekerja-filters {
  display: grid; gap: 0.85rem;
  grid-template-columns: 2fr 1fr auto;
  padding: 0.9rem; border-radius: 14px; background: var(--paper);
  border: 1px solid var(--line);
}
@media (max-width: 800px) {
  .dk-pekerja-filters { grid-template-columns: 1fr; }
}
.dk-pekerja-cell { display: flex; align-items: center; gap: 0.75rem; }
.dk-pekerja-thumb {
  width: 40px; height: 40px; border-radius: 11px; object-fit: cover;
  border: 1px solid var(--line); flex-shrink: 0;
}
.dk-pekerja-thumb-ph {
  display: grid; place-items: center;
  background:
    var(--shine),
    var(--black-grad);
  color: #E8C878; font-family: var(--kr); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset;
  border: 1px solid rgba(201, 162, 39, 0.4);
}

/* ===== Data Pekerja lux compact ===== */
.dk-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.dk-page-pekerja .dk-shell-wide { width: 100%; max-width: min(1680px, 100%); }

/* Data Pekerja — hitam & emas (mewah, kontras jelas) */
.dk-page-pekerja .dk-nav-pills a.is-active,
.dk-page-pekerja .dk-nav-pills a:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, #E8C878 0%, #C9A227 48%, #A8841A 100%);
  color: #1A1408;
  border-color: rgba(168, 132, 26, 0.45);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 8px 16px rgba(168, 132, 26, 0.28);
}
.dk-page-pekerja .dk-btn:not(.dk-btn-ghost) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, #E8C878 0%, #C9A227 48%, #A8841A 100%);
  color: #1A1408;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 8px 18px rgba(168, 132, 26, 0.28);
}
.dk-page-pekerja .dk-btn:not(.dk-btn-ghost):hover {
  filter: brightness(1.06);
  color: #1A1408;
}
.dk-page-pekerja .dk-brand-mark {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(145deg, #E8C878, #C9A227 55%, #8B7014);
  color: #1A1408;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 8px 18px rgba(168, 132, 26, 0.3);
}

.dk-pekerja-lux {
  --lux-ink: #141414;
  --lux-muted: #5C5C5C;
  --lux-gold: #C9A227;
  --lux-gold-soft: #F4E6B5;
  --lux-black: #111111;
  --lux-row: #FFFFFF;
  --lux-row-alt: #FAF8F3;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F3 100%);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(17, 17, 17, 0.04),
    0 22px 50px rgba(17, 17, 17, 0.1);
  overflow: hidden;
  max-width: 100%;
}
.dk-pekerja-lux-hero {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: flex-end;
  padding: 1.35rem 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 42%),
    radial-gradient(520px 180px at 100% 0%, rgba(201, 162, 39, 0.22), transparent 58%),
    linear-gradient(125deg, #1A1A1A 0%, #111111 55%, #0A0A0A 100%);
  color: #F7F3E8;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.dk-pekerja-lux-hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, #E8C878 20%, #C9A227 50%, #E8C878 80%, transparent);
  pointer-events: none;
}
.dk-pekerja-lux-kr {
  margin: 0;
  font-family: var(--kr);
  font-size: 0.95rem;
  color: #E8C878;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dk-pekerja-lux-hero h1 {
  margin: 0.1rem 0 0.25rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #FFFFFF;
}
.dk-pekerja-lux-hero-copy p:last-child {
  margin: 0;
  color: rgba(247, 243, 232, 0.78);
  font-size: 0.88rem;
  max-width: 36rem;
  font-weight: 500;
}
.dk-pekerja-lux-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 0.5rem;
}
.dk-pekerja-metric {
  min-width: 78px;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 1px solid rgba(201, 162, 39, 0.35);
  text-align: left;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.dk-pekerja-metric span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 200, 120, 0.85);
}
.dk-pekerja-metric strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #FFFFFF;
}
.dk-pekerja-metric.is-ok strong { color: #7DDEA8; }
.dk-pekerja-metric.is-muted strong { color: rgba(247, 243, 232, 0.65); }
.dk-pekerja-metric.is-filter {
  background: linear-gradient(180deg, rgba(232, 200, 120, 0.22), rgba(201, 162, 39, 0.12));
  border-color: rgba(232, 200, 120, 0.55);
}
.dk-pekerja-metric.is-filter strong { color: #F4E6B5; }

.dk-pekerja-lux-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  background: linear-gradient(180deg, #FFFFFF, #F7F3E8);
}
.dk-pekerja-lux-search input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  color: var(--lux-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.dk-pekerja-lux-search input:focus {
  outline: none;
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.dk-pekerja-lux-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #EFEBE3;
  border: 1px solid rgba(17, 17, 17, 0.08);
}
.dk-pekerja-lux-seg label {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5C5C5C;
  cursor: pointer;
  user-select: none;
}
.dk-pekerja-lux-seg label input { display: none; }
.dk-pekerja-lux-seg label.is-on {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(145deg, #E8C878, #C9A227 55%, #A8841A);
  color: #1A1408;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 4px 12px rgba(168, 132, 26, 0.28);
}
.dk-pekerja-lux-actions {
  display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end;
}

.dk-pekerja-lux-table-wrap {
  overflow-x: auto;
  background: var(--lux-row);
}
.dk-pekerja-lux-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
}
.dk-pekerja-lux-table thead th {
  text-align: left;
  padding: 0.78rem 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F4E6B5;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 45%),
    linear-gradient(180deg, #2A2A2A 0%, #141414 55%, #0A0A0A 100%);
  border-bottom: 2px solid #C9A227;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
  white-space: nowrap;
  font-weight: 800;
}
.dk-pekerja-lux-table thead th:first-child { padding-left: 1.1rem; }
.dk-pekerja-lux-table thead th:last-child { padding-right: 1.1rem; }
.dk-pekerja-lux-table tbody td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  vertical-align: middle;
  background: var(--lux-row);
  transition: background 0.15s ease;
  color: var(--lux-ink);
}
.dk-pekerja-lux-table tbody td:first-child { padding-left: 1.1rem; }
.dk-pekerja-lux-table tbody td:last-child { padding-right: 1.1rem; }
.dk-pekerja-lux-table tbody tr:nth-child(even) td {
  background: var(--lux-row-alt);
}
.dk-pekerja-lux-table tbody tr:hover td {
  background: #F7F0DC;
}
.dk-pekerja-lux-table .col-no {
  width: 3.2rem;
  text-align: center;
}
.dk-pekerja-lux-table .col-aksi { text-align: right; white-space: nowrap; }

.dk-pekerja-no {
  display: inline-grid;
  place-items: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 50%),
    linear-gradient(145deg, #2A2A2A, #111111);
  color: #E8C878;
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(17, 17, 17, 0.18);
}

.dk-pekerja-id {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit;
}
.dk-pekerja-id:hover { text-decoration: none; }
.dk-pekerja-id:hover strong { color: #8B7014; }
.dk-page-pekerja .dk-pekerja-thumb {
  width: 42px; height: 42px; border-radius: 13px;
  border: 1.5px solid rgba(201, 162, 39, 0.55);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.12);
}
.dk-page-pekerja .dk-pekerja-thumb-ph {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(145deg, #2A2A2A, #111111);
  color: #E8C878;
}
.dk-pekerja-id-text { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.dk-pekerja-id-text strong {
  font-size: 0.92rem; letter-spacing: -0.01em; line-height: 1.2; color: var(--lux-ink);
  font-weight: 750;
}
.dk-pekerja-id-text em {
  font-style: normal; font-size: 0.74rem; color: var(--lux-muted); font-weight: 550;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px;
}

.dk-page-pekerja .dk-kode {
  background: linear-gradient(180deg, #FFF9E8, #F4E6B5);
  color: #5C4810;
  border: 1px solid rgba(201, 162, 39, 0.4);
  font-weight: 800;
}
.dk-pekerja-wa { display: block; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--lux-ink); }
.dk-pekerja-mail {
  display: block; font-size: 0.74rem; color: var(--lux-muted); font-weight: 500;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dk-pekerja-lux-table .col-batch {
  color: #3A3A3A;
  font-weight: 700;
}

.dk-pekerja-progress { min-width: 118px; }
.dk-pekerja-progress-top {
  display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap;
  line-height: 1.2;
}
.dk-pekerja-progress-top strong { font-size: 0.95rem; color: var(--lux-ink); }
.dk-pekerja-progress-top span { font-size: 0.72rem; color: var(--lux-muted); font-weight: 600; }
.dk-pekerja-progress-top em {
  font-style: normal; font-size: 0.72rem; font-weight: 800; color: #8B7014;
}
.dk-pekerja-progress-bar {
  margin-top: 0.32rem; height: 5px; border-radius: 999px;
  background: rgba(17, 17, 17, 0.08); overflow: hidden;
}
.dk-pekerja-progress-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #111111, #C9A227);
}
.dk-pekerja-best {
  display: inline-block; margin-top: 0.18rem;
  font-size: 0.68rem; color: var(--lux-muted); font-weight: 650;
}

.dk-page-pekerja .dk-pill {
  display: inline-flex; align-items: center;
  padding: 0.24rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
}
.dk-page-pekerja .dk-pill-ok {
  background: linear-gradient(180deg, #E8F8EF, #D4F0E2);
  color: #146B45;
  border: 1px solid rgba(20, 107, 69, 0.22);
}
.dk-page-pekerja .dk-pill-off {
  background: #F0EEEA;
  color: #4A4A4A;
  border: 1px solid rgba(74, 74, 74, 0.2);
}

.dk-page-pekerja .dk-link-arrow {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; text-decoration: none;
  color: #1A1408;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), transparent 48%),
    linear-gradient(145deg, #E8C878, #C9A227 55%, #A8841A);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 6px 14px rgba(168, 132, 26, 0.28);
}
.dk-page-pekerja .dk-link-arrow::after { content: "→"; transition: transform .15s ease; }
.dk-page-pekerja .dk-link-arrow:hover { text-decoration: none; filter: brightness(1.05); color: #1A1408; }
.dk-page-pekerja .dk-link-arrow:hover::after { transform: translateX(2px); }

.dk-pekerja-empty td {
  text-align: center; padding: 2rem 1rem !important; color: var(--lux-muted);
  background: var(--lux-row) !important; font-weight: 550;
}

@media (max-width: 900px) {
  .dk-pekerja-lux-toolbar { grid-template-columns: 1fr; }
  .dk-pekerja-lux-metrics { width: 100%; }
  .dk-pekerja-lux-table thead { display: none; }
  .dk-pekerja-lux-table tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem 0.65rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: var(--lux-row);
  }
  .dk-pekerja-lux-table tbody tr:nth-child(even) {
    background: var(--lux-row-alt);
  }
  .dk-pekerja-lux-table td {
    border: 0 !important; padding: 0 !important; background: transparent !important;
  }
  .dk-pekerja-lux-table .col-no { grid-column: 1; grid-row: 1; }
  .dk-pekerja-lux-table .col-pekerja { grid-column: 2 / -1; grid-row: 1; }
  .dk-pekerja-lux-table .col-kode { grid-column: 1 / 3; order: 2; }
  .dk-pekerja-lux-table .col-status { grid-column: 3; order: 3; justify-self: end; }
  .dk-pekerja-lux-table .col-kontak,
  .dk-pekerja-lux-table .col-batch,
  .dk-pekerja-lux-table .col-progress { grid-column: 1 / -1; }
  .dk-pekerja-lux-table .col-aksi { grid-column: 1 / -1; text-align: left; }
}

/* ===== Biodata NCMCREWS-style edit cards ===== */
.dk-page-biodata .dk-shell-wide { width: 100%; max-width: min(1100px, 100%); }
.dk-biodata-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 0.35rem 0 0.85rem;
}

.abk-edit-workbar {
  position: sticky; top: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0.35rem 0 0.75rem; padding: 12px 14px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 45%),
    linear-gradient(135deg, #1A1A1A, #111111 55%, #0A0A0A);
  color: #F7F3E8;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 18px 38px rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(12px);
}
.abk-edit-workbar-main { min-width: 0; }
.abk-edit-workbar-main span {
  display: block; font-size: 11px; font-weight: 800;
  color: rgba(232, 200, 120, 0.85); text-transform: uppercase; letter-spacing: 0.04em;
}
.abk-edit-workbar-main strong {
  display: block; margin-top: 2px; font-size: 18px; line-height: 1.18;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: min(720px, 64vw);
  color: #FFFFFF;
}
.abk-edit-workbar-meta {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; flex: 0 0 auto;
}
.abk-edit-workbar-meta span {
  border: 1px solid rgba(201, 162, 39, 0.4); border-radius: 999px;
  background: rgba(201, 162, 39, 0.14); padding: 6px 10px;
  font-size: 12px; font-weight: 800; white-space: nowrap;
  color: #F4E6B5;
}

.edit-card-stack { display: grid; gap: 18px; margin-top: 8px; }
.edit-card {
  border: 1px solid rgba(201, 162, 39, 0.22); border-radius: 18px; padding: 16px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 14px 34px rgba(17, 17, 17, 0.08);
  border-left: 7px solid var(--gold);
}
.edit-card-head {
  display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
}
.edit-card-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px; font-weight: 900;
  flex: 0 0 auto;
}
.edit-card-head h3 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.edit-card-head p { margin: 3px 0 0; color: #5C5C5C; font-weight: 650; font-size: 0.88rem; }

.card-identity { background: #FFFBF2; border-left-color: var(--gold); }
.card-identity .edit-card-icon { background: var(--gold-mist); color: #5C4810; }
.card-seaman { background: #F7F3E8; border-left-color: var(--black); }
.card-seaman .edit-card-icon { background: #111111; color: #E8C878; }
.card-ship { background: #FAF8F3; border-left-color: #8B7014; }
.card-ship .edit-card-icon { background: #F4E6B5; color: #5C4810; }
.card-kvac { background: #FFF8F0; border-left-color: #C9A227; }
.card-kvac .edit-card-icon { background: #F7F0DC; color: #8B7014; }
.card-upload { background: #F8F8F8; border-left-color: #333333; }
.card-upload .edit-card-icon { background: #EFEBE3; color: #111111; }

.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.edit-field-wide { grid-column: 1 / -1; }
.edit-field label {
  display: block; font-size: 12px; font-weight: 800; color: #475569; margin: 0 0 5px;
}
.edit-field input,
.edit-field select,
.edit-field textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 10px;
  padding: 10px; font-size: 13px; font: inherit; color: var(--ink);
  background: #fff; box-sizing: border-box;
}
.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.edit-field input[readonly] { background: #f8fafc; color: #334155; }
.edit-field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.edit-required { color: #b91c1c; }
.edit-doc-hint {
  display: block; margin-top: 4px; font-size: 10.5px; color: #64748b; font-weight: 700;
}
.edit-section-title {
  margin: 0 0 0.5rem; color: var(--ink); font-size: 0.95rem; font-weight: 800;
  border-left: 5px solid var(--gold); padding-left: 9px;
}
.readonly-doc {
  display: block; width: 100%; min-height: 34px;
  border: 1px solid #d1d5db; border-radius: 10px; padding: 9px 10px;
  background: #f8fafc; color: #334155; font-size: 13px; font-weight: 700;
  box-sizing: border-box; overflow-wrap: anywhere;
}
.readonly-doc.empty { color: #991b1b; background: #fff1f2; border-color: #fecaca; }

.edit-doc-photo-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.edit-doc-photo-preview {
  width: 88px; height: 108px; border-radius: 12px;
  border: 1px solid #dbe5f2; background: #f8fafc;
  overflow: hidden; display: grid; place-items: center; flex: 0 0 auto;
}
.edit-doc-photo-preview img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.edit-doc-photo-empty {
  font-size: 2rem; color: #94a3b8;
}
.edit-doc-photo-meta { display: flex; flex-direction: column; gap: 0.4rem; }

.edit-actions {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  margin-top: 16px; padding: 12px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, 0.22); border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -10px 30px rgba(17, 17, 17, 0.08);
}

@media (max-width: 760px) {
  .edit-grid { grid-template-columns: 1fr; }
  .edit-card { padding: 13px; border-radius: 16px; }
  .edit-card-head { align-items: flex-start; }
  .edit-card-head h3 { font-size: 1.05rem; }
  .edit-card-icon { width: 38px; height: 38px; font-size: 18px; }
  .abk-edit-workbar {
    top: 8px; align-items: flex-start; flex-direction: column;
    border-radius: 15px; padding: 11px 12px;
  }
  .abk-edit-workbar-main strong { font-size: 16px; max-width: calc(100vw - 48px); }
  .abk-edit-workbar-meta { justify-content: flex-start; }
  .edit-actions { border-radius: 14px; }
}

/* ===== Global fluid / no-clip responsive ===== */
.dk-nav-pills {
  width: 100%;
  max-width: 100%;
}
.dk-page-biodata .edit-card-stack,
.dk-page-biodata .abk-edit-workbar {
  max-width: 100%;
}

/* ===== Dashboard Admin — kartu 3D mewah ===== */
.dk-page-admin-dash .dk-shell-wide {
  max-width: min(1280px, 100%);
}
.dk-dash-hero {
  margin: 0.2rem 0 1.25rem;
  padding: 1.15rem 1.35rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 50%),
    linear-gradient(125deg, #1A1A1A 0%, #111111 55%, #0A0A0A 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 18px 40px rgba(17, 17, 17, 0.18);
  color: #F7F3E8;
  position: relative;
  overflow: hidden;
}
.dk-dash-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #E8C878, #C9A227, #E8C878, transparent);
}
.dk-dash-kr {
  margin: 0;
  font-family: var(--kr);
  color: #E8C878;
  font-weight: 700;
  font-size: 0.95rem;
}
.dk-dash-hero h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  color: #fff;
}
.dk-dash-hero p {
  margin: 0;
  color: rgba(247, 243, 232, 0.78);
  max-width: 36rem;
  font-size: 0.92rem;
}

.dk-dash-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
  perspective: 1200px;
}
@media (max-width: 1100px) {
  .dk-dash-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dk-dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
}
@media (max-width: 420px) {
  .dk-dash-tiles { grid-template-columns: 1fr; }
}

.dk-dash-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    transform 0.22s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.22s ease,
    filter 0.22s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -1px 0 rgba(0,0,0,0.18) inset,
    0 18px 36px rgba(17, 17, 17, 0.18),
    0 6px 12px rgba(17, 17, 17, 0.1);
}
.dk-dash-tile:hover,
.dk-dash-tile:focus-visible {
  text-decoration: none;
  transform: translateY(-10px) scale(1.03);
  filter: brightness(1.04);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 28px 50px rgba(17, 17, 17, 0.28),
    0 12px 22px rgba(168, 132, 26, 0.2);
  outline: none;
}
.dk-dash-tile:active {
  transform: translateY(-4px) scale(1.01);
}

.dk-dash-tile-shine {
  position: absolute;
  inset: -20% -30% auto;
  height: 55%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.12) 35%,
    rgba(255,255,255,0.45) 48%,
    rgba(255,255,255,0.1) 58%,
    transparent 75%
  );
  transform: rotate(-8deg);
  pointer-events: none;
  transition: transform 0.35s ease;
}
.dk-dash-tile:hover .dk-dash-tile-shine {
  transform: rotate(-8deg) translateX(8%);
}

.dk-dash-tile-gold {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0) 38%),
    linear-gradient(155deg, #F0D78A 0%, #E8C878 22%, #C9A227 58%, #A8841A 100%);
  border: 1px solid rgba(168, 132, 26, 0.45);
  color: #1A1408;
}
.dk-dash-tile-black {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(155deg, #2C2C2C 0%, #1A1A1A 40%, #0F0F0F 100%);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #F7F3E8;
}

.dk-dash-tile-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--kr);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 8px 16px rgba(0,0,0,0.18);
}
.dk-dash-tile-gold .dk-dash-tile-icon {
  background: linear-gradient(145deg, #1A1A1A, #0A0A0A);
  color: #E8C878;
  border: 1px solid rgba(201, 162, 39, 0.45);
}
.dk-dash-tile-black .dk-dash-tile-icon {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), transparent 45%),
    linear-gradient(145deg, #E8C878, #C9A227 55%, #A8841A);
  color: #1A1408;
  border: 1px solid rgba(255,255,255,0.25);
}

.dk-dash-tile-title {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.dk-dash-tile-sub {
  font-size: 0.84rem;
  line-height: 1.35;
  opacity: 0.82;
  position: relative;
  z-index: 1;
  font-weight: 550;
}
.dk-dash-tile-meta {
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.dk-dash-tile-gold .dk-dash-tile-meta {
  background: rgba(26, 20, 8, 0.12);
  color: #5C4810;
}
.dk-dash-tile-black .dk-dash-tile-meta {
  background: rgba(201, 162, 39, 0.16);
  color: #F4E6B5;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

/* ===== Dashboard Guru — mewah hitam & emas ===== */
.dk-page-guru-dash {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 8%, rgba(17, 17, 17, 0.07), transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF8F3 55%, #F3EFE6 100%);
}
.dk-page-guru-dash .dk-shell-wide {
  max-width: min(1200px, 100%);
}
.dk-guru-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.dk-guru-hero-copy {
  flex: 1 1 280px;
  min-width: 0;
}
.dk-guru-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 0.4rem;
  flex: 1 1 320px;
  max-width: 420px;
}
.dk-guru-metric {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.dk-guru-metric span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 200, 120, 0.85);
}
.dk-guru-metric strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}

.dk-guru-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}
.dk-guru-tile {
  justify-content: flex-end;
  min-height: 0;
  aspect-ratio: 0.92 / 1;
  padding-top: 2.6rem;
}
.dk-tile-art {
  display: block;
  width: 78%;
  max-width: 140px;
  margin: 0 auto 0.35rem;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  align-self: center;
  pointer-events: none;
}
.dk-tile-art svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.dk-dash-tile-gold .dk-art-fill { fill: #1A1408; }
.dk-dash-tile-gold .dk-art-stroke { stroke: #1A1408; fill: none; }
.dk-dash-tile-gold .dk-art-line { stroke: #1A1408; fill: none; }
.dk-dash-tile-gold .dk-art-dot { fill: #1A1408; }
.dk-dash-tile-gold .dk-art-ring,
.dk-dash-tile-gold .dk-art-ring-soft,
.dk-dash-tile-gold .dk-art-hand { stroke: #1A1408; fill: none; }

.dk-dash-tile-black .dk-art-fill { fill: #E8C878; }
.dk-dash-tile-black .dk-art-stroke { stroke: #E8C878; fill: none; }
.dk-dash-tile-black .dk-art-line { stroke: #E8C878; fill: none; }
.dk-dash-tile-black .dk-art-dot { fill: #E8C878; }
.dk-dash-tile-black .dk-art-ring,
.dk-dash-tile-black .dk-art-ring-soft,
.dk-dash-tile-black .dk-art-hand { stroke: #E8C878; fill: none; }

.dk-art-float { animation: dkArtFloat 3.2s ease-in-out infinite; transform-origin: center; }
.dk-art-float-slow { animation: dkArtFloat 4.2s ease-in-out infinite; transform-origin: center; }
.dk-art-pulse { animation: dkArtPulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.dk-art-orbit { animation: dkArtOrbit 3.6s ease-in-out infinite; }
.dk-art-orbit-delay { animation: dkArtOrbit 3.6s ease-in-out infinite 0.6s; }
.dk-art-spark { animation: dkArtSpark 1.8s ease-in-out infinite; }
.dk-art-spark-delay { animation: dkArtSpark 1.8s ease-in-out infinite 0.5s; }
.dk-art-pen { animation: dkArtPen 2.8s ease-in-out infinite; transform-origin: 86px 40px; }
.dk-art-lid { animation: dkArtLid 3.8s ease-in-out infinite; transform-origin: 60px 28px; transform-box: fill-box; }
.dk-art-ribbon { animation: dkArtPulse 2.6s ease-in-out infinite; }
.dk-art-ring { animation: dkArtSpin 10s linear infinite; transform-origin: 60px 44px; stroke-dasharray: 40 120; }
.dk-art-ring-soft { opacity: 0.45; animation: dkArtSpin 14s linear infinite reverse; transform-origin: 60px 44px; stroke-dasharray: 28 100; }
.dk-art-hand { animation: dkArtTick 4s linear infinite; transform-origin: 60px 44px; }
.dk-art-plus { animation: dkArtSpark 2.2s ease-in-out infinite; transform-origin: 98px 25px; }

.dk-guru-tile:hover .dk-art-float,
.dk-guru-tile:hover .dk-art-float-slow {
  animation-duration: 1.6s;
}
.dk-guru-tile:hover .dk-tile-art {
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
}

@keyframes dkArtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes dkArtPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.04); }
}
@keyframes dkArtOrbit {
  0%, 100% { transform: translate(0, 0); opacity: 0.85; }
  50% { transform: translate(3px, -4px); opacity: 1; }
}
@keyframes dkArtSpark {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes dkArtPen {
  0%, 100% { transform: rotate(-6deg) translate(0, 0); }
  50% { transform: rotate(4deg) translate(2px, 3px); }
}
@keyframes dkArtLid {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes dkArtSpin {
  to { transform: rotate(360deg); }
}
@keyframes dkArtTick {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dk-art-float,
  .dk-art-float-slow,
  .dk-art-pulse,
  .dk-art-orbit,
  .dk-art-orbit-delay,
  .dk-art-spark,
  .dk-art-spark-delay,
  .dk-art-pen,
  .dk-art-lid,
  .dk-art-ribbon,
  .dk-art-ring,
  .dk-art-ring-soft,
  .dk-art-hand,
  .dk-art-plus {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .dk-guru-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .dk-guru-tiles { grid-template-columns: 1fr; }
  .dk-guru-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .dk-guru-tile { aspect-ratio: 1.15 / 1; }
}

.dk-guru-paket-panel {
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FAF8F3 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 16px 36px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}
.dk-guru-paket-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 48%),
    linear-gradient(125deg, #1A1A1A 0%, #111111 55%, #0A0A0A 100%);
  color: #F7F3E8;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  position: relative;
}
.dk-guru-paket-head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #E8C878, #C9A227, #E8C878, transparent);
}
.dk-guru-paket-kr {
  margin: 0;
  font-family: var(--kr);
  color: #E8C878;
  font-weight: 700;
  font-size: 0.82rem;
}
.dk-guru-paket-head h2 {
  margin: 0.1rem 0 0.15rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #fff;
  letter-spacing: -0.02em;
}
.dk-guru-paket-head p {
  margin: 0;
  color: rgba(247, 243, 232, 0.75);
  font-size: 0.78rem;
  max-width: 34rem;
}
.dk-guru-paket-empty {
  padding: 1.25rem 1rem;
  text-align: center;
}
.dk-guru-paket-empty p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.dk-guru-paket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.85rem;
}
@media (max-width: 900px) {
  .dk-guru-paket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dk-guru-paket-grid { grid-template-columns: 1fr; }
}

.dk-guru-paket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 148px;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 12px 26px rgba(17, 17, 17, 0.14);
}
.dk-guru-paket-card:hover,
.dk-guru-paket-card:focus-visible {
  text-decoration: none;
  transform: translateY(-5px) scale(1.015);
  filter: brightness(1.04);
  outline: none;
}
.dk-guru-paket-shine {
  position: absolute;
  inset: -25% -35% auto;
  height: 55%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.12) 36%,
    rgba(255,255,255,0.4) 48%,
    rgba(255,255,255,0.1) 58%,
    transparent 72%
  );
  transform: rotate(-9deg);
  pointer-events: none;
}
.dk-guru-paket-gold {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(155deg, #F0D78A 0%, #E8C878 22%, #C9A227 58%, #A8841A 100%);
  border: 1px solid rgba(168, 132, 26, 0.45);
  color: #1A1408;
}
.dk-guru-paket-black {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(155deg, #2C2C2C 0%, #1A1A1A 42%, #0F0F0F 100%);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #F7F3E8;
}
.dk-guru-paket-chip {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}
.dk-guru-paket-gold .dk-guru-paket-chip {
  background: rgba(26, 20, 8, 0.12);
  color: #5C4810;
}
.dk-guru-paket-black .dk-guru-paket-chip {
  background: rgba(201, 162, 39, 0.16);
  color: #E8C878;
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.dk-guru-paket-card h3 {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.dk-guru-paket-card > p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.82;
  flex: 1;
  position: relative;
  z-index: 1;
}
.dk-guru-paket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
}
.dk-guru-paket-meta span {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
}
.dk-guru-paket-gold .dk-guru-paket-meta span {
  background: rgba(26, 20, 8, 0.1);
  color: #3D320E;
}
.dk-guru-paket-black .dk-guru-paket-meta span {
  background: rgba(255,255,255,0.06);
  color: #F4E6B5;
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.dk-pekerja-lux-table {
  min-width: 760px;
}
.dk-pekerja-lux-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Generic tables become stacked cards on narrow screens when data-label exists */
@media (max-width: 760px) {
  .dk-table-wrap.is-stack table.dk-table {
    min-width: 0;
  }
  .dk-table-wrap.is-stack table.dk-table thead {
    display: none;
  }
  .dk-table-wrap.is-stack table.dk-table tbody tr {
    display: block;
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .dk-table-wrap.is-stack table.dk-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(26, 35, 50, 0.06);
    padding: 0.45rem 0;
  }
  .dk-table-wrap.is-stack table.dk-table tbody td:last-child {
    border-bottom: none;
  }
  .dk-table-wrap.is-stack table.dk-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 38%;
    max-width: 42%;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .dk-table-wrap.is-stack table.dk-table tbody td > * {
    text-align: right;
  }
}

@media (max-width: 560px) {
  .dk-btn { padding: 0.55rem 0.9rem; }
  .dk-user-chip { display: none; }
  .dk-gate-card { border-radius: 18px; }
  .dk-pekerja-lux-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .dk-choice { padding: 0.75rem; }
  .dk-cbt-bar { gap: 0.45rem; }
  .dk-timer { font-size: 1rem; }
}

@media (min-width: 1400px) {
  body { font-size: 14px; }
  .dk-shell,
  .dk-shell-wide {
    padding-inline: clamp(0.85rem, 2vw, 1.5rem);
  }
}

/* ===== Compact density — nyaman kerja admin / guru / pekerja ===== */
.dk-topbar {
  padding: 0.4rem clamp(0.55rem, 1.5vw, 1rem);
  gap: 0.45rem;
}
.dk-brand { gap: 0.45rem; }
.dk-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.dk-brand-text strong { font-size: 0.92rem; }
.dk-brand-text em { font-size: 0.68rem; }
.dk-user-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}
.dk-shell,
.dk-shell-wide {
  margin: 0.55rem auto 1.35rem;
  padding-inline: clamp(0.55rem, 1.6vw, 1.1rem);
}
.dk-footer {
  padding: 0.85rem clamp(0.55rem, 1.5vw, 1rem) 1.25rem;
  font-size: 0.75rem;
}

.dk-btn {
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  gap: 0.3rem;
}
.dk-btn-sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 7px;
}

.dk-card {
  padding: clamp(0.65rem, 1.4vw, 0.95rem);
  margin-bottom: 0.7rem;
  border-radius: 12px;
}
.dk-alert {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}
.dk-form-grid { gap: 0.55rem; }
label { font-size: 0.78rem; margin-bottom: 0.22rem; }
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="url"],
input[type="tel"],
select,
textarea {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
}
textarea { min-height: 70px; }
.dk-actions { gap: 0.4rem; margin-top: 0.65rem; }

.dk-table { font-size: 0.82rem; }
.dk-table th,
.dk-table td {
  padding: 0.42rem 0.45rem;
}
.dk-table th {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.dk-badge {
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
}

.dk-stats { gap: 0.55rem; }
.dk-stat {
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.dk-stat span { font-size: 0.72rem; }
.dk-stat strong { font-size: clamp(1rem, 2.2vw, 1.25rem); }

.dk-paket-grid { gap: 0.65rem; }
.dk-paket-card {
  padding: 0.75rem;
  border-radius: 12px;
  min-height: 0;
  gap: 0.35rem;
}
.dk-paket-card h3 { font-size: 0.95rem; }
.dk-paket-card p { font-size: 0.8rem; }
.dk-paket-meta span,
.dk-paket-card .dk-eyebrow {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
}

.dk-nav-pills {
  gap: 0.3rem;
  margin: 0.55rem 0 0.75rem;
}
.dk-nav-pills a {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 999px;
}

.dk-page-title {
  margin: 0 0 0.15rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}
.dk-page-lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}
.dk-eyebrow {
  font-size: 0.65rem;
  margin-bottom: 0.2rem;
}

/* Gate masuk */
.dk-gate {
  padding: clamp(0.7rem, 2.2vw, 1.25rem) 0.75rem 1rem;
}
.dk-gate-card {
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.45rem);
}
.dk-gate-brand { margin-bottom: 1rem; }
.dk-gate-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.dk-gate-kr { font-size: 0.95rem; margin-bottom: 0.2rem; }
.dk-gate h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
}
.dk-gate-sub {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 32rem;
}
.dk-gate-grid { gap: 0.65rem; }
.dk-gate-link {
  min-height: 0;
  padding: 0.85rem 0.8rem 0.9rem;
  border-radius: 12px;
  gap: 0.2rem;
}
.dk-gate-link:hover,
.dk-gate-link:focus-visible {
  transform: translateY(-4px) scale(1.01);
}
.dk-gate-role { font-size: 0.65rem; margin-bottom: 0.1rem; }
.dk-gate-link strong { font-size: 1.05rem; }
.dk-gate-link p { font-size: 0.8rem; }
.dk-gate-cta {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
}
.dk-gate-foot {
  margin-top: 0.85rem;
  font-size: 0.72rem;
}

/* Dashboard admin tiles */
.dk-dash-hero {
  margin: 0.1rem 0 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
}
.dk-dash-kr { font-size: 0.8rem; }
.dk-dash-hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 0.1rem 0 0.2rem;
}
.dk-dash-hero p { font-size: 0.8rem; }
.dk-dash-tiles {
  gap: 0.55rem;
}
.dk-dash-tile {
  aspect-ratio: 1 / 1;
  padding: 0.7rem 0.7rem 0.75rem;
  border-radius: 12px;
  gap: 0.2rem;
}
.dk-dash-tile:hover,
.dk-dash-tile:focus-visible {
  transform: translateY(-4px) scale(1.015);
}
.dk-dash-tile-icon {
  top: 0.55rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 0.95rem;
}
.dk-dash-tile-title {
  font-size: clamp(0.88rem, 1.3vw, 1.02rem);
}
.dk-dash-tile-sub { font-size: 0.72rem; }
.dk-dash-tile-meta {
  margin-top: 0.15rem;
  font-size: 0.62rem;
}

/* Pekerja lux list */
.dk-pekerja-lux {
  border-radius: 14px;
}
.dk-pekerja-lux-hero {
  padding: 0.75rem 0.9rem 0.7rem;
  gap: 0.65rem;
}
.dk-pekerja-lux-kr { font-size: 0.8rem; }
.dk-pekerja-lux-hero h1 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}
.dk-pekerja-lux-hero-copy p:last-child { font-size: 0.78rem; }
.dk-pekerja-lux-metrics { gap: 0.35rem; }
.dk-pekerja-metric {
  min-width: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 9px;
}
.dk-pekerja-metric span { font-size: 0.62rem; }
.dk-pekerja-metric strong { font-size: 0.95rem; }
.dk-pekerja-lux-toolbar {
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
}
.dk-pekerja-lux-search input {
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
}
.dk-pekerja-lux-table thead th {
  padding: 0.4rem 0.45rem;
  font-size: 0.65rem;
}
.dk-pekerja-lux-table thead th:first-child,
.dk-pekerja-lux-table tbody td:first-child { padding-left: 0.65rem; }
.dk-pekerja-lux-table thead th:last-child,
.dk-pekerja-lux-table tbody td:last-child { padding-right: 0.65rem; }
.dk-pekerja-lux-table tbody td {
  padding: 0.4rem 0.45rem;
  font-size: 0.8rem;
}

/* Biodata edit */
.abk-edit-workbar {
  top: 8px;
  gap: 8px;
  margin: 0.25rem 0 0.55rem;
  padding: 8px 10px;
  border-radius: 10px;
}
.abk-edit-workbar-main span { font-size: 10px; }
.abk-edit-workbar-main strong { font-size: 15px; }
.abk-edit-workbar-meta span {
  padding: 4px 8px;
  font-size: 11px;
}
.edit-card-stack { gap: 10px; margin-top: 4px; }
.edit-card {
  border-radius: 10px;
  padding: 10px 12px;
  border-left-width: 5px;
}
.edit-card-head {
  gap: 8px;
  margin-bottom: 8px;
}
.edit-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
}
.edit-card-head h3 { font-size: 0.95rem; }
.edit-card-head p { font-size: 0.75rem; }
.edit-grid { gap: 8px; }
.edit-field label { font-size: 11px; margin-bottom: 3px; }
.edit-field input,
.edit-field select,
.edit-field textarea {
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12.5px;
}
.edit-field textarea { min-height: 64px; }
.edit-doc-photo-preview {
  width: 72px;
  height: 88px;
  border-radius: 8px;
}
.edit-actions {
  margin-top: 10px;
  padding: 8px;
  gap: 6px;
  border-radius: 10px;
}

/* Login */
.dk-login-card {
  border-radius: 14px;
  padding: 1.1rem;
}
.dk-login-card h1 { font-size: 1.2rem; }

/* CBT */
.dk-cbt-shell {
  margin: 0.55rem auto 1.35rem;
  padding-inline: clamp(0.55rem, 1.6vw, 1rem);
}
.dk-cbt-bar { gap: 0.4rem; margin-bottom: 0.55rem; }
.dk-timer {
  font-size: 0.95rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}
.dk-progress-track { height: 6px; margin-bottom: 0.65rem; }
.dk-korean-line { font-size: 1.15rem; margin: 0.25rem 0 0.55rem; }
.dk-choices { gap: 0.4rem; margin-top: 0.65rem; }
.dk-choice {
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  font-size: 0.85rem;
}
.dk-choice-key {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.75rem;
}
.dk-choice img { max-width: 90px; }
.dk-q-image { border-radius: 10px; margin: 0.5rem 0; }
.dk-audio-box {
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin: 0.5rem 0;
}
.dk-result-score {
  font-size: clamp(2rem, 7vw, 3rem);
}
.dk-review-item { padding: 0.65rem 0; }
.dk-explain {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  body { font-size: 13px; }
  .dk-btn { padding: 0.4rem 0.7rem; }
  .dk-gate-link,
  .dk-dash-tile { padding: 0.7rem; }
  .dk-pekerja-lux-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .dk-topbar, .dk-footer, .dk-no-print { display: none !important; }
  body { background: #fff; overflow: visible; }
  .dk-card, .dk-page-biodata .edit-card, .dk-pekerja-lux { box-shadow: none; border: none; }
  .dk-shell, .dk-shell-wide { max-width: 100%; padding-inline: 0; }
}
