:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 16px;
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --surface-soft: #fafafa;
  --text: #17181c;
  --muted: #858893;
  --line: #e9eaed;
  --accent: #5b6df4;
  --accent-strong: #4255df;
  --shadow: 0 16px 44px rgba(25, 30, 56, .055);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(91, 109, 244, .28); outline-offset: 2px; }
svg { flex: none; }
h1, h2, h3, p { margin: 0; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { background: rgba(252, 252, 253, .86); border-right: 1px solid #e8e9ed; display: flex; flex-direction: column; padding: 28px 16px 18px; position: sticky; top: 0; height: 100vh; backdrop-filter: blur(26px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 36px; white-space: nowrap; }
.brand-mark, .login-logo { width: 35px; height: 35px; color: #fff; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(140deg, #7c8cff 0%, #5546d5 95%); box-shadow: 0 7px 16px rgba(92, 101, 238, .23); }
.brand-name { font-size: .95rem; font-weight: 750; letter-spacing: -.04em; }
.brand-name span { color: #8b8d96; font-weight: 550; margin-left: 3px; }
.sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { height: 44px; display: flex; align-items: center; gap: 13px; width: 100%; border: 0; border-radius: 11px; background: transparent; color: #777b87; text-align: left; padding: 0 13px; font-weight: 570; font-size: .9rem; transition: background .18s ease, color .18s ease, transform .12s ease; }
.nav-item:hover { background: #f0f1f5; color: #252734; }
.nav-item:active { transform: scale(.985); }
.nav-item.active { background: #e9eafd; color: #4557db; font-weight: 700; }
.nav-separator { height: 1px; background: var(--line); margin: 18px 13px; }
.sidebar-foot { margin-top: auto; }
.server-pill { display: flex; align-items: center; gap: 9px; margin: 0 12px 20px; color: #777c84; font-size: .78rem; font-weight: 550; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: #37c990; box-shadow: 0 0 0 4px rgba(55, 201, 144, .12); }
.profile { border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: 13px; padding: 10px; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: #838691; transition: background .18s, transform .12s; }
.profile:hover { background: #fff; }
.profile:active { transform: scale(.985); }
.avatar, .topbar-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e9e8fa; color: #6659c6; font-size: .85rem; font-weight: 700; }
.profile-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.profile-text strong { color: #2e3037; font-size: .82rem; font-weight: 680; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-text small { font-size: .72rem; color: #9a9ca4; }
.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 5; min-height: 60px; padding: 0 clamp(28px, 4vw, 70px); display: flex; align-items: center; justify-content: space-between; background: rgba(245, 245, 247, .74); backdrop-filter: blur(24px) saturate(160%); }
.topbar-right { display: flex; align-items: center; gap: 21px; }
.topbar-status { display: inline-flex; align-items: center; gap: 9px; color: #8e929b; font-size: .74rem; }
.topbar-avatar { width: 30px; height: 30px; font-size: .75rem; border: 0; cursor: pointer; }
.content { max-width: 1650px; margin: 0 auto; padding: 35px clamp(28px, 4vw, 70px) 70px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(1.75rem, 2.5vw, 2.15rem); font-weight: 740; letter-spacing: -.055em; line-height: 1.14; }
.page-heading p { color: #989ba4; margin-top: 10px; font-size: .85rem; }
.primary, .secondary, .hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 10px; min-height: 38px; padding: 0 15px; font-size: .83rem; font-weight: 700; transition: transform .12s ease, background .18s, box-shadow .18s; white-space: nowrap; }
.primary { color: #fff; background: #242733; box-shadow: 0 5px 10px rgba(21, 23, 40, .12); }
.primary:hover { background: #3d4151; }
.secondary { color: #3a3d48; background: #f1f2f5; }
.secondary:hover { background: #e9eaf0; }
.primary:active, .secondary:active, .hero-button:active, .icon-button:active, .round-button:active { transform: scale(.965); }
.hero { min-height: 259px; background: radial-gradient(circle at 86% 14%, #343763 0, transparent 32%), linear-gradient(125deg, #212439 0%, #272946 56%, #191c32 100%); color: #fff; border-radius: 21px; box-shadow: 0 22px 44px rgba(27, 30, 62, .13); position: relative; overflow: hidden; display: flex; align-items: center; padding: 38px 46px; }
.hero > div:first-child { position: relative; z-index: 2; }
.hero-kicker { font-size: .75rem; font-weight: 650; color: #bdc1e1; display: inline-flex; align-items: center; gap: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero h2 { font-size: clamp(1.7rem, 2.5vw, 2.45rem); letter-spacing: -.055em; line-height: 1.18; margin-top: 19px; font-weight: 730; }
.hero p { margin-top: 9px; color: #b7bad1; font-size: .88rem; }
.hero-button { margin-top: 25px; background: #fff; color: #242746; min-height: 39px; }
.hero-button:hover { background: #f0f2ff; }
.hero-art { position: absolute; width: 365px; height: 300px; right: 9%; top: -10px; display: grid; place-items: center; opacity: .95; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 275px; height: 275px; border: 1px solid rgba(178, 185, 252, .22); box-shadow: inset 0 0 40px rgba(99, 112, 243, .12); transform: rotate(-23deg) scaleX(1.25); }
.orb-two { width: 205px; height: 205px; border: 1px solid rgba(178, 185, 252, .22); transform: rotate(34deg) scaleX(1.25); }
.orb-three { width: 138px; height: 138px; background: radial-gradient(circle at 30% 24%, rgba(156, 161, 254, .68), rgba(82, 78, 186, .32) 48%, rgba(25,28,57,.03) 76%); box-shadow: 0 0 85px rgba(116, 102, 243, .22); }
.orb-center { color: #fff; position: relative; z-index: 1; filter: drop-shadow(0 0 20px rgba(206, 211, 255, .65)); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.metric { min-height: 139px; padding: 21px 23px; border-radius: 17px; background: var(--surface); border: 1px solid #eeeff2; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; }
.metric-top { display: flex; align-items: center; justify-content: space-between; width: 100%; color: #838791; font-size: .78rem; font-weight: 560; }
.metric-icon { color: #adb0c0; }
.metric strong { font-size: 2rem; font-weight: 700; letter-spacing: -.06em; line-height: 1; margin-top: 18px; font-variant-numeric: tabular-nums; }
.metric small { color: #a2a5ad; font-size: .72rem; margin-top: 5px; }
.presence-strip { margin-top: 18px; min-height: 73px; padding: 14px 22px; border: 1px solid #e9ebf0; border-radius: 17px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); }
.presence-strip > div:first-child { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.presence-title { color: #858995; font-size: .78rem; font-weight: 600; }
.presence-strip strong { font-size: 1.2rem; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.presence-item { display: inline-flex; align-items: center; gap: 8px; color: #797d88; font-size: .78rem; white-space: nowrap; }
.presence-item strong { margin-left: 2px; color: #343846; font-size: .93rem; }
.presence-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; background: #adb3c1; }
.presence-dot.using { background: #4dbb8f; box-shadow: 0 0 0 4px #4dbb8f1d; }
.presence-dot.idle { background: #e4b65c; box-shadow: 0 0 0 4px #e4b65c1d; }
.presence-dot.logged { background: #aeb5c6; box-shadow: 0 0 0 4px #aeb5c61f; }
.presence-strip > button { border: 0; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; background: #f4f5f8; color: #7e8494; }
.presence-strip > button:hover { background: #e9eafd; color: #4557db; }
.analytics-toolbar { display: flex; align-items: center; justify-content: space-between; margin: -10px 0 24px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid #e9ebf0; border-radius: 11px; background: #ebedf2; }
.segmented button { border: 0; border-radius: 8px; background: transparent; color: #858995; min-height: 31px; padding: 0 13px; font-size: .75rem; font-weight: 650; }
.segmented button.selected { color: #333744; background: #fff; box-shadow: 0 1px 4px #1c25401c; }
.analytics-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr); gap: 18px; margin-top: 20px; }
.panel-value { color: #9498a3; font-size: .76rem; font-variant-numeric: tabular-nums; }
.chart-wrap { min-height: 310px; padding: 27px 27px 22px; }
.bar-chart { display: flex; align-items: stretch; gap: clamp(4px, .8vw, 12px); height: 260px; }
.bar-col { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; }
.bar-value { height: 19px; color: #818695; font-size: .64rem; font-variant-numeric: tabular-nums; }
.bar-track { flex: 1; width: min(100%, 37px); border-radius: 7px 7px 4px 4px; background: #f5f6fa; overflow: hidden; }
.bar-track svg { width: 100%; height: 100%; display: block; }
.bar-track rect { fill: #6976e5; }
.bar-label { height: 22px; padding-top: 7px; color: #999ca7; font-size: .65rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.top-list { padding: 10px 23px; }
.top-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 5px 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid #f0f1f4; }
.top-row:last-child { border-bottom: 0; }
.top-rank { color: #afb2bd; font-size: .7rem; font-variant-numeric: tabular-nums; }
.top-user { min-width: 0; display: grid; gap: 3px; }
.top-user strong { color: #373b46; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-user small { color: #a1a4af; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-count { color: #636978; font-size: .75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.top-bar { grid-column: 2 / 4; width: 100%; height: 4px; border: 0; border-radius: 3px; background: #f0f1f7; overflow: hidden; appearance: none; }
.top-bar::-webkit-progress-bar { background: #f0f1f7; }
.top-bar::-webkit-progress-value { background: #8b93ef; border-radius: 3px; }
.top-bar::-moz-progress-bar { background: #8b93ef; border-radius: 3px; }
.agent-online { margin-top: 20px; }
.agent-online td { height: 55px; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 18px; margin-top: 25px; }
.panel { background: var(--surface); border: 1px solid #eceef1; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { min-height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid #f0f1f3; }
.panel-heading h2 { font-size: .98rem; font-weight: 700; letter-spacing: -.025em; }
.text-button { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #8b8e9a; font-size: .75rem; font-weight: 600; }
.text-button:hover { color: var(--accent-strong); }
.activity-list { padding: 5px 25px; }
.activity { display: flex; gap: 13px; align-items: center; min-height: 64px; border-bottom: 1px solid #f2f3f5; }
.activity:last-child { border: 0; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: #f3bd65; }
.activity-dot.succeeded { background: #50c69a; }
.activity-dot.failed { background: #ee8383; }
.activity > div { display: grid; gap: 3px; flex: 1; min-width: 0; }
.activity strong { font-size: .81rem; font-weight: 650; }
.activity small { color: #9699a2; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity time { font-size: .72rem; color: #afb1b8; white-space: nowrap; }
.steps { padding: 8px 20px 18px; }
.steps button { height: 49px; width: 100%; display: flex; align-items: center; gap: 14px; background: transparent; border: 0; border-bottom: 1px solid #f3f4f5; color: #414550; text-align: left; font-size: .82rem; font-weight: 600; }
.steps button:last-child { border: 0; }
.steps button:hover { color: var(--accent-strong); }
.steps button span:nth-child(2) { flex: 1; }
.step-num { color: #bbbcc6; font-size: .7rem; font-variant-numeric: tabular-nums; }
.steps svg { color: #b6bac4; }
.release-summary { padding: 25px; display: flex; flex-direction: column; align-items: flex-start; }
.release-symbol { width: 46px; height: 46px; border-radius: 14px; color: #796bd5; background: #f0edfa; display: grid; place-items: center; }
.release-summary strong { font-size: 1.25rem; letter-spacing: -.03em; margin-top: 17px; }
.release-summary small { font-size: .77rem; color: #9a9da7; margin-top: 4px; }
.release-summary button { margin-top: 22px; }
.empty { min-height: 276px; padding: 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-icon { width: 62px; height: 62px; display: grid; place-items: center; background: #f2f2fb; color: #8d8dda; border-radius: 19px; margin-bottom: 15px; }
.empty h3 { font-size: .94rem; font-weight: 690; letter-spacing: -.02em; }
.empty button { margin-top: 19px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.agent-card, .kb-card { min-height: 250px; background: #fff; border: 1px solid #ebedf1; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.agent-card:hover, .kb-card:hover { transform: translateY(-3px); box-shadow: 0 21px 45px rgba(25,30,56,.095); }
.agent-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.agent-symbol { width: 43px; height: 43px; color: #7268e2; background: #f0eefe; border-radius: 13px; display: grid; place-items: center; }
.agent-card h2, .kb-card h2 { font-size: 1.04rem; font-weight: 720; letter-spacing: -.03em; margin-top: 19px; }
.agent-card p, .kb-card p { color: #9c9fa8; font-size: .79rem; line-height: 1.5; margin-top: 6px; min-height: 36px; }
.agent-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #f0f1f3; }
.agent-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #8f929c; }
.card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; }
.card-actions .secondary { min-height: 33px; padding: 0 10px; background: #f4f4f7; }
.icon-button { border: 0; color: #9b9da8; background: transparent; display: grid; place-items: center; border-radius: 8px; width: 33px; height: 33px; transition: background .15s, color .15s, transform .12s; }
.icon-button:hover { color: #464956; background: #f3f3f6; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 9px; border-radius: 7px; font-size: .69rem; font-weight: 650; background: #f1f2f4; color: #8c9099; white-space: nowrap; }
.badge.green { color: #2ba275; background: #e9f8f1; }
.badge.amber { color: #bc8b38; background: #fff4de; }
.badge.red { color: #cf6565; background: #fff0f0; }
.kb-card { min-height: 230px; }
.kb-icon { width: 45px; height: 45px; display: grid; place-items: center; color: #5e77cd; background: #ecf2ff; border-radius: 14px; }
.kb-bottom { border-top: 1px solid #f1f2f3; margin-top: 19px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; color: #969aa4; font-size: .73rem; }
.round-button { border: 0; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #f3f3f7; color: #72768a; transition: background .15s, transform .12s; }
.round-button:hover { background: #e9eafd; color: #5263dc; }
.table-panel { min-height: 275px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { height: 54px; background: #fafafb; color: #9fa2aa; font-size: .72rem; font-weight: 650; padding: 0 24px; white-space: nowrap; }
td { height: 75px; padding: 8px 24px; border-top: 1px solid #f0f1f3; color: #6e727e; font-size: .8rem; white-space: nowrap; }
td:last-child { width: 48px; }
.table-primary { display: flex; align-items: center; gap: 12px; }
.table-primary > span:last-child { display: grid; gap: 3px; }
.table-primary strong, td strong { color: #30343f; font-size: .82rem; font-weight: 680; }
.table-primary small { font-size: .72rem; color: #a4a7af; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.model-mark, .user-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #edf0fd; color: #6273d9; }
.model-mark.purple { background: #f1eefa; color: #8d6bcf; }
.user-avatar { border-radius: 50%; background: #eef2fa; color: #6e83b7; font-size: .78rem; font-weight: 700; }
.truncate-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(20,22,33,.28); backdrop-filter: blur(3px); animation: scrim-in .25s ease-out; }
.drawer { position: fixed; z-index: 21; right: 0; top: 0; bottom: 0; width: min(100vw, 455px); background: rgba(255,255,255,.97); backdrop-filter: blur(28px); box-shadow: -24px 0 70px rgba(23,28,49,.13); display: flex; flex-direction: column; animation: drawer-in .35s cubic-bezier(.22,1,.36,1); }
.drawer-wide { width: min(100vw, 610px); }
.drawer-head { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 29px; border-bottom: 1px solid #eef0f2; }
.drawer-head h2 { font-size: 1.17rem; font-weight: 730; letter-spacing: -.035em; }
.drawer-content { flex: 1; overflow-y: auto; min-height: 0; padding: 27px 30px 35px; }
.drawer-content:has(.chat-log) { display: flex; flex-direction: column; }
.drawer-foot { min-height: 72px; border-top: 1px solid #eef0f2; display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 0 29px; }
.editor-form { display: grid; gap: 21px; }
.field { display: grid; gap: 9px; color: #777b86; font-size: .75rem; font-weight: 650; }
.field input, .field textarea, .field select, .chat-composer input { width: 100%; border: 1px solid #e6e8ed; border-radius: 10px; background: #fafafb; color: #282b34; padding: 11px 13px; font-size: .85rem; font-weight: 500; transition: border-color .16s, background .16s, box-shadow .16s; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #cdd0dc; }
.field input:focus, .field textarea:focus, .field select:focus, .chat-composer input:focus { outline: 0; border-color: #9da8ef; box-shadow: 0 0 0 3px rgba(91,109,244,.1); background: #fff; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input[type=file] { padding: 8px; }
.field input::placeholder, .chat-composer input::placeholder { color: #b9bbc4; }
.toggle-row { height: 44px; display: flex; align-items: center; justify-content: space-between; color: #525662; font-size: .83rem; font-weight: 600; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 38px; height: 23px; border-radius: 20px; background: #d6d8de; padding: 3px; transition: background .2s; }
.switch::before { content: ''; display: block; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #0002; transition: transform .2s; }
.toggle-row input:checked + .switch { background: #6369eb; }
.toggle-row input:checked + .switch::before { transform: translateX(15px); }
.toggle-row input:focus-visible + .switch { outline: 3px solid rgba(91,109,244,.25); outline-offset: 3px; }
.readonly-value { border: 1px solid #edf0f2; background: #f9f9fb; border-radius: 10px; padding: 12px; color: #7d808d; font-size: .83rem; }
.user-modal { position: fixed; z-index: 21; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(calc(100vw - 32px), 480px); max-height: min(90vh, 740px); border-radius: 19px; background: rgba(255,255,255,.98); box-shadow: 0 28px 90px rgba(21,25,47,.2); display: flex; flex-direction: column; animation: modal-in .28s cubic-bezier(.22,1,.36,1); }
.modal-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; border-bottom: 1px solid #eef0f2; }
.modal-head h2 { font-size: 1.08rem; letter-spacing: -.03em; }
.modal-body { padding: 25px; overflow-y: auto; }
.modal-foot { min-height: 68px; padding: 0 25px; border-top: 1px solid #eef0f2; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.profile-large { display: flex; align-items: center; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid #eceef1; }
.profile-large .avatar { width: 54px; height: 54px; font-size: 1.15rem; }
.profile-large h3 { font-size: 1rem; }
.profile-large p { color: #999da7; margin-top: 3px; font-size: .8rem; }
.danger-ghost { border: 0; background: transparent; color: #c75c67; margin-top: 21px; padding: 8px 0; font-size: .84rem; font-weight: 650; }
.kb-detail-top { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid #eff0f2; }
.kb-detail-top h3 { font-size: 1.2rem; letter-spacing: -.035em; margin-top: 16px; }
.kb-detail-top p { color: #9a9ca7; font-size: .82rem; margin-top: 5px; }
.kb-detail-top button { margin-top: 21px; }
.doc-list { margin-top: 14px; }
.doc-row { min-height: 70px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #f1f2f4; }
.doc-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: #f0f3ff; color: #7584d5; }
.doc-row > span:nth-child(2) { display: grid; gap: 4px; flex: 1; }
.doc-row strong { font-size: .84rem; font-weight: 650; }
.doc-row small { color: #9c9faa; font-size: .72rem; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.chat-intro { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.chat-intro h3 { font-size: 1.05rem; margin-top: 13px; }
.chat-intro p { color: #a0a3ad; font-size: .82rem; margin-top: 6px; }
.chat-message { max-width: 85%; width: fit-content; border-radius: 15px; padding: 12px 15px; font-size: .85rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; background: #f2f3f6; color: #444957; }
.chat-message.you { align-self: flex-end; color: #fff; background: #5d63d9; border-bottom-right-radius: 5px; }
.chat-message.agent { align-self: flex-start; border-bottom-left-radius: 5px; }
.chat-message.pending { color: #9a9dab; }
.chat-composer { display: flex; gap: 8px; padding-top: 19px; }
.chat-composer input { flex: 1; }
.send-button { width: 43px; border: 0; border-radius: 10px; background: #292d3b; color: #fff; display: grid; place-items: center; }
.send-button:hover { background: #40465a; }
#toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; background: #282b35; color: #fff; border-radius: 10px; box-shadow: 0 12px 35px #0002; padding: 12px 18px; font-size: .82rem; font-weight: 600; transition: opacity .2s, transform .2s; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: #a84555; }
.login-shell { min-height: 100vh; background: radial-gradient(circle at 76% 21%, #ebeafa 0, transparent 27%), radial-gradient(circle at 20% 75%, #eff1fb 0, transparent 30%), #f7f7fa; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(100%, 420px); border: 1px solid rgba(230,231,239,.9); border-radius: 23px; background: rgba(255,255,255,.86); backdrop-filter: blur(30px); padding: 39px; box-shadow: 0 30px 80px rgba(39,44,81,.08); }
.login-logo { width: 43px; height: 43px; border-radius: 13px; }
.login-eyebrow { font-size: .69rem; letter-spacing: .17em; font-weight: 780; color: #9fa2b0; margin-top: 28px; }
.login-card h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -.055em; margin-top: 11px; font-weight: 740; }
.login-card p { color: #a1a4af; margin-top: 8px; font-size: .84rem; }
.login-form { display: grid; gap: 19px; margin-top: 33px; }
.login-form label { display: grid; gap: 8px; font-size: .75rem; color: #777b87; font-weight: 660; }
.login-form input { border: 1px solid #e8eaf0; border-radius: 10px; min-height: 43px; padding: 0 12px; background: #fafafd; color: #292c36; outline: 0; }
.login-form input:focus { border-color: #9ca5ed; box-shadow: 0 0 0 3px rgba(91,109,244,.1); }
.wide { width: 100%; height: 44px; margin-top: 9px; justify-content: space-between; padding: 0 15px; }
.login-foot { position: absolute; bottom: 27px; color: #b3b4bf; font-size: .7rem; }
@keyframes drawer-in { from { transform: translateX(35px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { transform: translate(-50%, -47%) scale(.98); opacity: .4; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@media (max-width: 1160px) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .hero-art { right: 0; opacity: .55; } .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .shell { grid-template-columns: 70px minmax(0,1fr); } .sidebar { padding: 19px 10px; } .brand { padding: 0 7px 26px; } .brand-name, .nav-item span, .server-pill, .profile-text, .profile > svg, .nav-separator { display: none; } .nav-item { justify-content: center; padding: 0; } .profile { justify-content: center; padding: 7px; } .topbar { padding: 0 25px; } .content { padding: 30px 25px 60px; } .metrics, .analytics-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); } .section-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .shell { display: block; padding-bottom: 66px; } .sidebar { position: fixed; inset: auto 0 0; height: 64px; z-index: 10; padding: 6px 9px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid #e6e8ed; } .brand, .sidebar-foot, .sidebar .nav-separator { display: none; } .sidebar nav { height: 100%; display: flex; flex-direction: row; justify-content: space-around; gap: 0; overflow-x: auto; } .nav-item { width: 43px; height: 43px; flex: none; } .nav-item:nth-of-type(n+6) { display: none; } .topbar { min-height: 53px; padding: 0 18px; } .content { padding: 23px 18px 48px; } .page-heading { margin-bottom: 22px; } .page-heading h1 { font-size: 1.75rem; } .page-heading p { font-size: .78rem; } .page-heading .primary { font-size: 0; width: 38px; padding: 0; } .page-heading .primary svg { width: 20px; height: 20px; } .metrics, .analytics-metrics { gap: 10px; } .metric { min-height: 122px; padding: 16px; } .metric strong { font-size: 1.75rem; } .presence-strip { flex-wrap: wrap; gap: 12px 18px; padding: 15px; } .presence-strip > div:first-child { flex-basis: 100%; } .presence-strip > button { display: none; } .analytics-grid { gap: 12px; } .chart-wrap { padding: 20px 13px; } .bar-chart { gap: 3px; } .bar-label { font-size: .55rem; } .card-grid { grid-template-columns: 1fr; } .drawer { width: 100%; } .drawer-head { height: 66px; } .drawer-content { padding: 21px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .agent-card:hover, .kb-card:hover { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .sidebar, .topbar, .drawer, .user-modal, .login-card { backdrop-filter: none; background: #fff; } .topbar { background: #f5f5f7; } }
@media (prefers-contrast: more) { :root { --line: #9a9da8; --muted: #575b65; } .panel, .agent-card, .kb-card { border-color: #8b8e9a; } .nav-item.active { outline: 2px solid #3745bb; } }
