:root {
  color-scheme: dark;
  --bg: #0b110e;
  --sidebar: #101713;
  --panel: #121b16;
  --panel-raised: #17211a;
  --panel-deep: #0e1511;
  --line: #526b59;
  --line-soft: #34473a;
  --green: #a8d5aa;
  --green-bright: #c2e6c2;
  --green-dim: #6e8b72;
  --amber: #d5b56e;
  --amber-dim: #806d46;
  --red: #dc9287;
  --text: #e0e8e0;
  --muted: #a4b7a7;
  --quiet: #778e7c;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 51% 0%, rgba(134, 173, 135, .035), transparent 48rem),
    linear-gradient(90deg, rgba(171, 203, 172, .012) 1px, transparent 1px);
  background-size: auto, 46px 46px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.auth-shell { min-height: 100vh; padding: 28px; display: grid; place-items: center; }
.auth-panel { width: min(100%, 580px); padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); background: rgba(18, 27, 22, .92); box-shadow: 0 22px 80px rgba(0, 0, 0, .28); }
.auth-brand { display: block; width: 112px; height: 110px; margin-bottom: 26px; object-fit: cover; }
.auth-panel h1 { max-width: 460px; margin: 7px 0 15px; color: var(--text); font-size: clamp(22px, 5vw, 34px); font-weight: 500; letter-spacing: .12em; line-height: 1.25; }
.auth-panel .lede { max-width: 430px; color: var(--muted); }
.auth-button { margin-top: 18px; text-decoration: none; }
.auth-footnote { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--quiet); font-size: 10px; }
::selection { background: #315238; color: #f2f7f2; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.boot-screen { padding: 3rem; color: var(--muted); }
.boot-screen .brand-image { margin-bottom: 24px; }

.site-header {
  min-height: 126px;
  padding: 16px 30px;
  display: grid;
  grid-template-columns: minmax(470px, 1.45fr) minmax(320px, .95fr) minmax(245px, .65fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 14, .94);
}
.brand-block {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-image {
  display: block;
  width: 88px;
  height: 86px;
  flex: 0 0 88px;
  object-fit: cover;
  object-position: center;
}
.brand-copy { min-width: 0; }
.brand-copy strong {
  display: block;
  color: #f0f3ef;
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-copy small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .17em;
  white-space: nowrap;
}
.brand-copy small b { padding: 0 14px; color: var(--green-dim); font-weight: 400; }
.processing-feed {
  min-width: 0;
  min-height: 86px;
  padding: 3px 16px 3px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  border-left: 1px solid var(--green-dim);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .015em;
  white-space: nowrap;
  overflow: hidden;
}
.processing-feed .anomaly { color: var(--amber); }
.processing-feed .quiet-feed { color: #55745b; }
.profile-box {
  min-width: 0;
  min-height: 64px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 22, 17, .65);
}
.profile-box > .icon { width: 34px; height: 34px; color: var(--text); }
.profile-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.signout-button { flex: 0 0 auto; }
.profile-role { color: var(--muted); font-size: 13px; }
.profile-select {
  width: 100%;
  min-width: 0;
  padding: 0 18px 0 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: #f0f3ef;
  font-size: 14px;
  cursor: pointer;
}
.profile-select option { color: #111; background: #f2f2f2; }
.profile-chevron { color: var(--muted); font-size: 22px; line-height: 1; }
.profile-static strong { color: #f0f3ef; font-weight: 500; font-size: 14px; }
.profile-static span { display: block; color: var(--muted); font-size: 13px; }

.workspace { min-height: calc(100vh - 126px); display: grid; grid-template-columns: 282px minmax(0, 1fr); }
.sidebar {
  min-height: calc(100vh - 126px);
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-left: 1px solid rgba(82, 107, 89, .4);
  background: var(--sidebar);
}
.sidebar-heading {
  position: relative;
  margin: 0 8px 20px;
  padding: 0 0 18px 20px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.sidebar-heading::before {
  position: absolute;
  top: 2px;
  bottom: 21px;
  left: 0;
  width: 3px;
  content: "";
  background: var(--amber);
}
.sidebar-heading strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .09em;
}
.sidebar-heading span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}
.nav-list { display: grid; gap: 7px; }
.nav-button {
  width: 100%;
  min-height: 50px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 15px;
  transition: background .14s ease, border-color .14s ease;
}
.nav-button .icon { width: 26px; height: 26px; color: var(--text); }
.nav-button:hover { border-color: var(--line-soft); background: rgba(36, 58, 41, .32); }
.nav-button.active {
  border-color: var(--green);
  background: #263f2c;
  color: #f1f6f0;
}
.nav-button.active .icon { color: #f1f6f0; }
.sidebar-foot {
  margin-top: auto;
  padding: 16px 8px 2px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}
.foot-mark { color: var(--green); font-size: 12px; }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { color: var(--muted); font-size: 10px; letter-spacing: .08em; font-weight: 500; }
.sidebar-foot div span { margin-top: 3px; color: var(--quiet); font-size: 10px; }

.main { min-width: 0; }
.content {
  width: 100%;
  max-width: 1550px;
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  padding: 24px 38px 0;
  display: flex;
  flex-direction: column;
}
.page-head {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: .08em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 2px;
  color: #f0f3ef;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .01em;
}
.heading-cursor { color: var(--amber); }
.lede { margin: 7px 0 0; color: var(--text); font-size: 15px; }
.page-meta { color: var(--muted); font-size: 12px; }
.notice {
  min-height: 47px;
  margin-bottom: 22px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--amber-dim);
  background: rgba(46, 39, 25, .28);
  color: #e2ca86;
  font-size: 13px;
}
.notice-icon { display: inline-flex; color: var(--amber); }
.notice-icon .icon { width: 25px; height: 25px; }
.notice strong { color: #f1d277; font-weight: 500; }
.notice-separator { padding: 0 6px; color: var(--amber); }

.world-card {
  margin-bottom: 24px;
  padding: 20px 26px 18px;
  border: 1px solid #829b83;
  background: linear-gradient(105deg, rgba(24, 41, 29, .28), transparent 68%), var(--panel);
}
.world-top {
  padding: 0 2px 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.metric-label { margin: 0 0 3px; color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.world-top h2 { margin: 0; color: #edf2ed; font-size: 27px; font-weight: 500; letter-spacing: .04em; }
.world-address { margin-top: 2px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.world-address .icon { width: 20px; height: 20px; color: var(--green); }
.world-address code { color: var(--green-bright); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.reserved-tag { margin-left: 6px; color: var(--quiet); font-size: 10px; }
.world-state {
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .04em;
}
.world-state i { width: 11px; height: 11px; border-radius: 50%; background: var(--green); }
.world-state.error { border-color: #805c50; color: var(--red); }
.world-state.error i { background: var(--red); }
.world-state.waiting { border-color: var(--amber-dim); color: var(--amber); }
.world-state.waiting i { background: var(--amber); }
.world-state.neutral i { background: var(--quiet); }
.world-stats {
  padding: 13px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.world-stat { min-width: 0; padding: 0 16px; border-right: 1px solid var(--line); }
.world-stat:first-child { padding-left: 10px; }
.world-stat:last-child { border-right: 0; }
.world-stat > span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.world-stat > strong { display: block; margin-top: 3px; color: var(--text); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.world-stat > strong.ready { color: var(--green-bright); }
.world-stat > strong.waiting { color: var(--amber); }
.world-stat > strong.error { color: var(--red); }
.world-stat small { color: var(--muted); font-size: 10px; }
.world-stat .technical { font-size: 13px; }
.error-note { margin: 12px 0 0; padding: 10px 12px; border-left: 2px solid var(--red); background: rgba(83, 43, 38, .25); color: var(--text); font-size: 12px; }
.error-note strong { color: var(--red); }
.button-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.instance-actions .btn { flex: 1 1 160px; }
.btn {
  min-height: 46px;
  padding: 9px 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  transition: background .14s ease, border-color .14s ease;
}
.btn .icon { width: 21px; height: 21px; }
.btn:hover:not(:disabled) { border-color: var(--green); background: rgba(44, 67, 48, .35); }
.btn:active:not(:disabled) { background: #263f2c; }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.primary { border-color: var(--green); background: #263f2c; color: #eef5ec; }
.btn.primary:hover:not(:disabled) { background: #31533a; }
.btn.danger { border-color: #76504b; color: var(--red); }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.text-link { padding: 3px 0; border: 0; background: transparent; color: var(--green-bright); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #e7f7e6; }
.lower-grid { margin-bottom: 22px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 20px; align-items: stretch; }
.panel {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.panel-title {
  min-height: 31px;
  margin-bottom: 8px;
  padding: 0 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-title h2 {
  position: relative;
  margin: 0;
  padding-left: 13px;
  color: #edf2ed;
  font-size: 17px;
  font-weight: 500;
}
.panel-title h2::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--amber);
}
.panel-kicker { color: var(--quiet); font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.detail-list { display: grid; }
.detail-list > div {
  min-height: 37px;
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list > div > span { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 12px; }
.detail-list .icon { width: 20px; height: 20px; color: var(--muted); }
.detail-list code, .detail-list strong { color: var(--text); font-size: 12px; font-weight: 400; text-align: right; overflow-wrap: anywhere; }
.activity-list { display: grid; }
.activity-item {
  min-height: 42px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.activity-item:last-child { border-bottom: 0; }
.activity-time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.activity-copy { min-width: 0; color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.activity-copy strong { margin-right: 4px; color: #f1f4f0; font-weight: 500; }
.activity-copy small { display: block; margin-top: 2px; color: var(--quiet); font-size: 9px; }
.empty { padding: 22px; border: 1px dashed var(--line); color: var(--muted); text-align: center; font-size: 12px; }
.empty strong { display: block; margin-bottom: 5px; color: var(--text); }
.metric-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric {
  min-height: 100px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.metric span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .09em; }
.metric strong { display: block; margin-top: 9px; color: var(--green-bright); font-size: 25px; line-height: 1.15; font-weight: 500; }
.metric small { display: block; margin-top: 4px; color: var(--quiet); font-size: 10px; }
.admin-grid { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
.integration-list { display: grid; }
.integration { min-height: 35px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.integration:last-child { border-bottom: 0; }
.integration b { color: var(--amber); font-size: 9px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; text-align: right; }
.activity-panel { margin-bottom: 22px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td strong { display: block; color: var(--text); font-weight: 500; }
td code { display: block; color: var(--green); font-size: 9px; }
.mini-state, .role-tag { display: inline-flex; padding: 3px 6px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; white-space: nowrap; }
.mini-state.ready, .mini-state.running, .role-tag.admin { border-color: var(--green-dim); color: var(--green-bright); }
.mini-state.error { border-color: #76504b; color: var(--red); }
.mini-state.installing, .mini-state.repairing, .mini-state.restarting { border-color: var(--amber-dim); color: var(--amber); }
.role-tag.admin { border-color: var(--amber-dim); color: var(--amber); }
.role-control { min-width: 116px; }
.spaced { margin: 14px 0 0; }
.helper { color: var(--quiet); font-size: 10px; }
.owner-select, .role-control {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel-deep);
  color: var(--text);
}
.instance-list { display: grid; gap: 18px; }
.instance-panel { padding: 17px; border: 1px solid var(--line); background: var(--panel); }
.assignment-row { margin: 0 0 14px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.assignment-row label { color: var(--muted); font-size: 12px; }
.admin-action-row { margin-top: 14px; padding-top: 12px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); }
.role-tag { color: var(--muted); }

.site-footer {
  margin-top: auto;
  min-height: 56px;
  padding: 12px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  letter-spacing: .09em;
}
.site-footer b { padding: 0 11px; color: var(--muted); font-weight: 400; }
.footer-state { display: inline-flex; align-items: center; gap: 10px; }
.footer-state i { width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.site-footer .footer-state b { padding: 0 2px; }

.modal-root:not(:empty) {
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 6, .82);
}
.modal {
  width: min(640px, 100%);
  max-height: min(90vh, 850px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #121b16;
}
.modal-head { padding: 19px 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 500; }
.modal-head .eyebrow { color: var(--amber); }
.modal-body { padding: 10px 22px 20px; }
.modal-step { padding: 13px 0; display: flex; gap: 13px; border-bottom: 1px solid var(--line-soft); }
.modal-step:last-of-type { border-bottom: 0; }
.step-number { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border: 1px solid var(--green-dim); color: var(--green); font-size: 10px; }
.modal-step strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 13px; font-weight: 500; }
.modal-step p { margin: 0; color: var(--muted); font-size: 12px; }
.license-field { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel-deep); color: var(--quiet); }
.license-field:disabled { opacity: .75; cursor: not-allowed; }
.modal-actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 10px; }
.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 20px;
  max-width: min(430px, calc(100vw - 44px));
  padding: 11px 14px;
  border: 1px solid var(--green-dim);
  background: #17231a;
  color: var(--green-bright);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #76504b; color: var(--red); background: #281b19; }

@media (max-width: 1260px) {
  .site-header { grid-template-columns: minmax(400px, 1.3fr) minmax(260px, .8fr) minmax(220px, .7fr); gap: 14px; padding-inline: 20px; }
  .brand-block { gap: 16px; }
  .brand-copy strong { letter-spacing: .16em; }
  .brand-copy small { font-size: 11px; letter-spacing: .12em; }
  .processing-feed { padding-left: 17px; font-size: 11px; }
  .workspace { grid-template-columns: 240px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; }
  .content { padding-inline: 25px; }
}
@media (max-width: 980px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 250px; }
  .processing-feed { display: none; }
  .workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .lower-grid, .admin-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header { min-height: 0; padding: 12px 14px; grid-template-columns: 1fr; gap: 10px; }
  .brand-block { gap: 13px; }
  .brand-image { width: 59px; height: 58px; flex-basis: 59px; }
  .brand-copy strong { font-size: clamp(15px, 5vw, 22px); letter-spacing: .1em; white-space: normal; }
  .brand-copy small { margin-top: 5px; font-size: 9px; letter-spacing: .06em; white-space: normal; }
  .brand-copy small b { padding: 0 4px; }
  .profile-box { min-height: 48px; padding: 5px 9px; }
  .profile-box > .icon { width: 28px; height: 28px; }
  .profile-select, .profile-static strong { font-size: 12px; }
  .profile-role, .profile-static span { font-size: 10px; }
  .workspace { min-height: calc(100vh - 123px); display: block; }
  .sidebar { position: static; min-height: auto; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); }
  .sidebar-heading, .sidebar-foot { display: none; }
  .nav-list { display: flex; gap: 5px; overflow-x: auto; }
  .nav-button { width: auto; min-height: 42px; flex: 0 0 auto; padding: 7px 10px; gap: 7px; font-size: 11px; }
  .nav-button .icon { width: 18px; height: 18px; }
  .content { min-height: calc(100vh - 175px); padding: 21px 14px 0; }
  .page-head { margin-bottom: 16px; }
  h1 { font-size: clamp(23px, 7vw, 30px); }
  .lede { font-size: 13px; }
  .notice { margin-bottom: 15px; padding: 10px 11px; align-items: flex-start; font-size: 11px; }
  .world-card { margin-bottom: 16px; padding: 14px 13px; }
  .world-top { flex-direction: column; padding-bottom: 12px; }
  .world-top h2 { font-size: 20px; }
  .world-address code { font-size: 12px; }
  .reserved-tag { margin-left: 0; }
  .world-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 13px; }
  .world-stat { padding: 0 8px; }
  .world-stat:nth-child(2) { border-right: 0; }
  .world-stat > strong { font-size: 12px; }
  .world-stat .technical { font-size: 11px; }
  .instance-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .btn { width: 100%; min-height: 42px; font-size: 12px; }
  .lower-grid { margin-bottom: 16px; gap: 12px; }
  .panel { padding: 13px 12px; }
  .panel-title h2 { font-size: 14px; }
  .activity-item { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
  .activity-time, .activity-copy { font-size: 10px; }
  .metric-grid { gap: 8px; }
  .metric { min-height: 82px; padding: 10px; }
  .metric strong { font-size: 20px; }
  .site-footer { min-height: 55px; padding: 10px 0; align-items: flex-start; flex-direction: column; gap: 5px; font-size: 9px; letter-spacing: .04em; }
  .site-footer b { padding: 0 4px; }
  .site-footer .footer-state { gap: 6px; }
  .site-footer .footer-state b { padding: 0; }
  .assignment-row { align-items: flex-start; flex-direction: column; }
  .owner-select, .role-control { width: 100%; }
  .table-wrap { margin-inline: -4px; width: calc(100% + 8px); }
  th, td { padding-inline: 7px; }
}

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


.nav-list { align-content: start; }
.nav-section-label { padding: 13px 12px 2px; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.admin-nav-label { margin-top: 7px; border-top: 1px solid var(--line); padding-top: 14px; }

.lifecycle-test-note { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--amber-dim); background: rgba(83, 68, 38, .18); color: var(--amber); font-size: 11px; letter-spacing: .04em; line-height: 1.55; }
