:root {
  --ink: #13243a;
  --muted: #697a8f;
  --line: #dce5ef;
  --paper: #ffffff;
  --wash: #f3f7fb;
  --green: #1266a8;
  --green-dark: #0a3159;
  --gold: #ff6a18;
  --orange: #ff6a18;
  --blue: #1266a8;
  --navy: #071c33;
  --danger: #ad3f36;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, #dcebf8 0, transparent 32rem),
    var(--wash);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.topbar {
  position: relative;
  min-height: 126px;
  padding: 24px clamp(28px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background:
    radial-gradient(circle at 72% -30%, rgba(45,143,218,.42), transparent 34rem),
    linear-gradient(125deg, #06192d, #0a3159 72%, #123f6c);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin-left: clamp(22px, 3vw, 56px);
}
.topbar-brand img {
  width: 112px; height: 88px; flex: 0 0 auto; object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}
.topbar-brand .eyebrow {
  margin: 0;
  font-size: 14px;
  letter-spacing: .08em;
}
.topbar-title {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: clamp(28px, 2.35vw, 40px);
  line-height: 1.1;
  white-space: nowrap;
}
.topbar-actions { position: relative; z-index: 1; }
.console-sidebar {
  position: fixed; z-index: 20; left: 20px; top: 146px; bottom: 20px;
  width: 252px; overflow-y: auto; padding: 18px 16px;
  border: 1px solid rgba(18,102,168,.15); border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(8,46,79,.1);
  backdrop-filter: blur(14px);
}
.sidebar-brand {
  display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 8px;
  min-height: 68px; padding: 0 5px 14px; border-bottom: 1px solid var(--line);
}
.sidebar-brand img { width: 116px; height: 66px; object-fit: contain; }
.sidebar-brand small {
  color: var(--muted); font-size: 11px; line-height: 1.45;
}
.tree-menu details { margin-top: 10px; }
.tree-menu summary {
  padding: 9px 8px; color: #405048; font-size: 13px;
  font-weight: 800; cursor: pointer; user-select: none;
}
.tree-menu a, .tree-menu button {
  display: block; width: 100%; margin: 2px 0; padding: 9px 10px 9px 25px;
  border: 0; border-radius: 8px; color: #53625b;
  background: transparent; font-size: 12px; font-weight: 600;
  text-align: left; text-decoration: none;
}
.tree-menu a:hover, .tree-menu button:hover {
  color: var(--green-dark); background: #edf5f0;
}
.tree-menu a.active {
  color: white;
  background: linear-gradient(110deg, var(--blue), var(--green-dark));
  box-shadow: 0 7px 18px rgba(18,102,168,.24);
}
.panel { scroll-margin-top: 22px; }
.eyebrow { margin: 0 0 8px; letter-spacing: .14em; opacity: .72; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); font-weight: 650; }
.service-state {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-button {
  color: white; border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
}
.topbar-button:hover { color: white; border-color: white; }
.layout {
  width: auto;
  max-width: 1680px;
  margin: 24px 28px 32px 296px;
  display: block;
}
.image-panel { grid-column: 1 / -1; }
.video-panel { grid-column: 1 / -1; }
.project-panel { grid-column: 1 / -1; }
.customer-service-panel { grid-column: 1 / -1; }
.product-panel { grid-column: 1 / -1; }
.project-grid {
  display: grid; grid-template-columns: 1.1fr 1.4fr auto;
  gap: 14px; align-items: end;
}
.project-grid button { margin-bottom: 16px; }
#resumeVideoBtn { align-self: end; margin-bottom: 16px; }
.panel {
  width: 100%;
  margin-bottom: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 2.4vw, 36px);
  box-shadow: 0 18px 45px rgba(22,52,39,.07);
}
.section-title {
  display: grid;
  grid-template-columns: minmax(42px, auto) 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f5;
}
.section-title > span {
  min-width: 42px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #bd4709;
  background: #fff1e8;
  font: 750 12px/1.2 Inter, "Microsoft YaHei", sans-serif;
  text-align: center;
}
h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.3; }
h3 { margin: 20px 0 10px; font-size: 15px; }
.section-title p, .muted, footer { color: var(--muted); }
.section-title p { margin: 0; font-size: 14px; }
label { display: block; margin: 0 0 16px; font-size: 13px; font-weight: 650; }
input, select, textarea {
  width: 100%; margin-top: 7px; border: 1px solid #cfdae6;
  border-radius: 10px; padding: 11px 12px; color: var(--ink);
  background: #fbfdff; font: inherit; outline: none;
}
input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0; accent-color: var(--green);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,102,168,.11);
}
textarea { resize: vertical; line-height: 1.65; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid.four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
button {
  border: 1px solid #bdcbc2; border-radius: 10px; padding: 11px 16px;
  background: white; color: var(--ink); font-weight: 650; cursor: pointer;
}
button:hover { border-color: var(--green); color: var(--green); }
button:disabled { opacity: .5; cursor: wait; }
button.primary {
  width: 100%; border-color: var(--orange); color: white;
  background: linear-gradient(120deg, #ff7a22, #f2520b);
}
button.primary:hover { background: linear-gradient(120deg, #f56214, #d94300); }
button.primary.compact { width: auto; }
.status-row, .actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.status-row { justify-content: space-between; margin-bottom: 12px; }
.badge { padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.neutral { color: #59655f; background: #edf1ee; }
.badge.pending { color: #72561f; background: #fff1cc; }
.badge.blocked { color: #8e2e28; background: #ffe2df; }
.draft { min-height: 360px; background: #fff; font-size: 15px; }
.actions { margin-top: 12px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.list { margin: 0; padding-left: 19px; color: #34413b; font-size: 13px; line-height: 1.6; }
.list li { margin-bottom: 8px; }
.message { min-height: 20px; margin: 10px 0 0; color: var(--danger); font-size: 13px; }
.confirm-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb;
  font-weight: 500; line-height: 1.5;
}
.image-status-row { margin-top: 16px; }
.image-results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; min-height: 170px; margin-top: 14px;
}

.brand-safe-box {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #b9d8e8;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3fbff 0%, #fff9f1 100%);
}

.brand-safe-box .compact-title {
  margin-bottom: 14px;
}

.brand-safe-box h3 {
  margin: 0 0 4px;
  color: #0d4f78;
}
.empty-result {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed #bdcbc2; border-radius: 12px; color: var(--muted);
}
.image-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 14px;
  background: #fff;
}
.image-card img {
  display: block; width: 100%; min-height: 220px; max-height: 600px;
  object-fit: contain; background: #eef3ef;
}
.image-card-body { padding: 12px; }
.image-card-body a {
  display: inline-block; color: var(--green); font-weight: 700;
  text-decoration: none;
}
.image-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hidden { display: none; }
.field-hint {
  display: block; margin-top: 5px; color: var(--muted);
  text-align: left; font-size: 12px; font-weight: 500; line-height: 1.5;
}
.progress-track {
  width: 100%; height: 9px; overflow: hidden; margin: 10px 0 14px;
  border-radius: 999px; background: #e5ece7;
}
.progress-fill {
  width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: width .35s ease;
}
.video-result {
  min-height: 220px; margin-top: 12px; border: 1px dashed #bdcbc2;
  border-radius: 12px; padding: 16px;
}
.video-result video {
  display: block; width: min(100%, 960px); max-height: 70vh;
  margin: 0 auto; border-radius: 10px; background: #111;
}
.video-result .video-actions { margin-top: 12px; text-align: center; }
.video-result .video-actions a {
  color: var(--green); font-weight: 700; text-decoration: none;
}
footer { text-align: center; padding: 4px 20px 30px; font-size: 13px; }
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 50; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8,25,18,.58); backdrop-filter: blur(4px);
}
.dialog-backdrop.hidden { display: none; }
.dialog-card {
  width: min(460px, 100%); padding: 28px; border-radius: 18px;
  background: white; box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.crm-dialog-card {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow-y: auto;
}
.crm-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.crm-timeline article {
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #f4f8f5;
}
.crm-timeline article div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.crm-timeline article span {
  color: #718078;
  font-size: 12px;
}
.crm-timeline article p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,106,24,.18), transparent 30rem),
    linear-gradient(135deg, #06172a, #0b3b69 58%, #e8f0f7 58%);
}
.login-shell {
  width: min(1040px, 100%); display: grid; grid-template-columns: 1.1fr .9fr;
  overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 28px;
  box-shadow: 0 35px 100px rgba(0,0,0,.3);
}
.login-brand {
  min-height: 560px; padding: 58px 64px 62px; display: flex; flex-direction: column;
  justify-content: center; color: white;
  background:
    linear-gradient(180deg, transparent, rgba(4,20,38,.82)),
    radial-gradient(circle at 70% 15%, #1d76b9, transparent 28rem),
    #082947;
}
.login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 42px;
}
.login-logo {
  width: 156px; height: 126px; flex: 0 0 auto;
  object-fit: contain; object-position: center;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.22));
}
.login-brand-lockup span {
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.34);
  color: rgba(255,255,255,.92);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 650;
  letter-spacing: .12em;
  white-space: nowrap;
}
.login-brand h1 {
  max-width: 470px;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.14;
}
.login-brand > p:not(.eyebrow) { margin: 24px 0 0; color: rgba(255,255,255,.72); }
.login-brand-note {
  width: min(420px, 100%); margin-top: 28px; padding: 16px 18px;
  border-left: 2px solid rgba(255,255,255,.55);
  color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7;
}
.login-card { padding: 64px 50px; background: rgba(255,255,255,.98); }
.login-card h2 { margin-bottom: 8px; font-size: 30px; }
.login-kicker { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.login-card form { margin-top: 34px; }
.captcha-row { display: grid; grid-template-columns: 1fr 145px; gap: 10px; }
.captcha-row button { margin-top: 7px; font-size: 16px; letter-spacing: .08em; }
.captcha-row button { height: 48px; padding: 0; overflow: hidden; }
.captcha-row img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) {
  .console-sidebar {
    position: static; width: auto; margin: 18px; max-height: none;
  }
  .tree-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
  .topbar { align-items: flex-start; gap: 20px; flex-direction: column; }
  .topbar-brand img { width: 98px; height: 74px; }
  .layout {
    width: min(100% - 36px, 1440px); margin: 18px auto;
    grid-template-columns: 1fr;
  }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid button { margin: 0 0 16px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 260px; padding: 36px; }
  .login-brand-lockup { margin-bottom: 28px; }
  .login-logo { width: 120px; height: 96px; }
}
@media (max-width: 560px) {
  .tree-menu { grid-template-columns: 1fr; }
  .layout { width: min(100% - 20px, 1440px); margin-top: 10px; }
  .panel { padding: 20px; border-radius: 14px; }
  .grid.two, .grid.four, .review-grid { grid-template-columns: 1fr; gap: 0; }
  .login-brand-lockup { gap: 14px; }
  .login-logo { width: 96px; height: 78px; }
  .login-brand-lockup span {
    padding-left: 14px;
    font-size: 17px;
  }
}
.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid #e3eaf1;
  border-radius: 12px;
  background: white;
}

.handoff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.handoff-table th,
.handoff-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e3eaf1;
  text-align: left;
  vertical-align: top;
}

.handoff-table th {
  color: #40566d;
  background: #f7f9fc;
  font-size: 13px;
}

.handoff-table td {
  font-size: 14px;
}

.state-ai { color: #1f6a4b; font-weight: 700; }
.state-waiting_human { color: #a26400; font-weight: 700; }
.state-human { color: #9d3e23; font-weight: 700; }
.state-ended { color: #718078; font-weight: 700; }

.table-action {
  padding: 7px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.table-actions {
  min-width: 220px;
}

.table-actions .table-action {
  margin: 0 6px 6px 0;
}

.table-select {
  min-width: 130px;
  margin: 0;
  padding: 7px 9px;
}

.product-table {
  min-width: 1220px;
}

.product-table input,
.product-table select {
  min-width: 130px;
  margin: 0;
  padding: 8px 9px;
}

.product-table .product-url {
  min-width: 300px;
}

.product-table .product-active {
  min-width: 18px;
}

.history-card {
  width: min(820px, 100%);
}

.history-messages {
  max-height: 62vh;
  overflow-y: auto;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
}

.history-message {
  max-width: 82%;
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 12px;
  white-space: pre-wrap;
  line-height: 1.55;
  background: white;
}

.history-message.role-customer {
  margin-left: auto;
  background: #dff0e6;
}

.history-message.role-human {
  border-left: 4px solid var(--gold);
}

.history-message.role-assistant {
  border-left: 4px solid var(--green);
}

.history-meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.assistant-create-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.assistant-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 2fr);
  gap: 18px;
  margin-top: 20px;
}

.assistant-workspace aside,
.assistant-detail {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--wash);
}

.assistant-project-item {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  padding: 12px;
  text-align: left;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.assistant-project-item.active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(31, 106, 75, .12);
}

.assistant-project-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.assistant-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
}

.assistant-timeline {
  margin-top: 18px;
  max-height: 520px;
  overflow-y: auto;
}

.assistant-entry {
  margin-bottom: 12px;
  padding: 14px;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: white;
}

.assistant-entry[data-type="任务"] { border-left-color: var(--gold); }
.assistant-entry[data-type="AI分析"] { border-left-color: #5978b8; }
.assistant-entry p { white-space: pre-wrap; line-height: 1.6; }

.dashboard-panel {
  background:
    radial-gradient(circle at 90% 0%, rgba(23, 116, 173, .11), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}
.dashboard-heading,
.dashboard-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.dashboard-heading { margin-bottom: 18px; }
.dashboard-heading p { margin: 0 0 5px; }
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}
.dashboard-kpis article {
  min-width: 0;
  padding: 17px;
  border: 1px solid #d7e4ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(16, 64, 96, .05);
}
.dashboard-kpis span, .dashboard-kpis small {
  display: block;
  color: var(--muted);
}
.dashboard-kpis strong {
  display: block;
  margin: 5px 0 3px;
  color: #0a5887;
  font-size: clamp(25px, 2.2vw, 34px);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.dashboard-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dbe6ed;
  border-radius: 16px;
  background: #fff;
}
.dashboard-card-title span {
  color: #d26721;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.dashboard-card-title h3 { margin: 4px 0 15px; }
.dashboard-card-title a {
  flex: 0 0 auto;
  color: #0b689f;
  font-weight: 700;
  text-decoration: none;
}
.dashboard-funnel { display: grid; gap: 9px; }
.dashboard-funnel-row {
  display: grid;
  grid-template-columns: 88px 1fr 36px;
  align-items: center;
  gap: 10px;
}
.dashboard-funnel-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e9f0f5;
}
.dashboard-funnel-bar {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c6fa8, #37a4c9);
}
.dashboard-actions { display: grid; gap: 9px; }
.dashboard-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8fb;
}
.dashboard-action b { color: #b65418; }
.dashboard-action small { color: var(--muted); }
.dashboard-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dashboard-mini-metrics div {
  padding: 13px;
  border-radius: 11px;
  background: #f4f8fb;
}
.dashboard-mini-metrics span,
.dashboard-mini-metrics small { display: block; color: var(--muted); }
.dashboard-mini-metrics strong {
  display: block;
  margin: 3px 0;
  color: #0a5887;
  font-size: 23px;
}
.dashboard-knowledge {
  padding: 15px;
  border-radius: 12px;
  background: #fff8f1;
}
.dashboard-knowledge strong { color: #c85c17; font-size: 25px; }
.dashboard-knowledge ul { margin: 10px 0 0; padding-left: 20px; }

.publishing-workflow {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin: 8px 0 20px;
}
.workflow-steps a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  min-height: 58px;
  background: #f8fafc;
  text-decoration: none;
  font-weight: 700;
}
.workflow-steps b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
}
.workbench-kpis,
.result-totals {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 12px;
}
.workbench-kpis article,
.result-totals article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.workbench-kpis span,
.result-totals span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.workbench-kpis strong,
.result-totals strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 24px;
}
.workbench-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  margin-top: 20px;
}
.subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.subsection-heading h3 { margin: 0; }
.today-task-list {
  display: grid;
  gap: 8px;
  min-height: 100px;
}
.today-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.today-task span:last-child { text-align: right; }
.today-task small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}
.today-task em {
  color: var(--green);
  font-style: normal;
}
.channel-results {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.channel-results div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.channel-results span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.campaign-result {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.material-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.material-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
}

.material-card h4 { margin: 8px 0; }
.material-card p { min-height: 44px; white-space: pre-wrap; }

.material-select {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 700;
}

.material-select input { width: auto; }

.material-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.bundle-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.bundle-channels label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bundle-channels input { width: auto; }

.bundle-result {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.bundle-summary,
.bundle-variant {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
}

.bundle-variant {
  border-left: 4px solid var(--green);
}

.bundle-variant textarea {
  width: 100%;
  min-height: 190px;
  background: white;
  line-height: 1.7;
}

.bundle-variant details {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: white;
}

.bundle-variant summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
}

.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.campaign-summary,
.campaign-week {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
}

.campaign-summary h3,
.campaign-week h3 { margin-top: 0; }

.campaign-task {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: white;
}

.campaign-task h4 {
  margin: 8px 0;
  font-size: 16px;
}

.campaign-task p {
  white-space: pre-wrap;
  line-height: 1.65;
}

.campaign-task details {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--wash);
}

.campaign-task summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 900px) {
  .topbar-brand { margin-left: 0; }
  .topbar {
    gap: 16px;
    flex-wrap: wrap;
  }
  .topbar-title {
    position: static;
    order: 3;
    width: 100%;
    transform: none;
    font-size: clamp(24px, 7vw, 32px);
    white-space: normal;
  }
  .assistant-create-grid,
  .assistant-workspace,
  .assistant-entry-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workbench-kpis, .result-totals { grid-template-columns: repeat(2, 1fr); }
  .workbench-grid { grid-template-columns: 1fr; }
  .dashboard-kpis { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1450px) and (min-width: 1101px) {
  .workflow-steps { grid-template-columns: repeat(3, 1fr); }
  .workbench-kpis, .result-totals {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
  .workbench-grid { grid-template-columns: 1fr; }
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}


/* reference v2 */

.image-reference-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.reference-delete-btn {
  margin-top: 5px;
  cursor: pointer;
}

