:root {
  /* PUBLIC01C6_NEUTRAL_SURFACE_POLISH_V1 */
  color-scheme: light dark;

  /*
   * Material 3-inspired baseline palette.
   * The hierarchy comes from tonal containment rather than decoration.
   */
  /*
   * Subshell canonical warm palette.
   * Brand source: Android Color.kt + ic_subshell_in_app.xml.
   */
  --subshell-orange: #ff8a3d;
  --subshell-orange-soft: #ffb68c;
  --subshell-ink: #17120f;
  --subshell-surface: #211a16;
  --subshell-surface-high: #2c231e;
  --subshell-cream: #fff8f4;

  --md-sys-color-surface: #fff8f4;
  --md-sys-color-surface-container-low: #f7f2ee;
  --md-sys-color-surface-container: #f0ebe7;
  --md-sys-color-surface-container-high: #e8e2de;

  --md-sys-color-on-surface: #211a17;
  --md-sys-color-on-surface-variant: #514a46;
  --md-sys-color-outline: #857b75;
  --md-sys-color-outline-variant: #d3cbc6;

  --md-sys-color-primary: #914300;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffdbc8;
  --md-sys-color-on-primary-container: #301400;

  --md-sys-color-secondary-container: #ebe4df;
  --md-sys-color-on-secondary-container: #2b2521;

  --shell: 1180px;

  --shape-full: 999px;
  --shape-xl: 52px;
  --shape-lg: 32px;
  --shape-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);

  font-family:
    Roboto,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;

  padding: 10px 16px;

  border-radius: var(--shape-full);

  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);

  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding-block: 18px;
}

.header-inner {
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  text-decoration: none;
}

.brand strong {
  font-size: 24px;
  letter-spacing: -0.025em;
}

.brand-logo {
  width: 46px;
  height: 46px;

  display: block;

  border-radius: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;

  font-size: 14px;
  font-weight: 540;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-section {
  padding: 14px 0 24px;
}

.hero-surface {
  min-height: 650px;

  padding: clamp(34px, 5vw, 68px);

  border-radius:
    var(--shape-xl)
    var(--shape-xl)
    var(--shape-xl)
    18px;

  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(410px, 1.1fr);

  align-items: center;
  gap: clamp(40px, 6vw, 78px);

  background: var(--md-sys-color-surface-container-low);
}

.eyebrow {
  margin: 0 0 18px;

  color: var(--md-sys-color-primary);

  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;

  font-size: clamp(68px, 8vw, 104px);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.hero-title {
  margin: 14px 0 28px;

  color: var(--md-sys-color-on-surface-variant);

  font-size: clamp(36px, 4vw, 56px);
  font-weight: 420;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-description {
  max-width: 500px;
  margin: 0 0 30px;

  color: var(--md-sys-color-on-surface-variant);

  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 24px;

  border: 0;
  border-radius: var(--shape-full);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  font-weight: 650;
  text-decoration: none;
}

.button-filled {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.button-tonal {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.button-icon {
  width: 19px;
  height: 19px;
}

.preview-container {
  padding: 24px;

  border-radius:
    18px
    var(--shape-xl)
    var(--shape-xl)
    var(--shape-xl);

  background: var(--md-sys-color-secondary-container);
}

.preview-label {
  margin-bottom: 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: var(--md-sys-color-on-secondary-container);

  font-size: 12px;
  font-weight: 650;
}

.preview-label span:last-child {
  opacity: 0.62;
  font-weight: 500;
}

.app-preview {
  width: min(100%, 330px);
  min-height: 570px;
  margin-inline: auto;
  padding: 19px 17px 14px;

  position: relative;
  overflow: hidden;

  border-radius: 31px;

  background: #101116;
  color: #f4f2f7;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 8px 26px rgba(0, 0, 0, 0.12);
}

.app-status {
  min-height: 41px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 11px;
}

.app-tabs {
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 2px solid #ffb68c;

  font-size: 13px;
}

.fake-post {
  padding: 16px 2px;

  border-bottom: 1px solid #303038;
}

.post-author {
  margin-bottom: 11px;

  display: flex;
  align-items: center;
  gap: 9px;
}

.post-author i {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: #ff8a3d;
}

.post-author i.green {
  background: #5abf72;
}

.post-author div {
  display: flex;
  align-items: baseline;
  gap: 7px;

  font-size: 10px;
}

.post-author small {
  color: #888893;
}

.fake-post h2 {
  margin: 0 0 12px;

  font-size: 14px;
  line-height: 1.35;
}

.post-media {
  min-height: 215px;

  border-radius: 15px;

  display: grid;
  place-items: center;

  background: #23252c;
  color: #85858e;

  font-size: 11px;
}

.post-actions {
  margin-top: 11px;

  display: flex;
  justify-content: space-between;

  color: #c5c4cb;

  font-size: 10px;
}

.fake-post-small h2 {
  margin-bottom: 0;
}

.app-nav {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 15px;

  display: flex;
  justify-content: space-between;

  color: #c8c6cf;
}

.app-nav strong {
  color: #ffb68c;
}

.beta-section {
  padding: 0 0 26px;
}

.beta-surface {
  padding: clamp(30px, 4vw, 48px);

  border-radius:
    var(--shape-lg)
    var(--shape-lg)
    14px
    var(--shape-lg);

  background: var(--md-sys-color-surface-container-high);
}

.beta-status {
  margin-bottom: 17px;

  display: flex;
  align-items: center;
  gap: 9px;

  color: var(--md-sys-color-primary);

  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--md-sys-color-primary);
}

.beta-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
}

.beta-content h2 {
  margin: 0 0 8px;

  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.beta-content p {
  max-width: 650px;
  margin: 0;

  color: var(--md-sys-color-on-surface-variant);

  font-size: 16px;
}

.beta-content .button-filled {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.beta-content .button-filled:hover {
  outline: 1px solid var(--md-sys-color-outline-variant);
}

.beta-meta {
  margin-top: 28px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.beta-meta span {
  padding: 8px 14px;

  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-full);

  color: var(--md-sys-color-on-surface-variant);

  font-size: 12px;
  font-weight: 590;
}

.site-footer {
  padding: 18px 0 42px;
}

.footer-inner {
  padding: 20px 4px 0;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-copy strong {
  font-size: 19px;
}

.footer-copy p {
  margin: 4px 0 0;

  color: var(--md-sys-color-on-surface-variant);

  font-size: 11px;
  line-height: 1.5;
}

.footer-links {
  padding-top: 5px;

  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;

  font-size: 12px;
}

.footer-links a {
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--md-sys-color-on-surface);
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--md-sys-color-primary);
  outline-offset: 4px;
}

/* Native dark theme. Dark Reader is explicitly locked out in HTML. */
@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-surface: #17120f;
    --md-sys-color-surface-container-low: #201c1a;
    --md-sys-color-surface-container: #282422;
    --md-sys-color-surface-container-high: #312d2b;

    --md-sys-color-on-surface: #f2dfd7;
    --md-sys-color-on-surface-variant: #cec5c0;
    --md-sys-color-outline: #9b918c;
    --md-sys-color-outline-variant: #4b4643;

    --md-sys-color-primary: #ff8a3d;
    --md-sys-color-on-primary: #542000;
    --md-sys-color-primary-container: #733008;
    --md-sys-color-on-primary-container: #ffdbc9;

    --md-sys-color-secondary-container: #37312e;
    --md-sys-color-on-secondary-container: #ebe2dc;
  }

  .app-preview {
    box-shadow: none;
  }
}

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

  .hero-copy {
    max-width: 680px;
  }

  .preview-container {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header {
    padding-block: 10px;
  }

  .header-inner {
    min-height: 52px;
  }

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

  .brand-logo {
    width: 40px;
    height: 40px;

    border-radius: 12px;
  }

  .nav {
    gap: 18px;

    font-size: 13px;
  }

  .nav a:first-child {
    display: none;
  }

  .hero-section {
    padding-top: 8px;
  }

  .hero-surface {
    min-height: 0;

    padding: 32px 22px 24px;

    border-radius:
      36px
      36px
      36px
      12px;

    gap: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(58px, 19vw, 76px);
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-container {
    padding: 15px;

    border-radius:
      12px
      32px
      32px
      32px;
  }

  .preview-label {
    padding-inline: 4px;
  }

  .app-preview {
    width: min(100%, 285px);
    min-height: 495px;

    border-radius: 27px;
  }

  .post-media {
    min-height: 170px;
  }

  .beta-section {
    padding-bottom: 18px;
  }

  .beta-surface {
    padding: 28px 22px;

    border-radius:
      28px
      28px
      10px
      28px;
  }

  .beta-content {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .beta-content .button {
    justify-self: start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 14px 21px;
  }
}

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


/* PUBLIC01C5_DYNAMIC_COLOUR_V1 */

.palette-toggle {
  min-height: 40px;
  padding: 0 12px;

  border: 0;
  border-radius: var(--shape-full);

  display: inline-flex;
  align-items: center;
  gap: 9px;

  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface-variant);

  font: inherit;
  font-size: 12px;
  font-weight: 650;

  cursor: pointer;
}

.palette-toggle:hover:not(:disabled) {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.palette-toggle:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.palette-toggle-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.palette-toggle-track {
  width: 36px;
  height: 22px;
  padding: 2px;

  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--shape-full);

  display: flex;
  align-items: center;

  background: var(--md-sys-color-surface-container);

  transition:
    background-color 140ms ease,
    border-color 140ms ease;
}

.palette-toggle-thumb {
  width: 16px;
  height: 16px;

  border-radius: 50%;

  background: var(--md-sys-color-outline);

  transform: translateX(0);

  transition:
    transform 140ms ease,
    background-color 140ms ease;
}

.palette-toggle[aria-pressed="true"]
.palette-toggle-track {
  border-color: var(--md-sys-color-primary);
  background: var(--md-sys-color-primary);
}

.palette-toggle[aria-pressed="true"]
.palette-toggle-thumb {
  background: var(--md-sys-color-on-primary);
  transform: translateX(14px);
}


/*
 * Best-effort device colour.
 *
 * The canonical Subshell palette remains the fallback.
 * The fixed Subshell SVG logo deliberately does not inherit
 * these variables and therefore remains orange.
 */
@supports
  (color: AccentColor) and
  (color: color-mix(in oklab, red 20%, blue)) {

  :root[data-palette="device"] {
    --md-sys-color-primary:
      AccentColor;

    --md-sys-color-on-primary:
      AccentColorText;

    --md-sys-color-primary-container:
      color-mix(
        in oklab,
        AccentColor 22%,
        var(--md-sys-color-surface-container-high)
      );

    --md-sys-color-on-primary-container:
      var(--md-sys-color-on-surface);

    --md-sys-color-secondary-container:
      color-mix(
        in oklab,
        AccentColor 13%,
        var(--md-sys-color-surface-container)
      );

    --md-sys-color-on-secondary-container:
      var(--md-sys-color-on-surface);
  }
}

@media (max-width: 760px) {
  .palette-toggle-label {
    display: none;
  }

  .palette-toggle {
    padding-inline: 9px;
    gap: 7px;
  }
}

@media (max-width: 640px) {
  .palette-toggle-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .palette-toggle-track,
  .palette-toggle-thumb {
    transition: none;
  }
}


/* PUBLIC01C7_SCREENSHOT_GALLERY_V1 */

.gallery-header {
  margin-bottom: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  color: var(--md-sys-color-on-secondary-container);
}

.gallery-header > div:first-child {
  display: grid;
  gap: 2px;
}

.gallery-header strong {
  font-size: 13px;
}

.gallery-header span {
  font-size: 11px;
  opacity: 0.68;
}

.gallery-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

#gallery-counter {
  min-width: 36px;

  font-variant-numeric: tabular-nums;
  text-align: right;
}

.gallery-icon-button,
.gallery-nav-button,
.gallery-dialog-close,
.gallery-dialog-nav {
  border: 0;

  display: inline-grid;
  place-items: center;

  color: inherit;

  cursor: pointer;
}

.gallery-icon-button {
  width: 34px;
  height: 34px;

  border-radius: 50%;

  background:
    color-mix(
      in oklab,
      var(--md-sys-color-on-secondary-container) 9%,
      transparent
    );
}

.gallery-icon-button:hover {
  background:
    color-mix(
      in oklab,
      var(--md-sys-color-on-secondary-container) 16%,
      transparent
    );
}

.gallery-icon-button svg {
  width: 19px;
  height: 19px;
}

.gallery-shell {
  position: relative;
}

.gallery-track {
  width: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  display: flex;
  gap: 13px;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 87%;

  margin: 0;

  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gallery-open {
  width: 100%;
  padding: 0;

  border: 0;
  border-radius: 28px;

  display: block;

  background: transparent;
  color: inherit;

  text-align: inherit;

  cursor: zoom-in;
}

.gallery-slide figcaption {
  padding: 9px 4px 0;

  color: var(--md-sys-color-on-secondary-container);

  font-size: 11px;
  opacity: 0.74;
}

.gallery-shot {
  min-height: 500px;
  padding: 18px;

  position: relative;
  overflow: hidden;

  border-radius: 28px;

  background: #101116;
  color: #f4f2f7;
}

.shot-topbar {
  min-height: 43px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 11px;
}

.shot-heading {
  min-height: 43px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 2px solid var(--md-sys-color-primary);

  font-size: 12px;
}

.shot-post {
  padding: 16px 1px;

  border-bottom: 1px solid #303038;

  display: grid;
  gap: 11px;
}

.shot-post.compact {
  gap: 7px;
}

.shot-meta {
  display: flex;
  align-items: center;
  gap: 7px;

  font-size: 10px;
}

.shot-meta i {
  width: 20px;
  height: 20px;

  border-radius: 50%;

  background: var(--md-sys-color-primary);
}

.shot-meta i.green {
  background: #5abf72;
}

.shot-meta small {
  color: #85858e;
}

.shot-media {
  min-height: 190px;

  border-radius: 14px;

  display: grid;
  place-items: center;

  background: #23252c;
  color: #7d7e87;

  font-size: 11px;
}

.shot-actions {
  display: flex;
  justify-content: space-between;

  color: #c6c5cb;

  font-size: 10px;
}

.shot-bottom-nav {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;

  display: flex;
  justify-content: space-between;

  color: #ccc9d1;
}

.shot-bottom-nav strong {
  color: var(--md-sys-color-primary);
}

.shot-thread-title {
  margin: 10px 0 18px;

  font-size: 17px;
  font-weight: 700;
}

.shot-comment {
  margin-top: 11px;
  padding: 13px 12px;

  border-left: 2px solid var(--md-sys-color-primary);

  border-radius: 0 12px 12px 0;

  background: #181a20;
}

.shot-comment.nested {
  margin-left: 24px;

  border-left-color: #6ca7ff;
}

.shot-comment.deeper {
  margin-left: 48px;

  border-left-color: #66c897;
}

.shot-comment strong {
  font-size: 11px;
}

.shot-comment p {
  margin: 6px 0 0;

  color: #c9c7cf;

  font-size: 12px;
}

.shot-section-label {
  padding: 10px 0 8px;

  color: #a9a6af;

  font-size: 10px;
}

.shot-community-list,
.shot-inbox-list {
  display: grid;
}

.shot-community-list span {
  min-height: 53px;

  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 9px;

  border-bottom: 1px solid #292b31;

  font-size: 11px;
}

.shot-community-list i {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: var(--md-sys-color-primary);
}

.shot-community-list span:nth-child(2) i {
  background: #62758c;
}

.shot-community-list span:nth-child(3) i {
  background: #4e8fb6;
}

.shot-community-list span:nth-child(4) i {
  background: #e08b83;
}

.shot-community-list span:nth-child(5) i {
  background: #6da06d;
}

.shot-community-list span:nth-child(6) i {
  background: #c9a95e;
}

.shot-community-list b {
  color: #8d8c95;
}

.shot-tabs {
  min-height: 40px;

  display: flex;
  align-items: center;
  gap: 18px;

  border-bottom: 1px solid #34363d;

  color: #9d9aa4;

  font-size: 10px;
}

.shot-tabs strong {
  color: var(--md-sys-color-primary);
}

.shot-inbox-list span {
  min-height: 58px;

  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;

  border-bottom: 1px solid #292b31;

  font-size: 10px;
}

.shot-inbox-list i {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: var(--md-sys-color-primary);
}

.shot-inbox-list b {
  font-size: 11px;
}

.shot-inbox-list small {
  color: #83838c;
}

.gallery-nav-button {
  width: 36px;
  height: 54px;

  position: absolute;
  z-index: 4;
  top: calc(50% - 27px);

  border-radius: var(--shape-full);

  background:
    color-mix(
      in oklab,
      var(--md-sys-color-surface) 88%,
      transparent
    );

  color: var(--md-sys-color-on-surface);

  font-size: 27px;
}

.gallery-nav-button:hover {
  background: var(--md-sys-color-surface);
}

.gallery-prev {
  left: 8px;
}

.gallery-next {
  right: 8px;
}

.gallery-nav-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.gallery-dots {
  padding-top: 12px;

  display: flex;
  justify-content: center;
  gap: 7px;
}

.gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: var(--md-sys-color-outline);

  opacity: 0.42;

  cursor: pointer;
}

.gallery-dots button.active {
  width: 20px;

  border-radius: var(--shape-full);

  background: var(--md-sys-color-primary);

  opacity: 1;
}

.gallery-dialog {
  width: min(96vw, 1120px);
  height: min(94vh, 900px);
  padding: 0;

  border: 0;
  border-radius: 28px;

  overflow: hidden;

  background: #0e0f13;
  color: #f2eff5;
}

.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
}

.gallery-dialog-toolbar {
  min-height: 58px;
  padding: 0 18px;

  display: grid;
  grid-template-columns: 1fr auto 42px;
  align-items: center;
  gap: 18px;

  border-bottom: 1px solid #2a2b31;
}

.gallery-dialog-toolbar strong {
  font-size: 14px;
}

.gallery-dialog-toolbar span {
  color: #a9a6af;

  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.gallery-dialog-close {
  width: 36px;
  height: 36px;

  border-radius: 50%;

  background: #25262d;

  color: #f2eff5;

  font-size: 25px;
}

.gallery-dialog-stage {
  height: calc(100% - 58px);

  position: relative;

  display: grid;
  place-items: center;
}

.gallery-dialog-content {
  width: min(420px, calc(100% - 120px));
  max-height: calc(100% - 38px);

  overflow: auto;
}

.gallery-dialog-content .gallery-shot {
  min-height: min(760px, calc(94vh - 110px));
}

.gallery-dialog-nav {
  width: 44px;
  height: 64px;

  position: absolute;
  top: calc(50% - 32px);

  border-radius: var(--shape-full);

  background: #24252b;
  color: #f2eff5;

  font-size: 31px;
}

.gallery-dialog-prev {
  left: 18px;
}

.gallery-dialog-next {
  right: 18px;
}

.gallery-dialog-nav:disabled {
  opacity: 0.28;
}

body.gallery-dialog-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .gallery-header span {
    display: none;
  }

  .gallery-slide {
    flex-basis: 89%;
  }

  .gallery-shot {
    min-height: 430px;
    padding: 14px;
  }

  .shot-media {
    min-height: 155px;
  }

  .gallery-nav-button {
    display: none;
  }

  .gallery-dialog {
    width: 100vw;
    height: 100dvh;

    max-width: none;
    max-height: none;

    border-radius: 0;
  }

  .gallery-dialog-content {
    width: min(86vw, 390px);
  }

  .gallery-dialog-nav {
    width: 38px;
    height: 56px;

    font-size: 27px;
  }

  .gallery-dialog-prev {
    left: 7px;
  }

  .gallery-dialog-next {
    right: 7px;
  }
}

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


/* PUBLIC01C7R1_DIALOG_NAV_VISIBILITY_V1 */

.gallery-dialog-nav:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* PUBLIC01C8_REAL_SCREENSHOT_RENDERING_V1 */

.gallery-shot-image {
  min-height: 500px;
  padding: 0;

  display: grid;
  place-items: center;

  background: #0e0f13;
}

.gallery-shot-image img {
  width: 100%;
  height: 500px;

  display: block;

  object-fit: contain;
  object-position: center top;

  border-radius: 28px;

  background: #0e0f13;
}

.gallery-dialog-content .gallery-shot-image {
  min-height: 0;
  padding: 0;

  background: transparent;
}

.gallery-dialog-content .gallery-shot-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(94vh - 116px);

  margin-inline: auto;

  object-fit: contain;

  border-radius: 20px;
}

@media (max-width: 640px) {
  .gallery-shot-image {
    min-height: 430px;
  }

  .gallery-shot-image img {
    height: 430px;
  }

  .gallery-dialog-content .gallery-shot-image img {
    height: auto;
    max-height: calc(100dvh - 82px);

    border-radius: 14px;
  }
}


/* PUBLIC01C9_MOBILE_COMPOSITION_V1 */

@media (max-width: 640px) {

  /*
   * Header:
   * retain product identity + GitHub + meaningful dynamic-colour control.
   * Support remains available in the footer.
   */
  .site-header {
    padding-block: 7px;
  }

  .header-inner {
    min-height: 48px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand-logo {
    width: 36px;
    height: 36px;

    border-radius: 11px;
  }

  .brand strong {
    font-size: 19px;
  }

  .nav {
    margin-left: auto;

    gap: 10px;

    font-size: 12px;
  }

  /* PUBLIC02: Features and Support hide at this breakpoint (see the end of
     this file); Get started and FAQ stay. */

  .nav a:nth-child(3) {
    font-size: 12px;
  }

  .palette-toggle {
    min-height: 36px;
    padding-inline: 7px;

    gap: 6px;
  }

  /*
   * Keep the palette glyph visible.
   * A naked switch was visually ambiguous on mobile.
   */
  .palette-toggle-icon {
    width: 16px;
    height: 16px;

    display: block;
  }

  .palette-toggle-track {
    width: 32px;
    height: 20px;
  }

  .palette-toggle-thumb {
    width: 14px;
    height: 14px;
  }

  .palette-toggle[aria-pressed="true"]
  .palette-toggle-thumb {
    transform: translateX(12px);
  }


  /*
   * Hero:
   * mobile composition instead of a desktop grid collapsed to one column.
   */
  .hero-section {
    padding: 4px 0 16px;
  }

  .hero-surface {
    display: block;

    min-height: 0;

    padding: 24px 18px 18px;

    border-radius:
      30px
      30px
      30px
      11px;
  }

  .eyebrow {
    margin-bottom: 13px;

    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .hero-copy h1 {
    font-size: 56px;
    line-height: 0.95;
    letter-spacing: -0.055em;
  }

  .hero-title {
    margin: 10px 0 19px;

    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .hero-description {
    margin-bottom: 21px;

    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    align-items: center;

    gap: 9px;
  }

  .hero-actions .button {
    min-height: 44px;
    padding-inline: 17px;

    font-size: 14px;
  }


  /*
   * Gallery:
   * move it immediately into the hero flow and reduce nesting.
   */
  .preview-container {
    width: 100%;
    margin: 26px 0 0;
    padding: 10px;

    border-radius:
      11px
      26px
      26px
      26px;
  }

  .gallery-header {
    margin-bottom: 9px;
    padding-inline: 3px;
  }

  .gallery-header strong {
    font-size: 12px;
  }

  .gallery-icon-button {
    width: 32px;
    height: 32px;
  }

  .gallery-icon-button svg {
    width: 18px;
    height: 18px;
  }

  .gallery-slide {
    flex-basis: 90%;
  }

  /*
   * The screenshot itself provides the screen identity.
   * Hiding captions also prevents the next peek from showing "Co...".
   */
  .gallery-slide figcaption {
    display: none;
  }

  .gallery-shot-image {
    min-height: 390px;
  }

  .gallery-shot-image img {
    height: 390px;

    border-radius: 23px;
  }

  .gallery-open {
    border-radius: 23px;
  }

  .gallery-dots {
    padding-top: 9px;
  }


  /*
   * Beta:
   * same Material surface, substantially less poster-scale.
   */
  .beta-section {
    padding: 0 0 15px;
  }

  .beta-surface {
    padding: 23px 19px;

    border-radius:
      25px
      25px
      9px
      25px;
  }

  .beta-status {
    margin-bottom: 11px;

    font-size: 10px;
  }

  .status-dot {
    width: 8px;
    height: 8px;
  }

  .beta-content {
    gap: 17px;
  }

  .beta-content h2 {
    margin-bottom: 7px;

    font-size: 26px;
    line-height: 1.1;
  }

  .beta-content p {
    font-size: 15px;
    line-height: 1.5;
  }

  .beta-content .button {
    min-height: 44px;
    padding-inline: 18px;

    font-size: 14px;
  }

  .beta-meta {
    margin-top: 19px;

    gap: 7px;
  }

  .beta-meta span {
    padding: 6px 10px;

    font-size: 11px;
  }


  /*
   * Footer:
   * keep everything available, but reduce the final vertical footprint.
   */
  .site-footer {
    padding: 8px 0 28px;
  }

  .footer-inner {
    padding: 15px 8px 0;

    gap: 22px;
  }

  .footer-copy strong {
    font-size: 18px;
  }

  .footer-copy p {
    font-size: 11px;
  }

  .footer-links {
    gap: 12px 18px;

    font-size: 11px;
  }
}


@media (max-width: 380px) {
  .shell {
    width: calc(100% - 22px);
  }

  .hero-surface {
    padding-inline: 16px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .hero-title {
    font-size: 29px;
  }

  .hero-actions .button {
    padding-inline: 14px;
  }

  .gallery-shot-image {
    min-height: 365px;
  }

  .gallery-shot-image img {
    height: 365px;
  }
}


/* PUBLIC01C9R1_MOBILE_MICRO_POLISH_V1 */

@media (max-width: 640px) {

  /* Reduce visual dominance without changing hierarchy. */
  .hero-surface {
    padding:
      21px
      17px
      16px;
  }

  .eyebrow {
    margin-bottom: 11px;
  }

  .hero-copy h1 {
    font-size: 52px;
    line-height: 0.96;
  }

  .hero-title {
    margin:
      9px
      0
      16px;

    font-size: 28px;
    line-height: 1.09;
  }

  .hero-description {
    margin-bottom: 18px;

    font-size: 14px;
    line-height: 1.46;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding-inline: 15px;

    font-size: 13px;
  }


  /* Pull product imagery upward and slightly reduce screenshot scale. */
  .preview-container {
    margin-top: 20px;
    padding: 9px;
  }

  .gallery-header {
    margin-bottom: 8px;
  }

  .gallery-shot-image {
    min-height: 370px;
  }

  .gallery-shot-image img {
    height: 370px;
  }

  .gallery-dots {
    padding-top: 8px;
  }


  /* Beta is supporting information, not a second hero. */
  .beta-section {
    padding-bottom: 12px;
  }

  .beta-surface {
    padding:
      20px
      17px;
  }

  .beta-status {
    margin-bottom: 9px;
  }

  .beta-content {
    gap: 15px;
  }

  .beta-content h2 {
    margin-bottom: 6px;

    font-size: 23px;
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

  .beta-content p {
    font-size: 14px;
    line-height: 1.46;
  }

  .beta-content .button {
    min-height: 42px;
    padding-inline: 16px;

    font-size: 13px;
  }

  .beta-meta {
    margin-top: 16px;
  }

  .beta-meta span {
    padding:
      5px
      9px;

    font-size: 10px;
  }


  /* Final page rhythm. */
  .site-footer {
    padding:
      5px
      0
      22px;
  }

  .footer-inner {
    padding-top: 12px;
    gap: 18px;
  }
}


@media (max-width: 380px) {

  .hero-copy h1 {
    font-size: 49px;
  }

  .hero-title {
    font-size: 27px;
  }

  .gallery-shot-image {
    min-height: 350px;
  }

  .gallery-shot-image img {
    height: 350px;
  }

  .beta-content h2 {
    font-size: 22px;
  }
}


/* PUBLIC01C10_FULLSCREEN_CONTAINMENT_FIX_V1 */

/*
 * The dialog itself is capped at 900px on desktop, while the previous
 * screenshot max-height was derived from viewport height. At browser zoom
 * levels where the CSS viewport is taller than the dialog cap, the image
 * could therefore become taller than the dialog stage and be clipped /
 * scroll inside the fullscreen surface.
 *
 * Bind fullscreen screenshots to the actual dialog stage instead.
 */
.gallery-dialog-content {
  min-height: 0;
  height: calc(100% - 38px);
  max-height: none;

  overflow: hidden;

  display: grid;
  place-items: center;
}

.gallery-dialog-content .gallery-shot {
  min-height: 0;
}

.gallery-dialog-content .gallery-shot-image {
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* PUBLIC01C10R1_FULLSCREEN_REPLACED_ELEMENT_BOX_V1 */
/*
 * Give the replaced element a definite box. object-fit: contain then
 * guarantees the complete source bitmap is painted inside that box.
 */
.gallery-dialog-content .gallery-shot-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: center;
}


/* PUBLIC01C12_PROJECT_INFO_PAGES_V1 */

.info-section {
  padding: 14px 0 28px;
}

.info-surface {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px);

  border-radius:
    var(--shape-xl)
    var(--shape-xl)
    var(--shape-xl)
    18px;

  background: var(--md-sys-color-surface-container-low);
}

.info-header {
  max-width: 720px;
  margin-bottom: 38px;
}

.info-eyebrow {
  margin: 0 0 13px;

  color: var(--md-sys-color-primary);

  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-surface h1 {
  margin: 0;

  font-size: clamp(46px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.info-lede {
  max-width: 680px;
  margin: 18px 0 0;

  color: var(--md-sys-color-on-surface-variant);

  font-size: 18px;
  line-height: 1.55;
}

.info-meta {
  margin-top: 18px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-meta span {
  padding: 7px 11px;

  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-full);

  color: var(--md-sys-color-on-surface-variant);

  font-size: 11px;
  font-weight: 590;
}

.info-content {
  max-width: 740px;

  display: grid;
  gap: 30px;
}

.info-content section {
  display: grid;
  gap: 11px;
}

.info-content section + section {
  padding-top: 28px;

  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.info-content h2 {
  margin: 0;

  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.info-content p,
.info-content ul {
  margin: 0;

  color: var(--md-sys-color-on-surface-variant);

  font-size: 15px;
  line-height: 1.65;
}

.info-content ul {
  padding-left: 21px;
}

.info-content li + li {
  margin-top: 7px;
}

.info-content a:not(.button) {
  color: var(--md-sys-color-primary);
  text-underline-offset: 3px;
}

.info-callout {
  padding: 18px 20px;

  border-radius:
    12px
    var(--shape-md)
    var(--shape-md)
    var(--shape-md);

  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.info-callout strong {
  display: block;
  margin-bottom: 5px;
}

.info-callout p {
  color: inherit;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .info-section {
    padding: 4px 0 18px;
  }

  .info-surface {
    padding: 26px 19px;

    border-radius:
      30px
      30px
      30px
      11px;
  }

  .info-header {
    margin-bottom: 29px;
  }

  .info-surface h1 {
    font-size: 43px;
  }

  .info-lede {
    margin-top: 13px;
    font-size: 15px;
  }

  .info-content {
    gap: 24px;
  }

  .info-content section + section {
    padding-top: 22px;
  }

  .info-content h2 {
    font-size: 21px;
  }

  .info-content p,
  .info-content ul {
    font-size: 14px;
  }

  .info-callout {
    padding: 16px;
  }
}


/* PUBLIC02_SITE_REFRESH_V1 (2026-10-13): features, guide, FAQ and release notes. */

.nav a[aria-current="page"] {
  color: var(--md-sys-color-primary);
}

code {
  padding: 1px 6px;

  border-radius: 6px;

  background: var(--md-sys-color-surface-container-high);

  font-size: 0.92em;
}

/* The signing fingerprint is one long token; let it wrap on a phone. */
code.fingerprint {
  overflow-wrap: anywhere;
}

.showcase-section,
.start-section {
  padding: 0 0 26px;
}

.section-header {
  max-width: 720px;
  padding: clamp(18px, 3vw, 34px) 4px 22px;
}

.section-header h2,
.start-surface h2 {
  margin: 0;

  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-header p:last-child {
  margin: 14px 0 0;

  color: var(--md-sys-color-on-surface-variant);

  font-size: 17px;
}





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

.start-surface {
  display: grid;
  align-content: start;
  gap: 18px;

  padding: clamp(26px, 4vw, 44px);

  border-radius:
    var(--shape-xl)
    var(--shape-xl)
    18px
    var(--shape-xl);

  background: var(--md-sys-color-surface-container);
}

.start-surface .eyebrow {
  margin: 0;
}

.news-surface ul {
  margin: 0;
  padding-left: 20px;

  color: var(--md-sys-color-on-surface-variant);

  font-size: 15px;
  line-height: 1.6;
}

.news-surface li + li {
  margin-top: 8px;
}

.step-list {
  margin: 0;
  padding: 0;

  display: grid;
  gap: 10px;

  list-style: none;
  counter-reset: step;
}

.step-list li {
  position: relative;

  display: grid;
  gap: 2px;

  padding: 14px 16px 14px 60px;

  border-radius: var(--shape-md);

  background: var(--md-sys-color-surface-container-high);

  counter-increment: step;
}

.step-list li::before {
  content: counter(step);

  position: absolute;
  top: 14px;
  left: 16px;

  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  border-radius: var(--shape-full);

  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);

  font-weight: 700;
}

.step-list span {
  color: var(--md-sys-color-on-surface-variant);

  font-size: 15px;
  line-height: 1.55;
}

.faq-list {
  gap: 8px !important;
}

.faq-item {
  border-radius: var(--shape-md);

  background: var(--md-sys-color-surface-container);
}

.faq-item summary {
  padding: 16px 18px;

  cursor: pointer;

  font-size: 17px;
  font-weight: 620;
}

.faq-item[open] summary {
  padding-bottom: 6px;
}

.faq-item p {
  padding: 0 18px 18px;
}

.release-meta {
  font-size: 13px !important;
}

@media (max-width: 900px) {
  .nav a[href^="https://github.com"] {
    display: none;
  }

  .start-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* The footer keeps every link; the header keeps the guide and FAQ. */
  .nav a:first-child,
  .nav a[href="/subshell/support/"] {
    display: none;
  }


  .step-list li {
    padding-left: 54px;
  }
}




.news-surface h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* PUBLIC02_SHOWCASE_CAROUSEL_V1: tabs over one swipeable panel. */

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin: 0 0 14px;
}

.showcase-tabs button {
  min-height: 40px;
  padding: 0 18px;

  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-full);

  background: transparent;
  color: var(--md-sys-color-on-surface-variant);

  font: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

.showcase-tabs button.active {
  border-color: transparent;

  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.showcase-tabs button:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.showcase-track {
  display: flex;
  gap: 12px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;

  border-radius: var(--shape-xl);
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

.showcase-slide {
  flex: 0 0 100%;

  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);

  padding: clamp(22px, 4vw, 40px) clamp(22px, 5vw, 56px);

  border-radius: var(--shape-xl);

  background: var(--md-sys-color-surface-container-low);

  scroll-snap-align: start;
}

.showcase-shot {
  margin: 0;
}

.showcase-shot img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 24px;

  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}

.showcase-copy {
  display: grid;
  gap: 14px;

  max-width: 520px;
}

.showcase-copy .eyebrow {
  margin: 0;
}

.showcase-copy h3 {
  margin: 0;

  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.showcase-copy p {
  margin: 0;

  color: var(--md-sys-color-on-surface-variant);

  font-size: 17px;
  line-height: 1.55;
}

.showcase-copy ul {
  margin: 4px 0 0;
  padding: 0;

  display: grid;
  gap: 8px;

  list-style: none;
}

.showcase-copy li {
  position: relative;

  padding-left: 26px;

  font-size: 15px;
  line-height: 1.5;
}

.showcase-copy li::before {
  content: "";

  position: absolute;
  top: 7px;
  left: 4px;

  width: 9px;
  height: 9px;

  border-radius: var(--shape-full);

  background: var(--md-sys-color-primary);
}

.also-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;

  padding: 18px 4px 8px;
}

.also-strip strong {
  margin-right: 6px;

  font-size: 14px;
}

.also-strip span {
  padding: 7px 13px;

  border-radius: var(--shape-full);

  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);

  font-size: 13px;
  font-weight: 560;
}

@media (max-width: 760px) {
  .showcase-slide {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .showcase-shot {
    width: min(100%, 220px);
  }

  .showcase-slide {
    border-radius: 28px;
  }

  .showcase-tabs button {
    min-height: 36px;
    padding: 0 14px;

    font-size: 13px;
  }
}

/* The feature panel's arrows sit just inside its rounded edge. */
.showcase-shell .gallery-prev {
  left: 10px;
}

.showcase-shell .gallery-next {
  right: 10px;
}

@media (min-width: 761px) {
  .showcase-slide {
    padding-inline: clamp(56px, 6vw, 80px);
  }
}

/* PUBLIC02: the tagline is gone; the description is the line under the name. */
.hero-copy h1 + .hero-description {
  margin-top: 22px;

  font-size: clamp(17px, 1.6vw, 19px);
}
