/*
 * Semicolon Helps session workspace
 * Scope: session pages only. Dashboard and global application surfaces are untouched.
 */

:root {
	--sh-bg: #081120;
	--sh-bg-deep: #050c18;
	--sh-panel: #101a2b;
	--sh-panel-2: #151f32;
	--sh-panel-3: #1a2539;
	--sh-line: rgba(154, 174, 211, 0.16);
	--sh-line-strong: rgba(154, 174, 211, 0.28);
	--sh-text: #f5f7fc;
	--sh-muted: #9da9bc;
	--sh-blue: #4a9df8;
	--sh-purple: #8159e8;
	--sh-green: #48c989;
	--sh-amber: #f0b446;
	--sh-red: #ed4d56;
}

html.semicolon-session-workspace-active,
html.semicolon-session-workspace-active body,
body.semicolon-session-call-active,
body:has(.sh-session-shell) {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 100% !important;
	overflow: hidden !important;
	background: var(--sh-bg) !important;
}

/* The full-screen shell is moved directly under body by session-interface.js.
 * These hard resets prevent theme/Elementor borders, rounded corners, padding,
 * or transformed parents from framing the requester interface on mobile. */
body.semicolon-session-workspace-active > .sh-session-shell {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: 100vh !important;
	height: 100svh !important;
	height: 100dvh !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	clip-path: none !important;
	-webkit-clip-path: none !important;
}

.sh-session-shell,
.sh-session-shell * {
	box-sizing: border-box;
}

.sh-session-shell {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100dvh;
	min-height: 640px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--sh-bg);
	color: var(--sh-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: left;
}

.sh-session-shell button,
.sh-session-shell input,
.sh-session-shell textarea {
	font: inherit;
}

.sh-session-shell svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Top bar */
.sh-session-topbar {
	position: relative;
	z-index: 80;
	display: grid;
	grid-template-columns: 280px minmax(360px, 1fr) auto 250px;
	align-items: center;
	gap: 24px;
	min-height: 76px;
	padding: 0 28px;
	background: linear-gradient(180deg, #10192a 0%, #0b1423 100%);
	border-bottom: 1px solid var(--sh-line);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.sh-session-brand {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
}

.sh-session-brand__mark {
	color: var(--sh-purple);
	font-size: 52px;
	font-weight: 800;
	line-height: 0.75;
	transform: translateY(-2px);
}

.sh-session-brand strong {
	color: #fff;
	font-size: 21px;
	font-weight: 730;
	line-height: 0.95;
	letter-spacing: -0.02em;
}

.sh-session-topbar__metrics {
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 40px;
	max-width: 650px;
	margin: 0 auto;
	width: 100%;
}

.sh-session-metric {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 150px;
}

.sh-session-metric > svg {
	width: 34px;
	height: 34px;
	padding: 7px;
	color: #d8dfec;
	border: 1px solid var(--sh-line-strong);
	border-radius: 50%;
}

.sh-session-metric small,
.sh-session-agent-chip span {
	display: block;
	margin-bottom: 2px;
	color: var(--sh-muted);
	font-size: 10px;
	font-weight: 650;
	line-height: 1.2;
}

.sh-session-metric strong {
	display: block;
	color: #fff;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	font-weight: 680;
	line-height: 1.1;
}

.sh-session-metric--connection strong {
	font-size: 13px;
}

.sh-connection-bars {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	width: 30px;
	height: 26px;
}

.sh-connection-bars i {
	display: block;
	width: 4px;
	background: var(--sh-green);
	border-radius: 3px 3px 0 0;
	box-shadow: 0 0 8px rgba(72, 201, 137, 0.24);
}

.sh-connection-bars i:nth-child(1) { height: 7px; }
.sh-connection-bars i:nth-child(2) { height: 12px; }
.sh-connection-bars i:nth-child(3) { height: 18px; }
.sh-connection-bars i:nth-child(4) { height: 24px; }

.sh-session-safety {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 162px;
	min-height: 44px;
	padding: 0 22px;
	background: linear-gradient(180deg, #ef555c, #d94049);
	border: 0;
	border-radius: 7px;
	box-shadow: 0 10px 22px rgba(237, 77, 86, 0.22);
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	font-weight: 760;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.sh-session-safety svg { width: 17px; height: 17px; }

.sh-session-agent-chip {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 11px;
	min-width: 0;
}

.sh-session-agent-chip img {
	width: 38px;
	height: 38px;
	object-fit: cover;
	border: 2px solid rgba(255,255,255,.1);
	border-radius: 50%;
}

.sh-session-agent-chip strong {
	display: block;
	max-width: 170px;
	overflow: hidden;
	color: #fff;
	font-size: 13px;
	font-weight: 720;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sh-session-agent-chip span { color: var(--sh-green); }

/* Main application frame */
.sh-session-body {
	position: relative;
	z-index: 10;
	display: grid;
	grid-template-columns: 82px 308px minmax(460px, 1fr) 342px;
	min-height: 0;
	flex: 1;
	background: var(--sh-bg);
}

.sh-session-shell--member .sh-session-topbar {
	grid-template-columns: 250px 1fr 250px;
}

.sh-session-shell--member .sh-session-topbar__metrics { grid-column: 2; }
.sh-session-shell--member .sh-session-agent-chip { grid-column: 3; }
.sh-session-shell--member .sh-session-body { grid-template-columns: minmax(0, 1fr); }

/* Vertical navigation */
.sh-session-nav {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	min-height: 0;
	padding: 22px 8px 18px;
	background: #0b1423;
	border-right: 1px solid var(--sh-line);
}

.sh-session-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 67px;
	padding: 8px 4px;
	border: 1px solid transparent;
	border-radius: 9px;
	color: #8d9aae;
	font-size: 9px;
	font-weight: 620;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
}

.sh-session-nav a svg { width: 21px; height: 21px; }
.sh-session-nav a:hover { color: #dce4f3; background: rgba(255,255,255,.035); }
.sh-session-nav a.is-active {
	background: rgba(129, 89, 232, 0.16);
	border-color: rgba(129, 89, 232, 0.32);
	color: #c6b7ff;
}

/* Left snapshot rail */
.sh-snapshot-panel,
.sh-session-tools {
	min-width: 0;
	min-height: 0;
	background: linear-gradient(180deg, #111b2d 0%, #0e1829 100%);
}

.sh-snapshot-panel {
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--sh-line);
}

.sh-snapshot-panel > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 69px;
	padding: 16px 18px 13px;
	border-bottom: 1px solid var(--sh-line);
}

.sh-snapshot-panel > header strong {
	display: block;
	color: #f8faff;
	font-size: 12px;
	font-weight: 780;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.sh-snapshot-panel > header small {
	display: block;
	max-width: 220px;
	margin-top: 4px;
	overflow: hidden;
	color: var(--sh-muted);
	font-size: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sh-snapshot-panel > header > span {
	color: #aeb8ca;
	font-size: 17px;
}

.sh-panel-tabs,
.sh-note-tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	min-height: 43px;
	background: rgba(255,255,255,.012);
	border-bottom: 1px solid var(--sh-line);
}

.sh-panel-tabs button,
.sh-note-tabs button {
	position: relative;
	padding: 0 10px;
	background: transparent;
	border: 0;
	color: #8f9caf;
	cursor: pointer;
	font-size: 10px;
	font-weight: 720;
}

.sh-panel-tabs button::after,
.sh-note-tabs button::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: -1px;
	height: 2px;
	background: transparent;
}

.sh-panel-tabs button[aria-selected="true"],
.sh-note-tabs button[aria-selected="true"] { color: #fff; }
.sh-panel-tabs button[aria-selected="true"]::after,
.sh-note-tabs button[aria-selected="true"]::after { background: var(--sh-purple); }

.sh-snapshot-panel__scroll,
.sh-session-tools {
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(169, 186, 217, .28) transparent;
}

.sh-snapshot-panel__scroll { flex: 1; padding: 8px 18px 24px; }
.sh-snapshot-panel__scroll [hidden],
.sh-session-tools [hidden] { display: none !important; }

.sh-snapshot-section {
	padding: 15px 0;
	border-bottom: 1px solid var(--sh-line);
}

.sh-snapshot-section h4,
.sh-intake-list dt,
.sh-safety-alert strong {
	margin: 0 0 8px;
	color: #c5ccda;
	font-size: 9px;
	font-weight: 790;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.sh-snapshot-section p,
.sh-snapshot-section li,
.sh-intake-list dd,
.sh-safety-alert p {
	margin: 0;
	color: #c2cad8;
	font-size: 10.5px;
	line-height: 1.55;
}

.sh-snapshot-section ul { margin: 0; padding: 0; list-style: none; }
.sh-snapshot-section li + li { margin-top: 7px; }

.sh-check-list li,
.sh-dot-list li {
	position: relative;
	padding-left: 18px;
}

.sh-check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	display: grid;
	width: 12px;
	height: 12px;
	place-items: center;
	background: var(--sh-green);
	border-radius: 50%;
	color: #081120;
	font-size: 8px;
	font-weight: 900;
}

.sh-dot-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .62em;
	width: 5px;
	height: 5px;
	background: var(--sh-green);
	border-radius: 50%;
}

.sh-plain-list { padding-left: 14px !important; list-style: disc !important; }
.sh-snapshot-section--caution h4 { color: var(--sh-amber); }

.sh-mood-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: #eef2f8;
	font-size: 11px;
}

.sh-intensity {
	height: 5px;
	margin-top: 9px;
	overflow: hidden;
	background: #263249;
	border-radius: 99px;
}

.sh-intensity span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #f2b643, #ef8f3e);
	border-radius: inherit;
}

.sh-safety-alert {
	margin: 10px 0 4px;
	padding: 12px;
	background: rgba(237, 77, 86, .11);
	border: 1px solid rgba(237, 77, 86, .45);
	border-radius: 8px;
}

.sh-safety-alert strong { color: #ff9aa0; }

.sh-signal-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 14px 0;
}

.sh-signal-pills span {
	padding: 5px 7px;
	background: #1a263a;
	border: 1px solid var(--sh-line);
	border-radius: 99px;
	color: #9daabe;
	font-size: 8px;
	font-weight: 690;
}

.sh-signal-pills span.is-critical,
.sh-signal-pills span.is-urgent {
	background: rgba(237, 77, 86, .12);
	border-color: rgba(237, 77, 86, .38);
	color: #ff9aa0;
}

.sh-intake-list { margin: 0; }
.sh-intake-list > div { padding: 12px 0; border-bottom: 1px solid var(--sh-line); }
.sh-intake-list dd { margin: 0; }

/* Center stage */
.sh-session-main {
	display: grid;
	grid-template-rows: minmax(0, 1fr) 156px;
	min-width: 0;
	min-height: 0;
	background: var(--sh-bg-deep);
}

.sh-session-stage {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 12%, rgba(58, 79, 119, .25), transparent 42%),
		#071225;
}

.sh-session-secure-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 52;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 11px;
	background: rgba(7, 14, 25, .72);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 7px;
	backdrop-filter: blur(12px);
	color: #dce7dc;
	font-size: 9px;
	font-weight: 680;
	text-transform: capitalize;
}

.sh-session-secure-badge svg { width: 13px; height: 13px; color: var(--sh-green); }

.sh-session-welcome {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: none !important;
	padding: 80px 50px 120px;
	text-align: center;
}

.sh-session-welcome__mark {
	display: grid;
	width: 62px;
	height: 62px;
	place-items: center;
	margin-bottom: 18px;
	background: rgba(129, 89, 232, .14);
	border: 1px solid rgba(129, 89, 232, .35);
	border-radius: 50%;
	color: #a487ff;
}

.sh-session-welcome__mark svg { width: 26px; height: 26px; }
.sh-session-welcome .semicolon-session-lobby__eyebrow { margin: 0 0 8px; color: #7ea8dc; font-size: 10px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.sh-session-welcome h2 { max-width: 620px; margin: 0; color: #fff; font-size: clamp(26px, 3vw, 40px); font-weight: 680; line-height: 1.12; }
.sh-session-welcome .semicolon-session-lobby__copy { max-width: 580px; margin: 14px auto 0; color: #9eabbe; font-size: 13px; line-height: 1.6; }
.sh-session-welcome .semicolon-session-lobby__action { margin-top: 24px; }

.semicolon-session-lobby__start {
	min-width: 190px;
	min-height: 46px;
	padding: 0 22px;
	background: linear-gradient(180deg, #8d68ee, #724bd9);
	border: 0;
	border-radius: 8px;
	box-shadow: 0 14px 28px rgba(129,89,232,.24);
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	font-weight: 760;
}

.semicolon-session-lobby__status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 18px 0 0;
	color: #94a2b5;
	font-size: 10px;
}

.semicolon-session-lobby__status > span:first-child {
	width: 7px;
	height: 7px;
	background: var(--sh-green);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(72,201,137,.1);
}

.semicolon-session-runtime {
	position: absolute;
	inset: 0;
	z-index: 18;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

.sh-session-shell.is-call-active .semicolon-session-runtime {
	opacity: 1;
	pointer-events: auto;
}

.sh-session-shell.is-call-active .sh-session-welcome { display: none !important; }

.semicolon-session-runtime__mount,
.semicolon-session-runtime__mount > div,
.semicolon-session-runtime__mount .bp-messages-wrap,
.semicolon-session-runtime__mount .bp-messages-wrap-main,
.semicolon-session-runtime__mount .bp-messages-column,
.semicolon-session-runtime__mount .bp-messages-single-thread-wrap {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Media sessions use Better Messages as the transport, not as the visible layout.
 * Do not hide message-stack or messages-list: current Better Messages releases
 * may mount the live call inside those containers. The native call is promoted
 * above them instead. */
.sh-session-shell--video.is-call-active .semicolon-session-runtime__mount .bp-messages-side-threads,
.sh-session-shell--call.is-call-active .semicolon-session-runtime__mount .bp-messages-side-threads,
.sh-session-shell--video.is-call-active .semicolon-session-runtime__mount .chat-header,
.sh-session-shell--call.is-call-active .semicolon-session-runtime__mount .chat-header,
.sh-session-shell--video.is-call-active .semicolon-session-runtime__mount .chat-footer,
.sh-session-shell--call.is-call-active .semicolon-session-runtime__mount .chat-footer,
.sh-session-shell--video.is-call-active .semicolon-session-runtime__mount .bp-messages-form,
.sh-session-shell--call.is-call-active .semicolon-session-runtime__mount .bp-messages-form,
.sh-session-shell--video.is-call-active .semicolon-session-runtime__mount .bpbm-reply,
.sh-session-shell--call.is-call-active .semicolon-session-runtime__mount .bpbm-reply,
.sh-session-shell--video.is-call-active .semicolon-session-runtime__mount .bm-reply,
.sh-session-shell--call.is-call-active .semicolon-session-runtime__mount .bm-reply {
	display: none !important;
}

.sh-session-shell.is-call-active .semicolon-session-runtime__mount [data-sh-native-call-host] {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	overflow: visible !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.sh-session-shell.is-call-active .semicolon-session-runtime__mount [data-sh-native-call-view],
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bpbm-call-view,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bpbm-call-audio-view,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bp-messages-private-call,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bpbm-call-screen,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bpbm-call-window {
	position: absolute !important;
	inset: 0 !important;
	z-index: 30 !important;
	display: flex !important;
	align-items: stretch !important;
	justify-content: stretch !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	opacity: 1 !important;
	visibility: visible !important;
	background: #050b16 !important;
	border: 0 !important;
	border-radius: 0 !important;
	transform: none !important;
}

.sh-session-shell.is-call-active .semicolon-session-runtime__mount [data-sh-call-media],
.sh-session-shell.is-call-active .semicolon-session-runtime__mount [data-sh-native-call-view] video,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bpbm-call-view video,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bpbm-call-audio-view video,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bp-messages-private-call video {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	object-fit: cover !important;
	background: #050b16 !important;
}

/* Hide native Better Messages buttons after Semicolon controls are active.
 * Keep the media containers themselves fully visible. */
.sh-session-shell.is-call-active .semicolon-session-runtime__mount [data-sh-native-call-view] button,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bpbm-call-view button,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bpbm-call-audio-view button,
.sh-session-shell.is-call-active .semicolon-session-runtime__mount .bp-messages-private-call button {
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Requester incoming-call controls. Better Messages remains the transport,
 * while Semicolon presents the answer and decline actions in its own interface. */
.sh-incoming-call[hidden] {
	display: none !important;
}

.sh-incoming-call {
	position: absolute;
	inset: 0;
	z-index: 74;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background:
		radial-gradient(circle at 50% 32%, rgba(71, 118, 189, .22), transparent 34%),
		linear-gradient(180deg, rgba(5, 12, 24, .78), rgba(5, 12, 24, .96));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #fff;
	text-align: center;
}

.sh-incoming-call__avatar {
	width: 92px;
	height: 92px;
	margin-bottom: 17px;
	padding: 3px;
	background: linear-gradient(145deg, rgba(129, 89, 232, .95), rgba(74, 157, 248, .95));
	border-radius: 50%;
	box-shadow: 0 16px 38px rgba(0, 0, 0, .38);
}

.sh-incoming-call__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 3px solid #0b1423;
	border-radius: 50%;
}

.sh-incoming-call > p {
	margin: 0 0 7px;
	color: #aeb9cb;
	font-size: 12px;
	font-weight: 720;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sh-incoming-call > h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(25px, 3vw, 38px);
	font-weight: 740;
	letter-spacing: -.025em;
}

.sh-incoming-call > span {
	margin-top: 7px;
	color: #aeb9cb;
	font-size: 14px;
}

.sh-incoming-call__actions {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 44px;
	margin-top: 34px;
}

.sh-incoming-call__actions button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	min-width: 84px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
}

.sh-incoming-call__actions button > svg {
	width: 64px;
	height: 64px;
	padding: 18px;
	border-radius: 50%;
	stroke-width: 2.1;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
	transition: transform .16s ease, filter .16s ease;
}

.sh-incoming-call__actions button:hover > svg {
	transform: translateY(-2px) scale(1.03);
	filter: brightness(1.08);
}

.sh-incoming-call__actions button.is-accept > svg {
	background: #35c878;
	transform: rotate(-18deg);
}

.sh-incoming-call__actions button.is-accept:hover > svg {
	transform: translateY(-2px) rotate(-18deg) scale(1.03);
}

.sh-incoming-call__actions button.is-decline > svg {
	background: var(--sh-red);
}

.sh-incoming-call__actions button small {
	color: #dbe2ee;
	font-size: 11px;
	font-weight: 680;
}

.sh-incoming-call__actions button:disabled {
	cursor: wait;
	opacity: .58;
}

.sh-incoming-call__status {
	min-height: 22px;
	margin-top: 18px;
	color: #c8d2e2;
	font-size: 12px;
}

.sh-session-shell.has-incoming-call .sh-call-controls {
	display: none !important;
}

/* Custom call controls */
.sh-call-controls {
	position: absolute;
	left: 50%;
	bottom: 14px;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 3vw, 42px);
	width: min(92%, 780px);
	min-height: 88px;
	padding: 10px 24px;
	transform: translateX(-50%);
	background: rgba(12, 22, 38, .92);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 12px;
	box-shadow: 0 20px 45px rgba(0,0,0,.35);
	backdrop-filter: blur(16px);
}

.sh-call-controls button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 58px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #dbe2ee;
	cursor: pointer;
}

.sh-call-controls button > span {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	background: #202b40;
	border: 1px solid rgba(255,255,255,.045);
	border-radius: 50%;
	transition: .16s ease;
}

.sh-call-controls button:hover > span { background: #2c3850; transform: translateY(-1px); }
.sh-call-controls button.is-active > span { background: #37445d; color: #fff; }
.sh-call-controls button.is-disabled > span { background: rgba(237,77,86,.18); color: #ff8e94; }
.sh-call-controls button svg { width: 19px; height: 19px; }
.sh-call-controls button small { color: #b3bece; font-size: 9px; font-weight: 650; }
.sh-call-controls button.is-danger > span { background: var(--sh-red); color: #fff; box-shadow: 0 8px 22px rgba(237,77,86,.28); }
.sh-call-controls button.is-danger small { color: #eef2f8; }

/* Timeline */
.sh-session-timeline-panel {
	min-width: 0;
	padding: 15px 20px 14px;
	background: linear-gradient(180deg, #101a2b, #0d1727);
	border-top: 1px solid var(--sh-line);
}

.sh-session-timeline-panel > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 17px;
}

.sh-session-timeline-panel > header strong { color: #d8deea; font-size: 10px; letter-spacing: .045em; text-transform: uppercase; }
.sh-session-timeline-panel > header span { color: #7f8da2; font-size: 9px; }

.sh-session-timeline-panel ol {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sh-session-timeline-panel li {
	position: relative;
	flex: 1;
	min-width: 0;
	padding-right: 10px;
	color: #8694a8;
}

.sh-session-timeline-panel li::after {
	content: "";
	position: absolute;
	left: 8px;
	right: -1px;
	top: 7px;
	height: 1px;
	background: #2a3750;
}

.sh-session-timeline-panel li:last-child::after { display: none; }
.sh-session-timeline-panel li > span {
	position: relative;
	z-index: 2;
	display: block;
	width: 14px;
	height: 14px;
	margin-bottom: 9px;
	background: #24334b;
	border: 3px solid #4f6079;
	border-radius: 50%;
}

.sh-session-timeline-panel li:first-child > span,
.sh-session-timeline-panel li:nth-child(2) > span { background: var(--sh-green); border-color: rgba(72,201,137,.25); }
.sh-session-timeline-panel li strong { display: block; overflow: hidden; color: #b7c1d0; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.sh-session-timeline-panel li time { display: block; margin-top: 3px; color: #718096; font-size: 8px; }

/* Right tool rail */
.sh-session-tools {
	padding: 12px;
	background: #0e1829;
	border-left: 1px solid var(--sh-line);
}

.sh-tool-card {
	margin-bottom: 10px;
	padding: 12px;
	background: #121d2f;
	border: 1px solid var(--sh-line);
	border-radius: 9px;
}

.sh-tool-card > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.sh-tool-card > header strong { color: #dbe1ec; font-size: 10px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.sh-tool-card > header span { color: #9d7cff; font-size: 14px; }
.sh-tool-card > header svg { width: 16px; height: 16px; }
.sh-panel-guidance { margin: -2px 0 9px; color: #8390a4; font-size: 8.5px; line-height: 1.45; }

.sh-tool-card .sh-panel-tabs,
.sh-note-tabs {
	margin: -3px -3px 10px;
	min-height: 34px;
	background: transparent;
	border: 0;
}

.sh-note-panel textarea {
	width: 100%;
	min-height: 76px;
	resize: vertical;
	padding: 10px;
	background: #1a2538;
	border: 1px solid var(--sh-line);
	border-radius: 6px;
	outline: none;
	color: #eef2f8;
	font-size: 10px;
	line-height: 1.45;
}

.sh-note-panel textarea:focus { border-color: rgba(129,89,232,.7); box-shadow: 0 0 0 3px rgba(129,89,232,.08); }
.sh-note-panel small { display: block; margin-top: 5px; color: #78869b; font-size: 8px; }

.sh-note-actions {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.sh-note-actions > span { color: #7f8da1; font-size: 8px; }
.sh-note-actions button {
	min-height: 30px;
	padding: 0 18px;
	background: linear-gradient(90deg, #7c55e4, #875de9);
	border: 0;
	border-radius: 5px;
	color: #fff;
	cursor: pointer;
	font-size: 9px;
	font-weight: 710;
}

.sh-response-list,
.sh-resource-list { display: grid; gap: 7px; }

.sh-response {
	width: 100%;
	padding: 10px;
	background: #19243a;
	border: 1px solid var(--sh-line);
	border-radius: 6px;
	color: #d8dfeb;
	cursor: pointer;
	text-align: left;
}

.sh-response:hover { border-color: rgba(129,89,232,.48); background: #1d2941; }
.sh-response.is-safety { background: rgba(240,180,70,.08); border-color: rgba(240,180,70,.35); }
.sh-response span { display: block; margin-bottom: 5px; color: #9e7dff; font-size: 7.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sh-response.is-safety span { color: var(--sh-amber); }
.sh-response p { margin: 0; color: #d1d8e4; font-size: 9.5px; line-height: 1.45; }

.sh-tool-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 30px;
	margin-top: 8px;
	background: transparent;
	border: 1px solid rgba(129,89,232,.6);
	border-radius: 5px;
	color: #ad94ff;
	cursor: pointer;
	font-size: 8.5px;
	font-weight: 690;
}

.sh-resource-save-status { min-height: 12px; margin: -5px 0 5px; color: #79cfa7; font-size: 8px; }
.sh-session-resource {
	position: relative;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 9px;
	padding: 9px;
	background: #19243a;
	border: 1px solid var(--sh-line);
	border-radius: 6px;
	cursor: pointer;
}

/* Keep the real checkbox inside the visible check cell. The previous absolute,
 * fully transparent input could become the browser's focus target outside the
 * nested resource scroller, causing Firefox/Safari to scroll the surrounding
 * fixed workspace when lower resources were selected. */
.sh-session-resource input[data-semicolon-resource-toggle] {
	position: relative;
	z-index: 2;
	grid-column: 3;
	grid-row: 1;
	width: 17px;
	height: 17px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.sh-session-resource__icon { grid-column: 1; grid-row: 1; display: grid; width: 29px; height: 29px; place-items: center; background: rgba(129,89,232,.15); border-radius: 6px; color: #a98dff; }
.sh-session-resource__icon svg { width: 15px; height: 15px; }
.sh-session-resource__content { grid-column: 2; grid-row: 1; min-width: 0; }
.sh-session-resource__content strong { display: block; overflow: hidden; color: #dfe5ef; font-size: 9.5px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.sh-session-resource__content small { display: block; margin-top: 3px; color: #7f8da2; font-size: 8px; }
.sh-session-resource__check { grid-column: 3; grid-row: 1; pointer-events: none; display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #536078; border-radius: 4px; color: transparent; font-size: 10px; }
.sh-session-resource:has(input[data-semicolon-resource-toggle]:focus-visible) { outline: 2px solid rgba(74,157,248,.72); outline-offset: 2px; }
.sh-session-resource.is-selected { background: rgba(72,201,137,.08); border-color: rgba(72,201,137,.45); }
.sh-session-resource.is-selected .sh-session-resource__check { background: var(--sh-green); border-color: var(--sh-green); color: #071225; }

.sh-empty-state { padding: 14px; border: 1px dashed var(--sh-line-strong); border-radius: 7px; text-align: center; }
.sh-empty-state strong { display: block; color: #c2ccda; font-size: 9px; }
.sh-empty-state p { margin: 5px 0 0; color: #7f8da1; font-size: 8px; line-height: 1.45; }

/* Text session center */
.sh-session-shell--text .sh-session-main { grid-template-rows: minmax(0, 1fr) 156px; }
.sh-text-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0a1424; }
.sh-text-stage .semicolon-text-session,
.sh-text-stage .semicolon-text-session__conversation,
.sh-text-stage .bp-messages-wrap,
.sh-text-stage .bp-messages-single-thread-wrap { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.sh-text-stage .semicolon-text-session__header { display: none; }
.sh-text-stage .semicolon-text-session__end-action { position: absolute; right: 18px; bottom: 18px; z-index: 30; }
.sh-text-stage .semicolon-text-session__end-action small { display: none; }
.sh-text-stage .semicolon-text-session__end-action button { min-height: 38px; padding: 0 18px; background: var(--sh-red); border: 0; border-radius: 7px; color: #fff; cursor: pointer; font-size: 10px; font-weight: 720; }

/* Agent post-session wrap-up remains inside the session workspace. */
.sh-agent-wrapup[hidden] { display: none !important; }

.sh-agent-wrapup {
	position: absolute;
	inset: 0;
	z-index: 72;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(28px, 5vw, 64px);
	overflow-y: auto;
	background:
		radial-gradient(circle at 50% 18%, rgba(129, 89, 232, .16), transparent 38%),
		linear-gradient(180deg, #091426 0%, #071120 100%);
	color: #fff;
	text-align: center;
}

.sh-agent-wrapup__mark {
	display: grid;
	width: 60px;
	height: 60px;
	place-items: center;
	margin-bottom: 18px;
	background: rgba(72, 201, 137, .13);
	border: 1px solid rgba(72, 201, 137, .3);
	border-radius: 50%;
	color: var(--sh-green);
	font-size: 25px;
	font-weight: 800;
}

.sh-agent-wrapup__eyebrow {
	margin: 0 0 8px;
	color: #9f88f2;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.sh-agent-wrapup h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(27px, 3vw, 40px);
	font-weight: 720;
	letter-spacing: -.025em;
}

.sh-agent-wrapup > p:not(.sh-agent-wrapup__eyebrow):not(.sh-agent-wrapup__status) {
	max-width: 680px;
	margin: 14px 0 0;
	color: #a8b4c7;
	font-size: 13px;
	line-height: 1.65;
}

.sh-agent-wrapup__checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: min(660px, 100%);
	margin-top: 26px;
}

.sh-agent-wrapup__checklist button {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 76px;
	padding: 14px 16px;
	background: #121e31;
	border: 1px solid var(--sh-line-strong);
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	text-align: left;
}

.sh-agent-wrapup__checklist button:hover {
	background: #17243a;
	border-color: rgba(129, 89, 232, .55);
}

.sh-agent-wrapup__checklist svg {
	flex: 0 0 auto;
	color: #a88cff;
}

.sh-agent-wrapup__checklist strong,
.sh-agent-wrapup__checklist small {
	display: block;
}

.sh-agent-wrapup__checklist strong {
	font-size: 12px;
}

.sh-agent-wrapup__checklist small {
	margin-top: 4px;
	color: #8e9caf;
	font-size: 9px;
	line-height: 1.4;
}

.sh-agent-wrapup__status {
	min-height: 20px;
	margin: 18px 0 0;
	color: #82d6ae;
	font-size: 10px;
	font-weight: 680;
}

.sh-agent-wrapup__finish {
	min-height: 46px;
	margin-top: 8px;
	padding: 0 22px;
	background: linear-gradient(180deg, #8d68ee, #724bd9);
	border: 0;
	border-radius: 8px;
	box-shadow: 0 14px 28px rgba(129,89,232,.24);
	color: #fff;
	cursor: pointer;
	font-size: 11px;
	font-weight: 760;
}

.sh-agent-wrapup__finish:disabled {
	cursor: wait;
	opacity: .6;
}

.sh-session-shell.is-agent-wrapup .sh-session-welcome,
.sh-session-shell.is-agent-wrapup .semicolon-session-runtime,
.sh-session-shell.is-agent-wrapup .sh-call-controls,
.sh-session-shell.is-agent-wrapup .sh-session-secure-badge,
.sh-session-shell--text.is-agent-wrapup .semicolon-text-session {
	display: none !important;
}

/* Completion state */
.sh-session-shell > .semicolon-session-complete[hidden] { display: none !important; }
.sh-session-shell.is-session-complete { display: grid; place-items: center; background: #081120; }
.sh-session-shell.is-session-complete > .sh-session-topbar,
.sh-session-shell.is-session-complete > .sh-session-body { display: none !important; }
.sh-session-shell.is-session-complete > .semicolon-session-complete {
	display: block;
	width: min(620px, calc(100vw - 40px));
	padding: 46px;
	background: #111c2d;
	border: 1px solid var(--sh-line);
	border-radius: 14px;
	box-shadow: 0 25px 70px rgba(0,0,0,.4);
	text-align: center;
}

.sh-session-shell .semicolon-session-complete__mark { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 18px; background: rgba(72,201,137,.13); border-radius: 50%; color: var(--sh-green); font-size: 24px; }
.sh-session-shell .semicolon-session-complete h2 { margin: 0; color: #fff; }
.sh-session-shell .semicolon-session-complete p { color: #9daabe; }
.sh-session-shell .semicolon-session-complete__actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.sh-session-shell .semicolon-session-complete__actions a,
.sh-session-shell .semicolon-session-complete__actions button { min-height: 42px; padding: 0 18px; background: var(--sh-purple); border: 0; border-radius: 7px; color: #fff; cursor: pointer; text-decoration: none; }

/* Focused jump animation */
.sh-tool-card.is-highlighted,
.sh-safety-alert.is-highlighted { animation: sh-pulse 1.2s ease; }
@keyframes sh-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(129,89,232,0); } 35% { box-shadow: 0 0 0 4px rgba(129,89,232,.22); } }

/* Compact desktop behavior. Agents remain desktop-first. */
@media (max-width: 1450px) {
	.sh-session-topbar { grid-template-columns: 230px minmax(320px,1fr) auto 210px; padding-inline: 20px; }
	.sh-session-body { grid-template-columns: 72px 276px minmax(420px,1fr) 314px; }
	.sh-session-nav a { min-height: 60px; }
	.sh-call-controls { gap: 20px; }
}

@media (max-width: 1180px) {
	.sh-session-topbar { grid-template-columns: 190px 1fr auto; gap: 15px; }
	.sh-session-topbar__metrics { justify-content: flex-start; gap: 20px; }
	.sh-session-agent-chip { display: none; }
	.sh-session-body { grid-template-columns: 64px 250px minmax(380px,1fr) 285px; }
	.sh-session-brand strong { font-size: 18px; }
	.sh-session-main { grid-template-rows: minmax(0,1fr) 135px; }
	.sh-call-controls { width: 96%; min-height: 80px; gap: 12px; padding-inline: 12px; }
	.sh-call-controls button { min-width: 51px; }
}

@media (max-width: 980px) {
	.sh-session-shell--agent::before {
		content: "Agent live sessions are designed for a desktop or laptop display.";
		position: fixed;
		inset: 0;
		z-index: 1000000;
		display: grid;
		place-items: center;
		padding: 40px;
		background: #081120;
		color: #eef2f8;
		font-size: 18px;
		font-weight: 650;
		line-height: 1.5;
		text-align: center;
	}
	.sh-session-shell--member .sh-session-topbar { grid-template-columns: 1fr auto; padding-inline: 14px; }
	.sh-session-shell--member .sh-session-brand { display: none; }
	.sh-session-shell--member .sh-session-topbar__metrics { grid-column: 1; justify-content: flex-start; }
	.sh-session-shell--member .sh-session-agent-chip { display: flex; grid-column: 2; }
	.sh-session-shell--member .sh-session-main { grid-template-rows: minmax(0,1fr); }
	.sh-session-shell--member .sh-call-controls { bottom: 10px; }
}

/* Media controls belong to the active call, not the waiting state. */
.sh-session-shell--video:not(.is-call-active) .sh-call-controls,
.sh-session-shell--call:not(.is-call-active) .sh-call-controls {
	display: none;
}

.sh-session-shell--member .sh-session-main {
	grid-template-rows: minmax(0, 1fr);
}

.sh-tool-card .sh-note-tabs {
	margin: -3px -3px 10px;
}

.sh-response.is-highlighted {
	border-color: rgba(129,89,232,.9);
	box-shadow: 0 0 0 3px rgba(129,89,232,.12);
}

/* Override the legacy full-screen call rule so the dark workspace stays visible. */
.sh-session-shell.is-call-active > .sh-session-topbar {
	display: grid !important;
}
.sh-session-shell.is-call-active > .sh-session-body {
	display: grid !important;
}
.sh-session-shell.is-call-active > .semicolon-session-complete[hidden] {
	display: none !important;
}
.sh-session-shell.is-call-active .semicolon-session-runtime {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

/* Semicolon-owned video canvas.
 * Better Messages continues to own WebRTC and its hidden call controls. The
 * active MediaStreams are mirrored into this stable stage so UI changes in the
 * transport cannot leave either participant staring at an empty panel. */
.sh-call-canvas {
	position: absolute;
	inset: 0;
	z-index: 34;
	display: block;
	overflow: hidden;
	background: transparent;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease;
}

/* Do not cover Better Messages' native video until a real MediaStream has
 * been found. This gives the native call view a reliable fallback instead of
 * placing an opaque empty canvas over a working call. */
.sh-session-shell.is-call-active .sh-call-canvas.has-remote-video,
.sh-session-shell.is-call-active .sh-call-canvas.has-local-video {
	opacity: 1;
	background: #050b16;
}

.sh-call-canvas__remote,
.sh-call-canvas__local {
	position: absolute;
	display: none;
	margin: 0;
	background: #050b16;
	border: 0;
	box-shadow: none;
	object-fit: cover;
}

.sh-call-canvas.has-remote-video .sh-call-canvas__remote {
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.sh-call-canvas.has-local-video .sh-call-canvas__local {
	right: 18px;
	top: 18px;
	display: block;
	width: clamp(132px, 18%, 210px);
	aspect-ratio: 4 / 3;
	z-index: 2;
	border: 2px solid rgba(255,255,255,.16);
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(0,0,0,.4);
}

.sh-call-canvas:not(.has-remote-video).has-local-video .sh-call-canvas__local {
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.sh-call-canvas__empty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #8290a6;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sh-call-canvas__empty[hidden] { display: none !important; }
.sh-call-canvas__empty svg { width: 42px; height: 42px; color: #8f72ec; }
.sh-connection-bars.is-ended i { background: #657187; }

@media (max-width: 700px) {
	.sh-call-canvas.has-local-video .sh-call-canvas__local {
		right: 10px;
		top: 10px;
		width: 92px;
		border-radius: 8px;
	}
}

/* 2.14 resource deck: matching, search, Agent ownership, and live creation. */
.sh-resource-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 9px;padding:3px;background:#0b1525;border:1px solid #253249;border-radius:8px}.sh-resource-tabs button{min-width:0;padding:7px 3px;border:0;border-radius:5px;background:transparent;color:#77869c;cursor:pointer;font-size:8px;font-weight:760}.sh-resource-tabs button[aria-selected="true"]{background:#283651;color:#f2f5fa}.sh-resource-search{display:block;margin:0 0 8px}.sh-resource-search input{width:100%;min-height:34px;padding:0 10px;background:#0b1525;border:1px solid #2a3850;border-radius:7px;color:#eef2f8;font-size:9px}.sh-session-resource__content em{display:block;margin-top:4px;overflow:hidden;color:#73839a;font-size:7.5px;font-style:normal;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.sh-resource-list{max-height:370px;overflow:auto;padding-right:2px}.sh-resource-list[data-sh-resource-list="recommended"]{max-height:none;overflow:visible;padding-right:0}.sh-resource-diagnostics{margin-top:9px;padding:8px;background:#0a1422;border:1px solid #27344a;border-radius:7px}.sh-resource-diagnostics summary{color:#8fa0b7;cursor:pointer;font-size:8px;font-weight:760}.sh-resource-diagnostics__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:8px 0}.sh-resource-diagnostics__stats span{padding:6px 3px;background:#111e31;border-radius:5px;color:#79899f;font-size:7px;text-align:center}.sh-resource-diagnostics__stats b{display:block;color:#e4e9f1;font-size:11px}.sh-resource-diagnostics ul{display:grid;gap:3px;margin:0;padding:0;list-style:none}.sh-resource-diagnostics li{display:flex;justify-content:space-between;color:#77879c;font-size:7.5px}.sh-resource-create{display:grid;gap:8px}.sh-resource-create>label,.sh-resource-create__row>label{display:grid;gap:4px;color:#8d9bb0;font-size:8px;font-weight:700}.sh-resource-create input[type="text"],.sh-resource-create input[type="url"],.sh-resource-create input[type="number"],.sh-resource-create textarea,.sh-resource-create select{width:100%;min-height:34px;padding:8px 9px;background:#0b1525;border:1px solid #2a3850;border-radius:7px;color:#eef2f8;font:inherit}.sh-resource-create textarea{resize:vertical}.sh-resource-create__row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sh-resource-create__universal,.sh-resource-create__attach{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:7px!important}.sh-resource-create__universal input,.sh-resource-create__attach input{margin:2px 0 0}.sh-resource-signal-picker{padding:8px;background:#0b1525;border:1px solid #29364d;border-radius:7px}.sh-resource-signal-picker summary{color:#dce3ed;cursor:pointer;font-size:8.5px;font-weight:760}.sh-resource-signal-picker summary small{display:block;margin-top:2px;color:#718198;font-size:7px;font-weight:500}.sh-resource-signal-picker fieldset{margin:9px 0 0;padding:0;border:0}.sh-resource-signal-picker legend{margin-bottom:5px;color:#8090a6;font-size:7px;font-weight:760;text-transform:uppercase}.sh-resource-signal-picker fieldset>div{display:grid;grid-template-columns:1fr 1fr;gap:4px}.sh-resource-signal-picker label{display:flex;align-items:flex-start;gap:5px;color:#aab4c3;font-size:7.5px;line-height:1.3}.sh-resource-signal-picker input{margin:1px 0 0}.sh-resource-create__actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.sh-resource-create__actions span{color:#80cfa8;font-size:8px}.sh-resource-create__actions button{min-height:34px;padding:0 12px;background:#7555dc;border:0;border-radius:6px;color:#fff;cursor:pointer;font-size:8.5px;font-weight:760}

/* Mobile session headers keep the call status readable instead of compressing the desktop header into confetti. */
@media(max-width:700px){
 .sh-session-shell--member .sh-session-topbar{grid-template-columns:auto minmax(0,1fr);min-height:58px;padding:0 10px;gap:9px}
 .sh-session-shell--member .sh-session-brand{display:flex;min-width:0;gap:7px}
 .sh-session-shell--member .sh-session-brand__mark{width:30px;height:30px;font-size:23px}
 .sh-session-shell--member .sh-session-brand strong{font-size:11px;line-height:.95;letter-spacing:-.02em}
 .sh-session-shell--member .sh-session-topbar__metrics{grid-column:2;justify-content:flex-end;gap:0;min-width:0}
 .sh-session-shell--member .sh-session-metric{gap:7px;min-width:0}
 .sh-session-shell--member .sh-session-metric>svg{width:24px;height:24px;padding:5px}
 .sh-session-shell--member .sh-session-metric small{display:none}
 .sh-session-shell--member .sh-session-metric strong{font-size:14px;white-space:nowrap}
 .sh-session-shell--member .sh-session-metric--connection,.sh-session-shell--member .sh-session-agent-chip{display:none!important}
}
.sh-next-steps-field{display:grid;gap:5px;margin-top:10px;padding-top:10px;border-top:1px solid #28364c}.sh-next-steps-field>span{color:#9aa8bb;font-size:8px;font-weight:780;text-transform:uppercase;letter-spacing:.06em}.sh-next-steps-field textarea{min-height:62px}

.sh-resource-signal-search{display:block!important;margin:8px 0}.sh-resource-signal-search input{width:100%;min-height:32px;padding:7px 9px;background:#111d2e;border:1px solid #304058;border-radius:6px;color:#eef2f8;font-size:8px}.sh-resource-signal-picker fieldset[hidden]{display:none!important}.sh-resource-signal-picker [data-sh-signal-option][hidden]{display:none!important}

/* 2.14.1 interaction stability: fixed workspaces focus tools without moving the viewport. */
.sh-session-tools.has-workspace-focus .sh-tool-card,
.sh-snapshot-panel.has-workspace-focus .sh-snapshot-section,
.sh-snapshot-panel.has-workspace-focus .sh-safety-alert {
	transition: opacity .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.sh-session-tools.has-workspace-focus .sh-tool-card:not(.is-workspace-focused) {
	opacity: .52;
}
.sh-tool-card.is-workspace-focused,
.sh-safety-alert.is-workspace-focused,
.sh-snapshot-panel.is-workspace-focused {
	position: relative;
	z-index: 2;
	opacity: 1 !important;
	outline: none;
	border-color: rgba(129, 89, 232, .82) !important;
	background-color: rgba(129, 89, 232, .075);
	box-shadow: 0 0 0 3px rgba(129, 89, 232, .14), 0 14px 34px rgba(0, 0, 0, .22);
}
.sh-call-controls button.is-focused > span {
	background: rgba(129, 89, 232, .34);
	border-color: rgba(171, 145, 255, .62);
	box-shadow: 0 0 0 4px rgba(129, 89, 232, .12);
}

/* Semicolon-owned end-session confirmation. */
.sh-end-session-modal[hidden] { display: none !important; }
.sh-end-session-modal {
	position: absolute;
	inset: 0;
	z-index: 240;
	display: grid;
	place-items: center;
	padding: 24px;
	color: var(--sh-text);
}
.sh-end-session-modal__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	background: rgba(3, 8, 17, .72);
	border: 0;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity .16s ease;
}
.sh-end-session-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(470px, 100%);
	padding: 30px;
	background: linear-gradient(180deg, #172237 0%, #101a2b 100%);
	border: 1px solid rgba(255, 255, 255, .11);
	border-radius: 15px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
	text-align: center;
	opacity: 0;
	transform: translateY(12px) scale(.985);
	transition: opacity .16s ease, transform .16s ease;
	outline: none;
}
.sh-end-session-modal.is-open .sh-end-session-modal__backdrop { opacity: 1; }
.sh-end-session-modal.is-open .sh-end-session-modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.sh-end-session-modal__icon {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	margin: 0 auto 16px;
	background: rgba(237, 77, 86, .14);
	border: 1px solid rgba(237, 77, 86, .36);
	border-radius: 50%;
	color: #ff8e94;
}
.sh-end-session-modal__icon svg { width: 27px; height: 27px; }
.sh-end-session-modal__dialog > p {
	margin: 0 0 7px;
	color: #ff8e94;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.sh-end-session-modal__dialog h2 {
	margin: 0;
	color: #fff;
	font-size: 23px;
	line-height: 1.2;
}
.sh-end-session-modal__dialog > div:not(.sh-end-session-modal__icon):not(.sh-end-session-modal__actions) {
	margin-top: 12px;
	color: #aeb9ca;
	font-size: 13px;
	line-height: 1.55;
}
.sh-end-session-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 24px;
}
.sh-end-session-modal__actions button {
	min-height: 46px;
	padding: 0 17px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 780;
}
.sh-end-session-modal__actions .is-secondary {
	background: #202c40;
	border: 1px solid rgba(255, 255, 255, .1);
	color: #e8edf5;
}
.sh-end-session-modal__actions .is-danger {
	background: linear-gradient(180deg, #ef555c, #d94049);
	border: 1px solid #f2676d;
	color: #fff;
	box-shadow: 0 10px 24px rgba(237, 77, 86, .2);
}
.sh-end-session-modal__actions button:focus-visible {
	outline: 3px solid rgba(74, 157, 248, .62);
	outline-offset: 2px;
}

/* iOS zooms fixed interfaces when focused controls render below 16px. Keep all
 * editable controls at a 16px minimum on mobile while preserving compact labels. */
@media (max-width: 782px) {
	.sh-session-shell {
		width: 100% !important;
		max-width: 100% !important;
		min-height: 0 !important;
		overflow: hidden !important;
		overscroll-behavior: none;
	}
	.sh-session-shell input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
	.sh-session-shell select,
	.sh-session-shell textarea,
	.sh-session-shell [contenteditable="true"] {
		font-size: 16px !important;
		line-height: 1.35 !important;
		text-size-adjust: 100%;
		-webkit-text-size-adjust: 100%;
	}
	.sh-snapshot-panel__scroll,
	.sh-session-tools,
	.sh-resource-list,
	.semicolon-text-session__conversation {
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	.sh-end-session-modal { padding: 16px; }
	.sh-end-session-modal__dialog { padding: 24px 18px; }
	.sh-end-session-modal__dialog h2 { font-size: 20px; }
	.sh-end-session-modal__actions { grid-template-columns: 1fr; }
	.sh-end-session-modal__actions button { min-height: 48px; font-size: 16px; }
}


/* 2.14.3: keep session-ending controls above call portals and long tool rails. */
.sh-session-shell .sh-call-controls {
	z-index: 420;
	isolation: isolate;
	pointer-events: auto;
}
.sh-session-shell .sh-call-controls button[data-sh-call-action="end"] {
	position: relative;
	z-index: 2;
	pointer-events: auto;
	touch-action: manipulation;
}
.sh-session-shell .sh-end-session-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	pointer-events: auto;
}
.sh-session-shell .sh-end-session-modal__backdrop,
.sh-session-shell .sh-end-session-modal__dialog,
.sh-session-shell .sh-end-session-modal__actions button {
	pointer-events: auto;
}
