/* =========================================================
   Rudi Nofindra · Etalase Karya
   Palet: marun tenun + emas songket. Mode terang/gelap.
   ========================================================= */
/* Palet pastel: krem, merah muda tanah, kuning mentega, lavender, sage.
   Teks tetap gelap lembut (bukan hitam pekat) agar nyaman namun kontras. */
:root {
  --bg: #fdf9f6;
  --bg-alt: #f5f0fa;          /* lavender kabut */
  --surface: #ffffff;
  --surface-2: #f8f2ee;
  --ink: #3b3443;
  --ink-2: #615a69;
  --muted: #736c7b;
  --line: #ece4ec;
  --accent: #a94f5b;          /* merah muda tanah (pengganti marun) */
  --accent-2: #c26b75;
  --gold: #f7d98f;            /* kuning mentega (pengganti emas songket) */
  --gold-ink: #4a3816;
  --gold-soft: #fdf2d8;
  --gold-glow: rgba(247, 217, 143, .9);
  --dark: #4b4560;            /* lavender senja untuk bagian Pratinjau */
  --dark-2: #5a536f;
  --on-dark: #f8f4fb;
  --on-dark-2: rgba(248, 244, 251, .74);
  --cover: radial-gradient(ellipse at 80% 0%, #f6cfd4, #d9cdef 75%);
  --cover-pattern: rgba(255, 255, 255, .45);
  --cover-ink: #5a3e55;
  --glow-2: #d9cdef;
  --hero-shade: 18 12 24;   /* lapisan gelap hero Sinematik (R G B) */
  --b-lab: #cfe8da;   --b-lab-ink: #22513a;
  --b-budaya: #f6d3d6; --b-budaya-ink: #7a2f39;
  --b-game: #fbdcc4;  --b-game-ink: #7a3d12;
  --b-media: #e2d8f4; --b-media-ink: #47386e;
  --b-new: #d5e6f7;   --b-new-ink: #1f4a78;
  --b-guru: #fde5c8;  --b-guru-ink: #6b3f0c;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(90, 70, 110, .05), 0 10px 28px -14px rgba(90, 70, 110, .16);
  --shadow-lg: 0 30px 60px -24px rgba(75, 60, 100, .35);
  --backdrop: rgba(60, 50, 80, .45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}
/* ---------- Pilihan palet (CONFIG.palette atau ?palette=...) ---------- */
/* Sage & Terakota: hijau daun + tanah liat */
:root[data-palette="sage"] {
  --bg: #f7f6f0; --bg-alt: #eef2ea; --surface-2: #f2f1ea;
  --ink: #2f3a33; --ink-2: #55615a; --muted: #69736c; --line: #e3e6dc;
  --accent: #a4513a; --accent-2: #c0694f;
  --gold: #c5dbb5; --gold-ink: #24402c; --gold-soft: #e8f1e1; --gold-glow: rgba(150, 190, 130, .75);
  --dark: #3d5246; --dark-2: #4b6255;
  --cover: radial-gradient(ellipse at 80% 0%, #e9d5c4, #c9dcc0 75%); --cover-ink: #4a3a2c; --glow-2: #cfe0c4;
  --hero-shade: 20 32 24;
}
/* Biru Pantai Panjang: biru laut + pasir */
:root[data-palette="pantai"] {
  --bg: #f6f9fb; --bg-alt: #eaf2f7; --surface-2: #eff5f8;
  --ink: #1f3140; --ink-2: #4a5d6b; --muted: #5f6f7b; --line: #dde8ef;
  --accent: #1f6f8b; --accent-2: #2c86a6;
  --gold: #ffd98a; --gold-ink: #4a3510; --gold-soft: #fff1d1; --gold-glow: rgba(255, 217, 138, .85);
  --dark: #234a63; --dark-2: #2e5b78;
  --cover: radial-gradient(ellipse at 80% 0%, #fde6c2, #cfe8f3 75%); --cover-ink: #1f4a63; --glow-2: #bfe0ef;
  --hero-shade: 8 30 44;
}
/* Kopi & Emas: cokelat kopi Bengkulu + emas */
:root[data-palette="kopi"] {
  --bg: #faf6f1; --bg-alt: #f1e8de; --surface-2: #f5eee6;
  --ink: #2e231c; --ink-2: #5c4c41; --muted: #74655a; --line: #eadfd3;
  --accent: #8a4b2a; --accent-2: #a65f39;
  --gold: #e9c46a; --gold-ink: #3d2b0b; --gold-soft: #f8ecd0; --gold-glow: rgba(233, 196, 106, .85);
  --dark: #3b2a22; --dark-2: #4a372d;
  --cover: radial-gradient(ellipse at 80% 0%, #ecd6bd, #d9b48a 75%); --cover-ink: #4a2e1c; --glow-2: #ecd6bd;
  --hero-shade: 32 20 12;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1c24; --bg-alt: #24212c; --surface: #2a2733; --surface-2: #332f3d;
    --ink: #f1ecf4; --ink-2: #cbc4d1; --muted: #9b94a3; --line: #3d3848;
    --accent: #f0a7b0; --accent-2: #f5bcc3; --gold: #f3d48f; --gold-ink: #3a2c0e; --gold-soft: #3b3424;
    --gold-glow: rgba(243, 212, 143, .45);
    --dark: #2f2b3b; --dark-2: #3a3549;
    --cover: radial-gradient(ellipse at 80% 0%, #6a5270, #3a3550 75%); --cover-pattern: rgba(255, 255, 255, .08); --cover-ink: #f6dfe4;
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px -14px rgba(0,0,0,.55);
    --backdrop: rgba(10, 8, 16, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1e1c24; --bg-alt: #24212c; --surface: #2a2733; --surface-2: #332f3d;
  --ink: #f1ecf4; --ink-2: #cbc4d1; --muted: #9b94a3; --line: #3d3848;
  --accent: #f0a7b0; --accent-2: #f5bcc3; --gold: #f3d48f; --gold-ink: #3a2c0e; --gold-soft: #3b3424;
  --gold-glow: rgba(243, 212, 143, .45);
  --dark: #2f2b3b; --dark-2: #3a3549;
  --cover: radial-gradient(ellipse at 80% 0%, #6a5270, #3a3550 75%); --cover-pattern: rgba(255, 255, 255, .08); --cover-ink: #f6dfe4;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 28px -14px rgba(0,0,0,.55);
  --backdrop: rgba(10, 8, 16, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 20px -10px var(--gold-glow); }
.btn--primary:hover { box-shadow: 0 12px 26px -10px var(--gold-glow); }
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--icon { width: 48px; padding: 0; }
.btn--icon .gh { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.btn--icon svg:not(.gh) { width: 22px; height: 22px; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.is-disabled:hover { transform: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; flex: none;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none; transition: border-color .15s, transform .15s;
}
.icon-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .gh { fill: currentColor; stroke: none; }

/* ---------- Navigasi ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; margin-right: auto; }
.brand b { color: var(--accent); font-weight: 800; }
.brand__logo { position: relative; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); }
.brand__logo::before { content: ""; position: absolute; inset: 9px; border: 2.5px solid var(--gold); transform: rotate(45deg); border-radius: 2px; }
.brand__logo::after { content: ""; position: absolute; inset: 14px; background: var(--gold); transform: rotate(45deg); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav__links a:hover { color: var(--accent); }
.theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme .i-moon { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden;
  background:
    radial-gradient(700px 380px at 88% 8%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 70%),
    radial-gradient(600px 360px at 5% 90%, color-mix(in srgb, var(--glow-2) 40%, transparent), transparent 70%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.author { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
.author b { color: var(--ink); }
.author__ava { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--accent); color: var(--gold); font-weight: 800; font-size: 13px; }
.author__ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.6); transform-origin: 50% 18%; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hl { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--gold) 50%, transparent) 60%); padding: 0 .02em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--alt { color: var(--accent); font-family: var(--serif); font-style: italic; letter-spacing: -.01em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.stats { display: flex; gap: 40px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -.02em; }

.hero__art { position: relative; }
.reel { border-radius: 16px; background: var(--dark); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s; border: 1px solid rgba(255,255,255,.06); }
.reel:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.reel__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--dark-2); }
.reel__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.reel__bar i:nth-child(2) { background: #febc2e; }
.reel__bar i:nth-child(3) { background: #28c840; }
.reel__bar span { flex: 1; margin-left: 10px; padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel__screen { position: relative; aspect-ratio: 1200 / 630; background: #000; overflow: hidden; }
.reel__screen .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.reel__screen .slide.on { opacity: 1; animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.reel__open { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px;
  border: 0; cursor: pointer; text-align: left; background: linear-gradient(transparent 45%, rgba(40, 30, 55, .78)); color: #fff; }
.reel__label { display: flex; flex-direction: column; }
.reel__label small { color: var(--gold); font-weight: 700; font-size: 12.5px; }
.reel__label b { font-size: 19px; }
.reel__cta { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 14px; }
.reel__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 4px; background: rgba(255,255,255,.12); }
.reel__progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.reel__dots { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.reel__dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.25); cursor: pointer; transition: width .3s, background .3s; }
.reel__dots button[aria-current="true"] { width: 26px; background: var(--gold); }
.float { position: absolute; z-index: 3; padding: 9px 15px; border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: bob 5s ease-in-out infinite; }
.float--a { top: -18px; left: -18px; }
.float--b { bottom: -16px; right: 28px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
/* ---------- Model tampilan hero (CONFIG.layout atau ?layout=...) ---------- */
.bento { display: none; }
/* Bento: kolase karya unggulan */
:root[data-layout="bento"] .reel, :root[data-layout="bento"] .float { display: none; }
:root[data-layout="bento"] .bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bento__item { position: relative; display: block; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1200 / 630; background: var(--cover); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.bento__item:first-child { grid-column: 1 / -1; box-shadow: var(--shadow-lg); }
.bento__item:hover { transform: translateY(-3px); }
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; text-align: left; color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(transparent, rgba(30, 20, 40, .82)); }
.bento__item:first-child span { font-size: 17px; padding: 30px 16px 14px; }

/* Sinematik: gambar karya memenuhi hero */
:root[data-layout="sinematik"] .hero { min-height: min(720px, 92vh); display: flex; align-items: center; background: rgb(var(--hero-shade)); color: #fff; }
:root[data-layout="sinematik"] .hero::before { content: ""; position: absolute; inset: -20px; background: var(--hero-img, none) center / cover no-repeat;
  filter: blur(3px) saturate(1.1); transform: scale(1.04); transition: background-image .8s; }
:root[data-layout="sinematik"] .hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(var(--hero-shade) / .88) 0%, rgb(var(--hero-shade) / .62) 55%, rgb(var(--hero-shade) / .35) 100%); }
:root[data-layout="sinematik"] .hero__in { position: relative; z-index: 1; grid-template-columns: minmax(0, 760px); }
:root[data-layout="sinematik"] .hero__art { display: none; }
:root[data-layout="sinematik"] .hero h1 { color: #fff; }
:root[data-layout="sinematik"] .hero .hl { background: none; color: var(--gold); padding: 0; }
:root[data-layout="sinematik"] .hero .hl--alt { color: var(--gold); }
:root[data-layout="sinematik"] .hero .lead { color: rgba(255, 255, 255, .86); }
:root[data-layout="sinematik"] .hero .eyebrow { color: var(--gold); }
:root[data-layout="sinematik"] .author { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); }
:root[data-layout="sinematik"] .author b { color: #fff; }
:root[data-layout="sinematik"] .hero .btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
:root[data-layout="sinematik"] .stats dt { color: rgba(255, 255, 255, .72); }
:root[data-layout="sinematik"] .stats dd { color: #fff; }
.hero__now { display: none; }
:root[data-layout="sinematik"] .hero__now { position: absolute; right: max(16px, calc((100vw - 1180px) / 2)); bottom: 28px; z-index: 1; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 14px; cursor: pointer; backdrop-filter: blur(6px); }
:root[data-layout="sinematik"] .hero__now b { color: var(--gold); }
:root[data-layout="sinematik"] .hero__now i { font-style: normal; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 800; }

/* ---------- Bagian ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--gold); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sync { color: var(--muted); font-size: 14px; }
.section--dark .sync { color: var(--on-dark-2); }
.sync.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fb98a; margin-right: 8px; box-shadow: 0 0 0 4px rgba(95,185,138,.2); }

/* ---------- Toolbar & filter ---------- */
.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.toolbar__right { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; }
.chip span { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .7; }
.search { position: relative; flex: 1 1 260px; max-width: 340px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input, .toolbar select { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.search input { padding-left: 42px; }
.toolbar select { width: auto; min-width: 160px; flex: 0 1 auto; cursor: pointer; }

/* ---------- Kartu ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.card--skeleton { min-height: 420px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -300% 0; } }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 1200 / 630; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, var(--cover-pattern) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(-45deg, var(--cover-pattern) 0 2px, transparent 2px 18px),
    var(--cover); }
.thumb__title { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 28px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--cover-ink); }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.thumb video { opacity: 0; transition: opacity .3s; }
.card:hover .thumb img { transform: scale(1.05); }
.card.playing .thumb video { opacity: 1; }
.thumb__hint { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(60, 50, 80, .78); color: #fff; font-size: 12.5px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: .2s; }
.card:hover .thumb__hint, .thumb:focus-visible .thumb__hint { opacity: 1; transform: none; }
.badge { position: absolute; top: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--b-lab-ink); background: var(--b-lab); box-shadow: 0 2px 6px rgba(60, 40, 80, .12); }
.badge--kat { left: 12px; }
.badge--kat[data-k="Media Budaya"] { background: var(--b-budaya); color: var(--b-budaya-ink); }
.badge--kat[data-k="Game Edukasi"] { background: var(--b-game); color: var(--b-game-ink); }
.badge--kat[data-k="Media Pembelajaran"] { background: var(--b-media); color: var(--b-media-ink); }
.badge--kat[data-k="Alat Guru"] { background: var(--b-guru); color: var(--b-guru-ink); }
.badge--star { right: 12px; background: var(--gold); color: var(--gold-ink); }
.badge--new { right: 12px; background: var(--b-new); color: var(--b-new-ink); }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.card__meta .mapel { color: var(--b-lab-ink); font-weight: 800; }
.card h3 { font-size: 20px; letter-spacing: -.015em; }
.card__desc { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.card__desc.muted { font-style: italic; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tags span { padding: 4px 9px; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.card__act { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.card__act .btn { flex: 1; min-height: 46px; }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }

/* ---------- Seri (jalur belajar) ---------- */
.series { margin-bottom: 30px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 55%),
    var(--surface); }
.series__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.series__head .eyebrow { margin-bottom: 4px; }
.series__head h3 { font-size: 24px; }
.series__head p:not(.eyebrow) { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.series__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.series__steps li { position: relative; }
.series__steps li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 26%; z-index: 2; color: var(--gold); font-weight: 800; font-size: 18px; }
.series__steps button { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; padding: 8px 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.series__steps button:hover { border-color: var(--gold); transform: translateY(-2px); }
.series__img { position: relative; display: block; aspect-ratio: 1200 / 630; border-radius: 9px; overflow: hidden; margin-bottom: 6px; background: var(--cover); }
.series__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.series__num { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.series__steps b { font-size: 15px; line-height: 1.3; padding: 0 4px; }
.series__steps small { color: var(--muted); font-size: 13px; padding: 0 4px; }
.card__seri { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--accent); font-size: 12.5px; font-weight: 800; }

/* ---------- Pratinjau (teater) ---------- */
.theater { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.theater__main { border-radius: var(--radius); overflow: hidden; background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); }
.theater__screen { position: relative; aspect-ratio: 1200 / 630; background: #000; }
.theater__screen img, .theater__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theater__screen .thumb__title { font-size: 30px; }
.theater__info { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 22px 24px; flex-wrap: wrap; }
.theater__info h3 { font-size: 24px; margin: 4px 0 6px; }
.theater__info p { color: var(--on-dark-2); font-size: 15px; max-width: 560px; }
.theater__meta { color: var(--gold) !important; font-weight: 700; font-size: 13.5px !important; }
.theater__act { display: flex; align-items: center; gap: 16px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark-2); cursor: pointer; }
.switch input { accent-color: var(--gold); width: 17px; height: 17px; }
.playlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; }
.playlist button { display: grid; grid-template-columns: 108px 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: inherit; text-align: left; cursor: pointer; }
.playlist button:hover { background: rgba(255,255,255,.08); }
.playlist button[aria-current="true"] { border-color: var(--gold); background: rgba(247, 217, 143, .14); }
.playlist .pl__img { position: relative; aspect-ratio: 1200 / 630; border-radius: 8px; overflow: hidden; background: var(--cover); }
.playlist img { width: 100%; height: 100%; object-fit: cover; display: block; }
.playlist b { display: block; font-size: 14.5px; line-height: 1.3; }
.playlist small { color: var(--on-dark-2); }

/* ---------- Cara pakai ---------- */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 19px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

/* ---------- Profil ---------- */
.profile__in { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; }
.profile__card { position: sticky; top: 96px; }
.profile__photo { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  background:
    repeating-linear-gradient(45deg, var(--cover-pattern) 0 2px, transparent 2px 20px),
    repeating-linear-gradient(-45deg, var(--cover-pattern) 0 2px, transparent 2px 20px),
    var(--cover); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__photo span { font-family: var(--serif); font-size: 96px; font-weight: 700; color: var(--cover-ink); }
.profile__social { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.profile__role { color: var(--accent); font-weight: 700; margin: 8px 0 16px; }
.bio { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; margin: 26px 0; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.bio dt { color: var(--muted); font-weight: 600; }
.bio dd { margin: 0; font-weight: 600; }
.sub { font-size: 18px; margin: 28px 0 12px; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pstats div { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pstats b { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.pstats span { color: var(--muted); font-size: 13.5px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-weight: 600; font-size: 14px; }
.pills--soft li { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.quote { margin: 30px 0 18px; padding: 20px 24px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--surface); font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14.5px; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__links { display: flex; gap: 18px; }
.foot__links a { text-decoration: none; font-weight: 700; color: var(--ink-2); }
.foot__links a:hover { color: var(--accent); }

/* ---------- Jendela demo ---------- */
.modal { width: min(1040px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
.modal::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px 12px; }
.modal__meta { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.modal__head h3 { font-size: 22px; }
.tabs { display: flex; gap: 8px; padding: 0 22px 14px; flex-wrap: wrap; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.modal__stage { position: relative; margin: 0 22px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.pane { position: absolute; inset: 0; }
.pane[hidden] { display: none !important; }
.pane img, .pane video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.pane .thumb__title { font-size: 32px; background: var(--cover); }
.live iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.qr { display: flex; align-items: center; justify-content: center; gap: 32px; padding: 24px; background: var(--surface-2); color: var(--ink); flex-wrap: wrap; text-align: center; }
.qr__box { padding: 14px; background: #fff; border-radius: 14px; line-height: 0; }
.qr__box svg { width: min(260px, 50vw); height: auto; }
.qr small { color: var(--muted); word-break: break-all; }
.modal__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px 22px; flex-wrap: wrap; }
.modal__foot p { color: var(--ink-2); font-size: 15px; flex: 1 1 320px; }
.modal__act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14.5px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Animasi muncul ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsif ---------- */
@media (max-width: 980px) {
  .hero__in, .profile__in, .theater { grid-template-columns: minmax(0, 1fr); }
  .hero__art { margin-top: 8px; }
  .hero { padding-top: 40px; }
  .reel { transform: none; }
  :root[data-layout="sinematik"] .hero { min-height: 0; padding: 48px 0 40px; flex-direction: column; align-items: stretch; }
  :root[data-layout="sinematik"] .hero__now { position: relative; left: auto; right: auto; bottom: auto; align-self: flex-start; margin: 28px 16px 0; }
  .profile__card { position: static; max-width: 360px; }
  .steps { grid-template-columns: 1fr; }
  .playlist { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; }
  .playlist li { flex: 0 0 260px; }
  .series__steps li:not(:last-child)::after { display: none; }
  .series { padding: 18px; }
  .series__steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .series__steps li { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .stats { gap: 24px; }
  .stats dd { font-size: 28px; }
  .lead { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .search { max-width: none; flex-basis: 100%; }
  .toolbar select { flex: 1 1 140px; }
  .grid { grid-template-columns: 1fr; }
  .float--a { left: 8px; top: -14px; }
  .float--b { right: 12px; }
  .reel__label b { font-size: 16px; }
  .reel__cta { padding: 7px 12px; font-size: 13px; }
  .bio { grid-template-columns: 1fr; gap: 2px; }
  .bio dd { margin-bottom: 10px; }
  .pstats { grid-template-columns: repeat(2, 1fr); }
  .modal { width: 100%; max-height: 100dvh; border-radius: 0; }
  .modal__stage { margin: 0 12px; }
  .modal__stage[data-tab="live"] { aspect-ratio: 3 / 4; }
  .modal__stage[data-tab="qr"] { aspect-ratio: auto; min-height: 340px; }
  .modal__head h3 { font-size: 19px; }
  .tabs button { flex: 1; padding: 0 10px; font-size: 13.5px; }
  .modal__stage .pane img, .modal__stage .pane video { object-fit: contain; }
  .modal__head, .tabs, .modal__foot { padding-left: 12px; padding-right: 12px; }
  .modal__act .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Navigasi tambahan tulisan dan CV digital */
.nav__links { gap: clamp(12px, 2vw, 24px); }
.nav__links a { white-space: nowrap; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* Halaman tulisan, editor, dan CV */
.page-hero { padding: 76px 0 56px; background: linear-gradient(135deg, var(--surface-2), var(--bg)); }
.page-hero h1 { max-width: 800px; margin: 10px 0 16px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.page-hero .lead { max-width: 720px; }
.page-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.page-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.story-card { display:flex; flex-direction:column; min-height:250px; padding:24px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); }
.story-card__meta { color:var(--accent); font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.story-card h2 { margin:10px 0; font-family:var(--serif); font-size:25px; line-height:1.18; }
.story-card p { color:var(--ink-2); }
.story-card__foot { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:auto; padding-top:22px; color:var(--muted); font-size:13px; }
.story-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:0 0 24px; }
.story-tools input, .story-tools select, .editor-form input, .editor-form textarea, .editor-form select { min-height:46px; padding:11px 14px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font:inherit; }
.story-tools input { flex:1 1 260px; }
.story-tools select { min-width:160px; }
.story-empty { padding:32px; text-align:center; border:1px dashed var(--line); border-radius:var(--radius); color:var(--muted); }
.editor-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr); gap:24px; align-items:start; }
.editor-form, .editor-preview, .cv-block { padding:26px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.editor-form { display:grid; gap:14px; }
.editor-form label { display:grid; gap:7px; font-size:14px; font-weight:700; }
.editor-form textarea { resize:vertical; min-height:145px; }
.editor-form textarea#body { min-height:360px; }
.editor-form .form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.editor-note { padding:14px 16px; border-radius:12px; background:var(--gold-soft); color:var(--ink-2); font-size:14px; }
.draft-list { display:grid; gap:10px; margin-top:18px; }
.draft-item { display:flex; justify-content:space-between; gap:14px; align-items:center; padding:13px 15px; background:var(--surface-2); border-radius:12px; }
.draft-item button { border:0; background:transparent; color:var(--accent); font:inherit; font-weight:800; cursor:pointer; }
.markdown-preview { white-space:pre-wrap; overflow-wrap:anywhere; min-height:240px; max-height:520px; overflow:auto; padding:18px; border-radius:12px; background:var(--bg-alt); color:var(--ink-2); font:14px/1.65 ui-monospace,monospace; }
.cv-layout { display:grid; grid-template-columns:minmax(250px,.7fr) minmax(0,1.3fr); gap:24px; align-items:start; }
.cv-name { font-family:var(--serif); font-size:clamp(34px,5vw,54px); line-height:1; }
.cv-role { color:var(--accent); font-weight:800; margin:12px 0; }
.cv-list { display:grid; gap:12px; padding-left:20px; }
.cv-list li { padding-left:4px; color:var(--ink-2); }
.cv-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.cv-timeline { border-left:2px solid var(--line); padding-left:22px; display:grid; gap:22px; }
.cv-timeline article { position:relative; }
.cv-timeline article::before { content:""; position:absolute; left:-29px; top:8px; width:11px; height:11px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px var(--gold-soft); }
.cv-timeline h3 { margin:0 0 5px; font-size:18px; }
.cv-timeline p { color:var(--ink-2); }
@media (max-width:800px) { .editor-layout,.cv-layout { grid-template-columns:1fr; } }
@media print {
  .nav,.foot,.cv-actions,.page-links { display:none !important; }
  .page-hero { padding:20px 0; background:none; }
  .cv-block,.cv-layout > aside { box-shadow:none; break-inside:avoid; }
  body { background:white; color:#222; }
}

/* Halaman publikasi dan CV: palet khusus yang lebih editorial */
.page-tulisan {
  --bg:#f5f7f6; --bg-alt:#e9f1ee; --surface:#fff; --surface-2:#eaf2ef;
  --ink:#1f3532; --ink-2:#4b625d; --muted:#697b76; --line:#d9e5e0;
  --accent:#14766b; --accent-2:#1b897c; --gold:#eacb83; --gold-ink:#3e321b;
  --gold-soft:#f6eedb; --gold-glow:rgba(234,203,131,.45);
  --radius:20px; --shadow:0 12px 32px -20px rgba(25,65,58,.35);
}
.page-cv {
  --bg:#faf7f0; --bg-alt:#f0e8d9; --surface:#fffdf8; --surface-2:#f5eddf;
  --ink:#332c22; --ink-2:#5f5545; --muted:#786d5d; --line:#e8ddc9;
  --accent:#8a5428; --accent-2:#a66b39; --gold:#d8b66f; --gold-ink:#38280d;
  --gold-soft:#f3e8cf; --gold-glow:rgba(216,182,111,.42);
  --radius:18px; --shadow:0 12px 32px -20px rgba(78,55,24,.3);
}
.page-tulisan .page-hero { position:relative; overflow:hidden; padding:88px 0 68px; background:linear-gradient(115deg,#d9eee7 0%,#f0f5ed 54%,#f5ecd7 100%); }
.page-tulisan .page-hero::after { content:""; position:absolute; width:340px; height:340px; border:1px solid rgba(20,118,107,.16); border-radius:50%; right:5%; top:-190px; box-shadow:0 0 0 35px rgba(20,118,107,.04),0 0 0 75px rgba(20,118,107,.035); pointer-events:none; }
.page-tulisan .page-hero .wrap { position:relative; z-index:1; }
.page-tulisan .page-hero h1 { max-width:760px; color:#193f39; }
.page-tulisan .section { background:linear-gradient(180deg,#f5f7f6,#eef3f0); }
.page-tulisan .story-tools { padding:14px; border:1px solid #d9e5e0; border-radius:18px; background:rgba(255,255,255,.76); box-shadow:0 8px 26px -22px rgba(25,65,58,.4); }
.page-tulisan .story-tools input,.page-tulisan .story-tools select { border-color:#d4e1dc; background:#fff; }
.page-tulisan .story-card { border-color:#dce8e3; border-radius:18px; box-shadow:0 8px 24px -19px rgba(25,65,58,.38); transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.page-tulisan .story-card:hover { transform:translateY(-4px); border-color:#9ac9bb; box-shadow:0 18px 34px -22px rgba(20,90,78,.42); }
.page-tulisan .story-card__meta { display:inline-flex; align-self:flex-start; padding:6px 10px; border-radius:999px; background:#e3f1eb; color:#17685d; font-size:11px; letter-spacing:.045em; }
.page-tulisan .story-card h2 { color:#213c36; }
.page-tulisan .story-card__foot .btn { min-height:40px; padding-inline:14px; }
.page-tulisan .section__head { margin-bottom:22px; }
.page-cv .page-hero { padding:76px 0 52px; background:linear-gradient(120deg,#efe1c6 0%,#f8f3e9 58%,#e5ebd9 100%); }
.page-cv .page-hero h1 { color:#3a2d1d; }
.page-cv .cv-role { display:inline-flex; padding:7px 13px; border-radius:999px; background:#f0e4cc; color:#80502a; }
.page-cv .cv-layout { align-items:start; }
.page-cv .cv-block { border-color:#e9deca; border-radius:16px; background:rgba(255,253,248,.94); box-shadow:0 12px 30px -22px rgba(78,55,24,.35); }
.page-cv .cv-block h2 { color:#49351f; font-family:var(--serif); font-size:clamp(25px,3vw,32px); }
.page-cv .cv-block > .eyebrow { color:#8a5428; }
.page-cv .cv-layout > aside .cv-block { background:linear-gradient(160deg,#f3ead8,#fffdf8 68%); }
.page-cv .cv-timeline { border-left-color:#ddcba9; }
.page-cv .cv-timeline article::before { background:#a66b39; box-shadow:0 0 0 5px #f3e8cf; }
.page-cv .cv-timeline article { padding:0 0 3px 4px; }
.page-cv .cv-timeline small { display:inline-block; margin-bottom:6px; color:#8a5428; font-weight:800; letter-spacing:.04em; }
.page-cv .cv-timeline h3 { color:#3e3325; }
.page-cv .cv-list li::marker { color:#a66b39; }
@media(max-width:700px) {
 .page-tulisan .page-hero,.page-cv .page-hero { padding:58px 0 42px; }
 .page-tulisan .story-tools { padding:10px; }
 .page-tulisan .story-tools select { min-width:calc(50% - 6px); flex:1; }
 .page-cv .cv-block { padding:21px; }
}
@media print { .page-cv { --bg:#fff; --surface:#fffdf8; --ink:#222; --ink-2:#444; } .page-cv .page-hero { background:none; } }

/* Pengelola status publikasi karya */
.work-manager-note { padding:18px 20px; border:1px solid var(--gold); border-radius:16px; background:var(--gold-soft); color:var(--ink-2); }
.work-manager-tools { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 14px; }
.work-manager-tools input { flex:1 1 260px; min-height:46px; padding:11px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.work-manager-list { display:grid; gap:10px; }
.work-manager-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); }
.work-manager-row.is-locked { border-color:var(--accent); background:var(--surface-2); }
.work-manager-row h3 { font-size:17px; }
.work-manager-row small { display:block; margin-top:4px; color:var(--muted); overflow-wrap:anywhere; }
.work-manager-status { display:flex; align-items:center; gap:10px; flex:none; }
.work-manager-status button { min-height:42px; padding:0 14px; border:1px solid var(--line); border-radius:11px; background:var(--surface); color:var(--ink); font:inherit; font-weight:800; cursor:pointer; }
.work-manager-row.is-locked .work-manager-status button { color:var(--accent); border-color:var(--accent); }
.work-manager-output { margin-top:24px; padding:20px; border-radius:16px; background:var(--dark); color:var(--on-dark); }
.work-manager-output pre { max-height:220px; overflow:auto; padding:14px; border-radius:10px; background:rgba(0,0,0,.22); color:inherit; white-space:pre-wrap; overflow-wrap:anywhere; }
.work-manager-output .btn { margin-right:8px; }
@media(max-width:650px) { .work-manager-row { align-items:flex-start; flex-direction:column; } .work-manager-status { width:100%; justify-content:space-between; } }

/* Karya yang dikunci tetap tampil, tetapi tidak membuka pratinjau atau tautan */
.card--locked .thumb--locked { cursor:default; }
.card--locked .thumb--locked .thumb__hint { opacity:1; transform:none; background:rgba(86,48,38,.9); }
.badge--locked { right:12px; background:#f2d7cb; color:#713d2b; }
:root[data-theme="dark"] .badge--locked { background:#68463a; color:#ffe4d6; }
.card--locked .card__act .is-disabled { opacity:.62; cursor:not-allowed; pointer-events:none; }
