:root{--accent:#c43738;--paper:#fff;--line:#eae8e5;--muted:#777777;color:#222;font:14px/1.55 "Segoe UI","Microsoft YaHei",system-ui,sans-serif;background:#faf9f7}
button,input,textarea,select{border-radius:6px}button:hover,.chosen{background:#f6ecea}.primary:hover{background:#a8282c}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #b94444}
.appbar{display:flex;align-items:center;gap:8px;height:39px;padding:0 16px;background:#faf9f7;border-bottom:1px solid var(--line)}.appbar span{padding-left:8px;border-left:1px solid #d9d6d3;color:var(--muted);font-size:12px}.fire{width:17px;height:21px;color:var(--accent)}
#shell{height:calc(100dvh - 39px);display:grid;grid-template-columns:64px clamp(252px,26vw,352px) minmax(0,1fr);grid-template-areas:"rail index room"}
#shell nav{grid-area:rail;background:#f8f7f5;padding:14px 4px;gap:10px}#shell nav button{border:0;display:grid;place-items:center;gap:4px;font-size:12px;color:#5e605f;background:none;width:100%}#shell nav [aria-current=page]{background:#f5e7e6;color:#b72e34;font-weight:650}
#shell svg:not(.fire),.empty svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#shell aside{grid-area:index;padding:12px 10px;background:#fdfcfb;overscroll-behavior:contain}.sidehead h1{font-size:16px;margin:0 6px 8px}.tools{margin:6px 0}.tools button{font-size:12px}
.searchline{display:flex;gap:5px;margin:4px 4px 14px}.searchline input{background:#f3f3f2;min-width:0;padding:7px 10px;border:0}.searchline button{padding:3px 8px}.menutabs{display:flex;gap:2px;padding:3px;background:#f4f3f2;border-radius:6px;margin-bottom:16px}.menutabs button{padding:5px 2px;border:0;background:none;flex:1;color:#63605f}.menutabs .chosen{background:white;color:var(--accent);font-weight:650;box-shadow:0 1px 3px #0001}
.thread{display:flex;align-items:center;text-align:left;gap:11px;width:100%;min-width:0;border:0;padding:10px 8px;background:transparent}.thread:hover{background:#f4f2ef}.thread.selected{background:#f7e9e7}.face{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:50%;background:#eeeae5;color:#595754;font-weight:600}.face.person{background:#e9eef2;color:#485b6a}.face.bot{background:#f8e6e5;color:#ba3437}.face.team{background:#e8edee;color:#546065}.copy{min-width:0;flex:1}.copy b,.copy small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.copy small,.trailing time{font-size:12px;color:var(--muted)}.trailing{display:grid;justify-items:end;gap:4px}.trailing .badge{border-radius:20px;background:#c93839;color:white;min-width:16px;text-align:center;font:11px/16px system-ui}#shell .trailing svg{width:13px;height:13px}.rail-label{font-weight:600}.room{grid-area:room;padding:0;background:#fcfbfa;min-width:0}.roomhead{display:flex;gap:10px;align-items:center;padding:12px 20px;border-bottom:1px solid var(--line);min-height:62px}.roomname{flex:1;min-width:0}.roomname h2{margin:0;font-size:17px;overflow-wrap:anywhere}.back{display:none}.stream{padding:12px clamp(14px,3vw,38px);overscroll-behavior:contain;scrollbar-gutter:stable}.empty{height:100%;min-height:150px;display:grid;align-content:center;justify-items:center;text-align:center;color:#777}.empty svg{border-radius:50%;box-sizing:content-box;padding:13px;background:#f2f0ee;margin-bottom:8px}.empty h3{color:#444;font-size:15px}.empty p{max-width:34em;padding:0 16px}.bubble p{background:white;border:1px solid var(--line)}.bubble.self p{background:#f9e9e7;border-color:#f4dfdb}
#send{margin:0 clamp(10px,2vw,28px) 16px;background:white;border:1px solid var(--line);border-radius:9px;padding:10px}#msg{border:0;resize:none;padding:4px;min-height:46px;max-height:120px}#msg:focus{outline:0}#send:focus-within{border-color:#ba8e88}.composerbar,#composer-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.composerbar>.primary{margin-inline-start:auto;padding:4px 14px}#composer-actions button{border:0;padding:4px 6px;color:#5c5957;background:#f7f6f5;font-size:12px}.sr{position:absolute!important;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.bindchecks section{display:grid;grid-template-columns:1fr auto;gap:5px;padding:14px 0;border-bottom:1px solid var(--line)}.bindchecks small{grid-column:1/-1}.flag{color:#aa3b32}.flag.good{color:#29794e}.bindchecks{margin-bottom:18px}.gate .primary{margin-right:8px}
@media(max-width:700px){#shell{grid-template-columns:51px minmax(0,1fr);grid-template-areas:"rail index"}#shell.chatting{grid-template-areas:"rail room"}.roomhead{padding:8px}.back{display:inline-flex;padding:4px}#shell aside{padding:10px 5px}.stream{padding:8px}.appbar{padding-left:10px}#send{margin:0 6px 7px}.bubble{max-width:95%}}
.fixture-link{position:fixed;z-index:1;inset:8px 16px auto auto;font-size:12px;color:#765a55;text-decoration:none}
.staffheading{padding:0 8px}.staffheading small{font-weight:400;margin-left:8px}.skillface{background:#f0efee;color:#575653}.selected .skillface{background:#f4e6e3;color:#76514b}#shell .menutabs .chosen{background:#faece9;box-shadow:inset 0 -2px #c43a38}.fire{width:20px;height:21px}
.adminshell{display:grid;grid-template-columns:200px minmax(0,1fr);height:calc(100dvh - 39px)}.adminshell aside{display:flex;flex-direction:column;gap:8px;padding:20px 12px}.adminshell aside strong{margin-bottom:12px}.adminshell aside button{text-align:left;border:0}.adminshell main{display:block;overflow:auto;padding:24px clamp(14px,4vw,72px)}.adminshell main form{max-width:43rem}.adminshell details,.adminshell h2{margin:14px 0}.adminshell summary{cursor:pointer}.adminshell input[type=checkbox],dialog input[type=checkbox]{width:auto}@media(max-width:680px){.adminshell{display:block}.adminshell aside{flex-direction:row;flex-wrap:wrap;padding:6px}.adminshell aside strong{display:none}.adminshell main{padding:12px}}
#incoming{position:fixed;inset:auto 18px 20px auto;max-width:320px;z-index:3;background:white;border:1px solid var(--line);box-shadow:0 7px 28px #241a1828;border-radius:12px;padding:16px}
#shell aside{display:flex;flex-direction:column;min-height:0;overflow:hidden}#aside{min-height:0;overflow:auto;overscroll-behavior:contain}#aside .menutabs{position:sticky;top:0;z-index:1;background:#f4f3f2}.stream>.primary,.stream>a{display:block;width:fit-content;margin:8px auto}.stream:has(>.primary) .empty,.stream:has(>a) .empty{height:72%}
@media(max-width:700px){#shell.chatting aside{display:none}}
@media(min-width:840px){#shell.wide-index{grid-template-columns:64px clamp(340px,35vw,490px) minmax(0,1fr)}}
.insights{padding:4px 6px}.insights h3{margin:18px 0 6px;font-size:14px}.insights h4{margin:8px 0 2px;font-size:13px}.insights .plot{width:108px!important;height:108px!important;stroke:none!important;fill:#393632!important}.plot text{font-size:20px;font-weight:650}.plot text.unit{font-size:9px;font-weight:400}.plot [role=button]{cursor:pointer}.chartbox{margin:12px 0;display:flex;align-items:center;gap:12px}.chartbox>div{display:grid;gap:2px}.chartbox button,.filterchips button,.monthbar button{border:0;padding:4px 8px;font-size:12px}.filterchips{display:flex;gap:3px;flex-wrap:wrap}.monthbar{display:flex;align-items:center;justify-content:space-between;margin:14px 0 6px}.calgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}.calgrid button{position:relative;background:none;border:0;margin:1px;padding:5px 0}.calgrid .chosen{background:#f8dfdc;color:#9c282c}.calgrid .hasnode:after{content:'';position:absolute;bottom:1px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#bc413f}.load,.branch{width:100%;text-align:start;background:none;border:0;padding:6px}.load{display:flex;align-items:center;gap:10px}.load meter{flex:1;min-width:20px;accent-color:#ba655d}.detailrow{display:block;margin:0 6px 6px}.inspect{background:white;border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:12px}.inspect header,.flow{display:flex;align-items:center;justify-content:space-between}.inspect dl{font-size:12px}.inspect dt{color:var(--muted);margin-top:5px}.inspect dd{margin:0}.flow{list-style:none;padding:0}.flow li{color:#888}.flow .now{color:var(--accent);font-weight:700}
.msgcard{max-width:32em;padding:13px 16px;border:1px solid var(--line);border-inline-start:3px solid #c36962;border-radius:8px;background:white;color:#312d2a;text-align:start}.msgcard h3{margin:4px 0;font-size:15px}.bubble .msgcard p{border:0;background:none;white-space:pre-wrap;margin:7px 0;padding:0}.msgcard dl{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;font-size:12px}.msgcard dt{color:#716f6b}.msgcard dd{margin:0}.msgcard button{margin-right:5px}
#composer-actions{position:relative;min-width:0}
#input-menu{position:absolute;bottom:calc(100% + .5rem);left:0;z-index:7;display:grid;min-width:min(14rem,100%);width:max-content;max-width:min(21rem,75vw);max-height:min(17rem,48vh);overflow:auto;padding:.42rem;gap:.15rem;background:#fff;color:#222;border:1px solid #e0e2e6;border-radius:.65rem;box-shadow:0 9px 32px #17202a20}
#input-menu strong,#input-menu p{margin:.35rem .55rem;font-size:.82rem}#input-menu button{text-align:left;white-space:normal;padding:.45rem .6rem;border:none;border-radius:.35rem;background:transparent;color:inherit}#input-menu button[aria-checked=true],#input-menu button:focus-visible{background:#fff1ec;color:#963a24}
#shell.manage-index .sidehead{display:none}#shell.manage-index aside{padding-top:12px}.staffheading{margin:14px 0 12px;font-size:1.08rem}.picker-anchor{position:relative;display:inline-flex}.picker-anchor>button:after{content:'⌄';margin-inline-start:4px;color:#737270}#composer-actions .voice-action{display:inline-flex;align-items:center;gap:3px;background:none}#shell .voice-action svg{width:14px;height:17px;color:#b63232}.picker-anchor #input-menu{min-width:11.5rem}.picker-anchor #input-menu button[aria-checked=true]::after{content:'✓';float:right;margin-inline-start:10px}
@media(min-width:840px){#shell:not(.wide-index){grid-template-columns:clamp(64px,6.7vw,90px) clamp(252px,26.6vw,386px) minmax(0,1fr)}#shell nav{gap:14px}#shell nav>button{padding:10px 4px}#aside .thread{padding:11px 10px;min-height:65px}#shell .skillface{width:42px;height:42px;flex:0 0 42px}#shell .skillface svg{width:21px;height:21px}#aside .thread .copy b{font-size:1.04rem}#shell .empty>svg{width:54px;height:54px;color:#c6c5c5;background:transparent;padding:2px}#shell .empty h3{font-size:1.1rem}#shell .empty p{font-size:.96rem}}
@media(max-width:700px){.picker-thinking #input-menu,.picker-permission #input-menu{left:auto;right:0}.picker-permission:first-child #input-menu{left:0;right:auto}#composer-actions{max-width:100%}}
