:root{color-scheme:dark;--canvas:#111;--sidebar:#171717;--panel:#1c1c1c;--control:#242424;--hover:#2b2b2b;--text:#ededed;--muted:#ababab;--hairline:rgba(255,255,255,.08);--line:rgba(255,255,255,.14);--focus:#b6a0ed;--error:#e08a85;--success:#a6c69a;font-family:"Segoe UI Variable Text","Segoe UI","Microsoft YaHei UI",system-ui,sans-serif;font-size:14px;color:var(--text);background:var(--canvas)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--focus)}a{color:inherit;text-underline-offset:4px}button{min-height:36px;padding:8px 14px;border:1px solid transparent;border-radius:8px;background:var(--control);color:var(--text);cursor:pointer;transition:background-color 120ms ease}button:hover{background:var(--hover)}button.primary{background:var(--text);color:#0b0b0b;font-weight:600}button.primary:hover{background:white}button.ghost{background:transparent;border-color:var(--line)}button.danger{color:var(--error)}button:disabled{opacity:.5;cursor:wait}input,textarea,select{width:100%;border:1px solid var(--line);background:var(--control);color:var(--text);border-radius:8px;padding:10px 12px;min-height:40px;caret-color:var(--focus)}textarea{resize:vertical;min-height:110px;line-height:1.65}input::placeholder,textarea::placeholder{color:var(--muted)}label{display:block;font-size:13px;font-weight:500;margin:0 0 8px}label input,label textarea,label select{display:block;margin-top:8px}h1{font-size:24px;font-weight:600;letter-spacing:-.025em;margin:0 0 8px}h2{font-size:16px;font-weight:600;margin:0 0 16px}h3{font-size:14px;margin:0 0 8px}p{line-height:1.7;margin:0 0 14px;max-width:72ch}.muted,.hint{color:var(--muted)}.hint{font-size:12px;line-height:1.6;margin:6px 0 12px}.small{font-size:12px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row.between{justify-content:space-between}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stack{display:grid;gap:18px}.full{grid-column:1/-1}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:var(--sidebar);border-right:1px solid var(--hairline);padding:24px 12px 14px}.wordmark{font-size:20px;font-weight:650;letter-spacing:-.03em;padding:0 12px;margin-bottom:36px;text-decoration:none;display:block}.nav{display:grid;gap:4px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;width:100%;background:transparent;color:var(--muted);padding:10px 12px}.nav button:hover{background:var(--control);color:var(--text)}.nav button.active{background:var(--hover);color:var(--text)}.nav svg{width:18px;height:18px;stroke-width:1.6;flex:none}.sidebar-bottom{margin-top:auto;padding:18px 10px 0;border-top:1px solid var(--hairline)}.sidebar-bottom strong{display:block;font-size:13px;font-weight:500;margin-bottom:6px}.main{min-width:0}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--hairline);font-size:13px;color:var(--muted)}.topbar a{text-decoration:none}.page{max-width:1100px;padding:36px 36px 60px;margin:auto}.page-heading{margin-bottom:32px}.section{padding:24px 0;border-bottom:1px solid var(--hairline)}.section:first-child{padding-top:0}.section:last-child{border-bottom:0}.form-width{max-width:660px}.panel{background:var(--panel);border:1px solid var(--hairline);border-radius:14px;padding:24px}.auth{min-height:100vh;display:grid;place-items:center;padding:32px 20px}.auth-inner{width:min(100%,390px)}.auth .wordmark{font-size:28px;padding:0;margin-bottom:48px}.auth form{display:grid;gap:18px}.auth h1{font-size:22px}.auth .sub{margin-bottom:28px;color:var(--muted)}.auth footer{display:flex;justify-content:space-between;gap:12px;margin-top:24px;font-size:12px;color:var(--muted)}.form-error{color:var(--error);font-size:13px;line-height:1.6}.form-error:empty{display:none}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--hairline);vertical-align:middle}th{font-weight:500;color:var(--muted);white-space:nowrap}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}td input,td select{min-width:80px;max-width:130px}td .row{flex-wrap:nowrap}.empty{padding:48px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:12px}.empty h2{color:var(--text);margin-bottom:8px}.empty p{margin:0 auto}.list-item{padding:20px 0;border-bottom:1px solid var(--hairline)}.list-item:last-child{border-bottom:0}.list-item p{margin:8px 0;color:var(--muted)}.state{font-size:12px;padding:4px 8px;border-radius:5px;background:var(--control);white-space:nowrap}.state.error{color:var(--error)}.state.ready{color:var(--success)}.secret-box{overflow-wrap:anywhere;font-family:"Cascadia Mono",Consolas,monospace;background:var(--control);padding:14px;border-radius:8px;font-size:12px;line-height:1.7}.secret-box:empty{display:none}.progress-note{padding:12px 0;color:var(--muted);font-size:12px}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px}.media-item{min-width:0}.media-item img,.media-item video{display:block;width:100%;max-height:280px;object-fit:contain;background:var(--panel);border-radius:10px;margin:10px 0}.media-item .media-placeholder{height:160px;display:grid;place-items:center;background:var(--panel);border-radius:10px;color:var(--muted)}.media-item p{font-size:13px;overflow-wrap:anywhere}.chat-log{min-height:250px;max-height:55vh;overflow:auto;margin:12px 0 24px}.message{max-width:78%;padding:14px 18px;border-radius:12px;margin-bottom:16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.message.user{background:var(--control);margin-left:auto}.message.assistant{padding-left:0}.composer{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--panel)}.composer textarea{border:0;background:transparent;min-height:90px}.composer .row{justify-content:space-between}.checkbox{display:flex;align-items:center;gap:8px}.checkbox input{width:16px;min-height:16px;margin:0}.tabs{display:flex;gap:8px;margin-bottom:24px;border-bottom:1px solid var(--hairline);padding-bottom:14px}.tabs button.active{background:var(--text);color:var(--canvas)}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--canvas);border-radius:8px;padding:12px 18px;max-width:calc(100vw - 32px);box-shadow:0 8px 30px rgba(0,0,0,.2);z-index:50}#notice:empty{display:none}.skip{position:fixed;top:-100px;left:20px;z-index:100;background:var(--text);color:var(--canvas);padding:10px}.skip:focus{top:10px}pre{white-space:pre-wrap;overflow-wrap:anywhere}::selection{background:#4c445f;color:#fff}html{scrollbar-color:#454545 var(--canvas)}[hidden]{display:none!important}.numeric{font-variant-numeric:tabular-nums}.checkline{display:flex;gap:14px;align-items:flex-start}.checkline span{color:var(--muted)}.flex-grow{flex:1;min-width:150px}@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:16px 14px}.sidebar .wordmark{margin:0 0 18px}.nav{display:flex;overflow-x:auto;gap:4px}.nav button{width:auto;white-space:nowrap;gap:7px;padding:8px 10px}.sidebar-bottom{display:none}.topbar{height:52px;padding:0 20px}.page{padding:26px 20px 48px}.page-heading{margin-bottom:24px}.fields,.fields.three{grid-template-columns:1fr}.panel{padding:18px}.message{max-width:92%}h1{font-size:22px}.media-grid{grid-template-columns:1fr 1fr}}@media(max-width:420px){.media-grid{grid-template-columns:1fr}.row{gap:8px}.auth footer{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
:root{--sidebar:#0d0d0d;--panel:#191919;--control:#212121;--hover:#262626;--text:#f0f0f0;--muted:#a3a3a3;--success:#5cb88c}html.light{color-scheme:light;--canvas:#f7f6f2;--sidebar:#f0efeb;--panel:#faf9f6;--control:#fcfbf9;--hover:#ebe9e3;--text:#2b2a27;--muted:#5e5b54;--hairline:rgba(40,32,20,.10);--line:rgba(40,32,20,.16);--focus:#9e3a8c;--error:#a63f38;--success:#2d6b45}html.light button.primary{color:#fff}html.light .state.ready{color:var(--success)}.message.user{margin-left:0;max-width:100%;border-radius:8px;background:var(--panel)}.download-link{display:inline-block;background:var(--text);color:var(--canvas);padding:12px 18px;border-radius:8px;text-decoration:none;font-weight:600}.auth footer span{white-space:nowrap}

.announcements{margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--hairline)}.announcements p{white-space:pre-wrap}.media-item audio{width:100%;margin:16px 0}

.sidebar,.nav{min-width:0}.media-item img{min-height:160px}.nav{max-width:100%}@media(max-width:760px){.shell{grid-template-columns:minmax(0,1fr)}.nav button{flex-shrink:0}}

.wordmark{display:inline-flex;align-items:center;gap:9px;line-height:1}.brand-logo{width:30px;height:30px;object-fit:contain}.brand-wordmark{width:112px;height:auto;object-fit:contain}.sidebar .brand-logo{width:24px;height:24px}.sidebar .brand-wordmark{width:94px}html.light .brand-logo{content:url("/brand/logo.png")}html.light .brand-wordmark{content:url("/brand/wordmark.png")}
