:root {
  --fn-brand-primary: #3370ff;
  --fn-brand-hover: #245eea;
  --fn-shell: #eef3ff;
  --fn-surface: #ffffff;
  --fn-surface-soft: #f7f9fd;
  --fn-text-strong: #172033;
  --fn-text: #526079;
  --fn-text-muted: #758096;
  --fn-line: #dfe6f2;
  --fn-line-soft: #e9edf4;
  --fn-success: #067647;
  --fn-success-soft: #e9f8f0;
  --fn-warning: #b54708;
  --fn-warning-soft: #fff7e8;
  --fn-danger: #d92d20;
  --fn-danger-soft: #fff0ef;
  --fn-card-shadow: 0 2px 9px rgba(31, 54, 94, 0.05);
  color: var(--fn-text-strong);
  background: var(--fn-shell);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--fn-shell);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--fn-shell);
}

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

button,
.button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(51, 112, 255, 0.34);
  outline-offset: 2px;
}

.hidden,
.page {
  display: none !important;
}

.page.active {
  display: block !important;
}

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

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  align-items: center;
  height: 56px;
  padding: 0 20px 0 0;
  background: var(--fn-shell);
}

.brand {
  display: flex;
  align-items: center;
  width: 152px;
  height: 56px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}

.brand img {
  display: block;
  width: 136px;
  height: auto;
  object-fit: contain;
}

.console-name {
  padding-left: 12px;
  color: var(--fn-text);
  font-size: 14px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--fn-success);
  background: var(--fn-success-soft);
  font-size: 12px;
  font-weight: 600;
}

.service-pill i,
.service-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18a660;
  box-shadow: 0 0 0 3px rgba(24, 166, 96, 0.12);
}

.service-pill.danger {
  color: var(--fn-danger);
  background: var(--fn-danger-soft);
}

.service-pill.danger i,
.service-dot.offline {
  background: var(--fn-danger);
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.topbar-link,
.text-button {
  padding: 4px 2px;
  border: 0;
  color: var(--fn-text);
  background: transparent;
  text-decoration: none;
}

.topbar-link:hover,
.text-button:hover {
  color: var(--fn-brand-primary);
}

.operator-name {
  max-width: 150px;
  overflow: hidden;
  color: var(--fn-text-strong);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 12px;
  padding-right: 20px;
}

.sidebar {
  position: sticky;
  top: 56px;
  align-self: start;
  min-height: calc(100vh - 56px);
  padding: 14px 8px 24px;
  background: var(--fn-shell);
}

.sidebar-group {
  margin: 0 10px 8px;
  color: var(--fn-text-muted);
  font-size: 12px;
  line-height: 20px;
}

.sidebar-group.second {
  margin-top: 18px;
}

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  gap: 9px;
  margin: 0 0 4px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--fn-text);
  background: transparent;
  text-align: left;
}

.nav-item svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  fill: currentColor;
  opacity: 0.82;
}

.nav-item:hover {
  color: var(--fn-brand-hover);
  background: rgba(51, 112, 255, 0.06);
}

.nav-item.active {
  color: var(--fn-brand-hover);
  background: #e3ebff;
  font-weight: 600;
}

.main-content {
  width: 100%;
  min-width: 0;
  padding: 14px 0 30px;
}

.card {
  border: 1px solid var(--fn-line);
  border-radius: 8px;
  background: var(--fn-surface);
  box-shadow: var(--fn-card-shadow);
}

.page-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}

.page-header > div:first-child {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--fn-brand-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--fn-text-strong);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.22;
}

.page-header p:last-child,
.section-heading p,
.panel-description {
  margin: 6px 0 0;
  color: var(--fn-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.header-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

button:not(.brand):not(.nav-item):not(.text-button):not(.text-link):not(.table-action):not(.icon-button),
.button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #ccd6e7;
  border-radius: 6px;
  background: var(--fn-surface);
  color: var(--fn-text);
  font-weight: 500;
  text-decoration: none;
}

button.primary {
  border-color: var(--fn-brand-primary) !important;
  color: #fff !important;
  background: var(--fn-brand-primary) !important;
  font-weight: 600 !important;
}

button.primary:hover {
  border-color: var(--fn-brand-hover) !important;
  background: var(--fn-brand-hover) !important;
}

button.secondary,
.button.secondary {
  border-color: rgba(51, 112, 255, 0.28) !important;
  color: var(--fn-brand-hover) !important;
  background: var(--fn-surface) !important;
}

button.secondary:hover,
.button.secondary:hover {
  background: rgba(51, 112, 255, 0.05) !important;
}

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

select,
textarea,
input {
  min-height: 34px;
  border: 1px solid #ccd6e7;
  border-radius: 6px;
  color: var(--fn-text-strong);
  background: var(--fn-surface);
  box-shadow: none;
}

select {
  min-width: 220px;
  padding: 0 32px 0 10px;
}

textarea,
input {
  width: 100%;
  padding: 8px 10px;
}

textarea {
  resize: vertical;
}

select:hover,
textarea:hover,
input:hover {
  border-color: #aebbd0;
}

select:focus,
textarea:focus,
input:focus {
  border-color: var(--fn-brand-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.1);
}

.auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #f0c16b;
  border-radius: 8px;
  color: #805500;
  background: var(--fn-warning-soft);
}

.auth-banner a {
  color: var(--fn-brand-hover);
  font-weight: 600;
  text-decoration: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  display: grid;
  min-width: 0;
  min-height: 104px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--fn-line);
  border-radius: 8px;
  background: var(--fn-surface);
  box-shadow: var(--fn-card-shadow);
}

.stat-card > span {
  color: var(--fn-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-card > strong {
  overflow: hidden;
  margin: 5px 0 2px;
  color: var(--fn-brand-primary);
  font-size: 28px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card > strong.release-value,
.stat-card > strong.host-value {
  color: var(--fn-text-strong);
  font-size: 18px;
}

.stat-card > small {
  overflow: hidden;
  color: var(--fn-text-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.panel {
  min-width: 0;
  padding: 14px 16px;
}

.full-span {
  grid-column: 1 / -1;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h2,
.panel > h2 {
  margin: 0;
  color: var(--fn-text-strong);
  font-size: 17px;
  font-weight: 700;
}

.text-link,
.table-action,
.icon-button {
  padding: 3px 5px;
  border: 0;
  color: var(--fn-brand-hover);
  background: transparent;
  text-decoration: none;
}

.text-link:hover,
.table-action:hover {
  border-radius: 4px;
  background: rgba(51, 112, 255, 0.06);
}

.table-action.danger {
  color: var(--fn-danger);
}

.readiness-list,
.service-overview,
.service-card {
  display: grid;
  margin-top: 12px;
}

.readiness-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border-bottom: 1px solid var(--fn-line-soft);
}

.readiness-list > div:last-child,
.service-overview > div:last-child,
.service-card > div:last-child {
  border-bottom: 0;
}

.readiness-list span:nth-child(2),
.service-card span {
  display: grid;
  gap: 3px;
}

.readiness-list small,
.service-card small,
td small,
.release-title small {
  display: block;
  overflow: hidden;
  color: var(--fn-text-muted);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--fn-text-muted);
  background: var(--fn-surface-soft);
  font-size: 13px;
  font-weight: 700;
}

.check-icon.success {
  color: var(--fn-success);
  background: var(--fn-success-soft);
}

.check-icon.warning {
  color: var(--fn-warning);
  background: var(--fn-warning-soft);
}

.status-text {
  color: var(--fn-text);
  font-size: 13px;
}

.success {
  color: var(--fn-success) !important;
}

.warning {
  color: var(--fn-warning) !important;
}

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

.service-overview > div,
.service-card > div {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--fn-line-soft);
}

.service-overview > div > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fn-text);
}

.service-overview strong,
.service-card b {
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  margin-top: 12px;
}

.table-wrap.compact {
  margin-top: 10px;
}

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

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--fn-line-soft);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: #69758a;
  background: #f8faff;
  font-size: 12px;
  font-weight: 600;
}

td {
  color: var(--fn-text);
  font-size: 13px;
}

td strong {
  color: var(--fn-text-strong);
}

.table-release {
  display: block;
  max-width: 370px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions-column {
  text-align: right;
}

td:last-child:has(.table-action) {
  text-align: right;
}

.empty {
  padding: 28px 16px;
  color: #8993a5;
  text-align: center;
}

.empty.inline {
  width: 100%;
  padding: 10px;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 12px;
  margin-top: 12px;
}

.release-main,
.release-side {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.sticky-panel {
  position: sticky;
  top: 70px;
}

.release-detail {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--fn-line);
  border-radius: 8px;
  background: #f9fbff;
}

.release-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.release-title > div {
  min-width: 0;
}

.release-title strong {
  display: block;
  overflow: hidden;
  color: var(--fn-text-strong);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag,
.channel-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  color: var(--fn-text);
  background: var(--fn-surface-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tag.success {
  color: var(--fn-success) !important;
  background: var(--fn-success-soft);
}

.tag.warning {
  color: var(--fn-warning) !important;
  background: var(--fn-warning-soft);
}

.tag.danger {
  color: var(--fn-danger) !important;
  background: var(--fn-danger-soft);
}

.tag.primary,
.channel-tag {
  color: var(--fn-brand-hover);
  background: rgba(51, 112, 255, 0.09);
}

.tag.neutral {
  color: var(--fn-text-muted);
  background: var(--fn-surface-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 12px 0 0;
  font-size: 13px;
}

.detail-grid dt {
  color: var(--fn-text-muted);
}

.detail-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--fn-text);
}

.hash,
.version-cell {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.release-summary {
  margin-top: 12px;
  color: var(--fn-text-strong);
  font-size: 14px;
  line-height: 1.7;
}

.change-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.change-list > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--fn-text);
  background: var(--fn-surface-soft);
  font-size: 12px;
}

.change-list strong {
  color: var(--fn-text-strong);
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.field > span {
  color: var(--fn-text);
  font-size: 13px;
  font-weight: 600;
}

.field > span small {
  color: var(--fn-text-muted);
  font-weight: 400;
}

.button-row {
  margin-top: 10px;
}

.button-row.end {
  justify-content: flex-end;
}

.scope {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.scope label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--fn-line);
  border-radius: 6px;
  color: var(--fn-text-strong);
  background: var(--fn-surface);
}

.scope label:has(input:checked) {
  border-color: var(--fn-brand-primary);
  background: #f3f7ff;
}

.scope label.disabled {
  color: #8993a5;
  background: #f7f8fa;
}

.scope input {
  min-height: auto;
  accent-color: var(--fn-brand-primary);
}

.scope span {
  display: grid;
  gap: 3px;
}

.scope small {
  color: var(--fn-text-muted);
  font-size: 12px;
}

.release-main .warning {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #f0c16b;
  border-radius: 6px;
  color: #7b5100 !important;
  background: var(--fn-warning-soft);
}

.release-main .warning span {
  font-size: 13px;
}

.constraint-list {
  display: grid;
  margin-top: 10px;
}

.constraint {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fn-line-soft);
}

.constraint:last-child {
  border-bottom: 0;
}

.constraint b {
  color: var(--fn-text-strong);
  font-size: 13px;
}

.constraint span {
  color: var(--fn-text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.constraint.legacy {
  padding: 10px;
  border: 1px solid #f0c16b;
  border-radius: 6px;
  background: var(--fn-warning-soft);
}

.meter {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: #e9edf5;
}

.meter.large {
  height: 9px;
  margin-top: 10px;
}

.meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--fn-brand-primary);
  transition: width 0.3s ease;
}

.meter i.warning {
  background: #e69a18;
}

.meter i.danger {
  background: var(--fn-danger);
}

.job-live > p {
  margin: 8px 0 0;
  color: var(--fn-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.log-list {
  max-height: 250px;
  overflow: auto;
  margin-top: 12px;
  border-top: 1px solid var(--fn-line-soft);
}

.log-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fn-line-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.log-line time {
  color: var(--fn-text-muted);
}

.log-line span {
  overflow-wrap: anywhere;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  margin: -14px -16px 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fn-line-soft);
  border-radius: 8px 8px 0 0;
  background: #fbfcff;
}

.filter-bar label {
  width: min(360px, 100%);
}

.filter-bar > span {
  margin-left: auto;
  color: var(--fn-text-muted);
  font-size: 12px;
}

.domain-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.resource-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.resource-meter > span {
  display: grid;
  gap: 3px;
}

.resource-meter small {
  color: var(--fn-text-muted);
  font-size: 12px;
}

.resource-meter .meter {
  grid-column: 1 / -1;
}

.user-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 12px;
  margin-top: 12px;
}

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

.operator-form .button-row {
  grid-column: 1 / -1;
}

.security-notice ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--fn-text);
  line-height: 1.6;
}

.security-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--fn-line-soft);
  color: var(--fn-text-muted);
  font-size: 12px;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--fn-surface);
  box-shadow: 0 22px 70px rgba(17, 32, 61, 0.25);
}

dialog.wide-dialog {
  width: min(860px, calc(100vw - 32px));
}

dialog::backdrop {
  background: rgba(14, 27, 52, 0.45);
}

dialog form {
  padding: 20px;
}

dialog h2 {
  margin: 0;
  color: var(--fn-text-strong);
  font-size: 19px;
}

dialog p {
  margin: 8px 0 0;
  color: var(--fn-text-muted);
  line-height: 1.65;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.dialog-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--fn-line);
  border-radius: 6px;
  background: var(--fn-surface-soft);
}

.precheck-list {
  display: grid;
  margin-top: 12px;
}

.precheck-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  border-bottom: 1px solid var(--fn-line-soft);
}

.precheck-list span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.precheck-list small {
  color: var(--fn-text-muted);
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.job-detail-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: var(--fn-surface-soft);
}

.job-detail-grid span {
  color: var(--fn-text-muted);
  font-size: 12px;
}

.detail-logs {
  max-height: 360px;
}

.icon-button {
  color: var(--fn-text-muted);
  font-size: 24px;
  line-height: 1;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: 440px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--fn-text-strong);
  box-shadow: 0 8px 30px rgba(17, 32, 61, 0.25);
}

.toast[data-tone="success"] {
  background: var(--fn-success);
}

.toast[data-tone="warning"] {
  background: var(--fn-warning);
}

.toast[data-tone="danger"] {
  background: var(--fn-danger);
}

@media (max-width: 1180px) {
  .release-layout {
    grid-template-columns: 1fr;
  }

  .release-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-panel {
    position: static;
  }

  .scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions {
    gap: 8px;
  }
}

@media (max-width: 960px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid,
  .server-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }

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

  .topbar-link,
  .service-pill {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 140px minmax(0, 1fr);
    padding-right: 12px;
  }

  .brand {
    width: 140px;
  }

  .brand img {
    width: 124px;
  }

  .console-name {
    display: none;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .operator-name {
    max-width: 100px;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .sidebar {
    position: static;
    display: flex;
    min-height: auto;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 0;
  }

  .sidebar-group {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }

  .main-content {
    padding-top: 4px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions select {
    width: 100%;
  }

  .metrics,
  .metrics.three,
  .release-side,
  .resource-grid,
  .form-grid,
  .job-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar label,
  .filter-bar select {
    width: 100%;
  }

  .filter-bar > span {
    margin-left: 0;
  }

  .full-span,
  .form-grid .full {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
