/* SilenCrypt composition on top of kBot's compiled coss ui primitives. */
html {
  color-scheme: light;
  scroll-padding-top: 1.25rem;
  --surface-hover: #f2f2f2;
  --surface-selected: #e9e9e9;
  --hover-border: #d7d7d7;
  --primary-hover: #333333;
}

html.dark {
  color-scheme: dark;
  --surface-hover: #222222;
  --surface-selected: #292929;
  --hover-border: #353535;
  --primary-hover: #d7d7d7;
}

.dark .theme-moon, .light .theme-sun { display: none; }
.public-header .logo, .public-footer .logo { white-space: nowrap; }
html:has(.public-page) { scroll-padding-top: 5.65rem; }
.public-header {
  position: sticky;
  top: .8rem;
  z-index: 24;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto;
  min-height: 3.65rem;
  width: min(64rem, calc(100% - 1.5rem));
  margin-inline: auto;
  margin-top: .8rem;
  padding: .5rem .75rem .5rem .9rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: color-mix(in srgb, var(--background) 89%, transparent);
  box-shadow: 0 8px 28px #00000016, inset 0 1px #ffffff0a;
  backdrop-filter: blur(18px);
}
.dark .public-header { box-shadow: 0 10px 30px #0006, inset 0 1px #ffffff08; }
.public-header nav { gap: .12rem; }
.public-header nav a {
  display: block;
  padding: .4rem .8rem;
  border-radius: 2rem;
  white-space: nowrap;
  color: var(--muted-foreground);
}
.public-header nav a:hover, .public-header nav a[aria-current="location"] {
  background: var(--surface-hover);
  color: var(--foreground);
}
.header-controls { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.public-menu { flex-shrink: 0; }
.content-section { position: relative; }
.legacy-anchor { position: absolute; top: 0; left: 0; }

/* Keep the coss button structure and use a tonal hover surface on this site. */
[data-ui^="button_"] {
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

@media (hover: hover) {
  :is([data-ui^="button_outline_"], [data-ui^="button_ghost_"]):not(:disabled):hover {
    background-color: var(--surface-hover);
    border-color: var(--hover-border);
  }

  [data-ui^="button_default_"]:not(:disabled):hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
  }

  .segment-control button[aria-pressed="false"]:hover {
    background-color: var(--surface-hover);
    color: var(--foreground);
  }
}

@media (min-width: 768px) {
  .public-header { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-inline: 1.1rem .8rem; }
  .public-header nav, .public-header.menu-open nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    gap: .12rem; margin: 0; padding: 0; border: 0; background: transparent; animation: none;
  }
  .public-header .public-menu { display: none; }
}

@media (max-width: 767px) {
  .public-header.menu-open nav {
    top: calc(100% + .45rem); padding: .4rem; gap: .15rem;
    border: 1px solid var(--border); border-radius: 1rem;
    background: var(--popover); box-shadow: 0 8px 28px #0005;
    max-height: calc(100dvh - 5.5rem); overflow-y: auto;
  }
  .public-header nav a {
    display: flex; align-items: center; width: 100%; min-height: 2.75rem;
    border-radius: .65rem;
  }
  .public-header :is([data-menu-toggle], [data-theme-toggle]) { min-width: 2.75rem; min-height: 2.75rem; }
}

.public-page .hero {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.5rem);
  padding-block: clamp(3.25rem, 6vw, 6rem) clamp(3.5rem, 5.75vw, 5.75rem);
}

.public-page .hero h1 {
  font-size: clamp(1.95rem, 8.4vw, 3.85rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.hero h1 span {
  display: block;
  color: color-mix(in srgb, var(--foreground) 68%, var(--muted-foreground));
}

.hero > div { max-width: 32rem; }
.public-page .hero p { max-width: 39ch; line-height: 1.65; }

@media (min-width: 960px) {
  .public-page .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }

  .public-page .hero h1 { font-size: clamp(3rem, 5.05vw, 4.65rem); }
}

.demo-frame {
  box-shadow: 0 14px 30px color-mix(in srgb, black 6%, transparent);
}

.dark .demo-frame {
  box-shadow: inset 0 1px #ffffff05, 0 14px 30px #00000018;
}

.demo-toolbar, .demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem;
}

.demo-toolbar .demo-caption { display: none; }
.demo-footer { flex-wrap: wrap; padding: .65rem .75rem; color: var(--muted-foreground); font-size: .78rem; }
.demo-footer > span { display: inline-flex; align-items: center; gap: .5rem; }
.demo-footer .icon { width: .8rem; height: .8rem; }

.segment-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .12rem;
  width: fit-content;
  max-width: 100%;
  padding: .125rem;
  border-radius: .625rem;
  background: var(--muted);
  color: var(--muted-foreground);
}

.segment-control button {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 1.75rem;
  padding: .13rem .48rem;
  border-radius: .5rem;
  font-size: .875rem;
  white-space: nowrap;
}

.segment-control button[aria-pressed="true"] {
  background: var(--background);
  box-shadow: 0 1px 2px #00000012;
  color: var(--foreground);
}

.dark .segment-control button[aria-pressed="true"] {
  background: var(--surface-selected);
  box-shadow: inset 0 1px #ffffff07, 0 1px 2px #00000018;
}

.segment-control .icon { display: none; width: .875rem; height: .875rem; }
.segment-control button { transition: background-color .16s ease, color .16s ease; }
.demo-panel { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; padding: 0; }

.demo-intro, .demo-example {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem;
}

.demo-intro {
  gap: 1.45rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 70%, var(--muted));
}

.demo-status, .demo-example-top { color: var(--muted-foreground); font-size: .875rem; }
.demo-intro h2 { font-size: 1.875rem; line-height: 1.22; letter-spacing: -.035em; }
.demo-checks { display: grid; gap: .72rem; font-size: .9rem; }
.demo-checks li { display: flex; align-items: center; gap: .75rem; }
.demo-checks .icon, .demo-command > span { color: var(--muted-foreground); }

.demo-note {
  margin-top: auto;
  padding: .7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--background) 78%, transparent);
  font-size: .8rem;
}

.demo-example { min-height: 18rem; justify-content: center; }
.demo-example-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1.15rem; }
.demo-card-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; }

.demo-command {
  padding-top: .9rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.demo-command > span { padding-right: .35rem; }
.workflow-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.workflow-card, .command-library { gap: 1rem; min-width: 0; }
.workflow-heading { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.workflow-heading h3, .workflow-heading h4 { margin: 0 0 .25rem; font-size: 1.12rem; line-height: 1.25; }
.workflow-heading p { font-size: .9rem; line-height: 1.55; }
.workflow-heading .square-icon { flex: none; }
.workflow-diagram {
  display: grid;
  grid-template-columns: minmax(0, .85fr) auto minmax(0, 1.15fr);
  align-items: stretch;
  gap: .5rem;
  margin-top: auto;
  padding: .6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--background) 65%, var(--muted));
}
.workflow-node {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: .4rem;
  min-width: 0;
  min-height: 6.5rem;
  padding: .55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
}
.workflow-label { color: var(--muted-foreground); font-size: .75rem; }
.workflow-item { display: flex; align-items: center; gap: .35rem; min-width: 0; font-weight: 650; }
.workflow-item .icon { flex: none; width: .95rem; height: .95rem; }
.workflow-item code { font-size: .82rem; overflow-wrap: anywhere; }
.workflow-node ul { margin-left: .38rem; padding-left: .57rem; border-left: 1px solid var(--border); }
.workflow-node ul, .workflow-node p { color: var(--muted-foreground); font: .74rem/1.55 var(--font-mono); overflow-wrap: anywhere; }
.workflow-output { border-color: var(--hover-border); }
.workflow-arrow { display: grid; place-items: center; color: var(--muted-foreground); }
.workflow-arrow .icon { width: .95rem; height: .95rem; }
.workflow-command { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4rem; }
.workflow-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.workflow-command code > span { color: var(--foreground); font-weight: 650; }
.command-library { margin-top: 1rem; }
.command-library > h3 { font-size: 1.2rem; }
.command-recipe { display: grid; gap: .65rem; min-width: 0; padding-top: .85rem; border-top: 1px solid var(--border); }
.command-recipe h4 { font-size: 1rem; }
.section-link, .release-status { margin-top: 1rem; }
.install-card { gap: 1rem; min-width: 0; }
.install-content { display: grid; gap: .65rem; min-width: 0; }
.install-content > p { font-size: .9rem; }
.install-content .hint { font-size: .8rem; }

.code-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6rem;
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--code);
  color: var(--code-foreground);
}

.code-block pre { max-width: 100%; min-width: 0; overflow: auto; font-size: .8rem; line-height: 1.7; }
.release-column { display: grid; gap: 1rem; min-width: 0; }
.release-row { display: grid; gap: .65rem; min-width: 0; padding: 1rem; }
.release-row-top { display: flex; justify-content: space-between; align-items: center; gap: .85rem; min-width: 0; }
.release-row + .release-row { border-top: 1px solid var(--border); }
.release-row h3 { font-size: 1rem; }
.release-row > div { min-width: 0; }
.release-summary { display: flex; align-items: flex-start; gap: .7rem; }
.release-summary .square-icon { margin-top: .1rem; }
.release-metadata, .release-tools { display: flex; flex-wrap: wrap; gap: .35rem .8rem; color: var(--muted-foreground); font-size: .8rem; }
.release-metadata a:hover, .release-tools a:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: .18em; }
.release-tools { padding: .85rem 1rem; border-top: 1px solid var(--border); }
.release-digest { display: grid; gap: .2rem; color: var(--muted-foreground); font-size: .75rem; }
.digest-value { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .5rem; padding: .2rem .35rem .2rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); }
.digest-value code { min-width: 0; color: var(--foreground); font-size: .75rem; overflow-wrap: anywhere; }
.digest-value button { flex-shrink: 0; }
.signing-card { display: grid; gap: .7rem; }
.signing-card h3 { color: var(--foreground); font-size: 1rem; }
.signing-card p { font-size: .84rem; overflow-wrap: anywhere; }
.release-notes { display: grid; gap: .6rem; }
.release-notes summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 600; list-style: none; cursor: pointer; }
.release-notes summary::-webkit-details-marker { display: none; }
.release-notes details[open] summary .icon { transform: rotate(180deg); }
.release-notes-copy { margin-top: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ssh-guide { display: grid; gap: 1rem; margin-top: 1rem; min-width: 0; }
.ssh-guide h3 { margin-bottom: .35rem; }
.ssh-commands { display: grid; gap: .45rem; min-width: 0; }
.empty { padding: 1rem; }
.releases-section { row-gap: 1.2rem; }
.update-help { display: block; grid-column: 1 / -1; overflow: hidden; }
.update-summary {
  list-style: none;
  transition: background-color .16s ease;
}
.update-summary-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: 1rem;
}
.update-summary::-webkit-details-marker { display: none; }
.update-summary:focus-visible { outline: 2px solid var(--ring); outline-offset: -3px; }
.update-summary-copy { display: grid; min-width: 0; gap: .12rem; }
.update-summary-copy strong { font-size: 1rem; line-height: 1.35; }
.update-summary-copy > span { color: var(--muted-foreground); font-size: .86rem; line-height: 1.45; }
.update-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.05rem 1rem 1.2rem;
  border-top: 1px solid var(--border);
  list-style: none;
}
.update-steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; }
.update-steps > li + li { padding-top: 1rem; border-top: 1px solid var(--border); }
.update-step-number {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: .5rem;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.update-step, .update-method { display: grid; gap: .58rem; min-width: 0; }
.update-step h3 { font-size: 1rem; line-height: 1.45; }
.update-step p { font-size: .88rem; line-height: 1.56; }
.update-step > a { justify-self: start; }
.inline-link { color: var(--foreground); text-decoration: underline; text-underline-offset: .18em; }
.update-terminal {
  display: block;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--code) 94%, var(--background));
}
.update-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .22rem .36rem .22rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: .82rem;
}
.update-terminal pre {
  padding: .72rem .75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .84rem;
  line-height: 1.65;
}
.update-terminal code { color: var(--code-foreground); }
.update-terminal code > span { display: inline-block; max-width: 100%; }
.public-page .disclosure-icon { transition: transform .18s ease; }
.disclosure-icon { flex-shrink: 0; color: var(--muted-foreground); }
details[open] > summary .disclosure-icon { transform: rotate(180deg); }
.faq-list summary { gap: .65rem; align-items: center; font-weight: 500; }

@media (hover: hover) {
  .update-summary:hover { background: var(--surface-hover); }
  .faq-list summary:hover { color: var(--muted-foreground); }
  .workflow-card:hover, .release-row:hover { border-color: var(--hover-border); }
  .release-row:hover { background: color-mix(in srgb, var(--surface-hover) 55%, transparent); }
}

.feedback-toast {
  position: fixed;
  z-index: 30;
  bottom: 1rem;
  right: 1rem;
  max-width: calc(100% - 2rem);
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: 0 5px 16px #0000001c;
  font-size: .875rem;
}

.auth-header-actions, .panel-topbar-group { display: flex; align-items: center; gap: .65rem; }
.release-login { min-height: 72vh; }
.auth-story .auth-note { margin-top: 1.25rem; }
.auth-card .form-stack { gap: 1rem; }
.auth-card .form-stack > button { width: 100%; }
.auth-card [data-login-status]:empty { display: none; }
.auth-card [data-login-status]:not(:empty) { margin: 1rem 0 0; }
.release-admin .panel-main { transition: none; }
.release-admin .panel-topbar { gap: .65rem; }
.release-admin :is(#publish, #history, #changelog) { scroll-margin-top: 4rem; }
.panel-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .875rem; }
.crumb-separator { color: var(--muted-foreground); }
.release-admin .page-heading { margin-bottom: 1.75rem; }
.release-admin .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
.release-admin-card { min-width: 0; }
.release-admin-card .card-heading > .icon { color: var(--muted-foreground); }
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: .85rem .75rem;
  border-right: 1px solid var(--sidebar-border);
  background: var(--sidebar);
  color: var(--sidebar-foreground);
}

.admin-sidebar .logo { padding: .35rem .45rem .55rem; }
.admin-sidebar-heading, .admin-nav a { display: flex; align-items: center; gap: .65rem; }
.admin-sidebar-heading { padding: .45rem .65rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.admin-sidebar-heading strong, .admin-sidebar-heading small { display: block; }
.admin-sidebar-heading strong { color: var(--foreground); font-size: .9rem; }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav small { padding-inline: .5rem; }
.admin-nav a { min-height: 2.25rem; padding: .35rem .5rem; border-radius: var(--radius-lg); font-size: .875rem; }
.admin-nav a:hover, .admin-nav a[aria-current="page"] { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.admin-sidebar .admin-sidebar-bottom { margin-top: auto; border-top: 1px solid var(--sidebar-border); padding-top: .65rem; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list > li { display: grid; gap: .45rem; padding: .85rem 0; overflow-wrap: anywhere; }
.admin-list > li + li { border-top: 1px solid var(--border); }
.admin-list strong, .admin-list small { display: block; }
.admin-list code { color: var(--muted-foreground); font-size: .75rem; }
.admin-release-title, .release-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.release-state[data-state="published"] { color: var(--success-foreground, var(--foreground)); }
.release-state[data-state="withdrawn"] { color: var(--muted-foreground); }
.release-state[data-state="deleted"], .delete-button { color: var(--destructive-foreground); }
.release-admin select, .release-admin textarea {
  display: block; width: 100%; min-height: 2.5rem; padding: .55rem .7rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--background); color: var(--foreground); font: inherit;
}
.release-admin textarea { resize: vertical; }
.delete-dialog { width: min(27rem, calc(100% - 2rem)); margin: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: var(--foreground); box-shadow: 0 18px 50px #0004; }
.delete-dialog::backdrop { background: #0008; }
.delete-dialog h2 { font-size: 1.2rem; }
.delete-dialog p { margin: .6rem 0 1rem; }
.delete-dialog .release-actions { justify-content: flex-end; }
.upload-field { min-width: 0; }
.upload-field .upload-box { min-height: 2.75rem; flex-direction: row; justify-content: flex-start; padding: .65rem .8rem; }
.upload-field .upload-box:hover { background: var(--surface-hover); }
.upload-field .upload-box:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
.upload-field .upload-box input { width: 100%; height: 100%; }
.upload-field [data-upload-name] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.release-admin :is([data-status], [data-manage-status], [data-notes-status]):empty { display: none; }
.release-admin .status-tip { margin-top: 1rem; }
[data-error="true"] { color: var(--destructive-foreground); }

/* The inherited entrance animation is replaced by shorter, opt-in motion. */
.hero, .hero-demo, .auth-card, .panel-content { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .public-header nav a { transition: background-color .16s ease, color .16s ease; }
  .admin-nav a { transition: background-color .16s ease, color .16s ease; }
  .hero > h1, .hero > div, .hero-demo, .auth-card, .panel-content,
  [data-appear][data-appeared] {
    animation: surface-in .38s cubic-bezier(.2,.7,.3,1) both;
  }
  .hero > div { animation-delay: 45ms; }
  .hero-demo { animation-delay: 75ms; }
  .workflow-card:nth-child(2) { animation-delay: 45ms; }
  .workflow-card[data-appeared] .workflow-output { animation: detail-in .3s .14s both; }
  .install-content:not([hidden]), .update-method:not([hidden]), details[open] > :not(summary),
  .feedback-toast:not([hidden]), .public-header.menu-open nav {
    animation: detail-in .24s cubic-bezier(.2,.7,.3,1) both;
  }
  .workflow-card, .release-row, .upload-box {
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-ui^="button_"], .segment-control button, .update-summary, .public-page .disclosure-icon { transition: none; }
}

@keyframes surface-in {
  from { opacity: .65; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes detail-in {
  from { opacity: .6; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .release-admin .panel-main { margin-left: 0; }
  .release-admin .panel-topbar { padding-inline: .75rem; }
  .admin-sidebar {
    position: fixed;
    inset: 4rem auto 0 0;
    z-index: 25;
    width: min(16rem, calc(100% - 2rem));
    overflow-y: auto;
    box-shadow: 1rem 0 3rem #00000045;
  }
  .admin-sidebar:not([data-open]) { display: none; }
  .crumb-root, .crumb-separator { display: none; }
}

@media (min-width: 640px) {
  .demo-toolbar .demo-caption { display: inline-flex; }
  .segment-control .icon { display: inline-block; }
  .demo-intro, .demo-example { padding: 2.25rem; }
}

@media (min-width: 768px) {
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-recipe { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 1rem; }
  .ssh-guide { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; }
  .demo-panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .demo-intro { border-right: 1px solid var(--border); border-bottom: 0; }
  .demo-example { min-height: 24rem; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 25; width: 16rem; overflow-y: auto; }
  .admin-menu-toggle { display: none !important; }
}

@media (min-width: 768px) and (max-width: 959px) {
  .install-section, .releases-section { grid-template-columns: minmax(0, 1fr); }
  .install-section > div:first-of-type, .releases-section > div:first-of-type { max-width: 35rem; }
}

@media (min-width: 1100px) {
  .release-admin .dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .release-admin #history { grid-row: span 2; }
  .update-steps { grid-template-columns: minmax(0, .84fr) minmax(0, 1fr) minmax(0, 1.16fr); gap: 1.15rem; }
  .update-steps > li { align-items: start; }
  .update-steps > li + li { padding: 0 0 0 1.15rem; border-top: 0; border-left: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .demo-toolbar .segment-control button { padding-inline: .34rem; font-size: .76rem; }
  .update-summary-row { padding: .8rem; gap: .6rem; }
  .update-steps { padding: .85rem .8rem; }
  .update-steps > li { gap: .55rem; }
}

@media (max-width: 420px) {
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .hero-actions a { width: 100%; min-height: 2.75rem; }
  .demo-intro, .demo-example { padding: 1rem; }
  .section-head { gap: .7rem; }
  .workflow-diagram { grid-template-columns: minmax(0, 1fr); }
  .workflow-node { min-height: 0; }
  .workflow-arrow .icon { transform: rotate(90deg); }
}

@media (max-width: 365px) {
  .public-header .logo { gap: .38rem; font-size: 1.15rem; }
  .public-header .logo-mark { width: 1.65rem; height: 1.65rem; }
  .segment-control button { padding-inline: .32rem; font-size: .8rem; }
  .release-summary .square-icon { display: none; }
  .release-row-top { gap: .5rem; }
}
