/* Game Harness developer pages. The tokens, base type, header and footer frame,
   margin notes and the name card come from the website's
   brand.css (vendored, loaded first). This file holds only the service's own
   pages: forms, panels, downloads, releases and the reservation campaign. */
:root {
  color-scheme: light dark;
  /* Form field edges: at least 3:1 against white. */
  --field: var(--gh-role-muted);
}
.saas-panel {
  padding: 20px;
}
.saas-toolbar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.saas-toolbar label {
  min-width: 0;
}
.saas-toolbar button {
  white-space: nowrap;
}
/* The service switch is the kit's segmented control (.gh-segmented); only its width is local. */
.saas-product-nav {
  display: flex;
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
}
.saas-project-body {
  height: calc(min(55vh, 430px) - 56px);
  min-height: 214px;
  overflow: auto;
  margin-top: 18px;
  padding-right: 10px;
  scrollbar-gutter: stable;
}
.saas-project-heading h2 {
  font-size: 24px;
  margin: 0;
}
.saas-project-heading p,
.saas-product p {
  margin: 6px 0;
}
.saas-product {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
.saas-product h3 {
  margin: 0 0 6px;
}
.saas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.saas-product pre {
  max-width: 100%;
  overflow: auto;
  font-size: 12px;
}
.saas-product .records li,
.saas-dialog .records li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-wrap: anywhere;
}
.saas-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(78vh, 680px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  color: inherit;
  background: var(--gh-role-surface);
  box-shadow: var(--gh-shadow-float);
}
.saas-dialog::backdrop {
  background: color-mix(in srgb, var(--gh-role-text) 42%, transparent);
}
.saas-dialog-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.saas-dialog h2 {
  font-size: 26px;
  margin: 0 0 12px;
}
.saas-dialog-status {
  height: 3em;
  margin: 12px 0 0;
  font-size: 13px;
  overflow: auto;
}
.saas-dialog textarea {
  width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .saas-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .saas-toolbar > button {
    grid-column: 1 / -1;
  }
  .saas-panel {
    padding: 14px;
  }
  .saas-project-body {
    height: calc(42vh - 56px);
    min-height: 184px;
  }
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  /* One vertical scrollbar gutter on every page, so short and long pages centre the same frame. */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  /* A quiet lilac thumb where the page may colour its scrollbars; inner scrollers inherit it. */
  scrollbar-color: color-mix(in srgb, var(--gh-role-accent-ink) 34%, transparent) transparent;
}
a {
  color: var(--lilac-ink);
  text-underline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--lilac-ink);
  outline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2 {
  text-wrap: balance;
}
/* The website's statement: heavy, untracked, the last line in lilac. */
h1 {
  font-size: clamp(36px, 3.6vw + 14px, 60px);
  line-height: 1.04;
  font-weight: 800;
}
h1 em {
  color: var(--lilac-ink);
  font-style: normal;
}
h2 {
  font-size: clamp(26px, 1.4vw + 18px, 36px);
  line-height: 1.15;
  font-weight: 800;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
}
p + p {
  margin-top: 14px;
}
.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The header and footer frame (.top, .top-row, .brand, .sections, .developer-nav,
   .foot, .foot-row, .foot-links, .wrap, .skip) comes from the website's brand.css.
   Only service details stay here: brand.ts names its icon .brand-icon, sized as
   the website's .icon, the sitewide notice and the footer's composition. */
/* Header navigation on the kit's nav recipe (.gh-nav__item): a lilac wash marks the current page,
   with no underline; the reserve call is a compact secondary action in palette colours. These
   restate brand-frame.css's website-copied header rules for the account pages. */
.sections {
  align-items: center;
}

.sections .developer-nav {
  margin-left: 8px;
}

.brand-icon {
  width: 26px;
  height: 24px;
  flex: none;
  overflow: hidden;
}
/* The sitewide notice under the header (pages.ts siteNotice): one quiet line with a status dot
   in the info colour as its marker (lime is kept for the view's one action). Short news, or "Website preview"; never a second navigation bar. */
.site-notice {
  background: var(--lilac-wash);
  border-bottom: 1px solid color-mix(in oklab, var(--gh-role-accent) 60%, var(--gh-role-line));
}
.site-notice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 14px;
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.site-notice p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.site-notice p::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--gh-role-info);
}
.site-notice a {
  color: var(--lilac-ink);
  text-underline-offset: 3px;
}
/* The footer: the brand and its promise on one side, the onward links on the other. */
.foot {
  padding: 32px 0 36px;
}
.foot-row {
  align-items: flex-end;
  gap: 20px 40px;
}
.foot-identity {
  display: grid;
  gap: 8px;
}
.foot .tagline {
  font-size: 15px;
}
.foot-links {
  gap: 4px 24px;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--lilac-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.foot-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--lilac);
}

/* The top of a service page: a pale sky, the text on paper at the left and two of the
   brand's flow lines (pages.ts flowLine) sweeping in from the right. */
.head-band {
  --floor-h: 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--gh-role-canvas) 92%, transparent) 0%,
      color-mix(in srgb, var(--gh-role-canvas) 70%, transparent) 52%,
      transparent 78%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--gh-role-scene-horizon) 80%, var(--gh-role-surface)) 0%,
      color-mix(in srgb, var(--gh-role-scene-horizon) 35%, var(--gh-role-surface)) 60%,
      var(--paper) 100%
    );
}
.flow-line {
  position: absolute;
  z-index: -1;
  display: block;
  height: auto;
  pointer-events: none;
  color: var(--gh-role-accent);
}
.head-flow-a {
  top: 20px;
  right: max(-40px, calc(50% - 660px));
  width: min(600px, 48vw);
}
.head-flow-b {
  top: 150px;
  right: -20px;
  width: min(380px, 30vw);
}
/* The account frame (pages.ts accountPage): who you are, where you are, then the page's own
   statement. It stands in the same place on every account page, so a tab never moves the tabs. */
.account-page {
  padding-top: 16px;
}
.account-heading {
  margin: 0 0 12px;
  font-size: clamp(22px, 0.6vw + 17px, 28px);
  line-height: 1.15;
}
.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.account-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
}
.account-nav a:hover {
  background: var(--lilac-wash);
}
/* The inline tabs are words only; the narrow-screen menu keeps each icon beside its label. */
.account-nav:not(.account-menu) .ui-icon {
  display: none;
}
.account-nav .ui-icon {
  color: var(--muted);
}
.account-nav a[aria-current="page"] {
  background: var(--lilac-wash);
  color: var(--lilac-ink);
  font-weight: 700;
}
.account-nav a[aria-current="page"] .ui-icon {
  color: var(--lilac-ink);
}
/* A line icon beside its visible label (ui-icons.ts). */
.ui-icon {
  width: 16px;
  height: 16px;
  flex: none;
}
/* The account section menu (pages.ts accountPage), where the tabs do not fit: one button names
   the current section and opens the same links as a native popover sheet at the foot of the
   screen. The sheet sits in the top layer, so it never adds height to the page. */
.account-menu-toggle {
  display: none;
}
.account-menu:not(:popover-open) {
  display: none;
}
@media (max-width: 1100px) {
  .account-nav:not(.account-menu) {
    display: none;
  }
  .account-menu-toggle {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
  }
  .account-menu-toggle > .ui-icon:last-child {
    margin-left: auto;
  }
}
.account-menu:popover-open {
  position: fixed;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 80%, transparent);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  box-shadow: 0 -24px 48px -28px var(--cast);
}
.account-menu::backdrop {
  background: color-mix(in srgb, var(--gh-role-text) 20%, transparent);
}
.account-menu a {
  min-height: 46px;
  border-radius: 10px;
}
/* Narrow screens: the brand and one Menu button share the header row, and the links open as a
   native popover under it (pages.ts platformPage). Wider screens keep the inline links. */
.site-menu-toggle {
  display: none;
}
.site-menu:not(:popover-open) {
  display: none;
}
@media (max-width: 860px) {
  .top-row > .sections {
    display: none;
  }
  .site-menu-toggle {
    display: inline-flex;
    gap: 8px;
  }
}
.site-menu:popover-open {
  position: fixed;
  inset: 64px 12px auto auto;
  display: grid;
  gap: 2px;
  width: min(280px, calc(100vw - 24px));
  margin: 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 80%, transparent);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 48px -24px var(--cast);
}
.site-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-menu a:hover,
.site-menu .developer-nav {
  background: var(--lilac-wash);
  color: var(--lilac-ink);
}
.site-menu a[aria-current="page"] {
  background: var(--lilac-wash);
  color: var(--lilac-ink);
  box-shadow: inset 3px 0 0 var(--lilac-ink);
}
/* Account pages end with one quiet row of links (pages.ts platformPage). */
.foot-compact {
  padding: 10px 0 12px;
}
.foot-compact .foot-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}
.account-content .panel {
  margin-top: 0;
  padding: 24px 28px;
}
.account-content .panel + .panel {
  margin-top: 24px;
}
/* A hidden leading panel (a pending invitation) leaves no gap above the visible one. */
.account-content .panel[hidden] + .panel {
  margin-top: 0;
}
.name-card-cube-image {
  display: block;
  background: url("/assets/brand-glass-cube.svg") 0 0 / 100% 100% no-repeat;
}
/* Registration: the way in before an account exists. One short heading, the
   name card to write a name on (brand.css .name-card) and one action, centred
   in a window of the Playground sky under a white arch, as on the website. */
.registration-entry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 8px auto 40px;
  padding: 24px 24px 28px;
  border-radius: 28px;
  text-align: center;
  background: radial-gradient(
      ellipse 72% 56% at 50% 46%,
      color-mix(in srgb, var(--gh-role-canvas) 90%, transparent),
      color-mix(in srgb, var(--gh-role-canvas) 55%, transparent) 58%,
      transparent 82%
    ),
    linear-gradient(
      180deg,
      var(--sky-zenith) 0%,
      color-mix(in srgb, var(--gh-role-scene-zenith) 70%, var(--gh-role-scene-horizon)) 34%,
      color-mix(in srgb, var(--gh-role-scene-zenith) 30%, var(--gh-role-scene-horizon)) 68%,
      var(--sky-horizon) 100%
    );
  box-shadow: 0 30px 60px -40px var(--cast);
}
.registration-heading h1 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
}
.registration-heading p {
  max-width: 48ch;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 15px;
}
.registration-entry .registration-form {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  padding-top: 0;
}
.registration-entry .name-card {
  text-align: left;
}
.registration-entry .name-card-glass {
  min-height: 0;
}
.registration-entry .name-card-cube {
  min-height: 120px;
}
#handle-status:empty {
  display: none;
}
.reserve-campaign .name-card-top {
  justify-content: center;
}
.campaign-preview {
  position: absolute;
  left: 24px;
  bottom: 18px;
  font-size: 12px;
  color: var(--muted);
}
.campaign-privacy {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-size: 12px;
}
#registration-challenge:empty {
  display: none;
}
.registration-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.registration-actions button {
  width: 100%;
  min-width: 0;
}
.registration-signin {
  color: var(--muted);
  font-size: 14px;
}

/* A registered developer's profile: the name, its status and the focused tasks. */
.profile-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px 32px;
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface) 40%, var(--sky-wash));
  box-shadow: 0 18px 40px -30px var(--cast);
}
.profile-copy {
  min-width: 0;
}
.profile-copy .eyebrow {
  margin: 0 0 12px;
}
.profile-summary h1,
.profile-summary h2 {
  font-size: clamp(24px, 2vw + 12px, 32px);
  line-height: 1.15;
}
/* The name, engraved as on the name card. */
#profile-name {
  font-size: clamp(26px, 2vw + 14px, 34px);
  font-weight: 800;
  line-height: 1.1;
  color: color-mix(in srgb, var(--gh-role-text) 86%, transparent);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 color-mix(in srgb, var(--gh-role-elevated) 95%, transparent), 0 -1px 0
    color-mix(in srgb, var(--gh-role-cast) 32%, transparent);
}
#profile-card {
  min-width: 0;
  width: 100%;
  max-width: 320px;
  margin: 0;
  justify-self: center;
}
/* The shared scene keeps its own silhouette. Crop only the empty lift headroom above the seated
   console (about 27% of the scene width; the dock's aligned start descends into view). */
.profile-identity-art {
  display: flow-root;
  overflow: clip;
}
.profile-identity-art .kit-scene {
  margin-top: -22%;
}
#profile-card .maker-share {
  position: relative;
  min-height: 40px;
  margin: 8px 0 0;
}
#profile-card .maker-share [role="status"] {
  position: absolute;
  bottom: calc(100% + 8px);
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 20px -8px var(--cast);
}
/* Example-only cartridge kit review (export-ui.ts --examples). */
.kit-example-intro,
.kit-example-live,
.kit-example-group {
  width: 100%;
  max-width: 1240px;
  margin: 28px auto;
  padding: 0 24px;
}
.kit-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.kit-example-frame {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(var(--paper), var(--gh-role-elevated));
}
.kit-example-frame figcaption {
  margin-top: 6px;
  font: 500 12px / 1.4 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.kit-example-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
/* The live scene stays small enough that the fascia and the target seat fit in one view. */
.kit-example-live .kit-example-frame {
  max-width: 760px;
}
/* The signed-in account in the header's top right (pages.ts headerAccount): the identity control,
   whose panel holds the identity card, the account pages and sign-out. */
.top-row:has(> .header-identity) > .sections {
  margin-left: auto;
}
.header-identity {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: 8px;
  font-size: 14px;
  font-weight: 600;
}
.header-identity .maker-mention,
.header-identity .maker-mention > summary {
  min-width: 0;
  max-width: 100%;
}
.header-identity .maker-mention > summary {
  display: flex;
  min-height: 40px;
}
.header-identity .maker-mention > summary > span:not(.maker-avatar) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-identity .maker-avatar,
.header-identity .maker-mention > summary::after {
  flex: none;
}
.header-identity .maker-display-name {
  max-width: 14ch;
}
.account-actions {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.maker-peek > .account-actions:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.account-actions a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.account-actions a:hover,
.account-actions a[aria-current="page"] {
  background: var(--lilac-wash);
  color: var(--lilac-ink);
}
.account-actions button {
  justify-self: start;
  margin-top: 6px;
}
/* Narrow screens: the account sits beside the Menu button; the chip keeps its avatar and handle. */
@media (max-width: 860px) {
  .header-identity {
    margin-left: auto;
  }
  .header-identity .maker-display-name {
    display: none;
  }
}
@media (max-width: 560px) {
  .top-row:has(> .header-identity) {
    gap: 8px;
  }
  .top-row:has(> .header-identity) .brand-lockup {
    width: 112px;
  }
  .top-row:has(> .header-identity) > .brand,
  .top-row:has(> .header-identity) > .site-menu-toggle {
    flex: none;
  }
}
.module-card:has(.maker-mention[open]) {
  position: relative;
  z-index: 5;
}
.module-card-meta .maker-mention,
.module-byline .maker-mention {
  font-size: 13px;
  /* The maker card is a <details>; the page's section-divider details style does not apply. */
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-summary #license {
  min-height: 44px;
  max-width: 36ch;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}
.profile-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.profile-actions a:hover {
  background: var(--lilac-wash);
}
.profile-actions a[aria-current="page"] {
  background: var(--lilac-wash);
  border-color: var(--lilac);
  color: var(--lilac-ink);
}

/* Reserve your name: a full-screen campaign, deliberately quiet. One thin
   frosted card is the subject, on a pale sky with room around it. One flow
   line sweeps in from the upper right and passes behind the card, so the card
   reads in front of it. The brand sits top left and sign-in top right; a short
   heading above the card and one action below. Sized so the action stays in
   view at 1280x720 and 375x812. */
body.reserve-campaign {
  min-height: 100svh;
  background: var(--paper);
}
.reserve-campaign .campaign-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 64px 20px 32px;
  background: radial-gradient(
      ellipse 34% 38% at 50% 56%,
      color-mix(in srgb, var(--gh-role-accent) 16%, transparent),
      transparent 100%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--gh-role-scene-horizon) 80%, var(--gh-role-surface)) 0%,
      color-mix(in srgb, var(--gh-role-scene-horizon) 35%, var(--gh-role-surface)) 46%,
      var(--paper) 100%
    );
}
.campaign-home,
.campaign-signin {
  position: absolute;
  z-index: 2;
  top: 18px;
}
.campaign-home {
  left: 24px;
}
.campaign-signin {
  right: 24px;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--gh-role-elevated) 90%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--gh-role-elevated) 60%, transparent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.campaign-signin:hover {
  background: var(--lilac-wash);
}
/* Unboxed: no window frame, arch or floor of its own here. */
.reserve-campaign .registration-entry {
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.reserve-campaign .registration-entry::after {
  content: none;
}
.reserve-campaign .registration-entry::before {
  content: none;
}
.reserve-campaign .registration-heading h1 {
  font-size: clamp(34px, 3vw + 18px, 54px);
  line-height: 1.05;
}
.reserve-campaign .registration-heading p {
  margin-top: 10px;
  font-size: 17px;
}
.reserve-campaign .registration-entry .registration-form {
  gap: 18px;
}
/* One flow line (flow-line.ts), anchored to the form so it keeps the card's place at
   every height. Its solid end stands in the sky to the upper right of the card; it
   sweeps down behind the card's upper right corner and fades out behind the card,
   above the action. */
.reserve-campaign .registration-entry .registration-form {
  position: relative;
}
.reserve-flow {
  top: -20px;
  left: 50%;
  width: min(450px, 92vw);
}
/* The shared identity cartridge owns its silhouette and aspect ratio. */
.reserve-campaign .name-card {
  width: min(100%, 400px);
}
.reserve-campaign .name-card-glass {
  min-height: 0;
}
.reserve-campaign .name-card-cube {
  display: none;
}
.reserve-campaign .name-card-name-line {
  justify-content: center;
  margin: auto 0;
}
.reserve-campaign .registration-actions button {
  min-width: min(100%, 280px);
}
@media (max-width: 560px) {
  .reserve-campaign .campaign-main {
    padding: 60px 16px 24px;
  }
  .campaign-home {
    left: 16px;
  }
  .campaign-signin {
    right: 16px;
  }
}
@media (forced-colors: active) {
  .reserve-campaign .name-card::after,
  .reserve-campaign .name-card-orbit {
    display: none;
  }
}
.page-head {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: calc(var(--floor-h) + 28px);
}
.page-head > * {
  max-width: 640px;
}
.page-head .lede {
  margin-top: 20px;
  max-width: 600px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
}
.page-head > .button {
  margin-top: 28px;
}
.eyebrow {
  font: var(--gh-type-eyebrow-weight) var(--gh-type-eyebrow-size) /
    var(--gh-type-eyebrow-line-height) var(--mono);
  letter-spacing: var(--gh-type-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--lilac-ink);
  margin-bottom: 16px;
}

/* Account: the three access steps are stones climbing out of the floor. */
/* Handwritten margin notes: the website's playtester asides. */
.note {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--gh-font-body);
  font-size: 22px;
  line-height: 1.3;
  color: var(--lilac-ink);
  transform: rotate(var(--tilt, -3deg));
  transform-origin: left center;
}
.guide-note {
  --tilt: 3deg;
  margin: 26px 0 0 24px;
}

.page-body {
  padding-top: 40px;
}
.join-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--lilac-wash);
  border-radius: 18px;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin-bottom: 40px;
  box-shadow: 0 18px 40px -28px var(--cast);
}
/* One flow line sweeps behind the panel's right side (pages.ts flowLine). */
.join-flow {
  top: 16px;
  right: -24px;
  width: min(300px, 50%);
}
.join-panel h2 {
  margin: 16px 0;
}
.join-panel p {
  font-size: 15px;
  color: var(--muted);
}
.join-panel .small {
  margin-top: 14px;
  max-width: 340px;
  font-size: 13px;
}
.badge {
  display: inline-block;
  font: 400 11px / 1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 12px;
  border: 1px solid color-mix(in oklab, var(--gh-role-accent) 60%, var(--gh-role-line));
  border-radius: 999px;
  color: var(--lilac-ink);
  background: var(--lilac-wash);
}

/* Shared .gh-action variants own control paint, sizes and interaction states. */
.actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.small {
  color: var(--muted);
  font-size: 13px;
}
.grid {
  display: grid;
  gap: 24px;
}
.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panel {
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  border-radius: 18px;
  background: var(--surface);
  padding: 32px;
  margin-bottom: 24px;
  min-width: 0;
  box-shadow: 0 18px 40px -30px var(--cast);
}
.panel h2 {
  font-size: 28px;
  margin-bottom: 14px;
}
.panel p {
  color: var(--muted);
  font-size: 15px;
}
.access-panel {
  background: linear-gradient(160deg, var(--surface) 35%, var(--sky-wash));
}
/* A panel's eyebrow keeps the brand's lilac; the muted panel text colour must not reach it. */
.panel .eyebrow {
  color: var(--lilac-ink);
  font-size: var(--gh-type-eyebrow-size);
}
/* A settings panel: what it is on the left, its form beside it, and any list below across both. */
.panel.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 48px;
  align-items: start;
}
.panel.split > * {
  grid-column: 1 / -1;
}
.panel.split > .panel-intro {
  grid-column: 1;
}
.panel.split > .split-side {
  grid-column: 2;
}
.panel.split > form.split-side {
  padding-top: 4px;
}
/* With its form closed (an application already sent), the intro takes the panel's width. */
.panel.split:not(:has(> .split-side:not([hidden]))) > .panel-intro {
  grid-column: 1 / -1;
}
.panel-intro p + p,
.panel-intro p + div,
.panel-intro div + p {
  margin-top: 10px;
}
/* A note inside a panel stays small; the generic panel text size must not enlarge it. */
.panel .small {
  font-size: 13px;
}
.account-content .panel h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.panel-intro-link {
  font-size: 15px;
}
.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
/* An account form's action is a pill the size of its label, as every other entry on the page. */
.account-content form > button {
  justify-self: start;
}
/* Account forms keep their fields close; each page's form and action fit one screen. */
.account-content form {
  gap: 12px;
}
#beta-form textarea {
  height: 4em;
}
/* The browser check keeps its real size before it loads, so a form never moves under it. */
.account-content .cf-turnstile {
  min-height: 65px;
}
/* Beta on a wide screen: the review status above, the application across the panel. */
@media (min-width: 1024px) {
  .panel.split:has(> #beta-form:not([hidden])) {
    display: block;
  }
  #beta-form:not([hidden]) {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    padding-top: 14px;
  }
  #beta-form > label:has(select) {
    grid-area: 1 / 1;
  }
  #beta-form > .check {
    grid-area: 2 / 1;
  }
  #beta-form > label:has(textarea) {
    grid-area: 1 / 2 / 3;
    grid-template-rows: auto minmax(0, 1fr);
  }
  #beta-form > label:has(textarea) > textarea {
    height: auto;
  }
  #beta-form > .cf-turnstile {
    grid-area: 3 / 1;
  }
  #beta-form > button {
    grid-area: 3 / 2;
    align-self: end;
    justify-self: end;
  }
}
/* A compact action card (People & projects): its title and one action on the first line, its
   summary below, and its history in closed disclosures. */
.action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
}
.action-card > * {
  grid-column: 1 / -1;
}
.action-card > h2 {
  grid-column: 1;
  margin: 0;
}
.action-card > .task-trigger {
  grid-column: 2;
  grid-row: 1;
}
.action-card > p {
  margin-top: 6px;
}
/* A task opens as a native popover over the page: a centred card, or a sheet on a phone. The
   browser handles outside clicks, Escape and focus return; Done closes it without script. */
.task-sheet:popover-open {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 80%, transparent);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 32px 64px -32px var(--cast);
}
.task-sheet::backdrop {
  background: color-mix(in srgb, var(--gh-role-text) 20%, transparent);
}
.task-sheet h3 {
  font-size: 20px;
}
.task-sheet form {
  max-width: none;
  padding-top: 12px;
}
/* The private link appears in a region already held for it, so the task never grows. */
.task-result {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 104px;
  margin-top: 16px;
}
.task-sheet .task-close {
  margin-top: 8px;
}
/* A history or explanation behind one compact line; an opened list stays bounded. */
details.record-disclosure {
  margin-top: 12px;
  padding-top: 12px;
}
/* A disclosure that opens a panel's intro needs no rule above it, and its note keeps a gap. */
.panel-intro > details.record-disclosure:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.panel-intro > details.record-disclosure + .small {
  margin-top: 10px;
}
.record-disclosure > .records {
  max-height: 12rem;
}
.record-disclosure > .module-grid {
  max-height: 20rem;
  margin-top: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
}
/* A long record list scrolls inside its panel; a short one keeps its natural height. */
.account-content .records {
  max-height: 20rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
/* Task cards on a wide screen sit side by side, so every action is in view: referrals beside
   the host ownership note, and a requested integration beside publishing. An invitation waiting to be
   accepted spans both columns above them. */
@media (min-width: 1024px) {
  .account-content:has(> #project-ownership),
  .account-content:has(> #module-outreach:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
  }
  .account-content:has(> #project-ownership) > .panel,
  .account-content:has(> #module-outreach:not([hidden])) > .panel {
    margin: 0;
  }
  .account-content:has(> #project-ownership) > #pending-invite {
    grid-column: 1 / -1;
  }
}
/* Short facts, each beside its icon in a small lilac tile (ui-icons.ts iconFacts). */
.icon-facts {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.icon-facts li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.icon-facts li > span {
  padding-top: 5px;
}
.icon-facts .ui-icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--gh-role-accent) 55%, var(--gh-role-line));
  border-radius: 10px;
  background: var(--lilac-wash);
  color: var(--lilac-ink);
}
.panel-intro .icon-facts + .small {
  margin-top: 16px;
}
/* Report progress as three steps in a row. */
.report-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.report-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}
.report-steps li > span {
  padding-top: 0;
}
.report-steps li + li::before {
  content: "→";
  color: var(--lilac-ink);
  font-weight: 400;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
form {
  display: grid;
  gap: 18px;
  padding-top: 24px;
  max-width: 700px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
input,
textarea,
select {
  border: 1px solid var(--field);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  min-height: 40px;
  padding: 6px 12px;
  width: 100%;
  max-width: 100%;
  font-weight: 400;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 1px;
  border-color: var(--lilac-ink);
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex: none;
  accent-color: var(--lilac-ink);
}
.records {
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
/* An identity card the account view has not filled yet never opens as an empty frame. */
.maker-peek:empty {
  display: none;
}
/* A titled record list inside a panel starts its own group after the form above it. */
.panel h3:has(+ .records) {
  margin-top: 32px;
}
.records li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.records button {
  margin-top: 10px;
}
/* A record row (invitation-views.ts): what it is, its state as one chip, then its action. */
.records li.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 0;
}
.record-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.record-title {
  color: var(--ink);
  font-weight: 700;
}
.record-meta,
.record-detail {
  color: var(--muted);
  font-size: 13px;
}
.record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 156px;
}
.records .record-actions button {
  margin-top: 0;
}
.record-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  padding: 4px 10px 4px 8px;
  border: 1px solid color-mix(in oklab, var(--gh-role-accent) 60%, var(--gh-role-line));
  border-radius: 999px;
  background: var(--surface);
  color: var(--lilac-ink);
  font: 400 11px / 1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.record-status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.record-status[data-tone="done"] {
  border-color: var(--ink);
  color: var(--ink);
}
.record-status[data-tone="done"]::before {
  border-color: var(--ink);
  background: var(--lime);
}
.record-status[data-tone="closed"] {
  border-color: var(--line);
  color: var(--muted);
}
.record-status[data-tone="closed"]::before {
  border-color: var(--line);
  background: var(--line);
}
.record-status[data-tone="attention"] {
  border-style: dashed;
  border-color: var(--ink);
  color: var(--ink);
}
.record-status[data-tone="attention"]::before {
  background: var(--ink);
}
/* A closed invitation stays on record, quieter than the open ones. */
.records li.record:has(> [data-tone="closed"]) .record-title {
  color: var(--muted);
  font-weight: 600;
}
.records li.record-empty {
  color: var(--muted);
  font-size: 14px;
}
.records code {
  display: block;
  font: 12px / 1.7 var(--mono);
  color: var(--muted);
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  border-radius: 6px;
  padding: 8px 12px;
  word-break: break-all;
  margin: 12px 0;
}
.release-downloads li {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  border-radius: 18px;
  padding: 24px;
  margin-top: 16px;
  box-shadow: 0 16px 36px -28px var(--cast);
}
.download-title {
  font-size: 22px;
  font-weight: 800;
  display: block;
}
.download-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.download-actions .button,
.download-actions button {
  margin-top: 0;
}

/* After download: the website's paper-to-sky band with cards. */
.install-guide {
  margin-top: 8px;
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky-wash) 100%);
}
.install-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}
.install-row > div > p:not(.eyebrow, .note) {
  color: var(--muted);
  margin-top: 18px;
  font-size: 15px;
}
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.guide-steps li {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 16px 36px -26px var(--cast);
}
.guide-steps > li > span {
  font: 400 13px var(--mono);
  padding-top: 4px;
  color: var(--lilac-ink);
}
.guide-steps p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
code {
  font-family: var(--mono);
  font-size: 0.85em;
  overflow-wrap: anywhere;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--lilac-wash);
}

/* Release notes */
.release-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  padding-bottom: 80px;
}
.release-sidebar {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
.release-sidebar .button {
  margin: 24px 0 16px;
}
.release-sidebar nav {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.release-sidebar nav a {
  color: var(--lilac-ink);
  font-size: 14px;
}
.release-sidebar .small {
  margin-top: 24px;
}
.release-card {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
}
.release-card.latest {
  border: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  border-radius: 18px;
  background: var(--surface);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px -28px var(--cast);
}
.release-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.release-card h2 {
  font-size: clamp(24px, 1vw + 18px, 32px);
  margin-bottom: 12px;
}
.release-card h2 a {
  text-decoration: none;
  color: var(--ink);
}
.release-card h2 a:hover {
  color: var(--lilac-ink);
}
.release-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}
/* The newest release is marked with the kit's lilac pill; lime stays for actions. */
.latest-label {
  padding: 3px 12px;
  border: 1px solid color-mix(in oklab, var(--gh-role-accent) 60%, var(--gh-role-line));
  border-radius: 999px;
  background: var(--lilac-wash);
  color: var(--lilac-ink);
  font: 400 11px / 1.3 var(--mono);
  letter-spacing: 0.09em;
}
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 600;
}
.release-body section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.release-body h2 {
  font-size: 28px;
}
.release-body ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.release-body li {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.release-body li::marker {
  color: var(--lilac);
}
/* No release yet: a plain card; the badge carries the state. */
.empty-state {
  padding: 36px 40px;
  border: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 18px 40px -30px var(--cast);
}
.empty-state h2 {
  margin: 22px 0 16px;
}
.empty-state p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Privacy */
.narrow > * {
  max-width: 720px;
}
.prose {
  max-width: 720px;
  padding-bottom: 80px;
}
.prose h2 {
  margin-top: 40px;
  font-size: 26px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  color: var(--muted);
  margin-top: 14px;
}
.prose > a:last-child {
  display: inline-block;
  margin-top: 32px;
  font-weight: 600;
}
details:not(.maker-mention) {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
summary:hover {
  color: var(--lilac-ink);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px / 1.6 var(--mono);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
}
.notice {
  padding: 16px 18px;
  margin: 20px 0;
  background: var(--lilac-wash);
  border: 1px solid var(--lilac);
  border-radius: var(--radius);
}
/* Page status (auth, errors, results) floats over the page: a loaded page never grows a row for
   it. It stays in the accessibility tree while empty, so its announcements are never missed. */
.status-row > #message {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 16px;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.status-row > #message:not(:empty) {
  padding: 12px 16px;
  border: 1px solid var(--lilac);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 40px -24px var(--cast);
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
/* Reading panels, licenses and code scroll inside the page with the same thin bar. */
.module-panel,
.module-license,
.module-readme pre,
.module-readme table {
  scrollbar-width: thin;
}
/* A short page keeps its footer at the foot of the window, with no blank band below it. */
body:not(.reserve-campaign) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body:not(.reserve-campaign) > main {
  flex: 1 0 auto;
}
/* A maker's public page lines up with the header and footer frame. */
.maker-profile {
  max-width: 1120px;
}
@media (max-width: 1023px) {
  /* The text column needs the width: the arch moves toward the corner. */
  .head-band::before {
    right: -120px;
  }
}
@media (max-width: 760px) {
  .registration-entry {
    padding: 36px 16px 44px;
    border-radius: 22px;
  }
  .profile-summary {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
  .profile-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 10px;
  }
  .head-flow-a {
    right: -60px;
    width: 300px;
  }
  .head-flow-b {
    display: none;
  }
  .page-head {
    padding-top: 40px;
    padding-bottom: calc(var(--floor-h) + 16px);
  }
  .page-head .lede {
    font-size: 17px;
  }
  .page-body {
    padding-top: 24px;
  }
  .join-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px;
    gap: 22px;
    margin-bottom: 40px;
  }
  .two-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .panel {
    padding: 22px;
  }
  .panel.split {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel.split > .panel-intro,
  .panel.split > .split-side {
    grid-column: 1;
  }
  .panel.split > form.split-side {
    padding-top: 20px;
  }
  .account-page {
    padding-top: 12px;
  }
  .account-content .panel {
    padding: 16px;
  }
  #beta-form textarea {
    height: 3.25em;
  }
  .section-title {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .install-guide {
    margin-top: 24px;
    padding: 56px 0 64px;
  }
  .install-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .guide-steps li {
    padding: 18px;
  }
  .release-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 48px;
  }
  .release-sidebar {
    order: 2;
  }
  .release-card.latest,
  .empty-state {
    padding: 24px;
  }
}
@media (max-width: 560px) {
  .shell {
    padding-left: 18px;
    padding-right: 18px;
  }
  /* At phone width a page's one primary action spans its column: a form's submit action, never
     a secondary, quiet or type="button" control (the dialog Close keeps its own width). */
  .profile-copy > .button,
  .account-content form > button:not(.secondary, .quiet, [type="button"]),
  .join-panel .button {
    width: 100%;
  }
  .records li.record {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .record-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
  }
  .record-actions:empty {
    display: none;
  }
  /* Stacked report steps read top to bottom; the arrows only join steps on one line. */
  .report-steps {
    display: grid;
  }
  .report-steps li + li::before {
    content: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* High contrast: drop the decorative flow lines; keep every edge visible. */
@media (forced-colors: active) {
  .flow-line {
    display: none;
  }
  .badge,
  .panel,
  .join-panel,
  .guide-steps li {
    border: 1px solid CanvasText;
  }
  .brand-icon path {
    fill: CanvasText;
  }
}

/* Community modules. A package is one composed plate: the brand's glass Modules
   block, its name, what it does, each upstream's owner status and one install
   command. README, records, license and history open in panels above the page, so a loaded
   page keeps its geometry: nothing dynamic adds a row or grows the document. */
.module-band .module-heading {
  position: relative;
  z-index: 1;
}
.module-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 36px;
  padding-bottom: 30px;
}
.module-heading .eyebrow {
  margin-bottom: 8px;
}
.module-heading h1 {
  font-size: clamp(30px, 1.8vw + 18px, 42px);
  line-height: 1.1;
}
.module-heading .lede {
  max-width: 600px;
  margin-top: 8px;
  color: var(--muted);
}
.module-heading > .button,
.module-heading > .badge {
  flex: none;
}
.module-browse {
  padding-top: 20px;
  padding-bottom: 48px;
}
/* One toolbar as wide as the results. The page's form column limit does not apply. */
.module-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 12px;
  max-width: none;
  padding: 0;
}
.module-search input,
.module-search select,
.module-search button {
  min-width: 0;
}
.module-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.module-filter select {
  width: auto;
  color: var(--ink);
  font-size: 14px;
}
.module-section-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 18px;
  padding: 18px 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.module-section-line > p {
  font-weight: 700;
  color: var(--ink);
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  /* Natural heights: a card with several upstreams must not stretch its row into blank space. */
  align-items: start;
  gap: 12px;
}
/* The canonical module cartridge seated in a slot cut into the page (brand.css .kit-scene,
   variant "aperture"): only the opening's rim and cavity show, and the page hides the rest.
   The box keeps the short dock path above the seated cartridge (about a fifth of its height);
   cards pull that band into their padding. */
.module-cartridge {
  flex: none;
  width: 76px;
  min-width: 0;
}
.module-card-top > .module-cartridge {
  margin: -14px 0 -4px -6px;
}
/* Cards share the panel edge and cast; the lilac edge marks the one in hand. */
.module-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 40px -32px var(--cast);
  transition: border-color 0.16s ease;
}
.module-card:hover,
.module-card:focus-within {
  border-color: var(--lilac);
}
.module-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.module-card-top > div {
  flex: 1;
  min-width: 0;
}
.module-card h2 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.module-card h2 a {
  color: var(--ink);
  text-decoration-thickness: 1px;
}
/* Exact package name, version and license in one scannable row. */
.module-package {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 3px;
  font: 12px / 1.5 var(--mono);
  color: var(--muted);
}
.module-package > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.module-package > span:first-child {
  color: var(--ink);
}
.module-package > span + span::before {
  content: "·";
  margin-right: 6px;
}
.module-description {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* One line for each upstream: its own observed status, then the product and owner. */
.module-origins {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module-origins li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}
.module-origins li > span:not(.badge) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.module-origins strong {
  color: var(--ink);
  font-weight: 600;
}
.module-request {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.module-status {
  flex: none;
  max-width: 100%;
  padding: 3px 8px;
  letter-spacing: 0.6px;
  line-height: 1.35;
  white-space: normal;
}
/* Current owner approval: the website's lime sign with an ink edge. */
.module-status[data-tone="official"] {
  background: var(--lime);
  border-color: var(--ink);
  color: var(--ink);
}
/* A claim without current confirmation: the website's dashed "not yet" edge. */
.module-status[data-tone="unconfirmed"] {
  border-style: dashed;
  border-color: var(--lilac-ink);
}
.module-status[data-tone="revoked"] {
  background: var(--paper);
  border-color: var(--muted);
  color: var(--muted);
}
/* Semantic versions are case-sensitive; the badge must not uppercase them. */
.module-version {
  text-transform: none;
  letter-spacing: 0;
}
.module-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  font-size: 12px;
  color: var(--muted);
}
.module-card-meta .badge {
  padding: 3px 8px;
}
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.module-card-meta .module-tags {
  margin-left: auto;
}
.module-tags span {
  font-size: 11px;
  padding: 1px 8px;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  color: var(--muted);
  border-radius: 999px;
}
/* Loading, empty and closed states use the website's dashed "not yet" sign. */
.module-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--lilac-ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.module-publish-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--gh-role-accent) 55%, var(--gh-role-line));
  border-radius: var(--radius);
  background: var(--lilac-wash);
}
.module-publish-note > div {
  flex: 1 1 420px;
  min-width: 0;
}
.module-publish-note h2 {
  font-size: 17px;
  line-height: 1.35;
}
.module-publish-note p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}
.module-publish-note > a {
  font-size: 14px;
  font-weight: 600;
}
#module-more,
#publisher-more {
  display: flex;
  margin: 16px auto 0;
}
.module-detail-page {
  padding-top: 16px;
  padding-bottom: 48px;
}
.module-detail-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  font-size: 14px;
}
.module-detail-bar .back-link {
  margin: 0;
}
/* The package plate: the brand's frosted glass panel (brand.css .glass-panel) holding one
   composition, with one flow line (flow-line.ts) sweeping behind the install side. Source
   order is the narrow-screen order, so each upstream's status comes before the install command. */
.module-detail-head.glass-panel {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px 40px;
  padding: 28px 32px 26px;
}
.module-flow {
  top: 6px;
  right: 2%;
  width: min(340px, 38%);
}
.module-plate-identity {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
/* The demo occupies its initial frame in every state, including loading and failures. */
.module-demo-shell {
  margin-top: 16px;
}
.module-demo {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.module-demo-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 8px;
  font-size: 12px;
}
.module-demo-toolbar strong {
  white-space: nowrap;
}
.module-demo-toolbar select {
  flex: 1;
  width: 0;
  min-width: 40px;
  min-height: 28px;
  padding: 0 4px;
  font-size: 12px;
}
.module-demo-toolbar button {
  flex: none;
  width: 58px;
}
.module-demo-stage {
  position: relative;
  height: 190px;
}
.module-demo-stage > p {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
[data-demo-frame],
[data-demo-frame] iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.module-demo[popover] {
  display: flex;
  flex-direction: column;
  width: min(1080px, calc(100vw - 32px));
  height: min(720px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  background: var(--surface);
}
.module-demo[popover] .module-demo-stage {
  flex: 1;
  min-height: 0;
  height: auto;
}
@media (max-width: 760px) {
  .module-demo-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .module-demo-toolbar strong {
    grid-column: 1;
  }
  .module-demo-toolbar select {
    grid-column: 2 / 4;
    width: 100%;
  }
  .module-demo-toolbar button {
    width: 100%;
  }
  .module-demo-stage {
    height: 170px;
  }
}
/* The thing you add, standing in the plate's install side, its command right below. */
.module-install > .module-cartridge {
  width: min(100%, 236px);
  margin: -10px auto 6px;
}
.module-plate-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font: 13px / 1.5 var(--mono);
  color: var(--muted);
}
.module-plate-name > span:first-child {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.module-plate-name .badge {
  padding: 2px 8px;
}
.module-detail-head h1 {
  margin-top: 4px;
  font-size: clamp(30px, 1.6vw + 20px, 44px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.module-plate-lede {
  max-width: 56ch;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
}
.module-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.module-integrations {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
}
.module-integrations .eyebrow,
.module-install .eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
}
.module-install {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  min-width: 0;
}
/* The command is the one dark object on the plate: the brand's code surface and lime entry. */
.module-command {
  min-width: 0;
  padding: 8px 8px 12px 14px;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-ink);
}
.module-command > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--code-muted);
  font-size: 12px;
  font-weight: 700;
}
/* Selecting the command selects all of it when the clipboard is unavailable. */
.module-command code {
  display: block;
  margin-top: 4px;
  padding: 0;
  background: none;
  color: var(--code-ink);
  font: 13px / 1.55 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
/* Copy feedback lives in the control: "Copied" fits the reserved width, so nothing moves. */
.module-copy {
  min-width: 76px;
}
.module-install-more {
  margin-top: 6px;
}
.module-command-list {
  display: grid;
  gap: 8px;
}
.module-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px 40px;
  align-items: start;
  margin-top: 28px;
}
.module-glance h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
/* Friendly facts on small concrete faces, the brand's stone material without its projection. */
.module-glance-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.module-glance-facts > div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gh-role-elevated) 0%, var(--gh-role-surface) 100%);
  box-shadow: inset 0 1.5px 0 var(--gh-role-elevated), inset 0 -14px 20px -18px
    color-mix(in srgb, var(--gh-role-cast) 22%, transparent), 0 12px 24px -20px var(--cast);
}
.module-glance-facts dt {
  font: 600 11px / 1.4 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.module-glance-facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.module-glance .module-tags {
  margin-top: 12px;
}
/* One quiet index: each row opens its reading panel above the page. */
.module-sections {
  display: grid;
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px -32px var(--cast);
}
.module-section {
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.module-section span {
  font: 500 12px var(--mono);
}
/* Reading panels (native popover): above the page in a bounded frame that scrolls inside. */
.module-panel {
  width: min(760px, calc(100vw - 32px));
  max-height: min(82vh, 820px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px var(--cast);
}
.module-panel-small {
  width: min(520px, calc(100vw - 32px));
}
.module-panel::backdrop {
  background: color-mix(in srgb, var(--gh-role-text) 24%, transparent);
}
.module-panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--gh-role-line) 60%, transparent);
  background: var(--surface);
}
.module-panel-head h2 {
  font-size: 18px;
  line-height: 1.3;
}
.module-section-body {
  padding: 16px 18px 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.module-section-body > p {
  font-size: 14px;
}
.module-section-body > p + p,
.module-section-body > pre + p,
.module-section-body > p + pre {
  margin-top: 10px;
}
.module-section-body .small {
  font-size: 12px;
}
.module-record + .module-record,
.module-record + p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--gh-role-line) 90%, transparent);
}
.module-record h3 {
  font-size: 15px;
  line-height: 1.35;
}
.module-record h3 span {
  color: var(--muted);
  font-weight: 400;
}
.module-record > .small {
  margin-top: 8px;
}
.module-facts {
  margin: 6px 0 0;
}
.module-facts > div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gh-role-line) 50%, transparent);
  font-size: 13px;
}
.module-facts > div:last-child {
  border-bottom: 0;
}
.module-facts dt {
  color: var(--muted);
}
.module-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.module-evidence {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
}
.module-license {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--paper);
  font: 13px / 1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* The publisher guide reads as a document: the site's type, the brand code surface for blocks. */
.module-readme {
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.module-readme > :first-child {
  margin-top: 0;
}
.module-readme :is(h1, h2, h3, h4, h5, h6) {
  margin: 20px 0 6px;
  font-weight: 800;
  line-height: 1.25;
}
.module-readme h1 {
  font-size: 22px;
}
.module-readme h2 {
  font-size: 19px;
}
.module-readme h3 {
  font-size: 17px;
}
.module-readme :is(h4, h5, h6) {
  font-size: 15px;
}
.module-readme :is(p, ul, ol, blockquote, pre, table) {
  margin: 10px 0 0;
}
.module-readme :is(ul, ol) {
  padding-left: 22px;
}
.module-readme li + li {
  margin-top: 4px;
}
.module-readme pre {
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-ink);
  font: 13px / 1.6 var(--mono);
  white-space: pre;
  overflow-wrap: normal;
}
.module-readme pre code {
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}
.module-readme blockquote {
  padding-left: 12px;
  border-left: 3px solid var(--lilac);
  color: var(--muted);
}
.module-readme table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
}
.module-readme :is(th, td) {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.module-readme hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.module-versions {
  list-style: none;
  padding: 0;
  margin: 0;
}
.module-versions li {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--gh-role-line) 70%, transparent);
  padding: 8px 0;
  font-size: 13px;
}
.module-versions li > span:last-of-type {
  color: var(--muted);
}
.module-versions p {
  flex: 0 0 100%;
}
#module-versions-more {
  margin-top: 12px;
}
/* The owner request is one focused action: what is selected, what happens, one button. */
.module-outreach {
  border-top: 3px solid var(--lilac);
}
.module-outreach .module-outreach-summary {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--lilac-wash);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.module-outreach .module-outreach-note {
  margin-top: 6px;
  font-size: 13px;
}
.module-outreach .module-outreach-status {
  color: var(--ink);
  font-size: 14px;
}
#module-publisher-proof {
  margin-top: 6px;
}
.module-publisher fieldset {
  display: grid;
  gap: 18px;
  border: 0;
  margin: 8px 0 0;
  padding: 0;
}
.module-publisher fieldset > button {
  justify-self: start;
}
.module-publisher legend {
  font-weight: 700;
  margin-bottom: 12px;
}
.module-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.module-form-grid input {
  width: 100%;
}
.module-proof pre {
  margin: 14px 0;
  font: 12px / 1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.module-proof p {
  font-size: 13px;
  margin-top: 10px;
}
.module-yank {
  margin-top: 24px;
}
.module-yank > p {
  margin-top: 12px;
}
.module-yank form {
  max-width: 660px;
}
.module-grid[aria-busy="true"] {
  opacity: 0.7;
}
@media (max-width: 960px) {
  .module-detail-head.glass-panel {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    column-gap: 28px;
  }
}
@media (max-width: 760px) {
  /* Service header: the brand on its own row, then the links as one full-width,
     left-aligned group. Shared by every platform page; brand.css stays unchanged. */
  .top-row {
    min-height: 56px;
  }
  .top-row > .brand span {
    display: inline;
  }
  /* The footer brand keeps its wordmark too: brand.css hides it on phones, which left an unnamed link. */
  .foot .brand span {
    display: inline;
  }
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .foot-links {
    gap: 0 20px;
  }
  .foot-links a {
    min-height: 44px;
  }
  .module-heading {
    display: block;
    padding-top: 24px;
    padding-bottom: 22px;
  }
  .module-heading > .button,
  .module-heading > .badge {
    margin-top: 14px;
  }
  .module-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .module-search input {
    grid-column: 1 / -1;
  }
  .module-filter {
    display: grid;
    gap: 4px;
    white-space: normal;
  }
  .module-filter select {
    width: 100%;
  }
  .module-detail-head.glass-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px 18px;
    border-radius: 20px;
  }
  .module-flow {
    display: none;
  }
  .module-plate-identity,
  .module-integrations,
  .module-install {
    grid-column: auto;
    grid-row: auto;
  }
  .module-install > .module-cartridge {
    width: min(100%, 210px);
  }
  .module-plate-lede {
    font-size: 16px;
  }
  .module-detail-body {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
  }
  .module-publish-note {
    padding: 14px 16px;
  }
}
/* Phones: the account pages put their primary action first and keep the artwork compact. */
@media (max-width: 760px) {
  #profile-card {
    max-width: 230px;
  }
  .module-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #offline-licenses > form.split-side {
    order: -1;
    padding-top: 0;
  }
  #offline-licenses > .panel-intro {
    margin-top: 16px;
  }
  .icon-facts {
    gap: 8px;
  }
  .icon-facts li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    font-size: 13px;
  }
  .icon-facts li > span {
    padding-top: 4px;
  }
  .icon-facts .ui-icon {
    width: 28px;
    height: 28px;
    padding: 6px;
  }
  /* Compact cards on a phone: tighter titles, one-line summaries and closed histories. */
  .account-content .panel + .panel {
    margin-top: 12px;
  }
  .account-content .action-card > h2 {
    font-size: 20px;
  }
  .action-card > p {
    font-size: 14px;
  }
  details.record-disclosure {
    margin-top: 8px;
    padding-top: 8px;
  }
  #beta-status,
  #license {
    font-size: 13px;
    line-height: 1.45;
  }
  #beta-status + #license {
    margin-top: 4px;
  }
}
@media (max-width: 560px) {
  /* The header already carries the brand; the footer keeps one row of links. */
  .foot-compact .brand {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .module-card {
    transition: none;
  }
}

/* Hosting products keep the existing compact Services frame and bounded reading surfaces. */
.hosting-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hosting-heading h3 {
  margin: 0;
}
.hosting-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.hosting-product .hosting-status {
  height: 3em;
  overflow: auto;
  font-size: 13px;
  margin: 8px 0;
}
.hosting-content {
  min-height: 140px;
}
.spawn-records {
  max-height: 240px;
  overflow: auto;
  scrollbar-gutter: stable;
  border-top: 1px solid var(--border);
}
.spawn-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
.spawn-table th,
.spawn-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--border);
}
.spawn-table th {
  font-weight: 500;
  opacity: 0.7;
}
.spawn-table th:last-child,
.spawn-table td:last-child {
  width: 31%;
}
.spawn-table td button {
  margin: 0 4px 4px 0;
}
.spawn-table td > div {
  opacity: 0.72;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .spawn-table th,
  .spawn-table td {
    padding: 8px 4px;
  }
  .spawn-table td button {
    width: 100%;
    margin-right: 0;
  }
}
.hosting-record {
  padding: 12px 0;
}
.hosting-record > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.hosting-record small {
  opacity: 0.75;
}
.hosting-record .saas-actions {
  flex-shrink: 0;
  margin: 0;
}
.hosting-link {
  white-space: nowrap;
}
.hosting-publish-form {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(130px, 2fr) minmax(120px, 1fr);
  gap: 10px;
}
.hosting-publish-form label {
  min-width: 0;
}
.hosting-publish-form select {
  width: 100%;
  text-overflow: ellipsis;
}
.hosting-live-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.hosting-live-controls > .hosting-live-heading,
.hosting-live-controls > p {
  grid-column: 1 / -1;
}
.hosting-live-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hosting-live-heading .hosting-live-timing {
  flex: 0 0 178px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
}
.hosting-live-controls > p {
  height: 3em;
  overflow: auto;
  font-size: 13px;
  margin: 0;
}
.hosting-live-controls .hosting-checkbox {
  align-items: center;
}
.hosting-live-controls .hosting-checkbox input {
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
.hosting-product .hosting-current {
  height: 2.8em;
  overflow: auto;
  font-size: 13px;
  margin: 8px 0;
}
.hosting-history {
  max-height: 230px;
  overflow: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}
.hosting-code {
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre;
  overflow: auto;
}
.hosting-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hosting-checkbox input {
  width: auto;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .hosting-publish-form,
  .hosting-live-controls {
    grid-template-columns: 1fr;
  }
  .saas-product .hosting-record {
    flex-direction: column;
    align-items: flex-start;
  }
  .hosting-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.hosting-project-heading .saas-actions {
  margin-top: 0;
}
.hosting-heading {
  flex-wrap: wrap;
  gap: 8px;
}
.hosting-heading h3 {
  margin-right: auto;
}
.hosting-public {
  overflow-wrap: anywhere;
}

/* Publishing metadata stays inside the existing bounded account dialog. */
[data-listing-form] fieldset {
  display: grid;
  gap: 16px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
[data-listing-form] input,
[data-listing-form] select {
  width: 100%;
  min-width: 0;
}
[data-listing-state] {
  min-height: 3em;
  max-height: 4.5em;
  overflow: auto;
  font-size: 13px;
}
[data-listing-form] details > p {
  font-size: 13px;
}
[data-listing-form] .listing-image-row,
[data-listing-notes] > div {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--field);
}
[data-listing-form] .listing-image-row small {
  overflow-wrap: anywhere;
}
[data-listing-form] .saas-actions select {
  flex: 1 1 180px;
}
[data-listing-form] .record-disclosure {
  min-width: 0;
}
