:root {
  color-scheme: dark;
  --bg: #0b0e13;
  --surface: rgba(20, 24, 32, 0.82);
  --surface-2: #171c25;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #8b93a3;
  --text: #f4f5f7;
  --accent: #b8ff57;
  --accent-2: #74f2ce;
  --danger: #ff7c7c;
  --radius: 22px;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(140px); opacity: .12; pointer-events: none; }
.ambient-one { top: -170px; right: 5%; background: var(--accent); }
.ambient-two { bottom: -220px; left: 15%; background: #648cff; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(11,14,19,.88); backdrop-filter: blur(18px); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #10140c; font-weight: 900; transform: rotate(-6deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { font-size: 8px; letter-spacing: .16em; color: var(--muted); margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.ghost-button, .primary-button, .profile-button, .text-button, .icon-button { border: 0; cursor: pointer; }
.ghost-button { padding: 10px 15px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 10px; }
.profile-button { width: 36px; height: 36px; border-radius: 50%; background: #272e3c; }
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.sidebar { min-height: calc(100vh - 76px); padding: 44px 26px; border-right: 1px solid var(--line); }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.steps { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 26px; }
.steps li { display: flex; gap: 12px; align-items: center; color: #636b78; }
.steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #343a45; border-radius: 50%; font-size: 11px; }
.steps li strong, .steps li small { display: block; }
.steps li strong { font-size: 13px; }
.steps li small { font-size: 10px; margin-top: 3px; }
.steps li.active { color: var(--text); }
.steps li.active > span { background: var(--accent); color: #10140c; border-color: var(--accent); font-weight: 900; }
.sidebar-note { display: flex; gap: 10px; margin-top: 60px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.sidebar-note strong { font-size: 11px; }
.sidebar-note p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.live-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.workspace { width: min(1120px, 100%); padding: 52px 46px 90px; margin: 0 auto; }
.hero-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 42px; }
h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.06em; line-height: .98; margin: 13px 0 0; }
h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 330px; margin: 0 0 5px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.content-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 22px 80px rgba(0,0,0,.18); }
.panel-heading, .section-heading-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel-heading > div, .section-heading-row > div { display: flex; align-items: center; gap: 10px; }
h2 { font-size: 17px; margin: 0; letter-spacing: -.025em; }
.section-number { color: var(--accent); font-size: 10px; font-weight: 900; }
.requirement { color: var(--muted); font-size: 10px; }
.dropzone { min-height: 310px; border: 1px dashed #3c4452; background: #11151c; border-radius: 16px; display: grid; place-items: center; overflow: hidden; cursor: pointer; transition: .2s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: rgba(184,255,87,.04); }
.dropzone input { display: none; }
.drop-content { text-align: center; padding: 24px; }
.upload-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: #10140c; font-size: 22px; }
.drop-content strong { display: block; font-size: 14px; }
.drop-content p { color: var(--muted); font-size: 10px; margin: 8px 0 0; }
#videoPreview { display: none; width: 100%; height: 310px; object-fit: contain; background: #050608; }
.dropzone.has-video #videoPreview { display: block; }
.dropzone.has-video .drop-content { display: none; }
.file-meta { align-items: center; gap: 12px; margin-top: 12px; padding: 0 4px; }
.file-meta:not([hidden]) { display: flex; }
.file-meta > div { min-width: 0; flex: 1; }
.file-meta strong, .file-meta small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta strong { font-size: 11px; }
.file-meta small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.format-badge { padding: 5px 8px; border-radius: 7px; font-size: 9px; background: rgba(184,255,87,.1); color: var(--accent); }
.format-badge.warning { color: #ffd26f; background: rgba(255,210,111,.1); }
.icon-button { width: 30px; height: 30px; background: transparent; color: var(--muted); font-size: 21px; }
.text-button { background: transparent; color: var(--accent); font-size: 10px; font-weight: 700; }
.field { display: block; position: relative; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 8px; color: #c9ced7; font-size: 10px; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); outline: none; color: var(--text); background: #11151c; border-radius: 11px; padding: 13px 14px; font-size: 12px; resize: vertical; transition: border-color .2s; }
.field input:focus, .field textarea:focus { border-color: rgba(184,255,87,.55); }
.field small { display: block; text-align: right; margin-top: 5px; color: #69717e; font-size: 9px; }
.platform-section { margin-top: 34px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.platform-card { position: relative; min-height: 124px; padding: 15px; border-radius: 16px; border: 1px solid var(--line); background: rgba(20,24,32,.7); cursor: pointer; transition: .2s ease; }
.platform-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.18); }
.platform-card.selected { border-color: rgba(184,255,87,.5); background: rgba(184,255,87,.055); }
.platform-card input { position: absolute; opacity: 0; }
.platform-card-head { display: flex; justify-content: space-between; align-items: center; }
.platform-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--platform-color); color: white; font-size: 11px; font-weight: 900; }
.check { width: 17px; height: 17px; border-radius: 50%; border: 1px solid #515966; }
.selected .check { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px #161c17; }
.platform-card strong { display: block; margin-top: 15px; font-size: 11px; }
.platform-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(20,24,32,.9); }
.summary { display: flex; align-items: center; gap: 12px; }
.summary > span { font-size: 30px; font-weight: 900; color: var(--accent); }
.summary strong, .summary small { display: block; }
.summary strong { font-size: 11px; }
.summary small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.primary-button { padding: 13px 20px; border-radius: 11px; background: var(--accent); color: #10140c; font-weight: 800; font-size: 11px; box-shadow: 0 10px 30px rgba(184,255,87,.12); }
.primary-button span { margin-left: 16px; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
dialog { width: min(620px, calc(100% - 28px)); padding: 0; color: var(--text); border: 1px solid var(--line); border-radius: 22px; background: #131821; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(5,7,10,.75); backdrop-filter: blur(6px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin-top: 8px; font-size: 21px; }
.result-list { padding: 10px 24px; }
.result-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-item:last-child { border: 0; }
.result-item .platform-icon { flex: 0 0 auto; }
.result-copy { flex: 1; }
.result-copy strong, .result-copy small { display: block; }
.result-copy strong { font-size: 12px; }
.result-copy small { color: var(--muted); margin-top: 4px; font-size: 9px; }
.status-pill { padding: 6px 9px; border-radius: 8px; font-size: 9px; background: rgba(184,255,87,.1); color: var(--accent); }
.status-pill.needs-connection { color: #ffd26f; background: rgba(255,210,111,.1); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 20px 24px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); opacity: 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: #212735; font-size: 11px; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .workspace { padding: 38px 22px 70px; }
  .content-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .topbar { height: 66px; padding: 0 16px; }
  .ghost-button { display: none; }
  .workspace { padding: 30px 14px 60px; }
  .hero-copy { display: block; }
  .hero-description { margin-top: 20px; }
  .panel { padding: 18px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .publish-bar { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
}
