:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: #090912;
  color: #f6f4ff;
  --bg: #090912;
  --surface: #11111e;
  --panel: #141423;
  --card: #1b1a2a;
  --stroke: rgba(207, 191, 250, .105);
  --stroke-strong: rgba(202, 184, 252, .22);
  --muted: #9290ab;
  --muted2: #67657f;
  --purple: #9153fb;
  --purple-bright: #b98afa;
  --purple-deep: #6326dc;
  --mint: #36dba7;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 3px; }
svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; flex-shrink: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.app-layout { display: grid; grid-template-columns: 278px minmax(370px,1fr) 335px; min-height: 100vh; height: 100dvh; max-width: 1900px; margin: auto; overflow: hidden; background: #0b0a14; }
/* Sidebar */
.sidebar { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(158deg,#161126 0%, #100e1c 53%, #0e0c19 100%); border-right: 1px solid var(--stroke); padding: 29px 16px 18px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 13px; padding: 5px 14px 31px; }
.brand strong { font-size: 29px; letter-spacing: -.06em; display: block; line-height: 1; font-weight: 770; }
.brand small { font-size: 10px; color: #85809e; margin-top: 7px; display: block; letter-spacing: .13em; }
.brand-mark { display: flex; gap: 3px; align-items: center; height: 38px; flex-shrink: 0; }
.brand-mark i { display: block; width: 4px; border-radius: 4px; background: linear-gradient(#c786ff,#7538fa); box-shadow: 0 0 13px #7841e855; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 13px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 25px; }
.brand-mark i:nth-child(3) { height: 36px; }
.primary-nav { border-bottom: 1px solid var(--stroke); padding-bottom: 23px; }
.nav-item { display: flex; align-items: center; gap: 13px; height: 47px; color: #b2aecb; border: 0; border-radius: 12px; padding: 0 16px; font-size: 14px; font-weight: 550; }
.nav-item.selected { background: linear-gradient(90deg, #332450 0%, #27203b 100%); color: #fff; }
.nav-badge { display: inline-grid; place-items: center; margin-left: auto; background: var(--purple); border-radius: 50%; font-size: 11px; width: 22px; height: 22px; font-weight: 700; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 28px 12px 11px; font-size: 10px; letter-spacing: .14em; color: #7e789b; font-weight: 760; }
.ghost-icon { border: 0; color: #a8a2c3; background: transparent; display: inline-grid; place-items: center; border-radius: 10px; width: 33px; height: 33px; transition: color .2s, background .2s; }
.ghost-icon:hover { color: white; background: #ffffff11; }
.room-list, .friend-list { display: grid; gap: 4px; }
.room-item, .friend-item { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; background: transparent; border: 1px solid transparent; border-radius: 11px; text-align: left; padding: 9px 10px; color: #f5f1ff; transition: background .18s, border .18s; }
.room-item:hover, .friend-item:hover { background: #ffffff0c; }
.room-item.active { background: linear-gradient(95deg, #332350, #242033); border-color: rgba(164,116,245,.28); box-shadow: inset 3px 0 0 var(--purple); }
.room-item .avatar, .friend-item .avatar { width: 40px; height: 40px; flex: 0 0 40px; }
.avatar { display: inline-grid; place-items: center; position: relative; border-radius: 13px; background: linear-gradient(135deg,#594c90,#222040); font-weight: 700; letter-spacing: -.02em; color: #e8d9ff; font-size: 12px; }
.avatar.a2 { background: linear-gradient(135deg,#486c7f,#253044); color: #d0f6ff; }
.avatar.a3 { background: linear-gradient(135deg,#885a72,#302139); color: #ffe5f0; }
.avatar.a4 { background: linear-gradient(135deg,#7c6550,#38303b); color: #f9edcb; }
.avatar.online::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; background: var(--mint); border: 2px solid #131020; border-radius: 50%; }
.item-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.item-copy strong { font-size: 13px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.item-copy small { font-size: 11px; color: #8f88ac; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.sidebar-arrow { color: #74698e; font-size: 19px; }
.friends-heading { margin-top: 11px; padding-top: 15px; border-top: 1px solid var(--stroke); }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.account-action { display: flex; gap: 11px; align-items: center; width: 100%; background: none; border: 0; border-top: 1px solid var(--stroke); color: #b4acca; padding: 18px 12px; text-align: left; font-size: 13px; }
.account-action:hover { color: #fff; }
.tiny-circle { width: 7px; height: 7px; border-radius: 50%; background: #fcba66; margin-left: auto; }
.tiny-circle.ready { background: var(--mint); box-shadow: 0 0 10px #36dba76a; }
.trial-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 9px; color: #666079; padding: 4px 12px; line-height: 1.6; }
.trial-dot { width: 5px; height: 5px; background: #aa8be7; border-radius: 50%; }
/* Chat center */
.chat-area { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(circle at 50% 25%, rgba(43,26,72,.11), transparent 52%),#0b0b16; }
.chat-header { height: 91px; min-height: 91px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--stroke); }
.chat-profile { display: flex; gap: 13px; align-items: center; min-width: 0; }
.room-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #efdcff; background: radial-gradient(circle at 70% 15%,#a373e9,#493067 70%); font-size: 14px; font-weight: 750; flex-shrink: 0; }
.chat-headings { min-width: 0; }
.chat-headings strong { display: block; font-size: 19px; letter-spacing: -.025em; font-weight: 720; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-headings small { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: #9c97b1; font-size: 12px; white-space: nowrap; }
.online-dot { display: inline-block; background: #62d99c; border-radius: 50%; width: 7px; height: 7px; }
.chat-tools { display: flex; align-items: center; gap: 10px; }
.mode-pill { color: #c5a4ff; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; background: #2c2048; padding: 10px 15px; border: 1px solid #6943a4; border-radius: 100px; white-space: nowrap; }
.mode-pill.off { background: #24212b; border-color: #484052; color: #9994a6; }
.mode-pill .icon { width: 15px; height: 15px; }
.mobile-settings { display: none; }
.chat-content { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #4c385f transparent; scrollbar-width: thin; padding: 0 33px 20px; }
.date-separator { display: flex; align-items: center; justify-content: center; color: #817d99; font-size: 11px; padding: 21px 0 31px; gap: 15px; }
.date-separator::before, .date-separator::after { content: ""; height: 1px; background: rgba(201,190,230,.07); flex: 0 1 95px; }
.message-list { display: flex; flex-direction: column; gap: 21px; }
.message-row { display: flex; align-items: flex-start; gap: 12px; max-width: 100%; }
.message-row.mine { justify-content: flex-end; }
.message-row.mine .message-stack { align-items: flex-end; }
.msg-avatar { flex: 0 0 35px; width: 35px; height: 35px; border-radius: 50%; background: #352447; color: #e4beff; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 3px; }
.msg-avatar.person-a { background: #334554; color: #d8f5ff; }
.msg-avatar.person-b { background: #5b364e; color: #ffd6ea; }
.msg-avatar.person-c { background: #594b33; color: #fbedcf; }
.message-stack { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(100%,620px); gap: 7px; }
.msg-meta { display: flex; gap: 10px; align-items: baseline; padding: 0 4px; }
.msg-meta strong { color: #c6bed7; font-size: 11px; font-weight: 650; }
.msg-meta small { color: #69677e; font-size: 10px; }
.message-bubble { max-width: 100%; background: #202030; border-radius: 16px 16px 16px 5px; padding: 13px 16px; color: #e6e4ef; font-size: 14px; line-height: 1.5; border: 1px solid #ffffff08; overflow-wrap: anywhere; }
.mine .message-bubble { border-radius: 16px 16px 5px 16px; background: #302444; border: 1px solid #9b5efa33; }
.message-bubble.music-bubble { width: min(100%,480px); min-width: min(330px,calc(100vw - 90px)); padding: 14px 16px 13px; background: linear-gradient(120deg,#251b3d,#1e1b2f 62%,#1d1930); border: 1px solid #6b4aa75e; border-radius: 17px 17px 17px 6px; box-shadow: 0 7px 20px #0c071625; }
.mine .message-bubble.music-bubble { border-radius: 17px 17px 6px 17px; background: linear-gradient(115deg,#30234f,#231c3a 65%,#1d1a2e); }
.music-bubble.summary-bubble { background: linear-gradient(110deg,#2d1c49,#281d43); border-color: #a76cf77a; }
.bubble-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bubble-hint { display: inline-flex; align-items: center; gap: 5px; color: #c9afea; font-size: 10px; font-weight: 650; letter-spacing: .03em; }
.bubble-hint .icon { width: 12px; height: 12px; }
.genre-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #7e61b26b; color: #cbb4fa; border-radius: 99px; padding: 4px 8px; font-size: 10px; line-height: 1; white-space: nowrap; }
.bubble-text { font-size: 16px; line-height: 1.75; letter-spacing: -.013em; font-weight: 490; overflow-wrap: break-word; }
.word { display: inline; border-radius: 4px; transition: background-color .11s linear, color .11s linear, box-shadow .11s linear; }
.word.past { color: #c6a3ff; }
.word.active { background: #9452f5; color: #fff; box-shadow: 0 0 0 3px #9452f530, 0 0 18px #8951e080; }
.word.clickable { cursor: pointer; }
.wave-control { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.play-btn { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: none; color: #fff; background: linear-gradient(150deg,#b977fa,#7028e5); display: grid; place-items: center; box-shadow: 0 2px 12px #8741e54d; }
.play-btn .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.play-btn:not(:disabled):hover { transform: scale(1.04); }
.wave-time { flex: 0 0 auto; color: #a8a0bc; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wave-bars { display: flex; flex: 1; align-items: center; justify-content: space-between; height: 28px; gap: 2px; min-width: 40px; overflow: hidden; cursor: pointer; }
.wave-bar { min-width: 2px; flex: 1; max-width: 4px; height: 9px; border-radius: 3px; background: #4a405d; transition: background .05s; }
.wave-bar.lit { background: #a667fd; }
.wave-bar.lit::before { background: #a667fd; }
.music-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 10px; color: #867da2; gap: 12px; }
.music-footer .label-sync { display: inline-flex; align-items: center; gap: 4px; }
.link-action { padding: 0 2px; background: none; border: 0; color: #9885bc; font-size: 11px; }
.link-action:hover { color: #fff; }
.status-generating { color: #c5a6f8; font-size: 11px; display: inline-flex; align-items: center; gap: 7px; padding-top: 7px; }
.status-generating::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a370ef; animation: pulse 1.1s infinite; }
.status-generating.failed { color: #ff969e; }
.status-generating.failed::before { background: #e96c8f; animation: none; }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.demo-tag { color: #8e80a5; font-weight: 400; }
/* composer */
.composer-outer { padding: 14px 30px 20px; border-top: 1px solid #ffffff0c; background: linear-gradient(0deg, #12101f 15%, #100e1b); }
.composer-hint { display: flex; align-items: center; gap: 7px; color: #9e96b6; font-size: 10px; padding: 0 4px 12px; }
.composer-spark { color: #a668fd; display: inline-grid; place-items: center; }
.composer-spark .icon { height: 13px; width: 13px; }
#composerLimit { margin-left: auto; color: #6b6681; font-variant-numeric: tabular-nums; }
.composer { display: flex; align-items: flex-end; gap: 12px; padding: 6px 7px 6px 8px; border: 1px solid #514363; border-radius: 17px; background: #1c1a2b; transition: border .18s, box-shadow .18s; }
.composer:focus-within { border-color: #9365d8; box-shadow: 0 0 0 2px #9b65ff0b; }
.composer textarea { border: 0; outline: 0; background: transparent; resize: none; width: 100%; min-width: 0; max-height: 114px; overflow: auto; color: #f3edf9; font-size: 13px; padding: 10px 5px; line-height: 1.5; }
.composer textarea::placeholder { color: #807a96; }
.music-switch { flex: 0 0 34px; height: 34px; border-radius: 10px; border: 1px solid #51446a; color: #bc92ff; background: #302345; display: grid; place-items: center; margin-bottom: 2px; }
.music-switch:not(.enabled) { background: #2c2a37; color: #76717f; border-color: #474152; }
.music-switch .icon { height: 16px; width: 16px; }
.send-btn { flex: 0 0 36px; height: 36px; border: 0; color: white; border-radius: 11px; background: linear-gradient(140deg,#a261fb,#7122e5); display: grid; place-items: center; box-shadow: 0 3px 14px #6f2aec44; }
.send-btn:hover { filter: brightness(1.12); }
.send-btn .icon { width: 17px; height: 17px; }
.composer-footer { display: flex; justify-content: space-between; gap: 8px; padding: 11px 4px 0; color: #665e7a; font-size: 9px; }
.mode-label { display: inline-flex; align-items: center; gap: 7px; color: #ada2c3; }
.status-indicator { width: 6px; height: 6px; border-radius: 50%; background: #6f597f; }
.status-indicator.ready { background: #45ce99; }
/* right settings */
.settings-panel { background: #11101d; border-left: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 22px; overflow-y: auto; padding: 33px 23px 25px; scrollbar-width: thin; scrollbar-color: #453555 transparent; z-index: 3; }
.panel-top { display: flex; justify-content: space-between; align-items: flex-start; }
.eyebrow { color: #9b81c8; font-size: 9px; letter-spacing: .16em; font-weight: 750; }
.panel-top h2 { font-size: 18px; letter-spacing: -.025em; margin: 9px 0 0; font-weight: 700; }
.settings-card { border: 1px solid var(--stroke-strong); border-radius: 16px; overflow: hidden; }
.room-art { position: relative; background: linear-gradient(155deg,#231636,#0e1831 55%,#251231); min-height: 158px; }
.art-visual { position: relative; height: 107px; overflow: hidden; }
.art-visual::before { content: ""; display: block; position: absolute; height: 150px; width: 150px; border-radius: 50%; left: 22%; top: -74px; background: #8148fd66; filter: blur(52px); }
.art-visual::after { content: ""; position: absolute; bottom: -52px; right: -10px; width: 170px; height: 130px; border-radius: 50%; background: #7f40e844; filter: blur(33px); }
.art-orbit { position: absolute; left: 50%; top: 80px; width: 280px; height: 95px; transform: translate(-50%,-50%) rotate(-17deg); border-top: 2px solid #bf83ff; border-radius: 50%; box-shadow: 0 -4px 20px #ab68ff66; opacity: .8; }
.art-orbit.orbit-two { top: 91px; transform: translate(-50%,-50%) rotate(13deg); width: 330px; border-top-color: #6e7dfc; opacity: .55; }
.art-orbit.orbit-three { top: 97px; transform: translate(-50%,-50%) rotate(-10deg); width: 220px; border-top-color: #d68bfb; opacity: .45; }
.art-note { position: absolute; left: calc(50% - 11px); top: 10px; color: #f8d6ff; font-size: 54px; line-height: 1; text-shadow: 0 0 10px #c96dff, 0 0 32px #a93bff; transform: rotate(-7deg); z-index: 1; }
.art-caption { padding: 10px 16px 15px; position: relative; z-index: 2; }
.art-caption strong { font-size: 13px; display: block; }
.art-caption small { display: block; margin-top: 4px; color: #a99cbe; font-size: 10px; }
.settings-section { padding-top: 18px; border-top: 1px solid var(--stroke); }
.settings-section-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 18px; }
.settings-section-top strong { font-size: 13px; }
.owner-badge { display: inline-block; background: #35264c; color: #be9cee; font-size: 10px; border-radius: 8px; padding: 5px 7px; }
.field-label { display: block; color: #a79ebc; margin: 0 0 7px; font-size: 11px; font-weight: 600; }
.select-wrap { position: relative; display: flex; align-items: center; gap: 9px; background: #201c31; border: 1px solid #4d3b6c; border-radius: 11px; padding: 0 13px; margin-bottom: 17px; }
.select-wrap > .icon { color: #b38de9; height: 16px; width: 16px; }
.select-wrap .chevron { color: #8c819b; width: 14px; height: 14px; pointer-events: none; }
select { appearance: none; -webkit-appearance: none; border: 0; outline: 0; width: 100%; min-width: 0; padding: 11px 0; font-size: 12px; background: transparent; color: #f6f2ff; cursor: pointer; }
select option { background: #1a1628; color: #fff; }
.field-help { color: #79728a; font-size: 10px; line-height: 1.6; margin: 0; }
.ai-section { padding-top: 18px; }
.micro-copy { font-size: 10px; line-height: 1.5; color: #736e84; margin-top: -7px; }
.collaborative { padding: 18px; border: 1px solid #6b499a75; background: linear-gradient(145deg,#25173a,#1a1729 70%); border-radius: 16px; }
.collab-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #dfbeff; border-radius: 12px; background: #5f378d; }
.collab-icon .icon { height: 21px; width: 21px; }
.collaborative h3 { margin: 14px 0 7px; font-size: 15px; letter-spacing: -.02em; }
.collaborative p { color: #a59ab6; font-size: 11px; line-height: 1.55; margin: 0 0 16px; }
.collective-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 10px; padding: 12px 10px; color: #fff; font-size: 11px; font-weight: 700; border: 1px solid #9961e8; background: #5b318a; }
.collective-btn:hover { background: #7842b2; }
.collective-btn .icon { width: 15px; height: 15px; }
.collaborative p.collab-note { margin: 11px 0 0; text-align: center; font-size: 10px; color: #826e9c; }
.settings-bottom { display: flex; gap: 9px; font-size: 10px; line-height: 1.5; color: #625e71; margin-top: auto; }
.settings-bottom .icon { width: 17px; height: 17px; flex-shrink: 0; }
/* modals and toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(18px); opacity: 0; visibility: hidden; z-index: 30; max-width: calc(100vw - 24px); background: #312347; border: 1px solid #8d58c9; color: #f6eafb; border-radius: 12px; padding: 12px 17px; font-size: 12px; box-shadow: 0 14px 35px #0009; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); visibility: visible; }
.modal-backdrop { position: fixed; z-index: 35; inset: 0; background: #05040aa8; display: flex; justify-content: center; align-items: center; padding: 20px; }
.modal { background: #171323; border: 1px solid #55426a; padding: 27px; border-radius: 20px; width: min(100%,420px); box-shadow: 0 30px 100px #0009; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.modal h2 { margin: 8px 0 14px; font-size: 21px; }
.modal p { font-size: 12px; line-height: 1.7; color: #afa4c3; margin: 0 0 20px; }
.modal code { color: #e6baff; }
.modal input, .modal select { width: 100%; background: #221b31; color: #faf4ff; border: 1px solid #514365; border-radius: 9px; padding: 12px; font-size: 13px; outline: none; margin: 0 0 15px; }
.modal select { appearance: auto; }
.modal .field-label { margin: 4px 0 7px; }
.primary-button { display: block; width: 100%; margin-top: 10px; border: none; border-radius: 10px; padding: 13px 15px; color: white; background: linear-gradient(120deg,#ad67fb,#6a28d3); font-size: 13px; font-weight: 760; }
.modal-status { color: #8f8aa3; font-size: 11px; line-height: 1.55; padding: 6px 0 7px; }
.settings-backdrop { display: none; }
.mobile-close { display: none; }
/* Responsive */
@media(max-width:1280px){.app-layout{grid-template-columns:245px minmax(350px,1fr) 293px}.sidebar{padding-left:12px;padding-right:12px}.settings-panel{padding-left:18px;padding-right:18px}.chat-header{padding:0 25px}.chat-content{padding-left:24px;padding-right:24px}.composer-outer{padding-left:22px;padding-right:22px}}
@media(max-width:1050px){.app-layout{grid-template-columns:255px minmax(350px,1fr)}.settings-panel{display:none;position:fixed;top:0;right:0;width:min(380px,calc(100vw - 45px));height:100dvh;background:#161121;box-shadow:-20px 0 70px #000a;z-index:17}.settings-panel.is-open{display:flex}.settings-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#0009;z-index:16}.mobile-settings,.mobile-close{display:inline-grid}.chat-tools .mode-pill{font-size:10px}}
@media(max-width:680px){.app-layout{grid-template-columns:1fr}.sidebar{height:70px; padding:8px 12px; display:flex; flex-direction:row; align-items:center; border-right:0;border-bottom:1px solid var(--stroke)}.brand{padding:0 6px}.brand strong{font-size:23px}.brand small{display:none}.brand-mark{height:28px}.brand-mark i:nth-child(3){height:28px}.brand-mark i:nth-child(2),.brand-mark i:nth-child(4){height:20px}.sidebar .sidebar-section,.sidebar .sidebar-heading,.sidebar .room-list,.sidebar .friend-list{display:none}.sidebar-bottom{margin:0 0 0 auto; padding:0}.account-action{border:0;padding:7px}.account-action span:not(.tiny-circle){display:none}.account-action .icon{height:21px;width:21px}.trial-note{display:none}.chat-area{height:calc(100dvh - 70px)}.chat-header{height:69px;min-height:69px;padding:0 14px}.room-avatar{height:37px;width:37px;border-radius:11px}.chat-headings strong{font-size:15px}.chat-headings small{font-size:10px}.mode-pill{padding:8px 9px;font-size:0!important}.mode-pill .icon{width:16px;height:16px}.chat-content{padding:0 13px 14px}.message-list{gap:17px}.msg-avatar{width:30px;height:30px;flex-basis:30px}.message-row{gap:7px}.message-bubble.music-bubble{min-width:min(260px,calc(100vw - 80px));padding:11px}.bubble-text{font-size:14px}.chat-header .chat-tools{gap:3px}.composer-outer{padding:11px 12px 13px}.composer-footer span:last-child{display:none}.composer-hint{font-size:9px}.message-stack{max-width:calc(100vw - 65px)}.music-footer{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.mobile-tabs{display:none}
@media(max-width:680px){
.mobile-tabs{display:flex;align-items:center;flex-shrink:0;gap:7px;overflow-x:auto;scrollbar-width:none;padding:10px 13px;border-bottom:1px solid var(--stroke);background:#14101d}
.mobile-tabs::-webkit-scrollbar{display:none}
.mobile-tab{flex-shrink:0;max-width:160px;padding:8px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid #524263;border-radius:999px;color:#a59db8;background:#221b2e;font-size:11px}
.mobile-tab.active{background:#65369a;border-color:#9d60e7;color:#fff}
.mobile-tab.add{font-weight:800;font-size:15px;padding:4px 12px}
}

/* moosick v0.4 - minimalisticky online chat */
.app-layout{grid-template-columns:252px minmax(350px,1fr) 292px}
.sidebar{padding:23px 15px 18px}
.brand{margin-bottom:22px}
.primary-nav{margin-bottom:18px}
.settings-panel{padding:22px 17px 18px;gap:13px}
.panel-top h2{font-size:16px;margin:0}
.room-art{min-height:0;border-radius:13px}
.room-art .art-visual{height:66px}
.room-art .art-note{font-size:37px;top:9px}
.room-art .art-orbit{top:53px}
.room-art .art-caption{padding:7px 12px 9px}
.room-art .art-caption small{margin-top:1px}
.settings-section{padding-top:12px}
.select-wrap{margin-bottom:10px}
.select-wrap select{padding:9px 0}
.settings-section .field-label{margin-bottom:5px}
.settings-panel .collaborative{padding:0;border:0;background:none}
.settings-panel .collective-btn{margin-top:0}
.settings-bottom{font-size:9px;line-height:1.35;margin-top:8px}
.setting-inline{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:13px;font-size:12px}
.toggle{border:1px solid #65527c;background:#343044;width:40px;height:24px;border-radius:20px;flex:0 0 40px;position:relative;transition:background .2s}
.toggle:before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#bbb6c4;transition:transform .2s}
.toggle.on{background:#8043e8;border-color:#a66ff4}
.toggle.on:before{transform:translateX(16px);background:white}
.toggle:disabled{opacity:.6;cursor:default}
.copy-invite{width:100%;border-radius:10px;background:#211a30;color:#c9b5ed;border:1px solid #503768;padding:9px 12px;font-size:11px;text-align:center}
.copy-invite:hover{background:#322444}
.settings-section .micro-copy{margin-top:2px;line-height:1.35}
.settings-panel [hidden]{display:none!important}
.settings-panel .collective-btn{font-size:11px;padding:10px 8px}
.trial-note{font-size:10px}
.text-link{background:none;border:0;color:#c49ef3;font-size:11px;text-align:left;padding:10px 11px;line-height:1.5}
.text-link:hover{text-decoration:underline}
.sidebar .text-link{margin-top:8px}
.empty-state{padding:16px;color:#787083;font-size:12px}
.empty-conversation{margin:auto;text-align:center;padding:50px 10px;color:#8b7f9d;font-size:13px}
.message-bubble{max-width:580px}
.music-bubble{background:linear-gradient(125deg,rgba(130,83,190,.22),rgba(37,28,53,.92))}
.bubble-top{margin-bottom:6px}
.music-bubble .bubble-hint{font-size:10px;letter-spacing:0;text-transform:none}
.composer-outer{padding:11px 22px 14px}
.composer-hint{padding-bottom:7px}
.composer-footer{padding-top:7px}
.auth-screen{position:fixed;inset:0;display:grid;place-items:center;z-index:45;background:radial-gradient(ellipse at 55% 0%,#241236 0%,#0b0915 60%);padding:20px}
.auth-card{width:min(420px,100%);padding:34px 34px 26px;background:#171321;border:1px solid #514067;border-radius:23px;box-shadow:0 24px 100px #0008}
.auth-logo{font-size:27px;font-weight:800;color:#cba9ff;letter-spacing:-.045em}
.auth-sub{font-size:12px;color:#998baa;margin:6px 0 32px}
.auth-card h1{font-size:20px;font-weight:700;margin:0 0 22px}
.auth-card label{display:block;font-size:11px;color:#b6a8c5;margin:0 0 7px}
.auth-card input{display:block;width:100%;margin:0 0 17px;background:#211d2e;border:1px solid #544469;border-radius:10px;padding:13px;color:#f6f0ff}
.auth-card .primary-button{width:100%;margin-top:4px}
.auth-card .text-link{display:block;margin:9px auto 0}
.auth-info{font-size:12px;color:#e4b3ca;line-height:1.55;margin-top:15px}
.modal input,.modal select{width:100%;background:#211c2f;border:1px solid #514266;border-radius:10px;color:#fff;padding:12px;margin:0 0 17px;font-size:12px}
.modal input:focus,.modal select:focus{outline:2px solid #8952d5}
.modal .primary-button{width:100%}
#profileModal .text-link{display:block;margin:13px auto 0}
@media(max-width:1090px){.app-layout{grid-template-columns:220px minmax(350px,1fr) 265px}}
@media(max-width:920px){.app-layout{grid-template-columns:230px minmax(0,1fr)}.settings-panel{position:fixed;right:0;top:0;bottom:0;width:min(360px,90vw);box-shadow:-12px 0 42px #0006;transform:translateX(110%);transition:transform .2s}.settings-panel.is-open{transform:translateX(0)}}
@media(max-width:640px){.app-layout{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.chat-content{padding:14px}.composer-outer{padding:10px}.auth-card{padding:27px 22px}}

/* moosick 0.5: restrained identity in every chat bubble */
.msg-avatar, .sidebar-profile-avatar, .profile-photo-preview {
  overflow:hidden;display:grid;place-items:center;position:relative;border:1px solid #6f527c66;
  background:linear-gradient(150deg,#654192,#342445);color:#f0dfff;
}
.msg-avatar {margin-top:1px;border-radius:50%;flex:0 0 35px;width:35px;height:35px;}
.avatar-image{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1 / 1;}
.avatar-initial{font-weight:720;font-size:12px;line-height:1;}
.sidebar-profile-avatar{width:36px;height:36px;flex:0 0 36px;border-radius:50%;}
.profile-photo-preview{width:90px;height:90px;flex:0 0 90px;border-radius:50%;font-size:27px;}
.profile-photo-preview .avatar-initial{font-size:27px;}
.profile-photo-row{display:flex;align-items:center;gap:20px;margin:6px 0 10px;}
.profile-photo-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch;flex:1;}
.photo-action{border:1px solid #58436e;background:#2a2039;color:#ebd9fc;border-radius:9px;padding:8px 11px;text-align:center;font-size:12px;}
.photo-action:hover{background:#3c2856;}
.photo-action.muted{color:#a99cb8;background:transparent;}
.photo-status{min-height:18px;font-size:11px;color:#b19dcb;margin-bottom:10px;line-height:1.4;}
.bubble-top{justify-content:flex-end;margin-bottom:4px;}
.msg-meta strong{color:#e7dff2;font-size:11px;}
.message-row.mine .msg-meta{justify-content:flex-end;}
.message-row.mine .msg-avatar{order:2;}
@media(max-width:680px){
  .msg-avatar{width:29px;height:29px;flex-basis:29px;}
  .profile-photo-row{gap:13px;}
  .profile-photo-preview{width:78px;height:78px;flex-basis:78px;}
  .photo-action{font-size:11px;padding:7px 9px;}
}

/* Profile modal fits compact phone screens, even with camera/gallery actions. */
.modal {max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-color:#57446c transparent;}
.auth-logo {margin-bottom:28px;}

/* Keep photo settings reachable when the desktop sidebar is hidden on phones. */
.mobile-profile-button {display:none;background:transparent;border:0;padding:0;border-radius:50%;}
.mobile-header-avatar {display:grid;place-items:center;width:34px;height:34px;border-radius:50%;overflow:hidden;background:#3d2958;color:#eee3ff;border:1px solid #8860bd66;}
.mobile-header-avatar .avatar-image {width:100%;height:100%;object-fit:cover;}
@media(max-width:640px){.mobile-profile-button{display:grid;place-items:center;flex-shrink:0;}}

/* Moosick 0.8: a single calm message surface for lyrics and their sound. */
.message-bubble { white-space: pre-wrap; }
.music-bubble .bubble-text { white-space: normal; }
.message-bubble.removed-bubble { color: #8e879f; background: #1a1926; font-style: italic; border: 1px dashed #4b435b; font-size: 12px; }
.message-delete { display: inline-grid; place-items: center; border: 0; background: transparent; color: #80768f; opacity: .4; padding: 1px 4px; border-radius: 6px; transition: opacity .15s, color .15s, background .15s; }
.message-delete .icon { width: 14px; height: 14px; }
.message-row:hover .message-delete, .message-delete:focus-visible { opacity: 1; }
.message-delete:hover { color: #ffc2ca; background: #532d46; }
.unheard-tag { font-size: 10px; font-weight: 700; color: #d8beff; background: #7542bc55; border-radius: 20px; padding: 3px 7px; }
.autoplay-button { background: #211e31; border: 1px solid #4d4265; color: #ada0c1; cursor: pointer; transition: background .2s, border-color .2s; }
.autoplay-button:hover { background: #33264d; }
.autoplay-button.active { background: linear-gradient(120deg,#63359b,#3d285d); color: #f6eaff; border-color: #a76bf3; box-shadow: 0 0 0 2px #9e57e01c; }
.autoplay-button.active .icon { color: #e6c8ff; }
.composer-outer { position: relative; }
.composer-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; min-height: 43px; }
.composer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.composer-tool { height: 32px; background: #262036; border: 1px solid #53436c; border-radius: 10px; color: #d4c4e9; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; white-space: nowrap; }
.composer-tool:hover { background: #302542; }
.composer-picker { gap: 5px; padding-right: 3px; }
.composer-picker select { appearance: auto; border: 0; background: transparent; color: #f1deff; font-size: 11px; cursor: pointer; max-width: 112px; padding: 5px 2px 5px 0; }
.composer-picker select option { background: #241c34; color: #eee5f6; }
.composer-picker select:disabled { cursor: default; opacity: .65; }
.composer-picker:has(select:disabled) { opacity: .58; }
.emoji-toggle { font-size: 13px; }
.emoji-toggle span { font-size: 11px; }
.emoji-panel { position: absolute; bottom: calc(100% - 1px); left: 22px; z-index: 12; width: min(376px,calc(100% - 44px)); max-height: min(366px, 55dvh); padding: 15px; overflow-y: auto; border: 1px solid #7a54a3; border-radius: 17px; background: #1c172c; box-shadow: 0 13px 50px #000b, 0 0 30px #6c39bd22; }
.emoji-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 11px; }
.emoji-panel-top strong { font-size: 12px; color: #f2e7ff; }
.emoji-panel-top input { min-width: 0; flex: 1; max-width: 220px; background: #100e1c; border: 1px solid #534466; border-radius: 9px; padding: 8px 10px; color: #eadaff; font-size: 11px; }
.emoji-category { font-size: 10px; font-weight: 700; color: #ac95ca; margin: 11px 0 5px; }
.emoji-row { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 3px; }
.emoji-row button { display: grid; place-items: center; height: 36px; min-width: 0; background: transparent; border: 0; border-radius: 8px; font-size: 25px; padding: 0; }
.emoji-row button:hover, .emoji-row button:focus-visible { background: #5a3d79; }
.emoji-empty { font-size: 12px; color: #a89cba; }
@media (max-width: 680px) {
  .autoplay-button { font-size: 10px!important; padding: 8px 10px; }
  .composer-footer > span:last-child { display: none; }
  .composer-footer .composer-tool span { display: inline; }
  .composer-tools { gap: 5px; }
  .composer-tool { padding: 0 7px; font-size: 10px; }
  .composer-picker { padding-right: 2px; }
  .composer-picker select { font-size: 10px; max-width: 86px; }
  .emoji-panel { left: 10px; width: min(360px,calc(100% - 20px)); }
  .emoji-row { grid-template-columns: repeat(7,minmax(0,1fr)); }
  .message-delete { opacity: 1; }
}
@media (max-width: 380px) {
  .composer-tool { padding: 0 5px; gap: 4px; }
  .composer-picker span { font-size: 9px; }
  .composer-picker select { max-width: 73px; }
  .emoji-row { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
