body.dash-body { background: #080c13; overflow-x: hidden; }
.app-shell { min-height: 100vh; }
.app-loading { position: fixed; inset: 0; display: grid; place-items: center; background: #080c13; z-index: 500; }
.loading-mark { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loading-mark .brand-mark { width: 48px; height: 48px; border-radius: 15px; animation: loadingPulse 1.6s ease-in-out infinite; }
.loading-mark p { color: #65758a; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
@keyframes loadingPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(215,255,114,.15); } 50% { box-shadow: 0 0 0 16px rgba(215,255,114,0); } }

.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 252px; z-index: 70;
  background: #0a1019; border-right: 1px solid rgba(255,255,255,.075);
  display: flex; flex-direction: column; padding: 17px 13px 14px;
  transition: transform .24s ease;
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 17px; }
.sidebar-brand .brand { font-size: 19px; gap: 9px; }
.sidebar-brand .brand-mark { width: 29px; height: 29px; border-radius: 9px; }
.sidebar-close { display: none; background: none; border: 0; color: var(--muted); }
.workspace-switch { display: flex; align-items: center; gap: 9px; width: 100%; border: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.025); border-radius: 10px; padding: 8px 9px; margin-bottom: 18px; text-align: left; transition: border-color .2s, background .2s; }
.workspace-switch:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.workspace-avatar { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg,#283b20,#1a291c); color: var(--lime); font-size: 12px; font-weight: 700; border: 1px solid rgba(215,255,114,.16); flex: 0 0 auto; }
.workspace-info { flex: 1; min-width: 0; }
.workspace-name { display: block; font-size: 10.5px; font-weight: 600; color: #dce5ef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-plan { display: block; font-size: 8.5px; color: #68778b; margin-top: 1px; }
.workspace-switch > .icon { width: 13px; height: 13px; color: #5f6e82; }

.side-scroll { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: #273244 transparent; }
.side-section { margin-bottom: 19px; }
.side-label { padding: 0 10px; margin-bottom: 7px; color: #536276; font-size: 8.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 37px; border-radius: 8px; padding: 0 10px; color: #8a98ab; font-size: 11.5px; font-weight: 500; transition: .18s; position: relative; }
.side-link .icon { width: 16px; height: 16px; color: #68768a; transition: color .18s; }
.side-link:hover { background: rgba(255,255,255,.035); color: #d4dee9; }
.side-link:hover .icon { color: #aebaca; }
.side-link.active { background: rgba(215,255,114,.08); color: #e7f8c2; }
.side-link.active .icon { color: var(--lime); }
.side-link.active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; border-radius: 2px; background: var(--lime); }
.side-link .side-count { margin-left: auto; font-size: 9px; color: #6f7e92; background: rgba(255,255,255,.05); border-radius: 20px; padding: 0 6px; min-width: 19px; text-align: center; line-height: 17px; }
.side-link .side-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.sidebar-bottom { border-top: 1px solid rgba(255,255,255,.065); padding-top: 12px; margin-top: 8px; }
.usage-card { border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); border-radius: 10px; padding: 11px; margin-bottom: 10px; }
.usage-head { display: flex; justify-content: space-between; font-size: 9px; color: #8796aa; margin-bottom: 7px; }
.usage-head b { color: #c2cdda; font-weight: 600; }
.usage-bar { height: 3px; background: rgba(255,255,255,.07); border-radius: 5px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#a4c83e,#d7ff72); }
.usage-note { display: flex; justify-content: space-between; margin-top: 7px; font-size: 8px; color: #5f6e82; }
.usage-note a { color: #a5c56d; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 8px; transition: background .18s; position: relative; }
.user-card:hover { background: rgba(255,255,255,.035); }
.user-avatar { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #1b2a1c; color: var(--lime); border: 1px solid rgba(215,255,114,.18); font-size: 11px; font-weight: 600; flex: 0 0 auto; }
.user-main { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 10.5px; font-weight: 600; color: #d2dde8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { display: block; font-size: 8px; color: #617086; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card > .icon { width: 14px; height: 14px; color: #5d6c80; }

.app-main { margin-left: 252px; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 63px; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 17px; padding: 0 30px; background: rgba(8,12,19,.82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.065); }
.mobile-menu-btn { display: none; background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--text); width: 34px; height: 34px; align-items: center; justify-content: center; }
.breadcrumb { display: flex; align-items: center; gap: 7px; color: #617086; font-size: 10.5px; min-width: 0; flex: 1; }
.breadcrumb a { color: #8b99ac; transition: color .2s; }
.breadcrumb a:hover { color: #d1dbe6; }
.breadcrumb .icon { width: 12px; height: 12px; color: #445267; }
.breadcrumb .current { color: #c8d2dd; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.top-search { display: flex; align-items: center; gap: 7px; height: 32px; min-width: 190px; border: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.025); border-radius: 8px; padding: 0 10px; color: #637287; font-size: 10px; transition: border-color .2s; }
.top-search:hover { border-color: rgba(255,255,255,.14); }
.top-search .icon { width: 13px; height: 13px; }
.top-search kbd { margin-left: auto; font-family: var(--font); font-size: 8px; color: #57667a; border: 1px solid rgba(255,255,255,.08); border-bottom-width: 2px; border-radius: 4px; padding: 1px 4px; }
.top-icon-btn { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 8px; color: #8090a4; position: relative; transition: .18s; }
.top-icon-btn:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); color: #d3dce6; }
.top-icon-btn .icon { width: 16px; height: 16px; }
.notification-dot { position: absolute; right: 6px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px #0a0f17; }
.topbar .btn { min-height: 32px; font-size: 10.5px; padding: 0 11px; border-radius: 8px; }

.view { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 30px 65px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.page-kicker { display: inline-flex; align-items: center; gap: 7px; color: #82965d; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 7px; }
.page-kicker::before { content: ""; width: 12px; height: 1px; background: rgba(215,255,114,.5); }
.page-head h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.045em; font-weight: 650; }
.page-head h1 .accent { color: var(--lime); }
.page-head p { color: #758397; font-size: 11.5px; margin-top: 7px; line-height: 1.6; }
.page-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 4px; }
.page-head-actions .btn { min-height: 37px; font-size: 10.5px; border-radius: 9px; padding: 0 13px; }
.page-head-actions .btn .icon { width: 14px; height: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 17px; }
.stat-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: linear-gradient(145deg,rgba(255,255,255,.037),rgba(255,255,255,.013)); padding: 15px 16px 14px; min-height: 116px; }
.stat-card::after { content: ""; position: absolute; right: -25px; top: -38px; width: 105px; height: 105px; border-radius: 50%; background: radial-gradient(circle, rgba(215,255,114,.07), transparent 65%); pointer-events: none; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: #8492a5; font-size: 10px; font-weight: 500; }
.stat-icon { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: #8f9daf; }
.stat-icon .icon { width: 12px; height: 12px; }
.stat-value { font-size: 27px; line-height: 1; font-weight: 650; letter-spacing: -.04em; margin-top: 15px; display: flex; align-items: baseline; gap: 4px; }
.stat-value small { font-size: 9px; color: #748397; font-weight: 400; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #657489; font-size: 8.5px; }
.stat-trend { display: inline-flex; align-items: center; gap: 3px; color: #a9d678; font-weight: 500; }
.stat-trend .icon { width: 10px; height: 10px; }
.stat-trend.down { color: #f7a7b6; }

.overview-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px, .9fr); gap: 13px; }
.panel { border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.022); overflow: hidden; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 16px 17px 0; }
.panel-head h3 { font-size: 12.5px; letter-spacing: -.02em; font-weight: 600; }
.panel-head p { color: #657488; font-size: 9px; margin-top: 3px; }
.panel-head-actions { display: flex; gap: 5px; align-items: center; }
.panel-body { padding: 16px 17px; }
.panel-link { color: #9fb973; font-size: 9px; display: inline-flex; align-items: center; gap: 4px; }
.panel-link .icon { width: 11px; height: 11px; }

.chart-card { min-height: 292px; }
.chart-toolbar { display: flex; align-items: center; gap: 4px; }
.chart-range { border: 1px solid rgba(255,255,255,.07); background: transparent; color: #728196; font-size: 8px; border-radius: 5px; padding: 3px 7px; }
.chart-range.active { background: rgba(215,255,114,.08); border-color: rgba(215,255,114,.15); color: #c3e48c; }
.chart-area { padding: 24px 17px 14px; position: relative; }
.chart-y { position: absolute; left: 17px; top: 23px; bottom: 30px; display: flex; flex-direction: column; justify-content: space-between; color: #4f5e72; font-size: 7px; }
.chart-plot { margin-left: 27px; height: 185px; display: flex; align-items: flex-end; gap: clamp(4px,1.3vw,14px); position: relative; border-bottom: 1px solid rgba(255,255,255,.07); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 100% 25%; padding: 0 3px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; cursor: default; }
.chart-bar { width: min(24px, 65%); min-height: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(215,255,114,.92), rgba(215,255,114,.18)); transition: background .2s; position: relative; }
.chart-bar-wrap:hover .chart-bar { background: linear-gradient(180deg,#efffc2,rgba(215,255,114,.3)); }
.chart-bar-value { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: 7px; color: #d7ff72; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.chart-bar-wrap:hover .chart-bar-value { opacity: 1; }
.chart-x { display: flex; gap: clamp(4px,1.3vw,14px); margin-left: 27px; padding: 7px 3px 0; }
.chart-x span { flex: 1; text-align: center; color: #536276; font-size: 7px; }
.chart-summary { display: flex; align-items: center; gap: 13px; padding: 0 17px 15px; }
.chart-summary-main { font-size: 22px; letter-spacing: -.04em; font-weight: 600; }
.chart-summary-main small { font-size: 8px; color: #647489; font-weight: 400; margin-left: 4px; }
.chart-legend { display: flex; align-items: center; gap: 5px; color: #77869a; font-size: 8px; margin-left: auto; }
.chart-legend i { width: 6px; height: 6px; border-radius: 2px; background: var(--lime); }

.channel-panel { min-height: 292px; }
.channel-stack { display: flex; flex-direction: column; gap: 8px; }
.channel-item { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(255,255,255,.065); border-radius: 9px; background: rgba(255,255,255,.017); }
.channel-item .platform-icon { width: 30px; height: 30px; font-size: 8px; }
.channel-item-main { flex: 1; min-width: 0; }
.channel-item-name { font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.channel-item-sub { font-size: 8px; color: #66758a; margin-top: 2px; }
.channel-state { display: inline-flex; align-items: center; gap: 4px; font-size: 7.5px; color: #a6cf77; }
.channel-state i { width: 4px; height: 4px; background: var(--green); border-radius: 50%; }
.channel-state.off { color: #7d8b9e; }
.channel-state.off i { background: #566579; }
.channel-meter { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 13px; }
.channel-meter-row { display: flex; justify-content: space-between; font-size: 8.5px; color: #6e7d91; margin-bottom: 6px; }
.channel-meter-row b { color: #bcc8d6; font-weight: 500; }
.mini-meter { height: 3px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.mini-meter span { display: block; height: 100%; background: linear-gradient(90deg,#a3c83d,#d7ff72); border-radius: inherit; }

.overview-bottom { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 13px; margin-top: 13px; }
.bot-mini-list { display: flex; flex-direction: column; }
.bot-mini { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.bot-mini + .bot-mini { border-top: 1px solid rgba(255,255,255,.055); }
.agent-avatar { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 16px; background: linear-gradient(145deg,#223043,#16212f); border: 1px solid rgba(255,255,255,.08); flex: 0 0 auto; }
.agent-avatar.lg { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
.agent-avatar.sm { width: 27px; height: 27px; font-size: 12px; border-radius: 7px; }
.bot-mini-main { flex: 1; min-width: 0; }
.bot-mini-name { font-size: 10.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.bot-mini-name .dot { width: 4px; height: 4px; }
.bot-mini-sub { color: #647388; font-size: 8px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-mini-meta { font-size: 8px; color: #627186; text-align: right; }
.bot-mini-meta b { display: block; color: #b5c1cf; font-weight: 500; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 9px; padding: 9px 0; }
.activity-item + .activity-item { border-top: 1px solid rgba(255,255,255,.05); }
.activity-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(215,255,114,.06); color: #a5c56b; border: 1px solid rgba(215,255,114,.09); }
.activity-icon .icon { width: 11px; height: 11px; }
.activity-icon.violet { background: rgba(167,139,250,.08); color: #b4a4e2; border-color: rgba(167,139,250,.12); }
.activity-icon.cyan { background: rgba(110,231,249,.06); color: #92d7e3; border-color: rgba(110,231,249,.1); }
.activity-main { flex: 1; min-width: 0; }
.activity-text { color: #b5c1ce; font-size: 9.5px; line-height: 1.5; }
.activity-time { color: #536276; font-size: 7.5px; margin-top: 2px; }

.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; flex-wrap: wrap; }
.toolbar-search { display: flex; align-items: center; gap: 7px; height: 35px; min-width: 220px; border: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.025); border-radius: 8px; padding: 0 10px; color: #637287; }
.toolbar-search .icon { width: 13px; height: 13px; }
.toolbar-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #d4dee9; font-size: 10px; }
.toolbar-search input::placeholder { color: #5b6a7e; }
.filter-tabs { display: flex; gap: 2px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.018); border-radius: 8px; padding: 2px; }
.filter-tab { border: 0; background: transparent; color: #768599; font-size: 9.5px; border-radius: 6px; padding: 6px 11px; transition: .18s; }
.filter-tab:hover { color: #c4ceda; }
.filter-tab.active { background: rgba(215,255,114,.1); color: #d6f5a1; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.toolbar-right .btn { min-height: 35px; font-size: 10px; }

.bot-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.bot-card { position: relative; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); padding: 16px; cursor: pointer; transition: .2s; overflow: hidden; }
.bot-card:hover { border-color: rgba(215,255,114,.2); transform: translateY(-2px); background: linear-gradient(145deg,rgba(215,255,114,.035),rgba(255,255,255,.015)); }
.bot-card::after { content: ""; position: absolute; right: -45px; top: -60px; width: 145px; height: 145px; border-radius: 50%; background: radial-gradient(circle, rgba(215,255,114,.055), transparent 68%); pointer-events: none; }
.bot-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; position: relative; z-index: 2; }
.bot-card-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bot-card-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.bot-card-platform { color: #6c7b8e; font-size: 8px; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.bot-menu { width: 26px; height: 26px; border: 1px solid transparent; background: transparent; border-radius: 6px; color: #5f6e82; display: grid; place-items: center; }
.bot-menu:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: #c6d0dc; }
.bot-menu .icon { width: 14px; height: 14px; }
.bot-card-desc { color: #7b899d; font-size: 9.5px; line-height: 1.65; margin: 13px 0 15px; min-height: 31px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; position: relative; z-index: 2; }
.bot-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 13px; }
.bot-card-tags .badge { font-size: 7px; min-height: 18px; padding: 1px 6px; border-radius: 4px; }
.bot-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 10px; position: relative; z-index: 2; }
.bot-card-stats { display: flex; gap: 10px; }
.bot-card-stat { color: #5f6e82; font-size: 7.5px; }
.bot-card-stat b { color: #aab6c5; font-weight: 500; }
.bot-card-arrow { color: #5b6a7e; }
.bot-card-arrow .icon { width: 13px; height: 13px; }
.bot-card:hover .bot-card-arrow { color: var(--lime); }
.platform-badge { display: inline-flex; align-items: center; gap: 4px; }
.platform-badge .platform-icon { width: 14px; height: 14px; font-size: 5.5px; border-radius: 4px; }
.new-bot-card { min-height: 195px; border-style: dashed; display: grid; place-items: center; text-align: center; background: rgba(255,255,255,.008); color: #6c7b8e; cursor: pointer; }
.new-bot-card:hover { color: #c8d4e0; border-color: rgba(215,255,114,.25); }
.new-bot-card .nb-plus { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; display: grid; place-items: center; margin: 0 auto 9px; color: #8b9aad; }
.new-bot-card:hover .nb-plus { border-color: rgba(215,255,114,.3); color: var(--lime); }
.new-bot-card strong { display: block; font-size: 10.5px; font-weight: 500; }
.new-bot-card small { display: block; color: #566579; font-size: 8px; margin-top: 4px; }

.empty-state { border: 1px dashed rgba(255,255,255,.1); background: rgba(255,255,255,.012); border-radius: 13px; padding: 50px 25px; text-align: center; }
.empty-icon { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); border-radius: 13px; display: grid; place-items: center; margin: 0 auto 14px; color: #718096; }
.empty-icon .icon { width: 20px; height: 20px; }
.empty-state h3 { font-size: 13px; font-weight: 600; }
.empty-state p { color: #6c7b8e; font-size: 10px; line-height: 1.65; max-width: 330px; margin: 7px auto 16px; }

.detail-back { display: inline-flex; align-items: center; gap: 5px; color: #6e7d91; font-size: 9px; margin-bottom: 15px; }
.detail-back .icon { width: 12px; height: 12px; }
.detail-back:hover { color: #c5d0dc; }
.bot-profile { display: flex; align-items: flex-start; gap: 16px; padding: 18px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: linear-gradient(145deg,rgba(255,255,255,.037),rgba(255,255,255,.012)); margin-bottom: 17px; position: relative; overflow: hidden; }
.bot-profile::after { content: ""; position: absolute; right: -70px; top: -110px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(215,255,114,.06), transparent 65%); pointer-events: none; }
.bot-profile .agent-avatar.lg { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.bot-profile-main { flex: 1; min-width: 0; position: relative; z-index: 2; }
.bot-profile-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bot-profile-title h1 { font-size: 22px; letter-spacing: -.04em; line-height: 1.2; }
.bot-profile-title .badge { font-size: 7.5px; }
.bot-profile-desc { color: #7b899c; font-size: 10.5px; margin-top: 6px; line-height: 1.6; max-width: 610px; }
.bot-profile-meta { display: flex; align-items: center; gap: 17px; margin-top: 13px; flex-wrap: wrap; }
.bot-profile-meta span { color: #5d6c80; font-size: 8.5px; display: flex; align-items: center; gap: 4px; }
.bot-profile-meta span b { color: #aebaca; font-weight: 500; }
.bot-profile-meta .icon { width: 11px; height: 11px; }
.bot-profile-actions { display: flex; align-items: center; gap: 6px; position: relative; z-index: 2; flex-shrink: 0; }
.bot-profile-actions .btn { min-height: 33px; font-size: 9px; border-radius: 7px; padding: 0 10px; }
.bot-profile-actions .btn .icon { width: 13px; height: 13px; }
.bot-profile-actions .icon-btn { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); border-radius: 7px; color: #8b99ab; }
.bot-profile-actions .icon-btn:hover { color: #d4dee8; border-color: rgba(255,255,255,.15); }
.bot-profile-actions .icon-btn .icon { width: 14px; height: 14px; }

.detail-tabs { display: flex; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.075); margin-bottom: 19px; overflow-x: auto; scrollbar-width: none; }
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #718096; font-size: 10px; font-weight: 500; padding: 10px 13px 11px; white-space: nowrap; transition: .18s; }
.detail-tab .icon { width: 13px; height: 13px; }
.detail-tab:hover { color: #c8d3df; }
.detail-tab.active { color: #e2f3c3; border-bottom-color: var(--lime); }
.detail-tab.active .icon { color: var(--lime); }

.detail-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,.8fr); gap: 14px; align-items: start; }
.detail-layout.equal { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.detail-stack { display: flex; flex-direction: column; gap: 14px; }
.form-panel { border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.02); overflow: hidden; }
.form-panel-head { padding: 16px 17px 13px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.form-panel-head h3 { font-size: 12px; font-weight: 600; }
.form-panel-head p { color: #657489; font-size: 9px; margin-top: 3px; line-height: 1.55; }
.form-panel-body { padding: 17px; }
.form-panel-foot { padding: 12px 17px; border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: flex-end; gap: 8px; background: rgba(255,255,255,.013); }
.form-panel-foot .btn { min-height: 34px; font-size: 9.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.form-panel .field label { font-size: 10px; color: #aebaca; }
.form-panel .field .hint { font-size: 8px; }
.form-panel .input, .form-panel .textarea, .form-panel .select { font-size: 10.5px; border-radius: 8px; padding: 9px 10px; }
.form-panel .textarea { min-height: 93px; line-height: 1.7; }
.form-panel .input, .form-panel .select { min-height: 37px; }
.field-counter { font-size: 7.5px; color: #5d6c80; font-weight: 400; }

.persona-presets { display: flex; gap: 5px; flex-wrap: wrap; }
.preset-chip { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: #8a98ab; border-radius: 6px; padding: 5px 8px; font-size: 8px; transition: .18s; }
.preset-chip:hover, .preset-chip.active { border-color: rgba(215,255,114,.22); background: rgba(215,255,114,.07); color: #d0ed9f; }
.range-row { display: flex; align-items: center; gap: 11px; }
.range-row input[type=range] { flex: 1; accent-color: var(--lime); height: 3px; }
.range-value { min-width: 26px; text-align: right; color: #cce89b; font-size: 9px; }
.prompt-preview { border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: #080d16; padding: 11px; color: #8190a4; font-family: var(--mono); font-size: 8px; line-height: 1.75; white-space: pre-wrap; max-height: 150px; overflow: auto; }
.prompt-preview b { color: var(--lime); font-weight: 500; }

.skill-list { display: flex; flex-direction: column; gap: 7px; }
.skill-row { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.018); transition: border-color .2s; }
.skill-row:hover { border-color: rgba(255,255,255,.12); }
.skill-row.disabled { opacity: .6; }
.skill-icon { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; background: rgba(215,255,114,.07); border: 1px solid rgba(215,255,114,.1); color: #b9db7f; flex: 0 0 auto; }
.skill-icon .icon { width: 14px; height: 14px; }
.skill-main { flex: 1; min-width: 0; }
.skill-name { font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.skill-desc { color: #6d7c8f; font-size: 8.5px; margin-top: 2px; line-height: 1.5; }
.skill-actions { display: flex; align-items: center; gap: 6px; }
.icon-action { width: 25px; height: 25px; border: 1px solid transparent; border-radius: 6px; display: grid; place-items: center; background: transparent; color: #617085; }
.icon-action:hover { color: #c3cedb; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.07); }
.icon-action .icon { width: 12px; height: 12px; }
.switch-label { display: inline-flex; align-items: center; }

.assign-list { display: flex; flex-direction: column; gap: 6px; }
.assign-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.065); border-radius: 8px; background: rgba(255,255,255,.015); }
.assign-row .agent-avatar { width: 27px; height: 27px; font-size: 12px; }
.assign-main { flex: 1; min-width: 0; }
.assign-name { font-size: 9.5px; font-weight: 600; }
.assign-sub { color: #647388; font-size: 7.5px; margin-top: 2px; }
.assign-row .switch { transform: scale(.85); transform-origin: right center; }

.plugin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.plugin-card { border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: rgba(255,255,255,.022); padding: 15px; position: relative; transition: .2s; display: flex; flex-direction: column; }
.plugin-card:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.plugin-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.plugin-icon { width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; flex: 0 0 auto; }
.plugin-icon .icon { width: 16px; height: 16px; }
.plugin-state { display: inline-flex; align-items: center; gap: 4px; font-size: 7px; color: #a5cc75; }
.plugin-state i { width: 4px; height: 4px; background: var(--green); border-radius: 50%; }
.plugin-state.off { color: #728196; }
.plugin-state.off i { background: #526176; }
.plugin-card h3 { font-size: 11.5px; font-weight: 600; margin-top: 12px; display: flex; align-items: center; gap: 5px; }
.plugin-card .plugin-version { color: #5d6c80; font-size: 7.5px; margin-top: 2px; }
.plugin-card p { color: #728196; font-size: 8.5px; line-height: 1.6; margin-top: 8px; min-height: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plugin-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.055); }
.plugin-card-foot .badge { font-size: 6.5px; min-height: 17px; padding: 1px 5px; }
.plugin-card-foot .plugin-open { font-size: 8px; color: #98b36d; display: inline-flex; gap: 3px; align-items: center; }
.plugin-card-foot .plugin-open .icon { width: 10px; height: 10px; }
.plugin-source { display: inline-flex; align-items: center; gap: 4px; font-size: 7px; color: #647388; }
.plugin-source .icon { width: 10px; height: 10px; }

.plugin-detail-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 18px; }
.plugin-detail-head .plugin-icon { width: 48px; height: 48px; border-radius: 13px; font-size: 20px; }
.plugin-detail-info { flex: 1; min-width: 0; }
.plugin-detail-info h1 { font-size: 22px; letter-spacing: -.04em; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.plugin-detail-info p { color: #7b899c; font-size: 10px; margin-top: 4px; line-height: 1.6; max-width: 650px; }
.plugin-meta-row { display: flex; gap: 13px; align-items: center; margin-top: 9px; color: #617086; font-size: 8px; flex-wrap: wrap; }
.plugin-meta-row b { color: #aebaca; font-weight: 500; }
.plugin-detail-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.plugin-detail-actions .btn { min-height: 33px; font-size: 9px; }
.plugin-detail-actions .switch { margin-right: 4px; }
.settings-field { margin-bottom: 15px; }
.settings-field:last-child { margin-bottom: 0; }
.settings-field label { font-size: 10px; color: #b3bfcd; }
.settings-field .hint { font-size: 8px; color: #5f6e82; margin-top: 4px; line-height: 1.5; }
.settings-field .input, .settings-field .select, .settings-field .textarea { font-size: 10.5px; padding: 9px 10px; border-radius: 8px; }
.settings-field .input, .settings-field .select { min-height: 37px; }
.required-star { color: #f7a7b6; margin-left: 2px; }
.readme { color: #8b99ab; font-size: 10px; line-height: 1.8; }
.readme h1, .readme h2, .readme h3, .readme h4 { color: #d7e0ea; letter-spacing: -.02em; margin: 18px 0 7px; line-height: 1.3; }
.readme h1 { font-size: 18px; margin-top: 0; }
.readme h2 { font-size: 14px; }
.readme h3 { font-size: 12px; }
.readme p { margin: 7px 0; }
.readme ul, .readme ol { margin: 7px 0; padding-left: 17px; list-style: disc; }
.readme ol { list-style: decimal; }
.readme li { margin: 4px 0; }
.readme code { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); border-radius: 4px; padding: 1px 4px; font-size: 9px; color: #cce7a1; }
.readme pre { background: #070c14; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: 12px; overflow: auto; margin: 10px 0; }
.readme pre code { background: none; border: 0; padding: 0; color: #9fb0c4; font-size: 8.5px; line-height: 1.7; }
.readme blockquote { border-left: 2px solid rgba(215,255,114,.4); margin: 10px 0; padding: 4px 0 4px 11px; color: #748398; }
.readme a { color: #cce7a1; text-decoration: underline; text-underline-offset: 2px; }
.meta-list { display: flex; flex-direction: column; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 8.5px; }
.meta-row + .meta-row { border-top: 1px solid rgba(255,255,255,.055); }
.meta-row span { color: #647388; }
.meta-row b { color: #b3bfcd; font-weight: 500; text-align: right; word-break: break-all; }
.permissions { display: flex; flex-wrap: wrap; gap: 4px; }
.permission-tag { font-family: var(--mono); font-size: 7px; color: #9db87b; background: rgba(215,255,114,.06); border: 1px solid rgba(215,255,114,.11); border-radius: 4px; padding: 3px 5px; }

.channel-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.channel-config-card { border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.02); overflow: hidden; }
.channel-config-head { padding: 17px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: flex-start; gap: 11px; }
.channel-config-head .platform-icon { width: 37px; height: 37px; font-size: 10px; border-radius: 9px; }
.channel-config-head-main { flex: 1; }
.channel-config-head h3 { font-size: 12.5px; font-weight: 600; }
.channel-config-head p { color: #657489; font-size: 8.5px; margin-top: 3px; }
.channel-body { padding: 17px; }
.channel-status-bar { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; background: rgba(215,255,114,.045); border: 1px solid rgba(215,255,114,.1); margin-bottom: 15px; font-size: 8.5px; color: #b9d88a; }
.channel-status-bar.off { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.07); color: #7c8b9e; }
.channel-status-bar .icon { width: 12px; height: 12px; }
.channel-form { display: flex; flex-direction: column; gap: 13px; }
.webhook-box { border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: #080d15; padding: 10px; margin-top: 13px; }
.webhook-box-head { display: flex; justify-content: space-between; align-items: center; color: #637287; font-size: 7.5px; margin-bottom: 7px; }
.webhook-value { font-family: var(--mono); font-size: 7.5px; color: #9fb0c4; word-break: break-all; line-height: 1.6; }
.webhook-copy { border: 0; background: none; color: #a4c476; font-size: 7.5px; display: inline-flex; align-items: center; gap: 3px; }
.webhook-copy .icon { width: 10px; height: 10px; }
.qr-panel { display: flex; align-items: center; gap: 17px; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.018); margin-bottom: 15px; }
.qr-box { width: 122px; height: 122px; border-radius: 8px; background: #fff; padding: 6px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #647388; font-size: 8px; text-align: center; padding: 8px; }
.qr-main h4 { font-size: 10.5px; font-weight: 600; }
.qr-main p { color: #6c7b8e; font-size: 8.5px; line-height: 1.6; margin: 5px 0 10px; max-width: 180px; }
.qr-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.qr-actions .btn { min-height: 28px; font-size: 8px; padding: 0 8px; }
.qr-actions .btn .icon { width: 11px; height: 11px; }
.wechat-connected { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(134,239,172,.13); background: rgba(134,239,172,.04); border-radius: 10px; margin-bottom: 15px; }
.wechat-connected .platform-icon { width: 38px; height: 38px; font-size: 10px; }
.wechat-connected h4 { font-size: 10.5px; }
.wechat-connected p { color: #6f8b79; font-size: 8px; margin-top: 2px; }
.wechat-connected .btn { margin-left: auto; min-height: 28px; font-size: 8px; }
.integration-note { margin-top: 14px; padding: 12px; border: 1px solid rgba(255,255,255,.065); border-radius: 9px; background: rgba(255,255,255,.015); color: #718096; font-size: 8.5px; line-height: 1.7; }
.integration-note strong { color: #bec9d6; font-weight: 500; }
.integration-note code { color: #b9d88a; font-size: 7.5px; background: rgba(255,255,255,.04); padding: 1px 4px; border-radius: 3px; }
.channel-bot-list { margin-top: 13px; }
.channel-bot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 0; font-size: 8.5px; }
.channel-bot-row + .channel-bot-row { border-top: 1px solid rgba(255,255,255,.05); }
.channel-bot-row .agent-avatar { width: 23px; height: 23px; font-size: 10px; }
.channel-bot-row .name { flex: 1; color: #b6c2d0; }
.channel-bot-row .badge { font-size: 6.5px; min-height: 16px; padding: 1px 5px; }

.model-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(270px,.7fr); gap: 14px; align-items: start; }
.model-status { border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: linear-gradient(145deg,rgba(215,255,114,.04),rgba(255,255,255,.015)); padding: 17px; position: relative; overflow: hidden; }
.model-status::after { content: ""; position: absolute; right: -35px; top: -35px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(215,255,114,.1), transparent 65%); }
.model-status-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(215,255,114,.08); border: 1px solid rgba(215,255,114,.13); color: var(--lime); margin-bottom: 14px; }
.model-status h3 { font-size: 12px; }
.model-status p { color: #728196; font-size: 8.5px; line-height: 1.6; margin-top: 4px; }
.model-status .status-line { display: flex; align-items: center; gap: 5px; color: #b7d987; font-size: 8px; margin-top: 14px; }
.model-status .status-line i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.model-status .status-line.off { color: #8795a7; }
.model-status .status-line.off i { background: #5f6e82; }
.model-presets { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; }
.model-preset { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: rgba(255,255,255,.018); font-size: 8.5px; color: #92a0b2; }
.model-preset:hover { border-color: rgba(215,255,114,.2); color: #d0e4af; }
.model-preset span:last-child { color: #5d6c80; font-size: 7px; }

.settings-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 14px; align-items: start; }
.settings-stack { display: flex; flex-direction: column; gap: 14px; }
.profile-summary { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.profile-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#273b22,#17251a); color: var(--lime); font-size: 20px; font-weight: 600; border: 1px solid rgba(215,255,114,.2); }
.profile-summary h3 { font-size: 14px; }
.profile-summary p { color: #6c7b8e; font-size: 8.5px; margin-top: 3px; }
.profile-summary .badge { margin-left: auto; }
.danger-zone { border-color: rgba(251,113,133,.15); background: rgba(251,113,133,.025); }
.danger-zone .form-panel-head { border-bottom-color: rgba(251,113,133,.1); }
.danger-zone h3 { color: #fecdd3; }
.danger-action { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; }
.danger-action + .danger-action { border-top: 1px solid rgba(251,113,133,.1); }
.danger-action h4 { font-size: 9.5px; }
.danger-action p { color: #8b7d86; font-size: 8px; margin-top: 2px; }
.danger-action .btn { min-height: 30px; font-size: 8.5px; flex: 0 0 auto; }

.test-chat { border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.02); overflow: hidden; display: flex; flex-direction: column; min-height: 380px; }
.test-chat-head { padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 9px; }
.test-chat-head .agent-avatar { width: 29px; height: 29px; font-size: 13px; }
.test-chat-head h4 { font-size: 10px; font-weight: 600; }
.test-chat-head p { color: #647388; font-size: 7.5px; margin-top: 1px; }
.test-chat-head .badge { margin-left: auto; font-size: 6.5px; }
.chat-messages { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 390px; overflow-y: auto; background: radial-gradient(ellipse at 50% 0%,rgba(215,255,114,.025),transparent 55%); }
.chat-msg { display: flex; gap: 7px; max-width: 88%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.05); font-size: 10px; flex: 0 0 auto; }
.chat-msg.user .chat-msg-avatar { background: rgba(215,255,114,.1); color: #d7ff72; font-size: 8px; }
.chat-bubble { padding: 8px 10px; border-radius: 9px 9px 9px 3px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); color: #b9c5d2; font-size: 9px; line-height: 1.7; white-space: pre-wrap; }
.chat-msg.user .chat-bubble { border-radius: 9px 9px 3px 9px; background: rgba(215,255,114,.1); border-color: rgba(215,255,114,.13); color: #dcebc1; }
.chat-msg-meta { font-size: 6.5px; color: #526176; margin-top: 3px; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 25px; }
.chat-empty .chat-empty-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(215,255,114,.06); border: 1px solid rgba(215,255,114,.1); color: #a7c875; margin: 0 auto 10px; }
.chat-empty p { color: #647388; font-size: 8.5px; line-height: 1.6; }
.chat-input-row { border-top: 1px solid rgba(255,255,255,.06); padding: 9px; display: flex; gap: 7px; background: rgba(255,255,255,.012); }
.chat-input { flex: 1; min-height: 34px; max-height: 90px; resize: none; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(255,255,255,.025); padding: 8px 9px; font-size: 9px; line-height: 1.5; outline: none; color: #d3dde7; }
.chat-input:focus { border-color: rgba(215,255,114,.35); }
.chat-send { width: 34px; height: 34px; border: 0; border-radius: 7px; background: var(--lime); color: #14200a; display: grid; place-items: center; flex: 0 0 auto; }
.chat-send:disabled { opacity: .5; }
.chat-send .icon { width: 14px; height: 14px; }

.overview-bot-summary { display: flex; flex-direction: column; gap: 0; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 8.5px; }
.summary-row + .summary-row { border-top: 1px solid rgba(255,255,255,.05); }
.summary-row span { color: #657489; }
.summary-row b { color: #bac6d3; font-weight: 500; }
.summary-row b.green { color: #a7ce78; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; padding: 4px; background: #121c2a; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; box-shadow: 0 20px 50px rgba(0,0,0,.45); z-index: 80; display: none; }
.dropdown-menu.open { display: block; animation: dropdownIn .15s ease both; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; color: #a8b5c4; font-size: 9px; text-align: left; padding: 7px 8px; border-radius: 6px; }
.dropdown-item:hover { background: rgba(255,255,255,.05); color: #e0e8f0; }
.dropdown-item.danger { color: #f9a8b4; }
.dropdown-item .icon { width: 12px; height: 12px; }
.dropdown-sep { height: 1px; background: rgba(255,255,255,.07); margin: 3px 0; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(2,5,10,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 22px; animation: fadeIn .16s ease both; }
.modal-backdrop.closing { animation: fadeOut .16s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal { width: 100%; max-height: calc(100vh - 44px); border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: #0d1520; box-shadow: 0 35px 100px rgba(0,0,0,.55); display: flex; flex-direction: column; animation: modalIn .2s cubic-bezier(.2,.7,.2,1) both; overflow: hidden; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { padding: 17px 18px 13px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.modal-head h3 { font-size: 14px; letter-spacing: -.02em; }
.modal-head p { color: #6c7b8e; font-size: 8.5px; margin-top: 4px; line-height: 1.5; }
.modal-close { width: 27px; height: 27px; border: 1px solid transparent; background: transparent; border-radius: 6px; color: #768599; display: grid; place-items: center; flex: 0 0 auto; }
.modal-close:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); color: #d6e0ea; }
.modal-close .icon { width: 14px; height: 14px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: flex-end; gap: 7px; background: rgba(255,255,255,.012); }
.modal-foot .btn { min-height: 34px; font-size: 9.5px; }
.modal-text { color: #9aa8ba; font-size: 10.5px; line-height: 1.75; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form .field label { font-size: 9.5px; }
.modal-form .input, .modal-form .select, .modal-form .textarea { font-size: 10.5px; padding: 9px 10px; border-radius: 8px; }
.modal-form .textarea { min-height: 80px; }
.avatar-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.avatar-option { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); font-size: 17px; display: grid; place-items: center; transition: .18s; }
.avatar-option:hover { border-color: rgba(255,255,255,.16); }
.avatar-option.selected { border-color: var(--lime); background: rgba(215,255,114,.08); box-shadow: 0 0 0 2px rgba(215,255,114,.08); }
.platform-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.platform-option { position: relative; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); border-radius: 9px; padding: 11px; text-align: left; transition: .18s; }
.platform-option:hover { border-color: rgba(255,255,255,.15); }
.platform-option.selected { border-color: rgba(215,255,114,.35); background: rgba(215,255,114,.05); }
.platform-option .platform-icon { width: 28px; height: 28px; font-size: 8px; margin-bottom: 9px; }
.platform-option strong { display: block; font-size: 10px; }
.platform-option small { display: block; color: #6c7b8e; font-size: 7.5px; margin-top: 2px; }
.platform-option .po-check { position: absolute; right: 9px; top: 9px; color: var(--lime); opacity: 0; }
.platform-option.selected .po-check { opacity: 1; }
.platform-option .po-check .icon { width: 13px; height: 13px; }
.upload-zone { border: 1px dashed rgba(255,255,255,.14); background: rgba(255,255,255,.015); border-radius: 10px; padding: 25px 15px; text-align: center; cursor: pointer; transition: .18s; }
.upload-zone:hover, .upload-zone.dragover { border-color: rgba(215,255,114,.35); background: rgba(215,255,114,.03); }
.upload-zone .upload-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(215,255,114,.06); border: 1px solid rgba(215,255,114,.12); color: #b9db7f; display: grid; place-items: center; margin: 0 auto 9px; }
.upload-zone .upload-icon .icon { width: 17px; height: 17px; }
.upload-zone strong { display: block; font-size: 10px; color: #c5d0dc; }
.upload-zone small { display: block; color: #617085; font-size: 8px; margin-top: 4px; }
.upload-file { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(215,255,114,.14); background: rgba(215,255,114,.04); border-radius: 8px; padding: 9px; margin-top: 8px; }
.upload-file .icon { color: #b9db7f; width: 15px; height: 15px; }
.upload-file span { flex: 1; font-size: 8.5px; color: #b9c5d2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file button { background: none; border: 0; color: #7b899c; }
.upload-file button .icon { width: 13px; height: 13px; }
.input-help { color: #5d6c80; font-size: 8px; line-height: 1.5; margin-top: 5px; }

.command-backdrop { position: fixed; inset: 0; z-index: 210; background: rgba(2,5,10,.7); backdrop-filter: blur(6px); padding: 12vh 20px 20px; display: flex; justify-content: center; align-items: flex-start; animation: fadeIn .15s ease; }
.command-panel { width: min(560px, 100%); border: 1px solid rgba(255,255,255,.13); background: #0d1520; border-radius: 13px; box-shadow: 0 35px 100px rgba(0,0,0,.55); overflow: hidden; animation: modalIn .18s ease both; }
.command-search { display: flex; align-items: center; gap: 9px; padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.07); }
.command-search .icon { color: #617085; width: 15px; height: 15px; }
.command-search input { flex: 1; background: none; border: 0; outline: none; color: #dbe4ee; font-size: 11.5px; }
.command-search kbd { font-family: var(--font); font-size: 8px; color: #5d6c80; border: 1px solid rgba(255,255,255,.08); border-radius: 4px; padding: 2px 5px; }
.command-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.command-section { padding: 8px 9px 4px; font-size: 7.5px; color: #536276; text-transform: uppercase; letter-spacing: .1em; }
.command-item { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 7px; cursor: pointer; color: #a5b2c2; font-size: 10px; }
.command-item:hover, .command-item.selected { background: rgba(215,255,114,.07); color: #e2f0c9; }
.command-item .icon { width: 14px; height: 14px; color: #7d8ca0; }
.command-item .command-meta { margin-left: auto; color: #566579; font-size: 7.5px; }
.command-empty { padding: 30px; text-align: center; color: #617085; font-size: 9px; }

.notification-pop { position: absolute; right: 30px; top: 56px; width: 300px; border: 1px solid rgba(255,255,255,.11); background: #101927; border-radius: 11px; box-shadow: 0 22px 55px rgba(0,0,0,.45); z-index: 90; display: none; overflow: hidden; }
.notification-pop.open { display: block; animation: dropdownIn .15s ease both; }
.notification-head { padding: 12px 13px; border-bottom: 1px solid rgba(255,255,255,.065); display: flex; justify-content: space-between; align-items: center; }
.notification-head h4 { font-size: 10px; }
.notification-head span { color: #5d6c80; font-size: 7.5px; }
.notification-list { max-height: 300px; overflow-y: auto; padding: 4px; }
.notification-item { padding: 8px 9px; border-radius: 6px; }
.notification-item:hover { background: rgba(255,255,255,.03); }
.notification-item p { color: #a9b6c5; font-size: 8.5px; line-height: 1.5; }
.notification-item span { color: #536276; font-size: 7px; margin-top: 2px; display: block; }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.035) 25%, rgba(255,255,255,.065) 50%, rgba(255,255,255,.035) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-text { height: 10px; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 220px; margin-bottom: 18px; }
.view-loading { padding-top: 8px; }
.view-loading-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-top: 20px; }
.view-loading-card { height: 115px; border-radius: 12px; }
.view-loading-panel { height: 300px; border-radius: 13px; margin-top: 14px; }

.save-bar { position: fixed; left: 252px; right: 0; bottom: 0; z-index: 45; background: rgba(13,21,32,.92); backdrop-filter: blur(15px); border-top: 1px solid rgba(215,255,114,.16); padding: 10px 30px; display: flex; align-items: center; justify-content: space-between; gap: 15px; transform: translateY(110%); transition: transform .25s ease; }
.save-bar.show { transform: none; }
.save-bar span { color: #a9b6c5; font-size: 9px; }
.save-bar span b { color: #d7ff72; font-weight: 500; }
.save-bar .btn { min-height: 32px; font-size: 9px; }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border: 1px solid rgba(255,255,255,.08); border-bottom-width: 2px; border-radius: 4px; font-family: var(--font); font-size: 7.5px; color: #6c7b8e; }

@media (max-width: 1160px) {
  .bot-grid, .plugin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .overview-layout { grid-template-columns: 1fr; }
  .overview-bottom { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
  .detail-layout.equal { grid-template-columns: 1fr; }
  .channel-layout { grid-template-columns: 1fr; }
  .model-layout, .settings-layout { grid-template-columns: minmax(0,1fr); }
  .top-search { min-width: 150px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  .sidebar.open { transform: none; }
  .sidebar-close { display: block; }
  .sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 65; background: rgba(2,5,10,.55); backdrop-filter: blur(2px); }
  .sidebar-scrim.show { display: block; }
  .app-main { margin-left: 0; }
  .topbar { padding: 0 18px; }
  .mobile-menu-btn { display: inline-flex; }
  .view { padding: 22px 18px 55px; }
  .top-search { display: none; }
  .save-bar { left: 0; padding: 10px 18px; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { height: 58px; gap: 10px; }
  .topbar .btn span { display: none; }
  .topbar .btn { min-width: 32px; padding: 0 8px; }
  .breadcrumb { font-size: 9px; }
  .view { padding: 19px 14px 50px; }
  .page-head { flex-direction: column; gap: 14px; margin-bottom: 19px; }
  .page-head h1 { font-size: 23px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 104px; padding: 12px 13px; }
  .stat-value { font-size: 23px; margin-top: 12px; }
  .bot-grid, .plugin-grid { grid-template-columns: 1fr; }
  .channel-layout { gap: 10px; }
  .detail-tabs { margin-bottom: 15px; }
  .detail-tab { padding: 9px 9px; font-size: 9px; }
  .bot-profile { padding: 14px; gap: 11px; flex-wrap: wrap; }
  .bot-profile .agent-avatar.lg { width: 44px; height: 44px; font-size: 20px; }
  .bot-profile-title h1 { font-size: 18px; }
  .bot-profile-actions { width: 100%; padding-top: 4px; }
  .bot-profile-actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .toolbar { gap: 6px; }
  .toolbar-search { min-width: 0; flex: 1; }
  .toolbar-right { width: 100%; }
  .toolbar-right .btn { flex: 1; }
  .plugin-detail-head { flex-wrap: wrap; }
  .plugin-detail-actions { width: 100%; }
  .plugin-detail-actions .btn { flex: 1; }
  .qr-panel { align-items: flex-start; }
  .qr-box { width: 102px; height: 102px; }
  .notification-pop { right: 12px; width: calc(100vw - 24px); }
  .save-bar { padding: 9px 14px; }
  .save-bar span { font-size: 8px; }
  .view-loading-grid { grid-template-columns: 1fr 1fr; }
}


/* Readability pass for the application shell */
.side-link { font-size: 12.5px; }
.side-link .side-count { font-size: 9.5px; }
.side-label { font-size: 9.5px; }
.workspace-name { font-size: 11.5px; }
.workspace-plan { font-size: 9px; }
.usage-head { font-size: 9.5px; }
.usage-note { font-size: 8.5px; }
.user-name { font-size: 11.5px; }
.user-email { font-size: 8.5px; }
.top-search { font-size: 10.5px; }
.topbar .btn { font-size: 11px; }
.page-head p { font-size: 12.5px; }
.page-head-actions .btn { font-size: 11px; }
.stat-label { font-size: 11px; }
.stat-foot { font-size: 9.5px; }
.panel-head h3 { font-size: 13.5px; }
.panel-head p { font-size: 9.5px; }
.panel-link { font-size: 9.5px; }
.bot-mini-name { font-size: 11.5px; }
.bot-mini-sub { font-size: 9px; }
.bot-mini-meta { font-size: 9px; }
.activity-text { font-size: 10.5px; }
.activity-time { font-size: 8.5px; }
.chart-summary-main small, .chart-legend { font-size: 9px; }
.channel-item-name { font-size: 11px; }
.channel-item-sub { font-size: 9px; }
.channel-state { font-size: 8.5px; }
.toolbar-search input { font-size: 10.5px; }
.filter-tab { font-size: 10.5px; }
.bot-card-name { font-size: 14px; }
.bot-card-platform { font-size: 9px; }
.bot-card-desc { font-size: 10.5px; }
.bot-card-tags .badge { font-size: 8px; }
.bot-card-stat { font-size: 8.5px; }
.detail-tab { font-size: 11px; }
.form-panel-head h3 { font-size: 13px; }
.form-panel-head p { font-size: 10px; }
.form-panel .field label { font-size: 11px; }
.form-panel .input, .form-panel .textarea, .form-panel .select { font-size: 11.5px; }
.skill-name { font-size: 11px; }
.skill-desc { font-size: 9.5px; }
.plugin-card h3 { font-size: 13px; }
.plugin-card .plugin-version { font-size: 8.5px; }
.plugin-card p { font-size: 9.5px; }
.plugin-card-foot .plugin-open { font-size: 9px; }
.plugin-card-foot .badge { font-size: 7px; }
.plugin-detail-info h1 { font-size: 24px; }
.plugin-detail-info p { font-size: 11px; }
.plugin-meta-row { font-size: 9px; }
.settings-field label { font-size: 11px; }
.settings-field .input, .settings-field .select, .settings-field .textarea { font-size: 11.5px; }
.readme { font-size: 11px; }
.assign-name { font-size: 10.5px; }
.assign-sub { font-size: 8.5px; }
.meta-row { font-size: 9.5px; }
.channel-config-head h3 { font-size: 13.5px; }
.channel-config-head p { font-size: 9.5px; }
.channel-status-bar { font-size: 9.5px; }
.channel-form .field label { font-size: 11px; }
.webhook-value { font-size: 8.5px; }
.qr-main h4 { font-size: 11.5px; }
.qr-main p { font-size: 9.5px; }
.integration-note { font-size: 9.5px; }
.model-status h3 { font-size: 13px; }
.model-status p { font-size: 9.5px; }
.model-preset { font-size: 9.5px; }
.summary-row { font-size: 9.5px; }
.modal-head h3 { font-size: 15px; }
.modal-head p { font-size: 9.5px; }
.modal-text { font-size: 11.5px; }
.modal-form .field label { font-size: 10.5px; }
.modal-form .input, .modal-form .select, .modal-form .textarea { font-size: 11.5px; }
.upload-zone strong { font-size: 11px; }
.upload-zone small { font-size: 9px; }
.command-item { font-size: 11px; }
.dropdown-item { font-size: 9.5px; }


/* QQ connection mode */
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mode-option { display: flex; align-items: flex-start; gap: 9px; text-align: left; padding: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); border-radius: 9px; color: #9aa8ba; transition: .18s; }
.mode-option:hover { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.035); }
.mode-option.selected { border-color: rgba(215,255,114,.34); background: rgba(215,255,114,.055); color: #dfefc1; box-shadow: 0 0 0 2px rgba(215,255,114,.04); }
.mode-option .mo-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: #8d9bad; flex: 0 0 auto; }
.mode-option.selected .mo-icon { background: rgba(215,255,114,.1); border-color: rgba(215,255,114,.18); color: var(--lime); }
.mode-option .mo-icon .icon { width: 13px; height: 13px; }
.mode-option strong { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.3; }
.mode-option small { display: block; color: #637287; font-size: 8px; line-height: 1.45; margin-top: 3px; }
.mode-option.selected small { color: #8fa27a; }
.channel-mode-panel { margin-top: 14px; }
.ws-status-card { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.02); padding: 12px; }
.ws-status-card.connected { border-color: rgba(134,239,172,.18); background: rgba(134,239,172,.035); }
.ws-status-card.error { border-color: rgba(251,113,133,.2); background: rgba(251,113,133,.035); }
.ws-status-card.pending { border-color: rgba(248,196,107,.18); background: rgba(248,196,107,.03); }
.ws-status-head { display: flex; align-items: flex-start; gap: 9px; }
.ws-dot { width: 7px; height: 7px; border-radius: 50%; background: #607086; margin-top: 5px; flex: 0 0 auto; }
.ws-status-card.connected .ws-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(134,239,172,.08); }
.ws-status-card.pending .ws-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(248,196,107,.08); animation: wsPulse 1.4s infinite; }
.ws-status-card.error .ws-dot { background: var(--red); }
@keyframes wsPulse { 50% { opacity: .4; } }
.ws-status-head > div { flex: 1; min-width: 0; }
.ws-status-head strong { display: block; font-size: 10.5px; color: #d4dee9; }
.ws-status-head p { color: #6d7c8f; font-size: 8.5px; line-height: 1.5; margin-top: 2px; }
.ws-status-head .badge { flex: 0 0 auto; font-size: 7px; min-height: 18px; }
.ws-error { margin-top: 9px; padding: 7px 8px; border-radius: 6px; background: rgba(0,0,0,.18); border: 1px solid rgba(251,113,133,.12); color: #f0aab4; font-size: 8px; line-height: 1.6; word-break: break-word; }
.ws-meta { margin-top: 8px; color: #59697d; font-size: 7.5px; }
.ws-status-actions { display: flex; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
.ws-status-actions .btn { flex: 1; min-height: 31px; font-size: 8.5px; }
.plugin-card .badge .icon, .bot-card-tags .badge .icon, .bot-profile-title .badge .icon { width: 9px; height: 9px; }
