/* Faceless Studio — tema gelap neon, senada dengan Shorts Studio (hijau/biru di atas hitam) */
:root {
  --bg: #07090d;
  --panel: #0d1218;
  --panel-2: #121922;
  --raise: #172030;
  --line: #1c2530;
  --line-2: #2a3542;
  --text: #e8eef4;
  --text-2: #a3afbc;
  --text-3: #6d7987;
  --green: #3ee07a;
  --green-2: #2cc466;
  --green-ink: #04220f;
  --blue: #38c6ff;
  --yellow: #ffc53d;
  --orange: #ff9a3d;
  --tan: #c8b47a;
  --red: #ff4d63;
  --radius: 14px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 400 500; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-800.woff2") format("woff2"); font-weight: 700 800; }

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -10%, rgba(62, 224, 122, 0.1), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(56, 198, 255, 0.08), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--sans);
}
h1, h2, h3 { margin: 0; line-height: 1.25; }
a { color: var(--blue); }
button, select, input, textarea { font: inherit; color: inherit; }
svg { flex: none; }
code, .mono { font-family: var(--mono); font-size: 12px; }
code { background: rgba(255, 255, 255, 0.06); border-radius: 5px; padding: 1px 5px; }

/* ---------- tombol & input ---------- */
button, select, a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 10px;
  padding: 9px 14px; cursor: pointer; text-decoration: none; color: var(--text);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .05s;
}
select {
  display: inline-block; padding-right: 30px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select option { background: var(--panel); }
button:hover:not(:disabled), select:hover, a.button:hover { border-color: #3b4858; background: var(--raise); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .42; cursor: not-allowed; }
button.primary, a.button.primary {
  background: linear-gradient(180deg, #4ff08a, var(--green-2)); border-color: transparent; color: var(--green-ink); font-weight: 700;
  box-shadow: 0 0 0 1px rgba(62, 224, 122, .4), 0 6px 22px -8px rgba(62, 224, 122, .65);
}
button.primary:hover:not(:disabled), a.button.primary:hover {
  background: linear-gradient(180deg, #67f59b, #33d071);
  box-shadow: 0 0 0 1px rgba(62, 224, 122, .6), 0 8px 28px -8px rgba(62, 224, 122, .85);
}
button.danger { background: var(--red); border-color: transparent; color: #fff; font-weight: 700; }
button.ghost { background: transparent; color: var(--text-2); }
button.ghost:hover:not(:disabled) { color: var(--text); }
button.small, a.button.small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
button.link { border: 0; background: none; padding: 2px 4px; color: var(--blue); font-weight: 500; gap: 5px; }
button.link:hover:not(:disabled) { background: none; text-decoration: underline; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--raise); color: var(--text); border-color: var(--line-2); }
button.icon-btn.danger { background: transparent; color: var(--text-2); font-weight: inherit; }
button.icon-btn.danger:hover:not(:disabled) { background: rgba(255, 77, 99, .1); color: var(--red); border-color: rgba(255, 77, 99, .4); }
input[type="text"], input[type="number"], textarea, .input {
  width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; background: rgba(7, 9, 13, .75);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(62, 224, 122, .55); box-shadow: 0 0 0 3px rgba(62, 224, 122, .12); }
textarea { resize: vertical; line-height: 1.5; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
label.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
label.check input { accent-color: var(--green); width: 16px; height: 16px; }

/* ---------- kerangka ---------- */
.app { max-width: 1400px; margin: 0 auto; padding: 0 28px 40px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.brand h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.brand small { display: block; margin-top: 2px; color: var(--text-3); font-size: 13px; }
.logo svg { display: block; filter: drop-shadow(0 0 14px rgba(62, 224, 122, .35)); }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(13, 18, 24, .8); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.tabs a:hover { color: var(--text); background: var(--raise); }
.tabs a.active { color: var(--text); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(13, 18, 24, .8); color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.chip.on .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.chip.warn { border-color: rgba(255, 197, 61, .35); color: #ffd877; }
.chip.warn .dot { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.chip.off .dot { background: var(--red); }
.chip.run { border-color: rgba(56, 198, 255, .45); color: var(--blue); }
.chip.run .dot { background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.count { font: 600 12px var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 8px; }

/* langkah 1–4 */
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 18, 24, .7); color: var(--text-3); }
.steps li.current { border-color: rgba(56, 198, 255, .45); background: rgba(56, 198, 255, .07); color: var(--text); }
.steps li.done { color: var(--text-2); }
.step-dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); font: 700 13px var(--mono); }
.steps li.current .step-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 14px rgba(56, 198, 255, .45); }
.steps li.done .step-dot { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.step-text { display: flex; flex-direction: column; min-width: 0; }
.step-text strong { font-size: 14px; font-weight: 600; }
.step-text small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 28px; align-items: start; }
.panel { background: linear-gradient(180deg, rgba(18, 25, 34, .92), rgba(13, 18, 24, .92)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .8); }
.panel h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.panel h3 svg { color: var(--green); }
.panel + .panel { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.spacer { flex: 1; }
.hint { color: var(--text-3); font-size: 13px; margin: 10px 0 0; }
.muted { color: var(--text-3); }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255, 197, 61, .3); background: rgba(255, 197, 61, .06); color: #f1dfae; font-size: 13.5px; margin-top: 12px; }
.callout svg { color: var(--yellow); margin-top: 2px; }
.callout.info { border-color: rgba(56, 198, 255, .3); background: rgba(56, 198, 255, .06); color: #bfe9ff; }
.callout.info svg { color: var(--blue); }

/* ---------- impor naskah ---------- */
.drop {
  display: grid; place-items: center; gap: 8px; text-align: center; padding: 26px 16px; border-radius: 12px;
  border: 1.5px dashed var(--line-2); background: rgba(7, 9, 13, .55); color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: rgba(62, 224, 122, .6); background: rgba(62, 224, 122, .05); }
.drop strong { color: var(--text); font-size: 16px; }
.drop svg { color: var(--green); }
.drop .file { font: 13px var(--mono); color: var(--green); }

/* ---------- galeri proyek ---------- */
.start { margin-top: 26px; }
.start-head { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.start-head h2 { font-size: 20px; }
.start-head p { margin: 4px 0 0; color: var(--text-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 16px;
  background: var(--panel); text-align: left; border: 1px solid var(--line-2); cursor: pointer; color: var(--text); text-decoration: none;
}
.card:hover { border-color: rgba(62, 224, 122, .55); box-shadow: 0 10px 40px -12px rgba(62, 224, 122, .35); }
.card.sel { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 10px 40px -12px rgba(56, 198, 255, .4); }
.card-thumb { position: relative; aspect-ratio: 9 / 16; background: #06080b; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb .empty { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 16px; font: 12px/1.55 var(--mono); color: var(--text-3);
  background: radial-gradient(circle at 50% 35%, rgba(62, 224, 122, .08), transparent 60%), #06080b; }
.card-thumb .empty b { color: var(--green); font-size: 13px; }
.badge { position: absolute; left: 10px; top: 12px; padding: 2px 8px; border-radius: 999px; font: 600 11px var(--sans); color: var(--text); background: rgba(7, 9, 13, .85); border: 1px solid var(--line-2); }
.badge.ok { color: var(--green); border-color: rgba(62, 224, 122, .45); }
.play { position: absolute; inset: auto 12px 12px auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: var(--green-ink); box-shadow: 0 0 22px rgba(62, 224, 122, .6); opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s; }
.card:hover .play { opacity: 1; transform: scale(1); }
.card-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.card-info strong { font-size: 14.5px; line-height: 1.3; }
.card-meta { color: var(--text-3); font: 12px var(--mono); }
.topics { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.topic-chip { font-size: 11px; padding: 0 7px; border-radius: 999px; border: 1px solid rgba(56, 198, 255, .3); color: #9fdcff; background: rgba(56, 198, 255, .06); }

/* ---------- detail proyek ---------- */
.proj-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.proj-head h2 { font-size: 22px; font-weight: 700; }
.proj-head .meta { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.back { margin-bottom: 14px; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; flex-wrap: wrap; }
.subtabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--text-3); padding: 9px 12px; }
.subtabs button:hover:not(:disabled) { background: none; color: var(--text); }
.subtabs button.active { color: var(--text); border-bottom-color: var(--green); }

/* storyboard per shot */
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; color: var(--text-3); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.shot { display: flex; gap: 14px; align-items: stretch; }
.shot-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #06080b; border: 2px solid var(--line-2); align-self: flex-start; }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-num { position: absolute; left: 5px; top: 5px; padding: 0 5px; border-radius: 5px; background: rgba(7, 9, 13, .85); border: 1px solid var(--line-2); font: 700 11px var(--mono); }
.shot-body { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.shot-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.shot-head strong { font: 700 13px var(--mono); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; border-radius: 999px; padding: 1px 8px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--text-3); }
.t-spesifik, .t-sendiri { --c: var(--yellow); }
.t-lanjutan { --c: var(--tan); }
.t-diperluas, .t-umum, .t-ulang { --c: var(--orange); }
.t-kosong { --c: var(--red); }
.tag.lvl { border-color: color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.shot-thumb.lvl { border-color: var(--c); }
.said { margin: 8px 0 6px; padding: 8px 10px; border-radius: 9px; background: rgba(7, 9, 13, .6); border: 1px solid var(--line); font: 13.5px/1.55 var(--mono); color: var(--text); }
.said::before { content: "🔊 "; }
.src { font-size: 12.5px; color: var(--text-2); word-break: break-word; }
.src a { color: var(--blue); }
.kw { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.kw b { color: #9fdcff; font-weight: 500; }
.shot-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

/* pengaturan */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.side .form-grid { gap: 10px; }
.side .fl > span { white-space: nowrap; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.fl > small { color: var(--text-3); font-size: 12px; }
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(7, 9, 13, .75); min-height: 42px; }
.tagbox .t { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border-radius: 999px; font-size: 12.5px; background: rgba(56, 198, 255, .1); border: 1px solid rgba(56, 198, 255, .3); color: #cdeeff; max-width: 100%; }
.tagbox .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagbox .t button { border: 0; padding: 0 4px; background: none; color: var(--text-3); }
.tagbox .t button:hover { color: var(--red); background: none; }
.tagbox input { flex: 1; min-width: 140px; border: 0; background: transparent; padding: 3px 4px; }
.tagbox input:focus { box-shadow: none; }

/* naskah */
.scene-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel); }
.scene-card + .scene-card { margin-top: 10px; }
.scene-card h4 { margin: 0 0 6px; font-size: 13px; color: var(--green); font-family: var(--mono); }
.scene-card p { margin: 0; font: 14px/1.6 var(--mono); }
.scene-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }

/* kit unggah */
.kit-field { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.kit-field > span { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding-top: 7px; }
.kit-value { margin: 0; padding: 7px 10px; border-radius: 8px; background: rgba(7, 9, 13, .6); border: 1px solid var(--line); font: 13px/1.55 var(--sans); white-space: pre-wrap; max-height: 220px; overflow: auto; word-break: break-word; }
.kit-value.tags { color: var(--blue); font-family: var(--mono); }

/* ---------- kolom kanan ---------- */
.side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 0 6px 12px 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.phone { position: relative; width: min(calc(100% - 14px), calc((100vh - 170px) * 9 / 16)); margin: 7px auto 12px; background: #030406; border-radius: 38px; padding: 12px;
  box-shadow: 0 0 0 1px #262d36, 0 0 0 6px #0b0f14, 0 0 0 7px #1e252e, 0 30px 60px -30px rgba(62, 224, 122, .35); }
.phone-screen { border-radius: 28px; overflow: hidden; aspect-ratio: 9 / 16; background: #06080b; }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 999px; background: #000; z-index: 2; pointer-events: none; }
.phone-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--text-3); font: 13px var(--mono); text-align: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(62, 224, 122, .08), transparent 60%), #06080b; }
.vers { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.vers button.active { border-color: var(--green); color: var(--green); }

.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 10px; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 3px; transition: width .4s; }
.bar.err > div { background: var(--red); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; font-size: 10.5px; color: var(--text-3); text-align: center; }
.stages span.on { color: var(--blue); }
.stages span.ok { color: var(--green); }
.log { margin-top: 10px; max-height: 230px; overflow: auto; padding: 9px 10px; border-radius: 9px; background: #05070a; border: 1px solid var(--line); font: 11.5px/1.55 var(--mono); color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.log .w { color: var(--yellow); }
.log .s { color: var(--green); }
.log .e { color: var(--red); }

/* ---------- hasil render ---------- */
.res-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.res-head h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.res-head h2 svg { color: var(--green); }
.res-head p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; max-width: 640px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(13, 18, 24, .8); color: var(--text-3); font-size: 13px; }
.stat b { font: 700 17px var(--mono); color: var(--text); margin-right: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input { max-width: 320px; }
.res-item { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; }
.res-item + .res-item { margin-top: 16px; }
.res-video { aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.res-video video { width: 100%; height: 100%; display: block; }
.res-title { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.res-title h3 { font-size: 19px; margin-top: 6px; }
.res-title .meta { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.res-file { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 6px; font: 11.5px var(--mono); color: var(--text-3); }

/* ---------- modal, toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 5, 8, .72); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; box-shadow: 0 30px 80px -20px #000; }
.modal h3 { font-size: 17px; margin-bottom: 8px; }
.modal p { color: var(--text-2); margin: 0 0 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 60; }
.toast { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 14px 40px -10px #000; font-size: 14px; max-width: 380px; animation: masuk .2s ease-out; }
.toast.ok { border-color: rgba(62, 224, 122, .5); }
.toast.ok svg { color: var(--green); }
.toast.err { border-color: rgba(255, 77, 99, .5); }
.toast.err svg { color: var(--red); }
@keyframes masuk { from { transform: translateY(8px); opacity: 0; } }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: putar .8s linear infinite; display: inline-block; }
@keyframes putar { to { transform: rotate(360deg); } }
.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--text-3); font-size: 12.5px; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: 14px; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .phone { width: min(320px, 100%); }
}
@media (max-width: 760px) {
  .app { padding: 0 16px 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .res-item { grid-template-columns: 1fr; }
  .res-video { max-width: 300px; }
  .kit-field { grid-template-columns: 1fr; }
  .tabs { order: 3; width: 100%; }
}
