/* Ragnarok — charcoal, ash, and new growth. Local fonts and artwork only. */
/* Contrast rule (PRD §17): text/background pairs meet WCAG 4.5:1 (3:1 large), and no
   element-only selector sets a background. Sidebar rules use :where(.site) so they stay
   in the sidebar without changing specificity. tests/test_contrast.py enforces both. */
:root {
  --bg: #eeeee6;
  --card: #fafbf6;
  --ink: #28342d;
  --muted: #626b61;
  --line: #d4d9cd;
  --accent: #42644b;
  --accent-soft: #e3ebdf;
  --sidebar: #252d29;
  --leaf: #b5c79f;
  --ok: #345d3d;
  --ok-soft: #e1ebdc;
  --warn: #86501d;
  --warn-soft: #f4e8cf;
  --danger: #9d3d29;
  --danger-soft: #f5e3dc;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

button, a, input, select {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site :focus-visible {
  outline-color: var(--leaf);
}

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(32px, 3.1vw, 46px);
  overflow-wrap: anywhere;
  margin-bottom: 14px;
}

h2 {
  font-size: 29px;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 18px;
}

h4 {
  font-size: 14px;
  font-weight: 600;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--card);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 10;
}

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

.site {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  padding: 34px 20px 26px;
  background: var(--sidebar);
  color: #eef1e7;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1.3px;
  padding: 0 6px;
}

.brand:hover {
  text-decoration: none;
}

.branch-mark {
  width: 32px;
  height: 42px;
  flex: none;
  color: var(--accent);
}

.brand .branch-mark {
  color: var(--leaf);
}

.brand-period {
  color: var(--leaf);
}

.workspace-label {
  font: 9px/1.5 var(--mono);
  letter-spacing: .13em;
  color: #afb9ab;
  margin: 36px 12px 15px;
}

:where(.site) nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

:where(.site) nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #c9d0c3;
}

:where(.site) nav a span {
  font: 10px var(--mono);
  color: #a2b299;
}

:where(.site) nav a:hover {
  background: #303b32;
  color: white;
  text-decoration: none;
}

:where(.site) nav a[aria-current=page] {
  background: #3a493b;
  border-color: #50614b;
  color: white;
}

:where(.site) nav a[aria-current=page]::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--leaf);
  margin-left: auto;
}

.sidebar-note {
  margin-top: auto;
  padding: 64px 12px 0;
  color: #bcc6b6;
}

.sidebar-note .eyebrow {
  color: #bcc6b6;
  font-size: 8px;
  letter-spacing: .09em;
}

.sidebar-note p {
  margin: 12px 0 0;
  font: 20px/1.45 var(--serif);
}

.workspace {
  margin-left: 228px;
  min-width: 0;
}

.workspace-bar {
  min-height: 70px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font: 9px/1.5 var(--mono);
  letter-spacing: .08em;
  color: var(--muted);
}

.workspace-divider {
  padding: 0 12px;
  color: var(--muted);
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font: 12px/1.5 var(--mono);
  letter-spacing: 0;
  border: 1px solid #cbd5c4;
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 6px 11px;
  color: var(--ok);
}

.mode > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

main {
  max-width: 1320px;
  margin: auto;
  padding: 36px 40px 52px;
  min-height: calc(100vh - 210px);
}

.eyebrow {
  font: 10px/1.6 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 34px;
}

.hero-copy > .eyebrow {
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-description {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.hero-art {
  height: 252px;
  color: #738b69;
  padding: 18px 22px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.art-topline, .art-bottomline {
  font: 8px/1.5 var(--mono);
  letter-spacing: .11em;
  color: var(--muted);
}

.signal-art {
  width: 100%;
  flex: 1;
  min-height: 0;
}

.art-bottomline {
  text-align: right;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(210px, 1fr);
  gap: 32px;
  align-items: start;
}

.campaign-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 26px 28px 0;
  min-width: 0;
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.form-heading .eyebrow {
  margin: 0 0 7px;
  font-size: 9px;
}

.form-heading h2, .form-heading h3 {
  font: 24px/1.25 var(--serif);
  letter-spacing: -.03em;
  margin: 0;
}

.form-tag {
  font: 8px/1.5 var(--mono);
  color: var(--muted);
  letter-spacing: .1em;
  white-space: nowrap;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}

legend {
  width: 100%;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

legend > span:not(.section-number) {
  float: right;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.section-number {
  font: 10px var(--mono);
  color: var(--accent);
  margin-right: 10px;
}

.form-section + .form-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.form-section .field:last-child {
  margin-bottom: 0;
}

.field {
  min-width: 0;
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px;
}

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

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0 20px;
}

input[type=text], input[type=number], input[type=date], select, textarea {
  background: #fffefa;
  border: 1px solid var(--muted);
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--ink);
  min-height: 44px;
  max-width: 100%;
}

.field input, .field select, .field textarea {
  width: 100%;
}

input:hover, select:hover, textarea:hover {
  border-color: var(--accent);
}

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

.field input[readonly] {
  background: var(--bg);
  color: var(--muted);
}

textarea {
  resize: vertical;
}

.field-hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 0;
}

.field-hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.audience-field {
  max-width: 270px;
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding-right: 70px;
}

.input-unit > span {
  position: absolute;
  right: 13px;
  top: 12px;
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
}

label.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 14px;
}

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

.channel-option {
  border: 1px solid var(--muted);
  border-radius: 3px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 10px;
  cursor: pointer;
  font-size: 12px;
  position: relative;
}

.channel-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.channel-option:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.channel-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.channel-icon {
  font-size: 19px;
  line-height: 1;
}

.checkmark {
  margin-left: auto;
  border: 1px solid var(--muted);
  width: 15px;
  height: 15px;
  flex: none;
  font-size: 11px;
  line-height: 13px;
  color: transparent;
  text-align: center;
  border-radius: 2px;
}

.channel-option:has(input:checked) .checkmark {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.form-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.form-footer p {
  margin: 0;
  font-size: 12px;
}

.form-footer p > span {
  color: var(--muted);
  font-size: 11px;
}

button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 11px 17px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}

button:hover, .button-link:hover {
  background: #314f39;
  border-color: #314f39;
  text-decoration: none;
}

button > span {
  font-size: 18px;
  line-height: 1;
}

.brief-intro {
  padding: 24px 0 0;
}

.brief-intro h2 {
  font-size: 27px;
}

.workflow {
  list-style: none;
  counter-reset: workflow;
  padding: 0;
  margin: 28px 0;
}

.workflow li {
  position: relative;
  counter-increment: workflow;
  padding: 0 0 22px 33px;
}

.workflow li::before {
  content: '0' counter(workflow);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font: 10px/1.6 var(--mono);
}

.workflow li + li {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.workflow li + li::before {
  top: 19px;
}

.workflow strong {
  font-size: 12px;
  font-weight: 600;
}

.workflow p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 6px 0 0;
}

.studio-note {
  padding: 18px;
  border: 1px solid #cad5c0;
  background: #e6ebdd;
  border-radius: 3px;
}

.studio-note .eyebrow {
  font-size: 9px;
}

.studio-note p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.page-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.page-heading > .eyebrow {
  margin-bottom: 12px;
}

.page-heading p:last-child {
  margin-bottom: 0;
  max-width: 760px;
}

.page-heading h1 code {
  font-size: .55em;
}

.card, section.channel, section.overview, .analytics-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 24px;
  margin: 22px 0;
  min-width: 0;
}

.card, section.channel, section.overview {
  overflow-x: auto;
}

section.channel h3 {
  text-transform: capitalize;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.table-scroll {
  margin-bottom: 16px;
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

table:has(th:nth-child(4)) {
  min-width: 600px;
}

th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font: 10px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f0f3e9;
}

td {
  min-width: 90px;
}

td a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

td ul {
  padding-left: 16px;
  margin: 0;
}

tr.winner td {
  background: var(--ok-soft);
}

tbody tr:last-child td {
  border-bottom: 0;
}

code {
  font: 11px/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font: 10px/1.5 var(--mono);
  background: var(--bg);
}

.status.approved, .status.state-approved, .status.sent {
  background: var(--ok-soft);
  color: var(--ok);
}

.status.compliance_flagged, .status.brand_flagged, .status.state-in_review, .status.upcoming {
  background: var(--warn-soft);
  color: var(--warn);
}

.status.state-rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.status.state-draft {
  background: var(--bg);
  color: var(--muted);
}

.pass, .winner-label {
  color: var(--ok);
}

.flagged {
  color: var(--warn);
}

.winner-label {
  font: 10px var(--mono);
  display: inline-block;
  margin-top: 5px;
}

.form-errors {
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
  color: var(--danger);
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 13px;
}

.form-errors ul {
  margin: 0;
  padding-left: 18px;
}

.form-errors p:last-child {
  margin-bottom: 0;
}

.notice {
  background: var(--ok-soft);
  color: var(--ok);
  border-left: 3px solid var(--ok);
  padding: 12px 16px;
  font-size: 13px;
}

.notice.warning {
  background: var(--warn-soft);
  color: var(--warn);
  border-left-color: var(--warn);
}

pre {
  background: var(--bg);
  border-left: 2px solid var(--accent);
  padding: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px/1.8 var(--mono);
  margin-bottom: 30px;
}

section.card form, td form {
  display: inline-block;
  margin: 0 8px 8px 0;
}

form.delete-form button, form[action$='/reject'] button {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

form.delete-form button:hover, form[action$='/reject'] button:hover {
  background: var(--danger-soft);
}

td button {
  padding: 7px 10px;
  font-size: 11px;
}

.chart {
  margin: 20px 0 28px;
  display: grid;
  gap: 12px;
}

.chart .row {
  display: grid;
  grid-template-columns: minmax(100px, 170px) minmax(40px, 1fr) minmax(76px, auto);
  gap: 15px;
  align-items: center;
}

.chart .label {
  font: 11px/1.5 var(--mono);
  overflow-wrap: anywhere;
  color: var(--muted);
}

.chart .track {
  background: #e5eadf;
  height: 17px;
  overflow: hidden;
  border-radius: 2px;
}

.chart .bar {
  display: block;
  height: 100%;
  background: #768c67;
}

.chart .row.win .bar {
  background: var(--ok);
}

.chart .val {
  font: 12px/1.5 var(--mono);
  text-align: right;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.stats li {
  padding: 0 15px 22px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.stats li:first-child {
  padding-left: 0;
}

.stats li:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
  margin-top: 8px;
  overflow-wrap: anywhere;
}

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

.export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.export a {
  border: 1px solid var(--muted);
  border-radius: 3px;
  padding: 10px 16px;
  background: var(--card);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  background: #e5e9df;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 5px;
  margin-bottom: 22px;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  min-width: 130px;
}

.filters input, .filters select {
  font-size: 12px;
}

.empty-state {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 55px 20px;
  background: var(--card);
}

.empty-symbol {
  margin-bottom: 20px;
}

.empty-symbol .branch-mark {
  width: 42px;
  height: 52px;
}

.empty-state h3 {
  font: 28px/1.2 var(--serif);
}

.empty-state .button-link {
  margin-top: 12px;
}

.site-footer {
  max-width: 1240px;
  margin: 0 40px;
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-signature {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 9px/1.8 var(--mono);
  letter-spacing: .1em;
}

.footer-signature .branch-mark {
  width: 25px;
  height: 36px;
}

.footer-note {
  font: 11px/1.8 Arial, sans-serif;
  color: var(--muted);
  letter-spacing: 0;
}

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

.epigraph blockquote {
  font: italic 14px/1.6 var(--serif);
  margin: 0 0 6px;
}

.epigraph figcaption {
  font: 9px/1.5 var(--mono);
}

/* M8b audiences: rule toggles, legal badge, waterfall chart. */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font: 10px/1.5 var(--mono);
  background: var(--bg);
  color: var(--muted);
}

.badge.legal {
  background: var(--warn-soft);
  color: var(--warn);
}

.rule-toggles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.rule-toggles li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.rule-toggles label.check {
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.rule-toggles li.locked label.check {
  color: var(--muted);
}

.rule-toggles .field-hint {
  margin: 0 0 8px;
}

section.card form.toggle-form {
  display: block;
  margin: 0;
}

.field-label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.band-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.waterfall {
  margin: 20px 0 14px;
  display: grid;
  gap: 10px;
}

.wf-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(40px, 1fr) minmax(90px, auto);
  gap: 15px;
  align-items: center;
}

.wf-row .label {
  font: 11px/1.5 var(--mono);
  overflow-wrap: anywhere;
  color: var(--muted);
}

.wf-bar {
  display: block;
  width: 100%;
  height: 17px;
  background: #e5eadf;
  border-radius: 2px;
}

.wf-remaining {
  fill: #768c67;
}

.wf-removed {
  fill: var(--danger);
  opacity: 0.55;
}

.wf-row .val {
  font: 12px/1.5 var(--mono);
  text-align: right;
}

.wf-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px 0 10px;
  vertical-align: middle;
}

.wf-legend .swatch:first-child {
  margin-left: 0;
}

.wf-remaining-swatch {
  background: #768c67;
}

.wf-removed-swatch {
  background: var(--danger);
  opacity: 0.55;
}

@media(min-width: 1600px) { .site-footer { margin-inline: auto; } }
@media(max-width: 1150px) {
  .site {
    width: 200px;
    padding-inline: 14px;
  }

  .workspace {
    margin-left: 200px;
  }

  main {
    padding-inline: 28px;
  }

  .workspace-bar {
    padding-inline: 28px;
  }

  .site-footer {
    margin-inline: 28px;
  }

  .brief-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .brief-intro {
    padding-top: 0;
  }

  .brief-intro h2 {
    font-size: 25px;
  }

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

  .workflow li + li {
    border-top: 0;
    padding-top: 0;
  }

  .workflow li + li::before {
    top: 2px;
  }

  .studio-note {
    max-width: 520px;
  }

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

  .stats li {
    padding-left: 0;
    border-right: 0;
  }

}
@media(max-width: 760px) {
  .site {
    position: static;
    width: auto;
    padding: 16px 20px;
    overflow: visible;
  }

  .brand {
    font-size: 26px;
    padding: 0;
  }

  .brand .branch-mark {
    width: 26px;
    height: 34px;
  }

  .workspace-label, .sidebar-note {
    display: none;
  }

  :where(.site) nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 18px;
  }

  :where(.site) nav a {
    padding: 10px 7px;
    min-height: 44px;
    gap: 0;
    font-size: 12px;
    justify-content: center;
  }

  :where(.site) nav a span, :where(.site) nav a[aria-current=page]::after {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

  .workspace-bar {
    padding: 14px 20px;
    min-height: 56px;
  }

  .workspace-bar > span:first-child {
    font-size: 10px;
  }

  .workspace-divider {
    padding: 0 5px;
  }

  main {
    padding: 28px 20px 36px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-art {
    display: none;
  }

  .brief-layout {
    gap: 28px;
  }

  .campaign-form {
    padding: 22px 20px 0;
  }

  .form-heading h2 {
    font-size: 24px;
  }

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

  .field input, .field select, .field textarea, .filters input, .filters select {
    font-size: 16px;
  }

  .field-row .field:last-child {
    margin-bottom: 0;
  }

  .channel-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-option {
    padding: 12px;
  }

  .form-footer {
    flex-wrap: wrap;
  }

  .form-footer button {
    width: 100%;
    justify-content: space-between;
  }

  legend > span:not(.section-number) {
    float: none;
    display: block;
    margin-top: 4px;
  }

  .workflow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .workflow li + li {
    border-top: 1px solid var(--line);
    padding-top: 17px;
  }

  .workflow li + li::before {
    top: 19px;
  }

  .card, section.channel, section.overview, .analytics-block {
    padding: 18px 14px;
  }

  .chart .row {
    grid-template-columns: minmax(70px, 100px) minmax(20px, 1fr) minmax(70px, auto);
    gap: 8px;
  }

  .chart .val {
    font-size: 11px;
  }

  .wf-row {
    grid-template-columns: minmax(70px, 110px) minmax(20px, 1fr) minmax(70px, auto);
    gap: 8px;
  }

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

  .stats strong {
    font-size: 21px;
  }

  .filters label {
    flex: 1 1 130px;
  }

  .site-footer {
    margin-inline: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .desktop-break {
    display: none;
  }

}
@media(max-width: 360px) {
  :where(.site) nav a {
    font-size: 11px;
  }

  .workspace-bar {
    gap: 8px;
  }

  .workspace-bar > span:first-child {
    max-width: 105px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .form-tag {
    display: none;
  }

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

  *, *::before, *::after {
    transition: none !important;
  }

}
@media print {
  body {
    background: white;
  }

  .site, .workspace-bar, .site-footer, .export, button {
    display: none;
  }

  .workspace {
    margin: 0;
  }

  table:has(th:nth-child(4)) {
    min-width: 0;
  }

  .table-scroll {
    overflow: visible;
  }

  main {
    padding: 0;
    max-width: none;
  }

  .card, section.channel, section.overview {
    break-inside: avoid;
    overflow: visible;
  }

}

/* M8a: workspace switcher in the sidebar */
.workspace-switcher {
  margin-top: 28px;
}

.workspace-switcher ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.workspace-switcher a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.workspace-switcher a[aria-current="true"] {
  background: rgba(255, 255, 255, .08);
  font-weight: 600;
}

/* M8e competition: tabs, comparison verdicts, share-of-voice chart, brief. */
.competition-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.competition-tabs a {
  padding: 6px 0 8px;
  font: 10px/1.6 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.competition-tabs a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.competition-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

table.comparison th[scope="row"] {
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

table.comparison .ours {
  background: var(--accent-soft);
}

table.comparison tfoot td, table.comparison tfoot th {
  border-top: 1px solid var(--line);
  font: 11px/1.5 var(--mono);
}

.verdict {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  font: 10px/1.5 var(--mono);
  text-transform: uppercase;
}

.verdict.win {
  background: var(--ok-soft);
  color: var(--ok);
}

.verdict.lose {
  background: var(--danger-soft);
  color: var(--danger);
}

/* === M8e MK: marketplaces (upload, screenshot review, dashboard) === */
.status.mk-pending {
  background: var(--warn-soft);
  color: var(--warn);
}

.status.mk-confirmed {
  background: var(--ok-soft);
  color: var(--ok);
}

.status.mk-failed, .status.mk-rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.verdict.tie {
  background: var(--bg);
  color: var(--muted);
}

.sov-legend {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 12px;
}

.sov-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}

.sov-chart {
  display: block;
  max-width: none;
}

.sov-axis {
  stroke: var(--line);
}

.sov-tick {
  font: 9px var(--mono);
  fill: var(--muted);
}

.sov-c0 { background: #42644b; fill: #42644b; }
.sov-c1 { background: #b5c79f; fill: #b5c79f; }
.sov-c2 { background: #86501d; fill: #86501d; }
.sov-c3 { background: #626b61; fill: #626b61; }
.sov-c4 { background: #9d3d29; fill: #9d3d29; }
.sov-c5 { background: #28342d; fill: #28342d; }

.brief-summary {
  font: 18px/1.5 var(--serif);
  margin: 0;
}

.brief-sources li {
  margin-bottom: 6px;
}
/* === M8c landscaping core (G2): feedback widget, service-area map === */
.feedback-widget {
  margin: 0 clamp(16px, 4vw, 40px) 28px;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
}

.feedback-widget summary {
  cursor: pointer;
  padding: 12px 16px;
  font: 11px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.feedback-widget[open] summary {
  border-bottom: 1px solid var(--line);
}

.feedback-widget form {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.feedback-widget label {
  font-size: 12px;
  color: var(--muted);
}

.feedback-widget button {
  justify-self: start;
}

.feedback-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.town-map-figure {
  margin: 0;
}

.town-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.map-legend .swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
  border-radius: 2px;
}

.swatch-nbhd {
  background: var(--accent-soft);
  border: 1px solid #c3cbbb;
}

.swatch-route {
  background: linear-gradient(90deg, #42644b 33%, #86501d 33% 66%, #56708a 66%);
}

.swatch-zone {
  background: repeating-linear-gradient(45deg, var(--danger) 0 3px, var(--danger-soft) 3px 7px);
  border: 1px solid var(--danger);
}

.swatch-area {
  border: 2px dashed var(--ink);
}

.zone-list {
  padding-left: 18px;
  margin: 0 0 30px;
}

.zone-list li {
  margin-bottom: 6px;
}

@media print {
  .feedback-widget {
    display: none;
  }
}
/* === end M8c landscaping core === */
/* === M8b WA-03: campaign audience picker + per-tier report breakdown === */
.audience-picker {
  max-width: 420px;
  margin-bottom: 18px;
}

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

section.tiers h4 {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.tier-table th[scope="row"] {
  color: var(--ink);
  font-weight: 500;
  text-transform: capitalize;
}

.tier-table tr.total th,
.tier-table tr.total td {
  border-top: 1px solid var(--muted);
  font-weight: 600;
}
.mk-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.mk-stats .card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mk-stats strong {
  font: 28px/1.1 var(--serif);
  color: var(--ink);
}

.mk-review {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.mk-shot {
  margin: 0;
}

.mk-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mk-shot figcaption {
  font-size: 11px;
  margin-top: 8px;
}

.mk-listings input, .mk-listings select {
  width: 100%;
  min-width: 70px;
  min-height: 36px;
  padding: 6px 8px;
}

.mk-decisions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.mk-decision {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

@media (max-width: 760px) {
  .mk-review {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* === M8c LW: landscaping campaigns, customers, catalog, season, settings === */
.land-gain {
  color: var(--ok);
}

.land-loss {
  color: var(--danger);
}

.land-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.land-filters,
.land-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 18px;
  font: 12px/1.5 var(--mono);
}

.land-filters a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.land-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.land-calendar h2 {
  margin-top: 0;
  font-size: 18px;
}

.land-alert {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--warn);
  background: var(--warn-soft);
  font-size: 13px;
}

.land-demand td.land-peak {
  background: var(--accent-soft);
  font-weight: 600;
}

.land-advanced {
  margin-top: 24px;
  border-color: var(--accent);
}

.land-renewal {
  margin-bottom: 18px;
}

.land-asof {
  margin: 0 0 18px;
}
/* === end M8c LW === */

/* === M8d budgets: pacing banner, budget grid, pace badges, overrun === */
.pace-banner {
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  color: var(--warn);
  padding: 12px 16px;
  margin: 0 0 22px;
  font-size: 13px;
}

.pace-banner a {
  color: inherit;
  font-weight: 700;
}

.budget-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 14px;
  margin: 18px 0;
}

.budget-controls fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.budget-links {
  font-size: 13px;
}

.budget-grid td.num,
.budget-grid td.year,
table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.budget-grid td {
  min-width: 72px;
  padding: 6px 8px;
}

.budget-grid td.stage {
  color: var(--muted);
  font: 10px/1.5 var(--mono);
  text-transform: uppercase;
}

.budget-grid tbody.budget-line {
  border-top: 2px solid var(--line);
}

.budget-grid tbody.budget-total {
  background: var(--accent-soft);
  font-weight: 700;
}

.budget-grid input {
  width: 84px;
}

.pace {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font: 10px/1.6 var(--mono);
  text-transform: uppercase;
}

.pace.on_pace {
  background: var(--ok-soft);
  color: var(--ok);
}

.pace.over {
  background: var(--danger-soft);
  color: var(--danger);
}

.pace.under {
  background: var(--warn-soft);
  color: var(--warn);
}

.budget-revise label {
  display: block;
  margin-top: 10px;
}

.budget-revise textarea {
  width: 100%;
  max-width: 560px;
}

.budget-overrun {
  border-left: 3px solid var(--danger);
  padding-left: 14px;
}

@media (max-width: 760px) {
  .budget-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
/* === end M8d budgets === */

/* === M8e FB: customer feedback dashboard + ratings beside competitors === */
.fb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.fb-stats .card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fb-stats strong {
  font: 28px/1.1 var(--serif);
  color: var(--ink);
}

.fb-alerts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fb-chart {
  display: block;
  max-width: none;
  margin-bottom: 14px;
}

.fb-zero {
  stroke: var(--line);
}

.fb-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.fb-dot {
  fill: var(--accent);
}

.fb-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 24px;
}

.fb-counts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fb-counts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.fb-reseed {
  margin-top: 28px;
}
/* === end M8e FB === */

/* === M8e CI-05..CI-06, MK-07: local competition, placement, our share of voice === */
.sov-ours { background: #56708a; fill: #56708a; }

.rating-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.rating-line.sov-c0 { stroke: #42644b; }
.rating-line.sov-c1 { stroke: #b5c79f; }
.rating-line.sov-c2 { stroke: #86501d; }
.rating-line.sov-c3 { stroke: #626b61; }
.rating-line.sov-c4 { stroke: #9d3d29; }
.rating-line.sov-c5 { stroke: #28342d; }

.swatch-covered {
  background: #3f6f8f;
  opacity: .55;
}

.swatch-gap {
  background: repeating-linear-gradient(-45deg, #c9842f 0 3px, transparent 3px 7px);
  border: 1px solid #c9842f;
}

.coverage-gaps, .differentiators {
  padding-left: 18px;
  margin: 0 0 18px;
}

.coverage-gaps li, .differentiators li {
  margin-bottom: 4px;
}
/* === end M8e CI-05..CI-06, MK-07 === */

/* === M8f CRM connections (CW-01): real-send guard, sync actions, write-backs === */
.crm-warning {
  background: var(--danger-soft);
  border-left: 3px solid var(--danger);
  color: var(--danger);
  padding: 10px 14px;
  margin: 12px 0;
}

.status.crm-simulated, .status.crm-succeeded {
  background: var(--ok-soft);
  color: var(--ok);
}

.status.crm-real {
  background: var(--warn-soft);
  color: var(--warn);
}

.status.crm-failed, .crm-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.crm-guard .status {
  margin-right: 6px;
}

.crm-env {
  margin: 6px 0 0;
  padding-left: 18px;
}

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

.crm-writebacks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.crm-writebacks form h3 {
  margin-top: 0;
}

.crm-writebacks button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
/* === end M8f CRM connections === */

/* M9 PL-03: the guided tour. */
.tour-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.tour-step h2 {
  margin: 4px 0 2px;
}

.tour-title {
  font-weight: 600;
}

.tour-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.tour-unseeded pre {
  margin: 8px 0;
  overflow-x: auto;
}

/* === M11a identity: the signed-in user in the sidebar, "view as", login === */
.sidebar-account {
  margin-top: 28px;
  padding: 0 12px;
  color: #c9d0c3;
  font-size: 13px;
}

.sidebar-account .eyebrow {
  color: #bcc6b6;
  font-size: 8px;
  letter-spacing: .09em;
}

.sidebar-account p {
  margin: 8px 0;
}

.sidebar-account a {
  color: #c9d0c3;
}

.sidebar-account .logout-button {
  background: transparent;
  color: #c9d0c3;
  border-color: var(--leaf);
  min-height: 36px;
  padding: 6px 12px;
}

.sidebar-account .logout-button:hover {
  background: #303b32;
  color: white;
}

.view-as-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  color: var(--warn);
  padding: 12px 16px;
  margin: 0 0 22px;
  font-size: 13px;
}

.login-page {
  max-width: 440px;
  margin: 64px auto;
  padding: 0 16px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 22px var(--serif);
  color: var(--accent);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.role-grid .card {
  padding: 18px 20px;
}

/* M11f web and app channel: placement statuses and the phone / web frame previews
   (pure CSS, no images). Every rule is scoped to a wa- class; each text colour
   that sits on its own surface sets that surface too. */
.status.wa-live {
  background: var(--ok-soft);
  color: var(--ok);
}

.status.wa-draft {
  background: var(--bg);
  color: var(--muted);
}

.status.wa-ended {
  background: var(--warn-soft);
  color: var(--warn);
}

.wa-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin: 14px 0;
}

.wa-previews {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 30px;
}

.wa-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

@media (max-width: 800px) {
  .wa-previews {
    grid-template-columns: 1fr;
  }
}

.wa-frame {
  margin: 0;
}

.wa-frame figcaption {
  margin-top: 8px;
  font-size: 12px;
}

.wa-phone {
  max-width: 300px;
  padding: 12px 12px 10px;
  border-radius: 30px;
  background: var(--ink);
}

.wa-phone figcaption {
  color: var(--leaf);
  background: var(--ink);
  text-align: center;
}

.wa-phone-screen {
  min-height: 460px;
  padding: 10px 12px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  color: var(--ink);
}

.wa-statusbar {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  font: 11px/1.4 var(--mono);
  color: var(--muted);
}

.wa-browser {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}

.wa-browser figcaption {
  padding: 0 14px 10px;
}

.wa-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.wa-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.wa-url {
  flex: 1;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 10px;
  font: 11px/1.5 var(--mono);
  overflow-wrap: anywhere;
  background: var(--card);
  color: var(--muted);
}

.wa-browser-page {
  padding: 16px;
}

.wa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--ink);
}

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

.wa-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  background: var(--card);
}

.wa-image-alt {
  font: 11px/1.4 var(--mono);
  text-align: center;
  color: var(--muted);
  background: var(--card);
}

.wa-headline {
  margin: 0 0 6px;
  font: 18px/1.25 var(--serif);
  color: var(--ink);
}

.wa-copy-body {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink);
}

.wa-section-heading {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--ink);
}

.wa-cta {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent);
  color: white;
}

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

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

.wa-tile {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
}

.wa-tile-ghost {
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.wa-app-dim {
  padding: 40px 10px;
  border-radius: 12px;
  background: var(--line);
}

.wa-modal {
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}

.wa-dismiss {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
}

.wa-lock {
  background: var(--sidebar);
  color: white;
}

.wa-lock-time {
  margin: 30px 0 24px;
  font: 44px/1 var(--serif);
  text-align: center;
  background: var(--sidebar);
  color: white;
}

.wa-lock-hint {
  margin: 14px 0 0;
  font-size: 12px;
  text-align: center;
  background: var(--sidebar);
  color: #c9d0c3;
}

.wa-push {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}

.wa-push-app {
  margin: 0 0 2px;
  font: 10px/1.4 var(--mono);
  color: var(--muted);
  background: var(--card);
}

.wa-push-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.wa-push-body {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.wa-not-shown {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--muted);
}

.wa-landing-section {
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

/* === M11e planning: month grid, quarter columns, conflict days === */
.plan-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0 0 26px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.plan-cal-head {
  padding: 4px 6px;
  font: 10px/1.6 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan-cal-day {
  min-height: 92px;
  padding: 4px 6px;
  background: var(--card);
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.plan-cal-day.plan-cal-pad {
  background: var(--bg);
  color: var(--muted);
}

.plan-cal-day.plan-cal-conflict {
  box-shadow: inset 0 0 0 2px var(--danger);
}

.plan-cal-date {
  display: block;
  font: 11px/1.5 var(--mono);
}

/* The day's weekday: the column heads say it on wide screens; on phones (one
   column, heads hidden) each day shows its own. */
.plan-cal-wd {
  display: none;
}

.plan-cal-items, .plan-day-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 12px;
}

.plan-cal-items li {
  margin: 0 0 6px;
}

.plan-day-list > li {
  margin: 0 0 10px;
}

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

.plan-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  border: 0;
  margin: 0;
  padding: 0;
}

.plan-goal-input {
  width: 7em;
}

@media (max-width: 900px) {
  .plan-quarter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .plan-cal {
    grid-template-columns: 1fr;
  }

  .plan-cal-head, .plan-cal-day.plan-cal-pad {
    display: none;
  }

  .plan-cal-day {
    min-height: 0;
  }

  .plan-cal-wd {
    display: inline;
  }
}

/* M11h PD2-02: the "?" help link above each page's heading. */
.page-help {
  margin: 0 0 6px;
  text-align: right;
  font: 12px/1.5 var(--mono);
}

.help-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-link > span {
  display: inline-block;
  min-width: 1.4em;
  border: 1px solid var(--accent);
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
}

/* A form shown disabled to a viewer who may not use it (read_only_note). */
.read-only-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
