/* Oversquare dashboard
 * Brand colours from the Oversquare logo: black, aqua and pink. Aqua and pink
 * are fills (too light for text); links use a deep teal from the same hue. Hostnames, IPs and versions
 * are set in Plex Mono because they are identifiers you copy and compare.
 */

@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans.woff") format("woff"); font-weight: 300 700; font-stretch: 85% 100%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
	--paper: #F3F5F6;
	--surface: #FFFFFF;
	--ink: #000000;
	--ink-2: #4A5056;
	--ink-3: #757C83;
	--line: #DCE1E4;
	--line-soft: #EBEEF0;
	--aqua: #6DD0DF;
	--aqua-soft: #E2F6F9;
	--pink: #FFBAC2;
	--pink-soft: #FFEDEF;
	--accent: #0B6E7E;
	--accent-soft: var(--aqua-soft);
	--g: #18915A;
	--a: #C98300;
	--r: #D2412C;
	--n: #A9B4BF;
	--rail: #FFFFFF;
	--sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
	--r-sm: 4px;
	--r-md: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.op { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.5 var(--sans); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #000; box-shadow: 0 0 0 4px var(--aqua); outline-offset: 2px; border-radius: 2px; }
code { font: 400 0.92em var(--mono); color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.op-skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; }
.op-skip:focus { left: 8px; }

/* ---------- Shell ---------- */
.op-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.op-rail {
	position: sticky; top: 0; height: 100vh;
	display: flex; flex-direction: column; gap: 28px;
	padding: 24px 16px 20px;
	background: var(--rail); color: var(--ink-2);
	border-right: 1px solid var(--line);
}
.op-brand { display: flex; flex-direction: column; gap: 6px; padding: 0 8px; text-decoration: none; }
.op-brand img { width: 168px; height: auto; display: block; }
.op-brand span { font-size: 12px; color: var(--ink-3); padding-left: 2px; }
.op-nav { display: flex; flex-direction: column; gap: 2px; }
.op-nav a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 8px 10px; border-radius: var(--r-sm);
	color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.op-nav a:hover { background: var(--paper); color: var(--ink); }
.op-nav a[aria-current] { background: var(--aqua-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.op-count { font: 500 12px var(--mono); color: var(--ink-3); }
.op-client { margin: 0 2px; padding: 14px 12px 12px; border: 1px solid var(--line); border-top: 3px solid #ED6200; border-radius: var(--r-sm); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.op-client-logo img { display: block; width: 150px; height: auto; }
.op-client-link { font: 500 13px/1.3 var(--sans); color: var(--accent); }
.op-client-pw { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; }
.op-client-pw-label { width: 100%; color: var(--ink-3); }
.op-client-pw code { font: 500 13px/1.4 var(--mono); color: var(--ink); background: var(--paper); padding: 2px 6px; border-radius: 3px; overflow-wrap: anywhere; max-width: 100%; }
.op-client-pw .op-textbtn { font-size: 12px; padding: 2px 0; }
.op-rail-foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--ink-3); }
.op-rail-foot p { margin: 0 0 4px; }
.op-rail-foot a { color: var(--ink-2); }

.op-main { padding: 36px clamp(16px, 3.4vw, 48px) 64px; min-width: 0; display: flex; flex-direction: column; gap: 28px; max-width: 1480px; }
.op-main:focus { outline: none; }
.op-main--solo { margin: 0 auto; }

/* ---------- Type ---------- */
.op-head { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.op-title { margin: 0; font: 600 40px/1.05 var(--sans); font-stretch: 85%; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.op-lede { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 72ch; }
.op-h2 { margin: 0; font: 600 20px/1.25 var(--sans); font-stretch: 90%; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.op-h3 { margin: 0; font: 600 14px/1.3 var(--sans); }
.op-small { margin: 0; font-size: 13px; color: var(--ink-2); }
.op-sub { display: block; font-size: 12px; color: var(--ink-3); }
.op-muted { color: var(--ink-3); }
.op-note { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.op-mt { margin-top: 20px; }
.op-strong { font-weight: 600; color: var(--ink); text-decoration: none; }
.op-strong:hover { text-decoration: underline; text-decoration-color: var(--aqua); text-decoration-thickness: 3px; }
.op-crumb { margin-bottom: -18px; font-size: 13px; }
.op-crumb a { color: var(--ink-2); }

/* ---------- Panels ---------- */
.op-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.op-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.op-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ---------- Status ---------- */
.op-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--n); vertical-align: 1px; margin-right: 6px; flex: none; }
.op-dot--g { background: var(--g); }
.op-dot--a { background: var(--a); }
.op-dot--r { background: var(--r); border-radius: 1px; }
.op-alert { margin: 0; padding: 8px 10px; border-radius: var(--r-sm); background: #FDEDEA; color: #7A2416; font-size: 13px; }
.op-empty { margin: 0; color: var(--ink-2); }
.op-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--line-soft); color: var(--ink-2); font: 500 12px/1.6 var(--sans); vertical-align: 2px; }
.op-tag--legacy, .op-tag--retiring { background: #FFF2D9; color: #7A5000; }
.op-tag--building { background: var(--aqua-soft); color: #0B5A66; }
.op-tag--legacy, .op-tag--retiring { background: var(--pink-soft); color: #8A2335; }
.op-title .op-tag { font-size: 13px; }

/* ---------- Host colours (the estate map and every host label) ---------- */
.op-sq { display: inline-block; width: 14px; height: 14px; flex: none; background: var(--n); }
.op-sq--lg { width: 16px; height: 16px; }
.op-hc0 { background: repeating-linear-gradient(135deg, #B9C3CC 0 3px, #DDE3E8 3px 6px); }
.op-hc1 { background: #6DD0DF; }
.op-hc2 { background: #FF9AA8; }
.op-hc3 { background: #1F1F1F; }
.op-hc4 { background: #8C7BE0; }
.op-hc5 { background: #2E8FA0; }
.op-hc6 { background: #F2B544; }
.op-hc7 { background: #9AA3AB; }
.op-hc8 { background: #5C646B; }
.op-sq.is-down { box-shadow: inset 0 0 0 2px var(--r); background-blend-mode: normal; opacity: 0.55; }
.op-host { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; white-space: nowrap; }
.op-host .op-sq { width: 10px; height: 10px; }

/* ---------- Estate map ---------- */
.op-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.op-map-prop {
	display: flex; flex-direction: column; gap: 10px;
	padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--r-sm);
	color: var(--ink); text-decoration: none; background: #FAFBFC;
}
.op-map-prop:hover { border-color: #000; background: #fff; }
.op-map-prop.has-problem { border-color: #F2B8AE; }
.op-map-name { font-weight: 600; }
.op-map-grid { display: flex; flex-direction: column; gap: 4px; }
.op-map-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.op-map .op-sq { width: 18px; height: 18px; border-radius: 3px; box-shadow: inset 0 0 0 2px #000; }
.op-map .op-sq.is-down { box-shadow: inset 0 0 0 2px var(--r); }
.op-map-env { width: 14px; font: 500 10px/18px var(--mono); color: var(--ink-3); text-align: center; }
.op-sq-more { font: 500 11px var(--mono); color: var(--ink-3); margin-left: 4px; }
.op-map-meta { margin-top: auto; font-size: 12px; color: var(--ink-3); }
.op-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--ink-2); }
.op-legend li { display: inline-flex; align-items: center; gap: 7px; }
.op-legend .op-sq { width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px #000; }
.op-legend .op-sq.is-down { box-shadow: inset 0 0 0 1.5px var(--r); }

/* ---------- Lists and bars ---------- */
.op-list { list-style: none; margin: 0; padding: 0; }
.op-list li { display: flex; align-items: baseline; gap: 4px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.op-list li:first-child { border-top: 0; }
.op-list-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.op-list-end { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.op-breaks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.op-break { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.op-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.op-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 24px; gap: 10px; align-items: center; font-size: 13px; }
.op-bars-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-bars-track { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.op-bars-track span { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.op-bars-n { font: 500 12px var(--mono); text-align: right; color: var(--ink-2); }

/* ---------- Filters ---------- */
.op-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.op-search input {
	width: min(340px, 100%); height: 36px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
	font: 400 14px var(--sans); color: var(--ink);
}
.op-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.op-chips { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.op-chip { height: 34px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: none; font: 500 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.op-chip:first-child { border-left: 0; }
.op-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.op-select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.op-select select { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font: 400 14px var(--sans); color: var(--ink); }
.op-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; }

/* ---------- Tables ---------- */
.op-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.op-panel .op-table-wrap { border: 0; border-radius: 0; margin: 0 -22px; }
.op-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.op-table th, .op-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.op-table thead th { position: sticky; top: 0; z-index: 1; background: #F6F8FA; border-top: 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.op-table tbody th { font-weight: 500; }
.op-nowrap, .op-table td.op-exp { white-space: nowrap; }
.op-table tbody tr:hover { background: #F8FAFC; }
.op-table tr[hidden], .op-table tbody[hidden] { display: none; }
.op-table th:first-child, .op-table td:first-child { padding-left: 22px; }
.op-envs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.op-env { padding: 0 7px; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; line-height: 18px; color: var(--ink-2); }
.op-env.is-down { border-color: #F2B8AE; color: var(--r); }
.op-more summary { cursor: pointer; color: var(--accent); }
.op-more p { margin: 6px 0 0; max-width: 40ch; color: var(--ink-2); }

/* Domain groups */
.op-domains .op-apex th { padding-top: 16px; background: #F6F8FA; border-top: 1px solid var(--line); }
.op-domains tbody:first-of-type .op-apex th { border-top: 0; }
.op-apex-name { font: 500 15px var(--mono); margin-right: 16px; }
.op-apex-facts { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.op-hostname { font-weight: 500; overflow-wrap: anywhere; }
.op-role { display: block; margin-bottom: 4px; }
.op-role .op-sub { display: inline; }
.op-kv { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.7; white-space: nowrap; }
.op-kv > span:first-child { width: 46px; color: var(--ink-3); }

/* ---------- Property page ---------- */
.op-notes { max-width: 72ch; padding: 12px 16px; background: var(--surface); border-left: 4px solid var(--pink); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.op-notes p { margin: 0 0 8px; }
.op-notes p:last-child { margin: 0; }
.op-envgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 12px; }
.op-envcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.op-envcard.is-down { border-color: #F2B8AE; }
.op-envcard > header { display: flex; flex-direction: column; gap: 2px; }
.op-envurl { overflow-wrap: anywhere; }
.op-facts { margin: 0; display: grid; grid-template-columns: 1fr; }
.op-fact { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.op-fact:first-child { border-top: 0; }
.op-fact dt { color: var(--ink-3); }
.op-fact dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Installs (home): property groups ---------- */
.op-groups { display: flex; flex-direction: column; gap: 10px; }
.op-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.op-group[hidden] { display: none; }
.op-group.has-problem { border-color: #F2B8AE; }
.op-group-head {
	display: grid; grid-template-columns: 26px minmax(160px, 260px) minmax(0, 1fr) auto; gap: 14px; align-items: center;
	padding: 14px 20px; cursor: pointer; list-style: none;
}
.op-group-head::-webkit-details-marker { display: none; }
.op-group-head:hover { background: #FAFBFB; }
.op-group[open] > .op-group-head { border-bottom: 2px solid #000; }
.op-group-chevron { position: relative; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); transition: background-color .15s, border-color .15s; }
.op-group-chevron::after { content: ""; position: absolute; inset: 0; background: var(--ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .18s ease, background-color .15s; }
.op-group-head:hover .op-group-chevron, .op-group-head:focus-visible .op-group-chevron { border-color: #000; }
.op-group-head:hover .op-group-chevron::after { background: #000; }
.op-group[open] .op-group-chevron { background: var(--aqua); border-color: #000; }
.op-group[open] .op-group-chevron::after { background: #000; transform: rotate(90deg); }
.op-group-head:focus-visible { outline: 2px solid #000; outline-offset: -2px; }
.op-group-name { font-weight: 600; font-size: 16px; }
.op-group-installs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.op-ichip { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; overflow: hidden; max-width: 100%; }
.op-ichip-env { padding: 2px 7px; background: var(--paper); color: var(--ink-2); font-weight: 500; }
.op-ichip--live .op-ichip-env { background: var(--aqua-soft); color: #0B5A66; }
.op-ichip--staging .op-ichip-env { background: var(--pink-soft); color: #8A2335; }
.op-ichip code { padding: 2px 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-ichip.is-down { border-color: #F2B8AE; }
.op-group-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.op-textbtn { border: 0; background: none; padding: 4px 2px; font: 500 13px var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.op-group-body { display: flex; flex-direction: column; }
.op-install + .op-install { border-top: 1px solid var(--line); }
.op-install-head {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: end;
	padding: 18px 20px 12px 52px;
}
.op-install-head { position: relative; cursor: pointer; list-style: none; }
.op-install-head::-webkit-details-marker { display: none; }
.op-install-head:hover { background: #FAFBFB; }
.op-install-chevron { position: absolute; left: 20px; top: 20px; width: 20px; height: 20px; border-radius: 5px; }
.op-install-chevron::after { content: ""; position: absolute; inset: 0; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .18s ease; }
.op-install-head:hover .op-install-chevron { background: var(--paper); }
.op-install-head:hover .op-install-chevron::after { background: #000; }
.op-install[open] > .op-install-head .op-install-chevron::after { background: var(--ink-2); transform: rotate(90deg); }
.op-install:not([open]) > .op-install-head { padding-bottom: 16px; }
.op-install-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.op-install-domain { font: 500 15px/1.3 var(--mono); color: var(--accent); overflow-wrap: anywhere; }
.op-install-domain::before { content: "→ "; color: var(--ink-3); }
.op-install-env { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 500; background: var(--paper); color: var(--ink-2); }
.op-install-env--live { background: var(--aqua-soft); color: #0B5A66; }
.op-install-env--staging { background: var(--pink-soft); color: #8A2335; }
.op-install-name { margin: 0; font: 500 24px/1.15 var(--mono); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.op-install-name--quiet { font: 600 17px/1.3 var(--sans); color: var(--ink-2); }
.op-install-facts { grid-column: 1; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-2); }
.op-install-links { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 16px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.op-install-alert { margin: 0 20px 10px 52px; }
.op-install-table { min-width: 0; }
.op-install-table th:first-child, .op-install-table td:first-child { padding-left: 52px; }
.op-install-table th:nth-child(1) { width: 32%; }
.op-install-table th:nth-child(3) { width: 26%; }
.op-install-table th:nth-child(4) { width: 18%; }
.op-install-table td, .op-install-table th { vertical-align: top; }
.op-res { font-size: 13px; }
.op-res .op-dot { vertical-align: 1px; }
.op-res-label { font-weight: 500; }
.op-res-sub { display: block; margin: 2px 0 0 14px; font-size: 12px; color: var(--ink-3); }
.op-res-path { display: block; margin: 3px 0 0 14px; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.op-res-path code { font-size: 11.5px; }
.op-res-path .op-code-r3 { color: #7A5000; }
.op-res-path .op-code-r4 { color: #A3271B; }
.op-code { font-size: 11.5px; padding: 0 4px; border-radius: 3px; background: var(--line-soft); }
.op-code.op-code-r2 { color: #1E7A35; }
.op-code.op-code-r3 { color: #7A5000; }
.op-code.op-code-r4 { color: #A3271B; }
.op-hops { display: inline-flex !important; list-style: none; margin: 3px 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 12px; color: var(--ink-3); }
.op-hops code { font-size: 11.5px; }
.op-hops .op-code-r3 { color: #7A5000; }
.op-hops .op-code-r4 { color: #A3271B; }
.op-hops .op-code-r2 { color: #1E7A35; }
.op-muted { color: var(--ink-3); }
.op-tag--main { background: #000; color: #fff; }
.op-site-name { margin-right: 4px; }
/* Multisite: main site first, subsites hang off it. */
.op-install-table--network .op-row--main th[scope=row] .op-site-name { font-weight: 600; }
.op-install-table--network .op-row--main { background: #F7FCFD; }
.op-install-table--network .op-row--sub th[scope=row] { position: relative; padding-left: 80px; font-weight: 400; }
.op-install-table--network .op-row--sub th[scope=row]::before { content: ""; position: absolute; left: 60px; top: -1px; bottom: 0; border-left: 2px solid var(--aqua); }
.op-install-table--network .op-row--sub th[scope=row]::after { content: ""; position: absolute; left: 60px; top: 20px; width: 12px; border-top: 2px solid var(--aqua); }
.op-install-table--network .op-row--sub.is-last th[scope=row]::before { bottom: auto; height: 21px; }
.op-install-table tr.is-off { opacity: .55; }
.op-network { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; margin: 0 20px 12px 52px; padding: 12px 14px; border: 1px solid #BFE6EC; border-left: 4px solid var(--aqua); border-radius: var(--r-sm, 6px); background: #F4FBFC; }
.op-network-mark { position: relative; width: 36px; height: 36px; }
.op-network-mark span { position: absolute; width: 14px; height: 14px; border: 2px solid #000; border-radius: 3px; background: #fff; }
.op-network-mark span:nth-child(1) { left: 11px; top: 0; background: var(--aqua); }
.op-network-mark span:nth-child(2) { left: 0; top: 20px; }
.op-network-mark span:nth-child(3) { left: 22px; top: 20px; background: var(--pink); }
.op-network-title { margin: 0; font-weight: 600; font-size: 15px; }
.op-network-text { margin: 2px 0 6px; font-size: 13px; color: var(--ink-2); max-width: 70ch; }
.op-network-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-2); }
.op-network-facts .op-dot { vertical-align: 1px; }
.op-install-table thead th { position: static; }

/* ---------- Small screens ---------- */
@media (max-width: 1100px) {
	.op-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
	.op-app { grid-template-columns: minmax(0, 1fr); }
	.op-rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; }
	.op-nav { flex-direction: row; flex-wrap: wrap; gap: 2px; width: 100%; overflow-x: auto; }
	.op-nav a { flex: none; gap: 8px; }
	.op-nav a[aria-current] { box-shadow: inset 0 -3px 0 #000; }
	.op-rail-foot { display: none; }
	.op-client { width: 100%; margin: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
	.op-client-pw-label { width: auto; }
	.op-main { padding: 24px 16px 48px; gap: 22px; }
	.op-title { font-size: 30px; }
	.op-panel { padding: 16px; }
	.op-panel .op-table-wrap { margin: 0 -16px; }
	.op-fact { grid-template-columns: 110px minmax(0, 1fr); }
	.op-envgrid { grid-template-columns: minmax(0, 1fr); }
	.op-group-head { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 12px 14px; }
	.op-group-installs { grid-column: 2 / -1; }
	.op-group-head > .op-kind { grid-column: 2 / -1; }
	.op-install-head { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 10px; }
	.op-install-links { grid-column: 1; grid-row: auto; }
	.op-install-alert { margin: 0 16px 10px; }
	.op-install-head { padding-left: 38px !important; }
	.op-install-chevron { left: 10px; top: 14px; }
	.op-network { margin: 0 16px 10px; grid-template-columns: minmax(0, 1fr); }
	.op-network-mark { display: none; }
	.op-install-table--network .op-row--sub { padding-left: 34px !important; position: relative; }
	.op-install-table--network .op-row--sub th[scope=row] { padding-left: 0 !important; }
	.op-install-table--network .op-row--sub th[scope=row]::before, .op-install-table--network .op-row--sub th[scope=row]::after { display: none; }
	.op-install-table--network .op-row--sub::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 2px solid var(--aqua); }
	.op-install-table--network .op-row--sub.is-last::before { bottom: auto; height: 20px; }
	.op-install-name { font-size: 20px; }
	.op-install-table { display: block; }
	.op-install-table thead { display: none; }
	.op-install-table tbody, .op-install-table tr { display: block; }
	.op-install-table tr { padding: 10px 16px; border-top: 1px solid var(--line-soft); }
	.op-install-table th, .op-install-table td { display: block; border: 0; padding: 1px 0 !important; width: auto !important; }
	.op-map { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

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

@media print {
	.op-rail, .op-filters, .op-skip { display: none !important; }
	.op-app { display: block; }
	body.op { background: #fff; }
	.op-table-wrap { overflow: visible; }
	.op-table thead th { position: static; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Home page search results */
.op-results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.op-results[hidden] { display: none; }
.op-results-table td, .op-results-table th { vertical-align: top; }
.op-results-table th:nth-child(1) { width: 26%; }
.op-results-table th:nth-child(4) { width: 24%; }
.op-results-table th:nth-child(5) { width: 16%; }
.op-results-table thead th { position: static; }
.op-res-prop { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.op-res-prop:hover { color: var(--accent); }
.op-res-wpe { display: block; margin-top: 4px; font-size: 12px; }
.op-groups[hidden] { display: none; }
@media (max-width: 820px) {
	.op-results-table { min-width: 0; display: block; }
	.op-results-table thead { display: none; }
	.op-results-table tbody { display: block; }
	.op-results-table tr { display: block; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
	.op-results-table tr[hidden] { display: none; }
	.op-results-table th, .op-results-table td { display: block; border: 0; padding: 2px 0 !important; width: auto !important; }
}

/* Password screen */
.op-locked { min-height: 100vh; background: var(--paper); }
.op-lock { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.op-lock-card { width: 100%; max-width: 400px; padding: 32px 28px 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--aqua); border-radius: var(--r-md); box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 12px 32px -18px rgba(0,0,0,.25); }
.op-lock-logo { display: block; width: 200px; height: auto; }
.op-lock-title { margin: 22px 0 18px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.op-lock-lede { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.op-lock-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.op-lock-field { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.op-lock-field:focus-within { border-color: #000; box-shadow: 0 0 0 3px var(--aqua-soft); }
.op-lock-field input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 0; background: transparent; font: 15px var(--sans); outline: none; }
.op-lock-show { border: 0; background: none; padding: 0 12px; font: 500 13px var(--sans); color: var(--accent); cursor: pointer; }
.op-lock-error { margin: 10px 0 0; font-size: 13px; color: #A3271B; }
.op-lock-error .op-dot { vertical-align: 1px; }
.op-lock-submit { width: 100%; justify-content: center; margin-top: 16px; border: 0; cursor: pointer; font: 500 15px var(--sans); height: 42px; }
.op-lock-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.op-lock-foot { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; text-align: center; }
.op-lock-foot a { color: var(--ink-2); }

/* Single site / multisite label on each property row: quiet, scannable */
.op-kind { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.op-kind-n { color: var(--ink-3); }
.op-kind-icon { position: relative; display: inline-block; width: 14px; height: 14px; flex: none; }
.op-kind-icon i { position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--ink-3); border-radius: 2px; background: var(--surface); box-sizing: border-box; }
.op-kind--single .op-kind-icon i { left: 2px; top: 2px; width: 10px; height: 10px; }
.op-kind--multi .op-kind-icon { width: 15px; }
.op-kind--multi .op-kind-icon i:nth-child(1) { left: 4px; top: 0; border-color: #000; background: var(--aqua); }
.op-kind--multi .op-kind-icon i:nth-child(2) { left: 0; top: 7px; }
.op-kind--multi .op-kind-icon i:nth-child(3) { left: 8px; top: 7px; }
.op-kind--multi { color: var(--ink); }


/* Per install: Live / Staging / Dev badge, then single or multisite */
.op-install-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 4px; }
.op-install-badges .op-install-env { margin-bottom: 0; }
.op-kind--sm { font-size: 12px; gap: 6px; }
