.admin {
  --admin-bg: #11100e;
  --admin-panel: #1a1814;
  --admin-raised: #211e19;
  --admin-line: #c8a56c33;
  --admin-text: #f7f1e6;
  --admin-muted: #cfc4b0;
  --admin-gold: #e4b969;
  --admin-space: clamp(15px, 2.8vw, 37px);
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin button, .admin a, .admin input, .admin select { -webkit-tap-highlight-color: transparent; }
.admin .button.primary { background: var(--admin-gold); color: #21180d; border-color: var(--admin-gold); }
.admin .button.primary:hover { background: #f2ce87; }
.admin .button.secondary { background: #ffffff08; border-color: var(--admin-line); color: var(--admin-text); }
.admin .button.secondary:hover { background: #ffffff16; border-color: #e8b65d86; }
.admin a:focus-visible, .admin button:focus-visible, .admin input:focus-visible, .admin select:focus-visible {
  outline: 2px solid var(--admin-gold); outline-offset: 3px;
}
.admin .skip-link { color: #21180d; }

.admin-layout { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; }
.admin-sidebar {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  display: flex; flex-direction: column; gap: 23px; padding: 24px 14px;
  background: #181510; border-inline-end: 1px solid var(--admin-line);
}
.admin-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--admin-text); }
.admin-brand img { border: 1px solid var(--admin-line); border-radius: 12px; }
.admin-brand b { display: block; color: var(--admin-gold); letter-spacing: .18em; font-size: 1.3rem; text-align: start; line-height: 1.3; }
.admin-brand small { color: var(--admin-muted); }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 8px; padding: 10px;
  font-size: .9rem; color: var(--admin-muted); border: 1px solid transparent; border-radius: 8px;
}
.admin-sidebar nav a .icon { width: 18px; height: 18px; }
.admin-sidebar nav a:hover { background: #ffffff0a; color: var(--admin-text); }
.admin-sidebar nav a[aria-current=page] { color: #f3d298; border-color: var(--admin-line); background: #e5ae5720; }
.admin-logout { margin-top: auto; }
.admin-logout .button { width: 100%; }
.admin-main { min-width: 0; max-width: 1540px; width: 100%; margin-inline: auto; padding: var(--admin-space); }

.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.admin-heading h1, .login-card h1 { font-size: clamp(1.85rem,4vw,3.1rem); line-height: 1.32; }
.admin-heading p, .login-card > p { color: var(--admin-muted); margin-top: 5px; }
.management-directory { margin-top: 24px; }
.management-directory h2 { margin-bottom: 10px; font-size: 1.23rem; }
.metric-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-bottom: 17px; }
.metric, .admin-card {
  min-width: 0; background: var(--admin-panel); border: 1px solid var(--admin-line); border-radius: 12px;
}
.metric {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 8px; padding: 13px;
}
.metric .metric-icon { grid-column: 1/-1; }
.metric > span:not(.metric-icon) { color: var(--admin-muted); font-size: .8rem; }
.metric strong { font-size: 1.34rem; line-height: 1.1; color: var(--admin-text); }
.metric > .icon { position: absolute; inset-block-start: 17px; inset-inline-end: 12px; width: 16px; color: var(--admin-gold); }
.metric-icon {
  display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--admin-gold);
  border-radius: 8px; border: 1px solid var(--admin-line); background: #d4a65c1c;
}
.metric-icon .icon { width: 18px; height: 18px; }
.metric:hover, a.admin-card:hover { border-color: #e3b96c9c; background: var(--admin-raised); }

.graph-panel {
  border: 1px solid var(--admin-line); border-radius: 15px; overflow: hidden;
  background: radial-gradient(ellipse at 60% 73%,#252132 0, #181614 53%);
}
.graph-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 17px; }
.graph-heading h2 { font-size: 1.23rem; }
.graph-heading h1 { font-size: clamp(1.65rem,3.5vw,2.65rem); line-height: 1.28; }
.graph-heading p { color: var(--admin-muted); font-size: .85rem; }
.health-chip {
  padding: 4px 8px; border: 1px solid var(--admin-line); border-radius: 5px;
  color: var(--admin-gold); background: #e4ab5010; white-space: nowrap; font-size: .73rem;
}
.graph-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; border-block: 1px solid var(--admin-line); padding: 10px 17px; }
.admin label { display: grid; gap: 5px; color: var(--admin-muted); font-size: .83rem; min-width: 0; }
.admin input:not([type=hidden]) {
  min-width: 0; min-height: 42px; width: 100%; border: 1px solid var(--admin-line); border-radius: 7px;
  padding: 7px 10px; background: #13120f; color: var(--admin-text); font: inherit; color-scheme: dark;
}
.admin input::placeholder { color: #b1a691; }
.graph-controls label:first-child { flex: 1 1 200px; max-width: 380px; }
.graph-controls label:nth-child(2) { flex: 1 1 150px; max-width: 245px; }
.graph-controls .button { min-height: 42px; }
.graph-grid { display: grid; grid-template-columns: minmax(0,1fr) 220px; }
.graph-stage { position: relative; display: grid; place-items: center; min-height: 320px; min-width: 0; }
#admin-graph { display: block; width: min(100%, 720px); aspect-ratio: 1; max-height: 570px; }
.graph-empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--admin-muted); padding: 25px; text-align: center; }
.graph-inspector { min-width: 0; border-inline-start: 1px solid var(--admin-line); background: #10100d42; padding: 15px; }
.legend-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: .8rem; color: var(--admin-muted); }
.legend-row > svg { flex-shrink: 0; }
.graph-selection { display: grid; gap: 5px; border-top: 1px solid var(--admin-line); margin-top: 13px; padding-top: 10px; overflow-wrap: anywhere; }
.graph-record, .graph-neighbors a, .detail-section a, .links-list a:not(.button) { color: var(--admin-gold); text-decoration: underline; text-underline-offset: 4px; }
.graph-count, .graph-selection p { color: var(--admin-muted); font-size: .8rem; margin-top: 7px; }
.graph-neighbors { margin: 0; padding-inline-start: 18px; }
.graph-neighbors li { padding-block: 5px; }
.graph-neighbors small { display: block; color: var(--admin-muted); }
.graph-ring { fill: none; stroke: #ffeac81a; stroke-width: 1; stroke-dasharray: 3 6; }
.graph-sector { fill: none; stroke-width: 2; opacity: .58; }
.graph-edge { fill: none; opacity: .44; stroke-width: 1.15; transition: opacity .18s; }
.graph-edge.dim { opacity: .08; }
.graph-edge.hot { opacity: 1; stroke-width: 2.25; }
.graph-pulse { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-dasharray: 4 96; opacity: .88; animation: graph-travel 7s linear infinite; }
.graph-pulse.dim { opacity: .07; }
.phase-1 { animation-delay: -1.5s; }
.phase-2 { animation-delay: -3s; }
.phase-3 { animation-delay: -4.5s; }
@keyframes graph-travel { to { stroke-dashoffset: -100; } }
#graph-more { margin-top: 8px; }
.graph-label { fill: #f9f0de; font-size: 11px; stroke: #14120f; stroke-width: 2px; paint-order: stroke; unicode-bidi: plaintext; }
.graph-center { fill: #dabc89; font-size: 22px; letter-spacing: .25em; direction: ltr; }
.graph-node { cursor: pointer; outline: none; transition: opacity .18s; }
.graph-node.dim { opacity: .28; }
.graph-node:focus-visible circle, .graph-node[aria-pressed=true] circle { stroke: #fff6d9; stroke-width: 2.5; }

.admin-search { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-search label { width: min(100%, 450px); }
.record-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.admin-card { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 17px; overflow-wrap: anywhere; }
.admin-card h2 { font-size: 1.08rem; color: var(--admin-text); }
.admin-card p { color: var(--admin-muted); font-size: .86rem; }
.detail-link { display: inline-flex; align-items: center; gap: 7px; color: var(--admin-gold); font-size: .82rem; }
.detail-link .icon { width: 15px; }
.admin-empty { grid-column: 1/-1; padding: 20px; color: var(--admin-muted); border: 1px dashed var(--admin-line); border-radius: 10px; }
.admin-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.admin-pagination p { color: var(--admin-muted); }
.admin-form { display: grid; gap: 9px; width: 100%; }
.admin-form .button { margin-top: 4px; justify-self: start; }
.links-list { margin-top: 20px; }
.links-list ul, .detail-section ul { list-style: none; padding: 0; }
.links-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-bottom: 1px solid var(--admin-line); padding-block: 10px; }
.links-list li div { flex: 1 1 200px; }
.links-list li strong { font-size: .82rem; color: var(--admin-muted); }
.links-list li form { margin: 0; }
.admin-error, .admin-feedback { padding: 9px 12px; border-radius: 6px; margin: 0 0 10px; }
.admin-error { color: #ffd5ce; background: #592f29; }
.admin-feedback { color: #dbefe8; background: #253b33; }

.admin-gate {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 25%, #342817, var(--admin-bg) 65%);
}
.login-card { width: min(100%, 425px); border: 1px solid var(--admin-line); border-radius: 15px; background: var(--admin-panel); padding: clamp(17px,5vw,35px); }
.login-layout { width: min(100%,1110px); display: grid; grid-template-columns: minmax(300px,425px) minmax(0,1fr); align-items: center; gap: clamp(18px,4vw,52px); }
.login-preview { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--admin-line); border-radius: 18px; background: radial-gradient(ellipse at 49% 52%,#282346,#171619 55%,#11100e); }
#login-flow { width: 100%; max-height: 560px; display: block; pointer-events: none; }
.preview-edge { fill: none; opacity: .3; stroke-width: .83; }
.preview-tick { fill: none; opacity: .7; stroke-width: 1.1; }
.preview-web { animation: preview-breathe 7s ease-in-out infinite alternate; }
@keyframes preview-breathe { to { opacity: .62; } }
.login-card h1 { margin-top: 17px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.login-card > p { margin-bottom: 16px; }
.login-card .admin-form .button { width: 100%; }

#record-dialog { width: min(760px, calc(100vw - 24px)); max-height: 87dvh; padding: 0; overflow-y: auto; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-panel); color: var(--admin-text); }
#record-dialog::backdrop { background: #050307ce; }
.dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--admin-line); background: #1a1814; }
.dialog-close { min-height: 35px; }
.dialog-content { padding: 14px; }
.detail-panel { padding: 16px; border: 1px solid var(--admin-line); border-radius: 9px; background: var(--admin-panel); overflow-wrap: anywhere; }
.detail-category { color: var(--admin-gold); font-size: .8rem; }
.detail-panel > p:not(.detail-category) { color: var(--admin-muted); }
.detail-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-block: 14px; gap: 0 12px; }
.detail-facts > div { border-bottom: 1px solid var(--admin-line); padding-block: 7px; }
.detail-facts dt { color: var(--admin-muted); font-size: .77rem; }
.detail-facts dd { margin: 0; white-space: pre-wrap; }
.detail-section { margin-top: 13px; }
.detail-section h3 { font-size: .99rem; }
.detail-section li { display: grid; gap: 3px; padding: 6px 0; border-bottom: 1px solid var(--admin-line); }
.detail-section li span { color: var(--admin-muted); font-size: .79rem; }

@media (max-width: 1080px) {
  .admin-layout { grid-template-columns: 190px minmax(0,1fr); }
  .graph-grid { grid-template-columns: minmax(0,1fr) 165px; }
  .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; gap: 8px; padding: 10px 14px; border-inline-end: 0; border-bottom: 1px solid var(--admin-line); display: grid; grid-template-columns: 1fr auto; }
  .admin-sidebar nav { grid-column: 1/-1; grid-row: 2; display: flex; overflow-x: auto; white-space: nowrap; }
  .admin-logout { grid-column: 2; grid-row: 1; }
  .admin-sidebar nav a { font-size: .83rem; padding: 6px 8px; }
}
@media (max-width: 620px) {
  .metric-grid, .record-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .graph-grid, .detail-facts { grid-template-columns: minmax(0,1fr); }
  .graph-stage { min-height: 275px; }
  .graph-inspector { border-inline-start: 0; border-top: 1px solid var(--admin-line); }
  #graph-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .graph-heading, .admin-heading { align-items: start; flex-wrap: wrap; }
  .graph-label { font-size: 16px; }
  .login-layout { grid-template-columns: 1fr; justify-items: center; }
  .login-preview { width: min(100%,425px); }
  #login-flow { max-height: 290px; }
}
@media (max-width: 400px) { .record-grid { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  .graph-pulse { display: none; }
  .preview-web { animation: none; }
}



.admin-layout { transition: grid-template-columns .24s ease; }
.admin-menu { width: 100%; min-width: 0; }
.admin-menu summary {
  display: grid; place-items: center; width: 40px; height: 40px;
  cursor: pointer; list-style: none; border: 1px solid var(--admin-line);
  border-radius: 10px; background: #e4b96912; color: var(--admin-gold);
}
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu summary:hover { background: #e4b96926; }
.admin-menu summary:focus-visible { outline: 2px solid var(--admin-gold); outline-offset: 3px; }
.menu-lines { width: 17px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -5px, 0 5px; }
.menu-body { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
.admin-menu .admin-logout { margin-top: 8px; }
@media (min-width: 861px) {
  .admin-sidebar { overflow-x: hidden; }
  .admin-layout:has(.admin-menu:not([open])) { grid-template-columns: 65px minmax(0, 1fr); }
  .admin-sidebar:has(.admin-menu:not([open])) { padding-inline: 12px; }
  .menu-body { min-width: 158px; }
}
@media (max-width: 860px) { .admin-menu { grid-column: 1/-1; } }

.graph-grid { grid-template-columns: minmax(0,1fr); }
.graph-stage {
  display: block; min-height: 0; overflow: auto;
  background: radial-gradient(ellipse at center, #252137 0%, #1b1822 45%, #181510 95%);
}
#admin-graph { width: 100%; aspect-ratio: 1150 / 730; max-height: none; }
.graph-inspector { border-inline-start: 0; border-top: 1px solid var(--admin-line); padding: 15px 19px; }
#graph-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.graph-edge, .graph-pulse, .graph-ring, .graph-sector, .graph-center { pointer-events: none; }
.graph-edge-hit { fill: none; stroke: transparent; stroke-width: 14px; pointer-events: stroke; cursor: pointer; outline: none; }
.graph-edge-hit:focus-visible { stroke: #f2ce87a8; stroke-width: 2px; }
.graph-label { font-size: 17px; stroke-width: 3px; }
.graph-star { fill: #e5d5f4; opacity: .22; pointer-events: none; }
.graph-floating circle { filter: drop-shadow(0 0 7px #7de1cb90); }

.link-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(48px,18%) minmax(0,1fr); align-items: center; margin-bottom: 18px; }
.link-picker {
  position: relative; min-width: 0; z-index: 1; border: 1px solid var(--admin-line);
  border-radius: 16px; padding: clamp(14px,2.4vw,24px); background: linear-gradient(155deg,#282217,var(--admin-panel) 50%);
  box-shadow: 0 12px 32px #08070357;
}
.link-picker label { font-weight: 600; gap: 8px; }
.link-picker label + label { margin-top: 17px; }
.link-picker select[size] { min-height: 180px; }
.link-picker option { padding: 7px 9px; }
.link-connector { width: 100%; height: 150px; overflow: visible; pointer-events: none; }
.link-connector path { fill: none; stroke: #e6bf7d; }
.link-connector path:nth-child(6n + 3), .link-connector path:nth-child(6n + 4) { stroke: #aaa5ff; }
.link-connector path:nth-child(6n + 5), .link-connector path:nth-child(6n + 6) { stroke: #7de1cb; }
.link-wire { opacity: .22; stroke-width: .9; }
.link-signal { opacity: .88; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 4 96; animation: link-travel 5.5s linear infinite; }
.link-signal.phase-1 { animation-delay: -1.4s; }
.link-signal.phase-2 { animation-delay: -2.8s; }
.link-signal.phase-3 { animation-delay: -4.1s; }
@keyframes link-travel { to { stroke-dashoffset: 100; } }
@media (max-width: 670px) {
  .link-pair { grid-template-columns: 1fr; }
  .link-connector { justify-self: center; width: 80px; height: 55px; transform: rotate(-90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .admin-layout { transition: none; }
  .link-signal { display: none; }
}

/* Overview keeps the graph and the five dossier shortcuts in the same viewport. */
.admin-overview {
  position: relative; min-height: 100vh; min-height: 100dvh;
}
.admin-layout.admin-overview .admin-main {
  display: grid; grid-template-rows: minmax(0,1fr) auto;
  min-height: 0; gap: clamp(8px, 1.5vh, 16px); padding: clamp(10px, 2vmin, 24px);
}
.admin-overview .admin-sidebar { z-index: 2; }
.admin-overview .menu-body {
  position: absolute; inset-block-start: 0; inset-inline-start: 100%;
  width: min(220px, calc(100vw - 76px)); max-height: 100dvh; overflow: auto;
  padding: 16px; background: var(--admin-panel);
  border: 1px solid var(--admin-line); border-radius: 0 0 0 13px;
  box-shadow: 0 14px 30px #0008;
}
.admin-overview .graph-panel { display: grid; grid-template-rows: auto minmax(0,1fr); }
.admin-overview .graph-heading { align-items: center; padding: 10px 16px; }
.admin-overview .graph-heading h1 { font-size: clamp(1.4rem, 2.8vmin, 2.35rem); }
.admin-overview .health-chip { min-width: 0; white-space: normal; }
.admin-overview .graph-grid { min-height: 0; grid-template-columns: minmax(0,1fr) clamp(180px, 20vw, 250px); }
.admin-overview .graph-stage { display: grid; grid-template-rows: minmax(0,1fr); place-items: center; min-height: 0; overflow: hidden; }
.admin-overview #admin-graph { width: 100%; height: 100%; min-height: 0; max-width: 1080px; max-height: 540px; aspect-ratio: auto; }
.admin-overview .graph-label { font-size: 23px; font-weight: 600; stroke-width: 4px; stroke-linejoin: round; }
.admin-overview .graph-inspector {
  display: flex; flex-direction: column; min-height: 0; overflow: auto;
  border-top: 0; border-inline-start: 1px solid var(--admin-line); padding: 10px 14px;
}
.admin-overview #graph-legend { gap: 0 12px; }
.admin-overview .legend-row { padding-block: 2px; }
.graph-selection:focus-visible { outline-offset: -2px; }
.admin-overview .graph-selection { gap: 3px; flex: 1 0 auto; align-content: start; margin-top: 8px; padding-top: 7px; }
.admin-overview .graph-count, .admin-overview .graph-selection p { margin-top: 4px; }
.admin-overview .graph-meta { margin-block: 5px; }
.admin-overview #graph-more { font-size: .75rem; min-height: 28px; padding: 3px 8px; }

.admin-overview .management-directory { margin: 0; }
.admin-overview .management-directory h2 { margin-bottom: 7px; font-size: 1.04rem; }
.admin-overview .metric-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(7px,1vw,14px); margin: 0; }
.admin-overview .metric {
  grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: auto auto;
  min-height: clamp(78px,12dvh,116px); align-content: center;
  column-gap: 10px; row-gap: 4px; padding: clamp(9px,1.2vw,17px);
  background: linear-gradient(145deg,#2a2219,var(--admin-panel) 75%);
}
.admin-overview .metric:hover { background: var(--admin-raised); }
.admin-overview .metric .metric-icon { grid-column: 1; grid-row: 1 / 3; width: 36px; height: 36px; }
.admin-overview .metric .metric-icon .icon { width: 19px; height: 19px; }
.admin-overview .metric > span:not(.metric-icon) { grid-column: 2 / -1; font-size: .89rem; color: var(--admin-text); font-weight: 600; line-height: 1.45; }
.admin-overview .metric strong { grid-column: 2; font-size: 1.3rem; color: var(--admin-gold); }
.admin-overview .metric > .icon { position: static; grid-column: 3; align-self: end; opacity: .72; }

@media (min-height: 390px) { .admin-overview { height: 100dvh; } }
@media (min-width: 861px) {
  .admin-layout.admin-overview { grid-template-columns: 65px minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
  .admin-overview .admin-sidebar { position: relative; height: 100%; overflow: visible; padding-inline: 12px; }
}
@media (max-width: 860px) {
  .admin-overview { grid-template-rows: auto minmax(0,1fr); }
  .admin-overview .admin-sidebar { position: relative; padding-block: 5px; overflow: visible; }
  .admin-overview .menu-body {
    inset-block-start: 100%; inset-inline-start: 0; min-width: 0; max-height: calc(100dvh - 52px);
  }
  .admin-overview .admin-sidebar nav { display: grid; white-space: normal; }
}
@media (max-width: 650px) {
  .admin-overview .graph-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) clamp(86px,18dvh,126px); }
  .admin-overview .graph-heading { padding: 5px 8px; flex-wrap: nowrap; gap: 5px; }
  .admin-overview .health-chip { font-size: .63rem; padding: 2px 4px; }
  .admin-overview .graph-inspector { border-inline-start: 0; border-top: 1px solid var(--admin-line); padding: 4px 8px; }
  .admin-overview #graph-legend { gap: 0 8px; }
  .admin-overview .legend-row { font-size: .71rem; gap: 3px; padding: 0; }
  .admin-overview .graph-label { font-size: 26px; }
  .admin-overview .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .admin-overview .metric { min-height: 61px; column-gap: 7px; padding: 7px; }
  .admin-overview .metric .metric-icon { width: 30px; height: 30px; }
  .admin-overview .metric .metric-icon .icon { width: 16px; height: 16px; }
  .admin-overview .metric > span:not(.metric-icon) { font-size: .81rem; }
  .admin-overview .metric strong { font-size: 1.08rem; }
}
@media (max-height: 389px) {
  .admin-overview .graph-stage { min-height: 155px; }
  .admin-overview .graph-inspector { max-height: 196px; }
}

@media (min-width: 540px) and (max-width: 650px) and (max-height: 470px) {
  .admin-overview .graph-grid { grid-template-columns: minmax(0,1fr) 154px; grid-template-rows: minmax(0,1fr); }
  .admin-overview .graph-inspector { border-top: 0; border-inline-start: 1px solid var(--admin-line); }
  .admin-overview .metric-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .admin-overview .metric { grid-template-columns: minmax(0,1fr) auto; }
  .admin-overview .metric .metric-icon { display: none; }
  .admin-overview .metric > span:not(.metric-icon), .admin-overview .metric strong { grid-column: 1; }
  .admin-overview .metric > .icon { grid-column: 2; }
}
