.ops-v2-layout,
.ops-v2-layout * {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	background: #f3f4f6;
}

body.ops-v2-page {
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: auto;
}

.hidden {
	display: none !important;
}

.ops-v2-layout {
	position: relative;
	height: 100dvh;
	min-height: 100dvh;
	padding: 0.5rem;
	font-family: "Segoe UI", Tahoma, sans-serif;
	color: #0f172a;
	overflow: hidden;
}

.ops-v2-shell {
	display: grid;
	grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
	gap: 0.75rem;
	height: 100%;
	min-height: 0;
}

.ops-v2-sidebar,
.ops-v2-chat-panel {
	background: #ffffff;
	border: 1px solid #dbe0e8;
	border-radius: 10px;
	min-width: 0;
	min-height: 0;
	height: 100%;
}

.ops-v2-sidebar {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ops-v2-sidebar-nav {
	flex: 0 0 auto;
	padding: 0.45rem;
	padding-bottom: 0.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	border-bottom: 1px solid #e5e7eb;
	background: #ffffff;
}

.ops-v2-sidebar-more-toggle {
	width: 100%;
	border: 1px solid #d6deeb;
	border-radius: 8px;
	background: #ffffff;
	color: #1e293b;
	padding: 0.45rem 0.55rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.ops-v2-sidebar-more-toggle:hover {
	background: #f8fbff;
	border-color: #a5b4fc;
	color: #1d4ed8;
}

.ops-v2-sidebar-more-toggle i {
	font-size: 0.82rem;
	transition: transform 0.15s ease;
}

.ops-v2-sidebar-more-content {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ops-v2-sidebar.more-collapsed .ops-v2-sidebar-more-content {
	display: none;
}

.ops-v2-sidebar.more-collapsed .ops-v2-sidebar-more-toggle i {
	transform: rotate(-90deg);
}

.ops-v2-page-link {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
	border: 1px solid #d6deeb;
	border-radius: 8px;
	padding: 0.45rem 0.55rem;
	background: #ffffff;
	color: #1e293b;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.ops-v2-page-link:hover {
	background: #f8fbff;
	border-color: #a5b4fc;
	color: #1d4ed8;
}

.ops-v2-page-link i {
	font-size: 0.88rem;
}

.ops-v2-page-link.active {
	background: #e0ebff;
	border-color: #2563eb;
	box-shadow: inset 3px 0 0 #1d4ed8;
	color: #1d4ed8;
}

.ops-v2-sidebar-accordion {
	flex: 0 0 auto;
	padding: 0.45rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	background: #ffffff;
}

.ops-v2-session-region {
	flex: 1;
	min-height: 0;
	padding: 0.45rem;
	padding-top: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	background: #ffffff;
}

.ops-v2-session-pane {
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ops-v2-session-pane-recent {
	flex: 1 1 auto;
}

.ops-v2-session-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.45rem;
	padding: 0.05rem 0.1rem 0.3rem;
}

.ops-v2-session-topbar-new {
	appearance: none;
	border: 0;
	background: transparent;
	color: #1f2937;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.28rem 0.2rem;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.1;
}

.ops-v2-session-topbar-new:hover {
	color: #1d4ed8;
}

.ops-v2-session-topbar-new i {
	font-size: 0.9rem;
}

.ops-v2-session-topbar-search {
	width: 1.8rem;
	height: 1.8rem;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #ffffff;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ops-v2-session-topbar-search:hover {
	border-color: #94a3b8;
	color: #334155;
	background: #f8fafc;
}

.ops-v2-session-topbar-search i {
	font-size: 0.92rem;
	line-height: 1;
}

.ops-v2-session-search-wrap {
	padding: 0 0.1rem 0.2rem;
}

.ops-v2-session-search-input {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #0f172a;
	font-size: 0.74rem;
	padding: 0.4rem 0.5rem;
	line-height: 1.2;
}

.ops-v2-session-search-input:focus-visible {
	outline: 0;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.ops-v2-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.65rem 0.7rem 0.55rem;
	border-bottom: 1px solid #e5e7eb;
	background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.ops-v2-sidebar-title {
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.ops-v2-sidebar-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.sidebar-logo-image {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	object-fit: cover;
	flex: 0 0 auto;
}

.ops-v2-sidebar-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-accordion-item {
	border: 1px solid #d8e0eb;
	border-radius: 8px;
	background: #f8fafc;
	overflow: hidden;
}

.ops-v2-accordion-toggle {
	width: 100%;
	border: 0;
	background: #f8fafc;
	color: #1e293b;
	padding: 0.5rem 0.6rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ops-v2-accordion-toggle:hover {
	background: #eef2f7;
}

.ops-v2-accordion-toggle i {
	transition: transform 0.15s ease;
}

.ops-v2-accordion-item.expanded .ops-v2-accordion-toggle i {
	transform: rotate(180deg);
}

.ops-v2-accordion-body {
	padding: 0.5rem;
	border-top: 1px solid #d8e0eb;
}

.ops-v2-accordion-item:not(.expanded) .ops-v2-accordion-body {
	display: none;
}

.ops-v2-icon-btn {
	width: 1.9rem;
	height: 1.9rem;
	border: 1px solid #d3dae5;
	border-radius: 999px;
	background: #ffffff;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ops-v2-icon-btn:hover {
	background: #eef2ff;
	color: #1d4ed8;
}

.ops-v2-sidebar-controls {
	padding: 0;
	border-bottom: 0;
	background: transparent;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ops-v2-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #475569;
}

.ops-v2-model-meta {
	font-size: 0.72rem;
	color: #64748b;
	line-height: 1.3;
	min-height: 1.15rem;
}

.ops-v2-agent-init {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.4rem;
	border: 1px solid #d8e0eb;
	border-radius: 8px;
	background: #ffffff;
}

.ops-v2-agent-init .form-control {
	font-size: 0.8rem;
}

.ops-v2-init-hint {
	font-size: 0.72rem;
	color: #64748b;
	line-height: 1.3;
}
.ops-v2-sidebar-actions {
	display: flex;
	gap: 0.4rem;
}

.ops-v2-user-tools {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
}

.ops-v2-user-tools-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ops-v2-user-tools-host {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	max-height: 17rem;
	overflow: auto;
}

.ops-v2-user-tool-card {
	border: 1px solid #d0d7de;
	border-radius: 8px;
	padding: 0.45rem 0.55rem;
	background: #ffffff;
}

.ops-v2-user-tool-params {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.4rem;
}

.ops-v2-user-tool-param {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 10rem;
	flex: 1 1 10rem;
}

.ops-v2-user-tool-param label {
	font-size: 0.69rem;
	font-weight: 700;
	color: #334155;
}

.ops-v2-user-tool-param .form-control {
	font-size: 0.78rem;
}

.ops-v2-user-tool-meta {
	font-size: 0.71rem;
	color: #64748b;
}

.ops-v2-user-tool-result {
	margin: 0;
	padding: 0.45rem 0.55rem;
	background: #f8fafc;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	font-size: 0.74rem;
	min-height: 2.6rem;
	max-height: 11rem;
	overflow: auto;
	white-space: pre-wrap;
	color: #0f172a;
}

.ops-v2-user-tool-result.error {
	border-color: #ef4444;
	background: #fef2f2;
	color: #991b1b;
}

.ops-v2-meta-skills {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ops-v2-meta-skills-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ops-v2-meta-skills-list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-height: 10rem;
	overflow: auto;
	padding: 0.2rem;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	background: #ffffff;
}

.ops-v2-meta-skill-item {
	border: 1px solid #d6deeb;
	border-radius: 8px;
	padding: 0.35rem 0.45rem;
	background: #ffffff;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.ops-v2-meta-skill-item:hover {
	background: #f8fbff;
	border-color: #a5b4fc;
}

.ops-v2-meta-skill-item.active {
	background: #e0ebff;
	border-color: #2563eb;
}

.ops-v2-meta-skill-item-name {
	font-size: 0.74rem;
	font-weight: 700;
	color: #0f172a;
	word-break: break-word;
}

.ops-v2-meta-skill-item-path {
	font-size: 0.68rem;
	color: #64748b;
	word-break: break-all;
}

.ops-v2-meta-skill-meta {
	font-size: 0.71rem;
	color: #64748b;
}

.ops-v2-meta-skill-path {
	font-size: 0.69rem;
	color: #475569;
	word-break: break-all;
}

.ops-v2-meta-skill-editor {
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.74rem;
	min-height: 8rem;
}

.ops-v2-meta-skill-preview {
	border: 1px solid #d0d7de;
	border-radius: 8px;
	padding: 0.45rem 0.55rem;
	background: #f8fafc;
	font-size: 0.73rem;
	max-height: 13rem;
	overflow: auto;
	color: #0f172a;
}

.ops-v2-session-list {
	flex: 1;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #ffffff;
	border: 1px solid #d8e0eb;
}

/* Keep Meta Tools system prompt picker compact (single-row file card) instead of stretching full height. */
#opsMetaToolsSystemPromptList {
	flex: 0 0 auto;
	min-height: 0;
	max-height: none;
	overflow: hidden;
}

.ops-v2-session-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ops-v2-group-title {
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	padding: 0 0.2rem;
}

.ops-v2-session-item {
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #e6edf7;
	border-radius: 0;
	padding: 0.32rem 0.5rem;
	cursor: pointer;
	transition: background 0.12s ease;
}

.ops-v2-session-item:last-child {
	border-bottom: 0;
}

.ops-v2-session-thread {
	border-bottom: 1px solid #e6edf7;
}

.ops-v2-session-thread > .ops-v2-session-item {
	border-bottom: 0;
}

.ops-v2-session-thread:last-child {
	border-bottom: 0;
}

.ops-v2-session-thread.children-collapsed > .ops-v2-session-item {
	margin-bottom: 0;
}

.ops-v2-session-children {
	margin: 0.04rem 0 0.12rem 0.76rem;
	border-left: 1px solid #cedcf3;
	padding: 0.1rem 0 0.04rem 0.34rem;
	background: transparent;
	border-radius: 0;
}

.ops-v2-session-expand-toggle {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	min-width: 1rem;
	padding: 0;
	margin-top: 0.05rem;
	border: 1px solid #c9d7ef;
	border-radius: 999px;
	background: #f8fbff;
	color: #1e3a8a;
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ops-v2-session-expand-toggle:hover {
	background: #eaf2ff;
	border-color: #9bb7ea;
}

.ops-v2-session-item.ops-v2-session-item-level-two {
	background: transparent;
	border: 0;
	border-bottom: 0;
	border-radius: 0;
	padding: 0.14rem 0.26rem 0.14rem 0.34rem;
	margin-bottom: 0.08rem;
	box-shadow: none;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-key {
	font-size: 0.76rem;
	font-weight: 600;
	color: #334155;
}

.ops-v2-session-item.ops-v2-session-item-level-two:last-child {
	margin-bottom: 0;
}

.ops-v2-session-item.ops-v2-session-item-level-two:hover {
	background: #f8fbff;
}

.ops-v2-session-item.ops-v2-session-item-level-two.active {
	background: #eef4ff;
	box-shadow: none;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-meta {
	display: none;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-top {
	gap: 0.22rem;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-badges {
	gap: 0.18rem;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-badge.processing {
	width: 1.05rem;
	height: 1.05rem;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-badge.progress-unread {
	width: 0.5rem;
	height: 0.5rem;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-actions {
	gap: 0.14rem;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-action {
	width: 1.2rem;
	height: 1.2rem;
	min-width: 1.2rem;
	padding: 0;
}

.ops-v2-session-item.ops-v2-session-item-level-two .ops-v2-session-action i {
	font-size: 0.68rem;
}

.ops-v2-session-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.34rem;
}

.ops-v2-session-item:hover {
	background: #f7fbff;
}

.ops-v2-session-item.active {
	background: #d7e5fb;
	box-shadow: inset 3px 0 0 #1d4ed8;
}

.ops-v2-session-item.processing:not(.active) {
	background: transparent;
	box-shadow: none;
}

.ops-v2-session-item.processing:not(.active) .ops-v2-session-key {
	color: #0f172a;
}

.ops-v2-session-key {
	font-size: 0.83rem;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	color: #0f172a;
	word-break: break-word;
	flex: 1 1 auto;
	min-width: 0;
}

.ops-v2-session-meta {
	margin-top: 0.03rem;
	font-size: 0.74rem;
	color: #475569;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-session-badges {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.ops-v2-session-badge {
	font-size: 0.67rem;
	padding: 0.08rem 0.34rem;
	border-radius: 999px;
	background: #e2e8f0;
	color: #334155;
}

.ops-v2-session-badge.processing {
	background: #fde68a;
	color: #92400e;
	width: 1.45rem;
	height: 1.45rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ops-v2-session-badge.progress-unread {
	width: 0.62rem;
	height: 0.62rem;
	padding: 0;
	border-radius: 999px;
	background: #16a34a;
	box-shadow: 0 0 0 1px #dcfce7;
}

.ops-v2-session-processing-icon {
	font-size: 0.74rem;
	line-height: 1;
	animation: ops-v2-session-processing-spin 0.95s linear infinite;
}

@keyframes ops-v2-session-processing-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.ops-v2-session-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 0.28rem;
}

.ops-v2-session-action {
	border: 1px solid #bfc9d8;
	background: #ffffff;
	color: #52627a;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.34rem;
	height: 1.34rem;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.ops-v2-session-action:hover {
	background: #f1f5fb;
	border-color: #9fb0c8;
}

.ops-v2-session-action i {
	font-size: 0.74rem;
	line-height: 1;
	pointer-events: none;
}

.ops-v2-session-action.rename {
	border-color: #93c5fd;
	color: #1d4ed8;
}

.ops-v2-session-action.delete {
	border-color: #fca5a5;
	color: #b91c1c;
}

.ops-v2-session-action.archive {
	border-color: #fcd34d;
	color: #a16207;
}

.ops-v2-empty {
	padding: 0.7rem;
	font-size: 0.85rem;
	color: #64748b;
	text-align: center;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
}

.ops-v2-session-load-more-wrap {
	padding: 0.45rem 0.5rem 0.55rem;
	border-top: 1px solid #e6edf7;
	background: #ffffff;
}

.ops-v2-session-load-more-btn {
	width: 100%;
	border: 1px solid #bfd1ea;
	border-radius: 8px;
	background: #f7fbff;
	color: #1e3a8a;
	font-size: 0.74rem;
	font-weight: 600;
	padding: 0.34rem 0.5rem;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.ops-v2-session-load-more-btn:hover:not(:disabled) {
	background: #e8f1ff;
	border-color: #93b4e5;
}

.ops-v2-session-load-more-btn:disabled {
	cursor: default;
	opacity: 0.75;
}

.ops-v2-chat-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto auto minmax(0, 1fr) auto auto;
	overflow: hidden;
	position: relative;
	min-width: 0;
}

/* Keep chat regions in stable rows even when optional sections are hidden. */
.ops-v2-chat-header {
	grid-row: 1;
}

#opsV2MainActions {
	grid-row: 2;
}

#opsV2Messages {
	grid-row: 3;
}

#opsV2TurnActivityStrip {
	grid-row: 4;
}

#opsV2PromptForm {
	grid-row: 5;
}

.ops-v2-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	min-width: 0;
	overflow: visible;
	padding: 0.65rem 0.8rem;
	border-bottom: 1px solid #e5e7eb;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.ops-v2-chat-header-main {
	flex: 1 1 auto;
	min-width: 0;
}

.ops-v2-chat-title-row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
}

.ops-v2-chat-title-row .ops-v2-title {
	flex: 1 1 auto;
	min-width: 0;
}

#opsV2MainActions {
	display: none !important;
	margin: 0;
	padding: 0.45rem 0.75rem;
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	row-gap: 0.4rem;
}

.ops-v2-chat-panel.ops-v2-show-main-actions #opsV2MainActions {
	display: flex !important;
}

#opsV2MainActions #ddlOpsV2SessionJump {
	flex: 1 1 420px;
	min-width: 260px;
	max-width: 100% !important;
}

#opsV2MainActions #opsV2CompactionMeta {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

#opsV2MainActions #opsV2SessionStatsMeta {
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.38rem 0.55rem;
	border: 1px solid #d7e1ee;
	border-radius: 10px;
	background: #f8fbff;
}

#opsV2MainActions #opsV2TimelineTokenMeta {
	display: block;
	font-weight: 500;
	color: #334155 !important;
}

#opsV2MainActions #opsV2CompactionMeta {
	color: #64748b !important;
}

#opsV2MainActions .ops-v2-inline-help-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8rem;
	height: 1.8rem;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #ffffff;
	color: #475569;
	padding: 0;
	cursor: help;
}

#opsV2MainActions .ops-v2-inline-help-btn:hover {
	background: #f8fafc;
	color: #0f172a;
}

#opsV2DemoActionsGroup {
	flex: 1 1 100%;
	padding: 0.45rem 0.55rem;
	border: 1px solid #d7e1ee;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#opsV2DemoActionsGroup #txtOpsV2DemoTitle {
	flex: 0 1 220px;
	min-width: 160px;
	border-radius: 10px;
	border-color: #c9d6e8;
}

#opsV2DemoActionsGroup #ddlOpsV2DemoSnapshots {
	flex: 1 1 320px;
	min-width: 220px;
	border-radius: 10px;
	border-color: #c9d6e8;
	background-color: #ffffff;
}

#opsV2DemoActionsGroup .btn {
	border-radius: 10px;
	border-color: #c8d5e8;
	color: #334155;
	font-weight: 600;
	background: #ffffff;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

#opsV2DemoActionsGroup .btn:hover:not(:disabled) {
	background: #eef5ff;
	border-color: #9fb4d4;
	color: #1e3a8a;
}

#btnOpsV2EnterClipMode,
#btnOpsV2PlayDemoReplay {
	border-color: transparent !important;
	color: #ffffff !important;
}

#btnOpsV2EnterClipMode {
	background: linear-gradient(180deg, #0f766e 0%, #0f766e 100%) !important;
}

#btnOpsV2EnterClipMode:hover:not(:disabled) {
	background: linear-gradient(180deg, #0b5e57 0%, #0b5e57 100%) !important;
}

#btnOpsV2PlayDemoReplay {
	background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%) !important;
}

#btnOpsV2PlayDemoReplay:hover:not(:disabled) {
	background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
}

#btnOpsV2PauseDemoReplay {
	background: #fff7ed !important;
	border-color: #fdba74 !important;
	color: #9a3412 !important;
}

#btnOpsV2PauseDemoReplay:hover:not(:disabled) {
	background: #ffedd5 !important;
}

#btnOpsV2CreateClipFromRebuild {
	background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
}

#btnOpsV2CreateClipFromRebuild:hover:not(:disabled) {
	background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
}

#btnOpsV2CreateClipFromRebuild.ops-v2-cta-disabled {
	background: #fff7ed !important;
	border-color: #fed7aa !important;
	color: #9a3412 !important;
	box-shadow: none;
}

#opsV2RebuildClipHint {
	padding: 0.24rem 0.5rem;
	border-radius: 999px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e !important;
	font-weight: 600;
}

#btnOpsV2ExportDemoSnapshot {
	background: #ecfdf5 !important;
	border-color: #86efac !important;
	color: #166534 !important;
}

#btnOpsV2ExportDemoSnapshot:hover:not(:disabled) {
	background: #dcfce7 !important;
}

#opsV2ClipModeStatus {
	padding: 0.24rem 0.5rem;
	border-radius: 999px;
	background: #ecfeff;
	border: 1px solid #a5f3fc;
	color: #0e7490 !important;
	font-weight: 600;
}

.ops-v2-view-tabs {
	display: inline-block;
	padding: 0.2rem;
	border: 1px solid #d1d5db;
	border-radius: 0.65rem;
	background: #ffffff;
}

.ops-v2-view-select {
	min-width: 9.8rem;
	color: #334155;
	font-size: 0.77rem;
	font-weight: 700;
	border-color: #cbd5e1;
	background-color: #ffffff;
	border-radius: 0.5rem;
	padding-top: 0.28rem;
	padding-bottom: 0.28rem;
}

.ops-v2-view-select:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 0.12rem rgba(37, 99, 235, 0.2);
}

.ops-v2-session-provider-meta {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex: 0 0 auto;
}

.ops-v2-conversation-model-summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 19rem;
	padding: 0.24rem 0.5rem;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #ffffff;
	color: #334155;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-conversation-meta-menu-btn {
	width: 2rem;
	height: 2rem;
	border: 1px solid #3b82f6;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ops-v2-conversation-meta-menu-btn:hover {
	background: #dbeafe;
	color: #1e40af;
}

.ops-v2-conversation-meta-menu {
	position: absolute;
	right: 0;
	left: auto;
	top: calc(100% + 0.4rem);
	z-index: 30;
	width: min(26.5rem, calc(100vw - 1.2rem));
	padding: 0.62rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	box-shadow: 0 20px 34px rgba(2, 6, 23, 0.18);
}

.ops-v2-conversation-meta-menu-row {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	align-items: center;
	gap: 0.55rem;
}

.ops-v2-conversation-meta-menu-row label {
	font-size: 0.83rem;
	font-weight: 700;
	color: #475569;
}

.ops-v2-conversation-meta-menu-row .form-select {
	font-size: 0.92rem;
}

.ops-v2-conversation-meta-thread-wrap {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
}

.ops-v2-conversation-meta-thread-value {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0.33rem 0.45rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	color: #334155;
	font-size: 0.78rem;
}

.ops-v2-conversation-meta-thread-copy-btn {
	flex: 0 0 auto;
	padding: 0.28rem 0.55rem;
	border: 1px solid #94a3b8;
	border-radius: 8px;
	background: #ffffff;
	color: #334155;
	font-size: 0.78rem;
	font-weight: 600;
}

.ops-v2-conversation-meta-thread-copy-btn:hover {
	background: #eef2f7;
}

.ops-v2-conversation-meta-menu-permissions {
	padding: 0.45rem 0.55rem;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #ffffff;
	color: #475569;
	font-size: 0.76rem;
	line-height: 1.3;
	white-space: normal;
}

.ops-v2-conversation-collapse-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding: 0.34rem 0.55rem;
	border: 1px solid #93c5fd;
	border-radius: 999px;
	background: #eff6ff;
	color: #1e40af;
	font-size: 0.86rem;
	font-weight: 700;
}

.ops-v2-conversation-collapse-btn:hover {
	background: #dbeafe;
}

.ops-v2-title {
	font-size: 1.03rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-meta {
	font-size: 0.76rem;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	flex: 0 0 auto;
	white-space: nowrap;
}

.ops-v2-header-actions .btn {
	min-width: 4.4rem;
}

.ops-v2-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.48rem;
	border-radius: 999px;
	border: 1px solid #d0d7e2;
	background: #f8fafc;
	color: #334155;
}

.ops-v2-status.running {
	width: 1.75rem;
	height: 1.75rem;
	min-width: 1.75rem;
	min-height: 1.75rem;
	padding: 0;
	font-size: 0;
	line-height: 0;
	color: transparent;
	border-color: #14b8a6;
	background: #ecfdf5;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
	overflow: hidden;
}

.ops-v2-status.running::before {
	content: "";
	display: block;
	width: 0.92rem;
	height: 0.92rem;
	border-radius: 50%;
	border: 2px solid #99f6e4;
	border-top-color: #0f766e;
	animation: ops-v2-spin 0.85s linear infinite;
}

.ops-v2-status.idle {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #475569;
}

.ops-v2-messages {
	min-height: 0;
	min-width: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: auto;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	background: #f8fafc;
}

.ops-v2-raw-panel {
	min-height: 0;
	min-width: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: auto;
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	background: #f8fafc;
}

.ops-v2-raw-meta {
	font-size: 0.8rem;
	color: #334155;
}

.ops-v2-raw-json {
	margin: 0;
	padding: 0.7rem;
	max-height: 300px;
	overflow: auto;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	font-size: 0.74rem;
	line-height: 1.35;
	font-family: "Fira Code", "Source Code Pro", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ops-v2-raw-list-title {
	font-size: 0.78rem;
	font-weight: 700;
	color: #334155;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ops-v2-raw-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ops-v2-raw-list-item {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
}

.ops-v2-raw-list-item details {
	padding: 0.55rem 0.65rem;
}

.ops-v2-diagnostics-table {
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
}

.ops-v2-diagnostics-table thead th {
	background: #f1f5f9;
	font-size: 0.75rem;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.ops-v2-diagnostics-table tbody td {
	font-size: 0.76rem;
	vertical-align: top;
}

.ops-v2-raw-list-item summary {
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 700;
	color: #1f2937;
	white-space: normal;
	overflow-wrap: anywhere;
}

.ops-v2-raw-list-item-view-toggle {
	display: flex;
	gap: 0.35rem;
	margin-top: 0.5rem;
}

.ops-v2-raw-list-item-view-btn {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.32rem 0.5rem;
	border-radius: 999px;
}

.ops-v2-raw-list-item-view-btn.active {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.ops-v2-raw-list-item-copy-btn {
	margin-left: auto;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.82rem;
}

.ops-v2-raw-list-item-copy-btn.is-copied {
	background: #16a34a;
	border-color: #16a34a;
	color: #ffffff;
}

.ops-v2-raw-list-item-copy-btn i {
	line-height: 1;
}

.ops-v2-raw-list-item-body {
	margin: 0.5rem 0 0;
	padding: 0.55rem 0.6rem;
	max-height: 320px;
	overflow: auto;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #f8fafc;
	font-size: 0.73rem;
	line-height: 1.35;
	white-space: pre-wrap;
	word-break: break-word;
}

.ops-v2-raw-list-item-body.empty {
	color: #64748b;
	font-style: italic;
}

.ops-v2-raw-list-item-json {
	margin: 0.5rem 0 0;
	padding: 0.55rem 0.6rem;
	max-height: 320px;
	overflow: auto;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #f8fafc;
	font-size: 0.73rem;
	line-height: 1.35;
	font-family: "Fira Code", "Source Code Pro", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ops-v2-raw-subagent-entry {
	margin-top: 0.45rem;
	padding: 0.45rem 0.55rem;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #ffffff;
}

.ops-v2-raw-subagent-entry:first-child {
	margin-top: 0;
}

.ops-v2-raw-subagent-entry-title {
	font-size: 0.7rem;
	font-weight: 700;
	color: #334155;
	margin-bottom: 0.25rem;
}

.ops-v2-raw-subagent-entry-content {
	font-size: 0.73rem;
	line-height: 1.35;
	white-space: pre-wrap;
	word-break: break-word;
}

.ops-v2-raw-subagent-entry-content.empty {
	color: #64748b;
	font-style: italic;
}

.ops-v2-child-session-section {
	position: relative;
	margin-left: 0.55rem;
	border: 1px solid #d1d5db;
	border-left: 4px solid #0ea5e9;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.ops-v2-child-session-section-toggle {
	width: 100%;
	border: 0;
	background: transparent;
	padding: 0.5rem 0.7rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-align: left;
}

.ops-v2-child-session-section-toggle:hover {
	background: #f8fafc;
}

.ops-v2-child-session-section-icon {
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.72rem;
	color: #334155;
	min-width: 1.4rem;
}

.ops-v2-child-session-section-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1f2937;
}

.ops-v2-child-session-section-status {
	margin-left: auto;
	font-size: 0.78rem;
	font-weight: 600;
	color: #64748b;
	white-space: nowrap;
}

.ops-v2-child-session-section-body {
	padding: 0.05rem 0.55rem 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ops-v2-subagent-open-action {
	display: flex;
	align-items: center;
	padding: 0 0.7rem 0.45rem 2.6rem;
	margin-top: -0.1rem;
}

.ops-v2-subagent-open-button {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
	border-radius: 999px;
	padding: 0.32rem 0.72rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	box-shadow: none;
	transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ops-v2-subagent-open-button:hover {
	background: #dbeafe;
	border-color: #93c5fd;
	color: #1e3a8a;
}

.ops-v2-subagent-open-button:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 1px;
}

.ops-v2-child-session-section.collapsed .ops-v2-child-session-section-body {
	display: none;
}

.ops-v2-child-session-section-bottom {
	padding: 0.4rem 0.55rem 0.55rem;
	display: flex;
	justify-content: flex-end;
	border-top: 1px dashed #e2e8f0;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0), #f8fafc 70%);
}

.ops-v2-child-session-section-bottom-toggle {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #cbd5e1;
	background: #eff6ff;
	color: #1e3a8a;
	border-radius: 999px;
	padding: 0.2rem 0.38rem;
	font-size: 0.64rem;
	font-weight: 700;
	line-height: 1;
	font-family: Consolas, "Courier New", monospace;
	display: inline-flex;
	align-items: center;
	gap: 0;
	box-shadow: none;
	transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
}

.ops-v2-child-session-section-bottom-toggle:hover {
	background: #dbeafe;
	border-color: #93c5fd;
	color: #1e3a8a;
	transform: translateY(0);
}

.ops-v2-child-session-section-bottom-toggle:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 1px;
}

.ops-v2-child-session-section.collapsed .ops-v2-child-session-section-bottom {
	display: none;
}

.ops-v2-child-session-section.completed {
	background: #f8fafc;
	border-color: #cbd5e1;
	border-left-color: #94a3b8;
}

.ops-v2-child-session-section.completed .ops-v2-child-session-section-title {
	color: #334155;
}

.ops-v2-child-session-section.completed .ops-v2-child-session-section-status {
	color: #334155;
}

.ops-v2-child-session-section .ops-v2-message {
	margin-left: 0.55rem;
	border-left-width: 2px;
	box-shadow: none;
}

.ops-v2-message {
	width: 100%;
	max-width: 100%;
	align-self: stretch;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-left-width: 4px;
	border-radius: 8px;
	padding: 0.55rem 0.7rem;
	padding-right: 0.7rem;
	position: relative;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ops-v2-message.user {
	border-left-color: #2563eb;
}

.ops-v2-message.assistant {
	border-left-color: #16a34a;
}

.ops-v2-message.ops-v2-clip-start-selected {
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18), 0 1px 2px rgba(15, 23, 42, 0.06);
	border-color: #93c5fd;
}

.ops-v2-message.tool {
	border-left-color: #475569;
}

.ops-v2-message.reasoning {
	border-left-color: #8b5cf6;
}

.ops-v2-message.codex-out {
	border-left-color: #1d4ed8;
}

.ops-v2-message.codex-in {
	border-left-color: #15803d;
}

.ops-v2-message.codex-state-start {
	border-left-color: #4f46e5;
}

.ops-v2-message.codex-state-end {
	border-left-color: #475569;
}

.ops-v2-message.system {
	border-left-color: #d97706;
}

.ops-v2-message-inline-system {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	padding-right: 0;
}

.ops-v2-message-inline-system .ops-v2-message-content {
	padding: 0;
}

.ops-v2-message.system-error {
	border-left-color: #dc2626;
	background: #fef2f2;
}

.ops-v2-user-turn-group {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
}

.ops-v2-user-turn-toggle {
	width: 100%;
	border: 0;
	background: transparent;
	padding: 0.5rem 0.62rem;
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	text-align: left;
	flex-wrap: wrap;
}

.ops-v2-user-turn-toggle:hover {
	background: #f8fafc;
}

.ops-v2-user-turn-toggle-icon {
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.72rem;
	color: #334155;
	min-width: 1.4rem;
}

.ops-v2-user-turn-toggle-label {
	font-size: 0.88rem;
	font-weight: 700;
	color: #1f2937;
}

.ops-v2-user-turn-toggle-preview {
	font-size: 0.82rem;
	color: #0f172a;
}

.ops-v2-user-turn-toggle-assistant {
	margin-left: auto;
	font-size: 0.76rem;
	color: #475569;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(46ch, 45%);
}

.ops-v2-user-turn-body {
	margin-left: 0.62rem;
	padding: 0.3rem 0.62rem 0.62rem;
	border-left: 2px dashed #cbd5e1;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.ops-v2-user-turn-group.collapsed .ops-v2-user-turn-body {
	display: none;
}

.ops-v2-user-turn-final {
	margin-left: 0.62rem;
	padding: 0.2rem 0.62rem 0.62rem;
	border-left: 2px solid #bbf7d0;
}

.ops-v2-message-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0;
	min-width: 0;
}

.ops-v2-message-title-with-icon {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
}

.ops-v2-message-title-icon {
	font-size: 0.82rem;
	line-height: 1;
	color: #64748b;
}

.ops-v2-message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
	min-width: 0;
}

.ops-v2-message-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	margin-left: auto;
	flex-shrink: 0;
}

.ops-v2-message-time {
	font-size: 0.78rem;
	color: #6b7280;
	white-space: nowrap;
	flex-shrink: 0;
	margin: 0;
}

.ops-v2-tts-btn {
	width: 28px;
	height: 28px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #f8fafc;
	color: #475569;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ops-v2-tts-btn:hover {
	background: #eef2ff;
	border-color: #a5b4fc;
	color: #3730a3;
}

.ops-v2-tts-btn:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 1px;
}

.ops-v2-tts-btn.is-playing {
	background: #dbeafe;
	border-color: #60a5fa;
	color: #1d4ed8;
	box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.ops-v2-tts-btn.is-busy {
	cursor: progress;
}

.ops-v2-tts-btn:disabled {
	opacity: 0.75;
	cursor: wait;
}

.ops-v2-tts-btn svg {
	width: 14px;
	height: 14px;
	display: block;
	fill: currentColor;
	stroke: none;
}

.ops-v2-message.user .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.assistant .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.tool .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.reasoning .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.reasoning .ops-v2-reasoning-body {
	font-style: italic;
}

.ops-v2-message.reasoning .ops-v2-reasoning-body p,
.ops-v2-message.reasoning .ops-v2-reasoning-body li,
.ops-v2-message.reasoning .ops-v2-reasoning-body pre,
.ops-v2-message.reasoning .ops-v2-reasoning-body code,
.ops-v2-message.reasoning .ops-v2-reasoning-body span {
	font-style: italic;
}

.ops-v2-message.codex-out .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.codex-in .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.codex-state-start .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.codex-state-end .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.system .ops-v2-message-title {
	color: #1f2937;
}

.ops-v2-message.system-error .ops-v2-message-title {
	color: #b91c1c;
}

.ops-v2-deep-link-focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
	animation: ops-v2-deep-link-pulse 1.2s ease-out 1;
}

@keyframes ops-v2-deep-link-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
	}
	100% {
		box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
	}
}

.ops-v2-message-content {
	font-size: 0.87rem;
	line-height: 1.4;
	color: #0f172a;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	min-width: 0;
}

.ops-v2-buffaly-deep-link {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.05rem 0.3rem;
	border-radius: 6px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
	font-weight: 600;
	text-decoration: none;
}

.ops-v2-buffaly-deep-link:hover {
	background: #dbeafe;
	text-decoration: none;
}

.ops-v2-message-content .ops-v2-google-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-width: min(100%, 18rem);
	max-width: min(100%, 30rem);
	margin: 0.12rem 0;
	padding: 0.42rem 0.55rem;
	border-radius: 10px;
	border: 1px solid #dbe5f1;
	background: #f8fbff;
	color: #0f172a;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.ops-v2-message-content .ops-v2-google-link:hover {
	text-decoration: none;
	background: #f1f7ff;
	border-color: #b8d0f4;
}

.ops-v2-message-content .ops-v2-google-link:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.ops-v2-message-content .ops-v2-google-link.ops-v2-google-link-sheets {
	border-left: 3px solid #16a34a;
}

.ops-v2-message-content .ops-v2-google-link.ops-v2-google-link-docs {
	border-left: 3px solid #2563eb;
}

.ops-v2-google-link-icon {
	flex: 0 0 auto;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
}

.ops-v2-google-link-docs .ops-v2-google-link-icon {
	background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
}

.ops-v2-google-link-sheets .ops-v2-google-link-icon {
	background: linear-gradient(145deg, #16a34a 0%, #15803d 100%);
}

.ops-v2-google-link-meta {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
	min-width: 0;
	flex: 1 1 auto;
}

.ops-v2-google-link-title {
	font-size: 0.82rem;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-google-link-subtitle {
	font-size: 0.72rem;
	color: #475569;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-google-link-open {
	flex: 0 0 auto;
	font-size: 0.72rem;
	color: #64748b;
}


.ops-v2-message-content .ops-v2-mermaid-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-width: min(100%, 18rem);
	max-width: min(100%, 32rem);
	margin: 0.12rem 0;
	padding: 0.42rem 0.55rem;
	border-radius: 10px;
	border: 1px solid #d7d2fe;
	background: #f8f6ff;
	color: #1f1b4d;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(31, 27, 77, 0.06);
	border-left: 3px solid #7c3aed;
}

.ops-v2-message-content .ops-v2-mermaid-link:hover {
	text-decoration: none;
	background: #f2eeff;
	border-color: #c4b5fd;
}

.ops-v2-message-content .ops-v2-mermaid-link:focus-visible {
	outline: 2px solid #7c3aed;
	outline-offset: 2px;
}

.ops-v2-mermaid-link-icon {
	flex: 0 0 auto;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.54rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
	background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 100%);
}

.ops-v2-mermaid-link-meta {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
	min-width: 0;
	flex: 1 1 auto;
}

.ops-v2-mermaid-link-title {
	font-size: 0.82rem;
	font-weight: 600;
	color: #1f1b4d;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-mermaid-link-subtitle {
	font-size: 0.72rem;
	color: #5b4f91;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-mermaid-link-open {
	flex: 0 0 auto;
	font-size: 0.78rem;
	color: #6d28d9;
}
.ops-v2-message-content.format-text {
	white-space: pre-wrap;
}

.ops-v2-message-content blockquote {
	margin: 0.55rem 0;
	padding: 0.8rem 0.95rem;
	border-left: 4px solid #bfdbfe;
	border-radius: 0 0.85rem 0.85rem 0;
	background: #f8fbff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
	color: #334155;
}

.ops-v2-message.user .ops-v2-message-content blockquote {
	border-left-color: #60a5fa;
	background: #eff6ff;
	color: #1e3a8a;
}

.ops-v2-message-content blockquote > :first-child {
	margin-top: 0;
}

.ops-v2-message-content blockquote > :last-child {
	margin-bottom: 0;
}

.ops-v2-message-content p,
.ops-v2-message-content ul,
.ops-v2-message-content ol {
	margin-top: 0.22rem;
	margin-bottom: 0.22rem;
}

.ops-v2-message-content p:first-child,
.ops-v2-message-content ul:first-child,
.ops-v2-message-content ol:first-child {
	margin-top: 0;
}

.ops-v2-message-content p:last-child,
.ops-v2-message-content ul:last-child,
.ops-v2-message-content ol:last-child {
	margin-bottom: 0;
}

.ops-v2-message-content li {
	margin: 0.1rem 0;
}

.ops-v2-message-content.format-markdown li > p {
	margin-top: 0.05rem;
	margin-bottom: 0.05rem;
}

.ops-v2-message-content pre,
.ops-v2-message-content code {
	font-family: "Consolas", "Courier New", monospace;
}

.ops-v2-message-content pre {
	background: #f1f5f9;
	border: 1px solid #dbe0e8;
	border-radius: 8px;
	padding: 0.5rem;
	overflow: auto;
	max-width: 100%;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.ops-v2-message-content.watcher-assistant-markdown {
	white-space: normal;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.5;
}

.ops-v2-message-content.watcher-assistant-markdown p,
.ops-v2-message-content.watcher-assistant-markdown ul,
.ops-v2-message-content.watcher-assistant-markdown ol,
.ops-v2-message-content.watcher-assistant-markdown pre,
.ops-v2-message-content.watcher-assistant-markdown h1,
.ops-v2-message-content.watcher-assistant-markdown h2,
.ops-v2-message-content.watcher-assistant-markdown h3,
.ops-v2-message-content.watcher-assistant-markdown h4,
.ops-v2-message-content.watcher-assistant-markdown h5,
.ops-v2-message-content.watcher-assistant-markdown h6 {
	margin: 0 0 0.55rem 0;
}

.ops-v2-message-content.watcher-assistant-markdown p:last-child,
.ops-v2-message-content.watcher-assistant-markdown ul:last-child,
.ops-v2-message-content.watcher-assistant-markdown ol:last-child,
.ops-v2-message-content.watcher-assistant-markdown pre:last-child,
.ops-v2-message-content.watcher-assistant-markdown h1:last-child,
.ops-v2-message-content.watcher-assistant-markdown h2:last-child,
.ops-v2-message-content.watcher-assistant-markdown h3:last-child,
.ops-v2-message-content.watcher-assistant-markdown h4:last-child,
.ops-v2-message-content.watcher-assistant-markdown h5:last-child,
.ops-v2-message-content.watcher-assistant-markdown h6:last-child {
	margin-bottom: 0;
}

.ops-v2-message-content.watcher-assistant-markdown ul,
.ops-v2-message-content.watcher-assistant-markdown ol {
	padding-left: 1.2rem;
}

.ops-v2-message-content.watcher-assistant-markdown pre {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: Consolas, "Courier New", monospace;
	background: rgba(15, 23, 42, 0.05);
	padding: 0.42rem 0.5rem;
	border-radius: 8px;
}

.ops-v2-message-collapsible {
	margin: 0;
}

.ops-v2-message-collapsible > summary {
	cursor: pointer;
	user-select: none;
	font-size: 0.84rem;
	font-weight: 600;
	color: #334155;
	list-style: none;
}

.ops-v2-message-collapsible > summary::-webkit-details-marker {
	display: none;
}

.ops-v2-message-collapsible > pre {
	margin-top: 0.45rem;
}

.ops-v2-initial-prompt-collapsible > summary {
	color: #1e3a8a;
	font-weight: 700;
}

.ops-v2-initial-prompt-collapsible > summary:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

.ops-v2-initial-prompt-summary {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.ops-v2-initial-prompt-icon {
	color: #2563eb;
	font-size: 0.92rem;
	line-height: 1;
}

.ops-v2-initial-prompt-label {
	text-decoration: underline;
}

.ops-v2-stream-row {
	position: relative;
	margin: 0.35rem 0.75rem 0.5rem;
	padding: 0.42rem 0.58rem;
	border: 1px solid #c7dcff;
	border-left: 4px solid #3b82f6;
	border-radius: 12px;
	background: linear-gradient(180deg, #f2f7ff 0%, #e9f2ff 100%);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	color: #1e3a8a;
	overflow: hidden;
}

.ops-v2-stream-row.running::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(37, 99, 235, 0) 20%, rgba(37, 99, 235, 0.12) 50%, rgba(37, 99, 235, 0) 80%);
	transform: translateX(-110%);
	animation: ops-v2-stream-shimmer 1.6s linear infinite;
	pointer-events: none;
}

.ops-v2-stream-header {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	font-size: 0.78rem;
	font-weight: 700;
}

.ops-v2-stream-timer {
	color: #1d4ed8;
	white-space: nowrap;
}

.ops-v2-stream-status {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.79rem;
	font-family: Consolas, "Courier New", monospace;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-stream-status.tool-call {
	color: #0f172a;
}

.ops-v2-stream-status.shimmer {
	background: linear-gradient(90deg, #0f172a 0%, #0f172a 36%, #38bdf8 50%, #0f172a 64%, #0f172a 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: ops-v2-status-text-shimmer 2.1s linear infinite;
}

@keyframes ops-v2-status-text-shimmer {
	0% {
		background-position: 220% 0;
	}

	100% {
		background-position: -220% 0;
	}
}

@keyframes ops-v2-stream-shimmer {
	0% {
		transform: translateX(-110%);
	}

	100% {
		transform: translateX(110%);
	}
}

.ops-v2-stream-cancel-link {
	margin-left: auto;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #b91c1c;
	font-size: 0.79rem;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.ops-v2-stream-cancel-link:hover {
	color: #991b1b;
}

.ops-v2-composer {
	padding: 0.75rem;
	background: #ffffff;
	border-top: 1px solid #e5e7eb;
}

.ops-v2-scroll-latest-btn {
	position: static;
	width: 2.35rem;
	height: 2.35rem;
	border: 0;
	border-radius: 999px;
	background: #0f766e;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
	margin: 0 auto;
}

.ops-v2-scroll-latest-btn:hover {
	background: #0f172a;
	color: #ffffff;
}

.ops-v2-scroll-latest-btn:focus-visible {
	outline: 2px solid #0f172a;
	outline-offset: 2px;
}

.ops-v2-composer textarea {
	display: block;
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #ced6e2;
	border-radius: 12px;
	resize: vertical;
	min-height: 6rem;
	max-height: 26rem;
	font-size: 0.92rem;
	line-height: 1.35;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.ops-v2-composer textarea.drag-over {
	border-color: #111827;
	box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.16);
	background: #f8fafc;
}

.ops-v2-command-autocomplete {
	margin-top: 0.45rem;
	border: 1px solid #d8e0eb;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.ops-v2-command-autocomplete-title {
	padding: 0.42rem 0.62rem;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #334155;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ops-v2-command-autocomplete-list {
	display: flex;
	flex-direction: column;
	max-height: 13.5rem;
	overflow: auto;
}

.ops-v2-command-autocomplete-item {
	width: 100%;
	border: 0;
	border-top: 1px solid #edf2f7;
	background: #ffffff;
	color: #0f172a;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	padding: 0.5rem 0.62rem;
	font-size: 0.84rem;
}

.ops-v2-command-autocomplete-item:first-child {
	border-top: 0;
}

.ops-v2-command-autocomplete-item:hover,
.ops-v2-command-autocomplete-item.active {
	background: #eaf2ff;
}

.ops-v2-command-autocomplete-label {
	font-family: "Consolas", "Courier New", monospace;
	font-weight: 600;
	word-break: break-word;
}

.ops-v2-command-autocomplete-meta {
	flex: 0 0 auto;
	max-width: 40%;
	font-size: 0.72rem;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-input-format-hint {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.45rem;
	padding: 0.28rem 0.5rem;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 0.76rem;
	line-height: 1.15;
	max-width: 100%;
}

.ops-v2-input-format-hint-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-input-format-hint-undo {
	border: 0;
	border-radius: 999px;
	padding: 0.08rem 0.46rem;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.ops-v2-input-format-hint-undo:hover {
	background: #bfdbfe;
	color: #1e40af;
}

.ops-v2-input-format-hint-undo:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 1px;
}

.ops-v2-composer-images {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	padding: 0 0 0.6rem;
}

.ops-v2-composer-files {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0 0 0.5rem;
}

.ops-v2-queued-prompts {
	display: grid;
	gap: 0.45rem;
	padding: 0 0 0.6rem;
}

.ops-v2-queued-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.55rem;
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	background: #f8fafc;
}

.ops-v2-queued-item-text {
	font-size: 0.78rem;
	line-height: 1.28;
	color: #1f2937;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-queued-item-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.ops-v2-queued-item-btn {
	border: 1px solid #c9d6e8;
	background: #ffffff;
	color: #1f2937;
	border-radius: 999px;
	padding: 0.12rem 0.45rem;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.1;
	cursor: pointer;
}

.ops-v2-queued-item-btn:hover {
	background: #eff6ff;
}

.ops-v2-composer-image-pill {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #d1d5db;
	background: #ffffff;
}

.ops-v2-composer-image-pill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ops-v2-composer-image-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.72);
	color: #ffffff;
	font-size: 0.72rem;
	line-height: 20px;
	padding: 0;
	cursor: pointer;
}

.ops-v2-composer-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.5rem;
	padding-right: 0.1rem;
}

.ops-v2-composer-actions::before {
	content: "";
	flex: 1 1 0;
}

.ops-v2-composer-actions-center {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ops-v2-composer-actions-right {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
}

.ops-v2-upload-btn {
	width: 2.3rem;
	height: 2.3rem;
	min-width: 2.3rem;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ced6e2;
	border-radius: 999px;
	background: #ffffff;
	color: #111827;
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.ops-v2-upload-btn:hover {
	background: #f8fafc;
	color: #111827;
}

.ops-v2-upload-btn:focus-visible {
	outline: 2px solid #1f2937;
	outline-offset: 2px;
}

.ops-v2-speech-btn {
	width: 2.3rem;
	height: 2.3rem;
	min-width: 2.3rem;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ced6e2;
	border-radius: 999px;
	background: #ffffff;
	color: #111827;
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.ops-v2-speech-btn:hover {
	background: #f8fafc;
	color: #111827;
}

.ops-v2-speech-btn:focus-visible {
	outline: 2px solid #1f2937;
	outline-offset: 2px;
}

.ops-v2-speech-btn.is-recording {
	border-color: #ef4444;
	background: #fef2f2;
	color: #b91c1c;
}

.ops-v2-speech-btn.is-processing i {
	animation: ops-v2-spin 0.85s linear infinite;
}

.ops-v2-speech-btn.speaking {
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.26), 0 3px 10px rgba(15, 23, 42, 0.08);
}

.ops-v2-speech-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.scribe-vis {
	display: none;
	align-items: center;
	gap: 0.35rem;
	margin-left: 0.2rem;
	padding: 0.18rem 0.36rem;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	background: #ffffff;
	color: #334155;
	font-size: 0.72rem;
	line-height: 1;
}

.scribe-vis.is-active {
	display: inline-flex;
}

.scribe-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #ef4444;
	animation: ops-v2-scribe-dot-pulse 1.25s infinite;
}

@keyframes ops-v2-scribe-dot-pulse {
	0% {
		transform: scale(0.92);
		opacity: 0.75;
	}

	50% {
		transform: scale(1.2);
		opacity: 1;
	}

	100% {
		transform: scale(0.92);
		opacity: 0.75;
	}
}

.scribe-time {
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.7rem;
	min-width: 2.3rem;
	text-align: right;
}

.scribe-wave {
	width: 160px;
	height: 22px;
	display: block;
}

@keyframes ops-v2-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.ops-v2-send-btn {
	width: 2.3rem;
	height: 2.3rem;
	min-width: 2.3rem;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: #111827;
	color: #ffffff;
	font-weight: 700;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.24);
	margin-left: 0.05rem;
}

.ops-v2-send-btn i {
	font-size: 0.98rem;
}

.ops-v2-send-btn:hover {
	background: #0f172a;
	color: #ffffff;
}

.ops-v2-send-btn:focus-visible {
	outline: 2px solid #1f2937;
	outline-offset: 2px;
}

.ops-v2-queue-btn {
	width: 2.3rem;
	height: 2.3rem;
	min-width: 2.3rem;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ced6e2;
	border-radius: 999px;
	background: #ffffff;
	color: #1f2937;
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.ops-v2-queue-btn:hover {
	background: #f8fafc;
	color: #111827;
}

.ops-v2-queue-btn:focus-visible {
	outline: 2px solid #1f2937;
	outline-offset: 2px;
}

.ops-v2-composer-stop-btn {
	width: 2.3rem;
	height: 2.3rem;
	min-width: 2.3rem;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: #dc2626;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(185, 28, 28, 0.25);
}

.ops-v2-composer-stop-btn:hover {
	background: #b91c1c;
	color: #ffffff;
}

.ops-v2-composer-stop-btn:focus-visible {
	outline: 2px solid #7f1d1d;
	outline-offset: 2px;
}

.ops-v2-timeline-selection-indicator {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.6rem;
	margin: 0.65rem 0.75rem 0;
	padding: 0.7rem 0.85rem 0.8rem;
	border: 1px solid rgba(103, 232, 249, 0.9);
	border-radius: 16px;
	background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%);
	box-shadow: 0 10px 24px rgba(8, 145, 178, 0.12);
	color: #155e75;
	font-size: 0.84rem;
	line-height: 1.35;
}

.ops-v2-timeline-selection-indicator .header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.ops-v2-timeline-selection-indicator .file {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 700;
	font-size: 0.95rem;
	color: #0f172a;
}

.ops-v2-timeline-selection-indicator .meta {
	display: inline-flex;
	align-items: center;
	padding: 0.14rem 0.5rem;
	border-radius: 999px;
	background: rgba(165, 243, 252, 0.75);
	color: #0f766e;
	font-size: 0.74rem;
	font-weight: 700;
	white-space: nowrap;
}

.ops-v2-timeline-selection-indicator .dismiss {
	margin-left: auto;
	width: 1.5rem;
	height: 1.5rem;
	min-width: 1.5rem;
	padding: 0;
	border: 1px solid rgba(34, 211, 238, 0.9);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: #0f766e;
	font-size: 0.95rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.ops-v2-timeline-selection-indicator .dismiss:hover {
	background: #cffafe;
	color: #155e75;
	box-shadow: 0 4px 10px rgba(8, 145, 178, 0.15);
}

.ops-v2-timeline-selection-indicator .dismiss:focus-visible {
	outline: 2px solid rgba(14, 116, 144, 0.35);
	outline-offset: 2px;
}

.ops-v2-timeline-selection-indicator .preview {
	padding: 0.7rem 0.8rem;
	border: 1px solid rgba(103, 232, 249, 0.7);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
	color: #164e63;
	font-size: 0.8rem;
	line-height: 1.45;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ops-v2-composer-file-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.36rem;
	max-width: 100%;
	padding: 0.26rem 0.42rem 0.26rem 0.48rem;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #ffffff;
}

.ops-v2-composer-file-name {
	font-size: 0.74rem;
	font-weight: 600;
	color: #1f2937;
	max-width: 13.5rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ops-v2-composer-file-meta {
	font-size: 0.68rem;
	color: #64748b;
	white-space: nowrap;
}

.ops-v2-composer-file-remove {
	width: 1.2rem;
	height: 1.2rem;
	min-width: 1.2rem;
	border: 0;
	border-radius: 999px;
	background: #e5e7eb;
	color: #334155;
	font-size: 0.72rem;
	line-height: 1;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ops-v2-composer-file-remove:hover {
	background: #dbe3ef;
}

.ops-v2-composer-file-remove:focus-visible {
	outline: 2px solid #1f2937;
	outline-offset: 1px;
}

.ops-v2-timeline-selection-indicator .dismiss:hover {
	background: #a5f3fc;
	border-color: #22d3ee;
}

.ops-v2-timeline-selection-indicator .preview {
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.76rem;
	color: #0e7490;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.ops-v2-message-images {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.55rem;
}

.ops-v2-message-image {
	width: 84px;
	height: 84px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #d1d5db;
	background: #ffffff;
}

.ops-v2-message-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
}

.ops-v2-image-preview-overlay {
	position: fixed;
	inset: 0;
	background: rgba(2, 6, 23, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 60;
}

.ops-v2-image-preview-image {
	max-width: min(96vw, 1400px);
	max-height: 90vh;
	border-radius: 10px;
	border: 1px solid #334155;
	box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
	background: #0f172a;
	object-fit: contain;
}

.ops-v2-image-preview-close {
	position: fixed;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 1px solid #64748b;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.85);
	color: #f8fafc;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.ops-v2-image-preview-close:hover {
	background: rgba(30, 41, 59, 0.95);
}

.ops-v2-settings-body {
	padding: 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	overflow: auto;
}

.ops-v2-settings-section {
	background: #ffffff;
	border: 1px solid #d8e0eb;
	border-radius: 10px;
	padding: 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.ops-v2-settings-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
}

.ops-v2-settings-copy {
	margin: 0;
	font-size: 0.84rem;
	color: #475569;
	line-height: 1.4;
}

.ops-v2-settings-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: #334155;
}

.ops-v2-settings-input {
	padding: 0.54rem 0.62rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font: inherit;
}

.ops-v2-settings-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.62rem;
	border: 1px solid #e2e8f0;
	border-radius: 9px;
	background: #f8fafc;
}

.ops-v2-settings-subtitle {
	font-size: 0.8rem;
	font-weight: 700;
	color: #1f2937;
}

.ops-v2-settings-textarea {
	min-height: 7rem;
	resize: vertical;
}

.ops-v2-settings-actions {
	display: flex;
	gap: 0.45rem;
	flex-wrap: wrap;
	align-items: center;
}

.ops-v2-settings-btn {
	padding: 0.45rem 0.75rem;
	border-radius: 7px;
	border: 1px solid #d1d5db;
	background: #ffffff;
	cursor: pointer;
	font-weight: 600;
}

.ops-v2-settings-btn.primary {
	background: #0f766e;
	color: #ffffff;
	border-color: #0f766e;
}

.ops-v2-settings-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.ops-v2-settings-status {
	font-size: 0.8rem;
	color: #475569;
}

.ops-v2-settings-status.error {
	color: #991b1b;
}

.ops-v2-settings-status.success {
	color: #047857;
}

.ops-v2-codex-usage-grid {
	margin-top: 0.62rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.58rem;
}

.ops-v2-codex-usage-card {
	padding: 0.7rem 0.72rem;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #ffffff;
}

.ops-v2-codex-usage-card-title {
	font-size: 0.79rem;
	font-weight: 700;
	color: #64748b;
}

.ops-v2-codex-usage-card-value {
	margin-top: 0.3rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: #0f172a;
}

.ops-v2-codex-usage-bar-track {
	margin-top: 0.5rem;
	height: 0.55rem;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
}

.ops-v2-codex-usage-bar-fill {
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: #22c55e;
}

.ops-v2-codex-usage-bar-fill.warning {
	background: #f59e0b;
}

.ops-v2-codex-usage-bar-fill.critical {
	background: #ef4444;
}

.ops-v2-codex-usage-card-reset {
	margin-top: 0.42rem;
	font-size: 0.75rem;
	color: #64748b;
}

.ops-v2-codex-detail-grid {
	margin-top: 0.58rem;
	display: grid;
	gap: 0.36rem;
}

.ops-v2-codex-detail-row {
	display: grid;
	grid-template-columns: minmax(100px, 130px) minmax(0, 1fr);
	gap: 0.52rem;
	align-items: baseline;
	padding: 0.34rem 0.5rem;
	border: 1px solid #dbe2ea;
	border-radius: 8px;
	background: #ffffff;
}

.ops-v2-codex-detail-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #64748b;
}

.ops-v2-codex-detail-value {
	font-size: 0.79rem;
	color: #0f172a;
	overflow-wrap: anywhere;
}

.ops-v2-codex-detail-note {
	margin-top: 0.46rem;
	font-size: 0.75rem;
	line-height: 1.35;
	color: #64748b;
}

.ops-v2-meta-tools-body {
	padding: 0.85rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	overflow: hidden;
	min-height: 0;
}

/* Meta Tools uses only header + editor body, so let the editor consume the remaining screen height. */
#opsMetaToolsLayout .ops-v2-chat-panel {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
}

#opsMetaToolsLayout .ops-v2-meta-tools-body {
	height: 100%;
}

.ops-v2-meta-tools-toolbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.55rem;
}

.ops-v2-meta-tools-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
	width: 100%;
}

.ops-v2-meta-tools-field label {
	font-size: 0.78rem;
	font-weight: 700;
	color: #334155;
}

.ops-v2-meta-tools-actions {
	display: flex;
	gap: 0.45rem;
	justify-content: flex-end;
}

.ops-v2-meta-tools-directory-row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.ops-v2-meta-tools-directory-row .form-control {
	flex: 1 1 auto;
	min-width: 0;
}

.ops-v2-meta-tools-editor-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
}

.ops-v2-meta-tools-editor-header .ops-v2-meta-skill-path {
	flex: 1 1 auto;
	min-width: 0;
}

.ops-v2-meta-tools-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	min-height: 0;
	flex: 1 1 auto;
}

.ops-v2-meta-tools-list-panel,
.ops-v2-meta-tools-editor-panel {
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ops-v2-meta-tools-list-panel .ops-v2-meta-skills-list {
	flex: 1;
	max-height: none;
	min-height: 15rem;
}

.ops-v2-meta-tools-editor-panel .ops-v2-meta-skill-editor {
	min-height: 0;
	width: 100%;
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.78rem;
}

.ops-v2-meta-tools-body .ops-v2-settings-section {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.ops-v2-meta-tools-editor-panel .CodeMirror {
	flex: 1 1 auto;
	min-height: 0;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.8rem;
}

.command-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 42;
	padding: 1rem;
}

.command-modal-card {
	width: min(520px, 100%);
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	box-shadow: 0 20px 40px rgba(2, 6, 23, 0.18);
	padding: 0.8rem;
}

.command-modal-title {
	font-weight: 700;
	color: #111827;
	margin-bottom: 0.65rem;
}

.command-modal-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.command-modal-body select,
.command-modal-body input {
	padding: 0.5rem 0.6rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font: inherit;
}

.new-session-modal-note {
	font-size: 0.86rem;
	line-height: 1.35;
	color: #334155;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.5rem 0.58rem;
}

.new-session-modal-card {
	width: min(560px, 100%);
	border-radius: 14px;
	padding: 0.95rem;
}

.new-session-modal-card .command-modal-title {
	font-size: 1.24rem;
	margin-bottom: 0.72rem;
}

.new-session-modal-card .command-modal-body {
	gap: 0.42rem;
}

.new-session-modal-card .command-modal-body label {
	margin-top: 0.16rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: #334155;
}

.new-session-modal-card .command-modal-body select,
.new-session-modal-card .command-modal-body input {
	padding: 0.54rem 0.62rem;
	border-radius: 8px;
	transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.new-session-modal-card .command-modal-body select:focus-visible,
.new-session-modal-card .command-modal-body input:focus-visible {
	outline: 0;
	border-color: #1d4ed8;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.new-session-field-help {
	font-size: 0.76rem;
	line-height: 1.35;
	color: #475569;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	border-radius: 8px;
	padding: 0.4rem 0.52rem;
}

.command-modal-actions {
	margin-top: 0.75rem;
	display: flex;
	justify-content: flex-end;
	gap: 0.45rem;
}

.command-modal-actions button {
	padding: 0.45rem 0.75rem;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #ffffff;
	cursor: pointer;
}

.command-modal-actions button:first-child {
	background: #0f766e;
	color: #ffffff;
	border-color: #0f766e;
}

.ops-v2-session-setup-modal-card {
	width: min(640px, 100%);
}

.ops-v2-session-setup-modal-card .ops-v2-model-meta {
	min-height: 0;
}

.ops-v2-notice {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 14;
	padding: 0.5rem 0.65rem;
	border-radius: 8px;
	font-size: 0.84rem;
	font-weight: 600;
	border: 1px solid transparent;
	max-width: min(520px, 88vw);
}

.ops-v2-modal {
	position: fixed;
	inset: 0;
	z-index: 42;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem;
}

.ops-v2-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.ops-v2-modal-dialog {
	position: relative;
	width: min(620px, 96vw);
	max-height: 90dvh;
	overflow: auto;
	background: #ffffff;
	border: 1px solid #d8e0eb;
	border-radius: 10px;
	box-shadow: 0 24px 44px rgba(2, 6, 23, 0.34);
}

.ops-v2-modal-header,
.ops-v2-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid #e5e7eb;
	background: #f8fafc;
}

.ops-v2-modal-footer {
	border-top: 1px solid #e5e7eb;
	border-bottom: 0;
	justify-content: flex-end;
}

.ops-v2-modal-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #0f172a;
}

.ops-v2-modal-body {
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ops-v2-modal-meta {
	font-size: 0.78rem;
	color: #475569;
}


.ops-v2-notice.info {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1e40af;
}

.ops-v2-notice.error {
	background: #fef2f2;
	border-color: #fca5a5;
	color: #991b1b;
}

.ops-v2-mobile-btn {
	display: none;
	position: static;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: #0f172a;
	width: 1.95rem;
	height: 1.95rem;
	padding: 0;
	font-size: 0.9rem;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.ops-v2-backdrop {
	display: none;
}

.ops-v2-layout.sidebar-collapsed .ops-v2-shell {
	grid-template-columns: 64px 1fr;
}

.ops-v2-layout.sidebar-collapsed .ops-v2-sidebar-nav,
.ops-v2-layout.sidebar-collapsed .ops-v2-sidebar-controls,
.ops-v2-layout.sidebar-collapsed .ops-v2-session-topbar,
.ops-v2-layout.sidebar-collapsed .ops-v2-session-search-wrap,
.ops-v2-layout.sidebar-collapsed .ops-v2-group-title,
.ops-v2-layout.sidebar-collapsed .ops-v2-session-list {
	display: none;
}

.ops-v2-layout.sidebar-collapsed .ops-v2-sidebar-header {
	justify-content: center;
}

.ops-v2-layout.sidebar-collapsed .ops-v2-sidebar-title {
	display: none;
}

.page-title-box,
.breadcrumb,
.page-title-box .breadcrumb {
	display: none !important;
}

@media (max-width: 980px) {
	body.ops-v2-page {
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-y: auto;
	}

	.ops-v2-layout {
		height: auto;
		min-height: 100dvh;
		overflow: visible;
	}

	.ops-v2-mobile-btn {
		display: inline-flex;
	}

	.ops-v2-shell {
		grid-template-columns: 1fr;
		height: auto;
		min-height: 0;
		gap: 0.4rem;
	}

	.ops-v2-chat-panel {
		height: auto;
		min-height: 0;
		overflow: visible;
	}

	.ops-v2-conversation-meta-menu {
		right: auto;
		left: 0;
		width: min(26.5rem, calc(100vw - 1.6rem));
	}

	.ops-v2-conversation-meta-menu-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.2rem;
	}

	.ops-v2-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(88vw, 360px);
		max-width: 360px;
		z-index: 25;
		border-radius: 0 10px 10px 0;
		transform: translateX(-106%);
		transition: transform 0.18s ease;
		box-shadow: 0 24px 36px rgba(2, 6, 23, 0.28);
	}

	.ops-v2-layout.mobile-sidebar-open .ops-v2-sidebar {
		transform: translateX(0);
	}

	.ops-v2-layout.mobile-sidebar-open .ops-v2-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 24;
		background: rgba(15, 23, 42, 0.52);
	}

	.ops-v2-message {
		width: 100%;
		max-width: 100%;
		padding: 0.48rem 0.58rem;
		padding-right: 0.65rem;
	}

	.ops-v2-user-turn-toggle {
		padding: 0.45rem 0.52rem;
		gap: 0.32rem;
	}

	.ops-v2-user-turn-toggle-assistant {
		margin-left: 0;
		max-width: 100%;
		white-space: normal;
	}

	.ops-v2-user-turn-body,
	.ops-v2-user-turn-final {
		margin-left: 0.4rem;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	.ops-v2-message-title {
		font-size: 0.83rem;
		margin-bottom: 0;
	}

	.ops-v2-message-header {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 0.25rem 0.45rem;
		margin-bottom: 0.28rem;
	}

	.ops-v2-message-header-actions {
		gap: 0.3rem;
	}

	.ops-v2-message-time {
		white-space: normal;
		font-size: 0.72rem;
	}

	.ops-v2-message-content {
		font-size: 0.79rem;
		line-height: 1.35;
	}

	.ops-v2-message-content .ops-v2-google-link {
		max-width: 100%;
	}

	.ops-v2-google-link-title,
	.ops-v2-google-link-subtitle {
		white-space: normal;
	}

	.ops-v2-child-session-section {
		margin-left: 0;
	}

	.ops-v2-child-session-section .ops-v2-message {
		margin-left: 0;
	}

	.ops-v2-child-session-section-body {
		padding-left: 0;
		padding-right: 0;
	}

	.ops-v2-subagent-open-action {
		padding-left: 0.7rem;
	}

	.ops-v2-messages {
		padding: 0.35rem;
		gap: 0.5rem;
		overflow: visible;
	}

	.ops-v2-raw-panel {
		padding: 0.55rem;
		overflow: visible;
	}

	.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry {
		padding: 0.45rem 0.55rem;
		padding-right: 0.7rem;
	}

	.ops-v2-messages .ops-v2-child-session-timeline .watcher-turn-intermediate-wrap,
	.ops-v2-messages .ops-v2-child-session-timeline .watcher-task-child {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}

	.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-header {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 0.25rem 0.45rem;
	}

	.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-time {
		white-space: normal;
		font-size: 0.72rem;
	}

	.ops-v2-messages .watcher-entry-actions {
		display: inline-flex;
	}

	.ops-v2-send-btn {
		width: 2rem;
		height: 2rem;
		min-width: 2rem;
		padding: 0 !important;
	}

	.ops-v2-meta-tools-grid {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
	}

	.ops-v2-scroll-latest-btn {
		width: 2.05rem;
		height: 2.05rem;
	}

	.ops-v2-composer {
		padding: 0.55rem;
	}

	.ops-v2-composer textarea {
		min-height: 4.2rem;
		max-height: 40dvh;
		font-size: 0.88rem;
	}

	.ops-v2-composer-actions {
		margin-top: 0.38rem;
	}

	.ops-v2-composer-actions-right {
		gap: 0.35rem;
	}

	.ops-v2-upload-btn,
	.ops-v2-speech-btn,
	.ops-v2-queue-btn,
	.ops-v2-composer-stop-btn,
	.ops-v2-send-btn {
		width: 2rem;
		height: 2rem;
		min-width: 2rem;
	}
}

@media (min-width: 769px) and (max-width: 980px) {
	.ops-v2-chat-header {
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		gap: 0.55rem;
		padding: 0.55rem 0.6rem;
	}

	.ops-v2-chat-header-main {
		flex: 1 1 auto;
		min-width: 0;
	}

	.ops-v2-view-tabs {
		flex: 0 0 auto;
	}

	.ops-v2-view-select {
		min-width: 8.8rem;
		max-width: 10.2rem;
	}

	.ops-v2-session-provider-meta {
		flex: 0 1 auto;
		min-width: 0;
	}

	.ops-v2-conversation-model-summary {
		flex: 0 1 13rem;
		max-width: 13rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.ops-v2-header-actions {
		width: auto;
		flex-wrap: nowrap;
		justify-content: flex-end;
		gap: 0.35rem;
	}

	.ops-v2-header-actions .btn {
		min-width: 0;
		padding: 0.3rem 0.62rem;
	}
}

@media (max-width: 768px) {
	.ops-v2-chat-header {
		flex-direction: column;
		align-items: stretch;
		gap: 0.45rem;
		padding: 0.55rem 0.6rem;
	}

	.ops-v2-chat-header-main {
		width: 100%;
	}

	.ops-v2-view-tabs {
		align-self: flex-start;
	}

	.ops-v2-view-select {
		min-width: 8.8rem;
	}

	.ops-v2-session-provider-meta {
		align-self: flex-start;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 0.35rem;
	}

	.ops-v2-conversation-model-summary {
		flex: 0 1 auto;
		max-width: 16rem;
	}

	.ops-v2-conversation-meta-menu-btn {
		width: 2rem;
		min-width: 2rem;
		height: 2rem;
		flex: 0 0 auto;
	}

	.ops-v2-title {
		font-size: 0.98rem;
	}

	.ops-v2-meta {
		white-space: normal;
		line-height: 1.3;
		overflow: visible;
	}

	.ops-v2-header-actions {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.ops-v2-header-actions .btn {
		min-width: 0;
		padding: 0.3rem 0.62rem;
	}
}

@media (min-width: 981px) and (max-width: 1320px) {
	.ops-v2-layout {
		padding: 0.4rem;
	}

	.ops-v2-shell {
		grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
		gap: 0.55rem;
	}

	.ops-v2-messages {
		padding: 0.6rem;
	}

	.ops-v2-message {
		padding: 0.5rem 0.6rem;
	}
}

/* CodexEmbedded watcher timeline styles (scoped for Buffaly codex sub-agent feed). */
.ops-v2-messages .ops-v2-child-session-timeline {
	flex: 0 0 auto;
	overflow: visible;
	padding: 0.68rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin: 0.1rem 0 0.3rem;
}

/* Reuse watcher-entry look for standalone tool cards without the extra outer timeline shell. */
.ops-v2-messages .ops-v2-child-session-timeline.ops-v2-child-session-timeline-standalone {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry {
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-left-width: 4px;
	border-radius: 8px;
	padding: 0.55rem 0.7rem;
	padding-right: 0.7rem;
	position: relative;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.user {
	border-left-color: #3b82f6;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.assistant {
	border-left-color: #10b981;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.tool {
	border-left-color: #475569;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.reasoning {
	border-left-color: #8b5cf6;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.system {
	border-left-color: #6b7280;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-view-hidden {
	display: none !important;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-turn-block {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-turn-active {
	position: relative;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-turn-intermediate-wrap {
	margin-left: 0.6rem;
	padding-left: 0.6rem;
	border-left: 2px dashed #cbd5e1;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-turn-intermediate {
	border-left-color: #475569;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-turn-final {
	border-left-color: #10b981;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-turn-toggle {
	margin-right: 0.45rem;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 0.66rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.2rem 0.38rem;
	font-family: Consolas, "Courier New", monospace;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-title {
	font-weight: 600;
	font-size: 0.9rem;
	color: #1f2937;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-time {
	font-size: 0.78rem;
	color: #6b7280;
	white-space: nowrap;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-text,
.ops-v2-messages .ops-v2-message .watcher-entry-text {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 0.86rem;
	color: #111827;
	background: transparent;
	font-family: Consolas, "Courier New", monospace;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-body,
.ops-v2-messages .ops-v2-message .watcher-tool-body {
	margin-top: 0.05rem;
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-body-block,
.ops-v2-messages .ops-v2-message .watcher-tool-body-block {
	margin: 0;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-body-tail,
.ops-v2-messages .ops-v2-message .watcher-tool-body-tail {
	white-space: pre;
	overflow-x: auto;
	overflow-y: hidden;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-body-json,
.ops-v2-messages .ops-v2-message .watcher-tool-body-json {
	white-space: pre;
	overflow: auto;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.5rem 0.55rem;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-body-hidden,
.ops-v2-messages .ops-v2-message .watcher-tool-body-hidden {
	padding-left: 0.55rem;
	border-left: 2px dashed #cbd5e1;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-hidden-toggle,
.ops-v2-messages .ops-v2-message .watcher-tool-hidden-toggle {
	align-self: flex-start;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #f8fafc;
	color: #1e3a8a;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.73rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.24rem 0.5rem;
	cursor: pointer;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-hidden-toggle:hover,
.ops-v2-messages .ops-v2-message .watcher-tool-hidden-toggle:hover {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1d4ed8;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-hidden-toggle:focus-visible,
.ops-v2-messages .ops-v2-message .watcher-tool-hidden-toggle:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 1px;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.watcher-tool-call-card,
.ops-v2-messages .ops-v2-message .watcher-entry.watcher-tool-call-card {
	padding: 0.48rem 0.6rem;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.watcher-tool-call-card .watcher-entry-header,
.ops-v2-messages .ops-v2-message .watcher-entry.watcher-tool-call-card .watcher-entry-header {
	margin-bottom: 0;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.watcher-tool-call-card.watcher-tool-card-expanded .watcher-entry-header,
.ops-v2-messages .ops-v2-message .watcher-entry.watcher-tool-call-card.watcher-tool-card-expanded .watcher-entry-header {
	margin-bottom: 0.42rem;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-toggle,
.ops-v2-messages .ops-v2-message .watcher-tool-call-toggle {
	border: 1px solid #cfd8e8;
	background: #f4f7fc;
	color: #1f2f4e;
	border-radius: 999px;
	padding: 0.16rem 0.58rem 0.18rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.42rem;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.05;
	min-height: 32px;
	vertical-align: middle;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-toggle:hover,
.ops-v2-messages .ops-v2-message .watcher-tool-call-toggle:hover {
	background: #ebf1fb;
	border-color: #bcc9e0;
	color: #0f172a;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-toggle:focus-visible,
.ops-v2-messages .ops-v2-message .watcher-tool-call-toggle:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 1px;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-caret,
.ops-v2-messages .ops-v2-message .watcher-tool-call-caret {
	font-size: 0.86rem;
	color: #677a98;
	transition: transform 140ms ease;
	line-height: 1;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon {
	font-size: 1.02rem;
	color: #60718f;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.12rem 0.24rem;
	line-height: 1;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--plan-add,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--plan-add {
	color: #0f766e;
	background: #ecfdf5;
	border-color: #99f6e4;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--plan-start,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--plan-start {
	color: #9a3412;
	background: #fff7ed;
	border-color: #fed7aa;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--plan-complete,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--plan-complete {
	color: #166534;
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--plan-block,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--plan-block {
	color: #9f1239;
	background: #fff1f2;
	border-color: #fecdd3;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--local-task,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--local-task {
	color: #1d4ed8;
	background: #eff6ff;
	border-color: #bfdbfe;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--search-actions,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--search-actions {
	color: #6d28d9;
	background: #f5f3ff;
	border-color: #ddd6fe;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--search-entities,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--search-entities {
	color: #0f766e;
	background: #f0fdfa;
	border-color: #99f6e4;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--protoscript-load,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--protoscript-load {
	color: #4338ca;
	background: #eef2ff;
	border-color: #c7d2fe;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--powershell,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--powershell {
	color: #334155;
	background: #f8fafc;
	border-color: #cbd5e1;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-cli-icon--default,
.ops-v2-messages .ops-v2-message .watcher-tool-call-cli-icon--default {
	color: #60718f;
	background: #f4f7fc;
	border-color: #dbe4f2;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.watcher-tool-card-expanded .watcher-tool-call-caret,
.ops-v2-messages .ops-v2-message .watcher-entry.watcher-tool-card-expanded .watcher-tool-call-caret {
	transform: rotate(180deg);
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-label,
.ops-v2-messages .ops-v2-message .watcher-tool-call-label {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-dot,
.ops-v2-messages .ops-v2-message .watcher-tool-call-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #16a34a;
	flex: none;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-tool-call-spinner,
.ops-v2-messages .ops-v2-message .watcher-tool-call-spinner {
	display: none;
	font-size: 0.74rem;
	color: #16a34a;
	animation: ops-v2-session-processing-spin 0.95s linear infinite;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.watcher-tool-card-running .watcher-tool-call-spinner,
.ops-v2-messages .ops-v2-message .watcher-entry.watcher-tool-card-running .watcher-tool-call-spinner {
	display: inline-block;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.watcher-tool-card-running .watcher-tool-call-dot,
.ops-v2-messages .ops-v2-message .watcher-entry.watcher-tool-card-running .watcher-tool-call-dot {
	display: none;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.watcher-tool-call-card .watcher-tool-body,
.ops-v2-messages .ops-v2-message .watcher-entry.watcher-tool-call-card .watcher-tool-body {
	margin-top: 0.42rem;
	padding: 0.62rem 0.7rem;
	background: #161b2b;
	border: 1px solid #27324f;
	border-radius: 8px;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry.watcher-tool-call-card .watcher-tool-body .watcher-entry-text,
.ops-v2-messages .ops-v2-message .watcher-entry.watcher-tool-call-card .watcher-tool-body .watcher-entry-text {
	color: #9ff8cf;
	font-size: 0.82rem;
	line-height: 1.42;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-images {
	margin-top: 0.45rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ops-v2-messages .watcher-entry-copy-btn {
	width: 28px;
	height: 28px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #f8fafc;
	color: #475569;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.ops-v2-messages .watcher-entry-copy-btn:hover {
	background: #eef2ff;
	border-color: #a5b4fc;
	color: #3730a3;
}

.ops-v2-messages .watcher-entry-copy-btn:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 1px;
}

.ops-v2-messages .watcher-entry-copy-btn.is-copied {
	border-color: #10b981;
	background: #ecfdf5;
	color: #047857;
}

.ops-v2-messages .watcher-entry-copy-btn i {
	font-size: 0.78rem;
	line-height: 1;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-image {
	width: 120px;
	height: 90px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #d1d5db;
	background: #f8fafc;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-entry-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-entry {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.2rem 0.1rem;
	font-size: 0.84rem;
	color: #374151;
	border-bottom: 1px dashed #e5e7eb;
	flex-wrap: wrap;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note {
	padding: 0.35rem 0.5rem;
	border: 1px solid #dbeafe;
	border-radius: 8px;
	background: #eff6ff;
	border-bottom-style: solid;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note.watcher-inline-note-event {
	border-color: #c7d2fe;
	background: #eef2ff;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note.watcher-inline-note-event .watcher-inline-title {
	color: #3730a3;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note.watcher-inline-note-event.watcher-inline-note-event-processing {
	border-color: #bae6fd;
	background: #f0f9ff;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note.watcher-inline-note-event.watcher-inline-note-event-processing .watcher-inline-title {
	color: #0c4a6e;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note.watcher-inline-note-event.watcher-inline-note-event-success {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note.watcher-inline-note-event.watcher-inline-note-event-success .watcher-inline-title {
	color: #166534;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note.watcher-inline-note-event.watcher-inline-note-event-failed {
	border-color: #fecaca;
	background: #fef2f2;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-note.watcher-inline-note-event.watcher-inline-note-event-failed .watcher-inline-title {
	color: #991b1b;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-task {
	padding: 0.32rem 0.1rem;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-task-start {
	background: #f8fafc;
	border-left-color: #0ea5e9 !important;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-task.watcher-task-boundary-clickable {
	cursor: pointer;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-task.watcher-task-boundary-clickable:hover {
	background: #eff6ff;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-task.watcher-task-boundary-clickable:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
	border-radius: 6px;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-task.watcher-task-collapsed {
	background: #f1f5f9;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-task-end {
	background: #f8fafc;
	border-left-color: #94a3b8 !important;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-task-child {
	margin-left: calc(var(--task-depth, 1) * 0.62rem);
	padding-left: 0.56rem;
	border-left: 2px dashed #cbd5e1;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-entry.watcher-task-child {
	padding-left: 0.5rem;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-task-toggle,
.ops-v2-messages .ops-v2-message .watcher-task-toggle {
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 0.64rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.2rem 0.38rem;
	font-family: Consolas, "Courier New", monospace;
}

.ops-v2-messages .ops-v2-message .watcher-task-toggle {
	display: inline-flex;
	align-items: center;
	margin-right: 0.4rem;
	cursor: pointer;
	vertical-align: middle;
}

.ops-v2-messages .ops-v2-message .watcher-task-toggle:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}

.ops-v2-messages .ops-v2-message .watcher-turn-summary-expand.watcher-turn-summary-expand-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.24rem;
	min-width: 4.7rem;
	padding: 0.2rem 0.42rem;
}

.ops-v2-messages .ops-v2-message .watcher-turn-summary-expand.watcher-turn-summary-expand-loading[disabled] {
	opacity: 1;
	cursor: default;
}

.ops-v2-messages .ops-v2-message .watcher-turn-summary-expand .watcher-turn-summary-expand-spinner {
	display: inline-block;
}

.ops-v2-messages .ops-v2-message .watcher-turn-summary-expand.watcher-turn-summary-expand-loading .watcher-turn-summary-expand-spinner {
	font-size: 0.72rem;
	line-height: 1;
	color: currentColor;
}

.ops-v2-messages .ops-v2-message .watcher-turn-summary-expand.watcher-turn-summary-expand-loading .watcher-turn-summary-expand-label {
	display: inline-block;
	font-size: 0.6rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-title {
	font-weight: 600;
	color: #1f2937;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-text {
	font-family: Consolas, "Courier New", monospace;
	color: #111827;
	white-space: pre-wrap;
	word-break: break-word;
	flex: 1 1 360px;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-task .watcher-inline-text {
	font-family: "Segoe UI", Tahoma, sans-serif;
	color: #334155;
}

.ops-v2-messages .ops-v2-child-session-timeline .watcher-inline-time {
	font-size: 0.78rem;
	color: #6b7280;
	white-space: nowrap;
	margin-left: auto;
}

/* Skills/Projects catalog page layout */
.ops-v2-catalog-layout {
	display: grid;
	grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
	gap: 0.75rem;
	min-height: 0;
}

.ops-v2-catalog-list {
	min-height: 26rem;
	max-height: 65dvh;
	overflow: auto;
	border: 1px solid #d8e0eb;
	border-radius: 10px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ops-v2-catalog-item {
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #e6edf7;
	border-radius: 0;
	padding: 0.52rem 0.6rem;
	cursor: pointer;
	transition: background 0.12s ease, box-shadow 0.12s ease;
}

.ops-v2-catalog-item:last-child {
	border-bottom: 0;
}

.ops-v2-catalog-item:hover {
	background: #f1f7ff;
}

.ops-v2-catalog-item.active {
	background: #dbe9ff;
	box-shadow: inset 3px 0 0 #1d4ed8, inset 0 0 0 1px #bfd6ff;
}

.ops-v2-catalog-item-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ops-v2-catalog-detail {
	min-height: 26rem;
	max-height: 65dvh;
	overflow: auto;
	border: 1px solid #d8e0eb;
	border-radius: 10px;
	background: #ffffff;
	padding: 0.7rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ops-v2-catalog-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.16rem 0.5rem;
	margin: 0 0.35rem 0.35rem 0;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #f8fafc;
	color: #334155;
	font-size: 0.74rem;
}

.ops-v2-catalog-section {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	padding: 0.55rem 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	box-shadow: inset 0 1px 0 #ffffff;
}

.ops-v2-catalog-group-heading {
	padding: 0.42rem 0.6rem 0.3rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #334155;
	background: linear-gradient(180deg, #f8fafc, #eff4fb);
	border-top: 1px solid #dde7f5;
}

.ops-v2-catalog-group-heading:first-child {
	border-top: 0;
}

.ops-v2-catalog-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ops-v2-count-badge,
.ops-v2-category-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.14rem 0.45rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	border: 1px solid #cbd5e1;
	background: #eef2f7;
	color: #334155;
}

.ops-v2-action-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.65rem;
	padding: 0.08rem 0.38rem;
	border-radius: 999px;
	border: 1px solid #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 0.66rem;
	font-weight: 700;
	line-height: 1.2;
}

.ops-v2-category-badge {
	text-transform: lowercase;
	border-color: #bbf7d0;
	background: #ecfdf5;
	color: #166534;
}

@media (max-width: 980px) {
	.ops-v2-catalog-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ops-v2-catalog-list,
	.ops-v2-catalog-detail {
		max-height: none;
		min-height: 0;
	}
}

.ops-v2-message-content.format-json {
	font-family: "Courier New", Courier, monospace;
}

.ops-v2-message-json {
	margin: 0;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	border: 1px solid #d8e0eb;
	background: #f8fafc;
	overflow: auto;
	white-space: pre;
}

.ops-v2-markdown-code-block {
	margin: 0 0 0.55rem 0;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	border: 1px solid #d8e0eb;
	background: #f8fafc;
	overflow: auto;
	white-space: pre;
	font-family: "Consolas", "Courier New", monospace;
	line-height: 1.45;
	tab-size: 4;
}

.ops-v2-markdown-code-block-wrap {
	position: relative;
	margin: 0 0 0.55rem 0;
}

.ops-v2-markdown-code-block-wrap:last-child {
	margin-bottom: 0;
}

.ops-v2-markdown-code-copy-btn {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	color: #475569;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	z-index: 1;
}

.ops-v2-markdown-code-copy-btn:hover {
	background: #eef2ff;
	border-color: #a5b4fc;
	color: #3730a3;
}

.ops-v2-markdown-code-copy-btn:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 1px;
}

.ops-v2-markdown-code-copy-btn.is-copied {
	border-color: #10b981;
	background: #ecfdf5;
	color: #047857;
}

.ops-v2-markdown-code-copy-btn i {
	font-size: 0.78rem;
	line-height: 1;
}

.ops-v2-markdown-code-block:last-child {
	margin-bottom: 0;
}

.ops-v2-markdown-code-block .cm-comment {
	color: #64748b;
}

.ops-v2-markdown-code-block-fallback {
	margin: 0;
	padding-right: 2.75rem;
}

.ops-v2-result-card {
	margin-top: 0.75rem;
	padding: 0.6rem 0.7rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ops-v2-result-card-title {
	font-size: 0.78rem;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: 0.01em;
}

.ops-v2-result-card-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.76rem;
	color: #334155;
}

.ops-v2-result-card-label {
	font-weight: 700;
	color: #1e293b;
}

.ops-v2-result-card-value {
	word-break: break-word;
}

.ops-v2-result-card-preview {
	margin: 0.15rem 0 0;
	padding: 0.55rem;
	border-radius: 8px;
	border: 1px solid #d8e0eb;
	background: #ffffff;
	max-height: 12rem;
	overflow: auto;
	font-size: 0.75rem;
	white-space: pre-wrap;
}

.ops-v2-result-card-actions {
	display: flex;
	gap: 0.4rem;
}

body.ops-v2-hide-session-chrome {
	background: #ffffff;
	overflow: hidden;
}

body.ops-v2-hide-session-chrome .ops-v2-layout {
	padding: 0;
	height: 100dvh;
	min-height: 100dvh;
	overflow: hidden;
}

body.ops-v2-hide-session-chrome .ops-v2-mobile-btn,
body.ops-v2-hide-session-chrome .ops-v2-backdrop,
body.ops-v2-hide-session-chrome .ops-v2-sidebar {
	display: none !important;
}

body.ops-v2-hide-session-chrome .ops-v2-shell,
body.ops-v2-layout.ops-v2-hide-session-chrome .ops-v2-shell {
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 0;
	height: 100%;
	min-height: 0;
}

body.ops-v2-hide-session-chrome .ops-v2-chat-panel {
	border-radius: 0;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

body.ops-v2-hide-session-chrome .ops-v2-messages,
body.ops-v2-hide-session-chrome .ops-v2-raw-panel {
	min-height: 0;
	overflow: auto;
}

body.ops-v2-hide-session-chrome .ops-v2-chat-header {
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.62rem;
}

body.ops-v2-hide-session-chrome .ops-v2-chat-header {
	justify-content: flex-start;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

body.ops-v2-hide-session-chrome .ops-v2-header-actions {
	margin-left: auto;
}

body.ops-v2-hide-session-chrome .ops-v2-chat-header-main {
	display: none;
}

body.ops-v2-hide-session-chrome .ops-v2-view-tabs {
	padding: 0.16rem;
}

body.ops-v2-hide-session-chrome .ops-v2-view-select {
	min-width: 7.4rem;
	font-size: 0.75rem;
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
}

body.ops-v2-hide-session-chrome .ops-v2-session-provider-meta {
	gap: 0.28rem;
	min-width: 0;
}

body.ops-v2-hide-session-chrome .ops-v2-conversation-model-summary {
	max-width: 13.8rem;
	font-size: 0.75rem;
	padding: 0.2rem 0.44rem;
}

body.ops-v2-hide-session-chrome .ops-v2-conversation-meta-menu-btn {
	width: 1.85rem;
	height: 1.85rem;
}

body.ops-v2-hide-session-chrome .ops-v2-header-actions {
	gap: 0.28rem;
}

body.ops-v2-hide-session-chrome .ops-v2-status {
	font-size: 0.66rem;
	padding: 0.18rem 0.42rem;
}

@media (max-width: 980px) {
	body.ops-v2-hide-session-chrome .ops-v2-layout {
		min-height: 100dvh;
		height: 100dvh;
	}

	body.ops-v2-hide-session-chrome .ops-v2-shell {
		grid-template-columns: 1fr !important;
		gap: 0;
	}
}

/* Keep timeline/main action buttons from stacking when panel width shrinks.
   Preserve button size and allow horizontal scroll instead of wrapping. */
#opsV2MainActions,
#opsV2SessionActionsGroup,
#opsV2DemoActionsGroup {
	flex-wrap: nowrap !important;
}

#opsV2MainActions {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

#opsV2SessionActionsGroup,
#opsV2DemoActionsGroup {
	min-width: max-content;
}

#opsV2SessionActionsGroup .btn,
#opsV2DemoActionsGroup .btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

.ops-v2-message.ops-v2-message-custom-label[data-display-label="System2"],
.ops-v2-message.ops-v2-message-custom-label[data-display-label="System 2"],
.ops-v2-message.ops-v2-message-custom-label[data-display-label="Level2"],
.ops-v2-message.ops-v2-message-custom-label[data-display-label="Level 2"] {
	border-left-color: #1d4ed8;
	background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.ops-v2-message.ops-v2-message-custom-label[data-display-label="System2"] .ops-v2-message-title,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="System 2"] .ops-v2-message-title,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="Level2"] .ops-v2-message-title,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="Level 2"] .ops-v2-message-title {
	color: #1e3a8a;
}

.ops-v2-message.ops-v2-message-custom-label[data-display-label="System2"] .ops-v2-message-content,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="System2"] .ops-v2-markdown-body,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="System 2"] .ops-v2-message-content,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="System 2"] .ops-v2-markdown-body,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="Level2"] .ops-v2-message-content,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="Level2"] .ops-v2-markdown-body,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="Level 2"] .ops-v2-message-content,
.ops-v2-message.ops-v2-message-custom-label[data-display-label="Level 2"] .ops-v2-markdown-body {
	color: #1f2937;
}

/* ProtoScript timeline fence highlighting emphasis */
.ops-v2-markdown-code-block.cm-s-default .cm-keyword { color: #7c3aed; font-weight: 600; }
.ops-v2-markdown-code-block.cm-s-default .cm-attribute { color: #0ea5e9; font-weight: 600; }
.ops-v2-markdown-code-block.cm-s-default .cm-builtin { color: #d97706; font-weight: 600; }
.ops-v2-markdown-code-block.cm-s-default .cm-string { color: #b91c1c; }
.ops-v2-markdown-code-block.cm-s-default .cm-comment { color: #6b7280; font-style: italic; }
