:root {
  color-scheme: light;
  --canvas: #edf0ec;
  --surface: #ffffff;
  --surface-soft: #f7f5ef;
  --surface-cool: #e5ebe8;
  --ink: #17231e;
  --muted: #617068;
  --line: #ccd4cf;
  --line-strong: #aebbb4;
  --brand: #175f49;
  --brand-dark: #104936;
  --brand-soft: #dcece5;
  --blue: #2d6177;
  --blue-soft: #dbe8ed;
  --coral: #aa4c3c;
  --coral-soft: #f2dfd9;
  --gold: #8a681f;
  --gold-soft: #eee6c9;
  --red: #9b3d42;
  --red-soft: #f1dfe1;
  --danger: #a23434;
  --shadow: 0 12px 34px rgba(25, 46, 36, 0.1);
  --radius: 8px;
  --topbar-height: 64px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

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

button,
label,
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
}

button {
  border: 0;
}

button,
input,
label,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid rgba(45, 97, 119, 0.3);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.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;
}

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

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  background: #fcfdfb;
  border-bottom: 1px solid var(--line);
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.product-brand > span:last-child {
  display: grid;
}

.product-brand strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.product-brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 800;
}

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

.save-state {
  color: var(--muted);
  font-size: 0.8rem;
}

.workspace {
  display: grid;
  min-height: calc(100vh - var(--topbar-height));
  grid-template-columns: 220px minmax(560px, 1fr) minmax(330px, 380px);
}

.step-rail {
  position: sticky;
  top: var(--topbar-height);
  display: flex;
  height: calc(100vh - var(--topbar-height));
  flex-direction: column;
  padding: 24px 14px 18px;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.rail-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 20px;
}

.rail-heading div {
  display: grid;
}

.rail-heading strong {
  font-size: 0.9rem;
}

.rail-heading span:not(.status-dot) {
  color: var(--muted);
  font-size: 0.74rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #c9912c;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f2e8ce;
}

.step-nav ol {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-button {
  display: grid;
  width: 100%;
  min-height: 60px;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  text-align: left;
}

.step-button:hover {
  background: #edece6;
}

.step-button:disabled {
  opacity: 0.48;
}

.step-button:disabled:hover {
  background: transparent;
}

.step-button.is-active {
  color: var(--ink);
  background: white;
  box-shadow: inset 3px 0 0 var(--brand), 0 1px 3px rgba(28, 45, 37, 0.08);
}

.step-button > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.step-button strong,
.step-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-button strong {
  font-size: 0.84rem;
}

.step-button small {
  font-size: 0.7rem;
}

.step-number {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.step-button.is-active .step-number {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.step-check {
  display: none;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 900;
}

.step-button.is-complete .step-number {
  color: transparent;
  background: var(--brand-soft);
  border-color: var(--brand-soft);
}

.step-button.is-complete .step-number::after {
  position: absolute;
  color: var(--brand-dark);
  content: "\2713";
}

.rail-summary {
  display: grid;
  gap: 2px;
  padding: 15px 10px 2px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.rail-summary span {
  color: var(--muted);
  font-size: 0.7rem;
}

.rail-summary strong {
  font-size: 0.8rem;
}

.builder {
  min-width: 0;
  padding: 42px clamp(28px, 4vw, 62px) 110px;
  background: var(--surface);
}

.builder form,
.mobile-progress {
  width: min(100%, 790px);
  margin: 0 auto;
}

.mobile-progress {
  display: none;
}

.step-panel {
  min-height: 620px;
}

.panel-heading {
  max-width: 670px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.71rem;
  font-weight: 850;
  text-transform: uppercase;
}

.panel-heading h1 {
  max-width: 660px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.08;
}

.panel-heading h1[tabindex="-1"]:focus {
  outline: none;
}

.panel-heading > p:last-child {
  max-width: 630px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.field-group {
  min-width: 0;
  padding: 0;
  margin: 0 0 24px;
  border: 0;
}

.field-group legend,
.field-label {
  display: block;
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.79rem;
  font-weight: 800;
}

.compact-fieldset {
  max-width: 460px;
}

input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
}

input[type="text"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="number"]:hover {
  border-color: #819089;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 97, 119, 0.12);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.inline-error {
  min-height: 1.2em;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.button-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-primary:disabled {
  color: #d9e5df;
  background: #7f9e91;
  border-color: #7f9e91;
}

.button-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line-strong);
}

.button-secondary:hover {
  background: var(--surface-soft);
  border-color: #839089;
}

.button-quiet {
  min-height: 36px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.button-quiet:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.segmented-control {
  display: grid;
  padding: 3px;
  background: #edf0ed;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.segmented-control.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.segmented-control.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segmented-control label {
  position: relative;
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 6px 8px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.77rem;
  font-weight: 750;
  text-align: center;
}

.segmented-control input:checked + span {
  color: var(--ink);
  background: white;
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(31, 51, 42, 0.08);
}

.search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.place-result {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin-top: 12px;
  background: var(--brand-soft);
  border: 1px solid #a9cbbd;
  border-radius: 7px;
  text-align: left;
}

.place-result > span:nth-child(2) {
  display: grid;
}

.place-result strong {
  font-size: 0.86rem;
}

.place-result small {
  color: var(--muted);
  font-size: 0.73rem;
}

.place-pin {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  background: var(--brand);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.place-pin::after {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  content: "";
}

.selected-label {
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 850;
}

.place-layout {
  display: grid;
  grid-template-columns: minmax(290px, 1.08fr) minmax(240px, 0.92fr);
  gap: 25px;
  padding-top: 6px;
}

.coverage-map {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #c9dde3;
  border: 1px solid #b2c7cb;
  border-radius: var(--radius);
  isolation: isolate;
}

.coverage-map::before {
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -8%;
  width: 82%;
  height: 120%;
  background: #dfe7d8;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 8% 100%, 20% 79%, 13% 61%, 30% 44%, 21% 25%);
  content: "";
}

.coverage-map::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 78%;
  height: 100%;
  background: #dfe7d8;
  border-left: 1px solid rgba(85, 114, 93, 0.25);
  content: "";
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 16% 100%, 27% 79%, 20% 61%, 35% 44%, 29% 25%);
}

.map-water,
.map-town,
.map-caption {
  position: absolute;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 750;
}

.map-water {
  bottom: 17%;
  left: 4%;
  max-width: 68px;
  color: #477080;
  font-style: italic;
  text-align: center;
}

.map-town {
  color: #506058;
}

.map-town-main {
  top: 58%;
  left: 64%;
  color: var(--ink);
  font-weight: 900;
}

.map-town-north {
  top: 18%;
  left: 67%;
}

.map-town-west {
  top: 44%;
  left: 41%;
}

.map-road {
  position: absolute;
  z-index: 1;
  display: block;
  height: 3px;
  background: #f8f3df;
  border: 1px solid rgba(150, 130, 90, 0.35);
  border-radius: 2px;
  transform-origin: center;
}

.road-one {
  top: 43%;
  left: 30%;
  width: 68%;
  transform: rotate(-18deg);
}

.road-two {
  top: 57%;
  left: 46%;
  width: 50%;
  transform: rotate(52deg);
}

.radius-ring {
  position: absolute;
  z-index: 2;
  top: 57%;
  left: 65%;
  width: 145px;
  height: 145px;
  background: rgba(23, 95, 73, 0.11);
  border: 2px solid rgba(23, 95, 73, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease;
}

.map-marker {
  position: absolute;
  z-index: 4;
  top: 57%;
  left: 65%;
  width: 13px;
  height: 13px;
  background: var(--coral);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(33, 47, 40, 0.25);
  transform: translate(-50%, -50%);
}

.map-caption {
  right: 9px;
  bottom: 9px;
  padding: 4px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.location-settings {
  min-width: 0;
}

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

.range-heading output {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.65rem;
}

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

.date-fields .field-group {
  margin-bottom: 0;
}

.reference-summary {
  display: grid;
  gap: 2px;
  padding: 12px;
  margin-top: 18px;
  background: var(--surface-soft);
  border-left: 3px solid var(--blue);
}

.reference-summary span,
.reference-summary small {
  color: var(--muted);
  font-size: 0.7rem;
}

.reference-summary strong {
  font-size: 0.8rem;
}

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

.interest-search {
  display: block;
  width: min(100%, 380px);
}

.selection-count {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.selection-count strong {
  color: var(--ink);
}

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

.filter-tab {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: var(--muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  font-size: 0.76rem;
  font-weight: 800;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.is-active {
  color: var(--brand-dark);
  border-color: var(--brand);
}

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

.interest-option {
  position: relative;
  display: grid;
  min-height: 88px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.interest-option:hover {
  border-color: #8da098;
  box-shadow: 0 2px 8px rgba(36, 57, 47, 0.06);
}

.interest-option:has(input:checked) {
  background: #f5faf7;
  border-color: #86b19f;
  box-shadow: inset 0 0 0 1px #b6d3c7;
}

.interest-option > input {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
}

.interest-option.is-required > input {
  opacity: 0;
}

.module-glyph {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 900;
}

.glyph-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.glyph-coral {
  color: var(--coral);
  background: var(--coral-soft);
}

.glyph-green {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.glyph-gold {
  color: var(--gold);
  background: var(--gold-soft);
}

.glyph-red {
  color: var(--red);
  background: var(--red-soft);
}

.interest-copy {
  display: grid;
  min-width: 0;
  padding-right: 10px;
}

.interest-copy strong {
  font-size: 0.82rem;
}

.interest-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.35;
}

.option-status {
  align-self: end;
  color: var(--brand-dark);
  font-size: 0.61rem;
  font-weight: 850;
}

.interest-option.is-filtered {
  display: none;
}

.coverage-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  margin-top: 18px;
  background: var(--brand-soft);
  border: 1px solid #b7d3c7;
  border-radius: 7px;
}

.coverage-status > span:last-child {
  display: grid;
}

.coverage-status strong {
  font-size: 0.78rem;
}

.coverage-status small {
  color: var(--muted);
  font-size: 0.69rem;
}

.coverage-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.section-block {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.party-counts {
  display: grid;
  max-width: 270px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.toggle-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.toggle-row {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.toggle-row > span:first-child {
  display: grid;
}

.toggle-row strong {
  font-size: 0.82rem;
}

.toggle-row small {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.7rem;
}

.toggle-row input[role="switch"] {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  background: #bdc5c1;
  border-radius: 12px;
  transition: background 150ms ease;
}

.toggle-row input[role="switch"]::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(20, 37, 28, 0.25);
  content: "";
  transition: transform 150ms ease;
}

.toggle-row input[role="switch"]:checked {
  background: var(--brand);
}

.toggle-row input[role="switch"]:checked::after {
  transform: translateX(18px);
}

.preference-grid {
  gap: 28px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-row label {
  position: relative;
}

.check-row input {
  position: absolute;
  opacity: 0;
}

.check-row span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 11px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 750;
}

.check-row input:checked + span {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: #8eb9a6;
}

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

.time-fields label {
  color: var(--muted);
  font-size: 0.7rem;
}

.time-fields input {
  margin-top: 4px;
}

.domain-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.domain-field input {
  border-radius: 6px 0 0 6px;
}

.domain-field > span {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}

.domain-field.is-invalid input,
.domain-field.is-invalid > span {
  border-color: var(--danger);
}

.slug-status {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--brand-dark);
  font-size: 0.73rem;
}

.slug-status.is-unavailable {
  color: var(--danger);
}

.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  gap: 32px;
}

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

.radio-list label {
  display: grid;
  min-height: 56px;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.radio-list label:has(input:checked) {
  background: #f5faf7;
  border-color: #8eb9a6;
}

.radio-list span {
  display: grid;
}

.radio-list strong {
  font-size: 0.78rem;
}

.radio-list small {
  color: var(--muted);
  font-size: 0.68rem;
}

.schedule-time {
  align-self: start;
}

.timezone-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}

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

.theme-option {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.theme-option:has(input:checked) {
  background: #f5faf7;
  border-color: #87b29f;
  box-shadow: inset 0 0 0 1px #bad5ca;
}

.theme-option > input {
  position: absolute;
  top: 8px;
  right: 8px;
}

.theme-option > span:last-child {
  display: grid;
}

.theme-option strong {
  font-size: 0.75rem;
}

.theme-option small {
  color: var(--muted);
  font-size: 0.65rem;
}

.theme-swatch {
  display: grid;
  height: 74px;
  grid-template-columns: 1fr 0.65fr;
  grid-template-rows: 24px 1fr;
  gap: 4px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.theme-swatch i {
  display: block;
  background: currentColor;
  opacity: 0.82;
}

.theme-swatch i:first-child {
  grid-column: 1 / -1;
}

.swatch-newspaper {
  color: #333129;
  background: #f1ead9;
}

.swatch-guide {
  color: #2f624d;
  background: #dae7de;
}

.swatch-simple {
  color: #476673;
  background: #eef2f3;
}

.cover-editor {
  margin-bottom: 30px;
}

.cover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.cover-heading .field-label,
.cover-heading p {
  margin: 0;
}

.cover-heading p {
  color: var(--muted);
  font-size: 0.72rem;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cover-crop {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #d9d9d5;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cover-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 48%;
}

.focus-marker {
  position: absolute;
  top: 48%;
  left: 72%;
  width: 25px;
  height: 25px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(22, 36, 29, 0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.focus-marker::before,
.focus-marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: white;
  content: "";
  transform: translate(-50%, -50%);
}

.focus-marker::before {
  width: 31px;
  height: 1px;
}

.focus-marker::after {
  width: 1px;
  height: 31px;
}

.crop-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.crop-controls label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.readiness-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-bottom: 24px;
  background: var(--brand-soft);
  border: 1px solid #add0c1;
  border-radius: var(--radius);
}

.readiness-banner > span:last-child {
  display: grid;
}

.readiness-banner strong {
  font-size: 0.82rem;
}

.readiness-banner small {
  color: var(--muted);
  font-size: 0.7rem;
}

.readiness-mark,
.result-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

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

.review-section {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.review-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.review-section-heading h2,
.build-stages h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.review-section-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.text-button {
  padding: 3px 0;
  color: var(--brand);
  background: transparent;
  font-size: 0.71rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-list {
  margin: 0;
}

.review-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.review-list dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.review-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  font-weight: 750;
  text-align: right;
}

.module-review {
  margin-top: 30px;
}

.selected-modules,
.mini-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-modules span {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 5px 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #b6d1c6;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 750;
}

.build-stages {
  padding-top: 18px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.build-stages ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.build-stages li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-content: start;
  column-gap: 8px;
  padding: 11px;
  background: var(--surface-soft);
  border-left: 2px solid var(--blue);
}

.build-stages li > span {
  display: grid;
  width: 22px;
  height: 22px;
  grid-row: 1 / span 2;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 850;
}

.build-stages strong {
  font-size: 0.72rem;
}

.build-stages small {
  color: var(--muted);
  font-size: 0.65rem;
}

.build-result {
  max-width: 570px;
  padding: 32px;
  margin: 18px auto 0;
  text-align: center;
}

.build-result .result-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  font-size: 1.2rem;
}

.build-result h2 {
  margin: 4px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.15;
}

.build-result > p:not(.eyebrow) {
  color: var(--muted);
}

.result-address {
  display: grid;
  gap: 2px;
  padding: 13px;
  margin: 24px 0;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.result-address span {
  color: var(--muted);
  font-size: 0.68rem;
}

.result-address strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.form-actions {
  position: fixed;
  z-index: 20;
  right: 380px;
  bottom: 0;
  left: 220px;
  display: grid;
  min-height: 72px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(28px, 4vw, 62px);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.action-status {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.preview-pane {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  min-width: 0;
  padding: 25px 22px;
  overflow: auto;
  background: var(--surface-cool);
  border-left: 1px solid var(--line);
}

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

.preview-toolbar .eyebrow {
  margin-bottom: 2px;
}

.preview-toolbar h2 {
  margin: 0;
  font-size: 0.95rem;
}

.preview-modes {
  display: flex;
  padding: 2px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.preview-modes button {
  min-height: 29px;
  padding: 4px 8px;
  color: var(--muted);
  background: transparent;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
}

.preview-modes button.is-active {
  color: var(--ink);
  background: white;
  box-shadow: 0 1px 3px rgba(28, 47, 37, 0.1);
}

.browser-preview {
  width: 100%;
  max-width: 336px;
  margin: 0 auto;
  overflow: hidden;
  background: white;
  border: 1px solid #acb7b2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: max-width 180ms ease;
}

.browser-preview.is-mobile {
  max-width: 245px;
}

.browser-bar {
  display: grid;
  min-height: 32px;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  background: #eef0ee;
  border-bottom: 1px solid var(--line);
}

.browser-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

.browser-url {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-edition {
  padding: 13px;
  color: #211f1a;
  background: #f5efe2;
  font-family: Georgia, "Times New Roman", serif;
}

.mini-edition.theme-field-guide {
  color: #173428;
  background: #edf3ed;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.mini-edition.theme-field-guide .mini-masthead,
.mini-edition.theme-field-guide .mini-cover,
.mini-edition.theme-field-guide .mini-weather,
.mini-edition.theme-field-guide .mini-weather > span {
  border-color: #2f624d;
}

.mini-edition.theme-simple {
  color: #1c3038;
  background: #f7f9f9;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.mini-edition.theme-simple .mini-masthead {
  text-align: left;
  border-top-style: solid;
  border-bottom-style: solid;
}

.mini-edition.theme-simple .mini-cover {
  border-top: 0;
}

.mini-masthead {
  padding: 8px 0 7px;
  text-align: center;
  border-top: 3px double #27241f;
  border-bottom: 3px double #27241f;
}

.mini-masthead > small {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.45rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-masthead h3 {
  margin: 2px 0 4px;
  overflow: hidden;
  font-size: 1.37rem;
  line-height: 0.96;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.mini-masthead div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #514d44;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.4rem;
  font-weight: 750;
  text-transform: uppercase;
}

.mini-cover {
  padding: 5px 0;
  margin: 9px 0;
  border-top: 1px solid #3b3831;
  border-bottom: 1px solid #3b3831;
}

.mini-cover img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  object-position: 72% 48%;
  filter: grayscale(0.7) contrast(1.04);
}

.mini-cover figcaption {
  margin-top: 3px;
  color: #6b6458;
  font-size: 0.43rem;
  font-style: italic;
}

.mini-lead p {
  margin: 0 0 2px;
  color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.43rem;
  font-weight: 900;
}

.mini-lead h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1;
}

.mini-lead span {
  display: block;
  color: #5f594f;
  font-size: 0.55rem;
  line-height: 1.35;
}

.mini-weather {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  border-top: 1px solid #34312b;
  border-left: 1px solid #34312b;
}

.mini-weather > span {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 6px 4px;
  border-right: 1px solid #34312b;
  border-bottom: 1px solid #34312b;
  text-align: center;
}

.mini-weather strong,
.mini-weather small {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.42rem;
  text-transform: uppercase;
}

.mini-weather b {
  font-size: 0.82rem;
}

.mini-weather small {
  color: #6b6458;
}

.mini-sections {
  margin-top: 10px;
}

.mini-sections span {
  padding: 3px 4px;
  color: #315d50;
  background: rgba(255, 255, 255, 0.42);
  border-left: 2px solid #315d50;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.4rem;
  font-weight: 800;
  text-transform: uppercase;
}

.browser-preview.is-mobile .mini-masthead h3 {
  font-size: 1.05rem;
}

.browser-preview.is-mobile .mini-cover img {
  height: 112px;
}

.preview-note {
  max-width: 320px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(340px, calc(100vw - 44px));
  padding: 11px 14px;
  color: white;
  background: #23372e;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(22, 35, 29, 0.25);
  font-size: 0.76rem;
  font-weight: 750;
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .preview-pane {
    position: static;
    height: auto;
    grid-column: 2;
    padding: 28px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .browser-preview {
    max-width: 500px;
  }

  .browser-preview.is-mobile {
    max-width: 260px;
  }

  .form-actions {
    right: 0;
    left: 210px;
  }
}

@media (max-width: 820px) {
  :root {
    --topbar-height: 58px;
  }

  .topbar {
    padding: 8px 14px;
  }

  .save-state {
    display: none;
  }

  .workspace {
    display: block;
  }

  .step-rail {
    position: sticky;
    z-index: 25;
    top: var(--topbar-height);
    display: block;
    width: 100%;
    height: auto;
    padding: 7px 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-heading,
  .rail-summary {
    display: none;
  }

  .step-nav ol {
    display: flex;
    min-width: max-content;
    gap: 3px;
  }

  .step-button {
    min-height: 40px;
    grid-template-columns: 25px auto;
    padding: 5px 8px;
  }

  .step-button small,
  .step-check {
    display: none;
  }

  .step-number {
    width: 23px;
    height: 23px;
  }

  .builder {
    padding: 22px 18px 100px;
  }

  .mobile-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
  }

  .progress-track {
    position: relative;
    display: block;
    height: 4px;
    flex: 1;
    overflow: hidden;
    background: #dde2df;
    border-radius: 3px;
  }

  .progress-track > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 20%;
    background: var(--brand);
    transition: width 180ms ease;
  }

  .panel-heading {
    margin-bottom: 26px;
  }

  .panel-heading .eyebrow {
    display: none;
  }

  .panel-heading h1 {
    font-size: 2rem;
  }

  .place-layout,
  .preference-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .coverage-map {
    min-height: 250px;
  }

  .form-actions {
    right: 0;
    left: 0;
    min-height: 66px;
    padding: 10px 14px;
  }

  .preview-pane {
    padding: 26px 18px 100px;
  }
}

@media (max-width: 600px) {
  .product-brand small,
  .app-shell.is-building .topbar .button-quiet {
    display: none;
  }

  .app-shell.is-building .topbar-actions::after {
    color: var(--muted);
    content: "Draft";
    font-size: 0.72rem;
    font-weight: 750;
  }

  .builder {
    padding-right: 14px;
    padding-left: 14px;
  }

  .panel-heading h1 {
    font-size: 1.72rem;
  }

  .panel-heading > p:last-child {
    font-size: 0.88rem;
  }

  .segmented-control.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-field {
    grid-template-columns: 1fr;
  }

  .search-field .button {
    width: 100%;
  }

  .place-result {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .selected-label {
    display: none;
  }

  .date-fields,
  .identity-grid,
  .interest-grid,
  .theme-options,
  .review-grid,
  .crop-controls {
    grid-template-columns: 1fr;
  }

  .interest-toolbar {
    align-items: flex-end;
  }

  .interest-search {
    min-width: 0;
  }

  .theme-swatch {
    height: 58px;
  }

  .cover-heading {
    align-items: flex-end;
  }

  .cover-crop {
    height: 165px;
  }

  .domain-field > span {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 0.7rem;
  }

  .build-stages ol {
    grid-template-columns: 1fr;
  }

  .result-actions {
    flex-direction: column;
  }

  .form-actions {
    grid-template-columns: auto 1fr;
  }

  .action-status {
    display: none;
  }

  .form-actions .button-primary {
    justify-self: stretch;
  }

  .preview-toolbar {
    align-items: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Production account and publication views */
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.1fr);
  background: var(--surface);
}

.auth-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding: 42px clamp(34px, 5vw, 84px);
  color: #f5f7f4;
  background: #203b32;
}

.auth-intro .product-brand {
  color: white;
}

.auth-intro .product-brand small,
.auth-intro .eyebrow {
  color: #b9dbcc;
}

.auth-intro h1 {
  max-width: 650px;
  margin: 8px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  line-height: 1.07;
}

.auth-intro > div > p:last-child {
  max-width: 610px;
  margin: 0;
  color: #d8e3dc;
  font-size: 1rem;
}

.auth-principles {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.auth-principles div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-principles dt {
  font-weight: 800;
}

.auth-principles dd {
  margin: 0;
  color: #cbd8d0;
  font-size: 0.82rem;
}

.auth-panel {
  display: grid;
  width: min(100% - 48px, 470px);
  align-self: center;
  justify-self: center;
  gap: 26px;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 18px 50px rgba(25, 43, 34, 0.1);
}

.auth-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.auth-mode button {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
}

.auth-mode button.is-active {
  color: var(--ink);
  background: white;
  box-shadow: 0 1px 3px rgba(28, 45, 37, 0.1);
}

.auth-panel form > header {
  margin-bottom: 28px;
}

.auth-panel h2 {
  margin: 4px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.auth-panel header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-submit {
  width: 100%;
}

.auth-error {
  min-height: 20px;
  margin-bottom: 10px;
}

.account-chip {
  max-width: 190px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-view {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - var(--topbar-height));
  padding: 46px 0 80px;
  margin: 0 auto;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dashboard-heading h1 {
  margin: 4px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
}

.dashboard-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.dashboard-status {
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.publication-list {
  display: grid;
  gap: 10px;
}

.publication-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(190px, 0.8fr) minmax(150px, 0.55fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 17px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.publication-row > div {
  min-width: 0;
}

.publication-row h2 {
  margin: 0 0 2px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-row p,
.publication-row small {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 4px 7px;
  color: #735214;
  background: #fff1d1;
  border: 1px solid #d8b467;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.publication-state.is-active {
  color: #15533f;
  background: #e0f0e7;
  border-color: #8ab8a2;
}

.publication-actions {
  display: flex;
  justify-content: end;
  gap: 7px;
}

.empty-publications {
  padding: 62px 28px;
  text-align: center;
  border: 1px dashed var(--line-strong);
}

.empty-publications h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
}

.empty-publications p {
  margin: 0;
  color: var(--muted);
}

.manager-view {
  display: grid;
  gap: 24px;
}

.manager-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.manager-heading h2 {
  margin: 7px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.manager-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.manager-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.manager-facts div {
  min-width: 0;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
}

.manager-facts div:last-child {
  border-right: 0;
}

.manager-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.manager-facts dd {
  margin: 4px 0 0;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manager-interests span {
  padding: 5px 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 750;
}

.run-history {
  display: grid;
  gap: 10px;
}

.run-history h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.run-list {
  display: grid;
  gap: 7px;
}

.run-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.run-row small {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-run {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line-strong);
}

.build-stages li.is-active {
  background: #eef4f0;
  box-shadow: inset 0 0 0 2px var(--brand-soft);
}

.build-stages li.is-complete > span {
  color: white;
  background: var(--brand);
}

.place-results {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.place-results .place-result {
  margin-top: 0;
}

.place-result:not(.is-selected) .selected-label {
  display: none;
}

.place-result:not(.is-selected) {
  background: white;
}

.custom-interest {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1fr);
  align-items: end;
  gap: 24px;
  padding: 16px;
  background: #f4f5f1;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.custom-interest p {
  margin: 0;
}

.cover-alt-field {
  margin: 18px 0 0;
}

.build-status-line {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.result-actions {
  flex-wrap: wrap;
}

.button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

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

  .auth-intro {
    min-height: auto;
    padding: 32px;
  }

  .auth-intro h1 {
    font-size: 2.25rem;
  }

  .auth-principles {
    display: none;
  }

  .auth-panel {
    margin: 38px auto;
  }

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

  .publication-row > div:nth-child(2),
  .publication-row > div:nth-child(3) {
    display: none;
  }

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

  .manager-facts {
    grid-template-columns: 1fr 1fr;
  }

  .manager-facts div:nth-child(2) {
    border-right: 0;
  }

  .manager-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .auth-intro {
    gap: 34px;
    padding: 24px 20px 30px;
  }

  .auth-intro h1 {
    font-size: 1.85rem;
  }

  .auth-panel {
    width: calc(100% - 28px);
    padding: 24px 18px;
    margin: 24px auto;
  }

  .topbar-actions .account-chip,
  .topbar-actions .save-state {
    display: none;
  }

  .topbar-actions {
    gap: 5px;
  }

  .topbar-actions .button {
    padding-inline: 9px;
    font-size: 0.72rem;
  }

  .dashboard-view {
    width: calc(100% - 28px);
    padding-top: 28px;
  }

  .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .dashboard-heading h1 {
    font-size: 1.85rem;
  }

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

  .publication-actions {
    justify-content: start;
  }

  .manager-facts {
    grid-template-columns: 1fr;
  }

  .manager-facts div,
  .manager-facts div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .manager-facts div:last-child {
    border-bottom: 0;
  }

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

  .custom-interest {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .custom-interest .search-field {
    grid-template-columns: 1fr;
  }
}
