/* Mizyan Konten: tema terang biru-indigo */
:root {
  color-scheme: dark;
  --blue: #60a5fa; --indigo: #7c8cff; --sky: #60a5fa;
  --ink: #eaf0ff; --muted: #9db0d6; --faint: #6f82ad;
  --bg: #050b1a; --panel: rgba(12, 22, 50, .78); --line: rgba(96, 140, 255, .26); --ice: rgba(59, 130, 246, .16);
  --ok: #34d399; --bad: #fb7185; --warn: #fbbf24;
  --grad: linear-gradient(135deg, #3b82f6, #7c5cff);
  --radius: 16px;
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, .7);
  --surface: rgba(10, 19, 44, .9); --surface2: rgba(7, 14, 34, .9); --seg-on: rgba(59, 130, 246, .45); --topbar: rgba(5, 11, 26, .82);
  --glow: 0 0 22px rgba(59, 130, 246, .45);
}
html[data-theme="light"] {
  color-scheme: light;
  --blue: #2563eb; --indigo: #4f46e5; --sky: #38bdf8;
  --ink: #0f1b3d; --muted: #5b6b8f; --faint: #8794b3;
  --bg: #f4f8ff; --panel: #ffffff; --line: #d8e3f6; --ice: #eaf1ff;
  --ok: #0f9d6b; --bad: #d63a4f; --warn: #b7791f;
  --grad: linear-gradient(135deg, #2563eb, #4f46e5);
  --radius: 16px;
  --shadow: 0 10px 30px -14px rgba(37, 60, 140, .35);
  --surface: #ffffff; --surface2: #f7faff; --seg-on: #ffffff; --topbar: rgba(255, 255, 255, .85); --glow: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100vh; font: 15px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
a { color: var(--blue); }
.muted { color: var(--muted); } .tiny { font-size: 12.5px; } .center { text-align: center; }
.spacer { flex: 1; }

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(37, 99, 235, .09) 1px, transparent 1px); background-size: 22px 22px; }
.bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.bg .b1 { width: 55vw; height: 45vw; left: -15vw; top: -15vw; background: radial-gradient(circle, rgba(56, 189, 248, .55), transparent 65%); }
.bg .b2 { width: 50vw; height: 45vw; right: -15vw; top: 25vh; background: radial-gradient(circle, rgba(79, 70, 229, .35), transparent 65%); }
#loginView, #appView { position: relative; z-index: 1; }

/* ---------- Komponen dasar ---------- */
.mark { flex: 0 0 auto; aspect-ratio: 1 / 1; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; font: 800 34px/1 "Segoe UI", sans-serif; box-shadow: 0 12px 28px -10px rgba(37, 99, 235, .7); }
.mark.sm { width: 32px; height: 32px; min-width: 32px; border-radius: 10px; font-size: 18px; box-shadow: none; }
.btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 12px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(37, 60, 140, .5); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { color: #fff; border: 0; background: var(--grad); box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .8); }
.btn.soft { background: var(--ice); color: var(--blue); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--bad); }
.link { background: none; border: 0; color: var(--blue); font: inherit; font-size: 13px; cursor: pointer; justify-self: center; padding: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
textarea { resize: vertical; line-height: 1.55; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); flex: none; padding: 0; }
input[type="range"] { padding: 0; accent-color: var(--blue); }
label { display: grid; gap: 5px; font-weight: 600; font-size: 13.5px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
label.inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
label.inline select { width: auto; }
label .muted { font-weight: 400; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .wrapx { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.msg { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; }
.msg.bad { background: #fdecef; color: var(--bad); } .msg.ok { background: #e6f7f0; color: var(--ok); } .msg.warn { background: #fff6e0; color: var(--warn); }
.pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--blue); }
.pill.low { background: #fff1dc; color: var(--warn); }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; border-radius: 12px; background: var(--ice); }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted); padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--seg-on); color: var(--blue); box-shadow: 0 2px 8px -3px rgba(37, 60, 140, .4); }

/* ---------- Masuk ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(420px, 100%); display: grid; gap: 12px; padding: 30px 26px 22px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); border: 1.5px solid transparent; border-radius: 24px;
  background-image: linear-gradient(#fff, #fff), conic-gradient(from var(--a, 0deg), #2563eb, #38bdf8, #4f46e5, #2563eb);
  background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 30px 70px -30px rgba(37, 60, 140, .5); animation: spin 8s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.login-card .mark { justify-self: center; }
.eyebrow { margin: 0; text-align: center; font: 700 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .22em; color: var(--blue); }
.login-card h1 { text-align: center; font-size: 27px; line-height: 1.15; }
.login-card h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.move { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--ice); }
.move p { margin: 0; font-size: 13.5px; }

/* ---------- Aplikasi ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--topbar); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.warn { margin: 10px 18px 0; padding: 10px 14px; border-radius: 12px; background: #fff6e0; color: var(--warn); font-size: 13.5px; }
.stepper { display: flex; align-items: center; gap: 6px; max-width: 900px; margin: 18px auto 6px; padding: 0 14px; }
.stepper button { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.stepper button b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ice); color: var(--blue); font-size: 13px; }
.stepper button.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .9); }
.stepper button.active b { background: rgba(255, 255, 255, .25); color: #fff; }
.stepper button.done b { background: #d9f3e8; color: var(--ok); }
.stepper button:disabled { opacity: .5; cursor: not-allowed; }
.stepper .line { flex: 1; height: 2px; min-width: 8px; background: var(--line); border-radius: 2px; }
.wrap { max-width: 900px; margin: 0 auto; padding: 8px 14px 60px; }
.panel { display: grid; gap: 14px; animation: rise .4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel > h2 { font-size: 21px; margin: 10px 0 0; }
.card { display: grid; gap: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card > h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.card > h3 > b { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12.5px; }
.card p { margin: 0; }
.actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.actions .btn:only-child { margin-left: auto; }

.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.style { display: grid; gap: 6px; padding: 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; font-weight: 700; font-size: 13px; color: var(--ink); cursor: pointer; text-align: left; }
.styles { max-height: 460px; overflow-y: auto; padding: 2px; }
.style .sw { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--ice); position: relative; }
.style .sw svg, .style .sw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.style[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.aibox { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--ice); }
.drop { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed #a9c0f0; border-radius: 16px; background: linear-gradient(180deg, #f7faff, #eef3ff); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: #e9f0ff; }
.drop-icon { font-size: 28px; }
.drop.has { border-style: solid; border-color: #9fd9c1; background: #f1fbf6; }

.scene-list { display: grid; gap: 8px; }
.scene-row { display: grid; grid-template-columns: 34px 92px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.scene-row b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ice); color: var(--blue); font-size: 12.5px; }
.scene-row .tm { font: 600 12px ui-monospace, Menlo, monospace; color: var(--muted); padding-top: 5px; }
.scene-row .nudge { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#wave { width: 100%; height: 120px; border-radius: 12px; background: #f7faff; border: 1px solid var(--line); }

.progress { height: 10px; border-radius: 999px; background: var(--ice); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #38bdf8, #4f46e5); background-size: 200% 100%; animation: flow 2s linear infinite; transition: width .3s; }
@keyframes flow { to { background-position: -200% 0; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sc { display: grid; gap: 8px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.sc .thumb { position: relative; display: grid; place-items: center; width: 100%; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #dbe7ff, #cfd2ff); color: #6b7bb0; font-weight: 700; font-size: 13px; }
.sc .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc .thumb .st { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 11.5px; color: var(--ink); }
.sc .thumb .st.err { color: var(--bad); } .sc .thumb .st.busy { color: var(--blue); }
.sc .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.sc .narr { font-size: 13px; line-height: 1.45; max-height: 4.4em; overflow: auto; color: var(--ink); }
.sc details summary { cursor: pointer; font-size: 12.5px; color: var(--blue); font-weight: 600; }
.sc textarea { font-size: 12.5px; margin-top: 6px; }
.sc .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sc .err-t { font-size: 12px; color: var(--bad); }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.player { display: grid; place-items: center; padding: 6px; border-radius: 12px; background: #0b1230; }
.player canvas { max-width: 100%; max-height: 56vh; border-radius: 6px; background: #000; }
.card > h3:not(:first-child) { margin-top: 6px; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(15, 27, 61, .45); }
.sheet { width: min(560px, 100%); max-height: 80vh; overflow: auto; display: grid; gap: 12px; padding: 18px; background: var(--surface); border-radius: 18px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.hist li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist li.cur { border-color: var(--blue); background: var(--ice); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); }
.toast.bad { background: #b3263a; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .stepper button span { display: none; }
  .stepper button { padding: 8px; }
  .scene-row { grid-template-columns: 30px minmax(0, 1fr); } .scene-row .tm { grid-column: 2; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .login-card, .panel, .progress i { animation: none !important; } }

/* ---- ide judul, kerangka, suara ---- */
.row.between { justify-content: space-between; }
.ideas { display: grid; gap: 8px; }
.idea { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.idea:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.idea b { font-size: 14px; }
.idea span { font-size: 12.5px; color: var(--muted); }
.idea[aria-pressed="true"] { border-color: var(--blue); background: var(--ice); }
.deepbox, .voicebox { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--ice); }
.deep-hook { font-weight: 700; color: var(--indigo); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; }
.steps a { color: var(--blue); font-weight: 600; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.card > .btn.small { justify-self: start; }

/* ---------- Series ---------- */
#serCard > summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
#serCard > summary::-webkit-details-marker { display: none; }
#serCard[open] > summary { margin-bottom: 12px; }
.serparts { display: grid; gap: 8px; }
.serpart { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.serpart.cur { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.serpart > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ice); color: var(--blue); font-size: 13px; }
.serpart-main { display: grid; gap: 3px; min-width: 0; }
.serpart-main input { padding: 6px 9px; font-weight: 600; }

/* ---------- Tokoh & pilihan pengembangan judul ---------- */
.tokohbox { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ice); }
.tokohimg { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; border: 2px solid #fff; box-shadow: var(--shadow); }
.tokohbtns { display: grid; gap: 6px; align-content: start; }
.deepopts { display: grid; gap: 8px; }
.deepopt { display: grid; gap: 4px; text-align: left; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.deepopt:hover { border-color: var(--blue); }
.deepopt[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.deepopt .tag { justify-self: start; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--indigo); background: var(--ice); padding: 2px 8px; border-radius: 999px; }
.deepopt b { font-size: 15px; }
.deepopt .hook { color: var(--muted); font-size: 13px; }
.deepopt ol { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }

/* ---------- Panel samping Chrome (sempit) ---------- */
.ext-panel .wrap { padding-left: 10px; padding-right: 10px; }
.ext-panel .split, .ext-panel .grid3 { grid-template-columns: 1fr; }
.ext-panel .stepper button span { display: none; }
.ext-panel .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ext-panel .topbar { flex-wrap: wrap; gap: 6px; }
@media (max-width: 480px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tokohimg { width: 84px; height: 84px; } }

/* ---------- Kartu buka Canvas ---------- */
.cvstart { border: 1.5px solid #bcd0ff; background: linear-gradient(180deg, #f3f7ff, #fff); }
.cvtext { min-width: 0; flex: 1 1 240px; }
.cvdot { width: 14px; height: 14px; border-radius: 50%; background: #f0b429; box-shadow: 0 0 0 4px rgba(240, 180, 41, .2); flex: none; }
.cvdot[data-s="ok"] { background: #1db980; box-shadow: 0 0 0 4px rgba(29, 185, 128, .2); }
.cvdot[data-s="bad"] { background: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .2); }

/* ---------- Efek, elemen, stiker ---------- */
.stk { display: flex; flex-wrap: wrap; gap: 6px; }
.stk button { font-size: 22px; line-height: 1; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.stk button:hover { border-color: var(--blue); background: var(--ice); }
.stklist { display: flex; flex-wrap: wrap; gap: 6px; }
.stklist span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: var(--ice); font-size: 14px; }
.stklist button { border: 0; background: transparent; color: var(--bad); font-weight: 800; cursor: pointer; }
#fxCard h3 { margin-top: 14px; } #fxCard h3:first-child { margin-top: 0; }

input[type="color"] { height: 40px; padding: 3px; width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }

.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 6px; }
.preset { text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 3px; font: inherit; }
.preset b { font-size: 14.5px; }
.preset span { font-size: 12px; color: var(--muted, #6b7490); }
.preset:hover { border-color: var(--blue); background: var(--ice); }
.preset.on { border-color: var(--blue); background: var(--ice); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
#fxCard h4 { margin: 10px 0 4px; font-size: 13.5px; }
.stklist i { font-style: normal; font-size: 11.5px; opacity: .7; margin-right: 2px; }

.director { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin: 8px 0 4px; border: 1.5px dashed var(--blue); border-radius: 12px; background: var(--ice); }
#ovAt { max-width: 140px; }

/* pemilih huruf bergambar */
.fonttabs { flex-wrap: wrap; }
.fontgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; margin: 6px 0; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.fonttile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 6px; border: 2px solid transparent; border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--ink); text-align: center; }
.fonttile .fsample { font-size: 17px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fonttile .fname { font-size: 10px; color: var(--muted); line-height: 1.2; }
.fonttile[aria-selected="true"] { border-color: var(--indigo); background: var(--ice); }
.fonttile:hover { border-color: #a5b4fc; }
.musicown { margin: 4px 0 8px; padding: 8px 10px; border: 1px dashed #cbd5e1; border-radius: 10px; }
.stklist .ovitem { cursor: pointer; }
.stklist .ovitem:hover { background: #eef2ff; }

/* kategori konten */
.catbox { display: grid; gap: 8px; margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { appearance: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
#voiceMode { margin-bottom: 8px; }

.thumb { position: relative; }
.clipbadge { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 11px; font-weight: 700; }

.prodthumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.prodthumbs:empty { display: none; }
.pthumb { position: relative; width: 92px; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 50% / 14px 14px; border: 1px solid var(--line, #d7dbe7); }
.pthumb img, .pthumb canvas { width: 100%; height: 92px; object-fit: contain; display: block; }
.pthumb .pt { display: block; padding: 3px 5px; font-size: 10.5px; background: rgba(255,255,255,.95); color: var(--ink, #111); text-align: center; }
.pthumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15,23,42,.8); color: #fff; cursor: pointer; line-height: 1; }
.pthumb .pn { position: absolute; left: 4px; top: 4px; font-size: 10.5px; font-weight: 700; background: rgba(15,23,42,.8); color: #fff; padding: 1px 6px; border-radius: 999px; }
.prodbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.prodbar select { font-size: 12px; padding: 3px 6px; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.modecard { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; box-shadow: var(--shadow); }
.modecard b { font-size: 15px; }
.modecard span { color: var(--muted); line-height: 1.4; }
.modecard[aria-pressed="true"] { border-color: var(--blue); background: var(--ice); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }
.flowlist { display: grid; gap: 10px; }
.flowrow { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.flowrow textarea { width: 100%; font: 12.5px/1.45 inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--bg); resize: vertical; }
.flowrow .fr-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.flowprod { display: grid; justify-items: center; gap: 4px; }
.flowprod img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }


/* ---------- Tema gelap (bawaan) ---------- */
html:not([data-theme="light"]) .bg { background-image: radial-gradient(rgba(96, 165, 250, .16) 1px, transparent 1px); background-size: 26px 26px; }
html:not([data-theme="light"]) .bg .b1 { background: radial-gradient(circle, rgba(139, 61, 255, .55), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
html:not([data-theme="light"]) .bg .b2 { background: radial-gradient(circle, rgba(59, 130, 246, .38), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(6vw, 5vh) scale(1.12); } }
html:not([data-theme="light"]) .msg.bad { background: rgba(251, 113, 133, .14); }
html:not([data-theme="light"]) .msg.ok { background: rgba(52, 211, 153, .14); }
html:not([data-theme="light"]) .msg.warn, html:not([data-theme="light"]) .warn, html:not([data-theme="light"]) .pill.low { background: rgba(251, 191, 36, .14); }
html:not([data-theme="light"]) .drop { border-color: rgba(96, 165, 250, .5); background: linear-gradient(180deg, rgba(59, 130, 246, .1), rgba(59, 130, 246, .06)); }
html:not([data-theme="light"]) .drop:hover, html:not([data-theme="light"]) .drop.over { background: rgba(59, 130, 246, .2); }
html:not([data-theme="light"]) .drop.has { border-color: rgba(52, 211, 153, .6); background: rgba(52, 211, 153, .1); }
html:not([data-theme="light"]) #wave { background: var(--surface2); }
html:not([data-theme="light"]) .cvstart { border-color: rgba(96, 165, 250, .5); background: linear-gradient(180deg, rgba(59, 130, 246, .16), var(--surface)); }
html:not([data-theme="light"]) .fonttile[aria-selected="true"], html:not([data-theme="light"]) .stklist .ovitem:hover { background: rgba(59, 130, 246, .25); }
html:not([data-theme="light"]) .sc .thumb .st, html:not([data-theme="light"]) .pthumb .pt { background: rgba(4, 10, 24, .85); color: var(--ink); }
html:not([data-theme="light"]) .tokohimg { border-color: rgba(96, 165, 250, .5); }
html:not([data-theme="light"]) .toast { background: #2a2370; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7), var(--glow); }
html:not([data-theme="light"]) .topbar { border-bottom-color: rgba(96, 140, 255, .2); }
html:not([data-theme="light"]) .card, html:not([data-theme="light"]) .sheet { backdrop-filter: blur(10px); }
html:not([data-theme="light"]) .btn:hover { border-color: var(--blue); }
html:not([data-theme="light"]) .btn.primary { box-shadow: 0 10px 26px -10px rgba(59, 130, 246, .9), var(--glow); }
html:not([data-theme="light"]) .stepper button.active { box-shadow: 0 10px 26px -10px rgba(59, 130, 246, .9), var(--glow); }
html:not([data-theme="light"]) input::placeholder, html:not([data-theme="light"]) textarea::placeholder { color: var(--faint); }
html:not([data-theme="light"]) option { background: #14163f; color: var(--ink); }
html:not([data-theme="light"]) input[type="color"] { background: var(--surface2); }
.card, .sc, .scene-row, .style, .btn, input, select, textarea { transition: background .25s, border-color .25s, color .25s; }
.themebtn { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; font-size: 17px; line-height: 1; }
.login .themebtn { position: fixed; top: 14px; right: 14px; z-index: 5; }

/* ---------- Halaman masuk beranimasi ---------- */
.login-card { position: relative; overflow: hidden; background: var(--surface); background-image: none; border: 1.5px solid var(--line); animation: none; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .65), 0 0 60px -20px rgba(59, 130, 246, .55); }
html[data-theme="light"] .login-card { background: rgba(255, 255, 255, .94); box-shadow: 0 30px 70px -30px rgba(37, 60, 140, .5); }
.login-card::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 55%, #a855f7, #3b82f6, transparent 85%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
.login-card > * { position: relative; }
.orbit { position: relative; width: 224px; height: 224px; margin: -4px auto -6px; display: grid; place-items: center; }
.orbit .core { position: relative; z-index: 2; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font: 800 40px/1 "Segoe UI", sans-serif; color: #fff; background: var(--grad); box-shadow: 0 0 0 6px rgba(59, 130, 246, .18), 0 0 46px rgba(59, 130, 246, .75); animation: pulse 3.2s ease-in-out infinite; }
.orbit .core::after { content: ""; position: absolute; inset: -14px; border-radius: 30px; border: 1.5px solid rgba(96, 165, 250, .45); animation: pulse 3.2s ease-in-out infinite reverse; }
@keyframes pulse { 50% { transform: scale(1.07); } }
.orbit .ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(96, 165, 250, .4); transform: translate(-50%, -50%); }
.orbit .r1 { width: 150px; height: 150px; } .orbit .r2 { width: 222px; height: 222px; }
.orbit .rot { position: absolute; inset: 0; }
.orbit .rot.a { animation: orb 16s linear infinite; }
.orbit .rot.b { animation: orb 24s linear infinite reverse; }
@keyframes orb { to { transform: rotate(360deg); } }
@keyframes orbr { to { transform: rotate(-360deg); } }
.orbit .sat { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px; transform: rotate(var(--r)) translateX(var(--d)) rotate(calc(-1 * var(--r))); }
.orbit .sat i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; color: #fff; background: rgba(30, 27, 90, .85); border: 1px solid rgba(96, 165, 250, .5); box-shadow: 0 0 16px rgba(59, 130, 246, .5); animation: orbr 16s linear infinite; }
.orbit .rot.b .sat i { animation: orb 24s linear infinite; }
html[data-theme="light"] .orbit .sat i { background: #eef2ff; color: #4f46e5; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.orbit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout { margin: 0; text-align: center; font-weight: 800; font-size: 31px; line-height: 1.1; letter-spacing: -.02em; background: linear-gradient(100deg, #93c5fd, #a855f7 30%, #60a5fa 60%, #93c5fd); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 5s linear infinite; }
html[data-theme="light"] .callout { background-image: linear-gradient(100deg, #4f46e5, #2563eb 40%, #7c3aed 70%, #4f46e5); background-size: 220% 100%; }
@keyframes shimmer { to { background-position: -220% 0; } }
.login-card h1 { font-size: 15px; font-weight: 600; color: var(--muted); }
.login-card h1 em { -webkit-text-fill-color: var(--ink); background: none; font-weight: 700; }
.login-card > :not(.orbit):not(.callout) { animation: rise .6s both; }
.login-card > :nth-child(3) { animation-delay: .05s; } .login-card > :nth-child(4) { animation-delay: .1s; } .login-card > :nth-child(5) { animation-delay: .15s; } .login-card > :nth-child(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .orbit *, .callout, .login-card::before, .bg i, .login-card > * { animation: none !important; } }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--blue); }

/* v1.9: kotak posisi teks ala CapCut */
.split.one { grid-template-columns: 1fr; }
.posbox { margin: 10px 0 4px; }
.posgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 168px; margin-top: 8px; padding: 8px; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; background: var(--surface2, rgba(255,255,255,.04)); }
.posgrid button { height: 34px; border-radius: 8px; border: 1px solid var(--line, rgba(255,255,255,.18)); background: transparent; cursor: pointer; position: relative; }
.posgrid button::after { content: ""; position: absolute; inset: 11px 8px; border-radius: 3px; background: var(--muted, #94a3b8); opacity: .55; }
.posgrid button:hover::after, .posgrid button.on::after { background: var(--accent, #facc15); opacity: 1; }
.posgrid button.on { border-color: var(--accent, #facc15); box-shadow: 0 0 0 1px var(--accent, #facc15) inset; }
.verpill { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--accent, #facc15); border: 1px solid currentColor; opacity: .85; align-self: center; }
.voicebox { margin-bottom: 14px; }
.modes.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .modes.two { grid-template-columns: 1fr; } }

/* v1.9.1: prompt musik latar */
.musicgen { margin: 14px 0 6px; padding: 12px; border: 1px dashed var(--line, rgba(255,255,255,.2)); border-radius: 12px; background: var(--surface2, rgba(255,255,255,.03)); }
.musicgen textarea { width: 100%; margin: 8px 0; font-size: 13px; line-height: 1.45; resize: vertical; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.dropzone { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; padding: 18px 12px; margin: 10px 0 4px; border: 2px dashed var(--accent, #facc15); border-radius: 14px; background: var(--surface2, rgba(255,255,255,.03)); cursor: pointer; transition: background .15s, transform .15s; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { background: rgba(250,204,21,.12); transform: scale(1.01); outline: none; }

.chip.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.stat { display: grid; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat b { font-size: 20px; } .stat span { font-size: 12.5px; color: var(--muted); }
#trimTune label b, #fxCard label b, .grid2 label b#wmSizeVal, .grid2 label b#wmAlphaVal { margin-left: 6px; font-weight: 700; color: var(--blue); }
.dropzone.has { border-style: solid; }

/* ikon & logo tidak boleh mengecil/gepeng di HP */
.brand { min-width: 0; }
.brand .mark, .brand img, header img, .pill img, button svg, button img, .ico, .icon { flex-shrink: 0; }
.brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.verpill { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 520px) { .topbar .brand b { display: none; } .topbar { flex-wrap: wrap; row-gap: 6px; } .topbar .brand { flex: 1 1 auto; } .topbar .spacer { display: none; } .topbar .btn { flex: 0 0 auto; white-space: nowrap; } }

.flowimg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.flowimg img { width: 96px; height: auto; max-height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line, #2a2a4a); flex-shrink: 0; }

.warnText { color: var(--warn); }
#pCatChips { margin: 4px 0 2px; }

/* ---- mode Film ---- */
#step1.is-film .nofilm { display: none; }
#step2.is-film > .card:not(#filmInfo2) { display: none; }
#step2.is-film > #filmInfo2 { display: block; }
#step2.is-film #sceneList { display: grid; }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.look { appearance: none; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.look b { font-size: 14px; } .look span { font-size: 12px; color: var(--muted); }
.look[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.fcast, .fshots { display: grid; gap: 10px; margin: 8px 0; }
.fc, .fs { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.fc textarea, .fs textarea, .fs input, .fs select { width: 100%; }
.fs > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: baseline; }
.fs > summary .n { flex: 0 0 auto; min-width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--blue); color: #fff; font-size: 13px; }
.fs > summary .d { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.fs > summary .q { font-weight: 400; color: var(--muted); font-style: italic; }
.fs label { font-size: 12px; color: var(--muted); display: grid; gap: 3px; }
@media (max-width: 560px) { #filmCard .grid2 { grid-template-columns: 1fr; } }

.fidea { margin: 10px 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; display: grid; gap: 8px; }
.fideas { display: grid; gap: 6px; }
.fi { appearance: none; text-align: left; font: inherit; font-size: 13px; line-height: 1.4; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.fi b { display: block; font-size: 13px; margin-bottom: 2px; }
.fi:hover, .fi:focus-visible { border-color: var(--blue); }
.fi[aria-pressed="true"] { border-color: var(--blue); background: var(--ice); }
.fprog { margin: 8px 0; }
.fprog .bar { height: 8px; border-radius: 99px; background: var(--ice); overflow: hidden; }
.fprog .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8b5cf6, #3b82f6); border-radius: 99px; transition: width .35s ease; }
.fprog p { margin: 6px 0 0; }

.wcmanual { width: 100%; margin-top: 8px; font-size: 13px; }

/* Motion grafis */
#genMode { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { #genMode { grid-template-columns: 1fr; } }
.mglist { display: grid; gap: 14px; margin-top: 14px; }
.mgrow { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--line, rgba(128,128,128,.25)); border-radius: 12px; }
.mgth { flex: none; border-radius: 10px; background: #050912; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.mgf { flex: 1; min-width: 0; display: grid; gap: 8px; }
.mgf input, .mgf select, .mgf textarea { width: 100%; box-sizing: border-box; }
.mgf .row > * { flex: 1; min-width: 120px; }
.mgnar { line-height: 1.4; }
@media (max-width: 560px) { .mgrow { flex-direction: column; } }

/* Tokoh bergerak */
#panePup { margin: 12px 0; }
#panePup > summary { cursor: pointer; padding: 4px 0; }
.pup-char { border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; padding: 10px; margin: 10px 0; display: grid; gap: 8px; }
.pup-char input[type=text] { width: 100%; }
.pup-name { flex: 1 1 200px; }
.pup-poses { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pup-pose { display: grid; gap: 6px; }
.pup-thumb { height: 120px; border-radius: 10px; display: grid; place-items: center; background: repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, rgba(255,255,255,.03) 0 50%) 0 0 / 16px 16px; overflow: hidden; }
.pup-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pup-pvwrap { display: grid; gap: 6px; justify-items: start; margin: 10px 0; }
.pup-pvwrap canvas { border-radius: 10px; border: 1px solid var(--line, rgba(255,255,255,.14)); }
.pup-actor { border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; padding: 10px; margin: 8px 0; }
.pup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-items: end; }
.pup-grid label { display: grid; gap: 3px; font-size: 12px; opacity: .95; }
.pup-grid label.chk { display: flex; align-items: center; gap: 6px; }
.webbox { border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; padding: 10px; margin: 8px 0; }
#webModal textarea { width: 100%; margin: 8px 0; }

/* Pilihan sumber AI */
.aisrc { margin-bottom: 12px; }
.aisrc[data-s="need"] { border: 1px solid #fbbf24; background: linear-gradient(135deg, rgba(251,191,36,.16), rgba(251,191,36,.05)); animation: aipulse 2.4s ease-in-out infinite; }
.aisrc[data-s="ok"] { opacity: .92; padding-top: 10px; padding-bottom: 10px; }
.aisrc-text { flex: 1 1 240px; }
@keyframes aipulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,.0); } 50% { box-shadow: 0 0 0 6px rgba(251,191,36,.18); } }
#keyBtn[data-s="need"] { border-color: #fbbf24; color: #fbbf24; }
.srccard { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 12px; padding: 12px; margin: 10px 0; cursor: pointer; }
.srccard:has(input:checked) { border-color: #8b5cf6; background: rgba(139,92,246,.12); }
.srccard input { margin-top: 4px; }
.srccard .tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(139,92,246,.25); margin-left: 6px; }
.linkbtn { background: none; border: 0; color: inherit; opacity: .75; text-decoration: underline; cursor: pointer; padding: 8px 0; font: inherit; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .aisrc[data-s="need"] { animation: none; } }
.srccard input[type=radio] { width: 20px; height: 20px; min-width: 20px; flex: none; padding: 0; margin: 2px 0 0; accent-color: #8b5cf6; }
.srccard > span { flex: 1 1 auto; min-width: 0; }

/* ---- Langkah 1: pilihan cara membuat visual ---- */
.vgroup { display: block; margin: 10px 0 6px; }
.vispick { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.vcard { display: grid; gap: 6px; padding: 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; text-align: left; align-content: start; }
.vcard canvas { width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: var(--ice); display: block; }
.vcard b { font-size: 13px; }
.vcard .tiny { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.vcard .vtag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--ice); color: var(--blue); width: fit-content; }
.vcard .vtag.free { background: #e7f8ee; color: #137a3d; }
.vcard[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
#step1.is-motion .aionly, #step1.is-motion #cvStart { display: none !important; }
#step1:not(.is-motion) .motiononly { display: none !important; }
@media (max-width: 480px) { .vispick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stylebox { display: grid; gap: 8px; margin: 12px 0 4px; padding: 12px; border-radius: 14px; background: var(--ice); }

/* v1.20: dialog multi-suara, POV, suara AI Studio */
.flines { display: grid; gap: 6px; }
.fl { display: grid; grid-template-columns: minmax(84px, 120px) 1fr; gap: 6px; align-items: center; }
.fl input[data-l="t"] { grid-column: 2; }
.fl input[data-l="a"] { grid-column: 1 / -1; font-size: 12px; }
.fl > button { justify-self: end; grid-column: 1 / -1; }
.dvrow { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; align-items: center; margin: 6px 0; }
.dvrow span.tiny { grid-column: 1 / -1; }
.dvchunk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; margin: 8px 0; }
.dvchunk textarea { width: 100%; font-size: 12px; }
.okt { color: #15803d; } .warnt { color: #b45309; }
.dvup { cursor: pointer; }

/* Tema Navy Aurora (v1.20.1) */
.tag, .pill, .aiw-pill { letter-spacing: .03em; }
html:not([data-theme="light"]) .style:hover, html:not([data-theme="light"]) .modecard:hover { border-color: rgba(96, 165, 250, .55); box-shadow: 0 0 0 1px rgba(96, 165, 250, .22), 0 14px 34px -16px rgba(40, 90, 255, .5); }
.fsref { display: grid; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.fsimg { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); }
.fssheet { width: 100%; max-width: 420px; border-radius: 12px; border: 1px solid var(--line); }
