:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f9fafb;
  --ink: #18202f;
  --muted: #657085;
  --line: #dfe5ee;
  --blue: #246bfe;
  --blue-dark: #1552c7;
  --green: #1c8b5d;
  --amber: #b06900;
  --red: #c83349;
  --shadow: 0 14px 40px rgba(24, 32, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

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

button,
.link-button {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

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

button svg,
.link-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

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

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

.secondary,
.link-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.secondary:hover,
.link-button:hover {
  border-color: #bcc7d8;
}

.ghost {
  background: transparent;
  color: var(--muted);
}

.ghost:hover {
  background: #eef2f8;
  color: var(--ink);
}

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

.sidebar {
  background: #eef3f8;
  border-right: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
}

.sidebar-top {
  display: grid;
  gap: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

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

.brand-lockup span {
  display: inline-flex;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #18202f;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.icon-text-btn {
  width: 100%;
  background: #18202f;
  color: #fff;
}

.campaign-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.campaign-item {
  width: 100%;
  min-height: 74px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  text-align: left;
  align-content: center;
  gap: 5px;
  color: var(--ink);
}

.campaign-item:hover,
.campaign-item.active {
  background: #fff;
  border-color: #cad4e2;
}

.campaign-item.pending {
  border-color: rgba(36, 107, 254, .35);
  box-shadow: inset 3px 0 0 var(--blue);
}

.campaign-item strong {
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.campaign-item small {
  color: var(--blue-dark);
  font-size: 12px;
}

.logout-btn {
  margin-top: auto;
  width: 100%;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 25px;
  line-height: 1.2;
}

h2 {
  font-size: 16px;
}

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

.topbar-actions select {
  width: 160px;
}

input,
select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
  min-width: 0;
}

textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.editor:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, .12);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.metric-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  box-shadow: 0 10px 28px rgba(24, 32, 47, .05);
}

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

.metric-grid strong {
  font-size: 27px;
  line-height: 1;
}

.metric-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  height: 42px;
  padding: 0 16px;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--blue);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.compose-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.settings-panel,
.editor-panel,
.chart-panel,
.event-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.settings-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

label input {
  width: 100%;
  color: var(--ink);
  font-size: 14px;
}

label select {
  width: 100%;
  color: var(--ink);
  font-size: 14px;
}

.resource-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-heading strong,
.section-heading span {
  display: block;
}

.section-heading strong {
  font-size: 13px;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.resource-list {
  display: grid;
  gap: 9px;
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.3fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}

.resource-row.has-error {
  border-color: rgba(200, 51, 73, .55);
  background: #fff7f8;
}

.resource-row .resource-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.resource-row select {
  width: 150px;
}

.check-label {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
}

.check-label input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.resource-row button {
  height: 34px;
}

.resource-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.resource-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.resource-status.ok {
  color: var(--green);
}

.resource-status.warn {
  color: var(--amber);
}

.resource-status.error {
  color: var(--red);
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.settings-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.settings-completion {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.settings-completion strong,
.settings-completion span {
  display: block;
}

.settings-completion span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.completion-bar {
  height: 8px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.completion-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.settings-page-grid .settings-panel {
  min-width: 0;
}

.settings-page-grid textarea {
  min-height: 92px;
}

.management-grid h2 {
  margin-bottom: 2px;
}

.group-list {
  display: grid;
  gap: 8px;
  max-height: 460px;
  overflow: auto;
}

.group-item {
  min-height: 64px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
  display: grid;
  gap: 4px;
  text-align: left;
  color: var(--ink);
}

.group-item.active,
.group-item:hover {
  border-color: #bcc7d8;
  background: #fff;
}

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

.group-item strong {
  font-size: 14px;
}

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

.group-item .item-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.group-item .item-actions button {
  height: 32px;
}

.compact-table {
  margin-top: 12px;
  max-height: 520px;
}

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

.editor-panel {
  overflow: hidden;
}

.editor-toolbar {
  min-height: 46px;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  overflow-x: auto;
}

.toolbar-select {
  height: 32px;
  min-width: 82px;
  border: 1px solid #e3e8f1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 26px 0 9px;
  font-size: 12px;
}

.toolbar-select.wide {
  min-width: 128px;
}

.toolbar-select.narrow {
  min-width: 70px;
}

.toolbar-select.module-select {
  min-width: 132px;
}

.editor-toolbar button {
  width: 34px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  background: #fff;
  border-color: #e3e8f1;
  color: var(--ink);
}

.color-swatches {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 3px;
}

.editor-toolbar .color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border-color: #d5dce7;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .78);
}

.editor {
  min-height: 520px;
  max-height: 680px;
  padding: 22px;
  outline: none;
  border: 1px solid transparent;
  line-height: 1.7;
  font-size: 15px;
  overflow: auto;
}

.editor-footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

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

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

.autosave-status.ok {
  color: var(--green);
}

.autosave-status.warn {
  color: var(--amber);
}

.autosave-status.error {
  color: var(--red);
}

.editor-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.compact-btn {
  height: 30px;
  padding: 0 9px;
  border-color: #e3e8f1;
  font-size: 12px;
}

.send-check-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.check-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}

.check-state {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted);
}

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

.check-item strong {
  font-size: 12px;
  line-height: 1.35;
}

.check-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.check-item.ok .check-state {
  background: var(--green);
}

.check-item.warn {
  border-color: rgba(176, 105, 0, .32);
  background: #fffaf1;
}

.check-item.warn .check-state {
  background: var(--amber);
}

.check-item.error {
  border-color: rgba(200, 51, 73, .38);
  background: #fff7f8;
}

.check-item.error .check-state {
  background: var(--red);
}

.editor p {
  margin: 0 0 14px;
}

.editor h1,
.editor h2,
.editor h3,
.editor h4 {
  margin: 20px 0 10px;
  line-height: 1.35;
}

.editor ul,
.editor ol {
  margin: 0 0 14px 22px;
  padding: 0;
}

.editor li {
  margin: 0 0 7px;
}

.mail-button,
.editor .mail-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(17, 24, 39, .16);
}

.mail-kicker,
.editor .mail-kicker {
  margin: 0 0 8px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mail-section-title,
.editor .mail-section-title {
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
  line-height: 1.35;
}

.mail-subtitle,
.editor .mail-subtitle {
  margin: 18px 0 9px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.4;
}

.mail-muted,
.editor .mail-muted,
.mail-small-note,
.editor .mail-small-note,
.mail-report-meta,
.editor .mail-report-meta {
  color: #6b7280;
  font-size: 13px;
}

.mail-divider,
.editor .mail-divider {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: #e5e7eb;
}

.mail-callout,
.editor .mail-callout {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid #246bfe;
  background: #f4f7ff;
  color: #18202f;
}

.mail-callout p,
.editor .mail-callout p,
.mail-callout div,
.editor .mail-callout div {
  margin: 6px 0 0;
}

.mail-report-card,
.editor .mail-report-card {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fbfcfe;
}

.mail-report-card h3,
.editor .mail-report-card h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.mail-report-body,
.editor .mail-report-body {
  margin: 0 0 12px;
}

.mail-action-row,
.editor .mail-action-row {
  margin: 14px 0 0;
}

.mail-link-list,
.editor .mail-link-list {
  margin-bottom: 16px;
}

.mail-tag,
.editor .mail-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f8;
  color: #4b5563;
  font-size: 12px;
}

.mail-quote,
.editor .mail-quote {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 3px solid #bcc7d8;
  color: #4b5563;
  background: #fbfcfe;
  font-style: italic;
}

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

.file-picker {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.file-picker input {
  max-width: 340px;
  padding-top: 7px;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  box-shadow: var(--shadow);
}

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

th,
td {
  height: 42px;
  border-bottom: 1px solid #edf1f6;
  padding: 0 12px;
  text-align: left;
  font-size: 13px;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 650;
}

td {
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--muted);
  font-size: 12px;
}

.status.sent,
.status.delivered,
.status.opened,
.status.clicked {
  background: #e7f6ee;
  color: var(--green);
}

.status.failed,
.status.bounced,
.status.complained {
  background: #fdebee;
  color: var(--red);
}

.status.unsubscribed {
  background: #fff3df;
  color: var(--amber);
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 16px;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-summary article {
  min-height: 96px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 32, 47, .05);
}

.analytics-summary span,
.analytics-summary small,
.chart-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.analytics-summary strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
  line-height: 1;
}

.chart-panel,
.event-panel {
  padding: 16px;
  min-height: 330px;
}

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

.chart-head strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: 280px;
}

.event-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 282px;
  overflow: auto;
}

.event {
  border: 1px solid #edf1f6;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.event:hover {
  border-color: #cad4e2;
  background: #fff;
}

.event strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

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

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 420px;
  min-height: 42px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #18202f;
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 20;
}

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

.preview-dialog {
  width: min(920px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--panel);
}

.preview-dialog::backdrop {
  background: rgba(24, 32, 47, .38);
}

.utility-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: auto;
}

.utility-dialog::backdrop {
  background: rgba(24, 32, 47, .38);
}

.dialog-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head span,
.dialog-head strong {
  display: block;
}

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

.dialog-head strong {
  margin-top: 2px;
  font-size: 18px;
}

.dialog-head button {
  width: 34px;
  padding: 0;
}

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

.review-grid article {
  min-height: 58px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 10px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}

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

.review-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.dialog-table {
  max-height: 260px;
  box-shadow: none;
}

.dialog-table table {
  min-width: 520px;
}

.import-error-list {
  display: grid;
  gap: 4px;
  color: var(--red);
  font-size: 12px;
}

.import-error-list strong,
.import-error-list span {
  display: block;
}

.review-check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 260px;
  overflow: auto;
}

.confirm-label {
  color: var(--ink);
}

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

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

.preview-head span,
.preview-head strong {
  display: block;
}

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

.preview-head strong {
  margin-top: 3px;
  font-size: 15px;
}

.preview-dialog iframe {
  width: 100%;
  height: calc(100% - 61px);
  border: 0;
  background: #fff;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(36, 107, 254, .12), transparent 36%),
    linear-gradient(315deg, rgba(28, 139, 93, .12), transparent 40%),
    var(--bg);
}

.login-shell {
  width: min(420px, calc(100vw - 32px));
}

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

.login-panel h1 {
  font-size: 24px;
}

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

.form-error {
  color: var(--red);
  min-height: 20px;
  margin: 0;
}

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

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

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .campaign-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 260px);
    overflow-x: auto;
  }

  .logout-btn {
    width: auto;
  }

  .compose-grid,
  .analytics-grid,
  .analytics-summary,
  .management-grid,
  .settings-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 16px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .table-toolbar,
  .file-picker {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions input,
  .topbar-actions select,
  .topbar-actions button,
  .table-toolbar a,
  .file-picker input,
  .file-picker button {
    width: 100%;
  }

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

  .editor {
    min-height: 360px;
    max-height: 560px;
  }

  .editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-footer-actions,
  .editor-footer-actions button {
    width: 100%;
  }

  .editor-footer-actions {
    flex-direction: column;
  }

  .send-check-list {
    grid-template-columns: 1fr;
  }

  .settings-completion,
  .review-grid,
  .review-check-list {
    grid-template-columns: 1fr;
  }

  .resource-row {
    grid-template-columns: 1fr;
  }
}
