:root {
  --bg: #0b0d12;
  --panel: #141824;
  --panel-2: #1b2130;
  --line: #262d40;
  --text: #e8ecf4;
  --muted: #8b94ab;
  --accent: #e0b34c;
  --accent-2: #4c9be0;
  --danger: #e05c5c;
  --ok: #52c58b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(76, 155, 224, 0.12), transparent 60%),
    radial-gradient(900px 400px at 10% 0%, rgba(224, 179, 76, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; gap: 10px; align-items: center; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
#userBadge { color: var(--accent); font-size: 14px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.auth-tabs .active { color: var(--accent); border-color: var(--accent); }
#authDialog input { margin-bottom: 10px; }
.brand-mark { font-size: 22px; }
.brand-name { font-weight: 700; letter-spacing: 0.04em; }

main { flex: 1; width: min(960px, 94vw); margin: 0 auto; padding: 28px 0 60px; }

.hero { text-align: center; padding: 34px 0 26px; }
.hero h1 {
  font-size: clamp(30px, 5.5vw, 52px);
  line-height: 1.12;
  margin: 0 0 14px;
  background: linear-gradient(120deg, var(--text) 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub { color: var(--muted); max-width: 620px; margin: 0 auto 26px; }

.prompt-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.prompt-card textarea,
.prompt-card input,
#accessDialog input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  resize: vertical;
}
.prompt-actions { display: flex; gap: 10px; margin-top: 10px; }
.prompt-actions input { flex: 1; }

button {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 11px 18px;
}
button.primary {
  background: linear-gradient(120deg, var(--accent), #c8983a);
  border: none;
  color: #201703;
  font-weight: 700;
}
button.ghost { background: transparent; color: var(--muted); }
button.ghost:hover, button.small:hover { color: var(--text); border-color: var(--muted); }
button.small { padding: 6px 12px; font-size: 13px; }
button.approve { background: var(--ok); border: none; color: #04170d; font-weight: 700; }
button.revise { background: transparent; color: var(--accent); border-color: var(--accent); }
button:disabled { opacity: 0.5; cursor: wait; }

.list-head { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; }
.cards { display: grid; gap: 12px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--accent); }
.card .meta { color: var(--muted); font-size: 13px; }
.card-side { display: flex; gap: 8px; align-items: center; }

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.badge.review { color: var(--accent); border-color: var(--accent); }
.badge.busy { color: var(--accent-2); border-color: var(--accent-2); }
.badge.completed { color: var(--ok); border-color: var(--ok); }
.badge.error { color: var(--danger); border-color: var(--danger); }

.detail-head { margin: 18px 0; }
.stages {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
}
.stages li {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.stages li.done { color: var(--ok); border-color: var(--ok); }
.stages li.active { color: var(--accent); border-color: var(--accent); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.panel h3 { margin-top: 0; }
.panel .muted { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.scene-grid img, .candidate-set img { cursor: zoom-in; }

/* Click any generated image to inspect it at full size. */
#lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; cursor: zoom-out;
}
#lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, .8);
}
#lightbox figcaption {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center; color: #fff; font-size: 14px;
  text-shadow: 0 1px 4px #000;
}
#lightbox .close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255,255,255,.15); color: #fff; border: 0;
  border-radius: 999px; width: 40px; height: 40px; font-size: 22px; cursor: pointer;
}
.gallery figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }

.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.scene-grid video { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

.player-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.player-wrap video { width: min(340px, 88vw); border-radius: 14px; border: 1px solid var(--line); }

.review-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.review-actions textarea { flex: 1 1 100%; }

.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dialogue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.dialogue-row audio { height: 34px; }

.error { color: var(--danger); }
pre.script { white-space: pre-wrap; background: var(--panel-2); padding: 12px; border-radius: 10px; font-size: 13.5px; }

dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 380px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog-body h3 { margin-top: 0; }
.dialog-body p { color: var(--muted); font-size: 13.5px; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.admin-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-row input[type="number"] { width: 90px; }
.admin-row input, .admin-row select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 9px 12px; font: inherit;
}
.admin-item {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.invite-url { font-size: 12.5px; color: var(--accent-2); word-break: break-all; }
.table-wrap { overflow-x: auto; }
#userTable { width: 100%; border-collapse: collapse; font-size: 14px; }
#userTable th, #userTable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
#userTable th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
#userTable select, #userTable input {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px;
}
tr.suspended { opacity: 0.55; }
.chip {
  display: inline-flex; gap: 6px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 8px; font-size: 12px; margin: 2px;
}
.chip-x { background: none; border: none; color: var(--danger); cursor: pointer; padding: 0 2px; }

.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.episode-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 14px;
}
.episode-card p { margin: 6px 0; }
.episode-card .badge { float: right; }
#seriesBody details { margin: 10px 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
#seriesBody summary { cursor: pointer; }
.admin-item select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13.5px;
}

.storyboard-cell {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; font-size: 13.5px;
}
.storyboard-cell img { width: 100%; border-radius: 8px; }
.storyboard-cell p { margin: 6px 0; }

.director-questions {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 10px; font-size: 13.5px; color: var(--muted);
}
.director-questions label { display: flex; gap: 8px; align-items: center; }
.director-questions select {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13px;
}

#usageTable { width: 100%; border-collapse: collapse; font-size: 14px; }
#usageTable th, #usageTable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
#usageTable th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
#usageTable a { margin-right: 6px; text-decoration: none; }

/* ---------------- multi-page navigation ---------------- */

.mainnav {
  display: flex;
  gap: 6px;
  width: min(960px, 94vw);
  margin: 0 auto;
  padding: 10px 0 0;
}
.mainnav a {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 9px 16px;
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.mainnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.mainnav a.active {
  color: var(--accent);
  background: var(--panel);
  border-color: var(--line);
}
.mainnav + main { border-top: 1px solid var(--line); padding-top: 22px; }

.navbadge {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1;
  padding: 3px 7px;
  font-weight: 700;
}

.create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 22px;
}
@media (max-width: 760px) { .create-grid { grid-template-columns: 1fr; } }
.create-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.create-card h3 { margin: 0 0 4px; }
.create-card > .muted { margin: 0 0 12px; font-size: 13.5px; }
.create-card .prompt-card { border: none; padding: 0; background: transparent; max-width: none; }

.list-tools { display: flex; gap: 8px; align-items: center; }
.list-tools a { text-decoration: none; }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip-filter {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chip-filter:hover { color: var(--text); }
.chip-filter.active { color: var(--accent); border-color: var(--accent); }

#attentionWrap { margin: 26px 0 4px; }

.stages li.clickable { cursor: pointer; }
.stages li.clickable:hover { background: rgba(255, 255, 255, 0.05); }
.stages li.viewing { outline: 2px solid var(--accent-2); }

#directorDialog { width: min(560px, 92vw); }
#directorDialog textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  resize: vertical;
  margin: 10px 0 4px;
}
#directorContext { font-size: 13.5px; }

/* ---- dialog forms: one column, every control full width ----
   A <select> is as wide as its longest option and a flex row lets it
   push past the dialog edge; stacked labels with 100 %-wide controls
   stay inside the box at any zoom or phone width. Author rules outrank
   the UA's [hidden]{display:none}, hence the !important. */
dialog { max-width: min(480px, calc(100vw - 32px)); width: 100%; padding: 22px; }
.dialog-body [hidden] { display: none !important; }
.dialog-body label.muted {
  display: flex; flex-direction: column; gap: 6px;
  margin: 10px 0 0; font-size: 13.5px; color: var(--muted);
}
.dialog-body label.muted:has(> input[type="checkbox"]) {
  flex-direction: row; align-items: flex-start; gap: 10px; line-height: 1.45;
}
.dialog-body label.muted > input[type="checkbox"] { flex: none; margin: 3px 0 0; }
.dialog-body select,
.dialog-body input[type="text"],
.dialog-body input[type="file"] {
  width: 100%; max-width: 100%; min-width: 0;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 13.5px;
}
.dialog-body select { text-overflow: ellipsis; }
.dialog-body small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.dialog-body .prompt-actions { margin-top: 16px; justify-content: flex-end; flex-wrap: wrap; }
#directorEngineWrap { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; font-size: 13.5px; }
#directorEngineWrap[hidden] { display: none !important; }

/* ---- never a horizontal scroll: long words wrap, media shrink, grid
   cells may shrink below their content. */
html { overflow-x: hidden; }
img, video { max-width: 100%; }
.gallery figure, .scene-grid > *, .episode-list > *, .cards > * { min-width: 0; }
.gallery figure button { max-width: 100%; white-space: normal; }
h1, h2, h3, p, figcaption { overflow-wrap: anywhere; }
#directorEngine {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13px;
}

.candidates-wrap { margin: 12px 0; }
.candidate-set { border: 1px solid var(--accent-2); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.candidate-set p { margin: 0 0 8px; }
.candidate-set figure button { width: 100%; margin-top: 6px; }
.approve.small { font-size: 13px; padding: 6px 10px; }

.linklike {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--accent-2); text-decoration: underline; cursor: pointer;
}

.cost-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cost-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cost-table td:last-child { text-align: right; white-space: nowrap; }
.cost-table .cost-total td { border-bottom: none; border-top: 1px solid var(--accent); color: var(--accent); }

/* Per-scene reference coverage checklist */
.table-wrap { overflow-x: auto; }
.cov-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cov-table th, .cov-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cov-ok { color: #6fdc9a; }
.cov-bad { color: #ff7b7b; }
.cov-chip { display: inline-block; margin: 2px 6px 2px 0; white-space: nowrap; }
.cov-issues { margin: 0; padding-left: 18px; color: #ffb4b4; font-size: 13px; }

/* Turnaround plates sit beside their front plate, visually secondary */
.gallery figure.angle img { opacity: .92; }
.gallery figure.angle figcaption { font-size: 12px; }
.gallery figure.angle.stale img { outline: 2px dashed #ff7b7b; outline-offset: -2px; }
.stale-note { color: #ffb4b4; font-size: 12px; margin: 4px 0; text-align: center; }
.cov-fix { border: 1px solid #ff7b7b55; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.cov-fix p { margin: 0 0 8px; }

/* Director's revision plan */
.revision-plan { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; width: 100%; }
.plan-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.plan-item .plan-name { font-weight: 600; }
.plan-item textarea { grid-column: 2; width: 100%; font: inherit; }

/* Asisten Sutradara — live-chat widget */
/* The panel/fab rules set display:flex/inline-flex, which would beat the
   UA's [hidden]{display:none}; restate it so hidden really hides them. */
.assistant-fab[hidden], .assistant-panel[hidden] { display: none !important; }
.assistant-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 600; background: #4f7cff; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.45); cursor: pointer; }
.assistant-panel { position: fixed; right: 18px; bottom: 18px; z-index: 950; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--panel, #151a26); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.6); overflow: hidden; }
.assistant-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.assistant-ctx { font-size: 12px; }
.assistant-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.asst-msg { max-width: 92%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.asst-msg p { margin: 0 0 6px; } .asst-msg p:last-child { margin-bottom: 0; }
.asst-msg ul { margin: 4px 0; padding-left: 18px; }
.asst-user { align-self: flex-end; background: #2b3a5e; }
.asst-bot { align-self: flex-start; background: rgba(255,255,255,.06); }
.asst-typing { opacity: .7; font-style: italic; }
.asst-img { max-width: 160px; border-radius: 8px; display: block; margin-top: 6px; cursor: zoom-in; }
.sg-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 8px; background: rgba(0,0,0,.2); }
.sg-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.sg-kind { font-weight: 600; }
.sg-text { white-space: pre-wrap; font: inherit; font-size: 13px; margin: 0 0 6px; }
.sg-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.assistant-attachments { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px; }
.asst-att { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: rgba(255,255,255,.06); border-radius: 8px; padding: 4px 8px; }
.asst-att img { height: 36px; border-radius: 4px; }
.asst-att button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.assistant-composer { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.assistant-composer textarea { width: 100%; font: inherit; resize: vertical; }
.assistant-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.assistant-tools label { cursor: pointer; }
.asst-usage { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Provider credit status */
.status-ok { color: #6fdc9a; } .status-low { color: #ffb347; } .status-empty { color: #ff7b7b; } .status-unknown { color: var(--muted); }
.credit-alerts { margin: 8px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.credit-alert { border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.credit-alert a { margin-left: 8px; }
.credit-empty { background: rgba(255, 123, 123, .12); border: 1px solid rgba(255, 123, 123, .5); }
.credit-low { background: rgba(255, 179, 71, .12); border: 1px solid rgba(255, 179, 71, .5); }
.ghost.danger { color: #ff9b9b; border-color: rgba(255, 123, 123, .4); }
.cov-missing { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; }

.sg-cost { font-size: 11px; margin-top: 4px; }
.asst-done { border-left: 3px solid var(--ok, #3fb950); }

.badge.warn { color: #ffd27a; border-color: #ffd27a; }
.prompt-details { margin: 4px 0 8px; }
.prompt-details summary { cursor: pointer; font-size: 12px; }
.prompt-details pre { white-space: pre-wrap; font-size: 11px; }
.sg-engine { display: block; font-size: 12px; margin: 4px 0; }
.sg-engine select { font-size: 12px; margin-left: 4px; }

.panel-block { margin: 10px 0 14px; }
.cov-fix ul { margin: 0 0 8px; padding-left: 18px; }
.cov-fix li { font-size: 12px; }

/* Take tools: magic edit + versions of one rendered take */
.take-tools { margin-top: 6px; }
.take-tools details { margin-top: 6px; }
.take-version video { width: 100%; border-radius: 8px; }
[data-video-resolution] { margin-left: 4px; }

/* Paste-ready Dreamina / Kling prompts */
.manual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 8px 0; }
.manual-tool textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: 12px; }
.manual-tool h5 { margin: 4px 0; }
.manual-shot { margin: 6px 0; }

/* Pack viewer: the pack's folders before the download */
.pack-view { margin-top: 10px; }
.pack-folder { margin: 6px 0; padding: 6px 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; }
.pack-entry { padding: 6px 0; border-top: 1px dashed rgba(255,255,255,0.08); }
.pack-entry-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pack-entry-body { margin-top: 4px; }
.pack-thumb { max-height: 160px; border-radius: 8px; }
.pack-video { max-height: 220px; border-radius: 8px; }
.pack-doc textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: 12px; margin-top: 6px; }
.pack-add textarea { width: 100%; box-sizing: border-box; }
