﻿.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-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-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-empty {
	padding: 0.7rem;
	font-size: 0.85rem;
	color: #64748b;
	text-align: center;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
}

.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,
#opsV2RawSessionPanel {
	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;
	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;
}

#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;
}

@supports selector(:has(*)) {
	.ops-v2-chat-panel:has(#btnOpsV2ViewMessages.active) #opsV2MainActions {
		display: flex !important;
	}
}

#opsV2MainActions #ddlOpsV2SessionJump {
	flex: 1 1 420px;
	min-width: 260px;
	max-width: 100% !important;
}

#opsV2MainActions #opsV2CompactionMeta {
	display: block;
	flex: 1 1 260px;
	min-width: 220px;
	white-space: normal;
	overflow-wrap: anywhere;
}

#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;
}

.ops-v2-view-tabs {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	padding: 0.24rem;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #ffffff;
}

.ops-v2-view-tab {
	border: 0;
	background: transparent;
	color: #334155;
	font-size: 0.77rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	transition: background-color 0.14s ease, color 0.14s ease;
}

.ops-v2-view-tab:hover {
	background: #eef2f7;
}

.ops-v2-view-tab.active {
	background: #2563eb;
	color: #ffffff;
}

.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;
	top: calc(100% + 0.4rem);
	z-index: 18;
	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 {
	border-color: #0d9488;
	background: #e6fffb;
	color: #0f766e;
}

.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-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-codex-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-codex-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-codex-section-toggle:hover {
	background: #f8fafc;
}

.ops-v2-codex-section-icon {
	font-family: "Consolas", "Courier New", monospace;
	font-size: 0.72rem;
	color: #334155;
	min-width: 1.4rem;
}

.ops-v2-codex-section-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1f2937;
}

.ops-v2-codex-section-status {
	margin-left: auto;
	font-size: 0.78rem;
	font-weight: 600;
	color: #64748b;
	white-space: nowrap;
}

.ops-v2-codex-section-body {
	padding: 0.05rem 0.55rem 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ops-v2-codex-section.collapsed .ops-v2-codex-section-body {
	display: none;
}

.ops-v2-codex-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-codex-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-codex-section-bottom-toggle:hover {
	background: #dbeafe;
	border-color: #93c5fd;
	color: #1e3a8a;
	transform: translateY(0);
}

.ops-v2-codex-section-bottom-toggle:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 1px;
}

.ops-v2-codex-section.collapsed .ops-v2-codex-section-bottom {
	display: none;
}

.ops-v2-codex-section.completed {
	background: #f8fafc;
	border-color: #cbd5e1;
	border-left-color: #94a3b8;
}

.ops-v2-codex-section.completed .ops-v2-codex-section-title {
	color: #334155;
}

.ops-v2-codex-section.completed .ops-v2-codex-section-status {
	color: #334155;
}

.ops-v2-codex-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: 2.5rem;
	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.tool {
	border-left-color: #f59e0b;
}

.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.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;
}

.ops-v2-message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.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.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-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-message-content.format-text {
	white-space: pre-wrap;
}

.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-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: absolute;
	left: 50%;
	bottom: 6.65rem;
	transform: translateX(-50%);
	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);
	z-index: 3;
}

.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-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-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: flex-end;
	margin-top: 0.5rem;
	gap: 0.45rem;
	padding-right: 0.1rem;
}

.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.5rem;
	margin: 0.5rem 0.75rem 0;
	padding: 0.45rem 0.65rem;
	border: 1px solid #99f6e4;
	border-radius: 10px;
	background: #ecfeff;
	color: #155e75;
	font-size: 0.82rem;
	line-height: 1.3;
}

.ops-v2-timeline-selection-indicator .header {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.ops-v2-timeline-selection-indicator .file {
	font-weight: 700;
}

.ops-v2-timeline-selection-indicator .meta {
	opacity: 0.95;
	white-space: nowrap;
}

.ops-v2-timeline-selection-indicator .dismiss {
	margin-left: auto;
	width: 1.15rem;
	height: 1.15rem;
	min-width: 1.15rem;
	padding: 0;
	border: 1px solid #67e8f9;
	border-radius: 999px;
	background: #cffafe;
	color: #155e75;
	font-size: 0.82rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.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-textarea {
	min-height: 7rem;
	resize: vertical;
}

.ops-v2-settings-actions {
	display: flex;
	gap: 0.45rem;
}

.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-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;
}

#opsV2StartupFailoverError {
	color: #991b1b;
	font-weight: 600;
}

.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: fixed;
	top: 0.85rem;
	left: 0.85rem;
	z-index: 15;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: #0f172a;
	padding: 0.35rem 0.58rem;
	font-size: 0.78rem;
	font-weight: 700;
	align-items: center;
	gap: 0.3rem;
}

.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-chat-header {
		flex-direction: column;
		align-items: stretch;
		gap: 0.45rem;
		padding: 0.55rem 0.6rem;
		padding-left: 4.6rem;
	}

	.ops-v2-chat-header-main {
		width: 100%;
	}

	.ops-v2-view-tabs {
		align-self: flex-start;
	}

	.ops-v2-session-provider-meta {
		align-self: stretch;
		justify-content: space-between;
	}

	.ops-v2-conversation-model-summary {
		flex: 1 1 auto;
		max-width: none;
	}

	.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-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;
		gap: 0.35rem;
	}

	.ops-v2-header-actions .btn {
		min-width: 0;
		padding: 0.3rem 0.62rem;
	}

	.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-layout.mobile-sidebar-open .ops-v2-mobile-btn {
		opacity: 0;
		pointer-events: none;
	}

	.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-codex-section {
		margin-left: 0;
	}

	.ops-v2-codex-section .ops-v2-message {
		margin-left: 0;
	}

	.ops-v2-codex-section-body {
		padding-left: 0;
		padding-right: 0;
	}

	.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-codex-timeline .watcher-entry {
		padding: 0.45rem 0.55rem;
		padding-right: 0.7rem;
	}

	.ops-v2-messages .ops-v2-codex-timeline .watcher-turn-intermediate-wrap,
	.ops-v2-messages .ops-v2-codex-timeline .watcher-task-child {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}

	.ops-v2-messages .ops-v2-codex-timeline .watcher-entry-header {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 0.25rem 0.45rem;
	}

	.ops-v2-messages .ops-v2-codex-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 {
		position: fixed;
		left: 50%;
		bottom: 5.15rem;
		transform: translateX(-50%);
		width: 2.05rem;
		height: 2.05rem;
		z-index: 40;
	}

	.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;
		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: 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-codex-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-codex-timeline.ops-v2-codex-timeline-standalone {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-entry {
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-left-width: 4px;
	border-radius: 8px;
	padding: 0.55rem 0.7rem;
	padding-right: 2.5rem;
	position: relative;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-entry.user {
	border-left-color: #3b82f6;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-entry.assistant {
	border-left-color: #10b981;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-entry.tool {
	border-left-color: #f59e0b;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-entry.reasoning {
	border-left-color: #8b5cf6;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-entry.system {
	border-left-color: #6b7280;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-view-hidden {
	display: none !important;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-turn-block {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-turn-active {
	position: relative;
}

.ops-v2-messages .ops-v2-codex-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-codex-timeline .watcher-turn-intermediate {
	border-left-color: #f59e0b;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-turn-final {
	border-left-color: #10b981;
}

.ops-v2-messages .ops-v2-codex-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-codex-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-codex-timeline .watcher-entry-title {
	font-weight: 600;
	font-size: 0.9rem;
	color: #1f2937;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-entry-time {
	font-size: 0.78rem;
	color: #6b7280;
	white-space: nowrap;
}

.ops-v2-messages .ops-v2-codex-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-codex-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-codex-timeline .watcher-tool-body-block,
.ops-v2-messages .ops-v2-message .watcher-tool-body-block {
	margin: 0;
}

.ops-v2-messages .ops-v2-codex-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-codex-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-codex-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-codex-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-codex-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-codex-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-codex-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-codex-timeline .watcher-entry-image {
	width: 120px;
	height: 90px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #d1d5db;
	background: #f8fafc;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-entry-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ops-v2-messages .ops-v2-codex-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-codex-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-codex-timeline .watcher-inline-task {
	padding: 0.32rem 0.1rem;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-task-start {
	background: #f8fafc;
	border-left-color: #0ea5e9 !important;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-inline-task.watcher-task-boundary-clickable {
	cursor: pointer;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-inline-task.watcher-task-boundary-clickable:hover {
	background: #eff6ff;
}

.ops-v2-messages .ops-v2-codex-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-codex-timeline .watcher-inline-task.watcher-task-collapsed {
	background: #f1f5f9;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-task-end {
	background: #f8fafc;
	border-left-color: #94a3b8 !important;
}

.ops-v2-messages .ops-v2-codex-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-codex-timeline .watcher-inline-entry.watcher-task-child {
	padding-left: 0.5rem;
}

.ops-v2-messages .ops-v2-codex-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-codex-timeline .watcher-inline-title {
	font-weight: 600;
	color: #1f2937;
}

.ops-v2-messages .ops-v2-codex-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-codex-timeline .watcher-inline-task .watcher-inline-text {
	font-family: "Segoe UI", Tahoma, sans-serif;
	color: #334155;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-inline-action {
	border: 1px solid #fecaca;
	border-radius: 999px;
	background: #fff1f2;
	color: #991b1b;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.22rem 0.5rem;
	cursor: pointer;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-inline-action:hover {
	background: #ffe4e6;
	border-color: #fda4af;
}

.ops-v2-messages .ops-v2-codex-timeline .watcher-inline-action:focus-visible {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}

.ops-v2-messages .ops-v2-codex-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;
	}
}
