:root {
  --bg: #090a0c;
  --surface: #111316;
  --surface-2: #17191d;
  --surface-3: #1e2126;
  --line: #292c32;
  --line-soft: #202329;
  --text: #f5f5f2;
  --muted: #92979f;
  --muted-2: #666b73;
  --orange: #ff6b1a;
  --orange-bright: #ff873f;
  --green: #4fd49a;
  --amber: #f2b84b;
  --red: #ef6464;
  --sidebar: 244px;
  --ease: cubic-bezier(.22,.8,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Shared brand */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; letter-spacing: .05em; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 12px; font-weight: 800; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .34em; }
.brand-mark { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #373a40; background: #121418; overflow: hidden; transform: skewX(-5deg); }
.brand-mark::before { content: ""; position: absolute; width: 24px; height: 8px; bottom: 7px; background: #f4f4f1; clip-path: polygon(8% 45%, 24% 15%, 72% 15%, 90% 48%, 100% 58%, 96% 82%, 3% 82%, 0 58%); }
.brand-mark i { position: absolute; bottom: 4px; width: 6px; height: 6px; border: 2px solid var(--bg); border-radius: 50%; background: var(--orange); z-index: 2; }
.brand-mark i:first-child { left: 8px; }
.brand-mark i:last-child { right: 7px; }
.brand-logo { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px #343841, 0 0 22px rgba(255,107,26,.11); }

.eyebrow { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.primary-button, .secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 750; transition: .2s var(--ease); }
.primary-button { color: #fff; background: var(--orange); }
.primary-button:hover { background: var(--orange-bright); transform: translateY(-1px); }
.primary-button svg { width: 18px; height: 18px; }
.primary-button.compact { min-height: 42px; padding: 0 16px; font-size: 13px; }
.secondary-button { color: var(--text); background: transparent; border-color: var(--line); }
.secondary-button:hover { background: var(--surface-3); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--text); background: var(--surface-3); }
.icon-button svg { width: 18px; height: 18px; }

/* Login */
.login-body { min-height: 100vh; overflow-x: hidden; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr); }
.login-visual { position: relative; min-height: 100vh; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 60% 42%, #302015 0, #171411 26%, #0c0d0f 64%); }
.login-hero-image { position: absolute; inset: 0; width: 100%; height: 76%; object-fit: cover; object-position: 50% 50%; filter: saturate(.88) contrast(1.05); }
.login-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,7,10,.16) 0, rgba(7,8,10,.04) 42%, #090a0c 77%, #090a0c 100%), linear-gradient(90deg, rgba(5,6,8,.35), transparent 28%, transparent 72%, rgba(5,6,8,.26)); }
.visual-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.visual-topline { position: absolute; z-index: 3; top: 36px; left: 42px; right: 42px; display: flex; justify-content: space-between; color: #777b82; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .18em; }
.garage-scene { position: absolute; inset: 9% 5% 19%; }
.garage-light { position: absolute; width: 38%; height: 76%; left: 46%; top: 5%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255,107,26,.25), rgba(255,107,26,.03) 62%, transparent); clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%); filter: blur(8px); }
.floor-line { position: absolute; left: 5%; right: 5%; bottom: 20%; height: 1px; background: linear-gradient(90deg, transparent, #42454b, transparent); box-shadow: 0 18px 50px 6px rgba(255,107,26,.16); }
.car-shape { position: absolute; width: min(70%, 680px); height: 31%; left: 50%; bottom: 19%; transform: translateX(-50%); filter: drop-shadow(0 24px 35px rgba(0,0,0,.75)); }
.car-body { position: absolute; left: 2%; right: 2%; bottom: 10%; height: 43%; background: linear-gradient(178deg, #e9e9e6 0, #9a9ca0 30%, #25272a 62%, #111214 100%); clip-path: polygon(1% 49%, 12% 27%, 26% 20%, 36% 5%, 67% 5%, 82% 22%, 94% 31%, 100% 58%, 96% 83%, 4% 83%, 0 65%); }
.car-roof { position: absolute; width: 45%; height: 34%; left: 31%; bottom: 48%; background: linear-gradient(155deg, #8b8d91, #1a1c1f 74%); clip-path: polygon(22% 0, 75% 0, 100% 100%, 0 100%); border-bottom: 2px solid #c6c6c2; }
.wheel { position: absolute; bottom: 1%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #9b9da0 0 10%, #303237 11% 37%, #090a0c 39% 61%, #33363b 63% 68%, #08090b 70%); border: 2px solid #484b51; z-index: 3; }
.wheel-left { left: 12%; } .wheel-right { right: 12%; }
.headlight { position: absolute; bottom: 36%; width: 10%; height: 5%; border-radius: 50%; background: #fff9de; box-shadow: 0 0 16px 5px rgba(255,237,185,.52), 0 0 52px 16px rgba(255,180,85,.17); z-index: 4; }
.headlight-left { left: 3%; } .headlight-right { right: 3%; }
.mechanic { position: absolute; bottom: 20%; width: 16px; height: 56px; background: #111318; z-index: 4; }
.mechanic::before { content: ""; position: absolute; width: 17px; height: 17px; left: -1px; top: -16px; border-radius: 50%; background: #15171b; }
.mechanic::after { content: ""; position: absolute; width: 2px; height: 55px; left: 9px; top: 5px; background: var(--orange); transform: rotate(42deg); transform-origin: top; }
.mechanic i::before, .mechanic i::after { content: ""; position: absolute; width: 6px; height: 25px; bottom: -21px; background: #111318; }
.mechanic i::before { left: 0; transform: rotate(4deg); } .mechanic i::after { right: 0; transform: rotate(-4deg); }
.mechanic-one { left: 14%; } .mechanic-two { right: 15%; transform: scale(.88); }
.visual-copy { position: absolute; z-index: 5; left: 7%; bottom: 6%; }
.visual-copy h2 { margin: 13px 0 12px; max-width: 680px; font-size: clamp(32px, 4vw, 64px); line-height: .98; letter-spacing: -.045em; font-weight: 350; text-transform: uppercase; }
.visual-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.visual-index { position: absolute; right: 5%; bottom: 6%; color: var(--text); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .12em; writing-mode: vertical-rl; }
.visual-index span { color: var(--orange); }
.login-panel { min-height: 100vh; display: grid; place-items: center; background: #0d0f12; }
.login-panel-inner { width: min(100%, 430px); padding: 48px 42px; }
.login-heading { margin: clamp(70px, 13vh, 138px) 0 34px; }
.status-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.status-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(79,212,154,.11); }
.login-heading h1 { margin: 15px 0 13px; font-size: clamp(42px, 5vw, 62px); line-height: .94; font-weight: 350; letter-spacing: -.055em; text-transform: uppercase; }
.login-heading p { max-width: 350px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.login-form { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; }
.field > span:first-child { color: #b9bdc3; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; color: var(--text); border: 1px solid var(--line); border-radius: 0; outline: none; background: #121418; transition: .18s ease; }
.field input, .field select { height: 50px; padding: 0 15px; }
.field textarea { min-height: 120px; padding: 14px 15px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #555a62; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,26,.1); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 54px; }
.reveal-password { position: absolute; top: 0; right: 0; width: 50px; height: 50px; display: grid; place-items: center; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.reveal-password:hover, .reveal-password.active { color: var(--orange); }
.reveal-password svg { width: 20px; }
.login-button { margin-top: 7px; width: 100%; justify-content: space-between; }
.alert { margin: -13px 0 22px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #ffb4b4; border-left: 2px solid var(--red); background: rgba(239,100,100,.08); font-size: 13px; }
.alert span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--red); border-radius: 50%; font-weight: 800; }
.login-security { margin-top: 26px; display: flex; align-items: center; gap: 9px; color: var(--muted-2); font-size: 11px; }
.login-security svg { width: 15px; }

/* Dashboard */
.dashboard-body { min-height: 100vh; background: #0b0c0e; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 27px 20px 20px; border-right: 1px solid var(--line-soft); background: #0d0f12; }
.sidebar-brand { margin: 0 7px 44px; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: var(--muted); border-left: 2px solid transparent; text-decoration: none; font-size: 13px; font-weight: 650; transition: .18s ease; }
.nav-item:hover { color: var(--text); background: #15171b; }
.nav-item.active { color: #fff; border-left-color: var(--orange); background: linear-gradient(90deg, rgba(255,107,26,.15), rgba(255,107,26,.025)); }
.nav-item svg { width: 17px; height: 17px; }
.nav-item em { margin-left: auto; min-width: 21px; height: 21px; display: grid; place-items: center; color: var(--text); background: var(--surface-3); font-size: 9px; font-style: normal; }
.sidebar-project { margin-top: auto; padding: 22px 7px; border-top: 1px solid var(--line-soft); }
.project-tile { margin-top: 12px; display: flex; align-items: center; gap: 11px; }
.project-number { width: 35px; height: 35px; display: grid; place-items: center; color: var(--orange); border: 1px solid #3a302a; background: rgba(255,107,26,.06); font: 800 9px/1 ui-monospace, monospace; }
.project-tile div, .user-chip div { display: flex; flex-direction: column; }
.project-tile b, .user-chip b { font-size: 11px; }
.project-tile small, .user-chip small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; padding: 17px 7px 0; border-top: 1px solid var(--line-soft); }
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-chip > span { width: 33px; height: 33px; display: grid; place-items: center; color: #111; background: #e8e8e4; font-size: 10px; font-weight: 800; }
.main-content { min-height: 100vh; margin-left: var(--sidebar); padding: 0 40px 70px; }
.topbar { min-height: 115px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.breadcrumb { color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.breadcrumb i { margin: 0 7px; color: var(--orange); font-style: normal; }
.topbar h1 { margin: 8px 0 0; font-size: clamp(28px, 3vw, 42px); line-height: 1; font-weight: 350; letter-spacing: -.04em; text-transform: uppercase; }
.dashboard-hero { position: relative; height: 320px; margin: 32px 0 1px; overflow: hidden; border: 1px solid var(--line-soft); background: #111316; }
.dashboard-hero > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; filter: saturate(.78) contrast(1.08); }
.dashboard-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,11,.97) 0, rgba(8,9,11,.78) 38%, rgba(8,9,11,.22) 72%, rgba(8,9,11,.5)), linear-gradient(0deg, rgba(8,9,11,.8), transparent 55%); }
.dashboard-hero-copy { position: absolute; z-index: 2; left: 32px; top: 50%; display: flex; align-items: center; gap: 20px; transform: translateY(-50%); }
.dashboard-hero-copy > img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.13), 0 20px 45px rgba(0,0,0,.4); }
.dashboard-hero-copy h2 { margin: 8px 0 10px; font-size: clamp(34px, 4.2vw, 60px); line-height: .9; font-weight: 360; letter-spacing: -.055em; text-transform: uppercase; }
.dashboard-hero-copy p { margin: 0; max-width: 440px; color: #b2b6bc; font-size: 12px; }
.hero-status { position: absolute; z-index: 2; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #c3c6c9; border: 1px solid rgba(255,255,255,.12); background: rgba(8,9,11,.72); backdrop-filter: blur(10px); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.overview { display: grid; grid-template-columns: repeat(3, minmax(150px, .8fr)) minmax(260px, 1.4fr); gap: 1px; margin: 32px 0 46px; border: 1px solid var(--line-soft); background: var(--line-soft); }
.metric, .progress-card { min-height: 145px; padding: 22px; background: var(--surface); }
.metric-primary { box-shadow: inset 0 2px var(--orange); }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.metric-label svg { width: 17px; color: var(--orange); }
.signal { width: 7px; height: 7px; border-radius: 50%; }
.signal.amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(242,184,75,.1); }
.signal.green { background: var(--green); box-shadow: 0 0 0 4px rgba(79,212,154,.1); }
.metric > strong { display: block; margin: 18px 0 3px; font-size: 38px; line-height: 1; font-weight: 350; letter-spacing: -.04em; }
.metric > small, .progress-card > small { color: var(--muted-2); font-size: 10px; }
.progress-card > div:first-child { display: flex; align-items: end; justify-content: space-between; }
.progress-card > div:first-child span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.progress-card > div:first-child strong { font-size: 30px; font-weight: 350; }
.progress-track { height: 4px; margin: 30px 0 12px; background: #25282d; }
.progress-track i { display: block; height: 100%; background: var(--orange); box-shadow: 0 0 15px rgba(255,107,26,.35); }
.board-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.board-heading > div:first-child { display: flex; align-items: center; gap: 15px; }
.section-index { width: 38px; height: 38px; display: grid; place-items: center; color: var(--orange); border: 1px solid #3f312a; font: 800 10px/1 ui-monospace, monospace; }
.board-heading h2 { margin: 0 0 4px; font-size: 23px; font-weight: 450; letter-spacing: -.025em; }
.board-heading p { margin: 0; color: var(--muted-2); font-size: 11px; }
.board-tools { display: flex; gap: 10px; }
.search-box { width: 235px; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); }
.search-box svg { width: 15px; color: var(--muted-2); }
.search-box input { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 11px; }
.search-box input::placeholder { color: var(--muted-2); }
.filter-group { display: flex; border: 1px solid var(--line); background: var(--surface); }
.filter-group button { min-width: 58px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.filter-group button:last-child { border-right: 0; }
.filter-group button.active { color: #fff; background: var(--surface-3); box-shadow: inset 0 -2px var(--orange); }
.ideas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.idea-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line-soft); background: var(--surface); overflow: hidden; transition: .22s var(--ease); }
.idea-card:hover { border-color: #383c43; transform: translateY(-2px); background: #131519; }
.idea-card.is-completed { opacity: .62; }
.idea-card.is-completed h3 { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }
.card-accent { position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--orange); transition: .35s var(--ease); }
.idea-card:hover .card-accent { height: 100%; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.idea-number { color: var(--muted-2); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .1em; }
.card-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.badge { padding: 5px 7px; color: #aeb2b8; border: 1px solid var(--line); background: #17191d; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.badge.priority-hoch { color: #ff9c82; border-color: rgba(255,107,76,.3); background: rgba(255,107,76,.06); }
.badge.priority-niedrig { color: #8a929c; }
.card-copy { padding: 21px 0 17px; }
.card-copy h3 { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.12; font-weight: 450; letter-spacing: -.025em; }
.card-copy h3 a { color: inherit; text-decoration: none; }
.card-copy h3 a:hover { color: var(--orange-bright); }
.card-copy .hook { margin: 10px 0 0; color: var(--orange-bright); font-size: 11px; font-weight: 650; }
.card-copy .concept { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-meta { display: flex; gap: 17px; margin-top: auto; padding: 15px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--muted-2); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.card-meta span { display: flex; align-items: center; gap: 6px; }
.card-meta svg { width: 13px; }
.card-workflow { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px; padding: 14px 0; }
.card-workflow label { color: var(--muted-2); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.card-workflow form { min-width: 0; }
.status-select { width: 100%; height: 34px; padding: 0 28px 0 10px; color: #d5d6d3; border: 1px solid var(--line); border-radius: 0; outline: 0; background: #17191d; cursor: pointer; font-size: 10px; font-weight: 700; }
.status-select:focus { border-color: var(--orange); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.complete-button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #c8cbd0; border: 1px solid var(--line); background: #17191d; cursor: pointer; font-size: 10px; font-weight: 750; transition: .18s ease; }
.complete-button:hover { color: #fff; border-color: #41454c; }
.complete-button.done { color: var(--green); border-color: rgba(79,212,154,.25); background: rgba(79,212,154,.055); }
.checkmark { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #444850; }
.checkmark svg { width: 12px; opacity: 0; }
.complete-button.done .checkmark { color: #09110e; border-color: var(--green); background: var(--green); }
.complete-button.done .checkmark svg { opacity: 1; }
.delete-button { width: 41px; height: 41px; display: grid; place-items: center; color: var(--muted-2); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.delete-button:hover { color: var(--red); border-color: rgba(239,100,100,.35); background: rgba(239,100,100,.055); }
.delete-button svg { width: 16px; }
.open-idea-link { margin-top: 10px; min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: var(--orange-bright); border: 1px solid rgba(255,107,26,.23); background: rgba(255,107,26,.045); text-decoration: none; font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.open-idea-link:hover { color: #fff; border-color: var(--orange); background: rgba(255,107,26,.11); }
.open-idea-link span { font-size: 17px; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); }
.empty-state span { color: var(--orange); font-size: 50px; font-weight: 300; }
.empty-state h3 { margin: 8px 0; font-weight: 450; }
.empty-state p { color: var(--muted); font-size: 12px; }

/* Idea production detail */
.detail-content { padding-bottom: 110px; }
.compact-link { min-height: 42px; padding: 0 15px; font-size: 11px; }
.detail-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); min-height: 360px; margin: 32px 0 54px; border: 1px solid var(--line-soft); background: radial-gradient(circle at 80% 0, rgba(255,107,26,.12), transparent 32%), linear-gradient(135deg, #15181c, #0f1114); overflow: hidden; }
.detail-hero::after { content: ""; position: absolute; right: -80px; bottom: -150px; width: 520px; height: 320px; border: 1px solid rgba(255,107,26,.12); border-radius: 50%; transform: rotate(-12deg); }
.detail-hero-copy { position: relative; z-index: 2; padding: 42px; }
.detail-index { display: block; margin: 48px 0 14px; color: var(--muted-2); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .14em; }
.detail-hero h2 { max-width: 850px; margin: 0; font-size: clamp(34px, 4.2vw, 64px); line-height: .96; font-weight: 350; letter-spacing: -.052em; }
.detail-hook { margin: 21px 0 0 !important; color: var(--orange-bright) !important; font-weight: 700; }
.detail-hero-copy > p { max-width: 760px; margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.detail-hero-stats { position: relative; z-index: 2; display: grid; align-content: center; padding: 28px; border-left: 1px solid var(--line-soft); background: rgba(8,9,11,.44); }
.detail-hero-stats div { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.detail-hero-stats div:last-child { border-bottom: 0; }
.detail-hero-stats span { display: block; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.detail-hero-stats strong { display: block; margin-top: 7px; color: #e7e8e5; font-size: 12px; line-height: 1.45; }
.detail-section { margin-top: 62px; }
.detail-section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.detail-section-heading h2 { margin: 0 0 4px; font-size: 25px; font-weight: 430; letter-spacing: -.03em; }
.detail-section-heading p { margin: 0; color: var(--muted-2); font-size: 11px; }
.prompt-block { padding: 21px; border: 1px solid var(--line-soft); background: var(--surface); }
.prompt-featured { border-left: 2px solid var(--orange); background: linear-gradient(90deg, rgba(255,107,26,.055), transparent 35%), var(--surface); }
.negative-block { margin-top: 10px; border-left: 2px solid #5c6068; }
.prompt-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.prompt-type { color: var(--orange); font: 800 8px/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.prompt-head h3, .prompt-head h4 { margin: 7px 0 0; font-size: 15px; font-weight: 650; }
.prompt-block > p { margin: 0; color: #b7bbc1; font-size: 12px; line-height: 1.72; }
.copy-button { min-width: 80px; min-height: 32px; padding: 0 10px; color: #b6bac0; border: 1px solid var(--line); background: #17191d; cursor: pointer; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.copy-button:hover, .copy-button.copied { color: #fff; border-color: var(--orange); background: rgba(255,107,26,.11); }
.scenes-stack { border-top: 1px solid var(--line); }
.scene-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); border: 1px solid var(--line); border-top: 0; background: #0e1012; }
.scene-index { display: flex; flex-direction: column; align-items: center; padding: 25px 10px; border-right: 1px solid var(--line); }
.scene-index span { color: var(--orange); font: 800 11px/1 ui-monospace, monospace; }
.scene-index i { flex: 1; width: 1px; min-height: 60px; margin-top: 15px; background: linear-gradient(var(--orange), transparent); }
.scene-content { min-width: 0; padding: 25px; }
.scene-heading { margin-bottom: 17px; }
.scene-heading span { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.scene-heading h3 { margin: 6px 0 0; font-size: 23px; font-weight: 430; }
.prompt-grid, .youtube-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prompt-grid.single-prompt { grid-template-columns: 1fr; }
.video-prompt { box-shadow: inset 0 2px rgba(68,155,255,.5); }
.editing-note { margin-top: 12px; display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 21px; border: 1px solid var(--line); background: #121418; }
.editing-note span { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.editing-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.youtube-grid .wide-block { grid-column: 1 / -1; }
.youtube-title-block { box-shadow: inset 0 2px var(--orange); }
.large-copy { color: #f1f1ee !important; font-size: clamp(20px, 2.3vw, 31px) !important; line-height: 1.25 !important; letter-spacing: -.025em; }
.pre-line { white-space: pre-line; }
.line-list { display: grid; gap: 9px; color: #b7bbc1; font-size: 12px; }
.line-list span { padding-left: 12px; border-left: 1px solid #3a3e45; }
.delivery-grid { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); gap: 12px; }
.thumbnail-plan { min-height: 310px; display: flex; flex-direction: column; justify-content: end; padding: 28px; border: 1px solid #4a3429; background: radial-gradient(circle at 75% 25%, rgba(255,107,26,.28), transparent 25%), linear-gradient(145deg, #24201c, #101214 65%); }
.thumbnail-plan strong { margin: 13px 0; max-width: 390px; font-size: clamp(32px, 4vw, 56px); line-height: .88; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; }
.thumbnail-plan p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.upload-card { padding: 27px; border: 1px solid var(--line); background: var(--surface); }
.upload-card h3 { margin: 0 0 18px; font-size: 20px; font-weight: 450; }
.upload-card dl { margin: 0; }
.upload-card dl div { display: grid; grid-template-columns: minmax(145px, .7fr) minmax(0, 1.3fr); gap: 15px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.upload-card dt { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.upload-card dd { margin: 0; color: #c9ccd0; font-size: 11px; overflow-wrap: anywhere; }
.copy-toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; padding: 12px 16px; color: #07110d; background: var(--green); box-shadow: 0 15px 45px rgba(0,0,0,.4); font-size: 11px; font-weight: 800; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.copy-toast.show { opacity: 1; transform: translateY(0); }

/* Account settings */
.settings-content { padding-bottom: 80px; }
.settings-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(380px, 1.2fr); gap: 1px; max-width: 1050px; margin: 32px auto 0; border: 1px solid var(--line-soft); background: var(--line-soft); }
.security-intro, .password-card { padding: clamp(30px, 4vw, 54px); background: var(--surface); }
.security-intro { background: radial-gradient(circle at 20% 5%, rgba(255,107,26,.14), transparent 25%), #0f1114; }
.security-intro > img { width: 116px; height: 116px; margin-bottom: 42px; border-radius: 50%; box-shadow: 0 0 0 1px #3b3e44, 0 25px 60px rgba(0,0,0,.4); }
.security-intro h2, .password-card h2 { margin: 12px 0; font-size: clamp(30px, 3vw, 46px); line-height: .96; font-weight: 360; letter-spacing: -.045em; }
.security-intro p, .password-card > div > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.security-intro ul { margin: 30px 0 0; padding: 0; list-style: none; }
.security-intro li { padding: 11px 0 11px 20px; color: #b9bdc2; border-top: 1px solid var(--line-soft); font-size: 11px; position: relative; }
.security-intro li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.security-form { display: grid; gap: 18px; margin-top: 31px; }
.security-form .primary-button { margin-top: 7px; }
.settings-alert { margin: 20px 0 0; }
.success-alert { margin-top: 22px; padding: 13px 15px; color: var(--green); border-left: 2px solid var(--green); background: rgba(79,212,154,.07); font-size: 12px; }

/* Dialog */
.create-dialog { width: min(620px, calc(100vw - 28px)); padding: 0; color: var(--text); border: 1px solid #373a41; background: #111316; box-shadow: 0 40px 100px rgba(0,0,0,.65); }
.create-dialog::backdrop { background: rgba(3,4,5,.76); backdrop-filter: blur(6px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; padding: 25px 27px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 7px 0 0; font-size: 28px; font-weight: 350; letter-spacing: -.035em; text-transform: uppercase; }
.dialog-head .icon-button { border: 0; font-size: 24px; }
.create-form { display: grid; gap: 18px; padding: 27px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 7px; }
.dialog-actions button { min-height: 43px; }

@media (max-width: 1080px) {
  :root { --sidebar: 210px; }
  .main-content { padding-inline: 25px; }
  .overview { grid-template-columns: repeat(3, 1fr); }
  .progress-card { grid-column: 1 / -1; min-height: 115px; }
  .login-shell { grid-template-columns: 1fr 430px; }
  .visual-copy h2 { font-size: 42px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero-stats { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); border-left: 0; }
  .detail-hero-stats div { padding: 12px 15px; border-right: 1px solid var(--line-soft); border-bottom: 0; }
  .prompt-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; max-width: 720px; }
}

@media (max-width: 820px) {
  .login-shell { display: block; }
  .login-visual { display: none; }
  .login-panel-inner { padding: 34px 25px; }
  .login-heading { margin-top: 90px; }
  .sidebar { position: static; width: 100%; height: auto; padding: 18px 20px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand { margin: 0; }
  .sidebar-nav, .sidebar-project { display: none; }
  .sidebar-footer { margin-left: auto; padding: 0; border: 0; }
  .sidebar-footer .user-chip { display: none; }
  .main-content { margin-left: 0; padding: 0 18px 55px; }
  .topbar { min-height: 100px; }
  .overview { margin-top: 22px; }
  .ideas-grid { grid-template-columns: 1fr; }
  .board-heading { align-items: stretch; flex-direction: column; }
  .board-tools { width: 100%; }
  .search-box { flex: 1; }
  .dashboard-hero { height: 290px; }
  .dashboard-hero-copy { left: 24px; }
  .dashboard-hero-copy > img { width: 72px; height: 72px; }
  .detail-content, .settings-content { padding-inline: 18px; }
}

@media (max-width: 560px) {
  .topbar { align-items: end; padding: 22px 0; }
  .topbar h1 { font-size: 25px; }
  .primary-button.compact { width: 42px; padding: 0; font-size: 0; }
  .overview { grid-template-columns: repeat(2, 1fr); }
  .metric { min-height: 124px; padding: 17px; }
  .metric:nth-of-type(3) { grid-column: 1 / -1; }
  .progress-card { padding: 18px; }
  .board-tools { flex-direction: column; }
  .search-box { width: 100%; flex: auto; }
  .filter-group { height: 38px; }
  .filter-group button { flex: 1; }
  .idea-card { padding: 18px; }
  .card-topline { align-items: start; }
  .form-row { grid-template-columns: 1fr; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-hero { height: 300px; margin-top: 20px; }
  .dashboard-hero > img:first-child { object-position: 50% 45%; }
  .dashboard-hero-copy { left: 18px; right: 18px; top: auto; bottom: 48px; align-items: end; transform: none; }
  .dashboard-hero-copy > img { width: 58px; height: 58px; }
  .dashboard-hero-copy h2 { font-size: 34px; }
  .dashboard-hero-copy p { display: none; }
  .hero-status { left: 18px; right: auto; bottom: 13px; }
  .detail-topbar, .settings-content .topbar { align-items: start; gap: 15px; flex-direction: column; justify-content: center; }
  .detail-hero-copy { padding: 25px 20px; }
  .detail-index { margin-top: 34px; }
  .detail-hero h2 { font-size: 37px; }
  .detail-hero-stats { grid-template-columns: 1fr; padding: 16px 20px; }
  .detail-hero-stats div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .detail-section { margin-top: 45px; }
  .detail-section-heading { align-items: start; }
  .scene-card { grid-template-columns: 42px minmax(0, 1fr); }
  .scene-content { padding: 18px 14px; }
  .scene-index { padding-inline: 6px; }
  .prompt-block { padding: 17px 14px; }
  .prompt-head { flex-direction: column; }
  .copy-button { width: 100%; }
  .youtube-grid, .delivery-grid { grid-template-columns: 1fr; }
  .youtube-grid .wide-block { grid-column: auto; }
  .editing-note { grid-template-columns: 1fr; }
  .upload-card dl div { grid-template-columns: 1fr; gap: 5px; }
  .security-intro, .password-card { padding: 27px 20px; }
  .security-intro > img { width: 85px; height: 85px; margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
