:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #172033;
  --muted: #667085;
  --line: #dfe6ef;
  --blue: #2f6df6;
  --blue-strong: #1d4ed8;
  --green: #16a34a;
  --amber: #d97706;
  --rose: #e11d48;
  --black: #111827;
  --shadow: 0 16px 40px rgba(25, 40, 70, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1120px;
  background: var(--bg);
  color: var(--ink);
}

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

button,
a.button {
  min-height: 38px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 17px;
}

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

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

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #344054;
  padding: 11px 12px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.nav-item:hover,
.nav-item.active {
  background: #eef4ff;
  color: var(--blue-strong);
  font-weight: 700;
}

.sidebar-section {
  margin-top: 28px;
}

.section-label {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 10px 4px;
}

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

.platform-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 13px;
}

.platform-pill i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
}

.platform-pill span:first-child {
  display: flex;
  align-items: center;
}

.platform-pill small {
  color: var(--muted);
}

.guardrail {
  margin-top: 28px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  line-height: 1.5;
}

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

.outreach-guardrail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
}

.outreach-guardrail strong,
.outreach-guardrail span {
  display: block;
}

.outreach-guardrail div > span {
  margin-top: 3px;
  color: #3f6650;
  font-size: 12px;
}

.workspace {
  min-width: 0;
  padding: 26px 28px 42px;
}

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

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

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

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

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(47, 109, 246, 0.22);
}

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

.button.secondary {
  color: var(--blue-strong);
  background: #eaf1ff;
}

.button.ghost {
  color: #344054;
  border-color: var(--line);
  background: #fff;
}

.button.danger {
  color: #fff;
  background: var(--rose);
}

.button.small {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.button:disabled,
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.content {
  display: grid;
  gap: 18px;
}

.content > *,
.panel {
  min-width: 0;
}

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

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-height: 126px;
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 34px;
  margin: 12px 0 4px;
}

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

.metric.blue {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.metric.blue span {
  color: rgba(255, 255, 255, 0.84);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.panel-header h2,
.panel-header h3 {
  margin-bottom: 0;
}

.dark-module {
  padding: 22px;
  border-radius: 8px;
  background: #101827;
  color: #fff;
  min-height: 176px;
}

.dark-module p {
  color: #aab6ca;
  margin-bottom: 18px;
}

.module-stats {
  display: flex;
  gap: 24px;
}

.module-stats strong {
  display: block;
  font-size: 23px;
}

.module-stats span {
  color: #aab6ca;
  font-size: 12px;
}

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

.quick-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  min-height: 118px;
  text-align: left;
}

.quick-card:hover {
  border-color: #9db8ff;
  box-shadow: 0 10px 22px rgba(47, 109, 246, 0.12);
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
}

.quick-card span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.chart {
  display: flex;
  align-items: end;
  gap: 13px;
  height: 210px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bar {
  flex: 1;
  min-width: 28px;
  display: grid;
  align-items: end;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.bar span {
  display: block;
  border-radius: 6px 6px 0 0;
  background: #9ec5ff;
  min-height: 6px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) var(--a), var(--green) var(--a) var(--b), #e5e7eb var(--b));
}

.donut-center {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  text-align: center;
}

.donut-center strong {
  display: block;
  font-size: 24px;
}

.legend {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 8px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  white-space: nowrap;
}

th {
  color: #475467;
  background: #f8fafc;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f8fbff;
}

th:nth-child(1),
td:nth-child(1) {
  width: 78px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 76px;
}

th:nth-child(3),
td:nth-child(3) {
  min-width: 118px;
}

th:nth-child(4),
td:nth-child(4) {
  min-width: 390px;
}

th:nth-child(5),
td:nth-child(5) {
  min-width: 132px;
}

th:nth-child(8),
td:nth-child(8),
th:nth-child(9),
td:nth-child(9) {
  min-width: 126px;
}

.truncate {
  max-width: 430px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.truncate.compact {
  max-width: 240px;
}

.table-subline {
  display: block;
  max-width: 220px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
}

.outreach-table table {
  min-width: 1220px;
}

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

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

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

.outreach-table th:nth-child(4),
.outreach-table td:nth-child(4) {
  min-width: 210px;
}

.outreach-table th:nth-child(5),
.outreach-table td:nth-child(5) {
  min-width: 220px;
}

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

.outreach-table th:nth-child(7),
.outreach-table td:nth-child(7) {
  min-width: 300px;
}

.outreach-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.badge.a {
  color: #9f1239;
  background: #ffe4e6;
}

.badge.b {
  color: #92400e;
  background: #fef3c7;
}

.badge.c {
  color: #166534;
  background: #dcfce7;
}

.badge.status {
  color: #344054;
  background: #eef2f7;
}

.badge.active {
  color: #166534;
  background: #dcfce7;
}

.badge.paused {
  color: #92400e;
  background: #fef3c7;
}

.badge.completed {
  color: #1d4ed8;
  background: #dbeafe;
}

.badge.outreach-not_started {
  color: #475467;
  background: #f2f4f7;
}

.badge.outreach-draft_ready {
  color: #1d4ed8;
  background: #dbeafe;
}

.badge.outreach-sent {
  color: #92400e;
  background: #fef3c7;
}

.badge.outreach-replied,
.badge.outreach-qualified {
  color: #0f766e;
  background: #ccfbf1;
}

.badge.outreach-contact_received,
.badge.outreach-verified {
  color: #166534;
  background: #dcfce7;
}

.badge.outreach-closed {
  color: #9f1239;
  background: #ffe4e6;
}

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

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

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

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

label {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.checkbox-line input,
td input[type="checkbox"] {
  width: auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: #8db0ff;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.12);
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(130px, 0.6fr));
  gap: 10px;
  margin-bottom: 14px;
}

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

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

.task-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.keyword-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.chip.neutral {
  color: #475467;
  background: #f2f4f7;
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.preview-box {
  max-height: 480px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

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

.template-card p {
  color: #475467;
  line-height: 1.6;
  margin-bottom: 12px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  z-index: 20;
}

.drawer {
  position: fixed;
  z-index: 21;
  top: 0;
  right: 0;
  width: 520px;
  max-width: calc(100vw - 32px);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.18);
  padding: 22px;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.drawer h2 {
  margin-bottom: 4px;
}

.drawer-section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.drawer-toolbar {
  margin-top: 10px;
}

.outreach-problem {
  margin: 14px 0;
  line-height: 1.65;
}

.outreach-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.outreach-progress span {
  min-width: 0;
  padding: 8px 2px;
  border-bottom: 3px solid #dfe6ef;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.outreach-progress span.done {
  border-color: var(--green);
  color: #166534;
  font-weight: 700;
}

.policy-strip {
  padding: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.policy-strip strong,
.policy-strip span {
  display: block;
}

.policy-strip span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
}

.verified-line {
  margin: 12px 0 0;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  min-width: 260px;
  max-width: 420px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.muted {
  color: var(--muted);
}

.small-text {
  font-size: 12px;
}

.danger-text {
  color: var(--rose);
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.inline-edit {
  width: auto;
  min-width: 132px;
  padding: 7px 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--blue-strong);
  border-color: #9db8ff;
}

.icon-button svg,
.button svg {
  width: 16px;
  height: 16px;
}

.action-field {
  align-content: end;
}

.integration-panel {
  min-height: 100%;
}

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

.integration-item,
.wecom-config-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 12px;
}

.integration-item strong,
.wecom-config-item strong {
  color: var(--muted);
  font-size: 11px;
}

.status-light {
  width: 9px;
  height: 9px;
  display: block;
  border-radius: 50%;
  background: #d0d5dd;
}

.status-light.ready {
  background: var(--green);
  box-shadow: 0 0 0 3px #dcfce7;
}

.callback-address {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 11px 12px;
  border-left: 3px solid var(--blue);
  background: #f6f9ff;
}

.callback-address span {
  color: var(--muted);
  font-size: 11px;
}

.callback-address code {
  overflow: hidden;
  color: #344054;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reminder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.phone-list-header > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.phone-filters {
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(138px, 1fr)) auto;
  margin-bottom: 12px;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.bulk-selection {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.bulk-toolbar select {
  width: auto;
  min-width: 138px;
  padding: 6px 30px 6px 9px;
}

.compact-number {
  width: 64px;
  padding: 6px 8px;
}

.danger-outline {
  margin-left: auto;
  color: var(--rose) !important;
  border-color: #fecdd3 !important;
}

.phone-table {
  min-width: 1380px;
}

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

.phone-table th:nth-child(2),
.phone-table td:nth-child(2) {
  min-width: 210px;
}

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

.phone-table th:nth-child(4),
.phone-table td:nth-child(4) {
  min-width: 220px;
}

.phone-table th:nth-child(5),
.phone-table td:nth-child(5),
.phone-table th:nth-child(6),
.phone-table td:nth-child(6),
.phone-table th:nth-child(7),
.phone-table td:nth-child(7) {
  min-width: 126px;
}

.phone-table th:nth-child(8),
.phone-table td:nth-child(8) {
  min-width: 146px;
}

.phone-table th:nth-child(9),
.phone-table td:nth-child(9) {
  min-width: 210px;
}

.phone-number {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.phone-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone-row-actions select {
  width: 128px;
  padding: 7px 28px 7px 8px;
}

.badge.consent-confirmed,
.badge.consent-existing_customer,
.badge.phone-connected {
  color: #166534;
  background: #dcfce7;
}

.badge.consent-unknown,
.badge.phone-imported,
.badge.phone-ready {
  color: #475467;
  background: #eef2f7;
}

.badge.phone-assigned {
  color: #1d4ed8;
  background: #dbeafe;
}

.badge.phone-application_sent {
  color: #92400e;
  background: #fef3c7;
}

.badge.phone-declined,
.badge.phone-invalid,
.badge.phone-do_not_contact,
.badge.consent-do_not_contact {
  color: #9f1239;
  background: #ffe4e6;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.activity-list {
  display: grid;
}

.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 138px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f7;
}

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

.activity-row div > strong,
.activity-row div > span {
  display: block;
}

.activity-row div > span,
.activity-row time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.activity-row time {
  margin-top: 0;
  text-align: right;
}

.team-wecom-table {
  min-width: 900px;
}

.team-wecom-table input {
  min-width: 160px;
  padding: 7px 8px;
}

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

.wecom-config-item code {
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-callback {
  margin-top: 14px;
}

.wecom-config-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-page {
  min-width: 0;
  min-height: 100vh;
  background: #eef3f9;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 26px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(31, 42, 68, 0.12);
}

.login-brand {
  margin: 0;
}

.login-panel h1 {
  margin: 4px 0 0;
  font-size: 26px;
  letter-spacing: 0;
}

.login-form {
  display: grid;
  gap: 16px;
}

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

.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #b42318;
  font-size: 13px;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .brand {
    margin-bottom: 14px;
  }

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

  .nav-item {
    padding: 10px;
  }

  .sidebar-section,
  .sidebar > .guardrail {
    display: none;
  }

  .workspace {
    padding: 20px;
  }

  .metric-grid,
  .grid-2,
  .grid-3,
  .quick-cards,
  .import-layout,
  .form-grid,
  .form-grid.three,
  .filters {
    grid-template-columns: 1fr;
  }

  .integration-status-grid,
  .wecom-config-grid,
  .reminder-row {
    grid-template-columns: 1fr;
  }

  .phone-filters {
    grid-template-columns: 1fr;
  }

  .bulk-toolbar {
    align-items: stretch;
  }

  .bulk-toolbar > * {
    flex: 1 1 150px;
  }

  .bulk-toolbar .compact-number {
    flex: 0 0 64px;
  }

  .danger-outline {
    margin-left: 0;
  }

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

  .activity-row time {
    grid-column: 1 / -1;
    text-align: left;
  }

  .topbar {
    display: grid;
  }

  .outreach-guardrail {
    align-items: flex-start;
  }

  .outreach-progress {
    grid-template-columns: 1fr;
  }

  .outreach-progress span {
    text-align: left;
  }
}
