:root {
  /* YAMAS dark: blue #0D5EAF on deep blue-black (from the YAMAS EPK) */
  --bg: #0a0b10;
  --card: #12141c;
  --elev: #1a1d29;
  --ink: #eef3fa;
  --ink-2: #b3bdcc;
  --muted: #7f8aa0;
  --line: #232838;
  --soft: #1b1f2c;
  --blue: #0d5eaf;
  --blue-2: #1a7be0;
  --blue-glow: #4a9ff5;
  --blue-soft: rgba(26, 123, 224, 0.16);
  --good: #3fcf86;
  --good-soft: rgba(63, 207, 134, 0.14);
  --danger: #ff6b55;
  --danger-soft: rgba(255, 107, 85, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.035), 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
::selection { background: rgba(26, 123, 224, 0.45); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: 0.45; cursor: default; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.015em; }
h1 { font-size: 30px; font-weight: 750; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
h4 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; margin: 0 4px 8px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.pad { padding: 32px 0; }
.icon { flex-shrink: 0; display: block; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pre-wrap { white-space: pre-wrap; }
.text-danger { color: var(--danger); }
.row-gap { display: flex; gap: 10px; align-items: center; }
.row-gap.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }

/* ---------- inputs ---------- */
input:not([type='checkbox']), textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--soft); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 13px; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
textarea { resize: vertical; line-height: 1.4; }
input:focus, textarea:focus, select:focus { border-color: var(--blue-2); background: var(--elev); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237f8aa0' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.select-sm { width: auto; padding: 7px 30px 7px 11px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.counter { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.field-hint { color: var(--muted); font-size: 12.5px; }

.switch { appearance: none; width: 48px; height: 29px; border-radius: 99px; background: #2a3042; position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.2s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch:checked { background: var(--blue-2); }
.switch:checked::after { transform: translateX(19px); }
.switch:disabled { opacity: 0.5; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; cursor: pointer; }
.toggle-row.is-disabled { opacity: 0.5; }
.toggle-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-text small { color: var(--muted); font-size: 12.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin: -4px -2px 12px; padding: 2px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border-radius: 99px; background: var(--soft); font-size: 14px; font-weight: 550; white-space: nowrap; border: 1.5px solid transparent; }
.chip.is-on { background: var(--blue); color: #fff; }
.chip-idea { background: var(--card); border-color: var(--line); font-weight: 500; font-size: 13.5px; }
.chip-removable { padding-right: 6px; }
.chip-removable button { color: inherit; opacity: 0.7; padding: 2px; display: grid; }
.chip-add { display: inline-flex; align-items: center; gap: 2px; }
.chip-add input { width: 108px; padding: 6px 10px; border-radius: 99px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 18px; border-radius: 99px; font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform 0.1s, background 0.15s; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 22px rgba(13, 94, 175, 0.35); }
.btn-primary:hover:not(:disabled) { background: var(--blue-2); }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-danger-ghost { color: var(--danger); background: transparent; padding-left: 0; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-2); flex-shrink: 0; }
.icon-btn:hover { background: var(--soft); }
.link-btn { text-decoration: underline; font-weight: 600; }

/* ---------- layout ---------- */
.app { min-height: 100vh; }
.main { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px); }
.page { max-width: 640px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--safe-top) + 20px) 20px 14px; }
.content { padding: 0 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-title { margin-bottom: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.list-title { margin: 4px 4px 10px; }
.notice { background: var(--blue-soft); color: #a9cffb; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; }
.notice-danger { background: var(--danger-soft); color: var(--danger); margin: 0 0 12px; }
.hide-desktop { }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(6px + var(--safe-bottom));
  background: rgba(10, 11, 16, 0.86); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px; color: var(--muted); font-size: 11.5px; font-weight: 600; border-radius: 14px; min-width: 64px; }
.tab.is-active { color: var(--ink); }
.tab.is-active .icon { color: var(--blue-glow); }
.tab.is-active .icon { stroke-width: 2.3; }
.tab-dot { position: absolute; top: 5px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.brand, .test-flag { display: none; }
.test-banner { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 650; padding: calc(var(--safe-top) + 6px) 12px 6px; }
.test-banner + .page .page-head { padding-top: 16px; }

/* ---------- toasts, spinner ---------- */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--safe-top) + 12px); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--elev); color: var(--ink); border: 1px solid var(--line); padding: 11px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 550; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); max-width: 460px; animation: toast-in 0.2s ease-out; }
.toast-error { background: #4a1d17; border-color: #7a2c22; color: #ffd9d2; }
.toast-ok::before { content: '✓  '; color: var(--blue-glow); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--blue-glow); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 18px; max-width: 420px; margin: 0 auto; gap: 24px; }
.login-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.login-logo { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); }

/* ---------- pool ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow); min-width: 0; }
.stat small { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat strong { font-family: var(--font-display); font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat-main { grid-column: 1 / -1; background: linear-gradient(135deg, #0d5eaf 0%, #083a6e 100%); color: #fff; box-shadow: 0 10px 34px rgba(13, 94, 175, 0.3); }
.stat-main small, .stat-main .muted { color: rgba(255, 255, 255, 0.6); }
.stat-main strong { color: #fff; font-size: 20px; }

.upload-zone { border: 2px dashed #2c3346; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: background 0.15s, border-color 0.15s; }
.upload-zone .btn-lg { width: 100%; }
.upload-zone.is-drag { background: var(--blue-soft); border-color: var(--blue-2); }
.upload-list { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.upload-item { background: var(--card); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.upload-name { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.upload-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-name small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.upload-error { display: flex; align-items: center; justify-content: space-between; color: var(--danger); font-size: 13.5px; }
.progress { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.progress div { height: 100%; background: var(--blue-2); border-radius: 99px; transition: width 0.2s; }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.video-card { display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-align: left; }
.video-card.is-paused .video-thumb img { filter: grayscale(0.8) opacity(0.6); }
.video-thumb { position: relative; aspect-ratio: 9 / 16; background: #222; overflow: hidden; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb img.thumb-overlay { object-fit: contain; }
.thumb-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 12px; font-weight: 650; padding: 2px 7px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.thumb-paused { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; background: var(--elev); color: var(--ink); font-size: 12px; font-weight: 650; padding: 3px 9px 3px 6px; border-radius: 99px; }
.video-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.video-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }

.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge-lime { background: var(--blue-soft); color: var(--blue-glow); }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

.empty { text-align: center; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-2); }
.empty-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 14px; max-width: 320px; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.62); display: flex; align-items: flex-end; animation: fade 0.18s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--bg); border: 1px solid var(--line); border-bottom: 0; width: 100%; max-height: calc(100vh - var(--safe-top) - 24px); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; animation: sheet-up 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.5; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 8px 20px; }
.sheet-body { overflow-y: auto; padding: 4px 18px 22px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn-primary { flex: 1; max-width: 240px; }

/* ---------- editor ---------- */
.editor { display: flex; flex-direction: column; gap: 18px; }
.editor-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-frame { position: relative; width: min(62vw, 280px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); }
.phone-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.phone-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.editor-form { min-width: 0; }
.form-section { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.form-section h3 { margin-bottom: 8px; }
.form-section > p.muted { margin-bottom: 10px; }
.form-section .field:last-child { margin-bottom: 0; }
.text-list { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.text-list-item { display: flex; gap: 6px; width: 100%; align-items: flex-start; }

/* ---------- plan ---------- */
.list-card { padding: 4px 0; overflow: hidden; }
.day-group { margin-bottom: 14px; }
.post-row, .lead-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; width: 100%; text-align: left; color: var(--ink); }
.post-row + .post-row, .lead-row + .lead-row { border-top: 1px solid var(--line); }
.post-row > .icon:last-child { color: var(--muted); }
.post-thumb { width: 44px; height: 70px; border-radius: 9px; overflow: hidden; background: var(--soft); flex-shrink: 0; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-info, .lead-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.post-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.post-leads { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.post-sheet-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.post-sheet-head img { width: 54px; height: 86px; object-fit: cover; border-radius: 10px; }
.post-sheet-head div { display: flex; flex-direction: column; gap: 2px; }

/* ---------- bot ---------- */
.campaign-title { display: flex; align-items: center; gap: 6px; }
.campaign-card .chips { margin-bottom: 12px; }
.campaign-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.campaign-stats div { background: var(--soft); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.campaign-stats strong { font-size: 20px; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.campaign-stats small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.card-test { border: 1.5px solid var(--blue); }
.card-test h3 { margin-bottom: 6px; }
.card-test > p { margin-bottom: 12px; }
.lead-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 750; flex-shrink: 0; }

.dm-preview { width: 100%; max-width: 340px; background: #000; border-radius: 22px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.dm-comment { display: flex; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dm-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #f8d06b, #e0457b); flex-shrink: 0; }
.dm-reply { color: var(--ink-2); margin-top: 6px; font-size: 13px; }
.dm-thread { display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-start; max-width: 90%; background: #262626; border-radius: 18px; padding: 10px 12px; white-space: pre-wrap; }
.bubble-btn { margin-top: 8px; background: #363636; border-radius: 10px; padding: 8px; text-align: center; font-weight: 650; color: #fff; }
.dm-tap { align-self: flex-end; font-size: 12px; color: var(--muted); font-style: italic; }

/* ---------- account ---------- */
.connect-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.connect-card .btn { margin-top: 6px; }
.connect-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.account-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.account-head div { display: flex; flex-direction: column; }
.account-pic { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.facts { list-style: none; padding: 0; margin: 0 0 12px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts li span { color: var(--muted); }
.facts li strong { font-weight: 600; text-align: right; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 12px; }
.step > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.step.is-done .step-n { background: var(--blue); color: #fff; }
.copy { display: flex; align-items: center; gap: 4px; background: var(--soft); border-radius: 10px; padding: 4px 4px 4px 10px; min-width: 0; }
.copy code { flex: 1; font-size: 12.5px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.events { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.ev-kind { font-size: 11px; font-weight: 700; background: var(--soft); border-radius: 6px; padding: 2px 6px; align-self: start; }
.ev-fehler .ev-kind { background: var(--danger-soft); color: var(--danger); }
.ev-bot .ev-kind { background: var(--blue-soft); color: var(--blue-glow); }
.ev-post .ev-kind { background: var(--good-soft); color: var(--good); }
.ev-text { word-break: break-word; }
.ev time { grid-column: 2; color: var(--muted); font-size: 12px; }

/* ---------- wide screens (Mac app, desktop browser) ---------- */
@media (min-width: 900px) {
  .hide-mobile { display: initial; }
  .hide-desktop { display: none !important; }
  .tabbar {
    top: 0; right: auto; width: 220px; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 28px 14px; border-top: 0; border-right: 1px solid var(--line); background: #08090d; backdrop-filter: none;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 19px; padding: 0 10px 22px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .tab { flex-direction: row; gap: 12px; padding: 11px 12px; font-size: 15px; min-width: 0; }
  .tab:hover { background: var(--soft); }
  .tab.is-active { background: var(--card); box-shadow: inset 3px 0 0 var(--blue-2); }
  .tab-dot { top: 50%; right: 12px; transform: translateY(-50%); }
  .test-flag { display: flex; align-items: center; gap: 6px; margin-top: auto; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 650; }
  .main { margin-left: 220px; padding-bottom: 40px; }
  .page { max-width: 1180px; }
  .page-head { padding: 32px 32px 18px; }
  .content { padding: 0 32px 32px; }
  .content-split { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .stat-strip { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .stat-main { grid-column: auto; }
  .upload-zone { flex-direction: row; justify-content: center; padding: 22px; gap: 16px; flex-wrap: wrap; }
  .upload-zone .btn-lg { width: auto; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
  .sheet-wrap { align-items: center; justify-content: center; padding: 30px; }
  .sheet { max-width: 560px; max-height: calc(100vh - 60px); border-radius: 26px; }
  .sheet-wide { max-width: 980px; }
  .sheet-wide .editor { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 24px; }
  .sheet-wide .editor-preview { position: sticky; top: 0; }
  .phone-frame { width: 300px; }
  .sheet-foot { border-radius: 0 0 26px 26px; }
}
@media (max-width: 899px) {
  .hide-mobile { display: none !important; }
}
