/* Clice — AI Video Studio (Dark Studio Modern) */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Kanvas & permukaan */
  --bg: #0b0d12;
  --surface: #131722;
  --surface-2: #1b2030;
  --surface-hover: #22283a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Teks */
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --white: #ffffff;

  /* Aksen Studio */
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.28);
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

  /* Status */
  --ok-bg: rgba(16, 185, 129, 0.14);
  --ok-ink: #34d399;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --warn-ink: #fbbf24;
  --err-bg: rgba(244, 63, 94, 0.14);
  --err-ink: #fb7185;

  --font-sans: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow-card: 0 4px 24px -8px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: radial-gradient(1100px 520px at 50% -120px, rgba(99, 102, 241, 0.14), transparent 70%), var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 28px 0 6px; letter-spacing: -0.025em; font-weight: 800; color: var(--white); }
h2 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.01em; font-weight: 700; color: var(--white); }
h3 { font-size: 0.98rem; margin: 0 0 8px; color: var(--white); }
.lead { color: var(--muted); margin: 0 0 22px; max-width: 62ch; font-size: 0.98rem; }
.muted { color: var(--muted); }
/* Tabel lebar: scroll horizontal di dalam kartu, jangan dorong halaman */
.table-wrap { overflow-x: auto; }

/* Link panjang (URL sumber): boleh patah di mana saja supaya tidak meluber */
a { color: var(--accent-light); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 8px;
}
code, pre, .mono { font-family: var(--font-mono); }
code { background: var(--surface-2); color: #c4b5fd; padding: 2px 6px; border-radius: 5px; font-size: 0.88em; border: 1px solid var(--line); }

/* Header kaca tipis */
.topbar {
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; box-shadow: 0 4px 14px var(--accent-glow); }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-name em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .topbar-in { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; position: relative; }
}
.nav a {
  text-decoration: none; color: var(--muted); padding: 7px 13px; border-radius: 9px;
  font-size: 0.92rem; font-weight: 500; white-space: nowrap;
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav a.aktif { color: var(--white); background: var(--surface-2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Dropdown Lab */
.nav-more { position: relative; }
.nav-more-btn {
  list-style: none; cursor: pointer;
  color: var(--muted); padding: 7px 12px; border-radius: 9px;
  font-size: 0.92rem; font-weight: 500; white-space: nowrap;
}
.nav-more-btn::-webkit-details-marker { display: none; }
.nav-more-btn:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-more-btn.aktif { color: var(--white); background: var(--surface-2); font-weight: 600; }
.nav-more-list {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 6px; z-index: 40;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.75);
}
.nav-more-list a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); white-space: nowrap; }
.nav-more-list a:hover { background: var(--surface-2); }
.nav-more-list a.aktif { background: var(--accent); color: var(--white); font-weight: 600; }

/* Dropdown Lab di HP: nav membungkus 2 baris dan tombol Lab jatuh dekat tepi
   kiri — panel jangan nempel ke kanan tombol (min-width 200px kepotong layar
   kiri). Tempel ke kiri nav: panel turun di bawah seluruh nav, selalu di
   dalam viewport. Blok ini HARUS di bawah aturan .nav-more di atas (spesifisitas
   sama, yang belakangan menang). */
@media (max-width: 640px) {
  .nav-more { position: static; }
  .nav-more-list { left: 0; right: auto; }
}

/* Studio Hero (OpusClip-style 1-screen workspace) */
.studio-hero {
  text-align: center;
  padding: 36px 0 18px;
}
.studio-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: #c4b5fd; background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 14px;
}
.studio-hero h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0 0 10px; letter-spacing: -0.03em; }
.studio-hero .lead { margin: 0 auto 24px; font-size: 1rem; }

.studio-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03);
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: left;
}
.studio-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  margin-bottom: 18px;
}
.studio-tab {
  background: transparent; border: none; color: var(--muted);
  padding: 8px 16px; border-radius: 8px; font: inherit; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 150ms var(--ease-out);
}
.studio-tab:hover { color: var(--white); }
.studio-tab.on { background: var(--surface-2); color: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* Dropzone upload video */
.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 26px 18px; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); cursor: pointer;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent-light); background: rgba(99, 102, 241, 0.08); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.dropzone-title { font-weight: 600; color: var(--white); font-size: 0.96rem; }
.dropzone-sub { color: var(--muted); font-size: 0.84rem; }

.or-divider {
  display: flex; align-items: center; gap: 12px; margin: 14px 0;
  color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.url-bar { display: flex; gap: 10px; align-items: stretch; }
.url-bar input { margin-top: 0; flex: 1; }
@media (max-width: 640px) { .url-bar { flex-direction: column; } }

/* Kartu & layout umum */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
/* KPI / statistik ringkas (Performa, Komentar) */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.stat .stat-num, .stat > strong {
  display: block; font-size: 1.55rem; line-height: 1.2; font-weight: 800;
  letter-spacing: -0.02em; color: var(--white);
  overflow-wrap: anywhere;
}
.stat .stat-label, .stat > span:not(.stat-num) {
  display: block; font-size: 0.84rem; color: var(--muted); line-height: 1.4;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.plain-list li:last-child { border-bottom: none; }
.empty { text-align: left; }

/* Form */
.form fieldset { border: none; margin: 0 0 8px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.form fieldset:last-of-type { border-bottom: none; padding-bottom: 0; }
.form legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 12px; color: var(--white); }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; color: var(--ink); }
.field-label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 8px; }
input[type=text], input[type=url], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=email], input[type=search],
select, textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 13px; font: inherit; font-weight: 400; color: var(--white);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
input::placeholder, textarea::placeholder { color: #64748b; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-light); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea { resize: vertical; min-height: 120px; font-family: inherit; font-size: 0.98rem; line-height: 1.55; }
input[type=file] {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  font: inherit; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer;
}
input[type=file]::file-selector-button, input[type=file]::-webkit-file-upload-button {
  font: inherit; font-weight: 600; font-size: 0.88rem; color: var(--white);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 7px 14px; margin-right: 12px; cursor: pointer;
  transition: background-color 150ms var(--ease-out);
}
input[type=file]::file-selector-button:hover, input[type=file]::-webkit-file-upload-button:hover {
  background: var(--surface-hover);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: 0.86rem; margin: 6px 0 12px; }
.link-btn { background: none; border: none; padding: 0; color: var(--accent-light); font: inherit; cursor: pointer; text-decoration: underline; }
.radio-row { margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.88rem;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; margin: 0 6px 8px 0;
  cursor: pointer; background: var(--bg); color: var(--muted); transition: all 150ms var(--ease-out);
}
.chip:hover { color: var(--white); border-color: rgba(255,255,255,0.28); }
.chip:has(input:checked) { border-color: var(--accent-light); background: rgba(99, 102, 241, 0.16); color: var(--white); font-weight: 600; }
.chip input { accent-color: var(--accent); }
.toggle-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9rem; cursor: pointer; color: var(--ink); margin-bottom: 0; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform 150ms var(--ease-out), background-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary {
  background: var(--accent-grad); color: var(--white);
  box-shadow: 0 8px 22px -6px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--white); border-color: var(--line-strong); }
.btn-big { width: 100%; min-height: 48px; font-size: 1rem; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }

/* Progress & badge */
.progress { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.progress-bar { height: 100%; background: var(--accent-grad); border-radius: 999px; transition: width 400ms var(--ease-out); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--muted);
}
.st-menunggu { background: var(--warn-bg); color: var(--warn-ink); }
.st-berjalan { background: rgba(99, 102, 241, 0.18); color: var(--accent-light); }
.st-selesai { background: var(--ok-bg); color: var(--ok-ink); }
.st-gagal, .st-gagal_validasi { background: var(--err-bg); color: var(--err-ink); }
.st-stub { background: var(--warn-bg); color: var(--warn-ink); }
.score-badge { background: rgba(99, 102, 241, 0.2); color: #c4b5fd; border: 1px solid rgba(99, 102, 241, 0.35); white-space: nowrap; }
.nav-logout { color: var(--muted) !important; font-size: 0.85rem !important; opacity: 0.85; }
.nav-logout:hover { color: var(--err-ink) !important; opacity: 1; }

/* Job & Log */
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job-head h2 { margin: 0; }
.job-meta { margin: 4px 0 0; font-size: 0.86rem; }
.job-step { margin: 4px 0; font-size: 0.92rem; }
.job-note { background: var(--warn-bg); border: 1px solid rgba(245,158,11,0.3); border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; color: var(--warn-ink); }
.job-error { background: var(--err-bg); border: 1px solid rgba(244,63,94,0.3); border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; color: var(--err-ink); }
.job-log { margin-top: 12px; }
.job-log summary { cursor: pointer; color: var(--accent-light); font-weight: 600; font-size: 0.9rem; }
.job-log pre {
  background: var(--bg); color: #cbd5e1; border: 1px solid var(--line);
  padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 0.8rem; line-height: 1.5; max-height: 260px; overflow-y: auto;
}

/* Grid Video 9:16 (Hasil & Library) */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.lib-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.lib-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.lib-thumb { display: block; width: 100%; padding: 0; border: none; background: #000; cursor: pointer; aspect-ratio: 9/14; overflow: hidden; }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-thumb-empty { color: var(--white); font: inherit; font-weight: 600; }
.clip-video { width: 100%; aspect-ratio: 9/16; max-height: 440px; background: #000; display: block; object-fit: contain; }
.lib-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.lib-body h2 { font-size: 1rem; margin-bottom: 4px; }
.lib-meta { font-size: 0.82rem; margin: 0 0 8px; }
.lib-cap { font-size: 0.86rem; color: var(--muted); margin: 0 0 12px; white-space: pre-line; }
.lib-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* Picker karakter */
.char-cards { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.char-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 126px; padding: 8px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); cursor: pointer; text-align: left; font: inherit;
}
.char-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; display: block; background: var(--surface-2); }
.char-card .char-name { font-weight: 600; font-size: 0.86rem; }
.char-card .char-caps { font-size: 0.75rem; color: var(--muted); }
.char-card.on { border-color: var(--accent-light); box-shadow: 0 0 0 2px var(--accent-glow); }
.char-card.auto { opacity: 0.75; }
.lib-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.lib-filter select { min-height: 38px; }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.vault-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vault-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.vault-body { padding: 10px 12px; }
.vault-body h3 { font-size: 0.92rem; margin: 0 0 4px; }

/* Modal & toast */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px;
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  transform: scale(0.97); opacity: 0;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.modal:not([hidden]) .modal-box { transform: scale(1); opacity: 1; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal video { width: 100%; max-height: 68vh; background: #000; border-radius: 10px; display: block; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--surface-2); color: var(--white); border: 1px solid var(--line-strong);
  padding: 11px 18px; border-radius: 10px; font-size: 0.9rem; z-index: 60;
  max-width: calc(100vw - 32px); box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.toast[hidden] { display: none; }

/* Lipatan pengaturan lanjutan */
.advanced {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); padding: 0 16px; margin: 14px 0 16px;
}
.advanced > summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; padding: 12px 0; list-style: none; color: var(--muted); }
.advanced > summary:hover { color: var(--white); }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::after { content: " ▾"; }
.advanced[open] > summary::after { content: " ▴"; }
.advanced .adv-body { padding-bottom: 10px; }
.advanced fieldset { border-bottom: 1px solid var(--line); }

.tool-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 18px; }
.tool-details > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 18px 0; list-style: none; color: var(--white); }
.tool-details > summary::-webkit-details-marker { display: none; }
.tool-details > summary::after { content: " ▾"; color: var(--muted); }
.tool-details[open] > summary::after { content: " ▴"; }
.tool-details .tool-body { padding-bottom: 18px; }

.foot { color: var(--muted); font-size: 0.84rem; padding: 24px 20px 40px; border-top: 1px solid var(--line); margin-top: 40px; text-align: center; }

/* Utilitas Lab */
.plain-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.plain-table th, .plain-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.plain-table th { color: var(--muted); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 10px; align-items: center; }
.bar-track { background: var(--bg); border-radius: 6px; height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent-grad); border-radius: 6px; }
.bar-num { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.form-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.form-inline input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--white); }
.alert-card { border-left: 4px solid var(--err-ink); }
.series-list li { margin-bottom: 10px; }

/* Password: tombol mata (lihat/sembunyikan) */
.pw-wrap { position: relative; display: block; margin-top: 6px; }
.pw-wrap input[type=password], .pw-wrap input[type=text] { margin-top: 0; padding-right: 44px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 8px; cursor: pointer;
  color: var(--muted); padding: 0;
}
.pw-eye:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.pw-eye svg { width: 20px; height: 20px; display: block; }

/* Library: aksi sekunder dilipat */
.lib-more { display: inline-block; }
.lib-more[open] { display: block; width: 100%; margin-top: 6px; }
.lib-more > summary { list-style: none; cursor: pointer; }
.lib-more > summary::-webkit-details-marker { display: none; }
.lib-more[open] > .btn { margin: 4px 4px 0 0; }

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