:root{color-scheme:dark;--bg:#101112;--panel:var(--panel);--line:#2a2c2e;--text:#eeeef0;--muted:#91959c;--blue:#6c9bff;--green:#75c49d;font-family:Inter,"Segoe UI","Yu Gothic UI",Meiryo,sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:4px}button[hidden],[hidden]{display:none!important}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.app{max-width:1180px;margin:0 auto;padding:30px 34px 32px}.top{height:53px;display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:650;letter-spacing:.03em}.brand svg{width:24px;height:24px;color:#d5d9df}.primary{background:#e6e9ef;color:#15171a;border-radius:7px;padding:10px 20px;font-size:13px;font-weight:650;transition:background .15s}.primary:hover{background:white}#account{display:flex;align-items:center;gap:16px}.account-name{color:var(--text);font-size:13px}.logout{color:var(--muted);font-size:12px}.logout:hover{color:white}.workspace{display:grid;grid-template-columns:206px minmax(0,1fr);min-height:420px;height:calc(100dvh - 142px);max-height:900px;gap:25px}.sidebar{display:flex;flex-direction:column;padding-top:8px}.label{color:#777d86;letter-spacing:.12em;font-size:10px;font-weight:650;margin:8px 0 18px 13px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.channel{display:flex;align-items:center;gap:11px;text-align:left;padding:14px 12px;border-radius:7px;color:var(--muted);transition:color .15s,background .15s;white-space:nowrap}.channel:hover{background:var(--soft);color:#eee}.channel[aria-current=true]{background:var(--soft);color:#fff}.channel .dot{width:6px;height:6px;background:#555b64;border-radius:50%;flex-shrink:0}.channel .dot.online{background:var(--green);box-shadow:0 0 9px #75c49d20}.channel .count{margin-left:auto;color:#727b87;font-size:11px;font-variant-numeric:tabular-nums}.status-link{color:#707680;font-size:11px;margin-top:auto;padding:24px 12px 8px;display:flex;justify-content:space-between}.status-link:hover{color:#b4bbc6}.conversation{border:1px solid var(--line);border-radius:12px;background:linear-gradient(150deg,var(--panel) 0%,var(--panel) 80%);display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;overflow:hidden}.channel-head{padding:23px 27px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.channel-head>div{display:flex;align-items:center;gap:12px}.hash{font-size:21px;color:#66707e;font-weight:400}h1{margin:0;font-size:15px;letter-spacing:.02em;font-weight:600}.connection{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);white-space:nowrap}.connection i{width:5px;height:5px;border-radius:50%;background:#7b8798}.connection.ready i{background:var(--green)}.connection.down i{background:#d2a46e}.messages{flex:1;overflow:auto;padding:20px 27px;scrollbar-width:thin;scrollbar-color:#363a40 transparent;min-height:0;overscroll-behavior:contain;overflow-wrap:anywhere}.empty{height:100%;min-height:160px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#707781;font-size:12px;gap:10px}.empty svg{width:31px;height:31px;opacity:.7}.empty p{margin:0}.message{padding:9px 0;animation:arrive .14s ease-out}.message-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px;min-width:0}.message-name{font-weight:600;font-size:12px;color:var(--text);overflow-wrap:anywhere}.message time{font-size:10px;color:#69717d;font-variant-numeric:tabular-nums}.web-tag{font-size:8px;font-weight:700;letter-spacing:.045em;color:var(--accent);background:#779fff18;border:1px solid #779fff24;padding:2px 4px;border-radius:3px}.message-text{margin:0;color:var(--text);font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.new-messages{position:absolute;bottom:119px;left:50%;transform:translateX(-50%);border:1px solid #46526a;background:var(--soft);color:#dfe7f7;padding:8px 15px;border-radius:30px;box-shadow:0 5px 20px #0005;font-size:11px;white-space:nowrap}#composer{padding:15px 23px 17px;background:var(--panel)}.input-wrap{display:flex;border:1px solid var(--line);border-radius:8px;background:var(--input);gap:8px;transition:border-color .15s}.input-wrap:focus-within{border-color:#737e90}.input-wrap input{min-width:0;flex:1;background:none;color:var(--text);border:0;outline:0;padding:15px 16px;font-size:13px}.input-wrap input::placeholder{color:#656d78}.input-wrap input:focus-visible{outline:none}#send{align-self:center;width:32px;height:32px;margin-right:9px;border-radius:6px;background:#d4dce9;color:#171b24;display:flex;align-items:center;justify-content:center}#send svg{width:18px;height:18px}#send:hover:enabled{background:#fff}.composer-footer{display:flex;justify-content:space-between;color:#69717d;font-size:10px;margin-top:10px;padding:0 2px}#notice{font-size:11px;color:var(--error);margin:0;padding:0 25px 16px}dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:29px;width:min(420px,calc(100vw - 34px));box-shadow:0 25px 120px #0008}dialog::backdrop{background:#060709a6;backdrop-filter:blur(5px)}.dialog-top{display:flex;justify-content:space-between;align-items:center}h2{font-size:18px;margin:0;font-weight:600}.icon-button{font-size:24px;color:#8d96a3;padding:0 4px;line-height:1}.instructions{line-height:1.9;color:var(--muted);font-size:13px;margin:26px 0 18px}#code{width:100%;padding:19px 5px;border-radius:7px;background:var(--input);border:1px solid var(--line);font:600 clamp(15px,4vw,21px)/1.4 "Cascadia Mono",Consolas,monospace;letter-spacing:.075em;color:var(--text);user-select:all}.challenge-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#747f8e;margin-top:12px}.text-button{font-size:11px;color:#a7bddc;padding:5px}.waiting{display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:11px;margin:29px 0 5px}.spinner{display:inline-block;width:12px;height:12px;border:1.5px solid #364152;border-top-color:#a0badf;border-radius:50%;animation:spin 1s linear infinite}.secondary{border:1px solid var(--line);border-radius:6px;padding:10px 15px;width:100%;margin-top:17px;color:var(--text);font-size:12px}.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}@keyframes spin{to{transform:rotate(360deg)}}@keyframes arrive{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media(max-width:720px){.app{padding:15px 15px 18px}.top{height:47px;margin-bottom:17px}.brand{font-size:17px;gap:9px}.brand svg{width:21px;height:21px}.primary{padding:9px 15px;font-size:12px}.workspace{display:flex;flex-direction:column;gap:15px;height:calc(100dvh - 97px);min-height:430px;max-height:none}.sidebar{padding:0;flex-shrink:0}.label,.status-link{display:none}.sidebar nav{flex-direction:row;overflow:auto;gap:6px;padding-bottom:2px;scrollbar-width:none}.channel{font-size:11px;padding:10px 11px;gap:7px;background:var(--panel);border:1px solid #272b31;border-radius:6px}.channel[aria-current=true]{border-color:#4c586d;background:var(--soft)}.channel .count{font-size:9px;margin-left:2px}.conversation{flex:1;border-radius:9px}.channel-head{padding:17px 19px}.channel-head>div{gap:9px}h1{font-size:13px}.connection{font-size:9px}.messages{padding:16px 19px}#composer{padding:12px 13px 14px}.input-wrap input{padding:14px 12px;font-size:13px}.composer-footer{font-size:9px}.message{padding:8px 0}.message-text{font-size:12px}.account-name{font-size:11px}.logout{font-size:10px}#account{gap:10px}#notice{padding:0 16px 12px}.new-messages{bottom:109px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}

:root{--bg:#101214;--panel:#181b1e;--soft:#242a30;--input:#121518;--line:#2c333a;--text:#e9edf1;--muted:#929ba6;--accent:#7cdcf2;--error:#edb78b;--blue:var(--accent)}
:root[data-theme=light]{color-scheme:light;--bg:#f3f5f7;--panel:#fff;--soft:#e8eef2;--input:#f8fafb;--line:#dce3e9;--text:#20282f;--muted:#64737f;--accent:#087e99;--green:#27865b;--error:#a34d2a}body{color:var(--text)}.app{max-width:1450px}.top-right{display:flex;align-items:center;gap:12px}.brand{font-size:18px}.conversation{background:var(--panel)}.primary,#send{background:var(--text);color:var(--bg)}.primary:hover,#send:hover:enabled{background:var(--text);opacity:.85}.channel:hover,.channel[aria-current=true],.logout:hover{color:var(--text)}.channel[aria-current=true]{background:var(--soft)}.new-messages{border-color:var(--line);color:var(--text)}.icon-button{width:32px;height:32px;border-radius:6px;display:grid;place-items:center}.icon-button:hover{background:var(--soft)}.head{width:32px;height:32px;image-rendering:pixelated;background:var(--soft);border-radius:5px;flex-shrink:0}.account-head{width:28px;height:28px}#account{gap:10px}.message{display:flex;align-items:flex-start;gap:12px}.message>.head{margin-top:3px}.message-body{min-width:0;flex:1}.message-text{opacity:.86}.web-tag{color:var(--accent);background:none;border:0;padding:0;font-size:9px;letter-spacing:0}.sidebar-bottom{margin-top:auto;padding-top:18px}.voice-join{width:100%;text-align:left;background:var(--soft);padding:13px 12px;border-radius:7px;font-size:12px}.voice-join.joined{color:var(--green)}.status-link{padding-top:20px}.workspace.voice-open{grid-template-columns:175px minmax(0,1fr) 244px;gap:19px}.voice-panel{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto;padding:18px 15px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.voice-heading{display:flex;align-items:center;justify-content:space-between}.voice-heading h2{font-size:13px}.voice-modes,.theme-buttons{display:flex;gap:2px;padding:3px;background:var(--input);border:1px solid var(--line);border-radius:7px}.voice-modes button,.theme-buttons button{flex:1;font-size:10px;white-space:nowrap;padding:7px 5px;border-radius:4px;color:var(--muted)}.voice-modes button[aria-pressed=true],.theme-buttons button[aria-pressed=true]{background:var(--soft);color:var(--text)}.small-hint{font-size:10px;line-height:1.6;color:var(--muted);margin:0}.small-hint.error{color:var(--error)}.radar-label{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin:2px 0 8px}.radar{width:100%;aspect-ratio:1;position:relative;border:1px solid var(--line);border-radius:50%;overflow:hidden;background:radial-gradient(circle,transparent 32%,var(--line) 33%,transparent 34%,transparent 65%,var(--line) 66%,transparent 67%)}.radar:before,.radar:after{content:'';position:absolute;background:var(--line);pointer-events:none}.radar:before{width:1px;left:50%;top:0;bottom:0}.radar:after{height:1px;top:50%;left:0;right:0}.radar-dot{position:absolute;z-index:1;transform:translate(-50%,-50%);width:24px;height:24px;padding:2px;border-radius:50%;background:var(--panel);box-shadow:0 0 0 1px var(--line)}.radar-dot img{display:block;width:20px;height:20px;border-radius:50%;image-rendering:pixelated}.radar-dot.speaking{box-shadow:0 0 0 2px var(--green),0 0 12px #80c9a640}.radar-dot.self{box-shadow:0 0 0 2px var(--accent)}.voice-participants{flex:1;min-height:35px;overflow:auto}.voice-person{display:flex;align-items:center;gap:9px;padding:8px 0;min-width:0}.voice-person .head{width:29px;height:29px;outline:2px solid transparent;outline-offset:2px}.voice-person.speaking .head{outline-color:var(--green)}.voice-person span{font-size:11px;overflow-wrap:anywhere}.voice-person small{display:block;color:var(--muted);font-size:9px}.voice-person .voice-dot{margin-left:auto;color:var(--muted);font-size:9px}.voice-person.speaking .voice-dot{color:var(--green)}.voice-controls{display:grid;grid-template-columns:1fr 1fr;gap:5px;border-top:1px solid var(--line);padding-top:12px}.voice-controls button{border:1px solid var(--line);border-radius:6px;padding:10px 4px;font-size:10px;white-space:nowrap}.voice-controls button[aria-pressed=true]{color:var(--accent);background:var(--soft)}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 0;border-bottom:1px solid var(--line);font-size:12px}.theme-buttons{min-width:125px}.setting-row input[type=checkbox]{width:30px;height:17px;accent-color:var(--accent);cursor:pointer}#notification-hint{padding-top:10px}.settings-logout{display:flex;flex-direction:column;margin-top:30px}.setting-action{padding:14px 0;text-align:left;font-size:12px;border-bottom:1px solid var(--line)}.setting-action:last-child{border-bottom:0}.setting-action:hover{color:var(--accent)}.danger{color:var(--error)}
.message.continued{padding-top:0;padding-bottom:3px}.message.continued>.head{visibility:hidden;height:0;margin-top:0}.message.continued .message-meta{display:none}.message:has(+.message.continued){padding-bottom:3px}
@media(max-width:1100px){.workspace.voice-open{grid-template-columns:145px minmax(0,1fr) 225px;gap:12px}.workspace.voice-open .channel{font-size:11px;padding:12px 9px}.app{padding-left:22px;padding-right:22px}.voice-panel{padding:15px 11px}}
@media(max-width:760px){.app{padding:14px}.top{height:44px;margin-bottom:16px}.brand{font-size:16px}.top-right{gap:8px}.account-head{width:24px;height:24px}.account-name{font-size:10px;max-width:100px;overflow-wrap:anywhere}.workspace,.workspace.voice-open{display:flex;flex-direction:column;height:calc(100dvh - 88px);max-height:none;min-height:470px;gap:12px}.sidebar{display:grid;grid-template-columns:1fr auto;gap:8px;padding:0;flex-shrink:0}.sidebar nav{flex-direction:row;overflow:auto;gap:5px;scrollbar-width:none}#web-channels{grid-column:1}.label,.status-link{display:none}#channels{grid-row:2;grid-column:1/-1}.channel,.workspace.voice-open .channel{padding:9px 10px;font-size:10px;gap:6px}.sidebar-bottom{grid-row:1;grid-column:2;padding:0;margin:0}.voice-join{font-size:10px;padding:9px 12px}.conversation{flex:1;min-height:260px}.message{gap:9px}.message>.head{width:28px;height:28px}.voice-panel{flex-shrink:0;max-height:43dvh;display:grid;grid-template-columns:1fr 140px;gap:10px 14px;padding:13px 15px;border-radius:9px}.voice-heading{grid-column:1/-1}.voice-modes{grid-column:1;grid-row:2;align-self:start}.voice-participants{grid-column:1;grid-row:3/6;max-height:125px}.voice-controls{grid-column:2;grid-row:4/6;display:flex;flex-direction:column;border:0;padding:0}.voice-controls button{padding:8px 4px}#radar-wrap{grid-column:2;grid-row:2/4}#radar-wrap .radar{width:115px;margin:auto}.radar-label{font-size:8px}#voice-status,#voice-error{grid-column:1/-1}.voice-person{padding:5px 0}.voice-person .head{width:23px;height:23px}.voice-person span{font-size:10px}.voice-person small{font-size:8px}}

.voice-volumes{display:grid;grid-template-columns:1fr;gap:7px;border-top:1px solid var(--line);padding-top:12px}.voice-volumes label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.voice-volumes output{font-variant-numeric:tabular-nums}.voice-volumes input{width:100%;margin:0 0 5px;accent-color:var(--accent);cursor:pointer}@media(max-width:760px){.voice-volumes{grid-column:1/-1;grid-template-columns:auto 1fr;align-items:center;gap:8px 12px}.voice-volumes label{gap:10px}.voice-volumes input{margin:0}}

.spatial-toggle{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:9px}.spatial-toggle[aria-pressed=true]{color:var(--accent)}.voice-chat{border-top:1px solid var(--line);padding-top:12px;min-height:130px}.voice-chat h3{font-size:11px;font-weight:600;margin:0 0 10px}.voice-chat-messages{overflow:auto;max-height:180px;min-height:50px;scrollbar-width:thin}.voice-chat-message{display:flex;gap:7px;margin:8px 0}.voice-chat-message>.head{width:22px;height:22px}.voice-chat-message>div{min-width:0}.voice-chat-name{color:var(--muted);font-size:9px}.voice-chat-message p{font-size:11px;line-height:1.6;margin:3px 0;overflow-wrap:anywhere;white-space:pre-wrap}#voice-chat-form{display:flex;border:1px solid var(--line);border-radius:6px;background:var(--input);margin-top:10px}#voice-chat-input{border:0;background:none;min-width:0;width:100%;padding:9px;font-size:11px;color:var(--text)}#voice-chat-send{padding:5px 10px;font-size:16px}.voice-credit{display:block;font-size:9px;color:var(--muted);margin-top:8px}@media(max-width:760px){.spatial-toggle,.voice-chat{grid-column:1/-1}.voice-chat-messages{max-height:100px}}

.profile-trigger{cursor:pointer}.profile-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.dm-open{margin-top:6px}.dm-badge{margin-left:auto;font-size:10px;color:var(--accent)}.dm-badge:empty{display:none}.dm-threads{display:flex;gap:8px;padding:12px 18px;overflow:auto;flex-shrink:0;border-bottom:1px solid var(--line);scrollbar-width:thin}.dm-thread{display:flex;align-items:center;gap:8px;white-space:nowrap;border-radius:6px;padding:7px 9px;background:var(--input);font-size:11px}.dm-thread[aria-current=true]{background:var(--soft)}.dm-thread .head{width:24px;height:24px}.dm-compose{display:flex;background:var(--input);border:1px solid var(--line);border-radius:8px;margin:15px 22px 20px;flex-shrink:0}.dm-compose input{background:none;color:var(--text);border:0;width:100%;min-width:0;padding:14px;font-size:13px}.dm-compose button{padding:10px 15px;font-size:20px}#dm-error{padding:0 24px 14px}#dm-login{align-self:center;margin:24px}#dm-add-form{display:flex;flex-direction:column;gap:14px;margin-top:25px;font-size:12px}#dm-name{width:100%;border:1px solid var(--line);border-radius:6px;background:var(--input);padding:12px;color:var(--text)}.profile-head{margin:25px 0 16px}.profile-head>.head{width:80px;height:80px;border-radius:10px}#profile-dm{margin-top:25px;width:100%}@media(max-width:760px){.dm-open{grid-column:2;grid-row:1;padding:9px 11px;margin:0 80px 0 0}.sidebar-bottom{align-self:start}.dm-thread{font-size:10px}.dm-threads{padding:9px 13px}.dm-compose{margin:12px 13px}.dm-compose input{font-size:12px;padding:12px}}

@media(max-width:760px){.sidebar{grid-template-columns:minmax(0,1fr) auto auto}.dm-open{grid-column:2;grid-row:1;margin:0}.sidebar-bottom{grid-column:3;grid-row:1}}

.workspace.voice-open{grid-template-columns:155px minmax(240px,1fr) 220px 230px;gap:15px}.voice-text-panel{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px 15px}.voice-text-panel .voice-chat{display:flex;flex-direction:column;flex:1;min-height:0;border:0;padding:0}.voice-text-panel .voice-chat h3{font-size:13px;margin-bottom:15px}.voice-text-panel .voice-chat-messages{flex:1;min-height:100px;max-height:none}.voice-text-panel #voice-chat-form{flex-shrink:0}.voice-text-panel .voice-credit{flex-shrink:0}@media(min-width:761px) and (max-width:1100px){.workspace.voice-open{grid-template-columns:120px minmax(150px,1fr) 195px 195px;gap:10px}.voice-panel,.voice-text-panel{padding:14px 10px}}@media(max-width:760px){.workspace.voice-open{grid-template-columns:none}.voice-text-panel{flex-shrink:0;min-height:190px;max-height:35dvh;padding:15px}.voice-text-panel .voice-chat-messages{max-height:none;min-height:60px}.voice-text-panel .voice-chat{display:flex}.workspace.voice-open{height:auto;min-height:calc(100dvh - 88px)}.workspace.voice-open .conversation{min-height:260px;flex:initial}.workspace.voice-open .voice-panel{max-height:none}}

.dm-badge{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--accent);color:var(--bg);font-size:10px;font-weight:700;line-height:1}.dm-consent{padding:16px 22px;border-bottom:1px solid var(--line);background:var(--soft);flex-shrink:0}.dm-consent p{margin:0 0 12px;font-size:12px;color:var(--muted)}.dm-consent>div{display:flex;gap:12px;align-items:center}.dm-consent .primary{font-size:11px;padding:8px 14px}@media(max-width:760px){.dm-consent{padding:14px}}

.earthquake-message{background:rgba(234,179,8,.07);border-left:3px solid #d5a342;border-radius:5px;padding:13px 14px;margin:9px 0}.earthquake-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:rgba(234,179,8,.14);color:#e7b951;font-size:22px;flex:none}.earthquake-label{font-size:13px;font-weight:700;color:#e7b951}.earthquake-source{font-size:10px;color:var(--muted,#969da7)}.earthquake-message .message-text{line-height:1.85}.earthquake-message .message-meta{gap:8px}.earthquake-message.continued .message-meta{display:flex}[data-theme=light] .earthquake-label,[data-theme=light] .earthquake-icon{color:#916410}

.portal-header { position: sticky; top: 0; z-index: 20; background: #181818; border-bottom: 1px solid #333; }
.portal-nav-inner {
  width: min(1160px, calc(100% - 2rem)); margin: auto; min-height: 4rem;
  display: flex; gap: clamp(.5rem, 3vw, 1.5rem); align-items: center;
}
.portal-account { position: relative; min-width: 0; }
.portal-account-toggle, .portal-links a, .portal-account-menu button, .portal-login button {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem;
  border: 0; border-radius: .6rem; padding: .45rem .65rem; background: transparent;
  color: #f5f5f5; font-weight: 650; font-size: .875rem; cursor: pointer;
}
.portal-account-toggle { max-width: min(36vw, 13rem); background: #292725; list-style: none; }
.portal-account-toggle::-webkit-details-marker { display: none; }
.portal-account-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-account-toggle svg, .portal-account-toggle img, .portal-links svg { flex: none; }
.portal-account-toggle img { border-radius: .35rem; image-rendering: pixelated; }
.portal-account-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.portal-wordmark { font-size: 1rem; font-weight: 800; white-space: nowrap; }
.portal-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; white-space: nowrap; }
.portal-links svg { color: #ffbc5b; }
.portal-links a:hover, .portal-account-menu button:hover, .portal-login button:hover { background: #35312a; }
.portal-account-menu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 10rem; padding: .35rem;
  border: 1px solid #47423c; border-radius: .625rem; background: #24211e; box-shadow: 0 .75rem 2rem #0008;
}
.portal-account-menu button { width: 100%; }
.portal-account-menu p { margin: .25rem; color: #ffe0be; font-size: .875rem; }
@media (max-width: 460px) {
  .portal-nav-inner { width: calc(100% - 1rem); gap: .25rem; min-height: 3.5rem; }
  .portal-account-toggle, .portal-links a { padding-inline: .32rem; }
  .portal-account-toggle { max-width: 25vw; }
  .portal-links { gap: 0; }
  .portal-links a { font-size: .75rem; }
  .portal-wordmark { font-size: .875rem; }
  .portal-links svg { display: none; }
}

:root:not([data-theme=light]) {
  --bg:#111111; --panel:#202020; --soft:#292725; --input:#171717; --line:#383838;
  --text:#fafafa; --muted:#c0bfc5; --accent:#ffbc5b; --error:#efb58d;
}
:root {
  --primary:#ffbc5b;
  font-family:'Segoe UI','Noto Sans JP','Yu Gothic UI','Hiragino Kaku Gothic ProN',Meiryo,sans-serif;
}
body {font-size:1rem}
.portal-header {color:#fafafa}
.portal-header .account-name {color:#fafafa;font-size:.875rem;max-width:none}
.portal-header .head {width:1.75rem;height:1.75rem}
.portal-links a[aria-current=page] {background:#302a21;color:#ffcb80}
.portal-account-chevron {width:.42rem;height:.42rem;border:solid #d4ccc0;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:-.2rem .15rem 0 0;flex:none}
.app {max-width:1160px;padding-block:clamp(1rem,3.5vh,2.25rem);padding-inline:1rem}
.app:has(.workspace.voice-open) {max-width:1450px}
.workspace {gap:1rem;height:calc(100dvh - 8.25rem)}
.conversation,.voice-panel,.voice-text-panel {border-radius:1rem}
.channel-head {background:var(--panel)}
.channel-head h1 {font-weight:750;font-size:1.125rem}
.channel {font-size:.875rem}
.channel[aria-current=true] {border:1px solid var(--line);color:var(--accent)}
.message-text {font-size:.9375rem;line-height:1.62}
.message-name {font-weight:700}
.chat-sidebar-actions {display:flex;align-items:center;gap:.35rem}
.chat-sidebar-actions .icon-button {flex:0 0 2rem}
.chat-sidebar-actions .voice-join {white-space:nowrap;font-size:.875rem;padding:.65rem}
[data-theme=dark] .primary,[data-theme=dark] #send,:root:not([data-theme]) .primary,:root:not([data-theme]) #send {
  background:#ffbc5b;color:#211708;
}
[data-theme=dark] .primary:hover,[data-theme=dark] #send:hover:enabled {background:#ffca7d}
.dialog-top h2 {font-weight:750}
#code {color:var(--accent)}
@media (max-width:760px) {
  .app {padding:.75rem}
  .workspace {height:calc(100dvh - 5.5rem)}
  .channel,.workspace.voice-open .channel {font-size:.8125rem}
  .chat-sidebar-actions .voice-join {font-size:.8125rem;padding:.48rem}
  .chat-sidebar-actions .icon-button {width:1.75rem;height:1.75rem;flex-basis:1.75rem}
  .message-text {font-size:.9rem}
}
