/* Mosaic account pages: warm paper, condensed display type, strong rules and
   restrained accents (docs/paper-design-study.md). Token contrast on paper:
   ink 15.3:1, muted 6.5:1, accent 6.2:1, rule 3.7:1 (controls only). */
@font-face {
  font-family: Anton;
  src: url(/fonts/Anton-Regular.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url(/fonts/IBMPlexSans-Regular.ttf) format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f3efdf;
  --card: #faf7ec;
  --panel: #e8e4d4;
  --ink: #191916;
  --muted: #56554b;
  --accent: #a32c1d;
  --rule: #7d7a6c;
  --hairline: #b7b4a6;
  --ok: #2f5d3a;
  --ok-bg: #e2eadb;
  --warn: #6f4400;
  --warn-bg: #f4e6c9;
  --error-bg: #f6e0d7;
  --info-bg: #e6e4d8;
  --focus: #a32c1d;
  --on-accent: #ffffff;
  --danger-hover: #7d2116;
  --grain: #70664b0d;
  --art-plate: #faf7ec;
  --art-ink: #191916;
  /* Setup tiles (SETUP-EXPERIENCE.md section 2): loaded mint, checked green. */
  --tile-loaded: #7dbb90;
  --tile-checked: #26714f;
  /* Connect-guide pictures: the approved light values of the setup flow's
     --hl-bg, --mosaic-green, --hair and --muted (setup-flow.html at 8624767).
     A dark theme sets these four with the page tokens. The approved dark
     values are #243d2e, #5aa577, #4a4840 and #b5b0a0 (SETUP-EXPERIENCE.md
     section 11). */
  --sch-hl-bg: #cce2d5;
  --sch-mosaic-green: #26714f;
  --sch-hair: #cfc9b6;
  --sch-muted: #4a4840;
  --sch-rule: #7d7a6c;
  --gutter: 44px;
  --mono: "Courier New", Courier, monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: Plex, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper);
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(var(--grain) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  overflow-wrap: break-word;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.skip-link:focus {
  top: 12px;
}
.frame {
  max-width: 1280px;
  margin: 0 auto;
  /* The page uses viewport-fit=cover; keep content out of the safe areas. */
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0
    max(var(--gutter), env(safe-area-inset-left));
}

/* Masthead and navigation */
.masthead {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 0 20px;
  border-bottom: 3px solid var(--ink);
  flex-wrap: wrap;
}
.brand {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: -2px;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand:hover {
  color: var(--ink);
}
.lockup {
  display: block;
  height: 36px;
  width: auto;
}
.mast-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  flex: 1;
  text-align: center;
}
.org-badge {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 320px;
}
.org-name {
  font-weight: bold;
}
.org-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-button {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.site-nav[hidden] {
  display: none;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-list a,
.nav-tools a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-list a[aria-current="page"],
.nav-tools a[aria-current="page"] {
  border-bottom-color: var(--accent);
  font-weight: bold;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Page structure */
main {
  display: block;
  padding-bottom: 48px;
}
main:focus {
  outline: none;
}
.view {
  padding-bottom: 24px;
}
.view.narrow {
  max-width: 760px;
}
.edition {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 36px 0 30px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 32px;
}
.view.narrow .view-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.display {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 760px;
  overflow-wrap: anywhere;
}
.accent {
  color: var(--accent);
}
.lede {
  max-width: 380px;
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.view.narrow .lede {
  max-width: 620px;
}
.flash {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--ok);
  background: var(--ok-bg);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.view-body {
  min-height: 80px;
}
.section-heading {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 8px;
}
.panel-heading {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 34px;
  line-height: 1.08;
  margin-bottom: 16px;
}
.panel-heading.small {
  font-size: 24px;
  margin-top: 28px;
}
.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.muted {
  color: var(--muted);
}
.strong-line {
  font-size: 19px;
  font-weight: bold;
}
.case-ref {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.reference {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Buttons and links */
.button,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.secondary {
  background: transparent;
  color: var(--ink);
}
.secondary:hover {
  background: var(--panel);
  color: var(--ink);
}
.primary.danger {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.primary.danger:hover {
  background: var(--danger-hover);
}
.secondary.danger {
  color: var(--accent);
  border-color: var(--accent);
}
.primary span[aria-hidden],
.button span[aria-hidden] {
  font-size: 20px;
  line-height: 1;
}
button[disabled],
button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.85;
}
[aria-disabled="true"] {
  cursor: not-allowed;
}
.primary[aria-disabled="true"],
.secondary[aria-disabled="true"] {
  background: var(--panel);
  color: var(--muted);
  border: 1px dashed var(--rule);
}
.link-button {
  background: none;
  border: 0;
  padding: 0 4px;
  min-height: 44px;
  min-width: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 4px;
}
.hero-actions {
  margin: 0 0 32px;
}
.unavailable {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.reason {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
}
.field label,
legend {
  font-weight: bold;
}
.hint {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.field-error {
  color: var(--accent);
  font-weight: bold;
  font-size: 15px;
  margin: 0;
}
.field-error:empty {
  display: none;
}
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0;
}
input[aria-invalid="true"],
select[aria-invalid="true"] {
  border: 2px solid var(--accent);
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--ink);
  width: 24px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
}
.error-summary {
  border: 2px solid var(--accent);
  padding: 14px 18px;
  background: var(--error-bg);
}
.error-summary ul {
  margin: 0;
  padding-left: 20px;
}
.summary-heading {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}
fieldset.choices {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset.choices legend {
  padding: 0;
  margin-bottom: 8px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  min-height: 72px;
  cursor: pointer;
}
.choice.compact {
  min-height: 48px;
  padding: 10px 0;
}
.choice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.choice-text b {
  font-size: 17px;
}
.choice-text small {
  color: var(--muted);
  font-size: 14px;
}
.choice.is-unavailable {
  cursor: not-allowed;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding-top: 8px;
  cursor: pointer;
  font-weight: bold;
}
.inline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  max-width: 480px;
}

/* States: canonical line geometry inherits the approved semantic ink token.
   These decorative drawings never replace the visible status text. */
.state-illustration {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  color: var(--ink);
  margin: 0 0 12px;
}
.state-art {
  display: block;
  max-width: 160px;
  margin: 0 0 12px;
}
.state-chip {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}
/* States */
.loading {
  padding: 8px 0;
}
.skeleton-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
/* Three shimmer cycles (4.2 s), then a flat panel bar: no loading motion
   runs longer than 5 s (WCAG 2.2.2; docs/brand/08-motion-animation). */
.skeleton {
  display: block;
  height: 18px;
  width: 70%;
  background-color: var(--panel);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out 3;
}
.skeleton.wide {
  width: 92%;
}
.skeleton.short {
  width: 40%;
}
@keyframes shimmer {
  from {
    background-image: linear-gradient(
      90deg,
      var(--panel),
      var(--card),
      var(--panel)
    );
    background-position: 100% 0;
  }
  to {
    background-image: linear-gradient(
      90deg,
      var(--panel),
      var(--card),
      var(--panel)
    );
    background-position: -100% 0;
  }
}
.status-text {
  color: var(--muted);
  margin: 8px 0 0;
}
.notice {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-left-width: 6px;
  background: var(--card);
  margin: 0 0 20px;
}
.notice.success {
  border-left-color: var(--ok);
  background: var(--ok-bg);
}
.notice.warning {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}
.notice.error {
  border-left-color: var(--accent);
  background: var(--error-bg);
}
.notice.info {
  background: var(--info-bg);
}
.notice-symbol {
  font-family: var(--mono);
  font-weight: bold;
  font-size: 20px;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notice.success .notice-symbol {
  color: var(--ok);
}
.notice.warning .notice-symbol {
  color: var(--warn);
}
.notice.error .notice-symbol {
  color: var(--accent);
}
.notice-body {
  min-width: 0;
  flex: 1;
}
.notice-body > :last-child {
  margin-bottom: 0;
}
.notice-heading {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 6px;
}
.steps-list {
  margin: 12px 0;
  padding-left: 22px;
}
.steps-list li {
  margin-bottom: 12px;
}
.countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
}
.empty {
  border: 1px dashed var(--rule);
  padding: 22px;
  background: var(--card);
}
.empty-heading {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}
.empty > :last-child {
  margin-bottom: 0;
}
.partial {
  border-left: 4px solid var(--warn);
  padding: 8px 12px;
  background: var(--warn-bg);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status.ready {
  color: var(--ok);
}
.status.active {
  color: var(--ink);
}
.status.waiting {
  color: var(--muted);
}
.status.attention {
  color: var(--warn);
}
.inline-status {
  margin-bottom: 20px;
}
.badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 4px 8px;
}

/* Cards and panels */
.card {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 22px 24px;
}
.card > :last-child {
  margin-bottom: 0;
}
.card.inset {
  margin-top: 14px;
  border-style: solid;
  border-width: 2px;
}
.card.highlight {
  border-width: 2px;
  box-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 8px;
}
.card.danger-zone {
  border-color: var(--accent);
}
.view-body > .card + .card,
.view-body > .card {
  margin-bottom: 22px;
}
.panel {
  background: var(--panel);
  border-top: 4px solid var(--ink);
  padding: 26px;
}
.panel > :last-child {
  margin-bottom: 0;
}
.stage-list,
.checklist,
.rows,
.doc-list,
.scope-list,
.status-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stage-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.stage-number {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  padding-top: 3px;
}
.stage-title {
  font-weight: bold;
  margin-bottom: 2px;
}
.stage-list p {
  margin-bottom: 0;
}
.panel-foot {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin: 8px 0 0;
}
.panel-foot + .panel-foot {
  border-top: 0;
  padding-top: 0;
}
.next-step {
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 18px 0 22px;
}
.checklist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  border-bottom: 1px solid var(--hairline);
  padding: 6px 0;
}
.checklist a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.rows .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.row-main {
  flex: 1 1 260px;
  min-width: 0;
}
.row-main > p {
  margin-bottom: 4px;
}
.row-title {
  font-weight: bold;
  font-size: 18px;
}
.row-meta {
  color: var(--muted);
  font-size: 15px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.row-detail,
.rows .row > .result {
  flex-basis: 100%;
}
.row-detail:empty,
.result:empty {
  display: none;
}
.org-list .more {
  margin-top: 18px;
}
.doc {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.doc-title {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 6px;
}
.doc-identity {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 4px 28px;
  margin: 8px 0 10px;
  font-size: 14px;
}
.doc-identity dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-identity dd {
  margin: 0;
}
.hash {
  display: inline-block;
  max-width: 24ch;
}
.optional-docs {
  margin-top: 36px;
}
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.scope-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
}
.scope-list p {
  margin-bottom: 2px;
}
.scope {
  font-size: 13px;
  color: var(--muted);
}
.plain-list {
  margin: 0 0 8px;
  padding-left: 20px;
}
.plain-list li {
  margin-bottom: 6px;
}
.numbered {
  margin: 0 0 24px;
  padding-left: 22px;
}
.numbered li {
  margin-bottom: 12px;
}
.numbered.big {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.code-line {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 10px 12px;
}
.message-box {
  margin: 6px 0 8px;
  font-family: var(--mono);
  font-size: 15px;
}
.price-line {
  font-weight: bold;
  margin: 0;
}
.price-change {
  border-left: 4px solid var(--warn);
  padding: 6px 12px;
  background: var(--warn-bg);
}
.review-card {
  margin-top: 8px;
  border-width: 2px;
}
/* Plan and renewal terms (task-048 step 6). Each term keeps the body size
   and ink color of the main action (legal/drafts/02 Part A). */
.plan-summary {
  margin: 0 0 18px;
}
.plan-summary div {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr);
  gap: 2px 20px;
  border-top: 1px solid var(--hairline);
  padding: 10px 0;
}
.plan-summary dt {
  font-weight: bold;
}
.plan-summary dd {
  margin: 0;
}
.plan-tiers {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.plan-tiers li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  min-height: 48px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--hairline);
}
.plan-tiers li[data-current="true"] {
  border: 2px solid var(--ink);
}
.plan-terms {
  margin: 0 0 18px;
  padding-left: 20px;
}
.plan-terms li {
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .plan-summary div {
    grid-template-columns: minmax(0, 1fr);
  }
}
.status-rows {
  border-top: 3px solid var(--ink);
  margin-bottom: 36px;
}
.status-rows li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--hairline);
}
.status-rows a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.account-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 40px;
}
.account-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.role-list {
  margin: 0 0 16px;
}
.role-list div {
  border-top: 1px solid var(--hairline);
  padding: 10px 0;
}
.role-list dt {
  font-weight: bold;
}
.role-list dd {
  margin: 0;
  color: var(--muted);
}
.role-preview {
  background: var(--panel);
  padding: 10px 12px;
  margin: 10px 0;
}
.aside-links {
  margin-top: 32px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.aside-links a {
  display: inline-block;
  padding: 10px 0;
}
.site-footer {
  border-top: 1px solid var(--ink);
  padding: 22px 0 40px;
  font-size: 14px;
}
.footer-note {
  color: var(--muted);
}

/* Copy fallback: a text area that no one sees or reaches. */
.copy-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Setup: the first check, day tiles and months per stage. The tiles repeat
   the text; they never shade by sales. */
.first-check .strong-line {
  margin-bottom: 4px;
}
.day-tiles {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  max-width: 360px;
  margin: 12px 0 16px;
}
.day-tile {
  aspect-ratio: 1;
  border: 2px dashed var(--rule);
  background-color: transparent;
  transition:
    background-color 360ms ease,
    border-color 360ms ease;
}
.day-tile[data-state="loaded"] {
  background-color: var(--tile-loaded);
  border: 2px solid var(--tile-loaded);
}
.day-tile[data-state="checked"] {
  background-color: var(--tile-checked);
  border: 2px solid var(--tile-checked);
}
.check-grid {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 12px 0 16px;
}
.check-grid .day-tiles {
  margin: 0;
  flex: 1 1 auto;
}
.chip-picture {
  display: flex;
  flex: none;
}
.chip {
  /* Desktop first-check card: 200 x 227 px (setup-flow.html .chipwrap). */
  flex: none;
  width: 200px;
  height: 227px;
}
.steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 26px;
  padding: 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font:
    13px/1.2 Plex,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--muted);
}
.step .t {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 2px dashed var(--rule);
}
.step.now .t {
  border: 2px solid var(--ink);
}
.step.done .t {
  border: 0;
  background: var(--tile-checked);
}
.step.done .t::after {
  content: "";
  width: 9px;
  height: 5px;
  border: solid var(--paper);
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-1px) rotate(-45deg);
}
.step.now {
  color: var(--ink);
  font-weight: 600;
}
.step + .step::before {
  content: "";
  width: 22px;
  height: 2px;
  margin-right: 2px;
  background: var(--hairline);
}
.step-label {
  min-width: 0;
}
.stepc {
  display: none;
}
.ready .print {
  display: grid;
  grid-template-columns: repeat(10, 18px);
  gap: 4px;
  margin: 12px 0 4px;
}
.print i {
  display: block;
  width: 18px;
  height: 18px;
}
.print .g1 {
  background: #1f5a3f;
}
.print .g2 {
  background: #26714f;
}
.print .g3 {
  background: #3f8a5c;
}
.print .g4 {
  background: #5aa577;
}
.print .g5 {
  background: #7dbb90;
}
.print .g6 {
  background: #b9dcc4;
}
.tile-bands {
  margin: 40px 0 0;
  display: grid;
  gap: 6px;
  overflow: hidden;
}
.tile-band {
  display: flex;
  gap: 6px;
  height: 22px;
  overflow: hidden;
}
.band-tile {
  flex: none;
  width: 22px;
  height: 22px;
  background: #a39a8c;
  opacity: 0.55;
}
.band-tile.t1 {
  background: #b5aa98;
}
.band-tile.t2 {
  background: #8f8a80;
}
.band-tile.t3 {
  background: #c4b8a4;
}
.band-tile.t4 {
  background: #8e7f70;
}
[data-bands="green"] .band-tile {
  background: var(--tile-checked);
  opacity: 1;
}
[data-bands="green"] .band-tile.t1 {
  background: var(--tile-loaded);
}
[data-bands="green"] .band-tile.t3 {
  background: #3f8a5c;
}
@media (max-width: 760px) {
  .chip {
    width: 96px;
    height: 109px;
  }
  /* Phones stack the tiles and Chip, as setup-flow.html does. The tiles are
     38 px in 6 columns (setup-flow-prototype 2026-09-26.2 phone layout). */
  .check-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .check-grid .day-tiles {
    flex: none;
    grid-template-columns: repeat(6, 38px);
    gap: 7px;
    max-width: none;
  }
  .steps {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    margin: 2px 0 14px;
  }
  .step {
    gap: 0;
  }
  .step + .step::before {
    display: none;
  }
  .step .t {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
  }
  .step.done .t::after {
    width: 6px;
    height: 3px;
    border-width: 0 0 2px 2px;
  }
  .step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .stepc {
    display: block;
    margin-left: 6px;
    font:
      600 14px/1.2 Plex,
      "Helvetica Neue",
      Arial,
      sans-serif;
    color: var(--ink);
  }
  .band-tile {
    width: 16px;
    height: 16px;
  }
  .tile-band {
    height: 16px;
    gap: 4px;
  }
}
.check-rows {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.check-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  border-bottom: 1px solid var(--hairline);
}
.stage-months {
  font-family: var(--mono);
  font-size: 13px;
  margin: 4px 0 0;
}
.host-note {
  margin: 0;
  align-self: center;
}

/* Host-guided setup: app, device and plan choices, steps with schematic
   pictures, the URL and the messages. */
.choices-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.toggle-group[hidden] {
  display: none;
}
.toggle-group .mono-label {
  margin-bottom: 6px;
}
.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  font-weight: bold;
}
.toggle[disabled] {
  cursor: not-allowed;
  border-style: dashed;
  color: var(--muted);
  background: var(--panel);
}
.toggle-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.guide-steps {
  margin: 8px 0 4px;
  padding-left: 24px;
}
.guide-steps li {
  margin-bottom: 18px;
}
.guide-text {
  margin-bottom: 8px;
}
/* The approved guide's Team and Enterprise note (the prototype .note rule). */
.guide-note {
  font-size: 15px;
  color: var(--muted);
  margin: 18px 0 10px;
}
/* Connect-guide pictures: the .sch rules of the approved setup flow
   (docs/brand/08-motion-animation/production/setup-flow.html at 8624767),
   unchanged. Every color comes from a page token: --card, --panel, --ink and
   --rule, and the four picture tokens on :root. The pictures carry no color of
   their own, so a dark theme only sets tokens. The e2e tests compare the
   computed colors with the approved light and dark renders (Mosaic-films
   setup-guide-fixtures 2026-09-29.1). */
.sch {
  --rule: var(--sch-rule);
  --hl-bg: var(--sch-hl-bg);
  --mosaic-green: var(--sch-mosaic-green);
  --hair: var(--sch-hair);
  --muted: var(--sch-muted);
  display: block;
  width: min(320px, 100%);
  height: auto;
}
.sch .fr {
  fill: var(--card);
  stroke: var(--rule);
  stroke-width: 1.5;
}
.sch .pn {
  fill: var(--panel);
}
.sch .it {
  fill: var(--card);
  stroke: var(--hair);
}
.sch .hl {
  fill: var(--hl-bg);
  stroke: var(--mosaic-green);
  stroke-width: 2.5;
}
.sch .on {
  fill: var(--mosaic-green);
}
.sch .ln {
  fill: var(--hair);
}
.sch .dot {
  fill: var(--hair);
}
.sch .ar {
  stroke: var(--mosaic-green);
  stroke-width: 3;
  fill: none;
}
.sch .tx {
  fill: var(--ink);
  font:
    11px Plex,
    sans-serif;
}
.sch .tx.b {
  font-weight: 600;
}
.sch .tx.s {
  fill: var(--muted);
  font-size: 10px;
}
.sch .tx.m {
  font:
    9px "Courier New",
    monospace;
}
.asof {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.url-box {
  margin: 4px 0 12px;
}
.url-box .code-line {
  margin-bottom: 8px;
}
.manual-box {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}
.message-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.square-start {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Narrow screens: one column, 16px gutter, compact menu. */
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  .masthead {
    padding: 14px 0 12px;
    gap: 12px;
  }
  .lockup {
    height: 30px;
  }
  .mast-note {
    display: none;
  }
  .org-badge {
    order: 3;
    flex-basis: 100%;
    align-items: flex-start;
    text-align: left;
    max-width: none;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }
  .site-nav[data-open] {
    display: flex;
  }
  .nav-list,
  .nav-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-list a,
  .nav-tools a {
    border-bottom: 0;
    border-left: 4px solid transparent;
    width: 100%;
  }
  .nav-list a[aria-current="page"],
  .nav-tools a[aria-current="page"] {
    border-left-color: var(--accent);
  }
  .view-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0 22px;
    margin-bottom: 24px;
  }
  .lede {
    max-width: none;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .edition span + span {
    display: none;
  }
  .panel {
    padding: 20px 16px;
  }
  .card {
    padding: 18px 16px;
  }
  .doc-identity {
    grid-template-columns: minmax(0, 1fr);
  }
  .status-rows li {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 0;
  }
  .status-rows li > a {
    grid-column: 1 / -1;
  }
  .account-links ul {
    columns: 1;
  }
  .primary,
  .secondary,
  .button {
    width: 100%;
  }
  .unavailable {
    align-items: stretch;
  }
  .case-ref {
    font-size: 24px;
  }
  .guide-note {
    font-size: 16px;
  }
}
/* Tall phones keep the main setup action in the thumb zone, above the home
   indicator (SETUP-EXPERIENCE.md section 13.1). The page keeps room below its
   content, and focus never lands behind the action. Shorter phones and
   landscape keep it in the page flow. */
@media (max-width: 760px) and (min-height: 621px) {
  .has-sticky-action {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  html:has(.has-sticky-action) {
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .sticky-action {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 5;
    margin: 0;
  }
}

/* At 320 px the card holds 254 px; six 38 px tiles need 253 px with 5 px gaps. */
@media (max-width: 340px) {
  .check-grid .day-tiles {
    gap: 5px;
  }
}

/* Logo reveal (Mosaic-films release logo-reveal 2026-09-30.1; motion.css
   rules copied unchanged, tokens limited to those the rules use). The base
   style is the final frame; the keyframes hold only the start. The reveal
   plays once in 2000 ms: tiles at 120 ms steps, letters from 840 ms, the full
   stop at 1400 ms + 600 ms. Reduced motion shows the final frame. */
.logo-reveal {
  --dur-long: 600ms;
  --dur-short: 240ms;
  --stagger-tile: 120ms;
  --stagger-letter: 60ms;
  --ease-out: cubic-bezier(0.333, 1, 0.667, 1);
  margin: 12px 0 16px;
}
.logo-reveal svg {
  display: block;
  width: min(440px, 88vw);
  height: auto;
  overflow: hidden;
}
/* After the base rule: the same specificity, so the later rule wins. */
@media (max-width: 760px) {
  .logo-reveal svg {
    width: min(300px, 80vw);
  }
}
/* The approved art fills the letters with the light-theme ink value. The ink
   tile keeps its fill: a dark theme puts the mark on a cream plate. */
.logo-reveal .letter[fill="#191916"] {
  fill: var(--ink);
}
@keyframes mz-drop {
  0% {
    transform: translateY(var(--mz-fall)) scale(1, 1);
    animation-timing-function: cubic-bezier(0.333, 0, 0.667, 0.333);
  }
  58.333% {
    transform: translateY(0) scale(1, 1);
    animation-timing-function: linear;
  }
  60.417% {
    transform: translateY(-2.7%) scale(1.117, 0.883);
  }
  62.5% {
    transform: translateY(-5.1%) scale(1.093, 0.907);
  }
  66.667% {
    transform: translateY(-8.6%) scale(1.047, 0.953);
  }
  70.833% {
    transform: translateY(-10.4%) scale(1, 1);
  }
  75% {
    transform: translateY(-10.5%) scale(1, 1);
  }
  79.167% {
    transform: translateY(-9.2%) scale(1, 1);
  }
  87.5% {
    transform: translateY(-4.5%) scale(1, 1);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}
@keyframes mz-letter {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}
.mz-logo-anim .tile,
.mz-logo-anim .stop {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: mz-drop var(--dur-long) linear both;
}
.mz-logo-anim [data-i="0"] {
  --i: 0;
}
.mz-logo-anim [data-i="1"] {
  --i: 1;
}
.mz-logo-anim [data-i="2"] {
  --i: 2;
}
.mz-logo-anim [data-i="3"] {
  --i: 3;
}
.mz-logo-anim [data-i="4"] {
  --i: 4;
}
.mz-logo-anim [data-i="5"] {
  --i: 5;
}
.mz-logo-anim .tile {
  --mz-fall: -240px;
  animation-delay: calc(var(--i) * var(--stagger-tile));
}
.mz-logo-anim .stop {
  --mz-fall: -220px;
  animation-delay: 1400ms;
}
.mz-logo-anim .letter {
  transform-box: fill-box;
  animation: mz-letter var(--dur-short) var(--ease-out) both;
  animation-delay: calc(840ms + var(--i) * var(--stagger-letter));
}

/* Approved account palette: COLOR-SYSTEM.md §9.4. Media queries retain the
   light fallback without requiring light-dark() support. Guide colors are
   from SETUP-EXPERIENCE.md §11 and its frozen dark-render fixtures. */
/* A07 authenticator app (task-046 step 14). The QR plate stays light in
   both themes, so every phone camera reads it. */
.authenticator {
  margin-bottom: 32px;
}
.qr-frame {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--rule);
  padding: 8px;
  margin: 8px 0 16px;
  line-height: 0;
}
.qr {
  display: block;
  width: 216px;
  max-width: 100%;
  height: auto;
}
.recovery-codes {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 32px;
  font-family: var(--mono);
}
.authenticator-lost {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
  padding-top: 16px;
}
@media (max-width: 480px) {
  .recovery-codes {
    grid-template-columns: 1fr;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #191713;
    --card: #22201b;
    --panel: #2c2a24;
    --ink: #f3efdf;
    --muted: #949388;
    --hairline: #49463f;
    --accent: #e96d5a;
    --focus: #e96d5a;
    --on-accent: #191713;
    --danger-hover: #fe806c;
    --ok: #6e9e77;
    --ok-bg: #242e1b;
    --warn: #ba8b53;
    --warn-bg: #342a13;
    --error-bg: #3b231a;
    --info-bg: #2c2a22;
    --grain: #f3efdf0a;
    --sch-hl-bg: #243d2e;
    --sch-mosaic-green: #5aa577;
    --sch-hair: #4a4840;
    --sch-muted: #b5b0a0;
    --sch-rule: #949183;
  }
  /* No separately approved dark reveal exists. Keep the approved reveal
     on a light Card plate; its SVG bytes and geometry remain unchanged. */
  .logo-reveal svg {
    background: var(--art-plate);
    border-radius: 12px;
  }
  .logo-reveal .letter[fill="#191916"] {
    fill: var(--art-ink);
  }
}

/* Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #3a3932;
    --hairline: #7d7a6c;
    --rule: #4a4840;
    --sch-muted: #3a3932;
    --sch-hair: #7d7a6c;
    --sch-rule: #4a4840;
  }
}
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
  :root {
    --muted: #b7b6ab;
    --rule: #949183;
    --hairline: #7d7a6c;
    --sch-muted: #b7b6ab;
    --sch-hair: #7d7a6c;
    --sch-rule: #949183;
  }
}
@media (forced-colors: active) {
  .primary,
  .secondary,
  .button,
  .card,
  .notice,
  .empty {
    border: 1px solid CanvasText;
  }
  :focus-visible {
    outline: 3px solid Highlight;
  }
  .skeleton {
    background: CanvasText;
  }
  .nav-list a[aria-current="page"],
  .nav-tools a[aria-current="page"] {
    text-decoration: underline;
  }
  .day-tile {
    border: 1px solid CanvasText;
  }
  .day-tile[data-state="loaded"] {
    background-color: GrayText;
  }
  .day-tile[data-state="checked"] {
    background-color: CanvasText;
  }
  .toggle {
    border: 1px solid CanvasText;
  }
  .toggle[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
  .sch .fr,
  .sch .it {
    fill: Canvas;
    stroke: CanvasText;
  }
  .sch .pn {
    fill: Canvas;
  }
  .sch .tx,
  .sch .tx.s,
  .sch .ln,
  .sch .dot {
    fill: CanvasText;
  }
  .sch .hl {
    fill: Canvas;
    stroke: Highlight;
    stroke-width: 3;
  }
  .sch .on {
    fill: Highlight;
  }
  .sch .ar {
    stroke: Highlight;
  }
}

@media (max-width: 760px) and (max-height: 620px) {
  .chip {
    width: 64px;
    height: 73px;
  }
}

/* Consent uses the existing account form. Internal location IDs stay legible
   without competing with the location choice. SQL085 does not return names. */
.mcp-location-id {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
