:root {
  --bg: #f6f8fb;
  --bg-2: #eef7f7;
  --surface: #ffffff;
  --surface-2: #f2f6fa;
  --surface-3: #eaf3f4;
  --surface-hover: #f7fbfc;
  --surface-shell: #fbfcfd;
  --surface-active: #e7f3f4;
  --surface-active-2: #e9f6f7;
  --surface-subtle: #f9fbfd;
  --surface-topic: #eaf6f7;
  --surface-topic-hover: #dff1f3;
  --ink: #172033;
  --muted: #667085;
  --line: #d8e1ea;
  --line-strong: #9bcbd2;
  --teal: #147d8f;
  --teal-dark: #0f5f6c;
  --accent: #2f9e73;
  --red: #c2413a;
  --amber: #b7791f;
  --violet: #6254c8;
  --pink: #b84f82;
  --green-soft: #eaf8f1;
  --amber-soft: #fff6df;
  --yellow-soft: #fff6df;
  --red-soft: #fff1ee;
  --blue-soft: #edf5ff;
  --shadow: 0 18px 42px rgba(34, 54, 74, 0.1);
  --shadow-soft: 0 10px 24px rgba(20, 125, 143, 0.12);
  --radius: 8px;
  --mono: "SFMono-Regular", Consolas, monospace;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(234, 243, 244, 0.86), transparent 280px),
    var(--bg);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(20, 125, 143, 0.22);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 125, 143, 0.18);
}

.primary:hover {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(320px, 430px);
  gap: 22px;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(20, 125, 143, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(47, 158, 115, 0.1), transparent 34%),
    var(--bg);
}

.login-helper {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.login-helper > div:first-child strong {
  color: var(--ink);
  font-size: 20px;
}

.login-helper p {
  margin: 6px 0 0;
  color: var(--muted);
}

.login-account-list {
  display: grid;
  gap: 10px;
}

.login-account-list button {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: auto;
  padding: 12px;
  text-align: left;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.login-account-list button:hover {
  border-color: var(--teal);
  background: #f3fbfa;
}

.login-account-list span,
.login-sms-hint span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.login-account-list strong,
.login-sms-hint strong {
  color: var(--ink);
  font-size: 15px;
}

.login-account-list small,
.login-sms-hint small {
  color: var(--muted);
  font-size: 12px;
}

.login-sms-hint {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.login-plan-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 800;
  background: #fff;
}

.login-plan-link:hover {
  border-color: var(--teal);
  background: #f3fbfa;
}

.login-panel {
  display: grid;
  gap: 18px;
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-panel h1,
.topbar h1 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.login-panel p,
.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.login-footer {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: center;
  color: #607483;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  text-align: center;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.login-tabs button {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.login-tabs button.active {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: 0 4px 12px rgba(34, 54, 74, 0.08);
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ffd3cb;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
}

.app-shell {
  display: grid;
  grid-template-rows: 96px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  margin: 14px 18px 0;
  padding: 14px 18px;
  border: 1px solid #d5edf2;
  border-radius: 24px;
  background:
    radial-gradient(circle at 7% 14%, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(47, 158, 115, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 254, 255, 0.9) 52%, rgba(250, 252, 253, 0.96));
  box-shadow: 0 18px 44px rgba(15, 56, 72, 0.1);
  backdrop-filter: blur(16px);
}

.topbar-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.topbar-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(20, 125, 143, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(20, 125, 143, 0.16);
  overflow: hidden;
}

.topbar-mark img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.topbar-copy {
  min-width: 0;
}

.topbar-copy h1 {
  overflow: hidden;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-copy > p:not(.topbar-kicker) {
  overflow: hidden;
  max-width: min(760px, 62vw);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-kicker {
  margin: 0 0 5px;
  color: #0f7b8d;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.topbar-logout {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 15px;
  border-color: rgba(20, 125, 143, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  color: #405467;
  box-shadow: 0 10px 22px rgba(15, 56, 72, 0.08);
}

.topbar-logout:hover {
  border-color: rgba(20, 125, 143, 0.36);
  background: #ecfeff;
  color: var(--teal-dark);
  box-shadow: 0 14px 28px rgba(20, 125, 143, 0.15);
}

.layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding: 18px 16px;
  border-right: 1px solid #dbeff4;
  background:
    radial-gradient(circle at 18% 4%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(180deg, #f7feff 0%, #f8fbfc 42%, #f3f8fb 100%);
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
}

.account-card,
.panel,
.table-panel,
.metric-card,
.profile-card,
.completion,
.calendar,
.filter-bar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(34, 54, 74, 0.04);
}

.account-card {
  display: grid;
  gap: 7px;
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-color: #c7eef5;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.25), transparent 36%),
    linear-gradient(135deg, rgba(8, 145, 178, 0.11), rgba(34, 197, 94, 0.08)),
    var(--surface);
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.10);
}

.account-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 96px;
  height: 96px;
  border: 18px solid rgba(8, 145, 178, 0.08);
  border-radius: 999px;
  pointer-events: none;
}

.account-card b {
  display: inline-grid;
  width: max-content;
  min-height: 30px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #0891b2;
  font-size: 16px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.10);
}

.account-card strong {
  position: relative;
  z-index: 1;
  color: #12313f;
  font-size: 18px;
  line-height: 1.28;
}

.account-card span {
  position: relative;
  z-index: 1;
  color: #526778;
  font-size: 13px;
}

.account-card small {
  position: relative;
  z-index: 1;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #0891b2;
  font-size: 12px;
  font-weight: 850;
}

.customer-switcher {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

.customer-switcher span {
  color: #526778;
  font-size: 12px;
  font-weight: 850;
}

.customer-switcher select {
  min-height: 38px;
  border: 1px solid #d7eef3;
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.90);
  color: #12313f;
  font-weight: 750;
}

.nav-tree {
  display: grid;
  min-height: 0;
  gap: 8px;
  align-content: start;
  padding: 8px;
  border: 1px solid #e1eef4;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-tree::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.nav-group,
.nav-children {
  display: grid;
  gap: 6px;
}

.nav-parent,
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #415366;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover,
.nav-parent:hover {
  border-color: #d7eef3;
  background: #ffffff;
  color: #0891b2;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.08);
}

.nav-parent.active {
  border-color: rgba(8, 145, 178, 0.20);
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  color: #12313f;
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.10);
}

.nav-parent {
  font-weight: 900;
}

.nav-parent span,
.nav-link span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  line-height: 1.2;
}

.nav-link span {
  font-weight: 800;
}

.nav-children {
  display: none;
  position: relative;
  margin: 3px 0 3px 18px;
  padding-left: 12px;
}

.nav-children::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.10), rgba(34, 197, 94, 0.18));
}

.nav-group.open .nav-children {
  display: grid;
}

.nav-link.child {
  min-height: 38px;
  padding-left: 9px;
  border-radius: 12px;
  color: #5a6d7d;
  font-size: 13px;
}

.nav-link.active {
  border-color: rgba(8, 145, 178, 0.28);
  background: linear-gradient(135deg, #ecfeff, #ffffff);
  color: #0891b2;
  box-shadow: inset 3px 0 0 #0891b2, 0 12px 24px rgba(8, 145, 178, 0.10);
}

.nav-ico {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #d7eef3;
  border-radius: 11px;
  background: #ffffff;
  color: #0891b2;
  box-shadow: 0 6px 14px rgba(8, 145, 178, 0.08);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-ico .icon {
  width: 16px;
  height: 16px;
}

.nav-link.active .nav-ico,
.nav-parent.active .nav-ico {
  border-color: #0891b2;
  background: #0891b2;
  color: #ffffff;
}

.chevron {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #eef8fa;
  color: #64748b;
  font-family: var(--mono);
  font-style: normal;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-parent.active .chevron {
  background: #d8f4f8;
  color: #0891b2;
}

.nav-group.open .chevron {
  transform: rotate(90deg);
}

.nav-dot {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 18px;
  box-shadow: 0 5px 12px rgba(239, 68, 68, 0.22);
}

.content {
  min-height: 0;
  padding: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.cockpit-dashboard {
  grid-template-columns: 1fr;
  gap: 16px;
}

.cockpit-metric span,
.cockpit-metric small,
.cockpit-task-card small,
.cockpit-flow-item small {
  color: var(--muted);
}

.cockpit-metric:hover,
.cockpit-task-card:hover,
.cockpit-flow-item:hover,
.cockpit-shortcuts button:hover {
  border-color: rgba(8, 145, 178, 0.32);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.12);
}

.cockpit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cockpit-dashboard-operator .cockpit-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cockpit-metric {
  position: relative;
  display: grid;
  min-height: 136px;
  align-content: start;
  gap: 8px;
  padding: 17px;
  border: 1px solid #deedf4;
  border-radius: 22px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 56, 72, 0.07);
  overflow: hidden;
}

.cockpit-dashboard-operator .cockpit-metric {
  min-height: 126px;
  padding: 15px;
}

.cockpit-metric::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -28px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 66%);
}

.cockpit-metric strong {
  color: #12313f;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cockpit-dashboard-operator .cockpit-metric strong {
  font-size: 29px;
}

.cockpit-metric em {
  width: fit-content;
  margin-top: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f7b8d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.cockpit-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
}

.cockpit-panel {
  border: 1px solid #deedf4;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 56, 72, 0.07);
}

.cockpit-tasks-panel {
  grid-row: span 2;
}

.cockpit-task-list,
.cockpit-flow-list,
.cockpit-shortcuts {
  display: grid;
  gap: 10px;
}

.cockpit-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 13px 14px;
  border-color: #e1eef4;
  border-radius: 16px;
  background: #fbfdff;
  text-align: left;
  box-shadow: none;
}

.cockpit-task-card strong,
.cockpit-flow-item strong,
.cockpit-shortcuts strong {
  display: block;
  color: #172033;
  line-height: 1.35;
}

.cockpit-task-card small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cockpit-task-card em {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff6df;
  color: #9a5b00;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.cockpit-flow-item {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 11px 12px;
  border-color: #e1eef4;
  border-radius: 16px;
  background: #fbfdff;
  text-align: left;
  box-shadow: none;
}

.cockpit-flow-item i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #e7f2f6;
  overflow: hidden;
}

.cockpit-flow-item b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e40af, #22d3ee 58%, #22c55e);
}

.cockpit-flow-item em {
  color: #0f7b8d;
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.cockpit-shortcuts button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  justify-content: stretch;
  min-height: 60px;
  padding: 12px;
  border-color: #e1eef4;
  border-radius: 16px;
  background: #fbfdff;
  text-align: left;
  box-shadow: none;
}

.cockpit-shortcuts .icon {
  width: 18px;
  height: 18px;
  align-self: center;
  justify-self: center;
  color: #0f7b8d;
}

.cockpit-shortcuts small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.cockpit-empty {
  padding: 18px;
  border: 1px dashed #cfe3eb;
  border-radius: 16px;
  background: #f8fcfd;
  color: var(--muted);
  line-height: 1.7;
}

.metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  display: grid;
  justify-content: stretch;
  align-content: start;
  min-height: 112px;
  padding: 18px;
  background: var(--surface);
  text-align: left;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 9px 0;
  font-size: 34px;
  color: var(--ink);
}

.dashboard-drill {
  cursor: pointer;
}

.dashboard-drill:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--ink);
}

.panel,
.table-panel {
  padding: 18px;
}

.table-panel {
  overflow-x: auto;
}

.panel.wide {
  min-height: 250px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
}

.progress-list,
.task-list,
.quick-list {
  display: grid;
  gap: 10px;
}

.progress-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  box-shadow: none;
}

.progress-row:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.progress-row i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
}

.task-list button,
.quick-list button {
  align-items: center;
  padding: 10px 12px;
  text-align: left;
}

.task-list button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quick-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: stretch;
  gap: 10px;
}

.quick-list button small,
.task-list button small {
  color: var(--muted);
  font-size: 12px;
}

.task-list button:hover,
.quick-list button:hover {
  background: var(--surface-hover);
}

.brand-profile {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.completion {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-color: #d5edf2;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at 86% 3%, rgba(245, 158, 11, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4fdff 100%);
  box-shadow: 0 18px 42px rgba(15, 56, 72, 0.09);
}

.completion-head {
  display: grid;
  gap: 6px;
}

.completion-head span {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 999px;
  background: rgba(236, 254, 255, 0.86);
  color: #0f7b8d;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.completion-head strong {
  color: #102033;
  font-size: 22px;
  line-height: 1.25;
}

.ring {
  display: grid;
  width: 168px;
  height: 168px;
  justify-self: center;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(#1e40af 0 var(--progress, 0%), #e6eef5 var(--progress, 0%) 100%);
  text-align: center;
  position: relative;
  isolation: isolate;
  box-shadow: 0 16px 32px rgba(30, 64, 175, 0.12);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--surface);
  z-index: -1;
}

.ring-content {
  display: grid;
  place-items: center;
  gap: 4px;
  line-height: 1;
  transform: translateY(1px);
}

.ring-content strong {
  display: block;
  color: #102033;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.ring-content span,
.completion p {
  color: var(--muted);
}

.completion p {
  margin: 0;
  padding: 12px;
  border: 1px solid #deedf4;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.profile-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-status-list span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #deedf4;
  border-radius: 16px;
  background: #ffffff;
}

.profile-status-list strong {
  color: #12313f;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
}

.profile-status-list small,
.profile-missing-box span {
  color: var(--muted);
  line-height: 1.55;
}

.profile-missing-box {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  background: #fffaf0;
}

.profile-missing-box strong {
  color: #7a4a00;
}

.profile-sections {
  display: grid;
  gap: 14px;
}

.profile-sections-form {
  display: grid;
  gap: 14px;
}

.profile-card {
  padding: 16px;
  border-color: #deedf4;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 56, 72, 0.07);
}

.profile-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.profile-card-head > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #1e40af;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.profile-card-head div {
  display: grid;
  gap: 3px;
}

.profile-card-head strong {
  color: #102033;
  font-size: 17px;
}

.profile-card-head small {
  color: var(--muted);
  line-height: 1.55;
}

.profile-card-head em {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5ff;
  color: #1e40af;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-fields .field.wide {
  grid-column: 1 / -1;
}

.profile-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 14px;
  z-index: 5;
  padding: 12px;
  border: 1px solid #deedf4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 56, 72, 0.10);
  backdrop-filter: blur(12px);
}

.profile-save-bar > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-save-bar .primary {
  min-width: 160px;
  border-color: #1e40af;
  background: #1e40af;
  color: #ffffff;
}

.profile-save-bar .primary span {
  color: inherit;
}

.brand-profile .field {
  gap: 8px;
}

.brand-profile .field span {
  color: #375569;
  font-size: 12px;
  font-weight: 900;
}

.brand-profile .field textarea {
  min-height: 88px;
  border-color: #d9e8f0;
  border-radius: 15px;
  padding: 11px 12px;
  background: #fbfdff;
  line-height: 1.65;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.brand-profile .field.wide textarea {
  min-height: 108px;
}

.brand-profile .field textarea:focus-visible {
  border-color: #3b82f6;
  background: #ffffff;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  color: #536174;
  font-size: 12px;
  font-weight: 750;
}

.required-badge {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.field.required input,
.field.required select,
.field.required textarea {
  border-color: rgba(203, 69, 68, 0.34);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--surface);
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa7b5;
}

.secret-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.secret-input input {
  min-width: 0;
}

.secret-toggle {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.secret-toggle:hover {
  border-color: var(--brand);
  background: #eef8f8;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.credential-fields {
  display: grid;
  gap: 12px;
}

.credential-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.credential-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.credential-summary span,
.credential-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.credential-summary a {
  color: var(--teal-dark);
  overflow-wrap: anywhere;
  font-weight: 800;
}

.auth-link-button {
  justify-self: start;
}

.xhs-login-panel {
  display: grid;
  gap: 14px;
}

.xhs-login-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #f2c37d;
  border-radius: var(--radius);
  background: #fff7e8;
  color: #8a4f08;
}

.xhs-login-status.saved {
  border-color: #8fd2b5;
  background: #ecfdf5;
  color: #11613d;
}

.xhs-login-status strong,
.xhs-login-status small {
  font-size: 13px;
}

.xhs-login-screenshot {
  overflow: auto;
  max-height: 54vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f8fb;
}

.xhs-login-screenshot img {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

.xhs-login-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.xhs-login-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: var(--surface-2);
}

.xhs-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field.compact input,
.field.compact select {
  min-height: 36px;
}

.calendar {
  padding: 14px;
}

.publish-center {
  display: grid;
  gap: 14px;
}

.publish-center .calendar-toolbar > div {
  display: grid;
  gap: 4px;
}

.publish-center .calendar-toolbar span,
.muted-copy {
  color: var(--muted);
}

.publish-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.publish-summary-card {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.publish-summary-card span,
.publish-summary-card small {
  color: var(--muted);
}

.publish-summary-card strong {
  font-size: 24px;
}

.publish-summary-card.blue {
  border-color: #bfd7f0;
  background: var(--blue-soft);
}

.publish-summary-card.green {
  border-color: #b7dec9;
  background: var(--green-soft);
}

.publish-summary-card.amber {
  border-color: #ead49d;
  background: var(--yellow-soft);
}

.publish-summary-card.red {
  border-color: #f2d0c9;
  background: var(--red-soft);
}

.knowledge-admin-page {
  display: grid;
  gap: 14px;
}

.knowledge-admin-page .filter-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  border-color: #cdddea;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.96)),
    var(--surface);
  box-shadow: 0 10px 28px rgba(34, 54, 74, 0.08);
  backdrop-filter: blur(10px);
}

.knowledge-admin-page .filter-bar .primary {
  min-width: 116px;
  background: linear-gradient(135deg, #147d8f, #2563eb);
  border-color: transparent;
}

.knowledge-admin-page .publish-summary {
  gap: 12px;
}

.knowledge-admin-page .publish-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 106px;
  padding: 15px 16px;
  border-color: #d7e1ec;
  box-shadow: 0 10px 22px rgba(34, 54, 74, 0.07);
}

.knowledge-admin-page .publish-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #2563eb;
}

.knowledge-admin-page .publish-summary-card.blue::before {
  background: #2563eb;
}

.knowledge-admin-page .publish-summary-card.green::before {
  background: #2f9e73;
}

.knowledge-admin-page .publish-summary-card.amber::before {
  background: #d18a13;
}

.knowledge-admin-page .publish-summary-card.red::before {
  background: #c2413a;
}

.knowledge-admin-page .publish-summary-card span {
  color: #536174;
  font-size: 12px;
  font-weight: 850;
}

.knowledge-admin-page .publish-summary-card strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.knowledge-admin-page .publish-summary-card small {
  line-height: 1.45;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.knowledge-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(34, 54, 74, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.knowledge-card:hover {
  border-color: #a7c8d1;
  box-shadow: 0 18px 36px rgba(34, 54, 74, 0.12);
  transform: translateY(-2px);
}

.knowledge-card.risk {
  border-color: #efc7bd;
  background:
    linear-gradient(180deg, rgba(255, 241, 238, 0.78), rgba(255, 255, 255, 0) 150px),
    var(--surface);
}

.knowledge-card.ok {
  border-color: #b7dec9;
  background:
    linear-gradient(180deg, rgba(234, 248, 241, 0.84), rgba(255, 255, 255, 0) 150px),
    var(--surface);
}

.knowledge-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.knowledge-card-head div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.knowledge-card-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-card-head span {
  justify-self: start;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #efc7bd;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-card.ok .knowledge-card-head span {
  border-color: #b7dec9;
  background: var(--green-soft);
  color: #176b4c;
}

.knowledge-card-head b {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4c2b9;
  border-radius: 50%;
  background: #fff7f4;
  color: var(--red);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 850;
  box-shadow: inset 0 0 0 6px rgba(194, 65, 58, 0.08);
}

.knowledge-card.ok .knowledge-card-head b {
  border-color: #aad8c1;
  background: #f2fbf6;
  color: #176b4c;
  box-shadow: inset 0 0 0 6px rgba(47, 158, 115, 0.1);
}

.knowledge-count-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.knowledge-count-button {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 11px;
  cursor: pointer;
  text-align: left;
}

.knowledge-count-button span {
  color: #5f6c7d;
  font-size: 12px;
  font-weight: 850;
}

.knowledge-count-button strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1;
}

.knowledge-count-button.operator {
  border-color: #b9d3e8;
  background: #f3f8fd;
}

.knowledge-count-button.user {
  border-color: #b7dec9;
  background: #f2fbf6;
}

.knowledge-count-button:hover {
  transform: translateY(-1px);
}

.knowledge-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.knowledge-card dl div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e1e9f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.knowledge-card dt {
  margin-bottom: 4px;
  color: #6b7787;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-card dd {
  margin: 0;
  color: #243044;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.knowledge-card p {
  margin: 0;
  padding: 10px 11px;
  border-left: 3px solid #a7c8d1;
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.9);
  color: #536174;
  line-height: 1.6;
}

.knowledge-card .row-actions {
  padding-top: 2px;
  border-top: 1px solid #e8eef4;
}

.knowledge-card .row-actions button {
  min-height: 34px;
  border-color: #cfdbe7;
  background: #fbfdff;
  color: #344054;
}

.knowledge-card .row-actions button:hover {
  border-color: #9bcbd2;
  background: #edf7f8;
  color: var(--teal-dark);
}

.knowledge-card .row-actions button:first-child {
  border-color: rgba(20, 125, 143, 0.28);
  background: #edf7f8;
  color: var(--teal-dark);
}

.knowledge-detail .adapter-payload {
  margin-top: 8px;
}

.knowledge-detail .variant-list article {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.knowledge-detail .variant-list article strong,
.knowledge-detail .variant-list article span,
.knowledge-detail .variant-list article small {
  display: block;
}

.knowledge-detail .variant-list article span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.knowledge-detail .variant-list article small {
  margin-top: 6px;
  color: #536174;
  line-height: 1.5;
}

.risk-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.risk-card {
  display: grid;
  justify-content: stretch;
  min-height: 72px;
  padding: 12px;
  border-color: #f2d0c9;
  background: var(--red-soft);
  text-align: left;
}

.risk-card span {
  color: var(--red);
}

.publish-calendar {
  overflow-x: auto;
}

.publish-calendar .weekdays,
.publish-calendar .calendar-grid {
  grid-template-columns: repeat(7, minmax(240px, 1fr));
}

.publish-calendar .calendar-grid {
  align-items: stretch;
  overflow-x: visible;
}

.publish-calendar .publish-day {
  display: grid;
  grid-template-rows: 22px 106px 34px;
  min-height: 222px;
  max-height: 222px;
  overflow: hidden;
  gap: 12px;
  padding: 12px;
}

.publish-calendar .publish-day:not(.has-more) {
  grid-template-rows: 22px minmax(0, 1fr);
}

.publish-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}

.publish-day-head strong {
  color: var(--text);
  font-size: 15px;
}

.publish-day-head span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #2b5f78;
  background: #dff0f6;
  font-size: 11px;
  font-weight: 900;
}

.publish-day-items {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 106px;
  min-height: 0;
  overflow: hidden;
}

.publish-task-card {
  border-color: #bfd7f0;
  background: var(--blue-soft);
}

.publish-task-card.compact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  max-height: 48px;
  margin-top: 0;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 12px;
  text-align: left;
}

.publish-compact-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 26px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: #234257;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.publish-compact-main {
  display: grid;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}

.publish-compact-title {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-compact-main i {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-compact-status {
  justify-self: end;
  width: 56px;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #355263;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-task-card.wait {
  border-color: #ead49d;
  background: var(--yellow-soft);
}

.publish-task-card.risk {
  border-color: #f2d0c9;
  background: var(--red-soft);
}

.publish-task-card.ok {
  border-color: #b7dec9;
  background: var(--green-soft);
}

.publish-task-card em {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.publish-day-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-top: 0;
  padding: 6px 10px;
  border: 1px dashed #9dc7d4;
  border-radius: 12px;
  color: #1f6377;
  background: #eff8fb;
  text-align: left;
}

.publish-day-more span {
  font-size: 12px;
  font-weight: 900;
}

.publish-day-more small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.publish-day-empty {
  margin-top: auto;
  padding-bottom: 6px;
}

.publish-day-detail {
  display: grid;
  gap: 14px;
}

.publish-day-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #edf7fb, #fff8e4);
}

.publish-day-detail-head div {
  display: grid;
  gap: 4px;
}

.publish-day-detail-head span,
.publish-day-detail-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.publish-day-detail-head strong {
  font-size: 22px;
}

.publish-day-detail-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.publish-day-detail-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #bfd7f0;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.publish-day-detail-card.wait {
  border-color: #ead49d;
  background: var(--yellow-soft);
}

.publish-day-detail-card.risk {
  border-color: #f2d0c9;
  background: var(--red-soft);
}

.publish-day-detail-card.ok {
  border-color: #b7dec9;
  background: var(--green-soft);
}

.publish-day-detail-time {
  display: grid;
  gap: 4px;
}

.publish-day-detail-time strong {
  font-size: 15px;
}

.publish-day-detail-time span,
.publish-day-detail-main p,
.publish-day-detail-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.publish-day-detail-main {
  min-width: 0;
}

.publish-day-detail-main h3,
.publish-day-detail-main p,
.publish-day-detail-main small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-day-detail-main h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.publish-list-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 38px;
}

.publish-list-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.modal-section {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.modal-section h3 {
  margin: 0 0 6px;
}

.unified-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.unified-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 16%, rgba(59, 130, 246, 0.16), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef7ff 50%, #f8fbfc 100%);
  box-shadow: 0 14px 32px rgba(30, 64, 175, 0.08);
}

.unified-detail-hero-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.12);
}

.unified-detail-hero-main {
  min-width: 0;
}

.unified-detail-hero-main span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.unified-detail-hero-main h3 {
  margin: 4px 0;
  color: #102033;
  font-size: 21px;
  line-height: 1.25;
}

.unified-detail-hero-main p {
  margin: 0;
  color: #5b6b80;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.unified-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.unified-detail-metrics article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1eaf2;
  border-radius: 14px;
  background: #ffffff;
}

.unified-detail-metrics span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.unified-detail-metrics strong {
  min-width: 0;
  color: #172033;
  font-size: 18px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-detail-metrics small {
  color: #667789;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.unified-detail-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1eaf2;
  border-radius: 16px;
  background: #f8fbfc;
}

.unified-detail-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.unified-detail-section-head h3 {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.unified-detail-section-head span {
  min-width: 0;
  color: #667789;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-align: right;
}

.unified-detail .modal-section {
  margin-bottom: 0;
  border-color: #e1eaf2;
  border-radius: 16px;
  background: #f8fbfc;
}

.unified-detail .variant-list {
  margin-bottom: 0;
}

.unified-detail .variant-card,
.unified-detail .variant-list article,
.unified-detail .audit-summary-grid div,
.unified-detail .audit-related-list article {
  border-color: #e4edf4;
  border-radius: 12px;
  background: #ffffff;
}

.variant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.variant-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.topic-content-studio {
  display: grid;
  grid-template-columns: 250px minmax(360px, 460px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.topic-studio-brief {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #cfe7ef;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(33, 150, 161, 0.16), transparent 34%),
    linear-gradient(135deg, #f1fbf9 0%, #f7fbff 55%, #fff8eb 100%);
}

.topic-studio-brief h3,
.topic-studio-preview-head h3,
.topic-studio-card h3,
.topic-studio-chatbox h3 {
  margin: 0;
}

.topic-studio-brief p,
.topic-studio-chatbox p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.topic-studio-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(33, 150, 161, 0.12);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.topic-studio-status {
  display: grid;
  min-width: 118px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(33, 150, 161, 0.16);
  text-align: right;
}

.topic-studio-status span,
.topic-studio-preview-head small {
  color: var(--muted);
  font-size: 12px;
}

.topic-studio-status strong {
  color: var(--text);
}

.topic-studio-context,
.topic-studio-compose,
.topic-studio-preview {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.topic-studio-card,
.topic-studio-form,
.topic-studio-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 44, 71, 0.08);
}

.topic-studio-meta {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.topic-studio-meta span {
  color: var(--muted);
  font-size: 12px;
}

.topic-studio-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.topic-studio-form {
  display: grid;
  gap: 14px;
}

.topic-studio-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic-studio-form-grid .field {
  min-width: 0;
}

.topic-studio-form-grid .field[data-field-key="assetRequirement"] {
  grid-column: 1;
}

.topic-studio-form-grid .field[data-field-key="knowledgeReferenceMode"] {
  grid-column: 2;
}

.topic-reference-multiselect {
  display: grid;
  gap: 10px;
}

.topic-reference-head {
  display: grid;
  gap: 4px;
}

.topic-reference-head span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.topic-reference-head small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.el-multi-select {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.el-multi-select-trigger {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  background: #fff;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  text-align: left;
}

.el-multi-select.open .el-multi-select-trigger {
  border-bottom: 1px solid var(--line);
}

.el-multi-select-trigger span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f7f4;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.el-multi-select-trigger em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.el-multi-select-trigger b {
  margin-left: auto;
  color: var(--teal);
  font-size: 12px;
}

.el-multi-select-panel {
  display: none;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  background: #fff;
}

.el-multi-select.open .el-multi-select-panel {
  display: grid;
}

.el-multi-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.el-multi-option:hover,
.el-multi-option.selected {
  background: #f2fbf8;
}

.el-multi-option input {
  margin-top: 2px;
  accent-color: var(--teal);
}

.el-multi-option strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.el-multi-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.topic-reference-empty {
  min-height: 120px;
}

.topic-studio-chatbox {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(33, 150, 161, 0.38);
  border-radius: 16px;
  background: #f7fcfb;
}

.topic-studio-form textarea[name="instruction"] {
  min-height: 180px;
}

.topic-studio-submit {
  width: 100%;
  justify-content: center;
}

.topic-studio-preview {
  align-self: stretch;
}

.topic-studio-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.topic-studio-preview .platform-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.topic-studio-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
}

.topic-studio-result-actions {
  justify-content: flex-end;
}

.variant-card p {
  margin: 8px 0;
}

.variant-card small {
  color: var(--muted);
}

.delivery-detail {
  display: grid;
  gap: 12px;
}

.delivery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(231, 111, 81, 0.08), rgba(42, 157, 143, 0.08)), var(--surface);
}

.delivery-hero span,
.delivery-summary-grid span,
.delivery-feed-list small,
.delivery-evidence-list small {
  color: var(--muted);
  font-weight: 800;
}

.delivery-hero h3 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.delivery-hero p {
  margin: 0;
  line-height: 1.65;
}

.delivery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.delivery-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--teal);
  background: var(--surface);
  font-weight: 900;
  text-decoration: none;
}

.delivery-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ai-trace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.ai-trace-grid article,
.delivery-summary-grid article,
.delivery-feed-list article,
.delivery-evidence-list article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ai-trace-grid strong,
.delivery-summary-grid strong {
  font-size: 22px;
}

.ai-trace-grid span,
.ai-trace-grid small,
.delivery-summary-grid small,
.delivery-feed-list p,
.delivery-evidence-list p {
  margin: 0;
  overflow-wrap: anywhere;
}

.ai-trace-grid span,
.ai-trace-grid small {
  color: var(--muted);
  font-weight: 800;
}

.delivery-feed-list,
.delivery-evidence-list {
  display: grid;
  gap: 10px;
}

.delivery-feed-list article > div,
.delivery-evidence-list article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.delivery-feed-list a,
.delivery-evidence-list a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.platform-adapter-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.adapter-main-preview,
.adapter-side-panel {
  min-width: 0;
}

.adapter-side-panel {
  display: grid;
  gap: 12px;
}

.adapter-rule-card strong,
.adapter-rule-card p {
  display: block;
  margin: 0 0 10px;
}

.adapter-rule-card dl {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px 10px;
}

.adapter-rule-card dt,
.adapter-rule-card dd,
.adapter-payload strong,
.adapter-payload span {
  margin: 0;
}

.adapter-rule-card dt,
.adapter-payload strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.adapter-checklist ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adapter-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.adapter-checklist li.ok {
  border-color: #b7dec9;
  background: var(--green-soft);
}

.adapter-checklist li.wait {
  border-color: #ead49d;
  background: var(--amber-soft);
}

.adapter-checklist li.risk {
  border-color: #f2d0c9;
  background: var(--red-soft);
}

.adapter-checklist strong,
.adapter-checklist small {
  display: block;
}

.adapter-checklist small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.5;
}

.adapter-payload {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.adapter-payload div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.adapter-payload span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.publish-execution-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.execution-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
  margin-bottom: 12px;
}

.execution-status-line strong,
.execution-status-line small {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.execution-status-line small {
  color: var(--muted);
  font-family: var(--mono);
}

.execution-error {
  min-width: 0;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid #f2d0c9;
  border-radius: var(--radius);
  color: var(--red);
  background: var(--red-soft);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.execution-error summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  cursor: pointer;
  list-style: none;
}

.execution-error summary::-webkit-details-marker {
  display: none;
}

.execution-error summary span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.execution-error summary b {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.execution-error[open] summary span {
  display: none;
}

.execution-error[open] summary b::before {
  content: "收起";
}

.execution-error[open] summary b {
  font-size: 0;
}

.execution-error[open] summary b::before {
  font-size: 12px;
}

.execution-error p {
  margin: 10px 0 0;
  color: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.execution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-io-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.provider-io-grid article,
.execution-evidence-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.provider-io-grid pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 10px;
  border-radius: var(--radius);
  color: #24324a;
  background: var(--surface-subtle);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.execution-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.execution-evidence-grid span,
.execution-evidence-grid small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.audit-event-detail {
  display: grid;
  gap: 12px;
}

.audit-summary-grid,
.audit-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.audit-summary-grid div,
.audit-related-list article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.audit-summary-grid strong,
.audit-related-list small {
  color: var(--muted);
}

.audit-summary-grid span,
.audit-related-list span {
  overflow-wrap: anywhere;
}

.audit-related-list button {
  justify-self: start;
  min-height: 34px;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.version-list article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  justify-content: space-between;
}

.version-list p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.version-list span,
.version-list small {
  color: var(--muted);
}

.version-list a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.trace-section {
  background: var(--surface-shell);
}

.trace-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
}

.trace-timeline li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: -11px;
  width: 2px;
  background: var(--line);
}

.trace-timeline li:last-child::before {
  display: none;
}

.trace-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--surface);
}

.trace-dot.ok {
  border-color: var(--accent);
}

.trace-dot.wait {
  border-color: var(--amber);
}

.trace-dot.risk {
  border-color: var(--red);
}

.trace-card {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.trace-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trace-card p,
.trace-card small,
.trace-card time {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.trace-card time {
  font-family: var(--mono);
  font-size: 12px;
}

.platform-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.platform-only-preview .platform-preview-grid {
  grid-template-columns: minmax(0, 1fr);
}

.content-detail-preview .platform-preview-grid {
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.platform-workbench {
  display: grid;
  gap: 16px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-tabs button {
  border-color: var(--line);
}

.platform-tabs button.active {
  border-color: var(--teal);
  background: #e8f5f6;
  color: var(--teal-dark);
}

.platform-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
  align-items: start;
  align-self: start;
}

.platform-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.platform-preview header span {
  color: var(--muted);
  font-size: 12px;
}

.mock-phone,
.article-paper,
.video-script {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.cover-block,
.video-cover {
  display: grid;
  min-height: 130px;
  place-items: end start;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 125, 143, 0.16), rgba(47, 158, 115, 0.12)),
    var(--surface-active-2);
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.35;
}

.cover-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.preview-image-shell {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.preview-image-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  background:
    radial-gradient(circle at 28% 18%, rgba(34, 211, 238, 0.22), transparent 30%),
    linear-gradient(135deg, #f8fdff 0%, #ecfeff 52%, #f7fff8 100%);
  color: #0f5f6c;
  text-align: center;
}

.preview-image-placeholder span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: #0891b2;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.12);
}

.preview-image-placeholder strong {
  color: #12313f;
  font-size: 15px;
  font-weight: 950;
}

.preview-image-placeholder small {
  max-width: 210px;
  color: #5f7484;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.preview-image-shell.is-missing > img {
  display: none;
}

.preview-image-shell.is-missing > .preview-image-placeholder {
  display: grid;
}

.xhs-media-frame {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #f1f2f4;
  border-bottom: 1px solid #f1f2f4;
  background: #f7f7f7;
}

.xhs-note-phone {
  overflow: hidden;
  display: grid;
  width: min(100%, 390px);
  min-height: 620px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: #fff;
  color: #1f2329;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.xhs-note-topbar {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid #f2f3f5;
  color: #15171a;
  text-align: center;
}

.xhs-note-topbar span {
  font-size: 22px;
  line-height: 1;
}

.xhs-note-author {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.xhs-note-author strong,
.xhs-note-author small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhs-note-author small {
  margin-top: 2px;
  color: #8a8f99;
  font-size: 12px;
}

.xhs-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a6d, #ff8b6a);
  color: #fff;
  font-weight: 800;
}

.xhs-follow {
  min-width: 58px;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #ff2442;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.xhs-media-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.xhs-media-carousel[data-dragging="true"] {
  cursor: grabbing;
  scroll-snap-type: none;
}

.xhs-media-carousel::-webkit-scrollbar {
  display: none;
}

.xhs-media-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.xhs-media-slide .preview-image-shell {
  aspect-ratio: 1 / 1;
}

.xhs-media-main {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
  border-right: 0;
  border-left: 0;
  background: #f7f7f7;
  pointer-events: none;
}

.xhs-media-main.preview-image-placeholder {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 36, 66, 0.12), transparent 28%),
    linear-gradient(145deg, #fff7f8 0%, #f8fdff 54%, #ecfeff 100%);
}

video.xhs-media-main {
  background: #0b0f14;
  pointer-events: auto;
}

.xhs-media-count {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.xhs-media-dots {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.xhs-media-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.24);
}

.xhs-media-dots i.active {
  width: 14px;
  background: #ff2442;
}

.xhs-media-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
}

.xhs-media-nav.prev {
  left: 10px;
}

.xhs-media-nav.next {
  right: 10px;
}

.xhs-media-nav:disabled {
  opacity: 0.32;
}

.xhs-note-body {
  display: grid;
  gap: 10px;
  padding: 14px 16px 72px;
}

.xhs-note-body h4 {
  margin: 0;
  color: #1f2329;
  font-size: 18px;
  line-height: 1.36;
}

.xhs-note-copy {
  display: grid;
  gap: 8px;
}

.xhs-note-copy p {
  margin: 0;
  color: #333840;
  line-height: 1.72;
  white-space: normal;
}

.xhs-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.xhs-note-tags b {
  color: #315db4;
  font-size: 13px;
  font-weight: 700;
}

.xhs-note-meta {
  color: #a1a6af;
  font-size: 12px;
}

.xhs-note-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px 12px;
  border-top: 1px solid #f2f3f5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.xhs-comment-input {
  min-width: 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f5f6f7;
  color: #8a8f99;
  font-size: 13px;
}

.xhs-note-actions b {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #1f2329;
  font-size: 18px;
  line-height: 1;
}

.xhs-note-actions small {
  color: #6b7280;
  font-size: 10px;
  font-weight: 600;
}

.preview-editor,
.regenerate-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.mock-phone h4,
.article-paper h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.mock-phone p,
.article-paper p,
.preview-copy p,
.article-copy p {
  margin: 0;
  color: #2f3d50;
  line-height: 1.75;
  white-space: normal;
}

.preview-copy,
.article-copy {
  display: grid;
  gap: 8px;
}

.article-summary {
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  background: var(--surface-active-2);
  color: #263649;
}

.article-copy .article-heading {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 800;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tags b {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-active-2);
  color: var(--teal-dark);
  font-size: 12px;
}

.mock-phone footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.article-paper small {
  color: var(--muted);
}

.video-script dl {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.video-script dt {
  color: var(--teal-dark);
  font-weight: 800;
}

.video-script dd {
  margin: 0;
  color: #2f3d50;
  line-height: 1.65;
}

.wxvideo-phone {
  overflow: hidden;
  display: grid;
  width: min(100%, 360px);
  min-height: 560px;
  margin: 0 auto;
  border: 1px solid #d9e2ec;
  border-radius: 22px;
  background: #0b0f14;
  color: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.18);
}

.wxvideo-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.wxvideo-stage {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 158, 115, 0.32), transparent 28%),
    linear-gradient(160deg, #15202b, #0b0f14 62%, #18202a);
}

.wxvideo-stage img,
.wxvideo-stage video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.wxvideo-stage video {
  background: #000;
}

.wxvideo-image-shell {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.wxvideo-stage .wxvideo-stage-media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.wxvideo-image-placeholder {
  display: none;
  width: 100%;
  min-height: 360px;
  place-items: center;
  gap: 8px;
  padding: 28px;
  background:
    radial-gradient(circle at 35% 20%, rgba(47, 158, 115, 0.32), transparent 28%),
    linear-gradient(160deg, #15202b, #0b0f14 62%, #18202a);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.wxvideo-image-placeholder span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #9ff2d0;
}

.wxvideo-image-placeholder strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.wxvideo-image-placeholder small {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.preview-image-shell.is-missing > .wxvideo-image-placeholder {
  display: grid;
}

.wxvideo-cover-text {
  max-width: 72%;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.wxvideo-shot-cue {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 64%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.wxvideo-actions {
  position: absolute;
  right: 12px;
  bottom: 18px;
  display: grid;
  gap: 10px;
}

.wxvideo-actions button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
}

.wxvideo-caption {
  display: grid;
  gap: 8px;
  padding: 14px 16px 18px;
  background: #0b0f14;
}

.wxvideo-caption h4,
.wxvideo-caption p {
  margin: 0;
}

.wxvideo-caption h4 {
  font-size: 17px;
  line-height: 1.35;
}

.wxvideo-caption p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.wxvideo-caption small {
  color: rgba(255, 255, 255, 0.58);
}

.wxvideo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wxvideo-tags b {
  color: #7dd3fc;
  font-size: 12px;
}

.ai-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.ai-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.ai-summary strong {
  color: var(--ink);
}

.ai-summary span,
.ai-summary small,
.ai-summary p {
  margin: 0;
  color: var(--muted);
}

.ai-summary.ok {
  border-color: #b7dec9;
  background: var(--green-soft);
}

.ai-summary.risk {
  border-color: #f2d0c9;
  background: var(--red-soft);
}

.calendar-toolbar,
.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 8px;
}

.calendar-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.calendar-grid {
  overflow-x: auto;
}

.calendar-day {
  display: flex;
  flex-direction: column;
  min-height: 138px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.calendar-day.muted {
  background: var(--surface-subtle);
}

.topic-day {
  display: grid;
  grid-template-rows: 24px minmax(94px, 1fr) 30px;
  min-height: 186px;
  max-height: 186px;
  gap: 8px;
  overflow: hidden;
  padding: 9px;
  border-color: #dde7ee;
  background: #ffffff;
}

.topic-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.topic-day-head strong {
  color: #233447;
  font-size: 13px;
  line-height: 1;
}

.topic-day-head span,
.topic-day-count {
  flex: 0 0 auto;
  min-height: 0;
  padding: 2px 6px;
  border: 0;
  border-radius: 999px;
  color: #52677a;
  background: #eef3f7;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.topic-day-count {
  cursor: pointer;
}

.topic-day-count:hover {
  color: #245c6a;
  background: #e4f3f6;
}

.topic-day-list {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.topic-day-empty {
  display: none;
}

.topic-card {
  align-items: flex-start;
  min-height: 58px;
  margin-top: 8px;
  padding: 8px;
  background: var(--surface-topic);
  border-color: #c5e0e5;
  text-align: left;
}

.topic-card:hover {
  background: var(--surface-topic-hover);
}

.topic-card.compact {
  position: relative;
  display: grid;
  grid-template-rows: 16px 16px;
  align-items: start;
  justify-content: stretch;
  row-gap: 3px;
  width: 100%;
  min-height: 43px;
  max-height: 43px;
  margin: 0;
  padding: 6px 8px 6px 10px;
  border: 1px solid #dfeaf0;
  border-left: 3px solid #2f9e73;
  border-radius: 9px;
  background: #f8fbfa;
  box-shadow: none;
  text-align: left;
}

.topic-card.compact:hover {
  border-color: #bcd9d1;
  background: #f0f8f5;
}

.topic-card-title {
  display: block;
  overflow: hidden;
  min-width: 0;
  color: #20343b;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 6px;
  align-items: center;
  height: 16px;
  min-width: 0;
}

.topic-card.compact small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  color: #607483;
  font-size: 10px;
  font-weight: 750;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-card-status {
  max-width: 64px;
  padding: 0 5px;
  border-radius: 999px;
  color: #1f6d54 !important;
  background: #e8f7f0;
}

.day-add {
  position: relative;
  z-index: 2;
  justify-content: center;
  margin-top: 0;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px dashed #c9d8df;
  border-radius: 10px;
  color: #52707d;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.day-add:hover {
  border-color: #8fb6c4;
  color: #25616f;
  background: #eef8fb;
}

.list-page {
  display: grid;
  gap: 14px;
}

.manual-publish-page {
  display: grid;
  gap: 14px;
}

.manual-publish-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(34, 54, 74, 0.04);
}

.manual-publish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.manual-publish-head div {
  display: grid;
  gap: 4px;
}

.manual-publish-head strong {
  font-size: 18px;
}

.manual-publish-head span,
.manual-publish-hint {
  color: var(--muted);
  line-height: 1.6;
}

.manual-publish-head button.primary,
.manual-publish-head button.primary span,
.manual-publish-head button.primary .icon {
  color: #ffffff;
}

.manual-publish-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.4fr) minmax(260px, 1fr);
  gap: 14px;
}

.manual-publish-wizard {
  display: grid;
  grid-template-columns: 230px minmax(360px, 1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.manual-publish-step-body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.manual-publish-section {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.manual-publish-section.wide {
  grid-row: span 2;
}

.manual-publish-section h3 {
  margin: 0;
  font-size: 14px;
}

.manual-publish-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-publish-preview-panel {
  grid-column: 3;
  grid-row: 1 / span 2;
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.manual-publish-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
}

.manual-publish-preview-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.manual-publish-preview {
  min-width: 0;
}

.manual-publish-preview .platform-preview {
  max-width: 100%;
}

.manual-publish-wizard .platform-auth-wizard-controls {
  grid-column: 2;
}

.filter-bar {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.module-filter-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  padding: 16px;
  border-color: rgba(8, 145, 178, 0.16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 56, 72, 0.07);
}

.module-filter-body {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(300px, 1fr) minmax(max-content, auto);
  gap: 12px;
  align-items: end;
}

.module-filter-main,
.module-filter-chips,
.module-filter-actions,
.module-filter-meta {
  min-width: 0;
}

.module-filter-main {
  max-width: 360px;
}

.module-filter-control {
  position: relative;
}

.module-filter-main .field,
.module-filter-chips .field {
  gap: 7px;
}

.module-filter-main .field span,
.module-filter-chips .field span {
  color: #4b6575;
  font-size: 12px;
  font-weight: 850;
}

.module-filter-main input,
.module-filter-main select {
  min-height: 46px;
  padding-left: 42px;
  border-color: #bfe4ea;
  border-radius: 16px;
  background: #f8fdfe;
  color: #102033;
  font-weight: 700;
}

.module-filter-main input::placeholder {
  color: #7c94a3;
  font-weight: 650;
}

.module-filter-icon {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 1;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #0891b2;
  pointer-events: none;
}

.module-filter-icon .icon {
  width: 18px;
  height: 18px;
}

.module-filter-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 160px));
  gap: 10px;
  justify-content: start;
}

.module-filter-chips.is-empty {
  display: none;
}

.module-filter-chips input,
.module-filter-chips select {
  min-height: 42px;
  border-color: #d7e8ec;
  border-radius: 14px;
  background: #fbfdfd;
  font-weight: 700;
}

.module-filter-main input:focus-visible,
.module-filter-main select:focus-visible,
.module-filter-chips input:focus-visible,
.module-filter-chips select:focus-visible {
  border-color: #0891b2;
  background: #ffffff;
}

.module-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.module-filter-actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  white-space: nowrap;
}

.module-filter-meta {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
}

.module-filter-meta span {
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #d8f1f5;
  border-radius: 999px;
  background: #f4fbfc;
  color: #164e63;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.brand-strategy-page {
  display: grid;
  gap: 14px;
}

.strategy-filter-bar {
  display: grid;
  padding: 16px;
  border: 1px solid rgba(8, 145, 178, 0.16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 56, 72, 0.07);
}

.strategy-search-body {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(300px, 340px) minmax(max-content, 1fr);
  gap: 12px;
  align-items: end;
}

.strategy-search-main,
.strategy-filter-chips,
.strategy-filter-actions {
  min-width: 0;
}

.strategy-search-main {
  max-width: 360px;
}

.strategy-search-control {
  position: relative;
}

.strategy-search-main .field {
  gap: 7px;
}

.strategy-search-main .field span,
.strategy-filter-chips .field span {
  color: #4b6575;
  font-size: 12px;
  font-weight: 850;
}

.strategy-search-main input,
.strategy-search-main select {
  min-height: 46px;
  padding-left: 42px;
  border-color: #bfe4ea;
  border-radius: 16px;
  background: #f8fdfe;
  color: #102033;
  font-weight: 700;
}

.strategy-search-main input::placeholder {
  color: #7c94a3;
  font-weight: 650;
}

.strategy-search-icon {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 1;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #0891b2;
  pointer-events: none;
}

.strategy-search-icon .icon {
  width: 18px;
  height: 18px;
}

.strategy-filter-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 160px));
  gap: 10px;
  justify-content: start;
}

.strategy-filter-chips .field {
  gap: 7px;
}

.strategy-filter-chips input,
.strategy-filter-chips select {
  min-height: 42px;
  border-color: #d7e8ec;
  border-radius: 14px;
  background: #fbfdfd;
  font-weight: 700;
}

.strategy-search-main input:focus-visible,
.strategy-search-main select:focus-visible,
.strategy-filter-chips input:focus-visible,
.strategy-filter-chips select:focus-visible {
  border-color: #0891b2;
  background: #ffffff;
}

.strategy-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.strategy-filter-actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  white-space: nowrap;
}

.strategy-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.strategy-overview article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(20, 125, 143, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 251, 252, 0.9));
  box-shadow: 0 12px 26px rgba(15, 56, 72, 0.06);
}

.strategy-overview span,
.strategy-meta-grid span,
.strategy-snippet strong,
.strategy-detail-panel span {
  color: #4b6575;
  font-size: 12px;
  font-weight: 850;
}

.strategy-overview strong {
  overflow: hidden;
  color: #102033;
  font-size: 24px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-overview small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.strategy-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(20, 125, 143, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.94));
  box-shadow: 0 16px 34px rgba(15, 56, 72, 0.08);
}

.strategy-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.strategy-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #147d8f, #2f9e73);
  box-shadow: 0 12px 22px rgba(20, 125, 143, 0.22);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.strategy-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.strategy-title span {
  overflow: hidden;
  color: #0f7b8d;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-title h3 {
  overflow: hidden;
  margin: 0;
  color: #102033;
  font-size: 19px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-core {
  min-height: 56px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(47, 158, 115, 0.18);
  border-radius: 18px;
  background: rgba(234, 248, 241, 0.72);
  color: #223241;
  line-height: 1.75;
}

.strategy-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.strategy-meta-grid div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 11px;
  border: 1px solid #e2edf2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.strategy-meta-grid strong {
  overflow: hidden;
  color: #152235;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.strategy-section-grid.detail {
  gap: 12px;
}

.strategy-snippet {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 118px;
  padding: 13px;
  border: 1px solid #e0edf2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.strategy-snippet.risk {
  border-color: rgba(194, 65, 58, 0.2);
  background: #fff7f4;
}

.strategy-snippet ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strategy-snippet li,
.strategy-snippet p {
  margin: 0;
  color: #26394a;
  line-height: 1.55;
}

.strategy-snippet li {
  position: relative;
  padding-left: 13px;
}

.strategy-snippet li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #22c55e;
  content: "";
}

.strategy-snippet.risk li::before {
  background: var(--red);
}

.strategy-card-foot {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: flex-end;
  padding-top: 2px;
}

.strategy-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid #d8edf2;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ecfeff;
  color: #0f5f6c;
  font-size: 12px;
  font-weight: 800;
}

.strategy-tags.detail {
  padding: 2px 0;
}

.strategy-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.strategy-empty {
  grid-column: 1 / -1;
}

.brand-strategy-detail {
  display: grid;
  gap: 14px;
}

.strategy-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.strategy-detail-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #deedf4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6fbfd);
}

.strategy-detail-panel i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #ecfeff;
  color: #0f7b8d;
  font-style: normal;
}

.strategy-detail-panel strong {
  color: #102033;
  line-height: 1.6;
}

.reminder-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #f3d6a2;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff9ed, #ffffff);
}

.reminder-panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.reminder-panel-head div {
  display: grid;
  gap: 3px;
}

.reminder-panel-head strong {
  font-size: 15px;
}

.reminder-panel-head span,
.reminder-card small,
.reminder-card p {
  color: var(--muted);
}

.reminder-panel-head i {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-style: normal;
  font-weight: 850;
}

.reminder-list {
  display: grid;
  gap: 10px;
}

.reminder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: var(--surface);
}

.reminder-card.risk {
  border-left-color: var(--red);
}

.reminder-card.ok {
  border-left-color: var(--accent);
}

.reminder-card strong,
.reminder-card p,
.reminder-card small {
  display: block;
  margin-top: 6px;
}

.reminder-card p {
  margin-bottom: 0;
  line-height: 1.55;
}

.reminder-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.compact-search-button {
  width: 92px;
  min-height: 40px;
  padding: 0 14px;
}

.data-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table td {
  position: relative;
}

.data-table th {
  color: #536174;
  background: var(--surface-2);
  font-size: 12px;
}

.data-table tbody tr:hover {
  background: var(--surface-hover);
}

.standard-table {
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.standard-table thead th {
  border-bottom: 0;
  padding: 0 14px 8px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.standard-table tbody tr {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.standard-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(236, 254, 255, 0.70), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 28px rgba(15, 56, 72, 0.10);
}

.standard-table th,
.standard-table td {
  border-bottom: 0;
}

.standard-table td {
  position: relative;
  overflow: visible;
  padding: 14px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
  white-space: nowrap;
}

.table-cell-ellipsis {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standard-table td:first-child {
  border-radius: 14px 0 0 14px;
  color: #0f172a;
  font-weight: 850;
}

.standard-table td:last-child {
  overflow: visible;
  border-radius: 0 14px 14px 0;
}

.standard-table th:last-child,
.standard-table td:last-child {
  width: var(--standard-action-width, 220px);
}

.standard-table .row-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.standard-table .row-actions button {
  min-width: 0;
  min-height: 32px;
  justify-content: center;
  padding: 0 6px;
  border-radius: 9px;
  background: #fbfdff;
  color: #285061;
  font-size: 12px;
  white-space: nowrap;
}

.standard-table .row-actions button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standard-table .status {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standard-table .long-summary-cell {
  max-width: 100%;
}

.long-summary-cell {
  position: relative;
  display: block;
  max-width: 360px;
  color: #39465a;
  line-height: 1.55;
}

.long-summary-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.long-summary-cell:hover {
  color: var(--teal-dark);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions button {
  min-height: 32px;
  padding: 0 9px;
}

.account-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.account-table thead th {
  background: transparent;
  border-bottom: 0;
  padding: 0 14px 8px;
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0;
}

.account-table tbody tr {
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.account-table tbody tr:hover {
  background: #fbfdff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
}

.account-table th:nth-child(1),
.account-table td:nth-child(1) {
  width: 19%;
}

.account-table th:nth-child(2),
.account-table td:nth-child(2) {
  width: 16%;
}

.account-table th:nth-child(3),
.account-table td:nth-child(3) {
  width: 14%;
}

.account-table th:nth-child(4),
.account-table td:nth-child(4) {
  width: 17%;
}

.account-table th:nth-child(5),
.account-table td:nth-child(5) {
  width: 12%;
}

.account-table th:last-child,
.account-table td:last-child {
  width: 22%;
}

.account-table td {
  border-bottom: 0;
  padding: 18px 14px;
  color: #1f2937;
  line-height: 1.5;
  vertical-align: middle;
  word-break: break-word;
}

.account-table td:first-child {
  border-radius: 12px 0 0 12px;
  font-weight: 850;
  color: #0f172a;
}

.account-table td:last-child {
  border-radius: 0 12px 12px 0;
}

.account-summary-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.platform-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 54%, #fff7ed 100%);
  color: #0f766e;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(15, 23, 42, 0.08);
}

.platform-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f8fafc;
}

.platform-avatar-fallback {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.platform-avatar.is-empty,
.platform-avatar.is-missing {
  border-style: dashed;
}

.platform-avatar.is-missing img {
  display: none;
}

.platform-avatar-detail {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 24px;
}

.account-cell-main {
  display: grid;
  gap: 5px;
  align-content: center;
  min-width: 0;
}

.account-cell-centered {
  min-height: 58px;
}

.account-cell-main strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.account-cell-main span,
.account-cell-main small,
.account-status-stack small {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.account-cell-main.muted strong {
  color: #334155;
  font-size: 13px;
}

.detail-avatar-row {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.detail-avatar-row > div {
  min-width: 0;
}

.detail-avatar-row p {
  margin: 0 0 6px;
  color: #334155;
  font-weight: 750;
}

.detail-avatar-row a {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.account-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.account-status-stack small {
  flex-basis: 100%;
}

.account-status-column {
  min-height: 58px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.account-status-column small {
  flex-basis: auto;
}

.account-provider-pill {
  display: inline-flex;
  justify-self: start;
  max-width: 100%;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-provider-pill.ready {
  background: #eff6ff;
  color: #1d4ed8;
}

.account-provider-pill.blocked {
  background: #fff7ed;
  color: #c2410c;
}

.account-detail-note {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.account-table .row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.account-table .row-actions button {
  min-height: 34px;
  justify-content: center;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}

.account-table .row-actions button span {
  overflow: visible;
  text-overflow: clip;
}

.knowledge-table {
  min-width: 1280px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.knowledge-table thead th {
  border-bottom: 0;
  padding: 0 14px 8px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
}

.knowledge-table tbody tr {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.knowledge-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(236, 254, 255, 0.72), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 28px rgba(15, 56, 72, 0.10);
}

.knowledge-table td {
  border-bottom: 0;
  padding: 14px;
  vertical-align: middle;
  white-space: nowrap;
}

.knowledge-table th:nth-child(1),
.knowledge-table td:nth-child(1) {
  width: 330px;
}

.knowledge-table th:nth-child(2),
.knowledge-table td:nth-child(2) {
  width: 110px;
}

.knowledge-table th:nth-child(3),
.knowledge-table td:nth-child(3) {
  width: 150px;
}

.knowledge-table th:nth-child(4),
.knowledge-table td:nth-child(4) {
  width: 230px;
}

.knowledge-table th:nth-child(5),
.knowledge-table td:nth-child(5) {
  width: 150px;
}

.knowledge-table th:nth-child(6),
.knowledge-table td:nth-child(6) {
  width: 210px;
}

.knowledge-table th:nth-child(7),
.knowledge-table td:nth-child(7) {
  width: 120px;
}

.knowledge-table th:last-child,
.knowledge-table td:last-child {
  width: 260px;
}

.knowledge-table td:first-child {
  border-radius: 14px 0 0 14px;
}

.knowledge-table td:last-child {
  border-radius: 0 14px 14px 0;
}

.knowledge-summary-cell {
  display: grid;
  min-width: 0;
  gap: 5px;
  white-space: normal;
}

.knowledge-summary-cell strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-summary-cell > span {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef7ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-summary-cell p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

.knowledge-summary-cell small {
  overflow: hidden;
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-scope-cell {
  display: grid;
  gap: 8px;
  white-space: normal;
}

.knowledge-scope-cell div {
  display: grid;
  gap: 4px;
}

.knowledge-scope-cell span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.knowledge-scope-cell p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.knowledge-scope-cell b {
  border-radius: 999px;
  padding: 2px 7px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.knowledge-scope-cell em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.knowledge-parsing-cell,
.knowledge-quality-cell {
  display: grid;
  gap: 5px;
}

.knowledge-parsing-cell strong,
.knowledge-quality-cell strong {
  overflow: hidden;
  color: #1e293b;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-cell-tooltip] {
  cursor: text;
}

[data-cell-tooltip]:focus-visible {
  outline: 2px solid rgba(14, 116, 144, 0.34);
  outline-offset: 2px;
}

.cell-hover-tooltip {
  position: fixed;
  z-index: 5000;
  display: none;
  width: max-content;
  max-width: min(560px, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 24px));
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
  overscroll-behavior: contain;
  pointer-events: auto;
  scrollbar-width: thin;
  white-space: pre-wrap;
}

.cell-hover-tooltip.visible {
  display: block;
}

.knowledge-parsing-cell small,
.knowledge-quality-cell small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-parse-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 3px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.knowledge-parse-pill.ok {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #176b4c;
}

.knowledge-parse-pill.wait {
  border-color: #fed7aa;
  background: #fff7e6;
  color: #9a5c00;
}

.knowledge-parse-pill.risk {
  border-color: #fecaca;
  background: #fff1ee;
  color: var(--red);
}

.trust-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
}

.trust-pill.ok {
  background: #ecfdf3;
  color: #176b4c;
}

.trust-pill.wait {
  background: #fff7e6;
  color: #9a5c00;
}

.trust-pill.risk {
  background: #fff1ee;
  color: var(--red);
}

.knowledge-table .row-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.knowledge-table .row-actions button {
  min-width: 0;
  min-height: 32px;
  justify-content: center;
  padding: 0 6px;
  background: #fbfdff;
  font-size: 12px;
  white-space: nowrap;
}

.knowledge-table .row-actions button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.table-pagination label,
.pagination-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.table-pagination select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 8px;
  background: var(--surface);
  color: var(--ink);
}

.pagination-actions button {
  min-height: 32px;
  padding: 0 10px;
}

.pagination-actions strong {
  color: var(--ink);
}

.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.status.ok {
  background: var(--green-soft);
  color: #176b4c;
}

.status.wait {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.risk {
  background: var(--red-soft);
  color: var(--red);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  z-index: 40;
  background: rgba(23, 32, 51, 0.28);
  backdrop-filter: blur(8px);
}

.busy-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(23, 32, 51, 0.28);
  backdrop-filter: blur(8px);
}

.busy-box {
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.busy-box span {
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 4px solid #dcebed;
  border-top-color: var(--teal);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal {
  width: min(780px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal:has([data-platform-auth-config-form="true"]) {
  width: min(1120px, 100%);
}

.modal:has([data-brand-strategy-form="true"]) {
  width: min(1180px, 96vw);
}

.modal:has([data-knowledge-template-form="true"]) {
  width: min(1040px, 100%);
}

.modal:has([data-standard-entry-form="true"]) {
  width: min(1120px, 96vw);
}

.modal:has(.ai-config-detail) {
  width: min(1080px, 96vw);
}

.modal:has(.content-detail) {
  width: min(1360px, 96vw);
}

.modal:has(.topic-content-studio) {
  width: min(1420px, 96vw);
}

.modal:has(.publishing-task-detail) {
  width: min(1180px, 100%);
}

.modal:has(.knowledge-list-modal .data-table) {
  width: min(96vw, 1480px);
}

.knowledge-list-modal {
  display: grid;
  gap: 14px;
}

.modal-filter-bar {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.knowledge-list-modal .table-panel {
  overflow-x: auto;
}

.knowledge-list-modal .data-table {
  min-width: 1280px;
}

.knowledge-list-modal .data-table th,
.knowledge-list-modal .data-table td {
  white-space: nowrap;
}

.knowledge-list-modal .row-actions {
  flex-wrap: nowrap;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 {
  margin: 0;
}

.modal-text {
  line-height: 1.65;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-stack[data-platform-auth-config-form="true"] {
  gap: 14px;
  align-items: start;
}

.form-stack[data-brand-strategy-form="true"] {
  gap: 16px;
}

.form-stack[data-brand-strategy-form="true"] > button[type="submit"] {
  justify-self: end;
  min-width: 132px;
}

.form-stack[data-standard-entry-form="true"] {
  gap: 16px;
}

.form-stack[data-standard-entry-form="true"] > input[type="hidden"] {
  width: 100%;
}

.form-stack[data-standard-entry-form="true"] > button[type="submit"] {
  justify-self: end;
  min-width: 132px;
}

.standard-entry-shell {
  display: grid;
  gap: 16px;
}

.standard-entry-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.22), transparent 34%),
    linear-gradient(135deg, #f8fdff, #effaff 52%, #f6fff9);
  box-shadow: 0 18px 42px rgba(15, 56, 72, 0.08);
}

.standard-entry-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.13);
}

.standard-entry-hero div,
.standard-entry-hero small {
  position: relative;
  z-index: 1;
}

.standard-entry-hero span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
}

.standard-entry-hero strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.standard-entry-hero p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.standard-entry-hero small {
  align-self: end;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.70);
  color: #335061;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.standard-entry-sections {
  display: grid;
  gap: 14px;
}

.standard-entry-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e3edf4;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 253, 0.96));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.standard-entry-section.has-files {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.standard-entry-section.has-textareas {
  border-color: #dbeff4;
}

.standard-entry-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.standard-entry-section-head h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 950;
}

.standard-entry-section-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.standard-entry-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.standard-entry-grid > .field,
.standard-entry-grid > .credential-summary,
.standard-entry-grid > .platform-auth-section,
.standard-entry-grid > .knowledge-supplement-section {
  grid-column: span 6;
  min-width: 0;
  align-self: start;
}

.standard-entry-grid > .field:has(textarea),
.standard-entry-grid > .field:has(input[type="file"]),
.standard-entry-grid > .credential-summary,
.standard-entry-grid > .platform-auth-section,
.standard-entry-grid > .knowledge-supplement-section {
  grid-column: 1 / -1;
}

.standard-entry-grid > .field {
  padding: 12px;
  border: 1px solid #e5edf2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.standard-entry-grid > .field span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.standard-entry-grid > .field input,
.standard-entry-grid > .field select,
.standard-entry-grid > .field textarea {
  border-color: #dce8ef;
  border-radius: 14px;
  background: #ffffff;
}

.standard-entry-grid > .field textarea {
  min-height: 118px;
  height: 118px;
  line-height: 1.6;
  resize: vertical;
}

.standard-entry-grid > .field input:focus-visible,
.standard-entry-grid > .field select:focus-visible,
.standard-entry-grid > .field textarea:focus-visible {
  border-color: #0891b2;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.10);
}

.standard-entry-grid > .standard-reference-multiselect {
  grid-column: 1 / -1;
}

.standard-reference-multiselect {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfeef3;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.82), rgba(248, 250, 252, 0.92));
}

.standard-reference-multiselect .topic-reference-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.standard-reference-multiselect .topic-reference-head span {
  color: #12313f;
  font-size: 13px;
  font-weight: 900;
}

.standard-reference-multiselect .topic-reference-head small {
  color: #5f7484;
  text-align: right;
}

.standard-reference-multiselect .el-multi-select {
  border-color: #bfe4ea;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(20, 125, 143, 0.06);
}

.standard-reference-multiselect .el-multi-select-trigger {
  min-height: 48px;
  padding: 10px 12px;
}

.standard-reference-multiselect .el-multi-select-trigger span {
  background: #e6f8fb;
  color: #0f5f6c;
}

.standard-reference-multiselect .el-multi-select-trigger b {
  color: #0f5f6c;
}

.standard-reference-multiselect .el-multi-select-panel {
  max-height: 260px;
  padding: 8px;
}

.standard-reference-multiselect .el-multi-option {
  border: 1px solid transparent;
}

.standard-reference-multiselect .el-multi-option:hover,
.standard-reference-multiselect .el-multi-option.selected {
  border-color: #c9eef3;
  background: #f0fcfd;
}

.brand-strategy-form-shell {
  display: grid;
  gap: 16px;
}

.brand-strategy-form-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.24), transparent 34%),
    linear-gradient(135deg, #f8fdff, #eef9ff 52%, #f7fff8);
  box-shadow: 0 18px 42px rgba(15, 56, 72, 0.08);
}

.brand-strategy-form-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
}

.brand-strategy-form-hero div,
.brand-strategy-form-hero small {
  position: relative;
  z-index: 1;
}

.brand-strategy-form-hero span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
}

.brand-strategy-form-hero strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
}

.brand-strategy-form-hero p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.brand-strategy-form-hero small {
  align-self: end;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.70);
  color: #335061;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.brand-strategy-form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e3edf4;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 253, 0.96));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.brand-strategy-form-section.compact {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.brand-strategy-form-section.guard {
  border-color: #fed7aa;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.72));
}

.brand-strategy-form-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.brand-strategy-form-section-head h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 950;
}

.brand-strategy-form-section-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.brand-strategy-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.brand-strategy-form-grid + .brand-strategy-form-grid {
  margin-top: 2px;
}

.brand-strategy-form-grid > .field {
  grid-column: span 4;
  min-width: 0;
  align-self: start;
}

.brand-strategy-form-grid > .field[data-field-key="name"],
.brand-strategy-form-grid > .field[data-field-key="customer"],
.brand-strategy-form-grid > .field[data-field-key="strategyGoal"],
.brand-strategy-form-grid > .field[data-field-key="audienceSegment"] {
  grid-column: span 6;
}

.brand-strategy-form-grid.is-controls {
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

.brand-strategy-form-grid.is-controls > .field {
  grid-column: span 6;
}

.brand-strategy-form-grid.is-single-control > .field {
  grid-column: 1 / -1;
}

.brand-strategy-form-grid.is-reference-control > .field {
  grid-column: 1 / -1;
}

.brand-strategy-form-grid.is-reference-control {
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.82), rgba(248, 250, 252, 0.86));
}

.brand-strategy-reference-multiselect {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
}

.brand-strategy-reference-multiselect .topic-reference-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.brand-strategy-reference-multiselect .topic-reference-head span {
  color: #12313f;
  font-size: 13px;
  font-weight: 900;
}

.brand-strategy-reference-multiselect .topic-reference-head small {
  color: #5f7484;
  text-align: right;
}

.brand-strategy-reference-multiselect .el-multi-select {
  border-color: #bfe4ea;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(20, 125, 143, 0.08);
}

.brand-strategy-reference-multiselect .el-multi-select-trigger {
  min-height: 48px;
  padding: 10px 12px;
  background: #ffffff;
}

.brand-strategy-reference-multiselect .el-multi-select-trigger span {
  background: #e6f8fb;
  color: #0f5f6c;
}

.brand-strategy-reference-multiselect .el-multi-select-trigger b {
  color: #0f5f6c;
}

.brand-strategy-reference-multiselect .el-multi-select-panel {
  max-height: 260px;
  padding: 8px;
}

.brand-strategy-reference-multiselect .el-multi-option {
  border: 1px solid transparent;
}

.brand-strategy-reference-multiselect .el-multi-option:hover,
.brand-strategy-reference-multiselect .el-multi-option.selected {
  border-color: #c9eef3;
  background: #f0fcfd;
}

.brand-strategy-form-grid > .field[data-field-key="coreMessage"],
.brand-strategy-form-grid > .field[data-field-key="differentiation"],
.brand-strategy-form-grid > .field[data-field-key="contentPillars"],
.brand-strategy-form-grid > .field[data-field-key="platformPlan"],
.brand-strategy-form-grid > .field[data-field-key="topicDirections"],
.brand-strategy-form-grid > .field[data-field-key="conversionPath"],
.brand-strategy-form-grid > .field[data-field-key="reviewCriteria"],
.brand-strategy-form-grid > .field[data-field-key="forbiddenClaims"],
.brand-strategy-form-grid > .field[data-field-key="referenceMaterials"],
.brand-strategy-form-grid > .field[data-field-key="feedback"] {
  grid-column: span 6;
}

.brand-strategy-form-grid.is-textareas > .field {
  grid-column: span 6;
}

.brand-strategy-form-grid.is-textareas > .field[data-field-key="topicDirections"] {
  grid-column: 1 / -1;
}

.brand-strategy-form-grid.is-textareas > .field[data-field-key="feedback"] {
  grid-column: 1 / -1;
}

.brand-strategy-form-grid > .field span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.brand-strategy-form-grid > .field input,
.brand-strategy-form-grid > .field select,
.brand-strategy-form-grid > .field textarea {
  border-color: #dce8ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.brand-strategy-form-grid > .field textarea {
  min-height: 96px;
  line-height: 1.6;
}

.brand-strategy-form-grid.is-textareas > .field textarea {
  min-height: 124px;
  height: 124px;
  resize: vertical;
}

.brand-strategy-form-grid > .field input:focus-visible,
.brand-strategy-form-grid > .field select:focus-visible,
.brand-strategy-form-grid > .field textarea:focus-visible {
  border-color: #0891b2;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.10);
}

.platform-auth-form-body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.platform-auth-wizard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.platform-auth-detail {
  display: grid;
  gap: 14px;
}

.platform-auth-config-shell {
  display: grid;
  gap: 14px;
}

.platform-auth-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, auto);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #c7eef5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 18%, rgba(34, 211, 238, 0.18), transparent 32%),
    linear-gradient(135deg, #f7feff 0%, #ecfeff 48%, #f8fbfc 100%);
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.08);
}

.platform-auth-hero-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 15px;
  background: #ffffff;
  color: #0891b2;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.12);
}

.platform-auth-hero-main {
  min-width: 0;
}

.platform-auth-hero-main span {
  color: #0891b2;
  font-size: 12px;
  font-weight: 900;
}

.platform-auth-hero-main h3 {
  margin: 4px 0;
  color: #12313f;
  font-size: 21px;
  line-height: 1.25;
}

.platform-auth-hero-main p {
  margin: 0;
  color: #526778;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.platform-auth-hero-side {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 0;
}

.platform-auth-hero-side small {
  max-width: 260px;
  color: #526778;
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-auth-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.platform-auth-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7eef3;
  border-radius: 14px;
  background: #ffffff;
}

.platform-auth-metric span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.platform-auth-metric strong {
  min-width: 0;
  color: #12313f;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-config-detail {
  display: grid;
  gap: 14px;
}

.ai-config-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 20%, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef7ff 52%, #f8fbfc 100%);
}

.ai-config-hero-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.12);
}

.ai-config-hero-main {
  min-width: 0;
}

.ai-config-hero-main span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.ai-config-hero-main h3 {
  margin: 4px 0;
  color: #102033;
  font-size: 21px;
  line-height: 1.25;
}

.ai-config-hero-main p {
  margin: 0;
  color: #5b6b80;
  line-height: 1.55;
}

.ai-config-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ai-config-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1eaf2;
  border-radius: 14px;
  background: #ffffff;
}

.ai-config-metric span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.ai-config-metric strong {
  color: #172033;
  font-size: 18px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-config-metric small {
  color: #667789;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ai-config-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1eaf2;
  border-radius: 16px;
  background: #f8fbfc;
}

.ai-config-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ai-config-section-head h3 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 15px;
}

.ai-config-section-head span {
  color: #667789;
  font-size: 12px;
  font-weight: 700;
}

.ai-config-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ai-config-field {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e4edf4;
  border-radius: 12px;
  background: #ffffff;
}

.ai-config-field.wide {
  grid-column: 1 / -1;
}

.ai-config-field strong {
  display: block;
  margin-bottom: 6px;
  color: #415366;
  font-size: 12px;
  font-weight: 900;
}

.ai-config-field p {
  margin: 0;
  color: #172033;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ai-config-field.mono p,
.ai-config-code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.ai-config-code-block {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  padding: 10px;
  border: 1px solid #dbe6ef;
  border-radius: 10px;
  background: #f9fbfd;
  color: #172033;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ai-config-model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-config-model-tags span {
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-config-model-tags .muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-family: inherit;
}

.platform-auth-detail-wizard {
  margin-top: 0;
}

.generation-job-detail {
  display: grid;
  gap: 14px;
}

.generation-job-detail-wizard {
  margin-top: 0;
}

.platform-variant-detail {
  display: grid;
  gap: 14px;
}

.platform-variant-detail-wizard {
  margin-top: 0;
}

.platform-variant-detail-section .platform-adapter-detail {
  grid-template-columns: minmax(0, 1fr);
}

.generation-job-detail-section .ai-summary {
  margin-bottom: 14px;
}

.generation-input-grid {
  margin-bottom: 14px;
}

.generated-content-detail {
  max-height: min(44vh, 420px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  background: #f8fbfd;
  white-space: pre-line;
}

.platform-auth-stepper {
  position: sticky;
  top: 0;
  display: grid;
  gap: 8px;
  max-height: min(64vh, 620px);
  overflow: auto;
  padding: 12px;
  border: 1px solid #d7eef3;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(247, 254, 255, 0.98), rgba(240, 249, 251, 0.98)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.platform-auth-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "index title"
    "index required"
    "index summary";
  gap: 2px 10px;
  justify-content: stretch;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #35566a;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.platform-auth-step:hover {
  border-color: #bdebf2;
  background: #ffffff;
}

.platform-auth-step.active {
  border-color: rgba(8, 145, 178, 0.34);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.12);
  color: #12313f;
}

.platform-auth-step i {
  grid-area: index;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d8f4f8;
  color: #0e7490;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.platform-auth-step.active i {
  background: #0891b2;
  color: #ffffff;
}

.platform-auth-step span {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-auth-step small {
  grid-area: summary;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-required-badge {
  grid-area: required;
  display: inline-flex;
  width: fit-content;
  min-height: 18px;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.platform-auth-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbeff4;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 253, 0.98)),
    var(--surface);
  box-shadow: 0 12px 26px rgba(15, 56, 72, 0.06);
}

.platform-auth-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.platform-auth-section-head h3 {
  min-width: 0;
  margin: 0;
  color: #12313f;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.platform-auth-section-head span {
  min-width: 0;
  color: #667789;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-align: right;
}

.platform-auth-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.platform-auth-grid > .field {
  padding: 10px;
  border: 1px solid #edf3f7;
  border-radius: 12px;
  background: #ffffff;
}

.platform-auth-detail .detail-grid {
  gap: 12px;
}

.platform-auth-detail .detail-grid div {
  border-color: #edf3f7;
  border-radius: 12px;
  background: #ffffff;
}

.platform-auth-detail .detail-grid p {
  color: #172033;
}

.platform-auth-grid > .field {
  grid-column: span 12;
  min-width: 0;
}

.platform-auth-grid > .field[data-field-size="quarter"] {
  grid-column: span 3;
}

.platform-auth-grid > .field[data-field-size="third"] {
  grid-column: span 4;
}

.platform-auth-grid > .field[data-field-size="half"] {
  grid-column: span 6;
}

.platform-auth-grid > .field[data-field-size="full"] {
  grid-column: span 12;
}

.form-stack[data-platform-auth-config-form="true"] > .form-error,
.form-stack[data-platform-auth-config-form="true"] > input[type="hidden"] {
  width: 100%;
}

.form-stack[data-platform-auth-config-form="true"] > button[type="submit"] {
  justify-self: end;
}

.platform-auth-wizard-controls {
  grid-column: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 0 0;
  border-top: 1px solid #edf2f7;
}

.platform-auth-wizard-controls span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.platform-auth-wizard-controls button {
  min-width: 98px;
}

.form-stack[data-platform-auth-config-form="true"] textarea {
  min-height: 82px;
}

.knowledge-template-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.knowledge-template-wizard,
.knowledge-detail-wizard,
.content-detail-wizard,
.publishing-task-detail-wizard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.content-detail,
.content-detail * {
  min-width: 0;
}

.content-detail-section {
  overflow-x: hidden;
}

.content-detail-section .modal-section {
  margin-bottom: 0;
}

.publishing-task-detail,
.publishing-task-detail * {
  min-width: 0;
}

.publishing-task-detail-section {
  overflow-x: hidden;
}

.publishing-task-detail-section p,
.publishing-task-detail-section span,
.publishing-task-detail-section small,
.publishing-task-detail-section strong,
.publishing-task-detail-section a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.knowledge-template-form .credential-summary,
.knowledge-template-form .knowledge-template-section,
.knowledge-template-form .field[data-field-key="summary"],
.knowledge-template-form .knowledge-supplement-section {
  grid-column: 1 / -1;
}

.knowledge-template-form .field[data-field-key="attachmentFile"],
.knowledge-template-form .field[data-field-key="attachmentNote"],
.knowledge-template-form .field[data-field-key="attachmentText"],
.knowledge-template-form .field[data-field-key="supplementalDetail"] {
  grid-column: 1 / -1;
}

.knowledge-template-section textarea {
  min-height: 78px;
}

.knowledge-supplement-section {
  padding: 12px 14px;
  border: 1px dashed #cbd8e3;
  border-radius: 10px;
  background: #f8fbfc;
}

.knowledge-supplement-section summary {
  cursor: pointer;
  color: #365264;
  font-size: 13px;
  font-weight: 800;
}

.knowledge-supplement-section .platform-auth-grid {
  margin-top: 12px;
}

.file-preview {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.file-preview strong {
  color: #172033;
  font-size: 13px;
}

.file-preview span {
  color: #607080;
}

.file-preview img {
  width: min(220px, 100%);
  max-height: 160px;
  object-fit: contain;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #f8fbfc;
}

.file-preview-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.file-preview-item img,
.file-preview-item video {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #f8fbfc;
}

.file-preview-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.file-preview-item strong,
.file-preview-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .modal:has([data-platform-auth-config-form="true"]) {
    width: min(720px, 100%);
  }

  .modal:has([data-knowledge-template-form="true"]) {
    width: min(720px, 100%);
  }

  .modal:has([data-standard-entry-form="true"]) {
    width: min(720px, 100%);
  }

  .modal:has(.content-detail) {
    width: min(720px, 100%);
  }

  .modal:has(.topic-content-studio) {
    width: min(720px, 100%);
  }

  .modal:has(.publishing-task-detail) {
    width: min(720px, 100%);
  }

  .modal:has([data-brand-strategy-form="true"]) {
    width: min(720px, 100%);
  }

  .brand-strategy-form-hero,
  .platform-auth-verify-hero,
  .platform-auth-verify-metrics,
  .standard-entry-hero,
  .standard-entry-grid,
  .brand-strategy-form-grid {
    grid-template-columns: 1fr;
  }

  .standard-entry-grid > .field,
  .standard-entry-grid > .field[data-field-key],
  .standard-entry-grid > .credential-summary,
  .standard-entry-grid > .platform-auth-section,
  .standard-entry-grid > .knowledge-supplement-section,
  .brand-strategy-form-grid > .field,
  .brand-strategy-form-grid > .field[data-field-key] {
    grid-column: 1 / -1;
  }

  .standard-entry-section-head,
  .brand-strategy-form-section-head {
    display: grid;
    gap: 4px;
  }

  .standard-entry-section-head span,
  .brand-strategy-form-section-head span {
    text-align: left;
  }

  .platform-auth-grid {
    grid-template-columns: 1fr;
  }

  .unified-detail-hero {
    grid-template-columns: 1fr;
  }

  .unified-detail-metrics {
    grid-template-columns: 1fr;
  }

  .unified-detail-section-head {
    display: grid;
    gap: 4px;
  }

  .unified-detail-section-head span {
    text-align: left;
  }

  .platform-auth-hero {
    grid-template-columns: 1fr;
  }

  .platform-auth-hero-side {
    justify-items: start;
  }

  .platform-auth-hero-side small {
    max-width: 100%;
  }

  .platform-auth-overview {
    grid-template-columns: 1fr;
  }

  .platform-auth-wizard {
    grid-template-columns: 1fr;
  }

  .topic-content-studio {
    grid-template-columns: 1fr;
  }

  .topic-studio-brief,
  .topic-studio-preview-head {
    display: grid;
  }

  .topic-studio-status {
    min-width: 0;
    text-align: left;
  }

  .topic-studio-form-grid {
    grid-template-columns: 1fr;
  }

  .platform-auth-stepper {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .knowledge-template-form {
    grid-template-columns: 1fr;
  }

  .knowledge-template-wizard,
  .knowledge-detail-wizard,
  .publishing-task-detail-wizard {
    grid-template-columns: 1fr;
  }

  .platform-auth-grid > .field,
  .platform-auth-grid > .field[data-field-size] {
    grid-column: 1 / -1;
  }

  .platform-auth-section-head {
    display: grid;
    gap: 4px;
  }

  .platform-auth-section-head span {
    text-align: left;
  }

  .form-stack[data-platform-auth-config-form="true"] > button[type="submit"] {
    justify-self: stretch;
  }

  .platform-auth-wizard-controls {
    grid-column: 1;
    flex-wrap: wrap;
  }

  .platform-auth-wizard-controls span {
    order: -1;
    width: 100%;
  }
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e4edf4;
  border-radius: 12px;
  background: #ffffff;
}

.detail-grid strong,
.detail-grid p {
  min-width: 0;
}

.detail-grid p {
  margin: 4px 0 0;
  color: #172033;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.detail-grid .long-value {
  grid-column: 1 / -1;
}

.platform-auth-detail .detail-grid .long-value p {
  padding: 8px 10px;
  border: 1px solid #dbe6ef;
  border-radius: 9px;
  background: #ffffff;
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.platform-auth-verify-result {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.platform-auth-verify-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid #dbe6ef;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 125, 143, 0.12), transparent 34%),
    #ffffff;
}

.platform-auth-verify-hero.risk {
  border-color: #f2d0c9;
  background:
    radial-gradient(circle at 0% 0%, rgba(198, 77, 59, 0.12), transparent 34%),
    #ffffff;
}

.platform-auth-verify-hero.wait {
  border-color: #f0d79a;
  background:
    radial-gradient(circle at 0% 0%, rgba(217, 151, 29, 0.14), transparent 34%),
    #ffffff;
}

.platform-auth-verify-hero span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.platform-auth-verify-hero h3 {
  margin: 6px 0;
  color: #172033;
  font-size: 22px;
}

.platform-auth-verify-hero p {
  min-width: 0;
  margin: 0;
  color: #5c6b7a;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.platform-auth-verify-hero > strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0f6d61;
  background: #e7f7f2;
  font-size: 13px;
  white-space: nowrap;
}

.platform-auth-verify-hero.risk > strong {
  color: #b42318;
  background: #fff0ed;
}

.platform-auth-verify-hero.wait > strong {
  color: #915b00;
  background: #fff7df;
}

.platform-auth-verify-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.platform-auth-verify-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.verify-text-block {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #ffffff;
}

.verify-text-block.risk {
  border-color: #f2d0c9;
  background: #fff8f6;
}

.verify-text-block.wait {
  border-color: #f0d79a;
  background: #fffaf0;
}

.verify-text-block.ok {
  border-color: #bfeadc;
  background: #f6fffb;
}

.verify-text-block strong {
  display: block;
  color: #415366;
  font-size: 12px;
  font-weight: 900;
}

.verify-text-block p,
.verify-text-block summary span {
  color: #172033;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.verify-text-block p {
  max-height: 260px;
  margin: 8px 0 0;
  overflow: auto;
}

.verify-text-block.mono p,
.verify-text-block.mono summary span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.verify-text-block summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
  cursor: pointer;
  list-style: none;
}

.verify-text-block summary::-webkit-details-marker {
  display: none;
}

.verify-text-block summary strong {
  grid-column: 1 / -1;
}

.verify-text-block summary span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.verify-text-block summary b {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.verify-text-block[open] summary span {
  display: none;
}

.verify-text-block[open] summary b {
  font-size: 0;
}

.verify-text-block[open] summary b::before {
  content: "收起";
  font-size: 12px;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-shell);
}

@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .topbar-title {
    align-items: flex-start;
  }

  .topbar-copy h1,
  .topbar-copy > p:not(.topbar-kicker) {
    max-width: calc(100vw - 116px);
  }

  .topbar-logout {
    align-self: flex-start;
  }

  .layout,
  .dashboard,
  .cockpit-board,
  .brand-profile {
    grid-template-columns: 1fr;
  }

  .completion {
    position: static;
  }

  .profile-save-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-save-bar button {
    width: 100%;
  }

  .sidebar {
    max-height: min(42vh, 420px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .layout,
  .content {
    height: auto;
    overflow: visible;
  }

  .metrics,
  .cockpit-metrics,
  .profile-fields,
  .filter-bar,
  .module-filter-body,
  .module-filter-chips,
  .strategy-filter-bar,
  .strategy-search-body,
  .strategy-filter-chips,
  .strategy-overview,
  .strategy-board,
  .strategy-meta-grid,
  .strategy-section-grid,
  .strategy-detail-grid,
  .publish-summary,
  .knowledge-admin-page .filter-bar,
  .knowledge-grid,
  .knowledge-card dl,
  .risk-strip,
  .variant-list,
  .platform-preview-grid,
  .platform-adapter-detail,
  .adapter-payload,
  .provider-io-grid,
  .execution-evidence-grid,
  .audit-summary-grid,
  .audit-related-list,
  .delivery-hero,
  .delivery-summary-grid,
  .manual-publish-grid,
  .manual-publish-wizard,
  .manual-publish-two,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .manual-publish-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .strategy-card-head,
  .strategy-card-foot {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .strategy-card-foot {
    flex-direction: column;
  }

  .strategy-actions {
    justify-content: flex-start;
  }

  .module-filter-main {
    max-width: none;
  }

  .module-filter-actions {
    justify-content: flex-start;
  }

  .module-filter-actions button {
    width: 100%;
  }

  .manual-publish-head button {
    width: 100%;
  }

  .manual-publish-preview-panel {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .manual-publish-wizard .platform-auth-wizard-controls {
    grid-column: 1;
  }

  .delivery-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .cockpit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cockpit-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cockpit-flow-item,
  .cockpit-task-card {
    grid-template-columns: 1fr;
  }

  .cockpit-flow-item em {
    justify-self: start;
  }
}
