.workspace-invite-page {
	display: grid;
	min-height: 100vh;
	place-items: center;
	padding: 24px;
	background: var(--bg-primary, #090b12);
	color: var(--text-primary, #f5f7fb);
}

.workspace-invite-card {
	display: grid;
	gap: 18px;
	width: min(460px, 100%);
	padding: 22px;
	border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
	border-radius: 8px;
	background: var(--bg-secondary, #111827);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.workspace-invite-card__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.workspace-invite-card__brand h1 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.workspace-invite-card__brand p {
	margin: 3px 0 0;
	color: var(--text-secondary, #9ca3af);
	font-size: 12px;
}

.workspace-invite-card__state {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
	border-radius: 6px;
	color: var(--text-secondary, #9ca3af);
	font-size: 13px;
}

.workspace-invite-card__state--error {
	border-color: rgba(239, 68, 68, 0.28);
	background: rgba(239, 68, 68, 0.1);
	color: #fca5a5;
}

.workspace-invite-card__state--success {
	align-items: flex-start;
	border-color: rgba(34, 197, 94, 0.28);
	background: rgba(34, 197, 94, 0.1);
	color: #bbf7d0;
}

.workspace-invite-card__state--success > div {
	display: grid;
	gap: 3px;
	flex: 1;
}

.workspace-invite-card__state--success span {
	color: var(--text-secondary, #9ca3af);
}

.workspace-invite-card__spin {
	animation: workspace-invite-spin 0.8s linear infinite;
}

.workspace-invite-form {
	display: grid;
	gap: 14px;
}

.workspace-invite-form__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.02);
}

.workspace-invite-form__summary > div {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.workspace-invite-form__summary span,
.workspace-invite-form__summary small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.workspace-invite-form__summary span {
	font-size: 13px;
	font-weight: 700;
}

.workspace-invite-form__summary small {
	color: var(--text-secondary, #9ca3af);
	font-size: 12px;
}

.workspace-invite-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.workspace-invite-form__error {
	padding: 8px 10px;
	border: 1px solid rgba(239, 68, 68, 0.28);
	border-radius: 4px;
	background: rgba(239, 68, 68, 0.1);
	color: #fca5a5;
	font-size: 12px;
}

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

@media (max-width: 560px) {
	.workspace-invite-form__grid {
		grid-template-columns: 1fr;
	}
}
.loki-stage-indicator {
	position: fixed;
	right: 12px;
	bottom: 56px;
	width: 320px;
	background: var(--bg-deep, #0e0e10);
	color: var(--text, #efeff1);
	border: 1px solid var(--border, #2f2f35);
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 11px;
	z-index: 5;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.loki-stage-indicator__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.loki-stage-indicator__header strong {
	font-weight: 600;
	font-size: 11px;
}

.loki-stage-indicator__count {
	margin-left: auto;
	opacity: 0.6;
}

.loki-stage-indicator__body {
	max-height: 180px;
	overflow-y: auto;
}

.loki-stage-indicator__empty {
	opacity: 0.55;
	font-style: italic;
}

.loki-stage-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.loki-stage-dot--live {
	background: #22c55e;
	box-shadow: 0 0 4px #22c55e;
}

.loki-stage-dot--off {
	background: #6b7280;
}

.loki-stage-row {
	display: grid;
	grid-template-columns: 60px 1fr 1fr 1.4fr;
	gap: 6px;
	align-items: center;
	padding: 3px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.loki-stage-row:first-child {
	border-top: none;
}

.loki-stage-pill {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 1px 4px;
	border-radius: 3px;
	text-align: center;
	letter-spacing: 0.3px;
}

.loki-stage-pill--live {
	background: #22c55e33;
	color: #4ade80;
}

.loki-stage-pill--ready {
	background: #3b82f633;
	color: #93c5fd;
}

.loki-stage-pill--draft {
	background: #6b728033;
	color: #9ca3af;
}

.loki-stage-pill--archived {
	background: #2f2f35;
	color: #6b7280;
}

.loki-stage-row__id {
	opacity: 0.55;
	font-family: ui-monospace, monospace;
	font-size: 10px;
}

.loki-stage-row__title {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.loki-stage-row__values {
	opacity: 0.7;
	font-family: ui-monospace, monospace;
	font-size: 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.loki-dialog-content {
	width: 95vw;
	max-width: 1280px;
	height: 85vh;
	padding: 0;
}

.loki-dialog-title {
	display: none;
}

.loki-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 12px;
	min-height: 600px;
	padding: 16px;
}

.loki-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px;
}

.loki-panel__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
}

.loki-panel__title svg {
	color: var(--accent-primary, #3b82f6);
}

.loki-tab-icon {
	margin-right: 4px;
}

.loki-panel__status {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: var(--text-dim, #94a3b8);
}

.loki-panel__status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
}

.loki-panel__status-dot--down {
	background: #ef4444;
}

.loki-panel__tabs {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.loki-panel__content {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 12px 4px;
}

.loki-panel__empty {
	padding: 32px;
	text-align: center;
	color: var(--text-dim, #94a3b8);
	font-size: 13px;
}

.loki-panel__error {
	padding: 12px;
	margin: 8px 0;
	border-radius: 4px;
	background: rgba(239, 68, 68, 0.1);
	color: #fca5a5;
	font-size: 12px;
	font-family: monospace;
}

.loki-panel__notice {
	padding: 12px;
	margin: 8px 0;
	border-radius: 4px;
	font-size: 12px;
}

.loki-panel__notice--ok {
	background: rgba(34, 197, 94, 0.1);
	color: #86efac;
}

.loki-connector-card {
	padding: 12px;
	border: 1px solid var(--border, #334155);
	border-radius: 6px;
	margin-bottom: 8px;
	background: var(--bg-elevated, rgba(255, 255, 255, 0.02));
}

.loki-connector-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.loki-connector-card__name {
	display: flex;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
}

.loki-connector-card__icon {
	margin-right: 6px;
}

.loki-connector-card__actions {
	display: flex;
	gap: 6px;
}

.loki-connector-card__meta {
	display: flex;
	gap: 12px;
	font-size: 11px;
	color: var(--text-dim, #94a3b8);
}

.loki-connector-card__last-error {
	color: #fca5a5;
}

.loki-rule-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--border, #334155);
	font-size: 13px;
}

.loki-rule-row:hover {
	background: rgba(255, 255, 255, 0.02);
}

.loki-rule-row__name {
	flex: 1;
	font-weight: 500;
}

.loki-rule-row__trigger {
	font-size: 11px;
	color: var(--text-dim, #94a3b8);
	font-family: monospace;
}

.loki-rule-row__priority {
	font-size: 10px;
	color: var(--text-dim, #94a3b8);
	padding: 2px 6px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
}

.loki-rule-row__stats {
	font-size: 10px;
	color: var(--text-dim, #94a3b8);
}

.loki-event-row {
	padding: 6px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 12px;
	font-family: monospace;
	display: flex;
	gap: 8px;
}

.loki-event-row__time {
	color: var(--text-dim, #94a3b8);
	min-width: 80px;
}

.loki-event-row__platform {
	min-width: 60px;
}

.loki-event-row__kind {
	min-width: 180px;
	color: var(--accent-primary, #3b82f6);
}

.loki-event-row__author {
	min-width: 120px;
}

.loki-event-row__payload {
	color: var(--text-dim, #94a3b8);
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.loki-platform-color--twitch {
	color: #a970ff;
}

.loki-platform-color--youtube {
	color: #ff0000;
}

.loki-platform-color--instagram {
	color: #e1306c;
}

.loki-platform-color--x {
	color: #1da1f2;
}

.loki-platform-color--system {
	color: #888;
}

.loki-platform-bg--twitch {
	background: #a970ff;
}

.loki-platform-bg--youtube {
	background: #ff0000;
}

.loki-platform-bg--instagram {
	background: #e1306c;
}

.loki-platform-bg--x {
	background: #1da1f2;
}

.loki-platform-bg--system {
	background: #888;
}

.loki-social-card {
	display: flex;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--border, #334155);
	border-radius: 6px;
	margin-bottom: 8px;
	background: var(--bg-elevated, rgba(255, 255, 255, 0.02));
}

.loki-social-card__thumb {
	width: 80px;
	height: 80px;
	border-radius: 4px;
	background: var(--bg-deep, #1e293b);
	flex-shrink: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-dim, #94a3b8);
}

.loki-social-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.loki-social-card__body {
	flex: 1;
	min-width: 0;
}

.loki-social-card__author {
	font-weight: 600;
	font-size: 13px;
}

.loki-social-card__text {
	font-size: 12px;
	color: var(--text-dim, #94a3b8);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.loki-social-card__meta {
	display: flex;
	gap: 8px;
	font-size: 10px;
	color: var(--text-dim, #94a3b8);
	margin-top: 4px;
}

.loki-social-card__date {
	margin-left: auto;
}

.loki-social-card__actions {
	display: flex;
	gap: 4px;
	flex-direction: column;
}

.loki-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 8px 4px;
	border-bottom: 1px solid var(--border, #334155);
	margin-bottom: 12px;
}

.loki-toolbar--flush {
	border-bottom: 0;
}

.loki-toolbar__filters {
	display: flex;
	gap: 8px;
	align-items: center;
}

.loki-toolbar__filters--full {
	width: 100%;
}

.loki-toolbar__actions {
	display: flex;
	gap: 6px;
}

.loki-toolbar__icon {
	color: var(--text-dim, #94a3b8);
}

.loki-toolbar .vrt-checkbox-label,
.loki-inline-muted {
	color: var(--text-dim, #94a3b8);
	font-size: 12px;
}

.loki-rule-editor {
	padding: 16px;
}

.loki-rule-editor__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.loki-rule-editor__header h3 {
	margin: 0;
}

.loki-rule-editor__field {
	margin-bottom: 12px;
}

.loki-rule-editor__label {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-dim, #94a3b8);
	margin-bottom: 4px;
}

.loki-rule-editor__binding {
	display: grid;
	grid-template-columns: 1fr 2fr auto;
	gap: 8px;
	margin-bottom: 6px;
	align-items: center;
}

.loki-rule-editor__row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr auto;
	gap: 8px;
	margin-bottom: 6px;
	align-items: center;
}

.loki-rule-editor__row--four {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loki-rule-editor__row--trigger,
.loki-rule-editor__row--action {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loki-rule-editor__subfield {
	margin-top: 8px;
}

.loki-rule-editor__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border, #334155);
}

.loki-test-result {
	margin-top: 12px;
	padding: 12px;
	background: var(--bg-deep, #0f172a);
	border-radius: 4px;
	font-family: monospace;
	font-size: 12px;
}

.loki-test-result--matched {
	border-left: 3px solid #22c55e;
}

.loki-test-result--not-matched {
	border-left: 3px solid #f59e0b;
}

.loki-test-result__field {
	display: flex;
	gap: 8px;
	padding: 2px 0;
}

.loki-test-result__field-name {
	color: var(--text-dim, #94a3b8);
	min-width: 100px;
}

.loki-show-card {
	padding: 12px;
	border: 1px solid var(--border, #334155);
	border-radius: 6px;
	margin-bottom: 8px;
}

.loki-show-card--active {
	border-color: #22c55e;
	background: rgba(34, 197, 94, 0.05);
}

.loki-show-card__title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}

.loki-show-card__meta {
	font-size: 11px;
	color: var(--text-dim, #94a3b8);
}

.loki-metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 16px;
}

.loki-connector-card__meta--ok {
	color: #86efac;
}

.loki-connector-card__meta--err {
	color: #fca5a5;
}

.loki-oauth-card {
	margin-bottom: 12px;
	padding: 12px;
	border: 1px solid #3b82f6;
	border-radius: 6px;
	background: rgba(59, 130, 246, 0.05);
}

.loki-oauth-card__title {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
}

.loki-oauth-card__copy {
	font-size: 12px;
	color: var(--text-dim, #94a3b8);
}

.loki-oauth-card__actions {
	display: flex;
	gap: 6px;
	margin-top: 8px;
}

.loki-oauth-card__actions .vrt-input-wrapper {
	flex: 1;
	min-width: 0;
}

.loki-metric-card {
	padding: 12px;
	border: 1px solid var(--border, #334155);
	border-radius: 4px;
	background: var(--bg-elevated, rgba(255, 255, 255, 0.02));
}

.loki-metric-card__value {
	font-size: 20px;
	font-weight: 600;
	color: var(--accent-primary, #3b82f6);
}

.loki-metric-card__label {
	font-size: 11px;
	color: var(--text-dim, #94a3b8);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
/* Combined selector beats @valhollrt/ui's .vrt-dialog-content (max-width: 450px). */
.vrt-dialog-content.macro-dialog-content {
	width: min(1120px, 95vw);
	max-width: 1120px;
}
.macro-dialog-title {
	margin-bottom: 12px;
}

.macro-console {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 16px;
	min-height: 420px;
}

.macro-console__list,
.macro-console__editor {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.macro-console__editor {
	border-left: 1px solid var(--border-soft, #2a313b);
	padding-left: 16px;
}

.macro-console__list-head,
.macro-steps__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-dim, #9ba3ad);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.macro-console__toolbar {
	display: flex;
	gap: 6px;
}

.macro-console__empty {
	font-size: 12px;
	color: var(--text-faint, #6b7280);
	padding: 16px 4px;
}

.macro-row {
	display: flex;
	align-items: center;
	gap: 6px;
}
.macro-row__main {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	background: var(--bg-elevated, #1e232b);
	border: 1px solid var(--border-soft, #2a313b);
	border-radius: 6px;
	padding: 8px 10px;
	cursor: pointer;
	text-align: left;
	color: inherit;
}
.macro-row__main:hover {
	border-color: var(--primary, #f59e0b);
}
.macro-row__name {
	font-weight: 600;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.macro-row__meta {
	font-size: 11px;
	color: var(--text-faint, #6b7280);
}

.macro-console__log {
	margin-top: auto;
	border-top: 1px solid var(--border-soft, #2a313b);
	padding-top: 8px;
	font-size: 11px;
	font-family: var(--font-mono, ui-monospace, monospace);
}
.macro-console__log-head {
	color: var(--text-dim, #9ba3ad);
	margin-bottom: 4px;
}
.macro-log-line {
	color: var(--success, #4ade80);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.macro-log-line--fail {
	color: var(--danger, #f87171);
}

.macro-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.field-label {
	font-size: 11px;
	color: var(--text-dim, #9ba3ad);
}

.macro-keycap {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 13px;
	background: var(--bg-elevated, #1e232b);
	border: 1px dashed var(--border, #3a414b);
	border-radius: 6px;
	padding: 8px 12px;
	cursor: pointer;
	color: inherit;
	text-align: center;
}
.macro-keycap--armed {
	border-color: var(--primary, #f59e0b);
	color: var(--primary, #f59e0b);
}

.macro-steps {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
}
.macro-step {
	display: flex;
	align-items: center;
	gap: 6px;
}
.macro-step__n {
	width: 18px;
	text-align: right;
	font-size: 11px;
	color: var(--text-faint, #6b7280);
}
.macro-step__type {
	flex: 0 0 110px;
}
.macro-step__actions {
	display: flex;
	gap: 2px;
	margin-left: auto;
}
.macro-step__btn {
	width: 24px;
	height: 24px;
	border: 1px solid var(--border-soft, #2a313b);
	background: var(--bg-elevated, #1e232b);
	border-radius: 4px;
	cursor: pointer;
	color: var(--text-dim, #9ba3ad);
	font-size: 12px;
	line-height: 1;
}
.macro-step__btn:hover {
	border-color: var(--primary, #f59e0b);
	color: var(--primary, #f59e0b);
}

.macro-console__editor-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.macro-toast {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #0b0d10;
	background: var(--success, #4ade80);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
	animation: macro-toast-in 0.18s ease-out;
}
.macro-toast--fail {
	background: var(--danger, #f87171);
	color: #fff;
}
@keyframes macro-toast-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.workspace-dialog-content {
	width: min(920px, 94vw);
	max-width: 920px;
	height: min(680px, 86vh);
	padding: 0;
}

.workspace-dialog-title {
	display: none;
}

.workspace-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding: 14px;
	gap: 12px;
}

.workspace-panel__header,
.workspace-panel__summary {
	display: grid;
	align-items: center;
	gap: 10px;
}

.workspace-panel__header {
	grid-template-columns: minmax(160px, 1fr) auto;
	padding: 0 4px;
}

.workspace-panel__title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.workspace-panel__title > div {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.workspace-panel__title strong,
.workspace-panel__title span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.workspace-panel__title strong {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-primary);
}

.workspace-panel__title span {
	color: var(--text-secondary);
	font-size: 11px;
}

.workspace-panel__actions,
.workspace-panel__row-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

.workspace-panel__actions {
	font-size: 12px;
	color: var(--text-secondary);
}

.workspace-panel__error {
	padding: 10px 12px;
	border: 1px solid rgba(239, 68, 68, 0.28);
	border-radius: 4px;
	background: rgba(239, 68, 68, 0.1);
	color: #fca5a5;
	font-size: 12px;
}

.workspace-panel__empty {
	display: grid;
	place-items: center;
	flex: 1;
	color: var(--text-secondary);
	font-size: 13px;
}

.workspace-panel__summary {
	grid-template-columns: minmax(220px, 1fr) minmax(180px, auto) auto;
	padding: 10px 4px 12px;
	border-bottom: 1px solid var(--border-color);
}

.workspace-panel__invite {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
	align-items: center;
	gap: 8px;
	padding: 0 4px 12px;
	border-bottom: 1px solid var(--border-color);
}

.workspace-panel__switcher {
	display: grid;
	gap: 8px;
	padding: 0 4px 12px;
	border-bottom: 1px solid var(--border-color);
}

.workspace-panel__switcher-title {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.workspace-panel__switcher-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px;
}

.workspace-panel__switcher-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	padding: 8px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.02);
}

.workspace-panel__switcher-item > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.workspace-panel__switcher-item span,
.workspace-panel__switcher-item small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.workspace-panel__switcher-item span {
	font-size: 12px;
	font-weight: 600;
}

.workspace-panel__switcher-item small {
	color: var(--text-secondary);
	font-size: 11px;
}

.workspace-panel__field {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.workspace-panel__field label {
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 600;
}

.workspace-panel__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	color: var(--text-secondary);
	font-size: 11px;
	min-width: 0;
}

.workspace-panel__meta span {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.workspace-panel__table {
	flex: 1;
	min-height: 0;
	overflow: auto;
	border: 1px solid var(--border-color);
	border-radius: 6px;
}

.workspace-panel__table .vrt-table__header {
	position: sticky;
	top: 0;
	z-index: 1;
}

.workspace-panel__member {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.workspace-panel__member span,
.workspace-panel__member small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.workspace-panel__member span {
	font-size: 13px;
	font-weight: 600;
}

.workspace-panel__member small {
	color: var(--text-secondary);
	font-size: 11px;
}

.workspace-panel__role {
	color: var(--text-secondary);
	font-size: 12px;
}

@media (max-width: 760px) {
	.workspace-panel__header,
	.workspace-panel__summary,
	.workspace-panel__invite {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.workspace-panel__actions,
	.workspace-panel__row-actions,
	.workspace-panel__meta {
		align-items: flex-start;
		justify-content: flex-start;
	}

	.workspace-panel__field {
		grid-template-columns: 1fr;
	}
}
/* inter-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2) format('woff2'), url(/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* inter-cyrillic-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-cyrillic-400-normal-obahsSVq.woff2) format('woff2'), url(/assets/inter-cyrillic-400-normal-HOLc17fK.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* inter-greek-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2) format('woff2'), url(/assets/inter-greek-ext-400-normal-KugGGMne.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}
/* inter-greek-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-greek-400-normal-B4URO6DV.woff2) format('woff2'), url(/assets/inter-greek-400-normal-q2sYcFCs.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
/* inter-vietnamese-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-vietnamese-400-normal-DMkecbls.woff2) format('woff2'), url(/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
/* inter-latin-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-latin-ext-400-normal-C1nco2VV.woff2) format('woff2'), url(/assets/inter-latin-ext-400-normal-77YHD8bZ.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-latin-400-normal-C38fXH4l.woff2) format('woff2'), url(/assets/inter-latin-400-normal-CyCys3Eg.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
.vrt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-weight: 500;
	cursor: pointer;
	transition:
		background var(--duration-fast) var(--ease-out-expo),
		box-shadow var(--duration-fast) var(--ease-out-expo),
		transform var(--duration-fast) var(--ease-out-expo),
		border-color var(--duration-fast) var(--ease-out-expo),
		color var(--duration-fast) var(--ease-out-expo);
	white-space: nowrap;
}
.vrt-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
/* Sizes */
.vrt-btn--sm {
	padding: var(--space-1) var(--space-2);
	font-size: var(--text-xs);
	letter-spacing: 0.01em;
}
.vrt-btn--md {
	padding: var(--space-2) var(--space-3);
	font-size: var(--text-sm);
	letter-spacing: 0.01em;
}
.vrt-btn--lg {
	padding: 11px var(--space-4);
	font-size: var(--text-sm);
	letter-spacing: 0.04em;
}
/* Variants */
.vrt-btn--primary {
	background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
	color: #1a1208;
	border-color: color-mix(in srgb, var(--accent) 70%, transparent);
	box-shadow:
		var(--elevation-1),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);
	font-weight: 600;
}
.vrt-btn--primary:hover:not(:disabled) {
	background: linear-gradient(180deg, #e8c98e 0%, var(--accent-hover) 100%);
	box-shadow:
		var(--elevation-2),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transform: translateY(-1px);
}
.vrt-btn--primary:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: var(--elevation-1);
}
.vrt-btn--secondary {
	background: var(--bg-input);
	color: var(--text-main);
	border-color: var(--border-subtle);
	box-shadow: inset 0 1px 0 var(--border-metal);
}
.vrt-btn--secondary:hover:not(:disabled) {
	background: var(--bg-hover);
	border-color: color-mix(in srgb, var(--accent) 35%, var(--border-subtle));
	color: var(--text-main);
}
.vrt-btn--ghost {
	background: transparent;
	color: var(--text-muted);
	border-color: transparent;
}
.vrt-btn--ghost:hover:not(:disabled) {
	background: var(--bg-input);
	color: var(--text-main);
	border-color: var(--border);
}
.vrt-btn--danger {
	background: var(--danger);
	color: white;
	border-color: color-mix(in srgb, var(--danger) 70%, transparent);
	box-shadow: var(--elevation-1);
}
.vrt-btn--danger:hover:not(:disabled) {
	background: #dc2626;
	box-shadow: var(--elevation-2);
	transform: translateY(-1px);
}
/* 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 var(--duration-fast) var(--ease-out-expo),
		box-shadow var(--duration-fast) var(--ease-out-expo);
}
.vrt-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}
.vrt-field-control > .vrt-input-wrapper {
	flex: 1;
	min-width: 0;
}
.vrt-field-control > .vrt-input,
.vrt-field-control > input.vrt-input {
	flex: 1;
	min-width: 0;
}
.vrt-field-control > .vrt-text-input,
.vrt-field-control > input.vrt-text-input {
	flex: 1;
	min-width: 0;
}
.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);
	box-shadow:
		var(--elevation-1),
		inset 0 1px 0 var(--border-metal);
}
.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:
		var(--elevation-2),
		inset 0 1px 0 var(--border-metal);
}
/* ControlBar */
.vrt-control-bar {
	display: grid;
	grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
	gap: 10px;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--bg-deep);
	padding: 10px;
	box-shadow: inset 0 1px 0 var(--border-metal);
}
.vrt-control-bar--compact {
	grid-template-columns: 1fr;
}
.vrt-control-bar__summary,
.vrt-control-bar__main,
.vrt-control-bar__identity {
	display: flex;
	min-width: 0;
	flex-direction: column;
}
.vrt-control-bar__summary {
	justify-content: space-between;
	gap: 9px;
}
.vrt-control-bar__identity {
	gap: 2px;
}
.vrt-control-bar__eyebrow,
.vrt-control-bar-group__label,
.vrt-control-bar-field > span {
	color: var(--text-dim);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.vrt-control-bar__title {
	overflow: hidden;
	color: var(--text-main);
	font-size: 16px;
	font-weight: 650;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-control-bar__subtitle {
	overflow: hidden;
	color: var(--text-muted);
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-control-bar__stats {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	min-width: 0;
}
.vrt-control-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	min-height: 22px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg-input);
	padding: 2px 8px;
	white-space: nowrap;
}
.vrt-control-stat__label {
	color: var(--text-faint);
	font-size: 10px;
	font-weight: 500;
}
.vrt-control-stat__value {
	overflow: hidden;
	color: var(--text-main);
	font-size: 11px;
	font-weight: 650;
	text-overflow: ellipsis;
}
.vrt-control-stat--active {
	border-color: color-mix(in srgb, var(--success) 38%, var(--border));
	color: var(--success);
}
.vrt-control-stat--active .vrt-control-stat__value {
	color: var(--success);
}
.vrt-control-stat--warning {
	border-color: color-mix(in srgb, var(--warning) 40%, var(--border));
}
.vrt-control-stat--warning .vrt-control-stat__value {
	color: var(--warning);
}
.vrt-control-stat--danger {
	border-color: color-mix(in srgb, var(--danger) 50%, var(--border));
}
.vrt-control-stat--danger .vrt-control-stat__value {
	color: var(--danger);
}
.vrt-control-stat--muted {
	opacity: 0.72;
}
.vrt-control-bar__main {
	justify-content: space-between;
	gap: 8px;
}
.vrt-control-bar__content {
	min-width: 0;
}
.vrt-control-bar__actions {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}
.vrt-control-bar-group {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--bg-panel) 74%, transparent);
	padding: 4px;
}
.vrt-control-bar-group__controls {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	min-width: 0;
}
.vrt-control-bar-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
}
@media (max-width: 760px) {
	.vrt-control-bar {
		grid-template-columns: 1fr;
	}

	.vrt-control-bar__actions {
		justify-content: flex-start;
	}

	.vrt-control-bar-group {
		width: 100%;
		align-items: flex-start;
		flex-direction: column;
	}
}
/* Asset card */
.vrt-asset-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	cursor: grab;
	border: 1px solid #3f3f46;
	border-radius: 0;
	background: #1c1c1f;
	color: var(--text-main);
	user-select: none;
}
.vrt-asset-card:hover {
	border-color: #a1a1aa;
	transform: translateY(-1px);
}
.vrt-asset-card:active {
	cursor: grabbing;
	border-color: #60a5fa;
	transform: translateY(0);
}
.vrt-asset-card__preview {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 6px;
	background: #111113;
}
.vrt-asset-card__preview svg,
.vrt-asset-card__preview img {
	width: 52px;
	height: 52px;
	display: block;
	object-fit: contain;
}
.vrt-asset-card__fallback {
	color: #52525b;
	font-size: 20px;
}
.vrt-asset-card__label {
	padding: 3px 4px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	text-transform: uppercase;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-asset-card--mini {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border: 0;
	background: #111113;
	color: #d4d4d8;
	font-size: inherit;
	font-weight: inherit;
	align-self: auto;
}
.vrt-asset-card--mini:hover,
.vrt-asset-card--mini:active {
	transform: none;
}
.vrt-asset-card--mini .vrt-asset-card__preview {
	min-height: 0;
	padding: 0;
	background: #0f0f12;
}
.vrt-asset-card--mini .vrt-asset-card__preview > svg,
.vrt-asset-card--mini .vrt-asset-card__preview > img {
	width: 24px;
	height: 24px;
}
.vrt-asset-card--mini .vrt-asset-card__fallback {
	color: #71717a;
	font-size: 13px;
	font-weight: 800;
}
.vrt-asset-card--mini .vrt-asset-card__label {
	width: 100%;
	height: 10px;
	box-sizing: border-box;
	display: block;
	padding: 0 2px;
	font-size: 7px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 10px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}
/* 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: var(--bg-input);
	color: var(--text-dim);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background var(--duration-fast) var(--ease-out-expo),
		border-color var(--duration-fast) var(--ease-out-expo),
		color var(--duration-fast) var(--ease-out-expo);
}
.vrt-toggle-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.vrt-toggle-btn--off:hover:not(:disabled) {
	background: var(--bg-hover);
	border-color: var(--border-subtle);
	color: var(--text-muted);
}
.vrt-toggle-btn--on {
	background: var(--accent);
	border-color: var(--accent);
	color: #1a1208;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.vrt-toggle-btn--on:hover:not(:disabled) {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}
/* ActivationToggle (compact square on/off indicator) */
.vrt-activation-toggle {
	position: relative;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	border: 1px solid rgba(201, 169, 110, 0.78);
	border-radius: 3px;
	background: var(--accent);
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	transition:
		background var(--duration-fast) var(--ease-out-expo),
		border-color var(--duration-fast) var(--ease-out-expo),
		filter var(--duration-fast) var(--ease-out-expo),
		box-shadow var(--duration-fast) var(--ease-out-expo);
}
.vrt-activation-toggle::before {
	content: "";
	position: absolute;
	inset: -6px;
}
.vrt-activation-toggle:hover:not(:disabled) {
	filter: brightness(1.08);
}
.vrt-activation-toggle:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.vrt-activation-toggle--off {
	border-color: rgba(148, 163, 184, 0.55);
	background: var(--bg-input);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* ── 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;
}
.vrt-field-label--modified {
	color: var(--primary-hover);
}
.animatable-animate-dot--disabled {
	cursor: default;
	pointer-events: none;
	border-color: transparent;
}
.function-plugin-color {
	width: 34px;
	height: 22px;
	padding: 0;
	border: 1px solid var(--border-subtle);
	background: var(--bg-deep);
	cursor: pointer;
	flex-shrink: 0;
}
.function-plugin-color-value {
	flex: 1 1 0;
	min-width: 0;
	color: var(--text-dim);
	font-size: 10px;
	font-family: "Consolas", "Courier New", monospace;
	text-transform: uppercase;
}
/* ── 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;
}
.vrt-bool-axis-label {
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 600;
	color: var(--text-dim);
	text-align: left;
	padding: 2px 0;
	border-radius: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-triple-field__axis .vrt-bool-axis-btn {
	flex: 1;
	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-wrap {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}
.panel-section__title {
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.02em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.panel-section--off .panel-section__title {
	color: var(--text-dim);
}
.panel-section--off .panel-section__body {
	opacity: 0.62;
}
.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(--accent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}
.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: fixed;
	z-index: 2147483000;
	width: max-content;
	max-width: min(360px, calc(100vw - 12px));
	max-height: 220px;
	overflow-y: auto;
	padding: 3px;
	background: var(--bg-panel);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	box-shadow: var(--elevation-3);
	animation: vrt-dropdown-in 0.12s var(--ease-out-expo);
	isolation: isolate;
}
.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) ───────────────────────────────────── */
[data-radix-popper-content-wrapper] {
	z-index: 2147483000;
	isolation: isolate;
}
.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;
	z-index: 2147483000;
}
.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);
}
/* ── AppStatusMenu ─────────────────────────────────────────────────────── */
.vrt-app-status-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 0 10px;
	border-right: 1px solid var(--border);
	cursor: pointer;
	flex-shrink: 0;
	user-select: none;
	outline: none;
	background: transparent;
	transition: background 0.12s;
}
.vrt-app-status-trigger:hover,
.vrt-app-status-trigger:focus-visible {
	background: var(--bg-hover);
}
.vrt-app-status-trigger__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--text-main);
	white-space: nowrap;
}
.vrt-app-status-trigger__brand-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-app-status-trigger__app {
	font-weight: 400;
}
.vrt-app-status-trigger--odin .vrt-app-status-trigger__app {
	color: var(--odin-accent);
}
.vrt-app-status-trigger--tyr .vrt-app-status-trigger__app {
	color: var(--tyr-accent);
}
.vrt-app-status-trigger--bragi .vrt-app-status-trigger__app {
	color: var(--bragi-accent);
}
.vrt-app-status-trigger--mimir .vrt-app-status-trigger__app {
	color: var(--mimir-accent);
}
.vrt-app-status-trigger--ymir .vrt-app-status-trigger__app {
	color: var(--ymir-accent);
}
.vrt-app-status-trigger__pills {
	display: flex;
	align-items: center;
	gap: 3px;
}
.vrt-status-pill {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}
.vrt-status-pill--connected {
	background: var(--success);
	box-shadow: 0 0 5px color-mix(in srgb, var(--success) 50%, transparent);
}
.vrt-status-pill--disconnected {
	background: var(--danger);
}
.vrt-app-status-content {
	min-width: 220px;
}
.vrt-app-status-content__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px 8px;
	border-bottom: 1px solid var(--border);
}
.vrt-app-status-content__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-main);
}
.vrt-app-status-content__app {
	font-weight: 400;
}
.vrt-app-status-content__app--odin {
	color: var(--odin-accent);
}
.vrt-app-status-content__app--tyr {
	color: var(--tyr-accent);
}
.vrt-app-status-content__app--bragi {
	color: var(--bragi-accent);
}
.vrt-app-status-content__app--mimir {
	color: var(--mimir-accent);
}
.vrt-app-status-content__app--ymir {
	color: var(--ymir-accent);
}
.vrt-app-status-content__version {
	margin-left: auto;
	font-size: 10px;
	color: var(--text-dim);
	font-family: monospace;
}
.vrt-app-status-section-label {
	padding: 8px 12px 2px;
	font-size: 10px;
	font-weight: 600;
	color: var(--text-dim);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.vrt-app-status-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 12px;
	font-size: 12px;
}
.vrt-app-status-row__label {
	flex: 1;
	color: var(--text-muted);
}
.vrt-app-status-row__value {
	color: var(--text-main);
	font-size: 11px;
	max-width: 130px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-app-status-row__value--ok {
	color: var(--success);
}
.vrt-app-status-row__value--err {
	color: var(--danger);
}
/* About dialog */
.vrt-about-dialog {
	max-width: 360px;
}
.vrt-about-dialog__logo {
	display: flex;
	align-items: center;
	gap: 14px;
}
.vrt-about-dialog__title {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.5px;
}
.vrt-about-dialog__title-app {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-muted);
	letter-spacing: 0.3px;
}
.vrt-about-dialog__sub {
	font-size: 11px;
	color: var(--text-dim);
	margin-top: 3px;
	letter-spacing: 0.4px;
}
.vrt-about-dialog__tagline {
	margin-top: 14px;
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.5;
}
.vrt-about-dialog__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 14px;
	padding: 12px;
	background: var(--bg-deep);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}
.vrt-about-dialog__link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.12s;
}
.vrt-about-dialog__link:hover {
	color: var(--text-main);
}
.vrt-about-dialog__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 6px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	font-size: 11px;
	color: var(--text-dim);
}
.vrt-about-dialog__footer-dot {
	opacity: 0.4;
}
/* ── 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;
	gap: 6px;
	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;
}
/* SaveAs dialog (used by Heimdall, Odin, future Tyr) */
.vrt-saveas-dialog {
	width: min(96vw, 360px);
	max-height: min(86vh, 540px);
	padding: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.vrt-saveas-dialog__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-height: 0;
	flex: 1;
}
.vrt-saveas-dialog__name-row {
	display: flex;
	align-items: center;
	gap: 4px;
}
.vrt-saveas-dialog__name-row > .vrt-input-wrapper {
	flex: 1;
	min-width: 0;
}
.vrt-saveas-dialog__name-input {
	height: 24px;
	padding: 0 7px;
	font-size: 12px;
}
.vrt-saveas-dialog__ext {
	color: var(--text-dim);
	font-size: 11px;
}
.vrt-saveas-dialog__hint {
	color: var(--text-dim);
	font-size: 10px;
	font-weight: 500;
}
.vrt-saveas-dialog__dir-label {
	color: var(--text-dim);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}
.vrt-saveas-dialog__tree {
	height: 180px;
	overflow: auto;
	border: 1px solid var(--border);
	background: var(--bg-deep);
	display: flex;
	flex-direction: column;
}
.vrt-saveas-dialog__empty {
	padding: 14px;
	color: var(--text-dim);
	font-size: 11px;
	text-align: center;
}
.vrt-saveas-dialog__error {
	color: var(--danger);
	font-size: 11px;
	padding: 6px 8px;
	background: rgba(233, 69, 96, 0.1);
	border-radius: var(--radius);
}
.vrt-saveas-dir-node {
	display: flex;
	flex-direction: column;
}
.vrt-saveas-dir-row {
	display: flex;
	align-items: stretch;
	height: 24px;
	padding-right: 6px;
	color: var(--text-muted);
	background: transparent;
	border: none;
	width: 100%;
	text-align: left;
	font: inherit;
	cursor: default;
	user-select: none;
	gap: 2px;
}
.vrt-saveas-dir-row:hover {
	background: var(--bg-elevated, #1c1c1f);
	color: var(--text-primary);
}
.vrt-saveas-dir-row--active {
	background: var(--accent-muted);
	color: var(--accent);
}
.vrt-saveas-dir-row--project {
	font-weight: 600;
}
.vrt-saveas-dir-chevron {
	width: 18px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--text-dim);
	cursor: pointer;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 3px;
	transition:
		transform 0.12s ease,
		color 0.12s ease;
}
.vrt-saveas-dir-chevron:hover:not(:disabled) {
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.05);
}
.vrt-saveas-dir-chevron:disabled {
	cursor: progress;
	color: var(--text-dim);
}
.vrt-saveas-dir-chevron--open {
	transform: rotate(90deg);
}
.vrt-saveas-dir-select {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	background: transparent;
	border: none;
	padding: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
}
.vrt-saveas-dir-icon {
	width: 14px;
	height: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	flex-shrink: 0;
}
.vrt-saveas-dir-icon--project {
	color: var(--accent-hover, #d9b97e);
}
.vrt-saveas-dir-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
}
.vrt-saveas-dialog__actions {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-top: var(--space-3);
}
/* ── Table (generic grid-based data table) ───────────────────────────── */
.vrt-table {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	flex: 1;
	background: var(--bg-panel, var(--bg-secondary, #18181b));
	font-size: 12px;
	color: var(--text-primary, #e0e0e0);
}
.vrt-table--comfortable {
	font-size: 13px;
}
.vrt-table:focus {
	outline: none;
}
.vrt-table__header,
.vrt-table__row {
	display: grid;
	align-items: center;
	min-width: 0;
}
.vrt-table__header {
	padding: 4px 8px;
	background: var(--bg-header, #18181b);
	border-bottom: 1px solid var(--border-color, #27272a);
	color: var(--text-dim, #94a3b8);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	flex-shrink: 0;
}
.vrt-table--comfortable .vrt-table__header {
	padding: 7px 10px;
}
.vrt-table__header-cell {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	padding: 0 6px;
	overflow: hidden;
	color: inherit;
	user-select: none;
}
.vrt-table__header-cell--drag {
	padding: 0;
}
.vrt-table__header-cell:first-child {
	padding-left: 0;
}
.vrt-table__header-cell:last-child {
	padding-right: 0;
}
.vrt-table__header-cell--sortable {
	cursor: pointer;
}
.vrt-table__header-cell--sortable:hover {
	color: var(--text-primary, #e0e0e0);
}
.vrt-table__header-cell--active {
	color: var(--text-primary, #e0e0e0);
}
.vrt-table__header-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-table__sort-indicator {
	display: inline-flex;
	align-items: center;
	color: var(--accent, #60a5fa);
}
.vrt-table__sort-indicator--idle {
	opacity: 0.25;
}
.vrt-table__cell {
	min-width: 0;
	padding: 0 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-table__cell--drag {
	display: flex;
	justify-content: center;
	overflow: visible;
}
.vrt-table__cell:first-child {
	padding-left: 0;
}
.vrt-table__cell:last-child {
	padding-right: 0;
}
.vrt-table__cell--left {
	text-align: left;
}
.vrt-table__cell--center {
	text-align: center;
}
.vrt-table__cell--right {
	display: flex;
	text-align: right;
	justify-content: flex-end;
}
.vrt-table__cell--center {
	display: flex;
	text-align: center;
	justify-content: center;
}
.vrt-table__row {
	min-height: 28px;
	padding: 4px 8px;
	background: transparent;
	border-bottom: 1px solid var(--border-color, #1f1f23);
	color: var(--text-primary, #e0e0e0);
	cursor: pointer;
	user-select: none;
	transition: background 0.12s;
}
.vrt-table--reorderable .vrt-table__row {
	position: relative;
}
.vrt-table--comfortable .vrt-table__row {
	min-height: 38px;
	padding: 7px 10px;
}
.vrt-table__row-group {
	min-width: 0;
}
.vrt-table--static .vrt-table__row {
	cursor: default;
	user-select: text;
}
.vrt-table--interactive .vrt-table__row:hover,
.vrt-table--static .vrt-table__row:hover {
	background: var(--bg-hover, rgba(255, 255, 255, 0.04));
}
.vrt-table__drag-handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 24px;
	margin: -2px 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text-dim, #6a6a7a);
	cursor: grab;
	opacity: 0.58;
	transition:
		color 0.12s,
		opacity 0.12s,
		transform 0.12s;
}
.vrt-table__drag-handle:hover,
.vrt-table__drag-handle:focus-visible {
	color: var(--accent, #f59e0b);
	opacity: 1;
	outline: none;
}
.vrt-table__drag-handle:active {
	cursor: grabbing;
	transform: scale(0.96);
}
.vrt-table__row--dragging {
	opacity: 0.42;
}
.vrt-table__row--drop-before::before,
.vrt-table__row--drop-after::after {
	position: absolute;
	left: 8px;
	right: 8px;
	z-index: 1;
	height: 2px;
	border-radius: 999px;
	background: var(--accent, #f59e0b);
	content: "";
}
.vrt-table__row--drop-before::before {
	top: 0;
}
.vrt-table__row--drop-after::after {
	bottom: 0;
}
.vrt-table__row--selected {
	background: var(--bg-active, rgba(96, 165, 250, 0.16));
}
.vrt-table__row--selected:hover {
	background: var(--bg-active-hover, rgba(96, 165, 250, 0.22));
}
.vrt-table__row--accent {
	box-shadow: inset 3px 0 0 var(--accent, #22c55e);
}
.vrt-table__row--warning {
	box-shadow: inset 3px 0 0 var(--warning, #f59e0b);
}
.vrt-table__row--danger {
	box-shadow: inset 3px 0 0 var(--danger, #ef4444);
}
.vrt-table__row--accent-strong {
	box-shadow: inset 3px 0 0 var(--accent-strong, #60a5fa);
}
.vrt-table__empty {
	padding: 16px;
	color: var(--text-dim, #94a3b8);
	text-align: center;
	font-size: 12px;
}
.vrt-table__expanded-row {
	padding: 10px 12px 12px;
	border-bottom: 1px solid var(--border-color, #1f1f23);
	background: var(--bg-active, rgba(96, 165, 250, 0.08));
	color: var(--text-primary, #e0e0e0);
}
/* ── EnginePicker (compact URL-bound engine select for Preview / settings) */
.vrt-engine-picker {
	display: flex;
	width: 100%;
}
.vrt-engine-picker .vrt-select__trigger {
	min-height: 30px;
	padding: 4px 8px;
	font-size: 12px;
}
.vrt-engine-picker .vrt-select__option {
	font-size: 12px;
}
/* ── EngineSelector (compact PGM/PVW picker with role + actions menu) ─ */
.vrt-engine-selector {
	position: relative;
	display: inline-flex;
}
.vrt-engine-selector__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 8px;
	background: var(--bg-tertiary, #1c1c24);
	border: 1px solid var(--border-color, #2a2a3e);
	border-radius: 4px;
	color: var(--text-primary, #e0e0e0);
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 0.12s,
		border-color 0.12s;
}
.vrt-engine-selector__trigger:hover:not(:disabled) {
	background: var(--bg-hover, rgba(255, 255, 255, 0.06));
	border-color: var(--text-dim, #6a6a7a);
}
.vrt-engine-selector__trigger:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.vrt-engine-selector__trigger--open {
	border-color: var(--accent, #60a5fa);
	box-shadow: 0 0 0 1px var(--accent, #60a5fa);
}
.vrt-engine-selector__role {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	min-width: 0;
}
.vrt-engine-selector__role-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--text-dim, #6a6a7a);
	text-transform: uppercase;
}
.vrt-engine-selector__role--program .vrt-engine-selector__role-label {
	color: var(--accent, #60a5fa);
}
.vrt-engine-selector__role--preview .vrt-engine-selector__role-label {
	color: #2f9e6e;
}
.vrt-engine-selector__role-name {
	max-width: 110px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-engine-selector__divider {
	width: 1px;
	height: 14px;
	background: var(--border-color, #2a2a3e);
}
.vrt-engine-selector__chevron {
	display: inline-flex;
	align-items: center;
	color: var(--text-dim, #6a6a7a);
	transition: transform 0.15s;
}
.vrt-engine-selector__trigger--open .vrt-engine-selector__chevron {
	transform: rotate(180deg);
}
.vrt-engine-selector__trigger-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-left: 4px;
	padding: 0;
	background: var(--bg-tertiary, #1c1c24);
	border: 1px solid var(--border-color, #2a2a3e);
	color: var(--text-secondary, #b0b0b8);
	cursor: pointer;
	transition:
		background 0.12s,
		color 0.12s;
}
.vrt-engine-selector__trigger-action:hover:not(:disabled) {
	background: var(--bg-hover, rgba(255, 255, 255, 0.08));
	color: var(--text-primary, #e0e0e0);
}
.vrt-engine-selector__trigger-action:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.vrt-engine-selector__menu {
	display: flex;
	flex-direction: column;
	max-height: 360px;
	overflow: hidden;
	background: var(--bg-panel, #1a1a2e);
	border: 1px solid var(--border-color, #2a2a3e);
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.vrt-engine-selector__menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
	background: var(--bg-tertiary, #1c1c24);
	border-bottom: 1px solid var(--border-color, #2a2a3e);
	color: var(--text-dim, #94a3b8);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	flex-shrink: 0;
}
.vrt-engine-selector__empty {
	padding: 16px;
	color: var(--text-dim, #94a3b8);
	text-align: center;
	font-size: 12px;
}
.vrt-engine-selector__list {
	list-style: none;
	margin: 0;
	padding: 4px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow-y: auto;
}
.vrt-engine-selector__row {
	display: grid;
	grid-template-columns: 8px 1fr;
	gap: 10px;
	padding: 6px 8px;
	background: transparent;
	transition: background 0.12s;
}
.vrt-engine-selector__row:hover {
	background: var(--bg-hover, rgba(255, 255, 255, 0.05));
}
.vrt-engine-selector__row--program {
	box-shadow: inset 2px 0 0 var(--accent, #60a5fa);
}
.vrt-engine-selector__row--preview {
	box-shadow: inset 2px 0 0 #2f9e6e;
}
.vrt-engine-selector__status {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-dim, #6a6a7a);
	align-self: center;
}
.vrt-engine-selector__status--online {
	background: #48c78e;
}
.vrt-engine-selector__status--offline {
	background: #f14668;
}
.vrt-engine-selector__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vrt-engine-selector__name-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.vrt-engine-selector__name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vrt-engine-selector__status-pill {
	display: inline-flex;
	align-items: center;
	padding: 1px 5px;
	border-radius: 99px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	background: var(--bg-tertiary, #1c1c24);
	color: var(--text-dim, #6a6a7a);
}
.vrt-engine-selector__status-pill--online {
	background: rgba(72, 199, 142, 0.18);
	color: #48c78e;
}
.vrt-engine-selector__status-pill--offline {
	background: rgba(241, 70, 104, 0.18);
	color: #f14668;
}
.vrt-engine-selector__meta-inline {
	color: var(--text-dim, #94a3b8);
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	margin-left: auto;
}
.vrt-engine-selector__roles {
	display: flex;
	gap: 12px;
}
.vrt-engine-selector__radio {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	color: var(--text-dim, #94a3b8);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.vrt-engine-selector__radio input {
	margin: 0;
	width: 12px;
	height: 12px;
	accent-color: var(--accent, #60a5fa);
	cursor: pointer;
}
.vrt-engine-selector__radio--program {
	color: var(--accent, #60a5fa);
}
.vrt-engine-selector__radio--preview {
	color: #2f9e6e;
}
.vrt-engine-selector__radio--active {
	color: var(--text-primary, #e0e0e0);
}
.vrt-engine-selector__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 2px;
}
.vrt-engine-selector__action {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	height: 22px;
	padding: 0 7px;
	background: var(--bg-tertiary, #1c1c24);
	border: 1px solid var(--border-color, #2a2a3e);
	color: var(--text-secondary, #b0b0b8);
	font-size: 10px;
	font-weight: 600;
	cursor: pointer;
}
.vrt-engine-selector__action:hover:not(:disabled) {
	background: var(--bg-hover, rgba(255, 255, 255, 0.08));
	color: var(--text-primary, #e0e0e0);
}
.vrt-engine-selector__action:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.vrt-engine-selector__action--destructive {
	color: var(--danger, #ef4444);
}
.vrt-engine-selector__action--destructive:hover:not(:disabled) {
	background: rgba(239, 68, 68, 0.12);
	color: var(--danger, #ef4444);
}
.vrt-engine-selector__action-icon {
	display: inline-flex;
	align-items: center;
}
:root {
	/* Typography */
	--font-sans: "Inter", system-ui, -apple-system, sans-serif;

	/* ── Backgrounds — warm charcoal ───────────────────────────── */
	--bg-dark: #111214;
	--bg-panel: #1a1b1f;
	--bg-header: #14151a;
	--bg-deep: #0b0c0f;
	--bg-input: #252830;
	--bg-hover: #1e2024;

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

	/* ── Text — warm ivory ─────────────────────────────────────── */
	--text-main: #e8e5e0;
	--text-muted: #9c998f;
	--text-dim: #696660;
	--text-faint: #4e4b46;

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

	/* ── Accent — brushed gold ─────────────────────────────────── */
	--accent: #c9a96e;
	--accent-hover: #d9b97e;
	--accent-muted: #3d3224;

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

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

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

	/* ── Per-app accent color ramps ────────────────────────────── */
	--odin-accent: #c9a96e;
	--odin-accent-hover: #d9b97e;
	--odin-accent-muted: #3d3224;
	--odin-gradient-1: #c9a96e;
	--odin-gradient-2: #a68a52;

	--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: #d4a017;
	--heimdall-accent-hover: #f5b400;
	--heimdall-accent-muted: #5c4400;
	--heimdall-gradient-1: #d4a017;
	--heimdall-gradient-2: #b8860b;
	--heimdall-teal: #0e7490;
	--heimdall-teal-soft: rgba(14, 116, 144, 0.18);

	/* ── Structure ─────────────────────────────────────────────── */
	--border: #2a2b30;
	--border-subtle: #3a3b42;
	--border-focus: var(--accent);
	--border-color: var(--border);
	--border-metal: rgba(255, 255, 255, 0.07);

	/* ── Layout — shared app chrome dimensions ────────────────── */
	--app-header-height: 32px;
	--app-status-bar-height: 30px;

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

	/* ── Typography — SPA-comfortable baseline ─────────────────── */
	/* Note: Odin overrides these in its own scoped CSS */
	--text-2xs: 10px;
	--text-xs: 11px;
	--text-sm: 13px;
	--text-base: 14px;
	--text-md: 16px;

	/* ── Spacing (4px grid) ────────────────────────────────────── */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;

	/* ── Elevation shadows ─────────────────────────────────────── */
	--elevation-1: 0 1px 2px rgba(0, 0, 0, 0.4);
	--elevation-2: 0 4px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
	--elevation-3: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.25);
	--elevation-dialog: 0 24px 80px rgba(0, 0, 0, 0.65), 0 4px 16px rgba(0, 0, 0, 0.3);

	/* ── Easing curves ─────────────────────────────────────────── */
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
	--duration-fast: 110ms;
	--duration-base: 200ms;
	--duration-slow: 350ms;

	/* ── 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: var(--font-sans);
	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-y: auto;
	overflow-x: 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: 10000;
	background: rgba(0, 0, 0, 0.6);
}
.vrt-dialog-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10001;
	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-odinobj {
	background: #7c3aed; /* Violet for Objects (Transition Logic) */
}
.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);
}
/* biome-ignore-all lint/complexity/noImportantStyles: login submit button must override app-wide button styles
/* 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-brand {
	border-bottom: 1px solid var(--border);
	margin-bottom: 8px;
}

.vrt-sidebar-brand .vrt-app-status-trigger {
	height: auto;
	width: 100%;
	padding: 16px 20px 14px;
	border-right: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.vrt-sidebar-brand .vrt-app-status-trigger__pills {
	gap: 5px;
}

.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-admin-kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.vrt-admin-kpi {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	background: var(--bg-panel);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		background 0.12s,
		border-color 0.12s,
		transform 0.12s;
}

.vrt-admin-kpi:hover,
.vrt-admin-kpi:focus-visible {
	background: var(--bg-hover);
	border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
	outline: none;
	transform: translateY(-1px);
}

.vrt-admin-kpi--good {
	border-color: color-mix(in srgb, var(--success) 32%, var(--border));
}

.vrt-admin-kpi--warn {
	border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.vrt-admin-kpi--bad {
	border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
}

.vrt-admin-kpi__label {
	color: var(--text-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.vrt-admin-kpi strong {
	color: var(--text-main);
	font-size: 2rem;
	line-height: 1;
}

.vrt-admin-kpi span:last-child {
	min-width: 0;
	overflow: hidden;
	color: var(--text-muted);
	font-size: 0.78rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-admin-dashboard-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
	gap: 16px;
	margin-bottom: 16px;
}

.vrt-admin-dashboard-grid .vrt-panel,
.vrt-admin-dashboard-overview,
.vrt-admin-work-panel {
	border-radius: var(--radius-md);
}

.vrt-admin-dashboard-grid .vrt-panel__content,
.vrt-admin-dashboard-overview .vrt-panel__content,
.vrt-admin-work-panel .vrt-panel__content {
	padding: 0;
}

.vrt-admin-filter-bar,
.vrt-audit-filter-bar {
	display: grid;
	grid-template-columns: minmax(180px, 1.2fr) 130px 190px 190px 90px auto;
	gap: 10px;
	align-items: end;
	padding: 14px 16px;
	border-bottom: 1px solid var(--border);
	background: var(--bg-deep);
}

.vrt-admin-filter-actions,
.vrt-audit-filter-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
	padding-bottom: 1px;
}

.vrt-admin-filter-bar--logs {
	grid-template-columns: 140px 150px minmax(220px, 1fr) auto;
}

.vrt-admin-filter-bar--diagnostics {
	grid-template-columns: minmax(220px, 1.2fr) 130px auto;
}

.vrt-admin-panel-body {
	padding: 14px 16px 16px;
}

.vrt-admin-section-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.vrt-admin-section-toolbar > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.82rem;
}

.vrt-admin-health-list,
.vrt-admin-plan-list {
	display: grid;
	gap: 8px;
	padding: 12px 14px 14px;
}

.vrt-admin-plan-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.vrt-admin-health-row,
.vrt-admin-plan-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	padding: 8px 10px;
	background: var(--bg-deep);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 0.85rem;
}

.vrt-admin-health-row span:first-child,
.vrt-admin-plan-row span:first-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-admin-action-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 12px 14px 14px;
}

.vrt-admin-inline-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 104px auto;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.vrt-admin-renewal {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
}

.vrt-admin-renewal strong {
	font-size: 0.95rem;
}

.vrt-admin-renewal span {
	color: var(--text-muted);
	font-size: 0.85rem;
}

.vrt-admin-workspace-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	padding: 14px;
}

.vrt-admin-workspace-tile {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
	padding: 12px;
	background: var(--bg-deep);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.vrt-admin-workspace-tile strong,
.vrt-admin-workspace-tile span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-admin-workspace-tile span {
	color: var(--text-muted);
	font-size: 0.78rem;
}

.vrt-admin-diagnostics-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 0.84rem;
}

.vrt-admin-diagnostics-summary span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-admin-diagnostics-kpis {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 16px 12px;
}

.vrt-admin-diagnostics-hop,
.vrt-admin-diagnostics-trend {
	display: flex;
	gap: 8px;
	padding: 0 16px 14px;
}

.vrt-admin-diagnostics-hop {
	flex-direction: column;
}

.vrt-admin-diagnostics-hop .vrt-text-muted,
.vrt-admin-diagnostics-trend .vrt-text-muted {
	font-size: 11px;
}

.vrt-admin-diagnostics-trend {
	align-items: center;
}

.vrt-admin-signal-list {
	display: grid;
	gap: 8px;
	padding: 12px 14px 14px;
}

.vrt-admin-signal-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 8px 10px;
	background: var(--bg-deep);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 0.85rem;
}

.vrt-admin-signal-row strong,
.vrt-admin-signal-row span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-admin-signal-row span {
	color: var(--text-muted);
	font-size: 0.78rem;
}

.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,
.vrt-admin-detail-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 10px;
	margin-top: 4px;
	border-top: 1px solid var(--border);
}

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

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

.vrt-user-detail__value,
.vrt-admin-detail-row__control {
	flex: 1;
	min-width: 0;
}

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

.vrt-admin-detail-row__control {
	display: flex;
	align-items: center;
	gap: 8px;
	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-admin-table {
	min-height: 240px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.vrt-admin-table--bounded {
	max-height: calc(100vh - 300px);
	min-height: 320px;
	overflow: auto;
}

.vrt-admin-table--bounded .vrt-table__header {
	position: sticky;
	top: 0;
	z-index: 2;
}

.vrt-admin-table--detail {
	min-height: 0;
	max-height: 260px;
	overflow: auto;
}

.vrt-admin-table--detail .vrt-table__empty {
	min-height: 76px;
}

.vrt-admin-table__mono {
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.78rem;
}

.vrt-admin-table__ellipsis {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-admin-table__name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vrt-admin-table__name strong,
.vrt-admin-table__name span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vrt-admin-table__name span {
	color: var(--text-muted);
	font-size: 0.78rem;
}

.vrt-admin-table__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	min-width: 0;
}

.vrt-admin-table__detail {
	display: grid;
	gap: 10px;
}

.vrt-admin-invite-block {
	display: grid;
	flex: 1;
	min-width: 0;
	gap: 8px;
}

.vrt-admin-invite-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.vrt-admin-table__detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px;
}

.vrt-admin-table__detail-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.vrt-admin-table__detail-label {
	color: var(--text-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.vrt-admin-table__detail-value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text-main);
	font-size: 0.82rem;
}

.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(201, 169, 110, 0.08), transparent 34%),
		linear-gradient(235deg, rgba(201, 169, 110, 0.05), transparent 42%),
		linear-gradient(145deg, #09090b 0%, #101218 48%, #15110a 100%);
	--vrt-login-panel: linear-gradient(135deg, #2a1f0a 0%, #1a1410 50%, #0d0f14 100%);
	--vrt-login-panel-soft: rgba(201, 169, 110, 0.15);
	--vrt-login-focus: var(--accent);
	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(168, 85, 247, 0.08), transparent 36%),
		linear-gradient(235deg, rgba(168, 85, 247, 0.05), transparent 44%),
		linear-gradient(145deg, #080807 0%, #100b14 54%, #14100a 100%);
	--vrt-login-panel: linear-gradient(135deg, #1f112e 0%, #110d1a 50%, #0d0f14 100%);
	--vrt-login-panel-soft: rgba(168, 85, 247, 0.15);
	--vrt-login-focus: #a855f7;
	--vrt-login-accent: #7c3aed;
	--vrt-login-accent-hover: #8b5cf6;
}

.vrt-login-shell--odin {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(201, 169, 110, 0.08), transparent 36%),
		linear-gradient(235deg, rgba(201, 169, 110, 0.05), transparent 44%),
		linear-gradient(145deg, #0c0a06 0%, #14110a 56%, #0d0f14 100%);
	--vrt-login-panel: linear-gradient(135deg, #2a1f0a 0%, #1a1410 50%, #0d0f14 100%);
	--vrt-login-panel-soft: rgba(201, 169, 110, 0.15);
	--vrt-login-focus: #c9a96e;
	--vrt-login-accent: #c9a96e;
	--vrt-login-accent-hover: #d9b97e;
}

.vrt-login-shell--tyr {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(120, 30, 30, 0.12), transparent 36%),
		linear-gradient(235deg, rgba(160, 40, 50, 0.06), transparent 44%),
		linear-gradient(145deg, #0b0f12 0%, #160f12 52%, #071312 100%);
	--vrt-login-panel: linear-gradient(135deg, #2e1111 0%, #1a0d0d 50%, #0d0f14 100%);
	--vrt-login-panel-soft: rgba(233, 69, 96, 0.18);
	--vrt-login-focus: var(--accent, #e94560);
	--vrt-login-accent: #e94560;
	--vrt-login-accent-hover: #ff5a73;
}

.vrt-login-shell--bragi {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(6, 182, 212, 0.08), transparent 36%),
		linear-gradient(235deg, rgba(6, 182, 212, 0.05), transparent 44%),
		linear-gradient(145deg, #041018 0%, #0b1324 54%, #06140e 100%);
	--vrt-login-panel: linear-gradient(135deg, #0a1f26 0%, #0d161a 50%, #0d0f14 100%);
	--vrt-login-panel-soft: rgba(6, 182, 212, 0.15);
	--vrt-login-focus: #06b6d4;
	--vrt-login-accent: #06b6d4;
	--vrt-login-accent-hover: #22d3ee;
}

.vrt-login-shell--heimdall {
	--vrt-login-bg:
		linear-gradient(120deg, rgba(212, 160, 23, 0.2), transparent 36%),
		linear-gradient(235deg, rgba(212, 160, 23, 0.08), transparent 44%),
		linear-gradient(145deg, #14100a 0%, #18130b 56%, #0d0f14 100%);
	--vrt-login-panel: linear-gradient(135deg, #2a210c 0%, #18130b 50%, #0d0f14 100%);
	--vrt-login-panel-soft: rgba(212, 160, 23, 0.2);
	--vrt-login-focus: var(--heimdall-accent);
	--vrt-login-accent: var(--heimdall-accent);
	--vrt-login-accent-hover: var(--heimdall-accent-hover);
}

.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.12), transparent 75%),
		linear-gradient(315deg, rgba(0, 0, 0, 0.16), transparent 85%);
	content: "";
}

.vrt-login-pane--visual::after {
	position: absolute;
	inset: 16px;
	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: 40px;
	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 1px color-mix(in srgb, var(--vrt-login-focus) 35%, transparent);
}

.vrt-login-submit,
button.vrt-btn.vrt-login-submit {
	width: 100%;
	min-height: 42px;
	margin-top: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(
		180deg,
		var(--vrt-login-accent-hover, var(--accent-hover)) 0%,
		var(--vrt-login-accent, var(--accent)) 100%
	) !important;
	border-color: color-mix(in srgb, var(--vrt-login-accent, var(--accent)) 70%, transparent) !important;
	color: var(--vrt-login-submit-fg, #1a0d0d) !important;
	font-weight: 600;
	text-shadow: none;
}

.vrt-login-shell--tyr,
.vrt-login-shell--mimir,
.vrt-login-shell--bragi,
.vrt-login-shell--heimdall {
	--vrt-login-submit-fg: #ffffff;
}

.vrt-login-submit .vrt-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	margin: 0;
	padding: 0;
}

.vrt-login-submit:hover:not(:disabled) {
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--vrt-login-accent-hover, var(--accent-hover)) 75%, white) 0%,
		var(--vrt-login-accent-hover, var(--accent-hover)) 100%
	);
}

.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-known-user {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
}

.vrt-login-known-user__name {
	font-size: 13px;
	font-weight: 600;
	color: #e2e8f0;
}

.vrt-login-known-user__email {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
}

.vrt-login-known-user__switch {
	margin-top: 4px;
	padding: 0;
	background: none;
	border: none;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	text-align: left;
	text-decoration: underline;
	transition: color 0.15s;
}

.vrt-login-known-user__switch:hover {
	color: rgba(255, 255, 255, 0.85);
}

.vrt-login-post {
	margin: 0;
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

.vrt-login-post a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.15s;
}

.vrt-login-post a:hover {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
}

.vrt-login-visual-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
	color: white;
}

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

/* ── Register form extras ───────────────────────────────────────────────── */

.vrt-login-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.vrt-login-hint {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.38);
	line-height: 1.4;
}

.vrt-login-terms {
	margin: 0;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.32);
	line-height: 1.5;
}

.vrt-login-post-link {
	align-self: center;
	padding: 0;
	background: none;
	border: none;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	text-decoration: none;
	transition: color 0.15s;
}

.vrt-login-post-link:hover {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
}

/* ── Register success screen ────────────────────────────────────────────── */

.vrt-login-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
	padding: 8px 0;
}

.vrt-login-success__icon {
	color: var(--vrt-login-focus);
	flex-shrink: 0;
}

.vrt-login-success__title {
	font-size: 20px;
	font-weight: 800;
	color: var(--text-main);
	line-height: 1.15;
}

.vrt-login-success__message {
	margin: 0;
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.55;
	max-width: 300px;
}

.vrt-login-success__hint {
	margin: 0;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.3);
	line-height: 1.5;
}

.vrt-login-success__resend {
	margin-top: 2px;
}

.vrt-login-success__resend-done {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

/* ── 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-admin-kpi-grid,
	.vrt-admin-dashboard-grid,
	.vrt-admin-plan-card-grid,
	.vrt-admin-workspace-strip {
		grid-template-columns: 1fr;
	}

	.vrt-admin-action-grid,
	.vrt-admin-inline-controls,
	.vrt-admin-filter-bar,
	.vrt-audit-filter-bar,
	.vrt-form-grid-2 {
		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);
	padding: 10px 16px 8px;
}

.vrt-logs-list {
	height: min(68vh, 720px);
	margin: 0 16px;
	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;
}

.vrt-logs-footnote {
	margin: 0;
	padding: 10px 16px 14px;
	font-size: 0.8rem;
}

/* ── Login visual custom (cara del dios) ───────────────────────────── */

.vrt-login-visual-custom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	height: 100%;
	min-height: 100%;
	padding: 40px 32px;
	position: relative;
	overflow: hidden;
}

.vrt-login-pane--visual > .vrt-login-visual-custom {
	height: 100%;
}

.vrt-login-visual-custom__head {
	width: 100%;
	max-width: 340px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	flex: 1;
	filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.7));
	animation: vrt-login-head-float 7s ease-in-out infinite;
}

@keyframes vrt-login-head-float {
	0%,
	100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-10px) scale(1.03);
	}
}

.vrt-login-visual-custom__copy {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	width: 100%;
}

.vrt-login-visual-custom__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
}

.vrt-login-visual-custom__brand-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.vrt-login-visual-custom__name {
	color: var(--text-main);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.vrt-login-visual-custom__text {
	margin: 0;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.5;
}

.vrt-login-visual-custom__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	width: 100%;
	max-width: 340px;
	position: relative;
	z-index: 2;
}

.vrt-login-visual-custom__mark img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.7));
}

.vrt-login-visual-custom__panteon {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-content: center;
	justify-items: center;
	align-items: center;
	padding: 32px;
	gap: 16px;
	opacity: 0.18;
	filter: saturate(0.7);
	z-index: 1;
	pointer-events: none;
}

.vrt-login-visual-custom__panteon-mark {
	width: 100%;
	max-width: 64px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	filter: grayscale(0.4);
}

.vrt-login-visual-custom__text {
	margin: 0;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.5;
}

@media (max-width: 900px) {
	.vrt-login-visual-custom {
		padding: 24px 20px;
		min-height: 240px;
	}
	.vrt-login-visual-custom__head {
		max-width: 200px;
	}
}
* {
	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;
	flex: 1;
	min-height: 0;
}

.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(220px, 32%) minmax(280px, 68%);
}

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

.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 {
	display: flex;
	width: 100%;
}

.tab-field-row__select .vrt-select__trigger {
	background: var(--bg-deep);
	border-color: var(--border-color);
	border-radius: 0;
	color: var(--text-primary);
	font-size: 11px;
}

.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__control {
	width: 14px;
	height: 14px;
}

.field-select {
	display: flex;
	width: 100%;
}

.field-select .vrt-select__trigger {
	height: 30px;
	padding: 0 var(--space-3);
	background: var(--bg-input);
	border-color: var(--border);
	border-radius: var(--radius);
	color: var(--text-primary);
	font-size: var(--text-sm);
}

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

.director-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.director-panel__header span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
}

.director-panel__status {
	max-width: 55%;
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.68rem;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.director-panel__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.45rem;
	overflow: auto;
}

.director-panel__config {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr) auto;
	gap: 0.4rem;
}

.director-panel__instruction,
.director-panel__draft {
	min-height: 62px;
	resize: vertical;
	font-family: inherit;
}

.director-panel__snapshot {
	min-height: 62px;
	overflow: auto;
	padding: 0.5rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.66rem;
	white-space: pre-wrap;
}

.director-panel__actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	grid-column: 1 / -1;
	min-width: 0;
}

.director-panel__actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.director-panel__ok {
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.65rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-panel {
	min-height: 0;
}

.autopilot-panel--live {
	box-shadow: inset 3px 0 0 var(--danger);
}

.autopilot-panel--armed {
	box-shadow: inset 3px 0 0 var(--warning);
}

.autopilot-panel__header,
.autopilot-panel__title,
.autopilot-mode {
	display: flex;
	align-items: center;
}

.autopilot-panel__header {
	justify-content: space-between;
	gap: 0.5rem;
}

.autopilot-panel__title {
	gap: 0.35rem;
	min-width: 0;
}

.autopilot-mode {
	gap: 0.3rem;
	min-height: 22px;
	padding: 0 0.55rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: var(--bg-tertiary);
	color: var(--text-primary);
	font-size: 0.68rem;
	font-weight: 700;
	cursor: pointer;
}

.autopilot-mode--live {
	border-color: rgba(239, 68, 68, 0.65);
	background: rgba(239, 68, 68, 0.16);
	color: #fecaca;
}

.autopilot-mode--armed {
	border-color: rgba(245, 158, 11, 0.65);
	background: rgba(245, 158, 11, 0.14);
	color: #fde68a;
}

.autopilot-panel__content {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 0;
	overflow-y: auto;
}

.autopilot-panel__modes,
.autopilot-panel__snapshot,
.autopilot-readiness,
.autopilot-profiles,
.autopilot-rules__grid {
	display: grid;
	gap: 0.4rem;
}

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

.autopilot-panel__modes .btn {
	justify-content: center;
}

.autopilot-panel__snapshot {
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	padding: 0.32rem 0.45rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-secondary);
	font-size: 0.68rem;
}

.autopilot-panel__snapshot span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-readiness {
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	padding: 0.3rem 0.45rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-secondary);
	font-size: 0.68rem;
}

.autopilot-readiness span {
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
	color: var(--text-primary);
	font-weight: 700;
	white-space: nowrap;
}

.autopilot-readiness em {
	overflow: hidden;
	font-style: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-readiness strong {
	padding: 0.08rem 0.32rem;
	border: 1px solid var(--border-color);
	border-radius: 3px;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	font-size: 0.62rem;
}

.autopilot-readiness--ready {
	border-color: rgba(34, 197, 94, 0.45);
}

.autopilot-readiness--ready span {
	color: #bbf7d0;
}

.autopilot-readiness--armed {
	border-color: rgba(245, 158, 11, 0.55);
}

.autopilot-readiness--armed span {
	color: #fde68a;
}

.autopilot-readiness--blocked {
	border-color: rgba(239, 68, 68, 0.5);
}

.autopilot-readiness--blocked span {
	color: #fecaca;
}

.autopilot-remote {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: center;
	gap: 0.35rem;
	padding: 0.24rem 0.4rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-secondary);
	font-size: 0.66rem;
}

.autopilot-remote__dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--danger);
}

.autopilot-remote__dot--on {
	background: #22c55e;
}

.autopilot-remote em {
	overflow: hidden;
	font-style: normal;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

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

.autopilot-profiles .btn {
	justify-content: center;
}

.autopilot-director {
	display: grid;
	gap: 0.35rem;
	padding: 0.35rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

.autopilot-director__title {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.4rem;
	color: var(--text-secondary);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
}

.autopilot-director__title span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-director__title em {
	overflow: hidden;
	color: var(--text-muted);
	font-size: 0.62rem;
	font-style: normal;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-director__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
	gap: 0.32rem;
}

.autopilot-field {
	display: grid;
	gap: 0.18rem;
	min-width: 0;
}

.autopilot-field--wide {
	grid-column: 1 / -1;
}

.autopilot-field span {
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.66rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-field .vrt-text-input,
.autopilot-field .vrt-textarea-input,
.autopilot-field .vrt-select,
.autopilot-field .vrt-select__trigger {
	min-width: 0;
	width: 100%;
}

.autopilot-field .vrt-textarea-input {
	min-height: 78px;
	resize: vertical;
	font-family: inherit;
	font-size: 11px;
	line-height: 1.35;
}

.autopilot-director__grid .num-input-field {
	min-width: 0;
	width: 100%;
}

.autopilot-director__grid .num-input-label {
	width: 60px;
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.66rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-director__actions {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
	gap: 0.32rem;
}

.autopilot-director__actions .btn {
	justify-content: center;
	min-width: 0;
}

.autopilot-permissions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
	gap: 0.35rem;
	flex: 0 0 auto;
	min-height: 0;
	max-height: 142px;
	overflow-y: auto;
	padding-right: 2px;
}

.autopilot-permission-group {
	display: grid;
	align-content: start;
	gap: 0.25rem;
	min-width: 0;
	padding: 0.28rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

.autopilot-permission-group__title {
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.62rem;
	font-weight: 700;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.autopilot-permission {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.32rem;
	min-height: 22px;
	padding: 0.12rem 0.28rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

.autopilot-permission span {
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.68rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-rules {
	display: grid;
	flex: 0 0 auto;
	gap: 0.3rem;
}

.autopilot-rules__grid {
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	gap: 0.3rem;
}

.autopilot-rules__grid .num-input-field {
	min-width: 0;
	width: 100%;
}

.autopilot-rules__grid .num-input-label {
	width: 64px;
	overflow: hidden;
	color: var(--text-secondary);
	font-size: 0.68rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-log {
	display: grid;
	flex: 0 0 auto;
	gap: 0.2rem;
	min-height: 28px;
	overflow: hidden;
}

.autopilot-log__empty,
.autopilot-log__row {
	padding: 0.24rem 0.38rem;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-secondary);
	font-size: 0.66rem;
	line-height: 1.15;
}

.autopilot-log__row {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: center;
	gap: 0.35rem;
}

.autopilot-log__row strong,
.autopilot-log__row em {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.autopilot-log__row strong {
	color: var(--text-primary);
	font-style: normal;
}

.autopilot-log__row em {
	color: var(--text-secondary);
	font-style: normal;
}

.autopilot-log__row--ok {
	border-color: rgba(34, 197, 94, 0.45);
}

.autopilot-log__row--blocked,
.autopilot-log__row--error {
	border-color: rgba(239, 68, 68, 0.5);
}

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

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

.preview-engine-picker {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
}

.preview-engine-picker .vrt-engine-picker {
	flex: 1;
}

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

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

	.vrt-table,
	.rundown-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 0 0;
	height: var(--app-header-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--left {
	align-self: stretch;
}

.top-bar__section--right {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin-left: auto;
	padding-right: 0.5rem;
}

.top-bar__on-air {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 8px;
	height: 22px;
	border: none;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition:
		background 0.15s,
		color 0.15s;
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	white-space: nowrap;
}

.top-bar__on-air--active {
	background: var(--danger);
	color: #fff;
	animation: pulse 1.5s infinite;
}

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

/* ── TopBar responsive ── the action row gets dense under 1200px; collapse
   the secondary groups (Initialize/Cleanup, Loki, Macros, Callup form)
   into a single `More` dropdown so the playout actions stay reachable
   without horizontal scrolling or wrap. ───────────────────────────── */
.top-bar__more {
	display: none;
}

@media (max-width: 1200px) {
	.top-bar {
		flex-wrap: wrap;
		height: auto;
		min-height: 32px;
	}

	.top-bar__section--actions {
		flex: 1 1 100%;
		justify-content: flex-end;
	}

	.top-bar__group--collapsible,
	.top-bar__item--collapsible,
	/* hide separators that sit immediately before a collapsed item/group */
	.top-bar__separator:has(+ .top-bar__group--collapsible),
	.top-bar__separator:has(+ .top-bar__item--collapsible) {
		display: none;
	}

	.top-bar__more {
		display: inline-flex;
	}
}

@media (max-width: 900px) {
	.top-bar__group--critical {
		flex-wrap: wrap;
	}
}

/* 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: var(--app-status-bar-height, 30px);
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	gap: 0.5rem;
	flex-shrink: 0;
}

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

.tl-layer-strip {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	max-width: 520px;
	overflow: hidden;
}

.tl-layer-status,
.tl-layer-chip {
	display: inline-flex;
	align-items: center;
	height: 20px;
	max-width: 150px;
	padding: 2px 6px;
	overflow: hidden;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 3px;
}

.tl-layer-status {
	flex-shrink: 0;
	color: var(--text-secondary);
}

.tl-layer-status--live {
	color: #48c78e;
	border-color: rgba(72, 199, 142, 0.45);
}

.tl-layer-status--loading,
.tl-layer-status--polling {
	color: var(--warning);
	border-color: color-mix(in srgb, var(--warning) 45%, var(--border-color));
}

.tl-layer-status--error {
	color: var(--danger);
	border-color: color-mix(in srgb, var(--danger) 45%, var(--border-color));
}

.tl-layer-chip {
	gap: 4px;
	min-width: 0;
	color: var(--text-primary);
	border-color: color-mix(in srgb, var(--accent-primary) 42%, var(--border-color));
}

.tl-layer-chip--animating {
	color: var(--accent-primary);
}

.tl-layer-chip--out {
	opacity: 0.65;
}

.tl-layer-chip--more {
	flex-shrink: 0;
	color: var(--text-secondary);
	border-color: var(--border-color);
}

.tl-layer-chip__name,
.tl-layer-chip__arms {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tl-layer-chip__name {
	max-width: 60px;
}

.tl-layer-chip__arms {
	color: var(--text-secondary);
}

.tl-layer-chip__parity {
	flex-shrink: 0;
	color: #48c78e;
}

.engine-panel {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: var(--space-2);
	overflow: hidden;
	flex: 1;
	min-height: 0;
}

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

/* 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;
}

/* 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,
.vrt-table__row,
.tab-field-row,
.tab-fields-empty {
	border-radius: 0;
}

/* Compact inline select used inside the PageList Channel/Layer columns. */
.page-list-route-select {
	display: flex;
	min-width: 0;
	width: 100%;
}

.page-list-route-select .vrt-select__trigger {
	height: 22px;
	padding: 0 6px;
	font-size: 11px;
	background: var(--bg-deep, #1a1a2e);
	border-color: transparent;
	color: var(--text-primary);
}

.page-list-route-select .vrt-select__trigger:hover,
.vrt-table__row:hover .page-list-route-select .vrt-select__trigger {
	border-color: var(--border-color);
}

.vrt-table__row--selected .page-list-route-select .vrt-select__trigger {
	border-color: var(--accent-primary);
}

.vrt-badge {
	padding: 1px 6px;
	font-size: 9px;
	letter-spacing: 0.05em;
}

/* Playlists dialog */
.playlists-dialog__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.playlists-dialog {
	background: var(--bg-elevated, #1a1a22);
	border: 1px solid var(--border, #333);
	color: var(--text-primary, #eee);
	padding: 16px;
	min-width: 480px;
	max-width: 720px;
	width: 80%;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-radius: 0;
}

.playlists-dialog__header {
	display: flex;
	align-items: center;
	gap: 8px;
}

.playlists-dialog__header h2 {
	font-size: 1rem;
	font-weight: 600;
	flex: 1;
	margin: 0;
}

.playlists-dialog__actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.playlists-dialog__form {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border, #333);
}

.playlists-dialog__form-actions {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}

.playlists-dialog__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow-y: auto;
	max-height: 50vh;
}

.playlists-dialog__empty {
	font-size: 0.85rem;
	color: var(--text-dim, #888);
	padding: 12px;
	text-align: center;
}

.playlists-dialog__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 8px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border, #333);
}

.playlists-dialog__row--active {
	border-color: var(--accent, #e94560);
	background: rgba(233, 69, 96, 0.08);
}

.playlists-dialog__row-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.playlists-dialog__row-name {
	font-size: 0.9rem;
	font-weight: 500;
	display: flex;
	gap: 6px;
	align-items: center;
}

.playlists-dialog__row-badge {
	font-size: 9px;
	padding: 1px 6px;
	background: var(--accent, #e94560);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 0;
}

.playlists-dialog__row-meta {
	font-size: 0.7rem;
	color: var(--text-dim, #888);
}

.playlists-dialog__row-actions {
	display: flex;
	gap: 4px;
}

.playlists-dialog__status {
	font-size: 0.8rem;
	color: var(--text-dim, #aaa);
	padding: 6px 8px;
	background: rgba(255, 255, 255, 0.03);
	border-top: 1px solid var(--border, #333);
}
