:root {
  --nav-top: #102a4c;
  --nav-side: #0d315c;
  --nav-hover: #164477;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --ai-accent: #4f6ef7;
  --ai-soft: #eef2ff;
  --page-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #d9e4f2;
  --border-strong: #bed0e6;
  --text: #1f2937;
  --muted: #64748b;
  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;
  --info: #0284c7;
  --shadow: 0 1px 2px rgba(15, 42, 76, .06);
  --drawer-shadow: -8px 0 24px rgba(15, 42, 76, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  color: var(--text);
  background: var(--page-bg);
  font: 13px/1.5 Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }

.app-shell { height: 100%; display: grid; grid-template: 44px 1fr / 56px 1fr; }
.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  background: var(--nav-top);
  color: #fff;
  height: 44px;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.brand-block { width: 204px; display: flex; align-items: center; gap: 9px; padding-left: 14px; flex: 0 0 auto; }
.brand-mark {
  width: 24px; height: 24px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; border: 1px solid #7db2ff;
  background: #1766c1; transform: skew(-7deg); border-radius: 4px;
}
.brand-name { font-weight: 650; letter-spacing: .2px; white-space: nowrap; }
.page-tabs { display: flex; align-self: stretch; min-width: 0; overflow: hidden; }
.page-tab {
  display: flex; align-items: center; gap: 7px; min-width: 116px; max-width: 190px;
  padding: 0 13px; border-right: 1px solid rgba(255,255,255,.1); color: #c9d7ea;
  background: rgba(255,255,255,.035); white-space: nowrap;
}
.page-tab.active { color: #17365d; background: #fff; }
.page-tab .tab-close { opacity: .55; margin-left: auto; }
.top-actions { margin-left: auto; height: 100%; display: flex; align-items: center; gap: 4px; padding-right: 10px; }
.xiaoai-entry {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  color: #fff; background: var(--primary); border: 1px solid #6da2ff; border-radius: 6px;
  font-weight: 600; transition: .15s ease;
}
.xiaoai-entry:hover { background: #3475ed; transform: translateY(-1px); }
.ai-glyph {
  display: inline-grid; place-items: center; min-width: 21px; height: 19px; padding: 0 4px;
  border-radius: 4px; background: #fff; color: var(--primary); font-size: 10px; font-weight: 800;
}
.ai-glyph.large { width: 28px; height: 26px; background: var(--primary); color: #fff; font-size: 11px; }
.icon-button, .help-button {
  height: 30px; min-width: 30px; color: #d7e3f2; background: transparent; border: 0; border-radius: 5px; position: relative;
}
.icon-button:hover, .help-button:hover { color: #fff; background: rgba(255,255,255,.09); }
.bell-shape { display: inline-block; width: 12px; height: 13px; border: 1.5px solid currentColor; border-radius: 7px 7px 3px 3px; }
.notice-dot { position: absolute; right: 6px; top: 5px; width: 6px; height: 6px; background: #fb923c; border: 1px solid var(--nav-top); border-radius: 50%; }
.notification-popover { position: fixed; z-index: 80; top: 48px; right: 112px; width: 400px; max-height: calc(100vh - 64px); overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 16px 42px rgba(15,42,76,.24); }
.notification-head { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--border); }
.notification-head strong { display: block; color: #17365d; }
.notification-head span { display: block; color: var(--muted); font-size: 11px; }
.notification-list { max-height: 430px; overflow: auto; }
.notification-item { width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 9px; padding: 11px 13px; border: 0; border-bottom: 1px solid #edf2f7; color: #405873; background: #fff; text-align: left; }
.notification-item:hover { background: #f7faff; }
.notification-item.unread { background: #f1f7ff; }
.notification-item.unread strong:after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--primary); }
.notification-type { width: 28px; height: 24px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: var(--primary); font-size: 10px; font-weight: 700; }
.notification-item strong { display: block; color: #254461; }
.notification-item p { margin: 3px 0; line-height: 1.45; }
.notification-item small { color: #8a9bae; }
.notification-foot { padding: 9px 13px; color: #7b8da0; background: #f8fafc; font-size: 11px; }
.user-chip { display: flex; align-items: center; gap: 7px; color: #e8eef6; padding: 0 7px; height: 32px; }
.avatar { width: 24px; height: 24px; display: grid; place-items: center; background: #dce8f7; color: #20476f; border-radius: 50%; font-size: 11px; font-weight: 700; }
.caret {
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  opacity: .65;
}

.caret::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.main-nav {
  grid-row: 2; grid-column: 1; background: var(--nav-side); color: #d7e3f2;
  padding: 7px 5px 10px; overflow-y: auto; z-index: 12;
}
.nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; min-height: 50px; margin-bottom: 3px; border: 0; border-radius: 6px;
  color: #b9cce2; background: transparent; font-size: 10px; gap: 3px;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.nav-item:hover { background: rgba(65, 143, 226, .2); color: #fff; transform: translateY(-1px); }
.nav-item.active { background: linear-gradient(180deg, #1f69ad, #19568f); color: #fff; box-shadow: inset 0 0 0 1px rgba(126,190,255,.22), 0 3px 8px rgba(3,24,50,.18); }
.nav-item.active:before { content: ""; position: absolute; left: -5px; top: 9px; bottom: 9px; width: 2px; border-radius: 0 2px 2px 0; background: #67b3ff; }
.nav-icon { width: 23px; height: 23px; display: grid; place-items: center; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active .nav-icon svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
.nav-separator { height: 1px; background: rgba(255,255,255,.13); margin: 8px 5px; }

.main-content { grid-row: 2; grid-column: 2; min-width: 0; overflow: auto; background: var(--page-bg); }
.page { padding: 18px 20px 36px; min-width: 980px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.page-title { margin: 0; color: #163253; font-size: 20px; font-weight: 650; }
.page-desc { margin: 3px 0 0; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 7px; }

.button {
  height: 32px; padding: 0 13px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: #fff; color: #29435e; font-weight: 520; transition: .14s ease;
}
.button:hover { border-color: #78a8eb; color: var(--primary); }
.button.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.button.primary:hover { background: var(--primary-hover); }
.button.danger { color: #b91c1c; border-color: #fecaca; background: #fff7f7; }
.button.link { border: 0; background: transparent; color: var(--primary); padding: 0 4px; height: auto; }
.button.small { height: 26px; padding: 0 9px; font-size: 12px; }
.button.ghost { background: #f8fbff; }
.button-row { display: flex; gap: 8px; align-items: center; }

.filter-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff;
  border: 1px solid var(--border); border-radius: 7px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.filter-bar .spacer { margin-left: auto; }
.field, .select-field {
  height: 32px; border: 1px solid var(--border-strong); border-radius: 5px; background: #fff;
  color: #334155; padding: 0 10px; outline: none;
}
.field:focus, .select-field:focus { border-color: #73a7ef; box-shadow: 0 0 0 2px #dbeafe; }
.search-field { width: 220px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 12px 14px; box-shadow: var(--shadow); }
.purchase-kpis .kpi-card span, .purchase-kpis .kpi-card small { display: block; color: var(--muted); }
.purchase-kpis .kpi-card strong { display: block; margin: 3px 0; color: #17365d; font-size: 22px; }
.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-value { margin-top: 3px; color: #17365d; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-foot { margin-top: 4px; color: var(--muted); font-size: 11px; }
.trend-up { color: var(--success); }
.trend-down { color: var(--error); }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow); }
.panel-header { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--border); }
.panel-header h3 { margin: 0; color: #17365d; font-size: 14px; }
.panel-header .panel-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.panel-body { padding: 14px; }
.split-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th {
  height: 36px; padding: 0 10px; background: #edf3fa; color: #405873; text-align: left;
  font-size: 12px; font-weight: 650; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { height: 40px; padding: 0 10px; border-bottom: 1px solid #edf2f7; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-sub { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; color: #8a9bae; font-size: 10px; font-weight: 400; }
.row-actions { display: flex; gap: 5px; align-items: center; }
.empty-table { padding: 32px; color: var(--muted); text-align: center; }

.task-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.task-overview button { padding: 12px 14px; border: 1px solid var(--border); border-radius: 7px; color: #52677e; background: #fff; text-align: left; box-shadow: var(--shadow); }
.task-overview button:hover { border-color: #86afe4; background: #f7fbff; }
.task-overview span, .task-overview small { display: block; }
.task-overview strong { display: block; margin: 2px 0; color: #17365d; font-size: 24px; }
.task-filter-bar { margin-bottom: 12px; }
.task-table td { height: 52px; }
.task-progress { width: 82px; height: 6px; overflow: hidden; border-radius: 8px; background: #e8eef5; }
.task-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4f7bf6,#2563eb); }
.task-progress.large { width: 160px; height: 8px; }
.task-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 12px; align-items: start; }
.task-detail-layout main { min-width: 0; display: grid; gap: 12px; }
.task-hero { display: flex; justify-content: space-between; gap: 20px; padding: 17px; }
.task-hero h2 { margin: 3px 0 5px; color: #17365d; font-size: 19px; }
.task-hero p { margin: 0; color: #60758c; }
.task-id { color: #2563eb; font-size: 11px; font-weight: 700; }
.task-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 12px; color: #708297; font-size: 11px; }
.task-hero-status { min-width: 172px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.task-hero-status > strong { color: #17365d; font-size: 22px; }
.task-section { overflow: hidden; }
.task-section .panel-header { justify-content: space-between; }
.task-section .panel-header p { margin: 3px 0 0; color: var(--muted); }
.task-source { display: flex; gap: 18px; padding: 12px 14px 0; }
.task-source span { color: var(--muted); }
.task-parameter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px 14px 14px; }
.task-parameter-grid > div { padding: 9px 10px; border: 1px solid #e0e8f1; border-radius: 6px; background: #f9fbfd; }
.task-parameter-grid span, .task-parameter-grid strong { display: block; }
.task-parameter-grid span { margin-bottom: 3px; color: #8191a4; font-size: 10px; }
.task-parameter-grid strong { color: #294762; }
.task-stepper { padding: 14px; }
.task-result { margin: 14px; padding: 12px; border-radius: 6px; color: #294762; background: #f3f8ff; line-height: 1.65; }
.task-failure { margin: 14px 14px 0; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 6px; color: #991b1b; background: #fff7f7; }
.task-failure p { margin: 4px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 14px 14px; }
.related-object { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px; border: 1px solid #dce6f1; border-radius: 6px; color: #536b83; background: #fff; text-align: left; }
.related-object strong { grid-column: 1; color: #244b72; }
.related-object b { grid-column: 2; grid-row: 1/3; align-self: center; color: var(--primary); font-weight: 600; }
.task-action-panel { position: sticky; top: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.task-action-panel h3 { margin: 0; color: #17365d; }
.task-action-panel p { color: var(--muted); font-size: 11px; }
.task-action-stack { display: grid; gap: 8px; margin-top: 13px; }
.task-action-stack .button { width: 100%; }
.danger-ghost { color: #b91c1c; border-color: #fecaca; background: #fff; }
.task-audit { display: grid; gap: 4px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); color: #8191a4; font-size: 10px; }
.task-audit strong { color: #52677e; }
.automation-runs { padding: 0 14px 14px; }
.automation-runs > div { display: grid; grid-template-columns: 120px 80px 1fr; gap: 9px; align-items: center; padding: 8px 0; border-top: 1px solid #edf2f7; }
.task-edit-grid { display: grid; gap: 10px; }
.task-edit-grid .form-item span { display: block; margin-bottom: 4px; color: #52677e; font-size: 11px; }
.task-edit-grid input, .task-edit-grid select { width: 100%; height: 32px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 9px; }
.data-table tbody tr:hover { background: #f7faff; }
.data-table tbody tr.selected { background: #eff6ff; }
.data-table input[type="checkbox"] { accent-color: var(--primary); }
.table-wrap { overflow: auto; }
.empty-state { min-height: 220px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-box { width: 54px; height: 42px; border: 1px solid #aebfd2; border-radius: 5px; margin: 0 auto 10px; position: relative; }
.empty-box:after { content: ""; position: absolute; left: 8px; right: 8px; top: 12px; height: 1px; background: #c6d4e4; box-shadow: 0 8px 0 #c6d4e4; }

.status-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.status-tag:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-tag.success { color: #15803d; background: #ecfdf3; }
.status-tag.warning { color: #b45309; background: #fff7e6; }
.status-tag.error { color: #b91c1c; background: #fff1f2; }
.status-tag.info { color: #0369a1; background: #eff8ff; }
.status-tag.neutral { color: #64748b; background: #f1f5f9; }
.pill { display: inline-flex; align-items: center; height: 23px; padding: 0 8px; color: #315b87; background: #eef5fd; border: 1px solid #d8e6f5; border-radius: 5px; font-size: 11px; }

.bar-chart { height: 220px; display: flex; align-items: end; gap: 16px; padding: 18px 12px 26px; border-bottom: 1px solid var(--border); position: relative; }
.bar-chart:before, .bar-chart:after { content: ""; position: absolute; left: 8px; right: 8px; border-top: 1px dashed #e0e8f1; }
.bar-chart:before { top: 33%; } .bar-chart:after { top: 66%; }
.bar-item { position: relative; flex: 1; min-width: 18px; max-width: 50px; background: #78a9ee; border-radius: 4px 4px 0 0; z-index: 1; }
.bar-item.alt { background: #9aa7ff; }
.bar-item span { position: absolute; bottom: -23px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 10px; white-space: nowrap; }
.line-chart { width: 100%; height: 230px; position: relative; overflow: hidden; }
.line-chart svg { width: 100%; height: 100%; }
.chart-legend { display: flex; gap: 14px; color: var(--muted); font-size: 11px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; background: var(--primary); }
.legend-dot.purple { background: var(--ai-accent); }

.assistant-drawer {
  position: fixed; right: 0; top: 44px; bottom: 0; width: min(1280px, calc(100vw - 56px)); display: grid;
  grid-template-columns: 178px minmax(0, 1fr); background: #fff; z-index: 60;
  overflow: hidden; transform: translateX(105%); transition: transform .22s ease, width .22s ease; box-shadow: var(--drawer-shadow);
}
.assistant-drawer.open { transform: translateX(0); }
.assistant-drawer.expanded { width: calc(100vw - 56px); }
.drawer-mask { position: fixed; left: 56px; right: 0; top: 44px; bottom: 0; background: rgba(18, 34, 54, .38); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-mask.visible { opacity: 1; pointer-events: auto; }
.assistant-rail { display: flex; flex-direction: column; min-width: 0; background: #f7f9fc; border-right: 1px solid var(--border); padding: 12px 10px 10px; }
.assistant-brand { display: flex; align-items: center; gap: 8px; color: #17365d; font-size: 15px; padding: 0 5px 10px; }
.new-chat { height: 32px; color: #fff; background: #102f59; border: 0; border-radius: 6px; font-weight: 600; }
.new-chat:hover { background: #174471; }
.mode-nav { margin-top: 10px; }
.mode-group-label { margin: 12px 9px 4px; color: #93a3b6; font-size: 11px; }
.mode-item, .history-item {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; border: 0; border-radius: 5px;
  color: #405873; background: transparent; padding: 8px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mode-item:hover, .history-item:hover { background: #edf3fa; }
.mode-item.active { color: #164b85; background: #e8f1fd; font-weight: 650; }
.assistant-bot-icon { flex: 0 0 22px; width: 22px; height: 22px; fill: #eaf3ff; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rail-label { color: #93a3b6; font-size: 11px; padding: 14px 9px 5px; border-top: 1px solid var(--border); margin-top: 10px; }
.history-search-wrap { position: relative; margin: 1px 4px 6px; }
.history-search-icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #8799ad; font-size: 15px; pointer-events: none; }
.history-search { width: 100%; height: 30px; padding: 0 9px 0 28px; border: 1px solid #dce6f1; border-radius: 6px; outline: 0; color: #304d6d; background: #fff; font-size: 11px; }
.history-search:focus { border-color: #8ab4eb; box-shadow: 0 0 0 2px #e9f2ff; }
.history-list { overflow-y: auto; }
.history-row { position: relative; display: flex; align-items: center; min-width: 0; }
.history-item { flex: 1; min-width: 0; padding-right: 52px; font-size: 12px; }
.history-item.active { color: #163f70; background: #fff; font-weight: 650; box-shadow: 0 1px 3px rgba(15,42,76,.07); }
.history-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.history-rename, .history-delete { position: absolute; width: 23px; height: 23px; display: grid; place-items: center; border: 0; border-radius: 4px; color: #7b8da1; background: transparent; line-height: 1; opacity: 0; pointer-events: none; transition: opacity .15s ease, color .15s ease, background .15s ease; }
.history-rename { right: 27px; font-size: 13px; }
.history-delete { right: 4px; font-size: 17px; }
.history-row:hover .history-rename, .history-row:hover .history-delete, .history-row:focus-within .history-rename, .history-row:focus-within .history-delete { opacity: 1; pointer-events: auto; }
.history-rename:hover { color: #2563eb; background: #eaf3ff; }
.history-delete:hover { color: #d14343; background: #fff0f0; }
.history-row.renaming { padding: 3px 0; }
.history-rename-input { width: 100%; height: 29px; padding: 0 8px; border: 1px solid #75a7e8; border-radius: 5px; outline: 0; color: #17365d; background: #fff; font-size: 12px; box-shadow: 0 0 0 2px #e8f2ff; }
.history-empty { padding: 16px 8px; color: #91a1b3; font-size: 11px; text-align: center; }
.rail-footer { margin-top: auto; padding: 10px 8px 2px; color: var(--muted); font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #94a3b8; }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 3px #dcfce7; }
.assistant-workspace { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.assistant-header { min-height: 58px; display: flex; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.assistant-header h2 { margin: 0; color: #163253; font-size: 16px; }
.assistant-header h2.editing { min-width: 220px; padding: 3px 6px; border: 1px solid #75a7e8; border-radius: 5px; outline: 0; background: #fff; box-shadow: 0 0 0 2px #e8f2ff; }
.assistant-header p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.assistant-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.icon-text-button, .close-button { height: 28px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: #52677e; }
.icon-text-button:hover, .close-button:hover { color: var(--primary); border-color: #9ec0ef; }
.close-button { width: 28px; font-size: 18px; line-height: 1; }
.assistant-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 14px 8px; }
.assistant-composer { flex: 0 0 auto; padding: 10px 14px 14px; border-top: 1px solid #e5edf6; background: rgba(255,255,255,.98); }
.assistant-composer.hidden { display: none; }

.assistant-home { min-height: 100%; display: flex; flex-direction: column; }
.assistant-welcome { padding: 18px 4px 10px; }
.assistant-welcome h3 { margin: 0; color: #17365d; font-size: 18px; }
.assistant-welcome p { margin: 5px 0 0; color: var(--muted); }
.assistant-home-prompts { margin-top: auto; padding: 12px 0 4px; }
.assistant-home-prompts .section-label:first-child { margin-top: 0; }
.capability-guide { padding: 5px 4px 12px; }
.capability-guide h3 { margin: 0; color: #17365d; font-size: 18px; }
.capability-guide > p { max-width: 720px; margin: 6px 0 0; color: #61758c; line-height: 1.7; }
.capability-examples { margin-top: 18px; }
.capability-examples > span { display: block; margin-bottom: 7px; color: #8293a6; font-size: 11px; }
.guide-example { min-height: 30px; padding: 5px 10px; border: 1px solid #d7e3f1; border-radius: 6px; color: #365776; background: #f8fbff; font-size: 11px; text-align: left; }
.guide-example:hover { color: #175da8; border-color: #9fc1ea; background: #eef6ff; }
.composer-box { border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(15,42,76,.08); padding: 10px; }
.composer-box:focus-within { border-color: #79a9ed; box-shadow: 0 0 0 2px #e4efff; }
.composer-box textarea { width: 100%; height: 62px; resize: none; border: 0; outline: 0; color: var(--text); }
.assistant-composer .composer-box { height: 104px; box-shadow: 0 3px 14px rgba(15,42,76,.1); }
.assistant-composer .composer-box textarea { height: 46px; }
.composer-actions { display: flex; align-items: center; gap: 7px; }
.composer-actions .send { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #102f59; color: #fff; font-weight: 700; }
.attachment-plus { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #d8e3ef; border-radius: 50%; color: #536b84; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.attachment-plus:hover { color: #2563eb; border-color: #8fb7eb; background: #f3f8ff; }
.attachment-name { max-width: 320px; overflow: hidden; color: #65788f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.section-label { color: #65788f; font-size: 11px; margin: 16px 0 7px; }
.suggestion-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.assistant-drawer.expanded .suggestion-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.suggestion-card { min-height: 68px; text-align: left; border: 1px solid #dce7f4; border-radius: 6px; padding: 10px; background: #f7faff; color: #29435e; }
.suggestion-card:hover { border-color: #8cb6ed; background: #eff6ff; transform: translateY(-1px); }
.suggestion-card.cyan { background: #f2fbfb; border-color: #d6eeee; }
.suggestion-card.orange { background: #fff9f0; border-color: #f4e5ce; }
.suggestion-card.purple { background: #f7f5ff; border-color: #e3ddfb; }
.suggestion-card strong { display: block; margin-bottom: 2px; color: #264a73; }
.suggestion-card span { color: var(--muted); font-size: 11px; }

.conversation { display: flex; flex-direction: column; gap: 12px; }
.conversation-turn { display: flex; flex-direction: column; gap: 12px; }
.message { display: flex; gap: 8px; }
.message.user { justify-content: flex-end; }
.message-bubble { max-width: 88%; border: 1px solid var(--border); border-radius: 7px; padding: 10px 11px; background: #fff; }
.message.user .message-bubble { color: #1f3f68; background: #eaf3ff; border-color: #c6dbf7; }
.message:not(.user) { align-items: flex-start; }
.message:not(.user) .message-bubble { width: min(920px, calc(100% - 54px)); max-width: calc(100% - 54px); padding: 1px 0 7px; border: 0; border-radius: 0; background: transparent; }
.message:not(.user) .message-bubble.automation-confirm-card { padding: 12px; border: 1px solid #c7d9ef; border-radius: 8px; background: #fbfdff; }
.assistant-avatar { flex: 0 0 auto; min-width: 38px; height: 25px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: var(--primary); padding: 0 7px; font-size: 10px; font-weight: 700; }
.message-meta { color: var(--muted); font-size: 10px; margin-top: 5px; }
.source-list { margin-top: 8px; padding-top: 7px; border-top: 1px solid #e8eef6; color: #526b85; font-size: 11px; }
.response-work { margin-top: 12px; border-top: 1px solid #e7edf4; border-bottom: 1px solid #e7edf4; color: #60738a; font-size: 11px; }
.response-work summary { display: flex; align-items: center; gap: 9px; padding: 8px 0; cursor: pointer; list-style: none; }
.response-work summary::-webkit-details-marker { display: none; }
.response-work summary:after { content: "›"; color: #8a9bae; font-size: 16px; transition: transform .15s ease; }
.response-work[open] summary:after { transform: rotate(90deg); }
.processed-time { color: #52677e; font-weight: 600; }
.work-count { color: #7e8fa2; }
.work-steps { display: grid; gap: 6px; padding: 0 0 10px; }
.work-step { display: flex; align-items: center; gap: 7px; color: #5e7289; }
.work-step:before { content: "✓"; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #25805e; background: #e8f8f1; font-size: 10px; }
.response-tools { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.response-tool { min-height: 25px; padding: 0 7px; border: 0; border-radius: 4px; color: #75869a; background: transparent; font-size: 11px; }
.response-tool:hover { color: #2563eb; background: #f0f6ff; }
.copy-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.copy-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.inline-copy { margin-top: 7px; padding: 3px 0; border: 0; color: #60758c; background: transparent; cursor: pointer; }
.inline-copy:hover { color: #2563eb; }

.creation-workbench { min-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.creation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 2px 2px 10px; border-bottom: 1px solid #e5edf6; }
.creation-heading h3 { margin: 3px 0; color: #17365d; font-size: 18px; }
.creation-heading p { margin: 0; color: #6b7f95; }
.creation-kicker { color: #2563eb; font-size: 11px; font-weight: 700; }
.imported-context { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #cfe0f5; border-radius: 7px; color: #3d5e7d; background: #f3f8ff; }
.imported-context strong { flex: 0 0 auto; color: #18528f; }
.imported-context span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creation-layout { flex: 1; min-height: 520px; display: grid; grid-template-columns: minmax(330px, .9fr) minmax(460px, 1.35fr); gap: 12px; }
.creation-form, .creation-result { min-width: 0; padding: 14px; border: 1px solid #dce6f1; border-radius: 8px; background: #fff; }
.creation-records { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e5edf6; }
.creation-records-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: #294762; }
.creation-records-title small { color: #8a9bae; font-weight: 400; }
.creation-record-row { position: relative; display: flex; align-items: center; border-radius: 5px; }
.creation-record { width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 30px 7px 8px; border: 0; border-radius: 5px; color: #526b85; background: transparent; text-align: left; }
.creation-record:hover, .creation-record.active { color: #174f8d; background: #eef5ff; }
.creation-record span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creation-record small { flex: 0 0 auto; color: #8a9bae; }
.creation-record-delete { position: absolute; right: 5px; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 4px; color: #8a9bae; background: transparent; opacity: 0; pointer-events: none; }
.creation-record-row:hover .creation-record-delete, .creation-record-delete:focus { opacity: 1; pointer-events: auto; }
.creation-record-delete:hover { color: #dc2626; background: #feecec; }
.creation-record-empty { padding: 12px 8px; color: #91a0b0; text-align: center; font-size: 11px; }
.creation-tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 3px; border-radius: 7px; background: #f2f6fb; }
.creation-tabs button { flex: 1; height: 30px; border: 0; border-radius: 5px; color: #60758c; background: transparent; }
.creation-tabs button.active { color: #174f8d; background: #fff; box-shadow: 0 1px 4px rgba(15,42,76,.09); font-weight: 650; }
.option-checks, .protection-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 9px 10px; border: 1px solid #dce6f1; border-radius: 6px; color: #4e647b; }
.form-item .option-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.form-item .option-checks input[type="checkbox"], .form-item .option-checks input[type="radio"] { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; padding: 0; accent-color: var(--primary); }
.compact-options { padding: 7px 9px; gap: 7px 12px; }
.advanced-options { margin-top: 12px; color: #60758c; }
.advanced-options summary { cursor: pointer; }
.advanced-grid { margin-top: 9px; }
.advanced-input { width: 100%; margin-top: 9px; padding: 7px 9px; border: 1px solid #d5e0ec; border-radius: 5px; color: #405873; background: #fff; }
.field-help { display: block; margin-top: 5px; color: #8a9bae; line-height: 1.45; }
.form-item label small { float: right; color: #93a1b1; font-weight: 400; }
.form-item textarea.compact-textarea { min-height: 58px; }
.form-item textarea.medium-textarea { min-height: 88px; }
.creation-generate { width: 100%; height: 38px; margin-top: 14px; }
.creation-result { background: #fbfdff; overflow: auto; }
.creation-empty { min-height: 360px; display: grid; place-content: center; justify-items: center; color: #8191a4; text-align: center; }
.creation-empty span { color: #4f6ef7; font-size: 34px; }
.creation-empty strong { margin-top: 7px; color: #526b85; }
.creation-empty p { margin: 5px 0; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.result-toolbar small { display: block; margin-top: 3px; color: #8191a4; }
.result-checks { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.result-checks span { padding: 4px 7px; border-radius: 4px; color: #277354; background: #eaf8f1; font-size: 10px; }
.content-section { position: relative; margin-top: 9px; padding: 12px; border: 1px solid #dfe8f2; border-radius: 7px; background: #fff; }
.content-section > div { display: flex; justify-content: space-between; color: #294762; }
.content-section > div span { color: #8a9bae; font-size: 10px; }
.content-section p, .content-section ul { line-height: 1.65; color: #405873; outline: 0; }
.result-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 12px; }
.image-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.image-template { min-height: 67px; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; gap: 1px 8px; padding: 9px; text-align: left; border: 1px solid #dce6f1; border-radius: 7px; color: #405873; background: #fff; }
.image-template > span { grid-row: 1 / 3; align-self: center; color: #4f6ef7; font-size: 22px; }
.image-template small { color: #8798aa; }
.image-template.active, .image-template:hover { border-color: #82afe8; background: #f2f7ff; }
.image-upload { min-height: 112px; display: grid; place-content: center; justify-items: center; margin-bottom: 12px; border: 1px dashed #9bbbe1; border-radius: 8px; color: #58718b; background: #f7fbff; cursor: pointer; }
.image-upload > span { font-size: 26px; color: #2563eb; }
.image-upload small { margin-top: 4px; color: #8a9bae; }
.scene-source-options { background: #f8fbff; }
.scene-upload { min-height: 86px; display: grid; place-content: center; justify-items: center; padding: 12px; border: 1px dashed #9bbbe1; border-radius: 7px; color: #58718b; background: #f7fbff; cursor: pointer; }
.scene-upload > span { color: #2563eb; font-size: 22px; }
.scene-upload small { margin-top: 4px; color: #8a9bae; }
.generated-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.generated-image { padding: 7px; text-align: left; border: 1px solid #dce6f1; border-radius: 7px; color: #405873; background: #fff; }
.generated-image.selected { border: 2px solid #2563eb; padding: 6px; }
.generated-image strong, .generated-image small { display: block; margin-top: 5px; }
.generated-image small { color: #8191a4; }
.mock-product-image { height: 138px; display: block; position: relative; overflow: hidden; border-radius: 5px; background: linear-gradient(145deg,#eff6ff,#dceadf); }
.mock-product-image.mode-white { background: #fff; box-shadow: inset 0 0 0 1px #edf1f5; }
.mock-product-image.mode-ad { background: linear-gradient(145deg,#e8f0ff,#b7cdf8); }
.mock-product-image.mode-background { background: linear-gradient(145deg,#f1f3f5,#d4d9df); }
.mock-product-image i { position: absolute; left: 18%; right: 18%; top: 43%; height: 10px; border-radius: 2px; background: #34495e; box-shadow: 0 11px 0 -3px #52677e; }
.mock-product-image b { position: absolute; left: 25%; right: 25%; top: 52%; height: 48px; border-left: 5px solid #4b5f72; border-right: 5px solid #4b5f72; }
.creation-handoff-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; max-width: 620px; margin-top: 11px; padding: 12px; border: 1px solid #cddff4; border-radius: 8px; background: #f7fbff; }
.creation-handoff-card > span { color: #214b77; font-weight: 700; }
.creation-handoff-card > small { grid-column: 1; color: #8191a4; }
.creation-handoff-card > button { grid-column: 2; grid-row: 1 / 3; }
.analysis-shell { display: flex; flex-direction: column; gap: 10px; }
.analysis-assistant-intro { display: flex; align-items: flex-start; gap: 8px; padding: 2px 0; }
.analysis-assistant-intro > div:last-child { min-width: 0; padding-top: 2px; }
.analysis-assistant-intro strong { display: block; color: #17365d; }
.analysis-assistant-intro p { margin: 3px 0 0; color: #60758c; line-height: 1.55; }
.analysis-followup { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid #dce6f1; }
.analysis-response-block { display: flex; flex-direction: column; gap: 10px; }
.analysis-question { padding: 9px 11px; border: 1px solid #d9e5f3; border-radius: 6px; color: #315676; background: #f7faff; }
.assistant-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.assistant-drawer.expanded .assistant-kpis { grid-template-columns: repeat(4, 1fr); }
.assistant-kpi { border: 1px solid var(--border); border-radius: 6px; padding: 9px 10px; background: #fff; }
.assistant-kpi .num { display: block; color: #17365d; font-size: 18px; font-weight: 700; }
.analysis-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.assistant-drawer.expanded .analysis-grid { grid-template-columns: 1.45fr 1fr; }
.insight-list { display: flex; flex-direction: column; gap: 7px; }
.insight-item { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.insight-rank { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: var(--primary); font-size: 11px; }
.insight-item small { color: var(--muted); }

.execution-card { border: 1px solid #bcd3f0; border-radius: 7px; background: #f8fbff; overflow: hidden; }
.execution-card .exec-title { display: flex; align-items: center; padding: 9px 11px; border-bottom: 1px solid #d8e6f5; color: #17365d; font-weight: 650; }
.execution-card .exec-body { padding: 10px 11px; }
.parameter-list { display: grid; grid-template-columns: 110px 1fr; row-gap: 6px; font-size: 12px; }
.parameter-list dt { color: var(--muted); }.parameter-list dd { margin: 0; color: #29435e; }
.exec-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.automation-confirm-card { width: min(760px, 94%); max-width: 94%; }
.automation-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.automation-card-heading p { margin: 4px 0 0; color: var(--muted); }
.automation-draft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.automation-draft-grid > div { min-width: 0; padding: 9px 10px; border: 1px solid #dde7f2; border-radius: 6px; background: #f9fbfd; }
.automation-draft-grid span { display: block; margin-bottom: 3px; color: #8292a5; font-size: 10px; }
.automation-draft-grid strong { display: block; overflow-wrap: anywhere; color: #294762; font-size: 12px; font-weight: 650; }
.automation-confirm-card .risk-note { margin-top: 10px; }
.stepper { display: flex; flex-direction: column; gap: 0; }
.step { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; min-height: 45px; }
.step:not(:last-child):after { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1px; background: #cfdaE8; }
.step-node { width: 21px; height: 21px; display: grid; place-items: center; color: #fff; background: #94a3b8; border-radius: 50%; font-size: 10px; z-index: 1; }
.step.done .step-node { background: var(--success); }.step.running .step-node { background: var(--primary); box-shadow: 0 0 0 4px #dbeafe; }.step.failed .step-node { background: var(--error); }
.step-title { color: #29435e; font-weight: 600; }.step-desc { color: var(--muted); font-size: 11px; }

.backend-layout { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 176px 1fr; gap: 12px; }
.backend-menu { background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 8px; align-self: start; position: sticky; top: 14px; }
.backend-menu-title { color: #17365d; font-weight: 700; padding: 8px 9px 10px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.backend-link { width: 100%; text-align: left; height: 34px; padding: 0 9px; color: #4d647d; background: transparent; border: 0; border-radius: 5px; }
.backend-link:hover { background: #f0f5fb; }.backend-link.active { color: #174f8d; background: #e8f2ff; font-weight: 650; }
.backend-main { min-width: 0; }
.admin-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.admin-resource-card { position: relative; min-height: 108px; padding: 14px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #50677f; text-align: left; box-shadow: var(--shadow); }
.admin-resource-card:hover { border-color: #86afe4; background: #f8fbff; }
.admin-resource-card span,.admin-resource-card small { display: block; }
.admin-resource-card strong { display: block; margin: 3px 0; color: #17365d; font-size: 23px; }
.admin-resource-card b { position: absolute; right: 14px; top: 15px; color: #2b6fca; font-weight: 600; }
.admin-issue { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.admin-issue:hover { background: #f4f8fd; }
.admin-quick-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.admin-quick-actions button { padding: 13px; border: 1px solid var(--border); border-radius: 6px; background: #f8fbff; color: #52677e; text-align: left; }
.admin-quick-actions button:hover { border-color: #86afe4; background: #edf6ff; }
.admin-quick-actions strong,.admin-quick-actions span { display: block; }
.admin-quick-actions strong { margin-bottom: 4px; color: #174f8d; }
.config-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; }
.form-section { padding: 14px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: 0; }
.form-section h4 { margin: 0 0 10px; color: #17365d; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.form-item label { display: block; color: #52677e; font-size: 11px; margin-bottom: 4px; }
.form-item input, .form-item select, .form-item textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 5px; padding: 7px 9px; outline: none; color: #334155; background: #fff; }
.form-item textarea { min-height: 86px; resize: vertical; }
.form-item.full { grid-column: 1 / -1; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 12px; background: #fff; }
.tab-button { height: 39px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #5b7086; }
.tab-button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 650; }
.code-box { min-height: 160px; margin: 0; padding: 12px; background: #11243d; color: #cfe1f4; border-radius: 6px; overflow: auto; font: 12px/1.6 "JetBrains Mono", Consolas, monospace; white-space: pre-wrap; }
.debug-console { background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; padding: 10px; }
.debug-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid #e6edf5; font-size: 11px; }
.debug-line:last-child { border: 0; }

.workflow-editor { height: calc(100vh - 126px); min-height: 620px; display: grid; grid-template-columns: 170px 1fr 300px; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: #fff; }
.node-palette { padding: 12px; border-right: 1px solid var(--border); background: #f8fafc; }
.palette-node { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 7px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: #405873; }
.palette-icon { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #9bb4d2; border-radius: 4px; font-size: 9px; }
.workflow-canvas { position: relative; overflow: auto; background-color: #f5f8fc; background-image: radial-gradient(#c8d6e6 1px, transparent 1px); background-size: 18px 18px; }
.flow-node { position: absolute; width: 150px; border: 1px solid #a9c2df; border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(15,42,76,.08); }
.flow-node.selected { border: 2px solid var(--primary); }
.flow-node-title { padding: 8px 9px; color: #17365d; font-weight: 650; border-bottom: 1px solid #e4ebf3; }
.flow-node-body { padding: 7px 9px; color: var(--muted); font-size: 11px; }
.flow-line { position: absolute; height: 2px; background: #79a4d7; transform-origin: 0 50%; }
.node-config { border-left: 1px solid var(--border); padding: 12px; overflow-y: auto; }

.trace-view { display: grid; grid-template-columns: 1fr 360px; gap: 12px; }
.trace-chain { padding: 22px; overflow: auto; }
.trace-node { display: inline-flex; flex-direction: column; min-width: 118px; padding: 10px; border: 1px solid #b8cce4; border-radius: 6px; background: #fff; margin-right: 24px; position: relative; }
.trace-node:not(:last-child):after { content: ""; position: absolute; width: 24px; height: 1px; right: -25px; top: 28px; background: #7da6d5; }
.trace-node.failed { border-color: #ef9a9a; background: #fff8f8; }
.trace-node.active { border: 2px solid var(--primary); }
.trace-node strong { color: #17365d; }.trace-node small { color: var(--muted); }
.trace-detail { padding: 14px; }

.modal-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.modal-root.visible { pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 31, 49, .48); display: grid; place-items: center; }
.modal { width: 440px; max-width: calc(100vw - 32px); background: #fff; border-radius: 8px; box-shadow: 0 18px 48px rgba(13,49,92,.24); overflow: hidden; }
.modal.wide { width: min(980px, calc(100vw - 48px)); max-height: calc(100vh - 70px); }
.modal.wide .modal-body { overflow: auto; max-height: calc(100vh - 185px); }
.modal-header { display: flex; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; color: #17365d; font-size: 15px; }.modal-header button { margin-left: auto; }
.modal-body { padding: 16px; }.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 11px 16px; background: #f8fafc; border-top: 1px solid var(--border); }
.risk-note { padding: 9px 10px; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 5px; margin-bottom: 12px; }
.toast-root { position: fixed; left: 50%; top: 58px; z-index: 120; display: flex; max-width: calc(100vw - 32px); flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.breadcrumb { margin: 0 0 10px; color: #71849a; font-size: 12px; }
.admin-tab-content { padding: 14px 2px 2px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-toolbar p { margin: 4px 0 0; color: #71849a; font-size: 12px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 180px; }
.faq-flow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid #d7e4f2; border-radius: 7px; background: #f7fbff; color: #52677e; }
.faq-flow span { padding: 6px 10px; border-radius: 5px; background: #fff; color: #174f8d; font-weight: 600; }
.faq-flow b { color: #8ba0b5; }
.faq-filter-row { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.faq-filter-row .pill { border: 0; cursor: pointer; }
.faq-filter-row .pill.active { color: #175ca8; background: #e8f2ff; }
.faq-filter-row .search-field { max-width: 250px; }
.faq-table th:first-child { min-width: 230px; }
.faq-table th:nth-child(2) { min-width: 260px; }
.faq-table th:nth-child(3) { min-width: 190px; }
.faq-answer-cell { max-width: 360px; color: #344d68; line-height: 1.55; }
.faq-aliases { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.faq-alias { padding: 3px 6px; border-radius: 4px; background: #f1f5f9; color: #657b91; font-size: 11px; }
.faq-alias-editor { margin-top: 6px; padding: 10px; border: 1px solid #dce6f1; border-radius: 7px; background: #fbfdff; }
.faq-alias-tags { display: flex; flex-wrap: wrap; gap: 7px; min-height: 4px; }
.faq-editable-tag { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #cfe0f3; border-radius: 5px; background: #eef6ff; }
.faq-editable-tag > button { border: 0; background: transparent; color: #315f91; cursor: pointer; }
.faq-editable-tag > button:first-child { padding: 6px 8px; }
.faq-editable-tag > button:first-child:hover { background: #dfeeff; }
.faq-editable-tag .faq-alias-remove { align-self: stretch; padding: 4px 7px; border-left: 1px solid #cfe0f3; color: #71849a; font-size: 15px; }
.faq-editable-tag .faq-alias-remove:hover { color: #b42318; background: #fff1f2; }
.faq-alias-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 9px; }
.faq-alias-entry input { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #cfdbea; border-radius: 5px; color: #233a55; outline: none; }
.faq-alias-entry input:focus { border-color: #5f98df; box-shadow: 0 0 0 2px rgba(62,124,205,.08); }
.faq-alias-editor > small { display: block; margin-top: 7px; color: #71849a; }
.faq-alias-editor > small.error { color: #b42318; }
.faq-generate-layout,.faq-review-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 16px; }
.document-select-list { display: grid; gap: 8px; margin: 10px 0 18px; }
.document-select-card,.candidate-faq { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border: 1px solid #dce6f1; border-radius: 7px; background: #fbfdff; }
.document-select-card span,.document-select-card strong,.document-select-card small,.candidate-faq span,.candidate-faq strong,.candidate-faq small { display: block; }
.document-select-card small,.candidate-faq small { margin-top: 4px; color: #71849a; }
.faq-candidate-preview { padding: 13px; border: 1px solid #dce6f1; border-radius: 8px; background: #f7f9fc; }
.candidate-faq { margin-top: 9px; background: #fff; }
.candidate-faq p { margin: 7px 0 0; color: #52677e; line-height: 1.55; }
.duplicate-note { margin-top: 10px; padding: 9px 10px; border-radius: 5px; background: #fff7ed; color: #9a5b16; font-size: 12px; }
.faq-review-layout .eyebrow { color: #71849a; font-size: 11px; }
.faq-review-layout h3 { margin: 5px 0 8px; color: #17365d; }
.source-evidence { margin-top: 12px; padding: 10px; border-left: 3px solid #7aa7e6; background: #fff; color: #52677e; }
.source-evidence span { color: #71849a; font-size: 11px; }
.source-evidence p { margin: 5px 0 0; line-height: 1.55; }
.knowledge-hit-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.knowledge-hit-head b { margin-left: auto; color: #15803d; font-size: 11px; }
.retrieval-details { margin-top: 10px; color: #52677e; }
.dependency-box { margin-top: 12px; padding: 10px 12px; border: 1px solid #d7e4f2; border-radius: 6px; background: #f5f9fe; color: #52677e; }
.chunk-list { display: grid; gap: 10px; }
.chunk-card { border: 1px solid #dce6f1; border-radius: 7px; padding: 12px; background: #fbfdff; }
.chunk-card header,.chunk-card footer { display: flex; align-items: center; gap: 12px; }
.chunk-card header { justify-content: space-between; color: #174f8d; }
.chunk-card header small,.chunk-card footer { color: #71849a; }
.chunk-card p { margin: 10px 0; line-height: 1.65; color: #344d68; }
.chunk-card footer button { margin-left: auto; }
.wizard-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.wizard-steps span { padding: 9px 10px; border-radius: 5px; background: #f1f4f8; color: #71849a; text-align: center; }
.wizard-steps span.active { background: #e8f2ff; color: #174f8d; font-weight: 650; }
.upload-wizard-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: 14px; }
.upload-box.compact { min-height: 88px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px dashed #8db4e8; border-radius: 7px; background: #f7fbff; color: #52677e; cursor: pointer; }
.upload-box.compact input { display: none; }
.upload-box.compact strong { color: #174f8d; margin-bottom: 5px; }
.preview-pane { padding: 12px; border-radius: 7px; background: #f6f9fd; }
.dependency-map { display: grid; grid-template-columns: minmax(150px,.7fr) 70px minmax(220px,1.3fr); align-items: center; gap: 12px; margin-bottom: 14px; }
.dependency-main,.dependency-column article { padding: 13px; border: 1px solid #dce6f1; border-radius: 7px; background: #f8fbff; }
.dependency-main strong,.dependency-main span,.dependency-column strong,.dependency-column span { display: block; }
.dependency-main span,.dependency-column span { margin-top: 5px; color: #657b91; font-size: 12px; }
.dependency-arrow { color: #71849a; text-align: center; }
.dependency-column { display: grid; gap: 8px; }
.check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 9px; border: 1px solid #dce6f1; border-radius: 6px; background: #fbfdff; }
.version-list { display: grid; gap: 10px; }
.version-card { padding: 12px; border: 1px solid #dce6f1; border-radius: 7px; }
.version-card.current { border-color: #8db4e8; background: #f5f9ff; }
.version-card strong,.version-card span { display: block; }
.version-card span { margin-top: 4px; color: #71849a; font-size: 12px; }
.schema-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.workflow-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.workflow-summary span { padding: 7px 10px; border: 1px solid #dce6f1; border-radius: 5px; background: #fff; color: #52677e; }
.workflow-run-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.workflow-run-list span { padding: 10px; border-radius: 5px; background: #f5f9fe; color: #52677e; }
.workflow-run-list b { display: block; margin-top: 5px; color: #174f8d; }
.wizard-modal .wizard-steps { grid-template-columns: repeat(5,1fr); margin: 14px 16px 0; }
.wizard-steps span.done { background: #eaf8f0; color: #20744a; }
.wizard-page { min-height: 390px; }
.wizard-page > h4 { margin: 0 0 6px; color: #17365d; font-size: 16px; }
.wizard-upload { min-height: 150px; margin: 20px 0 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #8db4e8; border-radius: 8px; background: #f7fbff; color: #657b91; cursor: pointer; }
.wizard-upload input { display: none; }.wizard-upload strong { margin-bottom: 6px; color: #174f8d; }
.file-parse-card { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid #dce6f1; border-radius: 7px; background: #fbfdff; }
.file-parse-card strong,.file-parse-card span { display: block; }
.file-parse-card span { margin-top: 4px; color: #71849a; font-size: 12px; }
.strategy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0 12px; }
.strategy-card { position: relative; min-height: 118px; padding: 14px; border: 1px solid #dce6f1; border-radius: 8px; background: #fff; color: #52677e; text-align: left; }
.strategy-card:hover,.strategy-card.active { border-color: #5f98df; background: #f3f8ff; box-shadow: 0 0 0 2px rgba(62,124,205,.08); }
.strategy-card .pill { position: absolute; right: 10px; top: 10px; }
.strategy-card strong,.strategy-card small { display: block; }
.strategy-card strong { margin: 24px 0 7px; color: #17365d; font-size: 15px; }
.strategy-config { padding: 14px; border: 1px solid #dce6f1; border-radius: 8px; background: #fbfdff; }
.strategy-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.strategy-summary strong { color: #17365d; }.strategy-summary span { flex: 1; color: #657b91; }.strategy-summary b { color: #2b6fca; }
.preview-split { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 12px; }
.preview-split > aside { padding: 12px; border: 1px solid #dce6f1; border-radius: 7px; background: #f7f9fc; }
.document-outline { display: grid; gap: 8px; margin-top: 12px; color: #657b91; }
.document-outline span:nth-child(2),.document-outline span:nth-child(3),.document-outline span:nth-child(5) { padding-left: 12px; font-size: 12px; }
.metadata-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 14px; margin-top: 16px; }
.system-metadata { padding: 14px; border: 1px solid #dce6f1; border-radius: 7px; background: #f7f9fc; }
.system-metadata > strong,.system-metadata > span { display: block; }.system-metadata > span { margin-top: 10px; padding: 8px 10px; border-radius: 5px; background: #fff; color: #657b91; }
.confirm-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.confirm-summary div { padding: 13px; border: 1px solid #dce6f1; border-radius: 7px; background: #fbfdff; }
.confirm-summary span,.confirm-summary strong { display: block; }.confirm-summary span { margin-bottom: 5px; color: #71849a; font-size: 12px; }
.process-flow { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border-radius: 7px; background: #f3f8ff; color: #174f8d; }.process-flow b { color: #91a6bb; }
.permission-section { padding: 2px 0; }
.permission-policy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 14px; border-radius: 8px; background: #f7f9fc; }
.permission-group { margin-top: 16px; }.permission-group.sensitive { padding-top: 14px; border-top: 1px solid #e4ebf3; }
.permission-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }.permission-group-head strong,.permission-group-head span { display: block; }.permission-group-head span { margin-top: 3px; color: #71849a; font-size: 12px; }
.permission-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.permission-card { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; min-height: 70px; padding: 11px; border: 1px solid #dce6f1; border-radius: 7px; background: #fff; cursor: pointer; }
.permission-card:hover { border-color: #8db4e8; background: #f8fbff; }.permission-card.disabled { background: #f8fafc; color: #7c8da0; }
.permission-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: #e8f2ff; color: #2b6fca; font-weight: 700; }
.permission-card strong,.permission-card small { display: block; }.permission-card small { margin-top: 4px; color: #71849a; line-height: 1.4; }.permission-card input { width: 16px; height: 16px; }
.permission-note { margin-top: 14px; padding: 10px 12px; border-left: 3px solid #5f98df; background: #f5f9fe; color: #657b91; }
.chunk-filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }.chunk-filter-row button { margin-left: auto; }
.chunk-card.rich header > div { display: flex; align-items: center; gap: 10px; }.chunk-id { padding: 3px 7px; border-radius: 4px; background: #e8f2ff; color: #2b6fca; font-size: 12px; }
.chunk-metadata { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 10px 0 12px; }.chunk-metadata div { padding: 8px 10px; border-radius: 5px; background: #f3f6fa; }
.chunk-metadata span,.chunk-metadata strong { display: block; }.chunk-metadata span { margin-bottom: 4px; color: #7a8da1; font-size: 11px; }.chunk-metadata strong { color: #4a6178; font-size: 12px; }
.metadata-tags { display: flex; flex-wrap: wrap; gap: 5px; }.metadata-tags i { padding: 3px 7px; border-radius: 10px; background: #eef4fb; color: #54708d; font-size: 11px; font-style: normal; }
.chunk-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 16px; }.chunk-full-text { margin-bottom: 16px; padding: 14px; border: 1px solid #dce6f1; border-radius: 7px; background: #fbfdff; color: #425b75; line-height: 1.7; }
.detail-title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.detail-title > div { display: flex; align-items: baseline; gap: 10px; flex: 1; }.detail-title span { color: #71849a; font-size: 12px; }.detail-title strong { color: #17365d; font-size: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.detail-grid > .panel:first-child { grid-column: 1 / -1; }
.resource-detail-layout { align-items: start; }
.resource-heading { display: flex; align-items: center; gap: 9px; padding: 12px 14px 0; }
.resource-heading > span { color: #71849a; font-size: 12px; }
.resource-heading > strong { color: #17365d; font-size: 15px; }
.resource-heading .status-tag { margin-left: auto; }
.resource-hero { padding: 2px 2px 4px; }
.resource-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resource-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.resource-label { padding: 4px 8px; border-radius: 4px; background: #edf4fd; color: #356a9f; font-size: 11px; font-weight: 600; }
.resource-hero h2 { margin: 11px 0 7px; color: #17365d; font-size: 21px; }
.resource-hero > p { max-width: 900px; margin: 0; color: #52677e; line-height: 1.65; }
.resource-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.resource-facts > div { padding: 10px 12px; border: 1px solid #dce6f1; border-radius: 6px; background: #f8fbff; }
.resource-facts span,.resource-facts strong { display: block; }
.resource-facts span { margin-bottom: 4px; color: #71849a; font-size: 11px; }
.resource-facts strong { color: #29435e; font-size: 13px; line-height: 1.5; }
.resource-subsection { margin-top: 17px; padding-top: 15px; border-top: 1px solid #e4ebf3; }
.resource-subsection h4 { margin: 0 0 10px; color: #29435e; }
.capability-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.capability-group { overflow: hidden; border: 1px solid #dce6f1; border-radius: 8px; background: #fff; }
.capability-group header { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e5ecf4; background: #f8fafc; }
.capability-group header i { width: 7px; height: 7px; border-radius: 50%; background: #5f8fc9; }
.capability-group header strong { color: #29435e; }
.capability-group header em { display: grid; min-width: 21px; height: 21px; place-items: center; border-radius: 11px; background: #e8eef6; color: #61758a; font-size: 11px; font-style: normal; }
.capability-group.tool header i { background: #2b6fca; }.capability-group.skill header i { background: #7c63d5; }.capability-group.workflow header i { background: #1b9a78; }.capability-group.knowledge header i { background: #d28a24; }
.capability-items { display: grid; gap: 7px; padding: 10px; }
.capability-items > span { padding: 8px 9px; border-radius: 5px; background: #f4f7fb; color: #425b75; line-height: 1.4; }
.capability-items > small { padding: 8px; color: #8798aa; }
.linked-resource { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px dashed #cddbec; border-radius: 6px; background: #fbfdff; }
.linked-resource strong { color: #29435e; }.linked-resource span { color: #657b91; }
.resource-summary { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid #e4ebf3; }
.panel-body { padding: 14px; }.detail-overview { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.55fr); gap: 18px; align-items: start; }
.detail-overview h2 { margin: 4px 0 8px; color: #17365d; }.detail-overview p { margin: 0; color: #52677e; line-height: 1.65; }
.eyebrow { color: #2b6fca; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.definition-note { padding: 12px 14px; border-left: 3px solid #6c9edb; border-radius: 5px; background: #f4f8fd; }.definition-note strong,.definition-note span { display: block; }.definition-note span { margin-top: 5px; color: #52677e; line-height: 1.55; }
.readonly-list { display: grid; gap: 8px; margin: 9px 0 14px; padding: 0; list-style: none; }.readonly-list li { position: relative; padding: 9px 12px 9px 28px; border: 1px solid #dce6f1; border-radius: 6px; background: #fbfdff; color: #425b75; line-height: 1.5; }.readonly-list li:before { content: "✓"; position: absolute; left: 10px; color: #2b6fca; font-weight: 700; }
.read-only-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.read-only-grid > div { padding: 11px 12px; border: 1px solid #dce6f1; border-radius: 6px; background: #fbfdff; }.read-only-grid span,.read-only-grid strong { display: block; }.read-only-grid span { color: #71849a; font-size: 11px; }.read-only-grid strong { margin-top: 5px; color: #29435e; }
.route-rule { margin-top: 12px; padding: 11px 13px; border: 1px solid #cfe0f3; border-radius: 6px; background: #f3f8ff; }.route-rule strong,.route-rule span { display: block; }.route-rule span { margin-top: 5px; color: #52677e; }
.route-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.route-columns h4 { margin-top: 0; color: #17365d; }
.permission-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.permission-summary > div { padding: 13px; border: 1px solid #dce6f1; border-radius: 7px; background: #fbfdff; }.permission-summary span,.permission-summary strong { display: block; }.permission-summary span { color: #71849a; font-size: 11px; }.permission-summary strong { margin-top: 6px; color: #17365d; }.permission-summary p { margin: 7px 0 0; color: #657b91; line-height: 1.5; }
.block-title { display: block; margin-top: 16px; }.flow-step-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; padding: 16px; }.flow-step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 11px; border: 1px solid #dce6f1; border-radius: 7px; background: #fbfdff; }.flow-step:not(:last-child):after { content: "→"; position: absolute; right: -10px; top: 23px; z-index: 2; color: #7298c4; }.flow-step > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #e8f2ff; color: #2b6fca; font-weight: 700; }.flow-step strong,.flow-step small { display: block; }.flow-step small { margin-top: 5px; color: #71849a; line-height: 1.4; }
.permission-equation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.permission-equation strong { margin-right: 6px; color: #17365d; }.permission-equation span { padding: 7px 10px; border: 1px solid #cfe0f3; border-radius: 5px; background: #f3f8ff; color: #315f91; }.permission-equation b { color: #8ba0b5; }
.trace-context { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 14px; }.trace-context > div { padding: 9px 11px; border-radius: 6px; background: #f6f9fd; }.trace-context .wide { grid-column: 1 / -1; }.trace-context span,.trace-context strong { display: block; }.trace-context span { color: #71849a; font-size: 11px; }.trace-context strong { margin-top: 4px; color: #29435e; }
.compact-table { width: 100%; border-collapse: collapse; }.compact-table th,.compact-table td { padding: 8px 10px; border-bottom: 1px solid #e4ebf3; text-align: left; }.compact-table th { color: #52677e; background: #f6f9fd; font-weight: 600; }.compact-table td { color: #425b75; }
.toast { min-width: 240px; max-width: 360px; padding: 10px 12px; border: 1px solid #bcd3f0; border-radius: 6px; background: #fff; color: #29435e; box-shadow: 0 8px 24px rgba(15,42,76,.16); animation: toast-in .18s ease; pointer-events: auto; }
.toast.success { border-left: 3px solid var(--success); }.toast.error { border-left: 3px solid var(--error); }
@keyframes toast-in { from { transform: translateY(-6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.skeleton { position: relative; overflow: hidden; background: #e8eef5; border-radius: 4px; }
.skeleton:after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton.line { height: 12px; margin-bottom: 9px; }.skeleton.block { height: 160px; }

@media (max-width: 1280px) {
  .assistant-drawer { width: min(1120px, calc(100vw - 56px)); grid-template-columns: 160px minmax(0,1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: 1fr 320px; }
  .brand-block { width: 180px; }
  .page { min-width: 920px; }
  .creation-layout { grid-template-columns: 360px minmax(430px,1fr); }
  .detail-grid { grid-template-columns: 1fr; }.detail-grid > .panel:first-child { grid-column: auto; }
  .flow-step-list { grid-template-columns: repeat(3,minmax(0,1fr)); }.detail-overview { grid-template-columns: 1fr; }
  .capability-groups { grid-template-columns: 1fr; }.resource-facts { grid-template-columns: 1fr; }
}
