:root {
  color-scheme: light;
  --bg: #eef2f4;
  --panel: #ffffff;
  --text: #14202b;
  --muted: #5b6b7a;
  --border: #d5dfe5;
  --accent: #0f7d72;
  --accent-dark: #0b625a;
  --accent-soft: #e2f4f0;
  --success: #0f9f6e;
  --warning: #a96908;
  --danger: #d64545;
  --ink: #0b1518;
  --ink-2: #101d22;
  --jade: #38d9a9;
  --electric: #7c8cff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 244px;
  flex: 0 0 244px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(56, 217, 169, 0.22), rgba(124, 140, 255, 0.16));
  color: #d9fff5;
  font-size: 18px;
  font-weight: 700;
}

.sidebar-brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
  color: #f7fbfc;
}

.sidebar-brand p {
  margin: 4px 0 0;
  color: rgba(226, 240, 240, 0.62);
}

.side-nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  min-height: 42px;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(226, 240, 240, 0.7);
  padding: 0 12px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(56, 217, 169, 0.14);
  color: #5eead4;
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .button {
  width: 100%;
}

.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 18px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px 28px 60px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.workflow-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.workflow-step {
  min-width: 132px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.workflow-step-no {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 650;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.result-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
}

.result-metric span {
  color: var(--muted);
  font-size: 12px;
}

.result-metric strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 650;
}

.result-metric.accent {
  border-color: rgba(15, 125, 114, 0.28);
  background: var(--accent-soft);
}

.result-metric.accent strong {
  color: var(--accent-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: span 4;
}

.field-block {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  min-height: 38px;
}

textarea {
  padding: 10px;
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 125, 114, 0.22);
  border-color: var(--accent);
}

.checkbox {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--text);
}

.checkbox input {
  width: auto;
  min-height: auto;
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.preset-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preset-card {
  min-height: 52px;
  display: grid;
  gap: 3px;
  align-content: center;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

.preset-card span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.preset-card.active strong {
  color: var(--accent-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-dark);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button-secondary:hover {
  background: var(--accent-soft);
}

.button-ghost {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--border);
}

.button-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.platform-login-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.platform-login-box[hidden] {
  display: none;
}

.platform-login-qr-wrap {
  flex: 0 0 172px;
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.platform-login-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.platform-login-state {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.platform-login-state strong {
  color: var(--text);
  font-size: 14px;
}

.platform-login-state span {
  color: var(--muted);
  line-height: 1.6;
}

.status {
  margin-top: 12px;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.command-box {
  margin: 14px 0 0;
  padding: 12px;
  background: var(--ink-2);
  color: #c9f4e9;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.health-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  min-height: 76px;
}

.health-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.health-item span {
  color: var(--muted);
  word-break: break-all;
}

.matrix-group {
  margin-top: 14px;
}

.matrix-group > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.collect-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: start;
}

.collect-config,
.collect-results {
  min-width: 0;
}

.collect-config .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collect-config .span-2,
.collect-config .span-4 {
  grid-column: span 2;
}

.collect-results .panel-head {
  align-items: flex-start;
}

.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-row select,
.filter-row input {
  width: auto;
  min-width: 140px;
}

.filter-row #comment-min-likes {
  width: 118px;
  min-width: 118px;
}

.filter-row #comment-filter-words {
  min-width: 190px;
  flex: 1 1 190px;
}

.filter-row textarea {
  width: 100%;
  min-width: 260px;
  min-height: 64px;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  word-break: break-all;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f8fafc;
}

.badge {
  display: inline-block;
  min-width: 28px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.badge-a {
  background: #fef2f2;
  color: var(--danger);
}

.badge-b {
  background: #fffbeb;
  color: var(--warning);
}

.badge-c {
  background: #f1f5f9;
  color: var(--muted);
}

.badge-draft {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-approved {
  background: #ecfdf5;
  color: var(--success);
}

.badge-sent {
  background: #eef2ff;
  color: #4338ca;
}

.badge-skipped {
  background: #f1f5f9;
  color: var(--muted);
}

.badge-active {
  background: #ecfdf5;
  color: var(--success);
}

.badge-paused {
  background: #fffbeb;
  color: var(--warning);
}

.muted {
  color: var(--muted);
}

.limit-note {
  color: var(--warning);
  font-size: 13px;
}

.text-ellipsis {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .span-2,
  .span-4 {
    grid-column: span 2;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .collect-grid {
    grid-template-columns: 1fr;
  }

  .collect-config .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .collect-config .span-2,
  .collect-config .span-4 {
    grid-column: span 2;
  }

  .preset-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-brand {
    padding: 14px 16px;
  }

  .side-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
  }

  .nav-item {
    width: auto;
    min-height: 36px;
    flex: 0 0 auto;
  }

  .sidebar-footer {
    display: none;
  }
}

@media (max-width: 640px) {
  .preset-cards {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .container {
    padding: 18px 12px 48px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-4 {
    grid-column: span 1;
  }

  .collect-config .form-grid {
    grid-template-columns: 1fr;
  }

  .collect-config .span-2,
  .collect-config .span-4 {
    grid-column: span 1;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.topbar-user {
  color: var(--text-muted, #6b7280);
  font-size: 13px;
  margin-right: 6px;
}

.topbar-tenant {
  color: var(--accent-dark, #0b5f55);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid rgba(15, 125, 114, 0.22);
  border-radius: 6px;
  background: var(--accent-soft, #edfaf7);
}

.tenant-form,
.admin-user-form {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft, #fafafa);
}

.admin-user-tenant,
.admin-user-role {
  min-width: 118px;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  background: var(--ink);
  color: #f7fbfc;
  overflow: hidden;
}

.auth-overlay[hidden] {
  display: none;
}

.auth-visual {
  position: relative;
  flex: 0 0 min(46%, 620px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(28px, 5vw, 76px);
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 217, 169, 0.16), transparent 36%),
    linear-gradient(145deg, #071316 0%, #0f1922 46%, #131522 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}

.auth-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, 0.36);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(56, 217, 169, 0.24), rgba(124, 140, 255, 0.18));
  color: #d9fff5;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 0 28px rgba(56, 217, 169, 0.12);
}

.auth-brand h1 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  letter-spacing: 0;
}

.auth-brand p {
  margin: 5px 0 0;
  color: rgba(226, 240, 240, 0.66);
  font-size: 13px;
}

.auth-features {
  display: grid;
  gap: 12px;
}

.auth-feature {
  position: relative;
  padding: 12px 14px 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 250, 248, 0.86);
  font-size: 13px;
}

.auth-feature::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(56, 217, 169, 0.8);
}

.auth-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(28px, 7vw, 96px);
  background: #f8fafb;
  color: var(--text);
  overflow-y: auto;
}

.auth-card-head {
  max-width: 460px;
  margin: 0 auto 28px;
}

.auth-card-head span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-card-head h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 28px;
  letter-spacing: 0;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-card > form,
.auth-card > .status {
  width: min(460px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.auth-card .form-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
}

.auth-card label {
  color: var(--text);
  font-weight: 600;
}

.auth-card label[hidden] {
  display: none;
}
.auth-card input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
}

.auth-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 125, 114, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  min-height: auto;
  padding: 2px 6px;
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.auth-actions .button {
  min-height: 44px;
  border-radius: 7px;
  padding: 0 20px;
  flex: 1;
}

.auth-actions .auth-ghost {
  flex: 0 0 auto;
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.auth-actions .auth-ghost:hover {
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  .auth-overlay {
    flex-direction: column;
    overflow-y: auto;
  }

  .auth-visual {
    flex: 0 0 auto;
    min-height: 230px;
    width: 100%;
    padding: 30px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .auth-brand {
    margin-bottom: 0;
  }

  .auth-features {
    display: none;
  }

  .auth-card {
    padding: 34px 24px 48px;
    justify-content: flex-start;
  }
}

.auth-locked {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(380px, calc(100vw - 32px));
  padding: 11px 14px;
  border-radius: 7px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-success {
  background: var(--success);
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: var(--danger);
  opacity: 1;
  transform: translateY(0);
}

/* 最终登录页：精准获客矩阵系统 / LEAD MATRIX */
.auth-overlay.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
  overflow: auto;
  background: var(--bg);
  color: var(--text);
}

.auth-overlay.login-page[hidden] {
  display: none;
}

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 217, 169, 0.13), transparent 38%),
    linear-gradient(145deg, #071316 0%, #120d22 54%, #152011 100%);
}

.login-brand .brand-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
}

.login-brand .brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(18, 214, 163, 0.18), rgba(0, 107, 255, 0.2));
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
}

.brand-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-en {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.brand-pitch h1 {
  max-width: 520px;
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.brand-pitch p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.feature-list {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.feature-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 2px;
  background: var(--jade);
  box-shadow: 0 0 10px rgba(56, 217, 169, 0.8);
}

.feature-list strong {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 600;
}

.feature-list li div span:last-child {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg);
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 38px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.login-tab {
  flex: 1;
  padding: 10px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.login-tab:hover,
.login-tab.active {
  color: var(--accent);
}

.login-tab.active {
  border-bottom-color: var(--accent);
  font-weight: 650;
}

.login-box h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text);
}

.login-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.login-box .form-grid {
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
}

.login-box label {
  color: var(--text);
  font-weight: 600;
}

.login-box label[hidden] {
  display: none;
}

.login-box input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
}

.login-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 125, 114, 0.12);
  outline: none;
}

.login-box .auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.login-box .auth-actions .button {
  min-height: 44px;
  border-radius: 7px;
  padding: 0 20px;
  flex: 1;
}

.login-box .login-tip {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.placeholder-panel {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.placeholder-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 42px;
}

.placeholder-panel h2 {
  color: var(--text);
}

.placeholder-panel p {
  margin: 8px 0 0;
  font-size: 13px;
}

@media (max-width: 900px) {
  .auth-overlay.login-page {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 360px;
    padding: 36px 24px;
  }

  .brand-content {
    max-width: none;
  }

  .brand-head {
    margin-bottom: 34px;
  }

  .brand-pitch h1 {
    font-size: 28px;
  }

  .feature-list {
    display: none;
  }

  .login-panel {
    padding: 28px 20px;
  }
}

@media (max-width: 520px) {
  .login-brand {
    min-height: 300px;
  }

  .login-box {
    padding: 28px 20px;
  }
}
