[hidden] { display: none !important; }

:root {
  color-scheme: light;
  --ink: #2d2d2d;
  --muted: #737373;
  --soft: #9a8dae;
  --line: #e0d5f0;
  --surface: #ffffff;
  --surface-soft: #f5f0ff;
  --page: #f5f0ff;
  --nav: #ffffff;
  --nav-soft: #ede4ff;
  --accent: #7b2fbe;
  --accent-dark: #6b28a6;
  --cyan-soft: #e7fbfc;
  --purple: #7b2fbe;
  --magenta: #ff6b9d;
  --coral: #ff7043;
  --gold: #ffc857;
  --warning: #b86615;
  --danger: #b42318;
  --blue: #00c4cc;
  --grid-rgb: 123, 47, 190;
  --page-top: #ffffff;
  --page-end: #f5f0ff;
  --button-hover: #6b28a6;
  --nav-glow: rgba(123, 47, 190, 0.08);
  --brand-glow: rgba(123, 47, 190, 0.2);
  --shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.08);
  --shadow-md: 0 8px 24px rgba(45, 45, 45, 0.12);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-theme="sky"] {
  --ink: #10263c;
  --muted: #5c748f;
  --soft: #8ba4b8;
  --line: #cfe2f5;
  --surface-soft: #f5fbff;
  --page: #eef8ff;
  --nav: #123451;
  --nav-soft: #1d4c73;
  --accent: #3ab7ff;
  --accent-dark: #146da3;
  --cyan-soft: #e2f6ff;
  --purple: #6d7df7;
  --gold: #f5c84b;
  --warning: #bd6c20;
  --blue: #226fd6;
  --grid-rgb: 58, 183, 255;
  --page-top: #ffffff;
  --page-end: #e4f3ff;
  --button-hover: #68c9ff;
  --nav-glow: rgba(58, 183, 255, 0.12);
  --brand-glow: rgba(58, 183, 255, 0.26);
}

body[data-theme="emerald"] {
  --ink: #132820;
  --muted: #60776f;
  --soft: #90a59e;
  --line: #d3e6dc;
  --surface-soft: #f5fcf8;
  --page: #f0faf5;
  --nav: #143329;
  --nav-soft: #1f4a3c;
  --accent: #31c58d;
  --accent-dark: #177352;
  --cyan-soft: #e2f8ee;
  --purple: #5277dd;
  --gold: #f1c84d;
  --warning: #b96e22;
  --blue: #2d75bd;
  --grid-rgb: 49, 197, 141;
  --page-top: #ffffff;
  --page-end: #e5f5ed;
  --button-hover: #55d4a3;
  --nav-glow: rgba(49, 197, 141, 0.12);
  --brand-glow: rgba(49, 197, 141, 0.24);
}

body[data-theme="violet"] {
  --ink: #211d36;
  --muted: #6e6687;
  --soft: #9a92ae;
  --line: #ddd8f2;
  --surface-soft: #fbf9ff;
  --page: #f5f2ff;
  --nav: #251f45;
  --nav-soft: #342b62;
  --accent: #8b7cff;
  --accent-dark: #5748c7;
  --cyan-soft: #f0edff;
  --purple: #8b7cff;
  --gold: #f1c84d;
  --warning: #b86c20;
  --blue: #406fce;
  --grid-rgb: 139, 124, 255;
  --page-top: #ffffff;
  --page-end: #ece8fb;
  --button-hover: #a094ff;
  --nav-glow: rgba(139, 124, 255, 0.13);
  --brand-glow: rgba(139, 124, 255, 0.25);
}

body[data-theme="gold"] {
  --ink: #2b2517;
  --muted: #776b54;
  --soft: #a89b81;
  --line: #eadfca;
  --surface-soft: #fffdf7;
  --page: #fbf6e8;
  --nav: #342918;
  --nav-soft: #4b3a20;
  --accent: #f2c94c;
  --accent-dark: #9b6917;
  --cyan-soft: #fff5cf;
  --purple: #6f68d9;
  --gold: #f2c94c;
  --warning: #b86718;
  --blue: #336db3;
  --grid-rgb: 242, 201, 76;
  --page-top: #fffef9;
  --page-end: #f5ecd1;
  --button-hover: #f7d76f;
  --nav-glow: rgba(242, 201, 76, 0.14);
  --brand-glow: rgba(242, 201, 76, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 107, 157, 0.16), transparent 28%),
    radial-gradient(circle at 84% 0%, rgba(0, 196, 204, 0.16), transparent 30%),
    linear-gradient(180deg, var(--page-top) 0%, var(--page) 55%, var(--page-end) 100%);
  background-size: auto;
  color: var(--ink);
  font-family:
    "Canva Sans", Circular, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(123, 47, 190, 0.08), transparent 34%),
    var(--nav);
  color: var(--ink);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 4px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 24px var(--brand-glow);
}

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

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

.brand strong {
  letter-spacing: 0;
}

.brand span,
.account-card label,
.account-card span {
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 700;
}

.nav-item.active,
.nav-item:hover {
  background: var(--nav-soft);
  color: var(--accent-dark);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-sm);
}

.nav-icon,
.btn-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
}

.nav-icon {
  background: rgba(123, 47, 190, 0.1);
  color: var(--accent-dark);
}

.account-card {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(123, 47, 190, 0.08), rgba(255, 255, 255, 0) 48%),
    #ffffff;
  box-shadow: var(--shadow-sm);
}

.account-card select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  color: #ffffff;
  background: var(--nav-soft);
}

.sidebar-logo-link {
  display: block;
  width: 92px;
  margin: 0 0 0 10px;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2383 / 860;
  object-fit: contain;
}

.maker-box {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.1), rgba(255, 107, 157, 0.08));
}

.maker-title {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.maker-logo-link {
  display: block;
  width: min(100%, 148px);
  justify-self: center;
  border-radius: 12px;
  overflow: hidden;
}

.maker-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2383 / 860;
  object-fit: contain;
}

.maker-site {
  line-height: 1;
}

.maker-version {
  line-height: 1;
}

.maker-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.maker-box span,
.maker-contact strong {
  color: var(--muted);
  font-size: 12px;
}

.maker-box a:not(.maker-logo-link),
.support-panel a {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.maker-box a:not(.maker-logo-link):hover,
.support-panel a:hover {
  text-decoration: underline;
}

.maker-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(123, 47, 190, 0.14);
}

.maker-contact a,
.maker-contact strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.support-panel {
  gap: 12px;
  padding: 28px;
  border-color: rgba(123, 47, 190, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(123, 47, 190, 0.04), rgba(255, 255, 255, 0) 38%),
    #ffffff;
}

.support-brand {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.support-logo-link {
  display: block;
}

.support-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2383 / 860;
  object-fit: contain;
}

.support-brand h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.support-brand span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.support-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 2px;
}

.support-contact-grid div {
  min-width: 0;
  min-height: 68px;
  padding: 14px 18px;
  border: 1px solid rgba(123, 47, 190, 0.16);
  border-radius: 18px;
  background: rgba(123, 47, 190, 0.07);
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.support-contact-grid span,
.support-contact-grid strong {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.support-contact-grid a,
.support-contact-grid strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.wechat-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(123, 47, 190, 0.18);
  border-radius: 9999px;
  padding: 6px 12px;
  background: #ffffff;
}

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

.local-stats span {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.local-stats strong {
  display: block;
  color: var(--accent-dark);
  font-size: 16px;
  line-height: 1.2;
}

.local-config-btn {
  width: 100%;
  min-height: 34px;
  border-color: rgba(123, 47, 190, 0.18);
  background: rgba(123, 47, 190, 0.08);
  color: var(--accent-dark);
}

.account-meta {
  display: grid;
  gap: 6px;
}

.account-meta span {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(123, 47, 190, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#syncStatus {
  color: var(--accent-dark);
  font-weight: 800;
}

.login-box {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(139, 235, 255, 0.16);
}

.login-box input {
  min-height: 34px;
  width: 100%;
  border: 1px solid rgba(139, 235, 255, 0.2);
  border-radius: 8px;
  padding: 7px 9px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.login-box input::placeholder {
  color: #a8d6df;
}

.login-box .btn {
  width: 100%;
  box-shadow: none;
}

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

/* 页面标题和业务内容共用同一自适应宽度，避免上下边缘错位。 */
.topbar,
#viewRoot {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#viewRoot {
  min-width: 0;
}

/* 顶部标题卡与每个业务页面的左右边界保持一致。 */
#viewRoot > :first-child,
#viewRoot > .cm-page,
#viewRoot > .acq-sub-page,
#viewRoot > .d-page,
#viewRoot > .o-page,
#viewRoot > .s-page {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.topbar {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.title-block {
  min-width: 240px;
}

.page-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  font-size: 16px;
  line-height: 1.3;
}

.topbar p,
.section-bar p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.top-actions,
.toolbar,
.modal-actions,
.panel-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 540px;
}

.btn {
  min-height: 42px;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.link-btn:hover,
.icon-btn:hover,
.nav-item:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.link-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.btn.is-loading {
  border-color: rgba(123, 47, 190, 0.26);
  background: rgba(123, 47, 190, 0.09);
  color: var(--accent-dark);
  opacity: 1;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--button-hover);
}

.btn.secondary,
.btn.compact {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn.secondary:hover,
.btn.compact:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.btn.danger,
.btn.compact.danger {
  color: var(--danger);
  border-color: #f4b4ae;
  background: #fff6f5;
}

.btn.danger:hover,
.btn.compact.danger:hover {
  background: #fee4e2;
  border-color: #ee8b83;
}

.btn.ghost {
  background: transparent;
  box-shadow: none;
}

.btn.compact {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.18);
}

.btn.secondary .btn-icon {
  background: #e7faff;
  color: var(--muted);
}

.view {
  display: none;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 44px;
}

.active-view {
  display: block;
  animation: view-in 0.18s var(--ease-spring);
}

.support-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 5px 10px 5px 6px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.support-corner span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: rgba(123, 47, 190, 0.12);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
}

.support-corner:hover {
  border-color: rgba(123, 47, 190, 0.28);
  background: #ffffff;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.metric,
.panel,
.table-wrap,
.section-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.next-step {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(123, 47, 190, 0.1), rgba(255, 107, 157, 0.06) 42%, transparent),
    var(--surface);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.next-step div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.next-step span {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 2px 8px;
  background: rgba(123, 47, 190, 0.1);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.next-step strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.next-step small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.next-step .btn {
  flex: 0 0 auto;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.metric-leads::before {
  background: var(--accent);
}

.metric-hot::before {
  background: var(--magenta);
}

.metric-draft::before {
  background: var(--blue);
}

.metric-sent::before {
  background: var(--coral);
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  color: var(--accent-dark);
  line-height: 1;
}

.metric small {
  color: var(--soft);
  font-size: 12px;
}

.dashboard-grid,
.settings-grid,
.acquisition-grid,
.automation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 12px;
  margin-top: 12px;
}

.panel {
  padding: 18px;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 15px 16px;
}

.priority-list,
.activity-log,
.draft-board,
.strategy-list,
.acquisition-results,
.queue-list,
.auto-send-summary {
  display: grid;
  gap: 10px;
}

.draft-board,
.acquisition-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.priority-item,
.activity-item,
.draft-card,
.discovery-card,
.queue-item,
.strategy-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

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

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.queue-item strong,
.queue-item span,
.queue-item small {
  display: block;
}

.queue-item span,
.queue-item small {
  color: var(--muted);
  font-size: 13px;
}

.queue-item small {
  margin-top: 5px;
}

.queue-item.has-warning {
  background: #fff7f4;
  border-color: rgba(255, 112, 67, 0.28);
}

.auto-send-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.auto-send-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.auto-send-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.priority-item.enhanced {
  grid-template-columns: minmax(180px, 1fr) max-content max-content minmax(116px, max-content);
  column-gap: 10px;
}

.priority-item.enhanced > div:first-child,
.queue-item > div:first-child,
.draft-card header > div,
.discovery-card header > div,
.company-cell {
  min-width: 0;
}

.priority-item:hover,
.draft-card:hover,
.discovery-card:hover {
  border-color: rgba(123, 47, 190, 0.35);
  box-shadow: var(--shadow-sm);
}

.priority-item strong,
.priority-item span,
.activity-item span,
.draft-card span,
.discovery-card span,
.strategy-list span {
  display: block;
}

.priority-item span,
.activity-item,
.draft-card .meta,
.discovery-card span,
.strategy-list span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.priority-item strong,
.priority-item span,
.queue-item strong,
.queue-item span,
.queue-item small,
.draft-card h2,
.draft-card .meta,
.discovery-card h2,
.discovery-card span,
.company-cell strong,
.company-cell span,
td {
  overflow-wrap: anywhere;
}

.acquisition-results-head {
  margin-top: 12px;
}

.acquisition-summary {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.strategy-list div {
  padding: 12px;
}

.strategy-list strong {
  display: block;
  margin-bottom: 5px;
}

.discovery-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.acquisition-risk {
  grid-column: 1 / -1;
  margin-top: 0;
}

.discovery-card.is-muted {
  opacity: 0.62;
}

.discovery-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.discovery-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.discovery-meta {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.workflow-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workflow-checks span {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(123, 47, 190, 0.16);
  border-radius: 9999px;
  background: rgba(123, 47, 190, 0.07);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.acquisition-funnel {
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.acquisition-progress {
  grid-column: 1 / -1;
  border: 1px solid rgba(123, 47, 190, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(123, 47, 190, 0.06), rgba(255, 255, 255, 0) 52%),
    #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.progress-head span,
.progress-item span,
.progress-item small {
  color: var(--muted);
  font-size: 12px;
}

.progress-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
}

.progress-head small {
  flex: 0 0 auto;
  border: 1px solid rgba(123, 47, 190, 0.16);
  border-radius: 9999px;
  padding: 5px 9px;
  background: rgba(123, 47, 190, 0.07);
  color: var(--accent-dark);
  font-weight: 900;
}

.progress-log {
  max-height: 260px;
  overflow: auto;
  display: grid;
}

.progress-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(123, 47, 190, 0.09);
}

.progress-item:last-child {
  border-bottom: 0;
}

.progress-item.is-active {
  background: rgba(0, 194, 255, 0.07);
}

.progress-item strong,
.progress-item small {
  display: block;
}

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

.progress-item small {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.progress-item em {
  align-self: center;
  min-width: 48px;
  border-radius: 9999px;
  padding: 4px 8px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.risk-flags span {
  border-color: rgba(255, 112, 67, 0.25);
  background: rgba(255, 112, 67, 0.08);
  color: #9d3f1d;
}

.score {
  width: clamp(38px, 4.2vw, 48px);
  min-height: 30px;
  border-radius: 9999px;
  display: inline-grid;
  place-items: center;
  background: var(--cyan-soft);
  color: #12666a;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.activity-log {
  max-height: 338px;
  overflow: auto;
  padding-right: 2px;
}

.activity-item {
  position: relative;
  padding: 10px 12px 10px 28px;
}

.activity-item strong,
.activity-item small {
  display: block;
}

.activity-item strong {
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 3px;
}

.activity-item small {
  margin-top: 5px;
  color: var(--soft);
}

.activity-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.bulk-action-bar {
  margin: -2px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(123, 47, 190, 0.2);
  border-radius: 16px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.bulk-action-bar strong {
  color: var(--accent-dark);
  font-size: 13px;
}

.search-box {
  min-width: min(440px, 100%);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 0 12px;
}

.search-box span {
  color: var(--soft);
  font-weight: 900;
}

.search-box input {
  min-height: 40px;
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
}

.toolbar select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  background: #ffffff;
  color: var(--ink);
}

.toolbar select {
  width: auto;
  min-width: 142px;
  min-height: 40px;
  background: #ffffff;
}

.secret-input {
  -webkit-text-security: disc;
}

.table-wrap {
  overflow: auto;
  box-shadow: var(--shadow-md);
}

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

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface-soft);
  font-weight: 900;
}

tbody tr {
  background: #ffffff;
}

tbody tr:hover {
  background: #fbf8ff;
}

tbody tr.is-selected {
  background: var(--surface-soft);
}

tbody tr.is-overdue .company-cell strong::after {
  content: "待跟进";
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 9999px;
  background: #fff2ed;
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.select-col {
  width: 44px;
  text-align: center;
}

.select-col input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.company-cell strong,
.company-cell span {
  display: block;
}

.company-cell strong {
  margin-bottom: 3px;
}

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

.lead-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.lead-issues span,
.email-warning {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 9999px;
  padding: 2px 7px;
  color: #9d3f1d;
  background: #fff2ed;
  font-size: 11px;
  font-weight: 900;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-width: clamp(56px, 6.2vw, 78px);
  min-height: 28px;
  border-radius: 9999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  background: #eef1f4;
  color: var(--muted);
}

.status.new {
  background: var(--surface-soft);
  color: var(--accent-dark);
}

.status.drafted {
  background: #f0edff;
  color: var(--accent-dark);
}

.status.approved {
  background: #fff0f6;
  color: #b82763;
}

.status.sent {
  background: var(--cyan-soft);
  color: #12666a;
}

.status.replied {
  background: #fff2ed;
  color: #9d3f1d;
}

.status.blocked {
  background: #fee4e2;
  color: var(--danger);
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.priority-item .row-actions,
.queue-item .row-actions {
  justify-content: flex-end;
}

.link-btn {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: var(--accent-dark);
  background: transparent;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.link-btn:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.link-btn.primary-action {
  border-color: rgba(123, 47, 190, 0.18);
  background: var(--surface-soft);
}

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

.link-btn.danger:hover {
  border-color: #f4b4ae;
  background: #fff1f0;
}

.row-menu {
  position: relative;
}

.row-menu summary {
  list-style: none;
}

.row-menu summary::-webkit-details-marker {
  display: none;
}

.row-menu summary::after {
  content: "v";
  margin-left: 6px;
  color: var(--soft);
  font-size: 10px;
}

.row-menu[open] summary {
  background: var(--surface-soft);
  border-color: var(--line);
}

.row-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 4;
  min-width: 132px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.menu-action {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  padding: 6px 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.menu-action:hover {
  background: var(--surface-soft);
}

.menu-action.danger {
  color: var(--danger);
}

.menu-action.danger:hover {
  background: #fff1f0;
}

.draft-card {
  padding: 15px;
  display: grid;
  gap: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.draft-card pre {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
}

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

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

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid textarea {
  resize: vertical;
}

#draftBody {
  min-height: 320px;
  line-height: 1.55;
}

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

.settings-grid .panel > h2 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.check-list {
  display: grid;
  gap: 11px;
}

.theme-picker {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.theme-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(var(--grid-rgb), 0.12), transparent 38%),
    #ffffff;
}

.check-list label {
  min-height: 38px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.check-list input {
  accent-color: var(--accent);
}

.notice {
  margin-top: 14px;
  border-radius: 16px;
  padding: 13px;
  display: grid;
  gap: 6px;
  background: #fff7f4;
  color: #7d3419;
  border: 1px solid rgba(255, 112, 67, 0.24);
}

.config-checklist,
.wizard-steps {
  display: grid;
  gap: 10px;
}

.config-modal {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.config-checklist {
  margin-bottom: 12px;
}

.config-checklist span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.config-checklist strong {
  color: var(--ink);
}

.config-checklist .is-ready strong {
  color: var(--accent-dark);
}

.config-checklist .is-missing strong {
  color: var(--warning);
}

#configDialog {
  width: min(860px, calc(100vw - 28px));
}

.wizard-steps section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.wizard-steps h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.field-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.field-actions .muted {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-dir-structure {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.recommended-dir {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(123, 47, 190, 0.2);
  border-radius: 16px;
  background: var(--surface-soft);
}

.recommended-dir strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.recommended-dir span {
  color: var(--muted);
  font-size: 13px;
}

.advanced-dir {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.advanced-dir summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.advanced-dir .form-grid {
  margin-top: 10px;
}

.data-dir-structure code {
  color: var(--ink);
  overflow-wrap: anywhere;
}

dialog {
  width: min(780px, calc(100vw - 28px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.22);
}

dialog::backdrop {
  background: rgba(45, 45, 45, 0.38);
}

.modal {
  padding: 18px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 900;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.decision-modal {
  display: grid;
  gap: 14px;
}

.decision-message {
  color: var(--ink);
  line-height: 1.55;
}

.decision-details {
  display: none;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.decision-details:not(:empty) {
  display: grid;
}

.decision-details strong {
  color: var(--ink);
}

.decision-details ul {
  margin: 0;
  padding-left: 18px;
}

.decision-details li + li {
  margin-top: 4px;
}

.decision-modal.is-danger #decisionConfirmBtn {
  color: #ffffff;
  background: var(--danger);
}

.decision-modal.is-danger #decisionConfirmBtn:hover {
  background: #8f1d14;
}

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

/* ============================================================
   V2.2 卡片式导航 + 模块分色（市场=蓝 / 客户=绿 / 开发=橙 / 沟通=紫）
   ============================================================ */
.nav-list {
  display: grid;
  gap: 8px;
  grid-auto-rows: max-content;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  padding-right: 4px;
  margin-right: -4px;
}
.nav-list::-webkit-scrollbar { width: 6px; }
.nav-list::-webkit-scrollbar-thumb { background: rgba(123, 47, 190, 0.18); border-radius: 99px; }
.nav-list::-webkit-scrollbar-track { background: transparent; }

/* 图标改为 emoji 风格（去掉字母徽章背景） */
.nav-item .nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

/* 顶级项：工作台 / 数据分析 / 设置 */
.nav-item.nav-top {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.nav-item.nav-top:hover {
  background: var(--surface-soft);
  border-color: rgba(123, 47, 190, 0.28);
  transform: none;
}
.nav-item.nav-top.active {
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.14), rgba(168, 85, 247, 0.06));
  border-color: transparent;
  color: var(--accent-dark);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-sm);
}

/* 分组卡片 + 模块色变量 */
.nav-group {
  --mc: #7b2fbe;
  --mc-soft: #f5f0ff;
  min-height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-left: 3px solid var(--mc);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.nav-group.c-blue { --mc: #2563eb; --mc-soft: #eff6ff; }
.nav-group.c-green { --mc: #059669; --mc-soft: #ecfdf5; }
.nav-group.c-orange { --mc: #ea580c; --mc-soft: #fff7ed; }
.nav-group.c-purple { --mc: #7c3aed; --mc-soft: #f5f3ff; }

.nav-item.nav-group-toggle {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  padding: 11px 12px;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}
.nav-item.nav-group-toggle:hover {
  background: var(--mc-soft);
  color: var(--mc);
  transform: none;
}
.nav-item.nav-group-toggle.active {
  background: var(--mc-soft);
  color: var(--mc);
  box-shadow: none;
}
.nav-item.nav-group-toggle .nav-icon { color: var(--mc); }
.nav-arrow { margin-left: auto; font-size: 11px; color: var(--muted); transition: transform 0.2s ease; }
.nav-group.expanded .nav-arrow { transform: rotate(180deg); }

/* 子菜单：可折叠 */
.nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 8px;
}
.nav-group.expanded .nav-submenu { max-height: 460px; padding-bottom: 8px; }

/* 子项：圆角卡片，统一高度/间距，图标+文字 */
.nav-sub-item {
  position: relative;
  width: 100%;
  min-height: 40px;
  margin-top: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-sub-item .ns-ico { font-size: 15px; width: 20px; text-align: center; flex: 0 0 auto; line-height: 1; }
.nav-sub-item:hover {
  background: var(--mc-soft);
  border-color: var(--line);
  transform: none;
}
.nav-sub-item.active {
  background: var(--mc-soft);
  border-color: transparent;
  color: var(--mc);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--mc);
}

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

.empty strong {
  color: var(--ink);
  margin-bottom: 6px;
}

.action-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.email-warning {
  display: inline-flex;
  margin-top: 4px;
}

.check-inline {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
}

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

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .priority-item.enhanced {
    grid-template-columns: minmax(0, 1fr) max-content max-content;
  }

  .priority-item.enhanced .row-actions {
    grid-column: 1 / -1;
  }

  .draft-board,
  .acquisition-results {
    grid-template-columns: 1fr;
  }

  .settings-grid .support-brand {
    grid-template-columns: 1fr;
  }

  .settings-grid .support-logo-link {
    max-width: 220px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    padding: 12px;
    gap: 12px;
  }

  .brand {
    padding: 0;
    border-bottom: 0;
  }

  .nav-list {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    overflow: visible;
  }

  .nav-group {
    grid-column: 1 / -1;
  }

  .nav-item {
    justify-content: center;
    min-width: 0;
    font-size: 13px;
  }

  .priority-item.enhanced {
    grid-template-columns: 1fr;
  }

  .priority-item.enhanced .score,
  .priority-item.enhanced .status,
  .priority-item.enhanced .row-actions {
    justify-self: start;
  }

  .nav-item.active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .nav-icon,
  .account-card,
  .sidebar-logo-link {
    display: none;
  }

  .main {
    padding: 18px;
  }

  .topbar,
  .dashboard-grid,
  .settings-grid,
  .acquisition-grid,
  .automation-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .support-brand,
  .support-contact-grid {
    grid-template-columns: 1fr;
  }

  .support-logo-link {
    max-width: 180px;
  }

  .next-step {
    display: grid;
    align-items: stretch;
  }

  .next-step .btn {
    width: 100%;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 10px;
    justify-content: flex-start;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .top-actions .btn {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .active-view {
    animation: none;
  }

  .btn:hover,
  .link-btn:hover,
  .icon-btn:hover,
  .nav-item:hover {
    transform: none;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 23px;
  }

  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .toolbar select,
  .search-box {
    width: 100%;
  }

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

  .top-actions .btn:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .section-bar,
  .toolbar,
  .bulk-action-bar {
    display: grid;
  }

  .bulk-action-bar .row-actions,
  .bulk-action-bar .btn {
    width: 100%;
  }

  .draft-card header,
  .discovery-card header,
  .queue-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .queue-item .score,
  .queue-item .row-actions,
  .draft-card header .status,
  .discovery-card header .score {
    justify-self: start;
  }

  .progress-head,
  .progress-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .progress-head small,
  .progress-item em {
    justify-self: start;
  }
}

/* ========== AUTH SCREEN ========== */

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(var(--grid-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--grid-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(180deg, var(--page-top) 0%, var(--page) 52%, var(--page-end) 100%);
  background-size: 28px 28px, 28px 28px, auto;
  padding: 20px;
}

.auth-card {
  width: min(400px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.auth-brand strong {
  font-size: 18px;
}

.auth-brand span {
  color: var(--muted);
  font-size: 13px;
}

.auth-card h2 {
  margin-bottom: 18px;
  font-size: 20px;
}

.auth-card form {
  display: grid;
  gap: 14px;
}

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

.auth-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
}

.auth-card input:focus {
  border-color: var(--accent);
}

.auth-card .btn.primary {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}

.auth-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  min-height: 1.2em;
}

.auth-toggle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-toggle a {
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.user-box {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 194, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.1), rgba(123, 47, 190, 0.08));
}

.user-box span {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-box .btn {
  width: 100%;
  min-height: 34px;
  box-shadow: none;
}

/* ===================== CUSTOM (云拓) EXTENSIONS ===================== */
/* Auth screen (not present in base reference CSS) */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 107, 157, 0.16), transparent 28%),
    radial-gradient(circle at 84% 0%, rgba(0, 196, 204, 0.16), transparent 30%),
    linear-gradient(180deg, var(--page-top) 0%, var(--page) 55%, var(--page-end) 100%);
}
.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.auth-brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  margin-bottom: 18px;
}
.auth-brand .brand-mark {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  padding: 5px; background: #fff;
  box-shadow: 0 0 24px var(--brand-glow);
}
.auth-brand strong { font-size: 18px; }
.auth-brand span { color: var(--muted); font-size: 12px; }
#authForm { display: grid; gap: 12px; }
#authForm h2 { font-size: 18px; margin-bottom: 2px; }
#authForm label { color: var(--muted); font-size: 13px; font-weight: 800; }
#authForm input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; background: #fff; color: var(--ink);
}
.auth-error { color: var(--danger); font-size: 13px; min-height: 16px; margin: 0; }
.auth-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

/* Sidebar footer */
.sidebar-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11px; line-height: 1.5;
}

/* Overlay / Drawer / Modal hosts */
.overlay {
  position: fixed; inset: 0; background: rgba(45, 45, 45, 0.38);
  z-index: 40;
}
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(520px, 94vw);
  background: var(--surface); z-index: 50; box-shadow: var(--shadow-md);
  overflow: auto; padding: 22px;
  animation: drawer-in 0.2s var(--ease-spring);
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.modal-host {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: rgba(45, 45, 45, 0.38);
}
.modal-host .modal-card {
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  display: flex;
  justify-content: center;
}
.sales-customer-manager { width: 100%; box-sizing: border-box; padding: 26px; background: #fff; border-radius: 22px; }
.sales-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:2px 2px 18px;border-bottom:1px solid #eee6f7;margin-bottom:16px}
.sales-manager-head h2{font-size:26px;margin:8px 0 4px!important}.sales-manager-head .modal-x{position:static;flex:0 0 auto;width:40px;height:40px;border:1px solid #e5d9f2;border-radius:50%;background:#fff;color:#5f526b;font-size:24px;cursor:pointer;box-shadow:0 5px 16px rgba(76,29,149,.08)}
.sales-customer-manager h2 { margin: 0 0 6px; color: #20192c; }
.sales-customer-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:18px 0 10px; }
.sales-customer-list { max-height: 430px; overflow:auto; border:1px solid #e8ddf5; border-radius:14px; background:#fcfbff; }
.sales-customer-row { display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; padding:12px 14px; border-bottom:1px solid #eee8f6; align-items:center; }
.sales-customer-row:last-child { border-bottom:0; }
.sales-customer-row strong,.sales-customer-row small { display:block; overflow-wrap:anywhere; }
.sales-customer-row small { color:#81768c; margin-top:3px; }
.sales-customer-actions { display:grid; grid-template-columns:minmax(220px,1fr) auto auto; gap:10px; margin-top:16px; align-items:center; }
.sales-customer-actions select { width:100%; min-height:42px; border:1px solid #d8ccf0; border-radius:11px; padding:0 12px; background:#fff; }
@media(max-width:700px){.sales-customer-actions{grid-template-columns:1fr}.sales-customer-manager{padding:20px 16px}}
.modal-host .modal-card .m-card {
  width: min(920px, 100%);
}
.modal-host .modal {
  width: min(720px, 100%); border: 0; border-radius: 20px; padding: 20px;
  background: var(--surface); box-shadow: 0 22px 70px rgba(16, 24, 40, 0.22);
  max-height: calc(100vh - 40px); overflow: auto;
}

/* Shared theme controls for every dialog, including dialogs rendered outside a page view. */
.cm-btn {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #d8ccf0;
  border-radius: 10px;
  background: #ffffff;
  color: #5a3a8a;
  font: 700 13px/1.2 inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cm-btn:hover {
  border-color: #a855f7;
  box-shadow: 0 5px 14px rgba(123, 47, 190, 0.12);
  transform: translateY(-1px);
}

.cm-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #7b2fbe, #a855f7);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(123, 47, 190, 0.2);
}

.cm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.theme-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e8e0f2;
  border-radius: 50%;
  background: #ffffff;
  color: #5a3a8a;
  font: 400 24px/34px inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 24, 40, 0.1);
}

.theme-modal-close:hover {
  color: #7b2fbe;
  border-color: #cdb8f0;
  background: #faf8ff;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9999px; background: #fff; color: var(--muted); font-weight: 900; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 80; padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.error { background: var(--danger); }
.toast.warn { background: var(--warning); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  min-height: 38px; border: 1px solid var(--line); border-radius: 9999px;
  padding: 8px 14px; background: var(--surface); color: var(--muted);
  font-weight: 800; font-size: 13px; cursor: pointer;
}
.tab.active { background: var(--accent); color: #fff; border-color: transparent; }

/* Misc helpers */
.helper { color: var(--muted); font-size: 13px; line-height: 1.5; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.kpi-sub { color: var(--soft); font-size: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 22px; border-radius: 9999px; padding: 2px 8px; font-size: 11px; font-weight: 900; }
.tag.green { background: #e7f8ee; color: #1c7a45; }
.tag.blue { background: var(--cyan-soft); color: #12666a; }
.tag.amber { background: #fff2ed; color: #9d3f1d; }
.tag.gray { background: #eef1f4; color: var(--muted); }
.badge-line { display: flex; gap: 6px; flex-wrap: wrap; }
.drawer h3 { font-size: 15px; margin: 16px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.reasons li { margin: 4px 0; color: var(--ink); }
.reasons .bad { color: #9d3f1d; }
.reasons .good { color: #1c7a45; }
.note-box { padding: 12px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface-soft); color: var(--muted); font-size: 13px; }
.copy-btn { min-height: 30px; border: 1px solid var(--line); border-radius: 9999px; padding: 4px 10px; font-size: 12px; font-weight: 800; background: #fff; cursor: pointer; color: var(--accent-dark); }
.copy-btn:hover { background: var(--surface-soft); }

.auth-hint { margin: 6px 0 0; text-align: center; color: var(--accent-dark); font-size: 12px; font-weight: 800; }

/* ========== Dashboard Stat Grid ========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.stat-card.green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3); }
.stat-card.green:hover { box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4); }
.stat-card.blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3); }
.stat-card.blue:hover { box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4); }
.stat-card.purple { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); box-shadow: 0 4px 15px rgba(161, 140, 209, 0.3); }
.stat-card.purple:hover { box-shadow: 0 6px 20px rgba(161, 140, 209, 0.4); }
.stat-card.orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3); }
.stat-card.orange:hover { box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4); }

.stat-icon { font-size: 32px; line-height: 1; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 13px; opacity: 0.9; font-weight: 500; }

.funnel-card, .quick-actions, .recent-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--line);
}

.funnel-card h3, .quick-actions h3, .recent-card h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.funnel-item {
  margin-bottom: 16px;
}

.funnel-item:last-child { margin-bottom: 0; }

.funnel-item label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.funnel-bar {
  height: 36px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  width: 0;
  transition: width 0.6s ease;
  min-width: 40px;
}

.funnel-bar.blue { background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); }
.funnel-bar.purple { background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%); }

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

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-icon { font-size: 24px; }
.action-btn label { font-size: 13px; font-weight: 600; }

.recent-list { display: flex; flex-direction: column; gap: 12px; }

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-soft);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.recent-item:hover { background: #eef1f4; }

.recent-info { display: flex; flex-direction: column; gap: 2px; }
.recent-info strong { font-size: 14px; color: var(--ink); }
.recent-info span { font-size: 12px; color: var(--muted); }
.recent-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }

@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .action-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: 1fr; }
}

/* ========== Section Actions ========== */
.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-actions { display: flex; gap: 8px; }

/* ========== RPA Views ========== */
.rpa-status-box, .rpa-result-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--surface-soft);
  border-radius: 14px;
  border: 2px dashed var(--line);
  text-align: center;
  gap: 12px;
  min-height: 200px;
}
.rpa-status-box p, .rpa-result-box p { color: var(--muted); margin: 0; font-size: 14px; }
.rpa-status-icon { font-size: 48px; line-height: 1; }

.rpa-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
}
.rpa-loading p { color: var(--muted); margin: 0; }

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Settings Grid ========== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.config-card { display: flex; flex-direction: column; }
.config-card .form-grid { flex: 1; }
.config-card .btn { align-self: flex-start; margin-top: 16px; }

@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
}

/* ========== Tag amber ========== */
.tag.amber { background: #fff4e6; color: #b35900; }
.status.success { background: #e6f7ee; color: #1c7a45; }
.status.danger { background: #fde8e8; color: #c01f3c; }

/* ========== Enhanced Panel & Table ========== */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.panel-head .muted { margin: 0; font-size: 13px; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap thead { background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); }
.table-wrap th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--line);
}
.table-wrap td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.table-wrap tbody tr { transition: background 0.15s ease; }
.table-wrap tbody tr:hover { background: #f8f9fb; }
.table-wrap tbody tr:last-child td { border-bottom: none; }

/* Empty state */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty::before {
  content: "📭";
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.4;
}

/* Config card enhanced */
.config-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.config-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Form grid enhanced */
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 47, 190, 0.1);
}

/* Flat business-flow navigation */
.nav-list-flat {
  display: grid;
  gap: 7px;
}
.nav-list-flat .nav-item.nav-top {
  width: 100%;
  justify-content: flex-start;
}

/* Friendly fallback when index.html is opened directly with file:// */
.local-open-warning {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f5f0ff, #f7f9fc);
  color: #1a1a2e;
}
.local-open-warning > div {
  max-width: 560px;
  padding: 36px;
  text-align: center;
  background: #fff;
  border: 1px solid #e0d4f5;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(45, 24, 77, 0.12);
}
.local-open-warning .warning-icon {
  display: block;
  font-size: 42px;
  margin-bottom: 12px;
}
.local-open-warning h2 { margin: 0 0 10px; }
.local-open-warning p { color: #666; line-height: 1.7; }
.local-open-warning a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  color: #fff;
  background: #7b2fbe;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
}
