.audio-chat{display:flex;flex-direction:column;width:min(1120px,100%);height:calc(100dvh - 132px);min-height:520px;max-height:1400px;margin:0 auto;position:relative;min-width:0}.chat-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:42px;flex:none;margin:0 0 9px;padding:0 5px}.chat-title{display:flex;align-items:center;gap:6px;min-width:0;color:var(--st-muted);font-size:14px}.chat-title>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:440px}.chat-title .icon-btn{box-shadow:none!important;background:transparent!important;color:var(--st-muted)}.chat-top-actions{display:flex;align-items:center;gap:3px;flex:none}.chat-top-actions>.btn{font-size:12px;min-height:35px;padding:0 10px;color:var(--st-muted);gap:7px}.chat-top-actions>.btn .icon{width:17px;height:17px}.chat-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:4px 5px 20px;scrollbar-gutter:stable}.chat-thread{display:flex;flex-direction:column;gap:21px;max-width:900px;margin:12px auto 0}.chat-message{display:flex;width:100%;min-width:0}.chat-user-message{justify-content:flex-end}.chat-user-bubble{max-width:min(78%,680px);padding:16px 20px;border-radius:24px 24px 7px 24px;background:linear-gradient(135deg,rgba(66,120,220,.19),rgba(66,117,209,.085));box-shadow:inset 1px 1px 1px rgba(143,184,255,.05);font-size:15px;line-height:1.65;min-width:0}.chat-user-bubble>p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}.chat-assistant-message{justify-content:flex-start}.chat-task{width:min(670px,92%);border-radius:24px!important;padding:21px!important;--storage-glass-tint:.25}.chat-task-heading{display:flex;align-items:center;gap:10px;min-width:0}.chat-task-heading h3{font-size:16px;letter-spacing:-.025em;font-weight:550;flex:1;min-width:0}.chat-assistant-symbol{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:12px;color:var(--accent-display);background:var(--st-hover)}.chat-draft-badge{font-size:10px!important;background:var(--st-soft)!important;color:var(--st-muted)!important;font-weight:400;padding:5px 9px}.chat-task-summary{margin-top:14px!important;line-height:1.6!important;font-size:13px;color:var(--st-muted);overflow-wrap:anywhere}.chat-task-tags{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin:15px 0 19px;color:var(--st-muted)}.chat-task-tags>span{display:inline-flex;align-items:center;gap:5px;font-size:11px}.chat-task-tags .icon{opacity:.8}.chat-task-footer{display:flex;align-items:center;gap:7px}.chat-task-footer>.btn{font-size:12px;min-height:38px;padding:0 14px;gap:7px}.chat-task-footer>.icon-btn{min-height:36px;min-width:36px;width:36px;background:transparent!important;box-shadow:none!important;color:var(--st-muted)}.chat-task-cost{font-size:12px;margin-left:auto;color:var(--st-muted);white-space:nowrap}.chat-browser-label{display:block;margin:9px 2px 0;font-size:10px;color:var(--st-muted)}.chat-bottom{flex:none;padding:7px 5px 0;min-width:0}.chat-mode-bar{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:none;padding:0 2px 11px;flex-wrap:nowrap}.chat-mode-bar::-webkit-scrollbar{display:none}.chat-mode{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 11px;border-radius:999px;color:var(--st-muted);font-size:12px;white-space:nowrap;min-height:35px;flex:none;transition:background .15s,color .15s}.chat-mode>.icon{width:16px;height:16px}.chat-mode:hover{background:var(--st-soft);color:var(--st-text)}.chat-mode.active{background:var(--st-hover);color:var(--accent-display)}.chat-composer{border-radius:27px!important;padding:13px 15px 11px!important;box-shadow:var(--st-glass-edge),0 10px 45px rgba(6,21,43,.07)!important;position:relative;isolation:isolate}.chat-composer.is-dragging{outline:2px solid #699cfb;outline-offset:4px}.chat-context{display:flex;align-items:center;gap:5px;min-width:0;margin:0 0 3px}.chat-context-pill{display:inline-flex;align-items:center;gap:5px;min-height:29px;padding:5px 9px;border-radius:999px;color:var(--st-muted);font-size:11px;background:transparent;max-width:220px;min-width:0;white-space:nowrap}.chat-context-pill>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.chat-context-pill:hover{background:var(--st-hover)}.chat-context-pill>.icon:last-child{opacity:.5}.chat-context-space{flex:1;min-width:0}.chat-context-more{background:transparent!important;box-shadow:none!important;color:var(--st-muted);min-height:28px!important}.chat-composer #chat-input{display:block;min-height:68px;max-height:170px;width:100%;padding:11px 9px 8px!important;border-radius:0!important;resize:none;line-height:1.6!important;font-size:16px!important;letter-spacing:-.012em;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:0!important;outline:none!important}.chat-composer #chat-input::placeholder{opacity:.7;color:var(--st-muted)}.chat-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 3px 0 0}.chat-composer-tools{display:flex;align-items:center;gap:2px}.chat-composer-tools>.icon-btn{background:transparent!important;box-shadow:none!important;color:var(--st-muted);width:35px;min-width:35px;min-height:35px}.chat-composer-tools>.icon-btn:hover{color:var(--st-text)}.chat-send{padding:0!important;min-width:42px!important;width:42px!important;min-height:42px!important;height:42px;border-radius:50%!important;flex:none}.chat-send:disabled{opacity:.5}.chat-send>.icon{width:21px;height:21px}.chat-input-count{font-size:11px;color:var(--st-muted);margin-left:auto;opacity:.65}.chat-welcome{display:flex;flex-direction:column;justify-content:center;max-width:850px;margin:auto;min-height:100%;padding:18px 0 12px}.chat-welcome-film{height:260px;max-height:32dvh;min-height:200px;position:relative;border-radius:29px;overflow:hidden;isolation:isolate;background:linear-gradient(100deg,#1433558c,#244a6533)}.chat-welcome-film>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% center;opacity:.82;z-index:-2}.chat-film-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,18,34,.68),rgba(6,18,34,.12) 74%),linear-gradient(0deg,rgba(4,15,28,.22),transparent 60%);z-index:-1}.chat-welcome-content{position:absolute;left:37px;bottom:30px;right:30px;display:flex;flex-direction:column;gap:14px}.chat-sound-symbol{color:#91beff}.chat-welcome-content h1{font-size:clamp(32px,3.7vw,53px);line-height:1.05;letter-spacing:-.055em;font-weight:440;color:#eef5ff}.chat-suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:13px}.chat-suggestions>button{display:flex;align-items:center;gap:10px;min-height:60px;min-width:0;padding:14px 15px;border-radius:20px;background:var(--st-glass-control);color:var(--st-text);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:12px;text-align:left}.chat-suggestions>button>.icon:first-child{color:var(--accent-display)}.chat-suggestions>button>.icon:last-child{margin-left:auto;color:var(--st-muted);opacity:.6}.chat-suggestions>button>span{min-width:0}.chat-suggestions>button:hover{background:var(--st-hover)}.chat-pending-files{display:flex;align-items:stretch;gap:7px;overflow-x:auto;max-width:100%;padding:8px 3px 3px}.chat-attachment{display:flex;align-items:center;gap:9px;min-width:0;max-width:310px;padding:10px 11px;border-radius:17px;background:var(--st-soft);flex-shrink:0}.chat-attachment-icon{color:var(--accent-display);flex:none}.chat-attachment>span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}.chat-attachment strong{font-size:12px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:230px}.chat-attachment>span:nth-child(2)>span{font-size:10px;color:var(--st-muted);white-space:nowrap}.chat-attachment>.icon-btn{width:25px;min-width:25px;min-height:25px;background:transparent!important;box-shadow:none!important;margin-left:2px}.chat-message-attachments{display:flex;flex-direction:column;gap:9px;margin-top:10px;max-width:100%;min-width:0}.chat-message-attachments:first-child{margin-top:0}.chat-message-attachments .chat-attachment{max-width:100%}.chat-file-video{display:block;width:100%;max-height:300px;border-radius:17px;background:#06101b}.chat-file-audio{display:block;width:100%;min-width:230px;max-width:100%;height:38px}.chat-settings-grid{display:flex;flex-direction:column;gap:15px}.chat-settings-grid .switch-row{padding:3px 0;margin:0}.chat-settings-grid .field>span{font-size:13px}
:root[data-storage-theme=light] .chat-film-shade{background:linear-gradient(90deg,rgba(228,239,250,.75),rgba(228,239,250,.08) 78%)}:root[data-storage-theme=light] .chat-welcome-film{background:#c4d9e9}:root[data-storage-theme=light] .chat-welcome-content h1{color:#183653}:root[data-storage-theme=light] .chat-sound-symbol{color:#346ec4}:root[data-storage-theme=light] .chat-welcome-film>video{opacity:.85}:root[data-storage-theme=light] .chat-user-bubble{background:linear-gradient(135deg,rgba(104,154,239,.22),rgba(126,171,238,.13))}:root[data-storage-theme=light] .chat-task{--storage-glass-tint:.5}
@media(min-width:1600px){.audio-chat{height:calc(100dvh - 150px)}.chat-welcome-film{height:300px;max-height:34dvh}.chat-welcome{max-width:930px}.chat-thread{max-width:960px}.chat-composer{padding:15px 18px 13px!important}.chat-mode{padding-inline:14px}.chat-welcome-content h1{font-size:59px}}
@media(max-width:1150px){.chat-mode{font-size:11px;padding:9px 8px;gap:5px}.chat-mode>.icon{width:14px;height:14px}.chat-title>span{max-width:290px}.chat-welcome-content{left:27px;bottom:27px}.chat-suggestions{gap:8px}.chat-suggestions>button{padding:13px 11px;gap:7px;font-size:11px}.chat-suggestions>button>.icon:last-child{display:none}}
@media(max-width:950px){.chat-top-actions>.btn{padding-inline:7px}.chat-title>span{max-width:250px}.chat-welcome-film{height:250px}.chat-task{width:95%}.chat-mode-bar{gap:2px}.chat-mode{font-size:11px}}
@media(max-width:700px){.audio-chat{height:calc(100dvh - 100px);min-height:440px;max-height:none;width:100%}.chat-topline{min-height:32px;margin-bottom:4px;padding:0 1px;gap:8px}.chat-title{font-size:12px;gap:3px}.chat-title>span{max-width:200px}.chat-top-actions>.btn{width:31px;min-width:31px;min-height:31px;padding:0;gap:0}.chat-top-actions>.btn>span{display:none}.chat-top-actions{gap:3px}.chat-top-actions>.btn .icon{width:17px;height:17px}.chat-scroll{padding:4px 1px 16px;scrollbar-gutter:auto}.chat-welcome{padding:12px 0 5px;min-height:100%}.chat-welcome-film{min-height:195px;max-height:31dvh;height:245px;border-radius:24px}.chat-welcome-film>video{object-position:65% center}.chat-welcome-content{left:23px;right:19px;bottom:22px;gap:12px}.chat-welcome-content h1{font-size:40px;line-height:1.04}.chat-sound-symbol>.icon{width:26px;height:26px}.chat-film-shade{background:linear-gradient(90deg,rgba(6,18,34,.65),rgba(6,18,34,.08) 90%)}.chat-suggestions{gap:7px;grid-template-columns:1fr 1fr;margin-top:10px}.chat-suggestions>button{min-height:55px;border-radius:17px;padding:12px;gap:7px;font-size:11px}.chat-suggestions>button:last-child{display:none}.chat-suggestions>button>.icon:first-child{width:17px;height:17px}.chat-bottom{padding:4px 0 0}.chat-mode-bar{margin:0 -4px;padding:0 4px 9px;gap:3px}.chat-mode{font-size:11px;min-height:33px;padding:8px 10px;gap:5px}.chat-mode .icon{width:15px;height:15px}.chat-composer{border-radius:24px!important;padding:10px 10px 9px!important}.chat-context{gap:0;margin-bottom:2px}.chat-context-pill{font-size:10px;gap:4px;padding:5px 7px;max-width:155px;min-height:27px}.chat-context-pill>.icon:first-child{width:12px;height:12px}.chat-context-pill>.icon:last-child{width:10px;height:10px}.chat-context-more{width:25px!important;min-width:25px!important;padding:0!important}.chat-composer #chat-input{min-height:67px;padding:9px 7px!important;font-size:16px!important;line-height:1.5!important;max-height:135px}.chat-composer-bottom{gap:7px;padding:0 1px}.chat-composer-tools>.icon-btn{min-height:32px;min-width:32px;width:32px}.chat-composer-tools>.icon-btn>.icon{width:19px;height:19px}.chat-send{width:38px!important;min-width:38px!important;height:38px;min-height:38px!important}.chat-send>.icon{width:20px;height:20px}.chat-input-count{font-size:10px}.chat-thread{gap:18px;margin-top:9px}.chat-user-bubble{max-width:89%;padding:13px 15px;font-size:14px;border-radius:21px 21px 6px 21px}.chat-task{width:98%;padding:16px!important;border-radius:22px!important}.chat-task-heading{gap:8px}.chat-task-heading h3{font-size:14px}.chat-assistant-symbol{width:29px;height:29px;border-radius:10px}.chat-assistant-symbol>.icon{width:18px;height:18px}.chat-draft-badge{font-size:9px!important;padding:4px 7px}.chat-task-summary{font-size:12px;margin-top:12px!important}.chat-task-tags{gap:9px;margin:12px 0 15px}.chat-task-tags>span{font-size:10px;gap:4px}.chat-task-tags>span>.icon{width:12px;height:12px}.chat-task-footer{gap:3px}.chat-task-footer>.btn{min-height:35px;font-size:11px;padding:0 11px;gap:5px}.chat-task-footer>.btn .icon{width:15px;height:15px}.chat-task-footer>.icon-btn{min-width:30px;width:30px;min-height:32px}.chat-task-cost{font-size:10px}.chat-browser-label{font-size:9px;margin-top:8px}.chat-attachment{max-width:280px;padding:8px 10px;border-radius:15px;gap:7px}.chat-attachment strong{font-size:11px;max-width:195px}.chat-pending-files{padding-top:6px}.chat-file-audio{min-width:210px}.chat-file-video{max-height:240px}}
@media(max-width:380px){.chat-title>span{max-width:170px}.chat-welcome-content h1{font-size:35px}.chat-context-pill{max-width:120px;font-size:9px;padding:4px 6px}.chat-context-pill>.icon:first-child{display:none}.chat-task-heading h3{font-size:13px}.chat-task-cost{font-size:9px}.chat-task-footer>.btn{padding-inline:9px}.chat-user-bubble{max-width:94%}.chat-mode{font-size:10px;padding-inline:8px}.chat-welcome-film{min-height:180px}}
@media(max-height:740px) and (min-width:701px){.audio-chat{min-height:470px}.chat-welcome-film{min-height:150px;height:190px}.chat-welcome-content{bottom:20px;gap:9px}.chat-welcome-content h1{font-size:39px}.chat-suggestions>button{min-height:49px}.chat-composer #chat-input{min-height:57px}}
@media(prefers-reduced-motion:reduce){.chat-welcome-film>video{display:none}.chat-mode{transition:none}.chat-welcome-film{background-image:linear-gradient(100deg,#163253,#304c653d)}}

/* Portrait choices stay in one row; every saved task keeps its own voice. */
.chat-character-welcome{width:100%;max-width:1000px;padding:20px 0 26px;gap:26px;align-items:stretch;justify-content:center}.chat-character-welcome>h1{font-size:clamp(31px,3.5vw,48px);line-height:1.12;letter-spacing:-.055em;font-weight:440;text-align:center;padding-inline:12px;color:var(--st-text)}.chat-character-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;width:100%;padding:5px 4px 9px;min-width:0;scrollbar-width:none}.chat-character-row::-webkit-scrollbar{display:none}.chat-character-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0;padding:8px 8px 12px;border-radius:24px;border:0;background:var(--st-glass-control);color:var(--st-text);box-shadow:inset 1px 1px 1px rgba(162,194,240,.07);transition:background .18s,box-shadow .18s,transform .18s;isolation:isolate}.chat-character-card:hover{background:var(--st-hover);transform:translateY(-3px)}.chat-character-card.selected{background:rgba(65,123,238,.13);box-shadow:inset 0 0 0 1.5px rgba(89,149,255,.7),0 9px 30px rgba(29,78,167,.08)}.chat-character-picture{display:block;width:100%;aspect-ratio:4/5;border-radius:18px;flex:none;background-color:var(--st-soft);background-repeat:no-repeat;background-size:cover;background-position:center;box-shadow:none}.chat-character-name{display:block;font-size:14px;letter-spacing:-.02em;line-height:1.25;font-weight:500;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-character-row.is-compact{display:flex;align-items:center;justify-content:center;gap:9px;overflow-x:auto;padding:2px 3px 11px}.chat-character-row.is-compact>.chat-character-card{flex:none;width:78px;padding:5px 5px 7px;gap:5px;border-radius:17px;background:transparent;box-shadow:none}.chat-character-row.is-compact>.chat-character-card.selected{background:var(--st-hover);box-shadow:inset 0 0 0 1.3px rgba(89,149,255,.55)}.chat-character-row.is-compact .chat-character-picture{width:48px;height:48px;aspect-ratio:1;border-radius:14px;align-self:center}.chat-character-row.is-compact .chat-character-name{font-size:11px}.chat-character-row.is-compact .chat-character-card:hover{transform:none}.chat-context-picture{display:block;width:19px;height:19px;border-radius:6px;flex:none;background-repeat:no-repeat;background-color:var(--st-soft)}.chat-task-picture{display:block;width:100%;height:100%;border-radius:inherit;background-repeat:no-repeat;background-color:var(--st-soft)}.chat-assistant-symbol:has(.chat-task-picture){padding:0;overflow:hidden;background:transparent}.chat-character-card:focus-visible{outline:2px solid #79aaff;outline-offset:-3px}
@media(min-width:1600px){.chat-character-welcome{gap:32px;max-width:1050px}.chat-character-welcome>h1{font-size:51px}.chat-character-card{padding:9px 9px 14px;gap:12px}.chat-character-name{font-size:15px}}
@media(max-width:1150px){.chat-character-welcome{gap:24px}.chat-character-row{gap:8px}.chat-character-card{padding:6px 6px 10px;border-radius:20px;gap:8px}.chat-character-picture{border-radius:15px}.chat-character-name{font-size:12px}.chat-character-row.is-compact{gap:7px}.chat-character-row.is-compact>.chat-character-card{width:72px}}
@media(max-width:700px){.chat-character-welcome{padding:15px 0 21px;gap:22px;max-width:none}.chat-character-welcome>h1{font-size:34px;max-width:330px;align-self:center;padding:0 15px}.chat-character-row{display:flex;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;gap:10px;margin:0 -1px;width:calc(100% + 2px);padding:5px 2px 9px}.chat-character-card{flex:0 0 109px;width:109px;min-width:109px;padding:7px 7px 10px;gap:9px;border-radius:21px;scroll-snap-align:start}.chat-character-picture{height:122px;aspect-ratio:auto;width:100%;border-radius:16px}.chat-character-name{font-size:13px}.chat-character-row.is-compact{justify-content:flex-start;gap:5px;margin:0;padding:1px 1px 9px;width:100%}.chat-character-row.is-compact>.chat-character-card{width:62px;min-width:62px;flex-basis:62px;padding:4px 4px 6px;gap:4px;border-radius:15px}.chat-character-row.is-compact .chat-character-picture{width:40px;height:40px;border-radius:12px}.chat-character-row.is-compact .chat-character-name{font-size:10px}.chat-context-picture{width:18px;height:18px;border-radius:5px}.chat-character-card:hover{transform:none}}
@media(max-width:380px){.chat-character-welcome>h1{font-size:30px}.chat-character-card{width:101px;min-width:101px;flex-basis:101px}.chat-character-picture{height:112px}.chat-character-row.is-compact>.chat-character-card{width:58px;min-width:58px;flex-basis:58px}.chat-character-row.is-compact .chat-character-picture{width:37px;height:37px}}
@media(max-height:740px) and (min-width:701px){.chat-character-welcome{gap:16px;padding-top:10px;padding-bottom:14px}.chat-character-welcome>h1{font-size:33px}.chat-character-welcome .chat-character-picture{height:124px;aspect-ratio:auto}.chat-character-row.is-compact .chat-character-picture{width:38px;height:38px}.chat-character-row.is-compact>.chat-character-card{gap:3px;padding-bottom:5px}}
