:root {
  --page: #f5f7fb;
  --panel: #ffffff;
  --line: #dce4ef;
  --line-soft: #edf1f6;
  --ink: #172033;
  --muted: #667085;
  --blue: #1769e0;
  --blue-soft: #eaf2ff;
  --green: #0f7a55;
  --green-soft: #e9f6ee;
  --amber: #9a5a00;
  --amber-soft: #fff4df;
  --red: #b42318;
  --red-soft: #fff0ef;
}

* { box-sizing: border-box; }

.promotion-control { margin: 12px 0 20px; padding: 22px; border: 1px solid #3d5265; border-radius: 14px; background: #1e2832; }
.promotion-control > header, .promotion-action > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.promotion-control h2 { margin: 4px 0 10px; font-size: 23px; color: #eef4fa; }
.promotion-control .eyebrow { margin: 0; color: #8bc8f3; font-size: 12px; }
.promotion-control p { color: #c3cfda; line-height: 1.65; overflow-wrap: anywhere; }
#promotion-mode { padding: 6px 10px; background: #30465b; border-radius: 20px; color: #cce8ff; white-space: nowrap; font-size: 12px; }
.promotion-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
#promotion-feedback, #promotion-settings-error { color: #f4bc74; font-size: 13px; }
#promotion-run-status { padding: 12px 0; color: #d8e6f2; font-size: 13px; line-height: 1.6; }
.promotion-action { padding: 16px; margin: 12px 0; border: 1px solid #465b6c; border-radius: 10px; background: #202a34; }
.promotion-action header span, .promotion-action small { color: #a7b6c3; font-size: 12px; }
.promotion-action small { display: block; margin-top: 4px; }
.promotion-change { color: #a9dbff; font-size: 22px; }
.promotion-action button { margin: 6px 8px 0 0; }
.promotion-receipt { font-size: 12px; }
.promotion-control details, .conversation-surface > summary { color: #b9c9d6; font-size: 13px; margin-top: 14px; cursor: pointer; }
#promotion-history article { padding: 12px 0; border-bottom: 1px solid #384956; }
.report-quality { padding: 12px 16px; border-left: 3px solid #64b4d6; border-radius: 5px; background: #20323c; color: #d1e1eb; font-size: 13px; line-height: 1.65; }
.report-quality.is-stale { border-left-color: #d2a05c; background: #322c23; color: #ecd2ac; }
.promotion-settings-dialog { width: min(680px,94vw); max-height: 88vh; overflow: auto; }
.promotion-settings-dialog textarea, .promotion-settings-dialog select { width: 100%; background: #1e2227; color: #eef2f5; padding: 10px; border: 1px solid #46505b; border-radius: 6px; font: inherit; }
.promotion-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.promotion-settings-dialog fieldset { display: flex; flex-wrap: wrap; gap: 12px; border: 1px solid #46505b; padding: 12px; color: #d7e2ec; }
.promotion-settings-dialog fieldset label, .promotion-settings-dialog .inline-label { display: flex; align-items: center; gap: 8px; }
.promotion-settings-dialog input[type=checkbox] { width: auto; min-height: auto; }
.message header time { margin-left: 12px; color: #8799aa; font-size: 11px; }
@media(max-width:560px) { .promotion-control { padding: 15px; } .promotion-control h2 { font-size: 19px; } .promotion-form-grid { grid-template-columns: 1fr; } }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }

.promo-app {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
}

.product-rail {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.rail-collapse {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel);
  font-size: 23px;
  line-height: 1;
}
.rail-collapse:hover { border-color: #93bdf5; color: var(--blue); }
.promo-app.rail-collapsed { grid-template-columns: 58px 46px minmax(0, 1fr); }
.product-rail.rail-collapsed {
  display: block;
  padding: 12px 7px;
}
.product-rail.rail-collapsed > *:not(.rail-collapse) { display: none; }
.product-rail.rail-collapsed .rail-collapse {
  position: static;
  margin: 0 auto;
}
.promo-app.rail-collapsed .composer { left: 104px; }

.agent-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 22px;
}

.agent-brand img, .agent-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
}

.agent-brand strong, .agent-brand span { display: block; }
.agent-brand strong { font-size: 15px; }
.agent-brand span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.icon-control {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #344054;
  background: #fff;
  font-size: 19px;
  line-height: 1;
}

.search-box { display: block; padding: 8px 6px; }
.search-box span { display: none; }
.search-box input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: #fafcff;
  font-size: 12px;
}
.search-box input:focus { border-color: #9abff5; background: #fff; }

.scope-switch { min-width: 0; padding: 4px 2px 6px; }
.scope-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
  color: inherit;
  background: transparent;
}
.scope-row:hover { background: #f7faff; }
.scope-row.is-active { border-color: #9dc5ff; background: var(--blue-soft); }
.scope-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #d6e0ed; border-radius: 6px; color: #315b91; background: #edf5ff; font-size: 11px; font-weight: 700; }
.scope-row b, .scope-row small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scope-row b { font-size: 12px; }
.scope-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.scope-divider { display: flex; align-items: center; gap: 7px; margin: 8px 6px 2px; color: var(--muted); font-size: 10px; }
.scope-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

[hidden] { display: none !important; }
.product-rail { grid-template-rows: auto auto minmax(0, 1fr); }
.analysis-views { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px 0 16px; }
.view-tab { min-height: 38px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 13px; }
.view-tab.is-active { border-bottom-color: var(--blue); color: var(--ink); font-weight: 700; }
.view-tab:hover { color: var(--ink); }
.product-library { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; min-height: 0; }
.store-sidebar { padding: 12px 6px; min-width: 0; }
.store-sidebar h2 { margin: 0 0 22px; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.store-sidebar dl { margin: 0; font-size: 12px; }
.store-sidebar dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.store-sidebar dt { color: var(--muted); }
.store-sidebar dd { margin: 0; color: var(--ink); }
.agent-avatar { flex: 0 0 48px; }
.agent-intro > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.report-row > span { min-width: 0; }

.product-list {
  min-height: 110px;
  min-width: 0;
  overflow: auto;
  padding: 4px 2px 8px;
  scrollbar-color: #2b7fc5 #20242a;
  scrollbar-width: thin;
}
.product-list::-webkit-scrollbar { width: 8px; height: 8px; }
.product-list::-webkit-scrollbar-track { background: #20242a; }
.product-list::-webkit-scrollbar-thumb { border: 2px solid #20242a; border-radius: 6px; background: #2b7fc5; }
.product-list::-webkit-scrollbar-thumb:hover { background: #4a9ad7; }

.product-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  width: 100%;
  margin: 2px 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
  color: inherit;
  background: transparent;
}
.product-row:hover { background: #f7faff; }
.product-row.is-active { border-color: #9dc5ff; background: var(--blue-soft); }

.product-thumb {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d6e0ed;
  border-radius: 7px;
  color: #315b91;
  background: #edf5ff;
  font-size: 13px;
  font-weight: 700;
}
.product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-row b, .product-row span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-row b { font-size: 12px; }
.product-row span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.product-row .product-tags { display: flex; gap: 4px; margin-top: 5px; }
.product-tags i { padding: 1px 4px; border: 1px solid #cbdcf5; border-radius: 4px; color: #315b91; background: #f2f7ff; font-size: 10px; font-style: normal; line-height: 1.25; }
.rail-count { margin: 0; padding: 7px 6px 14px; color: var(--muted); font-size: 12px; }

.agent-stage { min-width: 0; padding: 18px clamp(18px, 4vw, 64px) 138px; }
.stage-head { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.stage-head-actions { display: flex; align-items: center; gap: 12px; }
.back-link { color: var(--muted); font-size: 13px; text-decoration: none; }
.back-link:hover { color: #76bdf0; }
.auth-link { padding: 5px 9px; border: 1px solid #3e94d5; border-radius: 5px; color: #f8fbff; background: #267bbb; font-size: 12px; text-decoration: none; }
.auth-link:hover { border-color: #67bdf4; background: #338bd0; }
.agent-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.agent-state span { width: 8px; height: 8px; border-radius: 50%; background: #c8d2df; }
.agent-state.is-ready span { background: var(--green); }
.agent-state.is-error span { background: var(--red); }

.agent-intro { display: flex; align-items: center; gap: 14px; max-width: 940px; margin: 52px auto 22px; }
.agent-avatar { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border: 1px solid #cddaf0; border-radius: 8px; background: #fff; }
.agent-avatar img { width: 38px; height: 38px; }
.agent-intro h1 { margin: 2px 0 0; font-size: 24px; line-height: 1.25; }
.agent-intro p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.agent-intro .eyebrow { color: var(--blue); font-size: 12px; font-weight: 700; }

.conversation-surface { max-width: 940px; min-height: 0; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 14px 28px rgba(26, 42, 69, .07); }
.conversation-stream { display: grid; align-content: start; gap: 12px; min-height: 244px; max-height: 470px; overflow: auto; padding: 22px; }
.message { max-width: min(740px, 92%); padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fbfcfe; }
.message.user { justify-self: end; border-color: #b7d3ff; background: var(--blue-soft); }
.message.system { border-style: dashed; color: #475467; background: #fff; }
.message header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.message b { color: #344054; font-size: 12px; }
.message p { margin: 7px 0 0; color: #344054; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.analysis-block { min-width: 0; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.analysis-block.wide { grid-column: 1 / -1; }
.analysis-block span { display: block; color: var(--muted); font-size: 11px; }
.analysis-block strong { display: block; margin-top: 4px; color: #1d2939; font-size: 14px; line-height: 1.45; }
.analysis-block ul { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 18px; color: #475467; font-size: 12px; line-height: 1.5; }
.analysis-tasks { display: grid; gap: 6px; margin-top: 8px; }
.analysis-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.analysis-task:first-child { border-top: 0; }
.analysis-task b, .analysis-task span { display: block; }
.analysis-task span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.task-inline-state { flex: 0 0 auto; color: var(--green); font-size: 11px; font-style: normal; }

.quick-prompts { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 22px 14px; }
.quick-prompts button, .ghost-button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: #475467; background: #fff; font-size: 12px; }
.quick-prompts button:hover, .ghost-button:hover { border-color: #a7c8f8; color: var(--blue); }
.composer { position: fixed; right: 0; bottom: 0; left: 336px; z-index: 10; padding: 10px max(18px, 4vw) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: rgba(29, 32, 37, .97); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
.composer-inner { width: min(940px, 100%); margin: 0 auto; }
.composer-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.composer textarea { width: 100%; min-height: 48px; max-height: 120px; resize: vertical; padding: 11px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); background: #fff; font-size: 13px; line-height: 1.45; }
.composer textarea:focus { border-color: #93bdf5; }
.composer button, .primary-button { align-self: end; min-height: 42px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 7px; color: #fff; background: var(--blue); font-weight: 700; }

.task-board { max-width: 940px; margin: 18px auto 0; border-top: 1px solid var(--line); }
.task-board > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.task-board header b, .task-board header span { display: block; }
.task-board header b { font-size: 14px; }
.task-board header span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.task-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.task-list { border-top: 1px solid var(--line-soft); }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
.task-row b, .task-row span { display: block; }
.task-row b { font-size: 13px; }
.task-row span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.task-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.task-status { align-self: center; padding: 4px 8px; border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: 11px; white-space: nowrap; }
.task-status.proposal, .task-status.approved_waiting_executor { color: #7250ab; background: #f3edff; }
.task-window, .task-cancel { min-height: 27px; padding: 0 8px; border: 1px solid #4d5864; border-radius: 5px; color: #e7edf3; background: #252a31; font-size: 11px; white-space: nowrap; }
.task-window:hover { border-color: #64aee4; color: #fff; background: #303a45; }
.task-cancel:hover { border-color: #9d5960; color: #ffc0c2; background: #3a2528; }
.empty-row { padding: 22px 2px; color: var(--muted); font-size: 13px; }

.product-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); box-shadow: 0 20px 50px rgba(16, 24, 40, .2); }
.product-dialog::backdrop { background: rgba(16, 24, 40, .24); }
.product-dialog form { display: grid; gap: 13px; padding: 18px; }
.product-dialog header, .product-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-dialog header b, .product-dialog header span { display: block; }
.product-dialog header b { font-size: 16px; }
.product-dialog header span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.product-dialog label { display: grid; gap: 6px; color: #344054; font-size: 12px; font-weight: 700; }
.product-dialog input { width: 100%; height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); font-size: 13px; font-weight: 400; }
.product-dialog input:focus { border-color: #93bdf5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-dialog footer { padding-top: 5px; justify-content: flex-end; }

@media (max-width: 820px) {
  .promo-app { grid-template-columns: 1fr; }
  .product-rail { position: static; height: auto; overflow: visible; grid-template-rows: auto auto auto auto auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-list { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
  .product-row { flex: 0 0 210px; }
  .agent-stage { padding: 14px 16px 138px; }
  .agent-intro { margin-top: 30px; }
  .task-board > header { align-items: flex-start; flex-direction: column; }
  .task-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .agent-intro h1 { font-size: 20px; }
  .conversation-stream { padding: 14px; }
  .composer { left: 52px; padding-right: 16px; padding-left: 16px; }
  .quick-prompts { padding: 0 0 8px; }
  .composer-fields { grid-template-columns: minmax(0, 1fr) auto; }
  .composer button { min-width: 58px; }
  .analysis-grid { grid-template-columns: 1fr; }
  .analysis-block.wide { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
}

.rail-head-actions { display: flex; align-items: center; gap: 5px; }
.product-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0 6px 6px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 7px; background: #f7f9fc; }
.product-filters button { min-width: 0; height: 27px; padding: 0 3px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; white-space: nowrap; }
.product-filters button:hover { color: var(--ink); }
.product-filters button.is-active { color: #1456ad; background: #fff; box-shadow: 0 0 0 1px #c9d9ee; font-weight: 700; }
.product-item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: center; gap: 3px; }
.product-item .product-row { min-width: 0; }
.product-star { width: 24px; height: 28px; padding: 0; border: 0; color: #98a2b3; background: transparent; font-size: 18px; line-height: 1; }
.product-star:hover, .product-star.is-active { color: #c47b00; }
.product-delete { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; color: var(--muted); background: transparent; opacity: 0; }
.product-item:hover .product-delete, .product-delete:focus-visible { opacity: 1; }
.product-delete:hover { color: var(--red); background: var(--red-soft); }
.product-segment-editor { display: flex; align-items: center; gap: 4px; margin: 6px 6px 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.product-segment-editor > span { margin-right: auto; color: var(--muted); font-size: 11px; }
.product-segment-editor button { height: 26px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; font-size: 11px; }
.product-segment-editor button.is-active { border-color: #9dc5ff; color: #1456ad; background: var(--blue-soft); font-weight: 700; }

.data-hub { max-width: 940px; margin: 24px auto 0; border-top: 1px solid var(--line); }
.data-hub-head, .data-hub-body, .trend-panel > header, .report-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.data-hub-head { padding: 14px 0; }
.data-hub-head b, .data-hub-head span { display: block; }
.data-hub-head b { font-size: 14px; }
.data-hub-head span, .trend-panel > header span, .report-panel > header span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.metric-item { min-width: 0; padding: 12px 10px; border-right: 1px solid var(--line-soft); }
.metric-item:last-child { border-right: 0; }
.metric-item span, .metric-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-item span { color: var(--muted); font-size: 11px; }
.metric-item strong { margin-top: 5px; color: #f0f4f8; font-size: 17px; font-weight: 700; }
.data-alerts { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); color: #f2c46d; font-size: 11px; }
.data-alerts strong { color: #ffd98a; font-size: 12px; }
.data-alerts span { padding: 3px 7px; border: 1px solid #6a5734; border-radius: 4px; background: #30291f; }
.data-hub-body { align-items: stretch; gap: 16px; padding-top: 16px; }
.trend-panel, .report-panel { min-width: 0; flex: 1 1 0; }
.trend-panel > header, .report-panel > header { justify-content: flex-start; padding-bottom: 9px; }
.trend-panel > header b, .report-panel > header b { font-size: 13px; }
.trend-panel > header span, .report-panel > header span { margin-top: 0; }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.chart-toolbar > div { display: flex; gap: 3px; }
.chart-switch { padding: 3px 6px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); background: transparent; font-size: 11px; }
.chart-switch:hover, .chart-switch.is-active { border-color: #3e94d5; color: #e7f5ff; background: #20384c; }
.bar-chart { display: flex; align-items: end; gap: 5px; height: 150px; padding: 12px 4px 0; border-bottom: 1px solid #46505b; overflow-x: auto; }
.bar-point { display: grid; min-width: 24px; height: 100%; grid-template-rows: 20px minmax(12px, 1fr) 18px; align-items: end; text-align: center; }
.bar-value { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bar { width: 14px; min-height: 4px; justify-self: center; border-radius: 3px 3px 0 0; background: #2b7fc5; }
.bar-point span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.chart-empty { display: grid; min-height: 150px; place-items: center; padding: 20px; border: 1px dashed #46505b; border-radius: 5px; color: var(--muted); font-size: 12px; text-align: center; }
.report-list { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.report-row, .trash-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.report-row b, .report-row span, .trash-row b, .trash-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-row b, .trash-row b { color: #e7edf3; font-size: 12px; }
.report-row span, .trash-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.report-row time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.trash-dialog > section { padding: 18px; }
.trash-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.trash-dialog header b, .trash-dialog header span { display: block; }
.trash-dialog header b { font-size: 16px; }
.trash-dialog header span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.trash-list { max-height: 360px; overflow: auto; }
.trash-row > span { min-width: 0; }
.report-dialog { max-height: calc(100vh - 32px); overflow: auto; }
.report-dialog select, .report-dialog textarea { width: 100%; border: 1px solid #46505b; border-radius: 5px; outline: none; color: var(--ink); background: #1e2227; }
.report-dialog select { height: 37px; padding: 0 10px; }
.report-dialog textarea { padding: 9px 10px; resize: vertical; font-size: 12px; line-height: 1.45; }
.report-dialog input[type="file"] { padding: 8px; }

@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-item:nth-child(3) { border-right: 0; }
  .data-hub-body { flex-direction: column; }
}

@media (max-width: 560px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-item:nth-child(3) { border-right: 1px solid var(--line-soft); }
  .metric-item:nth-child(even) { border-right: 0; }
  .data-hub-head { align-items: flex-start; }
  .data-hub-head .ghost-button { flex: 0 0 auto; }
  .bar-chart { gap: 3px; }
}

/* Keep this agent visually aligned with the site's dark design workbench. */
:root {
  --page: #17191d;
  --panel: #20242a;
  --line: #3a414a;
  --line-soft: #414a55;
  --ink: #eef2f5;
  --muted: #a9b1bb;
  --blue: #2b7fc5;
  --blue-soft: #20384c;
  --green: #5dc28d;
  --green-soft: #1d3a2d;
  --amber: #e6b35d;
  --amber-soft: #3a3020;
}

body {
  background: #17191d;
  color: #eef2f5;
}

.promo-app {
  grid-template-columns: 58px 278px minmax(0, 1fr);
  background: #17191d;
}

.site-rail {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  width: 58px;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  border-right: 1px solid #3a414a;
  background: #1d2025;
}

.site-logo {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 5px;
  color: #f8fbff;
  background: #1976bb;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #46515d;
  border-radius: 6px;
  color: #a9b1bb;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.site-nav-icon:hover,
.site-nav-icon:focus-visible,
.site-nav-icon.is-active {
  border-color: #3c96dc;
  color: #f7fafc;
  background: #333942;
  outline: 0;
}

.site-nav-icon.is-active { background: #267bbb; }
.site-settings { margin-top: auto; }
.site-rail-divider { width: 26px; height: 1px; margin: 2px 0; background: #3a414a; }

.product-rail {
  border-right-color: #3a414a;
  background: #20242a;
}

.agent-brand strong,
.rail-head,
.product-dialog label { color: #eef2f5; }
.icon-control { border-color: #46505b; color: #eef2f5; background: #292e35; }
.search-box input,
.product-dialog input,
.composer textarea { border-color: #46505b; color: #eef2f5; background: #1e2227; }
.search-box input:focus,
.product-dialog input:focus,
.composer textarea:focus { border-color: #54a9ed; }
.product-row:hover { background: #252a31; }
.product-row.is-active { border-color: #3c96dc; background: #20384c; }
.product-thumb { border-color: #46505b; color: #83ccff; background: #1d2d3b; }
.product-filters { border-color: #414a55; background: #1d2025; }
.product-filters button.is-active { color: #e7f5ff; background: #2b333c; box-shadow: 0 0 0 1px #4e8ab5; }
.product-tags i { border-color: #3f6681; color: #b9ddf7; background: #1d2d3b; }
.product-segment-editor { border-top-color: #414a55; }
.product-segment-editor button { border-color: #4d5864; color: #b9c3ce; background: #252a31; }
.product-segment-editor button.is-active { border-color: #3c96dc; color: #e7f5ff; background: #20384c; }
.scope-row:hover { background: #252a31; }
.scope-row.is-active { border-color: #3c96dc; background: #20384c; }
.scope-icon { border-color: #46505b; color: #83ccff; background: #1d2d3b; }
.scope-divider::after { background: #414a55; }
.agent-stage { background: #17191d; }
.agent-intro .eyebrow { color: #76bdf0; }
.agent-avatar { border-color: #46505b; background: #292e35; }
.conversation-surface { border-color: #3a414a; background: #20242a; box-shadow: none; }
.message { border-color: #414a55; background: #252a31; }
.message.user { border-color: #3f6681; background: #20384c; }
.message.system { border-color: #46505b; color: #b9c3ce; background: #20242a; }
.message b { color: #e7edf3; }
.message p { color: #d8e0e7; }
.analysis-block { border-top-color: #414a55; }
.analysis-block strong { color: #f0f4f8; }
.analysis-block ul { color: #b9c3ce; }
.quick-prompts button,
.ghost-button { border-color: #4d5864; color: #e7edf3; background: #252a31; }
.quick-prompts button:hover,
.ghost-button:hover { border-color: #64aee4; color: #fff; background: #303a45; }
.composer { border-top-color: #414a55; background: #1d2025; }
.composer button,
.primary-button { border-color: #3e94d5; color: #f8fbff; background: #267bbb; }
.store-context { display: flex; align-items: center; gap: 7px; }
.store-context label { color: #a9b1bb; font-size: 11px; }
.store-context select { max-width: 170px; height: 30px; padding: 0 24px 0 9px; border: 1px solid #46505b; border-radius: 6px; outline: none; color: #eef2f5; background: #292e35; font-size: 12px; }
.store-context select:focus { border-color: #54a9ed; }
.store-context .icon-control { flex: 0 0 auto; width: 30px; height: 30px; }
.dialog-hint { margin: -3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.task-board { border-top-color: #3a414a; }
.task-list,
.task-row { border-color: #414a55; }
.task-status { color: #e6b35d; background: #3a3020; }
.task-status.proposal,
.task-status.approved_waiting_executor { color: #c8a7f1; background: #302640; }
.product-dialog { border-color: #3a414a; background: #20242a; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.product-dialog::backdrop { background: rgba(0, 0, 0, .62); }

@media (max-width: 820px) {
  .promo-app { grid-template-columns: 52px minmax(0, 1fr); }
  .site-rail { width: 52px; }
  .product-rail { grid-column: 2; grid-row: 1; }
  .agent-stage { grid-column: 2; grid-row: 2; }
  .promo-app.rail-collapsed { grid-template-columns: 52px minmax(0, 1fr); }
  .product-rail.rail-collapsed { grid-column: 2; grid-row: 1; }
  .promo-app.rail-collapsed .composer { left: 52px; }
}

@media (max-width: 560px) {
  .promo-app { grid-template-columns: 1fr; }
  .site-rail { position: static; width: 100%; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #3a414a; }
  .site-logo { flex: 0 0 auto; margin-bottom: 0; }
  .site-nav-icon { flex: 0 0 auto; }
  .site-settings { margin-top: 0; }
  .site-rail-divider { flex: 0 0 26px; width: 26px; }
  .product-rail,
  .agent-stage { grid-column: auto; grid-row: auto; padding-bottom: 166px; }
  .composer { right: 0; bottom: 0; left: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .promo-app.rail-collapsed .product-rail { display: block; }
  .promo-app.rail-collapsed .agent-stage { display: block; }
  .composer-fields { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .composer textarea { min-height: 44px; }
  .composer button { min-width: 54px; padding: 0 12px; }
  .store-context { max-width: 150px; }
  .store-context label { display: none; }
  .store-context select { max-width: 104px; }
}

.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.conversation-surface { border: 0; background: transparent; }
.conversation-stream { padding: 12px 0; }
.message.system { border: 0; background: transparent; }
.composer .quick-prompts { padding: 0 0 8px; }
.composer .quick-prompts button { min-height: 28px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; }

@media (max-width: 820px) {
  .product-rail { position: relative; grid-template-rows: auto auto auto; padding: 12px 16px; }
  .agent-brand { padding-bottom: 12px; }
  .analysis-views { padding-bottom: 8px; }
  .store-sidebar { padding: 4px 0; }
  .store-sidebar h2 { display: none; }
  .store-sidebar dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .product-list { display: grid; max-height: 220px; overflow: auto; }
  .composer { left: 52px; }
  .task-row { grid-template-columns: minmax(0, 1fr); }
  .task-row-actions { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .product-rail { padding-bottom: 12px; }
  .agent-stage { padding-bottom: 166px; }
  .stage-head { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  .stage-head-actions { gap: 8px; flex-wrap: wrap; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-app.rail-collapsed { grid-template-columns: minmax(0, 1fr); }
  .promo-app.rail-collapsed .product-rail, .promo-app.rail-collapsed .agent-stage { grid-column: 1; grid-row: auto; }
  .composer, .promo-app.rail-collapsed .composer { left: 0; }
}

/* Daily operating view: lead with the decision, reveal evidence on demand. */
.agent-intro { margin-top: 38px; margin-bottom: 16px; }
.conversation-surface { border: 0; background: transparent; }
.conversation-stream {
  min-height: 0;
  max-height: 420px;
  padding: 0;
  scrollbar-color: #4e5966 transparent;
}
.message.assistant {
  width: 100%;
  max-width: 100%;
  padding: 18px 0 4px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.message.assistant:first-child { border-top: 0; }
.message.assistant > header { margin-bottom: 9px; }
.message.assistant > header b { color: #8ecbf6; }
.analysis-brief > span,
.analysis-next > span,
.analysis-actions > span,
.analysis-block > span { color: var(--muted); font-size: 11px; }
.analysis-brief > strong {
  display: block;
  margin-top: 5px;
  color: #f4f7fa;
  font-size: 19px;
  line-height: 1.4;
}
.message .analysis-brief > p {
  max-width: 780px;
  margin-top: 7px;
  color: #c6ced7;
  font-size: 13px;
  line-height: 1.65;
}
.analysis-next {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  margin-top: 15px;
  padding: 12px 14px;
  border-left: 3px solid #2b7fc5;
  background: #1d2228;
}
.analysis-next ol { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: #e2e8ee; font-size: 12px; line-height: 1.5; }
.analysis-actions { margin-top: 14px; }
.audience-picker-card { padding: 12px 14px; border: 1px solid rgba(78, 150, 210, .35); background: rgba(33, 52, 69, .42); }
.audience-picker-options { display: grid; gap: 8px; margin: 10px 0 12px; }
.audience-picker-option { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 8px; cursor: pointer; }
.audience-picker-option input { margin-top: 3px; }
.audience-picker-option span { color: #e2e8ee; font-size: 12px; line-height: 1.5; }
.audience-picker-option small { display: block; color: var(--muted); }
.analysis-details,
.secondary-metrics,
.report-panel,
.task-history { border-top: 1px solid var(--line-soft); }
.analysis-details { margin-top: 14px; }
.analysis-details > summary,
.secondary-metrics > summary,
.report-panel > summary,
.task-history > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}
.analysis-details > summary::-webkit-details-marker,
.secondary-metrics > summary::-webkit-details-marker,
.report-panel > summary::-webkit-details-marker,
.task-history > summary::-webkit-details-marker { display: none; }
.analysis-details > summary::after,
.secondary-metrics > summary::after,
.report-panel > summary::after,
.task-history > summary::after { content: "⌄"; color: #77b9e8; }
.analysis-details[open] > summary::after,
.secondary-metrics[open] > summary::after,
.report-panel[open] > summary::after,
.task-history[open] > summary::after { content: "⌃"; }
.analysis-details .analysis-grid { margin: 0 0 8px; }
.analysis-details .analysis-block { padding: 10px 12px; border: 1px solid var(--line-soft); background: #1d2025; }

.task-board { margin-top: 22px; }
.task-board > header { padding: 14px 0 10px; }
.task-list { border-top: 0; }
.task-row { padding: 10px 2px; }
.task-history { margin-top: 2px; }
.task-history > summary span { padding: 1px 5px; border-radius: 4px; background: #292e35; font-size: 10px; }

.data-hub { margin-top: 28px; }
.data-hub-head { padding: 14px 0 12px; }
.metric-grid,
.secondary-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.secondary-metrics { border-top: 0; border-bottom: 1px solid var(--line-soft); }
.secondary-metrics > summary { min-height: 34px; }
.secondary-metric-grid { border-top: 1px solid var(--line-soft); }
.secondary-metric-grid .metric-item { padding-top: 10px; padding-bottom: 10px; }
.data-hub-body { display: grid; gap: 14px; padding-top: 16px; }
.trend-panel { width: 100%; }
.bar-chart { height: 132px; }
.report-panel { width: 100%; }
.report-panel > summary { justify-content: flex-start; }
.report-panel > summary b { color: #e7edf3; font-size: 12px; }
.report-panel > summary span { margin: 0; }
.report-panel .report-list { margin-bottom: 8px; }

@media (max-width: 820px) {
  .agent-intro { margin-top: 24px; }
  .conversation-stream { padding: 0; }
  .analysis-next { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .analysis-brief > strong { font-size: 17px; }
  .metric-grid,
  .secondary-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-item:nth-child(even) { border-right: 0; }
  .task-board > header { gap: 10px; }
}

/* Dashboard: identity, results, decisions, conversation. */
.dashboard-page .agent-stage {max-width:1600px;width:100%;margin:auto;padding:20px 28px 36px;box-sizing:border-box;}
.dashboard-page .agent-intro {margin:20px 0;gap:14px;}
.dashboard-page .agent-intro h1 {font-size:23px;line-height:1.4;}
.dashboard-page .connection-strip {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#35404a;border:1px solid #35404a;border-radius:12px;overflow:hidden;margin-bottom:18px;}
.connection-strip>div {display:flex;flex-direction:column;gap:7px;padding:16px;background:#20262d;min-width:0;}
.connection-strip span,.connection-strip small {font-size:12px;color:#9dacba;}
.connection-strip strong {font-size:14px;color:#e5edf5;overflow-wrap:anywhere;}
.connection-strip .connection-pending {color:#e6be78;}
.dashboard-page .data-hub,.dashboard-page .promotion-control,.dashboard-page .conversation-surface {max-width:none;margin:0 0 18px;padding:20px;border:1px solid #35404a;border-radius:12px;background:#20262d;box-sizing:border-box;}
.dashboard-page .data-hub-head {padding:0 0 12px;}
.dashboard-page .metric-grid {gap:12px;border:0;}
.dashboard-page .metric-item {background:#171d24;border:0;border-radius:8px;padding:16px;}
.dashboard-page .promotion-control h2 {font-size:19px;margin:5px 0;}
.dashboard-page .promotion-control .eyebrow {display:none;}
.dashboard-page .promotion-toolbar {flex-wrap:wrap;}
.dashboard-page .dashboard-data-details>summary,.dashboard-page .task-board>summary {padding:12px 0;color:#a8bacb;font-size:13px;cursor:pointer;}
.dashboard-page .conversation-surface>summary {margin:0;font-size:17px;font-weight:650;color:#e7edf4;}
.dashboard-page #conversation-product-context {color:#a8bacb;font-size:13px;line-height:1.6;}
.dashboard-page .conversation-stream {max-height:420px;overflow:auto;min-height:0;padding:0 8px 0 0;}
.dashboard-page .composer {position:static;margin:-8px 0 20px;padding:14px;border:1px solid #35404a;border-radius:12px;background:#20262d;box-shadow:none;}
.dashboard-page .composer-inner {max-width:none;}
.dashboard-page .task-board {margin:0;border-top:1px solid #35404a;}
.dashboard-page .report-quality {margin:0 0 14px;}
@media(max-width:1100px){.dashboard-page .connection-strip{grid-template-columns:repeat(2,minmax(0,1fr));}.dashboard-page .agent-stage{padding:18px;}}
@media(max-width:560px){.dashboard-page .agent-stage{padding:12px;}.dashboard-page .agent-intro h1{font-size:18px;}.dashboard-page .data-hub,.dashboard-page .promotion-control,.dashboard-page .conversation-surface{padding:14px;}.dashboard-page .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.connection-strip>div{padding:12px;}}
.dashboard-page .executor-readiness {margin:-8px 0 18px;padding:12px 18px;border:1px solid #35404a;border-radius:10px;background:#20262d;color:#bbcad8;font-size:13px;}
.executor-readiness>summary {cursor:pointer;}
.executor-readiness label {display:grid;gap:6px;}
.executor-readiness input {min-width:0;width:100%;box-sizing:border-box;padding:8px;border:1px solid #536271;border-radius:6px;background:#171d24;color:#eee;}
.executor-readiness p {line-height:1.65;overflow-wrap:anywhere;}

/* Clear dashboard: key numbers, next action, conversation. */
:root {color-scheme:light;--page:#f5f7fa;--panel:#fff;--line:#e2e7ee;--line-soft:#edf0f5;--ink:#202b3d;--muted:#7a8697;--blue:#2469e8;--blue-soft:#edf4ff;}
body.dashboard-page {background:var(--page);color:var(--ink);font-size:14px;}
.dashboard-page .promo-app {grid-template-columns:224px minmax(0,1fr);}
.dashboard-page .promo-app.rail-collapsed {grid-template-columns:46px minmax(0,1fr);}
.dashboard-page .product-rail {grid-column:1;background:#fff;border-color:var(--line);padding:24px 16px;}
.dashboard-page .agent-stage {grid-column:2;max-width:1660px;padding:20px 32px 32px;}
.dashboard-page .agent-brand {padding:2px 0 28px;}
.dashboard-page .agent-brand strong {font-size:17px;color:var(--ink);}
.dashboard-page .agent-brand span {color:var(--muted);font-size:11px;letter-spacing:1px;}
.dashboard-page .rail-collapse {border:0;background:transparent;color:#a0aabb;}
.dashboard-page .analysis-views {gap:6px;margin-bottom:20px;}
.dashboard-page .view-tab {background:#f3f5f8;border:0;color:#6f7b8d;border-radius:8px;padding:10px 8px;font-weight:600;}
.dashboard-page .view-tab.is-active {background:#edf4ff;color:#2469e8;}
.dashboard-page .store-sidebar h2,.dashboard-page .rail-head {color:var(--ink);}
.dashboard-page .store-sidebar {background:transparent;border:0;}
.dashboard-page .store-sidebar dt,.dashboard-page .rail-count {color:var(--muted);}
.dashboard-page .store-sidebar dd {color:#455468;}
.dashboard-page .store-sidebar dl>div {border-color:var(--line-soft);padding:12px 0;}
.dashboard-page .product-card {background:#fff;border-color:var(--line-soft);border-radius:10px;}
.dashboard-page .product-card:hover {background:#f8faff;}
.dashboard-page .product-card.is-active {background:#eef5ff;border-color:#b9d3ff;}
.dashboard-page .product-title,.dashboard-page .product-card strong {color:var(--ink);}
.dashboard-page .product-meta,.dashboard-page .product-card small {color:var(--muted);}
.dashboard-page .stage-head {min-height:46px;padding:0;align-items:center;border:0;}
.dashboard-page .back-link {color:#7c8799;font-size:12px;}
.dashboard-page .store-context label {color:var(--muted);}
.dashboard-page .store-context select {border:1px solid var(--line);padding:8px 30px 8px 12px;border-radius:8px;background:#fff;color:var(--ink);}
.dashboard-page .agent-state {background:#edf7f2;border:0;color:#2b7958;padding:8px 11px;border-radius:20px;}
.dashboard-page .agent-state b {color:inherit;font-size:11px;}
.dashboard-page .agent-intro {margin:23px 0 18px;}
.dashboard-page .agent-intro h1 {font-size:26px;letter-spacing:-.7px;font-weight:700;color:#1e2b3f;max-width:1050px;}
.dashboard-page .agent-avatar,.dashboard-page .agent-intro .eyebrow {display:none;}
.dashboard-page #current-product-meta {color:var(--muted);font-size:12px;margin-top:7px;}
.dashboard-page .connection-strip {display:flex;flex-wrap:wrap;gap:12px 28px;background:transparent;border:0;border-radius:0;margin:0 0 24px;}
.dashboard-page .connection-strip>div {display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;background:transparent;padding:0;}
.dashboard-page .connection-strip>div:first-child {display:none;}
.dashboard-page .connection-strip span,.dashboard-page .connection-strip small {color:#8a95a5;font-size:11px;}
.dashboard-page .connection-strip strong {font-size:12px;color:#5d6b7e;font-weight:500;}
.dashboard-page .connection-strip .connection-pending {color:#5d6b7e;}
.dashboard-page .data-hub {padding:0;background:transparent;border:0;margin-bottom:24px;}
.dashboard-page .data-hub-head {padding:0 0 8px;align-items:center;}
.dashboard-page .data-hub-head b {color:var(--ink);font-size:14px;}
.dashboard-page .data-hub-head span {font-size:11px;color:var(--muted);}
.dashboard-page .report-quality {background:transparent;border:0;color:#8390a2;margin:0 0 14px;padding:0;font-size:11px;}
.dashboard-page .report-quality.is-stale {color:#a77939;background:transparent;}
.dashboard-page .metric-grid {gap:14px;}
.dashboard-page .metric-item {padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:12px;min-height:107px;box-shadow:0 3px 7px #23355203;}
.dashboard-page .metric-item>span {color:#7c899b;font-size:12px;}
.dashboard-page .metric-item>strong {font-size:29px;letter-spacing:-.6px;font-weight:650;color:#25354b;margin-top:10px;font-variant-numeric:tabular-nums;}
.dashboard-page .metric-roi>strong {color:#2469e8;}
.dashboard-page .secondary-metrics {border:0;margin-top:6px;}
.dashboard-page .secondary-metrics>summary {font-size:11px;min-height:28px;}
.dashboard-page .secondary-metric-grid {gap:12px;border:0;}
.dashboard-page .secondary-metric-grid .metric-item {min-height:80px;padding:12px 18px;}
.dashboard-page .secondary-metric-grid strong {font-size:23px;}
.dashboard-page .dashboard-data-details>summary {padding:6px 0;color:#8390a2;font-size:11px;}
.dashboard-page .data-hub-body {padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;}
.dashboard-page .trend-panel header b,.dashboard-page .report-panel>summary b {color:var(--ink);}
.dashboard-page .chart-empty,.dashboard-page .report-row,.dashboard-page .report-row b {color:var(--muted);}
.dashboard-page .bar-chart {border-color:var(--line);}
.dashboard-page .bar {background:#83b4fb;border-radius:5px 5px 0 0;}
.dashboard-page .bar-point span,.dashboard-page .bar-value,.dashboard-page .chart-toolbar {color:var(--muted);}
.dashboard-page .dashboard-columns {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);gap:20px;align-items:start;}
.dashboard-page .promotion-control {background:#fff;border:1px solid var(--line);border-radius:14px;margin:0;padding:22px;}
.dashboard-page .promotion-control h2 {font-size:17px;font-weight:650;color:var(--ink);}
.dashboard-page #promotion-mode {color:#55719d;background:#f0f5fc;border-radius:6px;font-size:11px;font-weight:500;padding:5px 8px;}
.dashboard-page .promotion-control p {color:#6c798c;font-size:12px;line-height:1.75;}
.dashboard-page #promotion-goal-summary {margin:12px 0 18px;}
.dashboard-page #promotion-run-status {font-size:12px;padding:10px 0 0;color:#6c798c;}
.dashboard-page #promotion-run-status:empty,.dashboard-page #promotion-feedback:empty {display:none;}
.dashboard-page .promotion-action {background:#fafcff;border:1px solid #dfe9f8;border-radius:10px;padding:16px;margin:16px 0 0;}
.dashboard-page .promotion-action b {color:#2f435e;font-size:13px;}
.dashboard-page .promotion-action strong {color:#2e5f9d;}
.dashboard-page .promotion-action header span {font-size:11px;color:#4475b8;background:#edf4ff;border-radius:4px;padding:3px 6px;}
.dashboard-page .promotion-action small {color:#8c97a8;font-size:10px;}
.dashboard-page .promotion-control details {color:#7a889b;font-size:12px;}
.dashboard-page .dashboard-tools {border-top:1px solid var(--line-soft);padding-top:14px;margin-top:20px;}
.dashboard-page .dashboard-tools>summary {font-size:12px;color:#8a96a6;}
.dashboard-page .executor-readiness {background:#f9fafc;color:var(--muted);border:1px solid var(--line-soft);padding:12px;margin:14px 0;}
.dashboard-page .chat-panel {background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;}
.dashboard-page .chat-panel .conversation-surface {border:0;border-radius:0;margin:0;padding:22px 22px 8px;background:transparent;}
.dashboard-page .conversation-surface>summary {font-size:17px;color:var(--ink);margin:0;list-style:none;}
.dashboard-page #conversation-product-context {color:#8c98a8;font-size:11px;margin:10px 0 16px;}
.dashboard-page .conversation-stream {max-height:370px;min-height:190px;overflow:auto;padding-right:6px;}
.dashboard-page .conversation-history>summary {font-size:11px;color:#94a0af;cursor:pointer;margin-bottom:16px;}
.dashboard-page .message {border:0;background:transparent;margin:0 0 15px;padding:0;}
.dashboard-page .message header {margin:0 0 7px;}
.dashboard-page .message header b {font-size:11px;color:#7b899b;font-weight:500;}
.dashboard-page .message header time {font-size:10px;color:#a1aaba;}
.dashboard-page .message.user>p {background:#f3f6fa;border-radius:9px;padding:12px 14px;color:#526278;font-size:12px;line-height:1.75;margin:0;}
.dashboard-page .message.system>p {color:#7b899b;font-size:12px;background:#f7f9fc;border-radius:8px;padding:12px;}
.dashboard-page .analysis-brief {background:transparent;border:0;padding:0;}
.dashboard-page .analysis-brief>span {display:none;}
.dashboard-page .analysis-brief>strong {font-size:17px;line-height:1.5;color:#27394f;}
.dashboard-page .analysis-brief>p {font-size:12px;line-height:1.8;color:#718095;margin:8px 0 0;}
.dashboard-page .analysis-next {background:#f8faff;border-left:2px solid #a8c8f9;padding:12px;margin-top:12px;}
.dashboard-page .analysis-next ol {color:#586d89;font-size:12px;}
.dashboard-page .analysis-next>b,.dashboard-page .analysis-actions>b {color:#587297;font-size:12px;}
.dashboard-page .analysis-actions p {font-size:12px;color:#718095;line-height:1.75;}
.dashboard-page .analysis-details .analysis-block {background:#fafbfd;border:1px solid var(--line-soft);color:var(--muted);}
.dashboard-page .analysis-details li {color:var(--muted);}
.dashboard-page .chat-panel .composer {border:0;border-top:1px solid var(--line-soft);border-radius:0;margin:0;padding:16px 20px 20px;background:#fff;}
.dashboard-page .quick-prompts {gap:6px;margin-bottom:12px;}
.dashboard-page .quick-prompts button {background:#f6f8fb;border:1px solid #edf1f6;color:#7c8a9c;font-size:11px;border-radius:15px;padding:5px 9px;}
.dashboard-page .composer-fields {background:#f8fafd;border:1px solid #e4eaf2;border-radius:10px;padding:9px;align-items:flex-end;}
.dashboard-page #analysis-input {background:transparent!important;border:0!important;box-shadow:none;min-height:42px;font-size:13px;line-height:1.6;}
.dashboard-page #send-analysis {background:#2469e8;color:#fff;border:0;border-radius:7px;padding:10px 17px;font-size:12px;}
.dashboard-page .ghost-button,.dashboard-page .icon-control {background:#fff;color:#637791;border:1px solid #dde5ef;border-radius:7px;font-size:12px;}
.dashboard-page .primary-button {background:#2469e8;color:#fff;border:1px solid #2469e8;border-radius:7px;font-size:12px;}
.dashboard-page .ghost-button:hover {background:#f3f7fd;border-color:#bdd3f0;}
.dashboard-page .primary-button:hover,.dashboard-page #send-analysis:hover {background:#1859cd;}
body.dashboard-page :is(input,textarea,select) {background:#fff!important;color:#33465f!important;border-color:#dce4ef!important;}
.dashboard-page .product-filters button,.dashboard-page .chart-switch {background:#f4f7fb;color:#7b889a;border-color:#e2e9f1;}
.dashboard-page .product-filters button.is-active,.dashboard-page .chart-switch.is-active {background:#edf4ff;color:#2469e8;}
.dashboard-page .task-board {border-color:var(--line);margin:22px 0 0;}
.dashboard-page .task-board>summary {font-size:12px;color:#8c98a8;}
.dashboard-page .task-row {background:#fff;border-color:var(--line-soft);border-radius:8px;color:#6f7d90;}
.dashboard-page .task-row strong,.dashboard-page .task-row b {color:#526982;}
.dashboard-page .task-status {background:#f0f5fb;color:#7590ae;}
.dashboard-page .product-dialog {background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 20px 80px #1b365533;border-radius:14px;}
.dashboard-page .product-dialog header b,.dashboard-page .product-dialog label,.dashboard-page .product-dialog fieldset {color:#4d6079;}
.dashboard-page .product-dialog header span {color:#8d99a9;}
.dashboard-page .product-dialog::backdrop {background:#21324855;backdrop-filter:blur(2px);}
.dashboard-page .product-dialog footer,.dashboard-page .product-dialog header {border-color:var(--line-soft);}
.dashboard-page .data-alerts {background:#fff9ef;color:#987340;border-color:#f1e6ce;}
@media(max-width:1200px){.dashboard-page .dashboard-columns{grid-template-columns:1fr;}.dashboard-page .agent-stage{padding:18px 24px;}.dashboard-page .conversation-stream{max-height:340px;min-height:160px;}}
@media(max-width:850px){.dashboard-page .promo-app{grid-template-columns:190px minmax(0,1fr);}.dashboard-page .promo-app.rail-collapsed{grid-template-columns:42px minmax(0,1fr);}.dashboard-page .agent-stage{padding:16px;}.dashboard-page .product-rail{padding:20px 12px;}.dashboard-page .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.dashboard-page .metric-item{padding:17px;}.dashboard-page .connection-strip{gap:10px 18px;}}
@media(max-width:560px){.dashboard-page .promo-app,.dashboard-page .promo-app.rail-collapsed{display:block;}.dashboard-page .product-rail{position:relative;top:auto;height:auto;max-height:340px;border-right:0;border-bottom:1px solid var(--line);padding:12px 16px;}.dashboard-page .product-rail.rail-collapsed{height:44px;}.dashboard-page .agent-brand{padding:2px 0 14px;}.dashboard-page .store-sidebar{display:none;}.dashboard-page .analysis-views{margin-bottom:5px;}.dashboard-page .product-list{max-height:190px;overflow:auto;}.dashboard-page .agent-stage{padding:14px;}.dashboard-page .agent-intro h1{font-size:21px;}.dashboard-page .agent-intro{margin-top:14px;}.dashboard-page .connection-strip small{display:none;}.dashboard-page .stage-head{flex-wrap:wrap;gap:10px;}.dashboard-page .metric-item>strong{font-size:25px;}.dashboard-page .promotion-control{padding:17px;}.dashboard-page .chat-panel .conversation-surface{padding:17px;}.dashboard-page .chat-panel .composer{padding:14px;}.dashboard-page .promotion-form-grid{grid-template-columns:1fr;}}

.promotion-confirm-dialog{max-width:560px;width:calc(100% - 40px);padding:28px;border:1px solid #dce3ed;border-radius:18px;background:white;color:#172b4d;box-shadow:0 20px 80px #172b4d30}.promotion-confirm-dialog::backdrop{background:#0f172a55}.promotion-confirm-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:18px 0 24px}.promotion-confirm-dialog button{margin-right:12px}

.dashboard-page .promo-app,.dashboard-page .agent-stage {background:var(--page);}
.dashboard-page .action-scope {margin:10px 0;font-size:11px;}
.dashboard-page .action-scope summary {cursor:pointer;color:#8a97a8;}
.dashboard-page .integration-links {display:flex;gap:10px;flex-wrap:wrap;margin:12px 0;}
.dashboard-page .integration-links a {color:#2469e8;text-decoration:none;padding:7px 10px;background:#eef4ff;border-radius:6px;}
.dashboard-page .connection-strip .needs-login {color:#b06a16;font-weight:600;}

.dashboard-page .product-row {background:#fff;color:#405570;border-color:transparent;border-radius:8px;padding:8px 6px;}
.dashboard-page .product-row:hover {background:#f5f8fd;}
.dashboard-page .product-row.is-active {background:#edf4ff;border-color:#bfd4f6;color:#245fae;}
.dashboard-page .product-row span {color:#8090a4;}
.dashboard-page .product-filters {background:#f2f5f9;border-color:#e7edf4;box-shadow:none;}
.dashboard-page .product-filters button.is-active {color:#2469e8;background:#fff;box-shadow:0 1px 3px #263c5b12;}
.dashboard-page .product-segment-editor {display:flex;gap:5px;flex-wrap:wrap;}
.dashboard-page .product-segment-editor button {background:#f3f6fa;color:#7c8c9f;border:1px solid #e5ebf3;min-width:34px;height:26px;white-space:nowrap;}
.dashboard-page .product-segment-editor button.is-active {background:#eaf3ff;color:#2469e8;}
.dashboard-page ::-webkit-scrollbar {width:5px;height:5px;background:transparent;}
.dashboard-page ::-webkit-scrollbar-thumb {background:#d7dfeb;border-radius:5px;}
.dashboard-page .product-tags i {background:#f0f5fb;color:#7990ae;border:0;}

/* Product selection needs room for images and real product titles. */
.dashboard-page .promo-app:not(.rail-collapsed) {grid-template-columns:300px minmax(0,1fr);}
.dashboard-page .product-item {grid-template-columns:minmax(0,1fr);gap:0;margin-bottom:5px;padding-right:0;}
.dashboard-page .product-item .product-row {grid-template-columns:52px minmax(0,1fr);padding:11px 27px 11px 8px;gap:10px;min-height:88px;margin:0;}
.dashboard-page .product-row>.product-thumb {width:52px;height:64px;margin:0;}
.dashboard-page .product-row>span:last-child {margin:0;min-width:0;}
.dashboard-page .product-row b {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;font-size:13px;font-weight:550;line-height:1.55;color:#425771;}
.dashboard-page .product-row .product-code {font-size:11px;margin-top:5px;color:#8794a6;}
.dashboard-page .product-item .product-star {position:absolute;right:2px;top:7px;z-index:1;width:24px;}
.dashboard-page .product-item .product-delete {position:absolute;right:3px;bottom:9px;z-index:1;}
.dashboard-page .product-list {scrollbar-color:#ced9e7 transparent;padding-right:3px;}
.dashboard-page .product-list::-webkit-scrollbar-track {background:transparent;}
.dashboard-page .product-list::-webkit-scrollbar-thumb {border:0;background:#d2dce9;}
.dashboard-page .product-picker>header {display:flex;justify-content:space-between;align-items:center;gap:16px;margin:8px 0 22px;}
.dashboard-page .product-picker h2 {margin:0;font-size:18px;color:#273950;}
.dashboard-page .product-picker p,.dashboard-page #product-picker-count {font-size:12px;color:#8090a4;line-height:1.7;}
.dashboard-page .product-picker-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:18px;}
.dashboard-page .product-picker-card {min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:12px;border:1px solid #e1e8f0;border-radius:12px;background:#fff;color:#32485f;transition:border-color .15s,box-shadow .15s;}
.dashboard-page .product-picker-card:hover {border-color:#92bafa;box-shadow:0 5px 20px #305ea112;}
.dashboard-page .picker-image {display:grid;place-items:center;aspect-ratio:1/1;width:100%;background:#f5f7fa;overflow:hidden;border-radius:8px;}
.dashboard-page .picker-image img {width:100%;height:100%;object-fit:contain;}
.dashboard-page .product-picker-card strong {display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.65;font-size:13px;font-weight:550;margin:12px 0 8px;min-height:64px;}
.dashboard-page .picker-code {font-size:12px;color:#667d98;overflow-wrap:anywhere;}
.dashboard-page .product-picker-card small {font-size:10px;color:#9ba7b5;margin-top:7px;}
.dashboard-page .is-choosing-product #product-list {display:none;}
.dashboard-page .is-choosing-product .product-library {display:block;}
.dashboard-page .is-choosing-product .product-library .rail-count {padding-top:18px;}
@media(max-width:1100px){.dashboard-page .promo-app:not(.rail-collapsed){grid-template-columns:280px minmax(0,1fr);}.dashboard-page .product-picker-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));}}
@media(max-width:700px){.dashboard-page .promo-app:not(.rail-collapsed){grid-template-columns:250px minmax(0,1fr);}.dashboard-page .product-item .product-row{grid-template-columns:44px minmax(0,1fr);padding-right:23px;}.dashboard-page .product-row>.product-thumb{width:44px;height:54px;}.dashboard-page .product-row b{font-size:12px;}}
@media(max-width:560px){.dashboard-page .promo-app:not(.rail-collapsed){display:block;}.dashboard-page .product-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.dashboard-page .product-picker-card{padding:9px;}.dashboard-page .product-picker-card strong{font-size:12px;min-height:59px;}.dashboard-page .is-choosing-product .product-library{max-height:none;}.dashboard-page .is-choosing-product .product-rail{max-height:none;}.dashboard-page .product-picker>header{align-items:flex-start;}}

/* Keep the AI conversation visible beside the dashboard, with an anchored composer. */
.dashboard-page .agent-stage {display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,350px);column-gap:22px;align-content:start;align-items:start;padding:22px 26px 32px;max-width:none;}
.dashboard-page .stage-head {grid-column:1/-1;grid-row:1;}
.dashboard-page .agent-intro {grid-column:1/-1;grid-row:2;max-width:none;margin:22px 0 14px;}
.dashboard-page .agent-intro h1 {font-size:24px;line-height:1.45;}
.dashboard-page .connection-strip {grid-column:1/-1;grid-row:3;margin-bottom:22px;gap:10px 22px;}
.dashboard-page .data-hub,.dashboard-page .product-picker {grid-column:1;grid-row:4;min-width:0;max-width:none;}
.dashboard-page .dashboard-columns {display:contents;}
.dashboard-page .promotion-control {grid-column:1;grid-row:5;min-width:0;margin-top:18px;}
.dashboard-page .task-board {grid-column:1;grid-row:6;min-width:0;}
.dashboard-page .chat-panel {grid-column:2;grid-row:4/span 3;position:sticky;top:20px;display:flex;flex-direction:column;min-width:0;height:calc(100vh - 236px);min-height:420px;max-height:730px;border-color:#dbe5f3;box-shadow:0 4px 18px #2d4d7210;}
.dashboard-page .chat-panel .conversation-surface {display:flex;flex-direction:column;flex:1;min-height:0;padding:20px 18px 12px;}
.dashboard-page .ai-chat-heading {margin:0;font-size:18px;font-weight:650;color:#233c5b;display:flex;gap:10px;align-items:center;}
.dashboard-page .ai-chat-heading span {display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf4ff;color:#377cea;}
.dashboard-page .chat-panel #conversation-product-context {margin:10px 0 15px;line-height:1.6;}
.dashboard-page .chat-panel .conversation-stream {flex:1;min-height:0;max-height:none;padding:0 4px 0 0;}
.dashboard-page .chat-panel .composer {flex:none;margin:0;padding:12px;background:#fafcff;}
.dashboard-page .chat-panel .composer-inner {width:100%;max-width:none;}
.dashboard-page .chat-panel .composer-fields {display:flex;flex-wrap:wrap;gap:7px;background:#fff;padding:9px;}
.dashboard-page .chat-panel #analysis-input {display:block;flex:1 1 100%;width:100%;min-width:0;min-height:58px;max-height:145px;resize:vertical;}
.dashboard-page .chat-panel #send-analysis {margin-left:auto;}
.dashboard-page .chat-panel .quick-prompts {display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px;}
.dashboard-page .chat-panel .quick-prompts button {white-space:normal;text-align:left;}
.dashboard-page .metric-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;}
.dashboard-page .metric-item {min-height:102px;padding:18px;border:1px solid #e3e9f1;position:relative;}
.dashboard-page .metric-item>strong {font-size:28px;}
.dashboard-page .data-hub-head {align-items:flex-start;gap:9px;}
.dashboard-page .data-hub-note {overflow-wrap:anywhere;}
.dashboard-page .data-hub-body {display:block;margin-top:6px;padding:18px;}
.dashboard-page .trend-panel {width:100%;}
.dashboard-page .bar-chart {height:180px;margin-top:14px;}
.dashboard-page .report-panel {margin-top:18px;border-top:1px solid #edf1f6;padding-top:12px;}
.dashboard-page .data-alerts {font-size:11px;margin-top:10px;}
.dashboard-page .promotion-control h2 {font-size:16px;}
.dashboard-page .ai-chat-shortcut {position:fixed;right:22px;bottom:18px;z-index:15;border:1px solid #d8e7fe;border-radius:24px;background:#2469e8;color:#fff;padding:12px 18px;box-shadow:0 4px 16px #255cbc25;font-size:13px;}
@media(min-width:1550px){.dashboard-page .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));}.dashboard-page .agent-stage{grid-template-columns:minmax(0,1fr) 380px;}.dashboard-page .ai-chat-shortcut{display:none;}}
@media(max-width:1150px){.dashboard-page .agent-stage{display:flex;flex-direction:column;padding:18px 22px;}.dashboard-page .agent-stage>*{width:100%;}.dashboard-page .stage-head{order:0;}.dashboard-page .agent-intro{order:1;}.dashboard-page .connection-strip{order:2;}.dashboard-page .data-hub,.dashboard-page .product-picker{order:4;}.dashboard-page .chat-panel{order:3;position:relative;top:auto;height:450px;min-height:380px;max-height:none;margin:0 0 22px;}.dashboard-page .promotion-control{order:5;}.dashboard-page .task-board{order:6;}.dashboard-page .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.dashboard-page .product-picker-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));}}
@media(max-width:560px){.dashboard-page .agent-stage{padding:14px 14px 85px;}.dashboard-page .agent-intro{margin:14px 0 10px;}.dashboard-page .agent-intro h1{font-size:21px;}.dashboard-page .connection-strip{margin-bottom:16px;}.dashboard-page .chat-panel{height:370px;min-height:370px;}.dashboard-page .product-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.dashboard-page .ai-chat-shortcut{right:14px;bottom:14px;}}

.promotion-line-chart {display:block;width:100%;height:auto;min-height:170px;margin:8px 0 0;overflow:visible;}
.promotion-line-chart text {font-size:10px;fill:#92a0b2;font-family:inherit;}
.dashboard-page .chart-values {font-size:11px;color:#8a97a8;margin-top:10px;}
.dashboard-page .chart-values table {width:100%;border-collapse:collapse;margin-top:10px;color:#647b97;}
.dashboard-page .chart-values td,.dashboard-page .chart-values th {text-align:left;padding:7px;border-bottom:1px solid #edf1f6;font-weight:400;}
.dashboard-page .metric-cost>strong,.dashboard-page .metric-roi>strong {color:#2469e8;}
.dashboard-page .metric-item>span {font-size:12px;}
@media(max-width:560px){.dashboard-page .chat-panel{height:520px;min-height:520px;}}

.dashboard-page .growth-panel {grid-column:1;grid-row:5;padding:20px;border:1px solid #e1e8f0;border-radius:13px;background:#fff;margin-top:18px;min-width:0;}
.dashboard-page .growth-panel>header {display:flex;align-items:center;justify-content:space-between;gap:10px;}
.dashboard-page .growth-panel h2 {font-size:16px;color:#2a415d;margin:0;}
.dashboard-page #growth-count {color:#249172;font-size:11px;}
.dashboard-page #growth-note {font-size:11px;color:#8a99ac;margin:10px 0 16px;}
.dashboard-page .growth-empty {font-size:12px;color:#8090a6;line-height:1.8;margin:0;}
.dashboard-page .growth-card {display:flex;gap:12px;padding:15px 0;border-top:1px solid #edf1f6;}
.dashboard-page .growth-icon {flex:none;background:#e9f7f0;color:#27916d;border-radius:9px;font-size:22px;width:32px;height:32px;display:grid;place-items:center;}
.dashboard-page .growth-card strong {font-size:13px;line-height:1.7;color:#415975;}
.dashboard-page .growth-card p {font-size:12px;color:#2c9672;line-height:1.8;margin:6px 0;}
.dashboard-page .growth-card small,.dashboard-page .growth-card details {font-size:11px;color:#8a9ab0;line-height:1.8;}
.dashboard-page .growth-card details p {color:#8191a7;}
.dashboard-page .growth-card button {margin-top:9px;}
.dashboard-page .promotion-control {grid-row:6;}
.dashboard-page .task-board {grid-row:7;}
.dashboard-page .chat-panel {grid-row:4/span 4;}
@media(max-width:1150px){.dashboard-page .growth-panel{order:5;}.dashboard-page .promotion-control{order:6;}.dashboard-page .task-board{order:7;}}
.dashboard-page .stage-head-actions{flex-wrap:wrap;min-width:0;}.dashboard-page .growth-shortcut{white-space:nowrap;color:#228a6a;padding:8px 11px;}
.dashboard-page .data-alerts {display:block;padding:11px 13px;border-radius:8px;}
.dashboard-page .data-alerts summary {cursor:pointer;font-size:12px;color:#9a743d;}
.dashboard-page .data-alerts p {font-size:11px;line-height:1.8;color:#947c59;margin:10px 0 0;}
.dashboard-page .growth-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
.dashboard-page .growth-controls button{font-size:11px;padding:6px 9px;}
.dashboard-page #growth-status{font-size:12px;color:#758baa;line-height:1.8;}
@media(max-width:560px){.dashboard-page .growth-panel>header{align-items:flex-start;}.dashboard-page .growth-panel h2{flex:none;font-size:14px;}.dashboard-page .growth-controls{max-width:155px;}}

/* Conversation-first workspace. Panels scroll independently of the composer. */
body.workbench-page {--page:#fff;--ink:#28313e;--muted:#7f8995;--line:#e5e8ec;--line-soft:#f0f1f4;min-width:360px;height:100dvh;overflow:hidden;background:#fff;}
body.workbench-page .promo-app,body.workbench-page .promo-app:not(.rail-collapsed) {--rail-width:224px;--chat-fr:42fr;--data-fr:58fr;display:grid;grid-template-columns:var(--rail-width) minmax(340px,var(--chat-fr)) 6px minmax(380px,var(--data-fr));height:100dvh;min-height:0;overflow:hidden;}
body.workbench-page .promo-app.rail-collapsed {--rail-width:48px;grid-template-columns:var(--rail-width) minmax(340px,var(--chat-fr)) 6px minmax(380px,var(--data-fr));}
body.workbench-page .promo-app.inspector-collapsed {grid-template-columns:var(--rail-width) minmax(0,1fr);}
body.workbench-page .promo-app.inspector-collapsed .workspace-inspector,body.workbench-page .promo-app.inspector-collapsed .workspace-splitter {display:none;}
body.workbench-page [hidden]{display:none!important;}
body.workbench-page .product-rail {grid-column:1;position:relative;top:auto;display:flex;flex-direction:column;gap:0;height:100%;max-height:none;min-height:0;padding:22px 14px 12px;background:#f7f8fa;border-right:1px solid var(--line);overflow:hidden;}
body.workbench-page .product-rail.rail-collapsed {padding:12px 7px;}
body.workbench-page .product-rail.rail-collapsed>*:not(.rail-collapse) {display:none;}
body.workbench-page .agent-brand {padding:0 24px 23px 2px;gap:9px;}
body.workbench-page .agent-brand img {width:28px;height:28px;}
body.workbench-page .agent-brand strong {font-size:15px;letter-spacing:-.5px;}
body.workbench-page .agent-brand span {font-size:10px;}
body.workbench-page .rail-collapse {right:7px;top:18px;width:25px;height:25px;border:0;background:transparent;}
body.workbench-page .product-rail .store-context {display:flex;gap:5px;padding:0;margin-bottom:19px;}
body.workbench-page .store-context label {display:none;}
body.workbench-page .store-context select {min-width:0;max-width:none;width:100%;height:34px;border-radius:7px;font-size:12px;border:1px solid var(--line);padding:5px 8px;}
body.workbench-page .store-context .icon-control {flex:none;width:29px;}
body.workbench-page .analysis-views {display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 24px;}
body.workbench-page .analysis-views button {padding:10px 3px;font-size:12px;border-radius:7px;}
body.workbench-page .view-tab.is-active {background:#eaf0f8;color:#335f99;}
body.workbench-page .store-sidebar {display:block;padding:0 3px;}
body.workbench-page .store-sidebar h2 {font-size:12px;color:#57677b;margin-bottom:18px;}
body.workbench-page .store-sidebar dl>div {padding:12px 0;font-size:11px;}
body.workbench-page .product-library {display:flex;flex-direction:column;min-height:0;flex:1;max-height:none;}
body.workbench-page .rail-head {padding:0 0 13px;}
body.workbench-page .rail-head>span {font-size:12px;}
body.workbench-page .rail-head-actions {gap:4px;}
body.workbench-page .rail-head-actions button {width:25px;height:25px;font-size:12px;}
body.workbench-page .search-box input {font-size:12px;height:33px;padding:7px 9px;}
body.workbench-page .product-filters {display:flex;gap:0;padding:3px;flex:none;margin:8px 0 10px;}
body.workbench-page .product-filters button {flex:1;padding:5px 1px;font-size:10px;}
body.workbench-page .product-list,body.workbench-page .is-choosing-product #product-list {display:block;flex:1;min-height:0;max-height:none;overflow:auto;}
body.workbench-page .product-item {padding:3px 0;}
body.workbench-page .product-item .product-row {display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;padding:9px 14px 9px 17px;}
body.workbench-page .product-row>.product-thumb {width:36px;height:43px;border-radius:5px;}
body.workbench-page .product-row b {font-size:11px;line-height:1.65;-webkit-line-clamp:2;}
body.workbench-page .product-row .product-code {font-size:9px;margin-top:3px;}
body.workbench-page .product-star {left:0;font-size:13px;width:15px;}
body.workbench-page .product-delete {right:0;width:14px;}
body.workbench-page .product-tags {margin-top:3px;}
body.workbench-page .rail-count {margin:8px 0 0;font-size:10px;}
body.workbench-page .agent-stage {grid-column:2;display:flex;flex-direction:column;gap:0;align-items:stretch;min-width:0;min-height:0;height:100%;padding:0;max-width:none;overflow:hidden;background:#fff;}
body.workbench-page .agent-stage>* {width:auto;order:initial;}
body.workbench-page .stage-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;flex:none;gap:8px;height:57px;padding:0 20px;border-bottom:1px solid var(--line-soft);}
.workspace-heading {display:flex;align-items:center;gap:8px;white-space:nowrap;min-width:0;}
.workspace-heading>b {font-size:12px;font-weight:550;}
.workspace-divider {color:#c3c8d0;font-size:12px;}
body.workbench-page .back-link {font-size:11px;color:#8c96a3;}
body.workbench-page .stage-head-actions {gap:8px;flex-wrap:nowrap;}
body.workbench-page #toggle-inspector {font-size:11px;padding:6px 9px;background:transparent;border-color:var(--line);white-space:nowrap;}
body.workbench-page #open-navigation {display:none;}
body.workbench-page .task-brief {flex:none;margin:18px 20px 0;padding:16px 16px 0;border:1px solid #e6eaf0;border-radius:12px;background:linear-gradient(120deg,#f8fafc,#fff);overflow:hidden;}
body.workbench-page .agent-intro {display:flex;align-items:center;gap:11px;margin:0 0 12px;max-width:none;}
body.workbench-page .agent-intro>div:last-child {min-width:0;}
body.workbench-page .agent-intro .eyebrow {display:none;}
body.workbench-page .agent-intro h1 {font-size:16px;line-height:1.5;letter-spacing:0;font-weight:620;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body.workbench-page .agent-avatar {display:grid;place-items:center;flex:none;width:40px;height:44px;border:1px solid #e0e7f0;background:#edf2f8;border-radius:9px;color:#6d829f;font-size:16px;}
body.workbench-page .agent-avatar img {width:100%;height:100%;object-fit:cover;border-radius:8px;}
body.workbench-page #current-product-meta {font-size:10px;line-height:1.5;margin:4px 0 0;color:#8a95a5;}
.brief-goal {display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.6;margin-bottom:13px;}
.brief-goal>span {white-space:nowrap;color:#8a95a5;}
.brief-goal strong {font-weight:450;color:#52637a;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.brief-goal button {background:transparent;border:0;color:#8492a5;padding:0 2px;}
.brief-metrics {display:flex;align-items:center;gap:23px;margin-bottom:14px;}
.brief-metrics>div {display:flex;flex-direction:column;gap:5px;}
.brief-metrics span {font-size:10px;color:#8a95a5;}
.brief-metrics strong {font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;color:#34465e;}
.brief-metrics .brief-period {margin-left:auto;max-width:125px;}
.brief-period small {font-size:10px;color:#8d98a8;line-height:1.5;}
.brief-status {display:flex;align-items:center;gap:8px;border-top:1px solid #eaf0f5;padding:10px 0;min-width:0;}
body.workbench-page .brief-status .agent-state {padding:0;background:transparent;gap:5px;flex:none;}
body.workbench-page .brief-status .agent-state b {font-size:10px;font-weight:500;}
body.workbench-page .brief-status .agent-state>span {width:5px;height:5px;}
#brief-progress {font-size:10px;color:#8d98a8;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;min-width:0;}
body.workbench-page #open-growth-alerts {border:0;background:transparent;padding:0;font-size:10px;color:#57856f;flex:none;white-space:nowrap;}
body.workbench-page .dashboard-columns {display:flex;flex-direction:column;align-items:stretch;flex:1;min-height:0;min-width:0;overflow:hidden;}
body.workbench-page .chat-panel {display:flex;flex-direction:column;position:relative;top:auto;flex:1;min-height:0;height:auto;max-height:none;margin:0;background:#fff;box-shadow:none;border:0;border-radius:0;overflow:hidden;}
body.workbench-page .chat-panel .conversation-surface {display:flex;flex-direction:column;padding:0;flex:1;min-height:0;}
body.workbench-page .ai-chat-heading {font-size:11px;font-weight:550;color:#8a95a5;margin:0;padding:17px 24px 8px;gap:6px;flex:none;}
body.workbench-page .ai-chat-heading span {display:inline;width:auto;height:auto;background:transparent;color:#7392bc;font-size:14px;}
body.workbench-page #conversation-product-context {display:none;}
body.workbench-page .chat-panel .conversation-stream {display:block;flex:1;height:100%;min-height:0;max-height:none;padding:6px 24px 24px;overflow-y:auto;overflow-x:hidden;scroll-padding:15px;}
body.workbench-page .conversation-stream>.message {width:100%;max-width:780px;margin:0 auto 23px;line-height:1.85;border:0;padding:0;background:transparent;}
body.workbench-page .message header {display:flex;align-items:baseline;margin-bottom:8px;color:#68758a;}
body.workbench-page .message header>b {font-size:11px;font-weight:500;}
body.workbench-page .message header time {font-size:9px;margin-left:auto;white-space:nowrap;color:#a0a8b3;}
body.workbench-page .message p {font-size:13px;color:#465266;line-height:1.85;}
body.workbench-page .message.user {padding:13px 15px;background:#f5f7fa;border-radius:11px;margin-top:5px;}
body.workbench-page .message.user header {margin-bottom:4px;}
body.workbench-page .message.user p {margin:0;}
body.workbench-page .message.system {padding:10px 12px;border-left:2px solid #d7e3ee;background:#f9fbfd;}
body.workbench-page .message.system p {font-size:11px;line-height:1.7;}
body.workbench-page .analysis-brief>strong {font-size:15px;font-weight:600;color:#34465c;line-height:1.7;}
body.workbench-page .analysis-next ol {font-size:12px;line-height:1.8;}
body.workbench-page .analysis-details {font-size:11px;}
body.workbench-page .chat-panel .composer {position:relative;inset:auto;flex:none;z-index:2;display:block;margin:0;padding:0 18px 16px;background:linear-gradient(0deg,#fff 88%,#ffffff00);width:auto;border:0;box-shadow:none;}
body.workbench-page .composer-inner {max-width:780px;width:100%;margin:0 auto;border:1px solid #dfe5ed;border-radius:14px;background:#fff;padding:12px 13px 9px;box-shadow:0 5px 22px #2138530b;}
.composer-caption {display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#9aa3af;margin-bottom:8px;gap:8px;}
body.workbench-page .composer-caption button {border:0;background:transparent;font-size:10px;color:#8295ae;padding:0;min-height:0;min-width:0;align-self:auto;}
body.workbench-page .chat-panel .quick-prompts {gap:5px;margin:0 0 5px;display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin;}
body.workbench-page .chat-panel .quick-prompts button {font-size:10px;white-space:nowrap;flex:none;padding:4px 8px;border-color:#edf0f4;color:#8794a6;}
body.workbench-page .chat-panel .composer-fields {display:flex;flex-wrap:nowrap;align-items:flex-end;gap:7px;border:0;padding:4px 0 0;background:transparent;}
body.workbench-page .chat-panel #analysis-input {flex:1;width:100%;min-height:48px;max-height:130px;resize:vertical;font-size:13px;line-height:1.7;padding:5px 2px;}
body.workbench-page .chat-panel #send-analysis {flex:none;padding:8px 12px;margin:0 0 2px;background:#33465c;color:#fff;border-radius:8px;font-size:11px;}
body.workbench-page .ai-chat-shortcut {display:none!important;}
.workspace-splitter {grid-column:3;cursor:col-resize;position:relative;background:#f4f5f7;outline:none;touch-action:none;}
.workspace-splitter span {position:absolute;top:calc(50% - 18px);left:2px;width:2px;height:36px;border-radius:3px;background:#cfd7e2;}
.workspace-splitter:hover,.workspace-splitter:focus-visible {background:#deebfb;}
.is-resizing {cursor:col-resize;user-select:none;}
.workspace-inspector {grid-column:4;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;background:#fafbfc;overflow:hidden;}
.inspector-head {display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;height:57px;padding:0 20px;border-bottom:1px solid var(--line);background:#fff;}
.inspector-head>div {display:flex;align-items:center;gap:12px;min-width:0;}
.inspector-head b {font-size:12px;white-space:nowrap;font-weight:550;}
.inspector-head span {font-size:10px;color:#909ba9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:270px;}
.inspector-head button {width:25px;height:25px;flex:none;font-size:20px!important;border:0!important;background:transparent!important;}
.inspector-tabs {display:flex;gap:0;padding:0 15px;height:45px;flex:none;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto;}
.inspector-tabs button {flex:1;white-space:nowrap;background:transparent;border:0;border-bottom:2px solid transparent;color:#8b96a4;font-size:12px;padding:0 12px;}
.inspector-tabs button[aria-selected=true] {color:#3f6390;border-bottom-color:#6285b5;background:linear-gradient(0deg,#f4f7fb,#fff);}
.inspector-scroll {flex:1;min-height:0;overflow:auto;padding:20px;scrollbar-width:thin;scrollbar-color:#d3dae4 transparent;}
.inspector-scroll>[role=tabpanel] {outline:none;}
body.workbench-page .workspace-module {background:#fff;border:1px solid var(--line);border-radius:10px;margin:0 0 15px;padding:0 16px;min-width:0;}
body.workbench-page .workspace-module>summary {padding:14px 0;cursor:pointer;font-size:12px;font-weight:550;color:#607188;list-style-position:inside;}
body.workbench-page .workspace-module[open]>summary {border-bottom:1px solid var(--line-soft);margin-bottom:16px;}
body.workbench-page .data-hub {display:block;max-width:none;padding:0;margin:0 0 16px;background:transparent;border:0;}
body.workbench-page .data-hub-head {gap:10px;align-items:center;}
body.workbench-page .data-hub-head b {display:none;}
body.workbench-page .data-hub-head span {font-size:10px;}
body.workbench-page .data-hub-head button {font-size:10px;padding:5px 8px;}
body.workbench-page .report-quality {font-size:10px;margin:7px 0 14px;line-height:1.65;}
body.workbench-page .metric-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.workbench-page .metric-item {padding:15px;min-height:88px;border-radius:8px;background:#fafbfd;box-shadow:none;}
body.workbench-page .metric-item>span {font-size:11px;}
body.workbench-page .metric-item>strong {font-size:25px;margin-top:8px;color:#374e6e;letter-spacing:-.6px;}
body.workbench-page .secondary-metric-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
body.workbench-page .secondary-metric-grid .metric-item {min-height:65px;padding:10px;}
body.workbench-page .secondary-metric-grid .metric-item>strong {font-size:17px;}
body.workbench-page .data-hub-body {padding:10px 0 0;background:transparent;border:0;margin:0;display:block;}
body.workbench-page .trend-panel {border:0;padding:0;width:100%;}
body.workbench-page .trend-panel header {padding:0 0 10px;}
body.workbench-page .promotion-line-chart {min-height:130px;}
body.workbench-page .growth-panel {padding:0;margin:0 0 18px;background:transparent;border:0;}
body.workbench-page .growth-panel h2 {display:none;}
body.workbench-page .growth-panel>header {justify-content:flex-end;}
body.workbench-page .growth-controls {width:100%;max-width:none;justify-content:space-between;}
body.workbench-page .growth-card strong {font-size:12px;}
body.workbench-page .promotion-control {margin:0;padding:18px;background:#fff;border-color:var(--line);border-radius:10px;}
body.workbench-page .promotion-control h2 {font-size:16px;}
body.workbench-page .promotion-control p {font-size:12px;}
body.workbench-page .promotion-action {padding:13px;border-color:#e2e8f1;background:#fbfcfe;}
body.workbench-page .promotion-action>header {gap:8px;}
body.workbench-page .promotion-action header b {font-size:13px;}
body.workbench-page .promotion-form-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
body.workbench-page .task-board {margin:0 0 15px;border:1px solid var(--line);border-radius:10px;padding:0 16px;background:#fff;}
body.workbench-page .task-board>summary {padding:14px 0;font-size:12px;color:#607188;}
body.workbench-page .task-board>header {display:block;padding:0 0 12px;}
body.workbench-page .task-board>header>div>b {display:none;}
body.workbench-page .task-actions {display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;}
body.workbench-page .task-row {padding:12px 0;}
body.workbench-page .task-row span>span {max-height:85px;overflow:auto;font-size:10px;}
body.workbench-page .connection-strip {display:grid;gap:12px;margin:0 0 16px;}
body.workbench-page .connection-strip>div {display:flex;align-items:center;gap:7px;}
body.workbench-page .connection-strip>div:first-child {display:none;}
body.workbench-page .connection-strip span,body.workbench-page .connection-strip small {font-size:10px;}
body.workbench-page .product-picker {display:block;max-width:none;margin:0;}
body.workbench-page .product-picker>header {margin:0 0 16px;gap:10px;}
body.workbench-page .product-picker h2 {font-size:14px;}
body.workbench-page .product-picker p,body.workbench-page #product-picker-count {font-size:10px;}
body.workbench-page .product-picker-grid {grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;}
body.workbench-page .product-picker-card {padding:9px;border-radius:9px;}
body.workbench-page .product-picker-card strong {font-size:11px;min-height:53px;-webkit-line-clamp:3;}
body.workbench-page .picker-code {font-size:10px;}
.selected-product-card {display:flex;flex-direction:column;gap:9px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px;margin-bottom:20px;}
.selected-product-card .selected-label {font-size:10px;color:#91a0b3;}
.selected-product-card strong {font-size:13px;line-height:1.7;color:#506581;}
.selected-product-card small {font-size:10px;color:#91a0b3;}
.selected-product-card button {align-self:flex-start;}
.inspector-empty {font-size:12px;line-height:1.8;color:#8b98aa;border:1px dashed #d8e0ea;border-radius:10px;padding:22px;}
#workspace-scrim {display:none;}
@media(min-width:1800px){body.workbench-page .promo-app{--rail-width:250px;}body.workbench-page .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:1100px){
  body.workbench-page .promo-app,body.workbench-page .promo-app:not(.rail-collapsed),body.workbench-page .promo-app.inspector-collapsed{grid-template-columns:var(--rail-width) minmax(0,1fr);}
  body.workbench-page .workspace-splitter{display:none;}
  body.workbench-page .workspace-inspector,body.workbench-page .promo-app.inspector-collapsed .workspace-inspector{display:none;position:fixed;inset:0 0 0 auto;width:min(640px,85vw);max-width:100%;z-index:40;box-shadow:-8px 0 30px #24365322;}
  body.workbench-page .promo-app.inspector-open .workspace-inspector{display:flex;}
  #workspace-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:35;border:0;background:#25354b38;backdrop-filter:blur(1px);}
  body.workbench-page .task-brief{max-width:780px;width:calc(100% - 40px);align-self:center;}
}
@media(max-width:700px){
  body.workbench-page .promo-app,body.workbench-page .promo-app:not(.rail-collapsed),body.workbench-page .promo-app.rail-collapsed{display:grid;grid-template-columns:minmax(0,1fr);}
  body.workbench-page .agent-stage{grid-column:1;}
  body.workbench-page .product-rail{display:none;position:fixed;inset:0 auto 0 0;width:270px;z-index:40;padding:22px 15px;height:100dvh;max-height:none;box-shadow:8px 0 30px #24365322;}
  body.workbench-page .navigation-open .product-rail,body.workbench-page .navigation-open .product-rail.rail-collapsed{display:flex;}
  body.workbench-page .navigation-open .product-rail.rail-collapsed>*:not([hidden]){display:revert;}
  body.workbench-page .navigation-open .product-rail.rail-collapsed .rail-collapse{position:absolute;right:12px;top:16px;}
  body.workbench-page #open-navigation{display:grid;place-items:center;width:26px;height:26px;border:0;background:transparent;font-size:14px;}
  body.workbench-page .stage-head{height:49px;padding:0 13px;gap:5px;}
  .workspace-heading{gap:6px;}.workspace-heading>b{font-size:11px;}
  body.workbench-page .task-brief{margin:12px 13px 0;width:calc(100% - 26px);padding:12px 12px 0;}
  body.workbench-page .agent-intro{margin-bottom:9px;gap:9px;}
  body.workbench-page .agent-intro h1{font-size:14px;-webkit-line-clamp:1;}
  body.workbench-page .agent-avatar{width:34px;height:37px;}
  .brief-goal{margin-bottom:9px;font-size:10px;}.brief-metrics{margin-bottom:10px;gap:18px;}.brief-metrics strong{font-size:17px;}.brief-status{padding:8px 0;}
  body.workbench-page .ai-chat-heading{padding:13px 17px 6px;}
  body.workbench-page .chat-panel .conversation-stream{padding:6px 17px 15px;}
  body.workbench-page .chat-panel .composer{padding:0 12px max(10px,env(safe-area-inset-bottom));}
  body.workbench-page .composer-inner{padding:10px 11px 7px;}
  body.workbench-page .workspace-inspector,body.workbench-page .promo-app.inspector-collapsed .workspace-inspector{width:100%;}
  .inspector-scroll{padding:13px;}.inspector-head{padding:0 16px;height:49px;}.inspector-tabs{padding:0 7px;}.inspector-tabs button{font-size:11px;padding:0 8px;}
}
@media(max-height:650px){body.workbench-page .task-brief{margin-top:8px;}body.workbench-page .agent-intro .eyebrow,body.workbench-page #current-product-meta{display:none;}body.workbench-page .brief-goal{margin-bottom:6px;}body.workbench-page .brief-metrics{margin-bottom:7px;}body.workbench-page .brief-status{padding:7px 0;}body.workbench-page .chat-panel .quick-prompts{display:none;}}
:root .research-progress { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 16px 8px;padding:8px 12px;background:#edf5ff;color:#285fa8;border-radius:10px;font-size:13px;flex:none; }
:root .research-progress[hidden] { display:none; }

/* Product queries are opt-in, independent from promotion changes. */
body.workbench-page .product-query-actions {display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:10px 0;border-top:1px solid #e8edf3;font-size:11px;color:#728397;}
body.workbench-page .product-query-actions button {font-size:11px;padding:6px 9px;}
body.workbench-page .query-link {border:0;background:transparent;color:#547299;}
body.workbench-page .product-query-panel {padding:14px;margin:12px 0 18px;background:#f8fafc;border:1px solid #e4eaf1;border-radius:10px;}
body.workbench-page .product-query-panel>header {display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;}
body.workbench-page .product-query-panel>header span {color:#7d8b9e;font-size:11px;}
body.workbench-page .query-toolbar {display:flex;gap:7px;flex-wrap:wrap;margin-top:10px;}
body.workbench-page .query-toolbar button {font-size:11px;padding:6px 9px;}
body.workbench-page #product-query-feedback,.query-hint {font-size:11px;color:#748399;line-height:1.65;}
body.workbench-page .product-query-panel summary {font-size:12px;cursor:pointer;}
body.workbench-page .query-product-card {min-width:0;border:1px solid #e3eaf1;border-radius:10px;background:#fff;overflow:hidden;}
body.workbench-page .query-product-card .product-picker-card {width:100%;border:0;border-radius:0;}
body.workbench-page .query-card-controls {display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px;border-top:1px solid #eef1f6;font-size:10px;}
body.workbench-page .product-card-actions {display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:8px;border-top:1px solid #eef1f6;background:#fbfcfe;}
body.workbench-page .product-card-actions button {flex:1 1 auto;min-width:0;border:1px solid #dce5ef;background:#fff;border-radius:6px;color:#496889;padding:5px 6px;font-size:10px;cursor:pointer;white-space:nowrap;}
body.workbench-page .product-card-actions button:hover {border-color:#9bbce6;color:#235da7;background:#f5f9ff;}
body.workbench-page .product-card-actions button:disabled {cursor:wait;opacity:.55;}
body.workbench-page .query-card-controls label {display:flex;align-items:center;gap:3px;}
body.workbench-page .query-card-controls input {width:auto;accent-color:#527cc2;}
body.workbench-page .query-card-controls button,.query-watch button,.query-result-card button {border:1px solid #dce5ef;background:white;border-radius:6px;color:#496889;padding:4px 6px;font-size:10px;cursor:pointer;}
body.workbench-page [data-query-daily][aria-pressed=true] {color:#217764;background:#eef8f4;border-color:#b6dfcf;}
body.workbench-page .query-watch {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e8edf4;font-size:11px;}
body.workbench-page .query-watch span {min-width:0;overflow-wrap:anywhere;}
body.workbench-page .query-watch small {display:block;color:#7b8ca1;margin-top:4px;}
body.workbench-page .query-result-card {padding:12px 0;border-bottom:1px solid #e5ebf3;font-size:11px;}
body.workbench-page .query-result-card header {display:flex;align-items:flex-start;gap:12px;justify-content:space-between;}
body.workbench-page .query-result-card header strong {font-weight:500;overflow-wrap:anywhere;}
body.workbench-page .query-result-card header span {white-space:nowrap;color:#8b6b32;}
body.workbench-page .query-result-card small {display:block;color:#8190a3;font-size:10px;margin-top:5px;}
body.workbench-page .query-result-card p {line-height:1.7;margin:8px 0;}
#product-query-result {max-height:90vh;overflow:auto;}
#query-result-target {font-size:12px;line-height:1.7;overflow-wrap:anywhere;}
#query-result-error {color:#b33c3c;font-size:12px;}

/* Product shortcuts preserve the distinction between navigation and AI analysis. */
body.workbench-page .product-card-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:var(--panel,#fff);border-color:var(--line);}
body.workbench-page .product-card-actions button {font-size:11px;min-height:32px;white-space:normal;background:var(--page,#fff);color:var(--ink);border-color:var(--line);}
body.workbench-page .product-card-actions button:focus-visible {outline:2px solid var(--blue);outline-offset:2px;}
body.workbench-page #product-action-feedback {position:sticky;top:0;z-index:2;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel,#fff);color:var(--ink);font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
html.electron-dark body.workbench-page .product-card-actions button:hover {background:var(--blue-soft);color:var(--blue);}
