:root {
  --ink: #0c2347;
  --muted: #65758d;
  --line: #dce2ea;
  --soft: #f3f6fa;
  --panel: #ffffff;
  --blue: #4f80ff;
  --blue-dark: #3159dc;
  --green: #7bf0cb;
  --pink: #ff6b9d;
  --warning: #ffb84d;
  --shadow: 0 20px 60px rgba(26, 45, 79, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fafbfd;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1380px, calc(100vw - 64px));
  margin: 32px auto 56px;
}

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

.auth-card {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid #d6dce6;
  border-radius: 8px;
  background: white;
  padding: 34px;
  box-shadow: var(--shadow);
}

.auth-card input {
  min-height: 46px;
  border: 1px solid #c8d0db;
  border-radius: 4px;
  background: white;
  color: #3d4756;
  padding: 0 14px;
}

.auth-card .primary-action {
  justify-self: start;
}

.auth-brand {
  font-size: 30px;
  margin-bottom: 8px;
}

.form-error {
  border: 1px solid #ffd1df;
  border-radius: 6px;
  background: #fff2f6;
  color: #b32656;
  margin: 0;
  padding: 12px 14px;
  font-weight: 700;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #253052;
  font-size: 34px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: inline-block;
  border: 4px solid #253052;
  border-radius: 5px;
  transform: rotate(-15deg);
  box-shadow: -7px 7px 0 -3px #253052;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.main-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a.active {
  color: var(--ink);
}

.primary-action {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #5864ff, #4b95ff);
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  min-height: 46px;
  padding: 0 26px;
  text-transform: uppercase;
  box-shadow: 0 16px 26px rgba(79, 128, 255, .25);
}

.top-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.icon-button:hover {
  background: var(--soft);
  color: var(--ink);
}

.profile-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  padding: 0;
  overflow: hidden;
}

.profile-button img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 44px 0 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.server-health {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.server-health span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0 16px;
  color: var(--muted);
}

.server-health b {
  color: var(--ink);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--soft);
  border-radius: 4px;
  min-height: 60px;
  padding: 10px 22px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.tabs button.active {
  color: var(--blue);
}

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

.search-wrap select,
.search-wrap input,
dialog input,
dialog select {
  min-height: 44px;
  border: 1px solid #c8d0db;
  border-radius: 4px;
  background: white;
  color: #3d4756;
  padding: 0 14px;
}

.search-wrap input {
  width: min(360px, 34vw);
}

.dashboard-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.server-metrics-panel {
  grid-column: 1 / -1;
  border: 1px solid #d6dce6;
  border-radius: 6px;
  background: white;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(24, 39, 75, .06);
}

.metrics-heading,
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.metrics-heading h2,
.view-heading h1 {
  margin: 0;
}

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

.metric-tile {
  display: grid;
  gap: 5px;
  min-height: 118px;
  border-radius: 6px;
  background: var(--soft);
  padding: 18px;
}

.metric-tile span,
.metric-tile small {
  color: var(--muted);
}

.metric-tile strong {
  font-size: 25px;
}

.service-health,
.task-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.service-chip,
.task-summary span,
.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
}

.service-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa7b8;
}

.service-ok i { background: #18b987; }
.service-degraded i { background: #ff9e2c; }
.service-unavailable i { background: #e14678; }

.view-toolbar {
  display: grid;
  grid-template-columns: 230px minmax(260px, 1fr);
  gap: 12px;
  margin: 24px 0 16px;
}

.view-toolbar input,
.view-toolbar select {
  min-height: 44px;
  border: 1px solid #c8d0db;
  border-radius: 4px;
  background: white;
  color: #3d4756;
  padding: 0 14px;
}

.full-task-list {
  display: grid;
  gap: 10px;
}

.full-task-row {
  display: grid;
  grid-template-columns: 12px minmax(240px, 1fr) 130px 150px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 16px;
}

.full-task-row > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.full-task-row span,
.full-task-row time {
  color: var(--muted);
  font-size: 13px;
}

.task-status-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa7b8;
}

.task-done .task-status-mark { background: #18b987; }
.task-running .task-status-mark { background: #4f80ff; }
.task-failed .task-status-mark { background: #e14678; }
.task-queued .task-status-mark { background: #ffb84d; }

.full-task-row details {
  grid-column: 2 / -1;
}

.full-task-row pre {
  overflow: auto;
  border-radius: 6px;
  background: var(--soft);
  padding: 12px;
  white-space: pre-wrap;
}

.domain-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.domain-table-head,
.domain-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, 1fr) 130px 120px 150px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 12px 18px;
  text-align: left;
}

.domain-table-head {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.domain-table-row {
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.domain-table-row:hover {
  background: #f8faff;
}

.domain-table-row > span:first-child {
  display: grid;
  gap: 3px;
}

.domain-table-row small {
  color: var(--muted);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.site-card {
  position: relative;
  border: 1px solid #d6dce6;
  border-radius: 4px;
  background: white;
  box-shadow: 0 10px 26px rgba(24, 39, 75, .08);
  overflow: hidden;
}

.card-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #ffd1df;
  border-radius: 50%;
  background: #fff0f4;
  color: #b32656;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(179, 38, 86, .14);
}

.card-dismiss:hover {
  background: #ffdfeb;
  color: #8f173f;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed #c8d0db;
  border-radius: 8px;
  background: white;
  padding: 34px;
  color: var(--muted);
}

.empty-state h2 {
  margin-bottom: 8px;
  color: var(--ink);
}

.empty-state p {
  margin-bottom: 0;
}

.site-preview {
  height: 154px;
  position: relative;
  background: var(--preview);
  overflow: hidden;
}

.site-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,.22) 29px 30px);
}

.site-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.site-preview:has(img)::after {
  display: none;
}

.site-body {
  padding: 18px;
}

.site-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.state-dot {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c8ffec;
  color: #18b987;
  font-size: 14px;
  font-weight: 900;
}

.state-dot.maintenance {
  background: #fff2ce;
  color: #c98200;
}

.site-card h3 {
  margin: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
}

.access-badge {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 15px;
}

.access-badge.open,
.access-pill.open {
  background: #edf8f2;
  color: #16845f;
}

.access-badge.locked,
.access-pill.locked {
  background: #fff0d5;
  color: #a46600;
}

.site-domain {
  display: block;
  margin: 12px 0 16px 32px;
  color: #2587ff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.card-actions button,
.secondary-button {
  border: 0;
  border-radius: 4px;
  background: #e9edf3;
  color: #5f7088;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 0 14px;
  text-transform: uppercase;
}

.danger-button {
  background: #fff0f4 !important;
  color: #b32656 !important;
}

.destructive-action {
  min-height: 36px;
  border: 1px solid #b42318;
  border-radius: 4px;
  background: #b42318;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
}

.activity-panel,
.info-card,
.domain-card,
.modal-card,
.user-card {
  border: 1px solid #d6dce6;
  border-radius: 6px;
  background: white;
  box-shadow: 0 8px 24px rgba(24, 39, 75, .06);
}

.activity-panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-heading h2 {
  margin: 0;
  font-size: 22px;
}

.panel-heading span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.task-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.task-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.task-running strong {
  color: #3159dc;
}

.task-failed strong {
  color: #b32656;
}

.task-done strong {
  color: #16845f;
}

.task-item strong {
  display: block;
  margin-bottom: 4px;
}

.task-item span {
  color: var(--muted);
  font-size: 13px;
}

.task-item details {
  margin-top: 8px;
}

.task-item summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.task-item pre {
  max-height: 220px;
  overflow: auto;
  border-radius: 6px;
  background: #f7f9fc;
  color: #24324a;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px;
  white-space: pre-wrap;
}

.hidden {
  display: none !important;
}

.detail-view {
  margin-top: 28px;
}

.team-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.team-head h1 {
  margin: 0;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.user-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.user-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.user-card h3 {
  margin: 0 0 4px;
}

.user-card a {
  display: inline-block;
  color: #2587ff;
  margin-bottom: 12px;
  text-decoration: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 24px;
  border-radius: 4px;
  background: var(--soft);
  padding: 0 26px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
}

.hero-card {
  border: 1px solid #d6dce6;
  border-radius: 5px;
  overflow: hidden;
  background: white;
}

.hero-card .site-preview {
  height: 290px;
}

.hero-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
}

.hero-summary h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.quick-actions {
  display: flex;
  gap: 8px;
  align-items: start;
  flex-wrap: wrap;
}

.domain-card,
.info-card {
  padding: 22px;
}

.domain-card {
  margin-top: 18px;
}

.edit-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr .8fr auto;
  align-items: end;
  gap: 14px;
}

.edit-grid input,
.edit-grid select {
  min-height: 42px;
  border: 1px solid #c8d0db;
  border-radius: 4px;
  background: white;
  color: #3d4756;
  padding: 0 12px;
}

.edit-actions {
  display: flex;
  align-items: end;
  min-height: 42px;
}

.domain-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px dashed var(--line);
}

.domain-line a {
  color: #2587ff;
  text-decoration: none;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.usage-bar {
  height: 20px;
  border: 1px solid #46d4b3;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff6b9d var(--used), #d8fff2 var(--used));
  margin: 8px 0;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.metric-row:first-of-type {
  border-top: 0;
}

.metric-row span {
  color: var(--muted);
}

.ssl-active {
  color: #18a978;
  font-weight: 900;
}

.ssl-pending {
  color: #c98200;
  font-weight: 900;
}

.ssl-missing {
  color: #e14678;
  font-weight: 900;
}

.ssl-expired,
.ssl-unknown {
  color: #c98200;
  font-weight: 900;
}

dialog {
  width: min(720px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(13, 24, 45, .32);
  backdrop-filter: blur(2px);
}

.modal-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.modal-head h2 {
  margin: 0;
  font-size: 28px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.create-site-error {
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.field-message.invalid {
  color: #b32656;
}

.field-message.valid {
  color: #16845f;
}

input.field-invalid {
  border-color: #ff8aae !important;
  background: #fff8fa !important;
}

input.field-valid {
  border-color: #7bd6ad !important;
  background: #f8fffb !important;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

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

.checks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 0;
}

menu button:not(.primary-action) {
  border: 1px solid #c8d0db;
  border-radius: 8px;
  background: white;
  min-height: 46px;
  padding: 0 20px;
  color: var(--muted);
  font-weight: 800;
}

menu button.destructive-action {
  border: 1px solid #b42318;
  border-radius: 4px;
  background: #b42318;
  color: #fff;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .top-icons {
    display: none;
  }

  .dashboard-view,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .site-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

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

  .domain-table {
    overflow-x: auto;
  }

  .domain-table-head,
  .domain-table-row {
    min-width: 900px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 24px, 1380px);
    margin-top: 18px;
  }

  .brand {
    font-size: 27px;
  }

  .primary-action {
    padding: 0 14px;
  }

  .hero-row,
  .toolbar,
  .hero-summary {
    display: grid;
  }

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

  .search-wrap {
    display: grid;
  }

  .search-wrap input {
    width: 100%;
  }

  .site-grid,
  .form-grid,
  .edit-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .view-toolbar {
    grid-template-columns: 1fr;
  }

  .full-task-row {
    grid-template-columns: 12px 1fr;
  }

  .full-task-row > .task-state,
  .full-task-row > time,
  .full-task-row details {
    grid-column: 2;
  }

  .hero-card .site-preview {
    height: 190px;
  }
}

/* Production instance view based on the approved minimal operations mockup. */
.detail-mode {
  background: #fff;
}

.detail-mode .hero-row,
.detail-mode main > .toolbar,
.detail-mode #serverMetricsPanel,
.secondary-view .hero-row,
.secondary-view main > .toolbar,
.secondary-view #serverMetricsPanel {
  display: none;
}

.detail-mode .app-shell {
  width: min(1392px, calc(100vw - 56px));
  margin-top: 0;
}

.detail-mode .topbar {
  min-height: 58px;
  border-bottom: 1px solid #e5e8ed;
  grid-template-columns: auto 1fr auto auto;
}

.detail-mode .brand {
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -.45px;
}

.detail-mode .brand-mark {
  display: none;
}

.detail-mode main {
  padding-top: 26px;
}

.instance-page {
  --detail-ink: #152033;
  --detail-muted: #667085;
  --detail-subtle: #98a2b3;
  --detail-line: #e5e8ed;
  --detail-line-strong: #d7dce4;
  --detail-blue: #1463d9;
  --detail-green: #159566;
  --detail-amber: #d98b0b;
  color: var(--detail-ink);
  padding-bottom: 36px;
}

.instance-back {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: var(--detail-blue);
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 0;
}

.instance-header {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.instance-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.instance-site-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--detail-line-strong);
  border-radius: 50%;
  background: #f7f8fa;
  color: #52617a;
  font-size: 15px;
  font-weight: 720;
  place-content: center;
}

.site-favicon {
  overflow: hidden;
  background: #fff;
}

.site-favicon .favicon-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  background: #f7f8fa;
  place-content: center;
}

.site-favicon.has-favicon .favicon-fallback {
  visibility: hidden;
}

.site-favicon.has-favicon.favicon-failed .favicon-fallback {
  visibility: visible;
}

.site-favicon img {
  position: absolute;
  inset: 17.5%;
  display: block;
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.site-favicon img.failed {
  display: none;
}

.instance-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.75px;
  line-height: 1.1;
}

.instance-subline {
  display: flex;
  margin-top: 7px;
  color: var(--detail-muted);
  align-items: center;
  gap: 10px;
  font-size: 11px;
  white-space: nowrap;
}

.instance-subline > i {
  width: 1px;
  height: 15px;
  background: var(--detail-line-strong);
}

.detail-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.detail-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--detail-amber);
}

.detail-dot.ok {
  background: var(--detail-green);
}

.instance-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.instance-actions a {
  text-decoration: none;
}

.instance-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.compact-action {
  min-height: 34px;
  border-radius: 4px;
  box-shadow: none;
  font-size: 12px;
  letter-spacing: 0;
  padding: 0 14px;
  text-transform: none;
}

.instance-tabs {
  display: flex;
  min-height: 48px;
  border-bottom: 1px solid var(--detail-line);
  align-items: stretch;
  gap: 30px;
  overflow: hidden;
}

.instance-tab {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 12px;
  font-weight: 520;
  padding: 0 1px;
}

.instance-tab.active {
  color: var(--detail-blue);
  font-weight: 650;
}

.instance-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--detail-blue);
  content: "";
}

.instance-panel.active {
  display: block;
}

.instance-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--detail-line);
}

.instance-kpi {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 28px;
}

.instance-kpi + .instance-kpi {
  border-left: 1px solid var(--detail-line);
}

.detail-label {
  display: block;
  color: #52617a;
  font-size: 10px;
  font-weight: 690;
  letter-spacing: .62px;
  line-height: 1;
  text-transform: uppercase;
}

.instance-kpi > strong,
.kpi-status .detail-value {
  display: block;
  margin-top: 8px;
  color: var(--detail-ink);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  letter-spacing: -.35px;
  line-height: 1;
}

.instance-kpi small,
.scan-grid small {
  display: block;
  margin-top: 7px;
  color: #7a879a;
  font-size: 10px;
}

.kpi-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
}

.kpi-status .detail-dot {
  grid-row: 1 / span 2;
  margin-top: 8px;
}

.kpi-status small {
  grid-column: 2;
}

.detail-spark {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 42%;
  height: 38px;
  overflow: visible;
}

.detail-spark path {
  fill: none;
  stroke: var(--detail-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.storage-bar {
  display: flex;
  width: 100%;
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  background: #e8edf3;
}

.storage-bar span:first-child {
  width: 72%;
  background: #328df0;
}

.storage-bar span:nth-child(2) {
  width: 14%;
  background: #8a5be7;
}

.quota-bar {
  width: 100%;
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  background: #e8edf3;
}

.quota-bar span {
  display: block;
  height: 100%;
  background: var(--detail-blue);
  transition: width 180ms ease;
}

.quota-bar.warning span {
  background: #c78518;
}

.quota-bar.critical span,
.quota-bar.exceeded span {
  background: #c3484f;
}

.quota-bar.large {
  height: 6px;
  margin-top: 10px;
}

.instance-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  border-bottom: 1px solid var(--detail-line);
}

.performance-panel {
  min-width: 0;
  padding: 24px 32px 20px 0;
}

.operations-panel {
  border-left: 1px solid var(--detail-line);
  padding: 24px 0 20px 32px;
}

.detail-section-heading {
  display: flex;
  min-height: 32px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-section-heading h2,
.config-panel h2 {
  margin: 0;
  color: var(--detail-ink);
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -.3px;
}

.detail-section-heading p {
  margin: 3px 0 0;
  color: var(--detail-muted);
  font-size: 10px;
}

.detail-muted,
.detail-copy {
  color: var(--detail-muted);
  font-size: 10px;
}

.performance-chart {
  display: block;
  width: 100%;
  height: 176px;
  margin-top: 4px;
  overflow: visible;
}

.performance-chart .grid {
  fill: none;
  stroke: #edf1f5;
  stroke-width: 1;
}

.performance-chart .area {
  fill: var(--detail-blue);
  opacity: .06;
}

.performance-chart .line {
  fill: none;
  stroke: var(--detail-blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.storage-detail {
  margin-top: 14px;
}

.storage-detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.storage-detail h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 630;
}

.storage-detail-heading p,
.quota-disclaimer {
  margin: 3px 0 0;
  color: var(--detail-muted);
  font-size: 9px;
}

.storage-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
}

.storage-values span {
  color: var(--detail-muted);
  font-size: 9px;
}

.storage-values strong {
  display: block;
  margin-top: 3px;
  color: var(--detail-ink);
  font-size: 12px;
  font-weight: 620;
}

.quota-disclaimer {
  margin-top: 9px;
}

.operation-row {
  display: grid;
  min-height: 48px;
  grid-template-columns: minmax(84px, .65fr) minmax(120px, 1.35fr);
  border-top: 1px solid var(--detail-line);
  align-items: center;
  gap: 12px;
  color: #344054;
  font-size: 11px;
}

.operation-row:last-child {
  border-bottom: 1px solid var(--detail-line);
}

.operation-row > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.operation-row b {
  font-weight: 570;
}

.instance-log-preview {
  padding-top: 22px;
}

.detail-table-wrap {
  max-width: 100%;
  margin-top: 10px;
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid var(--detail-line);
  color: #475467;
  font-size: 12px;
  text-align: left;
}

.detail-table th {
  height: 34px;
  border-top: 1px solid var(--detail-line);
  border-bottom: 1px solid var(--detail-line);
  background: #f7f8fa;
  color: #667085;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .55px;
  padding: 0 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-table td {
  height: 46px;
  border-top: 1px solid var(--detail-line);
  font-variant-numeric: tabular-nums;
  padding: 8px 14px;
  white-space: nowrap;
}

.detail-table td strong {
  color: var(--detail-ink);
  font-weight: 640;
}

.detail-empty-cell {
  color: var(--detail-muted);
  text-align: center;
}

.connector-strip {
  display: flex;
  min-height: 70px;
  border-bottom: 1px solid var(--detail-line);
  align-items: center;
  gap: 24px;
  color: #52617a;
  font-size: 11px;
}

.connector-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.connector-strip > span + span {
  border-left: 1px solid var(--detail-line);
  padding-left: 24px;
}

.connector-strip .secondary-button {
  margin-left: auto;
}

.detail-empty {
  min-height: 330px;
  max-width: 660px;
  padding-top: 72px;
}

.detail-empty h2 {
  margin: 0;
  font-size: 18px;
}

.detail-empty p {
  margin: 8px 0 0;
  color: var(--detail-muted);
  font-size: 12px;
  line-height: 1.65;
}

.backup-layout,
.domain-layout,
.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  padding-top: 22px;
  gap: 32px;
}

.backup-layout > *,
.domain-layout > *,
.config-layout > * {
  min-width: 0;
}

.settings-panel {
  border-left: 1px solid var(--detail-line);
  padding-left: 32px;
}

.settings-row {
  display: grid;
  min-height: 58px;
  border-bottom: 1px solid var(--detail-line);
  align-content: center;
  gap: 3px;
  font-size: 11px;
}

.settings-row strong {
  overflow-wrap: anywhere;
}

.settings-row small {
  color: var(--detail-muted);
  font-size: 9px;
}

.storage-scan {
  margin-top: 26px;
  border-top: 1px solid var(--detail-line);
  padding-top: 22px;
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  border-top: 1px solid var(--detail-line);
  border-bottom: 1px solid var(--detail-line);
}

.scan-grid > div {
  min-width: 0;
  min-height: 78px;
  padding: 15px 20px;
}

.scan-grid > div + div {
  border-left: 1px solid var(--detail-line);
}

.scan-grid strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--detail-ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-info-line {
  display: flex;
  min-height: 48px;
  border-bottom: 1px solid var(--detail-line);
  color: #526786;
  align-items: center;
  font-size: 11px;
}

.ssl-heading {
  margin-top: 28px;
}

.config-panel {
  padding-right: 8px;
}

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

.config-grid label {
  color: #526786;
  font-size: 9px;
  font-weight: 690;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.config-grid label small {
  display: block;
  margin-top: 5px;
  color: var(--detail-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.config-grid input,
.config-grid select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--detail-line-strong);
  border-radius: 3px;
  background: white;
  color: #263752;
  font-size: 11px;
  padding: 0 10px;
  text-transform: none;
}

.config-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.config-actions > small {
  color: var(--detail-muted);
  font-size: 9px;
  line-height: 1.5;
}

.wp-config-panel {
  margin-top: 34px;
  border-top: 1px solid var(--detail-line);
  padding-top: 26px;
}

.wp-config-task-feedback {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.wp-config-task-feedback.error {
  color: #b42318;
}

.performance-setup-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  max-width: 960px;
  margin: 0 0 20px;
}

.performance-config-feedback {
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0 0;
}

.wp-config-security {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--detail-line);
  border-bottom: 1px solid var(--detail-line);
}

.wp-config-security > span {
  display: flex;
  min-height: 52px;
  color: var(--detail-muted);
  align-items: center;
  gap: 7px;
  font-size: 10px;
}

.wp-config-security > span + span {
  border-left: 1px solid var(--detail-line);
  padding-left: 22px;
}

.wp-config-security strong {
  color: var(--detail-ink);
  font-weight: 650;
}

.wp-config-secret {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) repeat(2, minmax(190px, 1fr)) auto;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--detail-line);
  background: #fafbfd;
  align-items: end;
  gap: 16px;
}

.wp-config-custom {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--detail-line);
  background: #fafbfd;
}

.wp-config-protected {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--detail-line);
  background: #fff;
}

.wp-config-protected-list {
  margin-top: 17px;
  border-top: 1px solid var(--detail-line);
}

.wp-config-protected-row {
  display: flex;
  min-height: 58px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--detail-line);
}

.wp-config-protected-row strong,
.wp-config-protected-row small {
  display: block;
}

.wp-config-protected-row strong {
  color: var(--detail-ink);
  font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.wp-config-protected-row small,
.wp-config-protected-empty {
  margin-top: 3px;
  color: var(--detail-muted);
  font-size: 9px;
  line-height: 1.45;
}

.wp-config-protected-row > div:last-child {
  display: flex;
  gap: 8px;
}

.wp-config-protected-empty {
  padding: 17px 0;
  border-bottom: 1px solid var(--detail-line);
}

.wp-config-protected-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin-top: 18px;
}

.wp-config-protected-form label {
  min-width: 0;
  color: #526786;
  font-size: 9px;
  font-weight: 690;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.wp-config-protected-form input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--detail-line-strong);
  border-radius: 3px;
  background: #fff;
  color: #263752;
  padding: 0 10px;
  font-size: 11px;
  text-transform: none;
}

.wp-config-protected-form label:first-child input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.wp-config-protected-form small {
  display: block;
  margin-top: 5px;
  min-height: 26px;
  color: var(--detail-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.wp-config-custom-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.wp-config-custom-heading h3 {
  margin: 5px 0 0;
  color: var(--detail-ink);
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -.2px;
}

.wp-config-custom-heading p {
  max-width: 780px;
  margin: 7px 0 0;
  color: var(--detail-muted);
  font-size: 10px;
  line-height: 1.55;
}

.wp-config-custom-heading code {
  color: #344766;
  font-size: 9px;
}

.wp-config-custom-heading > span {
  flex: none;
  color: var(--detail-muted);
  font-size: 9px;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.wp-config-custom textarea {
  display: block;
  width: 100%;
  min-height: 210px;
  margin-top: 17px;
  resize: vertical;
  border: 1px solid var(--detail-line-strong);
  border-radius: 3px;
  outline: none;
  background: #fff;
  color: #20314b;
  padding: 14px 15px;
  font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  tab-size: 2;
}

.wp-config-custom textarea:focus {
  border-color: #8da9d7;
  box-shadow: 0 0 0 2px rgb(43 104 203 / 8%);
}

.wp-config-custom textarea:disabled {
  background: #f3f5f8;
  color: #8792a2;
}

.wp-config-custom-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  color: var(--detail-muted);
  font-size: 9px;
  line-height: 1.45;
}

.wp-config-custom-meta .valid {
  color: #08785c;
}

.wp-config-custom-meta .error {
  color: #b42318;
}

.wp-config-custom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}

.wp-config-secret > div:first-child {
  align-self: center;
}

.wp-config-secret > div:first-child strong,
.wp-config-secret > div:first-child small {
  display: block;
}

.wp-config-secret > div:first-child strong {
  margin-top: 5px;
  color: var(--detail-ink);
  font-size: 12px;
}

.wp-config-secret > div:first-child small,
.wp-config-secret label small {
  margin-top: 5px;
  color: var(--detail-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.45;
}

.wp-config-secret label {
  min-width: 0;
  color: #526786;
  font-size: 9px;
  font-weight: 690;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.wp-config-secret label small {
  display: block;
  letter-spacing: 0;
  text-transform: none;
}

.wp-config-secret input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--detail-line-strong);
  border-radius: 3px;
  background: #fff;
  color: #263752;
  padding: 0 10px;
  font-size: 11px;
  text-transform: none;
}

.wp-config-secret-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-config-secret-actions .danger-button {
  margin: 0;
}

.wp-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  gap: 16px;
}

.wp-config-grid label {
  min-width: 0;
  color: #526786;
  font-size: 9px;
  font-weight: 690;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.wp-config-grid input,
.wp-config-grid select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--detail-line-strong);
  border-radius: 3px;
  background: #fff;
  color: #263752;
  padding: 0 10px;
  font-size: 11px;
  text-transform: none;
}

.wp-config-grid input:disabled,
.wp-config-grid select:disabled {
  background: #f5f7fa;
  color: #8792a2;
}

.wp-config-grid small {
  display: block;
  margin-top: 5px;
  color: var(--detail-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.wp-config-empty {
  margin-top: 16px;
  padding: 15px 17px;
  border: 1px solid var(--detail-line);
  background: #fafbfd;
  color: var(--detail-muted);
  font-size: 11px;
  line-height: 1.55;
}

.config-layout .danger-button {
  margin-top: 18px;
}

.deletion-zone {
  margin-top: 24px;
  border-top: 1px solid #f1c7c2;
  padding-top: 18px;
}

.deletion-zone > strong {
  color: #912018;
  font-size: 12px;
}

.deletion-zone p,
.destructive-warning {
  margin: 6px 0 0;
  color: #667085;
  font-size: 10px;
  line-height: 1.55;
}

.deletion-zone .danger-button {
  margin-top: 12px;
}

.destructive-modal {
  width: min(620px, calc(100vw - 32px));
}

.destructive-warning {
  border-left: 2px solid #b42318;
  background: #fff8f7;
  color: #7a271a;
  padding: 11px 13px;
}

.deletion-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 4px 0;
  border-top: 1px solid #e5e8ed;
  border-left: 1px solid #e5e8ed;
}

.deletion-resources span {
  min-width: 0;
  border-right: 1px solid #e5e8ed;
  border-bottom: 1px solid #e5e8ed;
  padding: 11px 12px;
}

.deletion-resources small,
.deletion-resources strong {
  display: block;
}

.deletion-resources small {
  margin-bottom: 4px;
  color: #667085;
  font-size: 9px;
  text-transform: uppercase;
}

.deletion-resources strong {
  overflow-wrap: anywhere;
  color: #1d2939;
  font-size: 11px;
}

.deletion-resources .deletion-resource-note {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.4;
  text-transform: none;
  overflow-wrap: anywhere;
}

.deletion-resource-retained { background: #f5f8ff; }
#deleteSitePlanFeedback { font-size: 12px; line-height: 1.5; color: #475467; }

@media (max-width: 1040px) {
  .detail-mode .topbar {
    grid-template-columns: 1fr auto;
  }

  .instance-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .instance-kpi:nth-child(3) {
    border-top: 1px solid var(--detail-line);
    border-left: 0;
  }

  .instance-kpi:nth-child(4) {
    border-top: 1px solid var(--detail-line);
  }

  .instance-overview-grid,
  .backup-layout,
  .domain-layout,
  .config-layout {
    grid-template-columns: 1fr;
  }

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

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

  .operations-panel,
  .settings-panel {
    border-top: 1px solid var(--detail-line);
    border-left: 0;
    padding: 22px 0 0;
  }

  .performance-panel {
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .detail-mode .app-shell {
    width: calc(100% - 32px);
    margin-top: 0;
  }

  .detail-mode main {
    padding-top: 22px;
  }

  .instance-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .instance-identity {
    align-items: flex-start;
  }

  .instance-header h1 {
    font-size: 23px;
  }

  .instance-subline {
    align-items: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .instance-actions {
    width: 100%;
  }

  .instance-actions > * {
    flex: 1;
  }

  .instance-tabs {
    flex-wrap: wrap;
    gap: 0 24px;
    overflow: visible;
  }

  .instance-tab {
    min-height: 44px;
  }

  .instance-kpis {
    grid-template-columns: 1fr;
  }

  .instance-kpi {
    min-height: 102px;
    border-top: 1px solid var(--detail-line);
    border-left: 0 !important;
    padding: 16px 18px;
  }

  .instance-kpi:first-child {
    border-top: 0;
  }

  .connector-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  .connector-strip > span + span {
    border-left: 0;
    padding-left: 0;
  }

  .connector-strip .secondary-button {
    width: 100%;
    margin: 4px 0 0;
  }

  .detail-table {
    min-width: 760px;
  }

  .storage-values,
  .config-grid,
  .wp-config-grid,
  .wp-config-security,
  .wp-config-secret {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wp-config-secret-actions > * {
    flex: 1;
  }

  .wp-config-custom {
    padding: 16px;
  }

  .wp-config-protected {
    padding: 16px;
  }

  .wp-config-protected-form {
    grid-template-columns: 1fr;
  }

  .wp-config-protected-form small {
    min-height: 0;
  }

  .wp-config-protected-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .wp-config-protected-row > div:last-child,
  .wp-config-protected-form > button {
    width: 100%;
  }

  .wp-config-protected-row > div:last-child > * {
    flex: 1;
  }

  .wp-config-custom-heading,
  .wp-config-custom-meta {
    flex-direction: column;
    gap: 7px;
  }

  .wp-config-custom-actions > * {
    flex: 1;
  }

  .wp-config-security > span + span {
    border-top: 1px solid var(--detail-line);
    border-left: 0;
    padding-left: 0;
  }

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

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

  .scan-grid > div:nth-child(3) {
    border-top: 1px solid var(--detail-line);
    border-left: 0;
  }

  .scan-grid > div:nth-child(4) {
    border-top: 1px solid var(--detail-line);
  }
}

/* Shared production shell and website overview. */
body {
  background: #fff;
  color: #152033;
  font-size: 14px;
}

.app-shell {
  width: min(1392px, calc(100vw - 56px));
  margin: 0 auto 52px;
}

.topbar {
  min-height: 58px;
  border-bottom: 1px solid #e5e8ed;
  grid-template-columns: auto 1fr auto;
  gap: 56px;
}

.brand {
  gap: 0;
  color: #152033;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -.45px;
}

.brand-mark {
  display: none;
}

.main-nav {
  justify-content: flex-start;
  gap: 34px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  color: #475467;
  align-items: center;
  font-size: 14px;
  font-weight: 520;
  text-transform: none;
}

.main-nav a.active {
  color: #1463d9;
  font-weight: 620;
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #1463d9;
  content: "";
}

.top-icons {
  display: flex;
}

.profile-button {
  width: 30px;
  height: 30px;
  border: 1px solid #e5e8ed;
  background: #f3f5f7;
}

.icon-button {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

main {
  padding-top: 26px;
}

.hero-row {
  min-height: 86px;
  margin: 0;
  align-items: flex-start;
  padding-top: 2px;
}

.hero-row h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.12;
}

.hero-row p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.primary-action {
  border: 1px solid #1463d9;
  border-radius: 4px;
  background: #1463d9;
  box-shadow: none;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0;
  min-height: 34px;
  padding: 0 14px;
  text-transform: none;
}

.secondary-button {
  border-radius: 4px;
  font-size: 12px;
  font-weight: 620;
  min-height: 34px;
  padding: 0 14px;
}

.toolbar {
  display: flex;
  min-height: 70px;
  border-radius: 0;
  background: #fff;
  padding: 0;
  gap: 9px;
}

.tabs {
  gap: 9px;
}

.tabs button {
  min-height: 36px;
  border: 1px solid #d7dce4;
  border-radius: 4px;
  color: #475467;
  font-size: 12px;
  font-weight: 520;
  padding: 0 12px;
}

.tabs button.active {
  border-color: #b8c7dc;
  background: #f7f8fa;
  color: #152033;
}

.search-wrap {
  display: flex;
  margin-left: auto;
  gap: 9px;
}

.search-wrap select,
.search-wrap input {
  min-height: 36px;
  border-color: #d7dce4;
  border-radius: 4px;
  background-color: #fff;
  color: #344054;
  font-size: 12px;
}

.dashboard-view {
  display: block;
}

.server-metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 104px;
  border: 0;
  border-top: 1px solid #e5e8ed;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 0;
}

.production-metric {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(82px, .8fr) minmax(96px, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 17px 28px;
}

.production-metric.storage-metric {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 10px;
}

.production-metric + .production-metric {
  border-left: 1px solid #e5e8ed;
}

.production-metric strong,
.production-metrics-empty strong {
  display: block;
  margin-top: 8px;
  color: #152033;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  letter-spacing: -.35px;
  line-height: 1;
  white-space: nowrap;
}

.production-metric small,
.production-metrics-empty small {
  display: block;
  margin-top: 7px;
  color: #7a879a;
  font-size: 10px;
  white-space: nowrap;
}

.production-spark {
  width: 100%;
  height: 48px;
  overflow: visible;
}

.production-spark path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.production-spark.blue path { stroke: #1463d9; }
.production-spark.violet path { stroke: #7a4ce0; }
.production-spark.green path { stroke: #159566; }

.production-capacity {
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: #e9edf2;
}

.production-capacity span {
  display: block;
  height: 100%;
  background: #1686a8;
}

.metrics-refresh {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #667085;
}

.production-metrics-empty {
  display: flex;
  min-height: 104px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}

.site-grid {
  display: block;
  margin-top: 0;
}

.website-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.website-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16, 24, 40, .045);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.website-tile:hover,
.website-tile:focus-visible {
  border-color: #c8d1de;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .09);
  outline: none;
  transform: translateY(-2px);
}

.website-tile-preview {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid #e5e8ed;
  background: var(--preview, #f3f5f8);
  place-content: center;
}

.website-tile-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 240ms ease;
}

.website-tile:hover .website-tile-preview img {
  transform: scale(1.012);
}

.website-tile-preview.preview-unavailable::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .42));
  content: "";
}

.website-tile-preview.preview-unavailable span,
.website-tile-preview.preview-unavailable small {
  position: relative;
  z-index: 1;
  color: #536175;
  text-align: center;
}

.website-tile-preview.preview-unavailable span {
  font-size: 11px;
  font-weight: 620;
}

.website-tile-preview.preview-unavailable small {
  margin-top: 5px;
  color: #7a879a;
  font-size: 9px;
}

.website-tile-body {
  padding: 14px 15px 12px;
}

.website-tile-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 10px 18px;
  gap: 10px;
  align-items: center;
}

.tile-favicon {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 10px;
}

.tile-favicon .favicon-fallback {
  border: 1px solid var(--detail-line-strong);
  border-radius: 50%;
}

.tile-favicon img {
  inset: 0;
  width: 100%;
  height: 100%;
}

.website-tile-identity {
  min-width: 0;
}

.website-tile-identity strong,
.website-tile-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.website-tile-identity strong {
  color: #152033;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.12px;
}

.website-tile-identity small {
  margin-top: 3px;
  color: #6d7a8d;
  font-size: 10px;
}

.website-tile-state {
  display: inline-flex;
  justify-content: center;
}

.website-tile-state .detail-dot {
  width: 7px;
  height: 7px;
}

.website-tile-chevron {
  width: 18px;
  height: 18px;
  color: #a0a8b5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.website-tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px -15px -12px;
  border-top: 1px solid #edf0f3;
  color: #7a879a;
  font-size: 9px;
  padding: 9px 15px 10px;
}

.website-tile-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wordpress-inventory {
  padding-top: 24px;
}

.wordpress-runtime {
  display: grid;
  grid-template-columns: .7fr .5fr 1.4fr 1.4fr;
  margin-top: 24px;
  border-top: 1px solid #e5e8ed;
  border-bottom: 1px solid #e5e8ed;
}

.wordpress-runtime > div {
  min-width: 0;
  padding: 18px 20px;
}

.wordpress-runtime > div + div {
  border-left: 1px solid #e5e8ed;
}

.wordpress-runtime strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: #152033;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.production-table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid #e5e8ed;
  text-align: left;
}

.production-table th {
  height: 38px;
  border-bottom: 1px solid #e5e8ed;
  background: #f7f8fa;
  color: #667085;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .55px;
  padding: 0 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.production-table td {
  height: 64px;
  border-top: 1px solid #e5e8ed;
  color: #475467;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 8px 14px;
  white-space: nowrap;
}

.production-table tbody tr {
  cursor: pointer;
}

.production-table tbody tr:hover {
  background: #fafbfd;
}

.production-entity {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 12px;
}

.table-mark {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 10px;
}

.table-mark .favicon-fallback {
  border: 1px solid var(--detail-line-strong);
  border-radius: 50%;
}

.table-mark img {
  inset: 0;
  width: 100%;
  height: 100%;
}

.production-entity strong,
.production-value,
.production-status b {
  display: block;
  color: #344054;
  font-size: 11px;
  font-weight: 580;
}

.production-entity strong {
  color: #152033;
  font-size: 12px;
  font-weight: 650;
}

.production-table small,
.production-entity small,
.production-status small {
  display: block;
  margin-top: 3px;
  color: #8994a5;
  font-size: 9px;
}

.response-cell,
.production-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.response-cell svg {
  width: 48px;
  height: 19px;
}

.response-cell path {
  fill: none;
  stroke: #1463d9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.row-open {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #7b8799;
  font-size: 20px;
}

.production-table-footer {
  display: flex;
  min-height: 50px;
  color: #7b8799;
  align-items: center;
  font-size: 11px;
}

.activity-panel[hidden] {
  display: none;
}

.system-view .view-heading p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.system-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid #e5e8ed;
  border-bottom: 1px solid #e5e8ed;
}

.system-summary > div {
  min-height: 104px;
  padding: 24px 28px;
}

.system-summary > div + div {
  border-left: 1px solid #e5e8ed;
}

.system-summary strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 680;
}

.production-services {
  margin-top: 28px;
}

.production-services .service-row {
  grid-template-columns: 1fr 2fr 1fr;
  border-bottom: 1px solid #e5e8ed;
  border-radius: 0;
  background: #fff;
}

.update-view-heading {
  align-items: flex-end;
}

.update-view-heading p:not(.eyebrow) {
  margin: 7px 0 0;
  color: #667085;
  font-size: 13px;
}

.update-current-version {
  min-width: 132px;
  padding: 12px 16px;
  border: 1px solid #dfe4eb;
  background: #fbfcfd;
  text-align: right;
}

.update-current-version small,
.update-current-version strong {
  display: block;
}

.update-current-version small {
  color: #7a8798;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.update-current-version strong {
  margin-top: 4px;
  color: #142034;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 670;
}

.update-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid #e4e8ee;
  border-bottom: 1px solid #e4e8ee;
}

.update-summary > div {
  min-width: 0;
  padding: 19px 22px;
}

.update-summary > div + div {
  border-left: 1px solid #e4e8ee;
}

.update-summary strong,
.update-summary small {
  display: block;
}

.update-summary strong {
  margin-top: 8px;
  color: #172235;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.update-summary small {
  margin-top: 4px;
  color: #8590a1;
  font-size: 10px;
}

.update-notice {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid #dbe3ef;
  border-left: 2px solid #2d68e6;
  background: #fafcff;
}

.update-notice strong {
  color: #25334a;
  font-size: 12px;
}

.update-notice p {
  margin: 5px 0 0;
  color: #6c788b;
  font-size: 11px;
  line-height: 1.55;
}

.update-timeline {
  margin-top: 30px;
}

.update-entry {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
}

.update-rail {
  position: relative;
  min-height: 100%;
}

.update-rail::after {
  position: absolute;
  top: 24px;
  bottom: -1px;
  left: 8px;
  width: 1px;
  background: #e1e6ed;
  content: "";
}

.update-entry:last-child .update-rail::after {
  display: none;
}

.update-rail span {
  position: absolute;
  top: 7px;
  left: 3px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1b9b75;
  box-shadow: 0 0 0 1px #a9ddcd;
}

.update-entry.rollback .update-rail span {
  background: #d18b22;
  box-shadow: 0 0 0 1px #efd5a6;
}

.update-entry.failed .update-rail span {
  background: #d55161;
  box-shadow: 0 0 0 1px #edb8bf;
}

.update-entry-content {
  padding: 0 0 32px;
  border-bottom: 1px solid #e4e8ee;
}

.update-entry + .update-entry .update-entry-content {
  padding-top: 28px;
}

.update-entry-content > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.update-entry-content > header > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 12px;
}

.update-version {
  color: #2764dd;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .2px;
}

.update-entry h2 {
  margin: 0;
  color: #152033;
  font-size: 16px;
  font-weight: 660;
  letter-spacing: -.15px;
}

.update-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #cce9df;
  color: #167d60;
  font-size: 9px;
  font-weight: 690;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.rollback .update-status {
  border-color: #eed8b4;
  color: #9b6819;
}

.failed .update-status {
  border-color: #edc7cd;
  color: #a43d4b;
}

.update-notes {
  max-width: 860px;
  margin-top: 12px;
}

.update-notes > span {
  display: block;
  margin-bottom: 4px;
  color: #8a94a4;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.update-notes p {
  display: -webkit-box;
  overflow: hidden;
  max-height: 3.3em;
  margin: 0;
  color: #526074;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.update-message {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  margin-top: 15px;
  padding: 11px 13px;
  border: 1px solid #ede1ca;
  background: #fffcf7;
  color: #7d6745;
  font-size: 10px;
  line-height: 1.55;
}

.update-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.update-checks span {
  padding: 4px 7px;
  border: 1px solid #dde3eb;
  color: #627087;
  font-size: 9px;
  font-weight: 610;
}

.update-entry footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 17px;
  color: #8792a2;
  font-size: 10px;
}

.update-entry footer code {
  color: #58667a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
}

.update-entry footer a {
  color: #2864dd;
  font-weight: 620;
  text-decoration: none;
}

.update-entry footer a span {
  margin-left: 2px;
  font-size: 9px;
}

.update-entry footer a:hover {
  text-decoration: underline;
}

.update-empty {
  border-top: 1px solid #e4e8ee;
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 24px;
  }

  .server-metrics-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-summary {
    grid-template-columns: 1fr;
  }

  .update-summary {
    grid-template-columns: 1fr;
  }

  .update-summary > div + div {
    border-top: 1px solid #e4e8ee;
    border-left: 0;
  }

  .system-summary > div + div {
    border-top: 1px solid #e5e8ed;
    border-left: 0;
  }

  .production-metric:nth-child(3) {
    border-top: 1px solid #e5e8ed;
    border-left: 0;
  }

  .production-metric:nth-child(4) {
    border-top: 1px solid #e5e8ed;
  }

  .production-table {
    min-width: 980px;
  }

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

@media (max-width: 720px) {
  .app-shell {
    width: calc(100% - 32px);
  }

  .topbar {
    min-height: auto;
    padding-top: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .main-nav {
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
  }

  .main-nav a {
    min-height: 44px;
  }

  main {
    padding-top: 22px;
  }

  .hero-row {
    display: flex;
    min-height: 112px;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-row h1 {
    font-size: 27px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 0;
  }

  .tabs,
  .search-wrap {
    overflow-x: auto;
  }

  .search-wrap {
    display: grid;
    width: 100%;
    margin-left: 0;
  }

  .server-metrics-panel {
    grid-template-columns: 1fr;
  }

  .production-metric {
    min-height: 92px;
    border-top: 1px solid #e5e8ed;
    border-left: 0 !important;
    padding: 14px 18px;
  }

  .production-metric:first-child {
    border-top: 0;
  }

  .production-metrics-empty {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .website-tiles {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wordpress-runtime {
    grid-template-columns: 1fr;
  }

  .wordpress-runtime > div + div {
    border-top: 1px solid #e5e8ed;
    border-left: 0;
  }
}

@media (min-width: 721px) and (max-width: 860px) {
  .website-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .website-tile,
  .website-tile-preview img {
    transition: none;
  }
}

/* Approved clean dashboard: restrained typography, flat tiles, quiet status colors. */
.topbar { min-height: 64px; gap: 48px; }
.brand { gap: 10px; font-weight: 680; letter-spacing: -.6px; }
.brand-logo { display: block; width: 31px; height: 31px; object-fit: contain; flex-shrink: 0; }
.main-nav { gap: 29px; scrollbar-width: none; }
.main-nav::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.main-nav a { min-height: 64px; color: #697381; font-size: 12px; font-weight: 500; }
.main-nav a.active { color: #273447; font-weight: 650; }
.main-nav a.active::after { height: 1px; background: #263347; }
.profile-button { background: #fff; }
main { padding-top: 30px; }
.hero-row { min-height: 82px; }
.hero-row h1 { font-size: 26px; font-weight: 650; }
.hero-row p { font-size: 12px; }
.primary-action { border-radius: 3px; font-size: 11px; font-weight: 600; }
.server-metrics-panel { min-height: 92px; }
.production-metric { padding: 17px 24px; gap: 20px; }
.production-metric.storage-metric { gap: 6px; padding-top: 12px; padding-bottom: 12px; }
.production-metric .detail-label { font-size: 9px; font-weight: 600; letter-spacing: .6px; }
.production-metric strong { font-size: 19px; font-weight: 600; }
.production-spark { height: 34px; }
.production-spark path { stroke-width: 1.1; }
.production-spark.violet path { stroke: #8390b1; }
.production-spark.green path { stroke: #6d9687; }
.production-capacity { height: 3px; }
.production-capacity span { background: #8092a6; }
.toolbar { min-height: 80px; }
.tabs { gap: 20px; flex-wrap: nowrap; scrollbar-width: none; }
.tabs button { min-height: 32px; padding: 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: #77808e; background: transparent; font-size: 11px; font-weight: 500; white-space: nowrap; text-transform: none; letter-spacing: 0; flex-shrink: 0; }
.tabs button:hover, .tabs button.active { border-color: #334155; background: transparent; color: #263347; }
.tabs button.active { font-weight: 650; }
.search-wrap { position: relative; }
.dashboard-search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; fill: none; stroke: #788697; stroke-width: 1.3; stroke-linecap: round; pointer-events: none; }
.search-wrap input { min-height: 33px; border-radius: 3px; font-size: 11px; width: 350px; max-width: 30vw; padding-left: 35px; }
.dashboard-view { margin-top: 0; }
.website-tiles { gap: 24px 20px; }
.website-tile { border-radius: 3px; box-shadow: none; transition: border-color 150ms ease; }
.website-tile:hover, .website-tile:focus-visible { border-color: #aeb9c9; box-shadow: none; transform: none; }
.website-tile:focus-visible { outline: 2px solid #245dcc; outline-offset: 2px; }
.website-tile-preview { aspect-ratio: 1.85; background: #f4f5f6; }
.website-tile-preview.preview-unavailable::after { display: none; }
.website-tile-preview img, .website-tile:hover .website-tile-preview img { transform: none; transition: none; }
.website-tile-body { padding: 17px 17px 0; }
.website-tile-heading { grid-template-columns: 32px minmax(0, 1fr) 13px; gap: 11px; }
.tile-favicon { width: 32px; height: 32px; border-radius: 0; }
.website-tile-identity strong { font-size: 13px; font-weight: 600; line-height: 1.35; }
.website-tile-identity small { margin-top: 4px; color: #828b98; font-size: 10px; }
.website-tile-chevron { width: 13px; height: 13px; }
.website-tile-chevron path { stroke-width: 1.2; }
.website-tile-badges { display: flex; flex-wrap: wrap; margin: 14px 0 14px 43px; gap: 6px; }
.website-tile-preview-access { display: grid; gap: 5px; padding: 11px 0 13px; border-top: 1px solid #edf0f3; font-size: 11px; line-height: 1.5; }
.website-tile-preview-label { color: #64748b; font-weight: 600; }
.website-tile-preview-access.ready .website-tile-preview-label { color: #247552; }
.website-tile-preview-access.failed .website-tile-preview-label { color: #a45121; }
.website-tile-preview-access a, .website-tile-preview-address { min-width: 0; overflow-wrap: anywhere; }
.website-tile-preview-access a { color: #245dcc; text-decoration: underline; text-underline-offset: 3px; }
.website-tile-preview-access a:hover { color: #143b88; }
.website-tile-preview-access a:focus-visible { outline: 2px solid #245dcc; outline-offset: 3px; border-radius: 2px; }
.website-tile-preview-address { color: #64748b; }
.website-badge { display: inline-flex; align-items: center; min-height: 21px; padding: 0 6px; border: 1px solid #e3e7ec; border-radius: 2px; color: #737d8c; background: #f7f8fa; font-size: 9px; font-weight: 550; letter-spacing: .05px; }
.website-badge.production { color: #46705c; background: #f3f7f4; border-color: #dde8e0; }
.website-badge.development { color: #556c9b; background: #f3f5f9; border-color: #dfe5f0; }
.website-badge.maintenance { color: #8a7044; background: #faf7f1; border-color: #eadfcf; }
.website-tile-backup { display: flex; align-items: center; gap: 7px; min-height: 33px; border-top: 1px solid #edf0f3; color: #828a97; font-size: 9px; font-weight: 400; }
.website-tile-backup > svg { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.website-tile-backup.active > svg { color: #629279; }
.website-tile-backup.warning { color: #a65b39; }
.website-tile-backup > span { min-width: 0; }
.website-tile-backup > button { flex-shrink: 0; margin-left: auto; padding: 6px 0 6px 5px; border: 0; background: transparent; color: #747f8e; font-size: 9px; font-weight: 500; text-transform: none; }
.website-tile-backup > button:hover { color: #273447; text-decoration: underline; }
.website-tile-meta { min-height: 31px; margin: 0; padding: 0; border: 0; color: #939ba7; font-size: 9px; align-items: center; }

.wp-log-panel { padding-top: 20px; }
.wp-log-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 16px; color: #7a8492; font-size: 10px; }
.wp-log-list { display: grid; max-height: 68vh; overflow: auto; border: 1px solid #e3e7ec; background: #fff; }
.wp-log-entry { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: start; padding: 11px 14px; border-bottom: 1px solid #edf0f3; }
.wp-log-entry:last-child { border-bottom: 0; }
.wp-log-entry pre { margin: 0; color: #364152; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.wp-log-badge { padding: 3px 5px; border-radius: 2px; background: #f2f4f7; color: #687385; font-size: 9px; font-weight: 650; text-align: center; }
.wp-log-entry.fatal .wp-log-badge { background: #fbe9e9; color: #a53838; }
.wp-log-entry.warning .wp-log-badge { background: #fff1df; color: #996324; }
.wp-log-entry.notice .wp-log-badge { background: #eaf1fc; color: #456a9b; }
.wp-log-entry.deprecated .wp-log-badge { background: #f5edf9; color: #805b92; }
@media (max-width: 640px) { .wp-log-entry { grid-template-columns: 1fr; gap: 6px; } .wp-log-badge { width: max-content; } }
.production-table-footer { min-height: 58px; color: #8b94a2; font-size: 10px; }

.performance-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; color: #697586; white-space: nowrap; }
.performance-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.performance-status.green { color: #21794d; }
.performance-status.yellow { color: #9a6700; }
.performance-status.red { color: #b42332; }
.tile-performance { display: flex; gap: 12px; justify-content: space-between; font-size: 10px; color: #7b8593; padding: 9px 0; border-top: 1px solid #edf0f4; }
.rocket-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 21px 0 12px; border-top: 1px solid #e5e8ed; }
.rocket-metrics strong { display: block; margin-top: 8px; font-size: 21px; font-weight: 550; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.rocket-metrics strong small { font-size: 10px; font-weight: 400; letter-spacing: 0; color: #7b8593; }
.performance-timestamp, .performance-reasons { font-size: 11px; line-height: 1.7; color: #697586; }
.performance-actions { display: flex; align-items: center; gap: 16px; margin: 15px 0; }
.performance-report { font-size: 11px; }
.response-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 22px; }
.response-chart-heading h3 { margin: 0; font-size: 12px; font-weight: 600; }
.response-chart-heading h3 span, .response-chart-heading > span { color: var(--detail-muted); font-size: 10px; font-weight: 400; }
.response-chart { height: auto; max-height: 230px; margin-top: 8px; }
.response-axis { fill: #7b8593; font: 9px sans-serif; }
.response-point { fill: var(--detail-blue); }
.response-spark .line { fill: none; stroke: var(--detail-blue); stroke-width: 1.2; }
.response-spark { top: 36px; bottom: auto; height: 30px; }
.response-chart-note, .response-chart-empty { color: var(--detail-muted); font-size: 10px; line-height: 1.6; }
.response-chart-empty { padding: 20px 0; border-top: 1px solid var(--detail-line); margin-top: 18px; }
.instance-kpi > strong small { display: inline; margin: 0; font-size: 12px; font-weight: 400; }
@media (max-width: 640px) {
  .rocket-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rocket-performance .detail-section-heading { flex-wrap: wrap; gap: 12px; }
  .rocket-metrics strong { font-size: 18px; }
  .response-axis { font-size: 16px; }
}

@media (max-width: 1100px) {
  .topbar { gap: 24px; }
  .main-nav { gap: 21px; }
}
@media (max-width: 720px) {
  .topbar { gap: 12px; padding-top: 9px; }
  .main-nav a { min-height: 44px; }
  .hero-row { min-height: 100px; gap: 14px; }
  .hero-row p { max-width: 200px; }
  .toolbar { gap: 14px; }
  .tabs { gap: 19px; }
  .search-wrap input { width: 100%; max-width: none; }
  .server-metrics-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-metric { display: block; min-height: 104px; padding: 15px 14px; }
  .production-metric.storage-metric { padding: 15px 14px; }
  .production-metric:nth-child(2) { border-top: 0; border-left: 1px solid #e5e8ed !important; }
  .production-metric:nth-child(4) { border-left: 1px solid #e5e8ed !important; }
  .production-metric strong { font-size: 18px; }
  .production-spark { display: none; }
  .production-metric small { white-space: normal; }
  .website-tiles { gap: 17px; }
}

/* Hidden-site management: compact, inspectable assignments without resource changes. */
.toolbar { flex-wrap: wrap; }
.toolbar .tabs { min-width: 0; max-width: 100%; overflow-x: auto; }
.hidden-sites { width: 100%; padding-top: 8px; }
.hidden-sites .detail-section-heading p { max-width: 760px; line-height: 1.6; }
.hidden-sites-table { table-layout: fixed; margin-top: 20px; }
.hidden-sites-table th:first-child { width: 32%; }
.hidden-sites-table th:nth-child(2) { width: 30%; }
.hidden-sites-table th:nth-child(3) { width: 16%; }
.hidden-sites-table td { padding: 18px 14px; white-space: normal; overflow-wrap: anywhere; }
.hidden-sites-table td small { display: block; margin-top: 5px; color: #77808e; font-size: 11px; line-height: 1.5; }
.hidden-site-identity { display: flex; align-items: flex-start; gap: 12px; }
.hidden-site-identity > div { min-width: 0; }
.hidden-site-title { border: 0; padding: 0; background: none; color: #263347; font-size: 13px; font-weight: 600; text-align: left; line-height: 1.5; }
.hidden-site-title:hover { text-decoration: underline; }
.hidden-site-actions .secondary-button { margin: 3px 4px 3px 0; }
.hidden-site-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e5e8ed; color: #667085; font-size: 12px; line-height: 1.6; }
.hidden-site-notice .secondary-button { flex-shrink: 0; }
.visibility-feedback { padding: 12px 0; color: #286449; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.visibility-feedback.error { color: #b42318; }
@media (max-width: 720px) {
  .hidden-sites-table, .hidden-sites-table tbody, .hidden-sites-table tr, .hidden-sites-table td { display: block; width: 100%; min-width: 0; }
  .hidden-sites-table thead { display: none; }
  .hidden-sites-table tr { border-top: 1px solid #e5e8ed; padding: 14px 0; }
  .hidden-sites-table td { border: 0; height: auto; padding: 6px 0; }
  .hidden-sites-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #77808e; font-size: 10px; }
  .hidden-site-notice { align-items: flex-start; flex-direction: column; }
}

/* WordPress inventory: readable names, update emphasis and compact mobile cards. */
.wp-inventory-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--detail-line);
}
.wp-inventory-overview > div {
  min-width: 0;
  padding: 21px 18px;
}
.wp-inventory-overview > div + div { border-left: 1px solid var(--detail-line); }
.wp-inventory-overview strong { display: block; margin-top: 7px; color: var(--detail-ink); font-size: 22px; font-weight: 650; }
.wp-inventory-overview small { display: block; margin-top: 4px; color: var(--detail-muted); font-size: 11px; }
.wp-inventory-overview .has-updates strong { color: #a75c11; }
.wp-theme-inventory { padding-top: 30px; }
.wp-inventory-table { table-layout: fixed; }
.wp-inventory-table th:first-child { width: 39%; }
.wp-inventory-table th:nth-child(2) { width: 19%; }
.wp-inventory-table th:nth-child(3),
.wp-inventory-table th:nth-child(4),
.wp-inventory-table th:nth-child(5) { width: 14%; }
.wp-inventory-table td { height: 62px; white-space: normal; vertical-align: middle; }
.wp-inventory-table tr.wp-inventory-update-row { background: #fffaf3; }
.wp-inventory-identity { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.wp-inventory-identity strong { line-height: 1.35; overflow-wrap: anywhere; font-size: 12px; }
.wp-inventory-identity code { color: #758296; font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow-wrap: anywhere; }
.wp-inventory-link { border: 0; background: transparent; color: #2457c5; cursor: pointer; font-size: 11px; font-weight: 620; padding: 1px 0; }
.wp-inventory-link:hover { text-decoration: underline; }
.wp-inventory-status { display: inline-flex; align-items: center; gap: 8px; color: #52617a; }
.wp-inventory-status.is-active { color: #18774b; }
.wp-inventory-status.is-muted { color: #956018; }
.wp-inventory-version { font-variant-numeric: tabular-nums; }
.wp-inventory-update { display: inline-block; border-radius: 3px; background: #fff0d8; color: #91510a; font-size: 11px; font-weight: 650; padding: 5px 7px; }
.wp-inventory-auto { color: #6c7889; }
.wp-inventory-auto.is-on { color: #18774b; font-weight: 650; }
.wp-inventory-muted { color: #a7afbc; }
.wp-inventory-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--detail-line); border-bottom: 1px solid var(--detail-line); }
.wp-inventory-addresses > div { min-width: 0; padding: 18px; }
.wp-inventory-addresses > div + div { border-left: 1px solid var(--detail-line); }
.wp-inventory-addresses strong { display: block; margin-top: 7px; color: var(--detail-ink); font-size: 12px; font-weight: 620; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .wp-inventory-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-inventory-overview > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--detail-line); }
  .wp-inventory-overview > div:nth-child(4) { border-top: 1px solid var(--detail-line); }
  .wp-inventory-table { min-width: 0; }
  .wp-inventory-table thead { display: none; }
  .wp-inventory-table tbody, .wp-inventory-table tr { display: block; }
  .wp-inventory-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; border-top: 1px solid var(--detail-line); padding: 15px 12px; }
  .wp-inventory-table td { display: grid; align-content: start; gap: 3px; min-width: 0; height: auto; border: 0; padding: 0; font-size: 12px; white-space: normal; }
  .wp-inventory-table td:first-child { grid-column: 1 / -1; padding-bottom: 5px; }
  .wp-inventory-table td:not(:first-child)::before { content: attr(data-label); color: #7a8799; font-size: 9px; font-weight: 680; letter-spacing: .4px; text-transform: uppercase; }
  .wp-inventory-addresses { grid-template-columns: 1fr; }
  .wp-inventory-addresses > div + div { border-left: 0; border-top: 1px solid var(--detail-line); }
}

/* Site-specific DEG backup assessment. */
.backup-assessment { padding: 21px 0 2px; border-bottom: 1px solid var(--detail-line); }
.backup-assessment-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.backup-assessment-heading strong { color: var(--detail-ink); font-size: 14px; }
.backup-assessment-heading span { color: var(--detail-muted); font-size: 11px; }
.backup-assessment-heading code { color: var(--detail-ink); font: 11px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.backup-assessment-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 17px; border-top: 1px solid var(--detail-line); }
.backup-assessment-grid > div { min-width: 0; padding: 15px 12px; }
.backup-assessment-grid > div + div { border-left: 1px solid var(--detail-line); }
.backup-assessment-grid strong { display: block; margin-top: 7px; color: var(--detail-ink); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.backup-assessment p { margin: 0 0 14px; color: var(--detail-muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 700px) {
  .backup-assessment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-assessment-grid > div { border-bottom: 1px solid var(--detail-line); }
  .backup-assessment-grid > div + div { border-left: 0; }
  .backup-assessment-grid > div:nth-child(even) { border-left: 1px solid var(--detail-line); }
}

.config-panel .preview-settings-heading {
  margin-top: 28px;
}

.preview-access-panel {
  padding-top: 20px;
  margin-bottom: 28px;
}

.preview-access-panel a {
  overflow-wrap: anywhere;
}

.preview-access-panel .detail-copy {
  margin: 12px 0;
}
