/* ============================================================
   style.css — Material Design 3 (baseline purple)
   100% CSS murni: token resmi --md-sys-color-* + kontrol form
   HTML NATIVE bergaya M3. TANPA dependensi JS/CDN — tampil
   pasti di semua hosting & browser.
   ============================================================ */

/* ---------- DESIGN TOKENS: LIGHT ---------- */
:root {
  --md-sys-color-primary: #6750A4;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #EADDFF;
  --md-sys-color-on-primary-container: #21005D;
  --md-sys-color-secondary: #625B71;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #E8DEF8;
  --md-sys-color-on-secondary-container: #1D192B;
  --md-sys-color-tertiary: #7D5260;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: #FFD8E4;
  --md-sys-color-on-tertiary-container: #31111D;
  --md-sys-color-error: #B3261E;
  --md-sys-color-on-error: #FFFFFF;
  --md-sys-color-error-container: #F9DEDC;
  --md-sys-color-on-error-container: #410E0B;
  --md-sys-color-background: #FEF7FF;
  --md-sys-color-on-background: #1D1B20;
  --md-sys-color-surface: #FEF7FF;
  --md-sys-color-surface-dim: #DED8E1;
  --md-sys-color-surface-bright: #FEF7FF;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F7F2FA;
  --md-sys-color-surface-container: #F3EDF7;
  --md-sys-color-surface-container-high: #ECE6F0;
  --md-sys-color-surface-container-highest: #E6E0E9;
  --md-sys-color-on-surface: #1D1B20;
  --md-sys-color-on-surface-variant: #49454F;
  --md-sys-color-outline: #79747E;
  --md-sys-color-outline-variant: #CAC4D0;
  --md-sys-color-inverse-surface: #322F35;
  --md-sys-color-inverse-on-surface: #F5EFF7;
  --md-sys-color-success: #1B5E20;
  --md-sys-color-success-container: #DCF5DC;
  --md-sys-color-on-success-container: #0B2E0D;

  /* Alias internal */
  --surface: var(--md-sys-color-surface);
  --surface-c: var(--md-sys-color-surface-container);
  --surface-c-hi: var(--md-sys-color-surface-container-high);
  --on-surface: var(--md-sys-color-on-surface);
  --on-surface-var: var(--md-sys-color-on-surface-variant);
  --primary: var(--md-sys-color-primary);
  --on-primary: var(--md-sys-color-on-primary);
  --primary-c: var(--md-sys-color-primary-container);
  --on-primary-c: var(--md-sys-color-on-primary-container);
  --outline: var(--md-sys-color-outline);
  --outline-var: var(--md-sys-color-outline-variant);
  --error: var(--md-sys-color-error);

  --elev-1: 0 1px 2px rgba(0,0,0,.10), 0 1px 3px 1px rgba(0,0,0,.06);
  --elev-2: 0 1px 2px rgba(0,0,0,.12), 0 2px 6px 2px rgba(0,0,0,.08);
  --elev-3: 0 4px 8px 3px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.15);
  --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
}

/* ---------- DESIGN TOKENS: DARK ---------- */
[data-theme="dark"] {
  --md-sys-color-primary: #D0BCFF;
  --md-sys-color-on-primary: #381E72;
  --md-sys-color-primary-container: #4F378B;
  --md-sys-color-on-primary-container: #EADDFF;
  --md-sys-color-secondary: #CCC2DC;
  --md-sys-color-on-secondary: #332D41;
  --md-sys-color-secondary-container: #4A4458;
  --md-sys-color-on-secondary-container: #E8DEF8;
  --md-sys-color-tertiary: #EFB8C8;
  --md-sys-color-on-tertiary: #492532;
  --md-sys-color-tertiary-container: #633B48;
  --md-sys-color-on-tertiary-container: #FFD8E4;
  --md-sys-color-error: #F2B8B5;
  --md-sys-color-on-error: #601410;
  --md-sys-color-error-container: #8C1D18;
  --md-sys-color-on-error-container: #F9DEDC;
  --md-sys-color-background: #141218;
  --md-sys-color-on-background: #E6E0E9;
  --md-sys-color-surface: #141218;
  --md-sys-color-surface-dim: #141218;
  --md-sys-color-surface-bright: #3B383E;
  --md-sys-color-surface-container-lowest: #0F0D13;
  --md-sys-color-surface-container-low: #1D1B20;
  --md-sys-color-surface-container: #211F26;
  --md-sys-color-surface-container-high: #2B2930;
  --md-sys-color-surface-container-highest: #36343B;
  --md-sys-color-on-surface: #E6E0E9;
  --md-sys-color-on-surface-variant: #CAC4D0;
  --md-sys-color-outline: #938F99;
  --md-sys-color-outline-variant: #49454F;
  --md-sys-color-inverse-surface: #E6E0E9;
  --md-sys-color-inverse-on-surface: #322F35;
  --md-sys-color-success: #9CD69C;
  --md-sys-color-success-container: #1E4322;
  --md-sys-color-on-success-container: #DCF5DC;

  --elev-1: 0 1px 2px rgba(0,0,0,.55), 0 1px 3px 1px rgba(0,0,0,.35);
  --elev-2: 0 1px 2px rgba(0,0,0,.6), 0 2px 6px 2px rgba(0,0,0,.4);
  --elev-3: 0 4px 8px 3px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.6);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--outline-var); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--primary-c); color: var(--on-primary-c); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- IKON ---------- */
.msr {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 22px; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap;
  direction: ltr; vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.msr-lg { font-size: 34px; }
.msr-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ---------- LAYOUT ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section-title { font-size: 1.5rem; margin-bottom: 4px; }
.section-sub { color: var(--on-surface-var); margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.muted { color: var(--on-surface-var); }
.w-full { width: 100%; }
.divider-h { border: 0; border-top: 1px solid var(--outline-var); margin: 24px 0; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-var);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.15rem; color: var(--on-surface);
}
.brand:hover { text-decoration: none; }
.brand-icon { color: var(--primary); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-link { color: var(--on-surface-var); font-weight: 500; padding: 8px 4px; }
.nav-link:hover { color: var(--primary); text-decoration: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--r-full);
  border: 1px solid var(--outline-var); background: transparent;
  color: var(--on-surface-var); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.icon-btn:hover { background: var(--surface-c-hi); }
.login-link { color: var(--on-surface-var); font-weight: 500; }

/* ---------- FOOTER ---------- */
.footer { flex-shrink: 0; margin-top: 48px; background: var(--surface-c); border-top: 1px solid var(--outline-var); }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--on-surface-var); font-size: .9rem;
}

/* ---------- CARD / SURFACE ---------- */
.card {
  background: var(--surface-c);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card-outlined { background: var(--surface); border: 1px solid var(--outline-var); }
.card-elevated { background: var(--surface-c-low); box-shadow: var(--elev-1); }
.card-hover:hover { box-shadow: var(--elev-2); transform: translateY(-3px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-c) 0%, var(--surface-c-hi) 60%);
  padding: 72px 0 80px;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: var(--on-primary-c); }
.hero p.lead { font-size: 1.15rem; color: var(--on-primary-c); opacity: .85; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-c-lowest); color: var(--on-primary-c);
  border-radius: var(--r-full); padding: 6px 14px;
  font-size: .85rem; font-weight: 500; margin-bottom: 16px;
  border: 1px solid var(--outline-var);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-blob {
  position: absolute; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  opacity: .35; filter: blur(2px); pointer-events: none;
}
.hero-blob.b1 { width: 320px; height: 320px; right: -60px; top: -80px; background: var(--tertiary-c, var(--md-sys-color-tertiary-container)); }
.hero-blob.b2 { width: 220px; height: 220px; right: 180px; bottom: -100px; background: var(--surface-c-lowest); }

/* ---------- AVATAR ---------- */
.avatar {
  width: 64px; height: 64px; border-radius: var(--r-full);
  object-fit: cover; border: 2px solid var(--outline-var);
  background: var(--surface-c-hi);
}
.avatar-lg { width: 96px; height: 96px; }
.avatar-xl { width: 160px; height: 160px; }

/* ---------- PROFILE HERO (portfolio publik) ---------- */
.profile-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--md-sys-color-primary-container), var(--surface-c-hi));
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 56px 0 28px;
}
.profile-hero .avatar-xl { border: 4px solid var(--surface-c-lowest); box-shadow: var(--elev-2); }
.profile-hero h1 { color: var(--md-sys-color-on-primary-container); }
.profile-hero .muted { color: var(--md-sys-color-on-primary-container); opacity: .8; }
.profile-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.profile-socials a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-c-lowest); color: var(--on-surface);
  border: 1px solid var(--outline-var);
  padding: 8px 14px; border-radius: var(--r-full); font-size: .9rem; font-weight: 500;
}
.profile-socials a:hover { text-decoration: none; box-shadow: var(--elev-1); }

/* ---------- STATS ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; padding: 20px 12px; }
.stat-card .msr { color: var(--primary); font-size: 28px; }
.stat-value { font-size: 1.7rem; font-weight: 700; }
.stat-label { color: var(--on-surface-var); font-size: .85rem; }

/* ---------- CHIP / TAG ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container);
  border-radius: var(--r-full); padding: 5px 13px;
  font-size: .82rem; font-weight: 500;
}
.chip-selected { background: var(--primary-c); color: var(--on-primary-c); }
.tag {
  display: inline-block; border: 1px solid var(--outline-var);
  color: var(--on-surface-var); border-radius: var(--r-full);
  padding: 3px 10px; font-size: .78rem;
}
.badge-count {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-c); color: var(--on-primary-c);
  border-radius: var(--r-full); padding: 3px 11px;
  font-size: .8rem; font-weight: 700;
}

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: var(--outline-var); border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -28px; top: 5px;
  width: 20px; height: 20px; border-radius: var(--r-full);
  background: var(--primary-c); border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-date { color: var(--on-surface-var); font-size: .85rem; font-weight: 500; }

/* ---------- FORM ---------- */
.field-wrap { margin-bottom: 16px; }
.field-error { color: var(--error); font-size: .82rem; margin-top: 4px; min-height: 1em; }
.field-hint { color: var(--on-surface-var); font-size: .8rem; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ============================================================
   FORM CONTROLS NATIVE (gaya Material Design 3)
   Menggantikan web component @material/web — tanpa JS, tanpa CDN.
   ============================================================ */

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 110px; height: 42px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-full);
  font: inherit; font-size: .93rem; font-weight: 500; letter-spacing: .1px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: box-shadow .2s ease, background .2s ease, filter .2s ease;
  vertical-align: middle;
}
.btn .msr { font-size: 19px; }
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-filled { background: var(--primary); color: var(--on-primary); }
.btn-filled:hover { box-shadow: var(--elev-1); filter: brightness(1.07); }
.btn-outlined { background: transparent; color: var(--primary); border-color: var(--outline); }
.btn-outlined:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.btn-text { background: transparent; color: var(--primary); min-width: 0; padding: 0 14px; }
.btn-text:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.btn-danger { background: var(--md-sys-color-error); color: var(--md-sys-color-on-error); }
.btn-danger:hover { box-shadow: var(--elev-1); filter: brightness(1.05); }
.btn.w-full { width: 100%; }

/* ---------- Input teks / textarea / select ---------- */
.field-label {
  display: block; font-size: .85rem; font-weight: 500;
  color: var(--on-surface-var); margin-bottom: 6px;
}
.fld {
  display: block; width: 100%; margin: 0;
  font: inherit; font-size: .95rem; color: var(--on-surface);
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--outline); border-radius: 10px;
  padding: 12px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fld::placeholder { color: var(--on-surface-var); opacity: .75; }
.fld:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.fld:disabled { background: var(--surface-c-hi); color: var(--on-surface-var); cursor: not-allowed; }
textarea.fld { resize: vertical; min-height: 110px; line-height: 1.6; }
select.fld {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2379747E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 44px; cursor: pointer;
}
[data-theme="dark"] select.fld {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23938F99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- Checkbox & radio ---------- */
.chk, .rad { accent-color: var(--primary); width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { margin: 3px 0 0; }
.check-row span { line-height: 1.5; font-size: .93rem; }

/* ---------- Search bar (tombol native) ---------- */
.search-bar .btn { height: 40px; min-width: 88px; }

/* ---------- Pencarian warna aksen ---------- */
.accent-opt { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.accent-opt input { margin: 0; }

/* ============================================================
   EDITOR ARTIKEL (Quill 2 — vendor lokal assets/vendor/)
   ============================================================ */
#editor { display: none; }
#editor.ql-container { display: block; }
/* Textarea fallback: tampil secara default; JS menyembunyikannya
   setelah editor Quill siap (aman bila JavaScript mati/gagal). */
.editor-src-wrap { display: block; }
.ql-toolbar.ql-snow {
  border: 1px solid var(--outline); border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: var(--surface-c);
  font-family: inherit;
}
.ql-container.ql-snow {
  border: 1px solid var(--outline); border-top: none;
  border-radius: 0 0 10px 10px;
  background: var(--md-sys-color-surface-container-lowest);
}
.ql-editor { min-height: 280px; font-size: .98rem; line-height: 1.75; color: var(--on-surface); font-family: inherit; }
.ql-editor.ql-blank::before { color: var(--on-surface-var); font-style: normal; }
.ql-snow .ql-stroke { stroke: var(--on-surface-var); }
.ql-snow .ql-fill { fill: var(--on-surface-var); }
.ql-snow .ql-picker-label { color: var(--on-surface-var); }
.ql-snow .ql-picker-options {
  background: var(--surface-c-hi); border-color: var(--outline-var);
  color: var(--on-surface);
}
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button:focus .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--primary); }
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--primary); }
.ql-snow.ql-toolbar button:hover .ql-picker-label,
.ql-snow.ql-toolbar button.ql-active .ql-picker-label { color: var(--primary); }
[data-theme="dark"] .ql-snow .ql-picker-label::before { color: var(--on-surface-var); }
[data-theme="dark"] .ql-snow.ql-toolbar button:hover .ql-picker-label::before,
[data-theme="dark"] .ql-snow.ql-toolbar button.ql-active .ql-picker-label::before { color: var(--primary); }
.ql-editor img { max-width: 100%; border-radius: var(--r-md); }
.ql-editor h2 { font-size: 1.4rem; }
.ql-editor h3 { font-size: 1.2rem; }
.ql-editor h4 { font-size: 1.05rem; }

/* ============================================================
   ARTIKEL (render halaman detail proyek)
   ============================================================ */
.article { font-size: 1.02rem; line-height: 1.85; overflow-wrap: break-word; }
.article p { margin: 0 0 1.1em; }
.article h2 { font-size: 1.45rem; margin: 1.7em 0 .6em; }
.article h3 { font-size: 1.22rem; margin: 1.5em 0 .55em; }
.article h4 { font-size: 1.08rem; margin: 1.4em 0 .5em; }
.article img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 10px 0; }
.article a { text-decoration: underline; }
.article blockquote {
  margin: 1.2em 0; padding: 12px 20px;
  border-left: 4px solid var(--primary);
  background: var(--surface-c-hi); border-radius: 8px;
  color: var(--on-surface-var);
}
.article ul, .article ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.article li { margin-bottom: .35em; }
.article pre {
  background: var(--surface-c-hi); border: 1px solid var(--outline-var);
  border-radius: var(--r-md); padding: 16px; overflow-x: auto;
  font-size: .88rem; line-height: 1.6; margin: 0 0 1.1em;
}
.article code {
  background: var(--surface-c-hi); border-radius: 6px;
  padding: 2px 6px; font-size: .88em;
}
.article pre code { background: transparent; padding: 0; }
.article hr { border: 0; border-top: 1px solid var(--outline-var); margin: 2em 0; }
.article figure { margin: 1.3em 0; }
.article figcaption { font-size: .85rem; color: var(--on-surface-var); text-align: center; margin-top: 6px; }

/* ---------- Tabel admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th {
  text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px;
  color: var(--on-surface-var); padding: 10px 12px; border-bottom: 2px solid var(--outline-var);
  white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--outline-var); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .row { flex-wrap: nowrap; gap: 6px; }
.admin-table .btn { min-width: 0; height: 36px; padding: 0 14px; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.badge-active { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-success-container); }
.badge-off { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.badge-admin { background: var(--primary-c); color: var(--on-primary-c); }

/* ---------- Detail proyek ---------- */
.project-hero-cover {
  width: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--r-xl); display: block;
  background: var(--surface-c-hi); box-shadow: var(--elev-1);
}
.byline { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.byline .avatar { width: 46px; height: 46px; }
.byline-name { font-weight: 700; }
.byline-meta { font-size: .85rem; color: var(--on-surface-var); }

/* File input gaya M3 */
.file-input {
  display: block; width: 100%;
  font-family: inherit; font-size: .9rem;
  color: var(--on-surface-var);
  border: 1px dashed var(--outline); border-radius: var(--r-md);
  padding: 14px; background: var(--surface);
  cursor: pointer;
}
.file-input::file-selector-button {
  font-family: inherit; font-weight: 500; cursor: pointer;
  border: none; margin-right: 14px; padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container);
  transition: filter .2s;
}
.file-input::file-selector-button:hover { filter: brightness(1.05); }
.file-preview { max-width: 200px; max-height: 200px; border-radius: var(--r-md); margin-top: 12px; display: none; object-fit: cover; }
.file-preview.has-image { display: block; }

/* ---------- SEARCH BAR ---------- */
.search-bar {
  display: flex; gap: 10px; align-items: center;
  background: var(--surface-c); border: 1px solid var(--outline-var);
  border-radius: var(--r-full); padding: 8px 8px 8px 20px;
  max-width: 640px;
}
.search-bar .msr { color: var(--on-surface-var); }
.search-bar input[type="search"] {
  flex: 1; border: none; background: transparent; outline: none;
  font: inherit; color: var(--on-surface); min-width: 0;
}

/* ---------- PROGRESS ---------- */
.progress { height: 8px; background: var(--surface-c-hi); border-radius: var(--r-full); overflow: hidden; }
.progress-bar { display: block; height: 100%; background: var(--primary); border-radius: var(--r-full); transition: width .4s ease; }

/* ---------- SNACKBAR ---------- */
.snackbar {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 80px); opacity: 0;
  background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface);
  padding: 14px 22px; border-radius: var(--r-md);
  box-shadow: var(--elev-3); font-size: .92rem;
  max-width: min(92vw, 480px); text-align: center;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.snackbar.show { transform: translate(-50%, 0); opacity: 1; }
.snackbar-success { border-left: 4px solid var(--md-sys-color-success); }
.snackbar-error { border-left: 4px solid var(--md-sys-color-error); }

/* ---------- EMPTY STATE ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--on-surface-var); }
.empty .msr { font-size: 56px; opacity: .5; }
.empty h3 { color: var(--on-surface); margin-top: 12px; }

/* ---------- DASHBOARD LAYOUT ---------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding-top: 24px; }
.dash-nav { position: sticky; top: 80px; align-self: start; padding: 12px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: var(--r-full);
  color: var(--on-surface-var); font-weight: 500; margin: 2px 0;
  border: none; background: transparent; cursor: pointer; font-size: .95rem; text-align: left;
  width: 100%;
}
.dash-nav-item:hover { background: var(--surface-c-hi); text-decoration: none; }
.dash-nav-active { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.dash-nav-active:hover { background: var(--md-sys-color-secondary-container); }
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 8px; }
  .dash-nav-item { width: auto; white-space: nowrap; padding: 9px 14px; }
}

/* ---------- PROJECT CARD ---------- */
.project-cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-md); background: var(--surface-c-hi);
  display: block;
}
.project-cover-placeholder {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--md-sys-color-tertiary-container), var(--surface-c-hi));
  display: flex; align-items: center; justify-content: center;
  color: var(--md-sys-color-on-tertiary-container); opacity: .8;
}
.card .thumb { width: 72px; height: 72px; border-radius: var(--r-md); object-fit: cover; background: var(--surface-c-hi); }
.card .thumb-ph {
  width: 72px; height: 72px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--md-sys-color-tertiary-container);
  display: flex; align-items: center; justify-content: center;
  color: var(--md-sys-color-on-tertiary-container);
}

/* ---------- GOOGLE BUTTON ---------- */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 12px 18px;
  border: 1px solid var(--outline); border-radius: var(--r-full);
  background: var(--surface-c-lowest); color: var(--on-surface);
  font-weight: 500; font-size: .95rem;
  transition: box-shadow .2s, background .2s;
}
.google-btn:hover { text-decoration: none; box-shadow: var(--elev-1); background: var(--surface-c); }

/* ---------- AUTH CARD ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 48px 0; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface-c-low); box-shadow: var(--elev-1); }
.auth-card h1 { font-size: 1.7rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--on-surface-var); font-size: .85rem; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--outline-var); }

/* ---------- ACCENT COLOR PICKER ---------- */
.accent-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.accent-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: .75rem; color: var(--on-surface-var); }
.accent-item md-radio { --md-radio-icon-size: 40px; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
