.vrt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	border: none;
	border-radius: var(--radius);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.vrt-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Sizes */

.vrt-btn--sm {
	padding: var(--space-1) var(--space-2);
	font-size: var(--text-xs);
}

.vrt-btn--md {
	padding: var(--space-2) var(--space-3);
	font-size: var(--text-sm);
}

.vrt-btn--lg {
	padding: var(--space-3) var(--space-4);
	font-size: var(--text-base);
}

/* Variants */

.vrt-btn--primary {
	background: var(--primary);
	color: white;
}

.vrt-btn--primary:hover:not(:disabled) {
	background: var(--primary-hover);
}

.vrt-btn--secondary {
	background: var(--bg-input);
	color: var(--text-main);
	border: 1px solid var(--border);
}

.vrt-btn--secondary:hover:not(:disabled) {
	background: var(--bg-hover);
	border-color: var(--border-subtle);
}

.vrt-btn--ghost {
	background: transparent;
	color: var(--text-muted);
}

.vrt-btn--ghost:hover:not(:disabled) {
	background: var(--bg-input);
	color: var(--text-main);
}

.vrt-btn--danger {
	background: var(--danger);
	color: white;
}

.vrt-btn--danger:hover:not(:disabled) {
	background: #dc2626;
}

/* Loader */

.vrt-btn__loader {
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: vrt-spin 0.8s linear infinite;
}

@keyframes vrt-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Input */

.vrt-input {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text-main);
	font-size: var(--text-sm);
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}

.vrt-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px var(--primary-dim);
}

.vrt-input::placeholder {
	color: var(--text-dim);
}

.vrt-input--error {
	border-color: var(--danger);
}

.vrt-input--error:focus {
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Separator */

.vrt-separator {
	width: 100%;
	height: 1px;
	background: var(--border, var(--bg-input));
	margin: 6px 0;
	flex-shrink: 0;
}

.vrt-separator--vertical {
	width: 1px;
	height: auto;
	align-self: stretch;
	margin: 0 6px;
}

/* TextInput (compact, used in function-plugin rows) */

.vrt-text-input {
	width: 100%;
	min-width: 0;
	flex: 1;
	height: 22px;
	padding: 0 6px;
	box-sizing: border-box;
	background: var(--bg-deep);
	border: 1px solid var(--border-subtle);
	border-radius: 0;
	color: var(--text-main);
	font-size: 11px;
	font-family: inherit;
	transition: border-color 0.15s;
}

.vrt-text-input:focus {
	outline: none;
	border-color: var(--primary);
}

.vrt-text-input::placeholder {
	color: var(--text-dim);
}

.vrt-text-input--multiline {
	height: auto;
	min-height: 22px;
	padding: 4px 6px;
	resize: vertical;
}

.vrt-text-input--error {
	border-color: var(--danger);
}

/* Card */

.vrt-card {
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-4);
}

.vrt-card--with-header {
	padding: 0;
	overflow: hidden;
}

.vrt-card__header {
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	background: var(--bg-header);
	color: var(--text-main);
	font-size: var(--text-md);
	font-weight: 600;
}

.vrt-card__body {
	padding: var(--space-4);
}

.vrt-card--elevated {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Form field wrapper */

.vrt-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
}

.vrt-label {
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--text-muted);
}

/* Badge */

.vrt-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	border-radius: 99px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	border: 1px solid transparent;
}

.vrt-badge::before {
	content: "●";
	font-size: 8px;
	line-height: 1;
}

.vrt-badge--online,
.vrt-badge--active {
	background: rgba(34, 197, 94, 0.15);
	border-color: rgba(34, 197, 94, 0.35);
	color: #4ade80;
}

.vrt-badge--offline,
.vrt-badge--inactive {
	background: transparent;
	border-color: var(--border);
	color: var(--text-muted);
}

.vrt-badge--warning {
	background: rgba(234, 179, 8, 0.15);
	border-color: rgba(234, 179, 8, 0.35);
	color: #facc15;
}

/* Panel */

.vrt-panel {
	display: flex;
	flex-direction: column;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	overflow: hidden;
}

.vrt-right-panel {
	width: 300px;
	min-width: 200px;
	flex-shrink: 0;
	border-left: 1px solid var(--border);
}

.vrt-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	padding: var(--space-3);
	background: var(--bg-header);
	border-bottom: 1px solid var(--border);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--text-muted);
}

.vrt-panel__header-title {
	flex: 0 0 auto;
}

.vrt-panel__header-action {
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.vrt-panel__content {
	flex: 1;
	overflow: auto;
	padding: var(--space-2);
}

/* Toggle */

.vrt-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	cursor: pointer;
}

.vrt-toggle__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.vrt-toggle__track {
	position: relative;
	width: 26px;
	height: 14px;
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 7px;
	transition: all 0.15s;
}

.vrt-toggle__track::after {
	content: "";
	position: absolute;
	top: 1px;
	left: 1px;
	width: 10px;
	height: 10px;
	background: var(--text-muted);
	border-radius: 50%;
	transition:
		transform 0.15s,
		background 0.15s;
}

.vrt-toggle__input:checked + .vrt-toggle__track {
	background: var(--primary);
	border-color: var(--primary);
}

.vrt-toggle__input:checked + .vrt-toggle__track::after {
	transform: translateX(12px);
	background: white;
}

.vrt-toggle__input:focus + .vrt-toggle__track {
	box-shadow: 0 0 0 2px var(--primary-dim);
}

.vrt-toggle__label {
	font-size: var(--text-sm);
	color: var(--text-muted);
}

/* ToggleButton (OFF/ON button style) */

.vrt-toggle-btn {
	flex: 1;
	min-width: 0;
	height: 22px;
	border: 1px solid var(--border-subtle);
	background: #27272a;
	color: var(--text-dim);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background 0.15s,
		border-color 0.15s,
		color 0.15s;
}

.vrt-toggle-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.vrt-toggle-btn--off:hover:not(:disabled) {
	background: #34343a;
	border-color: #64748b;
	color: var(--text-main);
}

.vrt-toggle-btn--on {
	background: #f59e0b;
	border-color: #f59e0b;
	color: #1c1917;
}

.vrt-toggle-btn--on:hover:not(:disabled) {
	background: #fbbf24;
	border-color: #fbbf24;
}

/* ── FieldRow ─────────────────────────────────────────────────────────── */

.vrt-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	min-height: 26px;
	width: 100%;
}

.vrt-field-label {
	color: var(--text-dim);
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vrt-field-control {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}

.vrt-field-label--draggable {
	cursor: ew-resize;
	user-select: none;
}

.animatable-animate-dot--disabled {
	cursor: default;
	pointer-events: none;
	border-color: transparent;
}

/* ── TripleFieldRow / PairFieldRow ─────────────────────────────────────── */

.vrt-triple-field {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 3px 10px;
	width: 100%;
	min-height: 26px;
}

.vrt-triple-field__title-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 6px;
	height: 14px;
}

.vrt-triple-field__title {
	background: none;
	border: none;
	padding: 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
	cursor: default;
	font-family: inherit;
}

.vrt-triple-field__title--button {
	cursor: default;
}

.vrt-triple-field__title--modified {
	color: var(--primary-hover);
}

.vrt-triple-field__title--button.vrt-triple-field__title--modified {
	cursor: pointer;
}

.vrt-triple-field__title--button.vrt-triple-field__title--modified:hover {
	color: var(--primary-light);
}

.vrt-triple-field__title-control {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}

.vrt-triple-field__body {
	display: flex;
	gap: 2px;
	width: 100%;
}

.vrt-triple-field__axis {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 1px;
}

.vrt-triple-field__axis .vrt-field-label--draggable {
	width: 8px;
	min-width: 8px;
	text-align: center;
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 600;
	color: var(--text-dim);
	padding: 2px 0;
	border-radius: 2px;
}

.vrt-triple-field__axis .vrt-field-label--modified {
	color: var(--primary-hover);
}

.vrt-triple-field__axis .vrt-toggle-btn {
	min-width: 0;
}

/* ── PanelSection ─────────────────────────────────────────────────────── */

.panel-section {
	border-bottom: 1px solid var(--bg-input);
}

.panel-section:last-child {
	border-bottom: none;
}

.panel-section__trigger {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 12px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--text-main);
}

.panel-section__trigger:hover {
	background-color: var(--bg-input);
}

.panel-section__title {
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.panel-section__chevron {
	color: var(--text-dim);
	transition: transform 200ms;
	flex-shrink: 0;
}

.panel-section__chevron--open {
	transform: rotate(180deg);
}

.panel-section__body {
	padding: 0;
}

/* ── Section ──────────────────────────────────────────────────────────── */

.vrt-section {
	border-bottom: 1px solid var(--bg-input);
}

.vrt-section:last-child {
	border-bottom: none;
}

.vrt-section__title {
	padding: 6px 10px 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--text-muted);
	letter-spacing: 0.02em;
}

.vrt-section__body {
	padding: 0;
}

/* ── NumInput ──────────────────────────────────────────────────────────── */

.num-input-label {
	cursor: ew-resize;
	user-select: none;
	flex-shrink: 0;
	position: relative;
	display: inline-flex;
	align-items: center;
}

.num-input-animate-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	border: 1px solid var(--accent);
	background: transparent;
	cursor: pointer;
	opacity: 0;
	transition:
		opacity 150ms,
		background 150ms;
	flex-shrink: 0;
	margin-right: 3px;
}

.num-input-field:hover .num-input-animate-dot {
	opacity: 1;
}

.num-input-animate-dot:hover {
	background: var(--accent);
}

.num-input-control {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.vrt-triple-field__axis .num-input-control {
	flex: 1;
	min-width: 0;
	width: 100%;
}

.num-input-value {
	color: var(--accent);
	transition: color 100ms;
	padding: 2px 6px;
	border-radius: 0;
	font-size: 11px;
	height: auto;
}

.num-input-control .num-input-value {
	margin-right: 0;
	height: 22px;
	padding: 0 6px;
	line-height: 22px;
	min-width: 0;
	flex: 1 1 0;
	width: 0;
	max-width: 100%;
}

.num-input-value:focus {
	color: var(--text-main);
}

.num-input-value:disabled {
	opacity: 0.45;
	cursor: default;
}

.num-input-stepper {
	display: flex;
	flex-direction: column;
	flex: 0 0 12px;
	width: 12px;
	min-width: 12px;
	margin: 2px 2px 2px 0;
}

.num-input-step {
	flex: 1 1 0;
	min-height: 0;
	padding: 0;
	border: 1px solid var(--border-subtle);
	border-left: 0;
	border-radius: 0;
	background: var(--bg-input);
	color: var(--text-dim);
	font-size: 7px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.num-input-step--up {
	border-bottom: 0;
}

.num-input-step:hover:not(:disabled) {
	background: var(--border-subtle);
	color: var(--text-main);
}

.num-input-step:active:not(:disabled) {
	background: var(--primary-dim);
	color: var(--primary-light);
}

.num-input-step:disabled {
	opacity: 0.35;
	cursor: default;
}

.num-input-step svg {
	pointer-events: none;
}

.num-input-field {
	display: flex;
	align-items: center;
	gap: 4px;
}

.num-input-field--no-label {
	flex: 1;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

/* ── NumInput — integrated frame ──────────────────────────────────────────
   The value + stepper share a single border so the arrows read as part of the
   input, not a detached box. High-specificity selectors so this wins over the
   per-variant overrides regardless of stylesheet order. */

.num-input-field .num-input-control {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-input);
	overflow: hidden;
}

.num-input-field .num-input-control:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px var(--primary-dim);
}

.num-input-field .num-input-control .num-input-value {
	border: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	margin: 0;
}

.num-input-field .num-input-control .num-input-value:focus {
	border: 0;
	box-shadow: none;
	outline: none;
}

.num-input-field .num-input-control .num-input-stepper {
	margin: 0;
	border-left: 1px solid var(--border);
}

.num-input-field .num-input-control .num-input-step {
	border: 0;
}

.num-input-field .num-input-control .num-input-step--up {
	border-bottom: 1px solid var(--border);
}

/* ── Select — custom dropdown ──────────────────────────────────────── */

.vrt-select {
	position: relative;
	display: inline-flex;
	flex: 1;
	min-width: 0;
}

.vrt-select__trigger {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	height: 22px;
	padding: 0;
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text-main);
	font: inherit;
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	outline: none;
	text-align: left;
}

.vrt-select__trigger:hover:not(:disabled) {
	background: var(--bg-hover);
}

.vrt-select__trigger:focus-visible,
.vrt-select--open .vrt-select__trigger {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px var(--primary-dim);
}

.vrt-select__trigger:disabled {
	opacity: 0.45;
	cursor: default;
}

.vrt-select__value {
	flex: 1;
	min-width: 0;
	padding: 0 7px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-select__chevron {
	flex-shrink: 0;
	width: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-faint);
	pointer-events: none;
	transition: transform 0.15s;
}

.vrt-select--open .vrt-select__chevron {
	transform: rotate(180deg);
	color: var(--primary-light);
}

.vrt-select__trigger:hover:not(:disabled) .vrt-select__chevron {
	color: var(--text-dim);
}

/* Dropdown overlay */

.vrt-select__dropdown {
	position: absolute;
	top: calc(100% + 3px);
	left: 0;
	right: 0;
	z-index: 1000;
	min-width: 100%;
	max-height: 220px;
	overflow-y: auto;
	padding: 3px;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
	animation: vrt-dropdown-in 0.1s ease-out;
}

.vrt-select__dropdown::-webkit-scrollbar {
	width: 3px;
}

.vrt-select__dropdown::-webkit-scrollbar-thumb {
	background: var(--border);
	border-radius: 2px;
}

.vrt-select__option {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 4px 7px;
	font-size: var(--text-sm);
	color: var(--text-main);
	background: transparent;
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	text-align: left;
}

.vrt-select__option:hover,
.vrt-select__option--focused {
	background: var(--bg-hover);
}

.vrt-select__option--selected {
	background: var(--primary-dim);
}

.vrt-select__option--selected:hover,
.vrt-select__option--selected.vrt-select__option--focused {
	background: color-mix(in srgb, var(--primary-dim) 85%, white);
}

.vrt-select__option:disabled {
	opacity: 0.3;
	cursor: default;
}

@keyframes vrt-dropdown-in {
	from {
		opacity: 0;
		transform: translateY(-3px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── DropdownMenu (Radix-based) ───────────────────────────────────── */

.vrt-dropdown-menu-content {
	min-width: 160px;
	padding: 4px;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	animation: vrt-dropdown-in 0.12s ease-out;
}

.vrt-dropdown-menu-item {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 6px 10px;
	font-size: var(--text-sm);
	color: var(--text-main);
	background: transparent;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	text-align: left;
	outline: none;
}

.vrt-dropdown-menu-item:hover,
.vrt-dropdown-menu-item[data-highlighted] {
	background: var(--bg-hover);
	outline: none;
}

.vrt-dropdown-menu-item--danger {
	color: var(--danger);
}

.vrt-dropdown-menu-item--danger:hover,
.vrt-dropdown-menu-item--danger[data-highlighted] {
	background: rgba(239, 68, 68, 0.12);
}

.vrt-dropdown-menu-item[data-disabled] {
	opacity: 0.35;
	cursor: default;
}

.vrt-dropdown-menu-separator {
	height: 1px;
	margin: 4px 8px;
	background: var(--border);
}

/* ── Transform Controls ────────────────────────────────────────────────── */

.transform-fields {
	padding: 6px 0 8px;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.transform-separator {
	background-color: var(--bg-input);
	margin: 6px 10px;
	width: calc(100% - 20px);
}

.transform-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 2px 0;
}

.transform-section-label {
	background: none;
	border: none;
	padding: 0;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dim);
	text-align: left;
	cursor: default;
}

.transform-section-label--modified {
	color: var(--primary-hover);
	cursor: pointer;
}

.transform-section-label--modified:hover {
	color: var(--primary-light);
}

.transform-row {
	display: flex;
	gap: 4px;
}

.property-field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.property-field .num-input-label {
	font-size: 10px;
	font-weight: 600;
	color: var(--text-dim);
	width: 14px;
	text-align: center;
	padding: 2px 0;
	border-radius: 2px;
}

.property-field .num-input-label:hover {
	color: var(--text-main);
	background-color: var(--border-subtle);
}

.property-field .num-input-label--modified {
	color: var(--primary-hover);
}

.property-field .num-input-label--modified:hover {
	color: var(--primary-light);
	background-color: var(--primary-dim);
}

.property-field .num-input-value {
	flex: 1;
	min-width: 0;
	height: 12px;
	text-align: right;
	margin: 2px;
}

.transform-btn-row {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 3px 10px 4px;
}

.transform-btn-row-label {
	font-size: 10px;
	font-weight: 600;
	color: var(--text-dim);
	width: 18px;
	flex-shrink: 0;
	text-align: left;
}

.transform-btn-group {
	display: flex;
	gap: 2px;
}

.transform-btn-group--full {
	width: calc(100% - 20px);
	margin: 3px 10px 4px;
}

.transform-btn-group--full .transform-btn--wide {
	flex: 1;
}

.transform-btn {
	padding: 2px 5px;
	font-size: 10px;
	font-weight: 600;
	background: var(--bg-input);
	border: 1px solid var(--border-subtle);
	border-radius: 0;
	color: var(--text-dim);
	cursor: pointer;
	white-space: nowrap;
	transition:
		background 120ms,
		color 120ms,
		border-color 120ms;
}

.transform-btn:hover:not(:disabled) {
	background: var(--border-subtle);
	color: var(--text-main);
}

.transform-btn--active {
	background: var(--primary-dim);
	border-color: var(--primary);
	color: var(--primary-hover);
}

.transform-btn--active:hover {
	background: var(--primary-dim);
	color: var(--primary-light);
}

.transform-btn--disabled,
.transform-btn:disabled {
	color: var(--border-subtle);
	border-color: var(--bg-input);
	cursor: not-allowed;
	opacity: 0.6;
}

.transform-tabs {
	display: flex;
	gap: 2px;
}

.transform-tab-btn {
	flex: 1;
	padding: 3px 0;
	font-size: 10px;
	font-weight: 600;
	background: var(--bg-input);
	border: 1px solid var(--border-subtle);
	border-radius: 0;
	color: var(--text-dim);
	cursor: pointer;
	text-align: center;
	transition:
		background 120ms,
		color 120ms;
}

.transform-tab-btn:hover {
	background: var(--border-subtle);
	color: var(--text-main);
}

.transform-tab-btn--active {
	background: var(--primary-dim);
	border-color: var(--primary);
	color: var(--primary-hover);
}

.transform-tab-btn--active:hover {
	background: var(--primary-dim);
	color: var(--primary-light);
}

/* ── YmirFileInfo ──────────────────────────────────────────────────────── */

.vrt-file-info {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.vrt-file-info__header {
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-main);
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}

.vrt-file-info__body {
	flex: 1;
	overflow-y: auto;
	padding: 10px;
}

.vrt-file-info__body::-webkit-scrollbar {
	width: 3px;
}

.vrt-file-info__body::-webkit-scrollbar-thumb {
	background: var(--border-subtle);
	border-radius: 2px;
}

.vrt-file-info__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	gap: 8px;
	color: var(--text-dim);
	font-size: 12px;
	text-align: center;
}

.vrt-file-info__empty span {
	font-size: 24px;
}

.vrt-file-info__preview {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 8px 0;
}

.vrt-file-info__thumb {
	max-width: 120px;
	max-height: 120px;
	object-fit: contain;
	border-radius: 4px;
}

.vrt-file-info__icon {
	font-size: 36px;
}

.vrt-file-info__no-thumb {
	font-size: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vrt-file-info__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-main);
	text-align: center;
	padding: 4px 0 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-file-info__table {
	width: 100%;
	border-collapse: collapse;
}

.vrt-file-info__table tr {
	border-bottom: 1px solid var(--bg-input);
}

.vrt-file-info__table td {
	padding: 4px 0;
	font-size: 10px;
	vertical-align: top;
}

.vrt-file-info__table td:first-child {
	color: var(--text-dim);
	width: 80px;
	flex-shrink: 0;
}

.vrt-file-info__table td:last-child {
	color: var(--text-main);
	word-break: break-all;
}

.vrt-file-info__id {
	font-family: monospace;
	font-size: 9px;
	color: var(--accent);
}

.vrt-file-info__copy-btn {
	background: none;
	border: 1px solid var(--border-subtle);
	color: var(--text-dim);
	cursor: pointer;
	font-size: 10px;
	padding: 1px 5px;
	border-radius: 2px;
	line-height: 1.2;
}

.vrt-file-info__copy-btn:hover {
	background: var(--bg-hover);
	color: var(--text-main);
}

.vrt-file-info__actions {
	display: flex;
	gap: 4px;
	padding-top: 10px;
	flex-wrap: wrap;
}

.vrt-file-info__btn {
	flex: 1;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 600;
	background: var(--bg-input);
	border: 1px solid var(--border-subtle);
	border-radius: 0;
	color: var(--text-muted);
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
	transition:
		background 120ms,
		color 120ms;
}

.vrt-file-info__btn:hover {
	background: var(--border-subtle);
	color: var(--text-main);
}

.vrt-file-info__btn--accent {
	border-color: var(--primary);
	color: var(--primary-hover);
}

.vrt-file-info__btn--accent:hover {
	background: var(--primary-dim);
	color: var(--primary-light);
}

.vrt-file-info__btn--danger {
	border-color: transparent;
	color: #f87171;
}

.vrt-file-info__btn--danger:hover {
	background: rgba(239, 68, 68, 0.15);
	color: #fca5a5;
}

/* ── Animatable fields (Select, TextInput, Toggle) ──────────────────────── */

.animatable-field {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 22px;
}

.animatable-field-label {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	font-size: var(--text-xs);
	color: var(--text-muted);
	user-select: none;
	cursor: default;
}

.animatable-animate-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	border: 1px solid var(--accent);
	background: transparent;
	cursor: pointer;
	opacity: 0;
	transition:
		opacity 150ms,
		background 150ms;
	flex-shrink: 0;
	margin-right: 3px;
}

.animatable-field:hover .animatable-animate-dot {
	opacity: 1;
}

.animatable-animate-dot:hover {
	background: var(--accent);
}

.vrt-field-row:hover .animatable-animate-dot,
.vrt-triple-field__title-row:hover .animatable-animate-dot {
	opacity: 1;
}

.animatable-select {
	flex: 1;
	min-width: 0;
	height: 22px;
	background: var(--bg-deep);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	color: var(--text-main);
	font-size: var(--text-xs);
	padding: 0 4px;
	cursor: pointer;
}

.animatable-select:focus {
	border-color: var(--accent);
	outline: none;
}

.animatable-select:disabled {
	opacity: 0.45;
	cursor: default;
}

.animatable-text-input {
	flex: 1;
	min-width: 0;
	height: 22px;
	background: var(--bg-deep);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	color: var(--text-main);
	font-size: var(--text-xs);
	padding: 0 6px;
}

.animatable-text-input:focus {
	border-color: var(--accent);
	outline: none;
}

.animatable-text-input:disabled {
	opacity: 0.45;
	cursor: default;
}

.animatable-toggle-row {
	flex: 1;
	display: flex;
	align-items: center;
}

.animatable-toggle-row input[type="checkbox"] {
	width: 14px;
	height: 14px;
	accent-color: var(--accent);
	cursor: pointer;
}

.animatable-toggle-row input[type="checkbox"]:disabled {
	opacity: 0.45;
	cursor: default;
}

/* ── StageToolbar ───────────────────────────────────────────────────────── */

.stage-toolbar {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 3px 6px;
	background: var(--bg-dark);
	flex-shrink: 0;
	min-height: 30px;
	overflow-x: auto;
}

.stage-tb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 3px 5px;
	border-radius: 0;
	font-size: 11px;
	white-space: nowrap;
}

.stage-tb-btn:hover:not(:disabled) {
	background: var(--border-subtle);
	color: var(--text-main);
}

.stage-tb-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.stage-tb-btn.active {
	color: var(--primary-hover);
}

.stage-tb-play {
	color: var(--primary-hover);
}

.stage-tb-play.active {
	color: var(--accent-hover);
}

.stage-tb-all {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 2px 6px;
}

.stage-tb-all.active {
	color: #fff;
	background: var(--primary-hover);
}

.stage-tb-label {
	font-weight: 600;
	letter-spacing: 0.03em;
}

.stage-tb-sep {
	width: 1px;
	height: 16px;
	background: var(--border-subtle);
	margin: 0 3px;
	flex-shrink: 0;
}

.stage-tb-set-key {
	color: var(--accent-hover);
	border: 1px solid #78350f;
	border-radius: 0;
	padding: 2px 7px;
	gap: 4px;
	font-weight: 600;
}

.stage-tb-set-key:hover:not(:disabled) {
	background: #451a03;
	border-color: var(--accent-hover);
	color: #fde68a;
}

.stage-tb-set-key:disabled {
	color: var(--text-faint);
	border-color: var(--bg-input);
	opacity: 1;
}

.stage-time-secs {
	font-family: monospace;
	font-size: 11px;
	color: var(--text-dim);
}

.stage-num-field {
	display: flex;
	align-items: center;
	gap: 2px;
	min-width: 58px;
}

.stage-num-field .num-input-label {
	min-width: 14px;
	padding: 1px 2px;
	border-radius: 0;
	color: var(--text-dim);
	font-size: 10px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.stage-num-field .num-input-label:hover {
	background: var(--border-subtle);
	color: var(--text-main);
}

.stage-num-field .num-input-value {
	flex: 1;
	min-width: 0;
	width: 52px;
	height: 14px;
	margin: 2px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.stage-num-field--time .num-input-value {
	width: 58px;
}

.stage-speed-group {
	display: flex;
	gap: 1px;
}

.stage-speed-btn {
	padding: 2px 4px;
	font-size: 10px;
}

/* ── Segment button group (radio-style) ──────────────────────────── */

.vrt-segmented-group,
.geo-seg-group {
	display: flex;
	gap: 3px;
	width: auto;
	margin: 3px 10px 4px;
}

.transform-btn-row .vrt-segmented-group {
	flex: 1;
	margin: 0;
}

.vrt-segmented-btn,
.geo-seg-btn {
	flex: 1;
	background: var(--bg-input);
	border: 1px solid var(--border-subtle);
	border-radius: 0;
	color: var(--text-dim);
	cursor: pointer;
	font-size: var(--text-xs);
	padding: 3px 0;
	text-align: center;
	transition:
		background 120ms,
		color 120ms,
		border-color 120ms;
}

.vrt-segmented-btn--active,
.geo-seg-btn--active {
	background: var(--primary-dim);
	border-color: var(--primary);
	color: var(--primary-hover);
}

.vrt-segmented-btn:hover:not(.vrt-segmented-btn--active):not(:disabled),
.geo-seg-btn:hover:not(.geo-seg-btn--active):not(:disabled) {
	border-color: var(--text-dim);
	color: var(--text-muted);
}

.vrt-segmented-btn:disabled,
.geo-seg-btn:disabled {
	color: var(--border-subtle);
	border-color: var(--bg-input);
	cursor: not-allowed;
	opacity: 0.6;
}

/* ── Checkbox ──────────────────────────────────────────────────────── */

.vrt-checkbox {
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1.5px solid var(--border-subtle);
	border-radius: 3px;
	cursor: pointer;
	flex-shrink: 0;
	transition:
		background 0.12s,
		border-color 0.12s;
}

.vrt-checkbox:hover {
	border-color: var(--text-faint);
}

.vrt-checkbox[data-state="checked"] {
	background: var(--primary);
	border-color: var(--primary);
}

.vrt-checkbox:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--primary-dim);
}

.vrt-checkbox-indicator {
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vrt-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	color: var(--text-main);
	font-size: var(--text-sm);
	min-height: 24px;
	user-select: none;
}

.vrt-checkbox-label:hover {
	color: var(--text-main);
}

.vrt-context-menu {
	min-width: 180px;
	background: var(--bg-deep, #1a1a2e);
	border: 1px solid var(--border-color, #2a2a3e);
	border-radius: 4px;
	padding: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
}

.vrt-context-menu__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	background: transparent;
	border: 0;
	border-radius: 3px;
	color: var(--text-primary, #e0e0e0);
	text-align: left;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
}

.vrt-context-menu__item:hover:not(:disabled),
.vrt-context-menu__item--active:not(:disabled) {
	background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}

.vrt-context-menu__item--disabled {
	color: var(--text-dim, #6a6a7a);
	cursor: not-allowed;
}

.vrt-context-menu__item--destructive {
	color: var(--accent, #e94560);
}

.vrt-context-menu__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.vrt-context-menu__label {
	flex: 1;
	white-space: nowrap;
}

/* ── Diagnostics primitives (Sparkline, HopBreakdownMeter, WaterfallBar, LatencyKPI, LiveLogStream) ── */

.vrt-sparkline {
	display: inline-flex;
	align-items: center;
	color: var(--primary, #60a5fa);
	line-height: 0;
}

.vrt-hop-meter {
	display: flex;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
	background: var(--bg-input, #0f172a);
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.vrt-hop-meter__segment {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 6px;
	min-width: 2px;
	color: #0b1220;
	font-size: 10px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	transition: filter 0.12s ease;
}

.vrt-hop-meter__segment:hover {
	filter: brightness(1.12);
}

.vrt-hop-meter__segment--slack {
	background: transparent;
	color: var(--text-dim, #94a3b8);
}

.vrt-hop-meter__segment--hotspot {
	box-shadow: inset 0 0 0 2px rgba(244, 63, 94, 0.85);
}

.vrt-hop-meter__label {
	text-shadow: 0 0 2px rgba(15, 23, 42, 0.45);
}

.vrt-waterfall {
	display: grid;
	grid-template-columns: var(--vrt-waterfall-label-w, 140px) 1fr 80px;
	gap: 4px;
	font-size: 11px;
	font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
	color: var(--text-main, #e2e8f0);
}

.vrt-waterfall__header {
	display: contents;
	font-weight: 600;
	color: var(--text-dim, #94a3b8);
}

.vrt-waterfall__header-bar {
	display: flex;
	justify-content: space-between;
	padding: 0 4px;
}

.vrt-waterfall__row {
	display: contents;
}

.vrt-waterfall__label {
	display: flex;
	align-items: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 6px;
}

.vrt-waterfall__track {
	position: relative;
	background: var(--bg-input, #0f172a);
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
	align-self: center;
	height: 100%;
}

.vrt-waterfall__bar {
	position: absolute;
	top: 2px;
	bottom: 2px;
	border-radius: 2px;
	opacity: 0.92;
}

.vrt-waterfall__bar--hotspot {
	box-shadow: 0 0 0 1.5px rgba(244, 63, 94, 0.85);
}

.vrt-waterfall__offset {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	color: var(--text-dim, #94a3b8);
}

.vrt-latency-kpi {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 96px;
	padding: 10px 12px;
	border-radius: 6px;
	background: var(--bg-panel, #1e293b);
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.vrt-latency-kpi__label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dim, #94a3b8);
}

.vrt-latency-kpi__value {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-main, #f8fafc);
	line-height: 1.1;
}

.vrt-latency-kpi__unit {
	font-size: 12px;
	margin-left: 3px;
	color: var(--text-dim, #94a3b8);
}

.vrt-latency-kpi__empty {
	color: var(--text-dim, #94a3b8);
}

.vrt-latency-kpi__delta {
	font-size: 11px;
	font-weight: 600;
}

.vrt-latency-kpi__delta--good {
	color: #34d399;
}

.vrt-latency-kpi__delta--bad {
	color: #f87171;
}

.vrt-latency-kpi__delta--neutral {
	color: var(--text-dim, #94a3b8);
}

.vrt-latency-kpi__caption {
	font-size: 10px;
	color: var(--text-dim, #94a3b8);
}

.vrt-latency-kpi--good {
	box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.vrt-latency-kpi--warn {
	box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.45);
}

.vrt-latency-kpi--bad {
	box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.55);
}

.vrt-latency-kpi--neutral {
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.vrt-log-stream {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
	font-size: 11px;
	color: var(--text-main, #e2e8f0);
}

.vrt-log-stream__toolbar {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.vrt-log-stream__btn {
	padding: 3px 8px;
	border-radius: 4px;
	border: 1px solid rgba(148, 163, 184, 0.25);
	background: var(--bg-input, #0f172a);
	color: var(--text-main, #e2e8f0);
	cursor: pointer;
	font-size: 11px;
}

.vrt-log-stream__btn:hover {
	border-color: rgba(148, 163, 184, 0.5);
}

.vrt-log-stream__btn--active {
	background: var(--primary, #3b82f6);
	border-color: var(--primary, #3b82f6);
	color: #fff;
}

.vrt-log-stream__chips {
	display: flex;
	gap: 3px;
}

.vrt-log-stream__chip {
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	border: 1px solid rgba(148, 163, 184, 0.25);
	background: transparent;
	color: var(--text-dim, #94a3b8);
	cursor: pointer;
	opacity: 0.55;
}

.vrt-log-stream__chip--active {
	opacity: 1;
}

.vrt-log-stream__chip--error.vrt-log-stream__chip--active {
	border-color: #f43f5e;
	color: #fda4af;
}

.vrt-log-stream__chip--warn.vrt-log-stream__chip--active {
	border-color: #f59e0b;
	color: #fcd34d;
}

.vrt-log-stream__chip--info.vrt-log-stream__chip--active {
	border-color: #60a5fa;
	color: #93c5fd;
}

.vrt-log-stream__chip--debug.vrt-log-stream__chip--active {
	border-color: #a78bfa;
	color: #c4b5fd;
}

.vrt-log-stream__chip--unknown.vrt-log-stream__chip--active {
	border-color: #94a3b8;
	color: #cbd5e1;
}

.vrt-log-stream__filter {
	flex: 1;
	min-width: 120px;
	padding: 3px 8px;
	border-radius: 4px;
	border: 1px solid rgba(148, 163, 184, 0.25);
	background: var(--bg-input, #0f172a);
	color: var(--text-main, #e2e8f0);
	font-size: 11px;
}

.vrt-log-stream__extra {
	margin-left: auto;
}

.vrt-log-stream__body {
	overflow-y: auto;
	background: var(--bg-input, #0f172a);
	border-radius: 4px;
	padding: 4px 0;
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.vrt-log-stream__empty {
	padding: 12px;
	text-align: center;
	color: var(--text-dim, #94a3b8);
}

.vrt-log-row {
	display: grid;
	grid-template-columns: 88px auto 1fr;
	gap: 8px;
	padding: 2px 8px;
	align-items: baseline;
}

.vrt-log-row:hover {
	background: rgba(148, 163, 184, 0.06);
}

.vrt-log-row__time {
	color: var(--text-dim, #94a3b8);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.vrt-log-row__tag {
	color: #93c5fd;
	font-weight: 600;
	white-space: nowrap;
}

.vrt-log-row__message {
	word-break: break-word;
}

.vrt-log-row--info {
	color: #e2e8f0;
}

.vrt-log-row--debug {
	color: #c4b5fd;
}

.vrt-log-row--warn {
	color: #fcd34d;
}

.vrt-log-row--error {
	color: #fda4af;
}

:root {
	/* Backgrounds - Odin dark theme */
	--bg-dark: #0f0f11;
	--bg-panel: #18181b;
	--bg-header: #121214;
	--bg-deep: #09090b;
	--bg-input: #27272a;
	--bg-hover: #1f1f23;

	/* Tyr compatibility aliases */
	--bg-primary: var(--bg-deep);
	--bg-secondary: var(--bg-panel);
	--bg-tertiary: var(--bg-header);

	/* Text */
	--text-main: #e4e4e7;
	--text-muted: #a1a1aa;
	--text-dim: #71717a;
	--text-faint: #52525b;

	/* Tyr text compatibility */
	--text-primary: var(--text-main);
	--text-secondary: var(--text-muted);

	/* Accent (gold/amber — Valhalla brand) */
	--accent: #f59e0b;
	--accent-hover: #fbbf24;
	--accent-muted: #78350f;

	/* Tyr accent alias */
	--accent-primary: var(--accent);

	/* Primary (blue — interactive elements) */
	--primary: #3b82f6;
	--primary-hover: #60a5fa;
	--primary-light: #93c5fd;
	--primary-dim: #1e3a5f;

	/* Status colors */
	--success: #22c55e;
	--warning: #eab308;
	--danger: #ef4444;
	--info: #3b82f6;

	/* ── Per-app accent color ramps ────────────────────────────────── */
	--odin-accent: #f59e0b;
	--odin-accent-hover: #fbbf24;
	--odin-accent-muted: #78350f;
	--odin-gradient-1: #f59e0b;
	--odin-gradient-2: #d97706;

	--tyr-accent: #ef4444;
	--tyr-accent-hover: #f87171;
	--tyr-accent-muted: #7f1d1d;
	--tyr-gradient-1: #ef4444;
	--tyr-gradient-2: #dc2626;

	--thor-accent: #3b82f6;
	--thor-accent-hover: #60a5fa;
	--thor-accent-muted: #1e3a5f;
	--thor-gradient-1: #3b82f6;
	--thor-gradient-2: #2563eb;

	--bragi-accent: #06b6d4;
	--bragi-accent-hover: #22d3ee;
	--bragi-accent-muted: #164e63;
	--bragi-gradient-1: #06b6d4;
	--bragi-gradient-2: #0891b2;

	--ymir-accent: #10b981;
	--ymir-accent-hover: #34d399;
	--ymir-accent-muted: #064e3b;
	--ymir-gradient-1: #10b981;
	--ymir-gradient-2: #059669;

	--mimir-accent: #a855f7;
	--mimir-accent-hover: #c084fc;
	--mimir-accent-muted: #581c87;
	--mimir-gradient-1: #a855f7;
	--mimir-gradient-2: #9333ea;

	--loki-accent: #f97316;
	--loki-accent-hover: #fb923c;
	--loki-accent-muted: #7c2d12;
	--loki-gradient-1: #f97316;
	--loki-gradient-2: #ea580c;

	--heimdall-accent: #0891b2;
	--heimdall-accent-hover: #22d3ee;
	--heimdall-accent-muted: #164e63;
	--heimdall-gradient-1: #0891b2;
	--heimdall-gradient-2: #0e7490;

	/* Structure */
	--border: #27272a;
	--border-subtle: #3f3f46;
	--border-focus: #3b82f6;
	--border-color: var(--border);

	--radius-sm: 2px;
	--radius: 3px;
	--radius-md: 6px;
	--radius-lg: 12px;

	/* Typography - matching Odin exactly */
	--text-2xs: 9px;
	--text-xs: 10px;
	--text-sm: 11px;
	--text-base: 12px;
	--text-md: 14px;

	/* Spacing */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;

	/* Layout */
	--header-height: 40px;
	--panel-width: 280px;
	--panel-min-width: 200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body,
#root {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bg-dark);
	color: var(--text-main);
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-size: var(--text-base);
	line-height: 1.5;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

/* Scrollbar - Inspirado en el StageTimeline */

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--text-faint);
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
	background: var(--text-dim);
}

/* Opcional: fondo en el track al hacer hover en el contenedor */

*:hover::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.02);
	border-radius: 3px;
}

/* Tabs */

.vrt-tabs-root {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.vrt-tabs-list {
	display: flex;
	border-bottom: 1px solid var(--border);
	background-color: var(--bg-header);
	flex-shrink: 0;
}

.vrt-tabs-trigger {
	flex: 1;
	padding: 8px 0;
	font-size: var(--text-sm);
	color: var(--text-muted);
	background: transparent;
	border: none;
	border-right: 1px solid var(--border);
	cursor: pointer;
	text-align: center;
}

.vrt-tabs-trigger:last-child {
	border-right: none;
}

.vrt-tabs-trigger[data-state="active"] {
	color: var(--text-main);
	background-color: var(--bg-panel);
	font-weight: 500;
	border-bottom: 2px solid var(--accent);
}

.vrt-tabs-content {
	flex: 1;
	min-height: 0;
	padding: 10px;
	overflow: auto;
}

.vrt-tabs-content[data-state="active"] {
	display: block;
}

/* Ymir Tree */

.vrt-ymir-tree {
	min-width: 100px;
	min-height: 100%;
}

.vrt-ymir-tree--root-droptarget {
	box-shadow: inset 0 -2px 0 #3b82f6;
}

.vrt-ymir-tree-row {
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 3px 4px 3px 0;
	cursor: pointer;
	user-select: none;
	border-left: 2px solid transparent;
	margin: 0 2px;
	white-space: nowrap;
	font-size: 11px;
}

.vrt-ymir-tree-row:hover {
	background: #1c1c1e;
}

.vrt-ymir-tree-row--active {
	background: #162132;
	color: #93c5fd;
}

.vrt-ymir-tree-row--droptarget {
	background: #1e3a5f;
	outline: 1px dashed #3b82f6;
	outline-offset: -1px;
}

.vrt-ymir-tree-row--drop-inside {
	background: #1e3a5f;
	outline: 1px dashed #3b82f6;
	outline-offset: -1px;
}

.vrt-ymir-tree-row--drop-before {
	box-shadow: inset 0 2px 0 #3b82f6;
}

.vrt-ymir-tree-row--drop-after {
	box-shadow: inset 0 -2px 0 #3b82f6;
}

.vrt-ymir-tree-row--project {
	color: #a1a1aa;
	font-weight: 500;
}

.vrt-ymir-tree-chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-dim, #71717a);
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	cursor: pointer;
}

.vrt-ymir-tree-chevron:hover {
	color: var(--text-main, #e4e4e7);
}

.vrt-ymir-tree-color-mark {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-left: 2px;
	margin-right: 2px;
}

.vrt-ymir-tree-icon {
	font-size: 11px;
	flex-shrink: 0;
}

.vrt-ymir-tree-label {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	color: #d4d4d8;
}

.vrt-ymir-tree-rename-input {
	flex: 1;
	font-size: 11px;
	font-family: inherit;
	background: #1e1e27;
	border: 1px solid #3b82f6;
	color: #e4e4e7;
	border-radius: 0;
	padding: 1px 5px;
	outline: none;
	min-width: 0;
}

/* Ymir File List */

.vrt-ymir-file-list {
	flex: 1;
	overflow-y: auto;
}

.vrt-ymir-file-list:focus,
.vrt-ymir-file-icons:focus {
	outline: none;
}

.vrt-ymir-file-list-header {
	display: grid;
	grid-template-columns: 1fr 46px 110px 64px;
	padding: 3px 8px;
	background: #18181b;
	border-bottom: 1px solid #27272a;
	font-size: 9px;
	font-weight: 600;
	color: #52525b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.vrt-ymir-file-row {
	display: grid;
	grid-template-columns: 1fr 46px 110px 64px;
	align-items: center;
	padding: 5px 8px;
	cursor: pointer;
	border-bottom: 1px solid #1c1c20;
	user-select: none;
}

.vrt-ymir-file-row:hover {
	background: #1c1c24;
}

.vrt-ymir-file-row--active {
	background: #1e2a3a;
}

.vrt-ymir-file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #d4d4d8;
	display: flex;
	align-items: center;
}

.vrt-ymir-file-name span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-ymir-file-icon {
	font-size: 13px;
	margin-right: 6px;
	flex-shrink: 0;
}

.vrt-ymir-file-thumb {
	width: 28px;
	height: 28px;
	object-fit: cover;
	border-radius: 3px;
	margin-right: 6px;
	flex-shrink: 0;
	background: #27272a;
	border: 1px solid #3f3f46;
}

.vrt-ymir-file-ext {
	font-size: 9px;
	color: #52525b;
	text-align: right;
}

.vrt-ymir-file-date {
	font-size: 9px;
	color: #52525b;
	text-align: right;
}

.vrt-ymir-file-size {
	font-size: 9px;
	color: #52525b;
	text-align: right;
}

/* Icons grid view */

.vrt-ymir-file-icons {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-content: flex-start;
}

.vrt-ymir-file-icon-cell {
	width: 84px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 4px;
	border-radius: 5px;
	cursor: pointer;
	user-select: none;
	border: 1px solid transparent;
}

.vrt-ymir-file-icon-cell:hover {
	background: #1c1c24;
	border-color: #27272a;
}

.vrt-ymir-file-icon-cell--active {
	background: #1e2a3a;
	border-color: #3b82f6;
}

.vrt-ymir-file-icon-preview {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 3px;
	background: #18181b;
	border-radius: 4px;
	border: 1px solid #27272a;
}

.vrt-ymir-file-icon-emoji {
	font-size: 28px;
}

.vrt-ymir-file-icon-thumb {
	max-width: 56px;
	max-height: 56px;
	object-fit: contain;
	border-radius: 2px;
}

.vrt-ymir-file-icon-label {
	font-size: 9px;
	color: #d4d4d8;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
	line-height: 1.3;
}

/* Ymir Browser (mega component) */

.vrt-ymir-browser {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #09090b;
	color: #d4d4d8;
	font-size: 11px;
	font-family: inherit;
	overflow: hidden;
}

.vrt-ymir-browser__header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 8px;
	height: 34px;
	background: #18181b;
	border-bottom: 1px solid #27272a;
	flex-shrink: 0;
}

.vrt-ymir-browser__header-title {
	font-size: 11px;
	font-weight: 600;
	color: #a1a1aa;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-ymir-browser__body {
	display: flex;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.vrt-ymir-browser__tree {
	width: 145px;
	min-width: 100px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	background: #0d0d10;
	overflow: hidden;
}

.vrt-ymir-browser__files {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #09090b;
}

.vrt-ymir-browser__footer {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px 6px;
	border-top: 1px solid #27272a;
	background: #0d0d10;
	flex-shrink: 0;
}

.vrt-ymir-browser__footer-input {
	flex: 1;
	min-width: 0;
	background: #27272a;
	border: 1px solid #3f3f46;
	color: #d4d4d8;
	font-size: 11px;
	padding: 3px 6px;
	border-radius: 4px;
	outline: none;
	font-family: inherit;
}

.vrt-ymir-browser__footer-input:focus {
	border-color: #3b82f6;
}

.vrt-ymir-browser__btn {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 10px;
	font-weight: 600;
	background: #18181b;
	color: #a1a1aa;
	border: 1px solid #3f3f46;
	padding: 3px 8px;
	border-radius: 0;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.12s;
	flex-shrink: 0;
	white-space: nowrap;
}

.vrt-ymir-browser__btn:hover:not(:disabled) {
	background: #27272a;
	color: #e4e4e7;
	border-color: #52525b;
}

.vrt-ymir-browser__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.vrt-ymir-browser__btn--accent {
	background: #1e293b;
	border-color: #334155;
	color: #93c5fd;
}

.vrt-ymir-browser__btn--accent:hover:not(:disabled) {
	background: #1d4ed8;
	color: #fff;
	border-color: #60a5fa;
}

/* Ymir status badge */

.vrt-ymir-status {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 500;
	flex-shrink: 0;
}

.vrt-ymir-status__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	flex-shrink: 0;
}

.vrt-ymir-status--unknown {
	background: #18181b;
	color: #71717a;
}

.vrt-ymir-status--connecting {
	background: #1c1a0d;
	color: #d97706;
}

.vrt-ymir-status--connected {
	background: #0d1f12;
	color: #4ade80;
}

.vrt-ymir-status--disconnected {
	background: #1f0d0d;
	color: #f87171;
}

.vrt-ymir-status--unknown .vrt-ymir-status__dot {
	background: #52525b;
}

.vrt-ymir-status--connecting .vrt-ymir-status__dot {
	background: #ca8a04;
	animation: av-pulse 1s ease-in-out infinite;
}

.vrt-ymir-status--connected .vrt-ymir-status__dot {
	background: #16a34a;
}

.vrt-ymir-status--disconnected .vrt-ymir-status__dot {
	background: #dc2626;
}

@keyframes av-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.3;
	}
}

/* Ymir context menu */

.vrt-ymir-context-menu {
	position: fixed;
	z-index: 10000;
	min-width: 150px;
	background: #18181b;
	border: 1px solid #3f3f46;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	padding: 4px;
}

.vrt-ymir-context-menu__item {
	width: 100%;
	display: flex;
	align-items: center;
	background: transparent;
	border: 0;
	color: #d4d4d8;
	font-size: 11px;
	font-family: inherit;
	text-align: left;
	padding: 5px 7px;
	cursor: pointer;
}

.vrt-ymir-context-menu__item:hover {
	background: #27272a;
}

.vrt-ymir-context-menu__item--danger {
	color: #fca5a5;
}

.vrt-ymir-context-menu__item--danger:hover {
	background: #3f1515;
	color: #fecaca;
}

.vrt-ymir-context-menu__section {
	border-top: 1px solid #27272a;
	margin-top: 4px;
	padding-top: 5px;
}

.vrt-ymir-context-menu__label {
	color: #71717a;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0 7px 5px;
}

/* Ymir filter tabs */

.vrt-ymir-filter-tabs {
	display: flex;
	gap: 2px;
	padding: 4px 6px;
	background: #0d0d10;
	border-bottom: 1px solid #27272a;
	flex-shrink: 0;
}

.vrt-ymir-filter-btn {
	background: transparent;
	border: 1px solid transparent;
	color: #71717a;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 0;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.1s;
	letter-spacing: 0.02em;
}

.vrt-ymir-filter-btn:hover {
	background: #27272a;
	color: #d4d4d8;
}

.vrt-ymir-filter-btn--active {
	background: #1e293b;
	border-color: #3b82f6;
	color: #93c5fd;
}

/* error banner */

.vrt-ymir-error-banner {
	padding: 4px 6px;
	background: #1f0d0d;
	color: #fca5a5;
	font-size: 10px;
	border-bottom: 1px solid #3f1515;
	flex-shrink: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Ymir browser placeholder/empty states */

.vrt-ymir-placeholder {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #3f3f46;
	font-size: 11px;
	height: 100%;
}

.vrt-ymir-placeholder span {
	font-size: 24px;
}

.vrt-ymir-placeholder small {
	font-size: 9px;
	color: #27272a;
}

.vrt-ymir-loading {
	padding: 10px;
	color: #3f3f46;
	font-size: 10px;
	text-align: center;
}

/* Dialog */

.vrt-dialog-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(0, 0, 0, 0.6);
}

.vrt-dialog-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 51;
	width: 90%;
	max-width: 450px;
	max-height: 85vh;
	padding: 24px;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.vrt-dialog-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--text-muted);
	background: transparent;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
}

.vrt-dialog-close:hover {
	color: var(--text-main);
	background: var(--bg-hover);
}

.vrt-dialog-header {
	margin-bottom: 16px;
}

.vrt-dialog-title {
	font-size: var(--text-md);
	font-weight: 600;
	color: var(--text-main);
}

.vrt-dialog-description {
	margin-top: 8px;
	font-size: var(--text-sm);
	color: var(--text-muted);
}

.vrt-dialog-footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 24px;
}

.vrt-confirm-dialog {
	max-width: 380px;
	padding: 18px;
}

.vrt-confirm-dialog .vrt-dialog-header {
	margin-bottom: 0;
	padding-right: 18px;
}

.vrt-confirm-dialog .vrt-dialog-description {
	line-height: 1.45;
}

.vrt-confirm-dialog .vrt-dialog-footer {
	margin-top: 18px;
}

/* Radio */

.vrt-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vrt-radio-item {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 50%;
	cursor: pointer;
}

.vrt-radio-item[data-state="checked"] {
	border-color: var(--primary);
}

.vrt-radio-indicator {
	color: var(--primary);
}

/* Slider */

.vrt-slider {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 20px;
	cursor: pointer;
}

.vrt-slider-track {
	position: relative;
	flex-grow: 1;
	height: 4px;
	background: var(--bg-input);
	border-radius: 2px;
}

.vrt-slider-range {
	position: absolute;
	height: 100%;
	background: var(--primary);
	border-radius: 2px;
}

.vrt-slider-thumb {
	display: block;
	width: 16px;
	height: 16px;
	background: var(--text-main);
	border: 2px solid var(--primary);
	border-radius: 50%;
	cursor: grab;
}

.vrt-slider-thumb:hover {
	background: var(--primary);
}

.vrt-slider-thumb:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--primary-dim);
}

/* ScrollArea */

.vrt-scroll-area {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.vrt-scroll-area-viewport {
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

.vrt-scrollbar {
	display: flex;
	user-select: none;
	touch-action: none;
	padding: 2px;
	background: transparent;
}

.vrt-scrollbar[data-orientation="vertical"] {
	width: 8px;
}

.vrt-scrollbar[data-orientation="horizontal"] {
	flex-direction: column;
	height: 8px;
}

.vrt-scroll-area-thumb {
	flex: 1;
	background: var(--border-subtle);
	border-radius: 4px;
}

.vrt-scroll-area-thumb:hover {
	background: var(--text-faint);
}

.vrt-scroll-area-corner {
	background: var(--bg-panel);
}

/* Panel */

.vrt-panel {
	display: flex;
	flex-direction: column;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	overflow: hidden;
}

.vrt-panel__header {
	padding: var(--space-3);
	background: var(--bg-header);
	border-bottom: 1px solid var(--border);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--text-muted);
}

.vrt-panel__content {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: var(--space-2);
	display: flex;
	flex-direction: column;
}

.vrt-panel__footer {
	padding: var(--space-2) var(--space-3);
	background: var(--bg-header);
	border-top: 1px solid var(--border);
}

.vrt-panel--docked-left {
	width: 280px;
	min-width: 200px;
	flex-shrink: 0;
	border-right: 1px solid var(--border);
}

.vrt-panel--docked-right {
	width: 300px;
	min-width: 200px;
	flex-shrink: 0;
	border-left: 1px solid var(--border);
}

/* SidePanel */

.vrt-side-panel {
	flex-shrink: 0;
}

.vrt-side-panel--left {
	border-right: 1px solid var(--border);
}

.vrt-side-panel--right {
	border-left: 1px solid var(--border);
}

.vrt-side-panel__header {
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--text-muted);
}

/* ── Unified YmirBrowser Enhancements ─────────────────────────────────── */

.vrt-ymir-nav-group {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-right: 8px;
}

.vrt-ymir-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: transparent;
	border: 1px solid transparent;
	color: var(--text-muted);
	cursor: pointer;
	border-radius: 3px;
	transition: all 0.15s ease;
}

.vrt-ymir-nav-btn:hover:not(:disabled) {
	background: var(--bg-hover);
	color: var(--text-main);
	border-color: var(--border-subtle);
}

.vrt-ymir-nav-btn:disabled {
	opacity: 0.25;
	cursor: not-allowed;
}

.vrt-ymir-divider {
	width: 1px;
	height: 18px;
	background: var(--border);
	margin: 0 6px;
}

/* Search Box */

.vrt-ymir-search-box {
	position: relative;
	display: flex;
	align-items: center;
	width: 160px;
	margin-right: 8px;
}

.vrt-ymir-search-icon {
	position: absolute;
	left: 8px;
	color: var(--text-dim);
	pointer-events: none;
}

.vrt-ymir-search-box input {
	width: 100%;
	height: 24px;
	background: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-main);
	padding: 0 24px 0 24px;
	font-size: var(--text-xs);
	border-radius: var(--radius);
	outline: none;
	transition: all 0.15s ease;
}

.vrt-ymir-search-box input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px var(--primary-dim);
	background: var(--bg-deep);
}

.vrt-ymir-search-clear {
	position: absolute;
	right: 6px;
	background: transparent;
	border: none;
	color: var(--text-dim);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
	border-radius: 50%;
}

.vrt-ymir-search-clear:hover {
	color: var(--text-main);
	background: var(--bg-hover);
}

/* Segmented View Mode Controller */

.vrt-ymir-segmented {
	display: flex;
	background: var(--bg-deep);
	border: 1px solid var(--border);
	padding: 2px;
	border-radius: var(--radius);
	margin-right: 4px;
}

.vrt-ymir-segmented-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 20px;
	background: transparent;
	border: none;
	color: var(--text-dim);
	cursor: pointer;
	border-radius: var(--radius-sm);
	transition: all 0.15s ease;
}

.vrt-ymir-segmented-btn:hover {
	color: var(--text-muted);
}

.vrt-ymir-segmented-btn--active {
	background: var(--bg-input);
	color: var(--primary-hover);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Breadcrumbs Bar */

.vrt-ymir-breadcrumbs-bar {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 12px;
	height: 26px;
	background: var(--bg-deep);
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
	font-size: var(--text-2xs);
	color: var(--text-dim);
	overflow-x: auto;
	white-space: nowrap;
}

.vrt-ymir-breadcrumbs-sep {
	color: var(--text-faint);
}

.vrt-ymir-breadcrumb-item {
	background: transparent;
	border: none;
	padding: 2px 4px;
	color: var(--text-muted);
	font-size: var(--text-xs);
	cursor: pointer;
	border-radius: var(--radius-sm);
	transition: all 0.12s ease;
}

.vrt-ymir-breadcrumb-item:hover {
	background: var(--bg-hover);
	color: var(--text-main);
}

.vrt-ymir-breadcrumb-item--active {
	color: var(--text-main);
	font-weight: 500;
	cursor: default;
	background: transparent;
}

/* Integrated Properties Slideout Sidebar */

.vrt-ymir-browser__info-panel {
	width: 280px;
	border-left: 1px solid var(--border);
	background: var(--bg-panel);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: vrt-slide-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vrt-slide-in {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}

/* Styled info panels */

.vrt-ymir-browser__info-panel .vrt-file-info {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.vrt-ymir-browser__info-panel .vrt-file-info__header {
	padding: 10px 12px;
	background: var(--bg-header);
	border-bottom: 1px solid var(--border);
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	font-size: var(--text-xs);
}

.vrt-ymir-browser__info-panel .vrt-file-info__body {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Enhancements on Toggle button active state */

.vrt-ymir-browser__btn--toggled {
	background: var(--bg-input);
	border-color: var(--primary);
	color: var(--primary-hover);
}

/* High Fidelity Cards View Enhancements */

.vrt-ymir-file-icon-cell {
	position: relative;
	width: 90px;
	height: 102px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 8px;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.vrt-ymir-file-icon-cell:hover {
	background: var(--bg-hover);
	border-color: var(--border-subtle);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vrt-ymir-file-icon-cell--active {
	background: var(--primary-dim);
	border-color: var(--primary);
	box-shadow: 0 0 0 1px var(--primary);
}

.vrt-ymir-file-icon-preview {
	position: relative;
	width: 100%;
	height: 60px;
	background: var(--bg-deep);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Cards Format Badges */

.vrt-ymir-file-card-tag {
	position: absolute;
	bottom: 3px;
	right: 3px;
	font-size: 8px;
	font-weight: 800;
	padding: 1px 4px;
	border-radius: 2px;
	color: #fff;
	background: #475569;
	letter-spacing: 0.05em;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.vrt-ymir-file-card-tag.tag-odin {
	background: #d97706; /* Amber for Scenes */
}

.vrt-ymir-file-card-tag.tag-png,
.vrt-ymir-file-card-tag.tag-jpg,
.vrt-ymir-file-card-tag.tag-jpeg,
.vrt-ymir-file-card-tag.tag-webp {
	background: #0891b2; /* Cyan for Images */
}

.vrt-ymir-file-card-tag.tag-gltf,
.vrt-ymir-file-card-tag.tag-glb,
.vrt-ymir-file-card-tag.tag-fbx,
.vrt-ymir-file-card-tag.tag-obj {
	background: #2563eb; /* Blue for Geometry */
}

.vrt-ymir-file-card-tag.tag-mp3,
.vrt-ymir-file-card-tag.tag-ogg,
.vrt-ymir-file-card-tag.tag-wav {
	background: #ca8a04; /* Yellow for Audio */
}

.vrt-ymir-file-card-tag.tag-ttf,
.vrt-ymir-file-card-tag.tag-otf,
.vrt-ymir-file-card-tag.tag-woff,
.vrt-ymir-file-card-tag.tag-woff2 {
	background: #db2777; /* Pink for Fonts */
}

.vrt-ymir-file-icon-label {
	font-size: var(--text-xs);
	color: var(--text-main);
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}

/* Drag & Drop Overlays */

.vrt-ymir-dragover {
	position: relative;
	background: var(--bg-hover);
	border: 2px dashed var(--primary);
	border-radius: var(--radius-md);
	animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
	0%,
	100% {
		border-color: var(--primary);
	}
	50% {
		border-color: var(--primary-hover);
	}
}

.vrt-ymir-sort-header {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.15s ease;
}

.vrt-ymir-sort-header:hover {
	color: var(--text-main);
}

.vrt-ymir-sort-header--active {
	color: var(--primary-hover);
}

/* Color grid context menu buttons */

.vrt-ymir-color-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
	padding: 8px;
	margin-top: 4px;
}

.vrt-ymir-color-btn {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid var(--border-subtle, #3f3f46);
	cursor: pointer;
	padding: 0;
	transition:
		transform 0.1s ease,
		border-color 0.1s ease;
}

.vrt-ymir-color-btn:hover {
	transform: scale(1.2);
	border-color: var(--text-muted, #a1a1aa);
}

.vrt-ymir-color-btn--active {
	border-color: #fff;
	box-shadow: 0 0 0 1.5px var(--primary, #3b82f6);
}
/* Reusable admin/control-panel patterns for ValhollRT apps. */

.vrt-app-container {
	display: flex;
	min-height: 100vh;
	background: var(--bg-dark);
	color: var(--text-main);
}

.vrt-sidebar {
	width: 250px;
	background: var(--bg-panel);
	border-right: 1px solid var(--border);
	padding: 20px 0;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.vrt-sidebar-title {
	padding: 0 20px 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border);
	color: var(--accent);
	font-size: 1.2rem;
	font-weight: 700;
}

.vrt-nav-item {
	display: block;
	width: 100%;
	padding: 12px 20px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition:
		background 0.15s,
		color 0.15s,
		border-color 0.15s;
}

.vrt-nav-item:hover,
.vrt-nav-item.active {
	color: var(--text-main);
	background: var(--bg-hover);
	border-right: 3px solid var(--accent);
}

.vrt-nav-item--logout {
	margin-top: 0;
	color: var(--danger);
	border-top: 1px solid var(--border);
}

.vrt-nav-item--logout:hover {
	background: rgba(239, 68, 68, 0.1);
	border-right-color: var(--danger);
}

.vrt-main-content {
	flex: 1;
	padding: 40px;
	overflow-y: auto;
	min-width: 0;
}

.vrt-page-title {
	margin: 0 0 30px;
	font-size: 1.8rem;
	font-weight: 700;
}

.vrt-grid-2,
.vrt-grid-3 {
	display: grid;
	gap: 20px;
}

.vrt-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vrt-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vrt-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.vrt-form-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.vrt-form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.vrt-toast {
	position: fixed;
	top: 20px;
	right: 40px;
	z-index: 100;
	padding: 15px 25px;
	border-radius: var(--radius-md);
	color: white;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vrt-toast--success {
	background: var(--success);
}

.vrt-toast--error {
	background: var(--danger);
}

.vrt-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vrt-text-muted {
	color: var(--text-muted);
}

.vrt-empty-state {
	padding: 20px;
	color: var(--text-muted);
	text-align: center;
}

.vrt-stat-number {
	margin: 0;
	color: var(--accent);
	font-size: 2.5rem;
}

.vrt-row-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.vrt-item-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px;
	background: var(--bg-deep);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.vrt-item-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.vrt-item-card__title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.95rem;
	font-weight: 600;
}

.vrt-item-card__meta {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.vrt-item-card__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vrt-item-card--selectable {
	cursor: pointer;
	transition:
		background 0.12s,
		border-color 0.12s;
}

.vrt-item-card--selectable:hover {
	border-color: var(--text-muted);
}

.vrt-item-card--selected {
	background: color-mix(in srgb, var(--accent) 6%, var(--bg-deep));
	border-color: var(--accent);
}

.vrt-user-detail {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 10px;
	margin-top: 4px;
	border-top: 1px solid var(--border);
}

.vrt-user-detail__row {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.85rem;
}

.vrt-user-detail__label {
	width: 80px;
	flex-shrink: 0;
	color: var(--text-muted);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.vrt-user-detail__value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text-main);
}

.vrt-url-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.vrt-url-input {
	flex: 1;
	min-width: 0;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.72rem;
}

.vrt-feature-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 4px;
}

.vrt-feature-tag {
	padding: 1px 7px;
	background: var(--bg-hover);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text-muted);
	font-family: Consolas, monospace;
	font-size: 0.7rem;
}

.vrt-feature-tag--on {
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.35);
	color: var(--accent-hover);
}

.vrt-inline-edit {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	background: var(--bg-hover);
	border-radius: var(--radius);
}

.vrt-inline-edit__actions {
	display: flex;
	gap: 8px;
}

.vrt-temp-password {
	margin-top: 20px;
	padding: 16px;
	background: rgba(34, 197, 94, 0.08);
	border: 1px solid rgba(34, 197, 94, 0.45);
	border-radius: var(--radius-md);
}

.vrt-temp-password__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.vrt-temp-password__title {
	color: var(--text-main);
	font-size: 0.95rem;
	font-weight: 700;
}

.vrt-temp-password__meta,
.vrt-temp-password__hint {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.vrt-temp-password__meta {
	margin-top: 3px;
}

.vrt-temp-password__close {
	width: 28px;
	height: 28px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.vrt-temp-password__close:hover {
	background: var(--bg-hover);
	color: var(--text-main);
}

.vrt-temp-password__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}

.vrt-temp-password__input {
	font-family: Consolas, "Courier New", monospace;
	font-size: 1.1rem;
	letter-spacing: 0;
}

.vrt-temp-password__hint {
	margin: 10px 0 0;
}

.vrt-login-shell {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(245, 158, 11, 0.14), transparent 34%),
		linear-gradient(235deg, rgba(20, 184, 166, 0.2), transparent 42%),
		linear-gradient(145deg, #09090b 0%, #101218 48%, #15110a 100%);
	--vrt-login-panel: linear-gradient(135deg, #f59e0b 0%, #14b8a6 52%, #2563eb 100%);
	--vrt-login-panel-soft: rgba(245, 158, 11, 0.22);
	--vrt-login-focus: #f59e0b;
	min-height: 100vh;
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: var(--bg-dark);
	padding: 24px;
	isolation: isolate;
}

.vrt-login-shell::before {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--vrt-login-bg);
	background-size: 180% 180%;
	content: "";
	animation: vrt-login-gradient-shift 16s ease-in-out infinite;
}

.vrt-login-shell--mimir {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(245, 158, 11, 0.18), transparent 36%),
		linear-gradient(235deg, rgba(56, 189, 248, 0.18), transparent 44%),
		linear-gradient(145deg, #080807 0%, #111827 54%, #14100a 100%);
	--vrt-login-panel: linear-gradient(135deg, #f59e0b 0%, #38bdf8 55%, #8b5cf6 100%);
	--vrt-login-panel-soft: rgba(245, 158, 11, 0.24);
	--vrt-login-focus: #f59e0b;
}

.vrt-login-shell--odin {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(37, 99, 235, 0.2), transparent 34%),
		linear-gradient(235deg, rgba(245, 158, 11, 0.18), transparent 44%),
		linear-gradient(145deg, #070b12 0%, #111827 50%, #10100b 100%);
	--vrt-login-panel: linear-gradient(135deg, #2563eb 0%, #06b6d4 48%, #f59e0b 100%);
	--vrt-login-panel-soft: rgba(37, 99, 235, 0.24);
	--vrt-login-focus: #60a5fa;
}

.vrt-login-shell--tyr {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(239, 68, 68, 0.18), transparent 36%),
		linear-gradient(235deg, rgba(34, 197, 94, 0.14), transparent 44%),
		linear-gradient(145deg, #0b0f12 0%, #16120f 52%, #071312 100%);
	--vrt-login-panel: linear-gradient(135deg, #ef4444 0%, #f59e0b 46%, #22c55e 100%);
	--vrt-login-panel-soft: rgba(239, 68, 68, 0.24);
	--vrt-login-focus: #f97316;
}

.vrt-login-shell--bragi {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(6, 182, 212, 0.2), transparent 34%),
		linear-gradient(235deg, rgba(34, 197, 94, 0.16), transparent 44%),
		linear-gradient(145deg, #041018 0%, #0b1324 54%, #06140e 100%);
	--vrt-login-panel: linear-gradient(135deg, #06b6d4 0%, #22c55e 52%, #6366f1 100%);
	--vrt-login-panel-soft: rgba(6, 182, 212, 0.24);
	--vrt-login-focus: #22d3ee;
}

.vrt-login-frame {
	width: min(100%, 880px);
	min-height: 540px;
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	overflow: hidden;
	background: rgba(9, 9, 11, 0.74);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md);
	box-shadow:
		0 30px 90px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(28px);
}

.vrt-login-pane {
	min-width: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.vrt-login-pane--form {
	gap: 24px;
	padding: 44px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.vrt-login-pane--visual {
	align-items: flex-start;
	gap: 18px;
	padding: 44px;
	overflow: hidden;
	background: var(--vrt-login-panel);
	background-size: 220% 220%;
	color: white;
	animation: vrt-login-gradient-shift 9s ease-in-out infinite;
}

.vrt-login-pane--visual::before {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
		linear-gradient(315deg, rgba(0, 0, 0, 0.28), transparent 50%);
	content: "";
}

.vrt-login-pane--visual::after {
	position: absolute;
	inset: 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-md);
	content: "";
}

.vrt-login-heading,
.vrt-login-form,
.vrt-login-visual-copy,
.vrt-login-visual-action,
.vrt-login-visual-mark {
	position: relative;
	z-index: 1;
}

.vrt-login-heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vrt-login-kicker {
	color: var(--vrt-login-focus);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.vrt-login-title {
	margin: 0;
	color: var(--text-main);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.12;
}

.vrt-login-sub {
	margin: 0;
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.45;
}

.vrt-login-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.vrt-login-form .vrt-input {
	min-height: 42px;
	background: rgba(9, 9, 11, 0.82);
	border-color: rgba(255, 255, 255, 0.12);
}

.vrt-login-form .vrt-input:focus {
	border-color: var(--vrt-login-focus);
	box-shadow: 0 0 0 2px var(--vrt-login-panel-soft);
}

.vrt-login-submit {
	width: 100%;
	min-height: 42px;
	margin-top: 2px;
}

.vrt-login-error {
	padding: 10px 12px;
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.4);
	border-radius: var(--radius);
	color: #fca5a5;
	font-size: 12px;
	line-height: 1.4;
}

.vrt-login-visual-mark {
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)), rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.vrt-login-visual-copy {
	max-width: 310px;
	margin-top: auto;
}

.vrt-login-visual-title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.12;
	text-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.vrt-login-visual-copy p {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.86);
	font-size: 13px;
	line-height: 1.5;
}

.vrt-login-visual-action {
	margin-top: 10px;
	color: white;
	border-color: rgba(255, 255, 255, 0.32);
	background: rgba(255, 255, 255, 0.1);
}

.vrt-login-visual-action:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* ── Engine picker step ─────────────────────────────────────────────────── */

.vrt-engine-picker-desc {
	margin: 8px 0 0;
	color: var(--text-secondary, #94a3b8);
	font-size: 0.92rem;
}

.vrt-engine-picker-status {
	margin: 16px 0;
	color: var(--text-secondary, #94a3b8);
	font-size: 0.9rem;
}

.vrt-engine-picker-empty {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.vrt-engine-picker-list {
	list-style: none;
	padding: 0;
	margin: 18px 0 6px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 52vh;
	overflow-y: auto;
}

.vrt-engine-picker-item {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--border-color, #334155);
	border-radius: 10px;
	background: var(--surface-2, rgba(15, 23, 42, 0.55));
	color: var(--text-primary, #e2e8f0);
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition:
		border-color 0.15s ease,
		background 0.15s ease;
}

.vrt-engine-picker-item:hover,
.vrt-engine-picker-item:focus-visible {
	border-color: var(--accent, #38bdf8);
	background: var(--surface-3, rgba(30, 41, 59, 0.7));
	outline: none;
}

.vrt-engine-picker-item--selected {
	border-color: var(--accent, #38bdf8);
	background: color-mix(in srgb, var(--accent, #38bdf8) 14%, var(--surface-2, rgba(15, 23, 42, 0.55)));
}

.vrt-engine-picker-name {
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vrt-engine-picker-spec {
	color: var(--text-secondary, #94a3b8);
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
}

.vrt-engine-picker-current {
	color: var(--accent, #38bdf8);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.vrt-engine-picker-dot {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 8px;
	border-radius: 999px;
}

.vrt-engine-picker-dot--online {
	color: #052e16;
	background: #4ade80;
}

.vrt-engine-picker-dot--offline {
	color: var(--text-secondary, #94a3b8);
	background: var(--surface-3, rgba(30, 41, 59, 0.7));
	border: 1px solid var(--border-color, #334155);
}

.vrt-engine-picker-link {
	background: none;
	border: none;
	color: var(--text-secondary, #94a3b8);
	font-size: 0.85rem;
	cursor: pointer;
	text-decoration: underline;
}

.vrt-engine-picker-link:hover {
	color: var(--text-primary, #e2e8f0);
}

.vrt-engine-picker-logout {
	margin-top: 14px;
	align-self: flex-start;
}

@keyframes vrt-login-gradient-shift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

@media (max-width: 900px) {
	.vrt-grid-2,
	.vrt-grid-3 {
		grid-template-columns: 1fr;
	}

	.vrt-main-content {
		padding: 24px;
	}

	.vrt-login-shell {
		padding: 16px;
	}

	.vrt-login-frame {
		width: min(100%, 430px);
		min-height: 0;
		grid-template-columns: 1fr;
	}

	.vrt-login-pane--visual {
		min-height: 176px;
		order: -1;
		padding: 26px;
	}

	.vrt-login-pane--form {
		padding: 28px;
	}

	.vrt-login-visual-copy {
		margin-top: 14px;
	}

	.vrt-login-visual-title {
		font-size: 22px;
	}

	.vrt-login-title {
		font-size: 24px;
	}
}

/* ── Logs tab (Mimir.Admin) ─────────────────────────────────────────────── */
.vrt-logs-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.vrt-logs-status {
	display: flex;
	gap: 1rem;
	font-size: 0.78rem;
	color: var(--vrt-text-muted, #7f8a99);
	margin-bottom: 0.5rem;
}

.vrt-logs-list {
	height: min(70vh, 720px);
	overflow-y: auto;
	border: 1px solid var(--vrt-border, #30363d);
	border-radius: 6px;
	background: var(--vrt-bg-deep, #0d1117);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	padding: 4px 6px;
}

.vrt-logs-row {
	display: grid;
	grid-template-columns: 92px 80px 50px 200px 1fr auto;
	gap: 6px;
	padding: 3px 4px;
	border-radius: 3px;
	cursor: pointer;
	color: #c9d1d9;
}

.vrt-logs-row:hover {
	background: rgba(255, 255, 255, 0.04);
}

.vrt-logs-row--error {
	color: #ff6b6b;
}
.vrt-logs-row--warn {
	color: #ffd166;
}
.vrt-logs-row--info {
	color: #c9d1d9;
}
.vrt-logs-row--debug {
	color: #7f8a99;
}

.vrt-logs-row__ts {
	color: #7f8a99;
	white-space: nowrap;
}
.vrt-logs-row__app {
	color: #58a6ff;
	text-transform: uppercase;
	font-weight: 600;
}
.vrt-logs-row__lvl {
	font-weight: 700;
	letter-spacing: 0.5px;
}
.vrt-logs-row__cat {
	color: #a371f7;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-logs-row__msg {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-logs-row__trace {
	color: #3fb950;
	cursor: pointer;
	padding: 0 4px;
	border: 1px solid #2ea043;
	border-radius: 3px;
	font-size: 11px;
}

.vrt-logs-row__detail {
	grid-column: 1 / -1;
	margin: 6px 0 4px;
	padding: 8px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 4px;
	white-space: pre-wrap;
	color: #c9d1d9;
	max-height: 360px;
	overflow: auto;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Tyr-specific overrides */
	--accent: #e94560;
	--accent-hover: #d13a52;
}

/* vrt-input */
.vrt-input {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text-primary);
	font-size: var(--text-sm);
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.vrt-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px var(--primary-dim);
}

/* vrt-btn */
.vrt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	border: none;
	border-radius: var(--radius);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
}
.vrt-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.vrt-btn--primary {
	background: var(--primary);
	color: white;
}
.vrt-btn--primary:hover:not(:disabled) {
	background: var(--primary-hover);
}
.vrt-btn--secondary {
	background: var(--bg-input);
	color: var(--text-primary);
	border: 1px solid var(--border);
}
.vrt-btn--secondary:hover:not(:disabled) {
	background: var(--bg-hover);
}
.vrt-btn--danger {
	background: var(--danger);
	color: white;
}
.vrt-btn--sm {
	padding: var(--space-1) var(--space-2);
	font-size: 10px;
}

body {
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	height: 100vh;
	overflow: hidden;
}

#root {
	height: 100vh;
	display: flex;
	flex-direction: column;
}

.app-container {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
}

.header-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.session-user {
	max-width: 220px;
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.75rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.logo {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--accent-primary);
}

.on-air-indicator {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
}

.on-air-indicator.off-air {
	background: var(--bg-tertiary);
	color: var(--text-secondary);
}

.on-air-indicator.on-air {
	background: var(--danger);
	color: white;
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.8;
	}
}

.connection-status {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: var(--text-secondary);
}

.connection-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.connection-dot.connected {
	background: var(--success);
}

.connection-dot.disconnected {
	background: var(--danger);
}

.main-content {
	display: grid;
	grid-template-columns: minmax(340px, 38%) minmax(460px, 62%);
	flex: 1;
	gap: 1px;
	overflow: hidden;
	background: var(--border-color);
}

.operation-column {
	min-width: 0;
	min-height: 0;
	display: grid;
	gap: 1px;
	overflow: hidden;
	background: var(--border-color);
}

.operation-column--left {
	grid-template-rows: minmax(170px, 30%) minmax(220px, 36%) minmax(220px, 34%);
}

.operation-column--right {
	grid-template-rows: minmax(240px, 42%) minmax(320px, 58%);
}

.panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: var(--bg-primary);
	overflow: hidden;
}

.panel:last-child {
	border-right: none;
}

.panel-header {
	padding: 0.75rem;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	font-weight: 600;
	font-size: 0.875rem;
}

.panel-content {
	flex: 1;
	overflow-y: auto;
	padding: 0.5rem;
}

.template-list {
	display: flex;
	flex-direction: column;
}

.template-list-empty {
	padding: 0.6rem 0.75rem;
	background: var(--bg-secondary);
	border: 1px dashed var(--border-color);
	color: var(--text-secondary);
	font-size: 0.75rem;
}

.template-item {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem;
	min-height: 32px;
	padding: 0.3rem 0.55rem;
	background: var(--bg-secondary);
	border: 1px solid transparent;
	border-bottom: 1px solid var(--border-color);
	border-left: 2px solid transparent;
	cursor: pointer;
	position: relative;
	transition:
		background 0.15s,
		border-color 0.15s;
}

.template-item__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	overflow: hidden;
	background: var(--bg-tertiary);
	border-radius: 0;
}

.template-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.template-item__thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--text-secondary);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	opacity: 0.6;
}

.template-item:hover {
	background: var(--bg-tertiary);
}

.template-item--selected {
	border-color: var(--accent-primary);
	background: var(--bg-tertiary);
	z-index: 1;
}

.template-item__main {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	min-width: 0;
	overflow: hidden;
}

.template-name {
	overflow: hidden;
	color: var(--text-primary);
	font-size: 0.82rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex-shrink: 0;
}

.template-meta {
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.7rem;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.rundown-list {
	flex: 1;
	min-width: 300px;
}

.rundown-item {
	display: flex;
	align-items: center;
	padding: 0.5rem 0.75rem;
	margin-bottom: 0.25rem;
	background: var(--bg-secondary);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s;
	border: 1px solid transparent;
}

.rundown-item:hover {
	background: var(--bg-tertiary);
}

.rundown-item.selected {
	border-color: var(--accent-primary);
	background: var(--bg-tertiary);
}

.rundown-item.on-air {
	border-left: 3px solid var(--success);
}

.rundown-item.changed-on-air {
	border-left: 3px solid var(--warning);
}

.rundown-item.pending {
	border-left: 3px solid var(--warning);
}

.rundown-number {
	width: 2rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
}

.rundown-info {
	flex: 1;
}

.rundown-title {
	font-size: 0.875rem;
	margin-bottom: 0.125rem;
}

.rundown-template {
	font-size: 0.75rem;
	color: var(--text-secondary);
}

.rundown-actions {
	display: flex;
	gap: 0.25rem;
}

.page-list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.page-list-empty,
.tab-fields-empty {
	padding: 0.6rem 0.75rem;
	background: var(--bg-secondary);
	border: 1px dashed var(--border-color);
	color: var(--text-secondary);
	font-size: 0.75rem;
}

.page-list {
	display: flex;
	flex-direction: column;
}

.page-list-item {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0.5rem;
	min-height: 32px;
	padding: 0.3rem 0.55rem;
	background: var(--bg-secondary);
	border: 1px solid transparent;
	border-bottom: 1px solid var(--border-color);
	border-left: 2px solid transparent;
	cursor: pointer;
	position: relative;
	transition:
		background 0.15s,
		border-color 0.15s;
}

.page-list-item__callup {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	color: var(--text-secondary);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.72rem;
	font-weight: 600;
}

.page-list-item:hover {
	background: var(--bg-tertiary);
}

.page-list-item--selected {
	border-color: var(--accent-primary);
	background: var(--bg-tertiary);
	z-index: 1;
}

.page-list-item--preview {
	border-left-color: var(--accent-primary);
}

.page-list-item--on-air {
	border-left-color: var(--success);
}

.page-list-item--changed-on-air,
.page-list-item--pending {
	border-left-color: var(--warning);
}

.page-list-item--failed,
.page-list-item--missing-media {
	border-left-color: var(--danger);
}

.page-list-item__main {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	min-width: 0;
	overflow: hidden;
}

.page-list-item__title {
	overflow: hidden;
	color: var(--text-primary);
	font-size: 0.82rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex-shrink: 0;
}

.page-list-item__meta {
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.7rem;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.tab-fields-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.tab-fields {
	display: flex;
	flex-direction: column;
}

.tab-field-row {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.4rem 0.55rem;
	background: var(--bg-secondary);
	border: 1px solid transparent;
	border-top: 1px solid var(--border-color);
}

.tab-field-row:first-child {
	border-top: none;
}

.tab-field-row--title {
	border-left: 2px solid var(--accent-primary);
}

.tab-field-row__head {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	min-width: 0;
}

.tab-field-row__name {
	overflow: hidden;
	color: var(--text-primary);
	font-size: 0.78rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tab-field-row__meta {
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.68rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tab-field-row__textarea {
	min-height: 56px;
	resize: vertical;
}

.tab-field-row__select {
	height: 22px;
	padding: 0 6px;
	background: var(--bg-deep);
	border: 1px solid var(--border-color);
	border-radius: 0;
	color: var(--text-primary);
	font-size: 11px;
	font-family: inherit;
	outline: none;
}

.tab-field-row__color {
	width: 32px;
	height: 22px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--border-color);
	cursor: pointer;
}

.tab-field-group {
	margin-bottom: 0.5rem;
	border: 1px solid var(--border-color, #2a2a3e);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.02);
}

.tab-field-group__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.35rem 0.6rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--border-color, #2a2a3e);
	color: var(--text-primary, #e0e0e0);
	font: inherit;
	font-size: 11px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	border-radius: 0;
}

.tab-field-group__header:hover {
	background: rgba(255, 255, 255, 0.05);
}

.tab-field-group__header:focus-visible {
	outline: 1px solid var(--accent, #e94560);
	outline-offset: -1px;
}

.tab-field-group__name {
	flex: 1;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tab-field-group__meta {
	font-size: 10px;
	color: var(--text-dim, #6a6a7a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 50%;
}

.tab-field-group__count {
	font-size: 10px;
	font-weight: 600;
	color: var(--text-dim, #6a6a7a);
	padding: 1px 5px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 99px;
	min-width: 18px;
	text-align: center;
}

.tab-field-group__body {
	padding: 0.4rem 0.6rem 0.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.tab-field-group[data-depth="1"] {
	margin-left: 0.75rem;
	border-color: rgba(255, 255, 255, 0.08);
}

.tab-field-group[data-depth="2"] {
	margin-left: 1.5rem;
	border-color: rgba(255, 255, 255, 0.05);
}

.property-editor {
	width: auto;
}

.field-group {
	margin-bottom: 1rem;
}

.field-group-collection {
	margin-bottom: 0.75rem;
	border: 1px solid var(--border-color, #2a2a3e);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.02);
}

.field-group-collection__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.4rem 0.6rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--border-color, #2a2a3e);
	color: var(--text-primary, #e0e0e0);
	font: inherit;
	font-size: 11px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	border-radius: 0;
}

.field-group-collection__header:hover {
	background: rgba(255, 255, 255, 0.05);
}

.field-group-collection__header:focus-visible {
	outline: 1px solid var(--accent, #e94560);
	outline-offset: -1px;
}

.field-group-collection__name {
	flex: 1;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.field-group-collection__meta {
	font-size: 10px;
	color: var(--text-dim, #6a6a7a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 50%;
}

.field-group-collection__count {
	font-size: 10px;
	font-weight: 600;
	color: var(--text-dim, #6a6a7a);
	padding: 1px 5px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 99px;
	min-width: 18px;
	text-align: center;
}

.field-group-collection__body {
	padding: 0.5rem 0.6rem 0.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.field-group-collection[data-depth="1"] {
	margin-left: 0.75rem;
	border-color: rgba(255, 255, 255, 0.08);
}

.field-group-collection[data-depth="2"] {
	margin-left: 1.5rem;
	border-color: rgba(255, 255, 255, 0.05);
}

.field-empty {
	padding: 0.75rem;
	color: var(--text-dim, #6a6a7a);
	font-size: 11px;
	text-align: center;
}

.field-grid {
	display: grid;
	gap: 0.75rem;
}

.field-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-label {
	display: block;
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin-bottom: 0.375rem;
}

.field-input {
	width: 100%;
	padding: 0.5rem;
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 0.875rem;
}

.field-input:focus {
	outline: none;
	border-color: var(--accent-primary);
}

.field-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-primary);
	font-size: 0.8125rem;
}

.field-checkbox input {
	width: 14px;
	height: 14px;
}

.field-range {
	width: 100%;
	accent-color: var(--accent-primary);
}

.field-value {
	display: block;
	margin-top: 0.25rem;
	color: var(--text-secondary);
	font-size: 0.75rem;
}

@media (max-width: 900px) {
	.field-grid--three {
		grid-template-columns: 1fr;
	}
}

.tyr-documents-panel {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: var(--space-3);
}

.tyr-documents-panel__section {
	display: grid;
	gap: 0.75rem;
}

.tyr-documents-panel__save {
	justify-self: start;
}

.tyr-document-list {
	display: grid;
	gap: 0.375rem;
}

.tyr-document-row {
	display: grid;
	width: 100%;
	gap: 0.25rem;
	padding: 0.625rem 0.75rem;
	color: var(--text-primary);
	text-align: left;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	cursor: pointer;
}

.tyr-document-row:hover:not(:disabled) {
	background: var(--bg-tertiary);
	border-color: var(--accent-primary);
}

.tyr-document-row:disabled {
	cursor: wait;
	opacity: 0.65;
}

.tyr-document-row--passive {
	cursor: default;
}

.tyr-document-row--passive:hover {
	background: var(--bg-secondary);
	border-color: var(--border-color);
}

.tyr-document-row__name {
	overflow: hidden;
	font-size: 0.8125rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tyr-document-row__meta,
.tyr-document-empty,
.tyr-documents-panel__status {
	color: var(--text-secondary);
	font-size: 0.75rem;
}

.tyr-document-empty {
	padding: 0.75rem;
	background: var(--bg-secondary);
	border: 1px dashed var(--border-color);
	border-radius: 4px;
}

.preview-panel {
	min-width: 0;
	min-height: 0;
	background: var(--bg-secondary);
	display: flex;
	flex-direction: column;
}

.preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	background: var(--bg-tertiary);
	border-bottom: 1px solid var(--border-color);
}

.preview-title {
	font-size: 0.75rem;
	font-weight: 600;
}

.preview-controls {
	display: flex;
	gap: 0.25rem;
}

.engine-config {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
}

.engine-config__field {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
	color: var(--text-secondary);
	font-size: 0.75rem;
}

.engine-config__status {
	max-width: 240px;
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.75rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.engine-config__hint {
	padding: 0 0.75rem 0.5rem;
	color: var(--text-secondary);
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	font-size: 0.7rem;
}

.preview-content {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	position: relative;
}

.preview-placeholder {
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.preview-iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.login-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: var(--bg-primary);
}

.login-panel {
	width: min(100%, 400px);
	padding: 2rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.login-kicker {
	color: var(--accent-primary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-bottom: 0.75rem;
	text-align: center;
	text-transform: uppercase;
}

.login-title {
	color: var(--text-primary);
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 0.75rem;
	text-align: center;
}

.login-copy {
	color: var(--text-secondary);
	font-size: 0.875rem;
	line-height: 1.45;
	margin-bottom: 1.5rem;
	text-align: center;
}

.login-label {
	display: block;
	color: var(--text-secondary);
	font-size: 0.75rem;
	margin-bottom: 0.375rem;
}

.login-input {
	width: 100%;
	height: 38px;
	margin-bottom: 0.875rem;
	padding: 0 0.625rem;
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 0.875rem;
}

.login-input:focus {
	outline: none;
	border-color: var(--accent-primary);
}

.login-error {
	padding: 0.75rem;
	margin-bottom: 1rem;
	background: rgba(231, 76, 60, 0.14);
	border: 1px solid rgba(231, 76, 60, 0.45);
	border-radius: 4px;
	color: #ffb5af;
	font-size: 0.8125rem;
}

.login-button {
	width: 100%;
	height: 38px;
	margin-top: 0.25rem;
}

.btn {
	padding: 0.375rem 0.75rem;
	border: none;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
}

.btn:disabled,
.field-input:disabled {
	cursor: not-allowed;
	opacity: 0.48;
}

.btn-primary {
	background: var(--accent-primary);
	color: white;
}

.btn-primary:hover {
	background: #d13a52;
}

.btn-secondary {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

.btn-secondary:hover {
	background: var(--border-color);
}

.btn-success {
	background: var(--success);
	color: #000;
}

.btn-danger {
	background: var(--danger);
	color: white;
}

.btn-small {
	padding: 0.25rem 0.5rem;
	font-size: 0.625rem;
}

@media (max-width: 900px) {
	body {
		overflow: auto;
	}

	.app-container {
		min-height: 100vh;
		height: auto;
	}

	.main-content {
		grid-template-columns: 1fr;
		overflow: visible;
	}

	.operation-column {
		grid-template-rows: none;
		overflow: visible;
	}

	.template-list,
	.rundown-list,
	.page-list,
	.property-editor {
		min-height: 260px;
	}

	.preview-panel {
		height: 360px;
	}
}

/* Import Panel */
.import-panel {
	display: flex;
	flex: 1;
	overflow: hidden;
}

.import-tree {
	width: 160px;
	min-width: 120px;
	overflow-y: auto;
	border-right: 1px solid var(--border);
	padding: var(--space-1) 0;
}

.import-scenes {
	flex: 1;
	overflow-y: auto;
	padding: var(--space-1) 0;
}

.import-loading,
.import-error,
.import-empty {
	padding: var(--space-3);
	text-align: center;
	color: var(--text-secondary);
	font-size: var(--text-sm);
}

.import-error {
	color: var(--danger);
}

.import-project-row {
	padding: 4px 8px;
	cursor: pointer;
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-muted);
}

.import-project-row:hover {
	background: var(--bg-hover);
	color: var(--text-main);
}

.import-project-name {
	font-size: var(--text-xs);
	color: inherit;
}

.import-dir-row {
	display: flex;
	align-items: center;
	padding: 3px 8px;
	cursor: pointer;
	gap: 4px;
	border-radius: 0;
}

.import-dir-row:hover {
	background: var(--bg-hover);
}

.import-dir-row--selected {
	background: var(--bg-input);
	color: var(--text-main);
}

.import-dir-chevron {
	font-size: 8px;
	color: var(--text-dim);
	width: 10px;
	text-align: center;
}

.import-dir-name {
	font-size: var(--text-xs);
	color: var(--text-main);
}

.import-scenes-header {
	padding: 6px 10px;
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-muted);
	border-bottom: 1px solid var(--border);
}

.import-file-row {
	display: flex;
	align-items: center;
	padding: 5px 10px;
	cursor: pointer;
	gap: 6px;
	border-radius: 0;
}

.import-file-row:hover {
	background: var(--bg-hover);
}

.import-file-icon {
	font-size: 10px;
	color: var(--accent);
}

.import-file-name {
	font-size: var(--text-xs);
	color: var(--text-main);
}

/* ── Top Bar (toolbar) ─────────────────────────────────────────────── */
.top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0 0.75rem;
	height: 32px;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	flex-shrink: 0;
}

.top-bar__section {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.top-bar__section--actions {
	justify-content: flex-end;
}

.top-bar__group {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.top-bar__separator {
	width: 1px;
	height: 18px;
	background: var(--border-color);
	margin: 0 0.25rem;
}

.top-bar__placeholder {
	color: var(--text-secondary);
	font-size: 0.7rem;
	font-style: italic;
	opacity: 0.5;
}

.top-bar__callup-input {
	width: 7.5rem;
	height: 22px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.78rem;
}

/* Help Modal */
.help-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.help-modal {
	width: 600px;
	max-width: 90vw;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.help-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 0.9rem;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
}

.help-modal__header h2 {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
}

.help-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 0;
	color: var(--text-primary);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.help-modal__close:hover {
	background: var(--bg-tertiary);
}

.help-modal__body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0.9rem;
	overflow: auto;
}

.help-modal__body section h3 {
	margin: 0 0 0.4rem 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.help-modal__list {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0;
}

.help-modal__row {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: 0.5rem;
	align-items: center;
	padding: 0.2rem 0;
}

.help-modal__row dt {
	margin: 0;
}

.help-modal__row dd {
	margin: 0;
	color: var(--text-primary);
	font-size: 0.78rem;
}

.help-modal__row kbd {
	display: inline-block;
	padding: 1px 5px;
	margin-right: 3px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 0;
	color: var(--text-primary);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.7rem;
}

/* ── Engine Status Bar (footer) ───────────────────────────────────── */
.engine-status-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.75rem;
	height: 30px;
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	gap: 0.5rem;
	flex-shrink: 0;
}

.engine-status-bar__chips {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.engine-status-bar__health {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
	flex-shrink: 1;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	height: 20px;
	max-width: 160px;
	padding: 2px 7px;
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 3px;
}

.status-pill--ok {
	color: #48c78e;
	border-color: rgba(72, 199, 142, 0.45);
}

.status-pill--warn,
.status-pill--accepted {
	color: var(--warning);
	border-color: color-mix(in srgb, var(--warning) 45%, var(--border-color));
}

.status-pill--bad,
.status-pill--failed {
	color: var(--danger);
	border-color: color-mix(in srgb, var(--danger) 45%, var(--border-color));
}

.status-pill--completed {
	color: #48c78e;
	border-color: rgba(72, 199, 142, 0.45);
}

.status-pill--sending {
	color: var(--accent-primary);
	border-color: color-mix(in srgb, var(--accent-primary) 45%, var(--border-color));
}

.status-pill--command {
	max-width: 220px;
}

.engine-status-bar__empty {
	font-size: 10px;
	color: var(--text-secondary);
	font-style: italic;
}

.engine-status-bar__loading {
	font-size: 10px;
	color: var(--text-secondary);
}

.engine-status-bar__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.engine-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 7px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 3px;
	cursor: pointer;
	font-size: 10px;
	font-weight: 500;
	color: var(--text-primary);
	transition: all 0.12s;
	white-space: nowrap;
	line-height: 1;
	height: 20px;
}

.engine-chip:hover {
	background: var(--bg-hover, var(--bg-tertiary));
	border-color: var(--text-secondary);
}

.engine-chip--pgm {
	border-color: var(--accent-primary);
	background: color-mix(in srgb, var(--accent-primary) 12%, var(--bg-secondary));
}

.engine-chip__dot {
	font-size: 7px;
	line-height: 1;
}

.engine-chip--online .engine-chip__dot {
	color: #48c78e;
}
.engine-chip--offline .engine-chip__dot {
	color: var(--text-secondary);
}

.engine-chip__name {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.engine-chip__pgm {
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--accent-primary);
	margin-left: 1px;
}

.engine-chip--pvw {
	border-color: #2f9e6e;
	background: color-mix(in srgb, #2f9e6e 12%, var(--bg-secondary));
}

.engine-chip__role {
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 1px 4px;
	border-radius: 2px;
	border: 1px solid var(--border-color);
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	line-height: 1;
}

.engine-chip__role:hover {
	border-color: var(--text-secondary);
	color: var(--text-primary);
}

.engine-chip__role--pgm {
	background: var(--accent-primary);
	border-color: var(--accent-primary);
	color: #fff;
}

.engine-chip__role--pvw {
	background: #2f9e6e;
	border-color: #2f9e6e;
	color: #fff;
}

.engine-create-form {
	display: flex;
	align-items: center;
	gap: 4px;
}

.engine-create-form__input {
	height: 22px;
	padding: 0 6px;
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 3px;
	color: var(--text-primary);
	font-size: 11px;
	width: 130px;
}

.engine-create-form__input:focus {
	outline: none;
	border-color: var(--accent-primary);
}

.engine-create-form__select {
	height: 22px;
	padding: 0 4px;
	background: var(--bg-primary);
	border: 1px solid var(--border-color);
	border-radius: 3px;
	color: var(--text-primary);
	font-size: 10px;
}

.engine-create-form__error {
	font-size: 10px;
	color: var(--danger);
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── Engine Panel ─────────────────────────────────────────────────── */
.engine-panel {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--space-2);
	overflow-y: auto;
	flex: 1;
}

.engine-panel__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 var(--space-1) var(--space-2);
}

.engine-panel__count {
	font-size: var(--text-xs, 11px);
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.engine-panel__online-badge {
	padding: 1px 6px;
	background: rgba(72, 199, 142, 0.15);
	border: 1px solid rgba(72, 199, 142, 0.35);
	border-radius: 99px;
	color: #48c78e;
	font-size: 10px;
	font-weight: 600;
}

.engine-panel__empty {
	padding: var(--space-3);
	color: var(--text-secondary);
	font-size: var(--text-xs, 11px);
	line-height: 1.5;
	text-align: center;
	border: 1px dashed var(--border-color);
	border-radius: var(--radius, 4px);
	margin-top: var(--space-2);
}

.engine-card {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 0.5rem 0.625rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius, 4px);
	cursor: pointer;
	transition: all 0.12s;
}

.engine-card:hover {
	background: var(--bg-tertiary);
	border-color: var(--text-secondary);
}

.engine-card--selected {
	border-color: var(--accent-primary);
	background: color-mix(in srgb, var(--accent-primary) 8%, var(--bg-secondary));
}

.engine-card--pgm {
	border-color: var(--accent-primary);
	background: color-mix(in srgb, var(--accent-primary) 8%, var(--bg-secondary));
}

.engine-card--pvw {
	border-color: #2f9e6e;
	background: color-mix(in srgb, #2f9e6e 8%, var(--bg-secondary));
}

.engine-card__roles {
	display: flex;
	gap: 4px;
	margin-top: 4px;
	padding-left: 19px;
}

.engine-card__row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.engine-card__dot {
	font-size: 9px;
	width: 14px;
	text-align: center;
	flex-shrink: 0;
}

.engine-card__dot--online {
	color: #48c78e;
}
.engine-card__dot--offline {
	color: var(--text-secondary);
}
.engine-card__dot--manual {
	color: var(--text-secondary);
	font-size: 12px;
}

.engine-card__name {
	font-size: var(--text-sm, 12px);
	font-weight: 500;
	color: var(--text-primary);
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.engine-card__status-badge {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 1px 5px;
	border-radius: 3px;
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	flex-shrink: 0;
}

.engine-card__status-badge--online {
	background: rgba(72, 199, 142, 0.15);
	color: #48c78e;
}

.engine-card__meta {
	font-size: 10px;
	color: var(--text-secondary);
	padding-left: 19px;
}

.engine-card__lastseen {
	opacity: 0.7;
}

/* dot in the Engine tab trigger */
.tab-engine-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--text-secondary);
	margin-left: 5px;
	vertical-align: middle;
}

.tab-engine-dot--online {
	background: #48c78e;
}

/* ── Preview engine indicator ────────────────────────────────────── */
.preview-engine-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--text-secondary);
	margin-right: 5px;
	vertical-align: middle;
}

.preview-engine-dot--online {
	background: #48c78e;
}
.preview-engine-dot--offline {
	background: #f14668;
}

.preview-playstate {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	opacity: 0.6;
	margin-left: 0.25rem;
}

.engine-config__hint--remote {
	font-style: italic;
	padding-top: 0.3rem;
	padding-bottom: 0.5rem;
}

/* Remote engine placeholder */
.preview-remote-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: var(--text-secondary);
	text-align: center;
	padding: 2rem;
}

.preview-remote-indicator {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--text-secondary);
}

.preview-remote-indicator--online {
	color: #48c78e;
}

.preview-remote-name {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-primary);
}

.preview-remote-hint {
	font-size: 0.75rem;
	color: var(--text-secondary);
	max-width: 280px;
	line-height: 1.5;
}

/* Custom preview toolbar styling */
.preview-panel .stage-toolbar {
	border-bottom: none;
	border-top: 1px solid var(--border-color);
	background: var(--bg-tertiary);
	justify-content: center;
	padding: 6px 12px;
}

/* Panel search input (Tyr) */
.panel-search {
	width: 100%;
	min-width: 120px;
	max-width: 200px;
	height: 22px;
	font-size: 0.7rem;
}

/* Tyr: nothing rounded */
.vrt-badge,
.vrt-btn,
.page-list-item,
.tab-field-row,
.page-list-empty,
.tab-fields-empty,
.template-item,
.template-list-empty,
.template-item__thumb,
.template-item__thumb-placeholder {
	border-radius: 0;
}

.vrt-badge {
	padding: 1px 6px;
	font-size: 9px;
	letter-spacing: 0.05em;
}
