:root {
  color-scheme: dark;
  --bg: #05090e;
  --surface: #0a1018;
  --surface-2: #101722;
  --surface-3: #151d29;
  --line: #202b3a;
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f7f8fb;
  --muted: #9aa7b8;
  --muted-2: #6d7989;
  --orange: #ff681f;
  --amber: #ffac22;
  --violet: #c95cff;
  --blue: #35a7ff;
  --cyan: #19d9d0;
  --pink: #f25bb3;
  --green: #22d5a5;
  --radius: 14px;
  --sidebar: 260px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); padding: 14px 15px 12px;
  display: flex; flex-direction: column; background: linear-gradient(180deg, #070c12, #05090e 70%); border-right: 1px solid var(--line-soft);
}
.brand-row { min-height: 46px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.43rem; letter-spacing: -0.04em; }
.brand img { width: 45px; height: 42px; object-fit: cover; object-position: left top; border-radius: 9px; }
.brand span span { color: var(--orange); }
.sidebar-close { display: none; }
.nav-stack { display: flex; flex: 1; min-height: 0; overflow-y: auto; flex-direction: column; gap: 3px; scrollbar-width: none; }
.nav-stack::-webkit-scrollbar { display: none; }
.nav-item, .mode-button, .nav-section-label {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 10px;
  background: transparent; color: #dbe1e9; text-align: left;
}
.nav-item, .mode-button { cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.nav-item svg, .mode-button svg, .nav-section-label svg { width: 21px; height: 21px; }
.nav-item:hover, .mode-button:hover,
.nav-item.active, .mode-button.active {
  color: #fff;
  background: linear-gradient(100deg, #ff4a16, #ff952e);
  box-shadow: 0 9px 26px rgba(255, 91, 22, .28);
}
.nav-item:hover, .mode-button:hover { transform: translateX(2px); }
.nav-item.accent-violet svg { color: var(--violet); }
.nav-section-label { min-height: 34px; margin-top: 8px; padding-inline: 10px; color: #edf1f6; cursor: default; font-size: .86rem; font-weight: 720; }
.nav-section-label svg { color: #f2f5f8; }
.nav-section-label.accent-violet svg { color: var(--violet); }
.mode-switch { padding: 3px 11px 7px; display: grid; gap: 7px; }
.mode-button { background: #0f1620; border: 1px solid #253142; min-height: 42px; }
.mode-button.active, .mode-button:hover { border-color: #ff8127; }
.nav-heading { margin: 16px 10px 6px; color: #e4e8ee; font-size: .9rem; font-weight: 650; }
.nav-heading::before { content: ""; display: inline-block; width: 2px; height: 15px; margin-right: 8px; vertical-align: -2px; background: var(--line); }
.nav-divider { height: 1px; margin: 8px 0; background: var(--line-soft); }
.count { margin-left: auto; display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 7px; border-radius: 999px; background: #d84821; color: #fff; font-size: .72rem; font-weight: 750; }
.profile { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 5px 3px; border: 0; border-top: 1px solid var(--line-soft); background: none; cursor: pointer; text-align: left; }
.avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: linear-gradient(135deg, #b470ff, #ff6a2b); color: #fff; font-weight: 800; }
.profile strong, .profile small { display: block; }
.profile small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.profile-chevron { margin-left: auto; color: var(--muted); font-size: 1.3rem; }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky; top: 0; z-index: 25; height: 70px; padding: 13px 18px 12px; display: flex; align-items: center; gap: 14px;
  background: rgba(5, 9, 14, .88); border-bottom: 1px solid rgba(255,255,255,.025); backdrop-filter: blur(18px);
}
.mobile-menu { display: none; }
.search-box { width: min(530px, 47vw); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; background: #101620; border: 1px solid #293445; border-radius: 11px; color: var(--muted); }
.search-box svg { width: 19px; height: 19px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .86rem; }
.search-box input::placeholder { color: #9ca5b2; }
.search-box kbd { border: 1px solid #313c4d; border-radius: 5px; padding: 2px 6px; color: #7e8999; font-size: .68rem; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.06); }
.sidebar-close, .mobile-menu { display: none; }
.credit-pill { height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 11px 0 14px; background: #101620; border: 1px solid #293445; border-radius: 11px; cursor: pointer; }
.credit-pill svg { color: var(--amber); }
.credit-pill b { display: grid; place-items: center; width: 24px; height: 24px; margin-left: 7px; border-left: 1px solid #2b3441; font-size: 1.15rem; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--bg); }

.dashboard { padding: 0 16px 24px; max-width: 1600px; margin: 0 auto; }
.hero {
  position: relative; min-height: 285px; overflow: hidden; display: flex; align-items: stretch; margin-bottom: 18px; border: 1px solid #212b38; border-radius: var(--radius);
  background: radial-gradient(circle at 85% 35%, rgba(255,101,24,.26), transparent 42%), linear-gradient(115deg, #111321 0%, #11131c 42%, #28161a 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14,15,24,1) 0%, rgba(14,15,24,1) 52%, rgba(14,15,24,.36) 63%, rgba(14,15,24,.03) 74%); }
.hero-copy { position: relative; z-index: 2; width: 58%; padding: 38px 34px; }
.eyebrow { margin: 0 0 9px; color: #e6e8ed; font-size: .77rem; font-weight: 720; letter-spacing: .31em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(2.7rem, 4.5vw, 4.45rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: #ff7430; }
.hero-copy > p:not(.eyebrow) { max-width: 590px; margin: 14px 0 18px; color: #d2d5dc; font-size: 1.08rem; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button, .secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 21px; border-radius: 10px; font-weight: 750; cursor: pointer; }
.primary-button { border: 0; color: #15100c; background: linear-gradient(100deg, #ff8b16, #ff6a1f); box-shadow: 0 10px 25px rgba(255,102,31,.2); }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.secondary-button { border: 1px solid #4a3a46; background: rgba(17,22,31,.74); color: #fff; }
.secondary-button:hover { border-color: #78616d; background: rgba(29,35,46,.88); }
.hero-director {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
}

.creation-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 11px; margin-bottom: 14px; }
.creation-card { min-width: 0; min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 23px; padding: 15px 14px; background: #121923; border: 1px solid #333d4c; border-radius: 12px; cursor: pointer; text-align: left; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.creation-card:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(0,0,0,.3); }
.creation-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; }
.creation-card strong, .creation-card small { display: block; }
.creation-card strong { margin-bottom: 6px; font-size: 1.04rem; }
.creation-card small { color: #c6ccd4; font-size: .75rem; white-space: nowrap; }
.creation-card.orange { border-color: #e66e12; background: radial-gradient(circle at 75% 10%, rgba(255,95,24,.25), transparent 60%), #151617; }
.creation-card.orange .creation-icon { color: #ff9a3a; background: rgba(255,102,31,.11); }
.creation-card.violet { border-color: #9446c5; }.creation-card.violet .creation-icon { color: var(--violet); background: rgba(201,92,255,.1); }
.creation-card.blue { border-color: #237bc2; }.creation-card.blue .creation-icon { color: var(--blue); background: rgba(53,167,255,.1); }
.creation-card.cyan { border-color: #148a91; }.creation-card.cyan .creation-icon { color: var(--cyan); background: rgba(25,217,208,.1); }
.creation-card.pink { border-color: #b8387a; }.creation-card.pink .creation-icon { color: var(--pink); background: rgba(242,91,179,.1); }
.creation-card.purple { border-color: #8043ad; }.creation-card.purple .creation-icon { color: #c95cff; background: rgba(201,92,255,.1); }

.workspace-grid { display: grid; grid-template-columns: 1.55fr 1.1fr .92fr; gap: 12px; }
.panel { min-width: 0; padding: 0 13px 13px; background: #080e14; border: 1px solid #1f2936; border-radius: var(--radius); }
.projects-panel { grid-column: span 2; }
.section-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: .97rem; }
.section-heading h2 svg { color: var(--amber); width: 20px; }
.section-heading button { border: 0; background: transparent; color: #c0c7d1; font-size: .72rem; cursor: pointer; }
.section-heading button:hover { color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.project-card { position: relative; min-width: 0; }
.project-open { width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.project-open img { width: 100%; aspect-ratio: 1.72; object-fit: cover; border-radius: 9px; transition: filter .18s ease, transform .18s ease; }
.project-open:hover img { filter: brightness(1.12); transform: translateY(-2px); }
.project-title { display: block; margin-top: 6px; padding-right: 20px; overflow: hidden; color: #f0f2f5; font-size: .78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.project-card small { color: #a5afbc; font-size: .67rem; }
.project-card small i { display: inline-block; width: 3px; height: 3px; margin: 0 6px 2px; border-radius: 50%; background: #7b8794; }
.more-button { position: absolute; right: -6px; bottom: -2px; display: grid; place-items: center; width: 29px; height: 35px; border: 0; background: transparent; color: #c5cad1; cursor: pointer; }
.more-button svg { width: 18px; }
.latest-main { position: relative; width: 100%; height: 107px; padding: 0; overflow: hidden; border: 0; border-radius: 9px; background: #111820; cursor: pointer; }
.latest-main img { width: 100%; height: 100%; object-fit: cover; }
.latest-main::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.media-badge { position: absolute; z-index: 2; left: 8px; top: 8px; display: flex; gap: 4px; align-items: center; padding: 4px 7px; border-radius: 6px; background: rgba(2,6,10,.78); font-size: .67rem; }
.media-badge svg { width: 13px; height: 13px; }
.latest-main small { position: absolute; z-index: 2; right: 8px; bottom: 7px; padding: 3px 6px; border-radius: 5px; background: rgba(0,0,0,.62); }
.latest-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.latest-strip button { position: relative; height: 57px; overflow: hidden; padding: 0; border: 0; border-radius: 7px; background: #111820; cursor: pointer; }
.latest-strip img { width: 100%; height: 100%; object-fit: cover; }
.latest-strip span { position: absolute; left: 4px; bottom: 4px; padding: 2px 4px; border-radius: 4px; background: rgba(0,0,0,.7); font-size: .6rem; }
.models-panel { grid-column: span 1; }
.model-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.model-card { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.model-art { display: block; width: 100%; aspect-ratio: .88; object-fit: cover; border-radius: 8px; background-size: cover; transition: transform .18s ease; }
.model-card:hover .model-art { transform: translateY(-2px); }
.model-one { background: linear-gradient(145deg, #154371, #0b1722 55%, #af441e); }.model-two { background: linear-gradient(145deg, #7f487f, #da783b 48%, #25375c); }.model-three { background: linear-gradient(145deg, #17274d, #e65334 50%, #151d30); }.model-four { background: linear-gradient(145deg, #234c5f, #e88a5c 55%, #192e43); }.model-five { background: linear-gradient(145deg, #55357b, #e15758 52%, #1a2141); }
.model-card strong, .model-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-card strong { margin-top: 6px; font-size: .67rem; }.model-card small { margin-top: 4px; color: #aab3bf; font-size: .62rem; }
.tools-panel { grid-column: span 1; }
.bolt { color: var(--amber); font-size: 1.5rem; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tool { min-width: 0; min-height: 67px; padding: 8px 3px 6px; border: 0; border-radius: 8px; background: #111923; cursor: pointer; }
.tool:hover { background: #17212d; transform: translateY(-1px); }
.tool-icon { display: block; margin-bottom: 5px; font-size: 1.05rem; font-weight: 800; }.tool-icon.blue { color: var(--blue); }.tool-icon.cyan { color: var(--cyan); }.tool-icon.violet { color: var(--violet); }.tool-icon.green { color: var(--green); }.tool-icon.orange { color: var(--orange); }.tool-icon.pink { color: var(--pink); }
.tool small { font-size: .58rem; line-height: 1.2; }
.inspiration-panel { position: relative; min-height: 203px; overflow: hidden; display: flex; align-items: center; grid-column: span 1; padding: 18px; border: 1px solid #43312b; border-radius: var(--radius); background: radial-gradient(circle at 82% 45%, rgba(255,91,22,.31), transparent 44%), #171113; }
.inspiration-copy { position: relative; z-index: 2; width: 62%; }.inspiration-copy h2 { margin: 0 0 8px; font-size: .96rem; }.inspiration-copy p { margin: 0 0 14px; color: #c6c0c1; font-size: .76rem; line-height: 1.4; }.inspiration-copy .secondary-button { min-height: 42px; padding: 0 14px; font-size: .7rem; }
.inspiration-panel img { position: absolute; right: -12px; bottom: -15px; width: 55%; height: 108%; object-fit: cover; object-position: center; mix-blend-mode: screen; opacity: .94; }
.search-empty { margin: 48px auto; text-align: center; color: var(--muted); }.search-empty svg { width: 40px; height: 40px; }.search-empty h2 { margin-bottom: 4px; color: var(--text); }.search-empty p { margin-top: 0; }

.create-dialog { width: min(610px, calc(100vw - 30px)); padding: 0; border: 1px solid #344154; border-radius: 18px; background: #0c121b; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.create-dialog::backdrop { background: rgba(2,5,8,.74); backdrop-filter: blur(6px); }
.dialog-card { padding: 23px; }.dialog-header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }.dialog-header h2 { margin: 0 0 20px; font-size: 1.8rem; }.dialog-header .eyebrow { color: var(--amber); letter-spacing: .2em; }
.prompt-label { display: block; color: #dfe4eb; font-size: .82rem; font-weight: 650; }.prompt-label textarea { width: 100%; margin-top: 8px; padding: 13px; resize: vertical; border: 1px solid #344154; border-radius: 10px; background: #111923; color: #fff; line-height: 1.45; }
.creation-type-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 14px 0 20px; }.type-choice { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #293545; border-radius: 9px; background: #101721; cursor: pointer; }.type-choice.active { border-color: var(--orange); background: rgba(255,104,31,.1); color: #ff9b5c; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .8rem; }.dialog-footer .primary-button { min-height: 44px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 26px; display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: calc(100vw - 28px); padding: 12px 16px; border: 1px solid #354252; border-radius: 11px; background: #131b25; box-shadow: 0 14px 40px rgba(0,0,0,.45); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #184b3f; color: #4cf3c6; font-weight: 900; }
.search-hidden { display: none !important; }

.drawer-scrim { position: fixed; z-index: 70; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(3px); }
.action-drawer { position: fixed; z-index: 75; top: 0; right: 0; width: min(420px,100vw); height: 100vh; overflow-y: auto; padding: 0; border: 0; border-left: 1px solid #344052; background: linear-gradient(180deg,#0b121a,#070c12); color: #f6f8fb; box-shadow: -22px 0 70px rgba(0,0,0,.5); }
.action-drawer[hidden], .drawer-scrim[hidden] { display: none; }
.action-drawer > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 14px 18px; border-bottom: 1px solid #202b38; background: rgba(9,15,22,.94); backdrop-filter: blur(14px); }
.action-drawer h2 { margin: 3px 0 0; font-size: 1.3rem; }.drawer-kicker { color: #ff8b43; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.drawer-content { padding: 18px; }.drawer-description { color: #a3adba; line-height: 1.55; }
.drawer-preview { width: 100%; max-height: 300px; object-fit: cover; border: 1px solid #344153; border-radius: 12px; }
.drawer-primary, .drawer-actions button, .drawer-menu button, .drawer-profile button { min-height: 43px; padding: 0 14px; border: 1px solid #344153; border-radius: 8px; background: #121b26; color: #e9edf2; cursor: pointer; text-align: left; }.drawer-primary { width: 100%; border: 0; color: #180d07; background: linear-gradient(95deg,#ff9f22,#ff5a1e); font-weight: 800; text-align: center; }.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }.drawer-menu, .drawer-profile { display: grid; gap: 8px; }
.drawer-plan > strong { display: block; margin: 18px 0 5px; font-size: 1.35rem; }.drawer-plan > p { margin: 0 0 14px; color: #8895a4; }.drawer-plan-badge { display: inline-flex; padding: 5px 8px; border: 1px solid #764024; border-radius: 999px; color: #ff9c5f; background: rgba(255,104,31,.09); font-size: .62rem; font-weight: 800; }.drawer-meter { height: 9px; overflow: hidden; border-radius: 999px; background: #202b38; }.drawer-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff9b24,#ff5d20); }.drawer-plan dl { display: grid; gap: 7px; margin: 20px 0; }.drawer-plan dl div { display: flex; justify-content: space-between; padding: 11px; border: 1px solid #263243; border-radius: 8px; background: #0e161f; }.drawer-plan dt { color: #98a4b2; }.drawer-plan dd { margin: 0; font-weight: 800; }
.drawer-list { display: grid; gap: 9px; }.drawer-list article { display: grid; grid-template-columns: 11px 1fr; gap: 10px; padding: 12px; border: 1px solid #263243; border-radius: 9px; background: #0e161f; }.drawer-list p { margin: 5px 0; color: #9aa6b5; font-size: .78rem; line-height: 1.45; }.drawer-list small { color: #687587; }.notice-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; }.notice-dot.green { background: #34d6a6; }.notice-dot.orange { background: #ff782d; }.notice-dot.violet { background: #c768ff; }
.drawer-settings { display: grid; gap: 12px; }.drawer-settings > label { color: #cbd3dd; font-size: .74rem; font-weight: 700; }.drawer-settings select { width: 100%; margin-top: 6px; padding: 11px; border: 1px solid #2e3a4b; border-radius: 8px; background: #101822; color: #fff; }.drawer-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #2a3748; border-radius: 9px; background: #0e161f; color: #fff; text-align: left; }.drawer-switch strong, .drawer-switch small { display: block; }.drawer-switch small { margin-top: 3px; color: #7d8998; }.drawer-switch i { position: relative; flex: 0 0 auto; width: 37px; height: 21px; border-radius: 999px; background: #344052; }.drawer-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #aab4c0; transition: .18s; }.drawer-switch.is-on i { background: #db5620; }.drawer-switch.is-on i::after { left: 19px; background: #fff; }
.drawer-profile { text-align: center; }.drawer-avatar { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; background: linear-gradient(135deg,#b470ff,#ff6a2b); font-size: 1.4rem; font-weight: 900; }.drawer-profile h3 { margin: 10px 0 0; }.drawer-profile p { margin: 3px 0 15px; color: #8793a2; }.drawer-profile button { text-align: center; }

@media (max-width: 1400px) {
  .creation-grid { grid-template-columns: repeat(3, 1fr); }
  .creation-card { min-height: 100px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .workspace-grid { grid-template-columns: 1fr 1fr; }
  .projects-panel { grid-column: span 2; }.latest-panel, .models-panel, .tools-panel, .inspiration-panel { grid-column: span 1; }
}

@media (max-width: 1180px) {
  .sidebar { transform: translateX(-105%); box-shadow: 16px 0 50px rgba(0,0,0,.45); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }.sidebar-close, .mobile-menu { display: grid; }
  .sidebar-scrim { position: fixed; z-index: 35; inset: 0; background: rgba(0,0,0,.58); opacity: 0; pointer-events: none; transition: opacity .22s ease; }.sidebar-scrim.show { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }.search-box { width: min(570px, 62vw); }
  .hero h1 { font-size: clamp(2.55rem,5vw,3rem); }.hero-copy { width: 60%; padding-inline: 28px; }.hero-copy > p:not(.eyebrow) { max-width: 370px; font-size: 1rem; }.hero-director { width: 58%; object-position: 76% top; }.hero::after { background: linear-gradient(90deg,#0e0f18 0%,#0e0f18 40%,rgba(14,15,24,.86) 52%,rgba(14,15,24,.2) 72%,rgba(14,15,24,.03)); }
}

@media (max-width: 720px) {
  .topbar { height: auto; min-height: 65px; flex-wrap: wrap; padding: 10px 12px; }.search-box { order: 3; width: 100%; }.search-box kbd { display: none; }.credit-pill span { display: none; }.credit-pill { padding: 0 9px; }.credit-pill b { margin: 0; border: 0; }
  .dashboard { padding: 0 10px 18px; }.hero { min-height: 410px; align-items: flex-end; }.hero-copy { width: 100%; padding: 24px 20px; }.hero-copy > p:not(.eyebrow) { max-width: 90%; font-size: .96rem; }.hero::after { background: linear-gradient(0deg, #11121b 5%, rgba(17,18,27,.85) 47%, rgba(17,18,27,.05) 80%); }.hero-director { width: 100%; height: 65%; top: 0; object-position: 73% center; }.hero h1 { font-size: 2.65rem; }
  .creation-grid { grid-template-columns: repeat(2, 1fr); }.creation-card { min-height: 105px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; }.creation-card small { white-space: normal; }
  .workspace-grid { grid-template-columns: 1fr; }.projects-panel, .latest-panel, .models-panel, .tools-panel, .inspiration-panel { grid-column: span 1; }.project-grid { grid-template-columns: repeat(2, 1fr); }.model-row { grid-template-columns: repeat(5, minmax(72px, 1fr)); overflow-x: auto; padding-bottom: 4px; }.inspiration-panel { min-height: 190px; }
}

@media (max-width: 430px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }.hero-actions button { width: 100%; }.creation-grid { grid-template-columns: 1fr 1fr; }.project-grid { grid-template-columns: 1fr; }.top-actions { gap: 2px; }.dialog-footer { align-items: flex-end; }.creation-type-row { grid-template-columns: 1fr; }
}

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