:root {
  --ink: #0b1733;
  --ink-soft: #18284b;
  --porcelain: #f4f7fb;
  --paper: #ffffff;
  --line: #dce4ef;
  --line-strong: #c8d4e3;
  --cobalt: #2765e9;
  --cobalt-soft: #eaf0ff;
  --signal: #0fb59a;
  --signal-soft: #e5f8f4;
  --coral: #e76051;
  --coral-soft: #fff0ed;
  --amber: #c17a12;
  --amber-soft: #fff6df;
  --text: #17213a;
  --muted: #6c7890;
  --shadow: 0 16px 42px rgba(24, 40, 75, 0.08);
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-data: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--text);
  background: var(--porcelain);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select { font: inherit; }

button { color: inherit; }

button,
select { cursor: pointer; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(39, 101, 233, 0.28);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -48px;
  padding: 9px 14px;
  color: white;
  background: var(--cobalt);
  border-radius: 8px;
  transition: top 160ms ease;
}

.skip-link:focus { top: 16px; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-lockup--light { color: #f8fbff; }

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 8px;
  background: var(--cobalt);
  border-radius: 9px 9px 9px 3px;
  box-shadow: 0 8px 18px rgba(39, 101, 233, 0.28);
}

.brand-mark i {
  display: block;
  width: 3px;
  background: white;
  border-radius: 3px;
}

.brand-mark i:nth-child(1) { height: 7px; opacity: 0.72; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 10px; opacity: 0.86; }

.eyebrow,
.section-kicker,
.micro-label {
  margin: 0;
  color: var(--cobalt);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Login */
.login-page {
  min-height: 100vh;
  background: var(--paper);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
  min-height: 100vh;
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 48px clamp(48px, 7vw, 104px);
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.login-story::before,
.login-story::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.login-story::before {
  width: 330px;
  height: 330px;
  right: -170px;
  top: 14%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 120px rgba(255, 255, 255, 0.018);
}

.login-story::after {
  left: 0;
  right: 0;
  bottom: 22%;
  height: 1px;
  opacity: 0.16;
  background: repeating-linear-gradient(90deg, transparent 0 17px, white 17px 20px);
}

.login-copy { position: relative; z-index: 1; max-width: 600px; }

.login-copy .eyebrow { color: #70ddcb; }

.login-copy h1 {
  margin: 18px 0 26px;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 760;
}

.login-copy > p:last-child {
  max-width: 430px;
  margin: 0;
  color: #b9c5da;
  font-size: 17px;
  line-height: 1.8;
}

.login-version {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #8290aa;
  font-family: var(--font-data);
  font-size: 12px;
}

.signal-map {
  position: absolute;
  z-index: 0;
  top: 115px;
  right: clamp(42px, 7vw, 100px);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(-7deg);
  opacity: 0.72;
}

.signal-map__source {
  padding: 6px 9px;
  color: #b8c4da;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  font-family: var(--font-data);
  font-size: 9px;
}

.signal-map__hub {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  background: var(--cobalt);
  border-radius: 50%;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(39, 101, 233, 0.15);
}

.signal-map__line {
  position: relative;
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.signal-map__line i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  background: #70ddcb;
  border-radius: 50%;
  animation: signal-travel 2.6s linear infinite;
}

.login-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px;
  background: var(--paper);
}

.login-form-wrap { width: min(390px, 100%); }

.mobile-brand { display: none; }

.login-form-wrap h2 {
  margin: 8px 0 8px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.login-hint { margin: 0 0 34px; color: var(--muted); }

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  color: #34415c;
  font-size: 13px;
  font-weight: 650;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--text);
  background: #fbfcfe;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus {
  background: white;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(39, 101, 233, 0.09);
  outline: none;
}

.form-error { min-height: 22px; margin: -6px 0 12px; color: var(--coral); font-size: 13px; }

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 50px;
  padding: 0 18px;
  color: white;
  background: var(--cobalt);
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(39, 101, 233, 0.2);
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.primary-button:hover { background: #1d58d2; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.primary-button--wide { width: 100%; }

.security-note { margin: 22px 0 0; color: #8994a8; font-size: 12px; text-align: center; }
.security-note span { margin-right: 6px; color: var(--signal); font-size: 8px; }

/* Dashboard */
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 232px;
  padding: 29px 20px 22px;
  color: white;
  background: var(--ink);
}

.sidebar::after {
  content: "";
  position: absolute;
  left: 46px;
  top: 92px;
  bottom: 98px;
  width: 1px;
  opacity: 0.11;
  background: repeating-linear-gradient(180deg, white 0 3px, transparent 3px 12px);
  pointer-events: none;
}

.sidebar-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 56px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 7px 12px;
  color: #aebbd1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.nav-item:hover { color: white; background: rgba(255, 255, 255, 0.045); }
.nav-item.is-active { color: white; background: #17284c; border-color: rgba(255, 255, 255, 0.08); }

.nav-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #7d8ca6;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.nav-item.is-active .nav-icon { color: #8cf0df; background: rgba(15, 181, 154, 0.13); }

.sidebar-signal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 13px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
}

.sidebar-signal strong,
.sidebar-signal small { display: block; }
.sidebar-signal strong { font-size: 12px; }
.sidebar-signal small { margin-top: 2px; color: #7f8da6; font-size: 10px; }

.online-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--signal);
  border: 2px solid rgba(15, 181, 154, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(15, 181, 154, 0.1);
}

.online-dot.is-offline { background: var(--coral); border-color: rgba(231, 96, 81, 0.18); box-shadow: 0 0 0 5px rgba(231, 96, 81, 0.1); }
.online-dot--large { width: 12px; height: 12px; }

.main-content {
  width: calc(100% - 232px);
  min-height: 100vh;
  margin-left: 232px;
  padding: 34px clamp(28px, 4vw, 64px) 64px;
}

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

.topbar h1 {
  margin: 4px 0 3px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.page-subtitle { margin: 0; color: var(--muted); }

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

.quiet-button,
.avatar-button,
.page-button,
.detail-button {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  color: #47536c;
}

.quiet-button:hover,
.page-button:hover:not(:disabled),
.detail-button:hover { color: var(--cobalt); border-color: #aabce5; background: #f8faff; }

.refresh-icon { display: inline-block; font-size: 18px; line-height: 1; }
.is-spinning .refresh-icon { animation: spin 650ms linear infinite; }

.avatar-button {
  width: 38px;
  height: 38px;
  padding: 0;
  color: white;
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  border-radius: 9px;
  font-weight: 700;
}

.avatar-button:hover { background: var(--coral); border-color: var(--coral); }

.signal-console {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 18px 22px;
  color: #dbe5f6;
  background: var(--ink-soft);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 23, 51, 0.12);
}

.signal-console__identity { display: flex; align-items: center; gap: 14px; }
.signal-console__identity span,
.signal-console__identity strong { display: block; }
.signal-console__identity .micro-label { color: #8293b2; }
.signal-console__identity strong { margin-top: 2px; color: white; font-size: 15px; }

.delivery-line {
  position: relative;
  height: 20px;
  overflow: hidden;
}

.delivery-line > span {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 1px;
  background: rgba(183, 200, 229, 0.18);
}

.delivery-line i {
  position: absolute;
  top: 6px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  animation: signal-travel 3.6s linear infinite;
}

.delivery-line i:nth-child(2) { animation-delay: -1.2s; opacity: 0.65; }
.delivery-line i:nth-child(3) { animation-delay: -2.4s; opacity: 0.35; }

.signal-console__meta { display: flex; gap: 24px; color: #93a3be; font-size: 11px; }
.signal-console__meta span { display: grid; gap: 2px; white-space: nowrap; }
.signal-console__meta strong { color: white; font-family: var(--font-data); font-size: 12px; font-weight: 650; }

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

.metric-card {
  position: relative;
  min-height: 128px;
  padding: 19px 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.metric-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: #bdc9db;
}

.metric-card--primary::after { background: var(--cobalt); }
.metric-card--warning::after { background: var(--coral); }
.metric-card > span { display: block; color: var(--muted); font-size: 12px; }
.metric-card > strong { display: block; margin: 5px 0 1px; font-family: var(--font-data); font-size: 30px; line-height: 1.25; letter-spacing: -0.05em; }
.metric-card > small { color: #8a96aa; font-size: 11px; }

.data-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.is-hidden { display: none !important; }

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf1f6;
}

.panel-heading h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -0.015em; }
.section-kicker { color: #8793a8; font-size: 9px; }
.result-count { margin: 0; color: var(--muted); font-size: 12px; }
.result-count strong { color: var(--text); font-family: var(--font-data); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid #edf1f6;
}

.search-box {
  display: flex;
  flex: 1 1 320px;
  align-items: center;
  gap: 8px;
  max-width: 430px;
  height: 38px;
  padding: 0 11px;
  color: #8b97aa;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-box:focus-within { background: white; border-color: #9cb3e5; box-shadow: 0 0 0 3px rgba(39, 101, 233, 0.07); }
.search-box input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: #a1abbb; }

.select-field select,
.date-field input {
  height: 38px;
  padding: 0 30px 0 11px;
  color: #46536d;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.select-field select:focus,
.date-field input:focus { border-color: #9cb3e5; box-shadow: 0 0 0 3px rgba(39, 101, 233, 0.07); }

.date-field { display: inline-flex; align-items: center; gap: 7px; color: #8b96a9; font-size: 11px; }
.date-field input { padding-right: 8px; }

.table-wrap { position: relative; min-height: 160px; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { padding: 12px 18px; color: #7c879b; background: #fbfcfe; font-size: 11px; font-weight: 650; text-align: left; }
td { padding: 15px 18px; border-top: 1px solid #edf1f6; vertical-align: middle; }
tbody tr { transition: background 120ms ease; }
tbody tr:hover { background: #fafcff; }

#recipients-panel th:nth-child(1) { width: 27%; }
#recipients-panel th:nth-child(2) { width: 14%; }
#recipients-panel th:nth-child(3) { width: 21%; }
#recipients-panel th:nth-child(4) { width: 18%; }
#recipients-panel th:nth-child(5) { width: 20%; }
#logs-panel th:nth-child(1) { width: 18%; }
#logs-panel th:nth-child(2) { width: 18%; }
#logs-panel th:nth-child(3) { width: 31%; }
#logs-panel th:nth-child(4) { width: 13%; }
#logs-panel th:nth-child(5) { width: 9%; }
#logs-panel th:nth-child(6) { width: 11%; }

.person-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person-avatar { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; color: var(--cobalt); background: var(--cobalt-soft); border-radius: 9px; font-size: 13px; font-weight: 750; }
.person-cell div { min-width: 0; }
.person-cell strong,
.person-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-cell strong { color: #24304a; font-size: 13px; }
.person-cell small { margin-top: 2px; color: #8a95a8; font-family: var(--font-data); font-size: 10px; }

.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; margin-right: 6px; background: currentColor; border-radius: 50%; }
.status-badge--enabled,
.status-badge--sent { color: #07816d; background: var(--signal-soft); }
.status-badge--disabled,
.status-badge--unknown { color: #758197; background: #eef2f6; }
.status-badge--failed { color: #c74436; background: var(--coral-soft); }
.status-badge--pending,
.status-badge--retry { color: #9a620f; background: var(--amber-soft); }
.status-badge--sending { color: #285ebf; background: var(--cobalt-soft); }

.muted-cell { color: #79859a; font-size: 12px; }
.muted-line { display: block; margin-top: 3px; color: #8b96a8; font-size: 10px; }
.count-value { display: block; color: #2b3852; font-family: var(--font-data); font-size: 13px; }
.single-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.message-preview { overflow: hidden; color: #4b5870; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.attempt-value { color: #5d6980; font-family: var(--font-data); font-size: 11px; }

.detail-button,
.page-button {
  min-height: 30px;
  padding: 0 10px;
  color: #58657d;
  border-radius: 7px;
  font-size: 11px;
}

.page-button:disabled { cursor: not-allowed; opacity: 0.42; }

.table-state {
  display: grid;
  min-height: 130px;
  place-items: center;
  color: #8a95a8;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 24px;
  border-top: 1px solid #edf1f6;
}

.pagination__summary { color: #8792a6; font-family: var(--font-data); font-size: 11px; }
.pagination__controls { display: flex; gap: 7px; }

.log-dialog {
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 26px;
  color: var(--text);
  background: white;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 28px 80px rgba(11, 23, 51, 0.28);
}

.log-dialog::backdrop { background: rgba(6, 15, 34, 0.58); backdrop-filter: blur(3px); }
.log-dialog h2 { margin: 4px 0 22px; font-size: 24px; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; padding: 0; color: #788399; background: #f3f6f9; border: 0; border-radius: 7px; font-size: 21px; }
.dialog-close:hover { color: var(--text); background: #e9eef4; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; }
.detail-grid div { padding: 12px 14px; background: #f8fafc; border: 1px solid #edf1f5; border-radius: 8px; }
.detail-grid dt { margin-bottom: 5px; color: #8590a3; font-size: 10px; }
.detail-grid dd { margin: 0; font-size: 12px; word-break: break-all; }
.detail-block { margin-top: 13px; }
.detail-block h3 { margin: 0 0 7px; color: #68758b; font-size: 11px; }
.detail-block pre,
.detail-block p { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; background: #f8fafc; border: 1px solid #e8edf4; border-radius: 8px; font-family: var(--font-body); font-size: 12px; line-height: 1.75; }
.detail-block--error p { color: #a83c32; background: var(--coral-soft); border-color: #f3d4ce; }

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  padding: 11px 15px;
  color: white;
  background: var(--ink-soft);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(11, 23, 51, 0.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes signal-travel {
  from { left: 0; transform: translateX(-100%); }
  to { left: 100%; transform: translateX(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-console { grid-template-columns: auto 1fr; }
  .signal-console__meta { grid-column: 1 / -1; justify-content: flex-end; }
  .toolbar--logs { flex-wrap: wrap; }
  .toolbar--logs .search-box { max-width: none; }
}

@media (max-width: 800px) {
  .login-shell { display: block; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 32px 22px; }
  .mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 58px; color: var(--ink); font-weight: 750; }

  .sidebar {
    position: sticky;
    top: 0;
    right: 0;
    width: 100%;
    height: 66px;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
  }
  .sidebar::after,
  .sidebar-signal,
  .sidebar .brand-lockup > span:last-child { display: none; }
  .sidebar-nav { display: flex; flex: 1; justify-content: center; gap: 5px; margin: 0; }
  .nav-item { width: auto; min-height: 40px; padding: 6px 11px; }
  .nav-icon { display: none; }
  .main-content { width: 100%; margin-left: 0; padding: 24px 16px 48px; }
  .signal-console { grid-template-columns: 1fr; gap: 14px; }
  .delivery-line { order: 3; }
  .signal-console__meta { grid-column: auto; justify-content: flex-start; }
  .toolbar { flex-wrap: wrap; padding: 13px 15px; }
  .toolbar .search-box { max-width: none; flex-basis: 100%; }
  .panel-heading { padding-inline: 16px; }
  .pagination { padding-inline: 16px; }

  table,
  thead,
  tbody,
  tr,
  th,
  td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 17px 16px; border-top: 1px solid #edf1f6; }
  td { min-width: 0; padding: 0; border: 0; }
  td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #929caf; font-size: 9px; }
  #recipients-panel td:first-child,
  #logs-panel td:nth-child(3) { grid-column: 1 / -1; }
  #logs-panel td:last-child { align-self: end; text-align: right; }
  .message-preview { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

@media (max-width: 520px) {
  .topbar { align-items: center; }
  .quiet-button span:last-child { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 111px; padding: 15px; }
  .metric-card > strong { font-size: 25px; }
  .signal-console__meta { justify-content: space-between; gap: 10px; }
  .date-field { flex: 1 1 130px; }
  .date-field input { width: 100%; }
  .select-field { flex: 1; }
  .select-field select { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .pagination__summary { display: none; }
  .pagination { justify-content: flex-end; }
}

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