@import url("/tokens.css");

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #aa91f8; }
button { border: 0; background: none; }
h1, h2, h3, p { margin: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--purple); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.purple { color: var(--purple); }
.muted, .small-muted { color: var(--muted); }
.small-muted { font-size: 12px; line-height: 1.8; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; padding: 12px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 650; line-height: 1.3; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.button .icon { width: 16px; height: 16px; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--purple); color: white; box-shadow: 0 3px 6px #6c49e815, inset 0 1px 0 #ffffff20; }
.button-primary:hover { background: #5c39d7; }
.button-white { background: white; border-color: var(--border); box-shadow: 0 2px 3px #24163803; }
.button-white:hover { background: #f7f5fb; border-color: #d3cae8; }
.button-small { padding: 8px 13px; font-size: 11px; }
.button-dark { background: #2e253e; color: white; }
.button-dark:hover { background: #423253; }
.text-button { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 650; font-size: 12px; padding: 4px 0; }
.text-button:hover { color: #4425a9; }
.text-button .icon { width: 15px; height: 15px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; padding: 6px; color: #80718d; flex-shrink: 0; min-width: 28px; min-height: 28px; }
.icon-button:hover { background: #f0ecf7; color: var(--purple); }
.icon-button .icon { width: 16px; height: 16px; }
kbd { display: inline-block; font: 10px var(--font); background: white; border: 1px solid #dedbe5; border-radius: 4px; box-shadow: 0 2px 0 #dedbe5; padding: 2px 6px; color: #766c85; }
.sidebar { position: fixed; top: 0; left: 0; width: 226px; height: 100dvh; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: #fff; padding: 30px 18px 0; z-index: 8; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 12px; margin-bottom: 32px; }
.brand > span { font-size: 26px; font-weight: 770; letter-spacing: -1.6px; line-height: 1; }
.brand-one { color: var(--purple); }
.brand small { display: block; font-size: 7px; font-weight: 650; letter-spacing: 1.45px; margin-top: 7px; color: #8d859b; }
.workspace-switch { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 9px; padding: 10px; margin: 0 3px 28px; }
.workspace-avatar { background: #f0ebfb; color: #8265bf; border-radius: 7px; display: grid; place-items: center; width: 32px; height: 32px; }
.workspace-avatar .icon { width: 17px; height: 17px; }
.workspace-switch > div { font-size: 11px; font-weight: 650; }
.workspace-switch small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.workspace-dot { width: 6px; height: 6px; background: #93aa91; border-radius: 50%; margin-left: auto; margin-right: 4px; }
.nav-caption { font-size: 9px; letter-spacing: 1.7px; color: var(--secondary); font-weight: 650; padding: 0 14px; margin-bottom: 12px; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 13px; text-align: left; color: #7d748b; font-size: 11px; font-weight: 550; border-radius: 7px; margin-bottom: 5px; }
.nav-link .icon { width: 17px; height: 17px; }
.nav-link:hover { background: #f8f6fc; }
.nav-link.active { background: #eee8fc; color: var(--purple); }
.nav-count { margin-left: auto; font-size: 9px; padding: 2px 6px; border-radius: 4px; background: #eeeaf5; color: #8d7eac; }
.active .nav-count { background: #e3d8fc; color: var(--purple); }
.new-badge { margin-left: auto; border: 1px solid #eae5f1; font-size: 8px; color: #9584b4; padding: 2px 5px; border-radius: 4px; }
.sidebar-bottom { margin-top: auto; }
.studio-note { border: 1px solid #e9e1f4; background: linear-gradient(130deg,#f8f4ff,#fbf9ff); border-radius: 10px; padding: 18px 13px 15px; margin: 25px 3px 20px; }
.note-icon { color: #9874d5; display: block; margin-bottom: 11px; }
.note-icon .icon { width: 19px; height: 19px; }
.studio-note strong { font-size: 13px; line-height: 1.65; letter-spacing: -.3px; }
.studio-note p { color: var(--secondary); font-size: 10px; margin: 7px 0 12px; }
.studio-note .text-button { font-size: 10px; gap: 22px; }
.sidebar-bottom > .nav-link { font-size: 10px; }
.sidebar-bottom > .nav-link .icon:last-child:not(:first-child) { margin-left: auto; width: 13px; height: 13px; }
.sidebar-account { display: flex; align-items: center; gap: 9px; padding: 17px 0; border-top: 1px solid var(--border); margin-top: 13px; }
.user-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #f4e3d7; color: #9c7658; font-size: 11px; font-weight: 650; flex-shrink: 0; }
.sidebar-account > div { flex: 1; min-width: 0; }
.sidebar-account strong { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar-account small { color: var(--secondary); font-size: 10px; display: block; margin-top: 4px; }
.sidebar-account > .icon-button { padding: 4px; }
.main-shell { margin-left: 226px; }
.topbar { height: 75px; padding: 0 37px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fffdfd; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 15px; font-size: 10px; color: var(--secondary); white-space: nowrap; }
.breadcrumb .icon { width: 11px; height: 11px; }
.breadcrumb strong { color: #6f657e; font-weight: 550; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.search-trigger { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--secondary); padding: 5px; }
.search-trigger .icon { width: 14px; height: 14px; }
.search-trigger kbd { font-size: 9px; margin-left: 20px; padding: 0 5px; color: #b9b2c2; }
.header-divider { height: 21px; width: 1px; background: var(--border); }
.mode-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--secondary); }
.mode-label i { width: 5px; height: 5px; background: #9aaf96; border-radius: 50%; }
.mobile-menu { display: none; }
main#main { padding: 36px 37px 20px; min-height: calc(100dvh - 135px); max-width: 1580px; margin: auto; outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 30px; }
.eyebrow { font-size: 9px; font-weight: 650; letter-spacing: 1.75px; color: var(--secondary); margin-bottom: 10px; }
h1 { font-size: clamp(24px, 2.2vw, 33px); font-weight: 650; letter-spacing: -1.25px; line-height: 1.35; }
.page-description { font-size: 12px; line-height: 1.7; color: var(--secondary); margin-top: 8px; }
.heading-actions { display: flex; gap: 9px; flex-shrink: 0; align-self: flex-end; padding-bottom: 3px; }
.hero-banner { min-height: 307px; border: 1px solid #e9def7; border-radius: 13px; overflow: hidden; background: #f0e9fb; display: flex; position: relative; }
.hero-copy { position: relative; z-index: 2; padding: 29px 35px; width: 55%; }
.hero-badge { display: inline-flex; gap: 6px; align-items: center; font-size: 8px; letter-spacing: 1.05px; color: var(--on-lilac); border: 1px solid #dcd0ee; padding: 5px 8px; border-radius: 20px; background: #f8f3ff88; }
.hero-badge > span { width: 4px; height: 4px; background: #a28abb; border-radius: 50%; }
.hero-copy h2 { font-size: clamp(29px, 3.2vw, 43px); font-weight: 650; letter-spacing: -1.6px; line-height: 1.08; margin: 15px 0 11px; color: #423253; }
.hero-copy > p { font-size: 12px; line-height: 1.9; color: var(--on-lilac); }
.hero-copy .button { margin-top: 16px; font-size: 10px; padding: 10px 14px; gap: 17px; border-radius: 7px; }
.hero-footnote { display: flex; align-items: center; gap: 5px; color: var(--on-lilac); font-size: 9px; margin-top: 12px; }
.hero-footnote .icon { width: 10px; height: 10px; }
.hero-art { position: absolute; right: 0; width: 49%; height: 100%; }
.orbit { position: absolute; border: 1px solid #d6c6ec7a; border-radius: 50%; width: 370px; height: 370px; top: 8px; left: 45px; }
.orbit-two { width: 460px; height: 460px; top: -39px; left: 1px; }
.hero-phone { transform: rotate(9deg); width: 205px; height: 350px; position: absolute; top: 27px; left: 115px; padding: 6px; border: 1px solid #ded4e9; border-radius: 29px; background: #fcfaff; box-shadow: 8px 17px 25px #9b80bf20; }
.hero-phone .chat-surface { border-radius: 23px; min-height: 100%; }
.hero-phone .phone-status { font-size: 7px; padding: 9px 13px 4px; }
.hero-phone .chat-header { padding: 5px 13px 8px; gap: 4px; }
.hero-phone .chat-header > .icon { width: 11px; height: 11px; }
.hero-phone .chat-header strong { font-size: 8px; }
.hero-phone .chat-header small { font-size: 5px; margin-top: 1px; }
.hero-phone .chat-avatar { width: 24px; height: 24px; font-size: 9px; }
.hero-phone .chat-messages { padding: 9px; height: 210px; }
.hero-phone .chat-date { font-size: 5px; margin-bottom: 16px; }
.hero-phone .bubble { font-size: 9px; padding: 7px 9px; border-radius: 12px; }
.hero-phone .message { margin-bottom: 9px; }
.hero-phone .delivered { font-size: 5px; margin-top: 3px; }
.hero-phone .chat-input { font-size: 10px; padding: 8px; }
.hero-phone .chat-input > div { font-size: 7px; }
.hero-phone .home-indicator { width: 50px; }
.hero-spark { position: absolute; z-index: 3; color: #b195d8; }
.spark-one { top: 40px; left: 37px; font-size: 30px; }
.spark-two { bottom: 49px; right: 36px; font-size: 35px; color: #b8c5a5; }
.mini-sticker { display: flex; align-items: center; gap: 7px; position: absolute; top: 40px; right: 24px; transform: rotate(8deg); font-size: 7px; letter-spacing: .7px; line-height: 1.5; padding: 9px 10px; border: 1px solid #e0d1ee; border-radius: 6px; background: #f7f0ff; color: #9c7eb8; z-index: 2; }
.mini-sticker .icon { width: 23px; height: 23px; }
.space-sticker { display: flex; gap: 10px; align-items: center; position: absolute; bottom: 24px; left: 5px; padding: 12px 16px 12px 10px; border-radius: 10px; background: #fff; box-shadow: 0 7px 20px #6d4c9112; z-index: 4; transform: rotate(-6deg); }
.space-sticker span { font-size: 10px; color: #82708e; }
.space-sticker kbd { background: #f6f2fa; font-size: 10px; padding: 6px 12px; }
.space-sticker .icon { width: 11px; height: 11px; color: #8d79a5; fill: #8d79a5; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 21px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 19px 18px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.stat-icon { width: 39px; height: 39px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; flex-shrink: 0; }
.stat-icon .icon { width: 18px; height: 18px; }
.lilac { background: #efeafa; color: #7955a6; }
.peach { background: #fcf0e5; color: #94613b; }
.green { background: #ecf2e8; color: #587147; }
.blue { background: #e9eef8; color: #506d9b; }
.rose { background: #faeaf0; color: #994d69; }
.stat-value { display: flex; align-items: baseline; gap: 9px; font-size: 24px; font-weight: 600; letter-spacing: -.8px; line-height: 1; }
.stat-value span { font-size: 11px; color: var(--secondary); font-weight: 500; letter-spacing: 0; }
.stat-card p { margin-top: 7px; font-size: 10px; color: var(--secondary); }
.section-block { margin-top: 33px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-heading h2 { font-size: 15px; font-weight: 600; letter-spacing: -.3px; display: flex; align-items: center; gap: 9px; }
.section-heading h2 > .icon { color: #b0a0c1; width: 18px; height: 18px; margin-left: 3px; }
.section-heading p { color: var(--secondary); font-size: 11px; margin-top: 6px; }
.section-heading .text-button { font-size: 10px; }
.subtle-count { color: #7b628f; background: #f0eaf7; border: 1px solid #eae2f4; border-radius: 5px; font-size: 9px; line-height: 1; padding: 4px 6px; font-weight: 500; letter-spacing: 0; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.scene-card { border: 1px solid var(--border); background: white; border-radius: 10px; overflow: hidden; transition: transform .2s, box-shadow .2s; min-width: 0; }
.scene-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px #41364d09; }
.scene-preview { position: relative; display: block; width: 100%; height: 150px; overflow: hidden; background: #edf2eb; }
.preview-claude { background: #f4ece5; }
.preview-aim { background: #f5efd9; }
.preview-android, .preview-gemini { background: #e9eef7; }
.preview-messenger { background: #f0e7f7; }
.preview-youtube, .preview-instagram { background: #f8e9ee; }
.preview-tiktok { background: #e7f3f2; }
.scene-mini-chat { width: 220px; position: absolute; left: 50%; transform: translateX(-50%); top: 20px; border: 4px solid #ffffffc9; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 13px #5664400c; pointer-events: none; }
.scene-mini-chat .chat-surface { min-height: 210px; }
.scene-mini-chat .phone-status, .scene-mini-chat .chat-input, .scene-mini-chat .home-indicator, .scene-mini-chat .ai-disclaimer { display: none; }
.scene-mini-chat .chat-header { padding: 7px 12px; min-height: auto; gap: 6px; }
.scene-mini-chat .chat-header strong { font-size: 8px; }
.scene-mini-chat .chat-header small { font-size: 5px; }
.scene-mini-chat .chat-header .icon { width: 10px; height: 10px; }
.scene-mini-chat .chat-avatar { width: 17px; height: 17px; font-size: 8px; }
.scene-mini-chat .chat-messages { padding: 10px; max-height: 185px; }
.scene-mini-chat .chat-date { font-size: 5px; margin-bottom: 7px; }
.scene-mini-chat .bubble { font-size: 8px; padding: 5px 8px; border-radius: 10px; }
.scene-mini-chat .message { margin-bottom: 6px; gap: 5px; }
.scene-mini-chat .delivered, .scene-mini-chat .speaker-name { font-size: 5px; }
.scene-mini-chat .person-avatar { width: 16px; height: 16px; font-size: 7px; }
.scene-mini-chat .theme-aim .bubble { font-size: 8px; }
.scene-mini-chat .theme-aim .chat-header { padding: 6px 8px; }
.preview-theme { position: absolute; left: 10px; bottom: 10px; font-size: 8px; background: #ffffffeb; color: var(--secondary); padding: 5px 7px; border: 1px solid #ffffff; border-radius: 4px; }
.scene-open { display: grid; place-items: center; position: absolute; right: 11px; top: 11px; width: 23px; height: 23px; background: #ffffff9e; border-radius: 50%; color: #9d8daf; }
.scene-open .icon { width: 12px; height: 12px; }
.scene-info { padding: 13px 14px 10px; }
.scene-title { display: block; font-size: 11px; font-weight: 600; text-align: left; padding: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-title:hover { color: var(--purple); }
.scene-meta { display: flex; align-items: center; justify-content: space-between; color: var(--secondary); margin-top: 4px; font-size: 10px; }
.scene-meta > span > span, .sound-meta > span > span { margin: 0 4px; color: #c8bed0; }
.scene-meta .icon-button .icon { width: 12px; height: 12px; }
.sound-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.sound-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sound-card { border: 1px solid var(--border); background: #fff; padding: 13px 14px 9px; border-radius: 10px; transition: border-color .2s; min-width: 0; }
.sound-card.playing { border-color: #b09ae8; box-shadow: 0 0 0 2px #b09ae813; }
.sound-card-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.category-label { display: inline-block; font-size: 9px; padding: 4px 6px; border-radius: 4px; }
.favorite { padding: 3px; }
.favorite .icon { width: 13px; height: 13px; stroke: #c5bacc; }
.favorite.is-favorite .icon { fill: #e6d3aa; stroke: #c9ab7e; }
.sound-wave { display: flex; gap: 11px; align-items: center; height: 64px; background: none; }
.sound-play { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border: 1px solid #eee8f5; background: #f9f6fc; border-radius: 50%; color: #9376ba; flex-shrink: 0; }
.sound-play:hover { background: #eee6fb; border-color: #ded0f5; }
.sound-play .icon { width: 12px; height: 12px; fill: currentColor; stroke-width: 1; }
.sound-play .icon:has(rect) { width: 12px; height: 12px; }
.waveform { height: 36px; display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 2px; overflow: hidden; }
.waveform i { display: block; width: 2px; height: var(--h); border-radius: 2px; background: currentColor; opacity: .52; }
.sound-card h3 { font-size: 11px; font-weight: 550; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.sound-meta { color: var(--secondary); font-size: 10px; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.sound-meta .icon-button { padding: 5px 1px; }
.sound-meta .icon { width: 11px; height: 11px; }
.local-notice { display: flex; align-items: center; gap: 10px; border: 1px dashed #e6deee; border-radius: 8px; padding: 13px 15px; margin-top: 26px; font-size: 11px; color: var(--secondary); }
.local-notice > .icon { width: 15px; height: 15px; color: #af9dc3; }
.local-notice strong { font-weight: 550; color: #8b7b9b; }
.local-notice .text-button { margin-left: auto; font-size: 9px; white-space: nowrap; }
.main-footer { max-width: 1580px; margin: auto; display: flex; justify-content: space-between; padding: 20px 37px 24px; font-size: 9px; color: var(--secondary); gap: 15px; }
.main-footer > span:last-child { display: flex; gap: 8px; align-items: center; font-size: 6px; letter-spacing: 1.2px; }
.main-footer .icon { width: 12px; height: 12px; }
.library-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.input-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: white; border-radius: 8px; padding: 0 13px; color: #aaa0b5; max-width: 420px; width: 100%; }
.input-search .icon { width: 16px; height: 16px; }
.input-search input { border: 0; outline: none; padding: 12px 0; background: none; color: var(--ink); font-size: 12px; width: 100%; min-width: 0; }
.input-search:focus-within { border-color: #ab91e5; box-shadow: 0 0 0 3px #ab91e51a; }
input::placeholder, textarea::placeholder { color: var(--secondary); }
.library-toolbar .selected { color: var(--purple); border-color: #c0acec; background: #f3edff; }
.library-limit { display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 10px; margin-left: auto; white-space: nowrap; }
.library-limit .icon { width: 13px; height: 13px; }
.filter-tabs { display: flex; gap: 19px; border-bottom: 1px solid var(--border); margin-bottom: 25px; overflow: auto; }
.filter-tabs button { padding: 0 1px 13px; position: relative; font-size: 11px; color: var(--secondary); white-space: nowrap; }
.filter-tabs button.active { color: var(--purple); font-weight: 600; }
.filter-tabs button.active::after { content: ''; height: 2px; position: absolute; left: 0; right: 0; bottom: 0; background: var(--purple); border-radius: 2px; }
.filter-tabs button > span { margin-left: 6px; font-size: 8px; padding: 3px 5px; background: #eee7f8; border-radius: 4px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.results-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; }
.results-heading > span { font-size: 10px; color: var(--secondary); }
.upload-strip { display: flex; align-items: center; gap: 15px; margin-top: 30px; padding: 22px; background: #f5f1fb; border: 1px dashed #dacceb; border-radius: 10px; }
.upload-strip > .icon { color: #a68fc4; width: 25px; height: 25px; }
.upload-strip strong { font-size: 12px; font-weight: 550; }
.upload-strip p { font-size: 11px; color: var(--secondary); margin-top: 5px; line-height: 1.8; }
.upload-strip .button { margin-left: auto; }
.drag-over { border: 2px dashed var(--purple); background: #eee7ff; }
.empty-state { text-align: center; padding: 48px 20px; color: #a08aaf; grid-column: 1/-1; width: 100%; border: 1px dashed #e7deee; border-radius: 10px; background: #ffffff55; }
.empty-state > .icon { width: 30px; height: 30px; margin-bottom: 12px; }
.empty-state h3 { font-size: 15px; color: #83728f; font-weight: 550; }
.empty-state p { font-size: 11px; margin-top: 7px; line-height: 1.8; }
.empty-state .button { margin-top: 17px; }
.all-scenes { margin-bottom: 35px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.theme-card { background: #fff; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; padding: 0; text-align: left; transition: box-shadow .2s, transform .2s; }
.theme-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #41364d0d; }
.theme-art { height: 175px; position: relative; overflow: hidden; background: var(--theme-bg); color: var(--theme-accent); padding: 20px; }
.theme-monogram { font-weight: 700; font-size: 18px; letter-spacing: -1px; }
.theme-bubble { font-size: 10px; padding: 10px 14px; position: absolute; border-radius: 13px; box-shadow: 0 3px 6px #00000005; }
.bubble-one { background: #ffffffbb; bottom: 63px; left: 20px; color: #665971; transform: rotate(-3deg); }
.bubble-two { bottom: 22px; right: 28px; background: var(--theme-accent); color: white; transform: rotate(3deg); }
.theme-card-arrow { position: absolute; right: 15px; top: 16px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #ffffff88; }
.theme-card-arrow .icon { width: 14px; height: 14px; }
.theme-card-copy { padding: 17px 18px 20px; }
.theme-card-copy > span { font-size: 9px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--secondary); }
.theme-card-copy h2 { font-size: 14px; margin-top: 7px; font-weight: 550; }
.theme-card-copy p { font-size: 11px; color: var(--secondary); margin-top: 7px; line-height: 1.8; }
.theme-disclaimer { font-size: 11px; line-height: 1.8; color: var(--secondary); margin: 26px 0 15px; max-width: 750px; }
.editor-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.editor-heading > div { display: flex; gap: 9px; align-items: center; }
.save-status { font-size: 11px; color: var(--secondary); margin-right: 8px; }
.editor-title { margin-bottom: 25px; }
.editor-title input { font-size: 27px; font-weight: 600; letter-spacing: -1px; border: 0; border-bottom: 1px solid transparent; background: none; width: 100%; color: var(--ink); padding: 3px 0; }
.editor-title input:hover { border-bottom-color: #eee6f4; }
.editor-title p { color: var(--secondary); font-size: 12px; margin-top: 7px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 23px; align-items: start; }
.script-panel, .preview-panel { background: white; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 19px 20px; border-bottom: 1px solid var(--border); min-height: 59px; }
.panel-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.panel-heading h2 .icon { width: 15px; height: 15px; color: #ae98c5; }
.panel-heading > span { font-size: 10px; color: var(--secondary); }
.live-dot { height: 6px; width: 6px; background: #9bac89; border-radius: 50%; }
.cast-row { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: #fdfbff; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--secondary); }
.cast-avatars { display: flex; padding-left: 5px; }
.cast-avatars > span { width: 25px; height: 25px; border-radius: 50%; background: var(--person); color: white; display: grid; place-items: center; border: 2px solid white; margin-left: -5px; font-size: 9px; }
.cast-row .text-button { margin-left: auto; font-size: 10px; }
.cast-row .text-button .icon { width: 11px; height: 11px; }
.script-lines { padding: 8px 15px; }
.script-line { display: flex; gap: 9px; align-items: flex-start; padding: 17px 0; border-bottom: 1px solid #f1ecf5; }
.script-line:last-child { border-bottom: 0; }
.line-number { font-size: 9px; padding-top: 7px; color: var(--secondary); }
.line-fields { flex: 1; min-width: 0; }
.line-fields select { font-size: 11px; border: 0; background: #f5f0fb; color: #806192; padding: 5px 7px; border-radius: 5px; max-width: 100%; margin-bottom: 9px; }
.line-fields textarea { display: block; width: 100%; border: 1px solid #ede5f5; background: #fff; border-radius: 7px; resize: vertical; font-size: 11px; line-height: 1.7; padding: 10px; color: #776783; min-height: 62px; }
.line-actions { display: flex; flex-direction: column; padding-top: 3px; gap: 3px; }
.line-actions .icon-button { font-size: 12px; padding: 3px; }
.line-actions .icon { width: 12px; height: 12px; }
.add-line { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; background: #faf7fe; color: #806192; font-size: 12px; width: calc(100% - 32px); margin: 8px 16px 16px; border: 1px dashed #e0d3ef; border-radius: 7px; }
.add-line .icon { width: 14px; height: 14px; }
.preview-panel { position: sticky; top: 20px; }
.theme-select-label { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 550; letter-spacing: 1px; color: var(--secondary); padding: 14px 20px; }
.theme-select-label select { border: 1px solid #ede5f3; color: #8a759c; font-size: 10px; background: #fdfaff; border-radius: 5px; padding: 7px 9px; max-width: 70%; }
.editor-preview { background: #f6f2fa; padding: 18px 24px; }
.editor-preview > .chat-surface { box-shadow: 0 5px 14px #4e395814; max-width: 320px; margin: auto; border: 5px solid white; border-radius: 24px; height: 440px; }
.record-button { display: flex; margin: 17px 20px 10px; width: calc(100% - 40px); font-size: 11px; }
.record-button > .icon:last-child { margin-left: auto; }
.preview-hint { font-size: 9px; color: var(--secondary); text-align: center; padding: 0 10px 17px; }
.preview-hint kbd { font-size: 8px; padding: 1px 4px; }
.chat-surface { display: flex; flex-direction: column; background: white; color: #1a1b1f; overflow: hidden; height: 100%; min-height: 250px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; }
.phone-status { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; padding: 13px 19px 7px; }
.chat-header { display: flex; align-items: center; gap: 9px; padding: 8px 13px 12px; border-bottom: 1px solid #f1f1f1; min-height: 51px; }
.chat-header > .icon { color: #4084ed; width: 17px; height: 17px; }
.chat-header > .icon:last-child { margin-left: auto; color: #b6b6bd; width: 12px; height: 12px; }
.chat-header strong { font-size: 11px; font-weight: 600; }
.chat-header small { display: block; font-size: 8px; color: #aba7b1; margin-top: 3px; }
.chat-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: #bfbac9; font-size: 12px; }
.chat-messages { flex: 1; min-height: 0; padding: 17px 13px; overflow-y: auto; scrollbar-width: thin; }
.chat-date { text-align: center; font-size: 8px; color: #b2adb7; margin-bottom: 22px; }
.message { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 13px; animation: message-in .17s ease-out; }
.message-content { max-width: 84%; min-width: 0; }
.outgoing { justify-content: flex-end; }
.bubble { padding: 9px 12px; background: #eeeef0; border-radius: 15px 15px 15px 4px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.outgoing .bubble { background: #4086ef; color: white; border-radius: 15px 15px 4px 15px; }
.delivered { display: block; font-size: 7px; color: #aaa5b1; text-align: right; margin-top: 5px; padding-right: 3px; }
.speaker-name { display: block; font-size: 9px; color: var(--person); font-weight: 600; margin-bottom: 5px; }
.chat-input { display: flex; align-items: center; gap: 9px; padding: 11px 13px 9px; color: #bbb7c0; font-size: 19px; }
.chat-input > div { flex: 1; border: 1px solid #e3dfe9; border-radius: 20px; font-size: 10px; color: #c1bbc9; padding: 7px 11px; }
.chat-input > span:last-child { background: #e3e1e7; color: white; width: 23px; height: 23px; text-align: center; border-radius: 50%; }
.home-indicator { height: 3px; width: 85px; border-radius: 8px; background: #3d3944; margin: 3px auto 7px; flex-shrink: 0; }
.chat-waiting { height: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 15px; color: #bab1c6; font-size: 12px; line-height: 1.8; }
.chat-waiting .icon { width: 30px; height: 30px; }
.person-avatar { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; font-size: 10px; background: var(--person); border-radius: 50%; color: white; }
.theme-android { background: #fff; }
.theme-android .chat-header { background: #f0f3f9; }
.theme-android .outgoing .bubble { background: #d5e4ff; color: #203657; border-radius: 17px; }
.theme-android .incoming .bubble { background: #eef0f4; border-radius: 17px; }
.theme-messenger .outgoing .bubble { background: linear-gradient(135deg,#9b46df,#5467ec); border-radius: 18px; }
.theme-messenger .incoming .bubble { border-radius: 18px; }
.theme-messenger .chat-header > .icon { color: #8c4de0; }
.theme-wechat { background: #ededed; }
.theme-wechat .chat-header { background: #ededed; border-color: #ddd; }
.theme-wechat .phone-status { background: #ededed; }
.theme-wechat .bubble { background: white; border-radius: 4px; }
.theme-wechat .outgoing .bubble { background: #9de968; color: #172616; border-radius: 4px; }
.theme-wechat .chat-input { background: #f7f7f7; }
.theme-wechat .chat-input > div { background: white; border-radius: 4px; }
.theme-aim { border: 3px solid #e1dfd0; border-radius: 2px !important; background: #fff; font-family: "Trebuchet MS", sans-serif; }
.theme-aim .chat-header { background: linear-gradient(#2d5a9e,#143c81); color: white; padding: 12px; }
.theme-aim .chat-header strong { font-size: 13px; }
.theme-aim .chat-header small { color: #bccce6; }
.theme-aim .chat-header > .icon { color: #d3c772; }
.theme-aim .message { justify-content: flex-start; margin-bottom: 12px; }
.theme-aim .message-content { max-width: 100%; }
.theme-aim .speaker-name { color: #be3333; display: inline; font-size: 11px; margin-right: 5px; }
.theme-aim .outgoing .speaker-name { color: #254ea1; }
.theme-aim .bubble { display: inline; background: none; padding: 0; font-size: 12px; color: #222; white-space: pre-wrap; }
.comment-surface .chat-header { justify-content: space-between; padding: 18px 16px; }
.comment-surface .chat-header strong { font-size: 15px; }
.comment-surface .chat-header > .icon { color: #25232a; }
.comment-surface .message { justify-content: flex-start; margin-bottom: 22px; }
.comment-surface .message-content { max-width: calc(100% - 35px); }
.comment-surface .bubble { color: #2a252d; background: none; padding: 0; font-size: 11px; }
.comment-surface .speaker-name { color: #403947; font-size: 10px; margin-top: 1px; }
.comment-intro { color: #b1a6bd; border-bottom: 1px solid #f2ecf6; padding-bottom: 15px; margin-bottom: 22px; font-size: 10px; }
.comment-meta { font-size: 8px; color: #afa5b9; margin-top: 8px; }
.theme-tiktok .chat-header { border-top: 3px solid #6bddcf; }
.theme-youtube .chat-header { border-top: 3px solid #e85858; }
.theme-instagram .chat-header { border-top: 3px solid #d67da4; }
.ai-surface { background: #fbfbfa; }
.ai-surface .chat-header { padding: 18px 16px; }
.ai-surface .chat-header strong { font-size: 15px; }
.ai-surface .message { justify-content: flex-start; margin-bottom: 21px; }
.ai-surface .bubble { font-size: 11px; background: none; color: #423d44; padding: 0; border-radius: 0; }
.ai-surface .message-content { max-width: calc(100% - 36px); }
.ai-surface .speaker-name { color: #68616f; margin-bottom: 7px; }
.ai-disclaimer { font-size: 7px; color: #b2a8b7; text-align: center; padding: 12px; }
.theme-claude { background: #f8f5ef; }
.theme-claude .chat-header { background: #f2eee5; border-color: #e9e2d7; }
.theme-claude .incoming .person-avatar { background: #c58f6e !important; }
.theme-gemini .chat-header { background: #f1f4ff; }
.theme-openai .incoming .person-avatar { background: #5d8a7b !important; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.settings-card { background: white; border: 1px solid var(--border); border-radius: 11px; padding: 26px; }
.settings-card h2 { font-size: 17px; font-weight: 550; margin: 18px 0 12px; letter-spacing: -.4px; }
.settings-card p { font-size: 12px; line-height: 1.9; color: var(--secondary); }
.settings-card .button { margin-top: 22px; margin-bottom: 20px; }
.settings-fact { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #f1eaf6; padding-top: 15px; margin-top: 15px; font-size: 11px; color: var(--secondary); }
.settings-fact strong { font-weight: 500; color: var(--secondary); text-align: right; }
.shortcut-list { list-style: none; padding: 10px 0; margin: 0; }
.shortcut-list li { display: flex; align-items: center; gap: 15px; margin: 14px 0; font-size: 12px; color: var(--secondary); }
.shortcut-list kbd { min-width: 55px; text-align: center; padding: 4px; }
.settings-card .small-muted { font-size: 10px; }
.setup-card { margin-top: 23px; }
.setup-card h2 { margin-top: 0; }
.setup-card p + p { margin-top: 13px; }
.global-search { max-width: 100%; margin-bottom: 28px; }
.search-sound-heading { margin-top: 30px; }
dialog { padding: 26px; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border: 1px solid #e8ddf1; border-radius: 15px; color: var(--ink); box-shadow: 0 20px 100px #21142c25; }
dialog::backdrop { background: #2b1f3a5c; backdrop-filter: blur(4px); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.modal-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -.6px; }
.modal-description { color: var(--secondary); font-size: 12px; line-height: 1.8; margin-bottom: 22px; }
.field-label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 550; color: #91809d; margin-top: 18px; }
.field-label input, .field-label select, .cast-field input { border: 1px solid #e8deef; border-radius: 7px; padding: 11px 12px; width: 100%; min-width: 0; background: white; color: #7c658e; font-size: 12px; }
.file-picker { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 25px 15px; border: 1px dashed #d2bfe4; background: #faf6ff; border-radius: 9px; cursor: pointer; overflow: hidden; }
.file-picker .icon { color: #b496d0; width: 26px; height: 26px; }
.file-picker strong { font-size: 12px; color: #806192; text-align: center; overflow-wrap: anywhere; }
.file-picker span { color: var(--secondary); font-size: 10px; }
.file-picker input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; top: 0; left: 0; }
.file-picker:focus-within { outline: 3px solid #aa91f8; outline-offset: 4px; }
.form-error { font-size: 11px; line-height: 1.8; color: #b36172; margin-top: 15px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; border-top: 1px solid #f1eaf6; padding-top: 20px; }
.cast-field { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.cast-field .person-avatar { width: 29px; height: 29px; }
.signin-art { display: grid; place-items: center; background: #f5edff; border-radius: 10px; padding: 25px; margin: 15px 0 20px; color: #aa8bcc; }
.signin-art .icon { width: 40px; height: 40px; }
.setup-steps { list-style: none; margin: 0 0 20px; padding: 0; }
.setup-steps li { display: flex; gap: 12px; margin-bottom: 18px; }
.setup-steps li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #f4ecfc; color: #a17bbe; font-size: 10px; }
.setup-steps strong { font-size: 12px; font-weight: 550; }
.setup-steps p { font-size: 11px; color: var(--secondary); margin-top: 4px; line-height: 1.7; }
.help-list h3 { display: flex; gap: 9px; align-items: center; margin: 24px 0 10px; font-size: 13px; font-weight: 550; }
.help-list h3 .icon { color: #aa8ac6; width: 17px; height: 17px; }
.help-list p { color: var(--secondary); font-size: 12px; line-height: 1.9; }
.help-list p.small-muted { font-size: 10px; margin-top: 20px; }
#toast { position: fixed; left: calc(50% + 100px); bottom: 26px; transform: translate(-50%, 20px); z-index: 30; border: 1px solid #e0d3ee; background: #fff; box-shadow: 0 8px 30px #44325214; padding: 14px 20px; border-radius: 9px; font-size: 12px; color: #857096; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(500px, calc(100vw - 32px)); line-height: 1.7; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#toast.error { color: #a7596c; border-color: #edd4db; background: #fffafd; }
.audio-player { display: flex; align-items: center; gap: 16px; position: fixed; bottom: 20px; left: calc(226px + 37px); right: 37px; background: #fff; box-shadow: 0 8px 35px #4932571f; border: 1px solid #e2d6ee; border-radius: 11px; padding: 13px 20px; z-index: 7; }
.player-symbol { display: grid; place-items: center; width: 36px; height: 36px; background: #f0e8fc; border-radius: 8px; color: #b08bd0; }
.player-title { min-width: 100px; max-width: 200px; }
.player-title strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title small { font-size: 7px; letter-spacing: 1px; color: #af98bf; margin-top: 5px; display: block; }
.player-wave { flex: 1; min-width: 0; color: #b49bce; padding: 0 15px; }
.waveform.large { height: 28px; }
.volume-control { display: flex; align-items: center; gap: 8px; color: #b49bc5; }
.volume-control .icon { width: 16px; height: 16px; }
.volume-control input { width: 75px; accent-color: var(--purple); height: 3px; }
.recording-stage { display: flex; min-height: 100dvh; height: 100dvh; align-items: center; justify-content: center; background: #eeebf1; position: relative; padding: 55px 20px; }
.recording-stage:fullscreen { background: #eeebf1; }
.recording-toolbar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 20px; background: #ffffffed; opacity: 0; transition: opacity .2s; }
.recording-toolbar:hover, .recording-toolbar:focus-within { opacity: 1; }
.recording-toolbar > span { font-size: 12px; color: #9d84ae; }
.recording-toolbar > span > strong { margin-left: 14px; color: #b7a5c3; font-size: 10px; font-weight: 500; }
.recording-toolbar > div { display: flex; align-items: center; gap: 10px; }
.recording-chat { width: min(390px, 100%); height: min(720px, calc(100dvh - 115px)); cursor: pointer; border: 7px solid #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 10px 40px #56436013; }
.recording-chat .chat-surface { min-height: 100%; }
.recording-chat .bubble { font-size: 16px; padding: 12px 15px; }
.recording-chat .chat-header { padding: 13px 17px; }
.recording-chat .chat-header strong { font-size: 14px; }
.recording-chat .chat-messages { padding: 23px 17px; }
.recording-chat .phone-status { padding: 16px 22px 10px; font-size: 12px; }
.recording-chat .message { margin-bottom: 16px; }
.recording-chat .speaker-name { font-size: 12px; }
.recording-chat .ai-disclaimer { font-size: 9px; }
.recording-controls { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 13px; flex-wrap: wrap; justify-content: center; width: max-content; max-width: 95%; opacity: 0; transition: opacity .2s; padding: 12px; }
.recording-controls:hover, .recording-controls:focus-within { opacity: 1; }
.recording-stage:has(.chat-waiting) .recording-controls { opacity: 1; }
.recording-controls small { width: 100%; text-align: center; font-size: 8px; color: #ac96bc; }
.record-next { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #9d82b0; }
.record-next .icon { width: 13px; height: 13px; }
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #a58aba; font-size: 13px; padding: 25px; text-align: center; }
.boot h1 { font-size: 22px; }
.boot-error > .icon { width: 45px; height: 45px; }
@keyframes message-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) {
  .hero-banner { min-height: 340px; }
  .hero-copy { padding: 36px 45px; }
  .hero-copy h2 { font-size: 47px; }
  .hero-copy > p { font-size: 13px; }
  .hero-phone { left: 155px; width: 240px; height: 390px; }
  .hero-phone .bubble { font-size: 11px; }
  .hero-phone .chat-messages { height: 250px; }
  .scene-preview { height: 180px; }
  .scene-mini-chat { width: 260px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 205px; padding-left: 12px; padding-right: 12px; }
  .main-shell { margin-left: 205px; }
  main#main { padding: 28px 25px 20px; }
  .topbar { padding: 0 25px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { align-self: flex-start; padding-top: 19px; }
  h1 { font-size: 25px; }
  .heading-actions .button { font-size: 10px; padding: 10px 11px; gap: 7px; }
  .hero-phone { left: 65px; }
  .mini-sticker { right: 8px; top: 21px; }
  .spark-one { left: 5px; }
  .spark-two { right: 14px; bottom: 62px; }
  .space-sticker { left: -10px; }
  .stat-card { padding: 17px 12px; gap: 10px; }
  .stat-icon { width: 33px; height: 33px; border-radius: 9px; }
  .stat-value { gap: 7px; font-size: 22px; flex-wrap: wrap; }
  .stat-value span { font-size: 8px; }
  .stat-card p { font-size: 8px; }
  .sound-grid.compact { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  .sound-grid.compact .sound-card { padding: 11px 10px 8px; }
  .sound-grid.compact .waveform { gap: 1px; }
  .sound-grid.compact .sound-wave { gap: 7px; }
  .sound-grid.compact .sound-play { width: 25px; height: 25px; }
  .scene-mini-chat { width: 190px; }
  .scene-title { font-size: 10px; }
  .scene-meta { font-size: 8px; }
  .editor-layout { grid-template-columns: minmax(0, 1.2fr) minmax(270px, 1fr); gap: 16px; }
  .editor-preview { padding: 15px; }
  .audio-player { left: 230px; right: 25px; }
  .library-limit { display: none; }
}
@media (max-width: 1000px) {
  .page-heading { flex-direction: column; gap: 16px; margin-bottom: 23px; }
  .heading-actions { align-self: flex-start; padding: 0; }
  .hero-copy { padding: 26px; }
  .hero-copy h2 { font-size: 36px; }
  .hero-copy > p { font-size: 10px; }
  .hero-art { width: 46%; }
  .hero-phone { left: 28px; width: 185px; }
  .space-sticker { bottom: 33px; left: -20px; padding: 9px; gap: 7px; }
  .space-sticker span { font-size: 8px; }
  .mini-sticker { display: none; }
  .scene-grid { gap: 12px; }
  .scene-preview { height: 135px; }
  .scene-mini-chat { width: 165px; }
  .scene-info { padding: 12px 11px 8px; }
  .sound-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .sound-grid.compact .sound-card { padding: 13px 15px 9px; }
  .sound-grid.compact .sound-play { width: 31px; height: 31px; }
  .stat-card { align-items: flex-start; }
  .stat-value { flex-direction: column; gap: 6px; }
  .stat-value span { line-height: 1.5; font-size: 9px; }
  .stat-card p { font-size: 7px; line-height: 1.7; }
  .local-notice { flex-wrap: wrap; line-height: 1.8; }
  .local-notice > span { flex: 1; }
  .local-notice .text-button { width: 100%; margin-left: 25px; }
  .search-trigger span, .search-trigger kbd, .header-divider { display: none; }
  .theme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .theme-art { height: 165px; }
  .sound-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editor-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr); gap: 13px; }
  .script-lines { padding: 5px 10px; }
  .line-actions { gap: 2px; }
  .script-line { gap: 6px; }
  .line-fields textarea { font-size: 10px; padding: 8px; }
  .editor-preview { padding: 13px 10px; }
  .preview-hint { font-size: 7px; }
  .record-button { font-size: 9px; margin: 13px 10px 10px; width: calc(100% - 20px); padding: 11px 9px; }
  .theme-select-label { padding: 13px 10px; }
  .cast-row { padding: 13px 10px; gap: 6px; flex-wrap: wrap; }
  .cast-row .text-button { font-size: 9px; }
  .editor-heading { gap: 12px; }
  .editor-heading .button { font-size: 9px; padding: 10px; }
  .editor-heading .save-status { font-size: 9px; }
  .player-wave { display: none; }
  .volume-control { margin-left: auto; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { display: none; width: 230px; padding: 24px 18px 0; box-shadow: 5px 0 30px #48315215; }
  .sidebar.mobile-open { display: flex; z-index: 12; }
  .nav-scrim { position: fixed; inset: 0; background: #35234455; z-index: 11; }
  .main-shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .breadcrumb .mobile-menu .icon { width: 19px; height: 19px; }
  .topbar { height: 65px; padding: 0 18px; gap: 10px; }
  .breadcrumb { gap: 10px; }
  .breadcrumb > span { display: none; }
  .breadcrumb > .icon { display: none; }
  .mode-label { display: none; }
  .topbar-right { gap: 10px; }
  main#main { padding: 26px 20px 20px; }
  .eyebrow { font-size: 7px; }
  h1 { font-size: 28px; max-width: 450px; }
  .page-description { font-size: 11px; max-width: 400px; }
  .hero-banner { min-height: 307px; }
  .hero-copy { padding: 25px; width: 58%; }
  .hero-copy h2 { font-size: 37px; }
  .hero-art { width: 47%; }
  .hero-phone { left: 40px; }
  .space-sticker { left: 0; }
  .hero-copy > p { font-size: 11px; }
  .spark-one { top: 24px; left: -5px; font-size: 23px; }
  .stats-grid { gap: 10px; }
  .stat-card { gap: 10px; padding: 15px 11px; }
  .stat-card .stat-icon { width: 30px; height: 30px; }
  .stat-card p { display: none; }
  .stat-value span { font-size: 8px; }
  .scene-mini-chat { width: 175px; }
  .scene-title { font-size: 10px; }
  .scene-meta > span { font-size: 7px; }
  .section-heading h2 { font-size: 14px; }
  .section-heading .text-button { font-size: 9px; }
  .main-footer { padding: 20px; }
  .audio-player { left: 15px; right: 15px; bottom: 15px; padding: 12px 14px; }
  #toast { left: 50%; }
  .editor-layout { grid-template-columns: 1fr 1fr; }
  .preview-panel { top: 12px; }
  .recording-chat { height: min(720px, calc(100dvh - 105px)); }
}
@media (max-width: 520px) {
  main#main { padding: 24px 17px 17px; }
  .hero-banner { height: auto; min-height: 303px; }
  .hero-copy { padding: 23px 20px; width: 80%; }
  .hero-copy h2 { font-size: 32px; margin-top: 17px; }
  .hero-copy > p { font-size: 10px; max-width: 200px; }
  .hero-copy > p br { display: none; }
  .hero-badge { font-size: 6px; letter-spacing: .65px; }
  .hero-art { width: 38%; }
  .hero-phone { left: 22px; top: 58px; width: 166px; height: 310px; transform: rotate(12deg); opacity: .6; }
  .hero-phone .bubble { font-size: 8px; }
  .space-sticker { left: -10px; bottom: 22px; gap: 5px; border-radius: 7px; padding: 7px; }
  .space-sticker span { font-size: 7px; }
  .space-sticker kbd { font-size: 7px; padding: 4px 6px; }
  .space-sticker .icon { width: 8px; height: 8px; }
  .spark-two { display: none; }
  .hero-footnote { font-size: 7px; }
  .stats-grid { gap: 7px; margin-top: 14px; }
  .stat-card { flex-direction: column; padding: 13px 11px; border-radius: 9px; gap: 11px; }
  .stat-card .stat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .stat-card .stat-icon .icon { width: 14px; height: 14px; }
  .stat-value { font-size: 23px; gap: 7px; }
  .stat-value span { font-size: 8px; line-height: 1.5; max-width: 80px; }
  .section-block { margin-top: 28px; }
  .section-heading { gap: 8px; }
  .section-heading h2 { font-size: 13px; line-height: 1.6; gap: 6px; }
  .section-heading p { font-size: 8px; line-height: 1.7; }
  .section-heading .text-button { font-size: 8px; gap: 5px; white-space: nowrap; }
  .section-heading .text-button .icon { width: 12px; height: 12px; }
  .scene-grid { grid-template-columns: 1fr; gap: 14px; }
  .scene-preview { height: 160px; }
  .scene-mini-chat { width: 230px; top: 20px; }
  .scene-mini-chat .bubble { font-size: 9px; }
  .scene-title { font-size: 12px; }
  .scene-meta > span { font-size: 9px; }
  .scene-info { padding: 15px 16px 10px; }
  .sound-grid, .sound-grid.compact { gap: 10px; }
  .sound-card, .sound-grid.compact .sound-card { padding: 11px 11px 8px; }
  .sound-card h3 { font-size: 10px; }
  .sound-wave { height: 61px; gap: 7px; }
  .sound-play, .sound-grid.compact .sound-play { width: 27px; height: 27px; }
  .waveform { gap: 1px; }
  .category-label { font-size: 6px; padding: 3px 5px; }
  .sound-meta { font-size: 7px; }
  .sound-meta .icon { width: 10px; height: 10px; }
  .favorite .icon { width: 12px; height: 12px; }
  .library-toolbar { flex-wrap: wrap; gap: 8px; }
  .library-toolbar .input-search { flex: 1; }
  .library-toolbar .button { font-size: 10px; padding: 11px; }
  .filter-tabs { gap: 20px; }
  .filter-tabs button { font-size: 10px; }
  .results-heading > span { font-size: 7px; }
  .upload-strip { padding: 20px 15px; gap: 11px; flex-wrap: wrap; }
  .upload-strip > div { flex: 1; }
  .upload-strip strong { font-size: 10px; }
  .upload-strip p { font-size: 9px; }
  .upload-strip .button { width: 100%; }
  .theme-grid { gap: 12px; }
  .theme-art { height: 150px; padding: 17px 13px; }
  .theme-monogram { font-size: 15px; }
  .theme-bubble { font-size: 8px; padding: 8px 10px; }
  .bubble-one { left: 9px; bottom: 56px; }
  .bubble-two { right: 9px; bottom: 20px; }
  .theme-card-copy { padding: 15px 13px; }
  .theme-card-copy h2 { font-size: 12px; }
  .theme-card-copy p { font-size: 9px; }
  .theme-card-copy > span { font-size: 7px; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-heading { align-items: flex-start; gap: 12px; }
  .editor-heading > .text-button { font-size: 10px; }
  .editor-heading > div { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
  .editor-heading .save-status { width: 100%; text-align: right; order: 2; }
  .editor-title input { font-size: 24px; }
  .preview-panel { position: static; }
  .editor-preview { padding: 20px; }
  .record-button { width: calc(100% - 40px); margin: 18px 20px 12px; font-size: 11px; padding: 12px; }
  .preview-hint { font-size: 8px; }
  .script-lines { padding: 8px 15px; }
  .line-fields textarea { font-size: 12px; }
  .theme-select-label { padding: 16px 20px; }
  .cast-row { padding: 13px 18px; }
  .cast-row .text-button { font-size: 10px; }
  .settings-card { padding: 22px; }
  .settings-card p { font-size: 11px; }
  .settings-fact { font-size: 9px; }
  .player-symbol { display: none; }
  .audio-player { gap: 11px; }
  .player-title { flex: 1; min-width: 0; }
  .player-title strong { font-size: 10px; }
  .player-title small { font-size: 6px; }
  .volume-control { display: none; }
  .recording-toolbar { padding: 10px; }
  .recording-toolbar > span { display: none; }
  .recording-toolbar .button { font-size: 9px; padding: 10px; }
  .recording-chat { border-width: 5px; border-radius: 25px; }
  .recording-chat .bubble { font-size: 14px; }
  .main-footer { font-size: 7px; padding: 18px; }
  .main-footer > span:last-child { font-size: 5px; letter-spacing: .6px; }
  .modal-heading h2 { font-size: 18px; }
  dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
