:root {
  color: #23282d;
  background: #eeece6;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #23282d;
  --muted: #737a7f;
  --line: #d8d4cb;
  --paper: #fbfaf7;
  --surface: #eeece6;
  --nav: #1b2025;
  --nav-line: rgba(255, 255, 255, 0.1);
  --cyan: #ef6038;
  --cyan-weak: #f7e6df;
  --blue: #d94d28;
  --blue-weak: #f5e9e4;
  --amber: #d97706;
  --amber-weak: #fff2df;
  --primary: #ef6038;
  --primary-weak: #f7e6df;
  --shadow-soft: 0 14px 36px rgba(55, 48, 39, 0.08);
  --red: #d84b3a;
  --red-weak: #ffebe7;
  --violet: #6f5cff;
}

/* 每日工作台 */
.daily-workbench-page {
  display: none;
  gap: 18px;
}

.daily-workbench-page.active {
  display: grid;
}

.daily-alert-panel {
  border-color: #f1d9d4;
  background: linear-gradient(145deg, #fffaf8, #ffffff);
}

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

.daily-alert-list article {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #fff;
}

.daily-alert-list article.danger {
  border-color: #f1c7c0;
  background: #fff7f5;
}

.daily-alert-list article.warning {
  border-color: #efdba7;
  background: #fffaf0;
}

.daily-alert-list article.success {
  border-color: #c8e5d5;
  background: #f5fbf7;
}

.daily-alert-list span,
.daily-member-meta span,
.daily-review-grid p,
.daily-report-grid p,
.daily-report-grid small {
  color: var(--muted);
  line-height: 1.6;
}

.daily-result-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.daily-member-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.daily-progress-number {
  display: grid;
  place-items: center;
  min-width: 50px;
  height: 34px;
  border-radius: 999px;
  color: var(--primary);
  background: #edf6f3;
  font-weight: 800;
}

.daily-member-meta {
  display: grid;
  gap: 5px;
  margin: 10px 0 13px;
  font-size: 12px;
}

.daily-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef3;
}

.daily-progress-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #55a78c);
  transition: width 180ms ease;
}

.daily-owner-task-list,
.daily-task-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.daily-task-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e4eaf0;
  border-radius: 16px;
  background: #fff;
}

.daily-owner-task-list .daily-task-card {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px;
}

.daily-task-card.is-completed {
  border-color: #c9e3d5;
  background: #f7fbf8;
}

.daily-task-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.daily-task-card.is-completed .daily-task-check {
  background: #2f8b62;
}

.daily-task-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.daily-task-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.daily-task-title-row strong {
  line-height: 1.45;
}

.daily-task-copy p,
.daily-task-copy small,
.daily-task-copy em,
.daily-task-copy blockquote {
  margin: 0;
  line-height: 1.65;
}

.daily-task-copy p {
  color: #394b59;
  font-size: 13px;
}

.daily-task-copy small {
  color: var(--muted);
}

.daily-task-copy em {
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.daily-task-copy blockquote {
  padding: 8px 10px;
  border-left: 3px solid #8ebda9;
  border-radius: 0 8px 8px 0;
  color: #315a4b;
  background: #f2f8f5;
  font-size: 12px;
}

.daily-task-actions {
  display: grid;
  gap: 7px;
  width: 112px;
}

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

.daily-review-grid article,
.daily-report-grid article,
.daily-focus-grid article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.daily-review-grid article.is-pending {
  border-style: dashed;
  background: #fafbfd;
}

.daily-review-grid span,
.daily-report-grid span,
.daily-focus-grid span,
.daily-today-status span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.daily-today-status {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border: 1px solid #c8dfd5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3faf6, #fff);
}

.daily-today-status.is-rest {
  border-color: #dfd9c8;
  background: linear-gradient(135deg, #fbfaf6, #fff);
}

.daily-today-status > div:first-child {
  display: grid;
  gap: 5px;
}

.daily-today-status strong {
  font-size: 22px;
}

.daily-today-status p,
.daily-auto-report p,
.daily-focus-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.daily-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-bottom: 14px;
}

.daily-focus-grid strong {
  font-size: 17px;
}

.daily-change-reason,
.daily-campaign-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #6a5628;
  background: #fff8e7;
}

.daily-campaign-banner {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  color: #763f35;
  background: #fff3ef;
}

.daily-status-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
}

.daily-status-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.daily-status-form input,
.daily-status-form select {
  width: 100%;
}

.daily-simple-hero {
  display: grid;
  gap: 12px;
}

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

.daily-quantity-line span {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  padding: 9px 13px;
  border: 1px solid #cce2d8;
  border-radius: 999px;
  color: #285947;
  background: #f3faf7;
}

.daily-quantity-line strong {
  font-size: 22px;
}

.daily-quantity-line em {
  color: var(--muted);
  font-style: normal;
}

.daily-channel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: start;
}

.daily-channel-card {
  display: grid;
  gap: 16px;
}

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

.daily-channel-head > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.daily-channel-head h2,
.daily-channel-head p {
  margin: 0;
}

.daily-channel-head > strong {
  color: var(--primary);
  font-size: 21px;
}

.daily-channel-tip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b6258;
  background: #f4f8f6;
  line-height: 1.65;
}

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

.daily-wechat-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.daily-wechat-filter select {
  width: 100%;
}

.daily-wechat-filter .button {
  grid-column: 1 / -1;
}

.daily-copy-stack {
  display: grid;
  gap: 10px;
}

.daily-copy-stack article {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #dfe8e4;
  border-radius: 15px;
  background: #fbfdfc;
}

.daily-copy-stack span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.daily-copy-stack p {
  margin: 0;
  color: #334a40;
  line-height: 1.75;
}

.daily-copy-stack .tiny-button {
  justify-self: start;
}

.daily-channel-result {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.daily-channel-result > span {
  color: var(--muted);
  font-size: 13px;
}

.daily-channel-result > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.daily-phone-summary span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.daily-phone-summary strong {
  color: #263d34;
  font-size: 19px;
}

.daily-phone-list {
  display: grid;
  gap: 8px;
}

.daily-phone-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f2;
}

.daily-phone-row > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--primary);
  background: #edf6f3;
  font-size: 11px;
  font-weight: 800;
}

.daily-phone-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.daily-phone-row small,
.daily-channel-empty span,
.owner-topic-panel small {
  color: var(--muted);
  line-height: 1.55;
}

.daily-channel-empty,
.daily-channel-paused {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #d5dde2;
  border-radius: 15px;
  background: #fafbfc;
}

.daily-channel-paused p {
  margin: 0;
  color: var(--muted);
}

.owner-yesterday-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.owner-review-list > article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.owner-review-person {
  display: grid;
  align-content: start;
  gap: 5px;
}

.owner-review-person span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.owner-review-person strong {
  font-size: 19px;
}

.owner-review-person em {
  color: #65756e;
  font-size: 12px;
  font-style: normal;
}

.owner-review-copy {
  display: grid;
  gap: 5px;
}

.owner-review-copy p,
.owner-topic-summary {
  margin: 0;
  color: #3c5047;
  line-height: 1.7;
}

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

.assistant-op-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid #dce6e1;
  border-radius: 14px;
  background: #f8fbf9;
}

.assistant-op-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.assistant-op-card strong {
  color: #233b31;
  font-size: 14px;
}

.assistant-op-card span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #267052;
  background: #e7f5ee;
  font-size: 11px;
  font-weight: 800;
}

.assistant-op-card p,
.assistant-op-card blockquote {
  margin: 0;
  color: #53675e;
  font-size: 12px;
  line-height: 1.6;
}

.assistant-op-card blockquote {
  padding-left: 8px;
  border-left: 2px solid #9bc8b4;
}

.assistant-op-card > .assistant-op-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 7px;
}

.assistant-op-metrics > div {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #eef5f1;
}

.assistant-op-metrics small {
  color: #6b7e75;
  font-size: 10px;
}

.assistant-op-metrics strong {
  color: #1f4938;
  font-size: 15px;
}

.assistant-op-card > .assistant-op-records {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.assistant-op-records > small {
  color: #65786f;
  font-size: 11px;
  font-weight: 800;
}

.assistant-op-records ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.assistant-op-records li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}

.assistant-op-records li span {
  padding: 2px 6px;
  font-size: 10px;
}

.assistant-op-records li strong {
  color: #344a40;
  font-size: 12px;
  line-height: 1.55;
}

.assistant-op-records em {
  color: #73857c;
  font-size: 11px;
  font-style: normal;
}

.assistant-op-card.is-unreported {
  border-color: #eadfd2;
  background: #fffaf5;
}

.assistant-op-card.is-unreported span {
  color: #986437;
  background: #f8ebdc;
}

.owner-assistant-ops > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.owner-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.owner-topic-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #265b48;
  background: #edf7f2;
  font-weight: 800;
}

.owner-topic-tags span.is-empty {
  color: var(--muted);
  background: #f2f4f5;
}

.owner-topic-panel small {
  display: block;
  margin-top: 10px;
}

@media (max-width: 1180px) {
  .daily-result-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .daily-member-grid {
    grid-template-columns: 1fr;
  }

  .daily-channel-grid {
    grid-template-columns: 1fr;
  }

  .owner-yesterday-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .owner-assistant-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .daily-result-metrics,
  .daily-review-grid,
  .daily-report-grid,
  .daily-focus-grid,
  .daily-status-form {
    grid-template-columns: 1fr;
  }

  .daily-wechat-filter,
  .daily-phone-summary,
  .owner-yesterday-metrics {
    grid-template-columns: 1fr;
  }

  .owner-review-list > article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .owner-assistant-ops-grid {
    grid-template-columns: 1fr;
  }

  .daily-phone-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .daily-phone-row > .tiny-button,
  .daily-phone-row > .call-button {
    grid-column: 2;
    justify-self: start;
  }

  .daily-today-status {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-today-status .form-actions,
  .daily-focus-panel .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .daily-task-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .daily-task-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .daily-task-actions .tiny-button {
    width: 100%;
    white-space: normal;
  }
}

.app-update-notice {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.app-update-card {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  color: #172033;
}

.app-update-card > span {
  color: #0786a3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.app-update-card strong {
  font-size: 22px;
  line-height: 1.4;
}

.app-update-card p {
  margin: 0;
  color: #5b677c;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  border: 0;
  cursor: pointer;
}

.login-screen {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 96, 56, 0.28), transparent 320px),
    radial-gradient(circle at 82% 14%, rgba(111, 92, 255, 0.2), transparent 360px),
    linear-gradient(135deg, #0f1726 0%, #111b2f 48%, #f5f7fb 48%, #eef3f9 100%);
  padding: 28px;
}

body.is-logged-in .login-screen {
  display: none;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 390px;
  width: min(1060px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 34px 80px rgba(12, 18, 32, 0.24);
  backdrop-filter: blur(18px);
}

.login-hero {
  min-height: 560px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(239, 96, 56, 0.2), rgba(217, 77, 40, 0.1)),
    #111827;
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: #ffffff;
  padding: 42px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand span {
  margin-top: 3px;
  color: #9fb0c8;
  font-size: 12px;
}

.login-hero h1 {
  max-width: 560px;
  margin: 82px 0 18px;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.12;
}

.login-hero p {
  max-width: 560px;
  margin-bottom: 0;
  color: #bfd0e6;
  font-size: 16px;
  line-height: 1.75;
}

.login-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 76px;
}

.login-proof article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
}

.login-proof strong,
.login-proof span {
  display: block;
}

.login-proof strong {
  font-size: 28px;
}

.login-proof span {
  margin-top: 5px;
  color: #9fb0c8;
  font-size: 12px;
}

.login-card {
  display: grid;
  align-content: center;
  gap: 14px;
  background: #ffffff;
  padding: 42px;
}

.login-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: #465466;
  font-size: 13px;
}

.login-tip {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.login-tip.is-error {
  color: var(--red);
}

.login-help-button {
  width: max-content;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  padding: 0;
}

.login-help-note {
  margin: -6px 0 0;
  border-left: 3px solid var(--cyan);
  background: var(--cyan-weak);
  color: #685a52;
  font-size: 12px;
  line-height: 1.55;
  padding: 8px 10px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid #0b1220;
  background:
    linear-gradient(180deg, rgba(239, 96, 56, 0.14), rgba(16, 24, 39, 0) 220px),
    var(--nav);
  padding: 18px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 18px;
  border-bottom: 1px solid var(--nav-line);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.95), rgba(217, 77, 40, 0.95));
  box-shadow: 0 12px 24px rgba(239, 96, 56, 0.18);
  color: #fff;
  font-size: 20px;
  font-weight: 760;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: #ffffff;
}

.brand span {
  margin-top: 3px;
  color: #95a3b8;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.nav-owner,
.nav-sales,
.nav-operations {
  display: none;
}

.role-owner .nav-owner,
.role-sales .nav-sales,
.role-operations .nav-operations {
  display: block;
}

.role-sales .nav-commercial-sales {
  display: none !important;
}

.role-sales.has-commercial-access .nav-commercial-sales {
  display: flex !important;
}

.nav-label {
  margin: 10px 8px 2px;
  color: #687789;
  font-size: 10px;
  font-weight: 760;
}

.nav-item {
  min-height: 34px;
  border-radius: 7px;
  background: transparent;
  color: #aab6c8;
  font-size: 13px;
  text-align: left;
  padding: 7px 10px;
  line-height: 1.25;
  white-space: normal;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 650;
}

.nav-item.active {
  box-shadow:
    inset 3px 0 0 var(--cyan),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

.side-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 13px;
}

.side-label {
  display: block;
  margin-bottom: 7px;
  color: #95a3b8;
  font-size: 12px;
}

.side-card strong {
  display: block;
  color: #ffffff;
  line-height: 1.45;
}

.main {
  min-width: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(226, 137, 36, 0.11), transparent 340px),
    radial-gradient(circle at 88% 8%, rgba(239, 96, 56, 0.07), transparent 320px),
    var(--surface);
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

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

h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 29px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 7px;
  font-size: 15px;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.global-search-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 390px;
}

.search {
  display: grid;
  gap: 6px;
  min-width: 280px;
}

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

.global-search-wrap .search {
  min-width: 0;
}

.search-button {
  min-height: 39px;
}

.global-search-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(560px, 92vw);
  max-height: min(68vh, 620px);
  overflow: auto;
  gap: 10px;
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(18, 24, 38, 0.16);
  padding: 12px;
}

.global-search-results[hidden] {
  display: none;
}

.global-search-section {
  display: grid;
  gap: 7px;
}

.global-search-section > strong {
  color: #744231;
  font-size: 13px;
}

.global-search-section p {
  margin: 0;
  border: 1px dashed #d8e7f5;
  border-radius: 8px;
  color: var(--muted);
  padding: 10px;
}

.global-search-result {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  background: #fbfaf7;
  color: #263449;
  padding: 10px;
  text-align: left;
}

.global-search-result:hover {
  border-color: rgba(239, 96, 56, 0.45);
  background: #fffaf7;
}

.global-search-result span,
.global-search-result em {
  overflow-wrap: anywhere;
}

.global-search-result span {
  font-weight: 800;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d4d0c6;
  border-radius: 7px;
  background: #fffefb;
  color: var(--ink);
  padding: 9px 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 93, 82, 0.12);
  outline: none;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.voice-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.voice-input-button.is-recording {
  background: #b42318;
}

.voice-input-status {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.button {
  min-height: 39px;
  border-radius: 7px;
  padding: 0 14px;
  white-space: nowrap;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 10px 20px rgba(217, 77, 40, 0.18);
}

.button.secondary {
  background: #e9eef6;
  color: var(--ink);
}

.button.ghost {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #465466;
}

.button.full {
  width: 100%;
}

.tiny-button {
  display: inline-grid;
  place-items: center;
  min-height: 31px;
  border-radius: 6px;
  background: #172033;
  color: #fff;
  padding: 0 10px;
  text-decoration: none;
  white-space: nowrap;
}

.tiny-button.disabled {
  cursor: not-allowed;
  background: #edf2f8;
  color: #8a98aa;
}

.tiny-button.light {
  background: #f2eee8;
  color: #a6452b;
}

.tiny-button.success {
  background: #0f7a4f;
  color: #ffffff;
}

.tiny-button.danger {
  background: #b42318;
  color: #ffffff;
}

.tiny-button.warning {
  background: #fff0d6;
  color: #8a4b00;
}

.call-button {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
}

.public-pool-pending-panel {
  margin-top: 14px;
  border-color: rgba(226, 137, 36, 0.34);
}

.public-pool-call-note {
  margin-bottom: 2px;
}

.public-pool-call-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.public-pool-call-results legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: #526174;
  font-size: 13px;
  font-weight: 750;
}

.password-card .public-pool-call-results label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fbfaf7;
  color: #2d4057;
  cursor: pointer;
  padding: 9px 10px;
}

.public-pool-call-results label:has(input:checked) {
  border-color: #1d6ea8;
  background: #eaf5ff;
  color: #0f4d7a;
  font-weight: 800;
}

.public-pool-call-results input,
.public-pool-call-next input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #176c9a;
}

.password-card .public-pool-call-next {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #465a70;
}

.sales-daily-activation-entry {
  margin-bottom: 16px;
  border-color: rgba(239, 96, 56, 0.3);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.08), rgba(217, 77, 40, 0.04)),
    #ffffff;
}

.wechat-activation-plan {
  margin-top: 14px;
  border-color: rgba(239, 96, 56, 0.24);
}

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

.wechat-activation-audience article {
  border: 1px solid #dce8f3;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px;
}

.wechat-activation-audience span,
.wechat-copy-card > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.wechat-activation-audience strong {
  display: block;
  margin-bottom: 7px;
  color: #163b64;
  font-size: 17px;
}

.wechat-activation-audience p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.6;
}

.wechat-copy-card {
  border: 1px solid rgba(217, 77, 40, 0.24);
  border-radius: 10px;
  background: #f4f8ff;
  padding: 16px;
}

.wechat-signal-reason {
  margin-bottom: 12px;
}

.wechat-copy-card p {
  margin: 0 0 12px;
  color: #24364d;
  font-size: 15px;
  line-height: 1.75;
}

.wechat-activation-steps {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding-left: 22px;
  color: #405164;
  line-height: 1.6;
}

.wechat-activation-metrics {
  margin: 0 0 14px;
}

.wechat-activation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.dual-activation-boundary {
  margin-top: 14px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(380px, calc(100vw - 48px));
  border: 1px solid rgba(16, 24, 39, 0.12);
  border-radius: 8px;
  background: #101827;
  box-shadow: 0 18px 46px rgba(12, 18, 32, 0.22);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.password-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: rgba(16, 24, 39, 0.42);
  padding: 20px;
}

.password-modal.show {
  display: grid;
}

.password-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  border: 1px solid rgba(16, 24, 39, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(12, 18, 32, 0.28);
  padding: 22px;
}

.password-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.password-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.account-admin-secret {
  margin-bottom: 14px;
  border: 1px solid rgba(226, 137, 36, 0.38);
  border-radius: 8px;
  background: var(--amber-weak);
  padding: 14px;
}

.account-admin-secret code {
  display: block;
  margin: 8px 0;
  color: #5a3500;
  font-size: 20px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.account-admin-secret p {
  margin: 0;
  color: #6e4a16;
  line-height: 1.55;
}

.account-admin-panels {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.account-admin-row {
  align-items: flex-start;
}

.ability-rubric-note {
  margin-bottom: 14px;
}

.ability-question-list {
  display: grid;
  gap: 12px;
}

.ability-question-card {
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px;
}

.ability-question-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ability-question-title span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #172033;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.ability-question-card p {
  margin: 9px 0 12px;
  color: #526174;
  line-height: 1.65;
}

.ability-question-answer {
  min-height: 108px;
  resize: vertical;
}

.ability-report-card {
  width: min(860px, 100%);
}

.ability-report-score {
  border-left: 4px solid var(--cyan);
  background: var(--cyan-weak);
  padding: 14px;
}

.ability-report-score span,
.ability-report-score strong {
  display: block;
}

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

.ability-report-score strong {
  margin: 4px 0;
  color: #075f70;
  font-size: 28px;
}

.ability-report-score p,
.ability-report-standard p,
.ability-report-standard small {
  margin: 0;
  line-height: 1.6;
}

.ability-report-standard,
.ability-report-input,
.ability-report-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.ability-report-standard small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.ability-report-input summary {
  cursor: pointer;
  font-weight: 750;
}

.ability-report-input pre {
  overflow-x: auto;
  border-radius: 6px;
  background: #f6f8fb;
  font-family: inherit;
  line-height: 1.6;
  padding: 10px;
  white-space: pre-wrap;
}

.ability-report-sections {
  display: grid;
  gap: 16px;
}

.ability-report-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.ability-report-section p,
.ability-report-section ul {
  line-height: 1.65;
}

.edit-modal {
  overflow-y: auto;
  align-items: start;
}

.edit-card {
  width: min(760px, 100%);
  margin: 20px 0;
}

.edit-form-grid textarea {
  min-height: 92px;
}

.client-history-panel {
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 12px;
}

.client-history-panel > strong {
  display: block;
  color: #102136;
  font-size: 14px;
  margin-bottom: 8px;
}

.client-history-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.client-history-list {
  display: grid;
  gap: 9px;
  max-height: 420px;
  overflow: auto;
}

.client-history-list article {
  border: 1px solid #e5edf6;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.client-history-list article > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.client-history-list span {
  color: #0d6fbd;
  font-size: 12px;
  font-weight: 800;
}

.client-history-list b {
  color: #223047;
  font-size: 13px;
}

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

.client-history-list p {
  margin: 4px 0 0;
  color: #344258;
  font-size: 13px;
  line-height: 1.55;
}

.client-history-list details {
  margin-top: 7px;
}

.client-history-list summary {
  cursor: pointer;
  color: #0d6fbd;
  font-size: 12px;
  font-weight: 800;
}

.client-history-list pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0 0;
  border-radius: 8px;
  background: #f6f8fb;
  padding: 10px;
  color: #243044;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.showing-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.showing-photo-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #dce7f4;
  border-radius: 6px;
  background: #f4f7fa;
}

.showing-photo-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.showing-form-grid .upload-field {
  border-top: 1px solid #e5edf6;
  padding-top: 12px;
}

.view {
  display: none;
}

.hidden {
  display: none !important;
}

.view.active {
  display: block;
}

.feature-page {
  display: none;
}

.view.feature-page.active {
  display: block;
}

.feature-hero {
  margin-bottom: 16px;
  border: 1px solid rgba(219, 227, 239, 0.88);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.12), rgba(217, 77, 40, 0.08)),
    #ffffff;
  padding: 22px;
}

.feature-hero h2 {
  margin: 5px 0 8px;
  font-size: 28px;
}

.feature-hero p:last-child {
  max-width: 780px;
  margin: 0;
  color: #526174;
  line-height: 1.7;
}

.compact-hero {
  padding: 18px 20px;
}

.compact-hero h2 {
  font-size: 24px;
}

.compact-hero p:last-child {
  line-height: 1.55;
}

.ai-hero {
  border-color: rgba(239, 96, 56, 0.24);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.14), rgba(217, 77, 40, 0.09)),
    linear-gradient(90deg, rgba(18, 24, 38, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 28px 28px, auto;
}

.ai-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ai-status-strip span {
  border: 1px solid rgba(239, 96, 56, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0d6fbd;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 10px;
}

.ai-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.free-ai-workbench {
  display: block;
}

.free-ai-conversation-panel {
  display: grid;
  gap: 16px;
}

.free-ai-composer {
  border: 1px solid rgba(239, 96, 56, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.08), rgba(217, 77, 40, 0.05)),
    #fbfaf7;
  padding: 16px;
}

.free-ai-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.free-ai-composer-head h3 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 18px;
}

.free-ai-composer textarea {
  min-height: 116px;
}

.free-ai-composer .form-actions {
  justify-content: flex-end;
}

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

.diagnosis-guide-panel {
  margin-top: 14px;
}

.diagnosis-entry-panel {
  margin-bottom: 14px;
}

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

.diagnosis-path.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.diagnosis-path article {
  border: 1px solid rgba(239, 96, 56, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.07), rgba(217, 77, 40, 0.04)),
    #ffffff;
  padding: 13px;
}

.diagnosis-path span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #172033;
  color: #ffffff;
  font-weight: 800;
}

.diagnosis-path strong {
  display: block;
  margin: 9px 0 6px;
}

.diagnosis-path p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.training-workbench {
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.ai-form-panel,
.ai-output-panel {
  border-color: rgba(239, 96, 56, 0.2);
}

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

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

.ai-form-grid label,
.lead-form-grid label,
.model-picker {
  display: grid;
  gap: 7px;
  color: #465466;
  font-size: 13px;
}

.ai-form-grid .wide,
.lead-form-grid .wide,
.model-picker,
.upload-field {
  grid-column: 1 / -1;
}

.lead-create-note {
  margin-top: 14px;
}

.model-picker,
.upload-field {
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.08), rgba(217, 77, 40, 0.04)),
    #fbfaf7;
  padding: 12px;
}

.upload-field {
  border-style: dashed;
}

.upload-field input {
  border-color: rgba(239, 96, 56, 0.24);
  background: #ffffff;
}

.upload-field input[type="file"] {
  border: 1px solid rgba(239, 96, 56, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  min-height: 44px;
  padding: 10px;
  width: 100%;
}

.upload-field input[type="file"]::file-selector-button {
  background: #0f8b8d;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
  padding: 9px 12px;
}

.native-upload-trigger {
  align-items: center;
  background: #0f8b8d;
  border: 1px solid #0f8b8d;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 38px;
  padding: 9px 14px;
  width: fit-content;
}

.upload-field .native-upload-trigger {
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  gap: 0;
}

.native-upload-trigger:active {
  transform: translateY(1px);
}

.paste-upload-zone {
  border: 1px dashed rgba(239, 96, 56, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #245064;
  cursor: text;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
}

.paste-upload-zone:focus {
  border-color: #ef6038;
  box-shadow: 0 0 0 3px rgba(239, 96, 56, 0.14);
  outline: none;
}

.paste-upload-zone.is-dragging {
  background: rgba(239, 96, 56, 0.1);
  border-color: #ef6038;
  color: #0b6f7d;
}

.upload-file-summary {
  color: #0f8b8d;
  font-size: 12px;
  line-height: 1.45;
}

.model-picker em,
.upload-field em,
.ai-form-grid label em,
.lead-form-grid label em {
  color: #6b7788;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.diagnosis-quick-note {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(239, 96, 56, 0.22);
  border-radius: 10px;
  background: #fffaf7;
  padding: 12px;
  color: #405164;
}

.diagnosis-quick-note strong {
  color: #744231;
}

.diagnosis-quick-note span {
  line-height: 1.55;
}

.diagnosis-advanced {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 0;
}

.diagnosis-advanced summary {
  cursor: pointer;
  padding: 12px;
  color: #744231;
  font-weight: 800;
}

.diagnosis-inline-title {
  padding: 12px;
  color: #744231;
  font-weight: 800;
}

.diagnosis-advanced-grid {
  border-top: 1px solid #e6eef8;
  padding: 12px;
}

.customer-overview-panel {
  margin-top: 14px;
}

.customer-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.55fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.customer-filter-search,
.customer-sort-select,
.customer-advanced-filter label {
  display: grid;
  gap: 7px;
  color: #465466;
  font-size: 13px;
}

.customer-advanced-filter {
  position: relative;
  align-self: end;
}

.customer-advanced-filter summary {
  display: grid;
  min-height: 39px;
  align-content: center;
  border: 1px solid #d4d0c6;
  border-radius: 7px;
  background: #fffefb;
  color: #263449;
  cursor: pointer;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.customer-filter-grid {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  width: min(520px, 90vw);
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(18, 24, 38, 0.14);
  padding: 12px;
}

.filter-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.level-standards {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid rgba(217, 77, 40, 0.18);
  border-radius: 10px;
  background: #f7faff;
  padding: 12px;
}

.level-standards strong {
  color: #744231;
}

.level-standards p {
  margin: 0;
  color: #526174;
  font-size: 12px;
  line-height: 1.6;
}

.customer-project-note {
  margin-top: 12px;
}

.customer-pool-panel {
  margin-top: 14px;
}

.customer-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.customer-pool-grid article,
.customer-pool-card {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px;
}

.customer-pool-card {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.customer-pool-card:hover,
.customer-pool-card.active {
  border-color: rgba(239, 96, 56, 0.42);
  background: #f7fcfd;
  box-shadow: 0 14px 28px rgba(239, 96, 56, 0.12);
}

.customer-pool-grid span {
  display: block;
  margin-bottom: 8px;
  color: #687789;
  font-size: 12px;
  font-weight: 800;
}

.customer-pool-grid strong {
  display: block;
  color: #101827;
  font-size: 28px;
  line-height: 1;
}

.customer-pool-grid p {
  margin: 10px 0 0;
  color: #5f6f80;
  line-height: 1.55;
}

.customer-overview-table {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.customer-overview-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(5, minmax(135px, 0.8fr)) auto;
  gap: 10px;
  align-items: stretch;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 12px;
}

.customer-overview-row.is-focus-next {
  border-color: rgba(13, 111, 189, 0.72);
  box-shadow: 0 0 0 3px rgba(13, 111, 189, 0.12);
}

.customer-overview-row > div {
  border-right: 1px solid #edf2f8;
  padding-right: 10px;
}

.customer-overview-row > div:last-child,
.customer-overview-row > div.wide {
  border-right: 0;
}

.customer-overview-row .wide {
  grid-column: span 3;
}

.customer-overview-row span {
  display: block;
  margin-bottom: 5px;
  color: #687789;
  font-size: 12px;
  font-weight: 750;
}

.customer-overview-row strong {
  display: block;
  color: #263449;
  font-size: 13px;
  line-height: 1.45;
}

.customer-main-cell strong {
  color: #101827;
  font-size: 15px;
}

.customer-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
  align-items: center;
}

.customer-overview-empty {
  border: 1px dashed #d8e7f5;
  border-radius: 10px;
  background: #fbfaf7;
  color: #687789;
  padding: 16px;
}

.rule-candidate-panel {
  display: grid;
  gap: 14px;
}

.rule-candidate-metrics {
  margin-top: 0;
}

.rule-candidate-list {
  display: grid;
  gap: 12px;
}

.rule-candidate-card {
  display: grid;
  gap: 12px;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px;
}

.rule-candidate-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 14px;
  align-items: start;
}

.rule-candidate-main h3 {
  margin: 8px 0 6px;
  color: #172033;
  font-size: 17px;
  line-height: 1.35;
}

.rule-candidate-main p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.rule-candidate-meta {
  display: grid;
  gap: 7px;
  border-left: 1px solid #edf2f8;
  padding-left: 12px;
  color: #5f6f80;
  font-size: 12px;
  line-height: 1.45;
}

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

.rule-candidate-tags em {
  border-radius: 999px;
  background: #f2eee8;
  color: #a6452b;
  font-size: 12px;
  font-style: normal;
  padding: 4px 8px;
}

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

.rule-candidate-grid > div {
  border: 1px solid #e7eef7;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.rule-candidate-grid span {
  display: block;
  margin-bottom: 5px;
  color: #687789;
  font-size: 12px;
  font-weight: 750;
}

.rule-candidate-grid strong {
  display: block;
  color: #263449;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.rule-candidate-details {
  border: 1px solid #e7eef7;
  border-radius: 8px;
  background: #ffffff;
  padding: 0;
}

.rule-candidate-details summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #744231;
  font-weight: 800;
}

.rule-candidate-details ul,
.rule-candidate-package {
  border-top: 1px solid #edf2f8;
  margin: 0;
  padding: 12px 18px;
  color: #405164;
  line-height: 1.65;
}

.rule-candidate-package {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.rule-candidate-package h3 {
  margin: 4px 0 0;
  font-size: 14px;
  color: #0d6fbd;
}

.rule-candidate-package p {
  margin: 0;
}

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

.commission-table {
  display: grid;
  gap: 10px;
}

.commission-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 1fr 1fr 0.8fr;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
}

.commission-row div,
.commission-preview-grid div {
  min-width: 0;
}

.commission-row span,
.commission-preview-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.commission-row strong,
.commission-preview-grid strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.commission-preview-grid {
  margin-top: 14px;
}

.safety-start-panel {
  margin-bottom: 14px;
}

.safety-context-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.compact-actions {
  align-items: center;
  margin-top: 8px;
}

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

.ai-result-card {
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 13px;
}

.ai-result-card span {
  display: block;
  margin-bottom: 7px;
  color: #0d6fbd;
  font-size: 12px;
  font-weight: 800;
}

.ai-result-card p,
.ai-result-body p {
  margin: 0;
  color: #243044;
  font-size: 14px;
  line-height: 1.72;
}

.ai-result-body {
  display: grid;
  gap: 8px;
  color: #243044;
  font-size: 14px;
  line-height: 1.72;
}

.ai-feedback-card textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  color: #243044;
  background: #ffffff;
}

.ai-result-body h3 {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  border-radius: 6px;
  background: #f7e6df;
  color: #0b7280;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.35;
}

.ai-result-body strong {
  color: #101827;
  font-weight: 800;
}

.ai-result-body ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.safety-internal-card {
  background: #f8fafc;
  border-style: dashed;
}

.safety-internal-card details {
  display: grid;
  gap: 10px;
}

.safety-internal-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.safety-internal-card summary::-webkit-details-marker {
  display: none;
}

.safety-internal-card summary span {
  margin: 0;
}

.safety-internal-card summary em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.safety-report-history {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.safety-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

.safety-history-head strong {
  color: #172033;
  font-size: 13px;
}

.safety-history-list {
  display: grid;
  gap: 8px;
}

.safety-history-list button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.safety-history-list button:hover {
  border-color: #0d6fbd;
  background: #f7fbff;
}

.safety-history-list span {
  font-size: 13px;
  font-weight: 800;
}

.safety-history-list em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.ai-result-body code {
  border-radius: 4px;
  background: #eef3f9;
  padding: 1px 4px;
  color: #0f5f68;
}

.ai-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #ddd8cf;
  border-radius: 8px;
  background: #ffffff;
}

.ai-result-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 13px;
  line-height: 1.55;
}

.ai-result-body th,
.ai-result-body td {
  border-bottom: 1px solid #e6edf6;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.ai-result-body th {
  background: #f4f8fc;
  color: #243044;
  font-weight: 800;
}

.ai-result-body tr:last-child td {
  border-bottom: 0;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

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

.commercial-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  background: #fff5ef;
  padding: 10px 12px;
}

.commercial-list-heading strong {
  color: #8a3b21;
}

.commercial-list-heading span {
  color: #8a6a5e;
  font-size: 12px;
  text-align: right;
}

.commercial-list-heading.closed {
  margin-top: 14px;
  border-left-color: #9aa5b1;
  background: #f2f4f6;
}

.commercial-list-heading.closed strong,
.commercial-list-heading.closed span {
  color: #687077;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 13px;
}

.feature-row strong,
.feature-row span {
  display: block;
}

.feature-row small {
  display: block;
  margin-top: 7px;
  color: #8a98aa;
  font-size: 12px;
  line-height: 1.45;
}

.feature-row span {
  margin-top: 5px;
  color: #687789;
  line-height: 1.5;
}

.feature-row em {
  flex: 0 0 auto;
  max-width: 260px;
  border-radius: 999px;
  background: #eff5ff;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.4;
  padding: 6px 9px;
  text-align: right;
  white-space: normal;
}

.feature-row-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 420px;
}

.team-showing-row {
  align-items: flex-start;
}

.team-showing-main {
  min-width: 0;
  width: 100%;
}

.team-showing-client-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.team-showing-client-details span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf7;
  color: #31363b;
  font-size: 12px;
  padding: 7px 8px;
  overflow-wrap: anywhere;
}

.team-showing-client-details b {
  display: block;
  margin-bottom: 3px;
  color: #a6452b;
  font-size: 11px;
}

.triage-row {
  align-items: flex-start;
}

.triage-output {
  margin-top: 12px;
}

.source-panel,
.weekly-content-output {
  margin-top: 14px;
}

.radar-hero {
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.1), rgba(226, 137, 36, 0.08)),
    #ffffff;
}

.radar-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.radar-source-links a {
  border: 1px solid rgba(239, 96, 56, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0d6fbd;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 10px;
  text-decoration: none;
}

.radar-section {
  margin-top: 14px;
}

.radar-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.radar-dense-list,
.radar-compact-list,
.radar-text-list {
  display: grid;
  gap: 10px;
}

.radar-dense-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radar-dense-list article,
.radar-compact-list article,
.radar-text-list p {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.radar-dense-list span,
.radar-compact-list span,
.radar-dense-list strong,
.radar-compact-list strong,
.radar-dense-list p,
.radar-compact-list p {
  display: block;
}

.radar-dense-list span,
.radar-compact-list span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.radar-dense-list strong,
.radar-compact-list strong {
  margin-bottom: 7px;
  color: #172033;
}

.radar-dense-list p,
.radar-compact-list p,
.radar-text-list p {
  margin: 6px 0 0;
  color: #526174;
  line-height: 1.62;
}

.radar-text-list p {
  margin: 0;
}

.sales-hot-radar-list {
  display: grid;
  gap: 12px;
}

.sales-hot-radar-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.sales-hot-radar-list span,
.sales-hot-radar-list strong,
.sales-hot-radar-list p {
  display: block;
}

.sales-hot-radar-list span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.sales-hot-radar-list strong {
  margin-bottom: 7px;
}

.sales-hot-radar-list p {
  margin: 6px 0 0;
  color: #526174;
  line-height: 1.62;
}

.sales-hot-radar-list aside {
  border: 1px dashed rgba(239, 96, 56, 0.28);
  border-radius: 8px;
  background: rgba(239, 96, 56, 0.055);
  padding: 12px;
}

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

.source-grid article {
  border: 1px solid #ddd8cf;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px;
}

.source-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.source-grid strong {
  display: block;
  margin-bottom: 7px;
}

.source-grid p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.58;
}

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

.metric-card,
.panel {
  border: 1px solid rgba(219, 227, 239, 0.88);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(18, 24, 38, 0.07);
}

.metric-card {
  min-height: 72px;
  padding: 10px 12px;
  border-top: 3px solid var(--cyan);
}

button.metric-card {
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
}

button.metric-card:hover,
button.metric-card.active {
  border-color: rgba(239, 96, 56, 0.42);
  background: #f7fcfd;
  box-shadow: 0 18px 38px rgba(239, 96, 56, 0.13);
}

.customer-metric-grid,
.owner-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.customer-metric-card,
.owner-metric-card {
  min-height: 70px;
  border-top-width: 3px;
  padding: 10px 12px;
}

.customer-metric-card strong,
.owner-metric-card strong {
  margin: 3px 0 2px;
  font-size: 24px;
  line-height: 1.08;
}

.customer-metric-card span,
.customer-metric-card em,
.owner-metric-card span,
.owner-metric-card em {
  font-size: 12px;
}

.customer-metric-card em,
.owner-metric-card em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-card.warning {
  border-top-color: var(--amber);
}

.metric-card.success {
  border-top-color: #18a66a;
}

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

.metric-card strong {
  display: block;
  margin: 3px 0 2px;
  font-size: 24px;
  line-height: 1.08;
}

.metric-card em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel {
  padding: 16px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  background: #eef3f8;
  color: #5d6672;
  font-size: 12px;
  padding: 0 8px;
  white-space: nowrap;
}

.tag.danger {
  background: var(--red-weak);
  color: var(--red);
}

.tag.success {
  background: var(--cyan-weak);
  color: #007989;
}

.tag.warning {
  background: #fff4d6;
  color: #8a5b00;
}

.tag.tech {
  background: linear-gradient(135deg, rgba(239, 96, 56, 0.12), rgba(217, 77, 40, 0.12));
  color: #0d6fbd;
  border: 1px solid rgba(239, 96, 56, 0.22);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  margin-top: 14px;
}

.task-list,
.ai-action-list,
.rank-list,
.health-list,
.customer-list {
  display: grid;
  gap: 9px;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e3eaf4;
  border-radius: 7px;
  background: #fbfaf7;
  padding: 12px;
}

.task-row strong,
.task-row span {
  display: block;
}

.task-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.ai-side {
  border-color: rgba(239, 96, 56, 0.22);
  background:
    linear-gradient(180deg, rgba(239, 96, 56, 0.08), rgba(217, 77, 40, 0.04)),
    #ffffff;
}

.ai-action-list button {
  min-height: 42px;
  border: 1px solid #d8e7f5;
  border-radius: 7px;
  background: #ffffff;
  color: #1760aa;
  text-align: left;
  padding: 0 12px;
}

.ops-split-panel {
  border-color: rgba(239, 96, 56, 0.22);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.055), rgba(217, 77, 40, 0.035)),
    #ffffff;
  margin-bottom: 14px;
}

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

.ops-split-grid article {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px;
}

.ops-split-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.ops-split-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.ops-split-grid p {
  margin: 0 0 12px;
  color: #5f6f80;
  line-height: 1.58;
}

.ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ops-chip-row b {
  border: 1px solid #d8e7f5;
  border-radius: 999px;
  background: #ffffff;
  color: #1760aa;
  font-size: 12px;
  padding: 6px 9px;
}

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

.signal-grid,
.ops-signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 14px;
  margin-top: 14px;
}

.ops-signal-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.signal-panel {
  border-color: rgba(239, 96, 56, 0.22);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.055), rgba(255, 255, 255, 0) 48%),
    #ffffff;
}

.weekly-panel {
  border-color: rgba(226, 137, 36, 0.24);
  background:
    linear-gradient(135deg, rgba(226, 137, 36, 0.07), rgba(255, 255, 255, 0) 52%),
    #ffffff;
}

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

.hotspot-list article {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.hotspot-list span,
.hotspot-list strong,
.hotspot-list p {
  display: block;
}

.hotspot-list span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.hotspot-list p {
  margin: 6px 0 0;
  color: #5f6f80;
  line-height: 1.55;
}

.weekly-status,
.content-pipeline {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.weekly-status div,
.content-pipeline div {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 12px;
}

.weekly-status span,
.weekly-status strong,
.weekly-status em,
.content-pipeline span,
.content-pipeline strong {
  display: block;
}

.weekly-status span,
.content-pipeline span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.weekly-status em {
  margin-top: 5px;
  color: #5f6f80;
  font-style: normal;
  line-height: 1.5;
}

.content-plan-panel {
  margin-top: 14px;
  border-color: rgba(217, 77, 40, 0.2);
  background:
    linear-gradient(135deg, rgba(217, 77, 40, 0.055), rgba(239, 96, 56, 0.035)),
    #ffffff;
}

.ops-core-entry-panel {
  margin: 14px 0;
}

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

.content-plan-grid article {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px;
}

.content-plan-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.content-plan-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.content-plan-grid p {
  margin: 0 0 10px;
  color: #5f6f80;
  line-height: 1.58;
}

.content-plan-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #243044;
  line-height: 1.5;
}

.content-ops-flow-panel {
  margin-top: 14px;
  border-color: rgba(217, 77, 40, 0.2);
  background:
    linear-gradient(135deg, rgba(217, 77, 40, 0.055), rgba(239, 96, 56, 0.025)),
    #ffffff;
}

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

.content-ops-step {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  background: #ffffff;
  padding: 18px;
}

.content-ops-step-primary {
  border-color: rgba(217, 77, 40, 0.42);
  box-shadow: 0 10px 24px rgba(217, 77, 40, 0.1);
  background:
    linear-gradient(155deg, rgba(217, 77, 40, 0.1), rgba(239, 96, 56, 0.035) 55%),
    #ffffff;
}

.content-ops-step span,
.content-ops-step strong {
  display: block;
}

.content-ops-step span {
  margin-bottom: 9px;
  color: #1760aa;
  font-size: 12px;
  font-weight: 700;
}

.content-ops-step strong {
  margin-bottom: 10px;
  color: #17233a;
  font-size: 22px;
}

.content-ops-step p {
  margin: 0 0 18px;
  color: #5f6f80;
  line-height: 1.7;
}

.content-ops-step .button {
  width: 100%;
  margin-top: auto;
}

.content-ops-source-panel {
  margin-top: 14px;
}

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

.community-zero-panel {
  margin-top: 14px;
  border-color: rgba(239, 96, 56, 0.24);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.065), rgba(111, 92, 255, 0.035)),
    #ffffff;
}

.community-training-strip,
.community-action-grid,
.community-coach-grid,
.community-week-grid {
  display: grid;
  gap: 10px;
}

.community-training-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.community-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.community-coach-grid,
.community-week-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.community-training-strip article,
.community-action-grid article,
.community-coach-grid article,
.community-week-grid article {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.community-training-strip span,
.community-action-grid span,
.community-coach-grid span,
.community-week-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.community-training-strip strong,
.community-action-grid strong,
.community-coach-grid strong,
.community-week-grid strong {
  display: block;
  margin-bottom: 7px;
}

.community-training-strip p,
.community-action-grid p,
.community-coach-grid p,
.community-week-grid p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.58;
}

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

.funnel div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 36px;
  align-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #edf2f8;
  padding: 0 10px;
}

.funnel div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(239, 96, 56, 0.18), rgba(217, 77, 40, 0.16));
  content: "";
}

.funnel b,
.funnel span {
  position: relative;
  z-index: 1;
}

.rank-list div,
.health-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ece7dc;
  padding: 9px 0;
}

.rank-list div:last-child,
.health-list div:last-child {
  border-bottom: 0;
}

.rank-list span,
.health-list span {
  color: var(--muted);
}

.work-layout,
.safety-layout,
.ops-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 14px;
}

.safety-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

#safety .safety-module-panel {
  order: 1;
}

#safety .form-panel {
  order: 2;
}

#safety .safety-ai-panel {
  order: 3;
}

#safety .report-panel {
  order: 4;
}

.safety-module-panel,
.safety-ai-panel,
.safety-usage-panel {
  grid-column: 1 / -1;
}

.safety-module-panel {
  border-color: rgba(217, 77, 40, 0.2);
  background:
    linear-gradient(135deg, rgba(217, 77, 40, 0.055), rgba(239, 96, 56, 0.045)),
    #ffffff;
}

.safety-ai-panel {
  border-color: rgba(239, 96, 56, 0.24);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.075), rgba(217, 77, 40, 0.04)),
    #ffffff;
}

.safety-ai-panel.is-collapsed {
  padding-block: 14px;
}

.safety-ai-panel.is-collapsed .safety-ai-grid,
.safety-ai-panel.is-collapsed .safety-ai-actions,
.safety-ai-panel.is-collapsed .safety-ai-output {
  display: none;
}

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

.safety-ai-grid label {
  display: grid;
  gap: 6px;
  color: #465466;
  font-size: 13px;
}

.safety-ai-grid .wide {
  grid-column: 1 / -1;
}

.safety-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.safety-ai-output {
  margin-top: 14px;
}

.safety-usage-panel {
  border-color: rgba(226, 137, 36, 0.22);
  background:
    linear-gradient(135deg, rgba(226, 137, 36, 0.06), rgba(239, 96, 56, 0.035)),
    #ffffff;
}

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

.safety-usage-grid article {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.safety-usage-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.safety-usage-grid strong {
  display: block;
  margin-bottom: 7px;
}

.safety-usage-grid p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.safety-do-dont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.safety-do-dont div {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #ffffff;
  padding: 13px;
}

.safety-do-dont strong {
  display: block;
  margin-bottom: 7px;
}

.safety-do-dont p {
  margin: 0;
  color: #536476;
  line-height: 1.6;
}

.sales-tool-strip {
  margin-top: 14px;
}

.sales-radar-panel {
  margin-top: 14px;
  border-color: rgba(217, 77, 40, 0.22);
  background:
    linear-gradient(135deg, rgba(217, 77, 40, 0.055), rgba(239, 96, 56, 0.03)),
    #ffffff;
}

.sales-radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 12px;
  align-items: stretch;
}

.sales-radar-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sales-radar-list article {
  min-height: 156px;
}

.sales-radar-list em {
  display: block;
  margin-top: 10px;
  color: #0d6fbd;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.5;
}

.sales-radar-talk {
  border: 1px solid #ddd8cf;
  border-radius: 8px;
  background: #fbfaf7;
  padding: 16px;
}

.sales-radar-talk span,
.sales-radar-talk strong {
  display: block;
}

.sales-radar-talk span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-radar-talk strong {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.35;
}

.sales-radar-talk p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.68;
}

.champion-panel,
.calibration-panel,
.question-panel,
.pool-panel {
  margin-top: 14px;
}

.champion-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.champion-flow article,
.question-list article,
.pool-grid article {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.champion-flow span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #172033;
  color: #ffffff;
  font-weight: 800;
}

.champion-flow strong,
.question-list strong,
.pool-grid strong {
  display: block;
  margin: 9px 0 6px;
}

.champion-flow p,
.pool-grid p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

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

.calibration-grid label {
  display: grid;
  gap: 7px;
  color: #465466;
  font-size: 13px;
}

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

.question-list span,
.pool-grid span {
  display: block;
  color: #687789;
  font-size: 12px;
}

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

.diagnosis-overview,
.owner-client-panel,
.ops-diagnosis-panel {
  margin-top: 14px;
}

.diagnosis-role-grid,
.owner-client-grid,
.ops-diagnosis-grid {
  display: grid;
  gap: 10px;
}

.diagnosis-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-client-grid,
.ops-diagnosis-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.diagnosis-role-grid article,
.owner-client-grid article,
.ops-diagnosis-grid article {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.diagnosis-role-grid span,
.owner-client-grid span,
.ops-diagnosis-grid span {
  display: block;
  margin-bottom: 6px;
  color: #687789;
  font-size: 12px;
}

.diagnosis-role-grid strong,
.owner-client-grid strong,
.ops-diagnosis-grid strong {
  display: block;
  margin-bottom: 7px;
}

.diagnosis-role-grid p,
.owner-client-grid p,
.ops-diagnosis-grid p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.price-intel-entry {
  margin-top: 14px;
  border-color: rgba(239, 96, 56, 0.22);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.07), rgba(217, 77, 40, 0.04)),
    #ffffff;
}

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

.price-entry-grid article {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.price-entry-grid span {
  display: block;
  margin-bottom: 6px;
  color: #687789;
  font-size: 12px;
}

.price-entry-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #142234;
}

.price-entry-grid p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.price-intel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

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

.price-intel-grid label {
  display: grid;
  gap: 7px;
  color: #465466;
  font-size: 13px;
}

.price-intel-grid .wide,
.price-intel-grid .upload-field {
  grid-column: 1 / -1;
}

.price-calibration-card {
  margin-top: 16px;
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  background: #fbfaf7;
  padding: 16px;
}

.price-confirm-bar {
  margin-top: 14px;
}

.price-history-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 7px;
}

.price-history-search input {
  min-width: 0;
}

.price-history-summary {
  margin: 0 0 13px;
  color: #718094;
  font-size: 12px;
  line-height: 1.5;
}

.price-timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.price-timeline article {
  position: relative;
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px 13px 13px 16px;
}

.price-timeline article.active {
  border-color: rgba(239, 96, 56, 0.38);
  background: #fffaf7;
}

.price-timeline article h3 {
  margin: 5px 0 7px;
  color: #142234;
  font-size: 16px;
}

.price-timeline article small {
  display: block;
  margin-top: 8px;
  color: #8492a3;
  font-size: 11px;
}

.price-timeline-empty {
  border: 1px dashed #cbd8e7;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  color: #5f6f80;
}

.price-timeline-empty strong {
  display: block;
  color: #24364a;
}

.price-timeline-empty p {
  margin: 7px 0 0;
}

.price-timeline span {
  display: block;
  margin-bottom: 6px;
  color: #687789;
  font-size: 12px;
}

.price-timeline strong {
  display: block;
  margin-bottom: 6px;
}

.price-timeline p,
.price-verdict p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.price-verdict {
  margin-top: 12px;
  border: 1px solid rgba(217, 77, 40, 0.2);
  border-radius: 10px;
  background: #f4f8ff;
  padding: 13px;
}

.price-verdict span {
  display: block;
  margin-bottom: 6px;
  color: #687789;
  font-size: 12px;
}

.price-verdict strong {
  display: block;
  margin-bottom: 7px;
  color: #744231;
}

.price-archive-summary {
  border: 1px solid rgba(239, 96, 56, 0.3);
  border-radius: 10px;
  background: #f3fbfc;
  padding: 13px;
}

.price-archive-summary span,
.price-archive-summary strong {
  display: block;
  margin-bottom: 6px;
}

.price-archive-summary p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.price-archive-section {
  display: grid;
  gap: 10px;
}

.price-archive-section > h3 {
  margin: 4px 0 0;
  font-size: 15px;
}

.price-archive-details {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.price-archive-details summary {
  cursor: pointer;
  padding: 12px 13px;
  color: #193b61;
  font-weight: 700;
}

.price-base-table-wrap {
  max-height: 420px;
  overflow: auto;
  border-top: 1px solid #edf2f8;
}

.price-base-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 12px;
}

.price-base-table th,
.price-base-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf2f8;
  text-align: left;
  white-space: nowrap;
}

.price-base-table th {
  position: sticky;
  top: 0;
  background: #f6f9fc;
  color: #4a5b70;
}

.price-snapshot-grid {
  display: grid;
  gap: 9px;
  padding: 0 12px 12px;
}

.price-snapshot-grid article {
  border: 1px solid #edf2f8;
}

.price-base-import-panel {
  margin-top: 14px;
}

.price-base-import-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(260px, 1fr) auto;
  align-items: end;
  gap: 11px;
  margin-top: 14px;
}

.price-base-import-grid label {
  display: grid;
  gap: 7px;
  color: #465466;
  font-size: 13px;
}

.price-base-preview {
  margin-top: 14px;
  border: 1px dashed #cbd8e7;
  border-radius: 10px;
  padding: 14px;
  color: #5f6f80;
}

.price-base-preview > p,
.price-base-success p {
  margin: 0;
}

.price-base-preview-head,
.price-base-batches article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-base-preview-head div,
.price-base-batches article div {
  display: grid;
  gap: 4px;
}

.price-base-preview-head span,
.price-base-batches article span {
  color: #7a8898;
  font-size: 12px;
}

.price-base-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.price-base-stat-grid > span {
  border-radius: 8px;
  background: #f3f7fb;
  padding: 10px;
  text-align: center;
}

.price-base-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: #143d6b;
  font-size: 19px;
}

.price-base-warning {
  margin: 10px 0 0;
  color: #a65a16;
  line-height: 1.55;
}

.price-base-preview-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.price-base-preview-rows span {
  border-radius: 999px;
  background: #eef5fd;
  padding: 6px 9px;
  color: #3b5878;
  font-size: 12px;
}

.price-base-success strong {
  display: block;
  margin-bottom: 5px;
  color: #087a57;
}

.price-base-batches {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.price-base-batches > h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.price-base-batches article {
  border-top: 1px solid #edf2f8;
  padding-top: 9px;
}

.price-base-batches article p {
  margin: 0;
  color: #617286;
  font-size: 12px;
}

.owner-weekly-hero {
  background:
    linear-gradient(135deg, rgba(116, 66, 49, 0.1), rgba(239, 96, 56, 0.08)),
    #ffffff;
}

.owner-weekly-anchor {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  text-decoration: none;
}

.owner-control-success {
  color: #147d64;
}

.owner-control-warning {
  color: #a85d05;
}

.owner-control-danger {
  color: #b63d3d;
}

.owner-weekly-conclusion,
.owner-weekly-data-panel,
.owner-weekly-interventions {
  margin-top: 14px;
}

.owner-weekly-conclusion-list div {
  align-items: flex-start;
}

.owner-weekly-conclusion-list strong {
  line-height: 1.65;
}

.owner-weekly-metrics {
  margin-top: 14px;
}

.owner-weekly-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2eaf4;
  border-radius: 10px;
}

.owner-weekly-table {
  width: 100%;
  min-width: 1780px;
  border-collapse: collapse;
  background: #ffffff;
}

.owner-weekly-table th,
.owner-weekly-table td {
  border-bottom: 1px solid #e8eef6;
  padding: 11px 10px;
  color: #344256;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
}

.owner-weekly-table th {
  background: #f4f8fc;
  color: #536276;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.owner-weekly-table th:first-child,
.owner-weekly-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 112px;
  background: #fbfaf7;
  text-align: left;
}

.owner-weekly-table th:first-child {
  z-index: 2;
  background: #edf4fb;
}

.owner-weekly-table tr:last-child td {
  border-bottom: 0;
}

.owner-weekly-table strong,
.owner-weekly-table b,
.owner-weekly-table small {
  display: block;
}

.owner-weekly-table b {
  color: #744231;
  font-size: 15px;
}

.owner-weekly-table small {
  margin-top: 3px;
  color: #8895a6;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

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

.owner-weekly-member-card {
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #fbfaf7;
  padding: 15px;
}

.owner-weekly-member-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.owner-weekly-member-head span,
.owner-weekly-member-head strong {
  display: block;
}

.owner-weekly-member-head span {
  margin-bottom: 4px;
  color: #718096;
  font-size: 12px;
}

.owner-weekly-member-head strong {
  color: #15283f;
  font-size: 18px;
}

.owner-weekly-member-head em {
  border-radius: 999px;
  background: #fff4e6;
  color: #a45c0a;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  padding: 5px 8px;
}

.owner-weekly-member-card > p {
  margin: 8px 0 0;
  color: #566579;
  line-height: 1.62;
}

.owner-weekly-member-card > p b {
  color: #23384f;
}

.owner-weekly-next {
  border-left: 3px solid var(--cyan);
  background: #f1fafb;
  padding: 9px 10px;
}

.owner-weekly-questions {
  margin-top: 12px;
  border-top: 1px dashed #d5dfeb;
  padding-top: 10px;
}

.owner-weekly-questions summary,
.owner-weekly-counting-notes summary {
  color: #1d5e9f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.owner-weekly-questions article {
  margin-top: 8px;
  border-radius: 8px;
  background: #f5f8fc;
  padding: 9px;
}

.owner-weekly-questions article span {
  display: block;
  color: #6f7f92;
  font-size: 11px;
  font-weight: 750;
}

.owner-weekly-questions article p {
  margin: 5px 0 0;
  color: #405269;
  font-size: 12px;
  line-height: 1.55;
}

.weekly-empty-note {
  color: #8a98aa;
  font-size: 12px;
}

.owner-intervention-row {
  align-items: flex-start;
}

.owner-intervention-row em.intervention-danger {
  background: #fff0f0;
  color: #b63d3d;
}

.owner-intervention-row em.intervention-warning {
  background: #fff4e6;
  color: #a85d05;
}

.current-week-trend {
  border-color: rgba(239, 96, 56, 0.42) !important;
  background: #fffaf7 !important;
}

.content-plan-grid .owner-weekly-result-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  border-top: 1px dashed #d7e2ec;
  padding-top: 8px;
}

.owner-weekly-result-line b:nth-child(2) {
  color: #147d64;
}

.owner-weekly-counting-notes {
  margin-top: 14px;
  border-top: 1px dashed #d8e1ec;
  padding-top: 12px;
}

.owner-weekly-counting-notes ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.owner-weekly-counting-notes li {
  margin-bottom: 6px;
  color: #69788c;
  line-height: 1.55;
}

.owner-weekly-manual-intro {
  margin: -2px 0 14px;
  color: #69788c;
  line-height: 1.6;
}

.owner-weekly-manual-list {
  display: grid;
  gap: 14px;
}

.owner-weekly-manual-card {
  border: 1px solid #dce6f2;
  border-radius: 13px;
  background: #fbfaf7;
  padding: 16px;
}

.owner-weekly-manual-card.is-missing {
  border-style: dashed;
  background: #fffaf3;
}

.owner-weekly-manual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.owner-weekly-manual-head span,
.owner-weekly-manual-head strong {
  display: block;
}

.owner-weekly-manual-head span {
  color: #718096;
  font-size: 12px;
}

.owner-weekly-manual-head strong {
  margin-top: 3px;
  color: #15283f;
  font-size: 18px;
}

.owner-weekly-manual-head em {
  border-radius: 999px;
  background: #e8f8f3;
  color: #147d64;
  padding: 5px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.owner-weekly-manual-card.is-missing .owner-weekly-manual-head em {
  background: #fff0df;
  color: #a85d05;
}

.owner-weekly-manual-meta {
  margin: 8px 0 0;
  color: #7a899b;
  font-size: 12px;
}

.owner-weekly-manual-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.owner-weekly-manual-metrics > div {
  border-radius: 9px;
  background: #f0f5fb;
  padding: 10px;
}

.owner-weekly-manual-metrics span,
.owner-weekly-manual-metrics strong {
  display: block;
}

.owner-weekly-manual-metrics span {
  color: #728195;
  font-size: 11px;
}

.owner-weekly-manual-metrics strong {
  margin-top: 4px;
  color: #744231;
  font-size: 16px;
}

.owner-weekly-manual-texts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.owner-weekly-manual-text {
  border: 1px solid #e5ebf3;
  border-radius: 9px;
  background: #ffffff;
  padding: 11px;
}

.owner-weekly-manual-text span {
  display: block;
  color: #5d6f84;
  font-size: 12px;
  font-weight: 800;
}

.owner-weekly-manual-text p,
.owner-weekly-missing-tip {
  margin: 6px 0 0;
  color: #46576c;
  line-height: 1.65;
  white-space: pre-wrap;
}

.owner-weekly-missing-tip {
  color: #8b5b22;
}

.owner-weekly-content-strategy {
  margin-top: 14px;
  border-color: rgba(239, 96, 56, 0.28);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.045), rgba(255, 255, 255, 0) 46%),
    #ffffff;
}

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

.content-strategy-card {
  min-width: 0;
  border: 1px solid #dce6f2;
  border-radius: 13px;
  background: #fbfaf7;
  padding: 16px;
}

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

.content-strategy-card-head span,
.content-strategy-card-head strong {
  display: block;
}

.content-strategy-card-head span {
  color: #16818d;
  font-size: 11px;
  font-weight: 800;
}

.content-strategy-card-head strong {
  margin-top: 5px;
  color: #15283f;
  font-size: 18px;
  line-height: 1.5;
}

.content-strategy-card-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf8fa;
  color: #14737c;
  padding: 5px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.content-strategy-point {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px dashed #dce5ef;
  padding: 9px 0;
}

.content-strategy-point b {
  color: #52657a;
  font-size: 12px;
}

.content-strategy-point p,
.content-strategy-point ul {
  margin: 0;
  color: #46576c;
  font-size: 13px;
  line-height: 1.65;
}

.content-strategy-point ul {
  padding-left: 18px;
}

.content-strategy-point li + li {
  margin-top: 3px;
}

.content-strategy-point.is-judgment {
  border-top: 0;
  border-radius: 9px;
  background: #f0f8fb;
  padding: 10px;
}

.content-strategy-point.is-judgment b {
  color: #126d78;
}

.content-strategy-point.is-verify {
  border-radius: 9px;
  background: #fff9ef;
  padding: 10px;
}

.content-strategy-point.is-verify b {
  color: #986018;
}

.content-strategy-action {
  display: flex;
  gap: 8px;
  border-radius: 9px;
  background: #f3f6fa;
  margin-top: 4px;
  padding: 10px;
  color: #46576c;
  font-size: 13px;
  line-height: 1.6;
}

.content-strategy-action b {
  flex: 0 0 auto;
  color: #23384f;
}

.content-strategy-source {
  margin: 0 0 10px;
  color: #63758a;
  line-height: 1.6;
}

.content-strategy-card > small {
  display: block;
  margin-top: 11px;
  color: #7e8c9e;
  font-size: 11px;
}

.content-strategy-card > .tiny-button {
  margin-top: 11px;
}

@media (max-width: 760px) {
  .content-strategy-grid {
    grid-template-columns: 1fr;
  }

  .content-strategy-card-head,
  .content-strategy-action {
    display: grid;
  }

  .content-strategy-card-head em {
    width: fit-content;
  }

  .content-strategy-point {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.price-role-panel {
  margin-top: 14px;
}

.weekly-form-panel,
.ops-weekly-form-panel {
  margin-bottom: 14px;
  border-color: rgba(217, 77, 40, 0.2);
  background:
    linear-gradient(135deg, rgba(217, 77, 40, 0.05), rgba(255, 255, 255, 0) 48%),
    #ffffff;
}

.weekly-report-period {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid #dce7f4;
  border-radius: 11px;
  background: #f5f9fd;
  padding: 13px;
}

.weekly-report-period label {
  display: grid;
  gap: 7px;
  color: #34485f;
  font-size: 13px;
  font-weight: 750;
}

.weekly-report-period select {
  width: 100%;
}

.weekly-report-period p {
  margin: 0;
  color: #6a798b;
  font-size: 13px;
  line-height: 1.55;
}

.weekly-form-grid,
.ops-weekly-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.weekly-form-grid label,
.ops-weekly-form-grid label {
  display: grid;
  gap: 7px;
  color: #465466;
  font-size: 13px;
}

.weekly-form-grid .wide,
.ops-weekly-form-grid .wide {
  grid-column: 1 / -1;
}

.weekly-page-panel {
  padding-bottom: 18px;
}

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

.weekly-form-section {
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  background: #fbfaf7;
  padding: 16px;
}

.weekly-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.weekly-section-head > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #744231;
  color: #ffffff;
  font-weight: 800;
}

.weekly-section-head h3 {
  margin: 0 0 4px;
  color: #142234;
  font-size: 17px;
}

.weekly-section-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.weekly-section-grid {
  margin-bottom: 0;
}

.weekly-submit-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid rgba(217, 77, 40, 0.2);
  border-radius: 12px;
  background: #f4f8ff;
  padding: 14px;
}

.weekly-submit-bar strong,
.weekly-submit-bar span {
  display: block;
}

.weekly-submit-bar span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.mini-safety {
  border-color: rgba(239, 96, 56, 0.24);
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.06), rgba(217, 77, 40, 0.04)),
    #ffffff;
}

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

.mini-safety-grid article {
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.mini-safety-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.mini-safety-grid strong {
  display: block;
  margin-bottom: 7px;
}

.mini-safety-grid p {
  margin-bottom: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.diagnosis-boundary-panel {
  border-color: rgba(111, 92, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(111, 92, 255, 0.06), rgba(239, 96, 56, 0.04)),
    #ffffff;
}

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

.diagnosis-boundary-grid article {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.diagnosis-boundary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.diagnosis-boundary-grid strong {
  display: block;
  margin-bottom: 7px;
}

.diagnosis-boundary-grid p {
  margin: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.ops-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
}

.safety-tabs {
  margin-bottom: 14px;
}

.segmented button {
  min-height: 32px;
  background: #fff;
  color: #5d6672;
  padding: 0 10px;
}

.segmented button.active {
  background: #172033;
  color: #fff;
}

.customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e3eaf4;
  border-radius: 7px;
  background: #ffffff;
  padding: 12px;
}

.customer-row.selected {
  border-color: var(--cyan);
  background: #f2fbfd;
}

.customer-row strong,
.customer-row span {
  display: block;
}

.customer-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.customer-row em {
  color: var(--red);
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}

.customer-row-call {
  flex: 0 0 auto;
}

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

.detail-grid div {
  border: 1px solid #e3eaf4;
  border-radius: 7px;
  background: #fbfaf7;
  padding: 12px;
}

.detail-grid span,
.reply-box span,
.surgery-result span,
.tool-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  display: block;
}

.diagnosis-card {
  margin-top: 14px;
  border: 1px solid rgba(239, 96, 56, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 96, 56, 0.08), rgba(217, 77, 40, 0.05)),
    #ffffff;
  padding: 14px;
}

.diagnosis-card.compact {
  margin-top: 0;
}

.diagnosis-card p {
  color: #334155;
  line-height: 1.65;
}

.reply-box {
  border: 1px solid #d9e7f6;
  border-radius: 7px;
  background: #ffffff;
  padding: 12px;
}

.reply-box p {
  margin-bottom: 0;
}

.form-panel {
  align-self: start;
  border-color: rgba(217, 77, 40, 0.18);
  background:
    linear-gradient(180deg, rgba(217, 77, 40, 0.045), rgba(255, 255, 255, 0) 170px),
    #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#safety .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #465466;
  font-size: 13px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-panel .button {
  margin-top: 14px;
}

.mortgage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.mortgage-result-panel {
  align-self: start;
}

.mortgage-ring strong {
  font-size: 26px;
}

.mortgage-note-card {
  margin-top: 14px;
}

.mortgage-note-card h3 {
  margin: 0 0 8px;
}

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

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

.score-ring {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 54%, transparent 55%),
    conic-gradient(var(--cyan) 0 78%, #e4ebf5 78% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(239, 96, 56, 0.1),
    0 18px 34px rgba(239, 96, 56, 0.16);
}

.score-ring strong,
.score-ring span {
  display: block;
  text-align: center;
}

.score-ring strong {
  color: #0f6f7b;
  font-size: 34px;
}

.score-ring span {
  color: #687789;
  font-size: 12px;
}

.score-bars {
  display: grid;
  gap: 12px;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px;
}

.score-bars div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
}

.score-bars span,
.score-bars em {
  color: #526171;
  font-style: normal;
  font-size: 13px;
}

.score-bars b {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef3;
}

.score-bars b::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  content: "";
}

.surgery-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.score-commentary,
.client-check-card,
.building-safety-card {
  margin-top: 18px;
}

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

.surgery-result article,
.score-commentary article,
.tool-grid article,
.approval-grid article,
.content-board article {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.score-commentary article:first-child {
  border-color: rgba(239, 96, 56, 0.24);
  background: linear-gradient(180deg, rgba(239, 96, 56, 0.06), #ffffff);
}

.score-commentary article:nth-child(2) {
  border-color: rgba(217, 77, 40, 0.22);
  background: linear-gradient(180deg, rgba(217, 77, 40, 0.06), #ffffff);
}

.score-commentary article:nth-child(3) {
  border-color: rgba(24, 166, 106, 0.22);
  background: linear-gradient(180deg, rgba(24, 166, 106, 0.06), #ffffff);
}

.building-safety-card,
.client-check-card {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 14px;
}

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

.building-score-grid div {
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.building-score-grid span,
.building-score-grid strong,
.score-commentary span,
.score-commentary strong {
  display: block;
}

.building-score-grid strong {
  overflow-wrap: anywhere;
}

.building-score-grid span,
.score-commentary span {
  margin-bottom: 6px;
  color: #687789;
  font-size: 12px;
}

.building-safety-card > p,
.score-commentary p,
.mini-score-note p {
  margin-bottom: 0;
  color: #687789;
  line-height: 1.62;
}

.check-list {
  display: grid;
  gap: 9px;
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #ffffff;
  color: #263449;
  line-height: 1.5;
  padding: 10px;
}

.check-list input {
  flex: 0 0 auto;
  width: 16px;
  margin-top: 2px;
}

.mini-score-note {
  margin-top: 12px;
  border-left: 3px solid var(--cyan);
  background: rgba(239, 96, 56, 0.06);
  padding: 11px 12px;
}

.surgery-result article:first-child {
  border-color: rgba(216, 75, 58, 0.24);
  background: linear-gradient(180deg, rgba(216, 75, 58, 0.06), #ffffff);
}

.surgery-result article:nth-child(2) {
  border-color: rgba(239, 96, 56, 0.24);
  background: linear-gradient(180deg, rgba(239, 96, 56, 0.06), #ffffff);
}

.surgery-result article:nth-child(3) {
  border-color: rgba(226, 137, 36, 0.25);
  background: linear-gradient(180deg, rgba(226, 137, 36, 0.07), #ffffff);
}

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

.sales-action-grid article {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.sales-action-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sales-action-grid strong {
  display: block;
  margin-bottom: 7px;
}

.sales-action-grid p {
  margin-bottom: 0;
  color: #5f6f80;
  line-height: 1.55;
}

.ops-side {
  border-color: rgba(217, 77, 40, 0.2);
  background:
    linear-gradient(180deg, rgba(217, 77, 40, 0.06), rgba(239, 96, 56, 0.04)),
    #ffffff;
}

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

.ops-metrics article {
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #fbfaf7;
  padding: 13px;
}

.ops-metrics span,
.ops-metrics em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.ops-metrics strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 26px;
}

.ops-board {
  display: grid;
  gap: 10px;
}

.ops-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  background: #ffffff;
  padding: 13px;
}

.ops-card.urgent {
  border-color: rgba(239, 96, 56, 0.28);
  background:
    linear-gradient(90deg, rgba(239, 96, 56, 0.08), rgba(255, 255, 255, 0) 60%),
    #ffffff;
}

.ops-card span,
.ops-card strong,
.ops-card p {
  display: block;
}

.ops-card span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.ops-card p {
  margin: 6px 0 0;
  color: #5f6f80;
  line-height: 1.55;
}

.surgery-result strong {
  display: block;
  margin-bottom: 7px;
}

.surgery-result p,
.tool-grid p,
.content-board p {
  margin-bottom: 0;
  color: #5f6f80;
  line-height: 1.55;
}

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

.tool-grid article {
  display: grid;
  min-height: 176px;
  align-content: start;
  transition:
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.tool-grid article:hover {
  border-color: rgba(239, 96, 56, 0.38);
  box-shadow: 0 18px 36px rgba(18, 24, 38, 0.08);
  transform: translateY(-2px);
}

.tool-grid .tiny-button {
  align-self: end;
  justify-self: start;
  margin-top: 14px;
}

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

.approval-grid strong,
.approval-grid span,
.content-board strong {
  display: block;
}

.approval-grid span {
  margin-top: 6px;
  color: #687789;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .metric-grid,
  .three-column,
  .tool-grid,
  .approval-grid,
  .content-board,
  .champion-flow,
  .diagnosis-path,
  .calibration-grid,
  .question-list,
  .pool-grid,
  .diagnosis-role-grid,
  .safety-ai-grid,
  .safety-usage-grid,
  .safety-do-dont,
  .owner-client-grid,
  .ops-split-grid,
  .price-entry-grid,
  .customer-pool-grid,
  .community-training-strip,
  .community-action-grid,
  .community-coach-grid,
  .community-week-grid,
  .source-grid,
  .radar-dense-list,
  .radar-two-column,
  .ops-diagnosis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout,
  .signal-grid,
  .ops-signal-grid,
  .work-layout,
  .mortgage-layout,
  .safety-layout,
  .ops-layout,
  .ai-workbench,
  .feature-layout,
  .sales-radar-layout,
  .price-intel-layout {
    grid-template-columns: 1fr;
  }

  .price-base-import-grid {
    grid-template-columns: 1fr;
  }

  .price-base-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-weekly-member-grid {
    grid-template-columns: 1fr;
  }

  .owner-weekly-manual-metrics,
  .owner-weekly-manual-texts,
  .weekly-report-period {
    grid-template-columns: 1fr;
  }

  .sales-action-grid,
  .mini-safety-grid,
  .diagnosis-boundary-grid,
  .wechat-activation-audience,
  .content-ops-flow,
  .content-plan-grid,
  .customer-overview-row,
  .commission-row,
  .sales-radar-list,
  .community-training-strip,
  .community-action-grid,
  .community-coach-grid,
  .community-week-grid,
  .weekly-form-grid,
  .ops-weekly-form-grid,
  .price-intel-grid,
  .lead-form-grid,
  .ai-form-grid,
  .ops-metrics {
    grid-template-columns: 1fr;
  }

  .rule-candidate-main,
  .rule-candidate-grid {
    grid-template-columns: 1fr;
  }

  .rule-candidate-meta {
    border-left: 0;
    border-top: 1px solid #edf2f8;
    padding: 12px 0 0;
  }

  .sales-hot-radar-list article {
    grid-template-columns: 1fr;
  }

  #safety .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .public-pool-call-results {
    grid-template-columns: 1fr;
  }

  .price-history-search {
    grid-template-columns: 1fr;
  }

  .price-base-preview-head,
  .price-base-batches article {
    align-items: stretch;
    flex-direction: column;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .login-screen {
    place-items: start center;
    overflow-y: auto;
    padding: 12px;
    background:
      linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      linear-gradient(160deg, #0f1726 0%, #111b2f 42%, #eef3f9 42%, #f7f9fc 100%);
    background-size: 28px 28px, 28px 28px, auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    width: min(100%, 430px);
    max-width: 100%;
    border-radius: 14px;
  }

  .login-hero {
    min-height: auto;
    padding: 18px;
  }

  .login-brand {
    gap: 10px;
  }

  .login-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 18px;
  }

  .login-hero h1 {
    margin: 24px 0 8px;
    font-size: 24px;
    line-height: 1.2;
  }

  .login-hero p {
    font-size: 13px;
    line-height: 1.55;
  }

  .login-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .login-proof article {
    border-radius: 8px;
    padding: 9px;
  }

  .login-proof strong {
    font-size: 19px;
  }

  .login-proof span {
    font-size: 10px;
    line-height: 1.25;
  }

  .login-card {
    gap: 10px;
    padding: 18px;
  }

  .login-card h2 {
    font-size: 20px;
  }

  .login-card label {
    gap: 5px;
    font-size: 12px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 60;
    inset: auto 0 0;
    height: auto;
    max-height: none;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 30px rgba(15, 18, 22, 0.18);
  }

  .brand {
    display: none;
  }

  .brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 18px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand span {
    font-size: 11px;
  }

  .nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-top: 0;
    padding-bottom: 0;
  }

  body.role-owner .nav-owner:not(.nav-mobile-primary):not(.nav-mobile-more),
  body.role-sales .nav-sales:not(.nav-mobile-primary):not(.nav-mobile-more),
  body.role-operations .nav-operations:not(.nav-mobile-primary):not(.nav-mobile-more) {
    display: none !important;
  }

  body.role-owner .nav-owner.nav-mobile-primary,
  body.role-owner .nav-owner.nav-mobile-more,
  body.role-sales .nav-sales.nav-mobile-primary,
  body.role-sales .nav-sales.nav-mobile-more,
  body.role-operations .nav-operations.nav-mobile-primary,
  body.role-operations .nav-operations.nav-mobile-more {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .nav-label {
    display: none !important;
  }

  .nav-item {
    min-height: 52px;
    width: 100%;
    gap: 3px;
    padding: 5px 2px;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    touch-action: manipulation;
  }

  .nav-item::before {
    content: attr(data-nav-icon);
    color: #d7a35b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
  }

  .side-card {
    display: none;
  }

  .main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 18px 14px calc(82px + env(safe-area-inset-bottom));
  }

  .safety-start-actions {
    flex-direction: column;
  }

  .safety-start-actions .button,
  .diagnosis-entry-actions .button {
    width: 100%;
  }

  .topbar,
  .report-head,
  .weekly-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
  }

  .global-search-wrap {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
  }

  .top-actions .search {
    grid-column: 1 / -1;
  }

  .global-search-wrap .search {
    grid-column: auto;
  }

  .top-actions .button {
    width: 100%;
    padding: 0 10px;
  }

  .search {
    min-width: 0;
  }

  .global-search-results {
    left: 0;
    right: auto;
    width: 100%;
  }

  .customer-filter-bar {
    grid-template-columns: 1fr;
  }

  .customer-level-filter {
    width: 100%;
  }

  .metric-grid,
  .three-column,
  .detail-grid,
  .form-grid,
  .mortgage-layout,
  .surgery-result,
  .sales-action-grid,
  .mini-safety-grid,
  .diagnosis-boundary-grid,
  .content-plan-grid,
  .customer-overview-row,
  .sales-radar-list,
  .weekly-form-grid,
  .ops-weekly-form-grid,
  .ai-workbench,
  .ai-form-grid,
  .lead-form-grid,
  .ops-metrics,
  .tool-grid,
  .approval-grid,
  .content-board,
  .champion-flow,
  .diagnosis-path,
  .calibration-grid,
  .question-list,
  .pool-grid,
  .diagnosis-role-grid,
  .safety-ai-grid,
  .safety-usage-grid,
  .safety-do-dont,
  .owner-client-grid,
  .price-entry-grid,
  .customer-pool-grid,
  .price-intel-grid,
  .community-training-strip,
  .community-action-grid,
  .community-coach-grid,
  .community-week-grid,
  .source-grid,
  .radar-dense-list,
  .radar-two-column,
  .ops-diagnosis-grid {
    grid-template-columns: 1fr;
  }

  #safety .form-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .owner-metric-grid,
  .customer-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 68px;
    padding: 9px 10px;
  }

  .metric-card strong {
    font-size: 22px;
  }

  .metric-card span,
  .metric-card em {
    font-size: 11px;
  }

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

  .customer-metric-card {
    min-height: 68px;
    padding: 9px 10px;
  }

  .customer-metric-card strong {
    font-size: 22px;
  }

  .customer-overview-row .wide {
    grid-column: auto;
  }

  .team-showing-row {
    flex-direction: column;
  }

  .team-showing-client-details {
    grid-template-columns: 1fr;
  }

  .safety-ai-actions .button {
    width: 100%;
  }

  .customer-overview-row > div {
    border-right: 0;
    border-bottom: 1px solid #edf2f8;
    padding: 0 0 9px;
  }

  .customer-overview-row > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .account-admin-row {
    flex-direction: column;
    align-items: stretch;
  }

  .account-admin-row .feature-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }

  .account-admin-row .tiny-button,
  .account-admin-row .tag {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .metric-grid.daily-result-metrics,
  .daily-review-grid,
  .daily-report-grid,
  .daily-focus-grid,
  .daily-status-form {
    grid-template-columns: 1fr;
  }

  body.showing-daily-workbench .sidebar {
    gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  body.showing-daily-workbench .sidebar .brand {
    margin: 0;
  }

  body.showing-daily-workbench .sidebar .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding: 0;
    scrollbar-width: none;
  }

  body.showing-daily-workbench .sidebar .nav::-webkit-scrollbar {
    display: none;
  }

  body.showing-daily-workbench .sidebar .nav-label,
  body.showing-daily-workbench .sidebar .side-card {
    display: none;
  }

  body.showing-daily-workbench .sidebar .nav-item {
    width: 100%;
    padding: 5px 2px;
    white-space: nowrap;
  }

  body.showing-daily-workbench .topbar {
    display: none;
  }
}

/* R55：真实沟通中的人机共同回复与个人结果反馈 */
.reply-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f5f7f7;
}

.reply-mode-switch button {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  color: #53645d;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.reply-mode-switch button.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 20px rgba(18, 82, 59, 0.18);
}

.reply-collab-help {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.reply-collab-editor-card {
  border-color: #b8d8ca;
  background: #fbfffd;
}

.reply-collab-editor-card textarea,
.reply-collab-adjust textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #cfdad5;
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  line-height: 1.7;
  resize: vertical;
}

.reply-collab-adjust {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #edf6f2;
}

.reply-collab-outcome {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #dce7e2;
}

.reply-collab-outcome summary {
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.reply-collab-history-list {
  display: grid;
  gap: 10px;
}

.reply-collab-history-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.reply-collab-history-item > div {
  display: grid;
  gap: 3px;
}

.reply-collab-history-item span,
.reply-collab-history-item small,
.reply-collab-history-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.reply-collab-history-item p {
  margin: 0;
  color: #45564f;
  line-height: 1.55;
}

.reply-collab-history-item em {
  padding: 6px 9px;
  border-radius: 999px;
  color: #236147;
  background: #e9f6ef;
  font-weight: 800;
}

.daily-weekly-purpose {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 15px 17px;
  border: 1px solid #cfe1d9;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6fbf8, #edf6f2);
}

.daily-weekly-purpose > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.daily-weekly-purpose strong {
  font-size: 18px;
}

.daily-weekly-purpose p,
.daily-weekly-purpose em {
  margin: 0;
  color: #53675e;
  line-height: 1.6;
  font-style: normal;
}

.daily-weekly-purpose em {
  font-weight: 800;
}

.member-performance-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.member-performance-metrics article {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 13px;
  background: #f6f8f7;
}

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

.member-performance-metrics strong {
  color: var(--primary);
  font-size: 24px;
}

.member-week-feedback {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #edf6f2;
}

.member-week-feedback span,
.member-week-feedback p {
  margin: 0;
  color: #4b6057;
  line-height: 1.6;
}

.daily-phone-current {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #b9d7ca;
  border-radius: 16px;
  background: #f8fcfa;
}

.daily-phone-current-count {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.daily-phone-current-main {
  display: grid;
  gap: 5px;
}

.daily-phone-current-main span {
  color: var(--muted);
  font-size: 12px;
}

.daily-phone-current-main strong {
  font-size: 22px;
}

.daily-phone-current-main p {
  margin: 0;
  color: #4a5c54;
}

.daily-phone-queue-preview {
  display: grid;
  margin-top: 12px;
}

.daily-phone-queue-preview > span {
  padding: 7px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-activation-option {
  border-left: 3px solid #7daf98 !important;
}

.ai-growth-profile,
.owner-ai-member-list,
.reply-collab-outcome {
  display: grid;
  gap: 12px;
}

.ai-growth-profile {
  padding: 16px;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: #fbfdfc;
}

.ai-growth-profile.is-green,
.owner-ai-member.is-green {
  border-left: 4px solid #399668;
}

.ai-growth-profile.is-yellow,
.owner-ai-member.is-yellow {
  border-left: 4px solid #d39b2f;
}

.ai-growth-profile.is-red,
.owner-ai-member.is-red {
  border-left: 4px solid #c45b58;
}

.owner-ai-member {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid #e2e7e4;
  border-radius: 14px;
  background: #fff;
}

.owner-ai-member > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.owner-ai-member p,
.owner-ai-member small,
.daily-ai-practice p,
.monthly-ability-reminder p {
  margin: 0;
  color: #526159;
}

.owner-ai-member em {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
}

.reply-collab-outcome {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e3e8e5;
}

.reply-outcome-actions,
.reply-history-outcomes {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .member-performance-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reply-collab-history-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .reply-mode-switch,
  .member-performance-metrics {
    grid-template-columns: 1fr;
  }

  .reply-collab-editor-card .form-actions,
  .daily-phone-current .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reply-collab-editor-card .button,
  .daily-phone-current .button,
  .daily-phone-current .call-button {
    width: 100%;
  }
}

/* R87：全角色护眼暖灰设计系统。保留业务结构，只统一视觉层。 */
body.is-logged-in {
  color: var(--ink);
  background: var(--surface);
}

.sidebar {
  border-right-color: #101418;
  background:
    radial-gradient(circle at 20% 0, rgba(239, 96, 56, 0.13), transparent 220px),
    var(--nav);
  padding: 22px 14px 16px;
}

.brand {
  padding: 0 7px 22px;
}

.brand-mark,
.login-brand .brand-mark {
  border: 0;
  border-radius: 10px;
  background: #ef6038;
  box-shadow: none;
}

.brand span,
.side-label {
  color: #939da5;
}

.nav {
  gap: 4px;
  margin-top: 12px;
}

.nav-item {
  align-items: center;
  min-height: 46px;
  gap: 10px;
  border-left: 3px solid transparent;
  border-radius: 0 9px 9px 0;
  color: #adb5bb;
  padding: 7px 11px;
}

.nav-item::before {
  content: attr(data-nav-icon);
  display: grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #d7dadd;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.nav-item:hover,
.nav-item.active {
  background: #252b30;
  color: #fff;
}

.nav-item.active {
  border-left-color: #ef6038;
  background: #30231f;
  box-shadow: none;
}

.nav-item.active::before {
  background: rgba(239, 96, 56, 0.17);
  color: #ff9b7d;
}

.side-card {
  border-color: #32383d;
  border-radius: 9px;
  background: #20262b;
}

.main {
  background:
    radial-gradient(circle at 92% 0, rgba(239, 96, 56, 0.07), transparent 360px),
    var(--surface);
}

@media (min-width: 761px) {
  body.role-owner .nav-owner,
  body.role-sales .nav-sales,
  body.role-operations .nav-operations {
    display: flex;
  }

  .main {
    padding: 0;
  }

  .topbar {
    min-height: 76px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 249, 246, 0.86);
    padding: 14px 25px;
    backdrop-filter: blur(14px);
  }

  .main > .view {
    margin: 22px 25px 30px;
  }
}

.topbar {
  align-items: center;
}

.topbar .eyebrow,
.feature-hero .eyebrow,
.panel .eyebrow {
  color: #d94d28;
}

h1 {
  font-size: 25px;
  font-weight: 570;
}

h2,
h3 {
  font-weight: 570;
}

input,
select,
textarea,
.global-search-result,
.global-search-results {
  border-color: #d4cfc6;
  background: #fffefb;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ef6038;
  box-shadow: 0 0 0 3px rgba(239, 96, 56, 0.11);
}

.button.primary,
.call-button {
  background: #ef6038;
  box-shadow: 0 9px 20px rgba(217, 77, 40, 0.16);
}

.button.primary:hover,
.call-button:hover {
  background: #df522d;
}

.button.secondary {
  border: 1px solid #d4cfc6;
  background: #fff;
}

.button.ghost {
  border-color: #d4cfc6;
  background: #f7f5f0;
  color: #555d63;
}

.tiny-button {
  background: #24292e;
}

.tiny-button.light {
  background: #f2eee8;
  color: #a6452b;
}

.metric-card,
.panel,
.content-plan-grid article,
.customer-overview-row,
.feature-row,
.ai-result-card,
.daily-member-card,
.daily-task-card,
.owner-ai-member {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: none;
}

.panel {
  border-radius: 10px;
}

.metric-card {
  border-top: 0;
  border-left: 3px solid #ef6038;
  border-radius: 8px;
}

.metric-card.warning {
  border-left-color: #d97706;
  border-top-color: var(--line);
}

.metric-card.success {
  border-left-color: #32956d;
  border-top-color: var(--line);
}

button.metric-card:hover,
button.metric-card.active {
  border-color: #ef6038;
  background: #fffaf7;
  box-shadow: none;
}

.feature-hero {
  border-color: var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 0, rgba(239, 96, 56, 0.09), transparent 260px),
    #faf9f6;
}

.feature-hero p:last-child,
.panel p,
.feature-row span,
.content-plan-grid p {
  color: #687077;
}

.tag.tech,
.tag.warning,
.tag.danger,
.tag.success,
.tag {
  border: 0;
  background: #f2eee8;
  color: #6b615a;
}

.tag.danger {
  background: #f7e6df;
  color: #bd4726;
}

.tag.success {
  background: #e4f2eb;
  color: #287354;
}

.login-screen {
  background:
    radial-gradient(circle at 16% 18%, rgba(239, 96, 56, 0.2), transparent 320px),
    linear-gradient(135deg, #171c21 0%, #20262b 48%, #f0ede7 48%, #e8e4dc 100%);
}

.login-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 12%, rgba(239, 96, 56, 0.16), transparent 300px),
    #1b2025;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.login-hero p,
.login-brand span,
.login-proof span {
  color: #aeb6bc;
}

.owner-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid #d2cdc4;
  background: #d2cdc4;
  gap: 1px;
}

.owner-overview-income,
.owner-overview-focus {
  min-height: 176px;
  padding: 24px;
}

.owner-overview-income {
  position: relative;
  overflow: hidden;
  background: #20262b;
  color: #fff;
}

.owner-overview-income::after {
  content: "LX";
  position: absolute;
  right: -8px;
  bottom: -37px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 118px;
  font-weight: 600;
  letter-spacing: -0.12em;
}

.owner-overview-income span,
.owner-overview-focus span {
  color: #aeb6bc;
}

.owner-overview-income strong,
.owner-overview-focus strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.owner-overview-income p {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 15px 0 0;
  border-radius: 6px;
  background: #183027;
  color: #72d5aa;
  padding: 6px 9px;
}

.owner-overview-focus {
  background: #faf9f6;
}

.owner-overview-focus span {
  color: #747b80;
}

.owner-overview-focus strong {
  color: #ef6038;
}

.owner-overview-focus p {
  margin: 13px 0 0;
  border-left: 2px solid #ef6038;
  background: #f2eee8;
  color: #555d63;
  padding: 9px 11px;
}

.owner-overview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  background: var(--line);
}

.owner-overview-metrics .metric-card {
  min-height: 104px;
  border: 0;
  border-radius: 0;
  padding: 16px;
}

.owner-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.owner-decision-list,
.owner-execution-list {
  display: grid;
}

.owner-decision-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e7e3dc;
  padding: 15px 2px;
}

.owner-decision-list article:first-child {
  border-top: 0;
}

.owner-decision-list strong,
.owner-decision-list span,
.owner-execution-list strong,
.owner-execution-list span {
  display: block;
}

.owner-decision-list span,
.owner-execution-list span,
.owner-overview-empty span {
  margin-top: 4px;
  color: #7c8388;
  font-size: 12px;
}

.owner-execution-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  border-top: 1px solid #e7e3dc;
  padding: 13px 2px;
}

.owner-execution-list article:first-child {
  border-top: 0;
}

.owner-execution-list em {
  color: #d94d28;
  font-style: normal;
  font-weight: 700;
}

.owner-execution-track {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dedad2;
}

.owner-execution-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ef6038;
}

.owner-overview-empty {
  display: grid;
  padding: 18px 2px;
}

.owner-overview-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.owner-overview-shortcuts button {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfaf7;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.owner-overview-shortcuts button:hover {
  border-color: #ef6038;
  background: #fffaf7;
}

.owner-overview-shortcuts span {
  color: #d94d28;
  font-size: 12px;
}

.content-traffic-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.content-traffic-platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.content-traffic-platforms article {
  background: #fbfaf7;
  padding: 17px;
}

.content-traffic-platforms span,
.content-traffic-platforms strong {
  display: block;
}

.content-traffic-platforms strong {
  margin-top: 7px;
  font-size: 22px;
}

.content-traffic-platforms p,
.content-traffic-next > p {
  margin: 7px 0 0;
}

.content-traffic-next {
  margin-top: 14px;
}

.platform-integration-panel,
.platform-performance-panel {
  margin-bottom: 14px;
}

.platform-integration-note {
  margin: -2px 0 14px;
  color: var(--muted);
}

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

.platform-account-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fbfaf7;
}

.platform-account-card.is-connected {
  border-color: #b9d9c6;
  background: #f7fcf8;
}

.platform-account-card.is-stale {
  border-color: #efc49f;
  background: #fffaf4;
}

.platform-account-head,
.platform-account-facts,
.platform-content-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.platform-account-head span,
.platform-account-head strong,
.platform-content-row span,
.platform-content-row strong {
  display: block;
}

.platform-account-head span,
.platform-content-row span {
  color: var(--muted);
  font-size: 12px;
}

.platform-account-head strong {
  margin-top: 4px;
}

.platform-account-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ece8df;
  font-style: normal;
  font-size: 12px;
}

.platform-account-card.is-connected .platform-account-head em {
  color: #22633a;
  background: #dff1e5;
}

.platform-account-card.is-stale .platform-account-head em {
  color: #8a491e;
  background: #f8e6d5;
}

.platform-account-card > p,
.platform-account-card > small {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
}

.platform-account-facts {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.platform-account-facts span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f0ede6;
  font-size: 12px;
}

.platform-account-error {
  margin-top: 10px;
  border-radius: 9px;
  padding: 8px 10px;
  color: #8a3b21;
  background: #fae9e2;
  font-size: 12px;
}

.platform-account-card .feature-row-actions {
  margin-top: 14px;
}

.platform-content-list {
  border-top: 1px solid var(--line);
}

.platform-content-row {
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.platform-content-row > div {
  min-width: 220px;
  flex: 1 1 42%;
}

.platform-content-row > p {
  flex: 1 1 38%;
  margin: 0;
  color: var(--muted);
}

.platform-content-row > em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

@media (max-width: 980px) {
  .owner-overview-hero,
  .owner-overview-layout {
    grid-template-columns: 1fr;
  }

  .owner-overview-metrics,
  .content-traffic-metrics,
  .content-traffic-platforms,
  .platform-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-content-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .sidebar {
    background: #1b2025;
  }

  .nav-item {
    min-height: 55px;
    border-left: 0;
    border-radius: 9px;
  }

  .nav-item::before {
    width: auto;
    min-width: 0;
    height: auto;
    background: transparent;
    color: #d8dadd;
    font-size: 14px;
  }

  .nav-item.active {
    box-shadow: inset 0 2px 0 #ef6038;
  }

  .main {
    padding: 16px 14px calc(84px + env(safe-area-inset-bottom));
  }

  .topbar {
    margin-bottom: 14px;
  }

  .owner-overview-hero {
    border-radius: 12px;
  }

  .owner-overview-income,
  .owner-overview-focus {
    min-height: auto;
    padding: 20px;
  }

  .owner-overview-metrics,
  .content-traffic-metrics,
  .content-traffic-platforms,
  .platform-account-grid,
  .owner-overview-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-overview-metrics .metric-card {
    min-height: 98px;
  }
}

@media (max-width: 420px) {
  .owner-overview-shortcuts,
  .content-traffic-platforms,
  .platform-account-grid {
    grid-template-columns: 1fr;
  }

  .owner-decision-list article {
    align-items: flex-start;
  }
}
