:root {
  --paper: #f7f5f0;
  --surface: #fffdfa;
  --ink: #293c37;
  --muted: #68716a;
  --line: #dcded3;
  --oak: #bd8960;
  --pale: #e8ebdf;
  --danger: #943e31;
  --amber: #785629;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shell-width: 1510px;
  --page-gutter: clamp(16px, 3vw, 32px);
  --article-width: 850px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #5f806b;
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:hover:not(:disabled) {
  filter: brightness(0.97);
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 15px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
}
/* Shared bounds keep the header, planner and footer aligned on wide screens. */
.site-shell {
  width: 100%;
  max-width: var(--shell-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  font: 600 32px var(--serif);
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -1.5px;
}
.wordmark-dot {
  color: var(--oak);
}
.logo {
  display: grid;
  grid-template-columns: 8px 10px;
  grid-template-rows: 10px 10px;
  gap: 3px;
  margin-right: 12px;
  transform: rotate(-5deg);
}
.logo i {
  border: 1.5px solid var(--ink);
}
.logo i:first-child {
  grid-row: span 2;
}
.prototype-tag {
  font-size: 10px;
  letter-spacing: 1.4px;
  border: 1px solid #cdd2c6;
  border-radius: 30px;
  padding: 5px 11px;
}
.prototype-tag span {
  letter-spacing: 0.2px;
  color: var(--muted);
}
.local-status {
  font-size: 11px;
  color: var(--muted);
}
.local-status:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #78876b;
  border-radius: 50%;
  margin-right: 7px;
}
main {
  padding-block: 0 20px;
}
.planner-status {
  margin-bottom: 12px;
}
.intro {
  padding: 35px 0 29px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 600;
  color: var(--muted);
}
h1 {
  font: normal clamp(29px, 3vw, 43px) / 1.18 var(--serif);
  letter-spacing: -1.2px;
  margin: 7px 0 10px;
}
.intro-copy {
  color: var(--muted);
  font-size: 13px;
}
.intro-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 8px 0 30px;
  color: #6f7967;
  font: italic 16px/1.4 var(--serif);
  transform: rotate(-4deg);
}
.note-mark {
  font-size: 42px;
  font-style: normal;
}
.steps {
  display: flex;
  align-items: center;
  gap: 35px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 11px;
  color: var(--muted);
}
.steps span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps b {
  font-size: 10px;
  font-weight: normal;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd0c3;
  border-radius: 50%;
}
.steps .active {
  color: var(--ink);
}
.steps .active b {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.workspace {
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 230px minmax(300px, 1fr) 255px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 15px #374b3610;
}
.left-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.panel-block {
  padding: 20px 18px;
}
.panel-block + .panel-block {
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-heading select {
  border: 0;
  background: transparent;
  font-size: 10px;
  max-width: 100px;
}
.helper {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin: 5px 0 13px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
label {
  font-size: 10px;
  display: block;
  color: #525f54;
}
input,
select.measurement {
  width: 100%;
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffefa;
  padding: 7px 9px;
  margin-top: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
input[aria-invalid="true"] {
  border: 2px solid var(--danger);
}
.unit-label {
  color: var(--muted);
  font-size: 9px;
}
.input-note {
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 9px;
}
.count {
  font-size: 10px;
  font-weight: normal;
  margin-left: 5px;
  color: var(--muted);
}
.text-button {
  background: none;
  padding: 7px 0;
  font-size: 11px;
  white-space: nowrap;
}
.frame-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.frame-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 8px;
  border-radius: 5px;
  background: transparent;
  width: 100%;
  border: 1px solid transparent;
  min-height: 58px;
}
.frame-item.selected {
  background: #eef0e7;
  border-color: #c1ccba;
}
.frame-thumb {
  width: 32px;
  height: 37px;
  flex: none;
  border: 3px solid #ae7e55;
  box-shadow: 1px 2px 3px #30251320;
  background: #eee4ce;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.frame-thumb svg {
  width: 100%;
  height: 100%;
}
.frame-item strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.frame-item small {
  font-size: 9px;
  color: var(--muted);
}
.frame-item .frame-number {
  font-size: 9px;
  margin-left: auto;
  color: var(--muted);
  align-self: flex-start;
}
.left-footer {
  padding: 18px;
  display: flex;
  gap: 8px;
  font-size: 9px;
  color: var(--muted);
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.privacy-icon {
  font-size: 14px;
}
.canvas-panel {
  padding: 20px 24px 16px;
  background: #f1f0e9;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.canvas-toolbar h2 {
  font: 20px var(--serif);
  margin-top: 4px;
}
.view-toggles {
  display: flex;
  gap: 5px;
}
.icon-button {
  background: #faf9f3;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 31px;
  height: 31px;
  font-size: 20px;
  line-height: 1;
}
.icon-button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.wall-wrap {
  position: relative;
  margin: 46px 10px 33px;
  flex: none;
}
.wall {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(108deg, #e9e4d8, #f9f6ee 68%, #f4f0e6);
  box-shadow:
    inset 0 0 30px #8f785910,
    0 8px 15px #574e2e0b;
  isolation: isolate;
}
.wall.grid {
  background-image:
    linear-gradient(#83928220 1px, transparent 1px),
    linear-gradient(90deg, #83928220 1px, transparent 1px),
    linear-gradient(108deg, #e9e4d8, #f9f6ee);
  background-size:
    5% 5%,
    5% 5%,
    100% 100%;
}
.wall:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #c9c5b980;
  pointer-events: none;
}
.wall-width {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid #bfc3b8;
  line-height: 0;
}
.wall-width:before,
.wall-width:after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: #bfc3b8;
}
.wall-width:before {
  left: 0;
}
.wall-width:after {
  right: 0;
}
.wall-width span {
  background: #f1f0e9;
  padding: 0 10px;
}
.wall-height {
  position: absolute;
  left: -26px;
  top: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: 0 0;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.origin-label {
  position: absolute;
  left: -3px;
  top: -17px;
  font-size: 8px;
  color: var(--muted);
}
.elevation-label {
  position: absolute;
  bottom: -23px;
  width: 100%;
  text-align: center;
  font-size: 7px;
  letter-spacing: 1.2px;
  color: #768071;
}
.art-frame {
  position: absolute;
  background: #e2c79d;
  padding: 0;
  border: max(3px, 0.4vw) solid #b58960;
  box-shadow:
    2px 4px 6px #40392135,
    inset 1px 1px 1px #fff8;
  cursor: grab;
  touch-action: none;
  overflow: visible;
  min-width: 0;
  min-height: 0;
}
.art-frame:nth-child(2) {
  border-color: #6f5843;
}
.art-frame:nth-child(3) {
  border-color: #474b3e;
}
.art-frame:nth-child(4) {
  border-color: #c7a177;
}
.art-frame:active {
  cursor: grabbing;
}
.art-frame.selected {
  outline: 1.5px solid var(--ink);
  outline-offset: 5px;
}
.art-frame.selected:after {
  content: attr(data-number);
  position: absolute;
  left: -12px;
  top: -12px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 8px;
  border: 2px solid var(--paper);
}
.art-frame.invalid {
  outline: 2px dashed var(--danger);
  outline-offset: 5px;
}
.art-frame svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  background: #ede7d7;
}
.support-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid #fff;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 8;
}
.layout-controls {
  border-top: 1px solid #d8dccf;
  padding-top: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
}
.preset-buttons {
  display: flex;
  gap: 5px;
}
.preset {
  font-size: 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px 9px;
  color: var(--muted);
}
.preset.active {
  background: #fffcf6;
  border-color: #c3cbbd;
  color: var(--ink);
}
.gap-control {
  display: flex;
  align-items: center;
  gap: 5px;
}
.gap-control input {
  width: 49px;
  margin: 0;
  padding: 5px;
  min-height: 31px;
}
.canvas-help {
  font-size: 9px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.validation {
  margin-top: 14px;
  background: #e4e9da;
  border: 1px solid #d1dac4;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.6;
}
.validation.error {
  background: #f8e8e1;
  border-color: #d9bdb2;
  color: var(--danger);
}
.validation strong {
  font-weight: 500;
}
.validation ul {
  padding-left: 14px;
  margin: 4px 0 0;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 20px 18px;
}
.selected-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: 8px;
}
.selected-index {
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  letter-spacing: 0;
  font-size: 9px;
}
.inspector h2 {
  font: 23px/1.2 var(--serif);
  margin-bottom: 17px;
}
.inspector-section {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}
.inspector-section h3 {
  font-size: 11px;
  margin-bottom: 10px;
}
.field-pair + .field-pair {
  margin-top: 11px;
}
.position-summary {
  font-size: 9px;
  color: var(--muted);
  margin-top: 8px;
}
.nudge {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  align-items: center;
}
.nudge button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8f7f0;
  width: 31px;
  height: 29px;
  font-size: 15px;
}
.nudge span {
  font-size: 9px;
  margin-left: auto;
  color: var(--muted);
}
.measurement {
  font-size: 11px !important;
  padding-left: 5px !important;
}
.hardware-help {
  font-size: 9px;
  color: var(--muted);
  margin: 9px 0;
}
.hardware-notice {
  font-size: 10px;
  color: var(--amber);
  background: #f3ebda;
  padding: 9px 10px;
  border-radius: 3px;
  line-height: 1.6;
  margin-top: 10px;
}
.hardware-notice.measured {
  color: #436044;
  background: #e9eddf;
}
.point-fields {
  border-left: 2px solid #c8d1bc;
  padding-left: 8px;
  margin-top: 11px;
}
.point-fields h4 {
  font-size: 9px;
  margin: 0 0 5px;
  font-weight: normal;
  color: var(--muted);
}
.remove-button {
  font-size: 9px;
  color: #7b6859;
  background: none;
  padding: 10px 0 0;
  margin-top: 10px;
  text-decoration: underline;
}
.plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 0;
  gap: 15px;
  font-size: 11px;
}
.small-check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e3e8d9;
  margin-right: 9px;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.primary-button,
.secondary-button {
  border-radius: 5px;
  font-size: 12px;
  padding: 12px 18px;
  background: var(--ink);
  color: #fffefa;
  min-height: 43px;
}
.primary-button span {
  margin-left: 15px;
}
.secondary-button {
  background: #f6f5ec;
  border: 1px solid var(--line);
  color: var(--ink);
}
.prototype-note {
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.form-error {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  border: 1px solid #c19d89;
  box-shadow: 0 5px 20px #293c3725;
  background: #fff2e8;
  color: var(--danger);
  padding: 12px 18px;
  border-radius: 5px;
  max-width: 90vw;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 8px;
  top: -60px;
  z-index: 30;
  background: white;
  padding: 8px;
}
.skip-link:focus {
  top: 8px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
  max-width: 430px;
  color: var(--ink);
  background: var(--surface);
}
dialog::backdrop {
  background: #293c3760;
}
dialog h2 {
  font: 26px var(--serif);
  margin-bottom: 10px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.guide-view {
  max-width: 1000px;
  margin: auto;
  padding: 30px var(--page-gutter);
}
.guide-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.guide-sheet {
  background: white;
  border: 1px solid var(--line);
  padding: 34px 40px;
  margin-bottom: 24px;
}
.guide-topline {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.7px;
}
.guide-sheet h1 {
  font-size: 34px;
  margin: 15px 0;
}
.guide-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.guide-warning {
  font-size: 11px;
  padding: 14px;
  border-left: 3px solid #af8852;
  background: #f7f1e5;
  margin: 20px 0;
  line-height: 1.7;
}
.guide-map {
  width: 100%;
  max-height: 350px;
  background: #f8f6f0;
  border: 1px solid #ddd;
  display: block;
}
.guide-legend {
  font-size: 10px;
  margin: 9px 0 20px;
  color: var(--muted);
}
.guide-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.guide-sheet th,
.guide-sheet td {
  text-align: left;
  border-bottom: 1px solid #d9dfd1;
  padding: 10px 6px;
  vertical-align: top;
}
.guide-sheet th {
  font-size: 9px;
  color: var(--muted);
  font-weight: normal;
  letter-spacing: 0.4px;
}
.guide-sheet h2 {
  font: 22px var(--serif);
  margin: 24px 0 10px;
}
.guide-card {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  break-inside: avoid;
}
.guide-card h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.guide-card p {
  font-size: 11px;
  margin-bottom: 5px;
}
.unknown-label {
  color: var(--amber);
  font-weight: 600;
}
.checklist {
  font-size: 11px;
  line-height: 1.8;
  padding-left: 18px;
}
.guide-small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 20px;
}
.print-fallback {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 245px minmax(300px, 1fr) 260px;
  }
  .wall-wrap {
    margin-top: 48px;
    margin-bottom: 36px;
  }
  .canvas-panel {
    padding: 24px 35px;
  }
}
@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 200px minmax(280px, 1fr) 225px;
  }
  .canvas-panel {
    padding: 18px;
  }
  .panel-block,
  .inspector {
    padding: 17px 14px;
  }
  .layout-controls {
    flex-wrap: wrap;
    gap: 7px;
  }
  .canvas-help span {
    display: none;
  }
  .preset {
    padding: 6px;
  }
  .intro-note {
    display: none;
  }
  .prototype-tag span {
    display: none;
  }
  .wall-wrap {
    margin-left: 14px;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 210px 1fr;
  }
  .inspector {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #inspector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
  }
  .inspector .inspector-section {
    border-top: 0;
    padding: 0;
    margin: 0;
  }
  .inspector-title {
    grid-column: 1/-1;
  }
  .inspector h2 {
    margin: 0;
  }
  .inspector .remove-button {
    grid-column: 1/-1;
    justify-self: start;
  }
  .plan-footer {
    flex-wrap: wrap;
  }
  .steps {
    gap: 20px;
  }
  .guide-sheet {
    padding: 25px;
  }
  .canvas-toolbar h2 {
    font-size: 21px;
  }
}
@media (max-width: 600px) {
  .wordmark {
    font-size: 28px;
  }
  .prototype-tag {
    font-size: 8px;
    letter-spacing: 0.6px;
    padding: 4px 7px;
  }
  main {
    padding-bottom: 18px;
  }
  .intro {
    padding: 23px 0 19px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -0.8px;
  }
  .intro-copy {
    font-size: 12px;
    max-width: 330px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .steps {
    font-size: 9px;
    gap: 9px;
    padding: 12px 0;
    justify-content: space-between;
  }
  .steps span {
    gap: 5px;
    align-items: flex-start;
    max-width: 31%;
    line-height: 1.4;
  }
  .steps b {
    width: 17px;
    height: 17px;
    flex: none;
    font-size: 8px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .left-panel {
    border: 0;
    display: contents;
  }
  .panel-block {
    padding: 17px;
  }
  .panel-block:first-child {
    border-bottom: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
  }
  .section-heading select {
    max-width: 120px;
    font-size: 11px;
  }
  .panel-block .field-pair {
    max-width: none;
  }
  .frame-library {
    order: 3;
    border-top: 1px solid var(--line) !important;
  }
  .left-footer {
    display: none;
  }
  .canvas-panel {
    order: 2;
    padding: 18px 20px;
  }
  .canvas-toolbar h2 {
    font-size: 22px;
  }
  .icon-button {
    width: 44px;
    height: 44px;
  }
  .preset,
  .text-button {
    min-height: 44px;
  }
  .wall-wrap {
    margin: 38px 8px 32px 13px;
  }
  .wall-height {
    left: -21px;
  }
  .layout-controls {
    gap: 9px;
  }
  .preset {
    padding: 7px;
  }
  .gap-control input {
    width: 48px;
  }
  .canvas-help {
    font-size: 9px;
  }
  .frame-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .frame-item {
    min-height: 60px;
    padding: 7px;
    gap: 6px;
  }
  .frame-item strong {
    font-size: 10px;
  }
  .frame-item .frame-number {
    display: none;
  }
  .frame-item small {
    font-size: 8px;
  }
  .frame-thumb {
    width: 25px;
    height: 31px;
  }
  .inspector {
    order: 4;
    padding: 18px;
    border-radius: 0 0 8px 8px;
  }
  #inspector {
    display: block;
  }
  .inspector-title {
    margin-bottom: 18px;
  }
  .inspector .inspector-section {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 16px;
  }
  .field-pair {
    gap: 12px;
  }
  input,
  select.measurement {
    font-size: 16px !important;
    min-height: 42px;
  }
  label {
    font-size: 11px;
  }
  .nudge button {
    height: 40px;
    width: 42px;
  }
  .nudge span,
  .input-note,
  .hardware-help,
  .position-summary {
    font-size: 10px;
  }
  .helper {
    font-size: 11px;
  }
  .hardware-notice {
    font-size: 11px;
  }
  .plan-footer {
    padding-top: 16px;
    gap: 14px;
  }
  .footer-actions {
    width: 100%;
    gap: 15px;
    justify-content: space-between;
  }
  .primary-button {
    padding: 12px 13px;
    font-size: 11px;
  }
  .primary-button span {
    margin-left: 8px;
  }
  .prototype-note {
    font-size: 9px;
  }
  .guide-view {
    padding: 20px var(--page-gutter);
  }
  .guide-sheet {
    padding: 20px 15px;
  }
  .guide-sheet h1 {
    font-size: 28px;
  }
  .guide-sheet table {
    font-size: 9px;
  }
  .guide-sheet td,
  .guide-sheet th {
    padding: 8px 3px;
  }
  .guide-topline {
    font-size: 8px;
  }
  .guide-actions {
    gap: 9px;
  }
  .guide-actions button {
    font-size: 10px;
  }
  .guide-map {
    max-height: 260px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@page {
  size: auto;
  margin: 14mm;
}
@media print {
  body {
    background: white;
    color: #142219;
    font-size: 10pt;
  }
  .site-header,
  body > main,
  .guide-actions,
  dialog,
  .form-error,
  .skip-link {
    display: none !important;
  }
  .guide-view {
    display: block !important;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .guide-sheet {
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }
  .guide-sheet h1 {
    font-size: 25pt;
  }
  .guide-map {
    max-height: 80mm;
  }
  .guide-sheet table {
    font-size: 8pt;
  }
  .guide-sheet tr,
  .guide-card,
  .guide-warning {
    break-inside: avoid;
  }
  .guide-sheet thead {
    display: table-header-group;
  }
  .guide-sheet h2,
  .guide-sheet h3 {
    break-after: avoid;
  }
  .guide-sheet .guide-card-section {
    break-before: page;
  }
  .guide-warning {
    background: white;
    border: 1pt solid #777;
    padding: 8pt;
  }
  .guide-topline,
  .guide-subtitle,
  .guide-legend,
  .guide-small {
    color: #333;
  }
  .guide-small {
    font-size: 8pt;
  }
  .support-dot {
    background: black;
  }
  .print-fallback {
    display: block;
  }
  .guide-sheet th,
  .guide-sheet td {
    padding: 7pt 4pt;
  }
  .prototype-note {
    display: none !important;
  }
}

/* Production shell extends the reviewed Stillwall workbench without changing its visual system. */
.site-nav {
  display: flex;
  gap: 18px;
  font-size: 12px;
}
.site-nav a {
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  text-decoration: underline;
}
.intro-copy {
  max-width: 720px;
  line-height: 1.65;
}
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.site-footer-inner {
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.content-section {
  max-width: 1080px;
  margin: 42px auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.content-section h2,
.article h2 {
  font: 28px/1.2 var(--serif);
  margin: 0 0 15px;
}
.content-section h3,
.article h3 {
  font-size: 17px;
  margin: 24px 0 10px;
}
.content-section p,
.article p {
  margin: 0 0 17px;
}
.content-section li,
.article li {
  margin: 8px 0;
}
.content-section p,
.content-section li,
.article {
  font-size: 15px;
  line-height: 1.75;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.help-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
}
.help-card h3 {
  margin-top: 0;
}
.article {
  /* The reading column is independent of the shared shell's outer gutters. */
  max-width: calc(var(--article-width) + 2 * var(--page-gutter));
  padding-top: 35px;
  padding-bottom: 60px;
}
.article h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 18px 0 25px;
}
.article h2 {
  margin-top: 35px;
}
.breadcrumbs {
  font-size: 12px !important;
  color: var(--muted);
}
.callout {
  border-left: 3px solid var(--oak);
  padding: 18px 22px;
  background: #f0ecdf;
  margin: 24px 0;
}
.example-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  margin: 22px auto;
  border: 1px solid var(--line);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin: 20px 0;
}
.data-table td,
.data-table th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.table-scroll {
  overflow-x: auto;
}
.table-scroll:focus {
  outline: 2px solid var(--ink);
}
.loading-preview {
  max-width: 850px;
  margin: 0 auto 25px;
}
.loading-preview p {
  font-size: 13px;
  color: var(--muted);
}
body:not(.planner-ready) .workspace,
body:not(.planner-ready) .planner-status,
body:not(.planner-ready) .plan-footer {
  display: none;
}
.planner-ready .loading-preview {
  display: none;
}
.site-footer [aria-current="page"],
.site-nav [aria-current="page"] {
  /* An underline marks the current page without moving the other links. */
  text-decoration: underline;
  text-underline-offset: 5px;
}
.privacy-list {
  padding-left: 20px;
}
@media (max-width: 700px) {
  .site-header-inner {
    min-height: 76px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-block: 12px;
  }
  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 11px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .content-section {
    margin: 28px auto;
  }
  .site-footer-inner {
    flex-direction: column;
  }
  .article {
    padding-top: 25px;
  }
  .data-table {
    font-size: 12px;
  }
  .content-section p,
  .content-section li,
  .article {
    font-size: 14px;
  }
}
@media print {
  .site-footer,
  .loading-preview {
    display: none !important;
  }
  body:not(.planner-ready) main.article {
    display: block !important;
    padding: 0;
    max-width: none;
  }
  body:not(.planner-ready) main.article h1 {
    font-size: 24pt;
  }
}
