/* Everything is scoped: importing this chunk never restyles the legacy route. */
.tech-chat {
    --background: #0c1420;
    --foreground: #dce7f2;
    --card: #101c2b;
    --card-foreground: #dce7f2;
    --popover: #142232;
    --popover-foreground: #dce7f2;
    --primary: #72ead5;
    --primary-foreground: #062c26;
    --secondary: #1b2c3d;
    --secondary-foreground: #dce7f2;
    --muted: #172434;
    --muted-foreground: #9aadc1;
    --accent: #183b3b;
    --accent-foreground: #a3f8e9;
    --border: #263749;
    --input: #2d4053;
    --ring: #72ead5;
    --tech-incoming: #263c53;
    --tech-outgoing: #164c55;
    color-scheme: dark;
    display: flex;
    flex: 1;
    min-height: 0;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--foreground);
    background: var(--background);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}
.tech-chat[data-theme='purple'] {
    --primary: #c3adff;
    --primary-foreground: #251342;
    --accent: #302540;
    --accent-foreground: #ddceff;
    --ring: #c3adff;
    --tech-outgoing: #3c315d;
}
.tech-chat[data-theme='light'] {
    --background: #f6f9fd;
    --foreground: #22394f;
    --card: #fff;
    --card-foreground: #22394f;
    --popover: #fff;
    --popover-foreground: #22394f;
    --primary: #087c78;
    --primary-foreground: #fff;
    --secondary: #e7eef6;
    --secondary-foreground: #22394f;
    --muted: #e8eff6;
    --muted-foreground: #526b82;
    --accent: #dcefeb;
    --accent-foreground: #08645f;
    --border: #d5e0ec;
    --input: #bfcfdf;
    --ring: #087c78;
    --tech-incoming: #e7eff7;
    --tech-outgoing: #d5eee9;
    color-scheme: light;
}
.tech-chat .tech-chat__topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--border); background: linear-gradient(110deg, color-mix(in srgb, var(--primary) 5%, var(--background)), var(--background) 70%); }
.tech-chat .tech-chat__brand { display: flex; gap: 13px; align-items: center; }
.tech-chat .tech-chat__mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); border-radius: 13px; box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 7%, transparent); }
.tech-chat .tech-chat__eyebrow { font: 9px/1.5 ui-monospace, monospace; letter-spacing: 2px; color: var(--primary); }
.tech-chat h1 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; margin: 3px 0 0; }
.tech-chat .tech-chat__actions { display: flex; align-items: center; gap: 18px; }
.tech-chat .tech-chat__themes { display: flex; padding: 4px; gap: 3px; background: var(--muted); border: 1px solid var(--border); border-radius: 9px; }
.tech-chat .tech-chat__themes button { display: flex; align-items: center; gap: 7px; padding: 7px 10px; font-size: 11px; border: 1px solid transparent; border-radius: 6px; color: var(--muted-foreground); background: transparent; }
.tech-chat .tech-chat__themes button[aria-pressed='true'] { background: var(--background); color: var(--foreground); border-color: var(--border); box-shadow: 0 2px 5px #0001; }
.tech-chat .tech-chat__themes i { width: 7px; height: 7px; border-radius: 50%; background: #72ead5; }
.tech-chat .tech-chat__themes i[data-swatch='purple'] { background: #c3adff; }
.tech-chat .tech-chat__themes i[data-swatch='light'] { background: #b7cde0; }
.tech-chat .tech-chat__legacy { display: flex; gap: 6px; align-items: center; color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.tech-chat .tech-chat__legacy:hover { color: var(--primary); }
.tech-chat .tech-chat__workspace { display: flex; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
.tech-chat .tech-chat__rail { width: 56px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; padding: 20px 8px; gap: 25px; background: color-mix(in srgb, var(--background) 90%, #000); }
.tech-chat .tech-chat__rail-icon { border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); background: var(--accent); border-radius: 11px; padding: 10px; }
.tech-chat .tech-chat__vertical { writing-mode: vertical-rl; letter-spacing: 4px; font: 9px ui-monospace, monospace; color: var(--muted-foreground); }
.tech-chat .tech-chat__identity { margin-top: auto; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; color: var(--primary); background: var(--muted); }
.tech-chat main { min-width: 0; }
.tech-chat [data-chat-workspace] { grid-template-columns: 460px minmax(0, 1fr); }
.tech-chat [data-chat-workspace] > aside:not(.tech-contact) { display: grid; grid-template-columns: 175px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); background: var(--background); }
.tech-chat [data-chat-groups] { grid-column: 1; grid-row: 2; height: auto !important; border: 0; padding: 18px 10px; background: color-mix(in srgb, var(--muted) 30%, var(--background)); overflow-y: auto; }
.tech-chat [data-chat-groups]::before { content: 'GROUPS'; font: 10px ui-monospace, monospace; letter-spacing: 2px; color: var(--muted-foreground); padding: 0 10px 17px; }
.tech-chat [data-chat-workspace] > aside:not(.tech-contact) > section:not([data-chat-groups]):not([data-chat-list]) { grid-column: 1; grid-row: 1; }
.tech-chat [data-chat-list] { grid-column: 2; grid-row: 1 / 3; border-left: 1px solid var(--border); }
.tech-chat [data-chat-workspace] > aside:not(.tech-contact) > [role='separator'] { display: none; }
.tech-chat [data-chat-groups] button { border-radius: 8px; padding-block: 12px; font-size: 12px; }
.tech-chat [data-chat-list] > div:first-child { padding: 18px 13px; }
.tech-chat [data-chat-list] input { height: 36px; background: color-mix(in srgb, var(--muted) 35%, var(--background)); border-radius: 8px; font-size: 12px; }
.tech-chat [data-chat-workspace] > section { background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--primary) 4%, transparent), transparent 65%); }
.tech-chat [data-chat-workspace] > section > div > footer { padding: 18px 22px; background: color-mix(in srgb, var(--background) 97%, var(--primary)); }
.tech-chat textarea { border-radius: 11px; background: var(--muted); border-color: var(--border); }
.tech-chat [data-chat-workspace] .rounded-bl-md.bg-sky-500 { background: var(--tech-incoming); color: var(--foreground); border: 1px solid var(--border); }
.tech-chat [data-chat-workspace] .rounded-br-md.bg-sky-500 { background: var(--tech-outgoing); color: var(--foreground); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); }
.tech-chat [data-chat-workspace] :is(.rounded-bl-md,.rounded-br-md).bg-sky-500 :is(.text-white\/70,.text-white\/80) { color: var(--muted-foreground); }
.tech-chat .tech-chat__status { display: flex; justify-content: space-between; gap: 12px; padding: 9px 20px; border-top: 1px solid var(--border); font: 9px ui-monospace, monospace; color: var(--muted-foreground); letter-spacing: .5px; }
.tech-chat .tech-chat__status > span:first-child { display: flex; align-items: center; gap: 7px; letter-spacing: 0; }
.tech-chat :is(button, a, input, textarea):focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
@media (max-width: 1200px) {
    .tech-chat [data-chat-workspace] { grid-template-columns: 300px minmax(0, 1fr); }
    .tech-chat [data-chat-workspace] > aside:not(.tech-contact) { display: flex; }
    .tech-chat [data-chat-groups] { height: 185px !important; flex-shrink: 0; }
    .tech-chat [data-chat-groups]::before { display: none; }
    .tech-chat [data-chat-list] { border: 0; }
    .tech-chat .tech-chat__themes button { font-size: 0; padding: 9px; gap: 0; }
}
@media (max-width: 900px) {
    .tech-chat .tech-chat__rail { display: none; }
    .tech-chat .tech-chat__topbar { padding: 14px; gap: 10px; flex-wrap: wrap; }
    .tech-chat .tech-chat__eyebrow { font-size: 8px; letter-spacing: 1px; }
    .tech-chat .tech-chat__actions { gap: 10px; }
    .tech-chat h1 { font-size: 16px; }
    .tech-chat [data-chat-workspace] { grid-template-columns: minmax(0, 1fr); }
    .tech-chat [data-chat-workspace][data-chat-selected='true'] > aside:not(.tech-contact) { display: none; }
    .tech-chat [data-chat-workspace][data-chat-selected='false'] > section { display: none; }
    .tech-chat .tech-chat__status > span:last-child { display: none; }
}

/* Trial: approved independent groups / list / chat / contact layout. */
.tech-chat [data-chat-workspace]{grid-template-columns:485px minmax(0,1fr) 230px;grid-template-rows:minmax(0,1fr)}
.tech-chat [data-chat-workspace]>aside:not(.tech-contact){grid-template-columns:200px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.tech-chat [data-chat-groups]{padding:25px 14px;background:var(--background);overflow:hidden;height:auto!important}
.tech-chat [data-chat-groups]::before{display:none}
.tech-chat .tech-groups-title{flex-shrink:0;padding:0 0 18px}
.tech-chat .tech-groups-title h2{font-size:19px;font-weight:650;margin:0 0 9px}
.tech-chat .tech-groups-title p{font-size:10px;color:var(--muted-foreground);letter-spacing:.6px;margin:0 0 30px}
.tech-chat .tech-groups-title>span,.tech-chat .tech-manual-group-title{display:block;font-size:10px;color:var(--muted-foreground);letter-spacing:2px;padding:0 10px}
.tech-chat .tech-manual-group-title{padding-top:28px;padding-bottom:15px}
.tech-chat [data-chat-groups] button{padding:12px 10px;font-size:12px;min-width:0;width:100%;gap:8px;min-height:41px}
.tech-chat [data-chat-groups] button>span:first-child{display:flex;align-items:center;gap:9px;min-width:0}
.tech-chat [data-chat-groups] button[data-group-system='false']>span:first-child::before{content:'';height:6px;width:6px;border-radius:50%;background:var(--primary);flex-shrink:0;box-shadow:0 0 8px color-mix(in srgb,var(--primary) 25%,transparent)}
.tech-chat [data-chat-groups] button>span:last-child>span{background:none!important;padding:0;color:var(--muted-foreground)!important;font:12px ui-monospace,monospace}
.tech-chat .tech-list-title{padding:25px 18px 10px;display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}
.tech-chat .tech-list-title h2{font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
.tech-chat .tech-list-title>span{border:1px solid var(--border);border-radius:5px;padding:3px 7px;color:var(--primary);font:11px ui-monospace,monospace}
.tech-chat [data-chat-list]>div:nth-child(2){padding:10px 18px 17px}
.tech-chat [data-chat-list] input{height:37px;font-size:12px;background:transparent}
.tech-chat [data-chat-list]>.overflow-y-auto{padding:0}
.tech-chat [data-chat-list]>.overflow-y-auto>div{gap:0}
.tech-chat [data-chat-list]>.overflow-y-auto button{padding:18px;border-radius:0;min-height:75px;border-bottom:1px solid color-mix(in srgb,var(--border) 30%,transparent)}
.tech-chat .tech-contact{border-left:1px solid var(--border);padding:26px 18px;display:block!important;min-height:0;overflow:auto;color:var(--foreground);background:var(--background)}
.tech-chat .tech-contact h3{font-size:13px;font-weight:550;margin:0 0 22px}
.tech-chat .tech-contact__profile{text-align:center;padding:12px 0 25px;border-bottom:1px solid var(--border)}
.tech-chat .tech-contact__avatar{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:var(--muted);color:var(--primary);margin:0 auto 14px;font-size:19px}
.tech-chat .tech-contact h4{font-size:15px;margin:0 0 11px;overflow-wrap:anywhere}
.tech-chat .tech-contact__tags{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}
.tech-chat .tech-contact__tags span{padding:4px 6px;border-radius:4px;font-size:9px;color:var(--primary);background:var(--accent)}
.tech-chat .tech-contact__label{font-size:10px;color:var(--muted-foreground);letter-spacing:1px;margin:26px 0 17px}
.tech-chat .tech-contact dl{font-size:10px;margin:0}
.tech-chat .tech-contact dl>div{display:flex;justify-content:space-between;gap:12px;margin:17px 0}
.tech-chat .tech-contact dt{color:var(--muted-foreground);flex-shrink:0}
.tech-chat .tech-contact dd{margin:0;text-align:right;overflow-wrap:anywhere}
.tech-chat .tech-contact__empty{font-size:12px;color:var(--muted-foreground);line-height:1.8}
.tech-chat .tech-room-panel>.tech-room-header{padding:0;border:0;background:linear-gradient(115deg,color-mix(in srgb,var(--primary) 4%,var(--background)),var(--background) 75%);flex-shrink:0}
.tech-chat .tech-room-header__main{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;min-height:94px}
.tech-chat .tech-room-identity{display:flex;align-items:center;gap:12px;min-width:0}
.tech-chat .tech-room-avatar{display:grid;place-items:center;width:43px;height:43px;border:1px solid color-mix(in srgb,var(--primary) 25%,var(--border));background:color-mix(in srgb,var(--primary) 9%,var(--background));color:var(--primary);border-radius:14px;font-size:17px;flex-shrink:0}
.tech-chat .tech-room-name{min-width:0}
.tech-chat .tech-room-overline{font:8px ui-monospace,monospace;letter-spacing:1.6px;color:var(--muted-foreground);margin-bottom:6px}
.tech-chat .tech-room-name h2{display:flex;gap:9px;align-items:center;font-size:17px;font-weight:550;margin:0;flex-wrap:wrap;overflow-wrap:anywhere}
.tech-chat .tech-device-state{color:var(--muted-foreground);background:var(--muted);font-size:8px;padding:3px 6px;border-radius:4px;font-weight:400}
.tech-chat .tech-device-state[data-online='true']{color:var(--primary);background:var(--accent)}
.tech-chat .tech-room-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.tech-chat .tech-action,.tech-chat .tech-icon{height:33px;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--muted) 40%,transparent);color:var(--foreground);display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:10px;cursor:pointer}
.tech-chat .tech-action{padding:0 10px}
.tech-chat .tech-icon{width:33px;color:var(--muted-foreground)}
.tech-chat .tech-icon:hover,.tech-chat .tech-action:hover{color:var(--primary);border-color:var(--primary)}
.tech-chat .tech-room-actions [data-slot='select-trigger']{height:33px;border-radius:8px}
.tech-chat .tech-room-header>.tech-room-header__status{display:flex;justify-content:space-between;align-items:center;gap:15px;max-width:none!important;padding:14px 26px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--muted) 15%,var(--background));font-size:10px}
.tech-chat .tech-service-state{display:flex;align-items:center;gap:8px;color:var(--primary);white-space:nowrap}
.tech-chat .tech-service-state i{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 8%,transparent)}
.tech-chat .tech-service-state[data-state='connecting']{color:#d9b465}.tech-chat .tech-service-state[data-state='disconnected']{color:#e7889c}
.tech-chat .tech-room-metrics{display:flex;align-items:center;gap:14px;color:var(--muted-foreground);white-space:nowrap}
.tech-chat .tech-room-metrics>span{display:flex;align-items:center;gap:8px}
.tech-chat .tech-room-metrics b{font:500 13px ui-monospace,monospace;color:var(--foreground)}
.tech-chat .tech-room-metrics>i{height:12px;width:1px;background:var(--border)}
.tech-chat .tech-room-metrics b.tech-rate{color:var(--primary)}
.tech-chat .tech-room-more{position:relative}
.tech-chat .tech-room-more summary{list-style:none}
.tech-chat .tech-room-more summary::-webkit-details-marker{display:none}
.tech-chat .tech-room-menu{position:absolute;right:0;top:41px;z-index:40;width:190px;padding:6px;border:1px solid var(--border);background:var(--card);border-radius:10px;box-shadow:0 10px 35px #0005}
.tech-chat .tech-room-menu button{width:100%;display:flex;align-items:center;gap:9px;text-align:left;padding:11px 10px;background:transparent;border:0;border-radius:5px;font-size:11px;color:var(--foreground)}
.tech-chat .tech-room-menu button:hover{background:var(--accent);color:var(--primary)}
.tech-chat .tech-room-menu button:disabled{opacity:.4}
.tech-chat .tech-room-back{display:none}
.tech-chat .tech-room-panel>div[ref],.tech-chat .tech-room-panel>.overflow-y-auto{background-image:radial-gradient(color-mix(in srgb,var(--primary) 4%,transparent) .8px,transparent .8px);background-size:17px 17px;padding:25px 28px 16px}
.tech-chat .tech-message{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:24px;min-width:0}
.tech-chat .tech-message__meta{display:flex;gap:8px;align-items:center;color:var(--muted-foreground);font-size:9px;margin-bottom:9px}
.tech-chat .tech-message__meta strong{font-weight:500;color:var(--foreground)}
.tech-chat .tech-message__meta>span{font:7px ui-monospace,monospace;letter-spacing:1px;opacity:.65}
.tech-chat .tech-message__body{background:var(--muted);border:1px solid var(--border);border-radius:3px 14px 14px 14px;padding:13px 16px;line-height:1.85;font-size:12px;color:var(--foreground);max-width:88%;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 3px 10px #0001}
.tech-chat .tech-message--out{align-items:flex-end}
.tech-chat .tech-message--out .tech-message__meta{flex-direction:row-reverse}
.tech-chat .tech-message--out .tech-message__body{background:linear-gradient(120deg,color-mix(in srgb,var(--primary) 86%,white),color-mix(in srgb,var(--primary) 74%,#b6dce4));border-color:var(--primary);color:#103934;border-radius:14px 3px 14px 14px}
.tech-chat[data-theme='light'] .tech-message--out .tech-message__body{background:var(--primary);color:white}
.tech-chat .tech-message__body[data-service='SMS']{border-color:#5eae80}
.tech-chat .tech-message__foot{display:flex;align-items:center;gap:7px;font:9px ui-monospace,monospace;color:var(--muted-foreground);margin-top:8px;padding:0 2px}
.tech-chat .tech-message--out .tech-message__foot{color:var(--primary)}
.tech-chat .tech-message__foot .text-white\/70{color:inherit}
.tech-chat .tech-message__foot button{display:flex;gap:5px;align-items:center;background:transparent;border:0;font-size:9px;color:var(--muted-foreground)}
.tech-chat .tech-message__translation{border-top:1px solid var(--border);padding-top:10px;margin-top:10px}
.tech-chat .tech-message__image{display:block;background:none;padding:0;border:0}
.tech-chat .tech-message__image img{display:block;max-width:100%;max-height:280px;border-radius:8px;margin-bottom:7px}
.tech-chat .tech-message__pending{display:flex;align-items:center;gap:9px;font-size:10px;min-height:90px}
.tech-chat .tech-room-panel>footer{padding:14px 22px 18px;border:0;background:var(--background)}
.tech-chat .tech-room-panel>footer>div:last-child{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:8px;padding:13px 15px;background:linear-gradient(140deg,color-mix(in srgb,var(--primary) 3%,var(--muted)),var(--muted));border:1px solid color-mix(in srgb,var(--primary) 23%,var(--border));border-radius:15px;box-shadow:0 -5px 30px #0001;align-items:center}
.tech-chat .tech-room-panel>footer>div:last-child::before{content:'人工回复 / REPLY';grid-row:1;grid-column:1/-1;font-size:9px;letter-spacing:1px;color:var(--primary);padding:4px 2px}
.tech-chat .tech-room-panel>footer>div:last-child>textarea{grid-column:1/-1;grid-row:2;min-height:73px;max-height:160px;resize:vertical;background:transparent;border:0;box-shadow:none;padding:12px 0;font-size:12px;line-height:1.8;border-radius:0}
.tech-chat .tech-room-panel>footer>div:last-child>button{grid-row:3;margin:0;max-width:100%}
.tech-chat .tech-room-panel .tech-send-button{grid-column:4;width:auto;padding:0 13px;gap:13px;border-radius:8px;font-size:11px}
.tech-chat .tech-room-panel>footer>div:last-child>button:not(.tech-send-button){background:transparent;color:var(--muted-foreground);border-color:var(--border);font-size:10px}
@media(max-width:1350px){.tech-chat [data-chat-workspace]{grid-template-columns:485px minmax(0,1fr)}.tech-chat .tech-contact{display:none!important}}
@media(max-width:1100px){.tech-chat [data-chat-workspace]{grid-template-columns:420px minmax(0,1fr)}.tech-chat [data-chat-workspace]>aside:not(.tech-contact){display:grid;grid-template-columns:175px minmax(0,1fr)}.tech-chat [data-chat-groups]{height:auto!important}.tech-chat .tech-room-header__main{padding:17px;flex-wrap:wrap;gap:13px}.tech-chat .tech-room-actions{gap:6px}.tech-chat .tech-room-header>.tech-room-header__status{padding:12px 17px;flex-wrap:wrap;gap:10px}.tech-chat .tech-room-metrics{gap:10px;font-size:9px}.tech-chat .tech-room-metrics b{font-size:12px}}
@media(max-width:900px){.tech-chat [data-chat-workspace]{grid-template-columns:minmax(0,1fr)}.tech-chat [data-chat-workspace]>aside:not(.tech-contact){grid-template-columns:155px minmax(0,1fr)}.tech-chat [data-chat-workspace][data-chat-selected='true']>aside:not(.tech-contact){display:none}.tech-chat [data-chat-workspace][data-chat-selected='false']>aside:not(.tech-contact){display:grid}.tech-chat .tech-room-back{display:inline-flex}.tech-chat .tech-room-identity{gap:8px}.tech-chat .tech-room-avatar{width:35px;height:35px;border-radius:11px}.tech-chat .tech-room-name h2{font-size:15px}.tech-chat .tech-room-overline{font-size:7px;letter-spacing:1px}.tech-chat .tech-room-panel>.overflow-y-auto{padding:22px 16px 10px}.tech-chat .tech-message__body{max-width:94%;font-size:12px}.tech-chat .tech-room-panel>footer{padding:10px 13px 14px}.tech-chat .tech-room-panel>footer>div:last-child{padding:11px}.tech-chat .tech-groups-title h2{font-size:16px}.tech-chat [data-chat-groups]{padding:22px 9px}.tech-chat [data-chat-groups] button{font-size:11px}.tech-chat .tech-list-title{padding:22px 13px 10px}.tech-chat .tech-list-title h2{font-size:15px}.tech-chat [data-chat-list]>.overflow-y-auto button{padding:15px 12px}}

.tech-chat [data-chat-groups] button{color:var(--foreground)}
.tech-chat [data-chat-groups] button[class*="bg-accent/"]{background:color-mix(in srgb,var(--primary) 8%,var(--background));color:var(--primary)}
.tech-chat [data-chat-list]>.overflow-y-auto button{color:var(--foreground);border-bottom-color:color-mix(in srgb,var(--border) 30%,transparent)}
.tech-chat [data-chat-list]>.overflow-y-auto button.bg-accent{background:linear-gradient(90deg,color-mix(in srgb,var(--primary) 8%,var(--background)),var(--background));box-shadow:inset 2px 0 var(--primary)}
.tech-chat [data-chat-list]>.overflow-y-auto [data-slot='avatar-fallback']{border-radius:12px;background:var(--muted);color:color-mix(in srgb,var(--primary) 35%,var(--foreground))}
.tech-chat [data-chat-list]>.overflow-y-auto .bg-green-500{background:var(--primary)}

/* 911 cockpit palette; the approved room layout and data semantics are unchanged. */
.tech-chat:is([data-theme='yellow'],[data-theme='green']){--background:#111316;--foreground:#e1e3e7;--card:#171a1f;--card-foreground:#e1e3e7;--popover:#1c2026;--popover-foreground:#e1e3e7;--muted:#1b1f25;--muted-foreground:#9199a5;--border:#2c3139;--input:#343a44;--secondary:#242930;--secondary-foreground:#e1e3e7;--tech-incoming:#1b1f25}
.tech-chat[data-theme='yellow']{--primary:#e6c44b;--primary-foreground:#302b18;--accent:#332f20;--accent-foreground:#ecd57d;--ring:#e6c44b;--tech-outgoing:#655728}
.tech-chat[data-theme='green']{--primary:#9bb997;--primary-foreground:#1a3020;--accent:#25362b;--accent-foreground:#c6dbc1;--ring:#9bb997;--tech-outgoing:#34573d}
.tech-chat .tech-chat__mark{border-radius:50%;font:italic 800 19px sans-serif;letter-spacing:-1.5px;box-shadow:none}
.tech-chat .tech-chat__eyebrow,.tech-chat .tech-room-overline{color:var(--primary);font-style:italic;letter-spacing:2px}
.tech-chat .tech-chat__themes i[data-swatch='yellow']{background:#e6c44b}.tech-chat .tech-chat__themes i[data-swatch='green']{background:#9bb997}.tech-chat .tech-chat__themes i[data-swatch='light']{background:#c5cdd3}
.tech-chat .tech-room-header__main{position:relative;isolation:isolate;background:linear-gradient(120deg,color-mix(in srgb,var(--foreground) 4%,var(--background)),var(--background) 75%)}
.tech-chat .tech-room-identity,.tech-chat .tech-room-actions{position:relative;z-index:1}
.tech-chat .tech-911-car{position:absolute;left:40%;top:4px;width:310px;max-width:34%;height:85px;color:var(--primary);opacity:.2;pointer-events:none;z-index:0}
.tech-chat .tech-room-avatar{border-radius:50%}
.tech-chat .tech-room-metrics b{font-style:italic;letter-spacing:.5px}
.tech-chat .tech-rate::before{content:'';display:inline-block;width:13px;height:8px;border:2px solid var(--primary);border-bottom:0;border-radius:16px 16px 0 0;margin-right:6px;transform:rotate(-18deg);opacity:.7}
.tech-chat .tech-room-panel>.overflow-y-auto{background-image:radial-gradient(color-mix(in srgb,var(--primary) 5%,transparent) .8px,transparent .8px)}
.tech-chat .tech-room-panel>footer>div:last-child{position:relative;box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 2%,transparent),0 -8px 35px #0001}
.tech-chat .tech-room-panel>footer>div:last-child::after{content:'';position:absolute;left:24px;top:-1px;width:55px;height:2px;background:var(--primary);box-shadow:66px 0 0 color-mix(in srgb,var(--primary) 20%,transparent);pointer-events:none}
.tech-chat .tech-room-panel .tech-send-button{font-style:italic;letter-spacing:.3px}
@media(max-width:900px){.tech-chat .tech-911-car{left:auto;right:12px;top:0;max-width:42%;width:170px;opacity:.12}}

/* One settings entry; all existing callbacks and visibility gates are retained. */
.tech-chat .tech-settings-trigger{padding:0 11px;gap:7px;color:var(--primary);font-size:11px;list-style:none}
.tech-chat .tech-room-settings[open]>.tech-settings-trigger{border-color:var(--primary);background:var(--accent)}
.tech-chat .tech-settings-trigger::-webkit-details-marker{display:none}
.tech-chat .tech-settings-menu{width:240px;max-width:calc(100vw - 24px);max-height:min(70svh,520px);overflow-y:auto;padding:8px}
.tech-chat .tech-settings-label{font-size:9px;letter-spacing:1px;color:var(--muted-foreground);padding:6px 10px 7px}
.tech-chat .tech-settings-label--divider{border-top:1px solid var(--border);margin-top:7px;padding-top:12px}
.tech-chat .tech-settings-preference{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:4px 8px 4px 10px;color:var(--foreground);font-size:11px}
.tech-chat .tech-room-settings .tech-settings-preference>button{width:32px;height:32px;display:inline-flex;justify-content:center;align-items:center;padding:0;position:relative;flex-shrink:0;border-radius:6px}
.tech-chat .tech-settings-menu>button{min-height:36px}

.tech-chat [data-chat-workspace]>aside:not(.tech-contact){display:grid;grid-template-columns:190px minmax(0,1fr)}.tech-chat [data-chat-workspace]>aside>[role=separator]{display:none}.tech-chat [data-chat-groups]{height:auto!important;grid-column:1;grid-row:1/4}.tech-chat [data-chat-list]{grid-column:2;grid-row:1/4}.tech-chat [data-chat-workspace]>aside>form,.tech-chat [data-chat-workspace]>aside>div:first-child:not([role=separator]){grid-column:1/-1}.tech-chat[data-theme='light'] [data-chat-groups] span[class*='text-slate-']{color:#536071!important;background:#e9edf2!important}.tech-chat[data-theme='light'] [data-chat-groups] span[class*='text-sky-']{color:#12658a!important;background:#e0f0f7!important}.tech-chat[data-theme='light'] [data-chat-groups] span[class*='text-rose-']{color:#a72949!important;background:#f9e5eb!important}.tech-chat[data-theme='light'] [data-chat-groups] button[class~='bg-accent/90']{background:#e3e9ee!important;color:#354455!important}.tech-chat[data-theme='light'] .tech-settings-preference button{color:var(--foreground)!important}.tech-chat[data-theme='light'] [data-chat-list] button{color:var(--foreground)}.tech-chat[data-theme='light'] [data-chat-list] button.bg-accent{background:#e4ebf0!important;color:var(--foreground)!important}.tech-chat[data-theme='light'] [data-chat-list] button span.truncate{color:var(--foreground)!important}.tech-chat[data-theme='light'] [data-chat-list] button span.text-muted-foreground{color:var(--muted-foreground)!important}.tech-chat .tech-room-panel>footer>div:last-child>button:last-child{grid-column:4;background:var(--primary);color:var(--primary-foreground);font-style:italic}

.tech-login{--background:#141619;--foreground:#edf0f2;--card:#191c20;--card-foreground:#edf0f2;--primary:#e8c64a;--primary-foreground:#161616;--muted:#24282d;--muted-foreground:#92999f;--border:#34383d;--input:#34383d;--ring:#e8c64a;min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 23% 37%,#25251d 0,transparent 48%),#111315;color:var(--foreground);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;position:relative;isolation:isolate}.tech-login:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.15;background-image:linear-gradient(#7e817f22 1px,transparent 1px),linear-gradient(90deg,#7e817f22 1px,transparent 1px);background-size:64px 64px;mask-image:linear-gradient(to right,#000,transparent 65%)}.tech-login__nav{display:flex;align-items:center;justify-content:space-between;padding:32px 5vw;border-bottom:1px solid #ffffff0b}.tech-login__brand{display:flex;align-items:center;gap:14px;color:#edf0f2;text-decoration:none}.tech-login__brand>b{font-size:34px;font-weight:850;font-style:italic;letter-spacing:-3px;color:#e8c64a;border-right:1px solid #484637;padding-right:20px}.tech-login__brand>span{font-weight:650;font-size:15px;letter-spacing:3px}.tech-login__brand-sub{display:block;font:8px monospace;letter-spacing:2px;color:#858b8f;margin-top:6px}.tech-login__edition{font:10px monospace;letter-spacing:2px;color:#92999f}.tech-login__body{width:100%;max-width:1560px;margin:auto;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(360px,.8fr);gap:5vw;padding:60px 6vw;align-items:center;flex:1}.tech-login__eyebrow{font:10px monospace;letter-spacing:2px;color:#c9b96e;display:flex;align-items:center;gap:10px}.tech-login__eyebrow i{width:5px;height:5px;background:#e8c64a;border-radius:50%;box-shadow:0 0 12px #e8c64a77}.tech-login__hero h1{font-size:clamp(40px,4.5vw,72px);font-weight:650;line-height:1.25;letter-spacing:-2px;margin:24px 0 20px}.tech-login__hero h1>span{color:#e8c64a}.tech-login__hero>p{font-size:14px;color:#92999f;letter-spacing:2px}.tech-login__art{position:relative;height:230px;margin-top:20px;display:flex;align-items:flex-end}.tech-login__ghost{position:absolute;inset:-32px 0 auto;font-size:190px;font-weight:850;font-style:italic;line-height:1;color:transparent;-webkit-text-stroke:1px #ffffff0c;letter-spacing:-15px;pointer-events:none}.tech-login__car{position:relative;width:100%;height:auto;color:#d0b349;filter:drop-shadow(0 9px 17px #d8b63f20);z-index:1}.tech-login__road{position:absolute;height:1px;bottom:2px;left:0;right:0;background:linear-gradient(to right,transparent,#8a793e,transparent)}.tech-login__features{display:flex;gap:32px;margin-top:28px;color:#a8adb0;font-size:11px;letter-spacing:1px}.tech-login__features b{font:10px monospace;color:#d2b94c;margin-right:8px}.tech-login__access{width:100%;max-width:420px;justify-self:end;position:relative}.tech-login__access-label{display:flex;align-items:center;gap:12px;font:10px monospace;letter-spacing:2px;color:#d2b94c;margin-bottom:18px}.tech-login__access-label i{height:1px;background:#d2b94c44;flex:1}.tech-login__access [data-slot=card]{background:linear-gradient(145deg,#22262a,#191c20);border:1px solid #393c3d;box-shadow:0 24px 80px #0005;border-radius:16px;padding-block:30px}.tech-login__access [data-slot=card-header],.tech-login__access [data-slot=card-content]{padding-inline:30px}.tech-login__access [data-slot=card-title]{font-size:25px;font-weight:600;color:#edf0f2}.tech-login__access [data-slot=card-description]{color:#92999f;font-size:12px;line-height:1.8;margin-top:6px}.tech-login__access form{gap:20px}.tech-login__access label{font-size:12px;color:#c2c6c9}.tech-login__access input{height:46px;background:#101214;border-color:#383c40;border-radius:8px;color:#edf0f2;box-shadow:none}.tech-login__access input:focus-visible{border-color:#e8c64a;outline-color:#e8c64a}.tech-login__access button[class*=bg-primary]{min-height:46px;background:#e8c64a;color:#1b1b17;border-radius:8px;font-size:14px;font-weight:650;box-shadow:0 6px 20px #e8c64a15}.tech-login__access button[class*=bg-primary]:hover{background:#f1d367}.tech-login__access button[class*=bg-primary]:disabled{opacity:.5}.tech-login__footer{padding:22px 5vw;display:flex;justify-content:space-between;border-top:1px solid #ffffff0b;color:#70787d;font:10px monospace;letter-spacing:1px}.tech-login__footer a{color:#a4aaad;text-decoration:none}.tech-login__footer a:hover{color:#e8c64a}@media(max-width:900px){.tech-login__body{gap:30px;padding:40px 5vw;grid-template-columns:minmax(0,1fr) minmax(330px,1fr)}.tech-login__hero h1{font-size:42px}.tech-login__art{height:180px}.tech-login__ghost{font-size:150px}.tech-login__features{gap:14px;letter-spacing:0}}@media(max-width:680px){.tech-login__nav{padding:22px 24px}.tech-login__edition{font-size:8px}.tech-login__body{display:flex;flex-direction:column;gap:32px;padding:35px 24px}.tech-login__hero{width:100%;max-width:420px}.tech-login__eyebrow{font-size:8px;letter-spacing:1px}.tech-login__hero h1{font-size:35px;margin:18px 0 10px}.tech-login__hero h1 br{display:none}.tech-login__hero>p{font-size:11px;letter-spacing:1px}.tech-login__art{height:105px;margin-top:15px;max-width:350px}.tech-login__ghost{font-size:100px;inset:-14px 0 auto}.tech-login__features{display:none}.tech-login__access{max-width:420px;justify-self:initial}.tech-login__access [data-slot=card]{padding-block:26px}.tech-login__access [data-slot=card-header],.tech-login__access [data-slot=card-content]{padding-inline:24px}.tech-login__footer{font-size:9px;padding:20px 24px}}@media(prefers-reduced-motion:reduce){.tech-login *{animation:none!important;transition:none!important}}
.tech-chat .tech-followup-disclosure{border-bottom:1px solid var(--border);flex-shrink:0}.tech-followup-disclosure__heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;font-size:11px;font-weight:550;color:var(--foreground)}.tech-followup-disclosure__heading>span{min-width:0;line-height:1.6}.tech-followup-disclosure__heading small{display:block;color:var(--primary);font-size:9px;font-weight:400}.tech-followup-disclosure__toggle{display:flex;align-items:center;width:30px;height:18px;flex-shrink:0;border:1px solid var(--border);background:var(--muted);border-radius:999px;padding:2px;cursor:pointer}.tech-followup-disclosure__toggle>span{width:12px;height:12px;border-radius:50%;background:var(--muted-foreground);transition:transform .15s}.tech-followup-disclosure__toggle[aria-checked=true]{background:var(--primary);border-color:var(--primary)}.tech-followup-disclosure__toggle[aria-checked=true]>span{background:var(--primary-foreground);transform:translateX(12px)}.tech-followup-disclosure__toggle:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.tech-followup-disclosure__body>section{border-bottom:0}.tech-room-empty .tech-room-header{flex-shrink:0;width:100%}@media(prefers-reduced-motion:reduce){.tech-followup-disclosure__toggle>span{transition:none}}.tech-chat .tech-followup-disclosure .tech-followup-disclosure__toggle{width:30px;min-width:30px;height:18px;min-height:18px;padding:2px;gap:0;border-radius:999px}.tech-chat .tech-followup-disclosure .tech-followup-disclosure__toggle>span:first-child{display:block;min-width:12px;width:12px;height:12px;flex-shrink:0;margin:0;padding:0}.tech-chat .tech-followup-disclosure .tech-followup-disclosure__toggle[aria-checked=true]{background:var(--primary);border-color:var(--primary)}
