.studio { --fg:#e5e1df; --muted:#b5b0ae; --rose:#bc929d; --line:#454247; color:var(--fg); background:#1c1d20; color-scheme:dark; min-height:100svh; font-family:"PingFang SC","Helvetica Neue",Arial,sans-serif; font-weight:400; isolation:isolate; position:relative; }
.studio::before { content:""; position:fixed; inset:0; background:url('/assets/images/night-grain.png') center/cover; opacity:.13; pointer-events:none; z-index:-1; }
.studio button,.studio a,.studio select,.studio input,.studio textarea { -webkit-tap-highlight-color:transparent; }
.studio button { color:inherit; border:0; background:none; }
.studio a { text-decoration:none; }
.studio button,.studio a { transition:background .15s,color .15s; }
.studio button:hover,.studio a:hover { color:#fff; }
.studio :focus-visible { outline:2px solid var(--rose); outline-offset:4px; }
.studio button:disabled { opacity:.5; }
.studio img:not(.voice-art) { width:22px; height:22px; flex-shrink:0; filter:invert(85%); }
.studio h1,.studio h2,.studio p { margin:0; }
.studio h1 { font-size:38px; line-height:1.3; font-weight:500; letter-spacing:.025em; }
.studio h2 { font-size:22px; font-weight:400; }
.studio-skip { position:fixed; top:10px; left:16px; transform:translateY(-180%); background:#303034; padding:12px; z-index:10; }
.studio-skip:focus { transform:none; }
.studio-nav { position:fixed; width:236px; inset:0 auto 0 0; padding:18px 20px; border-right:1px solid var(--line); display:flex; flex-direction:column; }
.studio-brand { font-size:34px; letter-spacing:.02em; margin:0 18px 43px; }
.studio-nav nav { display:flex; flex-direction:column; gap:8px; }
.studio-nav nav a { min-height:54px; display:flex; align-items:center; gap:20px; font-size:17px; padding:0 20px; border-left:2px solid transparent; border-radius:8px; }
.studio-nav nav a[aria-current] { background:#bc929d22; border-left-color:var(--rose); }
.studio-nav nav a:hover { background:#ffffff09; }
.nav-divider { border-top:1px solid var(--line); margin:14px 4px 6px; }
.studio .nav-signature { margin:auto 18px 32px; line-height:1.8; color:var(--muted); font-size:16px; }
.studio-main { margin-left:236px; padding:30px 30px 65px 38px; max-width:1730px; }
.studio-top { min-height:24px; display:flex; justify-content:space-between; align-items:center; gap:20px; color:var(--muted); font-size:12px; letter-spacing:.12em; margin-bottom:46px; }
.studio-top button { display:flex; align-items:center; gap:8px; font-size:13px; min-height:32px; letter-spacing:0; }
.studio-top button img { width:16px; height:16px; }
.creation-grid { display:grid; grid-template-columns:minmax(0,1fr) 338px; gap:32px; }
.writing-area { min-width:0; }
.studio .studio-lead { margin-top:20px; color:var(--muted); font-size:17px; letter-spacing:.06em; }
.editor-wrap { margin-top:26px; border:1px solid #555057; border-radius:8px; position:relative; min-height:356px; }
.editor-wrap:focus-within { border-color:var(--rose); }
.editor-wrap textarea { display:block; background:none; border:0; border-radius:8px; padding:28px 30px 60px; min-height:354px; width:100%; resize:vertical; color:var(--fg); font-size:22px; line-height:1.9; }
.editor-wrap textarea:focus { outline:none; }
.editor-wrap textarea::placeholder { color:#938e92; }
.studio .char-count { position:absolute; bottom:22px; right:24px; color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums; }
.studio .char-count[data-over=true] { color:#f1adba; }
.editor-actions { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-top:24px; }
.templates>span { display:block; font-size:14px; color:var(--muted); margin-bottom:10px; }
.templates>div { display:flex; flex-wrap:wrap; gap:12px; }
.templates button { border:1px solid #555057; border-radius:24px; min-height:40px; padding:8px 20px; font-size:14px; }
.templates button:hover { background:#ffffff09; }
.studio .studio-primary { background:var(--rose); color:#241d23; border:1px solid transparent; border-radius:8px; min-height:48px; padding:12px 24px; font-size:16px; }
.studio .studio-primary:hover { background:#cea4ae; color:#20191e; }
.studio .generate-button { display:flex; justify-content:center; align-items:center; gap:12px; min-width:230px; min-height:56px; border-radius:32px; font-size:18px; }
.studio .studio-primary img { filter:none; }
.editor-feedback { display:flex; justify-content:space-between; gap:12px; min-height:44px; padding-top:12px; align-items:flex-start; font-size:13px; line-height:1.6; color:var(--muted); }
.editor-feedback button { flex-shrink:0; text-decoration:underline; min-height:28px; }
[data-kind=error] { color:#eeb3c0; }
.voice-inspector { border-left:1px solid var(--line); padding-left:38px; }
.voice-inspector h2 { border-bottom:1px solid var(--line); padding:5px 0 22px; }
.current-voice { display:flex; align-items:center; gap:18px; width:100%; text-align:left; padding:36px 0 28px; min-height:120px; }
.voice-art { width:80px; height:80px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.current-voice>span { min-width:0; }
.current-voice strong { display:block; font-weight:400; font-size:20px; overflow-wrap:anywhere; }
.current-voice small { display:block; font-size:14px; color:var(--muted); margin-top:6px; }
.current-voice .chevron { margin-left:auto; }
.voice-actions { display:flex; gap:12px; }
.studio .studio-secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid #5b565d; border-radius:8px; min-height:48px; padding:10px 15px; font-size:14px; }
.studio .studio-secondary:hover { background:#ffffff09; }
.voice-actions .studio-secondary { flex:1; white-space:nowrap; }
.studio .sample-note { margin-top:12px; font-size:12px; line-height:1.6; color:var(--muted); min-height:38px; }
.format-settings { margin-top:22px; padding-top:30px; border-top:1px solid var(--line); }
.format-settings label { display:block; font-size:16px; margin-bottom:12px; }
.studio select,.studio input[type=search],.studio input[type=password] { width:100%; background:#242327; color:var(--fg); border:1px solid #57525a; border-radius:8px; min-height:50px; padding:10px 16px; }
.studio select { padding-right:32px; }
.format-settings p,.studio .generation-note { font-size:13px; line-height:1.7; color:var(--muted); margin-top:14px; }
.studio .generation-note { margin-top:28px; }
.studio-result { border-top:1px solid var(--line); margin-top:10px; padding-top:32px; }
.result-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.result-heading>span { font-size:12px; color:var(--muted); }
.result-transport { display:flex; align-items:center; gap:28px; margin:28px 0 26px; }
.studio .result-play { display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:var(--rose); flex-shrink:0; }
.studio .result-play img { width:25px; height:25px; filter:none; }
.result-transport input[type=range] { min-width:40px; width:100%; height:44px; accent-color:var(--rose); cursor:pointer; }
.result-time { white-space:nowrap; color:var(--muted); font-size:14px; font-variant-numeric:tabular-nums; }
.result-download { padding:12px 26px; border-left:1px solid var(--line); display:flex; align-items:center; gap:12px; white-space:nowrap; min-height:44px; }
.result-text { font-size:16px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; max-height:140px; overflow:auto; }
.studio .result-detail { color:var(--muted); font-size:13px; line-height:1.6; margin-top:8px; overflow-wrap:anywhere; }
.result-empty { display:flex; align-items:center; gap:22px; min-height:150px; color:var(--muted); }
.studio .result-empty>img { width:36px; height:36px; opacity:.7; }
.result-empty p { font-size:16px; line-height:1.9; }
.result-empty p span { font-size:14px; }
.result-empty button { margin-left:auto; min-height:44px; text-decoration:underline; }
.studio-dialog { color:var(--fg); background:#242327; border:1px solid #57525a; padding:30px; border-radius:14px; width:min(650px,calc(100% - 40px)); max-height:calc(100svh - 64px); overflow:auto; }
.studio-dialog::backdrop { background:#070609ad; backdrop-filter:blur(5px); }
.studio-dialog header { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.studio-dialog header p { font-size:11px; color:var(--muted); letter-spacing:.15em; margin-bottom:8px; }
.studio-dialog .icon-button { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; }
.studio-dialog>p,.studio-dialog small { display:block; color:var(--muted); line-height:1.8; font-size:14px; margin-bottom:24px; }
.key-dialog label { display:block; margin-bottom:10px; font-size:14px; }
.key-dialog [role=status] { font-size:14px; min-height:40px; margin-top:10px; line-height:1.7; }
.key-actions { display:flex; justify-content:flex-end; gap:12px; margin-bottom:22px; }
.key-account { display:block; min-height:44px; font-size:14px; text-decoration:underline!important; color:var(--muted); }
.browser-tabs { display:flex; gap:24px; border-bottom:1px solid var(--line); margin-bottom:20px; }
.browser-tabs button { padding:10px 0 14px; border-bottom:2px solid transparent; font-size:15px; min-height:44px; }
.browser-tabs button[aria-pressed=true] { border-bottom-color:var(--rose); color:#eccad3; }
.voice-filters { display:flex; gap:12px; margin-bottom:16px; }
.voice-filters select { width:135px; }
.voice-list { display:flex; flex-direction:column; }
.voice-row { display:flex; gap:16px; align-items:center; border-bottom:1px solid var(--line); padding:20px 4px; }
.voice-row .voice-art { width:46px; height:46px; }
.voice-row .voice-description { flex:1; min-width:0; }
.voice-row strong { display:block; font-size:16px; font-weight:400; overflow-wrap:anywhere; }
.voice-row small { margin:6px 0 0; font-size:12px; color:var(--muted); }
.voice-row .icon-button { width:44px; height:44px; }
.voice-row button[data-use] { min-height:44px; font-size:14px; padding:6px 12px; border:1px solid #57525a; border-radius:6px; flex-shrink:0; }
.voice-row[data-selected=true] { background:#bc929d0d; }
.voice-row[data-selected=true] button[data-use] { border-color:var(--rose); color:#eccad3; }
.studio .browser-note { font-size:13px; line-height:1.8; color:var(--muted); margin:20px 0; }
.browser-empty { padding:32px 0; line-height:1.8; color:var(--muted); }
.browser-empty button { margin-top:16px; }
.library-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:36px; }
.library-heading>a { color:var(--muted); font-size:14px; min-height:44px; display:flex; align-items:center; }
.voice-library { max-width:1030px; }
.voice-library .voice-row { padding:24px 8px; }
@media(min-width:1700px) { .studio-main { padding-right:60px; } .creation-grid { grid-template-columns:minmax(0,1fr) 350px; } }
@media(max-width:1250px) { .studio-nav { width:190px; padding-inline:14px; } .studio-brand { margin-inline:12px; font-size:30px; } .studio-nav nav a { padding-inline:14px; gap:14px; font-size:15px; } .studio-main { margin-left:190px; padding-inline:28px; } .creation-grid { grid-template-columns:minmax(0,1fr) 260px; gap:24px; } .voice-inspector { padding-left:24px; } .voice-art { width:60px; height:60px; } .voice-actions { flex-direction:column; gap:8px; } .editor-actions { align-items:stretch; flex-direction:column; } .generate-button { align-self:flex-end; } .editor-wrap textarea { font-size:20px; padding-inline:22px; } }
@media(max-width:900px) { .studio-nav { position:static; width:100%; padding:20px 26px; border-right:0; border-bottom:1px solid var(--line); flex-direction:row; align-items:center; justify-content:space-between; } .studio-brand { margin:0; font-size:28px; } .studio-nav nav { flex-direction:row; gap:4px; } .studio-nav nav a { padding:0 12px; min-height:44px; border-left:0; border-bottom:2px solid transparent; border-radius:0; } .studio-nav nav a[aria-current] { background:none; border-bottom-color:var(--rose); } .studio-nav nav img,.nav-divider,.nav-signature { display:none!important; } .studio-main { margin-left:0; padding:24px 28px 50px; } .studio-top { margin-bottom:28px; } .creation-grid { grid-template-columns:minmax(0,1fr) 235px; gap:22px; } .studio h1 { font-size:30px; } .current-voice { gap:12px; } .current-voice strong { font-size:17px; } .voice-art { width:48px; height:48px; } .studio .chevron { width:16px; height:16px; } .result-transport { gap:16px; } .result-download { padding-inline:12px; } }
@media(max-width:650px) { .studio-nav { padding:18px 20px; align-items:flex-start; } .studio-brand { font-size:27px; line-height:44px; } .studio-nav nav { display:grid; grid-template-columns:repeat(2,auto); gap:0; } .studio-nav nav a { font-size:13px; justify-content:center; min-height:36px; padding:0 10px; } .studio-nav nav a:nth-last-child(-n+2) { color:var(--muted); font-size:12px; } .studio-main { padding:18px 20px 40px; } .studio-top { font-size:10px; gap:10px; margin-bottom:28px; } .studio-top button { font-size:12px; } .creation-grid { display:flex; flex-direction:column; gap:16px; } .writing-area { display:contents; } .writing-area h1 { order:0; font-size:30px; } .studio .studio-lead { order:1; margin-top:-6px; font-size:15px; } .voice-inspector { order:2; border:0; padding:0; display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px; margin-top:8px; } .voice-inspector h2,.voice-inspector .generation-note { display:none; } .current-voice { padding:8px 0; min-height:60px; } .current-voice small { font-size:12px; } .voice-actions { flex-direction:row; } .voice-actions .studio-secondary { min-height:44px; padding:8px 12px; } .voice-actions [data-open-voices] { display:none; } .studio .sample-note { grid-column:1/-1; margin:0; min-height:0; font-size:11px; } .format-settings { grid-column:1/-1; margin:8px 0 0; padding:12px 0; display:flex; align-items:center; gap:16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); } .format-settings label { font-size:13px; margin:0; } .format-settings select { width:auto; flex:1; min-height:42px; font-size:14px; } .format-settings p { display:none; } .editor-wrap { order:3; margin:4px 0 0; min-height:245px; } .editor-wrap textarea { min-height:243px; font-size:18px; padding:20px 18px 60px; } .studio .char-count { font-size:12px; bottom:18px; right:18px; } .editor-actions { order:4; margin-top:0; gap:18px; } .templates>div { gap:8px; } .templates button { min-height:44px; font-size:13px; padding:8px 16px; } .studio .generate-button { width:100%; min-height:52px; } .editor-feedback { order:5; padding:0; min-height:26px; } .studio-result { margin-top:8px; padding-top:24px; } .studio h2 { font-size:20px; } .result-empty { gap:14px; flex-wrap:wrap; padding:24px 0; } .result-empty>img { display:none; } .result-empty button { margin:0; } .result-transport { flex-wrap:wrap; gap:14px; margin:22px 0; } .studio .result-play { width:48px; height:48px; } .result-transport input { flex:1; } .result-time { order:3; font-size:12px; } .result-download { order:4; margin-left:auto; padding:0; border:0; font-size:14px; } .result-text { font-size:14px; } .studio-dialog { width:calc(100% - 24px); max-height:calc(100svh - 32px); padding:24px 20px; } .voice-picker { margin:auto auto 0; border-bottom:0; border-radius:16px 16px 0 0; width:100%; max-height:90svh; padding-bottom:calc(24px + env(safe-area-inset-bottom)); } .voice-filters { gap:8px; } .voice-filters select { width:104px; padding-inline:10px; } .voice-filters input { min-width:0; } .voice-row { gap:10px; } .voice-row .voice-art { width:36px; height:36px; } .voice-row strong { font-size:14px; } .voice-row button[data-use] { padding-inline:8px; font-size:12px; } .library-heading { display:block; } .library-heading>a { margin-top:14px; } }
@media(prefers-reduced-motion:reduce) { .studio * { transition:none!important; scroll-behavior:auto!important; } }
@media(max-width:650px) { .studio-main { padding-top:16px; } .studio-top { margin-bottom:16px; } .creation-grid { gap:12px; } .voice-inspector { margin-top:0; } .editor-wrap { min-height:204px; } .editor-wrap textarea { min-height:202px; } }
@media(max-width:650px) { .studio-dialog.voice-picker { max-width:100%; width:100%; } }
@media(max-width:360px) { .voice-actions img { display:none; } .current-voice strong { font-size:16px; } .current-voice { gap:8px; } .current-voice .voice-art { width:40px; height:40px; } }
