:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --soft: #f7f8fa;
  --soft-2: #eef4ff;
  --text: #1f2937;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-dark: #d1d5db;
  --brand: #1677ff;
  --brand-2: #0958d9;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --purple: #6d28d9;
  --shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  --radius: 16px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 0%, #f1edff 0, #f8fafc 38%, #ffffff 100%);
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #ece9ff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(71, 51, 150, 0.12);
  padding: 34px;
}

.login-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #7058ff;
  font-weight: 900;
  margin-bottom: 20px;
}

.login-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.login-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: #111827;
  letter-spacing: 0;
}

.login-card p {
  margin: 10px 0 26px;
  color: #7b8494;
  font-size: 14px;
}

.login-field {
  display: block;
  margin-bottom: 16px;
}

.login-field span {
  display: block;
  margin-bottom: 8px;
  color: #5f6878;
  font-size: 13px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}

.login-field input:focus {
  border-color: #7357ff;
  box-shadow: 0 0 0 3px rgba(115, 87, 255, 0.12);
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
}

.login-primary,
.login-secondary {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.login-primary {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: #7357ff;
  color: #fff;
  font-size: 15px;
}

.login-secondary {
  background: #f1efff;
  color: #6d56e8;
  font-size: 13px;
}

.login-primary:disabled,
.login-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-error,
.login-dev-code {
  margin: 4px 0 12px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.login-error {
  background: #fff1f2;
  color: #be123c;
}

.login-dev-code {
  background: #f5f3ff;
  color: #6d28d9;
}

.landing-shell {
  display: block;
  place-items: initial;
  min-height: 100vh;
  padding: 0 24px 72px;
  overflow-x: hidden;
  color: #0f172a;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(112, 88, 255, 0.16), transparent 70%),
    #f8fafc;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.landing-logo,
.landing-actions,
.landing-nav,
.landing-brand-tools,
.landing-feature-row,
.landing-case-brand,
.landing-case-score,
.landing-case-card footer {
  display: flex;
  align-items: center;
}

.landing-logo {
  gap: 10px;
}

.landing-logo-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: transparent;
  color: #7058ff;
  box-shadow: none;
}

.landing-logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.landing-logo strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-logo strong span {
  color: #7058ff;
}

.landing-nav {
  gap: 30px;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}

.landing-nav a:first-child {
  color: #7058ff;
}

.landing-actions {
  gap: 12px;
}

.landing-demo-btn,
.landing-login-btn,
.landing-start-btn,
.landing-brand-tools button,
.landing-model-chips button,
.landing-case-card footer button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.landing-demo-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: #7058ff;
  background: rgba(112, 88, 255, 0.08);
  border: 1px solid rgba(112, 88, 255, 0.16);
}

.landing-login-btn {
  height: 36px;
  padding: 0 20px;
  border-radius: 10px;
  color: #fff;
  background: #0f172a;
}

.landing-hero {
  max-width: 940px;
  margin: 0 auto;
  padding-top: 74px;
  text-align: center;
}

.landing-eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(112, 88, 255, 0.08);
  color: #7058ff;
  font-size: 12px;
  font-weight: 900;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 950;
}

.landing-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #7058ff, #4facfe);
  background-clip: text;
  -webkit-background-clip: text;
}

.landing-subtitle {
  margin: 20px auto 8px;
  font-size: 18px;
  color: #64748b;
  font-weight: 800;
}

.landing-caption {
  margin: 0 auto 30px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 700;
}

.landing-brand-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 80px rgba(30, 41, 59, 0.08), 0 0 44px -18px rgba(112, 88, 255, 0.55);
  backdrop-filter: blur(12px);
}

.landing-brand-inputs {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #fff;
}

.landing-brand-inputs input,
.landing-brand-inputs textarea {
  width: 100%;
  display: block;
  box-sizing: border-box;
  border: 0;
  outline: none;
  color: #1e293b;
  font-weight: 800;
  background: #fff;
}

.landing-brand-inputs input {
  height: 52px;
  padding: 0 18px;
  font-size: 18px;
}

.landing-brand-inputs textarea {
  height: 78px;
  padding: 4px 18px 16px;
  resize: none;
  font-size: 15px;
  line-height: 1.6;
}

.landing-brand-inputs input::placeholder,
.landing-brand-inputs textarea::placeholder {
  color: #cbd5e1;
  font-weight: 800;
}

.landing-brand-inputs:focus-within {
  border-color: rgba(112, 88, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(112, 88, 255, 0.12);
}

.landing-brand-box-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 6px 4px;
}

.landing-model-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-model-chips button {
  height: 34px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #94a3b8;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}

.landing-model-chips button.selected {
  color: #5b45d9;
  border-color: #ddd6fe;
  background: #f1edff;
  box-shadow: inset 0 0 0 1px rgba(112, 88, 255, 0.08);
}

.landing-model-chips button:hover {
  color: #5b45d9;
  border-color: #c4b5fd;
  background: #f6f3ff;
  transform: translateY(-1px);
}

.landing-brand-tools {
  gap: 16px;
}

.landing-brand-tools button {
  padding: 0;
  color: #94a3b8;
  background: transparent;
}

.landing-brand-tools button:hover {
  color: #7058ff;
}

.landing-start-btn {
  height: 44px;
  padding: 0 28px;
  border-radius: 14px;
  color: #fff;
  background: #7058ff;
  box-shadow: 0 14px 30px rgba(112, 88, 255, 0.28);
}

.landing-feature-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.landing-feature-row article {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  min-width: 220px;
  padding: 14px 18px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.landing-feature-row i {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #7058ff;
  background: #f5f3ff;
  font-style: normal;
}

.landing-feature-row svg {
  width: 17px;
  height: 17px;
}

.landing-feature-row strong {
  font-size: 12px;
  font-weight: 950;
}

.landing-feature-row span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.landing-cases {
  max-width: 1180px;
  margin: 110px auto 0;
}

.landing-section-head {
  text-align: center;
  margin-bottom: 30px;
}

.landing-section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 950;
}

.landing-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.landing-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.landing-case-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.landing-case-brand {
  gap: 12px;
}

.landing-case-brand b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #0f172a;
}

.landing-case-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.landing-case-brand span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.landing-case-score {
  gap: 8px;
  margin: 24px 0 12px;
}

.landing-case-score strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.landing-case-card.green .landing-case-score strong {
  color: #10b981;
}

.landing-case-card.amber .landing-case-score strong {
  color: #f59e0b;
}

.landing-case-card.red .landing-case-score strong {
  color: #f43f5e;
}

.landing-case-score span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.landing-case-score em {
  padding: 5px 8px;
  border-radius: 8px;
  color: #059669;
  background: #ecfdf5;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.landing-case-card.amber .landing-case-score em {
  color: #b45309;
  background: #fffbeb;
}

.landing-case-card.red .landing-case-score em {
  color: #be123c;
  background: #fff1f2;
}

.landing-case-card p {
  flex: 1;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.landing-case-card footer {
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.landing-case-card footer span,
.landing-case-card footer button {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.landing-case-card footer button {
  padding: 0;
  background: transparent;
}

.landing-case-card:hover {
  border-color: rgba(112, 88, 255, 0.35);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.landing-case-card:hover footer button {
  color: #7058ff;
}

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.login-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 32px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
}

.login-brand-mark-modal {
  margin: 0 auto 18px;
}

.login-modal-card h2,
.login-modal-card p {
  text-align: center;
}

.login-modal-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
}

.login-modal-card p {
  margin: 8px 0 24px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 900px) {
  .landing-nav,
  .landing-demo-btn {
    display: none;
  }

  .landing-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .landing-shell {
    padding: 0 14px 48px;
  }

  .landing-header {
    height: 58px;
  }

  .landing-hero {
    padding-top: 48px;
  }

  .landing-brand-box-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-model-chips {
    justify-content: center;
  }

  .landing-start-btn {
    width: 100%;
  }

  .landing-case-grid {
    grid-template-columns: 1fr;
  }
}

.timus-writing-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 132px);
}

.timus-chat-panel,
.timus-article-panel {
  background: #fff;
  border: 1px solid #edf0f7;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(31, 45, 77, 0.06);
  overflow: hidden;
}

.timus-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 680px;
}

.timus-chat-panel header,
.timus-article-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #f0f2f8;
}

.timus-chat-panel h1,
.timus-article-panel h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.timus-chat-panel p,
.timus-article-panel header span {
  margin: 6px 0 0;
  color: #8b95a7;
  font-size: 13px;
  line-height: 1.5;
}

.timus-balance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e8ebf3;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fafbff;
  color: #6b7280;
  font-size: 12px;
}

.timus-balance strong {
  color: #5b5ce2;
  font-size: 14px;
}

.timus-chat-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 14px 18px;
  background: #fbfcff;
  border-bottom: 1px solid #f0f2f8;
}

.timus-chat-select,
.timus-chat-toolbar .timus-count-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: auto;
  margin-left: 0;
  border: 1px solid #e8ebf3;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #7b8497;
  font-size: 12px;
}

.timus-chat-select select,
.timus-chat-toolbar .timus-count-control input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font-weight: 700;
}

.timus-chat-toolbar .timus-count-control input {
  width: 42px;
  text-align: center;
}

.timus-chat-messages {
  flex: 1;
  padding: 22px 22px 8px;
  overflow-y: auto;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.timus-chat-messages article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.timus-chat-messages article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef2ff;
  color: #5b5ce2;
  font-size: 12px;
  font-weight: 800;
}

.timus-chat-messages article.user > span {
  background: #5b5ce2;
  color: #fff;
}

.timus-chat-messages article p {
  margin: 0;
  border-radius: 12px;
  padding: 11px 13px;
  background: #f5f7fb;
  color: #222b3d;
  font-size: 14px;
  line-height: 1.65;
}

.timus-chat-messages article.user p {
  background: #eef2ff;
}

.timus-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px 4px;
}

.timus-chat-suggestions button {
  border: 1px solid #e2e7f2;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #596377;
  font-size: 12px;
}

.timus-chat-input {
  padding: 14px 18px 18px;
  border-top: 1px solid #f0f2f8;
  background: #fff;
}

.timus-chat-input textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  padding: 13px 14px;
  color: #172033;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
}

.timus-chat-input textarea:focus {
  border-color: #7c83ff;
  box-shadow: 0 0 0 3px rgba(91, 92, 226, 0.12);
}

.timus-chat-input div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.timus-article-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.timus-article-panel header h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.35;
}

.timus-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px 0;
}

.timus-article-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f4f6ff;
  color: #6266d8;
  font-size: 12px;
  font-weight: 700;
}

.timus-article-canvas {
  flex: 1;
  margin: 18px 24px;
  padding: 28px 34px;
  min-height: 560px;
  border: 1px solid #edf0f7;
  border-radius: 14px;
  background: #fff;
  color: #20283a;
  font-size: 16px;
  line-height: 1.9;
  outline: none;
}

.timus-article-canvas h1,
.timus-article-canvas h2,
.timus-article-canvas h3 {
  color: #111827;
  line-height: 1.45;
}

.timus-article-canvas p {
  margin: 0 0 16px;
}

.timus-article-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 20px;
  border-top: 1px solid #f0f2f8;
  color: #8b95a7;
  font-size: 13px;
}

.timus-article-panel > footer div {
  display: flex;
  gap: 10px;
}

.timus-article-task-card {
  margin: 0 24px 20px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #e8ebf3;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .timus-writing-workbench {
    grid-template-columns: 1fr;
  }

  .timus-chat-panel {
    min-height: 520px;
  }
}

.ingest-preview-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  padding: 18px;
}

.ingest-preview-card.onboarding {
  width: min(1120px, calc(100vw - 48px));
  margin: 24px auto 0;
}

.ingest-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 14px;
}

.ingest-preview-head span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
}

.ingest-preview-head h2 {
  margin: 8px 0 4px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
}

.ingest-preview-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.ingest-sql-badge {
  min-width: 170px;
  text-align: right;
}

.ingest-sql-badge strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
}

.ingest-sql-badge small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 5px;
  word-break: break-all;
}

.ingest-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.ingest-stat-grid > div {
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.ingest-stat-grid small,
.ingest-platform-metrics small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.ingest-stat-grid strong {
  display: block;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
  margin: 3px 0;
}

.ingest-stat-grid span {
  color: #64748b;
  font-size: 12px;
}

.ingest-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ingest-platform-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ingest-platform-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.ingest-platform-title strong {
  color: #111827;
  font-size: 15px;
}

.ingest-platform-title span {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.ingest-platform-title span.done {
  background: #dcfce7;
  color: #15803d;
}

.ingest-platform-title span.pending {
  background: #fff7ed;
  color: #c2410c;
}

.ingest-platform-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #eef2f7;
}

.ingest-platform-metrics > div {
  background: #fbfdff;
  padding: 10px 8px;
}

.ingest-platform-metrics b {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 13px;
  white-space: nowrap;
}

.ingest-source-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ingest-source-list a,
.ingest-source-placeholder {
  display: grid;
  gap: 3px;
  min-height: 48px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  background: #ffffff;
  cursor: pointer;
}

.ingest-source-list a:hover,
.ingest-source-placeholder:hover {
  border-color: #c7d2fe;
  background: #f8fafc;
}

.ingest-source-list span {
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
}

.ingest-source-list strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
}

.ingest-table-map {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eef2f7;
  margin-top: 14px;
  padding-top: 12px;
}

.ingest-table-map span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.ingest-table-map b {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  background: #f8fafc;
}

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

.monitor-db-hero,
.monitor-db-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.monitor-db-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px;
}

.monitor-db-hero span {
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

.monitor-db-hero h2 {
  margin: 8px 0 4px;
  color: #0f172a;
  font-size: 22px;
}

.monitor-db-hero p,
.monitor-db-sql small,
.monitor-db-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.monitor-db-sql {
  min-width: 190px;
  text-align: right;
}

.monitor-db-sql strong {
  display: block;
  color: #15803d;
  font-size: 18px;
}

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

.monitor-db-kpis article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.monitor-db-kpis span,
.monitor-db-kpis em {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.monitor-db-kpis strong {
  display: block;
  margin: 4px 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.1;
}

.monitor-db-card {
  overflow: hidden;
}

.monitor-db-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
}

.monitor-db-card-head h2 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 16px;
}

.monitor-db-card-head > span {
  flex: 0 0 auto;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.monitor-db-table-wrap {
  overflow: auto;
}

.monitor-db-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}

.monitor-db-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  color: #475569;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  padding: 10px 12px;
}

.monitor-db-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
  padding: 10px 12px;
  max-width: 240px;
}

.monitor-db-table .wide-cell {
  min-width: 260px;
  max-width: 430px;
}

.monitor-db-table tr:hover td {
  background: #fbfdff;
}

.db-bool,
.db-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.db-bool.yes {
  background: #dcfce7;
  color: #15803d;
}

.db-bool.no {
  background: #f1f5f9;
  color: #64748b;
}

.db-chip {
  margin: 0 4px 4px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.db-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.db-link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .ingest-stat-grid,
  .ingest-platform-grid,
  .monitor-db-kpis {
    grid-template-columns: 1fr;
  }

  .ingest-preview-head,
  .monitor-db-hero {
    flex-direction: column;
  }

  .ingest-sql-badge,
  .monitor-db-sql {
    min-width: 0;
    text-align: left;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 84px 240px minmax(0, 1fr);
  transition: grid-template-columns 240ms ease-in-out;
}

.app-shell.secondary-collapsed {
  grid-template-columns: 84px 0 minmax(0, 1fr);
}

.app-shell.no-secondary,
.app-shell.no-secondary.secondary-collapsed {
  grid-template-columns: 84px minmax(0, 1fr);
}

.primary-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  background: #ffffff;
  border-right: 1px solid #f1f3f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  gap: 0;
}

.logo {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #4f46e5;
  font-weight: 800;
  background: #f3f0ff;
  margin-bottom: 22px;
  box-shadow: inset 0 0 0 1px #e7e2ff;
}

.logo:hover {
  background: #ebe7ff;
}

.top-nav-btn,
.rail-chip {
  width: 68px;
  min-height: 63px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8f8779;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px 4px 9px;
  font-size: 12px;
  font-weight: 600;
}

.nav-glyph {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.nav-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.top-nav-btn.active,
.top-nav-btn:hover,
.rail-chip:hover {
  color: #3e27da;
  background: #f0edff;
}

.top-nav-btn.active strong {
  color: #3e27da;
  background: transparent;
}

.rail-spacer {
  flex: 1;
}

.secondary {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #f1f3f5;
  padding: 0;
  overflow: hidden auto;
  width: 240px;
  opacity: 1;
  transition: width 240ms ease-in-out, padding 240ms ease-in-out, opacity 180ms ease-in-out, border-color 240ms ease-in-out;
}

.secondary-collapsed .secondary {
  width: 0;
  opacity: 0;
  pointer-events: none;
  border-right-width: 0;
  border-right-color: transparent;
}

.secondary-title {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
  margin: 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.secondary-title-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-title-svg {
  width: 16px;
  height: 16px;
  color: #8f7fff;
  flex: 0 0 auto;
}

.secondary-title strong {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.collapse-btn {
  border: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: transparent;
  color: #a79e91;
  display: grid;
  place-items: center;
}

.collapse-btn:hover {
  background: #f9fafb;
  color: #374151;
}

.secondary-float-toggle {
  position: fixed;
  left: 74px;
  top: 18px;
  z-index: 40;
  width: 20px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #fff;
  color: #8f8779;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-in-out;
}

.secondary-collapsed .secondary-float-toggle {
  opacity: 1;
  pointer-events: auto;
}

.sub-group {
  margin-bottom: 8px;
  padding: 4px 14px 0;
}

.sub-heading {
  color: var(--muted);
  font-size: 11px;
  padding: 12px 12px 8px;
  font-weight: 700;
  border-bottom: 1px solid #f1f3f5;
  margin-bottom: 4px;
}

.sub-nav-btn {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8f8779;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 600;
}

.sub-nav-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #b0a89c;
  flex: 0 0 auto;
}

.sub-nav-svg {
  width: 17px;
  height: 17px;
}

.sub-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-nav-btn:hover,
.sub-nav-btn.active {
  color: #3e27da;
  background: #f0edff;
  font-weight: 700;
}

.sub-nav-btn:hover .sub-nav-icon,
.sub-nav-btn.active .sub-nav-icon {
  color: #3e27da;
}

.secondary-recent-block {
  margin: 22px 14px 0;
  padding-top: 14px;
  border-top: 1px solid #f1f3f5;
}

.secondary-recent-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 0 12px 10px;
}

.secondary-recent-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-recent-item:hover {
  background: #f9fafb;
  color: #3e27da;
}

.secondary-recent-item.active {
  background: #f3f0ff;
  color: #4f35dc;
  font-weight: 800;
}

.main {
  min-width: 0;
  padding: 0;
}

.page-container {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 28px 36px 36px;
}

.brand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #eef5ff;
  color: var(--brand);
  font-weight: 800;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}

.page-head {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.page-head h1 {
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}

.page-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-title-slice-echo {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.competitor-title-entity-echo {
  align-self: center;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1.5px solid #f04438;
  border-radius: 8px;
  background: #fff8f6;
  color: #b42318;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.competitor-title-entity-echo i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f04438;
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.12);
}

.page-head p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.head-slice-controls {
  margin-left: 4px;
  align-self: flex-start;
}

.page-head.has-slice-controls .head-slice-controls {
  margin-left: auto;
}

.page-head.has-slice-controls .head-actions {
  margin-left: 0;
}

.head-slice-controls .strategy-slice-btn {
  min-width: 92px;
  height: 34px;
  padding: 0 12px;
}

.head-slice-controls .strategy-slice-btn.need {
  min-width: 112px;
}

.head-slice-menu {
  z-index: 80;
}

.head-actions {
  display: flex;
  margin-left: auto;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  padding: 0 11px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.file-import-btn {
  cursor: pointer;
}

.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.danger {
  color: var(--red);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

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

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

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 20px;
}

.panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h2 {
  font-size: 16px;
  color: var(--ink);
}

.panel-head p,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.panel-body {
  padding: 20px;
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}

.page-stack {
  display: grid;
  gap: 18px;
}

.page-toolbar {
  margin-bottom: 14px;
}

.brand-identity-grid {
  grid-template-columns: minmax(0, 1fr) 180px;
}

.inline-count {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}

.inline-count strong {
  font-size: 18px;
  color: var(--ink);
}

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

.library-card {
  min-height: 179px;
}

.library-card h3 {
  margin-top: 10px;
}

.sentiment-metrics {
  margin: 12px 0 16px;
}

.metric {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.metric strong {
  font-size: 26px;
  color: var(--ink);
}

.metric em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.field,
.full-field {
  display: grid;
  gap: 7px;
}

.full-field {
  grid-column: 1 / -1;
}

.field label,
.full-field label,
.label {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  min-height: 34px;
  padding: 0 11px;
  outline: none;
}

textarea {
  padding: 10px 11px;
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.input-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px;
}

.pill-row,
.toolbar,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill {
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: #475569;
  font-size: 11px;
}

.pill.blue {
  color: var(--brand);
  background: #eef5ff;
  border-color: #bfdbfe;
}

.pill.green {
  color: var(--green);
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.pill.red {
  color: var(--red);
  background: #fef2f2;
  border-color: #fecaca;
}

.pill.amber {
  color: var(--amber);
  background: #fffbeb;
  border-color: #fde68a;
}

.brand-card-section {
  box-shadow: none;
  padding: 20px;
  margin-bottom: 20px;
}

.brand-card-identity {
  min-height: 209px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: visible;
}

.brand-card-identity.alias-editing {
  min-height: 246px;
}

.brand-card-details {
  min-height: 293px;
}

.brand-card-row {
  min-height: 75px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.brand-row-head {
  min-height: 27px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.brand-row-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.pill.brand-required {
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--brand);
  background: #eef5ff;
  border-color: #dbeafe;
}

.brand-inline-note {
  color: var(--muted);
  font-size: 11.5px;
}

.brand-inline-note strong {
  color: var(--ink);
  font-size: 13px;
}

.brand-inline-edit {
  margin-left: auto;
  min-height: 27px;
  width: 55px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: #8a7d68;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.brand-inline-edit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.brand-line-input {
  min-height: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.brand-line-input[readonly] {
  cursor: pointer;
}

.competitor-inline-picker {
  position: relative;
  display: flex;
  align-items: center;
  width: min(420px, 100%);
}

.competitor-picker-trigger {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.competitor-picker-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-picker-trigger b {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.competitor-native-select {
  width: min(420px, 100%);
  cursor: pointer;
}

.competitor-picker-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, calc(100vw - 80px));
  max-height: 320px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.competitor-picker-search {
  width: 100%;
  margin-bottom: 8px;
}

.competitor-picker-options {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.competitor-picker-option {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.competitor-picker-option:hover {
  background: #f5f7fb;
}

.competitor-picker-option.active {
  background: #eef5ff;
  color: var(--brand);
}

.competitor-picker-empty {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.competitor-selected-echo {
  margin-left: auto;
  max-width: 280px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #e7edf7;
  border-radius: 999px;
  background: #f8fbff;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-alias-list {
  min-height: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}

.brand-alias-list-single {
  flex-wrap: nowrap;
  overflow: hidden;
  padding-bottom: 0;
}

.brand-alias-list-single .brand-alias-pill {
  flex: 0 0 auto;
  max-width: 156px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-alias-list-single .brand-alias-more-pill {
  flex: 0 0 auto;
  color: var(--brand);
  background: #eef5ff;
  border-color: #bfdbfe;
}

.brand-region-list {
  min-height: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}

.brand-need-list {
  min-height: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}

.pill.brand-alias-pill {
  min-height: 32px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: var(--soft);
  border-color: var(--line);
  font-size: 12px;
}

.brand-alias-existing-note {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0 8px;
  font-size: 12px;
}

.brand-region-pill {
  min-height: 34px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: #1f2937;
  font-size: 12px;
}

.brand-region-pill strong {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.brand-region-pill small {
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
}

.brand-need-pill {
  min-height: 34px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: #14532d;
  font-size: 12px;
}

.brand-need-pill strong {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.brand-need-pill small {
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
}

.market-service-need-list .brand-need-pill.is-empty {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #64748b;
}

.market-service-need-list .brand-need-pill.is-empty small {
  background: #eef2f7;
  color: #64748b;
}

.brand-card-row.alias-editing {
  min-height: 111px;
}

.brand-card-row.alias-editing .brand-row-head {
  min-height: 20px;
}

.brand-alias-editor {
  min-height: 40px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
}

.brand-region-editor {
  min-height: 44px;
}

.brand-need-editor {
  min-height: 44px;
}

.brand-edit-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--brand);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.brand-edit-chip button {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  line-height: 1;
}

.brand-alias-input {
  flex: 1;
  min-width: 100px;
  min-height: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 4px;
  font-size: 13px;
}

.brand-alias-input:focus {
  box-shadow: none;
}

.brand-alias-actions {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.brand-alias-cancel,
.brand-alias-save {
  min-height: 30px;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.brand-alias-cancel {
  border: 1px solid var(--line);
  background: #fff;
  color: #8a7d68;
}

.brand-alias-save {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  min-width: 89px;
}

.brand-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brand-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-field.full-field {
  grid-column: 1 / -1;
}

.brand-field label {
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 19px;
}

.brand-field input {
  min-height: 38px;
  height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
}

.brand-url-control {
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
}

.brand-url-control:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.brand-url-control select {
  width: 90px;
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 12px;
  background: #fff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
}

.brand-url-control input {
  min-height: 36px;
  height: 36px;
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-intro {
  min-height: 220px;
  height: 220px;
  resize: none;
  overflow: auto;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.brand-compact-textarea {
  min-height: 92px;
  height: 92px;
  resize: none;
  overflow: hidden;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.brand-structured-pills {
  min-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.pill.brand-product-pill,
.pill.brand-city-pill {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
}

.entity-list {
  display: grid;
  gap: 16px;
}

.entity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  padding: 20px;
  position: relative;
}

.product-card {
  min-height: 224px;
  height: 224px;
}

.product-card.draft-card {
  height: 270px;
}

.competitor-card {
  min-height: 270px;
}

.competitor-card.alias-editing {
  min-height: 331px;
}

.competitor-card.draft-card {
  min-height: 236px;
}

.competitor-readonly-card {
  min-height: 244px;
}

.entity-title-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entity-title-input {
  flex: 1;
  min-height: 34px;
  height: 34px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  padding: 6px 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.entity-title-input:hover {
  background: var(--soft);
}

.entity-delete {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #8f8f8f;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 16px;
  opacity: 0;
  transition: opacity 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.entity-card:hover .entity-delete,
.library-timus-card:hover .entity-delete {
  opacity: 1;
}

.entity-delete:hover {
  border-color: #fecaca;
  background: #fff1f2;
  color: var(--red);
}

.entity-label {
  display: block;
  margin-top: 20px;
  margin-bottom: 11px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
}

.entity-textarea {
  width: 100%;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.55;
  resize: none;
  overflow: hidden;
}

.product-intro {
  min-height: 100px;
  height: 100px;
}

.competitor-point {
  min-height: 60px;
  height: 60px;
}

.competitor-view-title {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.competitor-view-point {
  min-height: 60px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.competitor-search {
  position: absolute;
  top: 36px;
  right: 160px;
  width: 248px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 11px;
}

.competitor-search input {
  border: 0;
  min-height: 30px;
  padding: 0;
  background: transparent;
  font-size: 12.5px;
}

.competitor-search input:focus {
  box-shadow: none;
}

.competitor-alias-head {
  min-height: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.brand-inline-edit.compact {
  min-height: 26px;
  width: 53px;
  font-size: 11px;
}

.brand-inline-edit.competitor-alias-add-btn {
  width: auto;
  min-width: 70px;
  padding-inline: 10px;
}

.competitor-alias-list {
  min-height: 40px;
}

.competitor-alias-editor {
  margin-top: 4px;
}

.entity-draft-actions {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.entity-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-dark);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.entity-empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
}

.library-page {
  position: relative;
}

.library-toolbar {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.library-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.library-tabs button {
  min-height: 31px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #8a7d68;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
}

.library-tabs button.active {
  color: var(--brand);
  border-color: rgba(22, 119, 255, 0.18);
  background: #eef5ff;
}

.library-search {
  width: 198px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.library-search input {
  border: 0;
  min-height: 30px;
  padding: 0;
  background: transparent;
  font-size: 12.5px;
}

.library-search input:focus {
  box-shadow: none;
}

.library-add-menu {
  position: absolute;
  top: -18px;
  right: 6px;
  z-index: 20;
  width: 284px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.13);
  padding: 8px;
}

.library-add-option {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px;
  text-align: left;
}

.library-add-option:hover {
  background: var(--soft);
}

.library-add-option span {
  grid-row: 1 / 3;
}

.library-add-option strong {
  font-size: 13px;
}

.library-add-option small {
  color: var(--muted);
  font-size: 12px;
}

.library-timus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.library-timus-card {
  min-height: 136px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px 14px 14px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.library-timus-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.library-type {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.library-timus-card strong {
  color: var(--ink);
  font-size: 14px;
}

.library-timus-card small,
.library-timus-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.library-timus-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.library-timus-card div span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  padding: 2px 7px;
  color: #64748b;
  font-size: 11px;
}

.library-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  z-index: 2;
}

.library-detail-page {
  width: min(553px, 100%);
}

.library-detail-top {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.library-detail-top h3 {
  color: var(--ink);
  font-size: 16px;
}

.library-add-panel {
  width: min(553px, 100%);
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 6px;
}

.case-library-page .case-ingest-panel {
  width: 100%;
  padding: 18px;
}

.case-library-page .library-panel-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.library-detail-panel {
  margin-top: 0;
}

.library-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: -2px;
}

.library-form-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.library-form-head h3 {
  font-size: 16px;
  color: var(--ink);
}

.library-form-head p {
  margin-top: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.library-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 13px;
}

.library-form-field:first-child,
.library-form-field:nth-child(2),
.library-upload-box,
.library-check {
  grid-column: 1 / -1;
}

.library-form-field {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
}

.library-form-field em,
.library-form-field small {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.library-form-field textarea {
  min-height: 184px;
  resize: none;
}

.library-form-field input {
  min-height: 37px;
  height: 37px;
}

.library-quote-field > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.library-quote-field {
  transform: translateY(-26px);
}

.library-upload-box {
  min-height: 150px;
  border: 1px dashed var(--line-dark);
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  gap: 4px;
}

.library-upload-box strong {
  color: var(--ink);
}

.library-product-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  transform: translateY(-6px);
}

.library-product-picker button {
  min-height: 27px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: #8a7d68;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.library-product-picker button.selected {
  color: var(--brand);
  border-color: #bfdbfe;
  background: #eef5ff;
}

.library-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 12.5px;
}

.library-check input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.library-check small {
  color: var(--muted);
}

.library-form-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 104px;
}

.library-form-foot .btn {
  min-height: 36px;
}

.library-detail-panel .library-quote-field,
.library-detail-panel .library-product-picker {
  transform: none;
}

.library-detail-panel .library-form-foot {
  margin-top: 22px;
}

.tag-btn,
.seg-btn {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #475569;
  padding: 0 10px;
}

.tag-btn.active,
.seg-btn.active {
  color: var(--brand);
  border-color: #bfdbfe;
  background: #eef5ff;
}

.source-pref-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.citation-page {
  display: grid;
  gap: 0;
  overflow: visible;
}

.citation-toolbar-panel {
  border-color: #edf0f4;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.025);
  overflow: visible;
  position: relative;
  z-index: 30;
}

.citation-toolbar-head {
  min-height: 70px;
  align-items: center;
  gap: 18px;
}

.panel-icon-svg {
  width: 20px;
  height: 20px;
}

.citation-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.citation-date-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
  padding: 0 10px 0 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
}

.citation-date-field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.citation-date-field .date-range-btn {
  min-height: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  padding: 0 2px;
}

.citation-filter-stack {
  display: grid;
  gap: 0;
  padding: 24px 30px;
  overflow: visible;
  scrollbar-width: thin;
}

.citation-filter-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  min-width: max-content;
  padding: 0;
}

.citation-filter-primary {
  min-height: 48px;
}

.citation-filter-primary .citation-select-field {
  flex: 0 0 auto;
}

.citation-filter-row .field-lite {
  margin: 0;
}

.citation-filter-row > label:not(.citation-date-field) {
  flex: 0 1 136px;
}

.citation-filter-primary > label:not(.citation-date-field) {
  flex: 0 1 160px;
}

.citation-filter-row .no-field-label {
  align-self: flex-end;
}

.citation-date-field {
  flex: 0 0 158px;
}

.citation-date-field .date-range-btn {
  width: 94px;
}

.citation-filter-row > .citation-segmented {
  flex: 0 0 auto;
}

.citation-source-type-segmented {
  margin-left: 0;
}

.citation-article-search {
  flex: 0 0 386px;
  width: min(386px, 38vw);
  min-width: 300px;
  max-width: 386px;
}

.citation-topic-picker {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.citation-topic-dropdown {
  position: relative;
  z-index: 120;
}

.citation-topic-picker > span {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.citation-topic-trigger {
  min-height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 300px;
  padding: 0 20px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  list-style: none;
}

.citation-topic-trigger::-webkit-details-marker {
  display: none;
}

.citation-topic-trigger strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
}

.citation-select-field {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.citation-select-field > span {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 800;
}

.citation-select-field select {
  min-width: 210px;
}

.citation-topic-trigger i {
  color: #94a3b8;
  font-style: normal;
  font-weight: 800;
}

.citation-topic-menu {
  position: absolute;
  z-index: 300;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, 72vw);
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  padding: 10px;
}

.citation-topic-search {
  min-height: 36px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  margin-bottom: 8px;
}

.citation-topic-options {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.citation-topic-options button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  padding: 0 10px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.citation-topic-options button:hover,
.citation-topic-options button.active {
  background: #eef2ff;
  color: #4f46e5;
}

.citation-filter-row select,
.citation-filter-row input {
  min-height: 40px;
  border-radius: 12px;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.citation-segmented {
  align-self: end;
  min-height: 40px;
  border-radius: 12px;
  background: #f3f4f6;
  padding: 4px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
}

.citation-group-segmented {
  min-width: max-content;
}

.citation-segmented .seg-btn {
  min-height: 32px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

.citation-segmented .seg-btn.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.citation-card {
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
  padding: 0;
}

.citation-card.tl-chart-card {
  border-radius: 0 0 12px 12px !important;
}

.citation-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f0f2f5;
  padding: 26px 40px 18px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}

.citation-card-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 22px;
  margin-left: auto;
}

.citation-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
}

.citation-current-view {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.citation-card-head p {
  margin: 3px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.citation-card-head > span {
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #4f46e5;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.citation-table-wrap {
  overflow: auto;
}

.citation-table {
  --citation-source-col: 42%;
  --citation-count-col: 96px;
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}

.citation-table th,
.citation-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 12px 14px;
  color: #334155;
  font-size: 13px;
  vertical-align: middle;
}

.citation-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.citation-table thead th:nth-child(1),
.citation-table tbody .citation-platform-row td:nth-child(1) {
  width: var(--citation-source-col);
}

.citation-table thead th:nth-child(2),
.citation-table tbody .citation-platform-row td:nth-child(2) {
  width: var(--citation-count-col);
}

.citation-table thead th:nth-child(2),
.citation-table tbody .citation-platform-row td:nth-child(2) {
  text-align: center;
}

.citation-table thead th:nth-child(3),
.citation-table tbody .citation-platform-row td:nth-child(3) {
  text-align: center;
}

.citation-platform-row:hover td {
  background: #f8fbff;
}

.citation-platform-row.expanded td {
  background: #f8fbff;
}

.citation-source-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.citation-source-toggle i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: #f1f5f9;
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}

.citation-platform-row:hover .citation-source-toggle i,
.citation-platform-row.expanded .citation-source-toggle i {
  background: #eef2ff;
  color: #4f46e5;
}

.citation-source-toggle strong {
  display: block;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 800;
}

.citation-source-toggle small {
  display: none;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.citation-source-toggle em {
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #16a34a;
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.citation-sort-btn,
.citation-total {
  border: 0;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.citation-sort-btn span {
  margin-left: 4px;
}

.citation-total {
  min-width: 52px;
  margin: 0 auto;
  padding: 3px 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.citation-models {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(46px, max-content);
  align-items: center;
  gap: 4px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.citation-models::-webkit-scrollbar {
  display: none;
}

.citation-model-badge {
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 46px;
  min-height: 32px;
  border: 1px solid var(--model-color);
  border-radius: 8px;
  background: var(--model-color);
  color: #fff;
  padding: 4px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.citation-model-badge b {
  color: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.citation-model-badge small {
  color: inherit;
  opacity: 0.92;
  font-size: 9px;
  font-weight: 800;
}

.citation-model-badge.zero {
  border-color: var(--model-color);
  background: var(--model-color);
  color: #fff;
  opacity: 0.82;
}

.citation-own-btn {
  min-height: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  padding: 0 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.citation-own-btn:hover {
  border-color: #93c5fd;
  color: #2563eb;
  background: #eff6ff;
}

.citation-own-btn.active {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #16a34a;
}

.citation-article-row td {
  background: #f8fbff;
  padding: 0 14px 14px;
  width: auto;
}

.citation-articles {
  overflow: hidden;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: #fff;
}

.citation-article-item {
  display: grid;
  grid-template-columns: minmax(0, var(--citation-source-col)) var(--citation-count-col) minmax(220px, 1fr);
  align-items: center;
  column-gap: 0;
}

.citation-article-item {
  border-top: 1px solid #edf2f7;
  padding: 12px 0;
}

.citation-article-item:first-child {
  border-top: 0;
}

.citation-article-main {
  min-width: 0;
  padding-left: 14px;
  padding-right: 12px;
}

.citation-article-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.citation-article-line a,
.citation-placeholder-link,
.citation-real-link {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.citation-missing-url {
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.citation-missing-url em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #94a3b8;
  padding: 2px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.citation-article-line a:hover,
.citation-placeholder-link:hover,
.citation-real-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.citation-article-line .citation-own-btn {
  flex: 0 0 auto;
}

.citation-article-item > b {
  justify-self: center;
  color: #4f46e5;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.citation-article-item > span:last-child {
  justify-self: center;
  padding-right: 14px;
}

.citation-empty-owned {
  padding: 22px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.citation-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid #edf2f7;
  padding: 12px 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.citation-load-more.done {
  color: #98a2b3;
}

.source-pref-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 37px;
}

.source-pref-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.source-pref-date .date-range-btn {
  height: 29px;
  min-height: 29px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #334155;
  box-shadow: none;
}

.source-pref-segment {
  display: flex;
  align-items: center;
  gap: 4px;
}

.source-pref-segment button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  padding: 6px 12px;
  font-size: 14px;
}

.source-pref-segment button.active {
  background: #4f46e5;
  color: #fff;
}

.source-pref-search {
  position: relative;
  margin-left: auto;
}

.source-pref-search input {
  width: 192px;
  height: 37px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px 0 36px;
  font-size: 14px;
}

.source-pref-search::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.8px solid #94a3b8;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.source-pref-search::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 23px;
  width: 6px;
  height: 1.8px;
  border-radius: 2px;
  background: #94a3b8;
  transform: rotate(45deg);
  pointer-events: none;
}

.source-pref-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.source-pref-metric-card,
.source-pref-card {
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.source-pref-metric-card {
  height: 97px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.source-pref-metric-card span {
  color: #64748b;
  font-size: 14px;
}

.source-pref-metric-card strong {
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.source-pref-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
}

.source-pref-card {
  padding: 24px;
}

.source-pref-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
}

.source-pref-main-chart,
.source-pref-share-card {
  height: 449px;
}

.source-pref-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 52px 8px 132px;
  color: #94a3b8;
  font-size: 12px;
}

.source-pref-stacked-chart {
  display: grid;
  gap: 8px;
}

.source-pref-stack-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  min-height: 26px;
}

.source-pref-stack-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-size: 12px;
}

.source-pref-stack-row > div {
  height: 26px;
  display: flex;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(to right, rgba(148, 163, 184, 0.16) 1px, transparent 1px) 0 0 / 25% 100%,
    #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.72);
}

.source-pref-stack-row i {
  display: block;
  height: 100%;
  min-width: 2px;
}

.source-pref-stack-row em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.source-pref-donut-wrap {
  display: grid;
  place-items: center;
  gap: 14px;
  padding-top: 2px;
}

.source-pref-donut {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.source-pref-donut span {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  display: grid;
  place-items: center;
  align-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.source-pref-donut small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.source-pref-legend {
  width: 100%;
  display: grid;
  gap: 6px;
}

.source-pref-legend div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.source-pref-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.source-pref-legend strong {
  color: #0f172a;
  font-weight: 700;
}

.source-pref-table-card {
  padding: 0;
  overflow: hidden;
}

.source-pref-card-head {
  padding: 16px 24px 12px;
}

.source-pref-card-head h2 {
  margin: 0;
}

.source-pref-table-wrap {
  width: 100%;
  max-height: 760px;
  overflow: auto;
}

.source-pref-table {
  min-width: 920px;
}

.source-pref-table th,
.source-pref-table td {
  padding: 8px 22px;
  line-height: 1.35;
}

.source-pref-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.source-pref-table tbody tr {
  cursor: pointer;
}

.source-pref-table tbody tr.selected td,
.source-pref-table tbody tr:hover td {
  background: #f8fbff;
}

.source-pref-table tbody tr.selected td:first-child {
  color: #4f46e5;
  font-weight: 700;
}

.source-pref-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid var(--pill-border, #e5e7eb);
  border-radius: 6px;
  background: var(--pill-bg, #fff);
  color: var(--pill-fg, #475569);
  padding: 1px 7px;
  margin: 0 5px 3px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.source-pref-table-foot {
  padding: 10px 22px 14px;
  color: #64748b;
  font-size: 12px;
}

.source-pref-toolbar-panel {
  border-color: #edf0f4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.source-pref-toolbar-head {
  min-height: 70px;
  align-items: center;
}

.source-pref-toolbar-actions,
.source-pref-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.source-pref-toolbar-actions {
  justify-content: flex-end;
}

.source-pref-toolbar-actions > span {
  color: #8b95a5;
  font-size: 13px;
  font-weight: 700;
}

.source-pref-filter-row {
  justify-content: space-between;
  padding-top: 18px;
}

.source-pref-filter-row .source-pref-segment {
  min-height: 40px;
  border-radius: 12px;
  background: #f5f7fb;
  padding: 4px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.035);
}

.source-pref-filter-row .source-pref-segment button {
  min-height: 32px;
  border-radius: 9px;
  color: #667085;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.source-pref-filter-row .source-pref-segment button.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.source-pref-filter-row .source-pref-search {
  min-width: 240px;
  margin-left: 0;
}

.source-pref-filter-row .source-pref-search input {
  width: 240px;
  min-height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.source-pref-filter-row .source-pref-search::before,
.source-pref-filter-row .source-pref-search::after {
  display: none;
}

.source-pref-metric-card {
  min-height: 124px;
  height: auto;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-content: initial;
  gap: 12px;
}

.source-pref-metric-card.primary {
  border-color: #dad7ff;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 78%);
}

.source-pref-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-pref-metric-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #eef2ff;
  color: #5b50f2;
  box-shadow: 0 8px 16px rgba(91, 80, 242, 0.12);
}

.source-pref-metric-card.primary .source-pref-metric-logo {
  background: linear-gradient(135deg, #5b50f2, #7c3aed);
  color: #fff;
}

.source-pref-metric-svg {
  width: 20px;
  height: 20px;
}

.source-pref-metric-mark {
  border-radius: 999px;
  background: #f8fafc;
  color: #98a2b3;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.source-pref-metric-main span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.source-pref-metric-main strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.source-pref-metric-card.primary .source-pref-metric-main strong {
  color: #4f46e5;
}

.source-pref-metric-card p {
  margin: 0;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-pref-table-card {
  border-color: #edf0f4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.source-pref-card-head {
  border-bottom: 1px solid #f0f2f5;
}

.source-pref-card-head h2 {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.source-pref-card-head p {
  margin: 3px 0 0;
  color: #98a2b3;
  font-size: 12px;
}

.source-pref-page {
  display: grid;
  gap: 22px;
}

.source-pref-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 0 12px;
  overflow: visible;
}

.source-pref-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 214px;
  min-width: 0;
}

.source-pref-date-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.source-pref-date-label svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.source-pref-date-btn {
  min-width: 0;
  width: 154px;
  height: 34px;
  border-radius: 8px;
  border-color: #dfe3ea;
  color: #17233b;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.09);
}

.source-pref-filter-row .source-pref-segment {
  flex: 0 0 420px;
  min-width: 0;
  min-height: 38px;
  flex-wrap: nowrap;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  gap: 1px;
  box-shadow: none;
}

.source-pref-filter-row .source-pref-segment button {
  min-width: 0;
  width: 58px;
  min-height: 30px;
  border-radius: 8px;
  color: #334155;
  padding: 0 7px;
  font-size: 13px;
  font-weight: 700;
}

.source-pref-filter-row .source-pref-segment button:nth-child(1) {
  width: 70px;
}

.source-pref-filter-row .source-pref-segment button:nth-child(3) {
  width: 74px;
}

.source-pref-filter-row .source-pref-segment button:nth-child(4),
.source-pref-filter-row .source-pref-segment button:nth-child(5) {
  width: 72px;
}

.source-pref-filter-row .source-pref-segment button.active {
  background: #5b36f2;
  color: #fff;
  box-shadow: none;
}

.source-pref-filter-row .source-pref-search {
  position: relative;
  flex: 0 0 168px;
  min-width: 0;
  margin-left: 0;
}

.source-pref-filter-row .source-pref-search input {
  width: 168px;
  height: 36px;
  min-height: 36px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  padding: 0 10px 0 34px;
  font-size: 13px;
  box-shadow: none;
}

.source-pref-filter-row .source-pref-search input::placeholder {
  color: #8b95a5;
}

.source-pref-filter-row .source-pref-search::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #98a2b3;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.source-pref-filter-row .source-pref-search::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 23px;
  display: block;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: #98a2b3;
  transform: rotate(45deg);
  pointer-events: none;
}

.source-pref-metrics {
  gap: 22px;
}

.source-pref-metric-card {
  min-height: 146px;
  height: auto;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.source-pref-metric-card span {
  color: #64748b;
  font-size: 18px;
  font-weight: 500;
}

.source-pref-metric-card strong {
  color: #00112f;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.source-intel-page {
  display: grid;
  gap: 16px;
}

.source-intel-card {
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.source-intel-card-head {
  min-height: 58px;
  padding: 16px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.source-intel-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
}

.source-intel-callout {
  margin: 0 24px 14px;
  padding: 12px 14px;
  border: 1px solid #eef2ff;
  border-radius: 10px;
  background: #fbfbff;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.source-intel-callout strong {
  color: #0f172a;
  font-weight: 700;
}

.source-intel-table-wrap {
  width: 100%;
  overflow: auto;
}

.source-intel-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.source-intel-table th,
.source-intel-table td {
  padding: 11px 18px;
  border-top: 1px solid #f1f5f9;
  text-align: left;
  color: #334155;
  font-size: 13px;
  vertical-align: middle;
}

.source-intel-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.source-intel-table tbody tr:hover td {
  background: #fafcff;
}

.source-intel-heat-table th:not(:nth-child(2)),
.source-intel-heat-table td:not(:nth-child(2)) {
  text-align: center;
}

.source-intel-source-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 700;
}

.source-intel-source-name em {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.source-intel-heat-cell {
  min-width: 58px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  color: #64748b;
}

.source-intel-heat-cell b {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.source-intel-heat-cell small {
  color: #16a34a;
  font-size: 11px;
  font-weight: 600;
}

.source-intel-legend {
  padding: 12px 24px 16px;
  border-top: 1px solid #f8fafc;
  color: #94a3b8;
  font-size: 12px;
}

.source-intel-trend-head {
  align-items: flex-start;
}

.source-intel-trend-controls,
.source-intel-switch,
.source-intel-topic {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.source-intel-trend-controls span,
.source-intel-topic span {
  color: #64748b;
  font-size: 13px;
}

.source-intel-mini-btn,
.source-intel-switch button,
.source-intel-topic button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  padding: 5px 10px;
  font-size: 13px;
}

.source-intel-mini-btn.active,
.source-intel-switch button.active,
.source-intel-topic button.active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.source-intel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 14px;
}

.source-intel-metrics div {
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fff;
  display: grid;
  align-content: center;
  gap: 5px;
}

.source-intel-metrics span {
  color: #64748b;
  font-size: 13px;
}

.source-intel-metrics strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

.source-intel-metrics em {
  color: #16a34a;
  font-size: 12px;
  font-style: normal;
}

.source-intel-chart {
  padding: 0 24px 18px;
}

.source-intel-chart svg {
  width: 100%;
  height: 210px;
  display: block;
}

.source-intel-perspective-card .source-intel-card-head {
  border-bottom: 1px solid #f8fafc;
}

.source-intel-toolbar {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.source-intel-search {
  position: relative;
}

.source-intel-search input {
  width: 206px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px 0 34px;
  color: #0f172a;
  font-size: 13px;
}

.source-intel-search::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 1.7px solid #94a3b8;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.source-intel-search::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 21px;
  width: 6px;
  height: 1.7px;
  border-radius: 2px;
  background: #94a3b8;
  transform: rotate(45deg);
  pointer-events: none;
}

.source-intel-perspective-table th:not(:nth-child(2)),
.source-intel-perspective-table td:not(:nth-child(2)) {
  text-align: center;
}

.source-intel-name-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.source-intel-name-cell a,
.source-intel-name-cell strong {
  display: block;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.source-intel-name-cell a:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.source-intel-name-cell small {
  max-width: 420px;
  color: #94a3b8;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-intel-name-cell em {
  width: fit-content;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  padding: 2px 7px;
  font-size: 12px;
  font-style: normal;
}

.source-intel-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.source-intel-status.new {
  background: #ecfdf5;
  color: #059669;
}

.source-intel-perspective-card {
  border-color: #edf0f4;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

.source-intel-perspective-card .source-intel-card-head {
  min-height: 54px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f5;
}

.source-intel-perspective-card .source-intel-card-head h2 {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.source-intel-perspective-card .source-intel-card-head .btn {
  min-height: 30px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
}

.source-intel-perspective-card .source-intel-toolbar {
  padding: 12px 18px;
  border-bottom: 1px solid #f4f6f8;
  background: #fff;
  gap: 8px;
}

.source-intel-perspective-card .source-intel-topic,
.source-intel-perspective-card .source-intel-switch {
  min-height: 32px;
  border-radius: 8px;
  background: #f7f8fa;
  padding: 3px;
  gap: 2px;
}

.source-intel-perspective-card .source-intel-topic span {
  padding: 0 7px;
  color: #8b95a5;
  font-size: 12px;
  font-weight: 700;
}

.source-intel-perspective-card .source-intel-topic button,
.source-intel-perspective-card .source-intel-switch button {
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  color: #667085;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
}

.source-intel-perspective-card .source-intel-topic button.active,
.source-intel-perspective-card .source-intel-switch button.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.source-intel-perspective-card .source-intel-search {
  margin-left: auto;
}

.source-intel-perspective-card .source-intel-search input {
  width: 190px;
  height: 32px;
  border-radius: 7px;
  font-size: 12px;
}

.source-intel-perspective-card .citation-table-wrap {
  max-height: none;
  overflow-x: auto;
}

.source-intel-perspective-card .citation-table {
  --citation-source-col: 50%;
  --citation-count-col: 108px;
  min-width: 980px;
}

.source-intel-perspective-card .citation-table th,
.source-intel-perspective-card .citation-table td {
  padding: 10px 14px;
  font-size: 13px;
}

.source-intel-perspective-card .citation-table th {
  background: #fafafa;
  color: #8b95a5;
  font-size: 12px;
  font-weight: 700;
}

.source-intel-perspective-card .citation-source-toggle {
  min-height: 38px;
}

.source-intel-perspective-card .citation-source-toggle i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #98a2b3;
}

.source-intel-perspective-card .citation-platform-row.expanded .citation-source-toggle i {
  background: #eef2ff;
  color: #4f46e5;
}

.source-intel-perspective-card .citation-source-toggle strong {
  max-width: 520px;
  overflow: hidden;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-intel-perspective-card .citation-source-toggle small {
  color: #98a2b3;
  font-size: 11px;
}

.source-intel-perspective-card .citation-total {
  min-width: 48px;
  border-color: #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  padding: 4px 8px;
}

.source-intel-perspective-card .citation-sort-btn {
  color: #667085;
  font-size: 12px;
}

.source-intel-perspective-card .citation-sort-btn span {
  color: #4f46e5;
  font-weight: 900;
}

.source-intel-perspective-card .citation-models {
  justify-content: flex-start;
}

.source-intel-perspective-card .citation-model-badge {
  min-height: 22px;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 11px;
}

.source-intel-perspective-card .citation-article-row td {
  padding: 0 14px 12px;
  background: #fbfcff;
}

.source-intel-perspective-card .citation-articles {
  border-color: #edf0f4;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.source-intel-perspective-card .citation-article-item {
  grid-template-columns: minmax(0, var(--citation-source-col)) var(--citation-count-col) minmax(260px, 1fr);
  min-height: 42px;
  padding: 9px 0;
}

.source-intel-perspective-card .citation-article-main {
  padding-left: 14px;
}

.source-intel-perspective-card .citation-real-link,
.source-intel-perspective-card .citation-missing-url {
  font-size: 12.5px;
  font-weight: 700;
}

.source-intel-perspective-card .citation-own-btn {
  min-height: 22px;
  border-radius: 5px;
  padding: 0 7px;
  font-size: 10px;
}

.source-intel-perspective-card .source-intel-load-more {
  border-top: 1px solid #eef1f5;
  padding: 12px 18px;
  background: #fafbff;
}

.source-intel-status.active {
  background: #eff6ff;
  color: #2563eb;
}

.source-intel-status.lost {
  background: #fef2f2;
  color: #dc2626;
}

.source-intel-delta {
  color: #059669;
  font-weight: 700;
}

.source-intel-empty {
  padding: 22px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 1180px) {
  .source-pref-search {
    margin-left: 0;
  }

  .source-pref-chart-grid {
    grid-template-columns: 1fr;
  }

  .source-intel-metrics {
    grid-template-columns: 1fr;
  }

  .source-intel-toolbar {
    align-items: stretch;
  }
}

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

.item-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.action-card {
  width: 100%;
  text-align: left;
}

.action-card:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.item-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.item-card p {
  color: var(--muted);
  line-height: 1.7;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.table-wrap.is-dragging {
  cursor: grabbing;
  user-select: none;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

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

th {
  background: #fafafa;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

tbody tr:hover td {
  background: #fbfcff;
}

.clickable-cell {
  cursor: pointer;
}

.clickable-cell:hover {
  color: var(--brand);
  background: #eef5ff;
}

.rank {
  display: inline-flex;
  justify-content: center;
  min-width: 60px;
  max-width: 148px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}

.rank.on {
  color: var(--green);
  background: #dcfce7;
}

.rank.miss {
  color: var(--red);
  background: #fee2e2;
}

.rank.pending {
  color: #64748b;
  background: #f1f5f9;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.95fr) minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.bar-row:last-child {
  border-bottom: 0;
}

.bar-track {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--soft);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.bar-fill.green {
  background: var(--green);
}

.bar-fill.red {
  background: var(--red);
}

.bar-fill.amber {
  background: var(--amber);
}

.mini-chart {
  height: 52px;
  display: flex;
  align-items: end;
  gap: 7px;
}

.mini-chart span {
  flex: 1;
  min-width: 6px;
  border-radius: 4px 4px 0 0;
  background: var(--brand);
}

.rank-date-row,
.rank-filter-card,
.source-intel-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.rank-date-row > span,
.field-lite span {
  color: var(--muted);
  font-size: 12px;
}

.date-range-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 0 12px;
}

.rank-filter-card {
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 14px;
}

.field-lite {
  display: grid;
  gap: 5px;
}

.field-lite.search-field {
  min-width: 220px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
}

.load-more-row {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.auto-load-sentinel {
  width: 100%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.platform-rate-table thead tr:first-child th {
  text-align: center;
  background: #fff;
  border-bottom: 0;
}

.platform-rate-table thead tr:nth-child(2) th {
  background: #fafafa;
}

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

.competitor-topic-card {
  width: 100%;
  min-height: 104px;
  text-align: left;
}

.donut-placeholder {
  min-height: 260px;
  border-radius: 10px;
  background: radial-gradient(circle at center, #fff 0 35%, transparent 36% 100%), conic-gradient(#3b82f6 0 28%, #22c55e 28% 48%, #f59e0b 48% 65%, #8b5cf6 65% 83%, #ef4444 83% 100%);
  display: grid;
  place-items: center;
  text-align: center;
  color: #0f172a;
}

.donut-placeholder span {
  max-width: 220px;
  color: var(--muted);
  line-height: 1.6;
}

.source-intel-top {
  justify-content: space-between;
}

.ai-rank-metrics-panel,
.ai-rank-analysis-panel,
.matrix-panel,
.topic-table-panel {
  border-color: #edf0f4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.ai-rank-analysis-panel,
.matrix-panel,
.topic-table-panel {
  margin-top: 30px;
}

.ai-rank-panel-head {
  min-height: 70px;
  align-items: center;
}

.rank-title-row,
.rank-period,
.matrix-actions,
.topic-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 800;
}

.rank-period span,
.matrix-actions span {
  color: var(--muted);
}

.ai-rank-body {
  padding-top: 18px;
}

.core-search-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

.core-search-summary h3 {
  margin-top: 10px;
  font-size: 17px;
  color: var(--ink);
}

.core-search-summary p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.core-search-evidence {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.core-search-evidence strong {
  color: var(--ink);
  font-size: 13px;
}

.core-search-evidence span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}

.core-search-metrics {
  margin-top: 8px;
}

.core-search-table-panel {
  margin-top: 30px;
}

.core-search-table-wrap th:first-child,
.core-search-table-wrap td:first-child {
  min-width: 230px;
}

.rank-filter-line {
  display: flex;
  align-items: end;
  gap: 22px;
  padding-bottom: 22px;
}

.rank-filter-line label {
  min-width: 170px;
}

.rank-filter-line select {
  min-width: 140px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.rank-metric-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rank-metric-card {
  min-height: 190px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 18px 20px 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.025);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.metric-top span {
  color: #334155;
  font-weight: 700;
}

.metric-top strong {
  font-size: 28px;
  line-height: 1;
  color: #2563eb;
}

.rank-metric-card.green .metric-top strong {
  color: #16a34a;
}

.rank-metric-card.amber .metric-top strong {
  color: #f59e0b;
}

.rank-sparkline,
.rank-trend-svg {
  width: 100%;
  height: auto;
  display: block;
}

.rank-sparkline {
  max-height: 128px;
}

.spark-grid line,
.rank-trend-svg line {
  stroke: #edf2f7;
  stroke-dasharray: 3 5;
}

.spark-grid text,
.spark-x,
.rank-trend-svg text {
  fill: #94a3b8;
  font-size: 11px;
}

.rank-sparkline polyline {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rank-metric-card.green .rank-sparkline polyline {
  stroke: #16a34a;
}

.rank-metric-card.amber .rank-sparkline polyline {
  stroke: #f59e0b;
}

.rank-topic-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.rank-topic-line > span {
  color: var(--muted);
}

.rank-topic-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-topic-line .tag-btn.active {
  color: #fff;
  background: #101827;
  border-color: #101827;
}

.link-btn {
  border: 0;
  background: transparent;
  color: #4f46e5;
  font-weight: 700;
  min-height: 32px;
}

.model-line {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding-top: 6px;
  margin-bottom: 24px;
}

.rank-model-tabs {
  width: max-content;
  max-width: 100%;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
}

.rank-model-tabs .seg-btn {
  min-width: 64px;
  border-radius: 8px;
}

.rank-analysis-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.58fr);
  gap: 16px;
}

.rank-board-card,
.rank-trend-card {
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.rank-board-card h3,
.rank-trend-card h3 {
  font-size: 15px;
  margin-bottom: 14px;
}

.rank-list {
  display: grid;
  gap: 11px;
}

.rank-list-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 3px 5px 3px 0;
}

.rank-list-row.target {
  background: #f0fdf4;
}

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f4f6f8;
  color: #64748b;
  font-weight: 800;
}

.rank-list-row:nth-child(1) .rank-num {
  color: #fff;
  background: linear-gradient(180deg, #facc15, #f59e0b);
}

.rank-list-row:nth-child(2) .rank-num {
  color: #fff;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.rank-list-row:nth-child(3) .rank-num {
  color: #fff;
  background: linear-gradient(180deg, #f97316, #c2410c);
}

.rank-list-row strong {
  overflow: hidden;
  display: grid;
  gap: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.rank-list-row strong b {
  display: inline-flex;
  width: fit-content;
  margin-left: 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}

.rank-list-row strong small {
  overflow: hidden;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.trend-head span {
  color: var(--muted);
}

.rank-trend-svg {
  min-height: 320px;
}

.rank-trend-svg polyline {
  fill: none;
  stroke: #111827;
  stroke-width: 3;
  stroke-linecap: round;
}

.matrix-head {
  align-items: center;
}

.matrix-actions input,
.topic-table-actions input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.matrix-actions {
  flex-shrink: 0;
}

.matrix-actions span,
.matrix-actions .btn {
  white-space: nowrap;
  word-break: keep-all;
}

.matrix-actions input {
  min-width: 132px;
}

.matrix-actions span {
  min-width: 42px;
}

.matrix-actions .btn {
  min-width: 70px !important;
}

.topic-stat-strip {
  width: min(480px, 100%);
  margin-left: auto;
  margin-top: -88px;
  margin-bottom: 26px;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 64px;
  align-items: stretch;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.topic-stat-card {
  padding: 10px 13px 9px;
  border-right: 1px solid #e7ecf3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topic-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.topic-stat-card p {
  margin: 7px 0 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.topic-stat-card strong {
  font-size: 24px;
  line-height: 1;
  color: #111827;
  font-weight: 850;
  letter-spacing: 0;
}

.topic-stat-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.topic-stat-expand {
  height: 100%;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.topic-stat-expand:hover {
  background: #1d4ed8;
}

@media (max-width: 720px) {
  .topic-stat-strip {
    width: calc(100% - 32px);
    margin: 0 16px 18px;
    grid-template-columns: 1fr 1fr 1fr 58px;
  }

  .topic-stat-card {
    padding-inline: 10px;
  }

  .topic-stat-card span {
    font-size: 10px;
  }

  .topic-stat-card strong {
    font-size: 20px;
  }
}

.topic-table-head {
  align-items: center;
  gap: 12px;
}

.topic-table-actions {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.topic-table-actions input {
  width: clamp(150px, 18vw, 220px);
  min-width: 120px;
}

.topic-table-actions .btn {
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

.topic-slice-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  background: #fbfcff;
  padding: 12px 18px;
}

.topic-slice-title {
  min-width: 190px;
  display: grid;
  gap: 2px;
}

.topic-slice-title strong {
  color: #111827;
  font-size: 13px;
}

.topic-slice-title span {
  color: #64748b;
  font-size: 12px;
}

.topic-slice-filter label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.topic-slice-filter select {
  min-width: 148px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 0 30px 0 10px;
  font-weight: 700;
}

.topic-slice-meta {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.topic-empty-slice {
  border-top: 1px solid #edf0f4;
  padding: 28px 18px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

.topic-table-panel .panel-body {
  padding: 0;
}

.topic-table-wrap {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow-x: auto;
  overflow-y: visible;
}

.topic-management-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
}

.topic-management-table .topic-col-type {
  width: 10%;
}

.topic-management-table .topic-col-name {
  width: 45%;
}

.topic-management-table .topic-col-time {
  width: 12%;
}

.topic-management-table .topic-col-status {
  width: 24%;
}

.topic-management-table .topic-col-actions {
  width: 9%;
}

.topic-management-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 48px;
  background: #f8fafc;
  padding-inline: 10px;
  text-align: center;
  box-shadow: inset 0 -1px 0 var(--line);
}

.topic-management-table td {
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-inline: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.topic-management-table td:nth-child(2) {
  color: #111827;
  font-weight: 700;
}

.topic-management-table td:nth-child(2) > strong,
.topic-name-line > strong {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

.topic-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-name-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.topic-name-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  white-space: nowrap;
}

.topic-management-table td:last-child {
  white-space: normal;
}

.topic-management-table .pill {
  white-space: nowrap;
}

.content-task-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.content-task-panel .panel-body {
  padding: 0;
}

.content-task-table-wrap {
  max-height: calc(100vh - 270px);
  overflow: auto;
}

.content-task-table {
  min-width: 1120px;
}

.content-task-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}

.content-task-table th:nth-child(1),
.content-task-table td:nth-child(1) {
  width: 260px;
}

.content-task-table th:nth-child(2),
.content-task-table td:nth-child(2) {
  width: 230px;
}

.content-task-table th:nth-child(3),
.content-task-table td:nth-child(3) {
  width: 180px;
}

.content-task-table th:nth-child(4),
.content-task-table td:nth-child(4) {
  width: 240px;
}

.content-task-query-cell strong,
.content-task-table td strong {
  display: block;
  color: var(--ink);
  line-height: 1.45;
}

.content-task-query-cell small,
.content-task-table td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.content-task-tags,
.content-task-concepts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.content-task-concepts span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  background: var(--surface-soft);
  white-space: nowrap;
}

.content-task-actions {
  white-space: nowrap;
}

.content-task-row {
  cursor: pointer;
}

.content-task-row.is-expanded td,
.content-task-row:hover td {
  background: #f8fbff;
}

.content-task-chevron {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 800;
}

@media (max-width: 900px) {
  .content-task-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.topic-management-table td:nth-child(4) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: left;
}

.topic-status-inline {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
  min-width: max-content;
  white-space: nowrap;
}

.topic-status-time {
  display: inline-block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.topic-inline-prompt {
  display: block;
  margin-top: 4px;
  color: #b6c0cf;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.topic-row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.topic-row-actions .btn {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.topic-row-actions .topic-edit-btn {
  width: 100%;
}

.topic-icon-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.topic-icon-btn:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  color: var(--brand);
}

.topic-icon-btn.start {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #16a34a;
}

.topic-icon-btn.stop {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

.topic-icon-btn.edit {
  color: #94a3b8;
}

.topic-row-actions .icon-action {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.topic-management-more td,
.topic-management-empty td {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: #fbfcff;
}

@media (max-width: 1180px) {
  .topic-table-head {
    align-items: flex-start;
  }

  .topic-table-actions {
    width: 100%;
  }

  .topic-table-actions input {
    flex: 1 1 160px;
  }

  .topic-management-table .topic-col-type {
    width: 10%;
  }

  .topic-management-table .topic-col-name {
    width: 43%;
  }

  .topic-management-table .topic-col-time {
    width: 12%;
  }

  .topic-management-table .topic-col-status {
    width: 25%;
  }

  .topic-management-table .topic-col-actions {
    width: 10%;
  }
}

.mindset-analysis-table {
  min-width: 1320px;
}

.mindset-analysis-table th:nth-child(1),
.mindset-analysis-table td:nth-child(1) {
  width: 220px;
}

.mindset-analysis-table th:nth-child(2),
.mindset-analysis-table td:nth-child(2) {
  width: 94px;
}

.mindset-analysis-table th:nth-child(3),
.mindset-analysis-table td:nth-child(3) {
  width: 84px;
}

.mindset-analysis-table th:nth-child(4),
.mindset-analysis-table td:nth-child(4) {
  width: 150px;
}

.mindset-analysis-table th:nth-child(5),
.mindset-analysis-table td:nth-child(5),
.mindset-analysis-table th:nth-child(6),
.mindset-analysis-table td:nth-child(6),
.mindset-analysis-table th:nth-child(7),
.mindset-analysis-table td:nth-child(7),
.mindset-analysis-table th:nth-child(8),
.mindset-analysis-table td:nth-child(8) {
  width: 118px;
}

.mindset-analysis-table th:nth-child(10),
.mindset-analysis-table td:nth-child(10) {
  width: 178px;
}

.mindset-analysis-table td:first-child small {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.mindset-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mindset-chart-grid .sentiment-visual-card {
  min-height: 332px;
}

.mindset-framework-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.mindset-ring {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, #fff 0 47%, transparent 48% 100%),
    conic-gradient(
      #4f46e5 0 calc(var(--first, 58) * 1%),
      #10b981 calc(var(--first, 58) * 1%) calc((var(--first, 58) + var(--second, 24)) * 1%),
      #f59e0b calc((var(--first, 58) + var(--second, 24)) * 1%) 100%
    );
}

.mindset-ring strong {
  color: #4f46e5;
  font-size: 24px;
  line-height: 1;
}

.mindset-ring span {
  margin-top: -30px;
  color: var(--muted);
  font-size: 12px;
}

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

.mindset-framework-summary div {
  min-height: 76px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.mindset-framework-summary span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mindset-framework-summary strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.mindset-legend {
  grid-column: 1 / -1;
  max-width: none;
  margin: 4px 0 0;
}

.mindset-trend-svg path:not(.trend-fill) {
  stroke: #4f46e5;
}

.mindset-tabs button.active {
  background: #4f46e5;
}

.mindset-tabs button.neutral.active {
  background: #0ea5e9;
}

.mindset-keyword-panel {
  min-height: 270px;
}

.mindset-quote-panel {
  min-height: 270px;
}

.mindset-quote-panel table th:nth-child(1),
.mindset-quote-panel table td:nth-child(1) {
  width: 90px;
}

.mindset-quote-panel table th:nth-child(3),
.mindset-quote-panel table td:nth-child(3) {
  width: 160px;
}

.mindset-quote-panel table th:nth-child(4),
.mindset-quote-panel table td:nth-child(4) {
  width: 150px;
}

.mindset-panorama-table {
  min-width: 1320px;
}

.mindset-panorama-table th:nth-child(1),
.mindset-panorama-table td:nth-child(1) {
  width: 260px;
}

.mindset-panorama-table th:nth-child(2),
.mindset-panorama-table td:nth-child(2) {
  width: 106px;
}

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

.mindset-panorama-table th:nth-child(5),
.mindset-panorama-table td:nth-child(5) {
  width: 180px;
}

.mindset-panorama-table th:nth-child(6),
.mindset-panorama-table td:nth-child(6) {
  width: 94px;
}

.icon-action {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
}

.icon-action:hover {
  background: #f1f5f9;
  color: var(--brand);
}

.icon-action.danger:hover {
  color: var(--red);
}

.sentiment-workbench,
.sentiment-matrix-panel {
  border-color: #edf0f4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.sentiment-matrix-panel {
  margin-top: 30px;
}

.sentiment-filter-line {
  margin-bottom: 16px;
}

.sentiment-filter-line > div {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow: hidden;
  padding-bottom: 0;
  max-height: 36px;
}

.sentiment-filter-line.is-expanded {
  align-items: start;
  z-index: 4;
  margin-bottom: 18px;
}

.sentiment-filter-line.is-expanded > div {
  flex-wrap: wrap;
  overflow: visible;
  max-height: none;
  min-height: 36px;
}

.sentiment-filter-line.is-expanded + .sentiment-model-line {
  clear: both;
  position: relative;
  z-index: 1;
}

.sentiment-filter-line .tag-btn {
  flex: 0 0 auto;
  max-width: 360px;
  white-space: nowrap;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sentiment-model-line {
  margin-bottom: 28px;
}

.sentiment-chart-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.58fr);
  gap: 18px;
}

.sentiment-visual-card {
  min-height: 360px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
  padding: 24px;
}

.sentiment-visual-card h3 {
  font-size: 15px;
  color: #111827;
  margin-bottom: 20px;
}

.sentiment-donut {
  display: grid;
  place-items: center;
  min-height: 180px;
}

.sentiment-ring-big {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, #fff 0 46%, transparent 47% 100%),
    conic-gradient(
      #10b981 0 var(--sentiment-positive-end, 0%),
      #94a3b8 var(--sentiment-positive-end, 0%) var(--sentiment-neutral-end, 0%),
      #f43f5e var(--sentiment-neutral-end, 0%) 100%
    );
}

.sentiment-ring-big strong {
  color: #e11d48;
  font-size: 24px;
  line-height: 1;
}

.sentiment-ring-big span {
  margin-top: -28px;
  color: var(--muted);
  font-size: 12px;
}

.sentiment-legend {
  display: grid;
  gap: 14px;
  margin: 18px auto 0;
  max-width: 230px;
}

.sentiment-legend div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
}

.sentiment-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.green-dot {
  background: #10b981;
}

.blue-dot {
  background: #94a3b8;
}

.red-dot {
  background: #f43f5e;
}

.sentiment-legend strong {
  color: #111827;
}

.trend-card-wide {
  min-width: 0;
}

.sentiment-trend-svg {
  width: 100%;
  min-height: 288px;
  display: block;
}

.sentiment-trend-svg line {
  stroke: #edf2f7;
  stroke-dasharray: 3 5;
}

.sentiment-trend-svg text {
  fill: #94a3b8;
  font-size: 12px;
}

.sentiment-trend-svg path:not(.trend-fill) {
  fill: none;
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
}

.sentiment-trend-svg .trend-fill {
  fill: rgba(16, 185, 129, 0.10);
  stroke: none;
}

.sentiment-insight-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.58fr);
  gap: 14px;
  margin-top: 18px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  overflow: visible;
  background: #fff;
}

.sentiment-keyword-panel {
  min-height: 286px;
  border-right: 1px solid #edf0f4;
  padding: 16px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.sentiment-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sentiment-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 0 14px;
  font-weight: 700;
}

.sentiment-tabs button.active {
  color: #fff;
  background: #10b981;
  border-color: #10b981;
}

.sentiment-tabs button.neutral.active {
  color: #334155;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.sentiment-tabs button.risk {
  color: #e11d48;
  background: #fff1f2;
  border-color: #ffe4e6;
}

.sentiment-tabs button.risk.active {
  color: #fff;
  background: #e11d48;
  border-color: #e11d48;
}

.sentiment-keyword-list {
  max-height: 245px;
  overflow: hidden auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.sentiment-keyword-list button {
  min-height: 54px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #059669;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 4;
}

.sentiment-keyword-list button.active {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1 inset;
}

.sentiment-keyword-list em {
  color: #6d28d9;
  background: #f5f3ff;
  border-radius: 999px;
  padding: 2px 8px;
  font-style: normal;
  font-size: 12px;
}

.sentiment-quote-panel table {
  width: 100%;
  height: 100%;
  min-width: 0;
}

.sentiment-quote-panel th,
.sentiment-quote-panel td {
  border-bottom: 1px solid #edf0f4;
}

.sentiment-quote-panel td {
  height: 74px;
  color: #475569;
  font-style: italic;
}

.sentiment-matrix-wrap table {
  min-width: 880px;
}

.score-pill,
.risk-pill,
.model-score {
  min-width: 54px;
  min-height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-weight: 800;
}

.green-score {
  color: #059669;
  background: #ecfdf5;
}

.amber-score {
  color: #b45309;
  background: #fef3c7;
}

.risk-pill.low {
  color: #059669;
  background: #ecfdf5;
}

.risk-pill.mid {
  color: #b45309;
  background: #fef3c7;
}

.risk-pill.high {
  color: #b91c1c;
  background: #fee2e2;
}

.model-score.good {
  color: #047857;
  background: #a7f3d0;
}

.model-score.warn {
  color: #92400e;
  background: #fde68a;
}

.model-score.bad {
  color: #b91c1c;
  background: #fecaca;
}

.insight-callout {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.insight-callout strong {
  color: var(--ink);
}

.insight-callout p {
  margin-top: 6px;
  color: var(--muted);
}

.topic-manage-head {
  min-height: 92px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topic-manage-head span,
.topic-manage-head p {
  color: var(--muted);
}

.topic-manage-head strong {
  display: block;
  margin: 4px 0;
  font-size: 26px;
  color: var(--ink);
}

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

.topic-manage-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.topic-manage-card h3 {
  margin: 8px 0 4px;
  font-size: 15px;
}

.topic-manage-card p {
  color: #475569;
  line-height: 1.65;
}

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

.topic-card-actions {
  display: flex;
  gap: 8px;
}

.risk-card {
  border: 1px solid #fecaca;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.risk-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.overview-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 354px;
  gap: 24px;
  align-items: start;
}

.overview-main,
.overview-side {
  display: grid;
  gap: 24px;
}

.overview-side {
  position: sticky;
  top: 24px;
}

.overview-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.overview-card h2 {
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
}

.overview-card h3 {
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.overview-card p {
  color: #64748b;
  line-height: 1.65;
}

.overview-card-head {
  min-height: 96px;
  padding: 24px 24px 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.overview-card-head.compact {
  min-height: auto;
  padding-bottom: 10px;
}

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

.title-with-icon h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-with-icon h2 i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
}

.title-with-icon p span {
  margin-left: 8px;
  color: #94a3b8;
}

.overview-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.intel-card {
  min-height: 510px;
}

.intel-topline {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #f43f5e 0%, #f59e0b 36%, #3b82f6 78%, #4f46e5 100%);
}

.ghost-refresh {
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 18px;
}

.ghost-refresh:hover {
  background: #f1f5f9;
  color: #4f46e5;
}

.intel-status {
  min-width: 288px;
  min-height: 64px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 10px 16px;
  gap: 14px;
}

.intel-status div + div {
  border-left: 1px solid #eef2f7;
  padding-left: 14px;
}

.intel-status small {
  display: block;
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 11px;
}

.intel-status strong {
  color: #e11d48;
}

.intel-list {
  max-height: 390px;
  overflow: auto;
  padding: 0 20px 18px 24px;
  scrollbar-color: #cbd5e1 transparent;
}

.intel-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #f1f5f9;
}

.intel-mark {
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f43f5e;
  background: #fff1f2;
}

.intel-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

.intel-meta span,
.intel-meta strong {
  border-radius: 4px;
  background: #ffe4e6;
  color: #e11d48;
  padding: 2px 6px;
  font-weight: 700;
}

.intel-meta strong {
  color: #fff;
  background: #f43f5e;
}

.intel-meta em {
  color: #64748b;
  font-style: normal;
}

.intel-item h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.intel-item h3 small {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.aii-card {
  padding: 22px 24px;
}

.aii-card > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.aii-card > h2 span {
  color: #94a3b8;
  font-size: 13px;
}

.aii-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.aii-score {
  display: grid;
  align-content: start;
  gap: 14px;
}

.aii-score > span {
  color: #4f46e5;
  font-weight: 700;
}

.aii-score > strong {
  color: #020617;
  font-size: 56px;
  line-height: 0.9;
}

.aii-score > em {
  width: max-content;
  margin-top: -40px;
  margin-left: 86px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  padding: 5px 10px;
  font-style: normal;
  font-weight: 800;
}

.aii-metric-row {
  min-height: 56px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.aii-metric-row span {
  color: #334155;
  font-weight: 600;
}

.aii-metric-row strong {
  color: #0f172a;
  font-size: 18px;
}

.aii-metric-row:last-child strong {
  border-radius: 6px;
  background: #fff7ed;
  color: #ea580c;
  padding: 4px 8px;
  font-size: 14px;
}

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

.overview-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: #f1f5f9;
}

.overview-tabs button {
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  padding: 0 10px;
  font-size: 12px;
}

.overview-tabs button.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.overview-chart {
  min-height: 246px;
  display: grid;
  place-items: center;
}

.overview-chart svg {
  width: 100%;
  max-width: 500px;
}

.overview-chart line {
  stroke: #e9eef6;
  stroke-dasharray: 3 5;
}

.overview-chart polyline {
  fill: none;
  stroke: #4f46e5;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-chart circle {
  fill: #4f46e5;
}

.overview-chart text {
  fill: #64748b;
  font-size: 12px;
  text-anchor: middle;
}

.sentiment-overview-card {
  padding-bottom: 24px;
}

.sentiment-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 8px 24px 24px;
}

.sentiment-ring {
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#10b981 0 62%, #cbd5e1 62% 88%, #f43f5e 88% 100%);
  display: grid;
  place-items: center;
  color: #0f172a;
  position: relative;
}

.sentiment-ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eef2f7;
}

.sentiment-ring strong,
.sentiment-ring span {
  position: relative;
  z-index: 1;
}

.sentiment-ring strong {
  align-self: end;
  font-size: 30px;
}

.sentiment-ring span {
  align-self: start;
  color: #16a34a;
  font-weight: 700;
}

.sentiment-bars {
  display: grid;
  gap: 12px;
}

.sentiment-bar div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #475569;
  font-weight: 700;
}

.sentiment-bar i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.sentiment-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #94a3b8;
}

.sentiment-bar.green b {
  background: #10b981;
}

.sentiment-bar.red b {
  background: #f43f5e;
}

.topic-cloud-head {
  padding: 0 24px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
}

.legend span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.legend span.green {
  background: #10b981;
}

.legend span.red {
  background: #f43f5e;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px;
}

.topic-cloud span {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.topic-cloud span.positive {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #059669;
}

.topic-cloud span.negative {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.topic-ranking-card {
  padding: 20px 22px 22px;
}

.topic-ranking-card h2 {
  margin-bottom: 14px;
}

.topic-ranking-card h3 {
  margin-bottom: 12px;
}

.topic-ranking-card table {
  min-width: 680px;
}

.topic-ranking-card .table-wrap {
  max-height: 430px;
  overflow: auto;
}

.topic-ranking-card th,
.topic-ranking-card td {
  padding: 8px 12px;
}

.topic-ranking-card th {
  background: #fff;
}

.topic-ranking-card td:not(:first-child) {
  color: #334155;
  font-weight: 600;
}

.loss-card {
  padding: 24px;
}

.loss-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.loss-card h2 span {
  border-radius: 5px;
  background: #fee2e2;
  color: #dc2626;
  padding: 3px 7px;
  font-size: 11px;
}

.loss-score {
  position: absolute;
  right: 20px;
  top: 8px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #64748b;
  font-size: 11px;
}

.loss-score strong {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 5px solid #f59e0b;
  color: #0f172a;
  font-size: 14px;
}

.loss-alert {
  min-height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #475569;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.loss-alert strong {
  color: #0f172a;
}

.loss-issue {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  margin: 34px 0 20px;
}

.loss-issue > span {
  width: 34px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #d97706;
  background: #fffbeb;
}

.loss-lock {
  width: 52px;
  height: 52px;
  margin: 26px auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-size: 24px;
}

.action-plan-title {
  text-align: center;
  margin-bottom: 10px;
}

.loss-desc {
  text-align: center;
  margin-bottom: 20px;
}

.loss-desc strong {
  color: #16a34a;
}

.disabled-wide {
  width: 100%;
  min-height: 44px;
  border-color: #94a3b8;
  background: #94a3b8;
  color: #fff;
  font-weight: 800;
}

.competitor-entry-card {
  min-height: 184px;
  border-radius: 12px;
  padding: 26px 24px 22px;
  background: radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.45), transparent 34%), linear-gradient(135deg, #172554 0%, #312e81 45%, #4338ca 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(49, 46, 129, 0.22);
}

.competitor-entry-card h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.competitor-entry-card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.competitor-entry-card button {
  width: 100%;
  min-height: 42px;
  margin-top: 20px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #4338ca;
  font-weight: 800;
}

.topic-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.topic-card.selected {
  border-color: var(--brand);
  background: #eef5ff;
}

.download-file {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.download-file strong {
  font-size: 13px;
}

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

.download-toolbar {
  align-items: end;
}

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

.quota-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.quota-card strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.mindset-kpi-grid {
  grid-template-columns: repeat(6, minmax(136px, 1fr));
}

.mindset-kpi-grid .quota-card {
  padding: 14px;
}

.mindset-kpi-grid .quota-card strong {
  font-size: 21px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 14px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  gap: 12px;
}

.plan.current {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12), var(--shadow);
}

.price {
  font-size: 30px;
  font-weight: 800;
}

.price small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.feature-list {
  display: grid;
  gap: 8px;
  color: #334155;
  line-height: 1.5;
}

.plan .btn {
  margin-top: auto;
}

.chat-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
}

.chat-sidebar {
  min-height: 520px;
}

.chat-main {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 12px;
}

.message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--soft);
  line-height: 1.7;
}

.message.user {
  justify-self: end;
  background: #eef5ff;
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.tl-discovery-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 150px);
}

.tl-discovery-side,
.tl-discovery-main {
  border: 1px solid #eef1f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tl-discovery-side {
  padding: 14px;
}

.tl-side-title,
.tl-discovery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tl-side-title {
  margin-bottom: 14px;
  color: #111827;
  font-size: 15px;
}

.tl-icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.tl-icon-btn:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.tl-new-chat {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: #4f46e5;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.tl-history-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.tl-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px 22px;
  align-items: center;
  gap: 4px;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #667085;
  padding: 9px 8px;
  cursor: pointer;
  text-align: left;
}

.tl-history-item.active,
.tl-history-item:hover {
  border-color: #eef2ff;
  background: #f8f7ff;
  color: #4f46e5;
}

.tl-history-item strong,
.tl-history-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-history-item strong {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.tl-history-item small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 12px;
}

.tl-history-item i,
.tl-history-item em {
  opacity: 0;
  color: #c7ccd5;
  font-style: normal;
  text-align: center;
}

.tl-history-item:hover i,
.tl-history-item:hover em {
  opacity: 1;
}

.tl-discovery-main {
  display: flex;
  flex-direction: column;
  min-height: 680px;
  overflow: hidden;
}

.tl-discovery-head {
  min-height: 64px;
  border-bottom: 1px solid #f0f2f5;
  padding: 0 24px;
}

.tl-discovery-head h2 {
  color: #111827;
  font-size: 17px;
}

.tl-discovery-head p {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 12px;
}

.strategy-title-block {
  min-width: 0;
  width: 100%;
}

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

.strategy-title-row h2 {
  flex: 0 0 auto;
}

.tl-discovery-scroll {
  flex: 1;
  overflow: auto;
  padding: 26px 32px;
}

.tl-discovery-empty {
  max-width: 620px;
  margin: 80px auto 0;
}

.tl-assistant-title strong {
  display: block;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.tl-assistant-title p,
.tl-empty-hint {
  margin-top: 10px;
  color: #667085;
  font-size: 14px;
}

.tl-empty-hint {
  margin-top: 34px;
}

.tl-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tl-quick-grid button {
  min-height: 48px;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  padding: 0 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.tl-quick-grid button:hover {
  border-color: #c7d2fe;
  color: #4f46e5;
}

.tl-chat-flow {
  display: grid;
  gap: 18px;
}

.tl-user-message {
  justify-self: end;
  max-width: 440px;
  border-radius: 18px 18px 4px;
  background: #f3f4f6;
  color: #111827;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
}

.tl-agent-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 900;
}

.tl-search-steps {
  display: grid;
  gap: 8px;
  max-width: 780px;
}

.tl-search-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border-radius: 9px;
  background: #f8fafc;
  color: #667085;
  padding: 0 12px;
  font-size: 13px;
}

.tl-search-steps span {
  width: 16px;
  height: 16px;
  border: 2px solid #22c55e;
  border-radius: 999px;
  position: relative;
}

.tl-search-steps span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #22c55e;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tl-agent-copy {
  max-width: 860px;
  color: #344054;
  font-size: 15px;
  line-height: 1.85;
}

.tl-agent-copy p + p {
  margin-top: 12px;
}

.tl-suggestion-panel {
  max-width: 920px;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.tl-suggestion-head,
.tl-select-line,
.tl-suggestion-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.tl-suggestion-head {
  border-bottom: 1px solid #f0f2f5;
}

.tl-suggestion-head strong {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.tl-suggestion-head span {
  margin-left: 8px;
  color: #98a2b3;
  font-size: 12px;
}

.tl-suggestion-stats {
  display: flex;
  gap: 8px;
}

.tl-suggestion-stats b {
  border-radius: 999px;
  background: #f3f4f6;
  color: #667085;
  padding: 4px 9px;
  font-size: 12px;
}

.tl-topic-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px 0;
}

.tl-topic-policy span {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fafafa;
  color: #475467;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.tl-select-line {
  padding-top: 10px;
  padding-bottom: 8px;
  color: #98a2b3;
  font-size: 12px;
}

.tl-select-line button {
  border: 0;
  background: transparent;
  color: #4f46e5;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.tl-topic-group {
  padding: 4px 18px 14px;
}

.tl-topic-group h3 {
  margin: 8px 0 10px;
  color: #111827;
  font-size: 13px;
}

.tl-topic-options {
  display: grid;
  gap: 8px;
}

.tl-topic-option {
  min-height: 68px;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.tl-topic-option:hover {
  background: #fbfcff;
  border-color: #dbe4ff;
}

.tl-topic-option.selected {
  border-color: #6366f1;
  background: #f5f3ff;
  color: #3730a3;
}

.tl-topic-option.monitored {
  cursor: default;
  opacity: 0.72;
}

.tl-topic-option strong {
  display: block;
  color: #111827;
  font-size: 14px;
}

.tl-topic-option em {
  margin-left: 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #16a34a;
  padding: 2px 7px;
  font-size: 11px;
  font-style: normal;
}

.tl-topic-option span {
  display: block;
  margin-top: 6px;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.5;
}

.tl-topic-option small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.tl-suggestion-foot {
  border-top: 1px solid #f0f2f5;
}

.tl-add-monitor {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.tl-add-monitor:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.tl-discovery-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  border-top: 1px solid #f0f2f5;
  padding: 14px 18px;
}

.tl-discovery-input textarea {
  min-height: 48px;
  max-height: 108px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  resize: vertical;
  padding: 13px 14px;
  color: #111827;
  font-size: 14px;
  outline: none;
}

.tl-discovery-input textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px #e0e7ff;
}

.tl-discovery-input button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.tl-discovery-input button.active {
  background: #4f46e5;
  color: #fff;
  cursor: pointer;
}

.strategy-board {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  min-width: 0;
  overflow: hidden;
}

.strategy-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr);
  gap: 16px;
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.strategy-hero > div:first-child {
  border-radius: 12px;
  background: #f8fafc;
  padding: 18px;
}

.strategy-hero span,
.strategy-hero small,
.strategy-stage-card span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.strategy-hero h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.strategy-hero p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

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

.strategy-hero-metrics article {
  min-height: 112px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fff;
  padding: 15px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.strategy-hero-metrics strong {
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.strategy-hero-metrics em {
  overflow: hidden;
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.strategy-stage-card {
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 13px;
}

.strategy-stage-card.attention {
  border-color: #c7d2fe;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.08);
}

.strategy-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.strategy-stage-head strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.strategy-stage-head b {
  color: #4f46e5;
  font-size: 22px;
  line-height: 1;
}

.strategy-progress {
  height: 8px;
  border-radius: 999px;
  background: #eef1f5;
  overflow: hidden;
}

.strategy-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #22c55e);
}

.strategy-stage-card p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.strategy-list {
  display: grid;
  gap: 7px;
}

.strategy-list h4 {
  margin: 0;
  color: #111827;
  font-size: 12px;
}

.strategy-list span {
  display: block;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 9px;
  color: #475467;
  line-height: 1.45;
}

.strategy-task-list span {
  background: #fbfbff;
  color: #344054;
}

.strategy-stage-card .btn {
  min-height: 34px;
  border-radius: 8px;
  font-size: 12px;
}

.strategy-discovery-empty {
  max-width: 920px;
  margin-top: 24px;
  border: 1px dashed #dbe4ff;
  border-radius: 14px;
  background: #fbfcff;
  padding: 22px;
}

.strategy-full-shell {
  grid-template-columns: minmax(0, 1fr);
}

.strategy-full-shell.has-strategy-panel {
  grid-template-columns: minmax(0, 940px) minmax(320px, 380px);
  align-items: start;
}

.strategy-full-shell .tl-discovery-main {
  min-height: 720px;
}

.strategy-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--strategy-stage-count, 8), minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 6px 0 18px;
  margin: 4px 0 18px;
  width: 100%;
}

.strategy-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.strategy-slice-picker {
  position: relative;
  flex: 0 0 auto;
}

.strategy-slice-btn,
.strategy-filter-bar > strong {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  padding: 0 14px;
  color: #3730a3;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}

.strategy-slice-btn {
  min-width: 104px;
  cursor: pointer;
}

.strategy-slice-btn.need {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #047857;
  box-shadow: 0 8px 20px rgba(18, 183, 106, 0.08);
}

.strategy-slice-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.strategy-filter-bar > strong {
  min-width: 28px;
  border-color: #e4e7ec;
  background: #fff;
  color: #98a2b3;
  box-shadow: none;
  padding: 0 8px;
}

.strategy-slice-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.strategy-slice-menu.searchable {
  min-width: 220px;
  max-height: 320px;
}

.strategy-slice-search {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 34px;
  margin-bottom: 6px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.strategy-slice-search:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.strategy-slice-empty {
  padding: 10px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.strategy-slice-picker:last-child .strategy-slice-menu {
  min-width: 190px;
}

.strategy-slice-menu button {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 0 10px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.strategy-slice-menu button:hover {
  background: #f2f4f7;
}

.strategy-slice-menu button.active {
  background: #eef2ff;
  color: #3730a3;
}

.strategy-journey-groups {
  display: grid;
  grid-template-columns: 3fr 2fr 3fr;
  gap: 10px;
  margin: 2px 0 14px;
}

.strategy-journey-groups span {
  min-height: 32px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
}

.strategy-journey-groups .mindset {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
}

.strategy-journey-groups .industry {
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  color: #047857;
}

.strategy-journey-groups .brand {
  border: 1px solid #fbcfe8;
  background: #fdf2f8;
  color: #be185d;
}

.strategy-journey::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 24px;
  height: 2px;
  background: #e8ecf3;
}

.strategy-journey-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #667085;
  text-align: center;
  padding: 0 6px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  cursor: pointer;
}

.strategy-journey-node span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #dfe5ef;
  color: #667085;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.strategy-journey-node strong {
  width: 100%;
  min-width: 0;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.strategy-journey-node.route-industry span {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #047857;
}

.strategy-journey-node.route-industry small {
  background: #dcfce7;
  color: #047857;
}

.strategy-journey-node.route-brand span {
  border-color: #fbcfe8;
  background: #fdf2f8;
  color: #be185d;
}

.strategy-journey-node.route-brand small {
  background: #fce7f3;
  color: #be185d;
}

.strategy-journey-node.attention span {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #4338ca;
}

.strategy-journey-node.is-current span {
  border-color: #155eef;
  background: #155eef;
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.18);
}

.strategy-journey-node.is-current strong {
  color: #155eef;
}

@media (max-width: 980px) {
  .strategy-journey {
    padding-bottom: 14px;
  }

  .strategy-journey::before {
    left: 20px;
    right: 20px;
    top: 21px;
  }

  .strategy-journey-node {
    padding: 0 3px;
    gap: 6px;
  }

  .strategy-journey-node span {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .strategy-journey-node strong {
    font-size: 11px;
    line-height: 1.2;
  }
}

@media (max-width: 560px) {
  .strategy-journey::before {
    left: 16px;
    right: 16px;
    top: 18px;
  }

  .strategy-journey-node {
    padding: 0 2px;
  }

  .strategy-journey-node span {
    width: 28px;
    height: 28px;
    border-width: 1.5px;
    font-size: 10px;
  }

  .strategy-journey-node strong {
    font-size: 10px;
    line-height: 1.15;
  }
}

.strategy-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  overflow: visible;
  padding: 0;
  cursor: default;
  user-select: auto;
  touch-action: auto;
  width: 60%;
  max-width: 940px;
  min-width: 620px;
}

.strategy-stage-card {
  width: 100%;
  max-width: 940px;
  min-width: 0;
  justify-self: start;
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 14px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
}

.strategy-stage-grid.is-dragging {
  cursor: default;
  scroll-snap-type: none;
}

.strategy-stage-grid.is-dragging .strategy-stage-card {
  pointer-events: auto;
}

.strategy-stage-card.attention {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #fbfbff, #fff);
}

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

.strategy-stage-card-head i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f2f4f7;
  color: #475467;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.strategy-stage-card.attention .strategy-stage-card-head i {
  background: #eef2ff;
  color: #4338ca;
}

.strategy-stage-card-head small {
  justify-self: start;
  border-radius: 999px;
  background: #eef2ff;
  padding: 3px 8px;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.strategy-stage-card.route-industry .strategy-stage-card-head small {
  background: #dcfce7;
  color: #047857;
}

.strategy-stage-card.route-brand .strategy-stage-card-head small {
  background: #fce7f3;
  color: #be185d;
}

.strategy-stage-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.strategy-stage-card-head h3 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
}

.strategy-stage-card-head p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.strategy-execution-pack {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.strategy-execution-pack section {
  flex: 1 1 calc(50% - 5px);
  border-radius: 10px;
  background: #f8fafc;
  padding: 11px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.strategy-execution-pack section.wide {
  flex-basis: 100%;
  background: #fbfcff;
}

.strategy-execution-pack label {
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.strategy-execution-pack p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}

.strategy-execution-pack div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.strategy-execution-pack span {
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}

.strategy-execution-pack span.type,
.strategy-execution-pack span.slice {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 800;
}

.strategy-execution-pack span.slice {
  background: #f0fdf4;
  color: #047857;
}

.strategy-execution-pack span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #4f46e5;
  margin-right: 7px;
  vertical-align: 2px;
}

.strategy-execution-pack span.source::before {
  background: #12b76a;
}

.strategy-execution-pack span.action::before {
  background: #0ea5e9;
}

.strategy-execution-pack span.type::before,
.strategy-execution-pack span.slice::before {
  display: none;
}

.strategy-execution-pack span.metric::before {
  background: #f59e0b;
}

.strategy-query-core,
.strategy-query-status,
.strategy-query-problems {
  border-radius: 12px;
  border: 1px solid #e8ecf3;
  background: #fbfcff;
  padding: 12px;
}

.strategy-query-core {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

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

.strategy-query-core-head label,
.strategy-query-status label {
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}

.strategy-query-core-head small {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.strategy-query-list {
  display: grid;
  gap: 8px;
}

.strategy-query-list span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}

.strategy-query-list b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 950;
}

.strategy-query-status p {
  margin: 7px 0 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}

.strategy-query-problems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  background: #ffffff;
}

.strategy-query-problem {
  min-height: 96px;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 7px;
  border-left: 3px solid #94a3b8;
}

.strategy-query-problem strong {
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.strategy-query-problem span {
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.strategy-query-problem.add {
  border-left-color: #2563eb;
}

.strategy-query-problem.improve {
  border-left-color: #f59e0b;
}

.strategy-query-problem.consensus {
  border-left-color: #16a34a;
}

.strategy-query-problem.quiet {
  border-left-color: #94a3b8;
  background: #f9fafb;
}

.strategy-query-action-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 360px);
  min-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}

.strategy-query-action-row {
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  grid-template-columns: 96px minmax(0, 640px);
  gap: 12px;
  align-items: start;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.strategy-query-action-row.add {
  border-left: 4px solid #2563eb;
}

.strategy-query-action-row.improve {
  border-left: 4px solid #f59e0b;
}

.strategy-query-action-tag {
  display: grid;
  gap: 7px;
  align-content: start;
}

.strategy-query-action-tag strong {
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.strategy-query-action-row.improve .strategy-query-action-tag strong {
  background: #fff7ed;
  color: #b45309;
}

.strategy-query-action-tag span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.strategy-query-action-main {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 640px;
}

.strategy-diagnosis-panel {
  position: sticky;
  top: 14px;
  border: 1px solid #dbe4ff;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.strategy-diagnosis-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: start;
}

.strategy-diagnosis-panel-head span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.strategy-diagnosis-panel-head h3 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: 0;
}

.strategy-diagnosis-goal {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.strategy-diagnosis-panel section {
  border: 1px solid #edf1f7;
  border-radius: 10px;
  background: #fbfcff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.strategy-diagnosis-panel label {
  color: #475467;
  font-size: 12px;
  font-weight: 950;
}

.strategy-diagnosis-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 12px;
  line-height: 1.6;
}

.strategy-diagnosis-panel textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  color: #344054;
  font-size: 12px;
  line-height: 1.55;
}

.strategy-diagnosis-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-query-action-main p {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 850;
}

.strategy-query-action-main small {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.strategy-query-action-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.mini-btn {
  min-height: 28px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.mini-btn:hover {
  border-color: #98a2b3;
  background: #f8fafc;
}

.mini-btn.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.drawer-backdrop {
  place-items: stretch end;
  padding: 0;
  background: rgba(15, 23, 42, 0.34);
}

.strategy-query-drawer {
  width: min(520px, 100vw);
  height: 100vh;
  max-height: none;
  border-radius: 0;
  box-shadow: -24px 0 70px rgba(15, 23, 42, 0.18);
}

.strategy-query-drawer .modal-body {
  padding: 16px;
}

.strategy-query-diagnosis {
  display: grid;
  gap: 14px;
}

.strategy-query-diagnosis section {
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  background: #fbfcff;
  padding: 13px;
  display: grid;
  gap: 10px;
}

.strategy-drawer-query span {
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 950;
}

.strategy-drawer-query h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.strategy-drawer-query p,
.strategy-query-diagnosis li {
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

.strategy-query-diagnosis label {
  color: #475467;
  font-size: 12px;
  font-weight: 950;
}

.strategy-query-diagnosis ul {
  margin: 0;
  padding-left: 18px;
}

.strategy-query-diagnosis textarea {
  min-height: 112px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  padding: 10px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.6;
}

.strategy-diagnosis-inline.error {
  background: #fff7f7;
  border-color: #fecaca;
}

.strategy-diagnosis-inline > p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

.strategy-diagnosis-result-list {
  display: grid;
  gap: 9px;
}

.strategy-diagnosis-result-list article {
  border: 1px solid #e8ecf3;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.strategy-diagnosis-result-list strong {
  display: block;
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
}

.strategy-diagnosis-result-list p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

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

.strategy-stage-action {
  justify-self: stretch;
}

.strategy-diagnosis {
  display: block;
}

.topic-chat-workbench {
  max-width: 1040px;
  min-height: calc(100vh - 270px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-chat-thread {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid #e8ecf3;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
}

.topic-chat-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.topic-chat-row.user {
  justify-content: flex-end;
}

.topic-chat-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.topic-chat-bubble {
  max-width: min(860px, calc(100% - 44px));
  border: 1px solid #eef1f5;
  border-radius: 16px;
  background: #f8fafc;
  padding: 14px 16px;
  color: #344054;
  font-size: 14px;
  line-height: 1.7;
}

.topic-chat-bubble strong {
  color: #111827;
  font-size: 14px;
}

.topic-chat-bubble p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.topic-chat-row.user .topic-chat-bubble {
  max-width: min(720px, 82%);
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
  font-weight: 800;
}

.topic-chat-bubble.result {
  width: min(920px, 100%);
  max-width: calc(100% - 44px);
  background: #fff;
}

.topic-chat-bubble.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.topic-chat-bubble.error strong {
  color: #b42318;
}

.topic-chat-bubble.diagnosis-thinking {
  margin-top: 0;
}

.topic-chat-bubble.result .tl-suggestion-panel {
  max-width: none;
  margin-top: 14px;
  border-radius: 14px;
  box-shadow: none;
}

.topic-chat-composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  box-shadow: 0 -10px 24px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(10px);
}

.topic-chat-composer textarea {
  min-height: 48px;
  max-height: 132px;
  border: 0;
  background: transparent;
  padding: 8px 10px;
}

.topic-chat-composer textarea:focus {
  outline: none;
}

.topic-chat-composer .btn {
  min-height: 42px;
  border-radius: 12px;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .topic-chat-workbench {
    min-height: calc(100vh - 220px);
  }

  .topic-chat-thread {
    padding: 14px;
  }

  .topic-chat-avatar {
    width: 28px;
    height: 28px;
  }

  .topic-chat-bubble,
  .topic-chat-bubble.result,
  .topic-chat-row.user .topic-chat-bubble {
    max-width: calc(100% - 38px);
  }

  .diagnosis-suggest-grid {
    grid-template-columns: 1fr;
  }

  .topic-chat-composer {
    grid-template-columns: 1fr;
  }
}

.strategy-diagnosis-chat {
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.04);
}

.diagnosis-message {
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px;
}

.diagnosis-message strong {
  color: #111827;
  font-size: 14px;
}

.diagnosis-message p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}

.diagnosis-thinking {
  margin-top: 12px;
  background: #f9fafb;
  border: 1px solid #edf1f7;
}

.diagnosis-thinking p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #667085;
  opacity: 0.4;
  animation: typingDotPulse 1.1s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes typingDotPulse {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}

.diagnosis-suggest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.diagnosis-prompt {
  min-height: 54px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.diagnosis-prompt:hover {
  border-color: #c7d2fe;
  background: #f8faff;
  color: #3730a3;
}

.diagnosis-input {
  display: grid;
  gap: 12px;
}

.diagnosis-input textarea {
  min-height: 118px;
  resize: vertical;
}

.content-create-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.content-create-main {
  display: grid;
  gap: 16px;
}

.content-create-form {
  display: grid;
  gap: 14px;
}

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

.content-create-form .full {
  grid-column: 1 / -1;
}

.content-create-form textarea {
  min-height: 136px;
  resize: vertical;
}

.content-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.content-type-card {
  min-height: 96px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

.content-type-card:hover,
.content-type-card.active {
  border-color: #c7d2fe;
  background: #f8faff;
}

.content-type-card strong {
  color: #111827;
  font-size: 14px;
}

.content-type-card span {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.content-create-side {
  display: grid;
  gap: 16px;
}

.content-settings-shell {
  display: grid;
  gap: 16px;
}

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

.content-settings-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.content-settings-summary span,
.content-setting-block-head span {
  color: var(--muted);
  font-size: 12px;
}

.content-settings-summary strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.content-settings-summary small {
  color: var(--muted);
  font-size: 12px;
}

.content-summary-select select {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.content-summary-stepper {
  height: 34px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.content-summary-stepper button {
  border: 0;
  background: #f8fafc;
  color: #344054;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.content-summary-stepper button:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.content-summary-stepper input {
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.content-summary-material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-summary-material-tabs button {
  min-height: 28px;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.content-summary-material-tabs button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.content-generation-active > .content-setting-block {
  min-height: 360px;
}

.content-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.content-settings-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-setting-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.content-setting-block-head {
  display: grid;
  gap: 4px;
}

.content-setting-block-head strong {
  color: var(--ink);
  font-size: 15px;
}

.content-setting-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-setting-chip {
  min-height: 30px;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.content-setting-chip.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

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

.content-setting-add input,
.content-setting-add textarea {
  width: 100%;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.content-setting-add input {
  height: 34px;
  padding: 0 10px;
}

.content-setting-add textarea {
  grid-column: 1 / -1;
  min-height: 74px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.55;
}

.content-setting-detail-list {
  display: grid;
  gap: 8px;
}

.content-setting-detail-list article {
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.content-setting-detail-list strong {
  color: var(--ink);
  font-size: 13px;
}

.content-setting-detail-list span {
  color: #475467;
  font-size: 12px;
  line-height: 1.6;
}

.content-settings-preview {
  margin: 0;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2937;
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.75;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.quick-generation-page {
  display: grid;
  gap: 18px;
}

.quick-query-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e8edf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 16px 18px;
}

.quick-query-input {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.quick-query-input svg {
  color: #6366f1;
}

.quick-query-input input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: none;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.quick-generation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.quick-left-stack,
.quick-right-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.quick-card,
.quick-submit-card {
  border: 1px solid #e8edf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.quick-card {
  overflow: hidden;
}

.quick-card-head {
  min-height: 62px;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
}

.quick-card-head h2,
.quick-submit-card h2 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
}

.quick-card-head span,
.quick-submit-card p {
  color: #8b96a8;
  font-size: 13px;
  font-weight: 700;
}

.quick-submit-card .quick-job-line {
  color: #4f647d;
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
}

.quick-route-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 22px 14px;
}

.quick-route-form label {
  display: grid;
  gap: 8px;
}

.quick-route-form span,
.quick-count-line > span {
  color: #8b96a8;
  font-size: 12px;
  font-weight: 800;
}

.quick-route-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #1f2937;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 900;
}

.quick-count-line {
  display: grid;
  grid-template-columns: 82px 180px;
  align-items: center;
  gap: 12px;
  padding: 0 22px 16px;
}

.quick-route-result {
  margin: 0 22px 22px;
  min-height: 64px;
  border-radius: 13px;
  background: linear-gradient(135deg, #28246f, #111827);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.quick-route-result span {
  color: #aab5ff;
  font-size: 12px;
  font-weight: 900;
}

.quick-route-result strong,
.quick-route-result b {
  font-size: 16px;
  font-weight: 900;
}

.quick-route-result i {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #93c5fd;
}

.quick-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 22px 0;
}

.quick-tabs button {
  min-height: 34px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.quick-tabs button.active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
}

.quick-material-panel {
  padding: 16px 22px 22px;
}

.quick-material-grid,
.quick-material-groups,
.quick-case-list,
.quick-pipeline-list {
  display: grid;
  gap: 10px;
}

.quick-material-card,
.quick-material-groups article,
.quick-case-list article,
.quick-pipeline-card {
  border: 1px solid #e3eaf5;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.quick-material-card.active,
.quick-case-list article.active {
  border-color: #9aa8ff;
  background: #f5f7ff;
}

.quick-material-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.quick-material-card strong,
.quick-material-groups strong,
.quick-case-list strong,
.quick-pipeline-card strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.quick-material-card span,
.quick-material-card small,
.quick-case-list span,
.quick-pipeline-head span,
.quick-pipeline-head b {
  color: #8b96a8;
  font-size: 12px;
  font-weight: 800;
}

.quick-material-card p,
.quick-material-groups p {
  margin: 8px 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

.quick-case-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
}

.quick-case-list label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-case-list span {
  grid-column: 1 / -1;
  color: #667085;
  font-weight: 700;
}

.quick-case-list em {
  border-radius: 7px;
  background: #eef2f7;
  color: #64748b;
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.quick-submit-card {
  min-height: 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  align-items: center;
  gap: 16px;
  padding: 22px;
}

.quick-submit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-submit-card .btn.primary {
  min-height: 48px;
  padding-inline: 22px;
  white-space: nowrap;
}

.quick-prompt-preview {
  padding: 18px 22px 22px;
}

.quick-module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.quick-module-list span {
  border: 1px solid #dbe4ff;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.quick-pipeline-list {
  padding: 20px 22px 22px;
}

.quick-pipeline-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quick-pipeline-head span,
.quick-pipeline-head b {
  border-radius: 7px;
  background: #f1f5f9;
  padding: 5px 9px;
}

.quick-pipeline-head b {
  background: #eef2ff;
  color: #4f46e5;
}

.quick-progress-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
}

.quick-progress-labels span:first-child,
.quick-progress-labels span:nth-child(2) {
  color: #10b981;
}

.quick-progress {
  height: 7px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
  margin-top: 8px;
}

.quick-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #6366f1);
}

@media (max-width: 1180px) {
  .quick-generation-grid {
    grid-template-columns: 1fr;
  }
}

.content-stage-list {
  display: grid;
  gap: 8px;
}

.content-stage-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.content-stage-list button.active,
.content-stage-list button:hover {
  border-color: #bbf7d0;
  background: #ecfdf3;
}

.content-stage-list i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.content-stage-list strong {
  display: block;
  color: #111827;
  font-size: 13px;
}

.content-stage-list em {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.content-retest-steps {
  display: grid;
  gap: 8px;
}

.content-retest-steps span {
  border-radius: 9px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.content-publish-shell {
  display: grid;
  gap: 18px;
}

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

.content-publish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

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

.content-publish-form .full {
  grid-column: 1 / -1;
}

.content-publish-form textarea {
  min-height: 116px;
  resize: vertical;
}

.content-retest-plan {
  display: grid;
  gap: 10px;
}

.content-retest-plan article {
  border: 1px solid #eef1f5;
  border-radius: 10px;
  background: #f8fafc;
  padding: 11px;
  display: grid;
  gap: 5px;
}

.content-retest-plan strong {
  color: #111827;
  font-size: 13px;
}

.content-retest-plan span {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.content-publish-table td:first-child small {
  display: block;
  margin-top: 5px;
  color: #98a2b3;
  font-size: 12px;
}

.release-board-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.release-import-form textarea {
  min-height: 180px;
}

.content-publish-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}

.media-resource-page {
  min-height: calc(100vh - 132px);
  padding: 0 0 24px;
  color: #0f172a;
}

.media-resource-workbench {
  display: grid;
  gap: 0;
}

.media-resource-single-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

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

.media-resource-tabs-hero {
  gap: 24px;
  padding: 16px 24px 0;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  background: #fff;
}

.media-resource-tab {
  min-height: 40px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: #fff;
  color: #64748b;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.16s ease;
}

.media-resource-tab:hover {
  color: #1e293b;
}

.media-resource-tab.active {
  border-bottom-color: #4f46e5;
  background: #fff;
  color: #4f46e5;
  box-shadow: none;
}

.media-resource-filters {
  display: grid;
  gap: 10px;
}

.media-resource-table-card {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.media-resource-filters {
  padding: 24px;
  border-bottom: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.5);
}

.media-resource-scope-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.5);
}

.media-resource-scope-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e7e9f3;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.media-resource-scope-tabs button.active {
  border-color: #d8ccff;
  background: #f5f2ff;
  color: #6d5dfc;
}

.media-resource-scope-tabs span {
  color: #9aa3b2;
  font-size: 12px;
  font-weight: 800;
}

.media-resource-primary-filters,
.media-resource-advanced-filters {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(124px, 150px) auto auto auto;
  gap: 12px;
  align-items: end;
}

.media-resource-advanced-filters {
  display: none;
  grid-template-columns: repeat(6, minmax(140px, 1fr)) auto;
  gap: 16px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.media-resource-advanced-filters.is-open {
  display: grid;
}

.media-resource-filters label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.media-resource-filters select,
.media-resource-filters input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-size: 14px;
  font-weight: 500;
}

.media-resource-advanced-filters select {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 12px;
}

.media-resource-search input,
.media-search-control input {
  min-height: 40px;
}

.media-search-control {
  position: relative;
  display: flex;
  align-items: center;
}

.media-search-control .media-resource-svg {
  position: absolute;
  left: 13px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.media-search-control input {
  padding-left: 42px;
}

.media-resource-filters .btn {
  min-height: 40px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.media-resource-svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.media-advanced-btn,
.media-filter-btn,
.media-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.media-advanced-btn {
  padding: 0 16px;
  border-color: #e2e8f0;
  background: #fff;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.media-advanced-btn.active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
}

.media-filter-btn {
  padding: 0 24px;
  border-color: #4f46e5 !important;
  background: #4f46e5 !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.media-refresh-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.media-resource-filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.media-resource-filter-actions .btn {
  min-height: 36px;
}

.media-resource-result-bar,
.media-resource-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.media-resource-result-bar {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 24px;
}

.media-resource-table-card .table-wrap {
  border-radius: 0;
}

.media-resource-table-card .media-resource-pager {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  background: rgba(248, 250, 252, 0.5);
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.media-resource-pager .btn {
  padding: 6px 12px;
  border-color: #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-size: 12px;
  font-weight: 700;
}

.media-resource-pager .btn:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.media-favorite-btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.media-favorite-btn.active {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #7c3aed;
}

.media-favorite-btn:hover {
  border-color: #ddd6fe;
  color: #8b5cf6;
}

.media-resource-result-bar strong,
.media-resource-result-bar small {
  display: block;
}

.media-resource-result-bar strong {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.media-resource-result-bar small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
}

.media-resource-pager {
  justify-content: flex-end;
}

.media-resource-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
  white-space: nowrap;
}

.media-resource-table-wrap {
  overflow-x: hidden;
}

.media-resource-table th:nth-child(1),
.media-resource-table td:nth-child(1) {
  width: 34px;
}

.media-resource-table th:nth-child(2),
.media-resource-table td:nth-child(2) {
  width: 208px;
}

.media-resource-table th:nth-child(3),
.media-resource-table td:nth-child(3) {
  width: 78px;
}

.media-resource-table th:nth-child(4),
.media-resource-table td:nth-child(4) {
  width: 82px;
}

.media-resource-table th:nth-child(5),
.media-resource-table td:nth-child(5) {
  width: 70px;
}

.media-resource-table th:nth-child(6),
.media-resource-table td:nth-child(6) {
  width: 86px;
}

.media-resource-table th:nth-child(7),
.media-resource-table td:nth-child(7) {
  width: 230px;
}

.media-resource-table th:nth-child(8),
.media-resource-table td:nth-child(8) {
  width: 58px;
  text-align: center;
}

.media-resource-table th {
  background: rgba(248, 250, 252, 0.8);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.media-sort-th {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.media-sort-th.active,
.media-sort-th:hover {
  color: #4f46e5;
}

.media-resource-table td {
  vertical-align: middle;
  color: #0f172a;
}

.media-resource-table th,
.media-resource-table td {
  padding: 10px 8px;
}

.media-resource-table tbody tr:hover {
  background: rgba(238, 242, 255, 0.3);
}

.media-resource-table th:first-child,
.media-resource-table td:first-child {
  width: 34px;
  padding-left: 10px;
  padding-right: 6px;
  text-align: center;
}

.media-resource-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.media-resource-check input {
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
}

.media-resource-name-cell strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-resource-name-cell a {
  color: inherit;
  text-decoration: none;
}

.media-resource-name-cell a:hover {
  color: #4f46e5;
}

.media-resource-name-cell small,
.media-resource-table td small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-resource-name-cell small {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
}

.media-resource-price strong {
  color: #e11d48;
  font-size: 14px;
  font-weight: 900;
}

.media-resource-price small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.media-attribute-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  align-items: start;
  justify-items: start;
}

.media-attribute-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: 66px;
  min-height: 20px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #475569;
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}

.media-attribute-off {
  color: #cbd5e1;
  font-size: 9.5px;
  text-decoration: line-through;
  white-space: nowrap;
}

.media-attribute-badge .media-resource-svg {
  display: none;
  width: 10px;
  height: 10px;
  color: #475569;
}

.media-resource-efficiency strong {
  display: block;
  margin-bottom: 4px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.media-rate-line {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 74px;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.media-rate-line em {
  color: #059669;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.media-rate-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.media-resource-remark {
  max-width: 100%;
}

.media-resource-remark span,
.media-resource-remark small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-resource-remark span {
  display: -webkit-box;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.media-resource-remark small {
  color: #64748b;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.media-rate-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
}

@media (max-width: 1100px) {
  .media-resource-primary-filters,
  .media-resource-advanced-filters {
    grid-template-columns: 1fr 1fr;
  }

  .media-resource-tab {
    flex: 1 1 140px;
  }
}

.publish-import-modal {
  width: min(760px, calc(100vw - 32px));
}

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

.publish-import-body textarea {
  min-height: 170px;
}

.publish-summary-input {
  min-height: 72px !important;
}

.publish-rich-field {
  gap: 8px;
}

.publish-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e4e9f2;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f8fafc;
}

.rich-toolbar-group {
  display: inline-flex;
  gap: 4px;
  padding-right: 6px;
  border-right: 1px solid #e4e9f2;
}

.rich-toolbar-group:last-child {
  padding-right: 0;
  border-right: 0;
}

.publish-rich-toolbar .icon-btn {
  width: 34px;
  height: 30px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 12px;
}

.publish-rich-editor {
  min-height: 260px;
  padding: 14px;
  border: 1px solid #e4e9f2;
  border-radius: 0 0 10px 10px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  line-height: 1.75;
  outline: none;
}

.publish-rich-editor:focus {
  border-color: #7c8cff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.publish-rich-editor:empty::before {
  color: #98a2b3;
  content: attr(data-placeholder);
}

.publish-rich-editor table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
}

.publish-rich-editor th,
.publish-rich-editor td {
  padding: 8px 10px;
  border: 1px solid #d9e2f1;
}

.publish-rich-field.is-editor-fullscreen {
  position: fixed;
  inset: 24px;
  z-index: 5000;
  display: flex;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.publish-rich-field.is-editor-fullscreen .publish-rich-editor {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.publish-payload-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed #cfd7e6;
  border-radius: 10px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
}

.publish-payload-hint strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
}

.article-editor-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  align-items: start;
}

.article-editor-main,
.article-editor-side {
  min-width: 0;
}

.article-editor-body,
.article-side-body {
  display: grid;
  gap: 14px;
}

.article-title-field input {
  min-height: 48px;
  font-size: 20px;
  font-weight: 700;
}

.article-rich-editor {
  min-height: 560px;
  font-size: 15px;
}

.article-editor-side {
  position: sticky;
  top: 16px;
}

.article-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.publish-media-cart {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #fbfdff;
}

.publish-media-cart-head,
.publish-media-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.publish-media-cart-head span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.publish-media-row {
  display: grid;
  padding: 10px;
  border: 1px solid #dbe5f5;
  border-radius: 10px;
  background: #fff;
}

.publish-media-row strong {
  color: #111827;
  font-size: 14px;
}

.publish-media-row span,
.publish-media-row small {
  color: #667085;
  font-size: 12px;
}

.publish-title-cell strong,
.publish-title-cell small,
.content-publish-table td small {
  display: block;
}

.publish-title-cell strong {
  max-width: 420px;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-publish-table td {
  vertical-align: middle;
}

.content-publish-table td small {
  margin-top: 5px;
  color: #98a2b3;
  font-size: 12px;
}

.publish-action-cell {
  white-space: nowrap;
}

.publish-action-cell .btn + .btn {
  margin-left: 6px;
}

@media (max-width: 1180px) {
  .release-board-grid {
    grid-template-columns: 1fr;
  }

  .media-resource-filters {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .article-editor-page {
    grid-template-columns: 1fr;
  }

  .article-editor-side {
    position: static;
  }
}

@media (max-width: 1100px) {
  .strategy-stage-card {
    flex-basis: min(86vw, 520px);
    min-width: min(86vw, 520px);
  }
}

.strategy-matrix {
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  background: #fff;
  overflow: auto;
}

.strategy-matrix-row {
  display: grid;
  grid-template-columns: 116px repeat(var(--strategy-stage-count, 3), minmax(230px, 1fr));
  min-width: max(980px, calc(116px + var(--strategy-stage-count, 3) * 230px));
  border-top: 1px solid #eef1f5;
}

.strategy-matrix-row:first-child {
  border-top: 0;
}

.strategy-matrix-head {
  background: #fafafa;
}

.strategy-axis-label {
  padding: 14px 16px;
  border-right: 1px solid #eef1f5;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.strategy-stage-title {
  position: relative;
  padding: 14px 16px;
  border-right: 1px solid #eef1f5;
  display: grid;
  gap: 7px;
}

.strategy-stage-title:last-child,
.strategy-matrix-cell:last-child {
  border-right: 0;
}

.strategy-stage-title.attention {
  background: #fbfbff;
}

.strategy-stage-title strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.strategy-stage-title span {
  color: #667085;
  font-size: 12px;
}

.strategy-stage-title b {
  position: absolute;
  top: 14px;
  right: 16px;
  color: #4f46e5;
  font-size: 16px;
}

.strategy-stage-title .strategy-progress {
  width: calc(100% - 46px);
  margin-top: 4px;
}

.strategy-matrix-cell {
  min-height: 82px;
  padding: 12px 14px;
  border-right: 1px solid #eef1f5;
  display: grid;
  align-content: start;
  gap: 7px;
}

.strategy-matrix-cell span {
  display: block;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  padding: 8px 9px;
  font-size: 12px;
  line-height: 1.45;
}

.strategy-matrix-actions {
  background: #fbfcff;
}

.strategy-matrix-actions .strategy-matrix-cell {
  min-height: auto;
  align-content: center;
}

.strategy-matrix-actions .btn {
  min-height: 34px;
  border-radius: 8px;
  font-size: 12px;
}

.discovery-confirm-modal {
  width: min(720px, calc(100vw - 36px));
}

.tl-confirm-discovery > p {
  color: #667085;
  font-size: 14px;
}

.tl-confirm-topic-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tl-confirm-topic {
  display: grid;
  gap: 8px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fbfcff;
  padding: 12px;
}

.tl-confirm-topic span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tl-confirm-topic strong {
  color: #111827;
  font-size: 14px;
}

.tl-confirm-topic em {
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  padding: 3px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.tl-confirm-topic textarea {
  min-height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  resize: vertical;
  padding: 10px;
  color: #344054;
  font-size: 13px;
}

.tl-confirm-count {
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
  text-align: right;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.46);
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

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

.modal-title-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-title-line h2 {
  margin: 0;
}

.modal-body {
  padding: 18px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.topic-delete-modal-btn {
  margin-right: auto;
}

.brand-name-modal {
  width: min(460px, calc(100vw - 32px));
}

.delete-confirm-modal {
  width: min(430px, calc(100vw - 32px));
}

.service-need-match-modal {
  width: min(640px, calc(100vw - 32px));
}

.service-need-match-body {
  display: grid;
  gap: 14px;
}

.service-need-match-body.loading {
  min-height: 180px;
  place-items: center;
  text-align: center;
  color: #64748b;
}

.service-need-match-body.loading p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.service-need-match-body.loading small {
  max-width: 360px;
  line-height: 1.7;
}

.service-need-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 999px;
  animation: serviceNeedSpin 0.8s linear infinite;
}

.service-need-match-body section {
  display: grid;
  gap: 8px;
}

.service-need-match-body label {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.service-need-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-need-chip-row.final .brand-edit-chip {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.service-need-chip-row.danger .brand-edit-chip {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.service-need-chip-row.review .brand-edit-chip {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.service-need-match-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-need-match-list li {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.service-need-match-list b {
  color: #0f172a;
}

.service-need-match-list small {
  color: #64748b;
}

.service-need-warning {
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
}

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

.competitor-zoom-modal {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 28px);
}

.competitor-zoom-modal .modal-body {
  padding: 20px 22px 24px;
}

.brand-name-modal .modal-head {
  border-bottom: 0;
  padding-bottom: 8px;
}

.brand-name-modal .modal-body {
  padding-top: 8px;
}

.brand-name-confirm {
  display: grid;
  gap: 12px;
}

.brand-confirm-lead {
  color: var(--ink);
  line-height: 1.7;
}

.brand-confirm-list {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  color: #475569;
  font-size: 12.5px;
}

.brand-confirm-field {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
}

.brand-confirm-field input {
  min-height: 38px;
  border-radius: 8px;
  font-size: 13.5px;
}

.delete-confirm-body {
  display: grid;
  gap: 12px;
  color: #475569;
  line-height: 1.7;
}

.delete-confirm-target {
  display: grid;
  gap: 4px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  padding: 10px 12px;
}

.delete-confirm-target span {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.delete-confirm-target strong {
  color: var(--ink);
  font-size: 14px;
}

.danger-confirm {
  background: #e5484d;
  border-color: #e5484d;
}

.danger-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.x-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 0;
  background: var(--soft);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  background: #0f172a;
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.asset-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.7fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.asset-hero > div:first-child {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  padding: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.asset-hero > div:first-child span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.asset-hero h2 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.asset-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.asset-stat-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
}

.asset-stat-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.asset-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.asset-metric {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
}

.asset-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.asset-metric strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.asset-metric small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.asset-metric.green strong {
  color: var(--green);
}

.asset-metric.amber strong {
  color: var(--amber);
}

.asset-metric.purple strong {
  color: var(--purple);
}

.asset-metric.blue strong {
  color: var(--brand);
}

.asset-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px;
  margin-bottom: 12px;
}

.asset-view-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.asset-view-tabs button.active {
  background: #111827;
  color: #fff;
}

.asset-filter-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.04);
}

.asset-detail-filters {
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: #fbfcff;
  padding: 12px;
  margin-bottom: 12px;
}

.asset-row-expanded td {
  border-bottom-color: transparent;
}

.asset-detail-row > td {
  padding: 0 16px 16px;
  background: color-mix(in srgb, var(--surface) 96%, #eef2ff 4%);
}

.asset-inline-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.asset-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: 14px;
}

.asset-detail-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfcff;
}

.asset-semantic-block {
  grid-column: 1 / -1;
}

.asset-beneficiary-cell strong {
  display: block;
  color: var(--ink);
}

.asset-semantic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.asset-semantic-tags span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
}

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

.asset-semantic-lists h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink);
}

.asset-semantic-lists ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asset-semantic-lists li {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.asset-semantic-lists li b,
.asset-semantic-lists li span,
.asset-semantic-lists li small {
  display: block;
}

.asset-semantic-lists li b {
  font-size: 13px;
  color: var(--ink);
}

.asset-semantic-lists li span {
  margin-top: 3px;
  color: #059669;
  font-size: 12px;
}

.asset-semantic-lists li small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.asset-detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.asset-detail-block-head strong {
  font-size: 14px;
}

.asset-detail-block-head span:not(.pill) {
  color: var(--muted);
  font-size: 12px;
}

.asset-detail-kv {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0 0 12px;
  font-size: 13px;
}

.asset-detail-kv dt {
  color: var(--muted);
}

.asset-detail-kv dd {
  margin: 0;
  min-width: 0;
  word-break: break-all;
}

.asset-title-editor {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.asset-title-editor label {
  display: grid;
  gap: 5px;
}

.asset-title-editor span {
  color: var(--muted);
  font-size: 12px;
}

.asset-title-editor input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text);
}

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

.asset-timeline li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
}

.asset-timeline i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  margin-top: 5px;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.asset-timeline b {
  display: inline-block;
  margin-right: 8px;
  font-size: 13px;
}

.asset-timeline small {
  color: var(--muted);
  font-size: 12px;
}

.asset-timeline p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 920px) {
  .asset-detail-grid,
  .asset-semantic-lists,
  .asset-title-editor {
    grid-template-columns: 1fr;
  }
}

.asset-filter-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: end;
}

.asset-search {
  display: grid;
  gap: 5px;
}

.asset-search span,
.asset-filter-main label span,
.asset-toggle-field > span {
  color: var(--muted);
  font-size: 12px;
}

.asset-toggle-field {
  display: grid;
  gap: 5px;
}

.asset-filter-combo {
  display: grid;
  grid-template-columns: minmax(122px, 1fr) minmax(118px, 0.9fr);
  gap: 8px;
  align-items: end;
}

.asset-matrix-head {
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}

.asset-matrix-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
}

.asset-matrix-title h2 {
  margin: 0;
  font-size: 20px;
}

.asset-matrix-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.asset-matrix-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6d5dfc, #4f46e5);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
  flex: 0 0 auto;
}

.asset-matrix-icon svg {
  width: 24px;
  height: 24px;
}

.asset-matrix-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.asset-matrix-actions > * + * {
  position: relative;
}

.asset-matrix-actions > * + *::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 1px;
  height: 28px;
  transform: translateY(-50%);
  background: #e5e7eb;
}

.asset-matrix-actions .asset-column-menu::before,
.asset-matrix-actions .asset-column-menu *::before,
.asset-matrix-actions .asset-action-menu::before,
.asset-matrix-actions .asset-action-menu *::before {
  content: none;
}

.asset-date-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.asset-date-inline label {
  display: block;
}

.asset-date-inline label span {
  display: none;
}

.asset-date-inline select {
  min-width: 132px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.asset-matrix-actions .btn.active {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #eef2ff;
}

.asset-column-select {
  position: relative;
  display: grid;
  gap: 5px;
}

.asset-action-select {
  position: relative;
  display: inline-flex;
}

.asset-column-trigger {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.asset-action-trigger {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.asset-action-trigger i {
  color: var(--muted);
  font-style: normal;
  transition: transform 0.16s ease;
}

.asset-action-select.open .asset-action-trigger i {
  transform: rotate(180deg);
}

.asset-column-trigger span {
  color: var(--muted);
  font-size: 12px;
}

.asset-column-trigger strong {
  font-size: 12px;
  font-weight: 700;
}

.asset-column-trigger i {
  color: var(--muted);
  font-style: normal;
  transition: transform 0.16s ease;
}

.asset-column-select.open .asset-column-trigger i {
  transform: rotate(180deg);
}

.asset-column-menu {
  position: absolute;
  z-index: 40;
  right: 0;
  top: calc(100% + 6px);
  width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.asset-action-menu {
  position: absolute;
  z-index: 40;
  right: 0;
  top: calc(100% + 6px);
  width: 150px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.asset-action-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.asset-action-menu button:hover {
  background: var(--soft);
}

.asset-column-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.asset-column-menu label:hover {
  background: var(--soft);
}

.asset-column-menu input {
  width: 14px;
  height: 14px;
}

.ios-switch {
  width: 92px;
  height: 34px;
  border: 1px solid #d8e1ee;
  border-radius: 999px;
  background: #e5eaf1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ios-switch i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
  flex: 0 0 auto;
}

.ios-switch strong {
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

.ios-switch.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  padding-left: 10px;
  padding-right: 4px;
  flex-direction: row-reverse;
}

.ios-switch.active i {
  transform: translateX(0);
}

.asset-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.asset-table-wrap table {
  min-width: 1280px;
}

.asset-table-wrap {
  scrollbar-gutter: stable;
  cursor: grab;
}

.asset-table-wrap a,
.asset-table-wrap button,
.asset-table-wrap input,
.asset-table-wrap select,
.asset-table-wrap textarea {
  cursor: auto;
}

.asset-table-wrap th:first-child,
.asset-table-wrap td.asset-platform-cell {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding-left: 8px;
  padding-right: 4px;
  text-align: center;
}

.asset-table-wrap .content-asset-table {
  min-width: 1660px;
}

.asset-table-wrap .content-asset-table.target-hidden {
  min-width: 1460px;
}

.content-asset-table .asset-level-cell {
  width: 150px;
  min-width: 150px;
  white-space: nowrap;
}

.content-asset-table .asset-retest-cell {
  width: 150px;
  min-width: 150px;
  white-space: nowrap;
}

.content-asset-table .asset-status-cell {
  width: 104px;
  min-width: 104px;
  white-space: nowrap;
}

.content-asset-table .asset-level-cell .pill,
.content-asset-table .asset-retest-cell .asset-muted,
.content-asset-table .asset-status-cell .pill {
  white-space: nowrap;
}

.content-asset-table .asset-retest-cell .asset-muted {
  display: block;
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.content-asset-table th.asset-platform-head,
table.content-asset-table td.asset-platform-cell {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
}

table.content-asset-table th.asset-platform-head,
table.content-asset-table td.asset-platform-cell,
table.content-asset-table th.asset-title-head,
table.content-asset-table td.asset-title-col,
table.account-asset-table th:nth-child(1),
table.account-asset-table td.asset-platform-cell,
table.account-asset-table th:nth-child(2),
table.account-asset-table td.account-name-cell {
  position: sticky;
  z-index: 8;
  background: var(--surface);
}

table.content-asset-table th.asset-platform-head,
table.content-asset-table td.asset-platform-cell,
table.account-asset-table th:nth-child(1),
table.account-asset-table td.asset-platform-cell {
  left: 0;
}

table.content-asset-table th.asset-title-head,
table.content-asset-table td.asset-title-col,
table.account-asset-table th:nth-child(2),
table.account-asset-table td.account-name-cell {
  left: 44px;
  box-shadow: 10px 0 18px -18px rgba(15, 23, 42, 0.55);
}

table.content-asset-table th.asset-platform-head,
table.content-asset-table th.asset-title-head,
table.account-asset-table th:nth-child(1),
table.account-asset-table th:nth-child(2) {
  z-index: 10;
  background: #fafafa;
}

table.content-asset-table th.asset-title-head,
table.content-asset-table td.asset-title-col {
  width: 560px !important;
  min-width: 560px !important;
}

table.content-asset-table.target-hidden th.asset-title-head,
table.content-asset-table.target-hidden td.asset-title-col {
  width: 650px !important;
  min-width: 650px !important;
}

table.content-asset-table th.asset-publisher-head,
table.content-asset-table td.asset-publisher-cell {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
}

table.content-asset-table th.asset-publishedAt-head,
table.content-asset-table td.asset-published-cell {
  width: 116px !important;
  min-width: 116px !important;
  white-space: nowrap;
}

table.content-asset-table th.asset-target-head,
table.content-asset-table td.asset-target-cell {
  width: 300px !important;
  min-width: 300px !important;
}

table.content-asset-table th.asset-actions-head,
table.content-asset-table td.asset-actions-cell {
  width: 330px !important;
  min-width: 330px !important;
}

.account-asset-table {
  min-width: 1180px;
}

.account-asset-table th:nth-child(1),
.account-asset-table td.asset-platform-cell {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
}

.account-asset-table th:nth-child(2),
.account-asset-table td.account-name-cell {
  width: 330px !important;
  min-width: 330px !important;
  max-width: 330px !important;
}

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

.account-asset-table th:nth-child(7),
.account-asset-table td:nth-child(7) {
  min-width: 260px;
}

.account-asset-table th:nth-child(8),
.account-asset-table td:nth-child(8) {
  min-width: 280px;
  white-space: nowrap;
}

.asset-actions-cell {
  white-space: nowrap;
}

.asset-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
}

.asset-platform .platform-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #eef5ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.platform-logo-toutiao {
  background: linear-gradient(145deg, #ff4b4b 0%, #e91f2e 100%) !important;
  color: #fff !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
}

.platform-logo-toutiao::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #e91f2e 0 2px, transparent 2.4px),
    linear-gradient(#fff 0 0);
  box-shadow: -6px 0 0 -2px #fff, 6px 0 0 -2px #fff;
}

.platform-logo-douyin {
  position: relative;
  overflow: hidden;
  background: #08090b !important;
  color: #fff !important;
  font-size: 18px !important;
  text-shadow: -1px 0 #25f4ee, 1px 0 #fe2c55;
}

.platform-logo-xhs {
  background: linear-gradient(145deg, #ff3759 0%, #ff2442 100%) !important;
  color: #fff !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
}

.platform-logo-xhs::before {
  content: "";
  width: 14px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: inset 0 4px 0 -2px #fff, inset 0 -4px 0 -2px #fff;
}

.platform-logo-xhs::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transform: translateY(1px);
}

.platform-logo-dianping {
  background: linear-gradient(145deg, #ffad22 0%, #ff7800 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  text-shadow: 0 1px 0 rgba(100, 44, 0, 0.2);
}

.platform-logo-meituan {
  background: #ffd100 !important;
  color: #111827 !important;
}

.platform-logo-dianping-meituan {
  background: linear-gradient(135deg, #ff8a00 0 50%, #ffd100 50% 100%) !important;
  color: transparent !important;
  font-size: 0 !important;
}

.platform-logo-dianping-meituan::before {
  content: "★";
  position: absolute;
  left: 5px;
  top: 4px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(100, 44, 0, 0.22);
}

.platform-logo-dianping-meituan::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111827;
  box-shadow: inset 0 0 0 3px #ffd100;
}

.platform-logo-map {
  background: linear-gradient(145deg, #eaf7ff 0%, #f7fbff 100%) !important;
  color: transparent !important;
  border: 1px solid rgba(22, 119, 255, 0.22);
}

.platform-logo-map::before,
.platform-logo-amap::before,
.platform-logo-baidu-map::before,
.platform-logo-map-stack::before {
  content: "";
  width: 13px;
  height: 17px;
  border-radius: 9px 9px 9px 3px;
  transform: rotate(45deg);
}

.platform-logo-map::before {
  background: linear-gradient(135deg, #1677ff 0%, #13c2c2 100%);
}

.platform-logo-map::after,
.platform-logo-amap::after,
.platform-logo-baidu-map::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.platform-logo-amap {
  background: linear-gradient(145deg, #eafff4 0%, #eaf4ff 100%) !important;
  color: transparent !important;
  border: 1px solid rgba(27, 184, 116, 0.22);
}

.platform-logo-amap::before {
  background: linear-gradient(135deg, #10b981 0%, #1677ff 70%, #ffd13d 100%);
}

.platform-logo-baidu-map {
  background: #fff !important;
  color: #1677ff !important;
  border: 1px solid rgba(22, 119, 255, 0.28);
  font-size: 11px !important;
}

.platform-logo-baidu-map::before {
  position: absolute;
  inset: 4px 6px 7px 9px;
  width: auto;
  height: auto;
  background: #e9262e;
  z-index: 0;
}

.platform-logo-baidu-map {
  z-index: 1;
}

.platform-logo-map-stack {
  background: linear-gradient(145deg, #fff7ed 0%, #eaf4ff 100%) !important;
  color: transparent !important;
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.platform-logo-map-stack::before {
  position: absolute;
  width: 12px;
  height: 15px;
  left: 7px;
  top: 7px;
  background: #1677ff;
}

.platform-logo-map-stack::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 15px;
  right: 7px;
  top: 5px;
  border-radius: 9px 9px 9px 3px;
  transform: rotate(45deg);
  background: #10b981;
  box-shadow: 0 0 0 2px #fff;
}

.platform-logo-official {
  background: #eef5ff !important;
  color: var(--brand) !important;
}

.platform-logo-media {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

.platform-logo-health {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.platform-logo-ugc {
  background: #fce7f3 !important;
  color: #be185d !important;
}

.asset-platform .platform-logo-img {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 3px;
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 11px !important;
  text-shadow: none !important;
}

.asset-platform .platform-logo-img::before,
.asset-platform .platform-logo-img::after {
  content: none !important;
}

.asset-platform .platform-logo-img img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.asset-platform .platform-logo-img .platform-logo-fallback {
  display: none;
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
}

.asset-platform .platform-logo-img.is-fallback .platform-logo-fallback {
  display: inline-flex;
}

.asset-platform .platform-logo-img.is-fallback img {
  display: none !important;
}

.asset-platform .platform-logo-group {
  width: 34px;
  padding: 2px 3px;
}

.asset-platform .platform-logo-group img {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.24), 0 1px 2px rgba(15, 23, 42, 0.08);
}

.asset-platform .platform-logo-group img + img {
  margin-left: -5px;
}

.asset-platform .platform-logo-group.is-fallback {
  width: 34px;
}

.platform-logo-web {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.asset-title-cell {
  display: grid;
  gap: 6px;
  min-width: 290px;
}

.asset-title-cell > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.asset-title-cell a,
.asset-title-cell strong {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.content-asset-table .asset-title-cell {
  min-width: 260px;
  max-width: 520px;
}

.content-asset-table .asset-title-cell > div {
  flex-wrap: nowrap;
  min-width: 0;
}

.content-asset-table .asset-title-text {
  display: inline-block;
  max-width: 350px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.content-asset-table.target-hidden .asset-title-cell {
  max-width: 650px;
}

.content-asset-table.target-hidden .asset-title-text {
  max-width: 480px;
}

.content-asset-table td:nth-child(3) > strong {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-asset-table td:nth-child(3) > .asset-muted {
  max-width: 260px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-asset-table .asset-title-cell .pill {
  flex: 0 0 auto;
}

.asset-title-cell a:hover {
  color: var(--brand);
}

.asset-title-cell small,
.asset-muted {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.asset-url-check {
  color: #64748b !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: inline-block !important;
  padding: 3px 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-title-cell .asset-url-missing {
  color: #b45309;
}

.asset-target {
  display: grid;
  gap: 4px;
  min-width: 300px;
  color: #334155;
  font-size: 12px;
}

.asset-list-panel .btn {
  min-height: 30px;
  padding: 0 10px;
}

.asset-list-panel .panel-head {
  border-bottom: 1px solid #edf2f7;
}

.asset-list-panel .panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.settings-flow-grid article {
  border: 1px solid #e5ecf6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 12px;
  min-height: 76px;
}

.settings-flow-grid article > i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  background: #eef2ff;
  margin-bottom: 8px;
  font-style: normal;
}

.import-step-icon {
  width: 17px;
  height: 17px;
}

.settings-flow-grid strong {
  display: block;
  color: #111827;
  font-size: 13px;
  margin-bottom: 6px;
}

.settings-flow-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.import-queue-panel {
  border-color: #dbeafe;
  background: #fbfdff;
}

.import-queue-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.import-processing-modal {
  max-width: 860px;
}

.import-processing {
  display: grid;
  gap: 14px;
}

.import-processing-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}

.import-processing-hero > span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.2);
}

.import-processing-icon {
  width: 22px;
  height: 22px;
}

.import-processing-hero h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.import-processing-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.import-progress-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.import-progress-grid article {
  border: 1px solid #e5ecf6;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  text-align: center;
}

.import-progress-grid strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.import-progress-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.import-process-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.import-process-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e5ecf6;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.import-process-row strong,
.import-process-row small,
.import-process-row em {
  display: block;
}

.import-process-row strong {
  color: var(--ink);
  font-size: 13px;
}

.import-process-row small,
.import-process-row em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-process-row em {
  font-style: normal;
}

.import-process-status {
  border-radius: 999px;
  padding: 6px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  background: #f1f5f9;
  color: #475569;
}

.import-process-status.green {
  background: #dcfce7;
  color: #166534;
}

.import-process-status.amber {
  background: #fef3c7;
  color: #92400e;
}

.import-process-status.red {
  background: #fee2e2;
  color: #991b1b;
}

.import-process-status.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

@media (max-width: 980px) {
  .citation-filter-row {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .citation-source-type-segmented {
    margin-left: 0;
  }

  .citation-toolbar-head,
  .citation-toolbar-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .citation-toolbar-actions {
    width: 100%;
  }

  .asset-matrix-head {
    align-items: flex-start;
  }

  .asset-matrix-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .asset-matrix-actions > * + *::before {
    display: none;
  }

  .settings-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.asset-pool-hint {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.asset-list-panel td:last-child {
  white-space: nowrap;
}

.account-content-count {
  min-width: 30px;
  min-height: 28px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.account-content-count:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.account-expand-cell {
  cursor: pointer;
}

tr:hover .account-expand-cell {
  background: #fafbff;
}

.account-content-row > td {
  border-top: 0;
  background: #fbfcff;
  padding-top: 0;
}

.account-content-box {
  border: 1px solid #e8edf5;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.account-content-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}

.account-content-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.account-content-table td:first-child {
  width: auto;
}

.account-content-table td:nth-child(2) {
  width: 168px;
  min-width: 168px;
  white-space: nowrap;
}

.account-content-table td:nth-child(3) {
  width: 108px;
  min-width: 108px;
  white-space: nowrap;
}

.account-content-table td:nth-child(4) {
  width: 116px;
  min-width: 116px;
  white-space: nowrap;
  color: var(--muted);
}

.account-content-table a,
.account-content-table strong {
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-content-table a:hover {
  color: var(--brand);
}

.account-content-empty {
  border: 1px dashed #dbe4f0;
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.asset-import-modal {
  display: grid;
  gap: 12px;
}

.asset-import-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 10px;
  background: #eef3f8;
  border: 1px solid #dde7f1;
}

.asset-import-mode button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

.asset-import-mode button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.video-preview {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #111827;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  margin-bottom: 14px;
}

.video-preview strong {
  font-size: 18px;
}

.snapshot-video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  background: #111827;
}

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

.onboarding-step {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
}

.onboarding-step span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.onboarding-step strong {
  font-size: 13px;
}

.onboarding-step.active,
.onboarding-step.done {
  border-color: #bfdbfe;
  color: var(--ink);
  background: #eef5ff;
}

.onboarding-step.active span,
.onboarding-step.done span {
  background: var(--brand);
  color: #fff;
}

.onboarding-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.onboarding-input {
  display: grid;
  gap: 14px;
}

.onboarding-input h2,
.agent-card h2,
.candidate-detail h2 {
  margin: 0;
  font-size: 18px;
}

.onboarding-input p,
.agent-card p,
.candidate-detail p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.onboarding-input textarea {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  resize: vertical;
  font: inherit;
  line-height: 1.7;
  outline: none;
}

.onboarding-input textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.attach-row,
.source-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar.right {
  justify-content: flex-end;
}

.onboarding-aside {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-aside h3 {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  font-size: 14px;
}

.onboarding-aside div,
.stage-list div,
.source-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 12px;
}

.onboarding-aside span,
.stage-list span {
  color: var(--green);
  font-weight: 900;
  margin-right: 6px;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 18px;
}

.agent-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid #dbeafe;
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

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

.stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.candidate-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
}

.candidate-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.candidate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  padding: 12px;
  cursor: pointer;
}

.candidate-card.active {
  border-color: var(--brand);
  background: #eef5ff;
}

.candidate-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.candidate-card strong {
  font-size: 14px;
}

.candidate-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.candidate-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.candidate-detail {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}

.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.field-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.field-grid label {
  color: var(--muted);
  font-size: 12px;
}

.brand-panel {
  display: grid;
  gap: 10px;
}

.brand-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.brand-option:hover,
.brand-option.active {
  border-color: var(--brand);
  background: #eef5ff;
}

.brand-option span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.brand-option strong,
.brand-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-option small {
  color: var(--muted);
}

.brand-switcher-sublist {
  display: grid;
  gap: 8px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.brand-option.compact {
  padding: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.brand-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #f2f4f7;
  color: var(--brand);
  font-weight: 800;
}

.overview-compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
}

.sentiment-layout.compact {
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 18px;
}

.sentiment-layout.compact .sentiment-ring {
  width: 138px;
  height: 138px;
}

.sentiment-layout.compact .sentiment-ring::after {
  inset: 20px;
}

.golden-query-card {
  padding-bottom: 22px;
}

.golden-query-question {
  margin: 4px 24px 16px;
  min-height: 48px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 700;
}

.golden-score-list {
  display: grid;
  gap: 11px;
  padding: 0 24px;
}

.golden-score-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  color: #475569;
}

.golden-score-row span {
  font-weight: 700;
}

.golden-score-row i {
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.golden-score-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4f46e5;
}

.golden-score-row strong {
  color: #0f172a;
  text-align: right;
}

.golden-score-row em {
  grid-column: 2 / 4;
  margin-top: -4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.competitor-date-row {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.competitor-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.competitor-chart-card {
  min-height: 0;
  height: 448px;
  overflow: hidden;
  padding: 18px;
}

.competitor-rank-bars {
  display: grid;
  gap: 6px;
}

.competitor-rank-row {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  grid-template-columns: 26px minmax(0, 160px) minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  text-align: left;
}

.competitor-rank-row:hover,
.competitor-rank-row.target {
  background: #f8fbff;
}

.competitor-rank-row span {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
  font-size: 12px;
}

.competitor-rank-row.target span {
  color: #fff;
  background: #16a34a;
}

.competitor-rank-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.competitor-rank-row i {
  height: 10px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.competitor-rank-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6366f1;
}

.competitor-rank-row.target b {
  background: #16a34a;
}

.competitor-rank-row em {
  color: #475569;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

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

.competitor-platform-grid article {
  min-height: 126px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.competitor-platform-grid h4 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-platform-grid article > div {
  height: 78px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  align-items: end;
}

.competitor-platform-grid span {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 10px;
}

.competitor-platform-grid b {
  width: 100%;
  align-self: end;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #818cf8, #4f46e5);
}

.competitor-matrix-panel,
.competitor-topic-panel {
  margin-top: 18px;
  border-color: #edf0f4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.competitor-topic-panel .panel-body {
  max-height: 620px;
  overflow: auto;
}

.platform-rate-table tr.target-row td {
  background: #f0fdf4;
}

.sentiment-panel-head {
  margin-bottom: 14px;
}

.sentiment-panel-head h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
}

.sentiment-panel-head p {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.sentiment-quote-panel {
  min-height: 286px;
  padding: 16px;
}

.sentiment-quote-panel table {
  border: 1px solid #edf0f4;
  border-radius: 10px;
  overflow: hidden;
}

.tl-chart-card,
.tl-metric-chart-card {
  border: 1px solid #edf0f4 !important;
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035) !important;
}

.rank-board-card.tl-chart-card,
.rank-trend-card.tl-chart-card,
.sentiment-visual-card.tl-chart-card,
.source-pref-card.tl-chart-card {
  padding: 20px;
}

.tl-chart-head {
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tl-chart-head h2,
.tl-chart-head h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.35;
}

.tl-chart-head p {
  margin: 2px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.tl-chart-body {
  min-width: 0;
}

.tl-chart-card svg line {
  stroke: #edf2f7;
  stroke-dasharray: 3 5;
}

.tl-chart-card svg text {
  fill: #94a3b8;
}

.tl-chart-card .rank-trend-svg polyline,
.tl-chart-card .overview-chart polyline {
  stroke: #4f46e5;
}

.tl-chart-card .source-pref-axis,
.tl-chart-card .source-pref-stack-row em,
.tl-chart-card .source-pref-stack-row > span,
.tl-chart-card .source-pref-legend div {
  color: #64748b;
}

.timus-comp-page {
  display: grid;
  gap: 16px;
  color: #111827;
}

.timus-comp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.timus-comp-date,
.timus-comp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timus-comp-date span {
  color: #8b95a5;
  font-size: 12px;
}

.timus-comp-page .date-range-btn {
  height: 34px;
  min-height: 34px;
  border-color: #e9edf3;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
}

.timus-comp-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timus-comp-kpi {
  min-height: 118px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

.timus-comp-kpi.primary {
  border-color: #dad7ff;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 78%);
}

.timus-comp-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timus-comp-kpi-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #eef2ff;
  color: #5b50f2;
  box-shadow: 0 8px 16px rgba(91, 80, 242, 0.12);
}

.timus-comp-kpi.primary .timus-comp-kpi-logo {
  background: linear-gradient(135deg, #5b50f2, #7c3aed);
  color: #fff;
}

.timus-comp-kpi-svg {
  width: 20px;
  height: 20px;
}

.timus-comp-kpi-mark {
  border-radius: 999px;
  background: #f8fafc;
  color: #98a2b3;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.timus-comp-kpi-main span {
  display: block;
  color: #8b95a5;
  font-size: 12px;
  font-weight: 700;
}

.timus-comp-kpi-main strong {
  display: block;
  margin-top: 7px;
  color: #111827;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.timus-comp-kpi.primary .timus-comp-kpi-main strong {
  color: #4f46e5;
}

.timus-comp-kpi p {
  margin: 0;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-industry-compact {
  padding-bottom: 16px;
}

.market-industry-compact .timus-comp-card-head {
  margin-bottom: 12px;
}

.market-industry-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(110px, 0.55fr));
  gap: 10px;
}

.market-industry-strip span {
  min-height: 58px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fbfcff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.market-industry-strip em {
  color: #8b95a5;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.market-industry-strip strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.market-industry-strip span:first-child strong {
  color: #4f46e5;
  font-size: 19px;
}

.timus-comp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.timus-comp-card {
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.028);
  padding: 18px;
  min-width: 0;
}

.timus-comp-card-head {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.timus-comp-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.timus-comp-title-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.timus-zoom-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  display: inline-grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.timus-zoom-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12);
}

.timus-comp-card-head h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.timus-comp-card-head p {
  margin: 3px 0 0;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.4;
}

.timus-comp-card-head > span,
.timus-comp-topics .timus-comp-card-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f5f3ff;
  color: #4f46e5;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.timus-comp-card-head .timus-comp-slice-echo,
.timus-comp-topics .timus-comp-card-head .timus-comp-slice-echo,
.modal-title-line .timus-comp-slice-echo {
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  color: #98a2b3;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.timus-comp-brand-rank-echo {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.timus-comp-title-line .timus-comp-brand-rank-echo::before,
.modal-title-line .timus-comp-brand-rank-echo::before {
  content: "·";
  color: #d0d5dd;
  margin-right: 8px;
  font-weight: 700;
}

.timus-comp-mention {
  min-height: 384px;
}

.timus-comp-bars {
  width: 100%;
  height: 620px;
  overflow: auto;
  border: 1px solid #f0f2f5;
  border-radius: 12px;
}

.timus-comp-table-scroll {
  background: #fff;
  overflow-x: auto;
}

.timus-comp-bar-row {
  width: 100%;
  min-height: 31px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  grid-template-columns: 28px minmax(150px, 0.82fr) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 9px;
  padding: 3px 5px;
  text-align: left;
}

.timus-comp-bar-row:hover,
.timus-comp-bar-row.is-target {
  background: #f0fdf4;
}

.timus-comp-bar-row.is-selected-competitor {
  background: #fff5f5;
}

.timus-subject-tag {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: 1px;
}

.timus-subject-tag.self {
  background: #dcfce7;
  color: #15803d;
}

.timus-subject-tag.competitor {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #b42318;
}

.timus-comp-rank {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.timus-comp-rank.top1 {
  background: #f7b500;
  color: #fff;
}

.timus-comp-rank.top2 {
  background: #aeb8c8;
  color: #fff;
}

.timus-comp-rank.top3 {
  background: #f97316;
  color: #fff;
}

.timus-comp-bar-row.is-target .timus-comp-rank {
  background: #16a34a;
  color: #fff;
}

.timus-comp-bar-row .timus-comp-rank.top1,
.timus-comp-bar-row .timus-comp-rank.top2,
.timus-comp-bar-row .timus-comp-rank.top3 {
  color: #fff;
}

.timus-comp-bar-row .timus-comp-rank.top1 {
  background: #f7b500;
}

.timus-comp-bar-row .timus-comp-rank.top2 {
  background: #aeb8c8;
}

.timus-comp-bar-row .timus-comp-rank.top3 {
  background: #f97316;
}

.timus-comp-bar-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}

.timus-comp-bar-row i {
  height: 9px;
  border-radius: 999px;
  background: #f1f4f8;
  overflow: hidden;
}

.timus-comp-bar-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pct-bg, #5b50f2);
}

.timus-comp-bar-row.is-target i b {
  background: #16a34a;
}

.timus-comp-bar-row em {
  color: #344054;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.timus-comp-matrix,
.timus-comp-topics {
  padding: 0;
  overflow: hidden;
}

.timus-comp-matrix .timus-comp-card-head,
.timus-comp-topics .timus-comp-card-head {
  margin: 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f0f2f5;
}

.timus-comp-table-wrap {
  width: 100%;
  height: 620px;
  overflow-x: auto;
  overflow-y: auto;
  border-top: 1px solid #f0f2f5;
}

.timus-comp-platform-table {
  min-width: 1120px;
  table-layout: fixed;
}

.timus-comp-platform-table th,
.timus-comp-platform-table td {
  white-space: nowrap;
  padding-left: 6px;
  padding-right: 6px;
}

.timus-comp-platform-table th:first-child,
.timus-comp-platform-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding-left: 14px;
  padding-right: 10px;
  background: #fff;
  border-right: 1px solid #f0f2f5;
}

.timus-comp-platform-table thead th:first-child {
  z-index: 5;
}

.timus-comp-platform-table tbody tr:hover td:first-child {
  background: #fbfcff;
}

.timus-comp-platform-table tbody tr.is-target td:first-child {
  background: #f0fdf4;
}

.timus-comp-platform-table tbody tr.is-selected-competitor td:first-child {
  background: #fff5f5;
}

.timus-comp-platform-table th:not(:first-child),
.timus-comp-platform-table td:not(:first-child) {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  text-align: center;
}

.timus-comp-platform-table thead tr:first-child th:not(:first-child) {
  width: 144px;
  min-width: 144px;
  max-width: 144px;
}

.timus-comp-platform-table thead tr:first-child th:nth-child(2) {
  width: 144px;
  min-width: 144px;
  max-width: 144px;
  text-align: center;
}

.timus-comp-platform-table tbody td:nth-child(2) {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  text-align: center;
}

.timus-comp-platform-table thead tr:nth-child(2) th:first-child {
  position: static;
  left: auto;
  z-index: 4;
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  padding-left: 6px;
  padding-right: 6px;
  border-right: 0;
  text-align: center;
}

.timus-comp-platform-table .timus-comp-subject {
  gap: 8px;
}

.timus-comp-platform-table .timus-comp-subject strong {
  max-width: 142px;
}

.timus-topic-name-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
  white-space: normal;
  text-align: left;
}

.timus-topic-name-cell strong {
  display: block;
  overflow: hidden;
  color: #344054;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.timus-topic-name-cell small,
.timus-topic-name-cell.empty {
  color: #98a2b3;
  font-size: 11px;
  line-height: 1.3;
}

.competitor-zoom-table th:first-child,
.competitor-zoom-table td:first-child {
  width: 230px;
}

.competitor-zoom-table th:nth-child(2),
.competitor-zoom-table td:nth-child(2) {
  width: 220px;
  text-align: left;
}

.timus-comp-platform-table .timus-rate-pill {
  min-width: 58px;
  min-height: 24px;
  padding: 3px 6px;
  font-size: 11px;
}

.timus-comp-mention-table {
  min-width: 0;
  table-layout: fixed;
}

.timus-comp-mention-table th:nth-child(1),
.timus-comp-mention-table td:nth-child(1) {
  width: 52px;
  padding-left: 14px;
  padding-right: 4px;
  text-align: center;
}

.timus-comp-mention-table th:nth-child(2),
.timus-comp-mention-table td:nth-child(2) {
  width: 300px;
  text-align: left;
  padding-left: 6px;
  padding-right: 14px;
}

.timus-comp-mention-table th:nth-child(3),
.timus-comp-mention-table td:nth-child(3) {
  width: auto;
  text-align: left;
  padding-left: 8px;
  padding-right: 14px;
}

.timus-comp-mention-table th:nth-child(4),
.timus-comp-mention-table td:nth-child(4) {
  width: 92px;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}

.timus-comp-mention-table th:nth-child(5),
.timus-comp-mention-table td:nth-child(5),
.timus-comp-mention-table th:nth-child(6),
.timus-comp-mention-table td:nth-child(6) {
  width: 92px;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}

.timus-comp-mention-table .timus-comp-subject {
  gap: 6px;
}

.timus-comp-mention-table .timus-comp-subject strong {
  max-width: 230px;
}

.timus-comp-mention-table .timus-count-pill,
.timus-comp-mention-table .timus-rate-pill {
  min-width: 48px;
  min-height: 23px;
  padding: 3px 5px;
  font-size: 11px;
}

.timus-comp-metric-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #eef1f5;
  border-radius: 9px;
  background: #f8fafc;
  padding: 3px;
  white-space: nowrap;
}

.timus-comp-metric-group span {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 4px;
  min-width: 68px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #fff;
}

.timus-comp-metric-group small {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
}

.timus-comp-metric-group b {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.timus-comp-frequency {
  height: 12px;
  border-radius: 999px;
  background: #f1f4f8;
  overflow: hidden;
}

.timus-comp-frequency b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pct-bg, #5b50f2);
}

.competitor-zoom-shell {
  display: grid;
  gap: 12px;
}

.competitor-zoom-note {
  margin: 0;
  color: #98a2b3;
  font-size: 12px;
}

.competitor-zoom-bars {
  max-height: min(82vh, 820px);
  gap: 10px;
  padding-right: 8px;
}

.competitor-zoom-bars .timus-comp-bar-row {
  min-height: 42px;
  grid-template-columns: 34px minmax(210px, 0.72fr) minmax(260px, 1fr) 64px;
  padding: 6px 9px;
}

.competitor-zoom-table-wrap {
  max-height: min(82vh, 820px);
  overflow-x: auto;
}

.competitor-zoom-table {
  min-width: 980px;
}

.timus-comp-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
  border-collapse: collapse;
}

.timus-comp-table th,
.timus-comp-table td {
  padding: 8px 7px;
  border-bottom: 1px solid #f0f2f5;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
  vertical-align: middle;
  white-space: normal;
}

.timus-comp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.timus-comp-table thead tr:first-child th {
  background: #fff;
  color: #667085;
  text-align: center;
  border-bottom: 0;
  border-right: 1px solid #f5f6f8;
}

.timus-comp-table thead tr:nth-child(2) th {
  background: #fafafa;
  color: #8b95a5;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid #f0f2f5;
}

.timus-comp-table tbody tr:hover td {
  background: #fbfcff;
}

.timus-comp-table tbody tr.is-target td {
  background: #f0fdf4;
}

.timus-comp-table tbody tr.is-selected-competitor td {
  background: #fff5f5;
}

.timus-comp-table th:first-child,
.timus-comp-table td:first-child {
  width: 25%;
  min-width: 0;
  text-align: left;
  padding-left: 22px;
}

.timus-comp-table th:nth-child(2),
.timus-comp-table td:nth-child(2) {
  width: 6%;
}

.timus-comp-table th:nth-child(3),
.timus-comp-table th:nth-child(4),
.timus-comp-table td:nth-child(3),
.timus-comp-table td:nth-child(4) {
  width: 8%;
}

.timus-comp-table td:first-child strong {
  color: #111827;
}

.market-topic-table {
  min-width: 820px;
}

.market-topic-table col.market-topic-col-rank {
  width: 70px;
}

.market-topic-table col.market-topic-col-topic {
  width: auto;
}

.market-topic-table col.market-topic-col-need {
  width: 160px;
}

.market-topic-table col.market-topic-col-type,
.market-topic-table col.market-topic-col-status {
  width: 110px;
}

.market-topic-table th:first-child,
.market-topic-table td:first-child {
  width: 70px;
  padding-left: 12px;
  padding-right: 8px;
  text-align: center;
}

.market-topic-table th:nth-child(2),
.market-topic-table td:nth-child(2) {
  width: auto;
  min-width: 360px;
  text-align: left;
}

.market-topic-table th:nth-child(3),
.market-topic-table td:nth-child(3) {
  width: 160px;
}

.market-topic-table th:nth-child(4),
.market-topic-table td:nth-child(4),
.market-topic-table th:nth-child(5),
.market-topic-table td:nth-child(5) {
  width: 110px;
  text-align: center;
}

.market-topic-table td:nth-child(2) strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.timus-comp-subject {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.timus-comp-subject strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-comp-subject .timus-subject-tag {
  flex: 0 0 auto;
  margin-left: 4px;
}

.timus-comp-table td:not(:first-child),
.timus-comp-topic-table td:not(:first-child) {
  text-align: center;
}

.market-fields-page .market-topic-table th:nth-child(2),
.market-fields-page .market-topic-table td:nth-child(2) {
  text-align: left;
}

/* Final competitor table overrides: keep these after generic .timus-comp-table rules. */
.timus-comp-table.timus-comp-mention-table {
  width: 100%;
  min-width: 1160px;
  table-layout: fixed;
}

.timus-comp-table.timus-comp-mention-table th:nth-child(1),
.timus-comp-table.timus-comp-mention-table td:nth-child(1) {
  width: 72px;
  padding-left: 18px;
  padding-right: 8px;
  text-align: center;
}

.timus-comp-table.timus-comp-mention-table th:nth-child(2),
.timus-comp-table.timus-comp-mention-table td:nth-child(2) {
  width: 280px;
  padding-left: 8px;
  padding-right: 16px;
  text-align: left;
}

.timus-comp-table.timus-comp-mention-table th:nth-child(3),
.timus-comp-table.timus-comp-mention-table td:nth-child(3) {
  width: 110px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

.timus-comp-table.timus-comp-mention-table th:nth-child(4),
.timus-comp-table.timus-comp-mention-table td:nth-child(4) {
  width: 120px;
  padding-left: 6px;
  padding-right: 8px;
  text-align: center;
}

.timus-comp-table.timus-comp-mention-table th:nth-child(5),
.timus-comp-table.timus-comp-mention-table td:nth-child(5) {
  width: 420px;
  padding-left: 10px;
  padding-right: 18px;
  text-align: left;
}

.timus-comp-table.timus-comp-mention-table th:nth-child(6),
.timus-comp-table.timus-comp-mention-table td:nth-child(6) {
  width: 110px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

.timus-comp-table.timus-comp-mention-table .timus-comp-subject {
  gap: 6px;
}

.timus-comp-table.timus-comp-mention-table .timus-comp-subject strong {
  max-width: 210px;
}

.timus-comp-table.timus-comp-platform-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
}

.timus-comp-table.timus-comp-platform-table th:first-child,
.timus-comp-table.timus-comp-platform-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  padding-left: 14px;
  padding-right: 10px;
  text-align: left;
  background: #fff;
  border-right: 1px solid #f0f2f5;
}

.timus-comp-table.timus-comp-platform-table thead th:first-child {
  z-index: 5;
}

.timus-comp-table.timus-comp-platform-table th:not(:first-child),
.timus-comp-table.timus-comp-platform-table td:not(:first-child) {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
}

.timus-comp-table.timus-comp-platform-table thead tr:first-child th:not(:first-child) {
  width: 144px;
  min-width: 144px;
  max-width: 144px;
}

.timus-comp-table.timus-comp-platform-table .timus-comp-subject {
  gap: 8px;
}

.timus-comp-table.timus-comp-platform-table .timus-comp-subject strong {
  max-width: 178px;
}

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

.market-probe-list-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.market-probe-list-head strong {
  color: #111827;
  font-size: 14px;
}

.market-probe-topic-table {
  min-width: 900px;
  table-layout: fixed;
}

.market-probe-topic-wrap {
  height: auto;
  max-height: none;
  overflow: visible;
}

.market-probe-topic-table th:first-child,
.market-probe-topic-table td:first-child {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.market-probe-topic-table th:nth-child(2),
.market-probe-topic-table td:nth-child(2) {
  width: 55%;
  min-width: 470px;
  padding-left: 12px;
  padding-right: 16px;
  text-align: left;
}

.market-probe-topic-table th:nth-child(3),
.market-probe-topic-table td:nth-child(3) {
  width: 86px;
  text-align: center;
}

.market-probe-topic-table th:nth-child(4),
.market-probe-topic-table td:nth-child(4) {
  width: 138px;
  text-align: center;
}

.market-probe-topic-table th:nth-child(5),
.market-probe-topic-table td:nth-child(5) {
  width: 86px;
  text-align: center;
}

.market-probe-topic-table td:nth-child(2) strong {
  display: block;
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
}

.market-probe-topic-table td:nth-child(2) small {
  display: block;
  margin-top: 5px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.market-probe-check {
  display: inline-grid;
  place-items: center;
}

.market-probe-check input {
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
}

.market-probe-models {
  margin: 14px 0 10px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fbfcff;
}

.market-probe-models > strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 13px;
}

.market-probe-models > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-probe-models label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.market-probe-models label.active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.market-probe-models input {
  accent-color: #4f46e5;
}

.timus-count-pill,
.timus-rate-pill,
.timus-rank-pill,
.timus-topic-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 26px;
  border: 1px solid #eef1f5;
  border-radius: 7px;
  background: #f8fafc;
  color: #475467;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.timus-count-pill {
  min-width: 36px;
  color: #344054;
  background: #fff;
}

.timus-platform-rate-cell {
  text-align: center;
}

.timus-platform-rate-stack {
  display: inline-grid;
  justify-items: center;
  min-width: 54px;
  gap: 3px;
  border: 1px solid var(--model-border, #eef1f5);
  border-radius: 8px;
  background: var(--model-bg, #f8fafc);
  padding: 4px 5px;
  color: var(--model-fg, #667085);
  line-height: 1;
}

.timus-platform-rate-stack b {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.timus-platform-rate-stack small {
  color: currentColor;
  opacity: 0.76;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.timus-platform-rate-stack.high {
  border-color: var(--model-border, #d9d6fe);
  background: var(--model-bg, #f4f3ff);
  color: var(--model-fg, #4f46e5);
}

.timus-platform-rate-stack.mid {
  border-color: var(--model-border, #dbeafe);
  background: var(--model-bg, #eff6ff);
  color: var(--model-fg, #2563eb);
}

.timus-platform-rate-stack.low {
  border-color: var(--model-border, #e5e7eb);
  background: var(--model-bg, #f8fafc);
  color: var(--model-fg, #64748b);
}

.timus-platform-rate-stack.zero {
  color: #98a2b3;
}

.timus-rate-pill.mention.high {
  border-color: var(--pct-border, #d9d6fe);
  background: var(--pct-bg, #f4f3ff);
  color: var(--pct-fg, #4f46e5);
}

.timus-rate-pill.mention.mid {
  border-color: var(--pct-border, #dbeafe);
  background: var(--pct-bg, #eff6ff);
  color: var(--pct-fg, #2563eb);
}

.timus-rate-pill.mention.low {
  border-color: var(--pct-border, #e5e7eb);
  background: var(--pct-bg, #f8fafc);
  color: var(--pct-fg, #64748b);
}

.timus-rate-pill.mention.zero {
  color: #98a2b3;
}

.timus-rate-pill.first.high,
.timus-rate-pill.first.mid {
  border-color: var(--pct-border, #bbf7d0);
  background: var(--pct-bg, #ecfdf3);
  color: var(--pct-fg, #16a34a);
}

.timus-rate-pill.first.low {
  border-color: var(--pct-border, #fde68a);
  background: var(--pct-bg, #fffbeb);
  color: var(--pct-fg, #d97706);
}

.timus-rate-pill.first.zero {
  color: #98a2b3;
}

.timus-rank-pill.hit {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #16a34a;
}

.timus-rank-pill.miss {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #e11d48;
}

.timus-topic-type {
  min-width: 50px;
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

.timus-comp-topic-list {
  display: block;
  overflow: visible;
  padding: 0;
}

.timus-comp-topic-headline {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) 72px minmax(300px, 1fr) 74px 52px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  background: #fafafa;
  border-bottom: 1px solid #f0f2f5;
  padding: 0 18px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
}

.timus-topic-platform-head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.timus-topic-platform-head span {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-comp-topic-item {
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  border-radius: 0;
  background: #fff;
}

.timus-comp-topic-item.expanded {
  position: relative;
  z-index: 2;
}

.timus-comp-topic-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) 72px minmax(300px, 1fr) 74px 52px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  gap: 10px;
  border: 0;
  background: #fff;
  padding: 11px 18px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.timus-comp-topic-row:hover {
  background: #fafbff;
}

.timus-comp-topic-item.expanded .timus-comp-topic-row {
  background: #fcfcff;
}

.timus-comp-topic-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.timus-comp-topic-left strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-comp-topic-left span {
  flex: 0 0 auto;
  border-radius: 6px;
  background: #eef2ff;
  color: #4f46e5;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.timus-comp-topic-brand {
  display: grid;
  min-width: 44px;
  gap: 2px;
  text-align: center;
}

.timus-comp-topic-brand small {
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.timus-comp-topic-brand b {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.timus-comp-topic-brand b.miss {
  color: #98a2b3;
}

.timus-comp-topic-brand b.hit {
  color: #111827;
}

.timus-comp-topic-count {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.timus-topic-platform-ranks {
  display: grid;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.timus-topic-platform-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 26px;
  border-radius: 7px;
  border: 1px solid #eef1f5;
  background: #f8fafc;
  color: #98a2b3;
  font-weight: 800;
  line-height: 1.1;
}

.timus-topic-platform-rank b {
  color: inherit;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.timus-topic-platform-rank.hit {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #5b50f2;
}

.timus-topic-platform-rank.mentioned {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0284c7;
}

.timus-topic-platform-rank.miss {
  background: #f8fafc;
  color: #c0c7d2;
}

.timus-topic-platform-rank.no-record {
  background: #fafafa;
  color: #d0d5dd;
}

.timus-topic-arrow {
  justify-self: end;
  color: #5b50f2;
  font-size: 12px;
  font-weight: 800;
}

.timus-comp-topic-expand {
  position: relative;
  z-index: 1;
  overflow: visible;
  border-top: 1px solid #f0f2f5;
  background: #fbfcff;
  padding: 14px 18px 16px;
}

.timus-topic-competitor-list {
  overflow: hidden;
  border: 1px solid #f0f2f5;
  border-radius: 12px;
  background: #fff;
  max-height: 520px;
  overflow-y: auto;
}

.timus-topic-competitor-head,
.timus-topic-competitor-item {
  display: grid;
  grid-template-columns: 58px minmax(220px, 1.45fr) 86px 86px 86px minmax(180px, 1fr);
  align-items: center;
  column-gap: 12px;
}

.timus-topic-competitor-head {
  background: #fafafa;
  color: #98a2b3;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
}

.timus-topic-competitor-item {
  min-height: 40px;
  border-top: 1px solid #f0f2f5;
  padding: 10px 14px;
}

.timus-topic-competitor-item.is-target {
  background: #f0fdf4;
}

.timus-topic-competitor-rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #f2f4f7;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.timus-topic-competitor-rank.top1 {
  background: #f7b500;
  color: #fff;
}

.timus-topic-competitor-rank.top2 {
  background: #aeb8c8;
  color: #fff;
}

.timus-topic-competitor-rank.top3 {
  background: #f97316;
  color: #fff;
}

.timus-topic-competitor-item strong {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-topic-competitor-item strong b {
  display: inline-flex;
  margin-left: 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}

.timus-topic-competitor-item small {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-topic-competitor-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timus-topic-competitor-empty {
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  background: #fcfcfd;
  color: #98a2b3;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.timus-comp-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 18px;
}

.timus-comp-topic-card {
  min-height: 112px;
  border: 1px solid #eef1f5;
  border-radius: 9px;
  background: #fff;
  padding: 13px;
  text-align: left;
}

.timus-comp-topic-card:hover {
  border-color: #ddd6fe;
  background: #fbfaff;
}

.timus-comp-topic-card h4 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.timus-comp-topic-tags,
.timus-comp-topic-models {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.timus-comp-topic-tags span,
.timus-comp-topic-models em {
  border-radius: 999px;
  background: #f4f6f8;
  color: #667085;
  padding: 3px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.timus-comp-topic-tags span.hit {
  background: #ecfdf3;
  color: #16a34a;
}

.timus-comp-topic-tags span.miss {
  background: #fff1f2;
  color: #e11d48;
}

.timus-comp-topic-models {
  margin-top: 9px;
}

.timus-comp-topic-models b {
  color: #344054;
  font-weight: 800;
}

.timus-comp-topic-table-wrap {
  width: 100%;
  overflow: auto;
}

.timus-comp-topic-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.timus-comp-topic-table th,
.timus-comp-topic-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f2f5;
  color: #344054;
  font-size: 13px;
  vertical-align: middle;
}

.timus-comp-topic-table th {
  background: #fafafa;
  color: #8b95a5;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.timus-comp-topic-table th:first-child,
.timus-comp-topic-table td:first-child {
  text-align: left;
  min-width: 300px;
}

.timus-comp-topic-table td:first-child strong {
  display: block;
  color: #111827;
  font-size: 13.5px;
  line-height: 1.45;
}

.timus-comp-topic-table td:first-child small {
  display: block;
  margin-top: 4px;
  color: #98a2b3;
  font-size: 12px;
}

.timus-comp-topic-table tbody tr:hover td {
  background: #fbfcff;
}

@media (max-width: 980px) {
  .timus-comp-kpis,
  .timus-comp-grid,
  .timus-comp-topic-grid {
    grid-template-columns: 1fr;
  }

  .timus-comp-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .timus-comp-topic-headline,
  .timus-comp-topic-row {
    grid-template-columns: minmax(210px, 1fr) 68px minmax(260px, 0.95fr) 70px 48px;
    min-width: 0;
  }

  .timus-topic-competitor-head,
  .timus-topic-competitor-item {
    grid-template-columns: 64px minmax(0, 1fr) 90px;
  }

  .timus-topic-competitor-head span:nth-child(4),
  .timus-topic-competitor-item p {
    display: none;
  }
}

.onboarding-full-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcff 0%, #f8faff 54%, #f2f1fb 100%);
  background-size: 96px 96px, 96px 96px, 100% 100%;
  color: #111827;
}

.timus-input-flow,
.timus-topic-flow,
.timus-scan-flow {
  width: min(1180px, calc(100% - 96px));
  min-height: 100vh;
  margin: 0 auto;
}

.timus-input-flow {
  display: grid;
  place-items: center;
  padding: 64px 0;
}

.timus-flow-back {
  position: fixed;
  top: 26px;
  left: 28px;
  z-index: 5;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #475569;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.timus-flow-back:hover {
  border-color: #c7d2fe;
  color: #4338ca;
}

.timus-input-card {
  width: min(760px, 100%);
  border: 1px solid #e8ebf2;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
  padding: 38px;
}

.timus-input-card h1 {
  color: #111827;
  font-size: 32px;
  line-height: 1.25;
}

.timus-input-card p {
  margin-top: 12px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.8;
}

.timus-input-card textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 26px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  resize: vertical;
  outline: none;
  color: #111827;
  font-size: 16px;
  line-height: 1.7;
}

.timus-input-card textarea:focus,
.timus-topic-input:focus {
  border-color: #6157ff;
  box-shadow: 0 0 0 3px rgba(97, 87, 255, 0.12);
}

.timus-input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.timus-link-panel {
  margin-top: 16px;
  border: 1px solid #e8ebf2;
  border-radius: 14px;
  background: #f9fafc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}

.timus-link-panel label {
  display: grid;
  gap: 7px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.timus-link-panel input {
  width: 100%;
  height: 42px;
  border: 1px solid #dfe3ec;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
  outline: none;
}

.timus-link-panel input:focus {
  border-color: #6157ff;
  box-shadow: 0 0 0 3px rgba(97, 87, 255, 0.12);
}

.timus-link-panel > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timus-link-chip {
  margin-top: 16px;
  min-height: 42px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 14px;
}

.timus-link-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-link-chip button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 700;
}

.timus-topic-flow {
  display: flex;
  flex-direction: column;
  padding: 92px 0 32px;
}

.timus-user-bubble {
  align-self: flex-end;
  min-width: 188px;
  min-height: 76px;
  border-radius: 24px 24px 4px 24px;
  background: #f0f0f1;
  display: grid;
  place-items: center;
  padding: 0 26px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.timus-agent-copy {
  margin-top: 48px;
  color: #3f4553;
  font-size: 18px;
}

.timus-analysis-card {
  margin-top: 38px;
  border: 1px solid #dfeee5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.035);
  padding: 16px 20px 14px;
}

.timus-analysis-head,
.timus-analysis-line,
.timus-topic-dock-head,
.timus-topic-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.timus-analysis-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 16px;
}

.timus-check,
.timus-analysis-line em,
.timus-scan-rows span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #22c55e;
  color: #16a34a;
  font-style: normal;
  font-weight: 900;
}

.timus-analysis-head button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 15px;
}

.timus-analysis-line {
  min-height: 38px;
  color: #4b5563;
  font-size: 16px;
}

.timus-brand-parse {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.timus-brand-parse-title,
.timus-brand-parse-qhead,
.timus-brand-parse-platforms > div {
  display: flex;
  align-items: center;
}

.timus-brand-parse-title {
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.timus-brand-parse-title strong {
  color: #16a34a;
}

.timus-brand-parse-question {
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.timus-brand-parse-qhead {
  justify-content: space-between;
  gap: 12px;
}

.timus-brand-parse-qhead strong {
  color: #111827;
  font-size: 14px;
}

.timus-brand-parse-qhead span {
  color: #98a2b3;
  font-size: 12px;
}

.timus-brand-parse-question > p {
  margin: 7px 0 10px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.timus-brand-parse-platforms {
  display: grid;
  gap: 8px;
}

.timus-brand-parse-platforms > div {
  display: grid;
  grid-template-columns: 24px 78px 68px minmax(0, 1fr);
  min-height: 42px;
  border: 1px solid #f0f2f5;
  border-radius: 10px;
  background: #fafafa;
  gap: 10px;
  padding: 9px 10px;
}

.timus-brand-parse-platforms > div.done {
  background: #fcfffd;
}

.timus-brand-parse-platforms span {
  width: 20px;
  height: 20px;
  border: 2px solid #6366f1;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #16a34a;
  font-size: 12px;
  font-weight: 900;
}

.timus-brand-parse-platforms .done span {
  border-color: #22c55e;
}

.timus-brand-parse-platforms strong {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.timus-brand-parse-platforms em {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.timus-brand-parse-platforms p {
  overflow: hidden;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-brand-summary {
  margin-top: 38px;
  color: #303746;
  font-size: 19px;
  font-weight: 500;
  line-height: 2;
}

.timus-brand-summary p + p {
  margin-top: 16px;
}

.timus-topic-dock-layer {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px clamp(16px, 5vw, 72px) 30px;
  background: linear-gradient(180deg, rgba(246, 248, 255, 0), rgba(246, 248, 255, 0.72) 34%, rgba(246, 248, 255, 0.96));
  pointer-events: none;
}

.timus-topic-dock {
  width: min(1180px, 100%);
  max-height: min(78vh, 760px);
  margin-top: 0;
  border: 1px solid #d9dce5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.13);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}

.timus-topic-dock-head {
  min-height: 70px;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
}

.timus-topic-dock-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #6b7280;
  font-size: 16px;
}

.timus-topic-dock-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5b56f5;
}

.timus-topic-dock-head button {
  border: 0;
  background: transparent;
  color: #c3c7d0;
  font-size: 26px;
}

.timus-topic-dock-body {
  padding: 24px 24px 20px;
  overflow: auto;
  overscroll-behavior: contain;
}

.timus-topic-hint {
  margin-bottom: 14px;
  color: #565d6d;
  font-size: 17px;
}

.timus-topic-hint strong {
  color: #16a34a;
  font-size: 19px;
}

.timus-topic-options {
  display: grid;
  gap: 14px;
}

.timus-topic-option {
  min-height: 96px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
}

.timus-topic-option.selected {
  border-color: #5b56ff;
  background: #f5f3ff;
  box-shadow: inset 0 0 0 1px rgba(91, 86, 255, 0.72);
}

.timus-topic-check {
  width: 32px;
  height: 32px;
  border: 3px solid #d0d5de;
  border-radius: 8px;
  background: #fff;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.selected .timus-topic-check {
  border-color: #5b56e8;
  background: #5b56e8;
}

.timus-topic-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 700;
}

.timus-topic-tags b {
  color: #f59e0b;
}

.timus-topic-input {
  width: 100%;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  padding: 2px 4px;
  font-size: 20px;
  font-weight: 800;
  outline: none;
}

.timus-topic-option:hover .timus-topic-input {
  border-color: rgba(91, 86, 255, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.timus-topic-edit {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bda7ff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}

.timus-topic-edit:hover,
.timus-topic-edit:focus {
  background: #ede9fe;
  color: #5b56ff;
}

.timus-topic-dock-foot {
  border-top: 1px solid #e5e7eb;
  padding: 18px 24px 22px;
}

.timus-start-scan,
.timus-enter-dashboard {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 12px;
  background: #0b0b0c;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.timus-start-scan:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.timus-scan-flow {
  padding: 72px 0 72px;
}

.timus-scan-steps {
  width: min(760px, 100%);
  margin: 0 auto 78px;
  display: grid;
  grid-template-columns: auto 120px auto 120px auto;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.timus-scan-steps div {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9aa3b5;
  font-size: 21px;
  font-weight: 900;
}

.timus-scan-steps span {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #08bf5b;
  color: #fff;
  font-size: 25px;
}

.timus-scan-steps i {
  height: 3px;
  background: #08bf5b;
}

.timus-scan-steps .active {
  color: #111827;
}

.timus-scan-steps .active span {
  background: #111827;
}

.timus-scan-card {
  width: min(990px, 100%);
  margin: 0 auto;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -5px 0 rgba(150, 132, 255, 0.28), 0 32px 80px rgba(15, 23, 42, 0.07);
  padding: 70px 72px 72px;
  text-align: center;
}

.timus-radar {
  width: 168px;
  height: 168px;
  margin: 0 auto 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 14px 40px rgba(31, 41, 55, 0.14), 0 0 0 1px #dfe7ff;
}

.timus-radar span {
  color: #574bff;
  font-size: 58px;
  line-height: 1;
}

.timus-scan-card h1 {
  color: #111827;
  font-size: 40px;
  line-height: 1.2;
}

.timus-scan-card > p {
  margin-top: 18px;
  color: #9b82ff;
  font-size: 19px;
}

.timus-scan-progress {
  height: 13px;
  margin: 60px 0 44px;
  border: 1px solid #d8dce5;
  border-radius: 999px;
  background: #f1f3f7;
  overflow: hidden;
}

.timus-scan-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(45deg, #8b7dff 0 12px, #c084fc 12px 24px);
  transition: width 320ms ease;
}

.timus-scan-stage-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #594bff;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.timus-scan-stage-labels span:nth-child(n + 2) {
  text-align: center;
}

.timus-scan-stage-labels span:last-child {
  text-align: right;
}

.timus-scan-rows {
  display: grid;
  gap: 12px;
  margin-top: 54px;
  text-align: left;
}

.timus-scan-rows div {
  min-height: 58px;
  border: 1px solid #e8ebf2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  color: #334155;
  font-size: 18px;
  font-weight: 500;
}

.timus-scan-rows span {
  width: 22px;
  height: 22px;
  border-width: 2px;
  flex: 0 0 auto;
}

.timus-scan-rows div:not(.done) span {
  border-color: #6b63ff;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.timus-enter-dashboard {
  width: min(360px, 100%);
  margin-top: 28px;
}

.timus-scan-error {
  margin: 14px auto 0;
  width: min(720px, 100%);
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.timus-db-import-status {
  width: min(760px, 100%);
  margin: 22px auto 0;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  text-align: left;
}

.timus-db-import-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.timus-db-import-status strong {
  color: #111827;
  font-size: 15px;
}

.timus-db-import-status > div span {
  border-radius: 999px;
  background: #ecfdf3;
  color: #16a34a;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.timus-db-import-status section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.timus-db-import-status p {
  margin: 0;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #f9fafb;
  padding: 10px;
}

.timus-db-import-status em {
  display: block;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.timus-db-import-status b {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 22px;
  line-height: 1;
}

.timus-db-import-status .btn {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .timus-input-flow,
  .timus-topic-flow,
  .timus-scan-flow {
    width: min(100% - 28px, 1180px);
  }

  .timus-topic-flow {
    padding-top: 32px;
  }

  .timus-user-bubble {
    min-width: 0;
    min-height: 54px;
    border-radius: 18px 18px 4px 18px;
    padding: 0 18px;
    font-size: 15px;
  }

  .timus-agent-copy,
  .timus-brand-summary {
    font-size: 15px;
  }

  .timus-topic-dock {
    max-height: min(82vh, 720px);
    border-radius: 18px;
  }

  .timus-topic-dock-layer {
    padding: 18px 12px 18px;
  }

  .timus-topic-option {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px;
  }

  .timus-topic-edit {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .timus-topic-input {
    font-size: 16px;
  }

  .timus-scan-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 28px;
  }

  .timus-scan-steps i {
    display: none;
  }

  .timus-scan-card,
  .timus-input-card {
    border-radius: 24px;
    padding: 28px 18px;
  }

  .timus-scan-card h1,
  .timus-input-card h1 {
    font-size: 26px;
  }

  .timus-input-actions,
  .timus-link-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .timus-link-panel > div {
    justify-content: flex-end;
  }

  .timus-radar {
    width: 112px;
    height: 112px;
    margin-bottom: 24px;
  }

  .timus-scan-stage-labels {
    font-size: 12px;
  }

  .timus-scan-rows div {
    min-height: 50px;
    padding: 0 12px;
    font-size: 14px;
  }

  .timus-db-import-status section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .secondary {
    display: none;
  }

  .secondary-float-toggle {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .overview-page,
  .chat-shell,
  .plan-grid,
  .candidate-layout,
  .field-grid,
  .quota,
  .rank-metric-charts,
  .rank-analysis-grid,
  .sentiment-chart-grid,
  .sentiment-insight-grid,
  .source-pref-metrics,
  .source-pref-chart-grid,
  .overview-compact-grid,
  .competitor-summary-grid,
  .competitor-platform-grid,
  .topic-detail-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-aside,
  .stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
  }

  .primary-rail {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 8px;
  }

  .rail-spacer,
  .rail-chip {
    display: none;
  }

  .main {
    padding: 0;
  }

  .page-container {
    padding: 20px 14px 14px;
  }

  .page-head {
    flex-direction: column;
  }

  .head-slice-controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .form-grid,
  .quota,
  .aii-layout,
  .sentiment-layout,
  .onboarding-steps,
  .onboarding-aside,
  .stage-list {
    grid-template-columns: 1fr;
  }

  .overview-card-head {
    flex-direction: column;
  }

  .intel-status {
    width: 100%;
    min-width: 0;
  }

  .overview-subhead {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 1180px) {
  .asset-hero {
    grid-template-columns: 1fr;
  }

  .asset-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-stat-toolbar {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .asset-filter-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asset-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .asset-metric-grid {
    grid-template-columns: 1fr;
  }

  .asset-stat-toolbar {
    grid-template-columns: 1fr;
  }

  .asset-view-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
  }

  .asset-view-tabs button {
    flex: 0 0 auto;
  }

  .asset-filter-main {
    grid-template-columns: 1fr;
  }
}

.mindset-page {
  display: grid;
  gap: 16px;
}

.mindset-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: end;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mindset-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #5b5ce2;
  font-size: 13px;
  font-weight: 700;
}

.mindset-hero h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.mindset-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.mindset-task-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mindset-product-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.mindset-strategy-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.mindset-strategy-main,
.mindset-strategy-side {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.mindset-strategy-main {
  padding: 20px;
}

.mindset-strategy-main h3 {
  margin: 7px 0 0;
  color: #0f172a;
  font-size: 22px;
}

.mindset-strategy-main p {
  margin: 10px 0 0;
  max-width: 860px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

.mindset-strategy-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mindset-strategy-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mindset-strategy-status b {
  color: #2563eb;
  font-size: 14px;
}

.mindset-strategy-main .mindset-console-actions {
  margin-top: 18px;
}

.mindset-strategy-side {
  padding: 18px;
  background: #fff;
}

.mindset-strategy-side span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.mindset-strategy-side strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 22px;
}

.mindset-strategy-side ol {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.9;
}

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

.mindset-output-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mindset-output-card.primary {
  border-color: #4f46e5;
  background: #f5f3ff;
}

.mindset-output-card:hover {
  border-color: #c7d2fe;
}

.mindset-output-card span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #4f46e5;
  background: #eef2ff;
  font-size: 12px;
  font-weight: 800;
}

.mindset-output-card strong {
  color: #111827;
  font-size: 16px;
}

.mindset-output-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.mindset-model-structure {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mindset-structure-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
}

.mindset-structure-head strong {
  color: #111827;
  font-size: 16px;
}

.mindset-structure-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.mindset-structure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px 18px;
}

.mindset-structure-grid article {
  padding: 15px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.mindset-structure-grid article > span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.mindset-structure-grid h3 {
  margin: 6px 0 12px;
  color: #0f172a;
  font-size: 17px;
}

.mindset-stage-mini {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 8px;
  cursor: grab;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #c7d2fe transparent;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.mindset-facet-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mindset-stage-mini.dragging,
.mindset-stage-list.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.mindset-stage-mini::-webkit-scrollbar,
.mindset-stage-list::-webkit-scrollbar {
  height: 8px;
}

.mindset-stage-mini::-webkit-scrollbar-track,
.mindset-stage-list::-webkit-scrollbar-track {
  background: transparent;
}

.mindset-stage-mini::-webkit-scrollbar-thumb,
.mindset-stage-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7d2fe;
}

.mindset-stage-mini em,
.mindset-facet-mini em {
  display: inline-flex;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 6px 9px;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  color: #4338ca;
  background: #eef2ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  scroll-snap-align: start;
}

.mindset-evidence-panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.mindset-evidence-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.mindset-evidence-panel summary::-webkit-details-marker {
  display: none;
}

.mindset-evidence-panel summary strong {
  color: #111827;
  font-size: 15px;
}

.mindset-evidence-panel summary span {
  color: #94a3b8;
  font-size: 13px;
}

.mindset-evidence-panel[open] {
  padding-bottom: 14px;
}

.mindset-evidence-panel[open] .mindset-dimension-table-wrap,
.mindset-evidence-panel[open] .mindset-rule {
  margin-left: 18px;
  margin-right: 18px;
}

.mindset-console-kicker {
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.mindset-product-console h3 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 18px;
}

.mindset-product-console p {
  margin: 6px 0 0;
  max-width: 820px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.mindset-console-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.mindset-impact-card {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 14px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.mindset-impact-card:hover {
  border-color: #c7d2fe;
  background: #f8fafc;
}

.mindset-impact-card strong {
  color: #111827;
  font-size: 15px;
}

.mindset-impact-card span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.mindset-task-strip article {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mindset-task-strip span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.mindset-task-strip strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 17px;
}

.mindset-task-strip p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.mindset-model-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: #475569;
}

.mindset-model-meta strong {
  color: #111827;
  font-size: 15px;
}

.mindset-model-meta span {
  padding: 6px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

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

.mindset-metrics article,
.mindset-facet-grid article,
.mindset-stage-list article {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mindset-metrics article {
  padding: 14px 16px;
}

.mindset-metrics span,
.mindset-facet-grid span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.mindset-metrics strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 18px;
}

.mindset-dimension-card {
  display: grid;
  gap: 12px;
}

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

.mindset-dimension-head strong {
  min-width: 44px;
  margin-top: 0;
  text-align: right;
}

.mindset-dimension-copy {
  display: grid;
  gap: 8px;
}

.mindset-dimension-copy p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.mindset-dimension-copy b {
  display: inline-flex;
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  color: #4f46e5;
  background: #eef2ff;
  font-size: 12px;
}

.mindset-dimension-table-wrap {
  overflow: auto;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.mindset-dimension-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

.mindset-dimension-table th,
.mindset-dimension-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.mindset-dimension-table th {
  color: #64748b;
  background: #f8fafc;
  font-weight: 800;
}

.mindset-dimension-table td:first-child {
  width: 120px;
}

.mindset-dimension-table td:nth-child(2) {
  width: 76px;
}

.mindset-dimension-table td:last-child {
  width: 86px;
  text-align: right;
}

.mindset-dimension-table td strong {
  color: #111827;
}

.mindset-value-badge {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  font-weight: 800;
}

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

.mindset-action-tags span {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  color: #4338ca;
  background: #eef2ff;
  font-size: 12px;
  font-weight: 700;
}

.mindset-row-action {
  padding: 5px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #475569;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mindset-row-action:hover {
  border-color: #c7d2fe;
  color: #4f46e5;
  background: #f8fafc;
}

.mindset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.mindset-rule {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.mindset-rule strong {
  color: #111827;
}

.mindset-rule p {
  margin: 8px 0 0;
  color: #475569;
  line-height: 1.8;
}

.mindset-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mindset-flow span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  color: #3730a3;
  background: #eef2ff;
  font-weight: 700;
}

.mindset-stage-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  cursor: grab;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #c7d2fe transparent;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.mindset-stage-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 88px;
  gap: 14px;
  align-items: center;
  flex: 0 0 min(520px, calc(100vw - 96px));
  padding: 14px 16px;
  scroll-snap-align: start;
}

.mindset-stage-list article > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #4f46e5;
  background: #eef2ff;
  font-weight: 800;
}

.mindset-stage-list h3,
.mindset-facet-grid strong {
  margin: 0;
  color: #111827;
  font-size: 15px;
}

.mindset-stage-list p,
.mindset-facet-grid p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.mindset-stage-list em {
  color: #64748b;
  font-style: normal;
  font-size: 12px;
  text-align: right;
}

.mindset-stage-browser {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.mindset-stage-sticky {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #eef2f7;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.mindset-stage-browser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.mindset-stage-browser-head strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.mindset-stage-browser-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.mindset-stage-browser-head > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #4338ca;
  background: #eef2ff;
  font-size: 12px;
  font-weight: 800;
}

.mindset-stage-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.mindset-stage-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px 6px 7px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.mindset-stage-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.mindset-stage-tab em {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-style: normal;
  font-size: 12px;
}

.mindset-stage-tab.active {
  border-color: #4f46e5;
  color: #3730a3;
  background: #eef2ff;
}

.mindset-stage-tab.active em {
  color: #fff;
  background: #4f46e5;
}

.mindset-stage-query-scroll {
  max-height: min(66vh, 720px);
  overflow-y: auto;
  padding: 16px 18px 18px;
  background: #f8fafc;
}

.mindset-stage-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mindset-stage-summary span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.mindset-stage-summary h3 {
  margin: 4px 0 6px;
  color: #0f172a;
  font-size: 17px;
}

.mindset-stage-summary p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.mindset-stage-summary-tags {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 320px;
}

.mindset-stage-summary-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #4338ca;
  background: #eef2ff;
}

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

.mindset-query-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mindset-query-rank {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #4f46e5;
  background: #eef2ff;
  font-weight: 900;
}

.mindset-query-main {
  min-width: 0;
}

.mindset-query-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mindset-query-title strong {
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mindset-query-title span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 800;
}

.mindset-query-main p {
  margin: 5px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mindset-query-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mindset-query-meta em {
  padding: 3px 7px;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.mindset-stage-load {
  padding: 14px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.mindset-stage-list {
  display: grid;
  overflow: visible;
  padding-bottom: 0;
  cursor: default;
  scroll-snap-type: none;
  user-select: auto;
}

.mindset-stage-list article {
  flex: initial;
  scroll-snap-align: none;
}

.mindset-facet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mindset-facet-grid article {
  min-height: 128px;
  padding: 16px;
}

.mindset-facet-grid span {
  margin-top: 12px;
}

.mindset-topic-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.mindset-topic-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

.mindset-topic-table th,
.mindset-topic-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.mindset-topic-table th {
  color: #64748b;
  background: #f8fafc;
  font-weight: 800;
}

.mindset-topic-table td strong {
  color: #111827;
}

@media (max-width: 1100px) {
  .mindset-hero,
  .mindset-flow {
    grid-template-columns: 1fr;
  }

  .mindset-model-meta {
    justify-items: start;
  }

  .mindset-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mindset-facet-grid {
    grid-template-columns: 1fr;
  }

  .mindset-task-strip {
    grid-template-columns: 1fr;
  }

  .mindset-product-console,
  .mindset-impact-grid,
  .mindset-strategy-board,
  .mindset-strategy-output,
  .mindset-structure-grid {
    grid-template-columns: 1fr;
  }

  .mindset-structure-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mindset-console-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

}

@media (max-width: 760px) {
  .mindset-metrics {
    grid-template-columns: 1fr;
  }

  .mindset-query-card,
  .mindset-stage-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) and (min-width: 641px) {
  .mindset-kpi-grid.quota {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mindset-kpi-grid.quota {
    grid-template-columns: 1fr;
  }
}

.content-query-diagnosis,
.content-plan-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.content-plan-summary {
  grid-template-columns: 1fr;
}

.content-query-diagnosis article,
.content-plan-summary article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.content-query-diagnosis span,
.content-plan-summary span {
  color: var(--muted);
  font-size: 12px;
}

.content-query-diagnosis strong,
.content-plan-summary strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.content-task-expand-row td {
  background: #f8fafc;
  padding: 14px 18px;
}

.content-task-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.content-task-article-list {
  display: grid;
  gap: 8px;
}

.content-task-article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-task-article-no {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

.content-task-article-main {
  min-width: 0;
}

.content-task-article-main strong,
.content-task-article-main small {
  display: block;
}

.content-task-article-main strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-task-article-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.content-task-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.content-task-card span {
  color: var(--muted);
  font-size: 12px;
}

.content-task-card strong {
  font-size: 15px;
}

.content-task-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.content-task-query-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-task-query-title strong {
  line-height: 1.45;
}

.content-publish-shell table.content-asset-table th:nth-child(1),
.content-publish-shell table.content-asset-table td:nth-child(1) {
  width: 520px;
  min-width: 520px;
}

.content-publish-shell table.content-asset-table th:nth-child(2),
.content-publish-shell table.content-asset-table td:nth-child(2) {
  width: 360px;
  min-width: 360px;
}

.content-publish-shell table.content-asset-table th:nth-child(3),
.content-publish-shell table.content-asset-table td:nth-child(3) {
  width: 90px;
  min-width: 90px;
}

.content-publish-shell table.content-asset-table th:nth-child(4),
.content-publish-shell table.content-asset-table td:nth-child(4) {
  width: 160px;
  min-width: 160px;
}

.content-publish-shell table.content-asset-table th:nth-child(5),
.content-publish-shell table.content-asset-table td:nth-child(5) {
  width: 170px;
  min-width: 170px;
}

.content-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-card-meta b {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
}

.content-cluster-editor {
  display: grid;
  gap: 16px;
}

.content-query-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.content-query-detail summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.content-locked-summary {
  background: #fff;
}

.content-locked-query {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.content-locked-query span {
  color: var(--muted);
  font-size: 12px;
}

.content-locked-query strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.content-constraint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-constraint-row span {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  padding: 7px 10px;
}

.content-constraint-row b {
  color: var(--muted);
  font-weight: 700;
  margin-right: 6px;
}

.content-diagnosis-note {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
}

.content-diagnosis-note strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 6px;
}

.content-diagnosis-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

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

.content-work-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.content-work-card-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.content-work-card-head > span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
}

.content-work-card-head h3 {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 4px;
}

.content-work-card-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.content-work-card-head b {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 12px;
  padding: 5px 9px;
  white-space: nowrap;
}

.content-title-line {
  border-left: 3px solid #6366f1;
  background: #f8fafc;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.content-title-line span {
  color: var(--muted);
  font-size: 12px;
}

.content-title-line strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.content-card-job {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.content-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-card-stack em {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 999px;
  color: var(--text);
  font-style: normal;
  font-size: 12px;
  padding: 5px 8px;
}

.content-flow-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.content-flow-steps span {
  white-space: nowrap;
}

.content-flow-steps i {
  width: 18px;
  height: 1px;
  background: var(--line);
  flex: 0 0 18px;
}

.content-card-actions {
  justify-content: flex-end;
}

.content-task-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  align-items: end;
  gap: 10px;
  width: 100%;
}

.content-task-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.content-task-filters select {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
}


@media (max-width: 980px) {
  .content-query-diagnosis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-card-workflow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .content-query-diagnosis {
    grid-template-columns: 1fr;
  }
}
.writing-compose-page,
.writing-publish-page,
.writing-library-page,
.writing-records-page,
.writing-media-page {
  display: grid;
  gap: 18px;
}

.writing-compose-card {
  max-width: 980px;
  margin: 0 auto;
}

.writing-compose-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 4px 18px;
}

.writing-compose-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0;
  color: #111827;
}

.writing-compose-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.writing-mode-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 800;
}

.writing-chip-section {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  margin: 10px 0;
}

.writing-chip-section > span,
.writing-query-select > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  padding-top: 8px;
}

.writing-chip-section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.writing-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  cursor: pointer;
}

.writing-chip.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.writing-query-select {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}

.writing-query-select select,
.writing-library-tools input,
.writing-library-tools select,
.writing-media-filters select,
.writing-publish-options select,
.writing-publish-options input {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: #111827;
  min-height: 40px;
}

.writing-prompt-box {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  margin-top: 16px;
}

.writing-prompt-box textarea {
  width: 100%;
  min-height: 160px;
  border: 0;
  resize: vertical;
  padding: 18px;
  font-size: 15px;
  line-height: 1.7;
  outline: none;
}

.writing-prompt-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #eef2f7;
  padding: 12px;
  background: #f8fafc;
}

.writing-mode-switch,
.writing-inline-actions,
.writing-status-tabs,
.writing-media-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.writing-mode-switch button,
.writing-status-tabs button,
.writing-media-tabs button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  cursor: pointer;
}

.writing-mode-switch button.active,
.writing-status-tabs button.active,
.writing-media-tabs button.active {
  color: #4f46e5;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.writing-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.writing-suggestion-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.writing-suggestion-card strong {
  color: #111827;
  font-size: 15px;
}

.writing-suggestion-card p {
  color: #64748b;
  margin: 5px 0 0;
  line-height: 1.5;
}

.writing-library-tools,
.writing-media-filters,
.writing-publish-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px 0;
  align-items: center;
}

.writing-library-tools input {
  min-width: 280px;
  flex: 1 1 280px;
}

.writing-publish-page {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.writing-publish-tabs {
  display: flex;
  gap: 8px;
  padding: 0 18px 12px;
}

.writing-publish-tabs button {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
}

.writing-publish-tabs button.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

.writing-upload-box {
  display: grid;
  gap: 6px;
  margin: 0 18px 16px;
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  text-align: center;
  color: #64748b;
}

.writing-upload-box strong {
  color: #111827;
}

.writing-rich-editor {
  min-height: 280px;
}

.writing-publish-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px 18px;
}

.writing-publish-media-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 18px;
  padding: 12px 14px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
}

.writing-publish-media-hint span {
  min-width: 0;
}

.writing-note-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.8;
}

.writing-record-status {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 0;
}

.writing-record-status article {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.writing-record-status article:hover {
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.writing-record-status article.active {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.writing-record-status span {
  color: #64748b;
  font-weight: 700;
}

.writing-record-status strong {
  color: #111827;
  font-size: 20px;
}

.writing-record-detail-page {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.writing-record-detail-side,
.writing-record-detail-main {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.writing-record-detail-side {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.writing-record-command-card {
  border-radius: 16px;
  background: #f8f7ff;
  border: 1px solid #ebe7ff;
  padding: 16px;
}

.writing-record-command-card span,
.writing-record-article-head span {
  display: block;
  color: #8b8fa3;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.writing-record-command-card h1 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.writing-record-command-card p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.75;
}

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

.writing-record-meta-grid label {
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.writing-record-meta-grid span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.writing-record-meta-grid strong {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.writing-record-content-card {
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 14px;
}

.writing-record-content-card div {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.writing-record-content-card strong {
  color: #111827;
  font-size: 14px;
}

.writing-record-content-card span,
.writing-record-content-card li {
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.65;
}

.writing-record-content-card ul {
  margin: 0;
  padding-left: 18px;
}

.writing-record-progress {
  display: grid;
  gap: 8px;
}

.writing-record-progress article {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #94a3b8;
}

.writing-record-progress i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 5px;
  background: #d8dee9;
}

.writing-record-progress article.done i {
  background: #6f59ff;
}

.writing-record-progress strong {
  display: block;
  color: #111827;
  font-size: 13px;
}

.writing-record-progress span {
  color: #94a3b8;
  font-size: 12px;
}

.writing-record-side-actions {
  display: flex;
  gap: 10px;
}

.writing-record-detail-main {
  min-height: 680px;
  overflow: hidden;
}

.writing-record-article-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid #eef0f4;
}

.writing-record-article-head h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.writing-record-article-body {
  padding: 26px 34px 44px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.9;
  max-width: 860px;
}

.writing-record-article-body h2,
.writing-record-article-body h3 {
  color: #111827;
  line-height: 1.45;
  letter-spacing: 0;
}

.writing-record-article-body p {
  margin: 0 0 16px;
}

.timus-writing-record-page {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  min-height: calc(100vh - 92px);
  background: #f7f7fb;
  border: 1px solid #edf0f6;
  border-radius: 0;
  overflow: hidden;
}

.timus-writing-side,
.timus-writing-doc {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.timus-writing-side {
  min-height: calc(100vh - 92px);
  padding: 14px 20px 18px;
  background: #ffffff;
  border-right: 1px solid #e9edf5;
  align-content: start;
}

.timus-writing-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timus-writing-side-head h1 {
  margin: 0;
  min-width: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-writing-side-head div {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.timus-writing-side-head span {
  border-radius: 999px;
  background: #f2efff;
  color: #8a77ea;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 850;
}

.timus-writing-side-head b {
  color: #7357e6;
}

.timus-writing-progress-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border: 1px solid #ddd5ff;
  border-radius: 10px;
  background: #f7f3ff;
  padding: 8px 12px;
  overflow: hidden;
}

.timus-writing-progress-card span,
.timus-writing-progress-card strong {
  position: relative;
  z-index: 1;
  color: #765bea;
  font-size: 13px;
  font-weight: 900;
}

.timus-writing-progress-card i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #8067f2;
}

.timus-chat-bubble {
  width: fit-content;
  max-width: 76%;
  border-radius: 14px;
  padding: 14px 16px;
  color: #343946;
  font-size: 14px;
  line-height: 1.65;
}

.timus-chat-bubble.user {
  justify-self: end;
  background: #f0f1f3;
  margin-top: 26px;
}

.timus-command-card {
  width: 100%;
  margin-top: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.timus-command-card summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}

.timus-command-card summary::-webkit-details-marker {
  display: none;
}

.timus-command-card summary i {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f2efff;
  color: #7357e6;
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
}

.timus-command-card summary span {
  min-width: 0;
  flex: 1 1 auto;
}

.timus-command-card summary strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.timus-command-card summary em {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-command-card summary b {
  color: #98a2b3;
  font-size: 20px;
  font-weight: 700;
  transition: transform .16s ease;
}

.timus-command-card[open] summary b {
  transform: rotate(90deg);
}

.timus-command-card-body {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px 54px;
}

.timus-command-card-body p {
  margin: 0;
  color: #303746;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 800;
}

.timus-command-card-body ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timus-command-card-body li {
  position: relative;
  padding-left: 14px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.timus-command-card-body li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: #9ca3af;
  font-weight: 900;
}

.timus-command-card-body li strong {
  color: #1f2937;
  font-weight: 950;
}

.timus-chat-text {
  margin: 8px 0;
  color: #303746;
  font-size: 14px;
  line-height: 1.75;
}

.timus-live-status-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 4px;
}

.timus-live-status-list div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border-radius: 10px;
  background: #f8fafc;
  color: #98a2b3;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 850;
}

.timus-live-status-list i {
  font-style: normal;
  width: 22px;
  text-align: center;
}

.timus-live-status-list div.active {
  background: #f4f1ff;
  color: #7357e6;
}

.timus-live-status-list div.active i {
  animation: timusPulse 1.2s ease-in-out infinite;
}

.timus-live-status-list div.done {
  background: #f1fbf6;
  color: #2e9f77;
}

@keyframes timusPulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.14); opacity: 1; }
}

.timus-step-list {
  display: grid;
  gap: 8px;
}

.timus-step-row {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid #e9edf5;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  text-align: left;
  cursor: default;
}

.timus-step-row i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #ecfff8;
  color: #33b98a;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.timus-step-row.running i {
  background: #f2efff;
  color: #7357e6;
}

.timus-step-row.fallback i {
  background: #f7f8fb;
  color: #98a2b3;
}

.timus-step-row.fallback strong,
.timus-step-row.fallback em,
.timus-step-row.fallback small {
  color: #98a2b3;
}

.timus-step-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.timus-step-row strong {
  color: #1f2937;
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-step-row em,
.timus-step-row small {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-step-row b {
  color: #98a2b3;
  font-size: 18px;
  font-weight: 600;
}

.timus-writing-summary {
  display: grid;
  gap: 10px;
  color: #343946;
  font-size: 14px;
  line-height: 1.75;
}

.timus-writing-summary p {
  margin: 0;
}

.timus-chat-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  padding: 7px 8px 7px 16px;
}

.timus-chat-input span {
  color: #a1a8b6;
  font-size: 14px;
  font-weight: 750;
}

.timus-chat-input button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #8b8f98;
  color: #fff;
  font-size: 14px;
}

.timus-left-process {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.timus-left-stage-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7f67ff;
  font-size: 15px;
  font-weight: 950;
}

.timus-left-stage-line strong {
  color: #7f67ff;
  font-size: 15px;
}

.timus-left-result-list {
  display: grid;
  gap: 10px;
}

.timus-left-result-list .timus-result-card {
  box-shadow: none;
}

.timus-left-result-list .timus-result-card-body {
  grid-template-columns: 1fr;
}

.timus-end-writing-btn {
  width: fit-content;
  justify-self: center;
  border: 0;
  background: transparent;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 850;
  padding: 4px 8px;
  cursor: pointer;
}

.timus-end-writing-btn:hover {
  color: #7357e6;
}

.timus-writing-doc {
  min-height: calc(100vh - 92px);
  background: #f7f7fb;
  overflow: hidden;
}

.timus-preparing-stage {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 12px 18px 86px;
  background: #fff;
  overflow: hidden;
}

.timus-preparing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.timus-preparing-top h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.timus-preparing-top div {
  display: flex;
  gap: 6px;
}

.timus-preparing-top span {
  border-radius: 999px;
  background: #f2efff;
  color: #8a77ea;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 850;
}

.timus-preparing-progress {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid #d9d0ff;
  border-radius: 11px;
  background: #f5f1ff;
  overflow: hidden;
}

.timus-preparing-progress > div,
.timus-preparing-progress strong {
  position: relative;
  z-index: 1;
}

.timus-preparing-progress > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f52f2;
  font-size: 15px;
  font-weight: 950;
}

.timus-preparing-progress > div i {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #765bea;
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.2);
}

.timus-preparing-progress strong {
  color: #7a63e8;
  font-size: 14px;
  font-weight: 950;
}

.timus-preparing-progress em {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #765bea, #9f8cff);
}

.timus-preparing-center {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #7c83ff;
}

.timus-ai-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7f67ff;
  font-size: 16px;
  font-weight: 950;
}

.timus-ai-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9a8cff;
  animation: timusDotPulse 1.05s infinite ease-in-out;
}

.timus-ai-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.timus-ai-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.timus-preparing-center p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
}

@keyframes timusDotPulse {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.timus-preparing-card {
  position: absolute;
  right: 12%;
  top: 130px;
  width: 260px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.timus-preparing-card strong {
  display: block;
  padding: 14px 16px;
  color: #7b61ff;
  font-size: 13px;
  font-weight: 950;
}

.timus-preparing-card strong b {
  color: #6f52f2;
}

.timus-preparing-card span {
  display: block;
  padding: 16px;
  background: #f0f0f2;
  color: #1f2937;
  font-size: 15px;
  font-weight: 850;
}

.timus-stage-running {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a93a3;
  font-size: 14px;
  font-weight: 900;
}

.timus-stage-running i {
  color: #8b95a7;
  font-style: normal;
  animation: timusStageBlink 1.2s infinite ease-in-out;
}

@keyframes timusStageBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.timus-preparing-result-list {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(820px, calc(100% - 180px));
  transform: translateX(-50%);
  display: grid;
  gap: 12px;
}

.timus-result-card {
  display: block;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.timus-result-card summary,
.timus-result-card-button > div {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
}

.timus-result-card summary::-webkit-details-marker {
  display: none;
}

.timus-result-card i {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eafff4;
  color: #2fb979;
  font-style: normal;
  font-size: 14px;
  font-weight: 950;
}

.timus-result-card span {
  flex: 1 1 auto;
  min-width: 0;
}

.timus-result-card strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-result-card em {
  display: block;
  margin-top: 4px;
  color: #6f7c91;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-result-card b {
  color: #98a2b3;
  font-size: 20px;
}

.timus-result-card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 0 16px 16px 56px;
}

.timus-result-card-body p {
  margin: 0;
  min-width: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.timus-result-card-body p span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 850;
}

.timus-result-card-body p strong {
  font-size: 13px;
  white-space: normal;
}

.timus-result-card-button {
  text-align: left;
  cursor: pointer;
}

.timus-failure-options-card {
  display: grid;
  gap: 12px;
  border: 1px solid #fee2e2;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.timus-fix-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #e8e1ff;
  border-radius: 14px;
  background: #fff;
  padding: 13px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.timus-fix-panel header,
.timus-fix-panel footer,
.timus-fix-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.timus-fix-panel header strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.timus-fix-panel header span,
.timus-fix-panel header em {
  color: #8a77ea;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.timus-fix-actions {
  justify-content: flex-start;
}

.timus-fix-actions button {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.timus-fix-actions button:hover {
  border-color: #8b74ff;
  color: #7357e6;
}

.timus-fix-list {
  display: grid;
  gap: 8px;
}

.timus-fix-row {
  border: 1px solid #eef0f4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.timus-fix-row summary {
  min-height: 50px;
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}

.timus-fix-row summary::-webkit-details-marker {
  display: none;
}

.timus-fix-row input {
  width: 16px;
  height: 16px;
  accent-color: #7357e6;
}

.timus-fix-badge {
  min-width: 30px;
  border-radius: 999px;
  background: #fff1f2;
  color: #e11d48;
  padding: 3px 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 950;
}

.timus-fix-row.p1 .timus-fix-badge {
  background: #fff7ed;
  color: #ea580c;
}

.timus-fix-row.p2 .timus-fix-badge {
  background: #f1f5f9;
  color: #64748b;
}

.timus-fix-row strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-fix-row em {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-fix-row b {
  color: #98a2b3;
  font-size: 18px;
  font-weight: 700;
  transition: transform .16s ease;
}

.timus-fix-row[open] b {
  transform: rotate(90deg);
}

.timus-fix-detail {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px 69px;
}

.timus-fix-detail p {
  margin: 0;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.65;
}

.timus-fix-detail span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.timus-failure-options-head strong {
  display: block;
  color: #991b1b;
  font-size: 15px;
  font-weight: 950;
}

.timus-failure-options-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.timus-failure-option-list {
  display: grid;
  gap: 9px;
}

.timus-failure-option-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.timus-failure-option-list button:hover {
  border-color: #8b74ff;
  background: #f7f4ff;
}

.timus-failure-option-list span {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f2efff;
  color: #7357e6;
  font-size: 13px;
  font-weight: 950;
}

.timus-failure-option-list strong {
  min-width: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-failure-option-list em {
  min-width: 0;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-waiting-placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #6b7280;
}

.timus-waiting-placeholder strong {
  color: #7f67ff;
  font-size: 15px;
  font-weight: 950;
}

.timus-waiting-placeholder p {
  margin: 0;
  color: #8b95a7;
  font-size: 13px;
  font-weight: 750;
}

.timus-preparing-input {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(820px, calc(100% - 180px));
  min-height: 58px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.timus-preparing-input span {
  color: #c5cbd6;
  font-size: 14px;
  font-weight: 850;
}

.timus-preparing-input button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: #111827;
  color: #fff;
  font-size: 12px;
}

.timus-writing-record-page.doc-collapsed {
  grid-template-columns: minmax(0, 1fr) 64px;
}

.timus-writing-record-page.doc-collapsed .timus-writing-doc {
  min-width: 64px;
}

.timus-writing-record-page.doc-collapsed .timus-doc-paper {
  display: none;
}

.timus-writing-record-page.doc-collapsed .timus-doc-toolbar {
  height: 100%;
  min-height: calc(100vh - 92px);
  padding: 14px 10px;
  flex-direction: column;
  justify-content: flex-start;
}

.timus-writing-record-page.doc-collapsed .timus-doc-toolbar div {
  writing-mode: vertical-rl;
  align-items: center;
  gap: 8px;
  max-height: 440px;
}

.timus-writing-record-page.doc-collapsed .timus-doc-toolbar span {
  max-height: 360px;
}

.timus-writing-record-page.doc-collapsed .timus-dark-btn {
  display: none;
}

.timus-writing-record-page.doc-collapsed .timus-doc-toolbar .btn {
  writing-mode: vertical-rl;
  height: auto;
  min-height: 88px;
  padding: 10px 8px;
}

.timus-doc-toolbar {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #e9edf5;
}

.timus-doc-toolbar div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #424957;
  font-size: 13px;
  font-weight: 800;
}

.timus-doc-toolbar .timus-doc-tabs,
.timus-doc-toolbar .timus-doc-actions {
  flex: 0 0 auto;
}

.timus-doc-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid #e7e3ff;
  border-radius: 10px;
  background: #f8f6ff;
}

.timus-doc-tabs button {
  height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #7b8497;
  font-size: 13px;
  font-weight: 900;
}

.timus-doc-tabs button.active {
  background: #fff;
  color: #6b55e8;
  box-shadow: inset 0 0 0 1px #8f7cff;
}

.timus-doc-toolbar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-dark-btn {
  border: 0;
  border-radius: 9px;
  background: #111827;
  color: #fff;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.timus-doc-paper {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 48px 80px;
  color: #1f2937;
  overflow-y: auto;
  max-height: calc(100vh - 142px);
  background: #fff;
}

.timus-doc-kicker {
  color: #ef4f74;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.timus-doc-paper > h1 {
  margin: 0 0 10px;
  color: #121827;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.timus-doc-meta {
  color: #8a91a5;
  font-size: 14px;
  font-weight: 800;
}

.timus-doc-paper hr {
  border: 0;
  height: 2px;
  background: #1f2937;
  margin: 28px 0 24px;
}

.timus-doc-section {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 15px 36px rgba(15, 23, 42, 0.08);
  padding: 28px;
  margin-bottom: 22px;
}

.timus-doc-section h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 25px;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: 0;
  border-bottom: 1px solid #e6e9f2;
  padding-bottom: 12px;
}

.timus-doc-section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  border-radius: 999px;
  background: #7357e6;
  margin-top: 11px;
  margin-bottom: -15px;
}

.timus-doc-card {
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.timus-doc-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 950;
  letter-spacing: 0;
}

.timus-doc-card p,
.timus-doc-paper p {
  color: #303746;
  font-size: 16px;
  line-height: 1.85;
}

.timus-doc-card a {
  color: #9aa0ad;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.timus-doc-cta {
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #7357e6;
  color: #fff;
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
}

.timus-empty-original {
  color: #98a2b3;
  font-size: 15px;
  line-height: 1.8;
}

.timus-outline-paper {
  max-width: 860px;
  margin: 0 auto;
  color: #111827;
}

.timus-outline-paper h1 {
  margin: 0 0 28px;
  color: #111827;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: 0;
}

.timus-outline-paper section {
  border: 1px solid #e7ebf3;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  background: #fff;
}

.timus-outline-paper h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 950;
  letter-spacing: 0;
}

.timus-outline-paper p {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  margin: 0 0 10px;
  color: #344054;
  font-size: 15px;
  line-height: 1.7;
}

.timus-outline-paper p strong {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.timus-outline-paper p span,
.timus-outline-paper li {
  color: #202939;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.timus-outline-paper ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1100px) {
  .writing-record-detail-page {
    grid-template-columns: 1fr;
  }
}

.writing-media-filters select {
  min-width: 150px;
}

.writing-media-tabs {
  padding: 14px 18px;
}

.writing-model-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.writing-model-tags span {
  background: color-mix(in srgb, var(--model-color) 14%, white);
  border: 1px solid color-mix(in srgb, var(--model-color) 34%, white);
  color: var(--model-color);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.writing-media-cart {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  padding: 12px 18px 18px;
  color: #475569;
}

.writing-media-table th:nth-child(2),
.writing-media-table td:nth-child(2) {
  min-width: 220px;
}

@media (max-width: 980px) {
  .writing-suggestion-grid,
  .writing-publish-page {
    grid-template-columns: 1fr;
  }

  .writing-prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.timus-publish-page {
  display: block;
  width: min(880px, calc(100vw - 56px));
  margin: 0 auto 84px;
  padding: 30px 0 42px;
}

.timus-publish-title {
  margin: 0 0 18px;
}

.timus-publish-title h1 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.timus-publish-title p {
  margin: 0;
  color: #6b7280;
  font-size: 13.5px;
  line-height: 1.6;
}

.timus-publish-card,
.timus-setting-card,
.timus-publish-notes {
  margin: 0 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.timus-publish-card {
  padding: 18px;
}

.timus-publish-tabs {
  padding: 0;
  margin: 0 0 14px;
}

.timus-publish-tabs button {
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
}

.timus-publish-tabs button.active,
.timus-outline-purple {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.timus-upload-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px dashed #d8dce6;
  border-radius: 12px;
  background: #f7f8fb;
  color: #6b7280;
  text-align: left;
  cursor: pointer;
}

.timus-upload-wrap {
  margin: 0 0 18px;
}

.timus-upload-input {
  display: none;
}

.timus-upload-box.has-file,
.timus-upload-box.is-dragging {
  border-color: #a78bfa;
  background: #f5f3ff;
}

.timus-upload-box.is-dragging {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.timus-upload-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff;
  color: #7c3aed;
  font-size: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.timus-upload-box strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
}

.timus-upload-box em {
  display: block;
  color: #8a93a3;
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}

.timus-upload-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
}

.timus-upload-status strong {
  max-width: 52%;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-upload-status em {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  font-style: normal;
}

.timus-upload-status em .btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.timus-upload-status.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.timus-url-publish-meta {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.timus-url-publish-meta span {
  color: #8a93a3;
  font-size: 12px;
  font-weight: 700;
}

.timus-url-publish-meta strong {
  color: #111827;
  font-size: 14px;
}

.timus-url-publish-meta small {
  color: #8a93a3;
  font-size: 12px;
}

.timus-inline-image-token {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
}

.timus-title-field {
  display: block;
  margin: 2px 0 4px;
}

.timus-title-field input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #111827;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 800;
}

.timus-title-field input::placeholder {
  color: #9ca3af;
  font-weight: 800;
}

.timus-title-count {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 12px;
}

.timus-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #eef0f5;
  border-radius: 9px 9px 0 0;
  background: #f5f6fa;
  overflow-x: auto;
}

.timus-rich-toolbar button {
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #111827;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.timus-rich-toolbar button:hover {
  background: #fff;
}

.timus-editor-tip {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-top: 0;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.7;
}

.timus-rich-editor {
  min-height: 258px;
  border: 1px solid #e5e7eb;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 18px;
  color: #111827;
  background: #fff;
}

.timus-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}

.timus-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

.timus-editor-foot > div {
  display: flex;
  gap: 8px;
}

.timus-setting-card,
.timus-publish-notes {
  padding: 16px 18px;
}

.timus-setting-card h3,
.timus-publish-notes h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
}

.timus-setting-card select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}

.timus-setting-card p {
  margin: 8px 0 0;
  color: #8a93a3;
  font-size: 12px;
}

.timus-segmented {
  display: flex;
  gap: 10px;
}

.timus-segmented button {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.timus-segmented button.active {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

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

.timus-card-head h3 {
  margin: 0;
}

.timus-media-empty {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px dashed #d8dce6;
  border-radius: 10px;
  background: #f7f8fb;
  color: #8a93a3;
  font-size: 13px;
}

.timus-media-empty.has-media {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px;
}

.timus-media-empty.has-media span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.timus-media-empty.has-media em {
  color: #d97706;
  font-style: normal;
}

.timus-existing-picker {
  margin: 0 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  position: relative;
  z-index: 20;
}

.timus-existing-picker label {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #9ca3af;
}

.timus-existing-picker input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
}

.timus-existing-picker i {
  color: #9ca3af;
  font-style: normal;
  font-size: 14px;
}

.timus-existing-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 178px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.timus-existing-picker button {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.timus-existing-picker button:hover,
.timus-existing-picker button.active {
  background: #f5f3ff;
}

.timus-existing-picker strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-existing-picker small {
  display: block;
  margin-top: 3px;
  color: #8a93a3;
  font-size: 11.5px;
}

.timus-existing-picker p {
  margin: 8px 10px;
  color: #9ca3af;
  font-size: 12px;
}

.timus-validation-panel {
  margin-top: 12px;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  background: #f0fdf4;
  overflow: hidden;
}

.timus-validation-panel header {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #dcfce7;
}

.timus-validation-panel header strong {
  color: #166534;
  font-size: 13px;
}

.timus-validation-panel header button,
.timus-preview-panel header button,
.timus-media-picker-panel header button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.timus-validation-panel > div {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(187, 247, 208, 0.8);
}

.timus-validation-panel > div:last-child {
  border-bottom: 0;
}

.timus-validation-panel > div > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
}

.timus-validation-panel p {
  margin: 0;
}

.timus-validation-panel p strong {
  display: block;
  color: #111827;
  font-size: 12.5px;
}

.timus-validation-panel p small {
  display: block;
  margin-top: 3px;
  color: #4b5563;
  font-size: 11.5px;
  line-height: 1.5;
}

.timus-schedule-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

.timus-schedule-field input {
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 12px;
  color: #111827;
}

.timus-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.34);
}

.timus-preview-panel,
.timus-media-picker-panel {
  width: min(720px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.timus-preview-panel header,
.timus-media-picker-panel header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
}

.timus-preview-panel header strong,
.timus-media-picker-panel header strong {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.timus-preview-panel header span,
.timus-media-picker-panel header span {
  color: #8a93a3;
  font-size: 12px;
}

.timus-preview-panel article {
  padding: 22px 28px 30px;
  overflow: auto;
}

.timus-preview-panel article h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.timus-preview-panel article p {
  color: #374151;
  font-size: 14px;
  line-height: 1.9;
}

.timus-media-picker-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}

.timus-media-picker-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.timus-media-picker-list label.active {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.timus-media-picker-list strong {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.timus-media-picker-list small {
  display: block;
  margin-top: 3px;
  color: #8a93a3;
  font-size: 11.5px;
}

.timus-media-picker-list em {
  color: #d97706;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.timus-media-picker-panel footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
}

.timus-media-picker-panel footer span {
  margin-right: auto;
  color: #6b7280;
  font-size: 12px;
}

.timus-publish-notes .writing-note-list {
  padding-left: 18px;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.9;
}

.timus-publish-sticky {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(248,250,252,0), #f8fafc 45%);
}

.timus-publish-sticky .btn {
  min-width: 96px;
}

.timus-records-page {
  display: block;
  width: min(1240px, calc(100vw - 56px));
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0 42px;
}

.timus-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: -52px 0 28px;
}

.timus-page-actions .btn {
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.timus-record-tools {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.timus-search-box {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #9ca3af;
}

.timus-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
}

.timus-filter-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.timus-filter-inline select,
.timus-sort-select select {
  height: 40px;
  min-width: 86px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}

.timus-time-filter {
  position: relative;
}

.timus-time-filter > button {
  height: 40px;
  min-width: 118px;
  padding: 0 13px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.timus-time-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: 260px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.timus-time-popover strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 13px;
}

.timus-time-popover > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.timus-time-popover button {
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: #374151;
  font-size: 12.5px;
}

.timus-time-popover button.active {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.timus-time-popover label {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 12px;
}

.timus-time-popover input {
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  padding: 0 10px;
}

.timus-time-popover footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.timus-record-status-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.timus-status-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 42px;
}

.timus-status-tabs button {
  position: relative;
  height: 38px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.timus-status-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 10px;
}

.timus-status-tabs button.active {
  color: #111827;
}

.timus-status-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 99px;
  background: #111827;
}

.timus-status-tabs button.active span {
  background: #111827;
  color: #fff;
}

.timus-sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
}

.timus-record-table-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.timus-record-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.timus-record-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.timus-record-table th:nth-child(1) { width: 29%; }
.timus-record-table th:nth-child(2) { width: 13%; }
.timus-record-table th:nth-child(3) { width: 10%; }
.timus-record-table th:nth-child(4) { width: 16%; }
.timus-record-table th:nth-child(5) { width: 9%; }
.timus-record-table th:nth-child(6) { width: 8%; }
.timus-record-table th:nth-child(7) { width: 12%; }
.timus-record-table th:nth-child(8) { width: 72px; }

.timus-record-table thead th {
  height: 40px;
  padding: 0 14px;
  background: #f5f6fa;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.timus-record-table tbody td {
  min-width: 0;
  padding: 16px 14px;
  color: #374151;
  font-size: 12.5px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timus-record-title strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-record-title small {
  display: block;
  margin-top: 5px;
  color: #8a93a3;
  font-size: 11.5px;
  line-height: 1.5;
}

.timus-media-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timus-status-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.timus-status-pill.is-amber {
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #d97706;
}

.timus-status-pill.is-green {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #16a34a;
}

.timus-status-pill.is-red {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.timus-pending-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #d97706;
  font-weight: 700;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.timus-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #2563eb;
  font-weight: 700;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.timus-points {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #d97706;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-preview-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.timus-record-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: #4b5563;
  font-size: 12.5px;
}

.timus-record-pager > div {
  display: flex;
  gap: 6px;
}

.timus-record-pager .btn {
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

.timus-library-page {
  display: block;
  width: min(1104px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 10px 0 42px;
}

.timus-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.timus-library-head h1 {
  margin: 0 0 9px;
  color: #0f1115;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.timus-library-head p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.timus-library-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timus-library-top-actions .btn {
  height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.timus-library-top-actions .btn.primary {
  background: #0f1115;
  border-color: #0f1115;
  color: #fff;
}

.timus-library-search {
  margin-bottom: 14px;
}

.timus-library-status-row {
  min-height: 42px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.timus-library-sort {
  color: #8a8f9b;
  font-size: 12px;
}

.timus-library-sort strong {
  color: #2a2d36;
  font-weight: 800;
}

.timus-library-table-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.timus-library-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.timus-library-table thead th {
  height: 34px;
  padding: 0 12px;
  background: #f5f6fa;
  color: #5b606a;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.timus-library-table thead th:nth-child(1) {
  width: auto;
}

.timus-library-table thead th:nth-child(2) {
  width: 112px;
}

.timus-library-table thead th:nth-child(3) {
  width: 132px;
}

.timus-library-table thead th:nth-child(4) {
  width: 190px;
}

.timus-library-table tbody td {
  height: 48px;
  padding: 0 12px;
  color: #2a2d36;
  font-size: 12.5px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.timus-library-table tbody tr:last-child td {
  border-bottom: 0;
}

.timus-library-title strong {
  display: block;
  overflow: hidden;
  color: #0f1115;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-library-time {
  color: #5b606a;
  font-size: 12px;
}

.timus-library-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.timus-release-btn {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.timus-delete-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fff;
  color: #ef4444;
  font-size: 13px;
  cursor: pointer;
}

.timus-library-pager {
  margin-top: 18px;
}

.timus-media-page {
  display: block;
  width: min(1180px, calc(100vw - 56px));
  margin: 0 auto 84px;
  padding: 8px 0 42px;
}

.timus-media-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.timus-media-head h1 {
  margin: 0 0 7px;
  color: #111827;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.timus-media-head p {
  margin: 0;
  color: #8b95a7;
  font-size: 13px;
  line-height: 1.5;
}

.timus-media-head .btn {
  height: 40px;
  padding: 0 15px;
  border-radius: 12px;
  background: #111827;
  border-color: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.timus-media-filters {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) 118px 118px 124px 124px 124px;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #edf0f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.timus-media-filters label {
  display: grid;
  gap: 6px;
  color: #8b95a7;
  font-size: 12px;
  font-weight: 800;
}

.timus-media-filters .timus-search-box {
  height: 38px;
  align-self: end;
  border-color: #e8ecf4;
  background: #f8fafc;
}

.timus-media-filters select,
.timus-media-filters label > button {
  height: 38px;
  padding: 0 11px;
  border: 1px solid #e8ecf4;
  border-radius: 11px;
  background: #f8fafc;
  color: #111827;
  font-size: 13px;
  text-align: left;
}

.timus-media-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 0;
}

.timus-media-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.timus-media-tabs button strong {
  color: #111827;
  font-size: 13px;
}

.timus-media-tabs button.active {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.08);
}

.timus-media-resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 13px;
}

.timus-media-resultbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
}

.timus-media-resultbar select {
  height: 36px;
  min-width: 116px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}

.timus-media-table-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.timus-media-table {
  min-width: 1120px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.timus-media-table thead th {
  height: 42px;
  padding: 0 14px;
  background: #f7f8fb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.timus-media-table tbody td {
  height: 64px;
  padding: 10px 14px;
  color: #374151;
  font-size: 12.5px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.timus-media-table tbody tr:hover td {
  background: #fbfcff;
}

.timus-media-table th:first-child,
.timus-media-table td:first-child {
  width: 46px;
  text-align: center;
}

.timus-media-table th:nth-child(2) {
  width: 300px;
}

.timus-media-table th:nth-child(3) {
  width: 116px;
}

.timus-media-table th:nth-child(4) {
  width: 92px;
}

.timus-media-table th:nth-child(5) {
  width: 230px;
}

.timus-media-table th:nth-child(6) {
  width: 86px;
}

.timus-media-name-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 280px;
}

.timus-media-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 900;
}

.timus-media-name-cell strong {
  display: block;
  max-width: 250px;
  overflow: hidden;
  color: #111827;
  font-size: 13.5px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-media-name-cell small {
  display: block;
  margin-top: 4px;
  color: #8a93a3;
  font-size: 11.5px;
}

.timus-media-name-cell a {
  color: #7c3aed;
  text-decoration: none;
}

.timus-media-platform {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.timus-media-price {
  display: grid;
  gap: 2px;
  color: #111827;
  font-weight: 800;
}

.timus-media-price em {
  color: #9ca3af;
  font-style: normal;
  font-size: 11px;
  text-decoration: line-through;
}

.timus-media-price strong {
  color: #111827;
  font-size: 12.5px;
}

.timus-rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 26px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 900;
}

.timus-media-table .writing-model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 230px;
}

.timus-media-table .writing-model-tags span {
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--model-color) 14%, #fff);
  color: var(--model-color);
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
}

.timus-media-table .media-resource-remark span {
  display: -webkit-box;
  max-width: 250px;
  overflow: hidden;
  color: #667085;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timus-fav-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}

.timus-fav-btn:hover {
  background: #f8fafc;
  color: #7c3aed;
}

.timus-media-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0;
  color: #4b5563;
  font-size: 12.5px;
}

.timus-media-pager > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timus-media-pager input {
  width: 48px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  text-align: center;
}

.timus-media-pager .btn {
  height: 32px;
  border-radius: 9px;
  font-size: 12px;
}

.timus-media-cart {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(248,250,252,0), #f8fafc 45%);
}

.timus-media-cart span {
  margin-right: auto;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.timus-media-check input {
  accent-color: #4f46e5;
}

.timus-compose-page {
  display: block;
  width: min(880px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.timus-compose-page h1 {
  margin: 0 0 28px;
  color: #111827;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.timus-compose-hero {
  margin-bottom: 24px;
  text-align: center;
}

.timus-compose-hero > span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.timus-compose-hero h1 {
  margin: 10px 0 8px;
}

.timus-compose-hero p {
  margin: 0 auto;
  max-width: 620px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.timus-compose-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.timus-compose-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timus-picker-wrap {
  position: relative;
}

.timus-selector-pill {
  min-width: 128px;
  height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 9px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.timus-selector-pill > span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-weight: 900;
}

.timus-selector-pill.competitor > span {
  background: #fb923c;
}

.timus-selector-pill.material > span {
  background: #0f766e;
}

.timus-selector-pill.product,
.timus-selector-pill.material {
  min-width: 214px;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  column-gap: 9px;
  padding-right: 12px;
}

.timus-selector-pill.material {
  min-width: 168px;
}

.timus-selector-pill.product > span,
.timus-selector-pill.material > span {
  grid-column: 1;
  grid-row: 1 / 3;
}

.timus-selector-pill.product strong,
.timus-selector-pill.material strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  max-width: none;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.timus-selector-pill.product small,
.timus-selector-pill.material small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: #8a93a3;
  font-size: 12px;
  font-weight: 700;
}

.timus-selector-pill.product em,
.timus-selector-pill.material em {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  margin-left: 8px;
  line-height: 1;
}

.timus-selector-pill.media {
  position: relative;
  width: max-content;
  min-width: 142px;
  grid-template-columns: 28px max-content auto;
  column-gap: 7px;
  padding-right: 12px;
  cursor: pointer;
}

.timus-selector-pill.media > span {
  grid-column: 1;
  grid-row: 1 / 3;
  background: #6d5dfc;
}

.timus-selector-pill.media strong {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  max-width: none;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.timus-selector-pill.media small {
  grid-column: 2 / 4;
  grid-row: 2;
  align-self: start;
  color: #8a93a3;
  font-size: 12px;
  font-weight: 700;
}

.timus-selector-pill.media em {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  margin-left: 1px;
  line-height: 1;
}

.timus-selector-pill.media select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.timus-selector-pill strong {
  max-width: 88px;
  overflow: hidden;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timus-selector-pill small {
  color: #8a93a3;
  font-size: 11px;
  line-height: 1;
}

.timus-selector-pill em {
  grid-row: 1 / 3;
  color: #9ca3af;
  font-style: normal;
}

.timus-balance {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
}

.timus-balance strong {
  display: block;
  max-width: 86px;
  overflow: hidden;
  color: #4c1d95;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}

.timus-balance i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.timus-inline-field {
  height: 44px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-width: 126px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.timus-inline-field span,
.timus-topic-field > span {
  color: #8a93a3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.timus-inline-field select {
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.timus-default-pill {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.timus-topic-field {
  display: block;
  padding: 4px 4px 0;
}

.timus-topic-field > span {
  display: block;
  padding: 0 0 6px;
}

.timus-compose-textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 8px 4px 22px;
  background: transparent;
  color: #111827;
  font-size: 15px;
  line-height: 1.7;
}

.timus-compose-textarea::placeholder {
  color: #9ca3af;
}

.timus-route-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2px;
  padding: 10px 4px 14px;
  border-top: 1px solid #f8fafc;
}

.timus-route-strip span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.timus-route-strip i {
  color: #cbd5e1;
  font-style: normal;
}

.timus-compose-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.timus-mode-switch {
  height: 34px;
  padding: 2px;
  gap: 0;
  border: 1px solid #e6e0ff;
  border-radius: 999px;
  background: #f5f3ff;
}

.timus-mode-switch button {
  height: 28px;
  min-width: 52px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b8fa3;
  font-size: 12px;
  font-weight: 900;
}

.timus-mode-switch button.active {
  border: 0;
  background: #fff;
  color: #6d5dfc;
  box-shadow: 0 4px 10px rgba(109, 93, 252, 0.1);
}

.timus-compose-actions .btn {
  height: 34px;
  border-radius: 999px;
  font-size: 12px;
}

.timus-count-control {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.timus-count-control button {
  display: none;
}

.timus-count-control input {
  width: 42px;
  min-width: 42px;
  height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  background: transparent;
  cursor: pointer;
}

.timus-start-btn {
  min-width: 112px;
  height: 42px !important;
  margin-left: 0;
  border-radius: 14px !important;
  background: #8b5cf6 !important;
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.22);
}

.timus-suggestion-area {
  margin-top: 18px;
}

.timus-suggestion-area h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.timus-suggestion-area > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timus-suggestion-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.timus-suggestion-card > span {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 18px;
  font-weight: 900;
}

.timus-suggestion-card.green > span {
  background: #ecfdf5;
  color: #059669;
}

.timus-suggestion-card.amber > span {
  background: #fffbeb;
  color: #b45309;
}

.timus-suggestion-card strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.timus-suggestion-card em {
  color: #9ca3af;
  font-style: normal;
  font-size: 18px;
}

.timus-suggestion-card small {
  grid-column: 2 / 4;
  color: #6b7280;
  font-size: 12px;
}

.timus-picker-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 260px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.timus-picker-popover h4 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.timus-picker-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.timus-picker-list button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.timus-picker-list button.active {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.timus-picker-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
}

.timus-picker-foot span {
  margin-right: auto;
}

.timus-picker-foot button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: #374151;
}

.timus-picker-foot button:last-child {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.settings-inline-form {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr 0.9fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.settings-inline-form label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.settings-inline-form input,
.settings-inline-form select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  font-size: 14px;
}

.settings-inline-form .btn {
  height: 38px;
}

.empty-state.compact {
  min-height: 0;
  padding: 12px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}

.btn.small {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .timus-publish-page {
    width: calc(100vw - 28px);
    padding-top: 18px;
  }

  .timus-editor-foot,
  .timus-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .timus-records-page {
    width: calc(100vw - 28px);
  }

  .timus-page-actions,
  .timus-record-tools,
  .timus-record-status-row {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .timus-record-table-card,
  .timus-record-table-wrap {
    overflow: visible;
  }

  .timus-record-table,
  .timus-record-table thead,
  .timus-record-table tbody,
  .timus-record-table tr,
  .timus-record-table th,
  .timus-record-table td {
    display: block;
    width: 100%;
  }

  .timus-record-table thead {
    display: none;
  }

  .timus-record-table tbody tr {
    display: grid;
    gap: 9px;
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
  }

  .timus-record-table tbody td {
    padding: 0;
    border-bottom: 0;
    white-space: normal;
  }

  .timus-record-table tbody td::before {
    display: block;
    margin-bottom: 3px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 800;
  }

  .timus-record-table tbody td:nth-child(1)::before { content: "稿件"; }
  .timus-record-table tbody td:nth-child(2)::before { content: "发稿媒体"; }
  .timus-record-table tbody td:nth-child(3)::before { content: "状态"; }
  .timus-record-table tbody td:nth-child(4)::before { content: "发稿链接"; }
  .timus-record-table tbody td:nth-child(5)::before { content: "引用情况"; }
  .timus-record-table tbody td:nth-child(6)::before { content: "积分"; }
  .timus-record-table tbody td:nth-child(7)::before { content: "创建时间"; }
  .timus-record-table tbody td:nth-child(8)::before { content: "操作"; }

  .timus-media-page {
    width: calc(100vw - 28px);
  }

  .timus-media-filters {
    grid-template-columns: 1fr;
  }

  .timus-media-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .timus-compose-page {
    width: calc(100vw - 28px);
  }

  .timus-compose-page h1 {
    font-size: 28px;
  }

  .timus-compose-top,
  .timus-compose-actions,
  .timus-suggestion-area > div {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

  .timus-start-btn {
    margin-left: 0;
  }
}
