﻿@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap");

:root {
  --postly-blue: #002d72;
  --postly-blue-dark: #061a3f;
  --postly-ink: #17233f;
  --postly-line: #cbd7e4;
  --postly-bg: #eef2f6;
  --postly-error: #b42318;
  --tps-brand-primary: #002d72;
  --tps-brand-secondary: #c8102e;
  --tps-brand-gold: #f2b84b;
  --tps-postcard-font: "Barlow", Arial, sans-serif;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--postly-ink);
  background:
    linear-gradient(90deg, var(--tps-brand-secondary) 0 4px, transparent 4px),
    linear-gradient(135deg, #ffffff 0%, var(--postly-bg) 56%, #dfe7ef 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-panel {
  width: min(100%, 416px);
  min-height: 548px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border: 1px solid rgba(0, 45, 114, 0.16);
  border-top: 5px solid var(--tps-brand-secondary);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(6, 26, 63, 0.14);
}

.login-panel.compact {
  min-height: 420px;
  align-items: center;
  text-align: center;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 34px;
}

.service-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.service-lockup span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.service-lockup strong {
  color: var(--postly-blue-dark);
  font-size: 1rem;
  line-height: 1.05;
  font-weight: 900;
}

.service-lockup small {
  color: var(--tps-brand-secondary);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.service-seal {
  flex: 0 0 auto;
  display: block;
  width: 48px;
  height: 54px;
  object-fit: contain;
}

.wordmark {
  display: block;
  width: 158px;
  max-width: 62%;
  height: auto;
}

.signal-icon {
  width: 92px;
  height: 104px;
  object-fit: contain;
  margin: 0 0 22px;
}

.compact .signal-icon {
  margin-top: 28px;
}

.signal-icon.small {
  width: 62px;
  height: 70px;
  margin: 0;
}

h1 {
  margin: 0 0 28px;
  color: var(--postly-blue-dark);
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 800;
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--postly-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--postly-line);
  border-radius: 8px;
  color: var(--postly-blue-dark);
  background: var(--white);
  font: inherit;
  outline: none;
}

input {
  height: 50px;
  padding: 0 14px;
}

select {
  height: 50px;
  padding: 0 38px 0 14px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.4;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--postly-blue);
  box-shadow: 0 0 0 4px rgba(6, 31, 134, 0.12);
}

input:disabled,
textarea:disabled,
select:disabled {
  color: #7a8a98;
  background: #eef3f7;
  cursor: wait;
}

.error {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--postly-error);
  font-size: 0.9rem;
  font-weight: 700;
}

.error[hidden] {
  display: block;
  visibility: hidden;
}

button {
  height: 52px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--postly-blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--postly-blue-dark);
}

button:disabled,
button:disabled:hover {
  color: #7a8a98;
  background: #e8eef5;
  cursor: wait;
}

button:focus-visible {
  outline: 4px solid rgba(6, 31, 134, 0.22);
  outline-offset: 3px;
}

.workspace-body {
  overflow: hidden;
  min-height: 100vh;
  background: #eef2f6;
}

.workspace-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  color: #17233f;
  background: #eef2f6;
}

.sidebar-backdrop,
.mobile-menu-button {
  display: none;
}

.campaign-sidebar {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 12px;
  border-right: 1px solid #cbd7e4;
  background: #f8fafc;
}

.campaign-sidebar::before {
  content: "Campaigns";
  display: none;
  padding: 0 8px;
  color: #102f45;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 58px;
  padding: 0 8px;
}

.sidebar-lockup .service-seal {
  width: 42px;
  height: 48px;
}

.sidebar-lockup strong {
  font-size: 0.9rem;
}

.sidebar-lockup small {
  font-size: 0.6rem;
}

.sidebar-wordmark {
  width: 124px;
  height: auto;
}

.status-pill {
  color: var(--tps-brand-secondary);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(200, 16, 46, 0.24);
  border-radius: 999px;
  background: #fff7f8;
}

.ghost-button,
.tab-button {
  height: auto;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.campaign-import {
  padding: 12px;
  border: 1px solid #cbd7e4;
  border-top: 4px solid var(--tps-brand-secondary);
  border-radius: 8px;
  background: #ffffff;
}

.campaign-import h2 {
  margin: 0 0 10px;
  color: #102f45;
  font-size: 0.94rem;
  font-weight: 850;
}

.campaign-import-form {
  display: grid;
  gap: 10px;
}

.campaign-import-form label {
  display: grid;
  gap: 6px;
  color: #31495a;
  font-size: 0.82rem;
  font-weight: 800;
}

.campaign-import-form input {
  height: 40px;
  padding: 0 11px;
  border-color: #d8e1ea;
  color: #102f45;
  background: #f8fafc;
}

.campaign-import-actions {
  display: block;
}

.campaign-import-actions button {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  color: #ffffff;
  background: var(--postly-blue);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.campaign-import-actions button:hover {
  background: var(--postly-blue-dark);
}

.campaign-import-status {
  margin: 0;
  color: var(--tps-brand-primary);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.campaign-import-status[data-tone="error"] {
  color: var(--postly-error);
}

.campaign-import-status[hidden] {
  display: none;
}

.campaign-import-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 2px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.campaign-import-result[hidden] {
  display: none;
}

.campaign-import-result dt,
.campaign-import-result dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.campaign-import-result dt {
  color: #6a7b88;
  font-weight: 800;
}

.campaign-import-result dd {
  min-width: 0;
  color: #102f45;
  font-weight: 700;
}

.sidebar-search {
  position: relative;
  display: block;
  min-width: 0;
}

.sidebar-search[hidden] {
  display: none;
}

.sidebar-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sidebar-search input {
  height: 42px;
  padding: 0 12px;
  border-color: #d8e1ea;
  background: #ffffff;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.sidebar-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  color: #263f52;
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--postly-blue);
  background: #eef3fb;
}

.sidebar-section {
  min-height: auto;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section h2 {
  margin: 4px 8px 0;
  color: #6a7b88;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-list {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: visible;
}

.campaign-item {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #14394d;
  text-decoration: none;
}

.campaign-item[hidden] {
  display: none;
}

.campaign-item:hover,
.campaign-item.active {
  border-color: #d9e4ef;
  background: #f1f5fb;
}

.campaign-item.active {
  gap: 6px;
  min-height: 104px;
  padding-left: 17px;
  padding-right: 74px;
  border-color: rgba(6, 31, 134, 0.24);
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
  box-shadow: 0 8px 18px rgba(20, 57, 77, 0.08);
}

.campaign-item.active::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--tps-brand-primary);
}

.campaign-item.active::after {
  content: "Selected";
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(6, 31, 134, 0.16);
  border-radius: 999px;
  color: var(--tps-brand-primary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.campaign-item.active .campaign-title {
  color: var(--tps-brand-primary);
}

.campaign-item.active .campaign-meta {
  color: #50677a;
}

.campaign-item.imported {
  border-color: #c8dde7;
  background: #f4fbf8;
}

.campaign-item.imported.active {
  border-color: rgba(6, 31, 134, 0.24);
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
}

.campaign-item.attention {
  border-color: var(--tps-brand-primary);
  box-shadow: 0 0 0 4px rgba(8, 116, 109, 0.14);
}

.campaign-title {
  color: var(--tps-brand-primary);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.campaign-meta {
  color: #617384;
  font-size: 0.84rem;
  line-height: 1.25;
}

.campaign-empty {
  margin: -8px 8px 0;
  color: #617384;
  font-size: 0.9rem;
  font-weight: 700;
}

.campaign-empty[hidden] {
  display: none;
}

.workspace-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.logout-form {
  display: block;
}

.sidebar-logout {
  padding-top: 2px;
}

.sidebar-logout .ghost-button {
  width: 100%;
  min-height: 40px;
}

.ghost-button {
  padding: 10px 12px;
  color: #375266;
  background: transparent;
  border-color: #d8e1ea;
  font-weight: 800;
}

.ghost-button:hover {
  color: var(--postly-blue);
  background: #f8fafc;
}

.campaign-workspace {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: 22px 24px 24px;
}

.settings-workspace {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  padding: 22px 24px 24px;
}

.settings-heading {
  padding-bottom: 2px;
}

.settings-back-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  color: #375266;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.settings-back-link:hover {
  color: var(--postly-blue);
  background: #eef3fb;
}

.settings-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: min-content;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.settings-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(20, 57, 77, 0.08);
}

.settings-card-heading {
  min-width: 0;
}

.settings-card-heading p {
  margin: 0 0 6px;
  color: var(--tps-brand-primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.settings-card-heading h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.25rem;
  line-height: 1.1;
}

.settings-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.settings-list.compact {
  margin-top: -2px;
}

.settings-list div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid #edf2f7;
}

.settings-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.settings-list dt,
.settings-toggle small {
  color: #617384;
  font-size: 0.86rem;
  font-weight: 760;
}

.settings-list dd {
  min-width: 0;
  margin: 0;
  color: #102f45;
  font-size: 0.9rem;
  font-weight: 850;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.settings-field-wide {
  grid-column: 1 / -1;
}

.settings-field span {
  color: #617384;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  color: #102f45;
  background: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.settings-field input,
.settings-field select {
  height: 40px;
}

.settings-field input:not([type="color"]),
.settings-field select,
.settings-field textarea {
  padding: 0 11px;
}

.settings-field textarea {
  min-height: 136px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.45;
  resize: vertical;
}

.settings-field input[type="color"] {
  padding: 3px;
  cursor: pointer;
}

.settings-field input:focus,
.settings-field select:focus,
.settings-field textarea:focus {
  outline: 3px solid rgba(6, 31, 134, 0.12);
  border-color: rgba(6, 31, 134, 0.58);
}

.settings-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.settings-toggle input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--tps-brand-primary);
}

.settings-toggle span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.settings-toggle strong {
  color: #102f45;
  font-size: 0.95rem;
  font-weight: 850;
}

.settings-toggle small {
  line-height: 1.35;
}

.settings-save-state {
  margin: -4px 0 0;
  color: var(--tps-brand-primary);
  font-size: 0.82rem;
  font-weight: 850;
}

.settings-save-state[hidden] {
  display: none;
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.settings-secondary-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  color: #375266;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
}

.settings-secondary-button:hover {
  color: var(--postly-blue);
  background: #eef3fb;
}

.settings-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  color: #375266;
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 850;
}

.settings-pill.ready {
  color: var(--tps-brand-primary);
  border-color: #b9c8dc;
  background: #f4f7fb;
}

.campaign-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.campaign-heading > div:first-child,
.listing-map-header > div,
.listing-overview-header > div:first-child,
.postgrid-header > div,
.audience-panel-header > div,
.postgrid-card-heading > div {
  min-width: 0;
}

.campaign-heading-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.campaign-heading p {
  margin: 0 0 6px;
  color: var(--tps-brand-primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.campaign-heading h1 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.82rem;
  line-height: 1.08;
}

.status-pill {
  padding-top: 9px;
}

.workspace-tabs {
  width: min(100%, 690px);
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
}

.tab-button {
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  color: #4b6273;
  background: transparent;
  font-weight: 800;
  text-decoration: none;
}

.tab-button:hover,
.tab-button.active {
  color: #ffffff;
  background: var(--postly-blue);
}

.tab-stack {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.tab-surface {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(20, 57, 77, 0.08);
}

.tab-surface[hidden] {
  display: none;
}

.overview-tab-surface {
  min-height: 0;
  display: block;
  place-items: unset;
  overflow: hidden;
}

.listing-overview {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.listing-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.listing-overview-header p {
  margin: 0 0 5px;
  color: var(--tps-brand-primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.listing-overview-header h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.5rem;
  line-height: 1.12;
}

.overview-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.listing-overview-header span,
.overview-form-actions span {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  color: #375266;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 850;
}

.overview-save-button {
  width: auto;
  min-width: 78px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--postly-blue);
  border-radius: 8px;
  color: #ffffff;
  background: var(--postly-blue);
  font-size: 0.84rem;
  font-weight: 850;
}

.overview-save-button:disabled {
  color: #7a8a98;
  background: #eef3f7;
  border-color: #d8e1ea;
  cursor: not-allowed;
}

.overview-empty {
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 48px 24px;
  text-align: center;
}

.overview-empty[hidden],
.overview-fields[hidden] {
  display: none;
}

.overview-empty h3 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.65rem;
  line-height: 1.15;
}

.overview-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  align-content: start;
  overflow: auto;
  padding: 20px 24px 24px;
}

.overview-field {
  display: grid;
  gap: 8px;
}

.overview-field-wide {
  grid-column: 1 / -1;
}

.overview-field span {
  color: #617384;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.overview-field input,
.overview-field select,
.overview-field textarea {
  border-color: #d8e1ea;
  color: #102f45;
  background: #f8fafc;
  font-weight: 750;
}

.summary-editor-field {
  gap: 9px;
}

.summary-editor-shell {
  overflow: hidden;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 47, 69, 0.04);
}

.summary-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.summary-editor-button {
  min-width: 34px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  color: #102f45;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.summary-editor-button.wide {
  min-width: 52px;
  padding: 0 10px;
}

.summary-editor-button:hover,
.summary-editor-button.active {
  border-color: rgba(0, 20, 70, 0.28);
  color: var(--postly-blue-dark);
  background: #eef4ff;
}

.summary-editor {
  position: relative;
  min-height: 132px;
  max-height: 260px;
  overflow: auto;
  padding: 13px 14px;
  color: #102f45;
  background: #ffffff;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.48;
  outline: none;
}

.summary-editor:empty::before {
  content: attr(data-placeholder);
  color: #7a8a98;
  font-weight: 700;
}

.summary-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(0, 20, 70, 0.12);
}

.summary-editor h3 {
  margin: 0 0 8px;
  color: var(--postly-blue-dark);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 900;
}

.summary-editor p {
  margin: 0 0 10px;
}

.summary-editor p:last-child {
  margin-bottom: 0;
}

.summary-editor ul,
.summary-editor ol {
  margin: 0 0 10px 18px;
  padding: 0;
}

.summary-editor li {
  margin: 0 0 5px;
}

.summary-editor blockquote {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 4px solid var(--tps-brand-secondary);
  color: #102f45;
  background: #fffdf4;
}

.summary-editor a {
  color: var(--postly-blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-tab-surface {
  min-height: 0;
  display: block;
  place-items: unset;
  overflow: hidden;
}

.map-workbench {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  overflow: hidden;
  background: #ffffff;
}

.listing-map-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
}

.listing-map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.listing-map-header.compact-header {
  justify-content: flex-end;
  padding: 12px 18px;
}

.listing-map-header p {
  margin: 0 0 5px;
  color: var(--tps-brand-primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.listing-map-header h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.38rem;
  line-height: 1.12;
}

.listing-map-header span {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  color: #375266;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 850;
}

.listing-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  background: #f5f6f2;
}

.listing-map.can-drag-pan .maplibregl-canvas {
  cursor: grab;
}

.listing-map.can-drag-pan .maplibregl-canvas:active {
  cursor: grabbing;
}

.listing-map .maplibregl-ctrl-attrib {
  display: none;
}

.listing-map .maplibregl-ctrl-top-right {
  top: 12px;
  right: 12px;
}

.listing-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(32, 56, 71, 0.18);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(32, 56, 71, 0.12);
}

.listing-map .maplibregl-ctrl-group button,
.listing-map .maplibregl-ctrl-group button:hover {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background-color: #ffffff;
  color: #203847;
}

.listing-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px 16px;
  border-top: 1px solid #e2e8f0;
}

.listing-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  color: #617384;
  font-size: 0.86rem;
  font-weight: 850;
}

.listing-map-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 999px;
  vertical-align: -1px;
}

.listing-map-legend .target-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid var(--postly-blue);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(6, 31, 134, 0.18);
}

.listing-map-legend .target-dot::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 8px;
  height: 7px;
  border-radius: 1px;
  background: var(--postly-blue);
  clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%);
}

.listing-map-legend .radius-dot {
  background: rgba(32, 56, 71, 0.08);
  box-shadow: inset 0 0 0 2px rgba(6, 31, 134, 0.58);
}

.listing-map-legend .excluded-dot {
  background: #aebbc4;
}

.listing-map-legend .owner-heavy-dot,
.audience-map-key .owner-heavy-dot {
  background: #0067ff;
}

.listing-map-legend .renter-heavy-dot,
.audience-map-key .renter-heavy-dot {
  background: #ff1f1f;
}

.listing-map-legend .mixed-dot,
.audience-map-key .mixed-dot {
  background: #bea25a;
}

.audience-map-key .value-dot {
  background: var(--tps-brand-primary);
}

.audience-map-key .limit-dot {
  background: #375266;
}

.listing-map-footer p {
  margin: 0;
  color: #375266;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
}

.maplibregl-popup-content {
  border-radius: 8px;
  padding: 10px 12px;
  color: #102f45;
  box-shadow: 0 14px 36px rgba(20, 57, 77, 0.2);
}

.listing-map-popup {
  display: grid;
  gap: 3px;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
}

.listing-map-popup span:first-child {
  color: var(--postly-blue-dark);
  font-weight: 850;
}

.audience-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(140px, 230px) minmax(130px, 1fr) auto;
  overflow: hidden;
  background: #ffffff;
}

.audience-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.audience-panel-header p,
.audience-controls span {
  margin: 0 0 5px;
  color: var(--tps-brand-primary);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.audience-panel-header h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.18rem;
  line-height: 1.12;
}

.audience-panel-header > span {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 7px 9px;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  color: #375266;
  background: #f8fafc;
  font-size: 0.74rem;
  font-weight: 850;
}

.audience-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid #e7edf3;
  background: #fbfcfd;
}

.audience-stats div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
}

.audience-stats span {
  color: #617384;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.audience-stats strong {
  min-width: 0;
  color: #102f45;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.audience-controls {
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #e7edf3;
  overflow: auto;
}

.audience-value-filter {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fbfcfd;
}

.audience-value-filter.is-disabled {
  opacity: 0.68;
}

.audience-value-filter-header,
.audience-value-range {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.audience-value-filter-header span {
  margin: 0;
}

.audience-value-filter-header strong {
  color: #102f45;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: right;
}

.audience-value-filter input[type="range"] {
  width: 100%;
  height: 22px;
  margin: 0;
  accent-color: var(--tps-brand-primary);
}

.audience-value-range span {
  margin: 0;
  color: #617384;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: none;
}

.audience-controls label,
.property-checklist,
.occupancy-checklist {
  display: grid;
  gap: 8px;
}

.property-checklist,
.occupancy-checklist {
  margin: 0;
  padding: 0;
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-checklist legend,
.occupancy-checklist legend {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--tps-brand-primary);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.property-checklist label,
.occupancy-checklist label {
  min-height: 31px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  color: #102f45;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
}

.property-checklist input,
.occupancy-checklist input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--tps-brand-primary);
}

.audience-control-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.audience-control-buttons button {
  height: 34px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  color: #375266;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
}

.audience-control-buttons button:hover {
  color: var(--postly-blue);
  background: #eef3fb;
}

.audience-control-buttons button:disabled,
.audience-control-buttons button:disabled:hover {
  color: #7a8a98;
  background: #eef3f7;
  cursor: not-allowed;
}

.audience-privacy-note {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  color: #375266;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.audience-addresses {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-bottom: 1px solid #e7edf3;
  background: #ffffff;
}

.audience-addresses-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #edf2f7;
}

.audience-addresses-header div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.audience-addresses-header span {
  color: var(--tps-brand-primary);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audience-addresses-header strong {
  color: #102f45;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
}

.audience-address-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.audience-address-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d8e1ea;
  border-radius: 7px;
  color: #375266;
  background: #ffffff;
  font-size: 0.7rem;
  font-weight: 850;
}

.audience-address-actions button:hover {
  color: var(--postly-blue);
  background: #eef3fb;
}

.audience-address-actions button:disabled,
.audience-address-actions button:disabled:hover {
  color: #7a8a98;
  background: #eef3f7;
  cursor: not-allowed;
}

.audience-address-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px 8px 12px;
  overflow: auto;
}

.audience-address-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #102f45;
  background: #ffffff;
  cursor: pointer;
}

.audience-address-row:hover {
  border-color: #d8e1ea;
  background: #f8fafc;
}

.audience-address-row-selected {
  border-color: #b9c8dc;
  background: #f4f7fb;
  box-shadow: inset 3px 0 0 var(--tps-brand-primary);
}

.audience-address-row input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--tps-brand-primary);
}

.audience-address-row span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.audience-address-row strong,
.audience-address-row small,
.audience-address-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audience-address-row strong {
  color: var(--postly-blue-dark);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.22;
  white-space: nowrap;
}

.audience-address-row small,
.audience-address-row em {
  color: #536b7d;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
}

.audience-address-row em {
  color: var(--tps-brand-primary);
}

.audience-address-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed #cdd8e3;
  border-radius: 8px;
  color: #617384;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.audience-map-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  padding: 10px 14px 12px;
  color: #617384;
  font-size: 0.78rem;
  font-weight: 850;
}

.audience-map-key span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audience-map-key i {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(32, 56, 71, 0.12);
}

.postgrid-tab-surface {
  min-height: 0;
  display: block;
  place-items: unset;
  overflow: hidden;
}

.postgrid-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  background: #ffffff;
}

.postgrid-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.postgrid-header p,
.postgrid-card-heading p {
  margin: 0 0 5px;
  color: var(--tps-brand-primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.postgrid-header h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.38rem;
  line-height: 1.12;
}

.postgrid-header > span,
.postgrid-card-heading > span {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid #d8e1ea;
  border-radius: 999px;
  color: #375266;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 850;
}

.postgrid-body {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.postcard-workbench {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.postgrid-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
}

.postgrid-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.postgrid-card-heading h3 {
  margin: 0;
  color: #102f45;
  font-size: 1.05rem;
  line-height: 1.16;
}

.postcard-editor-card {
  gap: 14px;
}

.postcard-editor-heading {
  justify-content: space-between;
}

.postcard-editor-card[data-empty] {
  opacity: 0.72;
}

.postcard-editor-fields {
  display: grid;
  gap: 10px;
}

.postcard-editor-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #375266;
  font-size: 0.76rem;
  font-weight: 850;
}

.postcard-editor-field span {
  line-height: 1;
}

.postcard-editor-field input,
.postcard-editor-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  padding: 9px 10px;
  color: #102f45;
  background: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.28;
  resize: vertical;
}

.postcard-editor-field input:disabled,
.postcard-editor-field textarea:disabled {
  color: #7a8a98;
  background: #f3f6f9;
}

.postcard-layout-tools {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.postcard-layout-tools > div {
  display: grid;
  gap: 7px;
}

.postcard-layout-tools span {
  color: #617384;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.postcard-layout-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.postcard-layout-buttons button,
.postcard-layout-reset-button,
.postcard-editor-save {
  min-height: 36px;
  border: 1px solid #d8e1ea;
  border-radius: 6px;
  padding: 8px 10px;
  color: #375266;
  background: #f8fafc;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.postcard-layout-buttons button:hover,
.postcard-layout-reset-button:hover {
  border-color: #b9c8d6;
  color: #102f45;
  background: #eef4f8;
}

.postcard-layout-buttons button:disabled,
.postcard-layout-reset-button:disabled,
.postcard-editor-save:disabled {
  color: #91a0ad;
  background: #eef3f7;
  cursor: not-allowed;
}

.postcard-editor-save {
  color: #ffffff;
  border-color: var(--postly-blue);
  background: var(--postly-blue);
}

.postcard-editor-save:not(:disabled):hover {
  background: var(--postly-blue-dark);
}

.postcard-proof-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.postcard-proof-actions span,
.postcard-proof-actions a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #d8e1ea;
  color: #375266;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.postcard-proof-actions a {
  color: #ffffff;
  border-color: var(--postly-blue);
  background: var(--postly-blue);
}

.postcard-proof-actions a[aria-disabled="true"] {
  color: #7a8a98;
  border-color: #d8e1ea;
  background: #eef3f7;
  cursor: not-allowed;
}

.postcard-preview-card {
  grid-column: 1 / -1;
  align-self: start;
  height: auto;
  min-height: 0;
  grid-template-rows: auto;
}

.postcard-workbench .postcard-preview-card {
  grid-column: auto;
}

.postcard-preview-grid {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.postcard-preview-side {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.postcard-side-label {
  color: #617384;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.postcard-proof-image,
.postcard-proof-placeholder {
  width: 100%;
  aspect-ratio: 6 / 4;
  display: block;
  border: 1px solid #cfdbe6;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 26px 58px rgba(20, 57, 77, 0.22), 0 6px 18px rgba(20, 57, 77, 0.14);
}

.postcard-proof-image {
  object-fit: contain;
}

.postcard-proof-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: #617384;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: center;
}

.postcard-proof-image[hidden],
.postcard-proof-placeholder[hidden] {
  display: none;
}

.postcard-face {
  --postcard-bleed-x: 2%;
  --postcard-bleed-y: 2.941176%;
  --postcard-safe-x: 4%;
  --postcard-safe-y: 5.882353%;
  --postgrid-return-x: 2%;
  --postgrid-return-y: 2.941176%;
  --postgrid-return-w: 33.008%;
  --postgrid-return-h: 37.058824%;
  --postgrid-receiver-x: 59.6%;
  --postgrid-receiver-y: 2.941176%;
  --postgrid-receiver-w: 38.4%;
  --postgrid-receiver-h: 94.117647%;
  position: relative;
  aspect-ratio: 6 / 4;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfdbe6;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 26px 58px rgba(20, 57, 77, 0.22), 0 6px 18px rgba(20, 57, 77, 0.14);
  font-family: var(--tps-postcard-font);
}

.postcard-front {
  color: var(--tps-brand-primary);
  background:
    linear-gradient(
      to bottom,
      var(--tps-brand-primary) 0 16.67%,
      var(--tps-brand-secondary) 16.67% 18.06%,
      #ffffff 18.06% 91.32%,
      var(--tps-brand-secondary) 91.32% 92.36%,
      var(--tps-brand-primary) 92.36% 100%
    );
}

.postcard-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.postcard-front-shade {
  display: none;
}

.postcard-front-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

.postcard-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16.67%;
  padding: 2.1% 6.44%;
  background: transparent;
}

.postcard-brand img,
.postcard-back-message img {
  display: block;
  width: 54px;
  height: auto;
  flex: 0 0 auto;
}

.postcard-brand img {
  order: 2;
  width: 9.25%;
  min-width: 42px;
  max-width: 72px;
  margin-left: auto;
}

.postcard-brand strong {
  order: 1;
}

.postcard-back-message img {
  position: absolute;
  left: 6.44%;
  top: 2.1%;
}

.postcard-back-message img {
  width: 12.35%;
  min-width: 34px;
  max-width: 64px;
}

.postcard-brand strong {
  color: #ffffff;
  max-width: 210px;
  font-size: clamp(0.86rem, 1.05vw, 1.08rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.postcard-brand span {
  display: none;
}

.postcard-front-copy {
  position: absolute;
  left: 6.44%;
  right: 6.44%;
  top: 22.9%;
  bottom: 10.1%;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.postcard-front-copy > p:not(.postcard-front-article):not(.postcard-front-cta) {
  margin: 0;
  padding-left: 8px;
  border-left: 4px solid var(--tps-brand-secondary);
  color: var(--tps-brand-primary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.postcard-front-copy h4 {
  max-width: 78%;
  margin: 0;
  color: var(--tps-brand-primary);
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1rem, 1.55vw, 1.48rem);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.postcard-front-copy > span {
  max-width: 84%;
  display: -webkit-box;
  overflow: hidden;
  color: #31465a;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.postcard-front-article {
  max-width: 86%;
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  padding-left: 10px;
  border-left: 3px solid var(--tps-brand-secondary);
  color: #203847;
  font-size: clamp(0.62rem, 0.72vw, 0.76rem);
  font-weight: 700;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.postcard-front-cta,
.postcard-back-cta {
  margin: 0;
  color: var(--tps-brand-primary);
  font-weight: 900;
  line-height: 1.24;
}

.postcard-front-cta {
  max-width: 86%;
  display: -webkit-box;
  overflow: hidden;
  padding-left: 10px;
  font-size: clamp(0.58rem, 0.66vw, 0.72rem);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.postcard-front-copy dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.postcard-front-copy dl div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #d9e3ec;
  background: #f8fafc;
}

.postcard-front-copy dt,
.postcard-back-message dt {
  color: #617384;
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.postcard-front-copy dd,
.postcard-back-message dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postcard-front-copy dd {
  color: var(--tps-brand-primary);
}

.postcard-front-footer {
  position: absolute;
  left: 6.44%;
  right: 6.44%;
  bottom: 2.35%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  font-weight: 800;
}

.postcard-back {
  display: block;
  padding: 0;
  color: #102f45;
  background: #ffffff;
}

.postcard-back::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 60%;
  width: 1px;
  background: #d9e3ec;
}

.postcard-back-message {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 60%;
  display: block;
  padding: 12px calc(var(--postcard-safe-x) + 14px) 34px;
  background:
    linear-gradient(
      to bottom,
      var(--tps-brand-primary) 0 16.67%,
      var(--tps-brand-secondary) 16.67% 18.06%,
      #ffffff 18.06% 91.32%,
      var(--tps-brand-secondary) 91.32% 92.36%,
      var(--tps-brand-primary) 92.36% 100%
    );
  min-width: 0;
}

.postcard-back-message p:not(.postcard-back-cta) {
  position: absolute;
  left: 7%;
  right: 8%;
  top: 47%;
  display: -webkit-box;
  margin: 0;
  max-height: 4.4em;
  overflow: hidden;
  color: #263f52;
  font-size: clamp(0.6rem, 0.72vw, 0.72rem);
  font-weight: 700;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.postcard-back-message strong {
  position: absolute;
  left: 18.8%;
  top: 5.7%;
  color: #ffffff;
  font-size: clamp(0.66rem, 0.82vw, 0.86rem);
  font-weight: 800;
  line-height: 1;
}

.postcard-back-message h4 {
  position: absolute;
  left: 7%;
  right: 8%;
  top: 39%;
  margin: 0;
  color: var(--tps-brand-primary);
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 900;
  line-height: 1.15;
}

.postcard-back-cta {
  position: absolute;
  left: 7%;
  right: 8%;
  top: 67%;
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(0.54rem, 0.62vw, 0.64rem);
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.postcard-back-message small {
  position: absolute;
  left: 7%;
  bottom: 2.8%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.58rem;
  font-weight: 800;
}

.postcard-back-message dl {
  display: grid;
  gap: 3px;
  margin: 0;
}

.postcard-back-message dl div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px;
  align-items: baseline;
}

.postcard-back-message dt {
  color: #617384;
}

.postcard-back-message dd {
  overflow: visible;
  font-size: 0.56rem;
  line-height: 1.12;
  text-overflow: clip;
  white-space: normal;
}

.postcard-return-zone,
.postcard-receiver-zone {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
}

.postcard-return-zone {
  display: none;
  left: var(--postgrid-return-x);
  top: var(--postgrid-return-y);
  width: var(--postgrid-return-w);
  height: var(--postgrid-return-h);
}

.postcard-return-zone span,
.postcard-return-zone small,
.postcard-receiver-zone span,
.postcard-receiver-zone small {
  color: #617384;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.postcard-return-zone strong {
  color: #102f45;
  font-size: 0.62rem;
  font-weight: 900;
}

.postcard-receiver-zone {
  left: 60%;
  top: var(--postgrid-receiver-y);
  width: 40%;
  height: var(--postgrid-receiver-h);
}

.postcard-address-zone {
  position: absolute;
  z-index: 1;
  left: 9%;
  right: 9%;
  top: 43%;
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 0;
  border: 0;
  background: transparent;
}

.postcard-receiver-zone .postcard-address-zone {
  left: 9%;
  right: 9%;
  top: 43%;
}

.postcard-address-zone span,
.postcard-address-zone em,
.postcard-address-zone small {
  color: #617384;
  font-size: 0.56rem;
  font-weight: 850;
  text-transform: uppercase;
}

.postcard-address-zone em {
  max-width: 132px;
  color: #7b3f42;
  font-style: normal;
  line-height: 1.1;
}

.postcard-address-zone strong {
  color: #102f45;
  font-size: 0.74rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.postcard-indicia {
  position: absolute;
  top: 8%;
  left: 11.25%;
  right: auto;
  width: 77.5%;
  height: 20.5%;
  display: grid;
  place-items: center;
  border: 1px solid #dce5ee;
  border-radius: 3px;
  color: #617384;
  background: #f8fafc;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.postcard-receiver-zone .postcard-indicia {
  top: 8%;
  left: 11.25%;
  right: auto;
  width: 77.5%;
  height: 20.5%;
  padding: 0;
}

.workflow-tab-surface {
  display: grid;
  place-items: center;
  padding: 24px;
}

.workflow-placeholder {
  width: min(520px, 100%);
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 28px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f8fafc;
}

.workflow-placeholder p {
  margin: 0;
  color: var(--tps-brand-primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workflow-placeholder h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.8rem;
  line-height: 1.08;
}

.workflow-placeholder span {
  color: #375266;
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.4;
}

.postgrid-specs {
  display: grid;
  gap: 10px;
  margin: 0;
}

.postgrid-specs div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.postgrid-specs dt,
.postgrid-select span,
.postgrid-lookup-form span {
  color: #617384;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.postgrid-specs dd {
  min-width: 0;
  margin: 0;
  color: #102f45;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.3;
}

.postgrid-select {
  display: grid;
  gap: 8px;
}

.postgrid-select select,
.postgrid-lookup-form input {
  height: 42px;
  border-color: #d8e1ea;
  color: #102f45;
  background-color: #ffffff;
  font-size: 0.9rem;
  font-weight: 750;
}

.postgrid-note,
.postgrid-status {
  margin: 0;
  color: #375266;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.42;
}

.postgrid-status[data-tone="success"] {
  color: var(--tps-brand-primary);
}

.postgrid-status[data-tone="error"] {
  color: var(--postly-error);
}

.postgrid-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.postgrid-lookup-form label {
  display: grid;
  gap: 8px;
}

.postgrid-lookup-form button {
  align-self: end;
  min-height: 42px;
  height: 42px;
  border: 1px solid var(--postly-blue);
  border-radius: 8px;
  color: #ffffff;
  background: var(--postly-blue);
  font-size: 0.88rem;
  font-weight: 850;
}

.postgrid-payload,
.postgrid-result {
  min-height: 180px;
  max-height: 280px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  color: #102f45;
  background: #f8fafc;
  font: 700 0.82rem/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.postgrid-result {
  min-height: 122px;
  max-height: 220px;
}

.postgrid-result[hidden] {
  display: none;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.empty-state h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 2.6rem;
  line-height: 1;
}

.desktop-only-message {
  display: none;
}

.duplicate-dialog {
  width: min(420px, calc(100vw - 40px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.duplicate-dialog::backdrop {
  background: rgba(4, 18, 85, 0.28);
}

.duplicate-dialog-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(20, 57, 77, 0.24);
}

.duplicate-kicker {
  margin: 0 0 6px;
  color: var(--tps-brand-primary);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.duplicate-dialog h2 {
  margin: 0;
  color: var(--postly-blue-dark);
  font-size: 1.45rem;
  line-height: 1.12;
}

.duplicate-copy,
.duplicate-meta,
.duplicate-rule {
  margin: 0;
  color: #375266;
  font-size: 0.95rem;
  line-height: 1.45;
}

.duplicate-rule {
  padding: 10px 12px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  color: #31495a;
  background: #f8fafc;
  font-size: 0.86rem;
  font-weight: 800;
}

.duplicate-copy strong {
  color: #102f45;
}

.duplicate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.duplicate-actions button {
  min-height: 42px;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #ffffff;
  color: #375266;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.duplicate-actions button:last-child {
  color: #ffffff;
  background: var(--postly-blue);
  border-color: var(--postly-blue);
}

.duplicate-actions button:disabled,
.duplicate-actions button:disabled:hover {
  color: #7a8a98;
  background: #eef3f7;
  border-color: #d8e1ea;
  cursor: not-allowed;
}

.duplicate-actions button:hover {
  color: var(--postly-blue);
  background: #eef3fb;
}

.duplicate-actions button:last-child:hover {
  color: #ffffff;
  background: var(--postly-blue-dark);
}

@media (max-width: 520px) {
  .shell {
    align-items: stretch;
    padding: 0;
  }

  .login-panel {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 34px 24px;
    box-shadow: none;
  }

  .brand-row {
    margin-bottom: 28px;
  }

  .wordmark {
    width: 144px;
  }
}

@media (max-width: 880px) {
  html,
  body {
    min-height: 100%;
  }

  .workspace-body {
    overflow: auto;
    background: #f5f7fb;
  }

  .desktop-only-message {
    display: none;
  }

  .workspace-shell {
    max-width: 100vw;
    min-height: 100svh;
    height: auto;
    display: block;
    overflow-x: hidden;
    overflow-y: visible;
    background: #f5f7fb;
  }

  .workspace-body.sidebar-open {
    overflow: hidden;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(4, 18, 85, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .workspace-shell.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .campaign-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(86vw, 340px);
    height: 100dvh;
    max-height: 100dvh;
    padding: 16px 12px;
    border-right: 1px solid #dce5ee;
    box-shadow: 18px 0 46px rgba(20, 57, 77, 0.18);
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  .campaign-sidebar::before {
    display: block;
  }

  .sidebar-brand {
    min-height: 38px;
  }

  .sidebar-wordmark {
    width: 112px;
  }

  .campaign-list {
    padding-bottom: 6px;
  }

  .campaign-item {
    min-height: 62px;
  }

  .campaign-item.active {
    min-height: 82px;
    padding-right: 62px;
  }

  .campaign-item.active::after {
    top: 8px;
    right: 8px;
    min-height: 20px;
    padding-inline: 7px;
    font-size: 0.56rem;
  }

  .workspace-shell.sidebar-open .campaign-sidebar {
    transform: translateX(0);
  }

  .workspace-main {
    max-width: 100vw;
    min-height: 100svh;
    display: block;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .campaign-workspace {
    max-width: 100vw;
    min-height: 100svh;
    height: auto;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 14px 12px 18px;
  }

  .settings-workspace {
    max-width: 100vw;
    min-height: 100svh;
    height: auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 14px 12px 18px;
  }

  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding-right: 0;
  }

  .settings-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .settings-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-back-link {
    display: none;
  }

  .campaign-heading {
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    margin: -14px -12px 0;
    padding: 12px;
    border-bottom: 1px solid #dce5ee;
    background: rgba(245, 247, 251, 0.94);
    backdrop-filter: blur(12px);
  }

  .campaign-heading p {
    margin-bottom: 3px;
    font-size: 0.68rem;
  }

  .campaign-heading h1 {
    max-width: calc(100vw - 150px);
    overflow: hidden;
    font-size: 1.22rem;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .campaign-heading-actions {
    gap: 8px;
  }

  .status-pill {
    display: none;
  }

  .mobile-menu-button {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: auto;
    min-width: 92px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    color: #102f45;
    background: #ffffff;
    font-size: 0.84rem;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(20, 57, 77, 0.08);
  }

  .mobile-menu-button:hover {
    color: #ffffff;
    background: var(--postly-blue);
  }

  .workspace-tabs {
    width: auto;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 5px 22px 5px 5px;
    scroll-padding-inline: 5px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  }

  .workspace-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 40px;
    padding: 0 14px;
    scroll-snap-align: start;
    font-size: 0.86rem;
  }

  .tab-stack {
    overflow: visible;
  }

  .tab-surface {
    max-width: 100%;
    min-height: calc(100svh - 124px);
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20, 57, 77, 0.08);
  }

  .overview-tab-surface,
  .map-tab-surface,
  .postgrid-tab-surface {
    overflow: hidden;
  }

  .listing-overview {
    height: auto;
  }

  .listing-overview-header,
  .listing-map-header,
  .postgrid-header {
    align-items: center;
    padding: 16px;
  }

  .listing-map-header,
  .audience-panel-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .listing-overview-header h2,
  .listing-map-header h2,
  .postgrid-header h2 {
    font-size: 1.14rem;
  }

  .listing-overview-header span,
  .listing-map-header span,
  .postgrid-header > span {
    flex: 0 1 auto;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .audience-panel-header > span {
    flex: 0 1 auto;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .listing-map-header span {
    justify-self: start;
    max-width: 100%;
  }

  .overview-header-actions,
  .overview-form-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .overview-save-button {
    min-width: 72px;
    height: 34px;
  }

  .overview-empty {
    min-height: 320px;
    padding: 34px 18px;
  }

  .overview-empty h3 {
    font-size: 1.28rem;
  }

  .overview-fields {
    max-height: none;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 16px;
  }

  .overview-field-wide {
    grid-column: auto;
  }

  .map-workbench {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .listing-map-panel {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .listing-map {
    height: min(54svh, 420px);
    min-height: 300px;
  }

  .listing-map-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 14px;
  }

  .listing-map-footer p {
    text-align: left;
  }

  .listing-map-legend {
    gap: 9px 13px;
    font-size: 0.78rem;
  }

  .audience-panel {
    height: auto;
    max-height: none;
    display: grid;
    grid-template-rows: auto auto auto auto auto;
  }

  .audience-panel-header {
    padding: 16px;
  }

  .audience-stats {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .audience-stats div {
    padding: 9px;
  }

  .audience-controls {
    padding: 12px;
  }

  .audience-addresses {
    max-height: 340px;
  }

  .audience-addresses-header {
    flex-wrap: wrap;
    padding: 12px;
  }

  .audience-address-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .postgrid-panel {
    height: auto;
  }

  .postgrid-body {
    height: auto;
    padding: 12px;
  }

  .postcard-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .postgrid-card {
    padding: 14px;
  }

  .postcard-preview-card {
    height: auto;
    overflow: visible;
  }

  .postcard-preview-grid {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .postcard-layout-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .postcard-face {
    width: 100%;
    max-width: min(560px, calc(100vw - 38px));
    margin: 0 auto;
  }

  .postcard-front-inner {
    inset: 0;
    padding: 0;
  }

  .postcard-front-copy h4 {
    max-width: 100%;
    font-size: 1.22rem;
  }

  .postcard-front-copy dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .postcard-back {
    padding: 0;
  }

  .postcard-back-message {
    gap: 6px;
  }

  .postcard-back-message p:not(.postcard-back-cta) {
    top: 28%;
    font-size: 0.68rem;
    line-height: 1.24;
  }

  .postcard-back-message dl {
    gap: 5px;
  }

  .postcard-back-message dl div {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
  }

  .postcard-address-zone {
    min-height: 64px;
    padding: 8px;
  }

  .workflow-tab-surface {
    min-height: 360px;
    padding: 16px;
  }

  .workflow-placeholder {
    padding: 22px;
  }
}

@media (min-width: 881px) and (max-width: 1120px) {
  .map-workbench {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .postgrid-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }

  .campaign-workspace {
    padding-inline: 10px;
  }

  .campaign-heading {
    margin-inline: -10px;
    padding: 12px 10px;
  }

  .campaign-heading h1 {
    max-width: calc(100vw - 146px);
    font-size: 1.08rem;
  }

  .mobile-menu-button {
    min-width: 86px;
    height: 36px;
    padding-inline: 10px;
  }

  .workspace-tabs {
    margin-inline: -2px;
  }

  .tab-button {
    min-width: 86px;
    font-size: 0.82rem;
  }

  .listing-map {
    height: 330px;
    min-height: 280px;
  }

  .audience-stats strong {
    font-size: 0.84rem;
  }

  .property-checklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .postcard-front-inner {
    inset: 0;
    padding: 0;
  }

  .postcard-brand {
    height: 16.67%;
    padding: 2.1% 6.44%;
  }

  .postcard-brand img {
    width: 9.25%;
    min-width: 32px;
  }

  .postcard-brand strong {
    max-width: 132px;
    font-size: 0.62rem;
  }

  .postcard-brand span {
    font-size: 0.58rem;
  }

  .postcard-front-copy {
    left: 6.44%;
    right: 6.44%;
    top: 22.9%;
    bottom: 10.1%;
    gap: 4px;
  }

  .postcard-front-copy > p:not(.postcard-front-article):not(.postcard-front-cta) {
    padding-left: 5px;
    border-left-width: 2px;
    font-size: 0.48rem;
  }

  .postcard-front-article {
    max-width: 100%;
    padding-left: 7px;
    border-left-width: 2px;
    font-size: 0.45rem;
    line-height: 1.13;
    -webkit-line-clamp: 8;
  }

  .postcard-front-cta {
    max-width: 100%;
    padding-left: 7px;
    font-size: 0.44rem;
    line-height: 1.12;
  }

  .postcard-front-copy h4 {
    max-width: 100%;
    font-size: 0.86rem;
    line-height: 1.06;
  }

  .postcard-front-copy > span {
    max-width: 100%;
    font-size: 0.48rem;
    line-height: 1.1;
    -webkit-line-clamp: 1;
  }

  .postcard-front-footer {
    bottom: 7px;
    font-size: 0.42rem;
  }

  .postcard-front-copy dd,
  .postcard-back-message dd {
    font-size: 0.72rem;
  }

  .postcard-back {
    padding: 0;
  }

  .postcard-back-message img {
    left: 6.44%;
    top: 3.8%;
    width: 24px;
    min-width: 24px;
  }

  .postcard-back-message strong {
    left: 24%;
    top: 5.3%;
    max-width: 72px;
    font-size: 0.42rem;
    line-height: 1.06;
  }

  .postcard-back-message h4 {
    left: 7%;
    right: 8%;
    top: 39%;
    font-size: 0.54rem;
  }

  .postcard-back-message p {
    left: 7%;
    right: 8%;
    top: 48%;
    max-height: 3.8em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    font-size: 0.37rem;
    line-height: 1.24;
    -webkit-line-clamp: 3;
  }

  .postcard-back-cta {
    left: 7%;
    right: 8%;
    top: 68%;
    font-size: 0.35rem;
    line-height: 1.2;
    -webkit-line-clamp: 3;
  }

  .postcard-back-message small {
    left: 7%;
    bottom: 2.8%;
    font-size: 0.42rem;
  }

  .postcard-back-message dl {
    display: none;
  }

  .postcard-address-zone {
    min-height: 56px;
    padding: 7px;
  }

  .postcard-address-zone strong {
    font-size: 0.74rem;
  }

  .postcard-indicia {
    top: 8%;
    left: 11.25%;
    right: auto;
    width: 77.5%;
    height: 20.5%;
    padding: 0;
    font-size: 0.48rem;
  }

  .duplicate-actions {
    grid-template-columns: 1fr;
  }
}
