.gr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;display:grid}.gr-card{min-width:0;padding:1.5rem}.gr-card h2{margin:0 0 .8rem}.gr-card p{overflow-wrap:anywhere;line-height:1.7}.gr-card fieldset{border:0;margin:0;padding:0}.gr-card label{gap:.5rem;margin:1rem 0;font-weight:600;display:grid}.gr-card input:not([type=checkbox]){box-sizing:border-box;border:1px solid var(--border,#cbd5dc);background:var(--surface,#fff);width:100%;min-width:0;color:inherit;font:inherit;border-radius:12px;padding:.8rem}.gr-card .gr-check{align-items:center;gap:.6rem;display:flex}.gr-actions{flex-wrap:wrap;gap:.6rem;margin:1rem 0;display:flex}.gr-actions button,.gemini-relay>button{border:1px solid var(--border,#cbd5dc);background:var(--surface,#fff);color:inherit;cursor:pointer;border-radius:12px;padding:.7rem 1rem}.gr-actions button:disabled{opacity:.45;cursor:default}.gr-message,.gr-result{white-space:pre-wrap;overflow-wrap:anywhere;background:#5c84681a;border-radius:12px;padding:1rem}.gr-error{color:#b34839;background:#b4483914}.gr-note{opacity:.8;font-size:.9rem}.gr-card details{line-height:1.8}.gr-card code{overflow-wrap:anywhere}@media (width<=900px){.gr-grid{grid-template-columns:1fr}.gr-card{padding:1rem}}@media (prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@keyframes ui-spin{to{transform:rotate(360deg)}}@keyframes ui-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ui-rise-in{0%{opacity:.7;transform:translateY(6px)scale(.99)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes ui-drawer-in{0%{opacity:.8;translate:12px}to{opacity:1;translate:0}}@media (width<=640px){.ui-overlay{align-items:end;padding:10px}.ui-dialog{border-radius:var(--ui-radius-xl);max-height:90dvh}.ui-drawer,.ui-drawer--wide{border-radius:var(--ui-radius-xl) var(--ui-radius-xl) 0 0;width:min(100vw,560px)}.ui-drawer--left,.ui-drawer--right{max-height:92dvh;inset-block:auto 0;inset-inline:0}.ui-page-header{flex-direction:column;gap:12px}.ui-page-header__actions{width:100%}}@media (width<=1100px){.ui-desktop-grid{grid-template-columns:minmax(0,1fr)}.ui-desktop-grid__aside{position:static}}@media (width<=760px){.ui-split-view{grid-template-columns:minmax(0,1fr)}.ui-split-view__list{border-right:0;border-bottom:1px solid var(--ui-border)}}.voice-panel{gap:16px;padding:20px;display:grid}.voice-panel__header,.voice-panel__people-head,.voice-panel__person,.voice-panel__actions{align-items:center;gap:10px;display:flex}.voice-panel__header,.voice-panel__people-head{justify-content:space-between}.voice-panel__header h2{margin:3px 0 0;font-size:19px}.voice-panel__indicator{color:var(--muted);align-items:center;gap:7px;font-size:12px;font-weight:700;display:inline-flex}.voice-panel__indicator i{background:#a8b4b4;border-radius:50%;width:8px;height:8px}.voice-panel__indicator.is-live i{background:#369774;box-shadow:0 0 0 4px #36977420}.voice-panel__privacy,.voice-panel__status,.voice-panel__empty{color:var(--muted);margin:0;font-size:13px;line-height:1.55}.voice-panel__error{color:#a24135;background:#fff0ee;border-radius:10px;margin:0;padding:10px 12px;font-size:13px}.voice-panel__status{background:var(--soft);border-radius:10px;padding:9px 11px}.voice-panel__media-status{color:var(--muted);flex-wrap:wrap;gap:8px;font-size:12px;display:flex}.voice-panel__media-status span{border:1px solid var(--line);border-radius:999px;padding:5px 9px}.voice-panel__people{gap:8px;display:grid}.voice-panel__people-head{padding-bottom:5px;font-size:13px}.voice-panel__people-head span{background:var(--soft);width:24px;height:24px;color:var(--accent);border-radius:50%;place-items:center;display:grid}.voice-panel__person{background:var(--paper);border-radius:11px;min-height:44px;padding:6px 8px}.voice-panel__avatar{background:var(--soft);border-radius:50%;flex:0 0 32px;place-items:center;width:32px;height:32px;display:grid}.voice-panel__person-name{text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:13px;font-weight:700;overflow:hidden}.voice-panel__person small{color:var(--muted);font-size:11px}.voice-panel__person button{color:#a24135;cursor:pointer;background:0 0;border:0}.voice-panel__actions{flex-wrap:wrap}.voice-button{border:1px solid var(--line);background:var(--surface);min-height:38px;color:var(--ink);cursor:pointer;border-radius:10px;padding:8px 12px;font-weight:700}.voice-button:disabled{opacity:.55;cursor:wait}.voice-button--primary{border-color:var(--accent);background:var(--accent);color:#fff}.voice-button--leave{color:#a24135;border-color:#c9574c}.voice-button--quiet{color:var(--muted)}@media (width<=480px){.voice-panel{padding:15px}.voice-panel__actions{align-items:stretch}.voice-button{flex:1}}.voice-room-window .voice-panel__people{background:var(--soft);border-radius:14px;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));padding:14px}.voice-room-window .voice-panel__people-head,.voice-room-window .voice-panel__empty{grid-column:1/-1}.voice-room-window .voice-panel__person{flex-direction:column;justify-content:center;min-height:118px}.voice-room-window .voice-panel__avatar{flex-basis:46px;width:46px;height:46px}.voice-room-window .voice-panel__person-name{flex:none;max-width:100%}.voice-room-window .voice-panel__actions{justify-content:center}.auth-page{color:#24333d;background:radial-gradient(circle at 82% 10%,#dce9e4 0,#0000 32%),linear-gradient(145deg,#f7f6ef,#e8efec);place-items:center;min-height:100dvh;padding:clamp(20px,5vw,64px);display:grid}.auth-card{background:#ffffffe6;border:1px solid #dce6e4;border-radius:26px;width:min(100%,480px);padding:clamp(24px,5vw,44px);box-shadow:0 24px 70px #203b4018}.auth-eyebrow{color:#667780;letter-spacing:.16em;margin:0 0 14px;font-size:11px;font-weight:800}.auth-moon{color:#8c743a;border:1px solid #d8c990;border-radius:50%;place-items:center;width:48px;height:48px;margin:0 0 18px;font-size:28px;display:grid}.auth-card h1{letter-spacing:-.035em;margin:0;font-size:clamp(25px,5vw,34px);line-height:1.24}.auth-copy{color:#667780;margin:10px 0 24px;line-height:1.65}.auth-form{gap:15px;display:grid}.auth-form label{color:#40545c;gap:7px;font-size:13px;font-weight:700;display:grid}.auth-form input{color:#24333d;width:100%;min-height:48px;font:inherit;background:#fbfcfa;border:1px solid #dce6e4;border-radius:11px;padding:11px 13px;font-size:16px}.auth-form input:focus-visible{outline-offset:2px;outline:2px solid #277d82}.auth-primary,.auth-secondary,.auth-logout{color:#fff;cursor:pointer;background:#277d82;border:0;border-radius:11px;min-height:46px;padding:10px 15px;font-weight:750}.auth-primary{justify-content:space-between;align-items:center;margin-top:3px;display:flex}.auth-primary:disabled,.auth-secondary:disabled,.auth-logout:disabled{opacity:.6;cursor:wait}.auth-secondary{color:#40545c;background:#f5f7f6;border:1px solid #dce6e4}.auth-actions{flex-wrap:wrap;gap:10px;display:flex}.auth-message{border-radius:10px;margin:0;padding:10px 12px;font-size:13px;line-height:1.5}.auth-message.error{color:#9d3328;background:#fff0ed}.auth-message.success{color:#236345;background:#e8f5ef}.auth-message button{color:inherit;cursor:pointer;background:0 0;border:0;margin-left:8px;text-decoration:underline}.auth-footnote{color:#7a888c;text-align:center;margin:18px 0 0;font-size:12px}.auth-logout-wrap{align-items:center;gap:8px;display:inline-flex}.auth-logout-wrap [role=alert]{color:#9d3328;font-size:12px}.auth-footnote button{color:#277d82;font:inherit;font-size:inherit;cursor:pointer;background:0 0;border:0;text-decoration:underline}@media (width<=600px){.auth-page{min-height:100svh;padding:16px}.auth-card{border-radius:20px;padding:25px 20px}.auth-actions>*{flex:1}}.music-page{padding-bottom:120px}.music-page .page-heading>p:last-child{color:var(--muted);margin:6px 0 0}.music-toolbar{justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;display:flex}.music-toolbar>div{gap:4px;display:grid}.music-toolbar>div span,.music-section-title p,.music-track-name small,.music-playlist-list small{color:var(--muted);font-size:13px}.music-primary,.music-state button,.music-create-playlist button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:10px;padding:10px 16px;font-weight:700}.music-primary:disabled,.music-create-playlist button:disabled{opacity:.55;cursor:wait}.music-error{color:#a73842;background:#fff4f4;border:1px solid #eac4c7;border-radius:10px;padding:10px 14px}.music-state{text-align:center;align-content:center;justify-items:center;min-height:260px;margin-top:16px;padding:36px;display:grid}.music-state p{color:var(--muted)}.music-empty-icon{background:var(--soft);width:64px;height:64px;color:var(--accent);border-radius:22px;place-items:center;font-size:30px;display:grid}.music-layout{grid-template-columns:minmax(0,1.65fr) minmax(260px,.8fr);align-items:start;gap:18px;margin-top:18px;display:grid}.music-library,.music-playlists{min-width:0;padding:20px}.music-section-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.music-section-title h2{margin:0;font-size:18px}.music-section-title p{margin:5px 0 0}.music-section-title>button{border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;border-radius:9px;width:36px;height:36px;font-size:20px}.music-track-list,.music-playlist-list{margin:0;padding:0;list-style:none}.music-track-list li{border-top:1px solid var(--line);border-radius:8px;grid-template-columns:38px minmax(0,1fr) 38px 38px;align-items:center;gap:8px;padding:9px 4px;display:grid}.music-track-list li.is-current{background:var(--soft)}.music-track-play,.music-icon-button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;min-width:34px;min-height:36px}.music-track-play{font-variant-numeric:tabular-nums}.music-track-name{text-align:left;min-width:0;color:var(--ink);cursor:pointer;background:0 0;border:0;gap:4px;display:grid;overflow:hidden}.music-track-name strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.music-icon-button:hover,.music-track-play:hover{color:var(--accent);background:var(--surface)}.music-icon-button.is-favorite{color:#c14e73}.music-icon-button:disabled{opacity:.4;cursor:not-allowed}.music-create-playlist{gap:8px;margin-bottom:12px;display:flex}.music-create-playlist input{border:1px solid var(--line);background:var(--paper);min-width:0;color:var(--ink);border-radius:9px;flex:1;padding:10px}.music-create-playlist button{padding-inline:12px}.music-playlist-empty{color:var(--muted);padding:12px 0}.music-playlist-list li{border-top:1px solid var(--line)}.music-playlist-list button{text-align:left;width:100%;color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:8px;gap:4px;padding:12px 8px;display:grid}.music-playlist-list button.selected{background:var(--soft);color:var(--accent)}.music-playlist-detail{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.music-playlist-detail h3{overflow-wrap:anywhere;margin:0 0 10px;font-size:15px}.music-playlist-detail ul{margin:0;padding:0;list-style:none}.music-playlist-detail li{border-top:1px solid var(--line);align-items:center;gap:8px;padding:6px 0;display:flex}.music-playlist-play{text-align:left;min-width:0;color:var(--ink);cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:9px;padding:8px 4px;display:flex}.music-playlist-play span:last-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.music-playlist-play span:first-child{color:var(--accent)}.music-playlist-remove{border:1px solid var(--line);color:var(--muted);background:var(--surface);cursor:pointer;border-radius:8px;flex:none;padding:7px 9px}.music-playlist-remove:disabled{opacity:.5;cursor:wait}.music-library-empty{text-align:center;color:var(--muted);justify-items:center;gap:8px;padding:32px 12px;display:grid}.music-library-empty button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:9px;padding:9px 13px}.music-mini{z-index:6;border:1px solid var(--line);background:var(--surface);width:min(760px,100vw - 280px);color:var(--ink);border-radius:16px;align-items:center;gap:9px;padding:10px 14px;display:flex;position:fixed;bottom:76px;right:24px;box-shadow:0 12px 36px #152d3430}.music-mini-title{align-items:center;gap:8px;min-width:120px;max-width:180px;display:flex;overflow:hidden}.music-mini-title span{color:var(--accent)}.music-mini-title strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.music-mini>button{color:var(--ink);cursor:pointer;background:0 0;border:0;min-width:30px;min-height:32px}.music-mini input[type=range]{accent-color:var(--accent);min-width:55px}.music-mini>input[type=range]{flex:1}.music-time{color:var(--muted);white-space:nowrap;font-size:11px}.music-volume{color:var(--muted);white-space:nowrap;align-items:center;gap:5px;font-size:11px;display:flex}.music-volume input{width:68px}@media (width<=900px){.music-layout{grid-template-columns:1fr}.music-mini{width:calc(100vw - 28px);bottom:72px;right:14px}}@media (width<=520px){.music-page{padding-bottom:150px}.music-toolbar,.music-library,.music-playlists{padding:14px}.music-mini{grid-template-columns:1fr repeat(3,32px);gap:4px;display:grid;bottom:70px}.music-mini-title{max-width:none}.music-mini>input[type=range]{grid-area:2/1/auto/4;width:100%}.music-time{grid-area:2/4}.music-volume{grid-column:1/-1;justify-content:flex-end}}.notification-trigger{border:1px solid var(--line);background:var(--surface);min-height:40px;color:var(--ink);cursor:pointer;border-radius:11px;align-items:center;gap:8px;padding:7px 12px;font-weight:700;display:inline-flex;position:relative}.notification-trigger>span:first-child{justify-content:center;align-items:center;width:21px;height:21px;display:inline-flex}.notification-trigger b{color:#fff;background:#c9574c;border-radius:999px;place-items:center;min-width:20px;height:20px;padding-inline:5px;font-size:11px;display:grid}.notification-overlay{z-index:9000;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#182329a8;justify-content:flex-end;display:flex;position:fixed;inset:0}.notification-drawer{width:min(430px,100%);height:100%;padding:25px 22px max(24px, env(safe-area-inset-bottom));background:var(--surface);flex-direction:column;gap:19px;display:flex;overflow:auto;box-shadow:-20px 0 55px #14272d24}.notification-drawer__header,.notification-stream,.notification-conversation{align-items:center;gap:10px;display:flex}.notification-drawer__header{justify-content:space-between}.notification-drawer__header h2{margin:3px 0 0;font-size:22px}.notification-close{border:1px solid var(--line);background:var(--surface);width:36px;height:36px;color:var(--ink);cursor:pointer;border-radius:50%;place-items:center;font-size:24px;display:grid}.notification-stream{border:1px solid var(--line);min-height:39px;color:var(--muted);border-radius:10px;padding:7px 10px;font-size:12px}.notification-stream__dot{background:#b47c3e;border-radius:50%;flex:0 0 8px;width:8px;height:8px}.notification-stream__dot.is-connected{background:#369774}.notification-stream__dot.is-unsupported{background:#8b9296}.notification-stream button{color:var(--accent);cursor:pointer;background:0 0;border:0;margin-left:auto;font-weight:700}.notification-summary{grid-template-columns:repeat(2,1fr);gap:9px;display:grid}.notification-summary div{border:1px solid var(--line);border-radius:12px;gap:4px;padding:12px;display:grid}.notification-summary strong{color:var(--accent);font-size:24px;line-height:1}.notification-summary span{color:var(--muted);font-size:12px}.notification-section{gap:9px;display:grid}.notification-section h3{margin:0;font-size:14px}.notification-muted{color:var(--muted);margin:0;font-size:12px;line-height:1.55}.notification-conversation{background:var(--paper);border-radius:10px;min-height:42px;padding:6px 9px}.notification-conversation>span{background:var(--soft);border-radius:50%;place-items:center;width:28px;height:28px;display:grid}.notification-conversation strong{flex:1;font-size:13px}.notification-conversation b{color:var(--accent);font-size:12px}.notification-push{border-top:1px solid var(--line);padding-top:16px}.notification-push__actions{flex-wrap:wrap;gap:7px;display:flex}.notification-push__actions button{border:1px solid var(--line);background:var(--surface);min-height:36px;color:var(--ink);cursor:pointer;border-radius:9px;padding:7px 10px;font-size:12px;font-weight:700}.notification-push__actions button:disabled{opacity:.5;cursor:not-allowed}.notification-error,.notification-success{border-radius:9px;margin:0;padding:9px 10px;font-size:12px;line-height:1.5}.notification-error{color:#a24135;background:#fff0ee}.notification-success{color:#287751;background:#e9f5ef}.notification-updated{border-top:1px solid var(--line);color:var(--muted);margin-top:auto;padding-top:12px;font-size:11px}@media (width<=520px){.notification-drawer{padding:18px 15px max(18px, env(safe-area-inset-bottom))}}.admin-page{padding-bottom:90px}.admin-heading{justify-content:space-between;align-items:end;gap:16px;display:flex}.admin-heading>div>p:last-child{color:var(--muted);margin:6px 0 0}.admin-refresh,.admin-create-form>button,.admin-reset-form button,.admin-announcement-form button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:9px;padding:10px 14px;font-weight:700}.admin-refresh{border:1px solid var(--line);background:var(--surface);color:var(--accent)}.admin-create-form>button:disabled,.admin-announcement-form button:disabled,.admin-reset-form button:disabled{opacity:.55;cursor:not-allowed}.admin-section{margin-bottom:18px;padding:20px}.admin-section-heading>div{align-items:center;gap:12px;display:flex}.admin-section-heading h2{margin:0;font-size:19px}.admin-section-heading p{color:var(--muted);margin:5px 0 0;font-size:13px}.admin-section-icon{background:var(--soft);width:44px;height:44px;color:var(--accent);border-radius:14px;flex:none;place-items:center;font-size:22px;display:grid}.admin-section-icon.announcement{color:#aa7d33;background:#fbf0dd}.admin-create-form{background:var(--paper);border-radius:12px;grid-template-columns:1fr 1.2fr 1fr auto;align-items:end;gap:9px;margin:18px 0;padding:14px;display:grid}.admin-create-form label,.admin-announcement-form>label{color:var(--muted);gap:6px;font-size:12px;display:grid}.admin-create-form input,.admin-create-form select,.admin-announcement-form input,.admin-announcement-form textarea,.admin-reset-form input{border:1px solid var(--line);background:var(--surface);width:100%;min-height:40px;color:var(--ink);font:inherit;border-radius:8px;padding:9px 11px}.admin-create-form{grid-template-columns:repeat(4,minmax(0,1fr)) auto}.admin-table-wrap{overflow:auto}.admin-table-wrap table{border-collapse:collapse;text-align:left;width:100%}.admin-table-wrap th,.admin-table-wrap td{border-bottom:1px solid var(--line);vertical-align:top;padding:12px 10px}.admin-table-wrap th{color:var(--muted);font-size:12px;font-weight:600}.admin-table-wrap td:first-child{gap:4px;display:grid}.admin-table-wrap td:first-child small{color:var(--muted)}.admin-table-wrap select{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:7px 9px}.admin-role,.admin-required,.admin-ok{background:var(--soft);color:var(--muted);border-radius:999px;padding:5px 8px;font-size:12px;display:inline-flex}.admin-role.is-admin{color:#5d66a1;background:#edf0fb}.admin-required{color:#9b6e23;background:#fff3dc}.admin-ok{color:#40805a;background:#edf7ef}.admin-text-button{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:5px 0}.admin-reset-form{grid-template-columns:minmax(100px,1fr) auto;gap:6px;margin-top:7px;display:grid}.admin-reset-form input{min-width:110px}.admin-reset-form button{white-space:nowrap;padding-inline:9px;font-size:12px}.admin-announcement-form{background:var(--paper);border-radius:12px;gap:12px;margin-top:18px;padding:16px;display:grid}.admin-announcement-form textarea{resize:vertical}.admin-announcement-form>div{justify-content:space-between;align-items:center;gap:12px;display:flex}.admin-checkbox{color:var(--muted);align-items:center;gap:8px;font-size:13px;display:flex}.admin-checkbox input{width:auto;min-height:0;accent-color:var(--accent)}.admin-announcement-list{margin-top:20px}.admin-announcement-list h3{margin:0 0 8px;font-size:14px}.admin-announcement-list article{border-top:1px solid var(--line);padding:12px 2px}.admin-announcement-list article>div{align-items:center;gap:8px;display:flex}.admin-announcement-list article p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0;line-height:1.5}.admin-announcement-list article small{color:var(--muted)}.important-badge{color:#aa5042;background:#fff0ed;border-radius:999px;padding:3px 7px;font-size:10px}.admin-state{color:var(--muted);padding:20px}.admin-denied{text-align:center;justify-items:center;padding:42px 20px;display:grid}.admin-denied>span{background:var(--soft);width:56px;height:56px;color:var(--accent);border-radius:18px;place-items:center;font-size:26px;display:grid}.admin-denied h2{color:var(--ink);margin:14px 0 4px}.admin-denied p,.admin-empty{color:var(--muted)}.admin-empty{text-align:center;border:1px dashed var(--line);border-radius:10px;padding:16px}.admin-error,.admin-notice{border-radius:10px;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px;display:flex}.admin-error{color:#a73842;background:#fff4f4;border:1px solid #eac4c7}.admin-error button{color:inherit;cursor:pointer;background:0 0;border:0;text-decoration:underline}.admin-notice{color:#33754e;background:#edf7ef}@media (width<=820px){.admin-create-form{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-create-form button{min-height:40px}}@media (width<=560px){.admin-section{padding:14px}.admin-create-form{grid-template-columns:1fr;padding:12px}.admin-create-form button{width:100%}.admin-table-wrap th,.admin-table-wrap td{padding:9px 7px}.admin-reset-form{grid-template-columns:1fr}.admin-announcement-form>div{flex-direction:column;align-items:stretch}.admin-announcement-form button{min-height:42px}}.admin-account-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.admin-text-button{border:1px solid var(--ui-border);background:var(--ui-surface);white-space:nowrap;border-radius:9px;min-height:40px;padding:8px 12px;font-weight:700}.admin-delete-button{color:var(--ui-danger);border-color:var(--ui-danger)}@media (width<=620px){.admin-page{padding-bottom:22px}.admin-table-wrap{overflow:visible}.admin-table-wrap table,.admin-table-wrap tbody,.admin-table-wrap tr,.admin-table-wrap td{width:100%;display:block}.admin-table-wrap thead{display:none}.admin-table-wrap tr{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:12px;margin:12px 0;padding:12px}.admin-table-wrap td{overflow-wrap:anywhere;border:0;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;display:flex}.admin-table-wrap td:first-child{border-bottom:1px solid var(--ui-border);gap:3px;display:grid}.admin-table-wrap td:not(:first-child):before{content:attr(data-label);color:var(--ui-text-muted);flex:none;font-size:12px}.admin-table-wrap td:last-child{flex-wrap:wrap;align-items:flex-start}.admin-account-actions{justify-content:flex-end}.admin-text-button{min-height:44px}.admin-reset-form{width:100%}}.admin-invite-actions{justify-content:space-between;align-items:center;gap:14px;margin:16px 0;display:flex}.admin-invite-actions p{color:var(--ui-text-muted);margin:0;font-size:13px}.admin-generated-invite{gap:7px;margin:12px 0;font-size:13px;font-weight:700;display:grid}.admin-generated-invite input{border:1px solid var(--ui-border);background:var(--ui-surface-muted);width:100%;min-height:44px;color:var(--ui-text);border-radius:9px;padding:8px 11px}.admin-generated-invite small{color:var(--ui-text-muted);font-weight:400}.admin-invite-list h3{margin:16px 0 8px;font-size:15px}.admin-invite-row{border-top:1px solid var(--ui-border);align-items:center;gap:12px;padding:12px 0;display:flex}.admin-invite-row>div{flex:1;gap:4px;min-width:0;display:grid}.admin-invite-row small{color:var(--ui-text-muted);overflow-wrap:anywhere;font-size:12px}@media (width<=620px){.admin-invite-actions{flex-direction:column;align-items:stretch}.admin-invite-actions button{min-height:44px}.admin-invite-row{flex-wrap:wrap}.admin-invite-row>div{flex-basis:100%}}.admin-release-form{grid-template-columns:minmax(0,1fr) auto}.admin-release-form label{overflow-wrap:anywhere;min-width:0}.admin-release-form input[type=file]{min-width:0}@media (width<=560px){.admin-release-form{grid-template-columns:1fr}}@media (width>=960px) and (orientation:landscape){.admin-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;display:grid}.admin-card-grid>.admin-section{min-width:0;margin-bottom:0;container-type:inline-size}.admin-card-grid>.admin-invites{grid-column:1/-1}}@container (width<=620px){.admin-create-form:not(.admin-release-form){grid-template-columns:repeat(2,minmax(0,1fr))}}@container (width<=360px){.admin-release-form{grid-template-columns:1fr}}.announcement-page,.home-page,.profile-page{max-width:1400px;color:var(--ink,#24333d);margin-inline:auto}.feature-heading{justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 22px;display:flex}.feature-heading h1{letter-spacing:-.03em;margin:2px 0;font-size:clamp(25px,3vw,34px)}.feature-heading p:not(.feature-eyebrow){color:var(--muted,#667780);margin:8px 0 0;line-height:1.55}.feature-eyebrow{color:var(--muted,#667780);letter-spacing:.14em;margin:0;font-size:11px;font-weight:800}.announcement-count{border:1px solid var(--line,#dce6e4);color:var(--muted,#667780);border-radius:999px;flex:none;padding:8px 12px;font-size:13px}.announcement-list{gap:12px;display:grid}.announcement-card{border:1px solid var(--line,#dce6e4);background:var(--surface,#fff);border-radius:16px;padding:18px 20px;box-shadow:0 10px 28px #203b400a}.announcement-card.important{border-left:4px solid #c28a42}.announcement-card-top{color:var(--muted,#667780);letter-spacing:.03em;align-items:center;gap:8px;font-size:11px;font-weight:800;display:flex}.announcement-unread{color:#277d82;background:#eaf3f1;border-radius:999px;padding:3px 8px}.announcement-card h3{margin:10px 0 7px;font-size:17px;line-height:1.4}.announcement-card>p{color:#53656c;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.7}.announcement-card footer{color:#7a898d;align-items:center;gap:12px;margin-top:14px;font-size:12px;display:flex}.announcement-card footer button{border:1px solid var(--line,#dce6e4);color:#277d82;cursor:pointer;background:#fff;border-radius:8px;margin-left:auto;padding:7px 10px;font-weight:700}.announcement-card.read{opacity:.85}.announcement-empty,.feature-state{border:1px dashed var(--line,#dce6e4);background:var(--surface,#fff);text-align:center;border-radius:16px;padding:clamp(28px,5vw,54px)}.announcement-empty>span{color:#9ab5ae;margin-bottom:10px;font-size:24px;display:block}.announcement-empty strong,.feature-state h2{font-size:16px}.announcement-empty p,.feature-state p{color:var(--muted,#667780);margin:8px 0 0;line-height:1.6}.feature-status{color:var(--muted,#667780);padding:18px}.feature-state button,.feature-error button{color:#fff;cursor:pointer;background:#277d82;border:0;border-radius:8px;padding:8px 12px;font-weight:700}.feature-state a{color:#277d82;margin-left:10px;font-weight:700}.feature-error{color:#92382d;background:#fff0ed;border-radius:10px;margin-bottom:14px;padding:12px 14px}.feature-error button{margin-left:10px}.announcement-list.compact{gap:9px}.announcement-list.compact .announcement-card{padding:13px 15px}.announcement-list.compact .announcement-card h3{margin:7px 0 5px;font-size:14px}.announcement-list.compact .announcement-card>p{-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:13px;display:-webkit-box;overflow:hidden}.announcement-list.compact .announcement-card footer{margin-top:9px}@media (width<=800px){.feature-heading{align-items:flex-start}.feature-heading h1{font-size:26px}.announcement-card{padding:15px}.announcement-card footer{flex-wrap:wrap}.announcement-card footer button{margin-left:auto}}@media (width<=420px){.feature-heading{gap:10px}.announcement-count{padding:7px 9px;font-size:11px}}.bugland-page{padding-bottom:90px}.bugland-heading{justify-content:space-between;align-items:end;gap:20px;display:flex}.bugland-heading>div>p:last-child{color:var(--muted);margin:6px 0 0}.bugland-refresh,.bugland-tabs button,.bugland-form button,.bugland-inline-form button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:10px;padding:10px 14px;font-weight:700}.bugland-refresh:disabled,.bugland-form button:disabled,.bugland-inline-form button:disabled{opacity:.55;cursor:wait}.bugland-tabs{background:var(--soft);border-radius:13px;gap:6px;margin:0 0 18px;padding:6px;display:flex;overflow:auto}.bugland-tabs button{color:var(--muted);background:0 0;flex:none}.bugland-tabs button.active{background:var(--surface);color:var(--accent);box-shadow:0 2px 8px #17393b15}.feature-state,.feature-error,.bugland-config-note,.bugland-workspace{padding:20px}.feature-state{color:var(--muted);margin-top:24px}.feature-error{color:#a73842;background:#fff4f4;border:1px solid #eac4c7;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;display:flex}.feature-error button{color:inherit;cursor:pointer;background:0 0;border:0;text-decoration:underline}.bugland-config-note{color:#80531b;background:#fff9ed;border:1px solid #ecd8b3;border-radius:12px;margin-bottom:16px}.bugland-grid,.bugland-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.bugland-card{min-width:0;padding:20px}.bugland-wide{grid-column:1/-1}.bugland-card-heading{align-items:center;gap:12px;display:flex}.bugland-card-heading h2{margin:3px 0 0;font-size:20px}.bugland-orb{color:#557b43;background:#eaf2e6;border-radius:16px;place-items:center;width:48px;height:48px;font-size:22px;display:grid}.bugland-orb.blue{color:#477ca5;background:#e7f0f7}.bugland-orb.amber{color:#a87928;background:#fbf0dd}.bugland-status-card>p,.bugland-muted{color:var(--muted);line-height:1.6}.bugland-live{color:#41845e;align-items:center;gap:7px;font-size:13px;display:inline-flex}.bugland-live i{background:#56af78;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #56af7820}.bugland-account-list>div{border-bottom:1px solid var(--line);justify-content:space-between;gap:10px;padding:9px 0;display:flex}.bugland-account-list small{color:var(--muted)}.bugland-account-list p{margin-bottom:0}.bugland-card pre,.bugland-result{background:var(--paper);max-height:360px;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;padding:14px;font:12px/1.55 ui-monospace,monospace;overflow:auto}.bugland-workspace{margin-bottom:16px}.bugland-workspace h2{margin:0 0 6px;font-size:19px}.bugland-workspace>p{margin:4px 0 14px}.bugland-form{flex-wrap:wrap;gap:9px;margin:16px 0;display:flex}.bugland-form input,.bugland-inline-form input,.bugland-alt-label input{border:1px solid var(--line);background:var(--paper);min-height:42px;color:var(--ink);border-radius:10px;padding:9px 12px}.bugland-form>input:first-child{flex:1;min-width:180px}.bugland-form input[type=datetime-local]{flex:1;min-width:190px}.bugland-form button.secondary{border:1px solid var(--line);background:var(--surface);color:var(--accent)}.bugland-result-state{border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:10px;padding:18px}.bugland-result{max-height:480px;margin:0}.bugland-table-wrap{overflow:auto}.bugland-table-wrap table{border-collapse:collapse;text-align:left;width:100%}.bugland-table-wrap th,.bugland-table-wrap td{border-bottom:1px solid var(--line);white-space:nowrap;padding:12px 10px}.bugland-table-wrap th{color:var(--muted);font-size:12px}.text-button{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:6px 8px}.text-button.danger{color:#b44b50}.bugland-token-form input[type=password]{flex:2}.bugland-inline-form{align-items:end;gap:9px;margin:12px 0;display:flex}.bugland-inline-form label,.bugland-alt-label{color:var(--muted);gap:6px;font-size:13px;display:grid}.bugland-inline-form input{width:120px;display:block}.bugland-inline-form>input{flex:1;min-width:120px}.bugland-alt-label{margin:14px 0 10px}.bugland-alt-label input{width:100%}@media (width<=720px){.bugland-heading{flex-direction:column;align-items:start}.bugland-grid,.bugland-admin-grid{grid-template-columns:1fr}.bugland-wide{grid-column:auto}.bugland-workspace{padding:16px}.bugland-inline-form{flex-wrap:wrap}.bugland-inline-form label{flex:1}.bugland-inline-form input{width:100%}}.bugland-match-detail{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}.bugland-mate-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin:16px 0 24px;display:grid}.bugland-mate{border:1px solid var(--line);background:var(--paper);border-radius:14px;padding:16px}.bugland-mate p{margin:8px 0;line-height:1.65}.bugland-mate li{overflow-wrap:anywhere;margin:8px 0;font-size:13px}.bugland-match-id{color:var(--muted);font-size:11px;display:block}.bugland-selected{background:var(--paper)}.bugland-manual{color:var(--muted);margin-top:24px}.bugland-manual summary{cursor:pointer;padding:12px 0}.bugland-form select{border:1px solid var(--line);background:var(--paper);min-height:42px;color:var(--ink);border-radius:8px;padding:8px}.bugland-bound-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin:20px 0;display:grid}.bugland-bound{padding:22px}.bugland-bound h2{overflow-wrap:anywhere;margin:0 0 6px}.bugland-avatar{background:var(--paper);width:54px;height:54px;color:var(--accent);border-radius:16px;flex-shrink:0;place-items:center;font-size:24px;display:grid}.bugland-bound-actions,.bugland-quickplayers{flex-wrap:wrap;align-items:center;gap:9px;margin:14px 0;display:flex}.bugland-bound-actions button,.bugland-quickplayers button,.bugland-more button{border:1px solid var(--line);background:var(--paper);color:var(--ink);cursor:pointer;border-radius:10px;padding:9px 13px}.bugland-quickplayers button.active{background:var(--accent);color:#fff}.bugland-notice{background:var(--paper);color:var(--accent);border-radius:12px;padding:14px}.bugland-more{text-align:center;margin:18px 0}.bugland-footnote{color:var(--muted);text-align:center;margin-top:24px;font-size:12px}.bugland-page .bugland-heading{flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;margin-bottom:16px}.bugland-heading h1{flex:1;margin:0;font-size:clamp(22px,3vw,30px)}.bugland-island{color:#fff2d4;background:radial-gradient(circle at 35% 30%,#95806d,#4d4354);border-radius:50%;flex:none;place-items:center;width:42px;height:42px;font-size:20px;display:grid}.bugland-dashboard{grid-template-columns:minmax(260px,.9fr) minmax(0,1.8fr);align-items:start;gap:16px;display:grid}.bugland-dashboard-side,.bugland-query-workspace{min-width:0}.bugland-split{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;display:flex}.bugland-split h2,.bugland-split h3{margin:0}.bugland-residents,.bugland-mode-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px;margin:12px 0;display:grid}.bugland-residents article,.bugland-bound,.bugland-profile,.bugland-mode{border:1px solid var(--line);background:var(--paper);overflow-wrap:anywhere;border-radius:12px;padding:13px 14px}.bugland-bound+.bugland-bound,.bugland-mode+.bugland-mode{margin-top:8px}.bugland-mode-grid>.bugland-mode{margin-top:0}.bugland-profile{margin:14px 0}.bugland-profile h3{margin:0}.bugland-bound p{margin:6px 0}.bugland-bound-actions{gap:6px;margin:9px 0 0}.bugland-bound-actions button{padding:6px 8px;font-size:13px}.bugland-segments{background:var(--soft);border-radius:10px;flex-wrap:wrap;gap:4px;padding:4px;display:flex}.bugland-segments button,.bugland-secondary{color:var(--ink);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;padding:8px 11px}.bugland-segments button[aria-pressed=true],.bugland-secondary{background:var(--surface);border-color:var(--line);color:var(--accent);font-weight:700}.bugland-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,85px),1fr));gap:9px;margin:10px 0;display:grid}.bugland-metrics div{min-width:0}.bugland-metrics dt{color:var(--muted);font-size:12px}.bugland-metrics dd{font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:16px;font-weight:700}.bugland-metrics-summary{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:12px}.bugland-metrics-summary dd{font-size:21px}.bugland-presence{background:var(--soft);color:var(--ink);border-radius:999px;padding:3px 9px;font-size:12px}.bugland-mode h3{font-size:15px}.bugland-mode summary,.bugland-fold>summary{cursor:pointer;font-weight:650}.bugland-match-list{gap:7px;margin:10px 0;display:grid}.bugland-match-row{text-align:left;border:1px solid var(--line);background:var(--paper);width:100%;color:var(--ink);font:inherit;cursor:pointer;border-radius:10px;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px 12px;padding:10px 12px;display:grid}.bugland-match-row:not(:disabled):hover{border-color:var(--accent);background:var(--soft)}.bugland-match-row:disabled{cursor:default}.bugland-match-row time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.bugland-win{color:var(--accent);font-weight:700}.bugland-loss,.bugland-range{color:var(--muted)}.bugland-range select{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:5px}.bugland-page button:focus-visible,.bugland-page input:focus-visible,.bugland-page summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (width<=900px){.bugland-dashboard{grid-template-columns:minmax(0,1fr)}}@media (width<=460px){.bugland-match-row{grid-template-columns:minmax(0,1fr) auto auto}.bugland-match-row time{grid-area:2/1/auto/-1}.bugland-form>input:first-child{min-width:min(135px,100%)}}.chat-feature{--chat-ink:#263b43;--chat-muted:#72848a;--chat-line:#dce7e5;--chat-accent:#287f83;--chat-soft:#edf5f3;border:1px solid var(--chat-line);height:calc(100dvh - 56px);min-height:520px;color:var(--chat-ink);background:#fff;border-radius:18px;grid-template-columns:minmax(280px,360px) minmax(0,1fr);display:grid;overflow:hidden;box-shadow:0 12px 36px #203b400d}.chat-feature button,.chat-feature input,.chat-feature textarea{font:inherit}.chat-feature button{cursor:pointer}.chat-list-pane{border-right:1px solid var(--chat-line);background:#fbfdfc;flex-direction:column;min-width:0;min-height:0;display:flex}.chat-list-head{justify-content:space-between;align-items:center;gap:8px;padding:20px 18px 14px;display:flex}.chat-list-head .eyebrow,.chat-dialog .eyebrow{color:#789295;letter-spacing:.12em;margin:0;font-size:10px;font-weight:800}.chat-list-head h1{margin:3px 0 0;font-size:24px}.chat-primary,.chat-secondary{border:0;border-radius:11px;min-height:42px;padding:0 15px;font-weight:700}.chat-primary{background:var(--chat-accent);color:#fff}.chat-primary:disabled{cursor:not-allowed;opacity:.5}.chat-secondary{border:1px solid var(--chat-line);color:var(--chat-ink);background:#f2f7f6}.chat-search{border:1px solid var(--chat-line);height:44px;color:var(--chat-muted);background:#fff;border-radius:12px;align-items:center;gap:9px;margin:0 14px 12px;padding:0 12px;display:flex}.chat-search input{width:100%;min-width:0;color:var(--chat-ink);background:0 0;border:0;outline:0}.chat-conversation-list{min-height:0;padding:4px 8px 12px;overflow-y:auto}.chat-conversation{text-align:left;width:100%;min-height:74px;color:inherit;background:0 0;border:0;border-radius:13px;align-items:center;gap:11px;padding:10px;display:flex}.chat-conversation:hover,.chat-conversation.selected{background:#eaf4f2}.chat-avatar{color:#3e797d;background:#dcecea;border-radius:50%;flex:0 0 44px;place-items:center;width:44px;height:44px;font-size:20px;display:grid}.chat-conversation-copy{flex:1;gap:5px;min-width:0;display:grid}.chat-conversation-copy strong,.chat-conversation-copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-conversation-copy small{color:var(--chat-muted);font-size:12px}.chat-conversation time{color:#8a999d;white-space:nowrap;align-self:flex-start;font-size:10px}.chat-state{color:var(--chat-muted);text-align:center;margin:auto;padding:24px}.chat-error{color:#a34444}.chat-error button,.chat-empty button,.chat-thread-empty button{border:1px solid var(--chat-line);min-height:38px;color:var(--chat-accent);background:#fff;border-radius:10px;padding:0 13px;font-weight:700}.chat-empty{justify-items:center;gap:8px;display:grid}.chat-empty>span,.chat-thread-empty>span{color:#92b9b5;font-size:32px}.chat-empty p,.chat-thread-empty p{color:var(--chat-muted);margin:0;font-size:13px}.chat-thread-pane{background:#fff;flex-direction:column;min-width:0;min-height:0;display:flex}.chat-thread-empty{text-align:center;flex:1;align-content:center;justify-items:center;gap:10px;padding:24px;display:grid}.chat-thread-empty strong{font-size:18px}.chat-thread-head{border-bottom:1px solid var(--chat-line);align-items:center;gap:12px;min-height:68px;padding:10px 18px;display:flex}.chat-thread-avatar{flex-basis:40px;width:40px;height:40px;font-size:17px}.chat-thread-title{flex:1;gap:3px;display:grid}.chat-thread-title small{color:var(--chat-muted);font-size:12px}.chat-back,.chat-icon-button{border:1px solid var(--chat-line);width:40px;height:40px;color:var(--chat-accent);background:#fff;border-radius:12px;font-size:24px;display:none}.chat-messages{scroll-behavior:smooth;flex-direction:column;flex:1;gap:16px;min-height:0;padding:22px clamp(16px,4vw,42px);display:flex;overflow-y:auto}.chat-message{align-items:flex-start;gap:9px;max-width:min(780px,90%);display:flex}.chat-message.mine{flex-direction:row-reverse;align-self:flex-end}.chat-message-avatar{flex-basis:34px;width:34px;height:34px;font-size:16px}.chat-message-body{min-width:0}.chat-message-meta{color:var(--chat-muted);align-items:center;gap:9px;margin-bottom:5px;font-size:11px;display:flex}.chat-message-meta strong{color:#53696e}.chat-message.mine .chat-message-meta{justify-content:flex-end}.chat-bubble{color:#263b43;overflow-wrap:anywhere;white-space:pre-wrap;background:#f0f5f4;border-radius:4px 15px 15px;margin:0;padding:11px 14px;line-height:1.55}.chat-message.mine .chat-bubble{background:#dff0ed;border-radius:15px 4px 15px 15px}.chat-bubble.retracted{color:#849194;font-style:italic}.chat-reply-quote{color:var(--chat-muted);background:#f7faf9;border-left:3px solid #80aeaa;margin-bottom:5px;padding:5px 9px;font-size:12px}.chat-attachment{color:var(--chat-accent);margin-top:7px;font-size:13px;display:block}.chat-message-actions{opacity:.6;justify-content:flex-end;gap:12px;padding:3px 2px 0;display:flex}.chat-message:hover .chat-message-actions,.chat-message:focus-within .chat-message-actions{opacity:1}.chat-message-actions button{color:var(--chat-muted);background:0 0;border:0;padding:2px;font-size:11px}.chat-message-actions button:disabled{opacity:.5}.chat-inline-error{color:#a34444;margin:0;padding:7px 16px 0;font-size:12px}.chat-composer{padding:10px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--chat-line);background:#fbfdfc}.chat-compose-row{align-items:flex-end;gap:9px;display:flex}.chat-compose-row textarea{resize:none;border:1px solid var(--chat-line);outline-color:var(--chat-accent);width:100%;min-height:44px;max-height:120px;color:var(--chat-ink);background:#fff;border-radius:13px;padding:11px 12px;line-height:1.4}.chat-send{min-width:68px}.chat-composer>small{color:#879699;padding:5px 3px 0;font-size:10px;display:block}.chat-composer-context{color:var(--chat-muted);justify-content:space-between;padding:0 3px 7px;font-size:12px;display:flex}.chat-composer-context button{color:var(--chat-accent);background:0 0;border:0}.chat-dialog-backdrop{z-index:8000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#173138aa;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.chat-dialog{border:1px solid var(--chat-line);background:#fff;border-radius:20px;flex-direction:column;gap:16px;width:min(540px,100%);max-height:min(720px,90dvh);padding:22px;display:flex;overflow:hidden;box-shadow:0 24px 80px #17313830}.chat-dialog>header{justify-content:space-between;display:flex}.chat-dialog h2{margin:4px 0 0;font-size:23px}.chat-dialog header>button{width:36px;height:36px;color:var(--chat-muted);background:#f1f6f5;border:0;border-radius:50%;font-size:24px}.chat-segment{background:#edf4f3;border-radius:12px;grid-template-columns:1fr 1fr;gap:4px;padding:4px;display:grid}.chat-segment button{min-height:40px;color:var(--chat-muted);background:0 0;border:0;border-radius:9px;font-size:13px;font-weight:700}.chat-segment button.active{color:var(--chat-accent);background:#fff;box-shadow:0 2px 10px #20464a12}.chat-field{color:#52686d;gap:7px;font-size:12px;font-weight:700;display:grid}.chat-field input{border:1px solid var(--chat-line);outline-color:var(--chat-accent);width:100%;min-height:44px;color:var(--chat-ink);background:#fff;border-radius:11px;padding:0 12px;font-size:14px}.chat-search-hint,.chat-selected{color:var(--chat-muted);margin:0;font-size:12px}.chat-member-result{border:1px solid var(--chat-line);text-align:left;min-height:62px;color:var(--chat-ink);background:#f7fbfa;border-radius:12px;align-items:center;gap:10px;padding:8px 10px;display:flex}.chat-member-result>span:nth-child(2){flex:1;gap:3px;display:grid}.chat-member-result small{color:var(--chat-muted);font-size:11px}.chat-check{color:var(--chat-accent);font-weight:800}.chat-group-members{gap:6px;max-height:220px;display:grid;overflow-y:auto}.chat-dialog>footer{justify-content:flex-end;gap:9px;margin-top:auto;padding-top:4px;display:flex}@media (width>=1000px){.chat-thread-head .chat-icon-button{display:block}}@media (width<=800px){.chat-feature{height:calc(100dvh - 54px - 60px - env(safe-area-inset-bottom));min-height:0;box-shadow:none;border:0;border-radius:0;margin:0;display:block;position:relative;overflow:hidden}.chat-list-pane{border:0;position:absolute;inset:0}.chat-list-head{padding:calc(14px + env(safe-area-inset-top)) 16px 12px}.chat-list-head h1{font-size:22px}.chat-thread-pane{display:none;position:absolute;inset:0}.chat-feature.is-open .chat-list-pane{display:none}.chat-feature.is-open .chat-thread-pane{display:flex}.chat-thread-head{min-height:60px;padding:8px 12px}.chat-thread-head .chat-back{display:block}.chat-messages{padding:16px 12px}.chat-message{max-width:94%}.chat-composer{padding-inline:10px}.chat-message-actions{opacity:1}.chat-dialog-backdrop{align-items:end;padding:0}.chat-dialog{width:100%;max-height:88dvh;padding:20px 16px calc(16px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}}@media (width<=360px){.chat-list-head{padding-inline:12px}.chat-conversation{gap:8px;padding-inline:7px}.chat-conversation time{display:none}.chat-send{min-width:58px;padding-inline:10px}}@media (width>=801px){.chat-feature{border:1px solid var(--chat-line);border-radius:16px;grid-template-columns:minmax(280px,min(31vw,360px)) minmax(0,1fr);height:calc(100dvh - 60px);min-height:520px;margin:0;display:grid;position:relative;overflow:hidden}.chat-list-pane{border-right:1px solid var(--chat-line);min-height:0;display:flex;position:static}.chat-thread-pane{min-height:0;display:flex;position:static}.chat-feature.is-open .chat-list-pane,.chat-feature.is-open .chat-thread-pane{display:flex}.chat-list-head{padding:15px 15px 11px}.chat-list-head h1{font-size:21px}.chat-conversation{min-height:66px}.chat-thread-head{min-height:60px}.chat-messages{padding-block:16px}.chat-composer{padding-top:8px}}@media (width<=760px){.route-content:has(.chat-feature){height:calc(100dvh - 54px - 60px - env(safe-area-inset-bottom));overflow:hidden}.chat-feature{height:100%}.chat-thread-head{flex:none;min-height:64px}.chat-thread-title{min-width:0}.chat-thread-title strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-back{flex:none}.chat-messages{overscroll-behavior:contain;gap:12px}.chat-message-body{max-width:100%}.chat-composer{flex:none;padding-bottom:10px}.chat-composer>small{display:none}}.chat-load-older{border:1px solid var(--line,#dce7e5);background:var(--surface,#fff);min-height:40px;color:var(--accent,#287f83);cursor:pointer;border-radius:999px;align-self:center;margin:8px auto;padding:8px 16px}.town-chat-page{border:1px solid var(--line);background:var(--surface);height:calc(100dvh - 70px);min-height:0;color:var(--ink);border-radius:16px;flex-direction:column;display:flex;overflow:hidden}.town-chat-page>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:15px 20px;display:flex}.town-chat-page h1{margin:2px 0;font-size:21px}.town-chat-page>header a{color:var(--accent)}.town-chat-scroll{overscroll-behavior:contain;flex-direction:column;flex:1;gap:14px;min-height:0;padding:18px;display:flex;overflow-y:auto}.town-chat-item{gap:9px;max-width:min(720px,90%);display:flex}.town-chat-item.mine{flex-direction:row-reverse;align-self:flex-end}.town-chat-item>div{min-width:0}.town-chat-item>div>span{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.town-chat-item time{font-size:11px}.town-chat-item p{background:var(--soft);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;margin:5px 0 0;padding:10px 13px}.town-chat-composer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);gap:9px;display:flex}.town-chat-composer textarea{resize:vertical;border:1px solid var(--line);background:var(--paper);min-width:0;color:var(--ink);border-radius:10px;flex:1;padding:10px}.town-chat-composer button{background:var(--accent);color:#fff;border:0;border-radius:10px;min-width:65px}@media (width<=800px){.town-chat-page{height:calc(100dvh - 120px - env(safe-area-inset-bottom));border-radius:0}.town-chat-scroll,.town-chat-page>header{padding:12px}}.town-chat-retract{color:var(--muted);cursor:pointer;background:0 0;border:0;margin:4px 0 0;padding:5px 2px;font-size:12px}.town-chat-retract:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chat-file-picker{border:1px solid var(--line);background:var(--surface);width:44px;height:44px;color:var(--accent);cursor:pointer;border-radius:10px;flex:none;place-items:center;font-size:24px;display:grid}.chat-file-picker input{opacity:0;width:1px;height:1px;position:absolute}.chat-file-picker:focus-within{outline:2px solid var(--accent)}.chat-selected-file{width:100%;color:var(--muted);overflow-wrap:anywhere;order:3;grid-column:1/-1;font-size:12px}.chat-selected-file button{color:var(--accent);cursor:pointer;background:0 0;border:0;margin-left:8px}.chat-image{object-fit:contain;border-radius:9px;max-width:min(320px,72vw);max-height:320px;margin-top:7px;display:block}.town-chat-composer{flex-wrap:wrap}@media (width<=620px){.chat-image{max-width:65vw;max-height:38vh}}.chat-compose-row .chat-call-button{flex:0 0 40px;place-items:center;display:inline-grid}.home-page{max-width:1440px;color:var(--ink,#24333d);margin-inline:auto}.home-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 22px;display:flex}.home-heading h1{letter-spacing:-.035em;margin:3px 0;font-size:clamp(25px,3vw,35px)}.home-heading>div>p:last-child{color:var(--muted,#667780);margin:8px 0 0;line-height:1.55}.home-eyebrow{color:var(--muted,#667780);letter-spacing:.14em;margin:0;font-size:11px;font-weight:800}.home-connection{border:1px solid var(--line,#dce6e4);color:var(--muted,#667780);border-radius:999px;flex:none;align-items:center;gap:8px;padding:9px 12px;font-size:12px;display:flex}.home-connection i,.home-resident-list li>i{background:#65a886;border-radius:50%;width:8px;height:8px}.home-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr);gap:16px;display:grid}.home-panel{border:1px solid var(--line,#dce6e4);background:var(--surface,#fff);border-radius:18px;min-width:0;padding:18px;box-shadow:0 10px 28px #203b4009}.home-teahouse{flex-direction:column;grid-row:span 2;min-height:490px;display:flex}.home-panel-heading{border-bottom:1px solid var(--line,#dce6e4);justify-content:space-between;align-items:center;gap:14px;padding-bottom:14px;display:flex}.home-panel-heading>div{align-items:center;gap:11px;min-width:0;display:flex}.home-panel-heading>div>span{color:#277d82;background:#eaf3f1;border-radius:12px;place-items:center;width:38px;height:38px;font-size:19px;display:grid}.home-panel-heading h2{margin:0;font-size:16px}.home-panel-heading p{color:var(--muted,#667780);margin:3px 0 0;font-size:12px}.home-panel-heading>a{color:#277d82;flex:none;font-size:12px;font-weight:750;text-decoration:none}.home-panel-heading>a:hover{text-decoration:underline}.home-online-count{font-size:19px}.home-online-count small{color:var(--muted,#667780);font-size:12px;font-weight:500}.home-messages{flex:1;align-content:start;gap:0;margin:0;padding:0;list-style:none;display:grid}.home-messages li{border-bottom:1px solid #dce6e488;gap:11px;padding:13px 2px;display:flex}.home-avatar{color:#277d82;background:#eaf3f1;border-radius:50%;flex:none;place-items:center;width:34px;height:34px;font-size:17px;display:grid}.home-messages li>div{flex:1;min-width:0}.home-messages strong,.home-resident-list strong{font-size:13px}.home-messages time{float:right;color:#829095;font-size:11px}.home-messages p{color:#53656c;overflow-wrap:anywhere;white-space:pre-wrap;margin:5px 0 0;font-size:13px;line-height:1.55}.home-empty,.home-loading,.home-state{color:var(--muted,#667780);text-align:center;padding:25px;line-height:1.6}.home-composer{align-items:flex-end;gap:10px;margin-top:14px;display:flex}.home-composer textarea{resize:vertical;border:1px solid var(--line,#dce6e4);min-height:48px;max-height:140px;color:var(--ink,#24333d);font:inherit;background:#fbfcfa;border-radius:12px;flex:1;padding:11px 12px;font-size:14px}.home-composer button,.home-state button{color:#fff;cursor:pointer;background:#277d82;border:0;border-radius:10px;min-height:42px;padding:9px 16px;font-weight:750}.home-composer button:disabled{opacity:.55;cursor:not-allowed}.home-permission{color:#78653d;background:#f8f4e9;border-radius:10px;margin:auto 0 0;padding:12px;font-size:12px}.home-resident-list{gap:13px;margin:15px 0 0;padding:0;list-style:none;display:grid}.home-resident-list li{align-items:center;gap:10px;display:flex}.home-resident-list li>span:nth-child(2){flex:1;gap:2px;min-width:0;display:grid}.home-resident-list small{color:var(--muted,#667780);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.home-notices{min-width:0}.home-notices .announcement-list{margin-top:12px}.home-error{color:#943c30;background:#fff0ed;border-radius:10px;margin:0 0 14px;padding:12px}.home-error button{color:inherit;cursor:pointer;background:0 0;border:0;margin-left:10px;text-decoration:underline}.home-error.inline{margin:9px 0 0;font-size:12px}.visually-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=900px){.home-grid{grid-template-columns:minmax(0,1fr)}.home-teahouse{grid-row:auto;min-height:420px}}@media (width<=620px){.home-heading{flex-direction:column;align-items:flex-start;gap:12px}.home-heading h1{font-size:27px}.home-panel{border-radius:15px;padding:14px}.home-teahouse{min-height:400px}.home-composer{align-items:stretch}.home-composer textarea{min-width:0}.home-connection{padding:7px 10px}}.home-panel-heading>div>span,.home-avatar{background:var(--ui-accent-soft);color:var(--ui-accent)}.home-panel-heading>a{color:var(--ui-accent)}.home-messages li{border-color:var(--ui-border)}.home-messages time{color:var(--ui-text-subtle)}.home-messages p{color:var(--ui-text-muted)}.home-composer textarea{background:var(--ui-surface-muted)}.home-composer button,.home-state button{background:var(--ui-accent);color:var(--ui-accent-contrast)}.home-permission{background:var(--ui-warning-soft);color:var(--ui-warning)}@media (width<=760px){.home-page{padding-top:14px}.home-heading{margin-bottom:14px}.home-heading h1{font-size:25px}.home-grid{gap:10px}.home-panel{padding:13px}.home-teahouse{min-height:0}.home-messages{flex:none}.home-messages li{gap:9px;padding:11px 0}.home-messages li>div{overflow:hidden}.home-composer{margin-top:11px}.home-composer button{min-height:44px}}.ai-chat{flex-direction:column;gap:16px;height:calc(100dvh - 60px);min-height:540px;padding-block:20px;display:flex}.ai-chat__heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.ai-chat__heading h1{color:var(--ui-text);margin:3px 0 4px;font-size:clamp(24px,4vw,32px)}.ai-chat__heading p:last-child{color:var(--ui-text-muted);margin:0;font-size:13px}.ai-chat__heading-actions{gap:8px;display:flex}.ai-chat__clear,.ai-chat__sidebar-toggle,.ai-chat__retry button{border:1px solid var(--ui-border);background:var(--ui-surface);min-height:36px;color:var(--ui-text-muted);border-radius:10px;padding:0 12px;font-size:12px}.ai-chat__sidebar-toggle{display:none}.ai-chat button:disabled{opacity:.45;cursor:not-allowed}.ai-chat__workspace{border:1px solid var(--ui-border);background:var(--ui-surface);min-height:0;box-shadow:var(--ui-shadow-sm);border-radius:18px;flex:1;grid-template-columns:250px minmax(0,1fr);display:grid;position:relative;overflow:hidden}.ai-chat__sidebar{border-right:1px solid var(--ui-border);background:var(--ui-surface-muted);flex-direction:column;gap:14px;min-width:0;padding:14px;display:flex;overflow:hidden}.ai-chat__new,.ai-chat__workspace-upload{border:1px solid var(--ui-border);background:var(--ui-surface);min-height:38px;color:var(--ui-text);border-radius:11px;font-weight:650}.ai-chat__new{color:var(--ui-accent)}.ai-chat__side-section{flex-direction:column;gap:8px;min-height:0;display:flex}.ai-chat__side-section:first-of-type{max-height:42%}.ai-chat__files-section{flex:1}.ai-chat__side-title{color:var(--ui-text-muted);justify-content:space-between;align-items:center;font-size:11px;display:flex}.ai-chat__side-title strong{color:var(--ui-text);font-size:12px}.ai-chat__conversation-list,.ai-chat__file-list{flex-direction:column;gap:5px;min-height:0;display:flex;overflow:auto}.ai-chat__conversation-list button{min-height:38px;color:var(--ui-text-muted);text-align:left;background:0 0;border:0;border-radius:9px;justify-content:space-between;align-items:center;gap:7px;padding:7px 9px;display:flex}.ai-chat__conversation-list button span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ai-chat__conversation-list button small{color:var(--ui-text-subtle);flex:none;font-size:9px}.ai-chat__conversation-list button:hover,.ai-chat__conversation-list button.active{background:var(--ui-accent-soft);color:var(--ui-text)}.ai-chat__file-list>p{color:var(--ui-text-subtle);margin:10px 2px;font-size:11px}.ai-chat__file-row{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:9px;gap:6px;padding:8px;display:grid}.ai-chat__file-row>div:first-child{gap:2px;min-width:0;display:grid}.ai-chat__file-row strong{color:var(--ui-text);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.ai-chat__file-row small{color:var(--ui-text-subtle);font-size:9px}.ai-chat__file-actions{gap:9px;display:flex}.ai-chat__file-actions a,.ai-chat__file-actions button{color:var(--ui-accent);background:0 0;border:0;padding:0;font-size:10px;text-decoration:none}.ai-chat__file-actions button{color:var(--ui-danger)}.ai-chat__panel{background:var(--ui-surface);flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.ai-chat__status{border-bottom:1px solid var(--ui-border);min-height:48px;color:var(--ui-text-muted);justify-content:space-between;align-items:center;gap:12px;padding:7px 14px;font-size:11px;display:flex}.ai-chat__mode{border:1px solid var(--ui-border);background:var(--ui-surface-muted);border-radius:10px;flex:none;gap:3px;padding:3px;display:flex}.ai-chat__mode button{min-height:28px;color:var(--ui-text-muted);background:0 0;border:0;border-radius:7px;padding:0 10px;font-size:10px}.ai-chat__mode button.active{background:var(--ui-surface);color:var(--ui-accent);box-shadow:var(--ui-shadow-sm)}.ai-chat__personal-sources{border-bottom:1px solid var(--ui-border);background:var(--ui-surface-muted);gap:9px;padding:12px 14px;display:grid}.ai-chat__retry{border-bottom:1px solid var(--ui-border);color:var(--ui-danger);justify-content:center;align-items:center;gap:8px;padding:7px 12px;font-size:11px;display:flex}.ai-chat__retry button{min-height:28px;color:var(--ui-danger)}.ai-chat__messages{flex-direction:column;flex:1;gap:17px;min-height:240px;padding:clamp(16px,3vw,30px);display:flex;overflow-y:auto}.ai-chat__welcome{min-height:220px;color:var(--ui-text-muted);text-align:center;flex:1;align-content:center;justify-items:center;gap:9px;display:grid}.ai-chat__welcome>span{color:var(--ui-accent);font-size:32px}.ai-chat__welcome strong{color:var(--ui-text);font-size:18px}.ai-chat__welcome p{color:var(--ui-text-subtle);margin:0;font-size:12px}.ai-chat__message{align-items:flex-start;gap:9px;max-width:min(88%,800px);display:flex}.ai-chat__message.user{flex-direction:row-reverse;align-self:flex-end}.ai-chat__avatar{background:var(--ui-accent-soft);width:30px;height:30px;color:var(--ui-accent);border-radius:50%;flex:0 0 30px;place-items:center;font-size:12px;font-weight:700;display:grid}.ai-chat__bubble{overflow-wrap:anywhere;border:1px solid var(--ui-border);background:var(--ui-surface-muted);min-width:28px;max-width:100%;color:var(--ui-text);border-radius:5px 14px 14px;padding:10px 13px;font-size:14px;line-height:1.65}.ai-chat__message.user .ai-chat__bubble{border-color:var(--ui-border-strong);background:var(--ui-accent-soft);border-radius:14px 5px 14px 14px}.ai-chat__markdown>:first-child{margin-top:0}.ai-chat__markdown>:last-child{margin-bottom:0}.ai-chat__markdown p{white-space:pre-wrap}.ai-chat__markdown pre{color:#e6edf3;white-space:pre;background:#172126;border-radius:10px;max-width:100%;padding:14px;overflow:auto}.ai-chat__markdown code{font-size:.92em}.ai-chat__markdown table{border-collapse:collapse;display:block;overflow:auto}.ai-chat__markdown th,.ai-chat__markdown td{border:1px solid var(--ui-border-strong);padding:7px}.ai-chat__markdown .katex-display{max-width:100%;padding:3px 0;overflow:auto hidden}.ai-chat__typing{color:var(--ui-text-muted);font-size:12px}.ai-chat__generated-files{gap:7px;margin-top:10px;display:grid}.ai-chat__generated-file{border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);border-radius:10px;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:8px 10px;text-decoration:none;display:grid}.ai-chat__generated-file>span{background:var(--ui-accent-soft);color:var(--ui-accent);border-radius:6px;padding:2px 5px;font-size:9px}.ai-chat__generated-file strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.ai-chat__generated-file small{color:var(--ui-accent);font-size:9px}.ai-chat__form-error{color:var(--ui-danger);margin:0;padding:0 18px 8px;font-size:12px}.ai-chat__composer{border-top:1px solid var(--ui-border);padding:12px 14px max(12px,env(safe-area-inset-bottom));gap:7px;display:grid}.ai-chat__compose-row{align-items:flex-end;gap:8px;display:flex}.ai-chat__file{display:none}.ai-chat__attach{border:1px solid var(--ui-border);background:var(--ui-surface);width:40px;height:40px;color:var(--ui-accent);border-radius:12px;flex:0 0 40px;font-size:23px;line-height:1}.ai-chat__compose-row textarea{resize:vertical;border:1px solid var(--ui-border);outline-color:var(--ui-focus);background:var(--ui-surface);min-height:42px;max-height:150px;color:var(--ui-text);font:inherit;border-radius:12px;flex:1;padding:10px 12px;font-size:14px;line-height:1.45}.ai-chat__compose-row textarea:disabled{background:var(--ui-surface-muted)}.ai-chat__send{background:var(--ui-accent);min-width:68px;height:42px;color:var(--ui-accent-contrast);border:0;border-radius:12px;padding:0 13px;font-size:13px;font-weight:700}.ai-chat__composer>small{color:var(--ui-text-subtle);padding-left:48px;font-size:10px}.ai-chat__attachment{background:var(--ui-accent-soft);color:var(--ui-text-muted);border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:6px 8px;font-size:11px;display:flex}.ai-chat__attachment button{color:var(--ui-danger);background:0 0;border:0;font-size:11px}.ai-chat__sidebar-backdrop{display:none}@media (width<=900px){.ai-chat__workspace{grid-template-columns:220px minmax(0,1fr)}}@media (width<=700px){.ai-chat{height:calc(100dvh - 116px - env(safe-area-inset-bottom));gap:10px;min-height:0;margin:0 auto;padding:10px 10px 0}.ai-chat__heading{padding:0 3px}.ai-chat__heading p:last-child{display:none}.ai-chat__heading-actions{gap:5px}.ai-chat__sidebar-toggle{display:block}.ai-chat__clear,.ai-chat__sidebar-toggle{min-height:32px;padding:0 8px;font-size:10px}.ai-chat__workspace{border-radius:14px 14px 0 0;display:block}.ai-chat__panel{height:100%}.ai-chat__sidebar{z-index:4;border-right:1px solid var(--ui-border);width:min(84vw,310px);box-shadow:var(--ui-shadow-sm);transition:transform .18s;position:absolute;inset:0 auto 0 0;transform:translate(-105%)}.ai-chat__workspace.is-sidebar-open .ai-chat__sidebar{transform:translate(0)}.ai-chat__sidebar-backdrop{z-index:3;background:#0000002e;border:0;display:block;position:absolute;inset:0}.ai-chat__status{min-height:45px;padding:6px 9px}.ai-chat__status>span{text-overflow:ellipsis;white-space:nowrap;max-width:42%;overflow:hidden}.ai-chat__mode button{padding:0 8px}.ai-chat__messages{min-height:0;padding:15px 10px}.ai-chat__message{max-width:94%}.ai-chat__composer{padding:9px 8px max(9px,env(safe-area-inset-bottom))}.ai-chat__composer>small{text-align:center;padding-left:0}.ai-chat__send{min-width:55px;padding:0 8px}.ai-chat__generated-file{grid-template-columns:auto minmax(0,1fr)}.ai-chat__generated-file small{grid-column:2}}.notes-feature{--notes-ink:#263b43;--notes-muted:#718389;--notes-line:#dce7e5;--notes-accent:#287f83;border:1px solid var(--notes-line);height:calc(100dvh - 56px);min-height:520px;color:var(--notes-ink);background:#fff;border-radius:18px;grid-template-columns:minmax(300px,390px) minmax(0,1fr);display:grid;overflow:hidden;box-shadow:0 12px 36px #203b400d}.notes-feature button,.notes-feature input,.notes-feature textarea,.notes-feature select{font:inherit}.notes-feature button{cursor:pointer}.notes-sidebar{border-right:1px solid var(--notes-line);background:#fbfdfc;flex-direction:column;min-width:0;min-height:0;display:flex}.notes-head{justify-content:space-between;align-items:center;gap:8px;padding:20px 16px 13px;display:flex}.notes-head .eyebrow,.notes-editor-head .eyebrow,.notes-modal .eyebrow{color:#789295;letter-spacing:.12em;margin:0;font-size:10px;font-weight:800}.notes-head h1{margin:3px 0 0;font-size:23px}.notes-primary{background:var(--notes-accent);color:#fff;border:0;border-radius:11px;min-height:40px;padding:0 13px;font-weight:700}.notes-sidebar-tools{align-items:center;gap:6px;padding:0 12px 10px;display:flex}.notes-search{border:1px solid var(--notes-line);min-width:0;height:42px;color:var(--notes-muted);background:#fff;border-radius:11px;flex:1;align-items:center;gap:8px;padding:0 10px;display:flex}.notes-search input{width:100%;min-width:0;color:var(--notes-ink);background:0 0;border:0;outline:0;font-size:12px}.notes-folder-add{border:1px solid var(--notes-line);width:38px;height:38px;color:var(--notes-accent);background:#fff;border-radius:10px;font-size:20px}.notes-folder-create{gap:5px;padding:0 12px 8px;display:flex}.notes-folder-create input{border:1px solid var(--notes-line);border-radius:8px;flex:1;min-width:0;padding:7px 8px}.notes-folder-create button{color:var(--notes-accent);background:#eaf4f2;border:0;border-radius:8px;padding:0 8px}.notes-folder-list{gap:3px;max-height:180px;padding:0 8px 9px;display:grid;overflow-y:auto}.notes-folder{text-align:left;width:100%;min-height:35px;color:var(--notes-muted);background:0 0;border:0;border-radius:9px;align-items:center;gap:9px;padding:5px 9px;display:flex}.notes-folder span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.notes-folder small{font-size:10px}.notes-folder.active,.notes-folder:hover{color:var(--notes-accent);background:#eaf4f2}.notes-folder-row{align-items:center;display:flex}.notes-folder-row .notes-folder{flex:1}.notes-folder-menu{width:30px;height:30px;color:var(--notes-muted);background:0 0;border:0;border-radius:8px}.notes-folder-row.active{background:#eaf4f2;border-radius:9px}.notes-list-heading{border-top:1px solid var(--notes-line);color:#4d6267;justify-content:space-between;padding:9px 15px 7px;font-size:12px;display:flex}.notes-list-heading small{color:var(--notes-muted)}.notes-list{min-height:0;padding:0 8px 14px;overflow-y:auto}.notes-card{text-align:left;width:100%;color:var(--notes-ink);background:0 0;border:1px solid #0000;border-radius:12px;gap:5px;margin:4px 0;padding:11px;display:grid}.notes-card:hover,.notes-card.selected{background:#edf6f4;border-color:#cfe2df}.notes-card strong,.notes-card p{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.notes-card p{color:var(--notes-muted);margin:0;font-size:12px}.notes-card>span{color:#8a999d;font-size:10px}.notes-card>small{gap:5px;display:flex}.notes-card i{color:var(--notes-accent);font-size:10px;font-style:normal}.notes-state,.notes-empty{color:var(--notes-muted);text-align:center;margin:auto;padding:22px}.notes-error{color:#a34444}.notes-state button,.notes-empty button{border:1px solid var(--notes-line);min-height:36px;color:var(--notes-accent);background:#fff;border-radius:9px;padding:0 12px;font-weight:700}.notes-empty{justify-items:center;gap:8px;display:grid}.notes-empty>span,.notes-prompt>span{color:#91b8b4;font-size:32px}.notes-empty p,.notes-prompt p{color:var(--notes-muted);margin:0;font-size:12px}.notes-editor-pane{background:#fff;flex-direction:column;min-width:0;min-height:0;display:flex}.notes-prompt{text-align:center;flex:1;align-content:center;justify-items:center;gap:11px;padding:24px;display:grid}.notes-prompt strong{font-size:18px}.notes-editor-head{border-bottom:1px solid var(--notes-line);align-items:center;gap:12px;min-height:70px;padding:10px 18px;display:flex}.notes-editor-head>div:first-of-type{flex:1;gap:2px;display:grid}.notes-save-status{color:var(--notes-muted);white-space:nowrap;font-size:11px}.notes-save-status.saving{color:#8b701d}.notes-save-status.error{color:#aa4343}.notes-actions{gap:5px;display:flex}.notes-actions button{border:1px solid var(--notes-line);color:#536a6f;background:#fff;border-radius:9px;min-height:34px;padding:0 10px;font-size:12px}.notes-actions button:hover{color:var(--notes-accent);background:#edf6f4}.notes-actions .notes-delete{color:#a44d4d}.notes-actions button:disabled{opacity:.5}.notes-back{border:1px solid var(--notes-line);width:38px;height:38px;color:var(--notes-accent);background:#fff;border-radius:10px;font-size:24px;display:none}.notes-editor-scroll{flex-direction:column;flex:1;min-height:0;padding:clamp(17px,4vw,36px) clamp(16px,5vw,54px) 22px;display:flex;overflow-y:auto}.notes-title-input{width:100%;color:var(--notes-ink);border:0;outline:0;padding:5px 0 15px;font-size:clamp(22px,3vw,32px);font-weight:750}.notes-meta-fields{grid-template-columns:minmax(120px,.45fr) minmax(160px,1fr);gap:10px;padding:0 0 14px;display:grid}.notes-meta-fields label{color:var(--notes-muted);gap:5px;font-size:10px;font-weight:700;display:grid}.notes-meta-fields input,.notes-meta-fields select{border:1px solid var(--notes-line);outline-color:var(--notes-accent);width:100%;min-height:36px;color:var(--notes-ink);background:#fff;border-radius:9px;padding:0 9px;font-size:12px}.notes-content-input{resize:none;color:#344a50;border:0;outline:0;flex:1;width:100%;min-height:260px;padding:8px 0;font-size:15px;line-height:1.75}.notes-inline-error{color:#a34444;justify-content:space-between;align-items:center;gap:10px;font-size:12px;display:flex}.notes-inline-error button{color:var(--notes-accent);background:0 0;border:0;font-weight:700}.notes-modal-backdrop{z-index:30;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#17313855;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.notes-modal{border:1px solid var(--notes-line);background:#fff;border-radius:19px;flex-direction:column;gap:14px;width:min(520px,100%);max-height:min(720px,90dvh);padding:20px;display:flex;overflow-y:auto;box-shadow:0 24px 80px #17313830}.notes-modal>header{justify-content:space-between;display:flex}.notes-modal h2{margin:3px 0;font-size:22px}.notes-modal h3{color:#53696e;margin:4px 0 -8px;font-size:13px}.notes-modal header>button{width:34px;height:34px;color:var(--notes-muted);background:#f1f6f5;border:0;border-radius:50%;font-size:22px}.notes-share-tabs{background:#edf4f3;border-radius:10px;grid-template-columns:1fr 1fr;gap:4px;padding:4px;display:grid}.notes-share-tabs button{min-height:36px;color:var(--notes-muted);background:0 0;border:0;border-radius:8px;font-size:12px}.notes-share-tabs button.active{color:var(--notes-accent);background:#fff;font-weight:700}.notes-share-field{color:#53696e;gap:6px;font-size:12px;font-weight:700;display:grid}.notes-share-field input{border:1px solid var(--notes-line);outline-color:var(--notes-accent);border-radius:10px;min-height:42px;padding:0 10px}.notes-share-list,.notes-version-list{gap:7px;display:grid;overflow:auto}.notes-share-list>div{border:1px solid var(--notes-line);border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:9px;font-size:12px;display:flex}.notes-share-list button,.notes-version-list button{color:var(--notes-accent);background:#edf6f4;border:0;border-radius:8px;padding:7px 10px;font-size:11px;font-weight:700}.notes-share-list p,.notes-version-list>p{color:var(--notes-muted);margin:0;font-size:12px}.notes-version-list article{border:1px solid var(--notes-line);border-radius:11px;justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.notes-version-list article>div{gap:4px;min-width:0;display:grid}.notes-version-list strong{font-size:13px}.notes-version-list small{color:var(--notes-muted);font-size:10px}.notes-version-list p{color:#667a7f;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:11px;overflow:hidden}@media (width<=800px){.notes-feature{height:calc(100dvh - 64px - env(safe-area-inset-bottom) - 40px);min-height:0;box-shadow:none;border:0;border-radius:0;margin:-20px -16px;display:block;position:relative;overflow:hidden}.notes-sidebar{border:0;position:absolute;inset:0}.notes-head{padding:calc(14px + env(safe-area-inset-top)) 14px 11px}.notes-editor-pane{display:none;position:absolute;inset:0}.notes-feature.is-editing .notes-sidebar{display:none}.notes-feature.is-editing .notes-editor-pane{display:flex}.notes-editor-head{gap:8px;min-height:58px;padding:8px 10px}.notes-back{display:block}.notes-editor-scroll{padding:20px 16px calc(18px + env(safe-area-inset-bottom))}.notes-content-input{min-height:180px}.notes-meta-fields{grid-template-columns:1fr}.notes-actions{gap:3px}.notes-actions button{min-height:32px;padding-inline:7px;font-size:11px}.notes-modal-backdrop{align-items:end;padding:0}.notes-modal{width:100%;max-height:88dvh;padding:18px 15px calc(16px + env(safe-area-inset-bottom));border-radius:19px 19px 0 0}}@media (width<=360px){.notes-actions .notes-delete{display:none}.notes-save-status{font-size:10px}}@media (width>=801px){.notes-feature{border-radius:16px;grid-template-columns:minmax(280px,min(32vw,380px)) minmax(0,1fr);height:calc(100dvh - 60px);min-height:520px;margin:0;display:grid;position:relative;overflow:hidden}.notes-sidebar,.notes-editor-pane,.notes-feature.is-editing .notes-sidebar{min-height:0;display:flex;position:static}.notes-head{padding:15px 14px 10px}.notes-head h1{font-size:21px}.notes-editor-head{min-height:60px}.notes-editor-scroll{padding:24px clamp(22px,3vw,42px) 20px}.notes-modal-backdrop{align-items:center;padding:18px}.notes-modal{border-radius:18px;width:min(520px,100%);max-height:min(720px,90dvh);padding:20px}}.profile-page{max-width:1020px;color:var(--ink,#24333d);margin-inline:auto}.profile-heading{justify-content:space-between;align-items:center;gap:18px;margin:0 0 22px;display:flex}.profile-heading p{color:var(--muted,#667780);letter-spacing:.14em;margin:0;font-size:11px;font-weight:800}.profile-heading h1{margin:4px 0;font-size:clamp(26px,3vw,34px)}.profile-heading span:not(.profile-preview-avatar){color:var(--muted,#667780);font-size:13px}.profile-preview-avatar{color:#277d82;background:#eaf3f1;border-radius:50%;place-items:center;width:68px;height:68px;font-size:35px;display:grid}.profile-form{border:1px solid var(--line,#dce6e4);background:var(--surface,#fff);border-radius:18px;padding:clamp(18px,3vw,30px);box-shadow:0 12px 36px #203b4009}.profile-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.profile-fields>label:not(.profile-presence){color:#40545c;align-content:start;gap:7px;font-size:13px;font-weight:700;display:grid}.profile-fields input:not([type=checkbox]),.profile-fields textarea,.profile-fields select{border:1px solid var(--line,#dce6e4);width:100%;min-height:46px;color:var(--ink,#24333d);font:inherit;background:#fbfcfa;border-radius:10px;padding:10px 12px;font-size:15px}.profile-fields textarea{resize:vertical;line-height:1.6}.profile-fields small{color:var(--muted,#667780);font-size:11px;font-weight:400}.profile-wide{grid-column:1/-1}.profile-presence{border:1px solid var(--line,#dce6e4);background:#f8faf9;border-radius:12px;grid-column:1/-1;align-items:flex-start;gap:11px;padding:14px;display:flex}.profile-presence input{accent-color:#277d82;width:18px;height:18px;margin:2px 0}.profile-presence span{gap:4px;display:grid}.profile-presence strong{font-size:13px}.profile-form-footer{border-top:1px solid var(--line,#dce6e4);justify-content:space-between;align-items:center;gap:16px;margin-top:22px;padding-top:18px;display:flex}.profile-form-footer>span{color:var(--muted,#667780);font-size:12px}.profile-save,.profile-state button{color:#fff;cursor:pointer;background:#277d82;border:0;border-radius:10px;min-height:44px;padding:9px 16px;font-weight:750}.profile-save:disabled{opacity:.65;cursor:wait}.profile-error,.profile-success,.profile-state{border-radius:11px;padding:13px 15px;line-height:1.55}.profile-error{color:#96382d;background:#fff0ed}.profile-success{color:#236345;background:#e8f5ef}.profile-state{border:1px dashed var(--line,#dce6e4);background:var(--surface,#fff);text-align:center}.profile-state p{color:var(--muted,#667780)}.profile-state a{color:#277d82;margin-left:10px;font-weight:700}@media (width<=650px){.profile-fields{grid-template-columns:minmax(0,1fr);gap:14px}.profile-wide,.profile-presence{grid-column:auto}.profile-form-footer{flex-direction:column;align-items:stretch}.profile-save{width:100%}.profile-preview-avatar{width:56px;height:56px;font-size:29px}}.profile-theme-field{color:var(--ui-text);align-content:start;gap:7px;font-size:13px;font-weight:700;display:grid}.profile-theme-controls{align-items:center;gap:10px;min-height:46px;display:flex}.profile-theme-controls input[type=color]{border:1px solid var(--ui-border);background:var(--ui-surface);cursor:pointer;border-radius:10px;width:54px;height:42px;padding:3px}.profile-theme-controls code{color:var(--ui-text-muted);font-size:13px}.profile-theme-controls button{background:var(--ui-accent);min-height:40px;color:var(--ui-accent-contrast);cursor:pointer;border:0;border-radius:9px;margin-left:auto;padding:8px 13px;font-weight:700}.profile-theme-controls button:disabled{opacity:.65;cursor:wait}.profile-theme-field>small{color:var(--ui-text-muted);font-size:11px;font-weight:400}.profile-avatar-field{color:var(--ui-text);align-content:start;gap:7px;font-size:13px;font-weight:700;display:grid}.profile-avatar-controls{align-items:center;gap:8px;min-width:0;display:flex}.profile-avatar-controls .ui-avatar{--ui-avatar-size:42px;width:42px;height:42px}.profile-avatar-controls>input:not([type=file]){flex:1;min-width:0}.profile-avatar-controls button{border:1px solid var(--ui-border);background:var(--ui-surface);min-height:42px;color:var(--ui-text);white-space:nowrap;cursor:pointer;border-radius:9px;padding:8px 11px;font-weight:700}.profile-avatar-controls button:disabled{opacity:.65;cursor:wait}.avatar-file-input{clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.profile-avatar-field>small{color:var(--ui-text-muted);font-size:11px;font-weight:400}@media (width<=420px){.profile-avatar-controls{flex-wrap:wrap}.profile-avatar-controls>input:not([type=file]){flex-basis:calc(100% - 60px)}.profile-avatar-controls button{margin-left:auto}.profile-theme-controls button{padding-inline:10px}}html[data-color-mode=dark] body{background:var(--paper);color:var(--ink)}.settings-page{padding-bottom:90px}.settings-page .page-heading>p:last-child{color:var(--muted);margin:6px 0 0}.settings-sections{gap:16px;max-width:980px;display:grid}.settings-card{padding:20px}.settings-card-heading{align-items:center;gap:14px;display:flex}.settings-card-heading>div{flex:1;min-width:0}.settings-card-heading h2{margin:0;font-size:18px}.settings-card-heading p{color:var(--muted);margin:5px 0 0;font-size:13px}.settings-icon{background:var(--soft);width:44px;height:44px;color:var(--accent);border-radius:14px;place-items:center;font-size:21px;font-weight:800;display:grid}.settings-icon.qq{color:#447bb6;background:#e9f1fd}.settings-icon.bell{color:#aa7d33;background:#fbf0dd}.settings-open-theme,.settings-secondary{border:1px solid var(--line);background:var(--surface);color:var(--accent);cursor:pointer;border-radius:9px;padding:9px 12px;font-weight:700}.settings-mode-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px;display:grid}.settings-mode-options button{border:1px solid var(--line);background:var(--paper);color:var(--ink);text-align:left;cursor:pointer;border-radius:12px;justify-items:start;gap:6px;padding:14px;display:grid}.settings-mode-options button.selected{border-color:var(--accent);background:var(--soft);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent),transparent 82%)}.settings-mode-options button>span{color:var(--accent);font-size:21px}.settings-mode-options small,.settings-current-theme,.settings-helper{color:var(--muted);font-size:12px}.settings-current-theme{margin:14px 0 0}.status-pill{background:var(--soft);color:var(--muted);border-radius:999px;flex:none;padding:6px 9px;font-size:12px}.status-pill.online{color:#40805a;background:#e9f6ee}.qq-bind-form{align-items:end;gap:12px;margin-top:20px;display:flex}.qq-bind-form label{color:var(--muted);flex:1;gap:6px;font-size:13px;display:grid}.qq-bind-form input{border:1px solid var(--line);background:var(--paper);width:100%;min-height:42px;color:var(--ink);border-radius:9px;padding:9px 12px}.qq-bind-form button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:9px;padding:11px 16px;font-weight:700}.qq-bind-form button:disabled{opacity:.5;cursor:not-allowed}.qq-bound-row{color:var(--muted);align-items:center;gap:12px;margin-top:18px;display:flex}.qq-bound-row strong{color:var(--ink)}.qq-bound-row form{margin-left:auto}.settings-helper{margin:12px 0 0}.settings-inline-error{color:#a73842;font-size:13px}.settings-inline-error button{color:inherit;cursor:pointer;background:0 0;border:0;margin-left:8px;text-decoration:underline}.settings-error,.settings-notice{border-radius:10px;justify-content:space-between;gap:12px;max-width:980px;margin:0 0 14px;padding:12px 14px;display:flex}.settings-error{color:#a73842;background:#fff4f4;border:1px solid #eac4c7}.settings-error button{color:inherit;cursor:pointer;background:0 0;border:0;text-decoration:underline}.settings-notice{color:#33754e;background:#edf7ef}.theme-overlay{z-index:12000;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#08131dcc;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.theme-dialog{border:1px solid var(--line);background:var(--surface);width:min(720px,100%);max-height:min(84dvh,760px);color:var(--ink);border-radius:22px;padding:24px;overflow:auto;box-shadow:0 32px 100px #0007}.theme-dialog>header{justify-content:space-between;align-items:start;gap:16px;display:flex}.theme-dialog h2{margin:3px 0;font-size:24px}.theme-dialog>p{color:var(--muted)}.theme-close{border:1px solid var(--line);background:var(--paper);width:38px;height:38px;color:var(--ink);cursor:pointer;border-radius:11px;font-size:24px}.theme-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px;display:grid}.theme-choice-grid>button{border:1px solid var(--line);background:var(--paper);min-height:76px;color:var(--ink);text-align:left;cursor:pointer;border-radius:14px;grid-template-rows:auto auto;grid-template-columns:46px minmax(0,1fr);align-items:center;column-gap:12px;padding:12px;display:grid;position:relative}.theme-choice-grid>button.selected{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent),transparent 80%)}.theme-choice-grid>button:disabled{opacity:.7}.theme-choice-grid strong{align-self:end}.theme-choice-grid small{color:var(--muted);font-size:11px}.theme-swatch{background:#e8eff0;border-radius:11px;grid-row:1/3;align-items:end;gap:3px;width:46px;height:42px;padding:5px;display:flex}.theme-swatch i{background:#658c84;border-radius:5px;flex:1;height:80%;display:block}.theme-swatch i:nth-child(2){background:#d2a758;height:55%}.theme-swatch i:nth-child(3){background:#426b70;height:68%}.theme-swatch-1{background:#fff0e4}.theme-swatch-1 i{background:#e18e74}.theme-swatch-1 i:nth-child(2){background:#edc36e}.theme-swatch-2{background:#eaf3e8}.theme-swatch-2 i{background:#789668}.theme-swatch-3{background:#f8e9f1}.theme-swatch-3 i{background:#d38aad}.theme-swatch-4{background:#e6f2f7}.theme-swatch-4 i{background:#4d90b1}.theme-swatch-5{background:#f0ecfb}.theme-swatch-5 i{background:#917fb8}.theme-swatch-6{background:#eaf5f8}.theme-swatch-6 i{background:#7ea9ba}.theme-swatch-7{background:#f8ecdc}.theme-swatch-7 i{background:#c87845}.theme-check{background:var(--accent);color:#fff;border-radius:50%;place-items:center;width:20px;height:20px;font-size:12px;display:grid;position:absolute;top:8px;right:10px}.theme-saving{color:var(--muted);text-align:center;margin-top:14px}.settings-color-chip{border:1px solid var(--ui-border);vertical-align:-2px;border-radius:50%;width:14px;height:14px;margin:0 6px 0 10px;display:inline-block}.custom-color-panel{border:1px solid var(--ui-border);background:var(--ui-surface-muted);color:var(--ui-text);border-radius:14px;gap:10px;margin-top:20px;padding:18px;display:grid}.custom-color-panel>label{font-size:13px;font-weight:700}.custom-color-panel>div{align-items:center;gap:12px;display:flex}.custom-color-panel input[type=color]{border:1px solid var(--ui-border);background:var(--ui-surface);cursor:pointer;border-radius:10px;width:64px;height:48px;padding:3px}.custom-color-panel code{color:var(--ui-text-muted);font-size:14px}.custom-color-panel button{background:var(--ui-accent);min-height:42px;color:var(--ui-accent-contrast);cursor:pointer;border:0;border-radius:10px;margin-left:auto;padding:9px 15px;font-weight:750}.custom-color-panel button:disabled{opacity:.65;cursor:wait}@media (width<=560px){.settings-card{padding:16px}.settings-card-heading{flex-wrap:wrap;gap:10px}.settings-open-theme{margin-left:auto}.settings-mode-options{gap:6px}.settings-mode-options button{padding:10px 8px}.qq-bind-form{flex-direction:column;align-items:stretch}.qq-bind-form button{min-height:42px}.theme-overlay{padding:10px}.theme-dialog{padding:18px}.theme-choice-grid{gap:7px}.theme-choice-grid>button{grid-template-columns:36px minmax(0,1fr);column-gap:8px;padding:9px}.theme-swatch{width:36px;height:34px}}.settings-open-theme,.settings-secondary,.settings-mode-options button{min-height:44px}.theme-choice-grid>button{min-height:82px}@media (width<=560px){.settings-page{padding-bottom:24px}.settings-card{padding:14px}.settings-mode-options button{gap:4px;min-width:0;padding:9px 7px}.settings-mode-options strong{font-size:12px}.settings-mode-options small{font-size:10px}.theme-overlay{align-items:end;padding:0}.theme-dialog{width:100%;max-height:91dvh;padding:18px 16px calc(20px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0}.theme-choice-grid>button{min-height:72px}.custom-color-panel{padding:12px}.custom-color-panel>div{flex-wrap:wrap}.custom-color-panel button{flex:100%;margin:0}}.theme-preset-field{color:var(--ui-text);gap:9px;margin-top:18px;font-size:13px;display:grid}.theme-preset-field>strong{font-size:14px}.theme-preset-control{border:1px solid var(--ui-border-strong);background:var(--ui-surface-muted);border-radius:12px;align-items:center;gap:8px;min-height:50px;padding:4px 9px;display:flex}.theme-preset-control .settings-color-chip{flex:none;width:24px;height:24px;margin:0}.theme-preset-control select{outline-offset:-3px;width:100%;min-width:0;min-height:42px;color:var(--ui-text);cursor:pointer;background:0 0;border:0;font-weight:700}.theme-preset-field>small{color:var(--ui-text-muted);font-size:12px}.videos-page{padding-bottom:120px}.videos-page .page-heading>p:last-child,.video-section-heading p,.video-section-heading .eyebrow{color:var(--muted);margin:5px 0 0}.video-permission,.video-upload,.video-player{margin-bottom:16px;padding:18px}.video-permission{justify-content:space-between;align-items:center;gap:16px;display:flex}.video-permission>div,.video-upload>label,.video-modal>label{gap:6px;display:grid}.video-permission small,.video-episode-inputs small,.video-file-pick small,.video-card small{color:var(--muted)}.video-permission button,.video-primary,.video-secondary{border:1px solid var(--line);min-height:40px;color:var(--ink);background:var(--surface);cursor:pointer;border-radius:10px;padding:8px 13px;font-weight:700}.video-primary{background:var(--accent);color:#fff;border:0}.video-primary:disabled,.video-permission button:disabled,.video-secondary:disabled{opacity:.5;cursor:wait}.video-section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.video-section-heading h2,.video-modal h2{margin:0;font-size:19px}.video-section-heading p{font-size:13px}.video-upload>label,.video-modal>label{color:var(--muted);margin:12px 0;font-size:13px}.video-upload input:not([type=file]),.video-upload textarea,.video-modal input:not([type=checkbox]){border:1px solid var(--line);background:var(--paper);width:100%;color:var(--ink);border-radius:9px;padding:10px 12px}.video-upload textarea{resize:vertical}.video-file-pick input{max-width:100%;margin:5px 0;display:block}.video-episode-inputs{margin:14px 0;padding:0;list-style:none}.video-episode-inputs li{border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr) minmax(160px,.7fr) auto;align-items:center;gap:12px;padding:10px 0;display:grid}.video-episode-inputs li>div{overflow-wrap:anywhere;gap:4px;min-width:0;display:grid}.video-subtitle-pick{color:var(--muted);gap:4px;font-size:12px;display:grid}.video-subtitle-pick input{max-width:100%;font-size:12px}.video-remove{color:#a43b43;cursor:pointer;background:0 0;border:0}.video-catalog{margin-top:20px}.video-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;display:grid}.video-card{overflow:hidden}.video-card-art{aspect-ratio:16/8;color:var(--accent);background:linear-gradient(135deg,var(--soft),var(--surface));place-items:center;font-size:40px;display:grid}.video-card-body{padding:16px}.video-card-title{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.video-card-title h3{flex:1}.video-card h3{overflow-wrap:anywhere;margin:0 0 7px;font-size:18px}.video-card-body>p{color:var(--muted);white-space:pre-wrap;font-size:13px}.video-episode-list{flex-wrap:wrap;gap:7px;margin-top:12px;display:flex}.video-episode-list button{border:1px solid var(--line);min-height:34px;color:var(--ink);background:var(--paper);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:6px 9px;display:flex}.video-episode-list button.active{border-color:var(--accent);color:var(--accent)}.video-episode-list button span{font-size:10px;font-weight:800}.video-empty,.video-gate{color:var(--muted);padding:22px}.video-message{border-radius:9px;padding:10px 13px}.video-message.error{color:#a43b43;background:#fff1f1}.video-message.success{color:#246d57;background:#eaf7f1}.video-player{position:relative}.video-player video{background:#080a0c;border-radius:12px;width:100%;max-height:72vh;display:block}.video-modal-backdrop{z-index:8500;background:#101b20a6;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.video-modal{flex-direction:column;gap:12px;width:min(680px,100%);max-height:90dvh;padding:18px;display:flex;overflow:hidden}.video-modal>header{justify-content:space-between;align-items:flex-start;display:flex}.video-modal>header>button{background:var(--soft);width:36px;height:36px;color:var(--ink);cursor:pointer;border:0;border-radius:50%;font-size:24px}.video-ros-path{background:var(--paper);color:var(--muted);overflow-wrap:anywhere;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:9px;font-size:12px;display:flex}.video-ros-path button{flex:none}.video-ros-list{border:1px solid var(--line);border-radius:10px;min-height:100px;max-height:42vh;padding:6px 10px;overflow:auto}.video-ros-list>button,.video-ros-object{border:0;border-bottom:1px solid var(--line);width:100%;color:var(--ink);text-align:left;cursor:pointer;background:0 0;align-items:center;gap:8px;padding:10px 4px;display:flex}.video-ros-object span{overflow-wrap:anywhere;flex:1}.video-ros-object small{color:var(--muted);white-space:nowrap}.video-help{color:var(--muted);margin:0;font-size:12px}.video-modal>footer{justify-content:flex-end;gap:8px;margin-top:5px;display:flex}@media (width<=620px){.video-episode-inputs li{grid-template-columns:1fr auto}.video-subtitle-pick{grid-column:1/-1}.video-section-heading{align-items:flex-start}.video-grid{grid-template-columns:1fr}.video-player video{max-height:52vh}}.video-upload-progress{gap:3px;margin-top:7px;display:grid}.video-upload-progress progress{width:100%;height:10px;accent-color:var(--accent);display:block}.video-subtitle-selected{color:var(--accent);overflow-wrap:anywhere;display:block}.video-standalone{min-height:100dvh;color:var(--ink);background:var(--paper);padding:clamp(16px,4vw,48px)}.video-standalone>header{justify-content:space-between;align-items:center;gap:16px;max-width:1400px;margin:0 auto 16px;display:flex}.video-standalone h1{margin:0;font-size:clamp(18px,3vw,26px)}.video-standalone video{background:#000;border-radius:12px;width:min(100%,1400px);max-height:82vh;margin:auto;display:block}.video-player-wrap{width:min(100%,1400px);margin:0 auto 20px}.video-playback{background:#000;border-radius:12px;position:relative;overflow:hidden}.video-playback video{border-radius:0;max-height:76vh}.video-danmaku-overlay{pointer-events:none;position:absolute;inset:0 0 54px;overflow:hidden}.video-danmaku-overlay span{color:#fff;white-space:nowrap;text-shadow:0 1px 3px #000,1px 0 3px #000,-1px 0 3px #000;max-width:90%;font-size:clamp(15px,2vw,25px);font-weight:700;line-height:1.2;animation:4s linear both video-danmaku-travel;position:absolute;left:100%}@keyframes video-danmaku-travel{0%{transform:translate(0)}to{transform:translate(-150vw)}}.video-danmaku-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;display:flex}.video-danmaku-controls label{color:var(--muted);align-items:center;gap:7px;font-size:13px;display:flex}.video-danmaku-controls form{flex:1;align-items:center;gap:7px;min-width:min(100%,320px);display:flex}.video-danmaku-controls form>span{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.video-danmaku-controls input:not([type=checkbox]),.video-comment-form textarea{border:1px solid var(--line);background:var(--surface);min-width:0;color:var(--ink);border-radius:9px;flex:1;padding:10px 12px}.video-danmaku-controls button,.video-comment-form button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:9px;min-height:40px;padding:8px 14px;font-weight:700}.video-danmaku-controls button:disabled,.video-comment-form button:disabled{opacity:.5;cursor:wait}.video-danmaku-list{width:min(100%,1400px);margin:12px auto;padding:12px 16px}.video-danmaku-list summary{cursor:pointer;color:var(--ui-text);font-weight:700}.video-danmaku-list>div{max-height:300px;margin-top:10px;overflow-y:auto}.video-danmaku-list article{border-top:1px solid var(--ui-border);align-items:center;gap:10px;padding:8px 0;font-size:13px;display:flex}.video-danmaku-list article>span{color:var(--ui-text-muted);font-variant-numeric:tabular-nums}.video-danmaku-list article>p{overflow-wrap:anywhere;flex:1;margin:0}.video-danmaku-list article>.video-remove{margin-left:auto}.video-comments{width:min(100%,1400px);margin:22px auto;padding:18px}.video-comments>header{justify-content:space-between;align-items:center;display:flex}.video-comments h2{margin:0;font-size:19px}.video-comments header small,.video-comment-list time{color:var(--muted);font-size:12px}.video-comment-form{align-items:flex-end;gap:9px;margin:14px 0;display:flex}.video-comment-form textarea{resize:vertical;font:inherit}.video-comment-list article{border-top:1px solid var(--line);padding:12px 40px 12px 0;position:relative}.video-comment-list article>div{align-items:center;gap:10px;display:flex}.video-comment-list article p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}.video-comment-list article>.video-remove{position:absolute;top:12px;right:0}@media (width<=620px){.video-standalone>header{align-items:flex-start}.video-standalone video{max-height:56vh}.video-danmaku-controls form{min-width:100%}.video-comments{padding:14px}}.video-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:14px}.video-card{min-width:0}.video-card-cover{aspect-ratio:2/3;border:1px solid var(--line);background:linear-gradient(145deg,var(--soft),var(--surface));width:100%;color:var(--accent);cursor:pointer;text-align:left;border-radius:14px;place-items:center;display:grid;position:relative;overflow:hidden}.video-card-cover>span{filter:drop-shadow(0 2px 9px #00000024);font-size:42px}.video-card-cover>strong{color:#fff;overflow-wrap:anywhere;background:linear-gradient(#0000,#000000c2);padding:38px 14px 14px;font-size:15px;position:absolute;inset:auto 0 0}.video-card-cover:focus-visible,.video-episode-list button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.video-episode-panel{width:min(100%,1400px);margin:0 auto 20px;padding:18px}.video-episode-panel h2{margin:0 0 5px}.video-episode-panel p{white-space:pre-wrap;overflow-wrap:anywhere}.video-episode-panel small{color:var(--muted)}.video-episode-panel .video-episode-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));display:grid}.video-episode-panel .video-episode-list button{text-align:left;min-width:0;min-height:48px}.video-episode-panel .video-episode-list strong{white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:13px;overflow:hidden}.video-episode-panel .video-episode-list span{flex:none;font-size:12px}.video-episode-panel .video-episode-list em{margin-left:auto;font-size:11px}@media (width<=620px){.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.video-card-cover{border-radius:10px}.video-card-cover>strong{padding:28px 9px 9px;font-size:12px}.video-standalone,.video-episode-panel{padding:12px}.video-episode-panel .video-episode-list{grid-template-columns:1fr 1fr;gap:7px}.video-episode-panel .video-episode-list button{flex-direction:column;align-items:flex-start;padding:9px}.video-episode-panel .video-episode-list strong{width:100%}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ui-font:Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;--ui-bg:#f3f6f8;--ui-surface:#fff;--ui-surface-muted:#f8fafb;--ui-surface-raised:#fff;--ui-text:#26343c;--ui-text-muted:#687982;--ui-text-subtle:#87969d;--ui-border:#dce5e8;--ui-border-strong:#c5d2d6;--ui-accent:#4d8c8a;--ui-accent-hover:#3d7776;--ui-accent-contrast:#fff;--ui-accent-soft:#e5f1ef;--ui-link:#356fa0;--ui-success:#347c61;--ui-success-soft:#e8f3ed;--ui-warning:#986019;--ui-warning-soft:#fbf1dc;--ui-danger:#b34c50;--ui-danger-hover:#963c40;--ui-danger-soft:#f9e9e9;--ui-info:#3e6f9c;--ui-info-soft:#eaf2fa;--ui-focus:#2c73a5;--ui-overlay:#101c227a;--ui-shadow-sm:0 1px 3px #172d3614;--ui-shadow-md:0 12px 36px #172d3624;--ui-shadow-lg:0 24px 72px #0a181f3d;--ui-radius-sm:6px;--ui-radius-md:10px;--ui-radius-lg:14px;--ui-radius-xl:18px;--ui-radius-pill:999px;--ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:24px;--ui-space-6:32px;--ui-control-height:36px;--ui-control-height-sm:30px;--ui-control-height-lg:44px;--ui-nav-width:216px;--ui-nav-width-collapsed:72px;--ui-context-width:288px;--ui-content-max:1200px;--ui-z-header:100;--ui-z-drawer:800;--ui-z-modal:900;--ui-z-toast:950;--ui-z-theme:1000;font-family:var(--ui-font);color:var(--ui-text);background:var(--ui-bg);font-synthesis:none;text-rendering:optimizelegibility}:root[data-theme=dark],:root[data-color-mode=dark],[data-theme=dark],[data-color-mode=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ui-bg:#151d22;--ui-surface:#1e292f;--ui-surface-muted:#26343a;--ui-surface-raised:#243138;--ui-text:#e8f0f1;--ui-text-muted:#a7b5b9;--ui-text-subtle:#87999e;--ui-border:#34464d;--ui-border-strong:#496068;--ui-accent:#80b9b1;--ui-accent-hover:#9accc5;--ui-accent-contrast:#13201f;--ui-accent-soft:#263e3d;--ui-link:#8dbce0;--ui-success:#80c7a1;--ui-success-soft:#20392e;--ui-warning:#e0b76e;--ui-warning-soft:#3c3322;--ui-danger:#ed9295;--ui-danger-hover:#f4aaac;--ui-danger-soft:#40282b;--ui-info:#94bce3;--ui-info-soft:#253747;--ui-focus:#91c5e9;--ui-overlay:#000000a8;--ui-shadow-sm:0 1px 3px #00000038;--ui-shadow-md:0 12px 36px #00000052;--ui-shadow-lg:0 24px 72px #0000007a}:root[data-town-theme=custom]{--ui-accent:var(--town-custom-light-accent);--ui-accent-hover:var(--town-custom-light-hover);--ui-accent-soft:var(--town-custom-light-soft);--ui-accent-contrast:var(--town-custom-light-contrast)}:root[data-color-mode=dark][data-town-theme=custom]{--ui-accent:var(--town-custom-dark-accent);--ui-accent-hover:var(--town-custom-dark-hover);--ui-accent-soft:var(--town-custom-dark-soft);--ui-accent-contrast:var(--town-custom-dark-contrast)}@media (prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:root[data-town-theme=forest]{--ui-bg:#f0f4eb;--ui-surface:#fffef9;--ui-surface-muted:#f5f8ef;--ui-surface-raised:#fff;--ui-text:#283629;--ui-text-muted:#60705d;--ui-text-subtle:#81917c;--ui-border:#d7e2d2;--ui-border-strong:#b5c9ac;--ui-accent:#557a47;--ui-accent-hover:#3e6035;--ui-accent-contrast:#fff;--ui-accent-soft:#e3eedc;--ui-link:#416b56;--ui-focus:#557a47}:root[data-color-mode=dark][data-town-theme=forest]{--ui-bg:#151e18;--ui-surface:#202b22;--ui-surface-muted:#29382b;--ui-surface-raised:#29372b;--ui-text:#e5efe2;--ui-text-muted:#b3c5ac;--ui-text-subtle:#90a58b;--ui-border:#3c513d;--ui-border-strong:#567058;--ui-accent:#a5cb91;--ui-accent-hover:#c0dfa8;--ui-accent-contrast:#172118;--ui-accent-soft:#334a36;--ui-link:#acd8bd;--ui-focus:#b2d9a0}:root[data-town-theme=sakura]{--ui-bg:#fbf3f6;--ui-surface:#fffdfd;--ui-surface-muted:#fff6f9;--ui-surface-raised:#fff;--ui-text:#45343e;--ui-text-muted:#806c79;--ui-text-subtle:#a38f9b;--ui-border:#efdde5;--ui-border-strong:#dcbfcb;--ui-accent:#b4577e;--ui-accent-hover:#923d63;--ui-accent-contrast:#fff;--ui-accent-soft:#f9e6ed;--ui-link:#8f5684;--ui-focus:#a94f77}:root[data-color-mode=dark][data-town-theme=sakura]{--ui-bg:#211a21;--ui-surface:#2e242e;--ui-surface-muted:#3a2d38;--ui-surface-raised:#382a35;--ui-text:#f7e9ef;--ui-text-muted:#d6b7c6;--ui-text-subtle:#ad94a3;--ui-border:#59414f;--ui-border-strong:#755565;--ui-accent:#eca6c2;--ui-accent-hover:#f4bed3;--ui-accent-contrast:#281b25;--ui-accent-soft:#513345;--ui-link:#dcb2db;--ui-focus:#eba6c3}:root[data-town-theme=ocean]{--ui-bg:#eff6f9;--ui-surface:#fff;--ui-surface-muted:#f3f9fb;--ui-surface-raised:#fff;--ui-text:#243b49;--ui-text-muted:#5e7887;--ui-text-subtle:#819aa6;--ui-border:#d2e3eb;--ui-border-strong:#aacbd9;--ui-accent:#397f9e;--ui-accent-hover:#276884;--ui-accent-contrast:#fff;--ui-accent-soft:#dceff6;--ui-link:#276d9c;--ui-focus:#327caa}:root[data-color-mode=dark][data-town-theme=ocean]{--ui-bg:#111f2a;--ui-surface:#1b2e3b;--ui-surface-muted:#253a49;--ui-surface-raised:#243947;--ui-text:#e5f1f7;--ui-text-muted:#aec4d0;--ui-text-subtle:#819daa;--ui-border:#344e5e;--ui-border-strong:#4d7080;--ui-accent:#8cc7df;--ui-accent-hover:#acdaea;--ui-accent-contrast:#132530;--ui-accent-soft:#284656;--ui-link:#9bcfe8;--ui-focus:#92d0ed}:root[data-town-theme=amber]{--ui-bg:#faf5eb;--ui-surface:#fffdf7;--ui-surface-muted:#fcf8ef;--ui-surface-raised:#fff;--ui-text:#3f3427;--ui-text-muted:#786b5c;--ui-text-subtle:#9c8b77;--ui-border:#eadfcb;--ui-border-strong:#d4bea0;--ui-accent:#9b652d;--ui-accent-hover:#804f22;--ui-accent-contrast:#fff;--ui-accent-soft:#f5e7cb;--ui-link:#8b603a;--ui-focus:#a66b31}:root[data-color-mode=dark][data-town-theme=amber]{--ui-bg:#211b16;--ui-surface:#30271e;--ui-surface-muted:#3b3025;--ui-surface-raised:#3a2e24;--ui-text:#f5eadb;--ui-text-muted:#d4bfa5;--ui-text-subtle:#a99782;--ui-border:#594735;--ui-border-strong:#745a40;--ui-accent:#e4b778;--ui-accent-hover:#f1cc95;--ui-accent-contrast:#291d12;--ui-accent-soft:#4e3a27;--ui-link:#e5bb8d;--ui-focus:#efc080}:root[data-town-theme]{--ui-surface:color-mix(in srgb,var(--ui-accent) 9%,#fff);--ui-surface-muted:color-mix(in srgb,var(--ui-accent) 14%,#fff);--ui-surface-raised:color-mix(in srgb,var(--ui-accent) 6%,#fff)}:root[data-color-mode=dark][data-town-theme]{--ui-surface:color-mix(in srgb,var(--ui-accent) 12%,#1e292f);--ui-surface-muted:color-mix(in srgb,var(--ui-accent) 18%,#1e292f);--ui-surface-raised:color-mix(in srgb,var(--ui-accent) 9%,#26343a)}.ui-button,.ui-icon-button{min-height:var(--ui-control-height);border-radius:var(--ui-radius-md);color:inherit;font:600 14px/1 var(--ui-font);white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 14px;transition:background-color .14s,border-color .14s,color .14s,box-shadow .14s;display:inline-flex}.ui-button:focus-visible,.ui-icon-button:focus-visible,.ui-input:focus-visible,.ui-dialog:focus-visible,.ui-drawer:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}.ui-button:disabled,.ui-icon-button:disabled{opacity:.52;cursor:not-allowed}.ui-button--sm{min-height:var(--ui-control-height-sm);border-radius:var(--ui-radius-sm);padding-inline:10px;font-size:13px}.ui-button--lg{min-height:var(--ui-control-height-lg);padding-inline:18px;font-size:15px}.ui-button--block{width:100%}.ui-button--primary{background:var(--ui-accent);color:var(--ui-accent-contrast)}.ui-button--primary:hover:not(:disabled){background:var(--ui-accent-hover)}.ui-button--secondary{border-color:var(--ui-border);background:var(--ui-surface);color:var(--ui-text)}.ui-button--secondary:hover:not(:disabled){background:var(--ui-surface-muted);border-color:var(--ui-border-strong)}.ui-button--ghost{color:var(--ui-text-muted)}.ui-button--ghost:hover:not(:disabled){background:var(--ui-surface-muted);color:var(--ui-text)}.ui-button--danger{background:var(--ui-danger);color:#fff}.ui-button--danger:hover:not(:disabled){background:var(--ui-danger-hover)}.ui-button--link{min-height:auto;color:var(--ui-link);padding:4px}.ui-icon-button{width:var(--ui-control-height);min-width:var(--ui-control-height);color:var(--ui-text-muted);padding:0}.ui-icon-button:hover:not(:disabled){background:var(--ui-surface-muted);color:var(--ui-text)}.ui-icon-button--sm{width:var(--ui-control-height-sm);min-width:var(--ui-control-height-sm);min-height:var(--ui-control-height-sm)}.ui-icon-button--lg{width:var(--ui-control-height-lg);min-width:var(--ui-control-height-lg);min-height:var(--ui-control-height-lg)}.ui-icon{flex:none;place-items:center;width:1.25em;height:1.25em;line-height:1;display:inline-grid}.ui-button__spinner{border-width:2px;width:15px;height:15px}.ui-field{gap:6px;min-width:0;display:grid}.ui-field__label{color:var(--ui-text);font-size:13px;font-weight:650}.ui-field__hint{color:var(--ui-text-muted);font-size:12px;line-height:1.45}.ui-field__error{color:var(--ui-danger);font-size:12px;line-height:1.45}.ui-input{width:100%;min-width:0;min-height:var(--ui-control-height);border:1px solid var(--ui-border-strong);border-radius:var(--ui-radius-md);background:var(--ui-surface);color:var(--ui-text);font:400 14px/1.4 var(--ui-font);padding:8px 11px}.ui-input::placeholder{color:var(--ui-text-subtle)}.ui-input:hover:not(:disabled){border-color:var(--ui-accent)}.ui-input:focus-visible{border-color:var(--ui-accent);outline-offset:1px}.ui-input:disabled{background:var(--ui-surface-muted);color:var(--ui-text-subtle);cursor:not-allowed}.ui-input[aria-invalid=true]{border-color:var(--ui-danger)}.ui-input--textarea{resize:vertical;min-height:88px}.ui-input--select{appearance:auto}.ui-overlay{background:var(--ui-overlay);place-items:center;padding:24px;animation:.14s ease-out ui-fade-in;display:grid;position:fixed;inset:0}.ui-overlay--modal{z-index:var(--ui-z-modal)}.ui-dialog{border:1px solid var(--ui-border);border-radius:var(--ui-radius-xl);background:var(--ui-surface);width:min(100%,480px);max-height:min(84dvh,760px);color:var(--ui-text);box-shadow:var(--ui-shadow-lg);animation:.16s ease-out ui-rise-in;overflow:auto}.ui-dialog--sm{width:min(100%,380px)}.ui-dialog--lg{width:min(100%,680px)}.ui-dialog--full{width:min(100%,920px)}.ui-dialog__header{align-items:flex-start;gap:12px;padding:20px 22px 14px;display:flex}.ui-dialog__heading{flex:1;min-width:0}.ui-dialog__title{color:var(--ui-text);margin:0;font-size:18px;line-height:1.35}.ui-dialog__description{color:var(--ui-text-muted);margin:6px 0 0;font-size:13px;line-height:1.5}.ui-dialog__body{padding:6px 22px 22px}.ui-dialog__footer{justify-content:flex-end;gap:8px;padding:0 22px 20px;display:flex}.ui-overlay--drawer{z-index:var(--ui-z-drawer);padding:0;display:block}.ui-drawer{border:1px solid var(--ui-border);background:var(--ui-surface);width:min(100vw,420px);color:var(--ui-text);box-shadow:var(--ui-shadow-lg);flex-direction:column;animation:.18s ease-out ui-drawer-in;display:flex;position:absolute;inset-block:0}.ui-drawer--left{border-radius:0 var(--ui-radius-xl) var(--ui-radius-xl) 0;inset-inline-start:0}.ui-drawer--right{border-radius:var(--ui-radius-xl) 0 0 var(--ui-radius-xl);inset-inline-end:0}.ui-drawer--wide{width:min(100vw,640px)}.ui-drawer__header{border-bottom:1px solid var(--ui-border);align-items:flex-start;gap:12px;padding:20px;display:flex}.ui-drawer__heading{flex:1;min-width:0}.ui-drawer__title{margin:0;font-size:18px;line-height:1.35}.ui-drawer__description{color:var(--ui-text-muted);margin:6px 0 0;font-size:13px;line-height:1.5}.ui-drawer__body{flex:1;min-height:0;padding:20px;overflow:auto}.ui-drawer__footer{border-top:1px solid var(--ui-border);justify-content:flex-end;gap:8px;padding:16px 20px;display:flex}.ui-empty{text-align:center;justify-items:center;gap:10px;padding:40px 24px;display:grid}.ui-empty__icon{background:var(--ui-accent-soft);width:48px;height:48px;color:var(--ui-accent);border-radius:50%;place-items:center;font-size:22px;display:grid}.ui-empty__title{color:var(--ui-text);margin:0;font-size:16px}.ui-empty__description{max-width:420px;color:var(--ui-text-muted);margin:-4px 0 2px;font-size:13px;line-height:1.55}.ui-empty__actions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px;display:flex}.ui-status{border-radius:var(--ui-radius-pill);align-items:center;gap:6px;width:fit-content;padding:4px 9px;font-size:12px;font-weight:650;line-height:1.2;display:inline-flex}.ui-status__dot{background:currentColor;border-radius:50%;width:7px;height:7px}.ui-status--neutral{background:var(--ui-surface-muted);color:var(--ui-text-muted)}.ui-status--success{background:var(--ui-success-soft);color:var(--ui-success)}.ui-status--warning{background:var(--ui-warning-soft);color:var(--ui-warning)}.ui-status--danger{background:var(--ui-danger-soft);color:var(--ui-danger)}.ui-status--info{background:var(--ui-info-soft);color:var(--ui-info)}.ui-panel{border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:var(--ui-surface);min-width:0;box-shadow:var(--ui-shadow-sm);overflow:hidden}.ui-panel--flat{box-shadow:none}.ui-panel--padded{padding:16px}.ui-panel__header{border-bottom:1px solid var(--ui-border);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.ui-panel__title{color:var(--ui-text);margin:0;font-size:15px;font-weight:700}.ui-panel__body{min-width:0}.ui-page-header{justify-content:space-between;align-items:flex-start;gap:20px;margin:0 0 20px;display:flex}.ui-page-header__main{min-width:0}.ui-page-header__eyebrow{color:var(--ui-text-muted);letter-spacing:.1em;text-transform:uppercase;margin:0 0 4px;font-size:11px;font-weight:700}.ui-page-header__title{color:var(--ui-text);letter-spacing:-.025em;margin:0;font-size:clamp(21px,2.4vw,28px);line-height:1.25}.ui-page-header__description{max-width:720px;color:var(--ui-text-muted);margin:6px 0 0;font-size:14px;line-height:1.5}.ui-page-header__actions{flex:none;align-items:center;gap:8px;display:flex}.ui-avatar{width:var(--ui-avatar-size,40px);height:var(--ui-avatar-size,40px);border:1px solid var(--ui-border);background:var(--ui-accent-soft);color:var(--ui-accent);font-size:calc(var(--ui-avatar-size,40px) * .4);border-radius:50%;flex:none;place-items:center;font-weight:700;display:inline-grid;position:relative;overflow:hidden}.ui-avatar img{object-fit:cover;width:100%;height:100%}.ui-avatar--sm{--ui-avatar-size:28px}.ui-avatar--md{--ui-avatar-size:40px}.ui-avatar--lg{--ui-avatar-size:56px}.ui-avatar--xl{--ui-avatar-size:80px}.ui-avatar__status{border:2px solid var(--ui-surface);background:var(--ui-text-subtle);border-radius:50%;width:11px;height:11px;position:absolute;bottom:0;right:0}.ui-avatar__status--online{background:var(--ui-success)}.ui-avatar__status--busy{background:var(--ui-danger)}.ui-spinner{border:2px solid var(--ui-border-strong);border-top-color:var(--ui-accent);border-radius:50%;width:22px;height:22px;animation:.72s linear infinite ui-spin;display:inline-block}.ui-spinner--sm{border-width:2px;width:15px;height:15px}.ui-spinner--lg{border-width:3px;width:32px;height:32px}.ui-spinner-wrap{color:var(--ui-text-muted);align-items:center;gap:9px;font-size:13px;display:inline-flex}.ui-theme-layer{z-index:var(--ui-z-theme);pointer-events:none;position:fixed;inset:0}.ui-theme-layer>*{pointer-events:auto}.ui-theme-layer__backdrop{position:absolute;inset:0}@media (width<=640px){.ui-overlay{align-items:end;padding:10px}.ui-dialog{border-radius:var(--ui-radius-xl);max-height:90dvh}.ui-drawer,.ui-drawer--wide{border-radius:var(--ui-radius-xl) var(--ui-radius-xl) 0 0;width:min(100vw,560px)}.ui-drawer--left,.ui-drawer--right{max-height:92dvh;inset-block:auto 0;inset-inline:0}.ui-page-header{flex-direction:column;gap:12px}.ui-page-header__actions{width:100%}}.ui-desktop-grid{grid-template-columns:minmax(0, 1fr) var(--ui-context-width,288px);align-items:start;gap:16px;display:grid}.ui-desktop-grid__main{min-width:0}.ui-desktop-grid__aside{min-width:0;position:sticky;top:16px}.ui-split-view{border:1px solid var(--ui-border);border-radius:var(--ui-radius-lg);background:var(--ui-surface);grid-template-columns:minmax(220px,264px) minmax(0,1fr);min-width:0;display:grid;overflow:hidden}.ui-split-view__list{border-right:1px solid var(--ui-border);min-width:0}.ui-split-view__content{min-width:0}.ui-page-content{width:min(100%, var(--ui-content-max));margin-inline:auto}.ui-stack{gap:16px;display:grid}.ui-inline{flex-wrap:wrap;align-items:center;gap:8px;display:flex}@media (width<=1100px){.ui-desktop-grid{grid-template-columns:minmax(0,1fr)}.ui-desktop-grid__aside{position:static}}@media (width<=760px){.ui-split-view{grid-template-columns:minmax(0,1fr)}.ui-split-view__list{border-right:0;border-bottom:1px solid var(--ui-border)}}:root{--surface:var(--ui-surface);--paper:var(--ui-bg);--ink:var(--ui-text);--muted:var(--ui-text-muted);--line:var(--ui-border);--accent:var(--ui-accent);--soft:var(--ui-accent-soft);--ui-z-shell:100;--ui-z-drawer:800;--ui-z-theme:11000;font-family:var(--ui-font);color:var(--ui-text);background:var(--ui-bg)}html[data-color-mode=dark],html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:var(--ui-surface);--paper:var(--ui-bg);--ink:var(--ui-text);--muted:var(--ui-text-muted);--line:var(--ui-border);--accent:var(--ui-accent);--soft:var(--ui-accent-soft)}*,:before,:after{box-sizing:border-box}html,body,#root{width:100%;min-width:320px;min-height:100%;margin:0}body{background:var(--ui-bg);min-height:100dvh;color:var(--ui-text);overflow-x:hidden}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}.app-shell{background:var(--ui-bg);min-height:100dvh;color:var(--ui-text)}.sidebar{z-index:30;border-right:1px solid var(--ui-border);background:var(--ui-surface);flex-direction:column;align-items:center;gap:20px;width:72px;padding:12px 8px 14px;display:flex;position:fixed;inset:0 auto 0 0}.brand{width:48px;height:48px;color:var(--ui-accent);border-radius:15px;place-items:center;text-decoration:none;display:grid}.brand:hover{background:var(--ui-accent-soft)}.brand-mark{color:#70591f;background:#fffdf7;border:1px solid #b99b4f;border-radius:15px;place-items:center;width:44px;height:44px;display:grid}.sidebar-nav{justify-items:center;gap:9px;width:100%;display:grid}.nav-link{color:#425a62;border-radius:15px;place-items:center;width:50px;height:50px;text-decoration:none;transition:background-color .13s,color .13s;display:grid;position:relative}.nav-link:hover{background:var(--ui-surface-muted);color:var(--ui-text)}.nav-link.active{background:var(--ui-accent-soft);color:var(--ui-accent);box-shadow:inset 3px 0 var(--ui-accent)}html[data-color-mode=dark] .nav-link,html[data-theme=dark] .nav-link{color:#c3d4d7}html[data-color-mode=dark] .nav-link.active,html[data-theme=dark] .nav-link.active{color:var(--ui-accent);box-shadow:inset 3px 0 var(--ui-accent)}.nav-link[data-tooltip]:after{z-index:40;border:1px solid var(--ui-border);background:var(--ui-surface);width:max-content;max-width:180px;color:var(--ui-text);box-shadow:var(--ui-shadow-md);content:attr(data-tooltip);opacity:0;pointer-events:none;border-radius:8px;padding:6px 9px;font-size:12px;font-weight:650;transition:opacity .1s,translate .1s;position:absolute;left:calc(100% + 10px);translate:-4px}.nav-link[data-tooltip]:hover:after,.nav-link[data-tooltip]:focus-visible:after{opacity:1;translate:0}.sidebar-footer{border-top:1px solid var(--ui-border);justify-items:center;width:100%;margin-top:auto;padding-top:10px;display:grid}.sidebar-footer .nav-link{width:44px;height:44px}.app-main{min-height:100dvh;margin-left:72px}.shell-topbar{z-index:20;border-bottom:1px solid color-mix(in srgb, var(--ui-border), transparent 22%);background:color-mix(in srgb, var(--ui-bg), transparent 4%);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);justify-content:space-between;align-items:center;gap:14px;min-height:60px;padding:8px clamp(16px,2.5vw,34px);display:flex;position:sticky;top:0}.shell-presence{color:var(--ui-text-muted);align-items:center;gap:8px;font-size:12px;font-weight:650;display:inline-flex}.presence-dot{background:#45a47b;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #45a47b21}.shell-actions{justify-content:flex-end;align-items:center;gap:8px;min-width:0;display:flex}.shell-icon-button{border:1px solid var(--ui-border);background:var(--ui-surface);min-width:38px;min-height:38px;color:var(--ui-text);cursor:pointer;border-radius:11px;justify-content:center;align-items:center;gap:6px;padding:6px 10px;display:inline-flex}.shell-icon-button:hover{border-color:var(--ui-accent);background:var(--ui-surface-muted)}.shell-icon-button span{font-size:12px;font-weight:700}.shell-actions .notification-trigger{border-color:var(--ui-border);background:var(--ui-surface);min-height:38px;color:var(--ui-text);border-radius:11px;padding:6px 10px}.shell-actions .auth-logout{border:1px solid var(--ui-border);background:var(--ui-surface);min-height:38px;color:var(--ui-text);cursor:pointer;border-radius:11px;padding:6px 11px;font-size:12px;font-weight:700}.shell-actions .auth-logout:hover{border-color:var(--ui-accent);color:var(--ui-accent)}.route-content{min-width:0}.page-wrap{width:min(100%,1480px);min-height:calc(100dvh - 60px);margin-inline:auto;padding:22px clamp(18px,2.7vw,38px) 26px}.page-heading{margin:0 0 18px}.page-heading h1{color:var(--ui-text);letter-spacing:-.025em;margin:2px 0;font-size:clamp(23px,2.6vw,32px);line-height:1.2}.page-heading>p:last-child:not(.eyebrow){color:var(--ui-text-muted);margin:6px 0 0}.eyebrow{color:var(--ui-text-muted);letter-spacing:.12em;margin:0;font-size:10px;font-weight:750}.panel{border:1px solid var(--ui-border);background:var(--ui-surface);box-shadow:var(--ui-shadow-sm);color:var(--ui-text);border-radius:16px}.fatal-error{text-align:center;align-content:center;justify-items:center;min-height:100dvh;padding:24px;display:grid}.fatal-error p{color:var(--ui-text-muted)}.fatal-error button{background:var(--ui-accent);color:var(--ui-accent-contrast);cursor:pointer;border:0;border-radius:9px;padding:10px 14px}.explore-page .page-heading{margin-bottom:16px}.explore-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.explore-card{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:14px;align-items:center;gap:13px;min-height:88px;padding:14px 15px;text-decoration:none;transition:border-color .13s,translate .13s;display:flex}.explore-card:hover{border-color:var(--ui-accent);translate:0 -1px}.explore-card__mark{background:var(--ui-accent-soft);width:42px;height:42px;color:var(--ui-accent);border-radius:13px;flex:none;place-items:center;display:grid}.explore-card>span:nth-child(2){flex:1;gap:5px;min-width:0;display:grid}.explore-card strong{font-size:14px}.explore-card small{color:var(--ui-text-muted);font-size:11px;line-height:1.4}.mobile-nav{display:none}.music-mini{z-index:40!important}.shell-voice-overlay{z-index:850;background:var(--ui-overlay);justify-content:flex-end;display:flex;position:fixed;inset:0}.shell-voice-drawer{width:min(540px,100%);height:100%;padding:20px 20px max(20px, env(safe-area-inset-bottom));border-left:1px solid var(--ui-border);background:var(--ui-bg);box-shadow:var(--ui-shadow-lg);flex-direction:column;gap:14px;display:flex;overflow-y:auto}.shell-voice-header{justify-content:space-between;align-items:center;gap:14px;display:flex}.shell-voice-header h2{margin:3px 0 0;font-size:21px}.shell-close{border:1px solid var(--ui-border);background:var(--ui-surface);width:38px;height:38px;color:var(--ui-text);cursor:pointer;border-radius:50%;place-items:center;font-size:24px;display:grid}.shell-voice-tabs{border-bottom:1px solid var(--ui-border);gap:7px;display:flex}.shell-voice-tabs button{min-height:38px;color:var(--ui-text-muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:7px 12px;font-size:13px;font-weight:700}.shell-voice-tabs button.selected{border-bottom-color:var(--ui-accent);color:var(--ui-accent)}.shell-voice-conversation{color:var(--ui-text-muted);gap:6px;font-size:12px;font-weight:650;display:grid}.shell-voice-conversation select{border:1px solid var(--ui-border-strong);background:var(--ui-surface);min-height:40px;color:var(--ui-text);border-radius:10px;padding:8px 10px}.shell-voice-error{background:var(--ui-danger-soft);color:var(--ui-danger);border-radius:9px;margin:0;padding:9px 11px;font-size:12px}.shell-voice-error button{color:inherit;cursor:pointer;background:0 0;border:0;margin-left:8px;font-weight:700}.shell-voice-empty{color:var(--ui-text-muted);margin:12px 0}@media (width>=761px){.page-wrap{padding-top:18px;padding-bottom:22px}.page-heading{margin-bottom:14px}.page-heading h1,.home-heading h1,.feature-heading h1,.profile-heading h1,.admin-heading h1,.bugland-heading h1{font-size:clamp(22px,2vw,27px)}.home-heading,.feature-heading,.profile-heading,.admin-heading,.bugland-heading{margin-bottom:16px}.admin-section{margin-bottom:14px}.music-page{padding-bottom:92px}}.ui-theme-layer{z-index:11000}html[data-color-mode=dark] .brand-mark,html[data-theme=dark] .brand-mark{color:#e0c775;background:#26261f;border-color:#83734b}html[data-color-mode=dark] .shell-topbar,html[data-theme=dark] .shell-topbar{background:color-mix(in srgb, var(--ui-bg), transparent 3%)}html[data-color-mode=dark] .home-panel,html[data-theme=dark] .home-panel,html[data-color-mode=dark] .announcement-card,html[data-theme=dark] .announcement-card,html[data-color-mode=dark] .profile-form,html[data-theme=dark] .profile-form,html[data-color-mode=dark] .admin-section,html[data-theme=dark] .admin-section,html[data-color-mode=dark] .bugland-card,html[data-theme=dark] .bugland-card{background:var(--ui-surface);color:var(--ui-text)}html[data-color-mode=dark] .home-messages p,html[data-theme=dark] .home-messages p,html[data-color-mode=dark] .announcement-card>p,html[data-theme=dark] .announcement-card>p,html[data-color-mode=dark] .admin-announcement-list article p,html[data-theme=dark] .admin-announcement-list article p{color:var(--ui-text-muted)}html[data-color-mode=dark] .home-composer textarea,html[data-theme=dark] .home-composer textarea,html[data-color-mode=dark] .admin-create-form,html[data-theme=dark] .admin-create-form,html[data-color-mode=dark] .admin-announcement-form,html[data-theme=dark] .admin-announcement-form,html[data-color-mode=dark] .profile-presence,html[data-theme=dark] .profile-presence{background:var(--ui-surface-muted);color:var(--ui-text)}html[data-color-mode=dark] .admin-create-form input,html[data-theme=dark] .admin-create-form input,html[data-color-mode=dark] .admin-announcement-form input,html[data-theme=dark] .admin-announcement-form input,html[data-color-mode=dark] .admin-announcement-form textarea,html[data-theme=dark] .admin-announcement-form textarea,html[data-color-mode=dark] .admin-reset-form input,html[data-theme=dark] .admin-reset-form input,html[data-color-mode=dark] .admin-table-wrap select,html[data-theme=dark] .admin-table-wrap select,html[data-color-mode=dark] .profile-fields input:not([type=checkbox]),html[data-theme=dark] .profile-fields input:not([type=checkbox]),html[data-color-mode=dark] .profile-fields textarea,html[data-theme=dark] .profile-fields textarea,html[data-color-mode=dark] .profile-fields select,html[data-theme=dark] .profile-fields select{border-color:var(--ui-border-strong);background:var(--ui-surface-muted);color:var(--ui-text)}html[data-color-mode=dark] .feature-error,html[data-theme=dark] .feature-error,html[data-color-mode=dark] .admin-error,html[data-theme=dark] .admin-error,html[data-color-mode=dark] .profile-error,html[data-theme=dark] .profile-error{border-color:var(--ui-border);background:var(--ui-danger-soft);color:var(--ui-danger)}html[data-color-mode=dark] .admin-notice,html[data-theme=dark] .admin-notice,html[data-color-mode=dark] .profile-success,html[data-theme=dark] .profile-success{background:var(--ui-success-soft);color:var(--ui-success)}html[data-color-mode=dark] .admin-role.is-admin,html[data-theme=dark] .admin-role.is-admin,html[data-color-mode=dark] .admin-required,html[data-theme=dark] .admin-required,html[data-color-mode=dark] .admin-ok,html[data-theme=dark] .admin-ok,html[data-color-mode=dark] .important-badge,html[data-theme=dark] .important-badge{background:var(--ui-surface-muted);color:var(--ui-text-muted)}html[data-color-mode=dark] .music-primary,html[data-theme=dark] .music-primary,html[data-color-mode=dark] .music-state button,html[data-theme=dark] .music-state button,html[data-color-mode=dark] .music-create-playlist button,html[data-theme=dark] .music-create-playlist button,html[data-color-mode=dark] .bugland-refresh,html[data-theme=dark] .bugland-refresh,html[data-color-mode=dark] .bugland-tabs button:not(.active),html[data-theme=dark] .bugland-tabs button:not(.active),html[data-color-mode=dark] .bugland-form button:not(.secondary),html[data-theme=dark] .bugland-form button:not(.secondary),html[data-color-mode=dark] .bugland-inline-form button,html[data-theme=dark] .bugland-inline-form button,html[data-color-mode=dark] .admin-create-form>button,html[data-theme=dark] .admin-create-form>button,html[data-color-mode=dark] .admin-announcement-form button,html[data-theme=dark] .admin-announcement-form button,html[data-color-mode=dark] .qq-bind-form button,html[data-theme=dark] .qq-bind-form button{color:var(--ui-accent-contrast)}html[data-color-mode=dark] .chat-feature,html[data-theme=dark] .chat-feature{--chat-ink:var(--ui-text);--chat-muted:var(--ui-text-muted);--chat-line:var(--ui-border);--chat-accent:var(--ui-accent);--chat-soft:var(--ui-accent-soft);background:var(--ui-surface);color:var(--ui-text)}html[data-color-mode=dark] .chat-list-pane,html[data-theme=dark] .chat-list-pane,html[data-color-mode=dark] .chat-thread-pane,html[data-theme=dark] .chat-thread-pane,html[data-color-mode=dark] .chat-dialog,html[data-theme=dark] .chat-dialog{background:var(--ui-surface);color:var(--ui-text)}html[data-color-mode=dark] .chat-search,html[data-theme=dark] .chat-search,html[data-color-mode=dark] .chat-dialog input,html[data-theme=dark] .chat-dialog input,html[data-color-mode=dark] .chat-dialog header>button,html[data-theme=dark] .chat-dialog header>button{border-color:var(--ui-border-strong);background:var(--ui-surface-muted);color:var(--ui-text)}html[data-color-mode=dark] .chat-conversation:hover,html[data-theme=dark] .chat-conversation:hover,html[data-color-mode=dark] .chat-conversation.selected,html[data-theme=dark] .chat-conversation.selected,html[data-color-mode=dark] .chat-segment button.active,html[data-theme=dark] .chat-segment button.active,html[data-color-mode=dark] .chat-member-result,html[data-theme=dark] .chat-member-result{background:var(--ui-accent-soft);color:var(--ui-text)}html[data-color-mode=dark] .chat-avatar,html[data-theme=dark] .chat-avatar{background:var(--ui-accent-soft);color:var(--ui-accent)}html[data-color-mode=dark] .chat-bubble,html[data-theme=dark] .chat-bubble,html[data-color-mode=dark] .chat-reply-quote,html[data-theme=dark] .chat-reply-quote,html[data-color-mode=dark] .chat-segment,html[data-theme=dark] .chat-segment{background:var(--ui-surface-muted);color:var(--ui-text)}html[data-color-mode=dark] .chat-message.mine .chat-bubble,html[data-theme=dark] .chat-message.mine .chat-bubble{background:var(--ui-accent-soft)}html[data-color-mode=dark] .chat-composer,html[data-theme=dark] .chat-composer,html[data-color-mode=dark] .chat-search input,html[data-theme=dark] .chat-search input,html[data-color-mode=dark] .chat-compose-row textarea,html[data-theme=dark] .chat-compose-row textarea{background:var(--ui-surface-muted);color:var(--ui-text)}html[data-color-mode=dark] .chat-primary,html[data-theme=dark] .chat-primary{background:var(--ui-accent);color:var(--ui-accent-contrast)}html[data-color-mode=dark] .chat-error,html[data-theme=dark] .chat-error,html[data-color-mode=dark] .chat-inline-error,html[data-theme=dark] .chat-inline-error{color:var(--ui-danger)}html[data-color-mode=dark] .chat-dialog-backdrop,html[data-theme=dark] .chat-dialog-backdrop,html[data-color-mode=dark] .notes-modal-backdrop,html[data-theme=dark] .notes-modal-backdrop{background:var(--ui-overlay)}html[data-color-mode=dark] .notes-feature,html[data-theme=dark] .notes-feature{--notes-ink:var(--ui-text);--notes-muted:var(--ui-text-muted);--notes-line:var(--ui-border);--notes-accent:var(--ui-accent);background:var(--ui-surface);color:var(--ui-text)}html[data-color-mode=dark] .notes-sidebar,html[data-theme=dark] .notes-sidebar,html[data-color-mode=dark] .notes-editor-pane,html[data-theme=dark] .notes-editor-pane,html[data-color-mode=dark] .notes-modal,html[data-theme=dark] .notes-modal{background:var(--ui-surface);color:var(--ui-text)}html[data-color-mode=dark] .notes-search,html[data-theme=dark] .notes-search,html[data-color-mode=dark] .notes-search input,html[data-theme=dark] .notes-search input,html[data-color-mode=dark] .notes-folder-create input,html[data-theme=dark] .notes-folder-create input,html[data-color-mode=dark] .notes-meta-fields input,html[data-theme=dark] .notes-meta-fields input,html[data-color-mode=dark] .notes-meta-fields select,html[data-theme=dark] .notes-meta-fields select,html[data-color-mode=dark] .notes-share-field input,html[data-theme=dark] .notes-share-field input{border-color:var(--ui-border-strong);background:var(--ui-surface-muted);color:var(--ui-text)}html[data-color-mode=dark] .notes-folder.active,html[data-theme=dark] .notes-folder.active,html[data-color-mode=dark] .notes-folder:hover,html[data-theme=dark] .notes-folder:hover,html[data-color-mode=dark] .notes-folder-row.active,html[data-theme=dark] .notes-folder-row.active,html[data-color-mode=dark] .notes-card:hover,html[data-theme=dark] .notes-card:hover,html[data-color-mode=dark] .notes-card.selected,html[data-theme=dark] .notes-card.selected{border-color:var(--ui-border-strong);background:var(--ui-accent-soft);color:var(--ui-text)}html[data-color-mode=dark] .notes-actions button,html[data-theme=dark] .notes-actions button,html[data-color-mode=dark] .notes-back,html[data-theme=dark] .notes-back,html[data-color-mode=dark] .notes-modal header>button,html[data-theme=dark] .notes-modal header>button,html[data-color-mode=dark] .notes-state button,html[data-theme=dark] .notes-state button,html[data-color-mode=dark] .notes-empty button,html[data-theme=dark] .notes-empty button{border-color:var(--ui-border);background:var(--ui-surface-muted);color:var(--ui-text)}html[data-color-mode=dark] .notes-title-input,html[data-theme=dark] .notes-title-input,html[data-color-mode=dark] .notes-content-input,html[data-theme=dark] .notes-content-input{color:var(--ui-text);background:0 0}html[data-color-mode=dark] .notes-share-tabs,html[data-theme=dark] .notes-share-tabs{background:var(--ui-surface-muted)}html[data-color-mode=dark] .notes-share-tabs button.active,html[data-theme=dark] .notes-share-tabs button.active{background:var(--ui-surface);color:var(--ui-accent)}html[data-color-mode=dark] .notes-inline-error,html[data-theme=dark] .notes-inline-error{color:var(--ui-danger)}html[data-color-mode=dark] .notes-primary,html[data-theme=dark] .notes-primary{background:var(--ui-accent);color:var(--ui-accent-contrast)}@media (width<=940px){.explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){body{padding-bottom:calc(62px + env(safe-area-inset-bottom))}.sidebar{display:none}.app-main{min-height:calc(100dvh - 62px - env(safe-area-inset-bottom));margin:0}.shell-topbar{gap:7px;min-height:54px;padding:7px 12px}.shell-presence{gap:6px;font-size:11px}.shell-actions{gap:5px}.shell-icon-button{min-width:36px;min-height:36px;padding:5px 8px}.shell-icon-button span{display:none}.shell-actions .notification-trigger{justify-content:center;gap:4px;min-width:36px;min-height:36px;padding:5px 7px}.shell-actions .notification-trigger>span:nth-child(2){display:none}.shell-actions .auth-logout{min-height:36px;padding:5px 8px;font-size:11px}.page-wrap{min-height:calc(100dvh - 116px - env(safe-area-inset-bottom));padding:17px 15px 22px}.mobile-nav{z-index:70;min-height:60px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--ui-border);background:color-mix(in srgb, var(--ui-surface), transparent 2%);grid-template-columns:repeat(4,minmax(0,1fr));display:grid;position:fixed;inset:auto 0 0;box-shadow:0 -4px 20px #101c220f}.mobile-link{color:#657780;align-content:center;justify-items:center;gap:2px;min-width:0;text-decoration:none;display:grid}.mobile-link span{font-size:10px;font-weight:650}.mobile-link.active,.mobile-link.active svg{color:var(--ui-accent)}.explore-grid{grid-template-columns:minmax(0,1fr);gap:9px}.explore-card{min-height:74px;padding:11px 12px}.music-mini{bottom:calc(68px + env(safe-area-inset-bottom))!important}.shell-voice-overlay{z-index:850;align-items:flex-end}.shell-voice-drawer{border:1px solid var(--ui-border);width:100%;height:min(88dvh,780px);padding:16px 14px max(15px, env(safe-area-inset-bottom));border-bottom:0;border-radius:20px 20px 0 0}}@media (width<=400px){.shell-topbar{padding-inline:8px}.shell-presence{font-size:10px}.shell-actions{gap:3px}.shell-actions .auth-logout{padding-inline:6px;font-size:10px}}html{-webkit-text-size-adjust:100%}.ui-avatar{max-width:100%;overflow:hidden}.nav-link{color:var(--ui-text-muted)}@media (width<=760px){.page-wrap{padding-inline:12px}.shell-icon-button,.shell-actions .notification-trigger,.shell-actions .auth-logout{min-width:40px;min-height:40px}.mobile-link{min-height:48px;color:var(--ui-text-muted)}.mobile-nav{padding-inline:4px}}:root[data-town-theme] :is(.chat-feature,.notes-feature,.chat-list-pane,.notes-sidebar,.chat-thread-pane,.notes-editor-pane,.auth-card,.profile-form,.theme-dialog){background:var(--ui-surface);color:var(--ui-text)}:root[data-town-theme] :is(.chat-conversation,.notes-card){background:var(--ui-surface-muted)}:root[data-town-theme] :is(.chat-conversation.selected,.chat-conversation:hover,.notes-card.selected,.notes-card:hover,.chat-bubble,.chat-composer,.notes-editor-body){background:var(--ui-accent-soft)}:root[data-town-theme] .chat-message.mine .chat-bubble{background:color-mix(in srgb,var(--ui-accent) 21%,var(--ui-surface));color:var(--ui-text)}:root[data-town-theme] :is(.chat-feature,.notes-feature){--chat-ink:var(--ui-text);--chat-muted:var(--ui-text-muted);--chat-line:var(--ui-border);--chat-accent:var(--ui-accent);--chat-soft:var(--ui-accent-soft);--notes-ink:var(--ui-text);--notes-muted:var(--ui-text-muted);--notes-line:var(--ui-border);--notes-accent:var(--ui-accent)}.voice-room-overlay{justify-content:center;align-items:center;padding:16px}.voice-room-window{border:1px solid var(--ui-border);border-radius:20px;width:min(780px,100%);height:auto;max-height:90dvh}.voice-invite-controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.voice-invite-controls select{max-width:100%}.town-version-notice{z-index:10000;color:#fff;background:#243944;border-radius:12px;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 32px);padding:12px 16px;display:flex;position:fixed;bottom:18px;left:50%;transform:translate(-50%);box-shadow:0 5px 20px #0003}
