:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --border: rgba(0, 0, 0, 0.11);
  --hairline: rgba(0, 0, 0, 0.07);
  --accent: #0071e3;
  --accent-strong: #005bb5;
  --danger: #d70015;
  --warn: #b65f00;
  --ok: #248a3d;
  --code-bg: #111114;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
  --soft-shadow: 0 8px 24px rgba(0, 0, 0, 0.055);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fbfbfd 0%, var(--bg) 42%, #ececef 100%);
  font: 14px/1.48 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  min-height: 38px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 650;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.22);
}

button.ghost {
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  box-shadow: none;
}

button.ghost:hover {
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 113, 227, 0.62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

textarea {
  resize: vertical;
  min-height: 78px;
  line-height: 1.45;
}

label span,
legend {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(440px, 100%);
  display: grid;
  gap: 19px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--panel);
  padding: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.mfa-panel {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}

.mfa-panel h2 {
  font-size: 17px;
}

.mfa-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.mfa-setup {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.qr-card {
  display: grid;
  place-items: center;
  width: 184px;
  min-height: 184px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--soft-shadow);
}

.qr-card img {
  display: block;
  width: 160px;
  height: 160px;
}

.qr-card.compact {
  width: 150px;
  min-height: 150px;
}

.qr-card.compact img {
  width: 126px;
  height: 126px;
}

.login-brand {
  display: grid;
  justify-items: start;
  gap: 7px;
  margin-bottom: 4px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, #111114, #404045);
  color: #fff;
  font-size: 18px;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: none;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  font-weight: 720;
  letter-spacing: 0;
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
}

.ok-text {
  color: var(--ok);
}

.hint-text {
  min-height: 20px;
  margin: 0 0 10px;
  color: var(--muted-2);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  border-right: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.72);
  padding: 22px 16px;
  backdrop-filter: blur(22px);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.side-brand h1 {
  font-size: 18px;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.nav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  box-shadow: none;
  text-align: left;
}

.nav-item:hover {
  background: rgba(0, 113, 227, 0.08);
  box-shadow: none;
}

.nav-item.active {
  background: #fff;
  border-color: rgba(0, 113, 227, 0.22);
  color: var(--accent);
  box-shadow: var(--soft-shadow);
}

.nav-item span {
  font-weight: 720;
}

.nav-item small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}

.nav-item:disabled {
  background: transparent;
  color: var(--muted-2);
  box-shadow: none;
}

.side-footer {
  display: grid;
  gap: 10px;
}

#currentUser {
  display: flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 11px;
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.app-frame {
  min-width: 0;
  padding: 24px 28px 30px;
}

.topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: -24px -28px 22px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(22px);
}

.page-heading {
  display: grid;
  gap: 4px;
}

.page-heading h1 {
  font-size: 26px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.password-gate {
  max-width: 1180px;
  margin: 0 auto 18px;
}

.page-stack {
  max-width: 1420px;
  margin: 0 auto;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.operations-board {
  display: grid;
  grid-template-columns: minmax(340px, 400px) minmax(620px, 1fr);
  gap: 22px;
  align-items: start;
}

.operations-column {
  display: grid;
  gap: 16px;
}

.primary-column {
  align-self: stretch;
}

.detail-column {
  grid-template-rows: auto minmax(340px, auto) auto auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(20px);
}

.operational-panel.locked {
  display: none;
}

.deploy-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

@media (min-width: 981px) {
  .deploy-panel {
    position: sticky;
    top: 96px;
    min-height: calc(100vh - 126px);
  }
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title span {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  line-height: 1.35;
}

.check-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.check-row.inline {
  align-self: end;
  min-height: 38px;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
}

.table-like {
  display: grid;
  gap: 8px;
}

.version-row,
.job-item {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--hairline);
  padding: 12px 2px;
  background: transparent;
}

.version-row {
  grid-template-columns: minmax(150px, 1fr) 110px 110px 90px;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.version-row.header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  border: none;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: none;
}

.jobs-panel,
.versions-panel,
.repo-panel,
.settings-panel {
  min-height: 160px;
}

.jobs-panel {
  min-height: 150px;
}

.job-list {
  display: grid;
  gap: 9px;
  max-height: 250px;
  overflow: auto;
  padding-right: 2px;
}

.job-item {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.job-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.job-item.active {
  border-top-color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.job-meta span {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.045);
  padding: 2px 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  width: max-content;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
}

.status.queued {
  background: #e9eef4;
  color: #4d5c69;
}

.status.running {
  background: #fff4db;
  color: var(--warn);
}

.status.succeeded {
  background: #e8f5ee;
  color: var(--ok);
}

.status.failed,
.status.canceled {
  background: #fdecec;
  color: var(--danger);
}

.log-panel {
  min-height: 380px;
}

#logOutput {
  width: 100%;
  min-height: 292px;
  max-height: 520px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  background: var(--code-bg);
  color: #e8e8ed;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.65 "SF Mono", Consolas, "Cascadia Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.repo-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted-2);
}

.repo-info > div {
  min-width: 0;
  border-top: 1px solid var(--hairline);
  padding: 11px 2px;
  overflow-wrap: anywhere;
}

.repo-info strong {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--text);
}

.rollback-board {
  display: grid;
  gap: 16px;
}

.rollback-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, auto) minmax(150px, 0.55fr) minmax(220px, 1fr) minmax(180px, 0.75fr);
  gap: 12px;
  align-items: end;
}

.rollback-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 6px;
  min-height: 42px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  padding: 4px;
}

.rollback-mode-tabs button {
  min-height: 32px;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  white-space: nowrap;
}

.rollback-mode-tabs button:hover,
.rollback-mode-tabs button.active {
  background: #fff;
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rollback-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 16px;
  align-items: start;
}

.rollback-main {
  min-width: 0;
}

.rollback-tab-panel {
  display: none;
  min-height: 520px;
}

.rollback-tab-panel.active {
  display: block;
}

.rollback-tab-panel .settings-divider {
  margin-top: 18px;
}

.rollback-cart-panel {
  min-height: 0;
}

.rollback-batch-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.rollback-batch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  box-shadow: none;
}

.rollback-batch-item:hover,
.rollback-batch-item.active {
  border-color: rgba(0, 113, 227, 0.28);
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.1);
}

.rollback-batch-item strong,
.rollback-batch-item small {
  display: block;
  overflow-wrap: anywhere;
}

.rollback-batch-item small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 500;
}

.rollback-batch-item em {
  align-self: center;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.09);
  color: var(--accent);
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.rollback-chip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rollback-chip-row button {
  min-height: 36px;
  padding: 0 12px;
}

.rollback-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

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

.compact-version-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.rollback-service-card {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  padding: 12px;
}

.rollback-multi-list {
  display: grid;
  gap: 4px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.rollback-target-row {
  display: grid;
  grid-template-columns: 36px minmax(132px, 1fr) minmax(92px, 0.72fr) minmax(190px, 1.18fr) minmax(124px, 0.82fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding: 10px 0;
  color: var(--muted-2);
  font-size: 12px;
}

.rollback-target-row.selected {
  border-radius: 8px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  background: rgba(0, 113, 227, 0.055);
  padding: 10px;
}

.rollback-target-row.header {
  border-top: none;
  padding-top: 0;
  padding-right: 10px;
  padding-left: 10px;
  color: var(--muted);
  font-weight: 700;
}

.rollback-target-row strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.rollback-target-row input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.rollback-target-row select {
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.rollback-empty,
.rollback-cart-empty {
  display: grid;
  gap: 4px;
  min-height: 104px;
  place-content: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted-2);
  text-align: center;
}

.rollback-empty strong,
.rollback-cart-empty strong {
  color: var(--text);
}

.rollback-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rollback-card-head strong,
.rollback-card-head span {
  overflow-wrap: anywhere;
}

.rollback-card-head span {
  color: var(--muted-2);
  font-size: 12px;
}

.rollback-version-row,
.rollback-window-row {
  display: grid;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding: 9px 0;
  color: var(--muted-2);
  font-size: 12px;
}

.rollback-version-row {
  grid-template-columns: minmax(90px, 1fr) minmax(132px, 1.2fr) minmax(70px, 0.7fr) auto;
}

.rollback-window-row {
  grid-template-columns: minmax(150px, 1fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr) minmax(132px, 0.9fr);
}

.rollback-version-row.header,
.rollback-window-row.header {
  border-top: none;
  padding-top: 0;
  color: var(--muted);
  font-weight: 700;
}

.rollback-window-row.skipped {
  grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
  color: var(--warn);
}

.version-token {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.compact-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.rollback-preview-line {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--hairline);
  color: var(--muted-2);
  overflow-wrap: anywhere;
}

.rollback-preview-line strong {
  color: var(--text);
}

.rollback-cart-panel {
  position: sticky;
  top: 18px;
  min-height: 280px;
}

.rollback-cart-body {
  display: grid;
  gap: 12px;
}

.rollback-cart-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  padding: 12px;
}

.rollback-cart-meta span {
  color: var(--muted);
  font-size: 12px;
}

.rollback-cart-meta strong {
  text-align: right;
}

.rollback-cart-items {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 2px;
}

.rollback-cart-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.rollback-cart-item strong,
.rollback-cart-item span,
.rollback-cart-item small {
  overflow-wrap: anywhere;
}

.rollback-cart-item span {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rollback-cart-item small {
  color: var(--muted-2);
}

.rollback-cart-warning {
  border-radius: 8px;
  background: #fff4db;
  color: var(--warn);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.rollback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.compact-actions {
  margin-top: -2px;
}

.settings-panel {
  min-height: 260px;
}

.password-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.password-form .error-text {
  grid-column: 1 / -1;
}

.settings-divider {
  border-top: 1px solid var(--hairline);
  margin: 2px 0 18px;
}

.compact-title {
  margin-bottom: 10px;
}

.mfa-create {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.mfa-new {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  margin-bottom: 14px;
}

.mfa-new-fields {
  display: grid;
  gap: 12px;
}

.mfa-list {
  display: grid;
  gap: 8px;
}

.mfa-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding: 12px 2px;
}

.mfa-item p {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.mfa-item strong {
  margin-right: 8px;
}

@media (max-width: 1180px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    z-index: 12;
    top: 0;
    height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding: 14px 18px;
  }

  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 1fr);
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    min-height: 42px;
  }

  .side-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .app-frame {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 0 18px;
    padding: 0 0 14px;
    background: transparent;
    backdrop-filter: none;
  }

  .operations-board {
    grid-template-columns: 1fr;
  }

  .rollback-toolbar,
  .rollback-shell {
    grid-template-columns: 1fr;
  }

  .rollback-cart-panel {
    position: static;
  }

  .compact-version-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .detail-column {
    grid-template-rows: none;
  }

  .deploy-panel {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .app-frame {
    padding: 14px;
  }

  .sidebar {
    padding: 12px 14px;
  }

  .topbar {
    gap: 12px;
  }

  .brand-mark.small {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .service-list,
  .option-row {
    grid-template-columns: 1fr;
  }

  .version-row {
    grid-template-columns: minmax(128px, 1fr) 72px 72px 76px;
    gap: 8px;
    font-size: 13px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .repo-info {
    grid-template-columns: 1fr;
  }

  .rollback-service-grid,
  .rollback-filter-grid,
  .compact-version-grid,
  .rollback-mode-tabs,
  .rollback-chip-row {
    grid-template-columns: 1fr;
  }

  .rollback-version-row,
  .rollback-window-row,
  .rollback-target-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .rollback-target-row.header {
    display: none;
  }

  .rollback-target-row.selected {
    padding: 12px;
  }

  .rollback-batch-item {
    grid-template-columns: 1fr;
  }

  .rollback-batch-item em {
    width: max-content;
  }

  .rollback-cart-meta {
    grid-template-columns: 1fr;
  }

  .rollback-cart-meta strong {
    text-align: left;
  }

  .mfa-create,
  .mfa-new,
  .password-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .version-row {
    grid-template-columns: 1fr;
  }
}
