:root{--blue:#2f6df6;--blue2:#5f8cff;--violet:#7c3aed;--text:#0f172a;--muted:#71809d;--line:#e5eaf2;--soft:#f7f9fc;--green:#10b981;--panel:#fff;--shadow:0 10px 30px rgba(15,23,42,.07)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;overscroll-behavior:none;background:#fff;color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,textarea,input{font:inherit}.hidden{display:none!important}.app-shell{position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;min-height:0;display:grid;grid-template-columns:300px minmax(0,1fr) 310px;background:#fff;overflow:hidden}.sidebar{background:#fff}.left-sidebar{border-right:1px solid var(--line);padding:20px 17px 14px;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden;overscroll-behavior:contain}.right-sidebar{border-left:1px solid var(--line);padding:52px 16px 18px;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.brand-row{display:flex;align-items:center;gap:10px;padding:0 4px 15px}.brand-logo{width:49px;height:37px;object-fit:contain}.brand-copy{display:flex;min-width:0;flex:1;flex-direction:column}.brand-copy strong{font-size:22px;letter-spacing:-.03em}.brand-copy span{font-size:12px;color:#60708d;margin-top:1px}.new-chat{height:47px;border:0;border-radius:12px;background:linear-gradient(135deg,#326dff,#315ff0);color:#fff;display:flex;align-items:center;gap:10px;width:100%;padding:0 14px;font-weight:700;box-shadow:0 7px 18px rgba(47,109,246,.23);cursor:pointer}.new-chat .plus{font-size:25px;font-weight:300}.new-chat kbd{margin-left:auto;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);border-radius:7px;padding:4px 7px;font-size:12px}.main-nav{display:flex;flex-direction:column;gap:3px;margin:17px 0 18px}.nav-item{border:0;background:transparent;color:#293750;height:43px;border-radius:10px;padding:0 13px;display:flex;align-items:center;gap:13px;font-weight:560;cursor:pointer;text-align:left}.nav-item span{font-size:22px;width:22px;text-align:center;color:#3d4c69}.nav-item:hover{background:#f6f8fb}.nav-item.active{background:#edf3ff;color:#1762ee;font-weight:700}.nav-item.active span{color:#1762ee}.history-head{border-top:1px solid var(--line);padding:19px 7px 10px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.history-head button{border:0;background:transparent;color:#8290a9;font-size:11px;cursor:pointer}.history-list{min-height:0;overflow:auto;flex:1}.history-item{padding:9px 8px;border-radius:9px;display:grid;grid-template-columns:20px minmax(0,1fr) 26px;gap:8px;align-items:center;cursor:pointer}.history-item:hover{background:#f7f9fc}.history-item.active{background:#f0f5ff}.history-bubble{color:#596b8b}.history-copy{min-width:0}.history-title{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-time{display:block;font-size:10px;color:#93a0b4;margin-top:3px}.history-delete{width:25px;height:25px;border:0;border-radius:7px;background:transparent;color:#9aa6b8;font-size:18px;line-height:1;cursor:pointer;opacity:0;transition:.15s ease}.history-item:hover .history-delete,.history-item.active .history-delete{opacity:1}.history-delete:hover{background:#feecec;color:#cf3131}@media(max-width:820px){.history-delete{opacity:1}}.empty-history{padding:18px 9px;color:#9aa5b6;font-size:12px}.profile-row{border-top:1px solid var(--line);padding:13px 4px 0;display:flex;align-items:center;gap:10px}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#315ff0,#5a7dff);color:#fff;font-weight:700;box-shadow:0 5px 14px rgba(49,95,240,.18)}.avatar.small{width:42px;height:42px}.profile-text{display:flex;flex-direction:column;min-width:0;flex:1}.profile-text strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-text span{font-size:10px;color:#8290a9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-btn{border:0;background:transparent;width:36px;height:36px;border-radius:10px;cursor:pointer;color:#23334e;font-size:20px}.icon-btn:hover{background:#f3f5f8}.main-column{min-width:0;min-height:0;height:100%;max-height:100dvh;overflow:hidden;display:flex;flex-direction:column;position:relative;background:#fff;container-type:inline-size}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:0;flex:none}.topbar-left{display:flex;align-items:center;gap:9px}.workspace-title{font-size:18px;font-weight:720;letter-spacing:-.02em}.workspace-title span{font-size:14px}.workspace-sub{font-size:12px;color:#74819b;margin-top:4px}.workspace-sub b{margin:0 6px}.top-actions{display:flex;align-items:center;gap:8px}.content-scroll{flex:1;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 24px var(--composer-space,144px);scroll-padding-bottom:var(--composer-space,144px)}.welcome-panel{max-width:960px;margin:58px auto 0;text-align:center}.hero-logo{width:144px;height:108px}.welcome-panel h1{font-size:43px;letter-spacing:-.045em;margin:6px 0 3px}.wave{font-size:37px}.welcome-panel>p{font-size:18px;color:#7a88a4;margin:0}.accent-line{height:4px;width:58px;border-radius:99px;background:linear-gradient(90deg,#1584ff,#8b3dff);margin:23px auto 34px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;text-align:left}.quick-card{min-height:184px;background:#fff;border:1px solid #dfe5ee;border-radius:14px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;cursor:pointer;transition:.18s ease}.quick-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#cfd8e7}.quick-icon{width:55px;height:55px;border-radius:12px;display:grid;place-items:center;font-size:27px;font-weight:800;margin-bottom:17px}.quick-icon.blue{background:#edf4ff;color:#1675f5}.quick-icon.violet{background:#f4edff;color:#7c3aed}.quick-icon.amber{background:#fff5e7;color:#f59e0b}.quick-icon.cyan{background:#eaf4ff;color:#147cf0}.quick-card strong{font-size:17px;letter-spacing:-.02em}.quick-card small{font-size:12px;line-height:1.45;color:#74819b;margin-top:9px}.suggestions-title{text-align:left;font-size:17px;font-weight:730;margin:33px 0 10px}.suggestions-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.suggestions-row button{height:66px;border:1px solid #dfe5ee;background:#fff;border-radius:11px;padding:0 12px;display:flex;align-items:center;gap:9px;color:#1f6cf4;font-size:18px;cursor:pointer;text-align:left}.suggestions-row button span{font-size:10px;color:#36445d;flex:1;line-height:1.35}.suggestions-row button:hover{background:#fafcff}.composer-wrap{position:absolute;z-index:30;left:24px;right:24px;bottom:0;padding:14px 0 max(14px,env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(255,255,255,0),#fff 18%,#fff)}.composer{max-width:960px;margin:0 auto;min-height:72px;height:auto;max-height:168px;border:1px solid #cfd8e6;border-radius:36px;background:#fff;display:flex;align-items:flex-end;padding:7px 9px 7px 12px;box-shadow:0 8px 24px rgba(15,23,42,.045)}.composer:focus-within{border-color:#aebfe0;box-shadow:0 0 0 3px rgba(47,109,246,.055)}.composer textarea{border:0;outline:0;resize:none;min-height:25px;max-height:136px;overflow-y:auto;flex:1;padding:10px 8px;color:#17233b;line-height:1.4;background:transparent;font-size:14px;overflow-wrap:anywhere}.composer textarea::placeholder{color:#91a0b9}.composer-icon,.composer-tool,.send-btn{border:0;cursor:pointer;flex:none}.composer-icon{width:43px;height:43px;border-radius:50%;background:#f4f6f8;color:#34435b;font-size:24px}.composer-tool{height:42px;border-radius:21px;padding:0 13px;background:#fff;color:#31405a;display:flex;align-items:center;gap:6px}.composer-tool:hover,.composer-icon:hover{background:#eef2f6}.send-btn{width:47px;height:47px;border-radius:50%;background:linear-gradient(135deg,#77a4ff,#3e7af7);color:#fff;font-size:26px;margin-left:3px}.send-btn:disabled{background:#d8dfeb;cursor:not-allowed}.disclaimer{text-align:center;color:#99a4b6;font-size:10px;margin-top:9px}.status-card,.quote-card{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:18px;margin-bottom:14px}.card-heading{display:flex;align-items:flex-start;gap:11px}.card-heading>span{font-size:24px}.card-heading>strong,.card-heading div strong{font-size:15px}.card-heading div{display:flex;flex-direction:column}.card-heading small{font-size:11px;color:#12a875;margin-top:4px}.card-heading small i{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;margin-right:7px}.service-list,.model-list{margin-top:15px;display:flex;flex-direction:column;gap:12px}.service-row,.model-row{display:grid;grid-template-columns:38px 1fr 10px;align-items:center;gap:10px}.service-icon,.model-icon{width:38px;height:38px;border-radius:9px;display:grid;place-items:center;color:#fff;font-weight:800;background:linear-gradient(135deg,#1679ff,#3c6cf8)}.service-icon.dark{background:#111827}.service-icon.violet{background:linear-gradient(135deg,#6d5dfc,#9348f8)}.service-copy,.model-copy{min-width:0}.service-copy strong,.model-copy strong{font-size:12px;display:block}.service-copy span,.model-copy span{display:block;color:#7d8ba4;font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-dot{width:8px;height:8px;border-radius:50%;background:#d1d5db}.status-dot.ok{background:var(--green)}.status-dot.error{background:#ef4444}.model-icon{border-radius:50%;font-size:12px}.model-icon.purple{background:#7847f5}.model-icon.orange{background:#f26b3a}.model-icon.blue{background:#1588ef}.model-icon.green{background:#10b981}.model-icon.black{background:#111827}.quote-card{text-align:left;padding:17px 19px 21px}.quote-mark{font-size:43px;line-height:.8;color:#4d80f5}.quote-card strong{display:block;font-size:17px;line-height:1.35;margin:8px 0 14px}.quote-card small{color:#7d8ba4;font-size:11px}.skeleton-line{height:38px;border-radius:8px;background:linear-gradient(90deg,#f3f5f7,#fafafa,#f3f5f7);background-size:200% 100%;animation:pulse 1.4s linear infinite}@keyframes pulse{to{background-position:-200% 0}}.chat-view{max-width:860px;margin:0 auto;padding-top:20px}.messages{display:flex;flex-direction:column;gap:24px}.message{display:flex;gap:12px;max-width:100%}.message.user{justify-content:flex-end}.message .bubble{max-width:min(760px,88%);font-size:14px;line-height:1.65}.message.user .bubble{background:#f2f4f7;border-radius:19px;padding:11px 16px;overflow-wrap:anywhere;word-break:break-word}.message.assistant .bubble{padding:2px 4px;overflow-wrap:anywhere;word-break:break-word}.assistant-mark{width:29px;height:29px;object-fit:contain;flex:none;margin-top:1px}.route-badge{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#71809d;background:#f4f6f8;border-radius:99px;padding:3px 6px;margin-bottom:6px;display:inline-block}.bubble pre{overflow:auto;background:#111827;color:#e5e7eb;padding:13px;border-radius:10px}.bubble code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.bubble p{margin:.25em 0 1em}.bubble strong{font-weight:750}.placeholder-view{height:100%;display:grid;place-items:center}.placeholder-card{width:min(480px,90%);text-align:center;border:1px solid var(--line);border-radius:16px;padding:42px;background:#fff}.placeholder-icon{font-size:40px;color:var(--blue)}.placeholder-card h2{margin:10px 0 5px}.placeholder-card p{color:#7d8ba4}.secondary-btn,.primary-btn{border:0;border-radius:11px;height:44px;padding:0 18px;cursor:pointer}.secondary-btn{background:#eef3fb;color:#1f5fd8}.primary-btn{width:100%;background:var(--blue);color:#fff;font-weight:700}.toast{position:fixed;z-index:100;left:50%;bottom:110px;transform:translateX(-50%);background:#111827;color:#fff;padding:10px 14px;border-radius:9px;font-size:12px;box-shadow:var(--shadow)}.login-view{position:fixed;inset:0;overflow:auto;min-height:100dvh;display:grid;place-items:center;background:#fff;padding:20px}.login-card{width:min(390px,100%);border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:var(--shadow);text-align:center}.login-logo{width:90px;height:68px}.login-card h1{font-size:27px;margin:4px 0}.login-card>p{color:#7d8ba4;font-size:13px;margin:0 0 25px}.login-card form{display:flex;flex-direction:column;gap:14px;text-align:left}.login-card label{font-size:12px;font-weight:650;color:#42516b}.login-card input{display:block;width:100%;height:45px;margin-top:6px;border:1px solid #d6dde8;border-radius:10px;padding:0 12px;outline:0}.login-card input:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.08)}.login-error{min-height:15px;color:#dc2626;font-size:11px}.mobile-only{display:none}.overlay{position:fixed;inset:0;background:rgba(15,23,42,.24);z-index:40}
@media(max-width:1180px){.app-shell{grid-template-columns:270px minmax(0,1fr)}.right-sidebar{position:fixed;z-index:60;right:0;top:0;bottom:0;width:310px;transform:translateX(105%);transition:.2s ease;box-shadow:-15px 0 40px rgba(15,23,42,.12);padding-top:18px}.right-sidebar.open{transform:translateX(0)}.right-mobile-head{display:flex!important;justify-content:space-between;align-items:center;margin-bottom:10px}.quick-grid{grid-template-columns:repeat(2,1fr)}.suggestions-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.mobile-only{display:block}.app-shell{display:block}.left-sidebar{position:fixed;z-index:60;left:0;top:0;bottom:0;width:min(86vw,310px);transform:translateX(-105%);transition:.2s ease;box-shadow:15px 0 40px rgba(15,23,42,.12)}.left-sidebar.open{transform:translateX(0)}.main-column{height:100dvh}.topbar{height:64px;padding:0 12px}.content-scroll{padding:0 12px 128px}.welcome-panel{margin-top:27px}.hero-logo{width:105px;height:78px}.welcome-panel h1{font-size:31px}.welcome-panel>p{font-size:14px}.accent-line{margin:17px auto 22px}.quick-grid{grid-template-columns:1fr 1fr;gap:9px}.quick-card{min-height:148px;padding:13px}.quick-icon{width:42px;height:42px;font-size:21px;margin-bottom:12px}.quick-card strong{font-size:14px}.quick-card small{font-size:10px}.suggestions-row{grid-template-columns:1fr 1fr}.composer-wrap{left:7px;right:7px}.composer{height:auto;min-height:60px;padding:6px 6px 6px 8px}.composer textarea{font-size:16px}.composer-tool span{display:none}.composer-tool{padding:0 9px}.disclaimer{font-size:9px}.chat-view{padding-top:8px}.message .bubble{max-width:92%}.workspace-sub{font-size:10px}.top-actions{gap:2px}.avatar.small{width:36px;height:36px}.right-sidebar{width:min(88vw,330px)}}
@media(max-width:520px){.quick-grid{grid-template-columns:1fr}.quick-card{min-height:126px}.suggestions-row{grid-template-columns:1fr}.welcome-panel{margin-top:18px}.hero-logo{width:86px;height:64px}.welcome-panel h1{font-size:27px}.suggestions-title{margin-top:23px}.composer-tool{display:none}.composer-icon{width:39px;height:39px}.send-btn{width:42px;height:42px}.content-scroll{padding-bottom:120px}}

/* Desktop low-height protection: keep composer visible and home usable. */
@media (min-width:821px) and (max-height:900px){
  .topbar{height:64px}
  .content-scroll{padding-bottom:112px}
  .welcome-panel{margin-top:18px}
  .hero-logo{width:96px;height:72px}
  .welcome-panel h1{font-size:34px;margin-top:2px}
  .wave{font-size:30px}
  .welcome-panel>p{font-size:14px}
  .accent-line{margin:12px auto 18px}
  .quick-card{min-height:142px;padding:14px}
  .quick-icon{width:42px;height:42px;font-size:22px;margin-bottom:11px}
  .quick-card strong{font-size:15px}
  .quick-card small{font-size:11px;margin-top:6px}
  .suggestions-title{margin:17px 0 8px;font-size:15px}
  .suggestions-row button{height:54px}
  .composer-wrap{padding-top:8px}
  .composer{height:62px}
}

/* Phase 2.1.2 — model picker, collapsible sidebars, rich markdown */
.workspace-switcher{position:relative;min-width:0}.workspace-selector{border:0;background:transparent;padding:3px 5px;margin:-3px -5px;border-radius:9px;text-align:left;cursor:pointer;max-width:min(470px,48vw)}.workspace-selector:hover{background:#f5f7fa}.workspace-title{display:flex;align-items:center;gap:5px;min-width:0}.workspace-title #currentWorkspaceName{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:410px}.workspace-title .chevron{flex:none}.model-menu{position:absolute;z-index:90;top:52px;left:0;width:365px;max-height:min(570px,calc(100dvh - 96px));overflow:auto;background:#fff;border:1px solid #dfe5ee;border-radius:15px;padding:8px;box-shadow:0 18px 50px rgba(15,23,42,.14)}.model-choice{width:100%;border:0;background:#fff;border-radius:11px;padding:9px 10px;display:grid;grid-template-columns:40px minmax(0,1fr) 20px;gap:10px;align-items:center;text-align:left;cursor:pointer}.model-choice:hover{background:#f6f8fc}.model-choice.selected{background:#eef4ff}.choice-badge{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-size:12px;font-weight:800}.choice-badge.agent{border-radius:10px;background:linear-gradient(135deg,#2f6df6,#7546f5)}.choice-badge.purple{background:#7847f5}.choice-badge.orange{background:#f26b3a}.choice-badge.blue{background:#1588ef}.choice-badge.green{background:#10b981}.choice-badge.black{background:#111827}.model-choice>span:nth-child(2){min-width:0;display:flex;flex-direction:column}.model-choice strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-choice small{font-size:10px;color:#7d8ba4;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-choice i{font-style:normal;color:#2563eb;font-weight:800}.model-menu-separator{padding:9px 8px 5px;color:#8a97ad;font-size:10px;text-transform:uppercase;letter-spacing:.07em;border-top:1px solid #eef1f5;margin-top:5px}.model-row{cursor:pointer;border-radius:10px;padding:4px}.model-row:hover{background:#f6f8fc}.model-row.selected{background:#eef4ff}.model-row.selected .model-copy strong{color:#1d5fe9}

.app-shell{transition:grid-template-columns .18s ease}.app-shell.left-collapsed{grid-template-columns:0 minmax(0,1fr) 310px}.app-shell.right-collapsed{grid-template-columns:300px minmax(0,1fr) 0}.app-shell.left-collapsed.right-collapsed{grid-template-columns:0 minmax(0,1fr) 0}.app-shell.left-collapsed .left-sidebar,.app-shell.right-collapsed .right-sidebar{opacity:0;visibility:hidden;pointer-events:none;padding-left:0;padding-right:0;border:0;overflow:hidden}.left-sidebar,.right-sidebar{transition:opacity .15s ease}

.message.assistant .bubble{min-width:0;width:100%;max-width:100%}.message.assistant{max-width:100%}.bubble h1,.bubble h2,.bubble h3,.bubble h4{letter-spacing:-.02em;line-height:1.3;margin:1.15em 0 .5em}.bubble h1{font-size:1.5em}.bubble h2{font-size:1.32em}.bubble h3{font-size:1.16em}.bubble h4{font-size:1.05em}.bubble ul,.bubble ol{margin:.6em 0 1em;padding-left:1.55em}.bubble li{margin:.28em 0}.bubble blockquote{margin:.9em 0;padding:.2em 0 .2em 14px;border-left:3px solid #d4dbe6;color:#53617a}.bubble hr{border:0;border-top:1px solid #e2e7ee;margin:1.3em 0}.bubble a{color:#1769e8;text-decoration:none}.bubble a:hover{text-decoration:underline}.bubble>div>code,.bubble p code,.bubble li code{background:#f1f3f5;border-radius:5px;padding:2px 5px;font-size:.9em}.table-wrap{width:100%;max-width:100%;overflow-x:auto;margin:14px 0 18px;border:1px solid #dfe5ec;border-radius:10px;background:#fff;-webkit-overflow-scrolling:touch}.bubble table{width:100%;min-width:520px;border-collapse:collapse;font-size:13px;line-height:1.45}.bubble th,.bubble td{padding:10px 12px;border-bottom:1px solid #e7ebf0;border-right:1px solid #eef1f4;text-align:left;vertical-align:top}.bubble th:last-child,.bubble td:last-child{border-right:0}.bubble tr:last-child td{border-bottom:0}.bubble th{background:#f7f8fa;color:#202b3d;font-weight:700}.bubble tbody tr:hover{background:#fafbfc}.bubble pre{position:relative;margin:14px 0 18px;max-width:100%;white-space:pre;overflow:auto}.bubble pre[data-lang]::before{content:attr(data-lang);display:block;color:#9ca3af;font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}

@media(min-width:821px) and (max-width:1180px){.app-shell.left-collapsed{grid-template-columns:0 minmax(0,1fr)}.app-shell.left-collapsed .left-sidebar{opacity:0;visibility:hidden;pointer-events:none}.app-shell.right-collapsed{grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:820px){.workspace-selector{max-width:56vw}.workspace-title #currentWorkspaceName{max-width:46vw}.model-menu{position:fixed;top:62px;left:10px;right:10px;width:auto;max-height:calc(100dvh - 78px)}.app-shell.left-collapsed,.app-shell.right-collapsed,.app-shell.left-collapsed.right-collapsed{display:block}.app-shell.left-collapsed .left-sidebar,.app-shell.right-collapsed .right-sidebar{opacity:1;visibility:visible;pointer-events:auto}.bubble table{min-width:460px}.message.assistant .bubble{font-size:13.5px}}

/* Phase 2.2 - Tool Permission & Audit */
.tools-view{max-width:1040px;margin:0 auto;padding:18px 0 28px}.tools-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.tools-head h2{font-size:24px;letter-spacing:-.03em;margin:0 0 6px}.tools-head p{margin:0;color:#71809a;font-size:13px;line-height:1.55;max-width:760px}.policy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.policy-card{border:1px solid #dfe5ee;border-radius:14px;padding:15px;background:#fff;min-height:145px}.policy-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.policy-card-top strong{font-size:12px;letter-spacing:.04em}.policy-card-top span{font-size:10px;color:#7d8ba4}.policy-card p{font-size:11px;line-height:1.5;color:#586780;margin:14px 0}.policy-card small{font-size:10px;color:#8290a9}.policy-card.read{border-top:3px solid #3b82f6}.policy-card.safe-write{border-top:3px solid #10b981}.policy-card.dangerous{border-top:3px solid #f59e0b}.policy-card.forbidden{border-top:3px solid #ef4444}.policy-simulator,.audit-panel{border:1px solid #dfe5ee;border-radius:14px;padding:17px;background:#fff;margin-top:14px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-title>div{display:flex;flex-direction:column;gap:3px}.section-title strong{font-size:15px}.section-title span{font-size:10px;color:#8290a9}.policy-form{display:grid;grid-template-columns:1fr 1.2fr 1.4fr auto;gap:10px;align-items:end}.policy-form label{font-size:10px;font-weight:700;color:#52617a}.policy-form input{display:block;width:100%;height:40px;border:1px solid #d7deea;border-radius:9px;margin-top:5px;padding:0 10px;outline:0}.policy-form input:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.policy-check-btn{width:auto;min-width:135px;height:40px}.policy-result{margin-top:13px;padding:12px 13px;border-radius:10px;background:#f8fafc;border:1px solid #e7ebf1;font-size:11px}.policy-result>div{display:flex;align-items:center;gap:9px}.policy-result p{margin:8px 0;color:#586780}.policy-result small{display:block;color:#77859e;margin-top:5px}.policy-result code{font-size:10px;background:#eef2f7;padding:2px 5px;border-radius:5px}.audit-table-wrap{width:100%;overflow:auto;border:1px solid #e5e9ef;border-radius:10px}.audit-table{width:100%;min-width:820px;border-collapse:collapse;font-size:11px}.audit-table th,.audit-table td{padding:10px 11px;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:middle}.audit-table th{font-size:10px;color:#65738b;background:#f8f9fb}.audit-table td:nth-child(3) strong,.audit-table td:nth-child(3) span{display:block}.audit-table td:nth-child(3) span{font-size:10px;color:#7d8ba4;margin-top:2px}.audit-pill,.decision-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:750;white-space:nowrap}.audit-pill.read{background:#eaf2ff;color:#1766d8}.audit-pill.safe-write{background:#e8fbf4;color:#07845d}.audit-pill.dangerous{background:#fff5df;color:#b56d00}.audit-pill.forbidden{background:#feecec;color:#c72f2f}.decision-pill.allow{background:#e8fbf4;color:#07845d}.decision-pill.approval_required{background:#fff5df;color:#a86200}.decision-pill.deny{background:#feecec;color:#c72f2f}
@media(max-width:980px){.policy-grid{grid-template-columns:1fr 1fr}.policy-form{grid-template-columns:1fr 1fr}.policy-check-btn{width:100%}}
@media(max-width:620px){.tools-view{padding-top:8px}.tools-head{flex-direction:column}.policy-grid{grid-template-columns:1fr}.policy-form{grid-template-columns:1fr}.policy-simulator,.audit-panel{padding:13px}.tools-head h2{font-size:21px}}

/* Phase 2.3 DevOps Action Agent */
.agents-view{max-width:1040px;margin:0 auto;padding:22px 0 90px}.agents-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.agents-head h2{font-size:24px;letter-spacing:-.03em;margin:0 0 6px}.agents-head p{margin:0;color:#74819b;font-size:13px;line-height:1.5}.readonly-badge{display:inline-flex;align-items:center;height:30px;padding:0 10px;border-radius:99px;background:#ecfdf5;color:#087a55;border:1px solid #c9f3e2;font-size:10px;font-weight:800;letter-spacing:.06em}.devops-cap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px;position:relative}.devops-cap-card{position:relative;min-height:118px;border:1px solid #dfe5ee;border-radius:13px;background:#fff;padding:16px}.devops-cap-card>div{display:flex;flex-direction:column;gap:4px}.devops-cap-card strong{font-size:14px}.devops-cap-card span{font-size:11px;color:#70809c}.devops-cap-card small{display:block;margin-top:14px;color:#8a97ac;font-size:9px;line-height:1.45}.devops-cap-card>i{position:absolute;right:15px;top:18px;width:9px;height:9px;border-radius:50%;background:#d1d5db}.devops-cap-card.available>i{background:#10b981}.devops-cap-card.unavailable{background:#fafbfc}.devops-cap-card.unavailable>i{background:#f59e0b}.devops-host-line{grid-column:1/-1;color:#8290a9;font-size:10px;padding:0 3px}.devops-ask-panel,.devops-target-panel,.devops-result-panel{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:18px;margin-bottom:15px}.devops-ask-form{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;margin-top:14px}.devops-ask-form textarea{width:100%;min-height:68px;resize:vertical;border:1px solid #d6dde8;border-radius:11px;padding:12px;outline:0;line-height:1.45;color:#1d2a40}.devops-ask-form textarea:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.devops-ask-form .primary-btn{height:68px}.devops-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.devops-quick-actions button{border:1px solid #dce3ed;background:#f9fbff;color:#2d5fb5;border-radius:9px;padding:8px 11px;font-size:11px;cursor:pointer}.devops-quick-actions button:hover{background:#eef4ff;border-color:#c8d8f5}.devops-target-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.mini-action-form{border:1px solid #e4e9f0;border-radius:11px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:8px;align-items:end}.mini-action-form strong{grid-column:1/-1;font-size:12px}.mini-action-form input{height:40px;border:1px solid #d6dde8;border-radius:9px;padding:0 10px;min-width:0;outline:0}.mini-action-form input:focus{border-color:#91adf5}.mini-action-form .secondary-btn{height:40px;padding:0 10px}.mini-action-form#dockerLogsForm{grid-template-columns:minmax(0,1fr) 80px 105px}.devops-result-panel{border-color:#cfdaf0}.devops-analysis{font-size:13px;line-height:1.65;color:#1e2c42}.devops-analysis h1,.devops-analysis h2,.devops-analysis h3{letter-spacing:-.02em}.devops-raw{margin-top:14px;border-top:1px solid #edf0f4;padding-top:12px}.devops-raw summary{cursor:pointer;color:#63728c;font-size:11px}.devops-raw pre{max-height:360px;overflow:auto;background:#111827;color:#e5e7eb;border-radius:10px;padding:14px;font-size:11px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.section-title>div{display:flex;flex-direction:column;gap:3px}.section-title strong{font-size:14px}.section-title span{font-size:10px;color:#8390a7}
@media(max-width:820px){.agents-view{padding:12px 0 80px}.agents-head{align-items:center}.agents-head h2{font-size:20px}.devops-cap-grid{grid-template-columns:1fr}.devops-ask-form{grid-template-columns:1fr}.devops-ask-form .primary-btn{height:44px}.devops-target-grid{grid-template-columns:1fr}.mini-action-form#dockerLogsForm{grid-template-columns:minmax(0,1fr) 70px 96px}.devops-quick-actions{display:grid;grid-template-columns:1fr 1fr}.devops-quick-actions button{width:100%}}
@media(max-width:520px){.agents-head{align-items:flex-start}.readonly-badge{flex:none}.mini-action-form,.mini-action-form#dockerLogsForm{grid-template-columns:1fr}.mini-action-form strong{grid-column:auto}.devops-quick-actions{grid-template-columns:1fr 1fr}.devops-raw pre{font-size:10px}.devops-ask-panel,.devops-target-panel,.devops-result-panel{padding:14px}}

/* Phase 2.3.1 — Remote SSH server inventory */
.server-manager-panel{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:18px;margin-bottom:15px}.server-manager-title{margin-bottom:12px}.server-manager-title .secondary-btn{height:38px}.server-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.server-empty{grid-column:1/-1;border:1px dashed #dbe2ec;border-radius:11px;padding:18px;display:flex;flex-direction:column;gap:4px;color:#52617a}.server-empty strong{font-size:12px}.server-empty span{font-size:10px;color:#8a97ac}.server-card{border:1px solid #e1e6ee;border-radius:12px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.server-card.ok{border-color:#cdeedf;background:#fbfffd}.server-card.error{border-color:#f6d5d5;background:#fffdfd}.server-card-main{display:flex;align-items:flex-start;gap:9px;min-width:0}.server-card-main>div:last-child{min-width:0}.server-card-main strong,.server-card-main span,.server-card-main small{display:block}.server-card-main strong{font-size:12px}.server-card-main span{font-size:10px;color:#67758e;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-card-main small{font-size:9px;color:#8c98aa;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-status-dot{width:9px;height:9px;border-radius:50%;background:#cbd5e1;margin-top:4px;flex:none}.server-card.ok .server-status-dot{background:#10b981}.server-card.error .server-status-dot{background:#ef4444}.server-card-actions{display:flex;gap:5px;flex:none}.server-card-actions button{height:30px;border:1px solid #dbe2ec;background:#fff;border-radius:8px;padding:0 8px;font-size:9px;color:#3d4d68;cursor:pointer}.server-card-actions button:hover{background:#f6f8fb}.server-card-actions .server-delete-btn{color:#c63b3b}.server-add-form{margin-top:14px;border-top:1px solid #edf0f4;padding-top:15px}.server-form-grid{display:grid;grid-template-columns:1.2fr 1.4fr .65fr 1fr 1.2fr;gap:9px}.server-add-form label{font-size:10px;font-weight:700;color:#53617a}.server-add-form input,.server-add-form select,.server-add-form textarea,.devops-server-select-label select{display:block;width:100%;border:1px solid #d7deea;border-radius:9px;background:#fff;color:#1d2a40;outline:0;margin-top:5px}.server-add-form input,.server-add-form select{height:40px;padding:0 9px}.server-add-form textarea{padding:9px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;line-height:1.4;min-height:105px}.server-add-form input:focus,.server-add-form select:focus,.server-add-form textarea:focus,.devops-server-select-label select:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.credential-field{margin-top:10px}.credential-field#serverKeyWrap{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,.8fr);gap:10px;align-items:start}.credential-field.hidden{display:none!important}.fingerprint-box{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e1e6ee;border-radius:10px;background:#f9fbfd;padding:11px 12px;margin-top:12px}.fingerprint-box>div{min-width:0;display:flex;flex-direction:column;gap:3px}.fingerprint-box strong{font-size:10px}.fingerprint-box span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px;color:#586780;overflow-wrap:anywhere}.fingerprint-box .secondary-btn{height:35px;white-space:nowrap}.fingerprint-confirm{display:flex!important;align-items:center;gap:8px;margin-top:9px;font-size:10px!important;font-weight:500!important;color:#46556e!important}.fingerprint-confirm.hidden{display:none!important}.fingerprint-confirm input{width:15px;height:15px;margin:0;flex:none}.server-form-note{font-size:9px;color:#8290a9;line-height:1.5;margin-top:10px}.server-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.server-save-btn{width:auto;min-width:200px;height:42px}.devops-server-select-label{display:block;font-size:10px;font-weight:700;color:#52617a;margin:10px 0 0}.devops-server-select-label select{height:40px;padding:0 10px;max-width:420px}
@media(max-width:1050px){.server-list{grid-template-columns:1fr}.server-form-grid{grid-template-columns:1fr 1fr 100px}.credential-field#serverKeyWrap{grid-template-columns:1fr}}
@media(max-width:700px){.server-manager-panel{padding:14px}.server-manager-title{align-items:flex-start;gap:10px}.server-form-grid{grid-template-columns:1fr 1fr}.server-card{align-items:flex-start;flex-direction:column}.server-card-actions{width:100%}.server-card-actions button{flex:1}.fingerprint-box{align-items:flex-start;flex-direction:column}.fingerprint-box .secondary-btn{width:100%}.server-form-actions{flex-direction:column-reverse}.server-form-actions .secondary-btn,.server-form-actions .primary-btn{width:100%}.devops-server-select-label select{max-width:none}}
@media(max-width:470px){.server-form-grid{grid-template-columns:1fr}.server-manager-title{flex-direction:column}.server-manager-title .secondary-btn{width:100%}}

/* Phase 2.4 — Observability & Cost Dashboard */
.observability-view{max-width:1120px;margin:0 auto;padding:20px 0 92px}.obs-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.obs-head h2{font-size:24px;letter-spacing:-.03em;margin:0 0 6px}.obs-head p{margin:0;color:#74819b;font-size:13px;line-height:1.5;max-width:720px}.obs-head-actions{display:flex;align-items:center;gap:8px;flex:none}.obs-period{display:flex;padding:3px;border:1px solid #dfe5ee;border-radius:10px;background:#f7f9fc}.obs-period button{height:31px;border:0;background:transparent;color:#66758d;border-radius:7px;padding:0 10px;font-size:10px;font-weight:700;cursor:pointer}.obs-period button:hover{color:#2f6df6}.obs-period button.active{background:#fff;color:#1f5fd4;box-shadow:0 1px 4px rgba(15,23,42,.08)}.obs-head-actions .secondary-btn{height:37px}.obs-summary-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:14px}.obs-kpi{min-width:0;border:1px solid #dfe5ee;border-radius:13px;background:#fff;padding:14px}.obs-kpi span,.obs-kpi strong,.obs-kpi small{display:block}.obs-kpi span{font-size:9px;color:#7d8ba4;text-transform:uppercase;letter-spacing:.06em;font-weight:750}.obs-kpi strong{font-size:21px;line-height:1.2;letter-spacing:-.03em;margin:8px 0 5px;color:#1c2940;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.obs-kpi small{font-size:9px;color:#929daf;line-height:1.35}.obs-two-col{display:grid;grid-template-columns:1fr 1.18fr;gap:14px}.obs-panel{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:17px;margin-bottom:14px;min-width:0}.obs-month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.obs-month-item{border:1px solid #e7ebf1;background:#fafbfd;border-radius:10px;padding:12px;min-width:0}.obs-month-item span,.obs-month-item strong,.obs-month-item small{display:block}.obs-month-item span{font-size:9px;color:#7c8aa1}.obs-month-item strong{font-size:18px;letter-spacing:-.025em;margin:6px 0 4px;color:#1d2a40}.obs-month-item small{font-size:8.5px;color:#97a1b2;line-height:1.35}.obs-provider-list{display:flex;flex-direction:column;gap:9px}.obs-provider-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;align-items:center}.obs-provider-name{display:flex;align-items:center;gap:8px;min-width:0}.obs-provider-name>div{min-width:0}.obs-provider-name strong,.obs-provider-name span,.obs-provider-cost strong,.obs-provider-cost span{display:block}.obs-provider-name strong{font-size:11px;text-transform:capitalize}.obs-provider-name span{font-size:8.5px;color:#8a97aa;margin-top:2px}.obs-provider-cost{text-align:right}.obs-provider-cost strong{font-size:11px}.obs-provider-cost span{font-size:8.5px;color:#8a97aa;margin-top:2px}.provider-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8;flex:none}.provider-dot.openai,.provider-pill.openai{background:#111827}.provider-dot.anthropic,.provider-pill.anthropic{background:#d97745}.provider-dot.gemini,.provider-pill.gemini{background:#4285f4}.provider-dot.groq,.provider-pill.groq{background:#e95e36}.obs-provider-bar{grid-column:1/-1;height:4px;border-radius:99px;background:#eef2f7;overflow:hidden}.obs-provider-bar i{display:block;height:100%;border-radius:99px;background:#4978e8}.obs-trend{min-height:195px}.obs-bars{height:165px;display:flex;align-items:stretch;gap:4px;border-bottom:1px solid #e8ecf2;padding:0 2px}.obs-bar-col{flex:1;min-width:4px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}.obs-bar-stack{position:relative;width:100%;height:142px;display:flex;align-items:flex-end;justify-content:center}.obs-bar-stack i{display:block;width:min(16px,75%);min-height:3px;border-radius:4px 4px 0 0;background:#5b83e7}.obs-bar-stack b{position:absolute;bottom:0;width:min(16px,75%);min-height:3px;border-radius:4px 4px 0 0;background:#e45f5f}.obs-bar-col>span{font-size:7.5px;color:#8c97aa;white-space:nowrap;transform:rotate(-38deg);transform-origin:center top;margin-top:1px}.obs-chart-legend{display:flex;gap:14px;justify-content:flex-end;margin-top:14px;color:#77849a;font-size:9px}.obs-chart-legend span{display:flex;align-items:center;gap:5px}.obs-chart-legend i{width:8px;height:8px;border-radius:2px}.legend-req{background:#5b83e7}.legend-error{background:#e45f5f}.obs-table-wrap{width:100%;overflow:auto;border:1px solid #e5e9ef;border-radius:10px}.obs-table{width:100%;min-width:820px;border-collapse:collapse;font-size:10px}.obs-table th,.obs-table td{padding:10px 11px;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:middle}.obs-table th{font-size:9px;color:#67758c;background:#f8f9fb;text-transform:uppercase;letter-spacing:.025em}.obs-table tr:last-child td{border-bottom:0}.obs-table tbody tr:hover{background:#fbfcfe}.obs-table td strong{font-size:10.5px}.provider-pill{display:inline-flex;padding:3px 6px;border-radius:999px;color:#fff;background:#64748b;font-size:8px;text-transform:capitalize}.provider-pill.openai{background:#111827}.provider-pill.anthropic{background:#d97745}.provider-pill.gemini{background:#4285f4}.provider-pill.groq{background:#e95e36}.obs-fail-count{color:#d33c3c}.obs-privacy{margin-top:10px;font-size:8.5px;color:#939dae;line-height:1.4}
@media(max-width:1100px){.obs-summary-grid{grid-template-columns:repeat(3,1fr)}.obs-two-col{grid-template-columns:1fr}.obs-month-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.observability-view{padding:10px 0 82px}.obs-head{flex-direction:column}.obs-head-actions{width:100%;justify-content:space-between}.obs-period{flex:1}.obs-period button{flex:1}.obs-head-actions .secondary-btn{flex:none}.obs-summary-grid{grid-template-columns:1fr 1fr}.obs-kpi strong{font-size:19px}.obs-month-grid{grid-template-columns:1fr}.obs-panel{padding:14px}.obs-bars{gap:2px}.obs-bar-col>span{display:none}.obs-trend{min-height:170px}.obs-bars{height:145px}.obs-bar-stack{height:132px}}
@media(max-width:460px){.obs-summary-grid{grid-template-columns:1fr 1fr}.obs-head-actions{align-items:stretch;flex-direction:column}.obs-head-actions .secondary-btn{width:100%}}

/* Phase 2.5 — Smart Model Router */
.router-profile-mini{margin:6px 4px 8px;padding:10px;border:1px solid #e4e9f1;border-radius:11px;background:#fafbfd}.router-profile-mini>div:first-child{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}.router-profile-mini strong{font-size:10px;color:#2b3951}.router-profile-mini small{font-size:8.5px;color:#8794a9}.router-profile-buttons{display:flex;gap:5px}.router-profile-buttons button{flex:1;border:1px solid #dce3ed;background:#fff;color:#5c6b84;height:30px;border-radius:8px;padding:0 7px;font-size:9px;font-weight:700;cursor:pointer}.router-profile-buttons button:hover{border-color:#b9c9e5;color:#2f6df6}.router-profile-buttons button.active{background:#edf3ff;border-color:#bed0f6;color:#1f61db}.router-profile-buttons.large button{height:36px;font-size:10px}.response-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 7px}.response-meta .route-badge{margin-bottom:0}.route-model-badge,.route-router-meta{display:inline-flex;align-items:center;border-radius:99px;padding:3px 7px;font-size:9px;line-height:1.2}.route-model-badge{background:#edf4ff;color:#2362ca;font-weight:700}.route-router-meta{background:#f5f1ff;color:#7051bd}.router-panel-grid{display:grid;grid-template-columns:.85fr 1.55fr;gap:12px;align-items:stretch}.router-profile-card{border:1px solid #e4e9f0;border-radius:11px;padding:13px;background:#fafbfd;display:flex;flex-direction:column;gap:9px}.router-profile-card>span{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#7d8ba4;font-weight:750}.router-profile-card>small{font-size:9px;color:#7e8ba0;line-height:1.4}.router-preview-form{border:1px solid #e4e9f0;border-radius:11px;padding:13px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:9px;align-items:end}.router-preview-form label{font-size:10px;font-weight:700;color:#52617a}.router-preview-form input{display:block;width:100%;height:40px;border:1px solid #d7deea;border-radius:9px;margin-top:5px;padding:0 10px;outline:0}.router-preview-form input:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.router-preview-form .secondary-btn{height:40px;padding:0 11px}.router-preview-result{margin-top:12px;border:1px solid #dfe6f0;border-radius:11px;padding:13px;background:#fbfcff}.router-decision-main{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center}.router-decision-main>div{min-width:0}.router-decision-main strong,.router-decision-main span{display:block}.router-decision-main strong{font-size:12px}.router-decision-main>div>span{font-size:9px;color:#7c899e;margin-top:3px}.router-preview-result p{font-size:10px;color:#53627a;line-height:1.5;margin:10px 0 6px}.router-preview-result>small{font-size:9px;color:#8894a7}.router-model-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.router-rule-chip{border:1px solid #e7ebf1;border-radius:10px;padding:9px;display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center;background:#fff}.router-rule-chip .model-icon{width:32px;height:32px;font-size:9px}.router-rule-chip>div{min-width:0}.router-rule-chip strong,.router-rule-chip small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.router-rule-chip strong{font-size:9.5px}.router-rule-chip small{font-size:7.5px;color:#8b96a8;margin-top:2px}
@media(max-width:860px){.router-panel-grid{grid-template-columns:1fr}.router-model-rules{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.router-preview-form{grid-template-columns:1fr}.router-preview-form .secondary-btn{width:100%}.router-model-rules{grid-template-columns:1fr}.response-meta{gap:4px}.route-model-badge,.route-router-meta,.route-badge{font-size:8px}}

/* Phase 2.6 — Provider Failover */
.failover-panel .section-title{align-items:center}.failover-panel .section-title .secondary-btn{height:36px;padding:0 12px}.failover-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:13px}.failover-kpi{border:1px solid #e3e8ef;border-radius:11px;background:#fafbfd;padding:12px;min-width:0}.failover-kpi span,.failover-kpi strong,.failover-kpi small{display:block}.failover-kpi span{font-size:8.5px;text-transform:uppercase;letter-spacing:.05em;color:#7c899e;font-weight:750}.failover-kpi strong{font-size:16px;color:#1f2d43;margin:6px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.failover-kpi small{font-size:8.5px;color:#8b96a8;line-height:1.4}.failover-chains{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 13px}.failover-chain{border:1px solid #e5eaf1;border-radius:10px;padding:10px;background:#fff;min-width:0}.failover-chain>strong{display:block;font-size:9.5px;color:#53617a;margin-bottom:7px}.failover-chain>div{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.chain-model{display:inline-flex;align-items:center;height:23px;border-radius:7px;background:#f3f5f8;color:#54627a;padding:0 6px;font-size:7.5px;white-space:nowrap}.chain-model.primary{background:#edf3ff;color:#1f61db;font-weight:750}.chain-arrow{font-size:9px;color:#9aa5b5}.failover-events-wrap{margin-top:5px}.failover-outcome{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:750;white-space:nowrap}.failover-outcome.failover_success{background:#e8fbf4;color:#07845d}.failover-outcome.attempt_failed{background:#fff5df;color:#a86200}.failover-outcome.all_failed{background:#feecec;color:#c72f2f}.route-failover-badge{display:inline-flex;align-items:center;border-radius:99px;padding:3px 7px;font-size:9px;line-height:1.2;background:#fff4df;color:#a86600;font-weight:750}
@media(max-width:760px){.failover-summary-grid{grid-template-columns:1fr}.failover-chains{grid-template-columns:1fr}}


/* Phase 2.7 — Memory v3 + center-column responsive containment */
.memory-view{width:100%;max-width:1040px;min-width:0;margin:0 auto;padding:20px 0 92px}.memory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.memory-head h2{font-size:24px;letter-spacing:-.03em;margin:0 0 6px}.memory-head p{margin:0;color:#74819b;font-size:12px;line-height:1.55;max-width:720px}.memory-head-actions{display:flex;align-items:center;gap:8px;flex:none}.memory-head-actions .secondary-btn{height:36px}.explicit-badge{display:inline-flex;align-items:center;height:30px;border:1px solid #d8e4fb;background:#f1f6ff;color:#2b63c6;border-radius:99px;padding:0 9px;font-size:8px;font-weight:800;letter-spacing:.06em}.memory-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.memory-kpi{border:1px solid #dfe5ee;border-radius:13px;background:#fff;padding:14px;min-width:0}.memory-kpi span,.memory-kpi strong,.memory-kpi small{display:block}.memory-kpi span{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#7d8ba4;font-weight:750}.memory-kpi strong{font-size:21px;margin:7px 0 4px;letter-spacing:-.03em}.memory-kpi small{font-size:9px;color:#929daf;line-height:1.35}.memory-panel{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:17px;margin-bottom:14px;min-width:0}.memory-filter-form{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(150px,.8fr) 92px;gap:9px;align-items:end;margin-bottom:13px}.memory-filter-form label{font-size:10px;font-weight:700;color:#52617a;min-width:0}.memory-filter-form input,.memory-filter-form select{display:block;width:100%;height:40px;border:1px solid #d7deea;border-radius:9px;background:#fff;color:#1d2a40;margin-top:5px;padding:0 10px;outline:0;min-width:0}.memory-filter-form input:focus,.memory-filter-form select:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.memory-filter-form .secondary-btn{height:40px;padding:0 10px}.memory-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;min-width:0}.memory-card{border:1px solid #e5eaf1;border-radius:11px;background:#fbfcfe;padding:12px;min-width:0}.memory-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.memory-card-top>div{display:flex;align-items:center;gap:7px;min-width:0}.memory-category{display:inline-flex;border-radius:99px;background:#edf3ff;color:#2662c6;padding:4px 7px;font-size:8px;font-weight:750;white-space:nowrap}.memory-importance{font-size:9px;color:#f0a82f;letter-spacing:.04em;white-space:nowrap}.memory-delete-btn{border:0;background:transparent;color:#c64242;font-size:9px;cursor:pointer;border-radius:7px;padding:5px 7px;flex:none}.memory-delete-btn:hover{background:#fff0f0}.memory-content{font-size:11px;line-height:1.55;color:#293750;white-space:pre-wrap;overflow-wrap:anywhere}.memory-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf0f4;margin-top:10px;padding-top:8px;color:#8a97aa;font-size:8px}.memory-empty{grid-column:1/-1;border:1px dashed #d9e0e9;border-radius:11px;padding:22px;text-align:center;color:#697790}.memory-empty strong,.memory-empty span{display:block}.memory-empty strong{font-size:12px}.memory-empty span{font-size:9px;margin-top:4px}.memory-help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.memory-help-grid>div{border:1px solid #e8ecf2;border-radius:10px;padding:11px;min-width:0}.memory-help-grid strong{display:block;font-size:10px;margin-bottom:7px}.memory-help-grid code{display:block;background:#f5f7fa;border-radius:7px;padding:8px;font-size:8.5px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}

/* The page viewport is not the useful content width when both sidebars are open.
   Container queries make Observability/Memory react to the real center column. */
.observability-view,.tools-view,.agents-view{width:100%;min-width:0}.obs-two-col{grid-template-columns:minmax(0,1fr) minmax(0,1.18fr)}.router-panel-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.55fr)}.failover-chains{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.obs-panel,.obs-two-col>*,.router-panel-grid>*,.failover-chain,.obs-table-wrap{min-width:0;max-width:100%}

@container (max-width:1050px){
  .observability-view{max-width:100%;padding-top:12px}.obs-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.obs-two-col{grid-template-columns:1fr}.router-panel-grid{grid-template-columns:1fr}.router-model-rules{grid-template-columns:1fr 1fr}.failover-chains{grid-template-columns:1fr}.memory-list{grid-template-columns:1fr}.memory-help-grid{grid-template-columns:1fr 1fr}.memory-view{max-width:100%;padding-top:12px}
}
@container (max-width:700px){
  .obs-head,.memory-head{flex-direction:column}.obs-head-actions,.memory-head-actions{width:100%}.obs-summary-grid,.memory-summary-grid{grid-template-columns:1fr 1fr}.memory-filter-form{grid-template-columns:1fr 1fr}.memory-filter-form .secondary-btn{grid-column:1/-1;width:100%}.memory-help-grid{grid-template-columns:1fr}.router-model-rules{grid-template-columns:1fr}.failover-summary-grid{grid-template-columns:1fr}.obs-month-grid{grid-template-columns:1fr}
}
@container (max-width:460px){
  .obs-summary-grid,.memory-summary-grid{grid-template-columns:1fr}.memory-filter-form{grid-template-columns:1fr}.memory-meta{align-items:flex-start;flex-direction:column}.memory-panel{padding:13px}
}

/* Phase 2.8 — Research Engine v2 */
.discover-view{width:100%;max-width:1100px;min-width:0;margin:0 auto;padding:18px 0 96px}.discover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px}.discover-head h2{font-size:24px;letter-spacing:-.03em;margin:0 0 6px}.discover-head p{margin:0;color:#74819b;font-size:12px;line-height:1.55;max-width:720px}.discover-head-actions{display:flex;align-items:center;gap:8px;flex:none}.research-live-badge{display:inline-flex;align-items:center;height:29px;padding:0 9px;border:1px solid #cceede;border-radius:99px;background:#effcf7;color:#09805c;font-size:8px;font-weight:800;letter-spacing:.07em}.discover-head-actions .secondary-btn{height:36px}.research-compose-panel,.research-result-panel,.research-history-panel{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:17px;margin-bottom:14px;min-width:0}.research-form{display:grid;grid-template-columns:minmax(0,1fr) 300px 112px;gap:11px;align-items:end}.research-form>label{font-size:10px;font-weight:700;color:#52617a;min-width:0}.research-form textarea{display:block;width:100%;min-height:88px;max-height:180px;resize:vertical;border:1px solid #d7deea;border-radius:11px;background:#fff;color:#1d2a40;margin-top:5px;padding:11px;outline:0;line-height:1.45}.research-form textarea:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.research-depth-wrap{display:flex;flex-direction:column;gap:5px;min-width:0}.research-depth-wrap>span{font-size:10px;font-weight:700;color:#52617a}.research-depth-wrap>small{font-size:8.5px;color:#8290a9;line-height:1.35;min-height:23px}.research-depth-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.research-depth-buttons button{height:48px;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#53617a;font-size:9px;font-weight:750;cursor:pointer}.research-depth-buttons button small{display:block;font-size:7px;font-weight:500;color:#96a0b0;margin-top:3px}.research-depth-buttons button:hover{border-color:#b9c9e5}.research-depth-buttons button.active{border-color:#bdd0f6;background:#edf3ff;color:#1f61db}.research-run-btn{height:48px;min-width:0}.research-run-btn:disabled{opacity:.65;cursor:wait}.research-note{font-size:8.5px;color:#8b96a8;margin-top:10px;line-height:1.45}.research-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.research-kpi{border:1px solid #dfe5ee;border-radius:13px;background:#fff;padding:13px;min-width:0}.research-kpi span,.research-kpi strong,.research-kpi small{display:block}.research-kpi span{font-size:8.5px;text-transform:uppercase;letter-spacing:.06em;color:#7d8ba4;font-weight:750}.research-kpi strong{font-size:18px;letter-spacing:-.025em;margin:6px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.research-kpi small{font-size:8.5px;color:#929daf}.research-answer{font-size:13px;line-height:1.68;color:#1e2b41;min-width:0}.research-answer h1,.research-answer h2,.research-answer h3{letter-spacing:-.02em;line-height:1.35}.research-answer h2{font-size:18px;margin:20px 0 8px}.research-answer h3{font-size:15px;margin:16px 0 7px}.research-answer p{margin:.4em 0 1em}.research-answer ul,.research-answer ol{padding-left:1.5em}.research-answer code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f3f5f7;padding:2px 5px;border-radius:5px}.research-answer .table-wrap{overflow:auto}.research-source-title{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf0f4;padding-top:14px;margin-top:15px;margin-bottom:9px}.research-source-title strong{font-size:12px}.research-source-title span{font-size:8.5px;color:#8a97aa}.research-source-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}.research-source-card{display:grid;grid-template-columns:32px minmax(0,1fr) 47px;gap:9px;align-items:start;border:1px solid #e4e9f0;border-radius:10px;padding:10px;background:#fbfcfe;text-decoration:none;color:inherit;min-width:0}.research-source-card:hover{background:#f7faff;border-color:#cfdcf1}.research-source-rank{width:30px;height:30px;border-radius:8px;background:#edf3ff;color:#2863cb;display:grid;place-items:center;font-size:9px;font-weight:800}.research-source-copy{min-width:0}.research-source-copy strong,.research-source-copy span,.research-source-copy small{display:block}.research-source-copy strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.research-source-copy span{font-size:8px;color:#6f7e96;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.research-source-copy small{font-size:8px;line-height:1.4;color:#929daf;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.research-source-score{text-align:right}.research-source-score b,.research-source-score span{display:block}.research-source-score b{font-size:13px;color:#1f5fd4}.research-source-score span{font-size:7px;color:#8793a6;margin-top:2px}.research-history-list{display:flex;flex-direction:column;gap:7px}.research-history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e5eaf1;border-radius:10px;padding:11px 12px;background:#fff;cursor:pointer;min-width:0}.research-history-item:hover{background:#fafcff}.research-history-main{min-width:0;flex:1}.research-history-main strong,.research-history-main span,.research-history-main small{display:block}.research-history-main strong{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.research-history-main span{font-size:8px;color:#8491a6;margin-top:3px}.research-history-main small{font-size:8.5px;color:#65738a;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.research-history-actions{display:flex;align-items:center;gap:6px;flex:none}.research-status{display:inline-flex;border-radius:99px;padding:4px 7px;font-size:7.5px;font-weight:750;background:#eef2f7;color:#64748b}.research-status.completed{background:#e8fbf4;color:#07845d}.research-status.failed{background:#feecec;color:#c72f2f}.research-delete-btn{border:0;background:transparent;color:#c64242;border-radius:7px;padding:5px 7px;font-size:8px;cursor:pointer}.research-delete-btn:hover{background:#fff0f0}.research-empty{grid-column:1/-1;border:1px dashed #dbe2ec;border-radius:10px;padding:18px;text-align:center;color:#6d7b92;font-size:9px}.research-empty strong,.research-empty span{display:block}.research-empty span{margin-top:4px}.research-loading{display:flex;align-items:center;gap:12px;padding:18px 4px}.research-loading i{width:24px;height:24px;border:3px solid #dfe7f5;border-top-color:#2f6df6;border-radius:50%;animation:researchspin .8s linear infinite;flex:none}.research-loading strong,.research-loading span{display:block}.research-loading strong{font-size:11px}.research-loading span{font-size:9px;color:#8390a7;margin-top:3px}@keyframes researchspin{to{transform:rotate(360deg)}}.research-error{border:1px solid #f4d3d3;background:#fff8f8;border-radius:9px;padding:12px;color:#b43737}.research-error strong,.research-error span{display:block}.research-error strong{font-size:11px}.research-error span{font-size:9px;margin-top:4px}
@container (max-width:900px){.discover-view{max-width:100%;padding-top:12px}.research-form{grid-template-columns:1fr}.research-run-btn{width:100%}.research-summary-grid{grid-template-columns:1fr 1fr}.research-source-list{grid-template-columns:1fr}}
@container (max-width:620px){.discover-head{flex-direction:column}.discover-head-actions{width:100%;justify-content:space-between}.research-summary-grid{grid-template-columns:1fr 1fr}.research-compose-panel,.research-result-panel,.research-history-panel{padding:13px}.research-history-item{align-items:flex-start}.research-history-actions{flex-direction:column;align-items:flex-end}}
@container (max-width:420px){.research-summary-grid{grid-template-columns:1fr}.research-depth-buttons{grid-template-columns:1fr}.research-depth-buttons button{height:40px}.research-depth-buttons button small{display:inline;margin-left:5px}.research-history-item{flex-direction:column}.research-history-actions{width:100%;flex-direction:row;justify-content:space-between}}

/* Phase 2.x backlog closure — functional files, Web mode and microphone */
.attachment-tray{max-width:960px;margin:0 auto 8px;display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 3px;scrollbar-width:thin}.attachment-chip{display:grid;grid-template-columns:30px minmax(80px,1fr) 22px;align-items:center;gap:7px;min-width:185px;max-width:280px;border:1px solid #dfe5ee;background:#fff;border-radius:11px;padding:7px 7px 7px 8px;box-shadow:0 4px 16px rgba(15,23,42,.035)}.attachment-chip .attachment-doc{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;background:#edf3ff;color:#2f6df6;font-size:14px}.attachment-chip>div{min-width:0}.attachment-chip strong,.attachment-chip small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-chip strong{font-size:9.5px;color:#26354d}.attachment-chip small{font-size:7.5px;color:#8491a6;margin-top:2px}.attachment-chip.completed{border-color:#d5e9e0}.attachment-chip.completed small{color:#0a8f66}.attachment-chip.failed{border-color:#f0d2d2;background:#fffafa}.attachment-chip.failed small{color:#c53c3c}.attachment-chip button{border:0;background:transparent;border-radius:6px;width:22px;height:22px;color:#7d899d;cursor:pointer}.attachment-chip button:hover{background:#f1f3f6;color:#26354d}.main-column:has(.attachment-tray:not(.hidden)) .content-scroll{padding-bottom:var(--composer-space,188px)}.composer-tool.active{background:#eaf2ff;color:#145fe4;box-shadow:inset 0 0 0 1px #bdd2fb}.composer-tool .web-state-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#c7cfdb;margin-left:1px}.composer-tool.active .web-state-dot{background:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,.10)}.mic-btn.recording{background:#fff0f0;color:#d62f2f;box-shadow:0 0 0 3px rgba(214,47,47,.08);animation:micpulse 1.15s ease-in-out infinite}.mic-btn.transcribing{cursor:wait;color:#3868d8;background:#edf3ff}.composer-icon:disabled{opacity:.7;cursor:wait}@keyframes micpulse{50%{box-shadow:0 0 0 7px rgba(214,47,47,.04)}}
@media(max-width:820px){.attachment-tray{max-width:calc(100vw - 22px)}.main-column:has(.attachment-tray:not(.hidden)) .content-scroll{padding-bottom:var(--composer-space,170px)}}
@media(max-width:520px){.composer-tool{display:flex;width:39px;height:39px;padding:0;justify-content:center}.composer-tool span{display:none}.composer-tool .web-state-dot{display:none}}

/* Phase 3.1 — Controlled Write Actions */
.readonly-badge.controlled{background:#fff7ed;color:#b45309;border-color:#fed7aa}.controlled-write-panel{border:1px solid #f0dfc7;border-radius:14px;background:#fffdf9;padding:18px;margin-bottom:15px}.controlled-write-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.controlled-write-title b{color:#9a5512}.safe-write-badge{display:inline-flex;align-items:center;height:28px;padding:0 9px;border-radius:999px;background:#fff2db;color:#9a5512;border:1px solid #f4d6aa;font-size:9px;font-weight:850;letter-spacing:.055em;flex:none}.controlled-write-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.write-action-form{border:1px solid #ecdcc6;border-radius:11px;background:#fff;padding:13px;display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px;align-items:end}.write-action-form>div{grid-column:1/-1;display:flex;flex-direction:column;gap:3px}.write-action-form strong{font-size:12px;color:#402f20}.write-action-form small{font-size:9px;color:#9b7a58}.write-action-form input{height:40px;border:1px solid #decdb9;border-radius:9px;padding:0 10px;min-width:0;outline:0;background:#fff;color:#1d2a40}.write-action-form input:focus{border-color:#d99d57;box-shadow:0 0 0 3px rgba(217,157,87,.10)}.write-action-form button{height:40px;border:1px solid #e8c79e;border-radius:9px;background:#fff6e9;color:#9a5512;font-size:10px;font-weight:750;cursor:pointer}.write-action-form button:hover{background:#ffefd8}.k8s-write-form{grid-template-columns:minmax(0,1fr) minmax(110px,.7fr) 96px}.scale-write-form{grid-template-columns:minmax(0,1fr) minmax(100px,.7fr) 72px 82px}.controlled-write-note{margin-top:11px;padding:9px 11px;border-radius:9px;background:#fff7ed;color:#8b5b2c;font-size:9px;line-height:1.45}.approval-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px}.approval-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.38);backdrop-filter:blur(2px)}.approval-card{position:relative;width:min(470px,100%);border:1px solid #e1e6ee;border-radius:17px;background:#fff;padding:24px;box-shadow:0 30px 80px rgba(15,23,42,.22)}.approval-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#fff1df;color:#b45309;font-size:22px;font-weight:850;margin-bottom:12px}.approval-card h3{margin:0 0 7px;font-size:20px;letter-spacing:-.025em}.approval-card>p{margin:0;color:#68778f;font-size:12px;line-height:1.5}.approval-action{margin:14px 0;border:1px solid #e5e9ef;border-radius:10px;background:#f8fafc;padding:11px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:#35435a;overflow-wrap:anywhere}.approval-card label{display:block;font-size:11px;color:#4b5a72;font-weight:650}.approval-card label code{background:#fff2db;color:#8c4b0a;border-radius:5px;padding:2px 5px}.approval-card input{display:block;width:100%;height:43px;margin-top:7px;border:1px solid #d6dde8;border-radius:10px;padding:0 11px;outline:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.approval-card input:focus{border-color:#e0a15a;box-shadow:0 0 0 3px rgba(224,161,90,.11)}.approval-error{min-height:16px;color:#c2410c;font-size:10px;margin-top:6px}.approval-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.danger-confirm-btn{height:44px;border:0;border-radius:11px;padding:0 16px;background:#c66a15;color:#fff;font-weight:750;cursor:pointer}.danger-confirm-btn:disabled{background:#d9c5b2;cursor:not-allowed}
@media(max-width:860px){.controlled-write-grid{grid-template-columns:1fr}.k8s-write-form,.scale-write-form{grid-template-columns:minmax(0,1fr) minmax(100px,.7fr) 92px}.scale-write-form #k8sScaleReplicas{grid-column:1/2}.scale-write-form button{grid-column:2/4}}
@media(max-width:560px){.controlled-write-panel{padding:14px}.controlled-write-title{flex-direction:column}.write-action-form,.k8s-write-form,.scale-write-form{grid-template-columns:1fr}.write-action-form>div,.scale-write-form #k8sScaleReplicas,.scale-write-form button{grid-column:auto}.approval-card{padding:20px}.approval-actions{flex-direction:column-reverse}.approval-actions button{width:100%}}

/* Phase 3.2 — Kubernetes/OpenShift Cluster Agent */
.message-files{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.message-file-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #d8e2f2;background:#f7faff;border-radius:8px;padding:5px 8px;font-size:10px;color:#3b5f9d;font-weight:650;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cluster-manager-panel{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:18px;margin-bottom:15px}.cluster-manager-title{margin-bottom:12px}.cluster-manager-title .secondary-btn{height:38px}.cluster-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cluster-card{border:1px solid #e1e6ee;border-radius:12px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.cluster-card.ok{border-color:#cdeedf;background:#fbfffd}.cluster-card.error{border-color:#f6d5d5;background:#fffdfd}.cluster-card-main{display:flex;align-items:flex-start;gap:9px;min-width:0}.cluster-card-main>div:last-child{min-width:0}.cluster-card-main strong,.cluster-card-main span,.cluster-card-main small{display:block}.cluster-card-main strong{font-size:12px}.cluster-card-main span{font-size:10px;color:#67758e;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cluster-card-main small{font-size:9px;color:#8c98aa;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cluster-card.ok .server-status-dot{background:#10b981}.cluster-card.error .server-status-dot{background:#ef4444}.cluster-add-form{margin-top:14px;border-top:1px solid #edf0f4;padding-top:15px}.cluster-form-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:10px}.cluster-add-form label{font-size:10px;font-weight:700;color:#53617a}.cluster-add-form input,.cluster-add-form textarea,.cluster-workspace select,.cluster-workspace input{display:block;width:100%;border:1px solid #d7deea;border-radius:9px;background:#fff;color:#1d2a40;outline:0;margin-top:5px}.cluster-add-form input,.cluster-workspace select,.cluster-workspace input{height:40px;padding:0 9px}.cluster-add-form textarea{padding:10px;min-height:150px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;line-height:1.45}.cluster-add-form input:focus,.cluster-add-form textarea:focus,.cluster-workspace select:focus,.cluster-workspace input:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.kubeconfig-upload-label input{padding-top:8px}.kubeconfig-upload-label span{display:block;font-size:8.5px;color:#8996aa;margin-top:4px;font-weight:500}.cluster-kubeconfig-label{display:block;margin-top:10px}.cluster-security-note{margin-top:10px;border:1px solid #e5eaf2;background:#fafbfd;border-radius:9px;padding:10px 11px;font-size:9px;color:#6e7b91;line-height:1.5}.cluster-workspace{margin-top:16px;border-top:1px solid #edf0f4;padding-top:15px}.cluster-workspace-toolbar{display:grid;grid-template-columns:1fr 1fr 90px;gap:10px;align-items:end;margin-bottom:12px}.cluster-workspace-toolbar label{font-size:9px;font-weight:700;color:#617089}.cluster-workspace-toolbar .secondary-btn{height:40px}.cluster-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}.cluster-summary-grid>.skeleton-line{grid-column:1/-1}.cluster-kpi{border:1px solid #e1e6ee;border-radius:11px;padding:12px;background:#fff;min-width:0}.cluster-kpi span,.cluster-kpi strong,.cluster-kpi small{display:block}.cluster-kpi span{font-size:8.5px;color:#8793a6;text-transform:uppercase;letter-spacing:.05em}.cluster-kpi strong{font-size:19px;color:#1e2b42;margin:6px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cluster-kpi small{font-size:8.5px;color:#8995a9;line-height:1.4}.cluster-resource-tabs{display:flex;gap:6px;padding:3px;border:1px solid #e0e6ef;border-radius:10px;background:#f8fafc;width:max-content;max-width:100%;margin-bottom:10px}.cluster-resource-tabs button{height:31px;border:0;background:transparent;border-radius:7px;padding:0 12px;font-size:9px;font-weight:750;color:#68768d;cursor:pointer}.cluster-resource-tabs button.active{background:#fff;color:#1f5fd4;box-shadow:0 1px 4px rgba(15,23,42,.08)}.cluster-resource-table{min-height:80px;margin-bottom:12px}.cluster-table{min-width:700px}.event-type{display:inline-flex;padding:3px 6px;border-radius:99px;background:#eef2f7;color:#66758d;font-size:8px;font-weight:750}.event-type.warning{background:#fff3db;color:#a46400}.cluster-tools-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:10px}.cluster-mini-form,.cluster-write-box{border:1px solid #e3e8ef;border-radius:11px;padding:13px;background:#fff}.cluster-mini-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px 100px;gap:7px;align-items:end}.cluster-mini-form>div{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.cluster-mini-form strong,.cluster-write-head strong{font-size:11px}.cluster-mini-form small{font-size:8px;color:#178a62;font-weight:800}.cluster-mini-form .secondary-btn{height:40px}.cluster-write-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.cluster-write-head span{font-size:8.5px;color:#9a6500}.cluster-write-form{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:7px;margin-top:7px}.cluster-write-form.scale{grid-template-columns:minmax(0,1fr) 70px 90px}.cluster-write-form.node{grid-template-columns:minmax(0,1fr) 100px 80px}.cluster-write-form button{height:40px;border:1px solid #ffd18a;background:#fff9ed;color:#995d00;border-radius:9px;font-size:9px;font-weight:800;cursor:pointer}.cluster-result-panel{margin-top:12px;margin-bottom:0}
@media(max-width:1100px){.cluster-list{grid-template-columns:1fr}.cluster-summary-grid{grid-template-columns:1fr 1fr}.cluster-tools-grid{grid-template-columns:1fr}.cluster-form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.cluster-manager-panel{padding:14px}.cluster-manager-title{flex-direction:column;align-items:stretch}.cluster-manager-title .secondary-btn{width:100%}.cluster-form-grid,.cluster-workspace-toolbar{grid-template-columns:1fr}.cluster-summary-grid{grid-template-columns:1fr 1fr}.cluster-resource-tabs{width:100%}.cluster-resource-tabs button{flex:1;padding:0 5px}.cluster-mini-form{grid-template-columns:1fr 1fr}.cluster-mini-form>div{grid-column:1/-1}.cluster-write-form,.cluster-write-form.scale,.cluster-write-form.node{grid-template-columns:1fr}.cluster-table{min-width:620px}}
@media(max-width:470px){.cluster-form-grid,.cluster-summary-grid{grid-template-columns:1fr}.cluster-mini-form{grid-template-columns:1fr}.cluster-resource-tabs{overflow:auto}.cluster-resource-tabs button{flex:none}}

/* Phase 3.3 — Identity, workspace and RBAC */
.login-divider{display:flex;align-items:center;gap:10px;margin:17px 0;color:#9aa6b8;font-size:10px}.login-divider:before,.login-divider:after{content:"";height:1px;background:#e6eaf0;flex:1}.sso-login-btn{height:44px;border:1px solid #d6deea;border-radius:11px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#2f466b;font-size:12px;font-weight:750;background:#fff}.sso-login-btn:hover{background:#f7f9fc;border-color:#c4d0e2}
.workspace-scope-select{height:36px;max-width:190px;border:1px solid #dfe5ee;border-radius:10px;background:#fff;color:#44536c;padding:0 27px 0 10px;font-size:10px;font-weight:700;outline:0;cursor:pointer}.workspace-scope-select:focus{border-color:#98b2ee;box-shadow:0 0 0 3px rgba(47,109,246,.07)}
.admin-view{max-width:980px;margin:0 auto;padding:20px 0 40px}.admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.admin-head h2{font-size:24px;margin:0 0 5px}.admin-head p{font-size:11px;color:#77859c;margin:0;line-height:1.55;max-width:690px}.admin-head-actions{display:flex;align-items:center;gap:8px}.rbac-badge{font-size:8px;font-weight:850;letter-spacing:.08em;border-radius:99px;padding:6px 9px;background:#eef4ff;color:#2763d7}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.admin-stats article{border:1px solid #e0e6ef;border-radius:12px;padding:14px;background:#fff}.admin-stats span,.admin-stats strong{display:block}.admin-stats span{font-size:9px;color:#8592a5;text-transform:uppercase;letter-spacing:.05em}.admin-stats strong{font-size:22px;margin-top:7px;color:#1e2b42}.user-create-panel,.users-panel{border:1px solid #dfe5ee;border-radius:14px;padding:17px;background:#fff;margin-bottom:14px}.user-create-form{display:grid;grid-template-columns:1.1fr 1.25fr .7fr 1.1fr;gap:9px;align-items:end}.user-create-form label{font-size:9px;font-weight:750;color:#64728a}.user-create-form input,.user-create-form select,.user-card-actions select{display:block;width:100%;height:40px;border:1px solid #d8e0eb;border-radius:9px;padding:0 9px;background:#fff;outline:0;margin-top:5px;color:#283750}.user-create-form .family-check{grid-column:1/3;height:38px;display:flex;align-items:center;gap:7px}.user-create-form .family-check input{width:16px;height:16px;margin:0}.user-create-form .primary-btn{grid-column:3/5}.user-list{display:flex;flex-direction:column;gap:8px}.user-card{border:1px solid #e5eaf1;border-radius:11px;padding:11px 12px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px}.user-card-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eef4ff;color:#2860d5;font-size:11px;font-weight:850}.user-card-copy{min-width:0}.user-card-copy strong,.user-card-copy span,.user-card-copy small{display:block}.user-card-copy strong{font-size:12px}.user-card-copy span{font-size:10px;color:#6f7d93;margin-top:2px}.user-card-copy small{font-size:8.5px;color:#9aa5b6;margin-top:4px}.user-card-actions{display:flex;align-items:center;gap:7px}.user-card-actions select{width:92px;margin:0;height:34px;font-size:9px}.user-card-actions button{height:34px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#53627a;font-size:9px;font-weight:750;padding:0 10px;cursor:pointer}.user-card-actions button:hover{background:#f7f9fc}.owner-lock{font-size:8px;font-weight:850;letter-spacing:.08em;color:#2563eb;background:#eef4ff;border-radius:99px;padding:6px 9px}
@media(max-width:820px){.workspace-scope-select{max-width:105px;height:34px}.admin-view{padding:10px 0 28px}.admin-head{flex-direction:column}.admin-stats{grid-template-columns:1fr 1fr}.user-create-form{grid-template-columns:1fr}.user-create-form .family-check,.user-create-form .primary-btn{grid-column:auto}.user-card{grid-template-columns:38px minmax(0,1fr)}.user-card-actions{grid-column:1/-1;justify-content:flex-end}}

.projects-view{width:100%;max-width:1120px;min-width:0;margin:0 auto;padding:20px 0 92px}.projects-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.projects-head h2{font-size:24px;letter-spacing:-.03em;margin:0 0 6px}.projects-head p{margin:0;color:#74819b;font-size:12px;line-height:1.55;max-width:760px}.projects-head-actions{display:flex;align-items:center;gap:8px;flex:none}.project-active-badge{display:inline-flex;align-items:center;height:30px;border-radius:99px;padding:0 10px;background:#eaf8f1;color:#16815a;font-size:8px;font-weight:850;letter-spacing:.06em}.project-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.project-stats article{border:1px solid #dfe5ee;border-radius:13px;background:#fff;padding:14px;min-width:0}.project-stats span,.project-stats strong,.project-stats small{display:block}.project-stats span{font-size:9px;color:#7d8ba4;text-transform:uppercase;letter-spacing:.06em;font-weight:750}.project-stats strong{font-size:21px;margin:7px 0 4px}.project-stats small{font-size:9px;color:#929daf}.project-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.project-panel{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:17px;margin-bottom:14px;min-width:0}.repo-connection-form,.project-create-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:end}.repo-connection-form label,.project-create-form label{font-size:9px;font-weight:750;color:#64728a;min-width:0}.repo-connection-form input,.repo-connection-form select,.project-create-form input,.project-create-form select,.project-create-form textarea{display:block;width:100%;border:1px solid #d8e0eb;border-radius:9px;background:#fff;color:#283750;margin-top:5px;padding:0 9px;outline:0}.repo-connection-form input,.repo-connection-form select,.project-create-form input,.project-create-form select{height:40px}.project-create-form textarea{padding:9px;resize:vertical;min-height:68px}.repo-connection-form input:focus,.repo-connection-form select:focus,.project-create-form input:focus,.project-create-form select:focus,.project-create-form textarea:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.repo-connection-form .primary-btn,.project-create-form .primary-btn{grid-column:1/-1}.repo-url-field,.project-description-field{grid-column:1/-1}.repo-connection-list{display:flex;flex-direction:column;gap:7px;margin-top:12px}.repo-connection-card{border:1px solid #e6eaf1;border-radius:10px;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.repo-connection-copy strong,.repo-connection-copy span,.repo-connection-copy small{display:block}.repo-connection-copy strong{font-size:11px}.repo-connection-copy span{font-size:9px;color:#718099;margin-top:2px}.repo-connection-copy small{font-size:8px;color:#98a3b4;margin-top:3px}.repo-connection-actions{display:flex;gap:6px}.repo-connection-actions button{height:30px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:#53627a;font-size:8px;font-weight:750;padding:0 8px;cursor:pointer}.repo-connection-actions button:hover{background:#f7f9fc}.repo-connection-actions .delete{color:#be3d3d}.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.project-card{border:1px solid #e4e9f0;border-radius:12px;background:#fbfcfe;padding:13px;cursor:pointer;min-width:0;transition:.15s ease}.project-card:hover{border-color:#cbd7ea;box-shadow:0 5px 14px rgba(15,23,42,.05)}.project-card.active{border-color:#9cb8ef;background:#f4f8ff}.project-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.project-card strong{font-size:12px}.project-provider-pill{display:inline-flex;padding:4px 7px;border-radius:99px;background:#edf3ff;color:#2863ce;font-size:8px;font-weight:800;text-transform:uppercase}.project-card-url{display:block;font-size:9px;color:#6e7c92;margin:7px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-card-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:8px;color:#7e8ba0}.project-sync.ok{color:#149767}.project-sync.error{color:#d13b3b}.project-sync.never{color:#8a97aa}.project-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.project-detail-head h3{font-size:21px;margin:6px 0 3px}.project-detail-head a{font-size:9px;color:#3171e5;overflow-wrap:anywhere}.project-detail-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.project-detail-actions .secondary-btn{height:35px;padding:0 11px}.project-danger-btn{height:35px;border:1px solid #f0caca;background:#fff;color:#c23d3d;border-radius:9px;padding:0 11px;font-size:9px;font-weight:750;cursor:pointer}.project-detail-meta{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}.project-detail-meta span{display:inline-flex;padding:5px 8px;border-radius:8px;background:#f5f7fa;color:#58667d;font-size:8px}.project-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.project-detail-grid.lower{margin-top:5px}.project-mini-list,.project-tree{border:1px solid #e7ebf1;border-radius:10px;overflow:auto;max-height:280px}.project-mini-row{padding:9px 10px;border-bottom:1px solid #edf0f4}.project-mini-row:last-child{border-bottom:0}.project-mini-row strong,.project-mini-row span,.project-mini-row small{display:block}.project-mini-row strong{font-size:9.5px}.project-mini-row span{font-size:8.5px;color:#627087;margin-top:3px;overflow-wrap:anywhere}.project-mini-row small{font-size:7.5px;color:#98a3b3;margin-top:3px}.project-tree-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:7px;padding:8px 10px;border-bottom:1px solid #edf0f4;font-size:8.5px}.project-tree-row:last-child{border-bottom:0}.project-tree-row span:nth-child(2){overflow-wrap:anywhere}.project-readme{height:280px;margin:0;border:1px solid #e7ebf1;border-radius:10px;background:#f8fafc;color:#26344c;padding:11px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:8.5px;line-height:1.45}.project-empty{border:1px dashed #d9e0e9;border-radius:10px;padding:18px;text-align:center;color:#728097;font-size:9px}.project-empty.wide{grid-column:1/-1}

@container (max-width:1050px){.project-config-grid,.project-detail-grid{grid-template-columns:1fr}.project-list{grid-template-columns:1fr}.project-stats{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.projects-view{padding:10px 0 82px}.projects-head{flex-direction:column}.projects-head-actions{width:100%;justify-content:space-between}.project-stats{grid-template-columns:1fr 1fr}.repo-connection-form,.project-create-form{grid-template-columns:1fr}.repo-url-field,.project-description-field,.repo-connection-form .primary-btn,.project-create-form .primary-btn{grid-column:auto}.project-detail-head{flex-direction:column}.project-detail-actions{justify-content:flex-start}.project-panel{padding:14px}.project-readme{height:220px}}

/* Phase 3.5-4.3 engineering platform */
.engineering-grid,.advanced-agent-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.engineering-card,.advanced-agent-panel{border:1px solid #dfe5ee;border-radius:14px;background:#fff;padding:16px;margin-top:12px;min-width:0}.engineering-grid .engineering-card{margin-top:0}.engineering-form,.advanced-agent-form,.incident-form,.connector-form,.notification-channel-form,.knowledge-source-form{display:grid;gap:8px}.engineering-form textarea,.engineering-form input,.advanced-agent-form input,.advanced-agent-form select,.incident-form input,.incident-form textarea,.connector-form input,.connector-form select,.connector-form textarea,.notification-channel-form input,.notification-channel-form select,.notification-channel-form textarea,.knowledge-source-form input,.knowledge-source-form select{width:100%;border:1px solid #d7deea;border-radius:9px;background:#fff;color:#1d2a40;padding:9px;outline:0}.engineering-form textarea,.incident-form textarea,.connector-form textarea,.notification-channel-form textarea{resize:vertical}.engineering-result{margin-top:10px;border:1px solid #e7ebf1;border-radius:10px;background:#fafbfd;padding:12px;font-size:11px;line-height:1.55;max-height:330px;overflow:auto;overflow-wrap:anywhere}.engineering-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.engineering-actions button,.advanced-row button,.incident-row button{border:1px solid #dbe3ee;border-radius:8px;background:#fff;color:#315fcb;padding:7px 9px;font-size:9px;font-weight:750;cursor:pointer}.engineering-scan-btn{margin-top:8px}.advanced-agent-form.stacked{grid-template-columns:1.2fr .8fr .7fr .8fr auto;align-items:end}.advanced-list{display:flex;flex-direction:column;gap:7px;margin-top:10px}.advanced-row,.incident-row,.knowledge-source-card{border:1px solid #e5eaf1;border-radius:10px;padding:10px 11px;display:flex;justify-content:space-between;gap:10px;align-items:flex-start;background:#fbfcfe;min-width:0}.advanced-row>div:first-child,.incident-row>div:first-child,.knowledge-source-card>div:first-child{min-width:0}.advanced-row strong,.advanced-row span,.advanced-row small,.incident-row strong,.incident-row span,.knowledge-source-card strong,.knowledge-source-card span,.knowledge-source-card small{display:block}.advanced-row strong,.incident-row strong,.knowledge-source-card strong{font-size:10.5px}.advanced-row span,.incident-row span,.knowledge-source-card span{font-size:9px;color:#6e7c92;margin-top:3px;overflow-wrap:anywhere}.advanced-row small,.knowledge-source-card small{font-size:8px;color:#98a2b2;margin-top:4px}.incident-row p{font-size:9.5px;color:#435168;line-height:1.5;margin:7px 0 0}.connector-form{grid-template-columns:.7fr 1fr 1.5fr .7fr;align-items:end}.connector-form textarea{grid-column:1/4}.connector-form .family-check{align-self:center}.notification-channel-form{grid-template-columns:.7fr 1fr 1.4fr auto;align-items:end;margin-top:10px}.knowledge-source-form{grid-template-columns:1.1fr .8fr .8fr 1fr auto auto;align-items:end;margin-bottom:12px}.knowledge-v2-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.knowledge-v2-stats article{border:1px solid #e4e9f1;border-radius:10px;padding:10px;background:#fbfcfe}.knowledge-v2-stats span,.knowledge-v2-stats strong{display:block}.knowledge-v2-stats span{font-size:8px;color:#8390a4;text-transform:uppercase}.knowledge-v2-stats strong{font-size:18px;margin-top:5px}.knowledge-source-list{display:flex;flex-direction:column;gap:7px}.knowledge-source-card button{border:1px solid #dbe3ee;border-radius:8px;background:#fff;color:#315fcb;padding:7px 10px;font-size:9px;cursor:pointer}
@media(max-width:900px){.engineering-grid,.advanced-agent-grid{grid-template-columns:1fr}.advanced-agent-form.stacked,.connector-form,.notification-channel-form,.knowledge-source-form{grid-template-columns:1fr}.connector-form textarea{grid-column:auto}.knowledge-v2-stats{grid-template-columns:1fr 1fr}.engineering-actions button{flex:1 1 120px}}@media(max-width:520px){.knowledge-v2-stats{grid-template-columns:1fr 1fr}.advanced-row,.incident-row,.knowledge-source-card{flex-direction:column}.advanced-row>div:last-child{display:flex;gap:6px}.engineering-card,.advanced-agent-panel{padding:12px}}
.model-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.model-health-card{border:1px solid #e4e9f1;border-radius:10px;padding:10px;background:#fbfcfe;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:center}.model-health-card strong,.model-health-card span,.model-health-card small{display:block}.model-health-card strong{font-size:10px}.model-health-card span,.model-health-card small{font-size:8px;color:#8490a3;margin-top:2px}.model-health-card small{grid-column:1/-1}.model-health-card b{font-size:8px;border-radius:99px;padding:4px 7px;background:#eaf8f1;color:#16845f}.model-health-card.degraded b,.model-health-card.rate_limited b{background:#fff3db;color:#a46400}.model-budget-warning{grid-column:1/-1;border:1px solid #ffd9a0;background:#fff8ea;color:#966000;border-radius:9px;padding:9px;font-size:9px}@media(max-width:620px){.model-health-grid{grid-template-columns:1fr}}
.model-budget-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:8px;align-items:end;margin-top:12px}.model-budget-form label{font-size:8px;color:#6f7d92;font-weight:700}.model-budget-form input{display:block;width:100%;height:36px;border:1px solid #d9e0ea;border-radius:8px;padding:0 8px;margin-top:4px}@media(max-width:800px){.model-budget-form{grid-template-columns:1fr 1fr}.model-budget-form button{grid-column:1/-1}}

/* Account & Security Center */
.account-trigger{cursor:pointer}
.account-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:24px}
.account-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.34);backdrop-filter:blur(2px)}
.account-card{position:relative;width:min(920px,96vw);max-height:min(820px,92dvh);overflow:auto;background:#fff;border:1px solid #dfe5ee;border-radius:20px;padding:24px;box-shadow:0 28px 80px rgba(15,23,42,.22)}
.account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.account-head span{font-size:9px;letter-spacing:.12em;color:#6680a8;font-weight:800}
.account-head h2{font-size:26px;letter-spacing:-.03em;margin:4px 0 2px}
.account-head p{margin:0;color:#7d8ba4;font-size:11px}
.account-identity{border:1px solid #e1e7ef;border-radius:14px;padding:14px;margin-bottom:14px;background:#fbfcff}
.account-identity-row{display:flex;align-items:center;gap:12px}
.account-identity-copy{min-width:0;flex:1}.account-identity-copy strong,.account-identity-copy span{display:block}
.account-identity-copy strong{font-size:14px}.account-identity-copy span{font-size:10px;color:#7c899e;margin-top:3px}
.account-security-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.account-security-badges i{font-style:normal;font-size:8px;border-radius:99px;padding:4px 7px;background:#edf3ff;color:#285fbd;font-weight:800}
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.account-section{border:1px solid #e1e7ef;border-radius:14px;padding:15px;background:#fff}
.account-form{display:flex;flex-direction:column;gap:10px}.account-form label{font-size:9px;font-weight:750;color:#596881}
.account-form label small{font-weight:500;color:#8b97aa}.account-form input{display:block;width:100%;height:41px;border:1px solid #d7deea;border-radius:9px;margin-top:5px;padding:0 10px;outline:0;color:#1f2c44;background:#fff}
.account-form input:focus{border-color:#91adf5;box-shadow:0 0 0 3px rgba(47,109,246,.07)}.account-form input:disabled{background:#f5f7fa;color:#8b96a7}
.account-hint{font-size:8.5px;line-height:1.45;color:#7f8da3;background:#f8fafc;border-radius:8px;padding:8px 9px}
.account-sessions{margin-top:14px}.account-sessions .section-title{align-items:center}.account-sessions .secondary-btn{height:36px;font-size:9px}
.account-session-list{display:flex;flex-direction:column;gap:8px}
.account-session-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border-top:1px solid #edf0f4;padding:10px 2px 2px}
.account-session-row:first-child{border-top:0;padding-top:2px}
.account-session-copy{min-width:0}.account-session-copy strong,.account-session-copy span{display:block}
.account-session-copy strong{font-size:10px}.account-session-copy span{font-size:8.5px;color:#8591a5;margin-top:3px}
.account-current-badge{display:inline-flex!important;width:max-content;margin-top:5px!important;border-radius:99px;background:#e9f8f1;color:#138461!important;padding:3px 7px;font-weight:800}
.account-session-remove{height:31px;border:1px solid #f0d1d1;background:#fff7f7;color:#bd3c3c;border-radius:8px;padding:0 10px;font-size:8.5px;font-weight:750;cursor:pointer}
.account-empty{font-size:10px;color:#8794a8;padding:7px 0}
@media(max-width:720px){
  .account-modal{padding:0;align-items:end}
  .account-card{width:100%;max-width:none;max-height:94dvh;border-radius:20px 20px 0 0;padding:18px}
  .account-grid{grid-template-columns:1fr}
  .account-security-badges{justify-content:flex-start}
  .account-identity-row{align-items:flex-start;flex-wrap:wrap}
  .account-sessions .section-title{align-items:flex-start;gap:8px;flex-direction:column}
  .account-sessions .secondary-btn{width:100%}
}
