/* ============================================================
   Zorem UI — License Page Shell
   ------------------------------------------------------------
   Root layout for the License tab: page header (eyebrow + title +
   sub + connection telemetry pill) + 2-column main grid + ecosystem
   section below.

   Identical structure across every Zorem plugin's License tab.

   ============================================================ */

.zui-scope .zui-lic {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* ---- Page header ---- */

.zui-scope .zui-lic-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block-end: 20px;
	border-block-end: 1px solid var(--zui-border);
}

.zui-scope .zui-lic-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--zui-primary-600);
	margin-bottom: 4px;
}

.zui-scope .zui-lic-eyebrow .zui-icon {
	width: 15px;
	height: 15px;
	color: var(--zui-primary);
}

.zui-scope .zui-lic-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: var(--zui-text-strong);
	letter-spacing: -0.01em;
}

.zui-scope .zui-lic-sub {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--zui-text-muted);
}

/* ---- Connection telemetry pill ---- */

.zui-scope .zui-lic-telemetry {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: var(--zui-bg);
	border: 1px solid var(--zui-border);
	border-radius: var(--zui-radius-xl);
}

.zui-scope .zui-lic-telemetry__dot {
	position: relative;
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
}

.zui-scope .zui-lic-telemetry__dot span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
}

.zui-scope .zui-lic-telemetry__dot span:first-child {
	animation: zui-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
	opacity: 0.75;
}

@keyframes zui-ping {
	75%, 100% { transform: scale(2.4); opacity: 0; }
}

.zui-scope .zui-lic-telemetry.is-on .zui-lic-telemetry__dot span:first-child { background: #34d399; }
.zui-scope .zui-lic-telemetry.is-on .zui-lic-telemetry__dot span:last-child { background: #10b981; }
.zui-scope .zui-lic-telemetry.is-off .zui-lic-telemetry__dot span:first-child { background: #fbbf24; }
.zui-scope .zui-lic-telemetry.is-off .zui-lic-telemetry__dot span:last-child { background: #f59e0b; }

.zui-scope .zui-lic-telemetry__label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--zui-text-muted);
}

.zui-scope .zui-lic-telemetry__val {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 12px;
	color: var(--zui-text);
}

.zui-scope .zui-lic-telemetry__time {
	font-size: 9px;
	color: var(--zui-text-muted);
}

/* ---- 2-column main grid ---- */

.zui-scope .zui-lic-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
}

@media (min-width: 1024px) {
	.zui-scope .zui-lic-grid {
		grid-template-columns: 2fr 1fr;
	}
}

.zui-scope .zui-lic-col-main {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.zui-scope .zui-lic-msg {
	margin: 10px 0 0;
	font-size: 11px;
}
