/* AIBOT v5.1 precise identity patch
   Covers: futuristic product front, 1Panel-inspired but distinct admin console, softer installer, fixed icon sizes. */
:root{
  --v51-bg:#f3f6fb;
  --v51-side:#eef5ff;
  --v51-side2:#e8f0fb;
  --v51-line:#dbe5f1;
  --v51-blue:#2f6bff;
  --v51-cyan:#20d4d8;
  --v51-violet:#7768ff;
  --v51-ink:#132033;
  --v51-soft:#65738a;
  --v51-card:#ffffff;
  --v51-shadow:0 14px 36px rgba(28,43,71,.075);
}
body{font-weight:400;letter-spacing:0;color:var(--v51-ink)}
.brand-logo{background-image:url('../img/aibot-nexus.svg')!important;background-color:#08111f!important;border:1px solid rgba(79,124,255,.28)}
.brand-copy b{font-weight:580!important;letter-spacing:-.035em}.brand-copy small{font-weight:400!important}
/* Front: Apple/Detroit style product website, not childish SaaS template */
.front-body{background:#050714;color:#eef5ff;overflow-x:hidden}.front-body:before{content:"";position:fixed;inset:0;z-index:-3;background:radial-gradient(circle at 16% 6%,rgba(47,107,255,.28),transparent 28%),radial-gradient(circle at 86% 18%,rgba(32,212,216,.14),transparent 28%),radial-gradient(circle at 52% 92%,rgba(119,104,255,.18),transparent 30%),#050714}.front-body:after{content:"";position:fixed;inset:0;z-index:-2;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:72px 72px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),rgba(0,0,0,.15));pointer-events:none}.front-nav{height:76px;background:rgba(5,7,20,.62)!important;border-bottom:1px solid rgba(255,255,255,.10)!important;backdrop-filter:blur(22px);box-shadow:none!important}.front-nav nav a{color:#b8c4d9!important;font-weight:400!important}.front-nav nav a:hover{color:#fff!important}.front-nav .btn-ghost{background:rgba(255,255,255,.06);color:#dce9ff;border-color:rgba(255,255,255,.14)}.front-nav .btn-primary{background:linear-gradient(135deg,#f8fbff,#b6d3ff);color:#07101f;box-shadow:0 16px 38px rgba(110,168,255,.22)}
.hero{min-height:760px;padding-top:96px!important;padding-bottom:76px!important;position:relative}.hero:before{content:"";position:absolute;left:50%;top:120px;width:760px;height:760px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(47,107,255,.16),transparent 60%);filter:blur(8px);z-index:-1}.eyebrow{display:inline-flex;padding:8px 12px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.055);color:#9bdcff!important;box-shadow:inset 0 0 24px rgba(32,212,216,.05);font-weight:500}.hero h1{font-weight:520!important;letter-spacing:-.07em!important;line-height:.98!important}.hero p{font-size:17px;line-height:1.95;color:#aab7cc!important;max-width:680px}.grad{background:linear-gradient(100deg,#fff,#bcd8ff 42%,#6ff4ff 70%,#a79bff)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important}.hero-visual{border:1px solid rgba(255,255,255,.12)!important;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035))!important;box-shadow:0 40px 130px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.12)!important;backdrop-filter:blur(18px);overflow:hidden}.hero-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:34px 34px;opacity:.7}.hero-visual:after{content:"AIBOT CORE\AAdapter Layer / Channel Matrix / Runner Control";white-space:pre;position:absolute;left:30px;bottom:28px;color:rgba(226,238,255,.58);font:12px/1.8 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em}.core-node{box-shadow:0 0 0 1px rgba(255,255,255,.14),0 0 80px rgba(47,107,255,.38)!important;background:#07101f}.orbit-chip{border-color:rgba(255,255,255,.14)!important;background:rgba(8,16,31,.72)!important;box-shadow:0 16px 44px rgba(0,0,0,.22);color:#dbeafe!important}.section{padding-top:74px!important;padding-bottom:34px!important}.section-head h2{font-weight:520!important;letter-spacing:-.055em!important;color:#f8fbff!important}.section-head p{color:#9aa8bd!important}.front-body .card{background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035))!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 28px 90px rgba(0,0,0,.28)!important;backdrop-filter:blur(16px)}.front-body .card h2,.front-body .card h3{color:#f8fbff!important;font-weight:520!important}.front-body .card p{color:#aab7cc!important}.front-metric{background:rgba(255,255,255,.055)!important;border-color:rgba(255,255,255,.12)!important}.front-metric strong{font-weight:520!important;color:#fff}.flow-step{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important}.flow-step h3{font-weight:520;color:#fff}.flow-step p{color:#9aa8bd}.tech-row{background:rgba(255,255,255,.055)!important;border-color:rgba(255,255,255,.10)!important}.tech-row b{font-weight:500}.front-footer{background:#050714!important;border-color:rgba(255,255,255,.09)!important;color:#8fa0bb!important}
/* Admin: reference layout logic, not copied. Side icons fixed, softer font, panel-like dashboard. */
.dash-body{background:var(--v51-bg)!important;color:var(--v51-ink);font-size:14px}.sidebar{width:236px!important;background:linear-gradient(180deg,#f4f8ff 0%,#eaf2fc 100%)!important;border-right:1px solid #d8e3f1!important;box-shadow:8px 0 24px rgba(31,60,98,.04)}.side-brand{height:64px!important;padding:0 16px!important}.side-brand .brand-logo{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:12px}.side-menu{padding:10px 8px!important}.side-section{font-size:11px!important;color:#7d8aa0!important;font-weight:500!important;letter-spacing:.06em!important}.side-item{height:40px!important;margin:3px 0!important;border-radius:8px!important;padding:0 10px!important;gap:10px!important;color:#34465f!important;font-weight:400!important;transform:none!important}.side-item:hover{background:rgba(47,107,255,.07)!important;color:#1f5eff!important;transform:none!important}.side-item.active{background:#fff!important;color:#185cff!important;border:1px solid rgba(47,107,255,.34)!important;box-shadow:0 8px 20px rgba(47,107,255,.08);font-weight:500!important}.side-item:before{display:none!important}.side-icon{width:22px!important;height:22px!important;flex:0 0 22px!important;border-radius:6px!important;background:transparent!important;border:0!important;color:currentColor!important}.side-icon svg,.side-icon svg *{width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;display:block!important;fill:currentColor!important;stroke:none!important}.topbar{height:58px!important;background:rgba(255,255,255,.92)!important;border-bottom:1px solid #dbe5f1!important;padding:0 20px!important;box-shadow:0 1px 4px rgba(34,50,84,.04)}.top-title strong{font-size:15px!important;font-weight:500!important}.top-title span{font-size:12px;color:#78869b!important}.top-actions .btn{height:32px;min-height:32px;border-radius:8px;padding:7px 12px;font-size:13px;font-weight:400}.top-icon-btn{width:32px!important;height:32px!important;border-radius:8px!important;background:#fff!important}.top-icon-btn svg{width:15px!important;height:15px!important}.dot{transform:scale(.86);transform-origin:top right}.dash-content{padding:18px!important}.toolbar{background:#fff;border:1px solid var(--v51-line);border-radius:12px;box-shadow:var(--v51-shadow);padding:16px;margin-bottom:14px}.toolbar-title h2{font-size:19px!important;font-weight:500!important}.toolbar-title p{font-size:12px}.card,.panel,.table-card{border-radius:12px!important;border:1px solid var(--v51-line)!important;box-shadow:var(--v51-shadow)!important}.stat-card{border-radius:12px!important;box-shadow:var(--v51-shadow)!important;border-color:var(--v51-line)!important;padding:18px!important}.stat-card span{font-size:12px}.stat-card strong{font-size:26px!important;font-weight:500!important}.stats-grid{gap:10px!important;margin-bottom:12px!important}.btn{border-radius:9px!important;font-weight:400!important;max-width:max-content}.btn-primary{background:#2f6bff!important;box-shadow:0 8px 20px rgba(47,107,255,.20)!important}.btn-light{background:#edf4ff!important;color:#185cff!important;border-color:#d2e1ff!important}.btn-ghost,.btn-secondary{background:#fff!important;border-color:#dce5f2!important;color:#42526a!important}.btn-danger,.btn.danger{background:#fff1f2!important;color:#c0192f!important}.form label{font-weight:400!important;color:#334155}.form input,.form select,.form textarea{border-radius:9px!important;border-color:#dbe5f1!important;background:#fff}.table-card table th{font-weight:500!important;color:#66758c!important;background:#f8fbff!important}.table-card table td{font-weight:400!important}.badge{font-weight:400!important}
/* Screenshot-inspired dashboard grid */
.console-tabs{height:42px;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--v51-line);border-radius:10px;padding:4px;margin-bottom:12px;box-shadow:var(--v51-shadow)}.console-tab{height:32px;display:inline-flex;align-items:center;padding:0 16px;border-radius:8px;color:#607086;font-size:13px}.console-tab.active{color:#185cff;border:1px solid rgba(47,107,255,.38);background:#f5f9ff;box-shadow:0 5px 14px rgba(47,107,255,.08)}.ops-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:12px}.ops-main{display:grid;gap:12px}.ops-side{display:grid;gap:12px;align-content:start}.ops-card{background:#fff;border:1px solid var(--v51-line);border-radius:12px;box-shadow:var(--v51-shadow);padding:18px}.ops-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.ops-card-title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500}.ops-card-title:before{content:"";width:4px;height:16px;border-radius:999px;background:linear-gradient(180deg,#2f6bff,#20d4d8)}.ops-actions{display:flex;gap:8px;color:#8b98ab}.ops-actions span{width:26px;height:26px;border-radius:8px;background:#f7faff;display:inline-flex;align-items:center;justify-content:center}.ops-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.ops-kpi{text-align:center;padding:8px 6px}.ops-kpi span{display:block;font-size:12px;color:#69778c}.ops-kpi strong{display:block;margin-top:12px;font-size:22px;font-weight:500;color:#185cff}.status-rings{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;padding:18px 8px 6px}.status-ring{text-align:center}.status-ring .ring{width:112px;height:112px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--v51-blue) calc(var(--p)*1%),#edf3fb 0);position:relative}.status-ring .ring:before{content:"";position:absolute;inset:9px;border-radius:50%;background:#fff;border:6px solid #f4f8fd}.status-ring .ring b{position:relative;font-size:18px;font-weight:500}.status-ring span{display:block;color:#6f7d91;font-size:12px}.monitor-box{height:230px;border-radius:10px;border:1px dashed #d2deec;background:linear-gradient(#fff,#fbfdff);position:relative;overflow:hidden}.monitor-box:before{content:"";position:absolute;left:30px;right:30px;top:28px;bottom:28px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 44px,#e7eef7 45px);opacity:.9}.monitor-box:after{content:"NET I/O · WAITING FOR SAMPLE";position:absolute;left:28px;top:18px;font-size:11px;color:#9aa7ba;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}.app-mini-list{display:grid;gap:9px}.app-mini{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:11px;border:1px solid #e6edf6;border-radius:11px;background:#fff}.app-mini-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#f0f6ff,#e9fffb);display:grid;place-items:center;color:#185cff;font-weight:600}.app-mini strong{font-weight:500}.app-mini p{margin:3px 0 0;font-size:12px;color:#7a889c}.memo-empty{height:142px;display:grid;place-items:center;text-align:center;color:#a0abbb}.quick-list{display:grid;gap:9px}.quick-list a{display:flex;justify-content:space-between;align-items:center;border:1px solid #e6edf6;border-radius:10px;padding:11px 12px;color:#34465f;background:#fff}.quick-list a:hover{border-color:#bcd0ff;color:#185cff;background:#f7faff}
/* Installer: softer but technical */
.install-page{background:#050714!important}.install-card{border-radius:24px!important}.install-card h2{font-weight:500!important}.install-step{border-radius:12px!important}.install-left h1{font-weight:520!important;letter-spacing:-.065em!important}.install-card .btn{width:auto!important;max-width:max-content!important}.install-card #installBtn,.install-card #dbCheckBtn{min-width:140px!important}.install-card .form .span2 .btn{margin-right:8px}.field-help{font-style:normal!important}.db-check-row{justify-content:flex-start!important}
@media(max-width:1180px){.ops-layout{grid-template-columns:1fr}.ops-kpis,.status-rings{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.ops-kpis,.status-rings{grid-template-columns:1fr}.console-tabs{overflow:auto}.sidebar{display:none!important}.hero{min-height:auto!important}.front-body .section{padding-top:46px!important}}
.nexus-console-card{position:absolute;right:26px;top:28px;width:220px;padding:14px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(7,16,31,.72);box-shadow:0 20px 70px rgba(0,0,0,.30);backdrop-filter:blur(12px);display:grid;gap:7px}.nexus-console-card b{font:11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;color:#9bdcff}.nexus-console-card span{font-size:12px;color:#b9c7dd}.nexus-console-card i{height:7px;border-radius:99px;background:linear-gradient(90deg,rgba(47,107,255,.85),rgba(32,212,216,.25));display:block}.nexus-console-card i:nth-child(4){width:72%}.nexus-console-card i:nth-child(5){width:48%;background:linear-gradient(90deg,rgba(119,104,255,.85),rgba(32,212,216,.18))}
.ops-actions span:before{content:"";width:13px;height:13px;display:block;background:currentColor;opacity:.7;mask:center/contain no-repeat}.ops-actions .ico-setting:before{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.4 13.5c.1-.5.1-1 .1-1.5s0-1-.1-1.5l2-1.5-2-3.5-2.4 1a8 8 0 0 0-2.5-1.5L14.2 2h-4.4l-.3 2.5A8 8 0 0 0 7 6L4.6 5l-2 3.5 2 1.5a8 8 0 0 0 0 3l-2 1.5 2 3.5L7 18a8 8 0 0 0 2.5 1.5l.3 2.5h4.4l.3-2.5A8 8 0 0 0 17 18l2.4 1 2-3.5-2-1.5ZM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7.5Z"/></svg>')}.ops-actions .ico-refresh:before{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.7 6.3A8 8 0 1 0 20 12h-2a6 6 0 1 1-1.8-4.2L13 11h8V3l-3.3 3.3Z"/></svg>')}.ops-actions .ico-eye:before{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 5c5 0 9 4.5 10 7-1 2.5-5 7-10 7s-9-4.5-10-7c1-2.5 5-7 10-7Zm0 3.2a3.8 3.8 0 1 0 0 7.6 3.8 3.8 0 0 0 0-7.6Z"/></svg>')}.ops-actions .ico-grid:before{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 4h7v7H4V4Zm9 0h7v7h-7V4ZM4 13h7v7H4v-7Zm9 0h7v7h-7v-7Z"/></svg>')}

/* v7.1 backend interaction standardization */
.admin-page{display:block}.page-head-card{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid #dfe8f5;border-radius:14px;box-shadow:0 18px 48px rgba(31,60,98,.06);padding:16px 18px;margin-bottom:14px}.page-head-card h2{font-size:18px;font-weight:500;margin:0 0 5px;color:#1f2937}.page-head-card p{margin:0;color:#66758c;font-size:12px;line-height:1.7}.admin-filterbar{display:flex;align-items:end;justify-content:space-between;gap:12px;background:#fff;border:1px solid #dfe8f5;border-radius:14px;box-shadow:0 14px 38px rgba(31,60,98,.05);padding:12px 14px;margin-bottom:12px}.filter-left{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.filter-left label{display:grid;gap:5px;font-size:12px;color:#718096;font-weight:400}.filter-left input,.filter-left select{height:34px;border:1px solid #dbe5f1;background:#fff;border-radius:9px;padding:0 10px;color:#34465f;min-width:150px}.filter-left .search-control input{min-width:230px}.filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn-danger-soft{background:#fff1f2!important;color:#c0192f!important;border:1px solid #fecdd3!important;box-shadow:none!important}.modern-table-card{overflow:hidden}.table-scroll{width:100%;overflow-x:auto}.modern-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.modern-table th,.modern-table td{height:54px;padding:10px 12px;border-bottom:1px solid #e7eef7;vertical-align:middle}.modern-table th{font-size:12px;color:#66758c;background:#f8fbff;font-weight:500}.modern-table td{font-size:13px;color:#26384f}.modern-table tr:hover td{background:#fbfdff}.check-col{width:42px!important;min-width:42px!important;text-align:center}.actions-col{width:210px!important;min-width:210px!important;text-align:right;position:sticky;right:0;background:inherit;z-index:2}.modern-table th.actions-col{background:#f8fbff;z-index:3}.row-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}.row-actions .link,.link.compact{font-size:12px;padding:0;border:0;background:transparent;white-space:nowrap}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-main{display:grid;gap:4px;min-width:0}.cell-main strong{font-size:13px;font-weight:500;color:#1f2937;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-main small,.cell-main span{font-size:12px;color:#66758c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-stack{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.status-pill{display:inline-flex;align-items:center;height:24px;border-radius:999px;padding:0 9px;font-size:12px;line-height:1;border:1px solid #d7e2f2;background:#f8fbff;color:#66758c;white-space:nowrap}.status-pill.ok{background:#ecfdf3;border-color:#b7efc5;color:#087443}.status-pill.bad{background:#fff1f3;border-color:#fecdd3;color:#c0102f}.status-pill.warn{background:#fff7ed;border-color:#fed7aa;color:#b45309}.status-pill.info{background:#eef4ff;border-color:#c7d7fe;color:#245bdb}.status-pill.muted{background:#f4f6f9;border-color:#e3e8ef;color:#8a96a8}.channel-cell{overflow:hidden}.type-badge{font-size:12px}.smart-agent-page .modern-table th:nth-child(5),.smart-agent-page .modern-table td:nth-child(5){width:210px}.smart-agent-page .modern-table th:nth-child(6),.smart-agent-page .modern-table td:nth-child(6){width:150px}.smart-agent-page .modern-table th:nth-child(7),.smart-agent-page .modern-table td:nth-child(7){width:240px}.smart-agent-page .modern-table th:nth-child(8),.smart-agent-page .modern-table td:nth-child(8){width:180px}.smart-agent-page .modern-table th:nth-child(9),.smart-agent-page .modern-table td:nth-child(9){width:170px}.drawer{position:fixed;inset:0;z-index:1200;pointer-events:none}.drawer.show{pointer-events:auto}.drawer-mask{position:absolute;inset:0;background:rgba(15,23,42,.32);opacity:0;transition:.2s}.drawer.show .drawer-mask{opacity:1}.drawer-panel{position:absolute;right:0;top:0;bottom:0;width:680px;max-width:92vw;background:#fff;box-shadow:-30px 0 80px rgba(15,23,42,.18);transform:translateX(105%);transition:.25s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column}.drawer.show .drawer-panel{transform:translateX(0)}.drawer-wide{width:760px}.drawer-head{height:68px;border-bottom:1px solid #e7eef7;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px}.drawer-head h3{margin:0;font-size:17px;font-weight:500;color:#1f2937}.drawer-head p{margin:4px 0 0;color:#718096;font-size:12px}.icon-close{width:34px;height:34px;border:1px solid #dbe5f1;background:#fff;border-radius:10px;font-size:20px;color:#66758c;cursor:pointer}.drawer-form{padding:18px 22px 86px;overflow:auto}.form-section{border:1px solid #edf2f7;border-radius:13px;padding:14px;background:#fbfdff;margin-bottom:12px}.form-section h4{font-size:13px;font-weight:500;margin:0 0 12px;color:#34465f}.drawer-actions{position:absolute;left:0;right:0;bottom:0;height:66px;padding:14px 22px;background:rgba(255,255,255,.94);border-top:1px solid #e7eef7;display:flex;justify-content:flex-end;gap:10px;backdrop-filter:blur(10px)}.agent-help{border:1px solid #dbeafe;background:#f8fbff;color:#42526a;border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.7}.agent-help code{background:#eef4ff;color:#245bdb;border-radius:6px;padding:2px 5px}.aibot-toast-wrap{position:fixed;right:22px;top:78px;z-index:2000;display:grid;gap:10px}.aibot-toast{min-width:260px;max-width:420px;border:1px solid #dbe5f1;background:#fff;border-radius:12px;box-shadow:0 20px 60px rgba(31,60,98,.16);padding:12px 14px;font-size:13px;color:#34465f;animation:toastIn .22s ease}.aibot-toast.ok{border-color:#b7efc5;background:#f6fef9}.aibot-toast.bad{border-color:#fecdd3;background:#fff7f8}.aibot-toast.warn{border-color:#fed7aa;background:#fffaf4}@keyframes toastIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.detail-list{display:grid;gap:10px;padding:18px 22px}.detail-row{border:1px solid #edf2f7;border-radius:10px;padding:10px 12px;background:#fbfdff}.detail-row span{display:block;font-size:12px;color:#718096;margin-bottom:4px}.detail-row code,.detail-row pre{display:block;white-space:pre-wrap;word-break:break-word;margin:0;color:#26384f;font-size:12px;line-height:1.7;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.date-popover{position:absolute;z-index:2500;background:#fff;border:1px solid #dbe5f1;border-radius:14px;box-shadow:0 22px 70px rgba(31,60,98,.18);padding:12px;width:360px}.date-popover .quick{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.date-popover button{height:28px;border-radius:8px;border:1px solid #dbe5f1;background:#f8fbff;color:#42526a;padding:0 9px;font-size:12px}.date-popover .date-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.date-popover input{height:34px;border:1px solid #dbe5f1;border-radius:9px;padding:0 8px;width:100%}.date-popover .date-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.date-popover .primary{background:#2f6bff;color:#fff;border-color:#2f6bff}.date-popover .ghost{background:#fff}@media(max-width:900px){.admin-filterbar,.page-head-card{align-items:flex-start;flex-direction:column}.filter-left{width:100%}.filter-left label,.filter-left input,.filter-left select{width:100%;min-width:0}.actions-col{position:static}.drawer-panel{width:100%;max-width:100%}}

/* v7.2 drawer/detail stability fixes */
.drawer-panel{overflow:hidden;min-height:0;}
.detail-drawer-panel{width:720px;max-width:92vw;}
.drawer-panel .detail-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:18px 22px 28px;scrollbar-width:thin;scrollbar-color:#b8c5d8 #f3f6fb;}
.drawer-panel .detail-list::-webkit-scrollbar{width:8px;}
.drawer-panel .detail-list::-webkit-scrollbar-thumb{background:#b8c5d8;border-radius:999px;}
.drawer-panel .detail-list::-webkit-scrollbar-track{background:#f3f6fb;}
.detail-row pre{max-height:none;overflow:visible;}
.aibot-toast-wrap{max-width:min(420px,calc(100vw - 44px));}
.drawer.show ~ .aibot-toast-wrap{right:calc(min(720px,92vw) + 26px);}
@media(max-width:1180px){.drawer.show ~ .aibot-toast-wrap{right:22px;top:76px}.detail-drawer-panel{width:100%;max-width:100%;}}

/* v7.4 user connection center fixes */
.user-connections-table{min-width:1180px;}
.user-connections-table th:nth-child(7),.user-connections-table td:nth-child(7){width:360px;max-width:360px;}
.user-connections-table th:nth-child(8),.user-connections-table td:nth-child(8){width:170px;}
.user-connections-table .actions-col{width:210px!important;min-width:210px!important;}
.summary-cell{max-width:360px;overflow:hidden;}
.ellipsis-btn{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;color:#d92d20;}
.inline-form{display:inline;margin:0;}
.inline-form .link{vertical-align:baseline;}
.connect-result-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:16px;}
.empty-state{padding:40px 20px;text-align:center;color:#66758c;}
.empty-state b{display:block;color:#1f2937;font-size:15px;margin-bottom:6px;font-weight:500;}
.empty-state p{margin:0 0 14px;}
.connect-wizard .alert.warning code{background:#fff7ed;color:#9a3412;border-radius:6px;padding:1px 5px;}
.user-filterbar{align-items:flex-end;}
.user-filterbar .filter-actions .btn{white-space:nowrap;}
@media(max-width:900px){.user-connections-table .actions-col{position:static!important}.summary-cell{max-width:220px}.connect-result-actions .btn{width:auto;}}
