:root {
  color-scheme: light;
  --paper: #ecebe6;
  --ink: #202445;
  --graphite: #3f425d;
  --stone: #5d6075;
  --silt: #868896;
  --mist: #d4d3d3;
  --accent: #ec5b30;
  --safe: #2d6650;
  --caution: #8a5b17;
  --danger: #a23b33;
  --accent-text: #ad3f22;
  --focus-ring: #c14925;
  --pending-text: #5d6075;
  --sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --frame-pad: clamp(1.5rem, 4.5vw, 5.5rem);
  --grid-gap: clamp(0.65rem, 1.2vw, 1.25rem);
  font-family: var(--mono);
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

button,
input,
select {
  font-family: var(--sans);
  font-size: inherit;
}

button,
select,
input[type="checkbox"],
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
.button-primary,
.button-quiet {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.7rem 0.95rem;
  color: var(--ink);
  background: var(--paper);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

button:hover,
summary:hover {
  color: var(--paper);
  background: var(--graphite);
  border-color: var(--graphite);
}

a:hover {
  color: var(--accent-text);
}

button:disabled,
input:disabled,
select:disabled {
  color: var(--silt);
  background: var(--mist);
  border-color: var(--silt);
  cursor: not-allowed;
  opacity: 0.72;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(4.25rem, 6.2vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 500;
}

h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}

h3,
h4 {
  letter-spacing: -0.02em;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--stone);
  font-size: 0.7rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--focus-ring);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.round6-logo {
  display: block;
  color: inherit;
  line-height: 0;
}

.round6-logo svg {
  display: block;
  width: clamp(8rem, 7.8vw, 10rem);
  max-width: 100%;
  height: auto;
}

.login-page {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: center;
  min-height: 100vh;
  padding: clamp(1rem, 4.5vw, 4.5rem);
  overflow-x: hidden;
  color: var(--paper);
  background-color: var(--ink);
}

.login-card {
  grid-column: 5 / 13;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: var(--grid-gap);
  width: min(100%, 720px);
  min-height: min(660px, calc(100vh - 9rem));
  padding: clamp(2rem, 4.2vw, 4.5rem);
  border: 1px solid var(--mist);
  border-top: 5px solid var(--accent);
  color: var(--ink);
  background: var(--paper);
}

.login-card h1 {
  max-width: 7ch;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 6vw, 6rem);
  line-height: 0.9;
}

.login-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mist);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-kicker,
.login-reference {
  margin: 0;
}

.login-kicker span {
  margin-right: 0.65rem;
  color: var(--accent-text);
}

.login-reference {
  color: var(--stone);
}

.login-copy {
  grid-column: 1 / -1;
  align-self: end;
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(2.5rem, 6vh, 4.25rem);
}

.brand-lockup {
  position: fixed;
  top: clamp(1.5rem, 4.5vw, 4.5rem);
  left: clamp(1.5rem, 4.5vw, 4.5rem);
  display: grid;
  gap: 1rem;
  margin: 0;
  color: var(--paper);
}

.brand-lockup .eyebrow {
  margin: 0;
  color: var(--mist);
}

.login-intro,
.summary,
.field-hint {
  color: var(--stone);
}

.login-intro {
  max-width: 36ch;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.45;
}

.login-card form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 0.38fr);
  gap: 0.7rem var(--grid-gap);
  width: 100%;
  max-width: none;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ink);
}

.login-card form label,
.login-card form .error {
  grid-column: 1 / -1;
}

label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--stone);
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 120ms ease, background-color 120ms ease;
}

input:hover,
select:hover {
  border-color: var(--ink);
}

.login-card input {
  border-color: var(--ink);
}

.login-card button {
  width: 100%;
  margin-top: 0;
  color: var(--paper);
  background: var(--ink);
}

.login-card button:hover {
  color: var(--paper);
  background: var(--graphite);
}

.error,
.warning {
  margin: 0.65rem 0 0;
  color: var(--danger);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

.site-header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: center;
  min-height: 104px;
  padding: 2.1rem var(--frame-pad) 1.5rem;
  border-bottom: 1px solid var(--mist);
  background: var(--paper);
}

.wordmark {
  grid-column: 1 / 11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
  min-width: 0;
  min-height: 42px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark small {
  margin-left: auto;
  padding-top: 0.45rem;
  color: var(--stone);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#logout-button {
  grid-column: 11 / 13;
  justify-self: end;
  min-width: 7rem;
}

.dashboard-main {
  width: 100%;
  padding: 0 var(--frame-pad) 8rem;
}

.page-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: end;
  padding: clamp(3.75rem, 5.5vw, 6.5rem) 0 clamp(2.75rem, 4vw, 4.5rem);
}

.page-heading > div {
  grid-column: 1 / 9;
}

.page-heading .eyebrow {
  color: var(--accent-text);
}

.page-heading .summary {
  max-width: 52ch;
  margin: 1.4rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.page-heading > button {
  grid-column: 10 / 13;
  justify-self: end;
  width: min(100%, 240px);
  min-width: 0;
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover {
  color: var(--paper);
  background: var(--graphite);
  border-color: var(--graphite);
}

.button-danger {
  color: var(--paper);
  background: var(--danger);
  border-color: var(--danger);
}

.button-danger:hover {
  color: var(--paper);
  background: #7d2b27;
  border-color: #7d2b27;
}

.button-quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--silt);
}

.control-rail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: end;
  gap: clamp(1rem, 2vw, 2.25rem);
  padding: 1.35rem 0 1.55rem;
  color: var(--ink);
  background: transparent;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.control-rail .search-field {
  grid-column: 1 / 5;
}

.control-rail .field:nth-child(2) {
  grid-column: 5 / 8;
}

.control-rail .field:nth-child(3) {
  grid-column: 8 / 10;
}

.control-rail .field:nth-child(4) {
  grid-column: 10 / 13;
}

.field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.field label,
.control-rail label {
  font-size: 0.66rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.control-rail label {
  color: var(--stone);
}

.control-rail input,
.control-rail select {
  border-color: var(--stone);
}

.inventory-shell {
  min-height: 240px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.state-panel {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 320px;
  padding: 2rem;
  text-align: center;
}

.state-panel p:last-child {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--stone);
}

.state-error {
  border-top: 4px solid var(--danger);
}

.loading-mark {
  position: relative;
  width: 34px;
  height: 12px;
  margin-bottom: 1.4rem;
  border-right: 7px solid var(--mist);
  border-left: 7px solid var(--accent);
  animation: loading-pulse 900ms steps(2, end) infinite alternate;
}

.loading-mark::before {
  position: absolute;
  inset: 0 auto 0 7px;
  width: 7px;
  background: var(--silt);
  content: "";
}

@keyframes loading-pulse {
  to { opacity: 0.35; }
}

.table-wrap {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  padding: 1rem 0.85rem;
  border-bottom: 1px solid var(--mist);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--stone);
  background: var(--paper);
  font-size: 0.64rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--mono);
}

td {
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 0.74rem;
}

tbody td {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgb(212 211 211 / 38%);
}

tbody tr.is-pending {
  background: rgb(212 211 211 / 42%);
}

tbody tr.is-pending td:first-child {
  border-left: 4px solid var(--ink);
}

.deck-title {
  display: grid;
  min-width: 150px;
  gap: 0.3rem;
}

.deck-title strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
}

.invalid-note {
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.capitalize,
.status {
  text-transform: capitalize;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--graphite);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.status::before {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 1px solid currentcolor;
  content: "";
}

.status-published {
  color: var(--safe);
}

.status-published::before {
  background: currentcolor;
}

.status-unpublished {
  color: var(--caution);
}

.status-unpublished::before {
  transform: rotate(45deg);
}

.status-archived {
  color: var(--stone);
}

.status-archived::before {
  width: 10px;
  height: 2px;
  border: 0;
  background: currentcolor;
}

.public-link a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-weight: 600;
}

.actions-cell {
  position: relative;
  width: 1%;
}

.action-menu {
  position: relative;
}

.action-menu summary {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.62rem 0.75rem;
  color: var(--ink);
  background: transparent;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 600;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu summary::after {
  margin-left: 0.6rem;
  color: var(--accent);
  content: "+";
}

.action-menu summary:hover {
  color: var(--paper);
  background: var(--graphite);
  border-color: var(--graphite);
}

.action-menu[open] summary::after {
  content: "−";
}

.action-menu-popover {
  position: absolute;
  z-index: 30;
  top: 100%;
  right: 0;
  display: grid;
  width: 205px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.action-menu-popover button,
.action-menu-popover a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--mist);
  border-radius: 0;
  padding: 0.62rem 0.75rem;
  color: var(--ink);
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-weight: 500;
}

.action-menu-popover button:hover,
.action-menu-popover a:hover {
  color: var(--paper);
  background: var(--graphite);
}

.action-menu-popover .danger-action {
  color: var(--danger);
}

.action-menu-popover .danger-action:hover {
  color: var(--paper);
  background: var(--danger);
}

.action-menu-popover .danger-action:disabled {
  color: var(--silt);
  background: var(--mist);
}

.action-menu-popover .danger-action:disabled:hover {
  color: var(--silt);
  background: var(--mist);
}

.menu-divider {
  display: block;
  height: 4px;
  background: var(--mist);
}

.deployment-panel {
  position: fixed;
  z-index: 20;
  right: clamp(0.75rem, 3vw, 2rem);
  bottom: clamp(0.75rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  gap: 1rem;
  align-items: center;
  width: min(calc(100% - 1.5rem), 800px);
  padding: 1rem;
  border: 1px solid var(--ink);
  border-top: 5px solid var(--accent);
  background: var(--paper);
}

.deployment-panel p {
  margin-bottom: 0;
}

.deployment-stages {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deployment-stages li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
  color: var(--pending-text);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.deployment-stages li:not(:last-child)::after {
  width: 26px;
  height: 1px;
  margin: 0 0.5rem;
  background: var(--mist);
  content: "";
}

.stage-dot {
  width: 9px;
  height: 9px;
  border: 1px solid currentcolor;
}

.stage-complete {
  color: var(--safe) !important;
}

.stage-complete .stage-dot {
  background: currentcolor;
}

.stage-current {
  color: var(--accent-text) !important;
  font-weight: 600;
}

.stage-current .stage-dot {
  transform: rotate(45deg);
}

.stage-failed {
  color: var(--danger) !important;
}

.stage-failed .stage-dot {
  border-width: 2px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-color: var(--silt);
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
}

dialog {
  width: min(calc(100% - 1.5rem), 640px);
  max-height: calc(100vh - 1.5rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--ink);
  border-top: 5px solid var(--accent);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
}

dialog::backdrop {
  background: rgb(32 36 69 / 78%);
}

.dialog-content {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.2rem, 5vw, 2.75rem);
}

.dialog-content > p {
  margin-bottom: 0;
  color: var(--graphite);
}

.dialog-heading {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
}

.dialog-heading h2,
.dialog-heading p {
  margin-bottom: 0;
}

.dialog-heading .eyebrow {
  color: var(--accent-text);
}

.transition-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--mist);
  background: transparent;
}

.transition-card div {
  display: grid;
  gap: 0.25rem;
}

.transition-card div:last-child {
  text-align: right;
}

.transition-card span:not(.transition-arrow) {
  color: var(--stone);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.transition-card strong {
  font-size: 1rem;
  font-weight: 600;
}

.transition-arrow {
  color: var(--accent);
  font-size: 1.45rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--mist);
}

#new-upload-fields {
  display: grid;
  gap: 1rem;
}

.field-hint {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

input[type="file"] {
  padding: 0.42rem;
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 0.75rem;
  border: 0;
  border-right: 1px solid var(--silt);
  border-radius: 0;
  padding: 0 0.85rem 0 0.45rem;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: var(--ink);
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: center;
  min-height: 42px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.check-row input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

.validation-summary {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--caution);
  background: #f2eadc;
}

.validation-summary h3,
.validation-summary h4 {
  margin-bottom: 0.4rem;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.warning-check {
  padding-top: 0.8rem;
  border-top: 1px solid var(--caution);
}

.preview-dialog {
  width: calc(100% - 1.5rem);
  max-width: 1500px;
  height: calc(100vh - 1.5rem);
  max-height: none;
}

.preview-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.preview-shell header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.preview-shell header .eyebrow {
  color: var(--mist);
}

.preview-shell h2,
.preview-shell p {
  margin-bottom: 0;
}

.preview-shell .icon-button {
  color: var(--paper);
  border-color: var(--silt);
}

.preview-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.preview-status {
  display: grid;
  place-items: center;
  padding: 2rem;
}

button:disabled,
button:disabled:hover {
  color: var(--silt);
  background: var(--mist);
  border-color: var(--silt);
}

@media (max-width: 1080px) {
  .control-rail .search-field {
    grid-column: 1 / 5;
  }

  .control-rail .field:nth-child(2) {
    grid-column: 5 / 8;
  }

  .control-rail .field:nth-child(3) {
    grid-column: 8 / 10;
  }

  .control-rail .field:nth-child(4) {
    grid-column: 10 / 13;
  }

  th:nth-child(2),
  td:nth-child(2),
  th:nth-child(7),
  td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --frame-pad: 0.75rem;
  }

  button,
  .button-primary,
  .button-quiet,
  .icon-button,
  .action-menu summary,
  .action-menu-popover button,
  .action-menu-popover a,
  .public-link a,
  .check-row {
    min-height: 44px;
  }

  .login-page {
    display: block;
    padding: 0.75rem;
  }

  .login-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    width: 100%;
    min-height: calc(100vh - 1.5rem);
    padding: clamp(1.25rem, 7vw, 3rem);
  }

  .brand-lockup {
    position: static;
    margin-bottom: clamp(2rem, 10vw, 4rem);
    color: var(--ink);
  }

  .brand-lockup .eyebrow {
    color: var(--stone);
  }

  .login-header,
  .login-copy,
  .login-card form {
    grid-column: 1;
    max-width: none;
  }

  .login-copy {
    align-self: center;
    padding: clamp(3rem, 14vw, 6rem) 0 clamp(2.5rem, 10vw, 4rem);
  }

  .login-card h1 {
    font-size: clamp(3.75rem, 19vw, 5.25rem);
  }

  .login-card form {
    grid-template-columns: 1fr;
  }

  .login-card form label,
  .login-card form .error {
    grid-column: 1;
  }

  .public-link a {
    display: inline-flex;
    align-items: center;
  }

  .check-row {
    align-items: center;
    padding-block: 0.65rem;
  }

  .site-header {
    min-height: 72px;
    padding: 0.8rem var(--frame-pad);
  }

  .wordmark {
    grid-column: 1 / 10;
  }

  .wordmark .round6-logo svg {
    width: clamp(7.5rem, 35vw, 10rem);
  }

  #logout-button {
    grid-column: 10 / 13;
    min-width: 0;
  }

  .page-heading {
    align-items: start;
  }

  .page-heading > div {
    grid-column: 1 / 9;
  }

  .page-heading > button {
    grid-column: 9 / 13;
  }

  .control-rail .search-field {
    grid-column: 1 / 13;
  }

  .control-rail .field:nth-child(2) {
    grid-column: 1 / 5;
  }

  .control-rail .field:nth-child(3) {
    grid-column: 5 / 9;
  }

  .control-rail .field:nth-child(4) {
    grid-column: 9 / 13;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--ink);
    border-top: 4px solid var(--ink);
    background: var(--paper);
  }

  tbody tr:hover {
    background: var(--paper);
  }

  td,
  th:nth-child(2),
  td:nth-child(2),
  th:nth-child(7),
  td:nth-child(7) {
    display: grid;
  }

  td {
    grid-template-columns: minmax(80px, 0.42fr) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-height: 46px;
    border-bottom: 1px solid var(--mist);
    overflow-wrap: anywhere;
  }

  td::before {
    color: var(--stone);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  td:first-child,
  .actions-cell {
    grid-column: 1 / -1;
  }

  td:first-child {
    padding-top: 1rem;
  }

  .actions-cell {
    width: auto;
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .action-menu,
  .action-menu summary {
    width: 100%;
  }

  .action-menu summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .action-menu-popover {
    position: relative;
    width: 100%;
    margin-top: 0;
    border-top: 0;
  }

  .deployment-panel {
    grid-template-columns: 1fr auto;
  }

  .deployment-stages,
  #retry-deployment {
    grid-column: 1 / -1;
  }

  .deployment-stages {
    justify-content: space-between;
  }
}

@media (max-width: 440px) {
  .wordmark {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .wordmark small {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .page-heading {
    display: grid;
    gap: 1.5rem;
  }

  .page-heading > div,
  .page-heading > button {
    grid-column: 1 / 13;
  }

  .page-heading > button {
    width: 100%;
  }

  .control-rail .field,
  .control-rail .search-field,
  .control-rail .field:nth-child(2),
  .control-rail .field:nth-child(3),
  .control-rail .field:nth-child(4),
  tbody tr,
  td,
  td:first-child,
  .actions-cell {
    grid-column: 1 / 13;
  }

  .control-rail,
  tbody tr {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .transition-card {
    gap: 0.55rem;
    padding: 0.8rem;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog-actions button {
    width: 100%;
  }

  .deployment-stages li:not(:last-child)::after {
    width: 12px;
    margin: 0 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
