/* SmartPi SIP Server product overlay (layer 3).
   Shared shell, page modules, typography, controls, and responsive behavior
   come from SmartPi.UI.Core. Keep only SIP-domain presentation here. */

/* Generic request-error page (Views/Shared/Error.cshtml) - no shared
   equivalent exists upstream or in DVA, this is a SIP-only page. */
.app-error-page {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 60vh;
	padding: 24px;
}

.app-error-panel {
	align-items: flex-start;
	background: #292b2c;
	border: 1px solid #46494b;
	border-radius: 10px;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.025);
	display: flex;
	gap: 16px;
	max-width: 560px;
	padding: 24px;
	width: 100%;
}

.app-error-icon {
	align-items: center;
	background: rgba(233, 98, 37, 0.14);
	border: 1px solid rgba(233, 98, 37, 0.4);
	border-radius: 10px;
	color: #f3a576;
	display: flex;
	flex: 0 0 44px;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.app-error-icon svg {
	fill: none;
	height: 24px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	width: 24px;
}

.app-error-content h2 {
	color: #f0f1f2;
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
}

.app-error-content p {
	color: #b9bdc0;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
}

.app-error-detail {
	background: #1d1f20;
	border: 1px solid #45484a;
	border-radius: 6px;
	margin-top: 14px;
	padding: 10px 12px;
}

.app-error-detail > span {
	color: #92979a;
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.app-error-detail > code {
	color: #f3a576;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	overflow-wrap: anywhere;
}

/* SIP product navigation override --------------------------------------- */
.sip-status-nav-icon {
	fill: none;
	flex: 0 0 24px;
	height: 24px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.65;
	width: 24px;
}

/* NonFactors MVC Grid is a SIP integration rather than a SmartPi.UI asset.
   Keep sorting behaviour, but use the same CSS indicator treatment as the DVA
   migration so product grids do not depend on its obsolete private glyph font. */
.sp-app .mvc-grid-sort {
	color: #8f9497;
	font-family: inherit;
}
.sp-app .mvc-grid-sort span {
	display: none;
}
.sp-app .mvc-grid-sort::before,
.sp-app .mvc-grid-sort::after {
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	content: "";
	left: 50%;
	margin: 0;
	opacity: 0.28;
	position: absolute;
	transform: translateX(-50%);
}
.sp-app .mvc-grid-sort::before {
	border-bottom: 4px solid currentColor;
	top: calc(50% - 5px);
}
.sp-app .mvc-grid-sort::after {
	border-top: 4px solid currentColor;
	bottom: calc(50% - 5px);
}
.sp-app .mvc-grid-table .asc .mvc-grid-sort::before,
.sp-app .mvc-grid-table .desc .mvc-grid-sort::after {
	opacity: 0.9;
}

/* SIP signs out through a POST form, so its shared account-menu item is a
   button rather than the anchor used by the starter. Remove native ButtonFace
   chrome and let SmartPi.UI's .sp-account__logout colours render unchanged. */
button.sp-account__logout {
	appearance: none;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	width: 100%;
}

button.sp-account__logout span {
	flex: 1 1 auto;
}

/* The SIP wordmark is wider than the generic SmartPi logo. On narrow screens,
   let the account/menu group keep its natural width and scale the complete
   wordmark into the remaining brand column instead of clipping its right side. */
@media (max-width: 767px) {
	.sp-topbar__inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.sp-topbar__brand {
		max-width: none;
		min-width: 0;
		width: 100%;
	}

	.sip-product-logo {
		height: auto;
		max-height: 42px;
		max-width: 159px;
		width: 100%;
	}
}

/* Nodes grid -------------------------------------------------------------
   Actions column is centered via NonFactors' .Css("text-center") builder
   call in _NodesGrid.cshtml; this rule renders the resulting class inside
   the nodes grid's own wrapper, mirroring DVA's identical scoped pattern. */
.nodes-config-grid .mvc-grid-table :is(th, td).text-center {
	text-align: center;
}
.node-row-actions .config-action > span { display: none; }

/* SIP's node record has different facts from the shared starter. On phones,
   present those facts as a compact card rather than pinning a bare icon over
   the node name. The shared Nodes module still owns its desktop table. */
@media (max-width: 767px) {
	.sip-nodes-config-grid .mvc-grid-table { overflow: visible; }
	.sip-nodes-config-grid .mvc-grid-table > table { min-width: 0; table-layout: auto; width: 100%; }
	.sip-nodes-config-grid .mvc-grid-table > table > tbody { display: grid; gap: 10px; padding: 10px; }
	.sip-nodes-config-grid .mvc-grid-table > table > tbody > tr {
		align-items: stretch;
		background: #292b2c;
		border: 1px solid #484b4d;
		border-left: 4px solid #00bddf;
		border-radius: 7px;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow: hidden;
		padding: 0;
	}

	.sip-nodes-config-grid .mvc-grid-table > table > tbody > tr > td,
	.sip-nodes-config-grid .mvc-grid-table > table > tbody > tr:hover > td,
	.sip-nodes-config-grid .mvc-grid-table > table > tbody > tr:nth-child(even) > td {
		align-items: flex-start;
		background: transparent;
		border: 0;
		box-shadow: none;
		box-sizing: border-box;
		color: #cdd0d2;
		display: flex;
		flex-direction: column;
		gap: 5px;
		height: auto !important;
		min-width: 0;
		padding: 10px 12px;
		text-align: left;
		width: auto !important;
	}

	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(1) {
		border-bottom: 1px solid #414446 !important;
		color: #e8eaec;
		font-size: 13px;
		font-weight: 600;
		grid-column: 1 / -1;
		overflow: hidden;
		padding: 12px !important;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(2) {
		border-bottom: 1px solid #414446 !important;
		grid-column: 1 / -1;
		overflow-wrap: anywhere;
	}
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(3),
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(4) {
		border-bottom: 1px solid #414446 !important;
		border-right: 1px solid #414446 !important;
	}
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(n+2):nth-child(-n+6)::before {
		color: #8f9497;
		display: block;
		font-size: 9px;
		font-weight: 700;
		letter-spacing: .06em;
		line-height: 1.2;
		text-transform: uppercase;
	}
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(2)::before { content: "Description"; }
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(3)::before { content: "Status"; }
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(4)::before { content: "User"; }
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(5)::before { content: "Last update"; }
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(6)::before { content: "CPU load"; }
	.sip-nodes-config-grid .mvc-grid-table tbody td:nth-child(7) {
		border-top: 1px solid #414446 !important;
		grid-column: 1 / -1;
		padding: 8px !important;
	}
	.sip-nodes-config-grid .node-row-actions {
		background: #232526;
		border: 1px solid #4b4f51;
		border-radius: 6px;
		display: block;
		margin: 0;
		overflow: hidden;
		width: 100%;
	}
	.sip-nodes-config-grid .node-row-actions .config-action {
		align-items: center;
		border: 0;
		border-radius: 0;
		display: flex;
		gap: 7px;
		height: 42px;
		justify-content: center;
		padding: 6px 12px;
		width: 100%;
	}
	.sip-nodes-config-grid .node-row-actions .config-action:hover,
	.sip-nodes-config-grid .node-row-actions .config-action:focus-visible { background: rgba(224, 91, 91, .1); }
	.sip-nodes-config-grid .node-row-actions .config-action > span { color: #ff8f8a; display: inline; font-size: 10px; font-weight: 600; }
}

/* Extension editor ------------------------------------------------------
   SmartPi supplies the shell, cards, tabs and controls. This product layer
   only describes how the SIP-specific groups are arranged. */
.sip-extension-editor {
	--sip-extension-field: #1d1f20;
	--sip-extension-muted: var(--sp-muted-2);
	height: 100%;
	margin-left: 0;
	min-height: 0;
	width: 100%;
}

.config-detail-header-actions.sip-extension-header-actions {
	align-items: center;
	display: grid;
	gap: 8px;
	grid-template-columns: 32px max-content minmax(150px, 240px);
}

.config-active-call-warning {
	align-items: center;
	background: rgba(233, 98, 37, 0.12);
	border: 1px solid rgba(233, 98, 37, 0.4);
	border-radius: 6px;
	color: #f3a576;
	display: flex;
	font-size: 12px;
	gap: 8px;
	margin: 0 24px 12px;
	padding: 8px 14px;
}

.config-active-call-warning[hidden] {
	display: none;
}

.config-active-call-warning__status {
	background: #e96225;
	border-radius: 10px;
	color: #1d1006;
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 2px 8px;
	text-transform: uppercase;
}

.config-detail-extension-label.sip-extension-picker-label {
	color: rgba(36, 17, 8, 0.76);
	font-size: 11px;
	font-weight: 500;
	margin: 0 0 0 4px;
}

.config-extension-picker.sip-extension-picker,
.form-select.sip-extension-picker-select {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
}

.form-select.sip-extension-picker-select {
	background-color: #222425;
	border: 1px solid #111;
	border-radius: 5px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	color: #ebeced;
	font: 400 12px "IBM Plex Sans", "Segoe UI", sans-serif;
	height: 32px;
	padding: 4px 0;
}

.sip-extension-detail-body,
.sip-extension-editor__body,
.sip-extension-form,
.sip-extension-fields {
	border: 0;
	box-sizing: border-box;
	margin: 0;
	max-width: none;
	min-width: 0;
	padding: 0;
	width: 100%;
}

.sip-extension-form {
	display: block;
}

.sip-extension-fields fieldset {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

/* Pane hide/show itself is the shared .config-edit-tab-content .tab-pane
   contract (smartpi-config.css); this only adds SIP's two-column layout for
   the active pane. Specificity is bumped to beat the shared .active rule. */
.config-detail-page .config-edit-tab-content .tab-pane.sip-extension-pane.active {
	align-items: stretch;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-detail-page .config-edit-tab-content .tab-pane.sip-extension-pane.active > .config-edit-section.sip-extension-section:only-child {
	grid-column: 1 / -1;
}

.config-edit-section-fields-grid.sip-extension-fields-grid {
	align-items: start;
	display: grid;
	gap: 0 28px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.config-edit-section-fields-grid.sip-extension-fields-grid > .config-edit-section-title.sip-extension-section-title {
	grid-column: 1 / -1;
}

.config-edit-section-fields-grid.sip-extension-fields-grid > #divGtfs {
	display: contents;
}

.config-edit-section.sip-extension-section[hidden],
.sip-extension-editor #divOpus[hidden],
.sip-extension-editor #divGtfs[hidden] {
	display: none !important;
}

.sip-extension-field-row {
	align-items: center;
	display: grid;
	gap: 8px 14px;
	grid-template-columns: minmax(130px, 168px) minmax(0, 1fr);
	margin: 0 0 9px;
}

.sip-extension-field-row:last-child {
	margin-bottom: 0;
}

.sip-extension-field-row > div {
	box-sizing: border-box;
	justify-self: stretch;
	max-width: none;
	min-width: 0;
	padding: 0;
	width: 100%;
}

.sip-extension-field-row > div > label:not(.checkbox-button) {
	display: block;
	line-height: 1.25;
	margin: 0;
}

.sip-extension-form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	box-sizing: border-box;
	max-width: none;
	width: 100%;
}

.sip-extension-editor select.form-select.sip-extension-select,
.sip-extension-form textarea {
	background-color: var(--sip-extension-field);
	border: 1px solid #54585b;
	border-radius: 5px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
	color: #e9ebec;
	font-size: 12px;
	min-height: 34px;
	padding: 6px 10px;
}

/* The original SIP editor used a compact two-triangle select indicator.
   Recreate that control directly so the product does not depend on Bootstrap
   for its select appearance. */
.sip-extension-editor select.form-select.sip-extension-select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
	background-position: calc(100% - 12px) 50%;
	background-repeat: no-repeat;
	background-size: 8px 10px;
	border-width: 0;
	line-height: 18px;
}

.sip-extension-form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
	border-color: #00b9db;
	box-shadow: 0 0 0 1px rgba(0, 194, 230, 0.18);
	outline: 0;
}

/* The shared .config-detail-page .config-edit-section .form-control rule has
   no disabled treatment of its own - each product page that can render its
   fields read-only is expected to add one (matching the pattern already used
   by System settings and LDAP). This is that treatment for the extension
   editor's fieldset[disabled] state. */
.config-detail-page.sip-extension-editor .config-edit-section .form-control:disabled,
.sip-extension-editor select.form-select.sip-extension-select:disabled,
.sip-extension-form textarea:disabled {
	background-color: #111213;
	border-color: #2c2f30;
	box-shadow: none;
	color: #7d8083;
}

/* Point to Point marks SIP PBX/User/Password read-only (not disabled - the
   values are still submitted) via this class, toggled in Edit.cshtml. It
   needs its own, visually distinct treatment: unlike a genuinely disabled
   field, a read-only field should still read as "here, but not editable
   right now" rather than blending into the resting appearance of the fields
   around it. */
.config-detail-page.sip-extension-editor .config-edit-section .form-control.form-control-disabled-visual {
	background-color: #242627;
	border-color: #4b4e50;
	box-shadow: none;
	color: #aeb2b4;
}

.sip-extension-field-control > small.text-muted {
	display: block;
	line-height: 1.25;
	margin-top: 5px;
}

.sip-extension-editor .sip-extension-inline-toggle-pair,
.sip-extension-editor .sip-extension-opus-dtx-row,
.sip-extension-editor .sip-extension-jitter-profile-select-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.sip-extension-editor .sip-extension-inline-toggle-pair .checkbox-button,
.sip-extension-editor .sip-extension-opus-dtx-row .checkbox-button {
	align-items: center;
	display: inline-flex;
	margin: 0;
}

.sip-extension-editor .sip-extension-api-key-row {
	align-items: center;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) 34px;
}

.icon-action-btn {
	align-items: center;
	background: #252728;
	border: 1px solid #4b4e50;
	border-radius: 5px;
	color: #d8dbdd;
	cursor: pointer;
	display: inline-flex;
	height: 34px;
	justify-content: center;
	padding: 0;
	width: 34px;
}

.icon-action-btn:hover,
.icon-action-btn:focus-visible {
	background: #313436;
	border-color: #62676b;
	color: #00c7ee;
}

.icon-action-btn svg {
	fill: none;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	width: 17px;
}

/* Password show/hide toggle icon pair - no shared equivalent exists upstream,
   this is a SIP-specific control (used on the SIP Password field and the
   LDAP bind-password field). */
.icon-action-btn .icon-eye,
.icon-action-btn .icon-eye-off {
	fill: none;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	width: 17px;
}

/* Text label riding next to a .checkbox-button toggle - the shared rule
   styles the toggle control itself but not this caption span. */
.checkbox-button__label {
	color: inherit;
	font-size: 12px;
	margin-left: 8px;
}

/* Compact size modifier used throughout the extension editor and LDAP forms.
   Slightly smaller than the shared 22px default; the checkmark glyph already
   scales itself via `transform: scale()` in the shared rule, so only the box
   needs adjusting here. */
.checkbox-button.small-checkbox .checkbox-button__control {
	height: 18px;
	margin-right: 8px;
	width: 18px;
}

.codec-priority-list.sip-extension-codec-priority {
	list-style: none;
	margin: 0;
	max-width: none;
	padding: 0;
}

.codec-priority-list.sip-extension-codec-priority li {
	align-items: center;
	background: var(--sip-extension-field) !important;
	border: 1px solid #484b4d !important;
	border-radius: 4px;
	color: #d7d9da !important;
	display: grid;
	gap: 8px;
	grid-template-columns: 18px minmax(0, 1fr);
	margin: 0 4px 5px;
	padding: 0;
}

.codec-priority-list.sip-extension-codec-priority.codec-priority-list--readonly li {
	grid-template-columns: minmax(0, 1fr);
}

.codec-priority-list.sip-extension-codec-priority li > i {
	color: #52d7ee;
	cursor: grab;
	text-align: center;
}

/* Codec names cannot be typed into because their value is changed by sorting
   the rows. In an editable list, disabled therefore describes the input
   mechanism rather than a read-only permission state, so keep the normal
   SmartPi field contrast used by the original SIP editor. */
.config-detail-page.sip-extension-editor .codec-priority-list.sip-extension-codec-priority:not(.codec-priority-list--readonly) .form-control:disabled {
	background-color: var(--sip-extension-field);
	border-color: var(--sip-extension-field);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
	color: #e9ebec;
	opacity: 1;
}

.sip-extension-editor .sip-extension-opus-rate-control-switch {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	min-height: 34px;
	width: 100%;
}

.sip-extension-editor .sip-extension-opus-rate-mode {
	align-items: center;
	background: #1f2122;
	border: 1px solid #44484a;
	border-radius: 5px;
	color: #8f969b;
	cursor: pointer;
	display: flex;
	font-size: 12px;
	font-weight: 600;
	height: 34px;
	line-height: 1.15;
	padding: 0 10px;
	white-space: nowrap;
}

.sip-extension-editor .sip-extension-opus-rate-control-switch--readonly {
	pointer-events: none;
}

.sip-extension-editor .sip-extension-opus-rate-control-switch .sip-extension-opus-rate-mode--vbr,
.sip-extension-editor .sip-extension-opus-rate-control-switch.is-cbr .sip-extension-opus-rate-mode--cbr {
	background: #2c2f30;
	border-color: #e96225;
	color: #f0f1f2;
}

.sip-extension-editor .sip-extension-opus-rate-control-switch.is-cbr .sip-extension-opus-rate-mode--vbr {
	background: #1f2122;
	border-color: #44484a;
	color: #8f969b;
}

.sip-extension-editor .sip-extension-opus-rate-mode--cbr {
	justify-content: flex-end;
	text-align: right;
}

.sip-extension-editor .sip-extension-opus-rate-toggle,
.sip-extension-editor .sip-extension-opus-rate-toggle__input {
	height: 1px;
	left: 0;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.sip-extension-editor .sip-extension-opus-complexity-meta {
	color: var(--sip-extension-muted);
	display: flex;
	font-size: 11px;
	font-weight: 600;
	justify-content: space-between;
	line-height: 1.2;
	margin-bottom: 7px;
}

.sip-extension-editor .sip-extension-opus-complexity-slider {
	--sip-opus-complexity-fill: 50%;
	-webkit-appearance: none;
	appearance: none;
	background: repeating-linear-gradient(to right, rgba(10, 11, 12, 0.92) 0 1px, transparent 1px 10%), linear-gradient(to right, var(--sp-orange) 0 var(--sip-opus-complexity-fill), #3a3d3f var(--sip-opus-complexity-fill) 100%);
	border: 1px solid #53575a;
	border-radius: 999px;
	display: block;
	height: 12px;
	margin: 0 0 5px;
	width: 100%;
}

.sip-extension-editor .sip-extension-opus-complexity-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	background: #f5f6f7;
	border: 1px solid #d7d9da;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	height: 22px;
	margin-top: -6px;
	width: 30px;
}

.sip-extension-editor .sip-extension-jitter-profile-select-row {
	flex-wrap: nowrap;
}

.sip-extension-editor .sip-extension-jitter-profile-row {
	align-items: start;
}

.sip-extension-editor .sip-extension-jitter-profile-row > .sip-extension-field-label {
	padding-top: 9px;
}

.sip-extension-editor .sip-extension-jitter-profile-pending-notice {
	color: #d99a3d;
	display: block;
}

.sip-extension-editor .sip-extension-jitter-profile-pending-indicator {
	align-items: center;
	background: #b97810;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	flex: 0 0 20px;
	font-size: 12px;
	font-weight: 800;
	height: 20px;
	justify-content: center;
}

.sip-extension-editor .sip-extension-audio-grid {
	align-items: center;
	border: 0;
	display: grid;
	gap: 14px 20px;
	grid-column: 1 / -1;
	grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) minmax(160px, 220px) minmax(0, 1fr);
}

.sip-extension-editor .sip-extension-audio-heading-left {
	grid-column: 1 / 3;
	margin-bottom: 0;
}

.sip-extension-editor .sip-extension-audio-heading-right {
	grid-column: 3 / 5;
	margin-bottom: 0;
	padding-left: 4px;
}

.sip-extension-editor .sip-extension-audio-grid > label {
	font-size: 12px;
	margin: 0;
}

.sip-extension-editor .sip-extension-channel-select-wrapper {
	position: relative;
}

.sip-extension-editor .sip-extension-channel-select-display {
	display: none;
}

.sip-extension-editor .sip-extension-channel-select-hidden {
	cursor: pointer;
	height: 34px;
	opacity: 1;
	position: static;
	width: 100%;
}

.sip-extension-editor .sip-extension-output-picker {
	align-items: start;
	display: grid;
	gap: 12px 18px;
	grid-template-columns: minmax(190px, 1fr) max-content;
}

.sip-extension-editor .sip-extension-channel-chips {
	align-content: start;
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 34px;
}

.sip-extension-editor .sip-extension-channel-chip {
	align-items: center;
	background: #4f5d6e;
	border-radius: 20px;
	color: #fff;
	display: inline-flex;
	font-size: 11px;
	font-weight: 500;
	gap: 4px;
	padding: 4px 8px;
	white-space: nowrap;
}

.sip-extension-discard,
.sip-extension-pending {
	align-items: center;
	box-sizing: border-box;
	cursor: pointer;
	display: inline-flex;
	font: 400 13px "IBM Plex Sans", "Segoe UI", sans-serif;
	justify-content: center;
}

.sip-extension-discard {
	background: transparent;
	border: 1px solid transparent;
	border-radius: 999px;
	color: #9a9d9f;
	height: 34px;
	padding: 0;
	width: 34px;
}

.sip-extension-discard span,
.sip-extension-discard[hidden],
.sip-extension-pending[hidden] {
	display: none;
}

.sip-extension-discard:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #d8dadb;
}

.sip-extension-pending {
	border: 1px solid transparent;
	border-radius: 6px;
	color: #f06a29;
	gap: 7px;
	height: 40px;
	letter-spacing: 0.03em;
	padding: 0 14px;
}

.sip-extension-pending--pending {
	background: transparent;
	color: #f25c19;
}

.sip-extension-pending--pending:hover {
	background: rgba(255, 255, 255, 0.06);
}

.sip-extension-pending--confirm {
	background: linear-gradient(180deg, #fa7a3d 0%, #df571c 100%);
	border-color: #ff8449;
	color: #2b1505;
}

.sip-extension-pending__icon--pending,
.sip-extension-pending__icon--confirm {
	display: none;
}

.sip-extension-pending--pending .sip-extension-pending__icon--pending,
.sip-extension-pending--confirm .sip-extension-pending__icon--confirm {
	display: block;
}

@media (max-width: 1050px) {
	.config-detail-page .config-edit-tab-content .tab-pane.sip-extension-pane.active,
	.config-edit-section-fields-grid.sip-extension-fields-grid {
		grid-template-columns: 1fr;
	}

	.sip-extension-editor .sip-extension-audio-grid {
		grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
	}

	.sip-extension-editor .sip-extension-audio-heading-left,
	.sip-extension-editor .sip-extension-audio-heading-right {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.sip-product-footer:not(:has(.footer-actions-slot > :not([hidden]))) {
		display: none;
	}

	.config-detail-header.sip-extension-header {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
		padding: 8px;
	}

	.config-detail-header-actions.sip-extension-header-actions {
		grid-template-columns: 32px minmax(0, 1fr);
	}

	.config-detail-extension-label.sip-extension-picker-label {
		display: none;
	}

	/* Below 767px the shared .config-edit-tab-content .tab-pane rule already
	   stacks every pane (display:grid !important; grid-template-columns:1fr;
	   margin-top:22px between panes) — nothing SIP-specific to add here. */

	.sip-extension-field-row {
		display: block;
	}

	.sip-extension-field-row > div:first-child {
		margin-bottom: 5px;
	}

	.sip-extension-editor .sip-extension-jitter-profile-row > .sip-extension-field-label {
		padding-top: 0;
	}

	.sip-extension-editor .sip-extension-api-key-row {
		grid-template-columns: minmax(0, 1fr) 34px;
	}
}

/* ==== DASHBOARD: SIP MULTITRACK SUMMARY =====*/
.dashboardProductStats > .dashboardTrunkOverview {
	align-items: stretch;
	background: transparent;
	border-bottom: 1px solid var(--dashboard-border);
	display: block;
	min-height: 0;
	padding: 10px 13px;
	text-align: left;
}

.dashboardProductStats > .dashboardTrunkOverview[hidden] {
	display: none;
}

.dashboardTrunkOverview > header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.dashboardTrunkOverview > header > span {
	align-items: center;
	color: #d6d6d6;
	display: inline-flex;
	font-size: 12px;
	gap: 6px;
}

.dashboardTrunkOverview > header > span i {
	color: var(--dashboard-cyan);
	font-size: 10px;
}

.dashboardTrunkOverview > header > strong {
	align-items: center;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid #484848;
	border-radius: 10px;
	color: var(--dashboard-muted);
	display: inline-flex;
	font-size: 9px;
	font-weight: 600;
	gap: 5px;
	line-height: 18px;
	margin: 0;
	padding: 0 7px;
}

.dashboardTrunkOverview > header > strong i {
	background: currentColor;
	border-radius: 50%;
	height: 6px;
	width: 6px;
}

.dashboardTrunkOverview > header > strong > span {
	color: inherit;
	font-size: inherit;
}

.dashboardTrunkOverview > header > strong[data-state="ok"] { color: var(--dashboard-green); }
.dashboardTrunkOverview > header > strong[data-state="warn"] { color: #f0cf36; }
.dashboardTrunkOverview > header > strong[data-state="bad"] { color: #ff7373; }

.dashboardTrunkMetrics {
	display: grid;
	gap: 7px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboardTrunkMetric {
	background: #242424;
	border: 1px solid #454545;
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 48px;
	min-width: 0;
	padding: 7px 8px;
}

.dashboardTrunkMetric > span {
	font-size: 9px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dashboardTrunkMetric > strong {
	color: #e3e5e6;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.1;
	margin: 4px 0 0;
}

.dashboardTrunkMetric > strong b { font-weight: inherit; }
.dashboardTrunkMetric > strong small { font-size: 9px; }
.dashboardTrunkMetricBudget[data-state="warn"] > strong { color: #f0cf36; }
.dashboardTrunkMetricBudget[data-state="bad"] > strong { color: #ff7373; }

.dashboardTrunkBudgetBar {
	background: #181818;
	border: 1px solid #414141;
	border-radius: 3px;
	height: 4px;
	margin-top: 5px;
	overflow: hidden;
}

.dashboardTrunkBudgetBar > span {
	background: var(--dashboard-cyan);
	display: block;
	height: 100%;
	transition: width 180ms ease;
}

.dashboardTrunkMetricBudget[data-state="warn"] .dashboardTrunkBudgetBar > span { background: #f0cf36; }
.dashboardTrunkMetricBudget[data-state="bad"] .dashboardTrunkBudgetBar > span { background: #ff7373; }

.dashboardTrunkHealthGrid {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	gap: 5px 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 8px;
	padding-top: 7px;
}

.dashboardTrunkHealthItem {
	align-items: center;
	display: flex;
	gap: 7px;
	justify-content: space-between;
	min-width: 0;
}

.dashboardTrunkHealthItem > span {
	align-items: center;
	display: inline-flex;
	font-size: 8px;
	gap: 5px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dashboardTrunkHealthItem > span i {
	background: currentColor;
	border-radius: 50%;
	color: var(--dashboard-muted);
	flex: 0 0 auto;
	height: 5px;
	width: 5px;
}

.dashboardTrunkHealthItem > strong {
	color: #cfd2d4;
	font-size: 9px;
	font-weight: 600;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dashboardTrunkHealthItem > strong b { font-weight: inherit; }
.dashboardTrunkHealthItem[data-state="ok"] > span i { color: var(--dashboard-green); }
.dashboardTrunkHealthItem[data-state="warn"] > span i,
.dashboardTrunkHealthItem[data-state="warn"] > strong { color: #f0cf36; }
.dashboardTrunkHealthItem[data-state="bad"] > span i,
.dashboardTrunkHealthItem[data-state="bad"] > strong { color: #ff7373; }

@media (max-width: 767px) {
	.dashboardProductStats > .dashboardTrunkOverview {
		padding: 9px 11px;
	}

	.dashboardTrunkMetric {
		min-height: 44px;
		padding: 6px 7px;
	}

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

/* ==== EXTENSION CONFIGURATION PAGE =====*/
/* A trunk's Capture/Playback range does not fit config-route-pair's two boxes -
   that widget is from the stereo/mono era and a 32-channel trunk rendered there
   just repeats its first two channels and silently drops the other thirty. This
   is the MultiTrackEnabled row's own single-label variant, sized for a range
   string ("1–32") rather than a pair of short numbers. */
.config-route-trunk {
	align-items: center;
	background: #252525;
	border: 1px solid #444;
	border-radius: 4px;
	display: inline-flex;
	height: 32px;
	justify-content: center;
	min-width: 90px;
	padding: 0 10px;
}
.config-route-trunk strong {
	color: #e2e2e2;
	font-size: 12px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* The shared grid adapter owns the table-to-card fold. These rules describe
   only the SIP extension record's eight domain columns. Identity and actions
   form the card header; the remaining fields use the shared data-label
   contract in a stable two-column detail grid. */
@media (max-width: 767px) {
	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody tr {
		align-items: stretch;
		background: #292b2c;
		border: 1px solid #414446;
		border-radius: 8px;
		display: grid;
		gap: 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 8px;
		padding: 12px;
		position: relative;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(1) {
		grid-column: 1 / -1;
		min-width: 0;
		padding-right: 84px;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(8) {
		position: absolute;
		right: 12px;
		top: 12px;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table > table > tbody > tr > td:nth-child(n+2):nth-child(-n+7) {
		background: #242627;
		border: 1px solid #3d4042;
		border-radius: 6px;
		min-width: 0;
		padding: 8px 10px;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(3) { grid-column: 1; grid-row: 2; }
	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(2) { grid-column: 2; grid-row: 2; }
	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(5) { grid-column: 1; grid-row: 4; }
	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(6) { grid-column: 2; grid-row: 4; }
	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(7) { grid-column: 1 / -1; grid-row: 5; }

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(n+2):nth-child(-n+7)::before {
		color: #92979d;
		content: attr(data-label);
		display: block;
		font-size: 10px;
		font-weight: 600;
		letter-spacing: 0.03em;
		margin-bottom: 6px;
		text-transform: uppercase;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(3) .config-connection-mode {
		max-width: 100%;
		width: max-content;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(5) .config-route-pair,
	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(6) .config-route-pair {
		display: grid;
		grid-template-columns: repeat(2, minmax(42px, 1fr));
		width: 100%;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(5) .config-route-trunk,
	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(6) .config-route-trunk {
		width: 100%;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(2) .config-cell-copy small {
		white-space: normal;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(4) .config-option-stack {
		display: grid;
		gap: 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(4) .config-option-stack > span {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.extension-overview-page .extensions-config-grid .mvc-grid-table tbody td:nth-child(7) .config-integration-cell {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
		width: 100%;
	}
}

/* ==== STATUS PAGE =====*/
.sip-product-footer .statusGroupSelector {
	align-items: center;
	display: flex;
	height: 100%;
	position: relative;
}
.sip-product-footer .statusGroupSelector[hidden],
.sip-product-footer .statusGroupMenu[hidden] {
	display: none !important;
}
.sip-product-footer .statusGroupToggle,
.sip-product-footer .statusGroupButton {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--sp-radius-control);
	color: var(--sp-text-dim);
	cursor: pointer;
	display: grid;
	font: 500 13px/1 var(--sp-font);
	grid-template-columns: 20px minmax(0, 1fr) 12px;
	gap: 7px;
	height: 40px;
	padding: 0 10px;
	text-align: left;
	white-space: nowrap;
}
.sip-product-footer .statusGroupToggle:hover,
.sip-product-footer .statusGroupToggle:focus-visible,
.sip-product-footer .statusGroupToggle[aria-expanded="true"],
.sip-product-footer .statusGroupButton:hover,
.sip-product-footer .statusGroupButton:focus-visible,
.sip-product-footer .statusGroupButton.is-selected {
	background: var(--sp-surface);
	border-color: var(--sp-border-soft);
	color: var(--sp-text-strong);
	outline: none;
}
.sip-product-footer .statusGroupToggle > i,
.sip-product-footer .statusGroupButton > i {
	font-size: 16px;
	justify-self: center;
}
.sip-product-footer .statusGroupCaret {
	font-size: 11px !important;
}
.sip-product-footer .statusGroupMenu {
	background: var(--sp-chrome);
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-control) var(--sp-radius-control) 0 0;
	bottom: calc(100% - 1px);
	box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.38);
	display: flex;
	flex-direction: column;
	left: 0;
	max-width: calc(100vw - 16px);
	min-width: 100%;
	overflow: hidden;
	position: absolute;
	width: max-content;
	z-index: 1;
}
.sip-product-footer .statusGroupMenu .statusGroupButton {
	border: 0;
	border-radius: 0;
	grid-template-columns: 20px minmax(0, 1fr);
	height: auto;
	min-width: 190px;
	min-height: 40px;
	padding-block: 10px;
	white-space: normal;
	width: 100%;
}
.sip-product-footer .statusGroupMenu .statusGroupText {
	overflow-wrap: anywhere;
}
.sip-product-footer .statusGroupIconSpacer {
	display: block;
	width: 20px;
}
.sip-status-page form input[type='text'],
.sip-status-page .statusValue {
	background: #222222;
	border: 1px solid #3d3f40;
	border-radius: 5px;
	color: #d9dcdd !important;
	font-size: 13px;
	height: auto;
	min-height: 26px;
	overflow: hidden;
	padding: 4px 10px;
	text-overflow: ellipsis;
}
.sip-status-page {
	--sip-status-bg: var(--sp-bg);
	--sip-status-surface: var(--sp-surface);
	--sip-status-surface-raised: var(--sp-surface-raised);
	--sip-status-border: var(--sp-border);
	--sip-status-text: var(--sp-text);
	--sip-status-muted: var(--sp-muted-2);
	--sip-status-cyan: var(--sp-cyan);
	--sip-status-green: var(--sp-green);
	--sip-status-orange: var(--sp-orange);
	--sip-status-red: var(--sp-red);
	color: var(--sip-status-text);
	background: var(--sip-status-bg);
	border: 1px solid var(--sip-status-border);
	border-radius: 10px;
	box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
	display: flex;
	flex-direction: column;
	font-family: var(--sp-font);
	font-size: 13px;
	min-height: 0;
	overflow: hidden;
	position: relative;
}
.sip-status-page > .sip-status-pageHeader,
.sip-status-page > .extension-filter-bar {
	flex: 0 0 auto;
}
.sip-status-page .sip-status-pageHeader {
	align-items: center;
	background: linear-gradient(180deg, var(--sp-header-from) 0%, var(--sp-header-to) 100%);
	border: 0;
	border-bottom: 1px solid var(--sp-header-border);
	border-radius: 9px 9px 0 0;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
	color: rgba(20,10,4,0.92);
	display: flex;
	justify-content: space-between;
	margin-bottom: 0;
	min-height: 50px;
	overflow: hidden;
	padding: 6px 14px;
	position: relative;
}
/* .sip-status-pageSummary > div already gives every summary tile its layout,
   background and default text colors (see .sip-status-pageSummary rules
   below) - this only adds the state-color feedback for the Online/Active
   calls tiles, matching the same isActive convention used by
   .routingSummaryMetric. */
.sip-status-page .sip-status-pageSummary .statusSummaryOnline.isHealthy strong {
	color: #5bdc7a;
}

.sip-status-page .sip-status-pageSummary .statusSummaryOnline.isWarning strong {
	color: #f3a576;
}

.sip-status-page .sip-status-pageSummary .statusSummaryCalls.isActive {
	border-color: rgba(0, 199, 238, 0.5);
}

.sip-status-page .sip-status-pageSummary .statusSummaryCalls.isActive strong {
	color: #00c7ee;
}

.sip-status-page .sip-status-pageTitle {
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
}
.sip-status-page .sip-status-pageTitle > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1.1;
	min-width: 0;
}
.sip-status-page .sip-status-pageIcon {
	align-items: center;
	background: linear-gradient(180deg, #353535 0%, #242424 100%);
	border: 1px solid rgba(0,0,0,0.72);
	border-radius: 6px;
	color: #c4c7c9;
	display: inline-flex;
	flex: 0 0 auto;
	height: 32px;
	justify-content: center;
	width: 32px;
}
.sip-status-page .sip-status-pageIcon svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.5;
	width: 18px;
}
.sip-status-page .sip-status-pageTitle h2 {
	color: rgba(20,10,4,0.92);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0 0 3px;
	text-shadow: none;
	white-space: nowrap;
}
.sip-status-page .sip-status-pageTitle > div > span {
	color: rgba(20,10,4,0.62);
	font-size: 10px;
	line-height: 1.2;
	margin: 0;
	white-space: nowrap;
}
.sip-status-page .sip-status-pageSummary {
	align-self: center;
	display: flex;
	gap: 7px;
	margin: 0;
	overflow: visible;
}
.sip-status-page .sip-status-pageSummary > div {
	align-items: center;
	background: linear-gradient(180deg, #353535 0%, #242424 100%);
	border: 1px solid rgba(0,0,0,0.72);
	border-radius: 6px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 2px rgba(0,0,0,0.28);
	color: #f1f3f4;
	display: flex;
	gap: 6px;
	justify-content: center;
	min-height: 32px;
	min-width: 0;
	padding: 0 10px;
}
.sip-status-page .sip-status-pageSummary span {
	color: #aeb3b6;
	font-size: 9px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}
.sip-status-page .sip-status-pageSummary strong {
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}
.sip-status-page .statusRows {
	background: #272727;
	box-sizing: border-box;
	flex: 1 1 auto;
	max-height: calc(100vh - 176px);
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
	padding: 8px 8px 14px;
	width: 100%;
}
.sip-status-page .statusPagerShell {
	flex: 0 0 auto;
}
.sip-status-page .statusPagerShell[hidden],
.sip-status-page .statusPager[hidden] {
	display: none !important;
}
.sip-status-page .statusMessage {
	background: var(--sip-status-surface);
	border: 1px solid var(--sip-status-border);
	border-radius: 6px;
	padding: 10px;
}
.sip-status-page .statusExtensionCard {
	background: var(--sip-status-surface);
	border: 1px solid var(--sip-status-border);
	border-radius: 6px;
	margin-bottom: 3px;
	overflow: hidden;
	position: relative;
}
.sip-status-page .statusExtensionCard::before {
	background: #545454;
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	top: 0;
	width: 3px;
	z-index: 1;
}
.sip-status-page .statusExtensionCard.statusCardModeServer::before {
	background: var(--sip-status-orange);
}
.sip-status-page .statusExtensionCard.statusCardUnhealthy::before {
	background: #745052;
}
.sip-status-page .statusExtensionCard.statusCardActive {
	background: var(--sip-status-surface);
	border-color: rgba(49, 204, 75, 0.68);
	box-shadow: none;
}
.sip-status-page .statusExtensionCard:nth-child(even) {
	background: #292b2c;
}
.sip-status-page .statusExtensionCard.statusCardActive:nth-child(even) {
	background: #292b2c;
}
.sip-status-page .statusExtensionCard.isExpanded {
	background: #2f2f2f;
	margin-bottom: 8px;
}
.sip-status-page .statusExtensionCard.statusCardActive.isExpanded {
	background: #2f2f2f;
}
.sip-status-page .statusExtensionRow {
	align-items: center;
	display: grid;
	gap: 6px;
	grid-template-columns: 76px minmax(125px, 0.75fr) minmax(180px, 1fr) 96px 40px 100px minmax(140px, 0.8fr) 78px 104px minmax(148px, 162px) minmax(160px, 200px);
	padding: 4px 10px 4px 12px;
}
.sip-status-page .statusCallAttempt {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows 180ms ease, opacity 180ms ease;
}
.sip-status-page .statusCallAttempt.isVisible {
	grid-template-rows: 1fr;
	opacity: 1;
}
.sip-status-page .statusCallAttemptBody {
	min-height: 0;
	overflow: hidden;
}
.sip-status-page .statusCallAttemptContent {
	align-items: center;
	background: rgba(0, 199, 238, 0.08);
	border-top: 1px solid rgba(0, 199, 238, 0.2);
	color: #d7f8ff;
	display: grid;
	gap: 8px;
	grid-template-columns: 15px auto minmax(0, 1fr);
	min-height: 30px;
	padding: 5px 12px 5px 20px;
}
.sip-status-page .statusCallAttempt i {
	color: #00c7ee;
	font-size: 12px;
	text-align: center;
}
.sip-status-page .statusCallAttempt strong {
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}
.sip-status-page .statusCallAttempt span {
	color: rgba(231, 248, 252, 0.72);
	font-size: 11px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sip-status-page .statusCallAttempt--failed .statusCallAttemptContent {
	background: rgba(229, 56, 89, 0.1);
	border-top-color: rgba(241, 59, 99, 0.34);
	color: #ffdce3;
}
.sip-status-page .statusCallAttempt--failed i {
	color: #ff6b83;
}
.sip-status-page .statusCallAttempt--failed span {
	color: rgba(255, 220, 227, 0.8);
}
.sip-status-page .statusCallAttempt--dialing i {
	animation: status-call-attempt-spin 1s linear infinite;
}
@keyframes status-call-attempt-spin {
	to { transform: rotate(360deg); }
}
.sip-status-page .statusExtensionNumber {
	align-items: center;
	border-right: 1px solid var(--sip-status-border);
	display: grid;
	gap: 7px;
	grid-template-columns: 25px 1fr;
	line-height: 1.1;
	min-width: 0;
	padding-right: 8px;
}
.sip-status-page .statusCardActive .statusExtensionNumber {
	background: rgba(49, 204, 75, 0.12);
	border-color: rgba(49, 204, 75, 0.38);
	border-radius: 5px;
	margin-left: -4px;
	padding: 3px 8px 3px 4px;
}
.sip-status-page .statusExtensionNumber span,
.sip-status-page .statusField label {
	color: var(--sip-status-muted);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
	margin-bottom: 2px;
}
.sip-status-page .statusExpandToggle {
	align-items: center;
	background: var(--sip-status-surface-raised);
	border: 1px solid var(--sip-status-border);
	border-radius: 6px;
	color: rgba(255,255,255,0.55);
	cursor: pointer;
	display: inline-flex;
	font-size: 10px;
	height: 25px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	width: 25px;
}
.sip-status-page .statusExpandToggle:hover {
	background: rgba(255,255,255,0.12);
	border-color: rgba(255,255,255,0.25);
	color: #fff;
}
.sip-status-page .statusExpandToggle[aria-expanded="true"] {
	background: linear-gradient(180deg, rgba(24,212,242,0.18), rgba(2,184,215,0.1));
	border-color: rgba(0,199,238,0.35);
	color: #00c7ee;
}
.sip-status-page .statusExpandToggle i {
	transition: transform 0.2s ease;
}
.sip-status-page .statusExpandToggle[aria-expanded="true"] i {
	transform: rotate(180deg);
}
.sip-status-page .statusExtIdentity {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.sip-status-page .statusExtensionNumber strong {
	color: #b9bdc0;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.1;
}
.sip-status-page .statusCardActive .statusExtensionNumber span {
	color: #9fe9ad;
}
.sip-status-page .statusCardActive .statusExtensionNumber strong {
	color: #effff1;
	font-weight: 600;
}
.sip-status-page .statusField {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.sip-status-page .statusField input,
.sip-status-page .statusField button {
	min-width: 0;
	width: 100%;
}
.sip-status-page .statusField .Btn {
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid var(--sip-status-border);
	border-radius: 6px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	line-height: 1;
	margin-right: 0;
	min-height: 26px;
	overflow: hidden;
	padding: 3px 6px;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sip-status-page .statusFieldName .statusValue {
	color: #d9dcdd !important;
	font-size: 12px;
	min-height: 26px;
	padding: 3px 8px;
}
.sip-status-page .statusFieldExtensionStatus .Btn {
	font-size: 11px;
}
.sip-status-page .statusFieldCall .Btn {
	font-size: 13px;
	font-weight: 500;
	height: 26px;
	line-height: 1;
	min-height: 26px;
	padding: 0 0 1px;
	text-align: center;
	text-overflow: clip;
}
.sip-status-page .statusFieldCall {
	align-items: stretch;
	justify-self: stretch;
}
.sip-status-page .statusFieldCall label {
	display: block;
	text-align: left;
	white-space: nowrap;
}
.sip-status-page .statusFieldCall .statusCallControl {
	height: 26px;
	min-height: 26px;
	padding: 0;
	width: 100%;
}
.sip-status-page .statusFieldCall .statusCallControl.isHangupArmed,
.sip-status-page .statusFieldCall .statusCallControl.isDisconnecting {
	background: #c9002f !important;
	border-color: #f13b63 !important;
	color: #fff !important;
}
.sip-status-page .statusFieldCall .statusCallControl.isHangupArmed {
	animation: status-hangup-confirm-pulse 0.9s ease-in-out infinite;
}
.sip-status-page .statusFieldCall .statusCallControl.isHangupArmed:hover {
	background: #df1746 !important;
}
@keyframes status-hangup-confirm-pulse {
	0%, 100% {
		border-color: #e53859;
		box-shadow: 0 0 0 0 rgba(201, 0, 47, 0.18);
		filter: brightness(0.92);
	}
	50% {
		border-color: #ff6b83;
		box-shadow: 0 0 0 3px rgba(201, 0, 47, 0.22), 0 0 10px rgba(241, 59, 99, 0.38);
		filter: brightness(1.16);
	}
}
@media (prefers-reduced-motion: reduce) {
	.sip-status-page .statusFieldCall .statusCallControl.isHangupArmed {
		animation: none;
		box-shadow: 0 0 0 2px rgba(241, 59, 99, 0.35);
	}
	.sip-status-page .statusCallAttempt--dialing i {
		animation: none;
	}
	.sip-status-page .statusCallAttempt {
		transition: none;
	}
}
.sip-status-page .statusFieldCodec .statusValue,
.sip-status-page .statusFieldBitRate .statusValue {
	color: #d9dcdd !important;
	font-size: 12px;
}
.sip-status-page .statusField input.activeCall,
.sip-status-page .statusField .Btn.activeCall {
	background: #216a35 !important;
	border-color: #31cc4b !important;
	box-shadow: none;
	color: #dceee0;
}
.sip-status-page .statusFieldCall .Btn.activeCall.isHangupArmed,
.sip-status-page .statusFieldCall .Btn.isHangupArmed {
	background: #c9002f !important;
	border-color: #f13b63 !important;
	color: #fff !important;
}
.sip-status-page .statusField .statusHealthy {
	background: #1c2420;
	border-color: #3d4f42;
	box-shadow: none;
	color: #d9dcdd;
}
.sip-status-page .statusField .statusUnhealthy {
	background: #2e1f20;
	border-color: #bd555a;
	box-shadow: none;
	color: #e2a7aa;
}
.sip-status-page .statusFieldExtensionStatus .statusHealth,
.sip-status-page .statusFieldCall .Btn {
	align-items: center;
	display: flex;
	gap: 6px;
	justify-content: center;
	padding: 3px 7px;
}
.sip-status-page .statusFieldExtensionStatus .statusHealth {
	justify-content: flex-start;
}
.sip-status-page .statusFieldCall .Btn:not(.activeCall) {
	background: #242627;
	border-color: #414445;
	color: #93989b;
	font-weight: 500;
}
.sip-status-page .statusFieldExtensionStatus .statusHealth::before {
	background: #8a8d8e;
	border-radius: 50%;
	content: '';
	display: inline-block;
	flex: 0 0 auto;
	height: 7px;
	width: 7px;
}
.sip-status-page .statusFieldExtensionStatus .statusHealthy::before {
	background: #31df5f;
	box-shadow: 0 0 4px rgba(49, 223, 95, 0.65);
}
.sip-status-page .statusFieldExtensionStatus .statusUnhealthy::before {
	background: #ff6b6b;
	box-shadow: 0 0 4px rgba(255, 107, 107, 0.65);
}
.sip-status-page .statusFieldCall .Btn::before {
	display: none;
}
.sip-status-page .statusFieldCaller .statusValue {
	color: #d9dcdd !important;
	font-size: 12px;
}
.sip-status-page .statusCardActive .statusFieldCaller .statusValue {
	background: rgba(49, 204, 75, 0.12);
	border-color: rgba(49, 204, 75, 0.46);
	color: #effff1 !important;
	font-weight: 600;
}
.sip-status-page .statusFieldCallHealth .statusValue {
	font-size: 11px;
	font-weight: 600;
	min-height: 26px;
	padding: 3px 5px;
	text-align: center;
}
.sip-status-page .statusFieldDuration .statusValue {
	color: #d9dcdd !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 12px;
	letter-spacing: 0;
	padding-left: 4px;
	padding-right: 4px;
	text-overflow: clip;
}
.sip-status-page .statusDetails {
	background: #262626;
	border-top: 1px solid var(--sip-status-border);
	display: grid;
	align-items: stretch;
	gap: 14px;
	grid-template-columns: 56px minmax(0, 1fr);
	padding: 10px 20px 18px 12px;
	position: relative;
}
/* Keep a single slim rail outside every stats/meter/history layout. */
.sip-status-page .statusDetailsContent {
	display: grid;
	align-items: center;
	gap: 10px 18px;
	/* Diagnostics contain eight fields and recovery cards; the meter panel is
	   intentionally more compact. Equal tracks left useful width blank on the
	   meter side while clipping diagnostic values on the other. */
	grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
	min-width: 0;
}
/* A multitrack row's stats panel (Call Details + up to twelve trunk tiles) is
   much taller than a plain call's, so the row height is set by the radial
   column - which used to leave the stats panel clumped at the top with a lot
   of dead space below it, and the speed-dial column floating alone in the
   middle with nothing above or below it. Scoped to MultiTrackEnabled rows only:
   a plain stereo/mono call's content is short enough that the old centered
   layout was never the problem. */
.sip-status-page .statusDetails.isMultiTrack {
	align-items: stretch;
	/* The outer grid is the fixed left speed-dial rail plus content. */
}
.sip-status-page .statusDetails.isMultiTrack .statusDetailsContent {
	align-items: start;
}
/* A multitrack row's stats panel (Call Details + up to twelve trunk tiles) is
   much taller than a plain call's, so the row height is set by the radial
   column - which used to leave the stats panel clumped at the top with a lot
   of dead space below it, and the speed-dial column floating alone in the
   middle with nothing above or below it. Scoped to MultiTrackEnabled rows only:
   a plain stereo/mono call's content is short enough that the old centered
   layout was never the problem. */
.sip-status-page .statusDetails.isMultiTrack {
	align-items: stretch;
	grid-template-columns: minmax(620px, 680px) minmax(520px, 1fr);
}
.sip-status-page .statusEditExtLink {
	position: absolute;
	bottom: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 16px;
	border-radius: 5px 0 0 0;
	color: #251108;
	background: linear-gradient(180deg, #f16b2f 0%, #d64c0e 100%);
	border-top: 1px solid #f57a43;
	border-left: 1px solid #b5430c;
	font-size: 8px;
	text-decoration: none;
	transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.sip-status-page .statusEditExtLink:hover {
	color: #120904;
	background: linear-gradient(180deg, #ff7a3d 0%, #e45516 100%);
	border-color: #ff8a55;
}
.sip-status-page .statusAudioMeterGroup {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.sip-status-page .statusAudioChannelInfoValue {
	color: rgba(255,255,255,0.35);
	font-size: 10px;
	padding-left: 2px;
}
.sip-status-page .statusDetails[hidden] {
	display: none;
}
.sip-status-page .statusDetailsGroup {
	align-self: center;
	min-width: 0;
}
/* Keep the trunk diagnostics packed at the top. The radial meters are often
   taller; stretching this column used to scatter its three blocks through a
   large empty area and strand Speed Dials at the bottom of the card. */
.sip-status-page .statusDetails.isMultiTrack > .statusDetailsGroup:first-child {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 7px;
	justify-content: flex-start;
}
.sip-status-page .statusSpeedDialsMerged {
	align-self: end;
	display: grid;
	gap: 2px 4px;
	grid-template-columns: repeat(4, 28px);
	grid-template-rows: 10px 23px;
	margin: 0;
	transform: translateY(-2px);
	width: 124px;
}
.sip-status-page .statusSpeedDialsMerged .statusInlineLabel {
	margin-right: 0;
}

@media only screen and (min-width: 768px) {
	.sip-status-page .statusDetails.isMultiTrack .statusDetailsGrid {
		grid-template-columns: minmax(64px, 1.05fr) repeat(2, minmax(60px, 1fr)) repeat(3, minmax(42px, 0.7fr)) repeat(2, minmax(48px, 0.78fr)) 124px;
	}
}
.sip-status-page .statusDetailsGroupMeters {
	/* Keep meters alongside the first diagnostic row instead of leaving them
	   stranded at the bottom of a long idle/recovery panel. */
	align-self: start;
	overflow: hidden;
	padding-bottom: 4px;
}
/* Bottom-aligning made sense when the meters column was reliably the tallest
   thing in the row. Now that a multitrack row's stats panel can be taller
   (twelve tiles plus speed dials, and the radial/lane cap is smaller than it
   was), that same rule pulled the whole meters panel down to sit flush with
   the row's bottom edge instead of its natural place at the top, next to
   Profile and the Radial/Lanes toggle. */
.sip-status-page .statusDetails.isMultiTrack .statusDetailsGroupMeters {
	align-self: start;
}
.sip-status-page .statusDetailsGroup h3 {
	display: none;
}
.sip-status-page .statusDetailsGrid {
	align-items: end;
	display: grid;
	gap: 4px 8px;
	grid-template-columns: minmax(74px, 1.05fr) repeat(2, minmax(72px, 1fr)) repeat(3, minmax(48px, 0.7fr)) repeat(2, minmax(54px, 0.78fr));
}
.sip-status-page .statusFieldStatus .Btn {
	font-size: 10px;
	min-height: 23px;
	padding: 3px 6px;
}
.sip-status-page .statusFieldStatus {
	grid-column: span 1;
}
.sip-status-page .statusFieldProfile .statusValue,
.sip-status-page .statusFieldBuffer .statusValue,
.sip-status-page .statusFieldPacketCount .statusValue,
.sip-status-page .statusFieldLoss .statusValue {
	font-size: 11px;
	min-height: 23px;
	padding: 3px 7px;
}
.sip-status-page .statusFieldProfile .statusValue,
.sip-status-page .statusFieldBuffer .statusValue,
.sip-status-page .statusFieldPacketCount .statusValue,
.sip-status-page .statusFieldLoss .statusValue {
	color: #d9dcdd !important;
	text-align: center;
}
.sip-status-page [id^="call_quality_"] {
	text-align: center;
}
.sip-status-page .statusFieldCallHealth .statusQualityGood {
	background: #216a35;
	border-color: #31cc4b;
	color: #eef8f0 !important;
	font-weight: 500;
}
.sip-status-page .statusFieldCallHealth .statusQualityFair {
	background: #a86d19;
	border-color: #cf8c2a;
	color: #fff !important;
	font-weight: 700;
}
.sip-status-page .statusFieldCallHealth .statusQualityPoor {
	background: #963c40;
	border-color: #bd555a;
	color: #fff !important;
	font-weight: 700;
}
.sip-status-page .statusTallies {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.sip-status-page .statusTalliesMain {
	padding-top: 14px;
}
.sip-status-page .statusTally {
	align-items: center;
	background: linear-gradient(180deg, #303030 0%, #242424 100%) !important;
	border: 1px solid #4b4b4b;
	border-radius: 3px;
	color: var(--sip-status-muted);
	display: flex;
	font-size: 9px;
	font-weight: 500;
	gap: 4px;
	height: 15px;
	justify-content: flex-start;
	line-height: 1;
	overflow: hidden;
	padding: 0 7px;
	text-align: left;
	white-space: nowrap;
}
.sip-status-page .statusTally::before {
	background: #6b6b6b;
	border-radius: 50%;
	content: '';
	display: inline-block;
	flex: 0 0 auto;
	height: 5px;
	width: 5px;
}
.sip-status-page .statusTallyOn {
	background: linear-gradient(180deg, #303030 0%, #242424 100%) !important;
	border-color: #4b4b4b;
	color: var(--sip-status-muted) !important;
	font-weight: 500;
}
.sip-status-page .statusTallyOn::before {
	background: #00c7ee;
	box-shadow: 0 0 3px rgba(0, 199, 238, 0.65);
}
.sip-status-page .statusTallyOff {
	background: linear-gradient(180deg, #303030 0%, #242424 100%) !important;
	color: var(--sip-status-muted) !important;
}
.sip-status-page .statusTallyOff::before {
	background: #5a5a5a;
}
.sip-status-page .statusSpeedDials {
	align-content: start;
	border-right: 1px solid var(--sip-status-border);
	display: grid;
	gap: 6px;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
	padding-right: 11px;
}
.sip-status-page .statusSpeedDials .statusInlineLabel {
	line-height: 1.3;
	margin-bottom: 2px;
	text-align: center;
	white-space: normal;
}
.sip-status-page .statusInlineLabel {
	color: #9a9a9a;
	display: block;
	font-size: 9px;
	font-weight: 500;
	grid-column: 1 / -1;
	line-height: 1;
}
.sip-status-page .statusSpeedDial {
	background: linear-gradient(180deg, #3d3d3d, #333333);
	border: 1px solid var(--sip-status-border);
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	min-height: 44px;
	line-height: 1;
	padding: 0;
	text-align: center;
	width: 44px;
}
.sip-status-page .statusSpeedDial:hover:not(:disabled),
.sip-status-page .statusSpeedDial.isDialing {
	background: linear-gradient(180deg, #18d4f2 0%, #02b8d7 100%);
	border-color: #21d9f4;
	color: #131313;
}
.sip-status-page .statusSpeedDial:focus-visible {
	outline: 2px solid var(--sp-cyan, #00c7ee);
	outline-offset: 2px;
}
.sip-status-page .statusSpeedDial:disabled {
	cursor: default;
	opacity: 0.65;
}
.sip-status-page .statusDisconnect {
	align-items: center;
	background: #202223;
	border: 1px solid #3c3f40;
	border-radius: 5px;
	color: #666c70;
	cursor: default;
	display: flex;
	font-size: 13px;
	height: 26px;
	justify-content: center;
	line-height: 1;
	overflow: hidden;
	padding: 0;
	text-align: center;
	width: 100%;
}
.sip-status-page .statusDisconnect i {
	pointer-events: none;
}
.sip-status-page .statusHangupIcon {
	fill: currentColor;
	height: 15px;
	pointer-events: none;
	width: 18px;
}
.sip-status-page .statusDisconnect.activeDisconnect:hover,
.sip-status-page .statusDisconnect.activeDisconnect.isDisconnecting {
	background: #c83d43;
	border-color: #f05b60;
}
.sip-status-page .statusDisconnect.activeDisconnect {
	background: #9f3035;
	border-color: #e34a50;
	color: #fff;
	cursor: pointer;
}
.sip-status-page .statusDisconnect:disabled {
	cursor: default;
	opacity: 0.65;
}
.sip-status-page .audioMeter,
.sip-routing-page .audioMeter {
	background: #1d1d1d;
	border: 1px solid #404040;
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 38px;
	justify-content: center;
	overflow: hidden;
	padding: 8px 20px;
}
.sip-status-page .statusExtensionRow > .statusFieldAudio .audioMeter {
	gap: 2px;
	height: 26px;
	padding: 3px 10px;
}
.sip-status-page .statusCompactRadialMeters {
	align-content: center;
	align-items: center;
	box-sizing: border-box;
	display: none;
	gap: 5px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	height: 40px;
	overflow: visible;
	padding: 0;
}
.sip-status-page .statusFieldAudio.isMultiTrack > .audioMeter {
	display: none;
}
.sip-status-page .statusFieldAudio.isMultiTrack > label {
	display: none;
}
.sip-status-page .statusFieldAudio.isMultiTrack > .statusCompactRadialMeters {
	display: grid;
}
.sip-status-page .statusCompactRadialMeter {
	align-items: center;
	display: grid;
	justify-items: center;
	min-width: 0;
	position: relative;
}
.sip-status-page .statusCompactRadialMeter > span {
	color: #9a9a9a;
	font-size: 9px;
	font-weight: 600;
	left: 0;
	line-height: 1;
	position: absolute;
	z-index: 1;
}
.sip-status-page .statusCompactRadialMeterWheel.sp-radial-meter {
	height: 56px;
	margin: 0;
	width: 56px;
}
/* A direction below eight channels gets labelled lanes in the wheel's place. The
   shared TX/RX bar is hidden for multitrack trunks, so without these a talkback
   return had no compact meter at all. */
/* One wheel beside a lane box. The wheel keeps the same 56px it has when both
   directions draw one - a trunk's feed should not shrink just because its return
   leg is too small for a wheel - so this only has to make room for it. */
.sip-status-page .statusCompactRadialMeters.isMixedMeters {
	align-items: center;
}
/* Two wheels can split the row evenly and let each direction label sit in the empty
   corner beside its circle. A lane box fills its cell, so there is no such corner -
   and sizing the wheel column to the wheel removes its corner too. In the mixed row
   the labels therefore become real columns rather than overlays, which costs each
   one only its own width instead of a reserved gutter, and the lane box takes
   whatever is left. */
.sip-status-page .statusCompactRadialMeters.isMixedMeters {
	column-gap: 3px;
}
.sip-status-page .statusCompactRadialMeters.isMixedMeters .statusCompactRadialMeter {
	display: contents;
}
.sip-status-page .statusCompactRadialMeters.isMixedMeters .statusCompactRadialMeter > span {
	align-self: center;
	position: static;
}
.sip-status-page .statusCompactRadialMeters.isMixedMeters.isLaneFirst {
	grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.sip-status-page .statusCompactRadialMeters.isMixedMeters.isWheelFirst {
	grid-template-columns: auto auto auto minmax(0, 1fr);
}
.sip-status-page .statusCompactLaneMeter {
	justify-items: stretch;
	min-width: 0;
}
/* The standard meter box, tightened for the compact column: the 20px side padding
   it carries at full width leaves almost no track in a cell this narrow. */
/* Core's level-meter panel, sized for the compact cell. Overrides only - the
   panel, track, fill and peak all come from SmartPi.UI.Core. */
.sip-status-page .statusCompactLaneBox.sp-level-meter-panel {
	/* Core's panel is a translucent wash, which reads lighter than the solid tile
	   the other extensions on this row use for their meters. Match the page. */
	background: #1d1d1d;
	box-sizing: border-box;
	max-height: 40px;
	padding: 4px 5px;
	width: 100%;
}
/* A single digit needs far less than Core's 32px label column, and in a cell this
   narrow that width is better spent on the track. */
.sip-status-page .statusCompactLaneBox .sp-level-meter__lane {
	gap: 3px;
	grid-template-columns: 8px minmax(0, 1fr);
	height: 9px;
}
.sip-status-page .statusCompactLaneBox .sp-level-meter__label {
	font-size: 8px;
	text-align: right;
}
.sip-status-page .statusExtensionRow > .statusFieldAudio .audioMeterLane {
	grid-template-columns: 18px 1fr;
	gap: 5px;
	height: 7px;
}
.sip-status-page .audioMeterStereo {
	border-radius: 5px;
	gap: 3px;
	height: 46px;
	padding: 9px 18px;
	width: 100%;
}
.sip-status-page .audioMeterLane,
.sip-routing-page .audioMeterLane {
	align-items: center;
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 7px;
	height: 11px;
	min-width: 0;
}
.sip-status-page .audioMeterLane[hidden],
.sip-routing-page .audioMeterLane[hidden] {
	display: none !important;
}
.sip-status-page .audioMeterLabel,
.sip-routing-page .audioMeterLabel {
	color: #9a9a9a;
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	text-align: left;
}
.sip-status-page .audioMeterStereo .audioMeterLane {
	grid-template-columns: 32px 1fr;
}
.sip-status-page .audioMeterStereo .audioMeterLabel {
	white-space: nowrap;
}
.sip-status-page .audioMeterHeading {
	display: none;
}
.sip-status-page .audioMeterTrack,
.sip-routing-page .audioMeterTrack {
	background: linear-gradient(to right, rgba(49, 223, 95, 0.16) 0%, rgba(49, 223, 95, 0.16) 70%, rgba(246, 207, 61, 0.18) 85%, rgba(236, 61, 61, 0.2) 100%);
	border-radius: 3px;
	display: block;
	height: 5px;
	min-width: 0;
	overflow: hidden;
	position: relative;
}
.sip-status-page .audioMeterFill,
.sip-routing-page .audioMeterFill {
	background: linear-gradient(to right, #31df5f 0%, #31df5f 70%, #f0cf36 70%, #f0cf36 85%, #ec3d3d 85%, #ec3d3d 100%);
	background-position: left top;
	background-repeat: no-repeat;
	background-size: calc(10000% / var(--sip-meter-level, 100)) 100%;
	border-radius: 3px;
	display: block;
	height: 4px;
	min-width: 1px;
	transition: width 90ms linear;
}
.sip-status-page .audioMeterPeak,
.sip-routing-page .audioMeterPeak {
	background: #74ff8b;
	border-radius: 2px;
	display: block;
	height: 7px;
	position: absolute;
	top: -1px;
	z-index: 2;
	transform: translateX(-1px);
	transition: left 140ms linear;
	width: 2px;
}
.sip-status-page .audioMeterPeakOrange,
.sip-routing-page .audioMeterPeakOrange {
	background: #f0cf36;
}
.sip-status-page .audioMeterPeakRed,
.sip-routing-page .audioMeterPeakRed {
	background: #ec3d3d;
}
.sip-status-page .audioMeterScale {
	display: grid;
	gap: 7px;
	grid-template-columns: 32px 1fr;
	margin: 3px 18px 0;
	padding: 0;
}
.sip-status-page .audioMeterScaleTrack {
	height: 8px;
	position: relative;
}
.sip-status-page .audioMeterScaleTick {
	color: rgba(255,255,255,0.34);
	font-size: 8px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	position: absolute;
	top: 0;
	white-space: nowrap;
}
.sip-status-page .audioMeterScaleTick--first {
	left: 0;
}
.sip-status-page .audioMeterScaleTick--last {
	left: 100%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.5);
}
.sip-status-page .statusStereoMeters {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sip-status-page .statusAudioDetailRow {
	align-items: start;
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(2, minmax(210px, 1fr));
	justify-content: end;
	min-width: 0;
}

@media only screen and (max-width: 1700px) {
	.sip-status-page .statusExtensionRow {
		grid-template-columns: 74px minmax(110px, 0.7fr) minmax(158px, 0.95fr) 86px 38px 80px minmax(130px, 0.8fr) 76px 100px minmax(140px, 152px) minmax(110px, 150px);
	}
	.sip-status-page .statusDetailsContent {
		gap: 8px 16px;
	}
	.sip-status-page .statusDetailsGrid {
		gap: 4px 6px;
		grid-template-columns: minmax(68px, 1.05fr) repeat(2, minmax(64px, 1fr)) repeat(3, minmax(42px, 0.7fr)) repeat(2, minmax(48px, 0.78fr));
	}
	.sip-status-page .statusAudioDetailRow {
		grid-template-columns: repeat(2, minmax(180px, 1fr));
	}
}

@media only screen and (max-width: 1500px) {
	.sip-status-page .statusExtensionRow {
		grid-template-columns: 70px minmax(100px, 0.65fr) minmax(145px, 0.95fr) 86px 38px 74px minmax(135px, 1.2fr) 76px 100px 92px minmax(155px, 180px);
	}
	.sip-status-page .statusDetailsContent {
		gap: 8px 14px;
	}
	.sip-status-page .statusDetailsGrid {
		gap: 4px 5px;
		grid-template-columns: minmax(68px, 1.05fr) repeat(2, minmax(64px, 1fr)) repeat(3, minmax(42px, 0.7fr)) repeat(2, minmax(48px, 0.78fr));
	}
	.sip-status-page .statusAudioDetailRow {
		gap: 6px;
		grid-template-columns: repeat(2, minmax(160px, 1fr));
	}
}

@media only screen and (max-width: 1220px) {
	.sip-status-page .statusExtensionRow {
		grid-template-columns: 70px minmax(120px, 1fr) minmax(155px, 1.1fr) 82px 38px 76px 78px 100px minmax(132px, 144px);
	}
	.sip-status-page .statusFieldAudio {
		display: none;
	}
	.sip-status-page .statusFieldCaller {
		display: none;
	}
	.sip-status-page .statusDetailsContent {
		grid-template-columns: minmax(0, 1fr);
	}
	.sip-status-page .statusAudioDetailRow {
		grid-template-columns: repeat(2, minmax(170px, 1fr));
	}
}

@media only screen and (max-width: 960px) {
	.sip-status-page .statusExtensionRow {
		grid-template-columns: 70px minmax(130px, 1fr) 42px 82px 78px minmax(132px, 144px);
	}
	.sip-status-page .statusFieldExtensionStatus,
	.sip-status-page .statusTalliesMain,
	.sip-status-page .statusFieldCodec {
		display: none;
	}
	.sip-status-page .statusAudioDetailRow {
		grid-template-columns: 1fr;
	}
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
	.sip-status-page {
		padding-bottom: 18px;
	}
	.sip-status-page .statusPagerShell {
		display: none !important;
	}
	.sip-status-page .sip-status-pageHeader {
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
		padding: 7px 7px 8px;
	}
	.sip-status-page .sip-status-pageTitle {
		gap: 7px;
	}
	.sip-status-page .sip-status-pageIcon {
		height: 30px;
		width: 30px;
	}
	.sip-status-page .sip-status-pageTitle h2 {
		font-size: 14px;
		margin-bottom: 1px;
	}
	.sip-status-page .sip-status-pageTitle > div > span {
		display: none;
	}
	.sip-status-page .sip-status-pageSummary {
		display: grid;
		flex: 0 0 100%;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}
	.sip-status-page .sip-status-pageSummary > div {
		padding: 4px 6px;
	}
	.sip-status-page .sip-status-pageSummary span {
		font-size: 8px;
	}
	.sip-status-page .sip-status-pageSummary strong {
		font-size: 14px;
		margin-top: 1px;
	}
	.sip-status-page .statusRows {
		overflow-x: hidden;
		/* The group sizer fixes this container's height to whole collapsed rows;
		   an expanded card grows past that, so allow scrolling to reach it. */
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 6px 6px 10px;
	}
	.sip-status-page .statusExtensionCard {
		margin-bottom: 4px;
	}
	.sip-status-page .statusExtensionRow {
		grid-template-areas:
			"number name duration call"
			"number health duration call";
		grid-template-columns: 42px minmax(0, 1fr) 70px 48px;
		grid-template-rows: 26px 24px;
		column-gap: 6px;
		row-gap: 3px;
		padding: 6px 8px 6px 10px;
	}
	.sip-status-page .statusExtensionNumber {
		align-self: stretch;
		border-bottom: 0;
		border-right: 1px solid var(--sip-status-border);
		grid-area: number;
		grid-template-columns: 1fr;
		grid-template-rows: 24px 1fr;
		justify-items: center;
		padding: 0 6px 0 0;
	}
	.sip-status-page .statusExpandToggle {
		height: 24px;
		width: 24px;
	}
	.sip-status-page .statusExtIdentity {
		align-items: center;
		justify-content: center;
	}
	.sip-status-page .statusExtensionNumber span {
		display: none;
	}
	.sip-status-page .statusExtensionNumber strong {
		font-size: 15px;
	}
	.sip-status-page .statusFieldName {
		grid-area: name;
	}
	.sip-status-page .statusFieldCallHealth {
		display: none;
		grid-area: quality;
	}
	.sip-status-page .statusFieldExtensionStatus {
		display: flex;
		grid-area: health;
	}
	.sip-status-page .statusFieldCall {
		align-items: stretch;
		align-self: center;
		grid-area: call;
	}
	.sip-status-page .statusFieldDuration {
		align-self: center;
		grid-area: duration;
	}
	.sip-status-page .statusFieldName label,
	.sip-status-page .statusFieldExtensionStatus label,
	.sip-status-page .statusFieldCall label,
	.sip-status-page .statusFieldDuration label {
		display: none;
	}
	.sip-status-page .statusFieldName .statusValue,
	.sip-status-page .statusFieldExtensionStatus .statusHealth,
	.sip-status-page .statusFieldDuration .statusValue {
		font-size: 10px;
		height: 24px;
		min-height: 24px;
		padding: 2px 6px;
	}
	.sip-status-page .statusFieldExtensionStatus .statusHealth {
		font-size: 9px;
	}
	.sip-status-page .statusFieldCall .statusCallControl {
		height: 30px;
		min-height: 30px;
		width: 30px;
	}
	.sip-status-page .statusFieldDuration .statusValue {
		font-size: 9px;
		letter-spacing: 0;
		padding-left: 4px;
		padding-right: 4px;
		text-align: center;
	}
	.sip-status-page .statusTalliesMain,
	.sip-status-page .statusFieldCodec,
	.sip-status-page .statusFieldBitRate,
	.sip-status-page .statusFieldAudio {
		display: none;
	}
	.sip-status-page .statusFieldCaller {
		display: none;
		grid-area: caller;
	}
	.sip-status-page .statusCardActive .statusExtensionRow {
		grid-template-areas:
			"number name duration call"
			"number health duration call"
			"number caller caller quality";
		grid-template-rows: 26px 24px 24px;
	}
	.sip-status-page .statusCardActive .statusFieldCallHealth {
		display: flex;
	}
	.sip-status-page .statusCardActive .statusFieldCaller {
		display: flex;
	}
	.sip-status-page .statusCardActive .statusFieldCaller label {
		display: none;
	}
	.sip-status-page .statusCardActive .statusFieldCaller .statusValue {
		font-size: 10px;
		height: 24px;
		min-height: 24px;
		padding: 2px 6px;
	}
	.sip-status-page .statusCardActive .statusFieldCallHealth label {
		display: none;
	}
	.sip-status-page .statusCardActive .statusFieldCallHealth .statusValue {
		font-size: 10px;
		height: 24px;
		min-height: 24px;
		padding: 2px 3px;
		text-overflow: clip;
	}
	.sip-status-page .statusDetails {
		gap: 8px;
		grid-template-columns: 52px minmax(0, 1fr);
		/* Bottom clearance keeps the corner config cog off the audio meters. */
		padding: 8px 8px 34px;
	}
	.sip-status-page .statusSpeedDials {
		padding-right: 7px;
	}
	/* Buffer health fields use two compact columns on small screens. */
	.sip-status-page .statusDetailsGrid {
		gap: 6px 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	/* The desktop trunk health grid has four columns. On a phone that makes
	   diagnostic labels and the paired TX/RX rate unreadable, so let the
	   expanded card grow vertically instead of clipping its content. */
	.sip-status-page .statusTrunkStats {
		gap: 7px 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sip-status-page .statusTrunkStat {
		min-height: 52px;
		padding: 7px 9px;
	}
	.sip-status-page .statusTrunkStat > span {
		font-size: 9px;
		white-space: normal;
	}
	.sip-status-page .statusTrunkStat > strong {
		font-size: 12px;
	}
	.sip-status-page .statusDetails .statusField label {
		font-size: 9px;
		margin-bottom: 2px;
	}
	.sip-status-page .statusDetails .statusField input,
	.sip-status-page .statusDetails .statusField .Btn {
		font-size: 12px;
		height: 30px;
		min-height: 30px;
		padding-bottom: 0;
		padding-top: 0;
	}
	.sip-status-page .statusEditExtLink {
		border-radius: 6px 0 0 0;
		height: 26px;
		width: 34px;
	}
	.sip-status-page .audioMeter {
		height: auto;
		padding: 8px 18px;
	}
	.sip-status-page .audioMeterLane {
		grid-template-columns: 28px 1fr;
	}
	.sip-status-page .audioMeterTrack {
		height: 7px;
	}
}

/* Protected permissions omit their destructive action but retain its footprint
   so immutable rows align with the rest of the granted-permission list. */
.permission-action-placeholder {
	cursor: default;
	visibility: hidden;
}

/* ==== MONITORING PAGE =====*/
/* A source picker, not a readout. The monitor bus is its own strip at the top
   of the page, and everything below it belongs to switching sources; multi-
   track sources are picked straight off the radial meter - the component
   exists to show many channels in little space, so it is the hero rather than
   a preview beside a grid of buttons. Colour follows the shared meaning: cyan
   for the selected stream, green for live audio, red for failure. */
.monitoring-page {
	display: flex;
	flex-direction: column;
	min-height: 0;
	/* One width for the extension list and for the bus controls above it, so the
	   listen-quality/output/stop group and the list share both edges instead of
	   ending at two arbitrary insets. */
	--monitor-picker-width: 320px;
}

/* Audio transport policy block within System > Audio Settings. */
.audio-settings-qos {
	border-top: 1px solid var(--sp-border);
	margin-top: 22px;
	padding-top: 18px;
}
.audio-settings-qos h3 {
	color: var(--sp-text-strong);
	font-size: 15px;
	margin: 0 0 5px;
}
.audio-settings-qos > p {
	color: var(--sp-muted);
	font-size: 12px;
	line-height: 1.45;
	margin: 0 0 16px;
	max-width: 780px;
}

/* ---- monitor bus: a raised dark strip between the header and the workspace ---- */
/* Every field here is a readout someone has to read at a glance, so the bus
   wraps onto a second line before it lets a label or a value be clipped. The
   statistics keep their content width and the flexible copy, meter and control
   blocks absorb whatever room is left. */
.monitor-bus {
	align-items: center;
	background: linear-gradient(180deg, #353535 0%, #242424 100%);
	border-bottom: 1px solid var(--sp-border);
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 7px 10px;
	min-width: 0;
	/* No right padding: the controls block ends flush with the page edge, where
	   the extension list below it also ends. Its own inner padding keeps the stop
	   button off the edge by the same amount as the list's contents. */
	padding: 7px 0 7px 14px;
}

.monitor-bus__lamp {
	background: #6b6f71;
	border-radius: 50%;
	flex: 0 0 auto;
	height: 7px;
	width: 7px;
}
.monitor-bus.is-active .monitor-bus__lamp {
	animation: monitor-pulse 1.6s ease-in-out infinite;
	background: var(--sp-green);
	box-shadow: 0 0 8px rgba(49, 204, 75, 0.7);
}

.monitor-bus__copy {
	display: flex;
	flex: 2 1 200px;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	text-align: left;
}
.monitor-bus__source {
	align-items: center;
	display: flex;
	gap: 7px;
	justify-content: flex-start;
	min-width: 0;
}
.monitor-bus__source > strong,
.monitor-bus__copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-bus__source > strong { color: var(--sp-text-strong); font-size: 12px; font-weight: 600; }
.monitor-bus.is-active .monitor-bus__source > strong { color: var(--sp-cyan); }
.monitor-bus__copy > span { color: var(--sp-muted); font-size: 10px; }
.monitor-bus__copy > span.is-error { color: #ef777d; }

/* Shared dBFS meter, tightened to sit inside the header row. */
.monitor-bus__meters { flex: 2 1 240px; min-width: 0; overflow: hidden; padding: 4px 8px 2px; }
.monitor-bus__meters .sp-level-meter { gap: 2px; }
.monitor-bus__meters .sp-level-meter__lane { gap: 5px; grid-template-columns: 10px minmax(0, 1fr); height: 8px; }
.monitor-bus__meters .sp-level-meter__label { font-size: 9px; }
.monitor-bus__meters .sp-level-meter__track { height: 4px; }
.monitor-bus__meters .sp-level-meter__fill { height: 3px; }
.monitor-bus__meters .sp-level-meter__scale { gap: 5px; grid-template-columns: 10px minmax(0, 1fr); margin-top: 1px; }
.monitor-bus__meters .sp-level-meter__tick { font-size: 8px; }

.monitor-bus__stats {
	align-items: stretch;
	display: grid;
	/* Content-sized columns, and no shrink: a statistic that cannot fit takes the
	   whole block onto the next line of the bus rather than ellipsising a rate or
	   clipping its own label. */
	flex: 0 0 auto;
	gap: 4px;
	grid-auto-columns: max-content;
	grid-auto-flow: column;
	margin: 0;
	max-width: 100%;
}
.monitor-bus__stat {
	background: rgba(13, 16, 17, 0.38);
	border-left: 1px solid #45494b;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 58px;
	padding: 3px 7px;
}
.monitor-bus__stat dt {
	color: #9aa0a3;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.15;
	text-transform: uppercase;
	white-space: nowrap;
}
.monitor-bus__stat dd {
	color: var(--sp-text-strong);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.monitor-bus__stat--quality dd.is-good { color: var(--sp-green); }
.monitor-bus__stat--quality dd.is-fair { color: #f0cf36; }
.monitor-bus__stat--quality dd.is-poor { color: #ef5d64; }

/* Listen quality, output and the stop button travel together: they are the one
   group that must never be split across a wrapped line. */
.monitor-bus__controls {
	align-items: stretch;
	align-self: stretch;
	display: grid;
	/* Exactly the extension list's width, pinned to the right by the auto margin
	   even when the rest of the bus does not fill the line, so the group's left
	   edge sits on the list's border and its right edge on the page edge. */
	flex: 0 1 var(--monitor-picker-width);
	gap: 6px;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
	margin-left: auto;
	min-width: 0;
	padding-right: 8px;
}
.monitor-bus__output,
.monitor-bus__mode,
.monitor-bus__profile {
	align-self: stretch;
	background: rgba(13, 16, 17, 0.38);
	border-left: 1px solid #45494b;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 2px 7px;
}
.monitor-bus__mode[hidden] { display: none; }
.monitor-bus__controls:has(.monitor-bus__mode[hidden]) {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
}
.monitor-bus__output > span,
.monitor-bus__mode > span,
.monitor-bus__profile > span {
	color: #a4a8aa;
	font-size: 8px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}
.monitor-bus__output select,
.monitor-bus__mode select,
.monitor-bus__profile select {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--sp-text-strong);
	font: 400 11px var(--sp-font);
	height: 19px;
	min-width: 0;
	padding: 0 14px 0 0;
	text-overflow: ellipsis;
	width: 100%;
}
.monitor-bus__output:focus-within,
.monitor-bus__mode:focus-within,
.monitor-bus__profile:focus-within { border-left-color: var(--sp-cyan); }
.monitor-bus__output select:focus,
.monitor-bus__mode select:focus,
.monitor-bus__profile select:focus { outline: 0; }
.monitor-bus__output select:disabled,
.monitor-bus__mode select:disabled,
.monitor-bus__profile select:disabled { cursor: progress; opacity: 0.65; }

.monitor-bus__stop {
	align-items: center;
	align-self: center;
	background: #222628;
	border: 1px solid #4a4f52;
	border-radius: 4px;
	color: #f0f1f2;
	cursor: pointer;
	display: inline-flex;
	font-size: 10px;
	height: 24px;
	justify-content: center;
	width: 26px;
}
.monitor-bus__stop:hover:not(:disabled) { background: #2e3336; border-color: #6a7074; }
.monitor-bus__stop:disabled { cursor: not-allowed; opacity: 0.4; }
.monitor-bus.is-active .monitor-bus__stop:not(:disabled) {
	animation: monitor-stop-glow 1.8s ease-in-out infinite;
	background: rgba(239, 83, 90, 0.16);
	border-color: #f35a60;
	box-shadow: 0 0 0 1px rgba(243, 90, 96, 0.18), 0 0 9px rgba(243, 90, 96, 0.48);
	color: #ff858a;
}
.monitor-bus.is-active .monitor-bus__stop:hover:not(:disabled) {
	background: rgba(239, 83, 90, 0.28);
	border-color: #ff7479;
	box-shadow: 0 0 0 1px rgba(255, 116, 121, 0.28), 0 0 13px rgba(243, 90, 96, 0.68);
	color: #ffb0b3;
}
#monitoring_audio { display: none; }

/* A stereo pair's partner channel is not its own selection - it rides along
   with the wedge the shared radial meter actually tracks - so it wears the
   same selected treatment as that component's own .is-selected rather than
   introducing a second selection concept there. */
.monitor-path .sp-radial-meter__slice.is-selected-partner {
	filter: brightness(1.12) drop-shadow(0 0 1.2px rgba(0, 199, 238, 0.18));
}
.monitor-path .sp-radial-meter__slice.is-selected .sp-radial-meter__selection,
.monitor-path .sp-radial-meter__slice.is-selected-partner .sp-radial-meter__selection {
	opacity: 1;
	stroke: var(--sp-cyan);
}
.monitor-path .sp-radial-meter__slice.is-selected .sp-radial-meter__channel,
.monitor-path .sp-radial-meter__slice.is-selected-partner .sp-radial-meter__channel {
	fill: var(--sp-cyan);
	font-weight: 700;
	stroke-width: 2.6px;
}

/* Reserved monitor destinations are deliberately quieter than ordinary card
   channels. Their radial names explain the reservation without making the
   output pair look selected or turning it into another status colour. */
.monitor-path--rx .sp-radial-meter__slice.is-monitor-output { opacity: 0.55; }
.monitor-output-radial-labels { pointer-events: none; }
.monitor-path__radial .sp-radial-meter__svg { overflow: visible; }
.monitor-output-radial-label__line {
	stroke: rgba(183, 187, 189, 0.3);
	stroke-dasharray: 1.5 2.5;
	stroke-width: 0.65px;
	vector-effect: non-scaling-stroke;
}
.monitor-output-radial-label__text {
	fill: rgba(210, 213, 214, 0.82);
	font-size: 7px;
	font-weight: 600;
	letter-spacing: 0.025em;
	paint-order: stroke;
	stroke: #242627;
	stroke-width: 2px;
	text-anchor: middle;
}

.monitoring-summary { display: grid; gap: 6px; grid-auto-flow: column; }
.monitoring-summary-tile {
	align-items: center;
	background: linear-gradient(180deg, #353535 0%, #242424 100%);
	border: 1px solid rgba(0, 0, 0, 0.72);
	border-radius: 4px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
	display: flex;
	gap: 5px;
	justify-content: center;
	min-height: 24px;
	min-width: 0;
	padding: 0 8px;
}
.monitoring-summary-tile > span {
	color: #aeb3b6;
	font-size: 8px;
	font-weight: 600;
	text-transform: uppercase;
	white-space: nowrap;
}
.monitoring-summary-tile > strong { color: #fff; font-size: 12px; font-weight: 600; line-height: 1; }
.monitoring-summary-tile.is-live { border-color: rgba(49, 204, 75, 0.55); }
.monitoring-summary-tile.is-live > strong { color: var(--sp-green); }

/* ---- workspace: the sound card first, the extension list beside it ---- */
.monitor-workspace {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr) var(--monitor-picker-width);
	min-height: 0;
}

.monitor-card {
	background: #272727;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-height: 0;
	min-width: 0;
	overflow-y: auto;
	padding: 10px;
}

.monitor-path {
	background: var(--sp-surface);
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-control);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 8px;
	min-height: 0;
	min-width: 0;
	padding: 10px 12px 8px;
}
.monitor-path.is-selected { border-color: rgba(0, 199, 238, 0.5); }

.monitor-path__heading { align-items: center; display: flex; gap: 8px; min-width: 0; }
.monitor-path__badge {
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid #4f5354;
	border-radius: 3px;
	color: var(--sp-green);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 9px;
	font-weight: 700;
	height: 19px;
	justify-content: center;
	letter-spacing: 0.05em;
	width: 28px;
}
.monitor-path--tx .monitor-path__badge { color: var(--sp-cyan); }
.monitor-path__title {
	color: var(--sp-text-strong);
	font-size: 11px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.monitor-path__title small { color: var(--sp-muted-2); font-size: 10px; font-weight: 400; margin-left: 5px; }
.monitor-path__banks {
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid #45494a;
	border-radius: 4px;
	display: inline-flex;
	flex: 0 0 auto;
	overflow: hidden;
}
.monitor-path__bank {
	background: transparent;
	border: 0;
	color: var(--sp-muted-2);
	cursor: pointer;
	font: inherit;
	font-size: 9px;
	line-height: 18px;
	min-width: 48px;
	padding: 0 6px;
}
.monitor-path__bank + .monitor-path__bank { border-left: 1px solid #45494a; }
.monitor-path__bank:hover { color: var(--sp-text-strong); }
.monitor-path__bank:focus-visible { box-shadow: inset 0 0 0 1px var(--sp-cyan); outline: none; }
.monitor-path__bank.is-active {
	background: rgba(0, 199, 238, 0.15);
	color: var(--sp-cyan);
	font-weight: 700;
}
.monitor-path__selected {
	color: var(--sp-muted-2);
	font-size: 9px;
	margin-left: auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.monitor-path.is-selected .monitor-path__selected { color: var(--sp-cyan); font-weight: 600; }

/* Size against the space left by the tile's heading and footer, including when
   the monitor bus wraps. Keep the shared SVG coordinates unchanged for picking. */
.monitor-path__meter {
	container-type: size;
	display: grid;
	min-height: 0;
	min-width: 0;
	place-items: center;
}
.monitor-path__radial {
	/* Outer monitor/owner annotations paint beyond the SVG viewBox. Reserve real
	   space around it rather than clipping labels or changing grip coordinates. */
	aspect-ratio: 1;
	box-sizing: border-box;
	margin: 0;
	max-width: none;
	padding: min(46.8px, 9cqw, 9cqh);
	width: min(520px, 100cqw, 100cqh);
}
.monitor-path__radial[hidden] { display: none; }

/* Dim the channels that belong to anything but the highlighted extension. */
.monitor-path__radial .sp-radial-meter__slice.is-dimmed { opacity: 0.18; }

.monitor-path__foot {
	color: var(--sp-muted-2);
	display: flex;
	font-size: 9px;
	gap: 10px;
	justify-content: space-between;
	margin: 0;
}

/* ---- extension list: who owns what ---- */
.monitor-picker {
	background: #232425;
	border-left: 1px solid var(--sp-border);
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
}
.monitor-picker__filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 8px 6px; }
.monitor-picker__filters .extension-filter-btn { flex: 1 1 auto; font-size: 9px; min-height: 24px; padding: 0 8px; }

.monitor-picker__search {
	align-items: center;
	background: #1d1f20;
	border: 1px solid #4a4f52;
	border-radius: 5px;
	color: var(--sp-muted-2);
	display: flex;
	gap: 7px;
	margin: 0 8px 8px;
	padding: 0 8px;
}
.monitor-picker__search > i { font-size: 10px; }
.monitor-picker__search input {
	background: transparent;
	border: 0;
	color: var(--sp-text-strong);
	font: 400 11px var(--sp-font);
	height: 28px;
	min-width: 0;
	outline: 0;
	width: 100%;
}

.monitor-picker__list {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 6px 8px;
}
.monitor-picker__empty { color: var(--sp-muted-2); font-size: 10px; padding: 18px 8px; text-align: center; }
.monitor-picker__empty[hidden],
.monitor-ext[hidden] { display: none !important; }

.monitor-ext {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-left: 2px solid transparent;
	border-radius: 4px;
	display: grid;
	gap: 5px;
	grid-template-columns: minmax(0, 1fr) auto auto;
	min-height: 34px;
	padding: 3px 5px;
	width: 100%;
}
.monitor-ext:hover { background: rgba(255, 255, 255, 0.04); }
.monitor-ext.is-highlighted { background: rgba(0, 199, 238, 0.12); border-color: rgba(0, 199, 238, 0.55); }
.monitor-ext.is-live { border-left-color: var(--sp-green); }

.monitor-ext__select {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: grid;
	gap: 7px;
	grid-template-columns: 6px 18px minmax(0, 1fr);
	min-width: 0;
	padding: 0 2px;
	text-align: left;
}
.monitor-ext__select:focus-visible,
.monitor-ext__cue:focus-visible { outline: 1px solid var(--sp-cyan); outline-offset: 1px; }

.monitor-ext__lamp { background: #4e5254; border-radius: 50%; height: 6px; width: 6px; }
.monitor-ext.is-live .monitor-ext__lamp { background: var(--sp-green); box-shadow: 0 0 6px rgba(49, 204, 75, 0.6); }

.monitor-ext__icon { color: var(--sp-muted-2); font-size: 10px; text-align: center; }
.monitor-ext[data-connection-kind="trunk"] .monitor-ext__icon { color: #e0925f; }
.monitor-ext.is-highlighted .monitor-ext__icon { color: var(--sp-cyan); }

.monitor-ext__copy { display: flex; flex-direction: column; min-width: 0; }
.monitor-ext__name,
.monitor-ext__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-ext__name { color: var(--sp-text-strong); font-size: 11px; font-weight: 500; line-height: 1.25; }
.monitor-ext__meta { color: var(--sp-muted-2); font-size: 8px; line-height: 1.25; }

.monitor-ext__state {
	color: var(--sp-muted-2);
	display: flex;
	flex-direction: column;
	font-size: 8px;
	/* Pinned rather than left to auto-placement: a trunk/multitrack extension
	   renders no .monitor-ext__cues (see Monitoring/Index.cshtml), so without an
	   explicit column this block would auto-place into column 2 instead of 3,
	   landing a few pixels further left than on a row that has RX/TX cues. */
	grid-column: 3;
	text-align: right;
	white-space: nowrap;
}
.monitor-ext__state [data-monitoring-status-label] { font-weight: 600; letter-spacing: 0.06em; }
.monitor-ext__state [data-monitoring-duration] { font-variant-numeric: tabular-nums; }
.monitor-ext.is-live .monitor-ext__state [data-monitoring-status-label] { color: var(--sp-green); }

.monitor-ext__cues { display: flex; gap: 3px; grid-column: 2; }
.monitor-ext__cue {
	align-items: center;
	background: #202324;
	border: 1px solid #4b5052;
	border-radius: 4px;
	color: #8e9497;
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	font-size: 9px;
	gap: 0;
	height: 27px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 25px;
}
.monitor-ext__cue small { font-size: 6px; font-weight: 700; line-height: 7px; }
.monitor-ext__cue--rx small { color: var(--sp-green); }
.monitor-ext__cue--tx small { color: var(--sp-cyan); }
.monitor-ext__cue:hover:not(:disabled) { background: #2d3234; border-color: #6a7073; color: #fff; }
.monitor-ext__cue.is-selected {
	background: rgba(0, 199, 238, 0.15);
	border-color: var(--sp-cyan);
	box-shadow: 0 0 5px rgba(0, 199, 238, 0.25);
	color: var(--sp-cyan);
}
.monitor-ext__cue:disabled { cursor: not-allowed; opacity: 0.32; }

/* Marks the extension being heard, which need not be the highlighted one. */
.monitor-ext.is-monitoring .monitor-ext__name::after {
	color: var(--sp-cyan);
	content: " \f025";
	font-family: "Font Awesome 6 Free";
	font-size: 9px;
	font-weight: 900;
	margin-left: 5px;
}

@keyframes monitor-pulse {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

@keyframes monitor-stop-glow {
	0%, 100% { box-shadow: 0 0 0 1px rgba(243, 90, 96, 0.14), 0 0 7px rgba(243, 90, 96, 0.38); }
	50% { box-shadow: 0 0 0 1px rgba(255, 116, 121, 0.3), 0 0 13px rgba(243, 90, 96, 0.68); }
}

@media (max-width: 1200px) {
	/* The extension list gives up width before the rings do - and the bus controls
	   follow it, so the two stay aligned at every width. */
	.monitoring-page { --monitor-picker-width: 268px; }
	.monitor-bus { gap: 6px 8px; }
	.monitor-bus__stat { min-width: 54px; padding-left: 5px; padding-right: 5px; }
}

@media (max-width: 1000px) {
	/* Keep the complete statistics set without crushing the meter or output
	   selector: the stats block takes a compact line of its own once the bus
	   wraps at intermediate widths. */
	.monitor-bus__stats { flex-basis: 100%; justify-content: start; }
	/* Once the bus wraps there is no list beside the controls to line up with, so
	   they take the line they are on rather than sitting in a 268px column. */
	.monitor-bus__controls { flex: 1 1 100%; }

	/* Two rings side by side stop being readable here, so they stack and the
	   card scrolls; still one view, no drilling in. */
	.monitor-card { grid-template-columns: minmax(0, 1fr); grid-auto-rows: min-content; }
	.monitor-path { grid-template-rows: auto auto auto; }
	/* Stacked tiles have a square drawing region and scroll as complete tiles. */
	.monitor-path__meter { aspect-ratio: 1; width: 100%; }
}

@media (max-width: 860px) {
	/* The list moves under the card rather than being squeezed off the edge. */
	.monitor-workspace { display: flex; flex-direction: column; }
	.monitor-card { flex: 1 1 auto; }
	.monitor-picker {
		border-left: 0;
		border-top: 1px solid var(--sp-border);
		flex: 0 0 auto;
		max-height: 34vh;
	}
	.monitor-picker__list { flex: 1 1 auto; }
}

@media (max-width: 767px) {
	/* Full-width rows: what is playing, its level, its statistics, then where
	   it goes. */
	.monitor-bus { gap: 6px 8px; padding: 6px 10px; }
	.monitor-bus__copy,
	.monitor-bus__meters,
	.monitor-bus__controls { flex: 1 1 100%; }
	.monitor-bus__source { justify-content: flex-start; }

	/* Six content-width stats do not fit across a phone, so they stop being one
	   row of columns and become two rows of three that share the width. */
	.monitor-bus__stats {
		flex: 1 1 100%;
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.monitor-bus__stat { min-width: 0; }

	.monitor-card { gap: 8px; padding: 8px; }
	.monitor-path { padding: 8px 9px 7px; }
	.monitor-path__foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.monitor-bus__lamp,
	.monitor-bus.is-active .monitor-bus__lamp,
	.monitor-bus.is-active .monitor-bus__stop:not(:disabled) { animation: none; }
	.monitor-bus__meters .sp-level-meter__fill { transition: none; }
}

/* ==== ROUTING PAGE =====*/
.sip-routing-page {
	color: #d9d9d9;
}
.sip-routing-page .routingHero {
	background: linear-gradient(140deg, #262626 0%, #222222 55%, #1d1d1d 100%);
	border: 1px solid #3f3f3f;
	border-radius: 10px;
	box-shadow: 0 1px 0 rgba(242, 92, 25, 0.3) inset;
	margin-bottom: 12px;
	padding: 12px 14px;
}
.sip-routing-page .routingHeroTitle {
	color: #f2f3f5;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}
.sip-routing-page .routingHeroMeta {
	color: #bababa;
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 12px;
	margin-top: 6px;
}
.sip-routing-page .routingGroupNav {
	background: linear-gradient(155deg, #292929 0%, #232323 100%);
	border: 1px solid #3f3f3f;
	border-radius: 7px;
	display: grid;
	gap: 6px;
	margin-bottom: 8px;
	padding: 7px 9px;
}
.sip-routing-page .routingGroupSet {
	align-items: center;
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 7px;
	min-width: 0;
}
.sip-routing-page .routingGroupSet > span {
	color: #b4b4b4;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.sip-routing-page .routingGroupButtons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}
.sip-routing-page .routingGroupButton {
	background: linear-gradient(#262626, #1c1c1c);
	border: 1px solid #3d4650;
	border-radius: 4px;
	color: #8f9aa5;
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
	height: 24px;
	line-height: 1;
	min-width: 58px;
	padding: 0 9px;
	white-space: nowrap;
}
.sip-routing-page .routingGroupButton:hover,
.sip-routing-page .routingGroupButton:focus {
	background: linear-gradient(#333333, #262626);
	border-color: #5b6773;
	color: #fff;
}
.sip-routing-page .routingGroupButton.is-selected {
	background: linear-gradient(#00c7ee, #0087a0);
	border-color: #56e4ff;
	box-shadow: 0 0 0 1px rgba(0, 199, 238, 0.25);
	color: #fff;
}
.sip-routing-page .routingMatrixViewport {
	background: linear-gradient(160deg, #2a2a2a 0%, #232323 52%, #1d1d1d 100%);
	border: 1px solid #404040;
	border-radius: 10px;
	box-shadow: 0 1px 0 rgba(242, 92, 25, 0.2) inset;
	max-height: clamp(420px, calc(100vh - 355px), 690px);
	overflow: auto;
	padding: 12px;
	position: relative;
	scrollbar-color: #e96225 #161616;
	scrollbar-width: thin;
}
.sip-routing-page .routingOutputMatrixViewport {
	margin-top: 10px;
}
.sip-routing-page .routingMatrixViewport.is-balanced {
	max-height: none;
	overflow-x: auto;
	overflow-y: visible;
}
.sip-routing-page .routingMatrixWrap {
	--sip-routing-axis-width: 82px;
	--sip-routing-cell-width: 38px;
	--sip-routing-cell-gap: 6px;
	--sip-routing-extension-gap: 12px;
	min-width: calc(var(--sip-routing-axis-width) + (var(--sip-routing-output-count) * var(--sip-routing-cell-width)) + ((var(--sip-routing-output-count) - 1) * var(--sip-routing-cell-gap)));
	position: relative;
}
.sip-routing-page .routingInputMatrixWrap {
	min-width: calc(var(--sip-routing-axis-width) + (var(--sip-routing-output-count) * var(--sip-routing-cell-width)) + ((var(--sip-routing-extension-count) * 2) * 4px) + ((var(--sip-routing-extension-count) - 1) * var(--sip-routing-extension-gap)) + (var(--sip-routing-extension-count) * var(--sip-routing-cell-gap)));
}
.sip-routing-page .routingMatrixViewport.is-balanced .routingMatrixWrap {
	--sip-routing-axis-width: 68px;
	--sip-routing-cell-width: 52px;
	--sip-routing-cell-gap: 6px;
	--sip-routing-extension-gap: 14px;
	margin: 0;
	width: fit-content;
}
.sip-routing-page .routingMatrixHeader {
	background: linear-gradient(160deg, #2a2a2a 0%, #262626 100%);
	color: #f07a2a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
	padding-left: calc(var(--sip-routing-axis-width) + var(--sip-routing-cell-gap));
	position: relative;
	text-transform: uppercase;
	z-index: 2;
}
.sip-routing-page .routingMatrixRow {
	align-items: center;
	display: grid;
	gap: var(--sip-routing-cell-gap);
	grid-template-columns: var(--sip-routing-axis-width) max-content;
	margin-bottom: 5px;
	min-width: 0;
	position: relative;
	z-index: 1;
}
.sip-routing-page .routingInputLabel {
	background: linear-gradient(180deg, #3c3c3c, #2f2f2f);
	border: 1px solid #565656;
	border-radius: 6px;
	color: #dcdcdc;
	display: flex;
	flex-direction: column;
	font-size: 11px;
	font-weight: 700;
	gap: 4px;
	padding: 4px 6px;
	position: sticky;
	left: -12px;
	z-index: 4;
	text-align: center;
	white-space: nowrap;
}
.sip-routing-page .routingCrossRow {
	display: grid;
	gap: var(--sip-routing-cell-gap);
	grid-template-columns: repeat(var(--sip-routing-output-count), var(--sip-routing-cell-width));
	min-width: 0;
}
.sip-routing-page .routingInputCrossRow,
.sip-routing-page .routingInputOutputLabels {
	display: flex;
	gap: var(--sip-routing-extension-gap);
}
.sip-routing-page .routingInputExtensionCells,
.sip-routing-page .routingInputExtensionLabels {
	display: grid;
	gap: var(--sip-routing-cell-gap);
	grid-template-columns: repeat(2, var(--sip-routing-cell-width));
}
.sip-routing-page .routingInputExtensionCells {
	background: rgba(66, 74, 88, 0.18);
	border-radius: 9px;
	padding: 2px;
}
.sip-routing-page .routingInputExtensionLabels {
	padding: 2px;
}
.sip-routing-page .routingCrossPoint {
	align-items: center;
	background: #0c0c0c;
	border: 1px solid #2f2f2f;
	border-radius: 7px;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 30px;
	justify-content: center;
	min-width: var(--sip-routing-cell-width);
	padding: 0;
	position: relative;
	transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.sip-routing-page .routingCrossPoint[data-route-type="input"] {
	background: linear-gradient(180deg, #141414, #0c0c0c);
}
.sip-routing-page .routingCrossPoint[data-route-type="output"] {
	background: linear-gradient(180deg, #141414, #0c0c0c);
}
.sip-routing-page .routingOutputExtensionGroup {
	background: linear-gradient(180deg, rgba(76, 84, 98, 0.58), rgba(42, 42, 42, 0.48));
	border: 1px solid rgba(130, 143, 162, 0.36);
	border-radius: 12px;
	box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.32) inset;
	margin: 9px 0;
	min-width: calc(var(--sip-routing-axis-width) + (var(--sip-routing-output-count) * var(--sip-routing-cell-width)) + ((var(--sip-routing-output-count) - 1) * var(--sip-routing-cell-gap)));
	padding: 7px;
	position: relative;
	z-index: 1;
}
.sip-routing-page .routingOutputExtensionGroup.is-odd {
	background: linear-gradient(180deg, rgba(62, 70, 84, 0.52), rgba(38, 38, 38, 0.44));
}
.sip-routing-page .routingOutputExtensionGroup .routingMatrixRow {
	margin-bottom: 5px;
}
.sip-routing-page .routingOutputExtensionGroup .routingMatrixRow:last-child {
	margin-bottom: 0;
}
.sip-routing-page .routingCrossPoint:hover,
.sip-routing-page .routingCrossPoint:focus {
	border-color: #5b6773;
	box-shadow: 0 0 0 1px rgba(91, 103, 115, 0.35) inset;
	outline: none;
}
.sip-routing-page .routingCrossPoint.is-pending {
	cursor: wait;
	opacity: 0.72;
}
.sip-routing-page .routingMatrixViewport.is-balanced .routingCrossPoint {
	height: 44px;
}
.sip-routing-page .routingCrossTag {
	background: rgba(7, 16, 11, 0.22);
	border: 1px solid rgba(184, 245, 206, 0.35);
	border-radius: 10px;
	color: #eef4f1;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 2px 5px;
	text-transform: uppercase;
}
.sip-routing-page .routingCrossPoint.is-active {
	background: linear-gradient(to bottom, #1c9b52, #126c3a);
	border-color: #126c3a;
	box-shadow: 0 0 0 1px rgba(18, 108, 58, 0.45) inset;
	transform: translateY(-1px);
}
.sip-routing-page .routingCrossPoint.is-output.is-active {
	background: linear-gradient(to bottom, #00c7ee, #0087a0);
	border-color: #0098b5;
	box-shadow: 0 0 0 1px rgba(0, 199, 238, 0.32) inset;
}
.sip-routing-page .routingCrossPoint.is-live {
	background: linear-gradient(to bottom, #1c9b52, #126c3a);
	border-color: #126c3a;
	box-shadow: 0 0 0 1px rgba(18, 108, 58, 0.6) inset, 0 0 8px rgba(18, 108, 58, 0.22);
}
.sip-routing-page .routingCrossPoint.is-output.is-live {
	background: linear-gradient(to bottom, #4eefff, #00a2d6 52%, #006fb9);
	border-color: #bff8ff;
	box-shadow: 0 0 0 2px rgba(238, 252, 255, 0.5) inset, 0 0 0 2px rgba(0, 199, 238, 0.28), 0 0 18px rgba(0, 199, 238, 0.62);
}
.sip-routing-page .routingCrossPoint.is-active:not(.is-live) .routingCrossTag {
	background: rgba(9, 21, 14, 0.18);
	border-color: rgba(194, 248, 213, 0.32);
	color: #edf5f1;
}
.sip-routing-page .routingCrossPoint.is-live .routingCrossTag {
	background: #f07a2a;
	border-color: #f39a62;
	box-shadow: none;
	color: #1a130d;
}
.sip-routing-page .routingCrossPoint.is-output.is-live .routingCrossTag {
	background: #eefcff;
	border-color: rgba(255, 255, 255, 0.92);
	color: #004d73;
	box-shadow: 0 0 10px rgba(238, 252, 255, 0.45);
}
.sip-routing-page .routingOutputAxis {
	background: linear-gradient(160deg, #282828 0%, #242424 100%);
	bottom: -12px;
	display: grid;
	gap: var(--sip-routing-cell-gap);
	grid-template-columns: var(--sip-routing-axis-width) max-content;
	margin-top: 10px;
	min-width: 0;
	padding-top: 8px;
	position: sticky;
	z-index: 5;
}
.sip-routing-page .routingOutputMatrixViewport .routingOutputAxis {
	padding-left: 8px;
}
.sip-routing-page .routingMatrixViewport.is-balanced .routingOutputAxis {
	bottom: auto;
	position: static;
}
.sip-routing-page .routingOutputAxisTitle {
	align-items: center;
	background: linear-gradient(160deg, #282828 0%, #242424 100%);
	color: #f07a2a;
	display: flex;
	font-size: 11px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.08em;
	position: sticky;
	left: -12px;
	z-index: 7;
	text-transform: uppercase;
}
.sip-routing-page .routingOutputLabels {
	display: grid;
	gap: var(--sip-routing-cell-gap);
	grid-template-columns: repeat(var(--sip-routing-output-count), var(--sip-routing-cell-width));
	min-width: 0;
}
.sip-routing-page .routingOutputLabels.routingInputOutputLabels {
	display: flex;
	gap: var(--sip-routing-extension-gap);
	grid-template-columns: none;
}
.sip-routing-page .routingOutputLabels.routingInputOutputLabels .routingInputExtensionLabels {
	display: grid;
	gap: var(--sip-routing-cell-gap);
	grid-template-columns: repeat(2, var(--sip-routing-cell-width));
}
.sip-routing-page .routingOutputLabel {
	background: linear-gradient(180deg, #3c3c3c, #2f2f2f);
	border: 1px solid #565656;
	border-radius: 6px;
	color: #dcdcdc;
	display: flex;
	flex-direction: column;
	font-size: 10px;
	font-weight: 700;
	gap: 4px;
	padding: 4px 3px;
	text-align: center;
	white-space: nowrap;
}
.sip-routing-page .routingMatrixViewport.is-balanced .routingInputLabel,
.sip-routing-page .routingMatrixViewport.is-balanced .routingOutputLabel {
	align-items: center;
	height: 44px;
	justify-content: center;
	padding: 4px 5px;
	width: var(--sip-routing-cell-width);
}
.sip-routing-page .routingAxisMeterTrack {
	background: linear-gradient(to right, rgba(49, 223, 95, 0.16) 0%, rgba(49, 223, 95, 0.16) 72%, rgba(246, 207, 61, 0.18) 84%, rgba(236, 61, 61, 0.2) 100%);
	border-radius: 2px;
	display: block;
	height: 6px;
	overflow: hidden;
	position: relative;
	width: 100%;
}
.sip-routing-page .routingAxisMeterFill {
	background: linear-gradient(to right, #31df5f 0%, #31df5f 72%, #f0cf36 72%, #f0cf36 88%, #ec3d3d 88%, #ec3d3d 100%);
	background-position: left top;
	background-repeat: no-repeat;
	background-size: calc(10000% / var(--sip-meter-level, 100)) 100%;
	border-radius: 2px;
	display: block;
	height: 5px;
	min-width: 1px;
	transition: width 90ms linear;
}
.sip-routing-page .routingAxisMeterPeak {
	background: #74ff8b;
	border-radius: 1px;
	display: block;
	height: 8px;
	position: absolute;
	top: -1px;
	transform: translateX(-1px);
	transition: left 140ms linear;
	width: 2px;
	z-index: 2;
}
.sip-routing-page .routingAxisMeterPeakOrange {
	background: #f0cf36;
}
.sip-routing-page .routingAxisMeterPeakRed {
	background: #ec3d3d;
}
.sip-routing-page .routingLegend {
	align-items: center;
	color: #c6c6c6;
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 14px;
	margin: 10px 0;
}
.sip-routing-page .legendChip {
	align-items: center;
	border-radius: 10px;
	display: inline-flex;
	font-size: 9px;
	font-weight: 700;
	height: 16px;
	justify-content: center;
	letter-spacing: 0.03em;
	margin-right: 6px;
	min-width: 28px;
	padding: 0 6px;
	text-transform: uppercase;
}
.sip-routing-page .legendChip.is-off {
	background: #0c0c0c;
	border: 1px solid #2f2f2f;
	color: #95a0ad;
}
.sip-routing-page .legendChip.is-on {
	background: linear-gradient(to bottom, #1c9b52, #126c3a);
	border: 1px solid #126c3a;
	color: #eef5f2;
}
.sip-routing-page .legendChip.is-output {
	background: linear-gradient(to bottom, #00c7ee, #0087a0);
	border: 1px solid #0098b5;
	color: #eefbff;
}
.sip-routing-page .legendChip.is-live {
	background: #f07a2a;
	border: 1px solid #f39a62;
	box-shadow: none;
	color: #1a130d;
}
.sip-routing-page .routingOutputRoutes {
	margin-bottom: 10px;
}
.sip-routing-page .routingOutputRouteCard {
	display: grid;
	gap: 7px;
}

/* Header summary metrics ------------------------------------------------- */
.sip-routing-page .routingSummary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.sip-routing-page .routingSummaryMetric {
	align-items: center;
	background: #1c1c1c;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 76px;
	padding: 6px 12px;
}
.sip-routing-page .routingSummaryMetric > span {
	color: #9aa4ad;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.sip-routing-page .routingSummaryMetric > strong {
	color: #f0f0f0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}
.sip-routing-page .routingSummaryMetric.isActive {
	border-color: #0098b5;
}
.sip-routing-page .routingSummaryMetric.isActive > strong {
	color: #00c7ee;
}

/* Signal patchbay -------------------------------------------------------- */
.sip-routing-page .routingPatchbay {
	background: radial-gradient(120% 140% at 50% -10%, #313131 0%, #262626 55%, #232323 100%);
	border: 1px solid #484848;
	border-radius: 10px;
	margin-bottom: 16px;
	padding: 18px 20px 16px;
}
.sip-routing-page .routingPatchbayHead {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}
.sip-routing-page .routingPatchbayHead h3 {
	color: #f2f2f2;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}
.sip-routing-page .routingPatchbayHead p {
	color: #a9b2ba;
	font-size: 12.5px;
	line-height: 1.45;
	margin: 4px 0 0;
	max-width: 780px;
}
.sip-routing-page .routingPatchbayHead strong {
	color: #d6dde3;
	font-weight: 600;
}
.sip-routing-page .routingPatchTwoWay {
	align-items: center;
	background: #1c1c1c;
	border: 1px solid #3a3a3a;
	border-radius: 6px;
	color: #cfd6dc;
	cursor: pointer;
	display: flex;
	flex-shrink: 0;
	font-size: 12.5px;
	gap: 7px;
	padding: 7px 11px;
	white-space: nowrap;
}
.sip-routing-page .routingPatchTwoWay:has(input:checked) {
	border-color: #0098b5;
	color: #eafbff;
}
.sip-routing-page .routingPatchTwoWay input {
	accent-color: #00c7ee;
}

/* Listen grid: one compact row per extension with its two monitor points ---- */
.sip-routing-page .routingListenGrid {
	display: grid;
	gap: 5px;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	margin-top: 14px;
}
.sip-routing-page .routingListenRow {
	align-items: center;
	background: #1b1b1b;
	border: 1px solid #333;
	border-radius: 4px;
	display: flex;
	gap: 7px;
	min-height: 24px;
	padding: 2px 7px;
}
.sip-routing-page .routingListenLed {
	background: #3a3a3a;
	border-radius: 50%;
	flex-shrink: 0;
	height: 5px;
	width: 5px;
}
.sip-routing-page .routingListenRow.is-live {
	border-color: #1f7a43;
}
.sip-routing-page .routingListenRow.is-live .routingListenLed {
	background: #31cc4b;
	box-shadow: 0 0 6px #31cc4b;
}
.routingPage .routingMultiTrackListen {
	background: #1b1b1b;
	border: 1px solid #393939;
	border-radius: 5px;
	display: grid;
	gap: 9px;
	grid-column: 1 / -1;
	min-width: 0;
	padding: 9px;
}
.routingPage .routingMultiTrackListen.is-live {
	border-color: #1f7a43;
}
.routingPage .routingMultiTrackListen.is-live .routingListenLed {
	background: #31cc4b;
	box-shadow: 0 0 6px #31cc4b;
}
.routingPage .routingMultiTrackListenHeader {
	align-items: center;
	display: flex;
	gap: 8px;
}
.routingPage .routingMultiTrackListenHeader > strong {
	color: #e6e8e9;
	font-size: 12px;
}
.routingPage .routingMultiTrackListenHeader > span:not(.routingListenLed) {
	color: #91979b;
	font-size: 10px;
}
.routingPage .routingMultiTrackLabelToggle {
	background: #252728;
	border: 1px solid #4a4d4f;
	border-radius: 4px;
	color: #aeb2b4;
	font-size: 9px;
	margin-left: auto;
	min-height: 24px;
	padding: 3px 8px;
}
.routingPage .routingMultiTrackRadialGrid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.routingPage .routingMultiTrackRadialPanel {
	background: #222425;
	border: 1px solid #404040;
	border-radius: 5px;
	display: grid;
	min-width: 0;
}
.routingPage .routingMultiTrackRadialHeader {
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	display: flex;
	gap: 8px;
	min-width: 0;
	padding: 7px 9px;
}
.routingPage .routingMultiTrackRadialHeader > strong {
	color: #f0a079;
	font-size: 12px;
}
.routingPage .routingMultiTrackRadialHeader > span {
	color: #aeb2b4;
	font-size: 10px;
}
.routingPage .routingMultiTrackRadialHeader .routingMultiTrackSelectedChannel {
	color: #8b949c;
	margin-left: auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.routingPage .routingMultiTrackRadialMeter {
	margin: 7px auto 2px;
	max-width: 300px;
}
.routingPage .routingMultiTrackRadialMeter .sp-radial-meter__slice.is-routing-selected .sp-radial-meter__selection {
	opacity: 1;
	stroke: #00c7ee;
	stroke-width: 2;
}
.routingPage .routingMultiTrackRadialMeter .sp-radial-meter__slice.is-routing-selected .sp-radial-meter__channel {
	fill: #00c7ee;
}
.routingPage .routingMultiTrackRadialFoot {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	color: #858b8e;
	font-size: 9px;
	padding: 6px 9px;
}
@media only screen and (max-width: 700px) {
	.routingPage .routingMultiTrackRadialGrid {
		grid-template-columns: 1fr;
	}
}
.sip-routing-page .routingListenExt {
	color: #e8e8e8;
	flex-shrink: 0;
	font-size: 10.5px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	min-width: 16px;
	text-align: right;
}
.sip-routing-page .routingListenPoint {
	align-items: center;
	display: flex;
	flex: 1 1 0;
	gap: 4px;
	min-width: 0;
}
.sip-routing-page .routingListenTag {
	color: #7f8890;
	flex-shrink: 0;
	font-size: 8.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
}
/* Compact variant of the shared status meter for the dense debug rows. */
.sip-routing-page .audioMeterLane {
	flex: 1 1 auto;
	gap: 5px;
	grid-template-columns: 16px 1fr;
	height: 7px;
	width: 100%;
}
.sip-routing-page .audioMeterLabel {
	font-size: 8.5px;
}
.sip-routing-page .audioMeterTrack {
	height: 5px;
}

.sip-routing-page .routingPatchListen {
	align-items: center;
	background: #0c0c0c;
	border: 1px solid #3f4a52;
	border-radius: 3px;
	color: #8b949c;
	cursor: pointer;
	display: flex;
	flex-shrink: 0;
	height: 17px;
	justify-content: center;
	padding: 0;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
	width: 19px;
}
.sip-routing-page .routingPatchListen svg {
	fill: none;
	height: 10px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 10px;
}
.sip-routing-page .routingPatchListen:hover:not(:disabled) {
	border-color: #00c7ee;
	color: #00c7ee;
}
.sip-routing-page .routingPatchListen:disabled {
	cursor: default;
	opacity: 0.3;
}
.sip-routing-page .routingPatchListen.is-listening {
	background: #00c7ee;
	border-color: #00c7ee;
	color: #06222a;
	box-shadow: 0 0 10px rgba(0, 199, 238, 0.5);
}
/* Listening but the tap is silent - distinguishes "no signal" from "not working". */
.sip-routing-page .routingPatchListen.is-listening:not(.has-signal) {
	background: #123c46;
	border-color: #00c7ee;
	color: #7fdff2;
}
.sip-routing-page .routingPatchListen.is-listening.has-signal {
	animation: routingListenPulse 0.5s ease-in-out infinite alternate;
}
@keyframes routingListenPulse {
	from { box-shadow: 0 0 8px rgba(0, 199, 238, 0.45); }
	to { box-shadow: 0 0 16px rgba(49, 204, 75, 0.85); }
}
@media (prefers-reduced-motion: reduce) {
	.sip-routing-page .routingPatchListen.is-listening.has-signal {
		animation: none;
	}
}

.sip-routing-page .routingPatchbayFoot {
	align-items: center;
	color: #8b949c;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: space-between;
	margin-top: 16px;
}
.sip-routing-page .routingPatchHint {
	color: #cfd6dc;
	font-size: 12.5px;
}
.sip-routing-page .routingPatchControls {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	gap: 10px;
}
.sip-routing-page .routingPatchNote {
	color: #7f8890;
	font-size: 11.5px;
}

/* Inline monitor chip (sits in the patchbay header) ---------------------- */
.sip-routing-page .routingMonitorChip {
	align-items: center;
	background: #16323a;
	border: 1px solid #00c7ee;
	border-radius: 6px;
	display: flex;
	gap: 7px;
	padding: 5px 8px;
}
.sip-routing-page .routingMonitorChip[hidden] {
	display: none;
}
.sip-routing-page .routingMonitorDot {
	background: #00c7ee;
	border-radius: 50%;
	flex-shrink: 0;
	height: 8px;
	width: 8px;
}
.sip-routing-page .routingMonitorChip.has-signal .routingMonitorDot {
	background: #31cc4b;
	box-shadow: 0 0 8px #31cc4b;
}
.sip-routing-page .routingMonitorText {
	align-items: baseline;
	display: flex;
	gap: 6px;
	min-width: 0;
	white-space: nowrap;
}
.sip-routing-page .routingMonitorText strong {
	color: #f0f0f0;
	font-size: 12px;
	font-weight: 600;
}
.sip-routing-page .routingMonitorText span {
	color: #9fd9e8;
	font-size: 11px;
}
.sip-routing-page .routingMonitorStop {
	background: none;
	border: none;
	color: #9fd9e8;
	cursor: pointer;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
	padding: 0 2px;
}
.sip-routing-page .routingMonitorStop:hover {
	color: #fff;
}
.sip-routing-page #routing_monitor_audio {
	height: 0;
	position: absolute;
	width: 0;
}

.sip-routing-page .routingMatrixLoading {
	color: #8b949c;
	font-size: 12.5px;
	font-style: italic;
	padding: 14px 4px 18px;
}

/* Advanced matrix disclosure -------------------------------------------- */
.sip-routing-page .routingAdvanced {
	background: #262626;
	border: 1px solid #3a3a3a;
	border-radius: 10px;
	margin-bottom: 16px;
	padding: 4px 16px;
}
.sip-routing-page .routingAdvanced > summary {
	color: #d8dde2;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	list-style: none;
	padding: 12px 4px;
	user-select: none;
}
.sip-routing-page .routingAdvanced > summary::-webkit-details-marker {
	display: none;
}
.sip-routing-page .routingAdvanced > summary::before {
	color: #00c7ee;
	content: "\25B8";
	display: inline-block;
	margin-right: 8px;
	transition: transform 0.15s ease;
}
.sip-routing-page .routingAdvanced[open] > summary::before {
	transform: rotate(90deg);
}

/* Virtual bus distinction ------------------------------------------------ */
.sip-routing-page .legendChip.is-virtual {
	background: #0c0c0c;
	border: 1px dashed #00c7ee;
	color: #00c7ee;
}
.sip-routing-page .routingMatrixRow.is-virtual .routingInputLabel,
.sip-routing-page .routingOutputLabel.is-virtual {
	border-left: 2px dashed #00c7ee;
}
.sip-routing-page .routingCrossPoint.is-virtual.is-active {
	box-shadow: inset 0 0 0 1px #00c7ee;
}

@media (prefers-reduced-motion: reduce) {
	.sip-routing-page .routingAdvanced > summary::before {
		transition: none;
	}
}

@media only screen and (max-width: 767px) {
	.sip-routing-page .routingPatchbayHead {
		flex-direction: column;
		gap: 10px;
	}
	.sip-routing-page .routingPatchRails {
		gap: 44px;
	}
	.sip-routing-page .routingMatrixViewport {
		max-height: calc(100vh - 285px);
		padding: 10px;
	}
	.sip-routing-page .routingMatrixWrap {
		--sip-routing-axis-width: 62px;
		--sip-routing-cell-width: 32px;
		--sip-routing-cell-gap: 4px;
	}
	.sip-routing-page .routingMatrixRow,
	.sip-routing-page .routingOutputAxis {
		gap: 6px;
	}
	.sip-routing-page .routingInputLabel,
	.sip-routing-page .routingOutputLabel {
		font-size: 9px;
		padding: 3px 2px;
	}
	.sip-routing-page .routingCrossPoint {
		height: 26px;
	}
	.sip-routing-page .routingGroupSet > span {
		min-width: 0;
	}
}

/* Multitrack trunk integration. These controls are product-specific, while
   their surrounding form, meters and routing surfaces come from SmartPi.UI. */
.sip-extension-editor .multi-track-details {
	border-top: 1px solid var(--sp-border);
	display: grid;
	gap: 12px;
	margin-top: 14px;
	padding-top: 14px;
}

.sip-extension-editor .multi-track-details[hidden] {
	display: none !important;
}

.sip-extension-editor #extForm:has(#OpusForceChannels option[value="4"]:checked) #multiTrackDetails {
	display: grid !important;
}

.sip-extension-editor #extForm:has(#OpusForceChannels option[value="4"]:checked) #standardSipAudioRouting {
	filter: grayscale(0.45);
	opacity: 0.48;
	pointer-events: none;
}

.sip-extension-editor #extForm:has(#OpusForceChannels option[value="4"]:checked) .opus-dtx-setting {
	display: none !important;
}

.sip-extension-editor #audioPane #multiTrackSection {
	box-sizing: border-box;
	grid-column: 1 / -1;
	max-width: none;
	width: 100%;
}

.sip-extension-editor .multitrack-bitrate-summary {
	align-items: center;
	color: var(--sip-extension-muted);
	display: flex;
	font-size: 10px;
	line-height: 1.3;
	margin: 5px 2px 0;
	min-height: 13px;
}

.sip-extension-editor .multitrack-bitrate-summary::before {
	background: #00b9db;
	border-radius: 50%;
	content: "";
	display: inline-block;
	flex: 0 0 4px;
	height: 4px;
	margin-right: 6px;
	opacity: 0.75;
	width: 4px;
}

.sip-status-page .statusTrunkStats {
	display: grid;
	gap: 5px 7px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 0;
}

.sip-status-page .statusTrunkStat {
	background: rgba(18, 18, 18, 0.3);
	border: 1px solid #414141;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 5px 7px;
}

.sip-status-page .statusTrunkStat > span {
	color: #84898c;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.sip-status-page .statusTrunkStat > strong {
	color: #d7d9da;
	font-size: 10px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sip-status-page .statusTrunkStatState > strong[data-state="Locked"] { color: #62df7d; }
.sip-status-page .statusTrunkStatState > strong[data-state="Correcting"] { color: #f0cf36; }
.sip-status-page .statusTrunkStatState > strong[data-state="Degraded"] { color: #ff7373; }

.sip-status-page .statusTrunkStatBudget > strong[data-budget="warn"] { color: #f0cf36; }
.sip-status-page .statusTrunkStatBudget > strong[data-budget="bad"] { color: #ff7373; }

.sip-status-page .statusMultiTrackMeters {
	display: grid;
	gap: 6px;
	grid-column: 1 / -1;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	position: relative;
	width: 100%;
}

.sip-status-page .statusMultiTrackMeterBank {
	background: rgba(20, 20, 20, 0.22);
	border: 1px solid #404040;
	border-radius: 5px;
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 7px 12px 6px;
}

.sip-status-page .statusMultiTrackHeader {
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	display: grid;
	gap: 9px;
	grid-template-columns: 28px minmax(0, 1fr);
	min-width: 0;
	padding-bottom: 5px;
}

.sip-status-page .statusMultiTrackHeader > strong {
	align-items: center;
	background: rgba(233, 98, 37, 0.16);
	border: 1px solid rgba(233, 98, 37, 0.48);
	border-radius: 4px;
	color: #f0a079;
	display: flex;
	font-size: 9px;
	height: 24px;
	justify-content: center;
}

.sip-status-page .statusMultiTrackHeader > span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sip-status-page .statusMultiTrackHeader b {
	color: #d7d7d7;
	font-size: 10px;
	font-weight: 600;
}

.sip-status-page .statusMultiTrackHeader small {
	color: #8f9497;
	font-size: 9px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sip-status-page .statusMultiTrackLanes {
	display: grid;
	gap: 1px;
	min-width: 0;
}

/* Scoped to the individual TX/RX bank, not the shared .statusMultiTrackMeters
   wrapper: an asymmetric trunk sends and receives different channel counts, and
   an attribute on the shared ancestor can only ever hold one of them. It used to
   sit there and apply whichever direction's count to BOTH banks - a 16/2 trunk's
   2-channel lane view rendered inside the 16-channel dense grid meant for the
   other direction, with fourteen of its sixteen slots empty. */
.sip-status-page .statusMultiTrackMeterBank[data-multitrack-channels="16"] .statusMultiTrackLanes {
	column-gap: 14px;
	grid-auto-flow: column;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(8, 8px);
}

.sip-status-page .statusMultiTrackMeterBank[data-multitrack-channels="32"] .statusMultiTrackLanes {
	column-gap: 10px;
	grid-auto-flow: column;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(8, 8px);
}

.sip-status-page .statusMultiTrackMeterBank[data-multitrack-channels="32"] .statusMultiTrackScale {
	display: none;
}

.sip-status-page .statusMultiTrackMeterBank .audioMeterLane {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	height: 8px;
}

.sip-status-page .statusMultiTrackMeterBank .audioMeterLabel {
	font-size: 9px;
}

.sip-status-page .statusMultiTrackScale {
	grid-template-columns: 30px 1fr;
	margin: 1px 0 0;
	padding-top: 1px;
}

.sip-status-page .statusMultiTrackScale .audioMeterScaleTick--last {
	transform: translateX(-100%);
}

.sip-routing-page .routingListenRow.is-multitrack .routingListenExt {
	min-width: 34px;
}

@media only screen and (max-width: 900px) {
	.sip-status-page .statusMultiTrackMeters {
		grid-template-columns: 1fr;
	}
}

/* The meter controls sit inside the upper-right meter box instead of consuming
   a separate row above both boxes. This moves the radial content upward and
   keeps all meter-specific actions together. */
.sip-status-page .statusMultiTrackToolbar {
	align-items: center;
	display: flex;
	gap: 3px;
	position: absolute;
	right: 7px;
	top: 7px;
	z-index: 3;
}

.sip-status-page .statusMultiTrackViewToggle {
	display: inline-flex;
	gap: 2px;
}

.sip-status-page .statusMultiTrackViewToggle button,
.sip-status-page .statusMultiTrackLabelToggle {
	background: #252728;
	border: 1px solid #4a4d4f;
	border-radius: 4px;
	color: #aeb2b4;
	font-size: 9px;
	height: 22px;
	min-height: 22px;
	padding: 2px 7px;
}

.sip-status-page .statusMultiTrackLabelToggle {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	padding-inline: 6px;
	width: 24px;
}

.sip-status-page .statusMultiTrackLabelToggle [data-sp-radial-label-toggle-text] {
	display: none;
}

.sip-status-page .statusMultiTrackLabelToggle[hidden] {
	display: none;
}

.sip-status-page .statusMultiTrackViewToggle button.is-active {
	border-color: var(--sp-primary);
	color: #fff;
}

.sip-status-page .statusMultiTrackLaneView,
.sip-status-page .statusMultiTrackRadialView {
	display: grid;
	gap: 6px;
	grid-column: 1 / -1;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-width: 0;
}

/* The lane boxes are much shorter than the radial panels. In lane mode, align
   their top edge with the first detailed diagnostic tile rather than the
   summary fields above it. The toolbar follows the same offset so it remains
   inside the upper-right meter box. */
.sip-status-page .statusMultiTrackMeters[data-status-meter-mode-current="lanes"] .statusMultiTrackLaneView {
	margin-top: 44px;
}

.sip-status-page .statusMultiTrackMeters[data-status-meter-mode-current="lanes"] .statusMultiTrackToolbar {
	top: 51px;
}

.sip-status-page .statusMultiTrackLaneView .statusMultiTrackHeader {
	box-sizing: border-box;
	min-height: 34px;
}

/* Lane mode hides the channel-label button, leaving only the 83px view toggle.
   Do not keep radial mode's larger header reserve: it needlessly squeezes the RX
   sound-card name into extra lines and pushes its channel grid below TX. */
@media only screen and (min-width: 901px) {
	.sip-status-page .statusMultiTrackMeters[data-status-meter-mode-current="lanes"]
		.statusMultiTrackLaneView > .statusMultiTrackMeterBank:last-child .statusMultiTrackHeader {
		padding-right: 96px;
	}
}

.sip-status-page [data-status-meter-view][hidden] {
	display: none;
}

.sip-status-page .statusMultiTrackRadialDirection {
	background: rgba(20, 20, 20, 0.22);
	border: 1px solid #404040;
	border-radius: 5px;
	min-width: 0;
	padding: 5px;
}

.sip-status-page .statusMultiTrackRadialDirection > header {
	align-items: center;
	display: flex;
	gap: 8px;
	min-height: 24px;
	padding: 0 3px 3px;
}

.sip-status-page .statusMultiTrackRadialView > .statusMultiTrackRadialDirection:last-child > header {
	/* Radial mode exposes both the view switch and the label button (about 112px).
	   Keep a modest reserve for them, rather than collapsing the RX heading in a
	   two-column layout. Lane mode owns its smaller 96px reserve above. */
	padding-right: 118px;
}

.sip-status-page .statusMultiTrackRadialDirection > header strong {
	color: #f0a079;
	font-size: 10px;
}

.sip-status-page .statusMultiTrackRadialDirection > header span {
	color: #aeb2b4;
	font-size: 9px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.sip-status-page .statusMultiTrackRadialGroups {
	display: grid;
	gap: 5px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* Compact deliberately: this is a dense multi-row list, not the Monitoring
   page's single focused view, so the wheel does not need Monitoring's much
   larger cap to stay legible. */
.sip-status-page .statusMultiTrackRadialGroups .sp-radial-meter {
	margin: 0 auto;
	max-width: 196px;
}

.sip-status-page .statusMultiTrackRadialGroups .sp-radial-meter-panel__scale {
	padding: 3px 8px 5px;
}

/* A direction too small for a wheel - a two-channel talkback return - is drawn as
   ordinary lanes in the wheel's place, so the radial view stays usable on an
   asymmetric trunk instead of leaving half the panel blank. The lanes need the full
   width of the panel rather than the square a wheel occupies. */
.sip-status-page .statusMultiTrackRadialLanePanel {
	grid-column: 1 / -1;
}

.sip-status-page .statusMultiTrackRadialLanePanel .sp-level-meter {
	padding: 8px 10px 0;
}

.sip-status-page .statusMultiTrackRadialLanePanel .sp-level-meter__scale {
	padding: 0 10px 8px;
}

/* A two-channel lane has a short scale track; anchor -6 from its right edge
   so it remains distinct from the 0 dBFS end label. */
.sip-status-page .statusMultiTrackRadialLanePanel .sp-level-meter__tick--near-end {
	transform: translateX(-100%);
}

@media only screen and (max-width: 900px) {
	.sip-status-page .statusMultiTrackToolbar {
		right: 7px;
		top: 7px;
	}
	.sip-status-page .statusMultiTrackRadialView > .statusMultiTrackRadialDirection:first-child > header {
		padding-right: 118px;
	}
	.sip-status-page .statusMultiTrackLaneView > .statusMultiTrackMeterBank:first-child .statusMultiTrackHeader {
		padding-right: 96px;
	}
	.sip-status-page .statusMultiTrackRadialView > .statusMultiTrackRadialDirection:last-child > header,
	.sip-status-page .statusMultiTrackLaneView > .statusMultiTrackMeterBank:last-child .statusMultiTrackHeader {
		padding-right: 3px;
	}
	.sip-status-page .statusMultiTrackLaneView,
	.sip-status-page .statusMultiTrackRadialView {
		grid-template-columns: 1fr;
	}
}

.audio-settings-page .audio-startup-error {
	background: rgba(232, 106, 51, .08);
	border: 1px solid rgba(232, 106, 51, .34);
	border-radius: 6px;
	color: #f0a983;
	display: flex;
	flex-direction: column;
	font-size: 12px;
	gap: 4px;
	margin-bottom: 12px;
	padding: 10px 12px;
}


/* Measured standard-call recovery. The caveat remains visible when expanded. */
.sip-status-page .statusStandardRecovery[hidden] { display: none; }
.sip-status-page .statusStandardRecovery h4 {
    color: #c9cdcf;
    font-size: 11px;
    margin: 12px 0 6px;
}
.sip-status-page .statusStandardStats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
}
.sip-status-page .statusDecoderRecovery .statusStandardStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sip-status-page .statusStandardStats .statusTrunkStat > strong {
    overflow: visible;
    white-space: normal;
}
.sip-status-page .statusRecoveryNote,
.sip-status-page .statusJitterPolicy {
    color: #a3a8ab;
    font-size: 10px;
    line-height: 1.45;
    margin: 7px 0 0;
}
@media (max-width: 767px) {
    .sip-status-page .statusStandardStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep unavailable values and pre-recovery labels readable in expanded stats. */
.sip-status-page .statusDetailsGroupCall > .statusDetailsGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sip-status-page .statusDetailsGroupCall .statusField label {
    white-space: normal;
}
.sip-status-page .statusTrunkStat > strong[id^="trunk_queue_"] {
    overflow: visible;
    white-space: normal;
}
@media (max-width: 767px) {
    .sip-status-page .statusDetailsGroupCall > .statusDetailsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sip-status-page .statusDetailsContent .statusTrunkStats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sip-status-page .statusDetailsContent .statusTrunkStat > strong {
        overflow: visible;
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

/* Call histories use the shared dashboard trend primitive. Product-only chart
   geometry, legends and gap-safe SVG paths remain scoped to this status page. */
.sip-status-page .statusCallTrends {
    --dashboard-muted: var(--sp-muted);
    --dashboard-cyan: var(--sp-cyan);
    border-top: 1px solid var(--sp-border);
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 8px;
}
.sip-status-page .statusTrendHeader {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 5px;
}
.sip-status-page .statusTrendHeader > div:first-child { align-items: baseline; display: flex; flex-wrap: wrap; gap: 12px; }
.sip-status-page .statusTrendHeader h3 { color: var(--sp-text-strong); display: block; font-size: 12px; margin: 0; }
.sip-status-page .statusTrendHeader [data-trend-state] { color: var(--sp-muted); font-size: 10px; }
.sip-status-page .statusTrendWindow button { min-height: 26px; min-width: 38px; }
.sip-status-page .statusTrendGrid { display: grid; gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sip-status-page .statusTrend { align-content: start; grid-template-rows: auto 48px minmax(26px, auto) auto; padding: 0 10px; }
.sip-status-page .statusTrend:first-child { padding-left: 0; }
.sip-status-page .statusTrend:last-child { padding-right: 0; }
.sip-status-page .statusTrend header { align-items: baseline; display: grid; gap: 1px 6px; grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 4px !important; }
.sip-status-page .statusTrend header > span { display: contents; }
.sip-status-page .statusTrend header b { grid-column: 1; grid-row: 1; }
.sip-status-page .statusTrend header small { grid-column: 1 / -1; grid-row: 2; line-height: 1.3; }
.sip-status-page .statusTrend header strong { color: var(--sp-text-strong); font-size: 13px; grid-column: 2; grid-row: 1; white-space: nowrap; }
.sip-status-page .statusTrend svg { height: 48px; margin: 0; max-height: 48px; min-height: 48px; }
.sip-status-page .statusTrendPlot { height: 48px; min-width: 0; padding-left: 40px; position: relative; }
.sip-status-page .statusTrendAxis { color: var(--sp-muted-2); font-size: 9px; line-height: 10px; max-width: 36px; overflow-wrap: anywhere; pointer-events: none; position: absolute; z-index: 1; }
.sip-status-page .statusTrendAxisHigh { left: 0; top: 0; }
.sip-status-page .statusTrendAxisLow { bottom: 0; left: 0; }
.sip-status-page .statusTrend .statusTrendLine { fill: none; fill-opacity: 0; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.sip-status-page .statusTrend circle { fill: currentColor; }
.sip-status-page .statusTrend [data-trend-series="1"],
.sip-status-page .statusTrend [data-trend-legend="1"] { color: var(--sp-orange); }
.sip-status-page .statusTrend [data-trend-series="2"],
.sip-status-page .statusTrend [data-trend-legend="2"] { color: var(--sp-muted); }
.sip-status-page .statusTrend [data-trend-series="3"],
.sip-status-page .statusTrend [data-trend-legend="3"] { color: var(--sp-green); }
.sip-status-page .statusTrend [data-trend-series="1"] .statusTrendLine { stroke-dasharray: 4 2; }
.sip-status-page .statusTrend [data-trend-series="2"] .statusTrendLine { stroke-dasharray: 2 3; }
.sip-status-page .statusTrend [data-trend-series="3"] .statusTrendLine { stroke-dasharray: 6 2 1 2; }
.sip-status-page .statusTrend [data-trend-series]:not([data-trend-series="0"]) [data-trend-area] { fill: none; }
.sip-status-page .statusTrendLegend { align-content: start; display: flex; flex-wrap: wrap; font-size: 10px; gap: 2px 10px; line-height: 1.3; padding: 3px; }
.sip-status-page .statusTrendLegend [hidden] { display: none; }
.sip-status-page .statusTrendLegend span::before { border-top: 2px solid currentColor; content: ''; display: inline-block; margin-right: 4px; vertical-align: middle; width: 9px; }
.sip-status-page .statusTrendLegend [data-trend-legend="1"]::before,
.sip-status-page .statusTrendLegend [data-trend-legend="2"]::before { border-top-style: dashed; }
.sip-status-page .statusLegacyDiagnostic { display: none !important; }
.sip-status-page .statusTrendDetailToggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--sp-muted);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 10px;
    gap: 5px;
    justify-content: flex-start;
    margin: 3px 0 0;
    min-height: 25px;
    padding: 3px 0;
    text-align: left;
}
.sip-status-page .statusTrendDetailToggle:hover,
.sip-status-page .statusTrendDetailToggle:focus-visible { color: var(--sp-text-strong); text-decoration: underline; }
.sip-status-page .statusTrendDetailToggle i { font-size: 8px; transition: transform .15s ease; }
.sip-status-page .statusTrendDetailToggle[aria-expanded="true"] i { transform: rotate(180deg); }
.sip-status-page .statusTrendDetails { border-top: 1px solid var(--sp-border); margin-top: 3px; padding-top: 7px; }
.sip-status-page .statusTrendDetails[hidden] { display: none; }
.sip-status-page .statusTrendDetailStats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.sip-status-page .statusTrendDetailStats .statusTrunkStat > strong { font-size: 11px; }
.sip-status-page .statusTrendNote { color: var(--sp-muted); font-size: 10px; line-height: 1.45; margin: 5px 0 0; }
.sip-status-page .statusTrendNote + .statusTrendNote { margin-top: 2px; }
.sip-status-page .statusCallTrends.isIdle .statusTrendGrid,
.sip-status-page .statusCallTrends.isIdle .statusTrendNote,
.sip-status-page .statusCallTrends.isIdle .statusTrendWindow { display: none; }
.sip-status-page .statusCallTrends.isIdle .statusTrendHeader { margin-bottom: 0; }
.sip-status-page .statusCallTrends.isIdle [data-trend-state] { font-size: 0; }
.sip-status-page .statusCallTrends.isIdle [data-trend-state]::after {
    content: 'No active call — history will appear here when sampling starts';
    font-size: 10px;
}
@media (max-width: 1000px) {
    .sip-status-page .statusTrendGrid { gap: 12px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sip-status-page .statusTrend:nth-child(3) { border-left: 0; padding-left: 0; }
    .sip-status-page .statusTrend:nth-child(2) { padding-right: 0; }
}
@media (max-width: 560px) {
    .sip-status-page .statusTrendGrid { gap: 12px; grid-template-columns: minmax(0, 1fr); }
    .sip-status-page .statusTrend { border-left: 0; padding: 0; }
    .sip-status-page .statusTrendWindow button { min-height: 36px; min-width: 46px; }
    .sip-status-page .statusTrendLegend { min-height: 24px; }
    .sip-status-page .statusTrendDetailStats { grid-template-columns: minmax(0, 1fr); }
}

/* Native hidden must win over editor flex/grid display rules. */
.sip-extension-editor [hidden] { display: none !important; }

/* Keep full diagnostic values readable at the real card width. */
.sip-status-page .statusDetailsGroupCall {
    container-name: status-call;
    container-type: inline-size;
    min-width: 0;
}
.sip-status-page .statusDetailsContent .statusTrunkStat {
    box-sizing: border-box;
    gap: 3px;
    height: auto;
    min-width: 0;
}
.sip-status-page .statusDetailsContent .statusTrunkStat > span,
.sip-status-page .statusDetailsContent .statusTrunkStat > strong {
    display: block;
    line-height: 1.4;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
}
.sip-status-page .statusDetailsContent .statusTrunkStat > span { font-size: 9px; }
.sip-status-page .statusDetailsContent .statusTrunkStat > strong {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    overflow: visible !important;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
    white-space: normal !important;
}
.sip-status-page .statusDetailsContent .statusDecoderRecovery .statusStandardStats,
.sip-status-page .statusDetailsContent .statusStandardRecovery .statusStandardStats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@container status-call (max-width: 1599px) {
    .sip-status-page .statusDetailsGrid {
        gap: 6px 8px;
        grid-template-columns: repeat(4, minmax(112px, 1fr));
    }
}
@container status-call (max-width: 799px) {
    .sip-status-page .statusDetailsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container status-call (max-width: 639px) {
    .sip-status-page .statusDetailsContent .statusTrunkStats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sip-status-page .statusDetailsContent .statusDecoderRecovery .statusTrunkStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container status-call (max-width: 479px) {
    .sip-status-page .statusDetailsContent .statusTrunkStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container status-call (max-width: 299px) {
    .sip-status-page .statusDetailsContent .statusTrunkStats,
    .sip-status-page .statusDetailsContent .statusDecoderRecovery .statusTrunkStats { grid-template-columns: minmax(0, 1fr); }
}
