:root {
  color-scheme: light;
  --ink: #102a2e;
  --muted: #526164;
  --paper: #f4f1eb;
  --surface: #fffdf8;
  --line: #d9d7d0;
  --accent: #b63d27;
  --accent-dark: #8d2d1c;
  --sea: #0d6b66;
  --sea-pale: #dcebe7;
  --warning: #9b6500;
  --danger: #a52c2c;
  --shadow: 0 24px 70px rgba(16, 42, 46, 0.13);
  --radius: 20px;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --serif: Iowan Old Style, Charter, Georgia, serif;
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 99;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.network-banner {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  padding: 9px;
  text-align: center;
  background: #f6c86f;
  color: #362300;
  font-weight: 700;
  font-size: 0.86rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.brand.compact .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--sea);
  margin: 0 0 8px;
}
.onboarding {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  background: var(--paper);
}
.welcome {
  padding: clamp(28px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  background: var(--ink);
  color: #fdf9ef;
  position: relative;
  overflow-wrap: anywhere;
  background-image: radial-gradient(circle at 110% 110%, transparent 25%, rgba(255,255,255,.04) 25%, rgba(255,255,255,.04) 32%, transparent 32%);
}
.welcome .eyebrow {
  color: #9cd2c9;
}
.welcome-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.welcome h1 {
  font: 400 clamp(2.8rem, 4.5vw, 4.8rem)/1.05 var(--serif);
  letter-spacing: -0.055em;
  margin: 18px 0 30px;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: #cbd6d3;
  max-width: 620px;
}
.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.principles span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  padding: 9px 13px;
  font-size: 0.78rem;
}
.start-card {
  min-width: 0;
  background: var(--surface);
  padding: clamp(32px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}
.start-card h2 {
  overflow-wrap: anywhere;
  font: 400 2.2rem/1.1 var(--serif);
  margin: 0 0 28px;
}
.form-intro {
  margin: -16px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}
.locale-control {
  position: absolute;
  right: 28px;
  top: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
}
.locale-control select,
.nav-foot select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 7px;
}
.locale-control label { white-space: nowrap; }
.welcome-demo {
  color: var(--ink);
  background: var(--surface);
  border-radius: 16px;
  padding: clamp(18px, 2vw, 28px);
}
.welcome-demo .eyebrow { color: var(--sea); }
.welcome-demo h2 { font: 400 1.7rem/1.2 var(--serif); margin: 0; }
.welcome-demo p { line-height: 1.5; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-actions button { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 8px 12px; }
.demo-actions button[aria-pressed="true"] { background: var(--ink); color: white; }
.demo-content { border-block: 1px solid var(--line); margin-block: 16px; min-height: 170px; }
.demo-content h3 { font-size: 1rem; }
.welcome-demo button { max-width: 100%; white-space: normal; }
.onboarding-options, .onboarding-help { border-block: 1px solid var(--line); padding-block: 14px; }
.onboarding-help { margin-top: 22px; font-size: .9rem; line-height: 1.5; }
.onboarding-options summary, .onboarding-help summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 700; }
.onboarding-options[open], #project-protection:not([hidden]) { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; }
.onboarding-options > *, #project-protection > * { min-width: 0; overflow-wrap: anywhere; }
.step {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.start-card form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.start-card form > *,
.start-card > *,
.start-card fieldset > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
.start-card button {
  white-space: normal;
  overflow-wrap: anywhere;
}
.start-card fieldset {
  min-inline-size: 0;
}
.start-card select,
.start-card input {
  min-width: 0;
  max-width: 100%;
}
.ownership-step {
  margin: 10px 0 2px;
  padding: 16px;
  border: 1px solid #b9d7d2;
  border-radius: 14px;
  background: #f1f8f6;
  display: grid;
  gap: 8px;
}
.ownership-step legend {
  padding: 0 6px;
  color: var(--sea);
  font-weight: 800;
}
.ownership-step p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.optional {
  color: var(--muted);
  font-weight: 500;
}
.start-card .backup-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 5px;
  line-height: 1.4;
}
.start-card .backup-confirm input {
  width: auto;
  margin-top: 3px;
}
.start-card label,
.field label,
.nav-foot label {
  font-size: 0.78rem;
  font-weight: 750;
}
.start-card input,
.start-card textarea,
.start-card select,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
}
.start-card input:focus,
.start-card textarea:focus,
.start-card select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(13, 107, 102, 0.13);
}
small {
  color: var(--muted);
  line-height: 1.4;
}
.primary,
.secondary,
.quiet,
.danger,
.icon-button {
  border-radius: 10px;
  padding: 10px 15px;
  border: 1px solid transparent;
  font-weight: 750;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: var(--accent-dark);
}
.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.danger {
  background: var(--danger);
  color: #fff;
}
.wide {
  width: 100%;
}
.start-card .primary {
  margin-top: 12px;
  padding: 14px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 20px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.inline-status {
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.85rem;
}
.studio {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px minmax(440px, 1fr) minmax(330px, 32vw);
  grid-template-rows: 64px calc(100vh - 64px);
  grid-template-areas: "top top top" "nav work preview";
}
.topbar {
  grid-area: top;
  display: grid;
  grid-template-columns: 245px 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.project-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
}
.project-identity {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}
.project-heading #save-state {
  color: var(--muted);
  font-size: 0.75rem;
}
.stage {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 8px;
  border-radius: 99px;
  background: #e8e5df;
}
.stage.reviewed {
  background: #e4e0f2;
  color: #533c85;
}
.stage.signed {
  background: #d9e9f4;
  color: #235f7e;
}
.stage.published {
  background: var(--sea-pale);
  color: var(--sea);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button {
  display: none;
  background: transparent;
  font-size: 1.25rem;
}
.editor-nav {
  grid-area: nav;
  background: #ece9e2;
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
}
.progress-block {
  padding: 0 8px 17px;
}
.progress-track {
  height: 5px;
  border-radius: 99px;
  background: #d4d0c8;
  overflow: hidden;
}
.progress-track span {
  display: block;
  width: 12%;
  height: 100%;
  background: var(--sea);
  transition: width 0.3s;
}
.progress-block #progress-copy {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.editor-nav nav {
  display: grid;
  gap: 12px;
}
.nav-group {
  display: grid;
  gap: 2px;
}
.nav-group > p {
  margin: 2px 10px 4px;
  color: #4b5a5c;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.editor-nav nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #526062;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.79rem;
}
.editor-nav nav button:before {
  content: attr(data-index);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #c8c6bf;
  border-radius: 6px;
  font-size: 0.62rem;
}
.editor-nav nav button:hover {
  background: rgba(255, 255, 255, 0.55);
}
.editor-nav nav button[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(16, 42, 46, 0.06);
  font-weight: 750;
}
.editor-nav nav button[aria-current="page"]:before {
  background: var(--sea);
  border-color: var(--sea);
  color: #fff;
}
.editor-nav nav button[data-complete="true"]:not([aria-current="page"]):before {
  content: "✓";
  border-color: #90b9b2;
  background: var(--sea-pale);
  color: var(--sea);
  font-weight: 900;
}
.nav-foot {
  margin-top: auto;
  padding: 18px 7px 0;
  display: grid;
  gap: 8px;
}
.workspace {
  grid-area: work;
  overflow: auto;
  padding: clamp(24px, 4vw, 54px);
  background: var(--surface);
}
.technical-detail {
  align-self: start;
}
.technical-detail summary,
.exact-policy summary {
  cursor: pointer;
  color: var(--sea);
  font-weight: 800;
}
.step-actions {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr minmax(180px, auto);
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
}
.step-actions > div {
  display: grid;
  text-align: center;
}
.step-actions small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
}
.workspace-head {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.workspace-head h1 {
  font: 400 clamp(2rem, 3vw, 3.2rem)/1 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.workspace-head > div > p:last-child {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.context-note {
  display: flex;
  gap: 8px;
  max-width: 230px;
  background: var(--sea-pale);
  color: #254844;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.4;
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(16, 42, 46, 0.035);
}
.card.full {
  grid-column: 1/-1;
}
.card h2 {
  font: 400 1.3rem var(--serif);
  margin: 0 0 8px;
}
.card > p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}
.address-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}
.address-field span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.personal-domain {
  border-color: rgba(13, 107, 102, 0.32);
}
.domain-state,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.domain-status {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff3d2;
  color: #6b4b00;
  font-size: 0.72rem;
  font-weight: 800;
}
.domain-status.active {
  background: #dff4ec;
  color: #075a4f;
}
.domain-status.disconnected {
  background: #ecebe7;
  color: var(--muted);
}
.dns-list {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}
.dns-row {
  display: grid;
  grid-template-columns: 58px minmax(100px, 0.7fr) minmax(180px, 1.6fr);
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #faf9f5;
  font-size: 0.76rem;
}
.dns-head {
  border: 0;
  padding-block: 2px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.dns-row code {
  overflow-wrap: anywhere;
  user-select: all;
}
.dns-purpose {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.domain-owner {
  margin: 16px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.domain-owner summary {
  cursor: pointer;
  font-weight: 750;
}
.button-link {
  color: var(--sea);
  font-weight: 750;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 12px;
  background: #fff;
}
.choice:has(input:checked) {
  border-color: var(--sea);
  background: #f2faf8;
}
.choice input {
  margin-top: 3px;
  accent-color: var(--sea);
}
.choice strong {
  font-size: 0.82rem;
  display: block;
}
.choice small {
  font-size: 0.72rem;
}
.warning-card {
  border-left: 4px solid var(--warning);
  background: #fff9ea;
}
.danger-card {
  border-left: 4px solid var(--danger);
  background: #fff4f2;
}
.info-card {
  border-left: 4px solid var(--sea);
  background: #f3faf8;
}
.finding {
  display: flex;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.finding:last-child {
  border: 0;
}
.finding-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  background: var(--sea-pale);
  color: var(--sea);
  font-weight: 800;
}
.finding.blocking .finding-icon {
  background: #f8deda;
  color: var(--danger);
}
.finding.warning .finding-icon {
  background: #fae9bf;
  color: var(--warning);
}
.finding p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.proposal {
  border: 1px solid #cfc8e2;
  background: #faf8ff;
  border-radius: 14px;
  padding: 17px;
}
.proposal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.proposal-tag {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #62479a;
}
.consequence {
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff3d7;
  margin: 6px 0;
}
.canvas {
  border: 1px dashed #b9b5ad;
  border-radius: 18px;
  padding: 12px;
  background: #f7f5f0;
  display: grid;
  gap: 10px;
}
.canvas-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
}
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.token-swatch {
  height: 55px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.preview-rail {
  grid-area: preview;
  background: #e4e1da;
  border-left: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.device-switch {
  border: 1px solid #c6c3bc;
  border-radius: 8px;
  padding: 2px;
  display: flex;
}
.device-switch button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 6px 9px;
}
.device-switch button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 4px #bbb;
}
.device {
  margin: auto;
  transition: max-width 0.25s;
  width: 100%;
  height: min(72vh, 760px);
  background: #171b1c;
  border: 7px solid #171b1c;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.device.phone {
  max-width: 330px;
}
.device.desktop {
  max-width: 100%;
  border-radius: 12px;
  height: 70vh;
}
.device iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  background: white;
}
.preview-state {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.7rem;
  color: #596365;
  padding-top: 15px;
  text-align: center;
}
.pulse {
  width: 7px;
  height: 7px;
  background: var(--sea);
  border-radius: 50%;
  margin-top: 3px;
}
.state-panel {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--sea);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(7, 25, 28, 0.6);
  backdrop-filter: blur(3px);
}
dialog form {
  padding: 30px;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}
.dialog-close + .eyebrow {
  margin-top: 0;
}
dialog h2 {
  font: 400 2rem var(--serif);
  margin: 6px 0 15px;
}
dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 0 0;
  margin: 0;
}
.ceremony-list {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}
.typed-confirm {
  display: grid;
  gap: 7px;
  margin-top: 17px;
}
.typed-confirm code {
  font-size: 0.78rem;
  background: #eeeae2;
  padding: 5px 7px;
  border-radius: 5px;
}
.typed-confirm input {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sea);
}
.timeline-item small {
  display: block;
}
.mobile-only {
  display: none;
}
.resume-form {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.resume-form h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.recovery-id {
  font:
    600 0.76rem ui-monospace,
    monospace;
  color: var(--sea);
  overflow-wrap: anywhere;
}
.resume-form button {
  margin-top: 8px;
}
@media (max-width: 1100px) {
  .studio {
    grid-template-columns: 220px 1fr;
    grid-template-areas: "top top top" "nav work work";
  }
  .preview-rail {
    position: fixed;
    z-index: 35;
    inset: 64px 0 0 auto;
    width: min(440px, 100%);
    transform: translateX(105%);
    transition: transform 0.25s;
    box-shadow: var(--shadow);
  }
  .preview-rail.open {
    transform: translateX(0);
  }
  .topbar {
    grid-template-columns: 220px 1fr auto;
  }
}
@media (max-width: 760px) {
  .onboarding {
    display: block;
  }
  .welcome {
    min-height: 46vh;
    padding: 28px;
  }
  .welcome h1 {
    font-size: 2.8rem;
  }
  .principles {
    margin-top: 42px;
  }
  .start-card {
    padding: 64px 22px 34px;
  }
  .studio {
    display: block;
  }
  .topbar {
    height: 64px;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
  }
  .topbar .project-heading {
    display: none;
  }
  .top-actions .quiet {
    display: none;
  }
  .icon-button {
    display: block;
  }
  .editor-nav {
    position: fixed;
    z-index: 40;
    inset: 64px auto 0 0;
    width: min(290px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.2s;
    box-shadow: var(--shadow);
  }
  .editor-nav.open {
    transform: translateX(0);
  }
  .workspace {
    height: calc(100vh - 64px);
    padding: 26px 18px;
  }
  .workspace-head {
    display: block;
  }
  .step-actions {
    grid-template-columns: 1fr 1fr;
  }
  .step-actions > div {
    display: none;
  }
  .step-actions button {
    width: 100%;
    padding-inline: 10px;
  }
  .context-note {
    margin-top: 16px;
    max-width: none;
  }
  .editor-grid,
  .field-row,
  .choice-grid,
  .token-grid {
    grid-template-columns: 1fr;
  }
  .dns-row {
    grid-template-columns: 48px 1fr;
  }
  .dns-row code:last-child,
  .dns-head span:last-child {
    grid-column: 1/-1;
  }
  .preview-rail {
    inset: 64px 0 0 0;
    width: 100%;
  }
  .mobile-only {
    display: block;
  }
}
.device.tablet {
  max-width: 650px;
  border-radius: 20px;
}
.preview-scenario {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -8px 0 12px;
  font-size: 0.72rem;
}
.preview-scenario select {
  max-width: 190px;
  border: 1px solid #c6c3bc;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}
.preview-inspection {
  font-size: 0.7rem;
  margin-top: 10px;
}
.preview-inspection pre {
  white-space: pre-wrap;
  max-height: 160px;
  overflow: auto;
  background: #f6f3ec;
  padding: 9px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  .brand-mark,
  .stage,
  .finding-icon {
    forced-color-adjust: none;
  }
  .card,
  .choice,
  .context-note {
    border: 1px solid CanvasText;
  }
}

/* Recovery checks must reflow without hiding the file chooser or actions. */
#recovery-check-dialog { padding: 24px; width: min(36rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; overflow-wrap: anywhere; }
#recovery-check-form { padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
#recovery-check-form input { min-width: 0; max-width: 100%; }
#recovery-check-form button { white-space: normal; overflow-wrap: anywhere; }
