/* ShowRunner customer dashboard.
   Shares theme.css tokens with the stage runtime (--ink, --paper, --gold,
   --line, --r, --grad-gold, .glass, .pill, .chip, .tbtn-style buttons) so the
   editing experience and the performance feel like one product. This file
   only adds the dashboard chrome: nav, cards, forms, modals, responsive
   table->card degradation. No web fonts, no external assets. */

html, body { overflow: auto; }
body.db-body {
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(228,193,105,.07), transparent 60%),
    var(--ink);
}

.db-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------- nav */
.db-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  padding: 14px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(11,12,10,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.db-brand {
  display: flex; align-items: baseline; gap: .5em;
  font-weight: 800; letter-spacing: -.02em; font-size: 17px;
  text-decoration: none; color: var(--paper);
}
.db-brand .mark { color: var(--gold); }
.db-navlinks { display: flex; gap: 4px; }
.db-navlinks a {
  padding: .55em 1em; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--paper-dim); text-decoration: none; transition: all .15s ease;
  white-space: nowrap;
}
.db-navlinks a:hover { color: var(--paper); background: rgba(255,255,255,.06); }
.db-navlinks a.active { color: #241C06; background: var(--grad-gold); }
.db-nav-spacer { flex: 1; }
.db-user {
  display: flex; align-items: center; gap: 10px; position: relative;
}
.db-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: 13px; color: var(--paper-dim); cursor: pointer;
}
.db-user-btn:hover { border-color: var(--line-2); color: var(--paper); }
.db-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-gold); color: #241C06; font-weight: 800; font-size: 12px;
}
.db-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  padding: 8px; border-radius: var(--r); z-index: 50;
  background: #14160F; border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  display: none;
}
.db-menu.open { display: block; }
.db-menu .org-name { padding: 8px 10px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-faint); }
.db-menu button, .db-menu a {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--paper); background: none; text-decoration: none;
}
.db-menu button:hover, .db-menu a:hover { background: rgba(255,255,255,.06); }
.db-hamburger { display: none; }

.db-main {
  flex: 1; width: 100%; max-width: 1280px; margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 80px;
}

.db-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.4vw, 30px);
}
.db-h1 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.db-sub { color: var(--paper-dim); font-size: 14px; margin-top: 6px; max-width: 62ch; }
.db-eyebrow {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin-bottom: 6px;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .68em 1.15em; border-radius: 11px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.05); color: var(--paper); font-size: 13.5px; font-weight: 650;
  cursor: pointer; transition: all .15s ease; white-space: nowrap; line-height: 1.1;
}
.btn:hover { background: rgba(255,255,255,.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--grad-gold); color: #241C06; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { border-color: rgba(196,97,75,.5); color: #E9A392; background: rgba(196,97,75,.08); }
.btn.danger:hover { background: rgba(196,97,75,.18); }
.btn.ghost { background: none; border-color: transparent; color: var(--paper-dim); }
.btn.ghost:hover { color: var(--paper); background: rgba(255,255,255,.06); }
.btn.sm { padding: .5em .85em; font-size: 12.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn .spin { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .7em; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent;
}
.badge.premium { color: var(--gold-hi); border-color: rgba(228,193,105,.5); background: rgba(228,193,105,.12); }
.badge.free { color: var(--paper-faint); border-color: var(--line-2); }
.badge.live { color: var(--green-hi); border-color: rgba(143,168,106,.5); background: rgba(143,168,106,.12); }
.badge.draft { color: var(--paper-faint); border-color: var(--line-2); }

/* ----------------------------------------------------------------- cards */
.card-grid {
  display: grid; gap: clamp(14px, 1.6vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  border-radius: var(--r-lg); padding: clamp(16px, 1.6vw, 22px);
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-2); }

.deck-card { display: flex; flex-direction: column; gap: 10px; min-height: 168px; }
.deck-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.deck-card h3 {
  font-size: 17px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deck-card .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--paper-faint); }
.deck-card .meta b { color: var(--paper-dim); font-weight: 600; }
.deck-card-spacer { flex: 1; }
.deck-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); display: grid; place-items: center; color: var(--paper-dim);
  flex: 0 0 auto;
}
.icon-btn:hover { color: var(--paper); border-color: var(--line-2); background: rgba(255,255,255,.09); }

.new-deck-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 168px; border-radius: var(--r-lg);
  border: 1.5px dashed var(--line-2); color: var(--paper-dim); font-weight: 650; font-size: 14px;
  background: rgba(255,255,255,.02); cursor: pointer; transition: all .15s ease;
}
.new-deck-card:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(228,193,105,.06); }
.new-deck-card .glyph { font-size: 26px; color: var(--gold); }

/* -------------------------------------------------------------- banners */
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--r); border: 1px solid var(--line-2); margin-bottom: 18px; font-size: 13.5px;
}
.banner .banner-title { font-weight: 700; margin-bottom: 2px; }
.banner .banner-body { color: var(--paper-dim); line-height: 1.45; }
.banner.info { background: rgba(110,143,184,.1); border-color: rgba(110,143,184,.4); }
.banner.info .banner-title { color: #A9C3E4; }
.banner.upgrade { background: rgba(228,193,105,.1); border-color: rgba(228,193,105,.45); }
.banner.upgrade .banner-title { color: var(--gold-hi); }
.banner.error { background: rgba(196,97,75,.1); border-color: rgba(196,97,75,.45); }
.banner.error .banner-title { color: #E9A392; }
.banner.ok { background: rgba(143,168,106,.1); border-color: rgba(143,168,106,.45); }
.banner.ok .banner-title { color: var(--green-hi); }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-label {
  font-size: 12.5px; font-weight: 650; color: var(--paper-dim);
  display: flex; align-items: center; gap: 8px;
}
.field-help { font-size: 12px; color: var(--paper-faint); margin-top: -2px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], textarea, select {
  width: 100%; padding: .72em .85em; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.045); color: var(--paper);
  font: inherit; font-size: 14px; transition: border-color .15s ease, background .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--paper-faint); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold); background: rgba(228,193,105,.06);
}
textarea { resize: vertical; min-height: 5.4em; line-height: 1.5; }
select { appearance: none; background-image: none; cursor: pointer; }
input[type="color"] {
  width: 48px; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.045); cursor: pointer;
}
.hex-row { display: flex; gap: 10px; align-items: center; }
.hex-row input[type="text"] { max-width: 140px; font-variant-numeric: tabular-nums; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid var(--line-2); position: relative; transition: background .18s ease; flex: 0 0 auto;
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper-dim); transition: transform .18s ease;
}
.switch input:checked + .track { background: var(--grad-gold); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(16px); background: #241C06; }
.switch .switch-label { font-size: 13.5px; color: var(--paper-dim); }

.auth-check { color: var(--danger); font-size: 13px; }

/* ------------------------------------------------------- list-of-objects */
.rep-list { display: grid; gap: 10px; }
.rep-item {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  background: rgba(255,255,255,.025);
}
.rep-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rep-item-tag {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-faint);
  padding: .3em .6em; border: 1px solid var(--line); border-radius: 999px;
}
.rep-item-tools { margin-left: auto; display: flex; gap: 4px; }
.rep-add { justify-self: start; }
.string-list { display: grid; gap: 8px; }
.string-row { display: flex; gap: 8px; align-items: center; }
.string-row input { flex: 1; }
.nested-block {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}

/* -------------------------------------------------------------- asset UI */
.asset-slot {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.asset-thumb {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex: 0 0 auto;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 10px, rgba(255,255,255,.018) 10px 20px);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.asset-thumb img, .asset-thumb video { width: 100%; height: 100%; object-fit: cover; }
.asset-thumb .glyph { font-size: 20px; color: var(--paper-faint); }
.asset-slot-body { flex: 1; min-width: 0; }
.asset-slot-name { font-size: 13px; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-slot-empty { font-size: 13px; color: var(--paper-faint); font-style: italic; }
.asset-slot-actions { display: flex; gap: 6px; flex: 0 0 auto; }

.asset-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.asset-tile { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.asset-tile-media { aspect-ratio: 4/3; background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 12px, rgba(255,255,255,.018) 12px 24px); display: grid; place-items: center; position: relative; }
.asset-tile-media img, .asset-tile-media video { width: 100%; height: 100%; object-fit: cover; }
.asset-tile-kind { position: absolute; top: 6px; left: 6px; font-size: 10px; padding: .2em .55em; border-radius: 999px; background: rgba(11,12,10,.7); color: var(--paper-dim); letter-spacing: .06em; text-transform: uppercase; }
.asset-tile-body { padding: 9px 10px; display: flex; align-items: center; gap: 8px; }
.asset-tile-name { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-tile-size { font-size: 11px; color: var(--paper-faint); flex: 0 0 auto; }

.quota-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid var(--line); }
.quota-bar i { display: block; height: 100%; background: var(--grad-gold); transition: width .3s ease; }
.quota-bar.warn i { background: linear-gradient(90deg, #C4614B, #E4C169); }
.quota-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--paper-dim); margin-bottom: 8px; }

.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 26px;
  text-align: center; color: var(--paper-dim); font-size: 13.5px; cursor: pointer;
  transition: all .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: rgba(228,193,105,.06); color: var(--gold-hi); }
.upload-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-top: 8px; }
.upload-row .bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.upload-row .bar i { display: block; height: 100%; background: var(--grad-gold); width: 0%; transition: width .15s ease; }

/* ------------------------------------------------------------------ modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,7,5,.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto;
  border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px);
  background: #14160F; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: translateY(10px); transition: transform .18s ease;
}
.modal-backdrop.open .modal { transform: none; }
.modal.wide { max-width: 780px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-title { font-size: 18px; font-weight: 750; }
.modal-close { color: var(--paper-faint); font-size: 20px; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--paper); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* --------------------------------------------------------- template grid */
.tpl-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tpl-card {
  text-align: left; border-radius: var(--r); padding: 15px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); cursor: pointer; transition: all .15s ease; display: grid; gap: 8px;
}
.tpl-card:hover { border-color: var(--line-2); background: rgba(255,255,255,.06); }
.tpl-card.locked { border-color: rgba(228,193,105,.3); }
.tpl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-card h4 { font-size: 15px; font-weight: 700; }
.tpl-card p { font-size: 12.5px; color: var(--paper-dim); line-height: 1.4; }
.tpl-lock-note {
  font-size: 12px; color: var(--gold-hi); background: rgba(228,193,105,.1);
  border: 1px solid rgba(228,193,105,.3); border-radius: 8px; padding: 8px 10px; line-height: 1.4;
}

/* ---------------------------------------------------------------- toast */
.db-toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.db-toast {
  padding: 11px 18px; border-radius: 999px; background: #14160F; border: 1px solid var(--line-2);
  font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.4); opacity: 0; transform: translateY(8px);
  transition: all .2s ease;
}
.db-toast.show { opacity: 1; transform: none; }
.db-toast.error { border-color: rgba(196,97,75,.6); color: #E9A392; }
.db-toast.ok { border-color: rgba(143,168,106,.6); color: var(--green-hi); }

/* ------------------------------------------------------------- utility */
.empty-state {
  text-align: center; padding: clamp(40px, 6vw, 70px) 20px; color: var(--paper-faint);
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty-state .glyph { font-size: 34px; margin-bottom: 12px; }
.empty-state h3 { color: var(--paper); font-size: 17px; margin-bottom: 6px; }
.skeleton {
  border-radius: var(--r); background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.center-col { max-width: 420px; margin: 0 auto; }
.text-c { text-align: center; }
.spacer-8 { height: 8px; } .spacer-16 { height: 16px; } .spacer-24 { height: 24px; }
.row-gap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--paper-faint); }
.small { font-size: 12.5px; }
a.link { color: var(--gold-hi); text-decoration: none; }
a.link:hover { text-decoration: underline; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ------------------------------------------------------------ auth pages */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { text-align: center; margin-bottom: 26px; font-size: 20px; font-weight: 800; }
.auth-brand .mark { color: var(--gold); }
.auth-panel { border-radius: var(--r-lg); padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--paper-faint); }

/* ------------------------------------------------------------- editor page */
.ed-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.ed-title-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }
.ed-title-input {
  font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.02em; background: none;
  border: 1px solid transparent; padding: .2em .3em; border-radius: 8px; color: var(--paper); width: 100%;
}
.ed-title-input:hover { border-color: var(--line); }
.ed-title-input:focus { border-color: var(--gold); background: rgba(228,193,105,.06); outline: none; }
.ed-save-status { font-size: 12px; color: var(--paper-faint); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ed-save-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper-faint); }
.ed-save-status.saving .dot { background: var(--gold); animation: blink 1s infinite; }
.ed-save-status.saved .dot { background: var(--green-hi); }
.ed-save-status.error .dot { background: var(--danger); }
@keyframes blink { 50% { opacity: .3; } }

.launch-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r); border: 1px solid rgba(228,193,105,.35);
  background: rgba(228,193,105,.07); margin-bottom: 22px;
}
.launch-bar .hint { font-size: 12.5px; color: var(--paper-dim); flex: 1; min-width: 200px; }

.ed-grid { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.ed-scenes { position: sticky; top: 84px; }
.scene-list { display: grid; gap: 6px; }
.scene-item {
  display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer;
}
.scene-item:hover { background: rgba(255,255,255,.06); }
.scene-item.active { border-color: rgba(228,193,105,.55); background: rgba(228,193,105,.12); }
.scene-item .num { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.08); flex: 0 0 auto; }
.scene-item.active .num { background: var(--gold); color: #241C06; }
.scene-item .info { flex: 1; min-width: 0; }
.scene-item .info .lbl { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-item .info .tpl { font-size: 11px; color: var(--paper-faint); }
.scene-item.disabled { opacity: .5; }
.scene-item-tools { display: flex; flex-direction: column; gap: 2px; }
.scene-item-tools button { width: 20px; height: 16px; font-size: 9px; color: var(--paper-faint); }
.scene-item-tools button:hover { color: var(--paper); }

.ed-panel { border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: clamp(16px, 2vw, 26px); }
.ed-section { margin-bottom: 26px; }
.ed-section:last-child { margin-bottom: 0; }
.ed-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ed-section-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ed-section-note { font-size: 12px; color: var(--paper-faint); }

.step-row-edit { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.step-row-edit .step-num { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: 0 0 auto; margin-top: 2px; }
.step-row-edit .step-body { flex: 1; min-width: 0; }
.step-row-edit .step-label { font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.step-row-edit textarea { min-height: 3em; font-size: 13px; }

@media (max-width: 980px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-scenes { position: static; }
  .scene-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
  .scene-item { flex: 0 0 auto; min-width: 180px; }
}

@media (max-width: 720px) {
  .db-navlinks { position: fixed; top: 62px; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: #0B0C0A; border-bottom: 1px solid var(--line); padding: 10px; display: none; }
  .db-navlinks.open { display: flex; }
  .db-navlinks a { width: 100%; }
  .db-hamburger { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); }
  .cheat-body, .ed-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .modal { max-width: 100%; }
}
