/* AW1000 Console demo — static, mock-data front end.
   Uses the console theme's tokens and base components; this file only adds
   the demo shell, cards, tables and tool views. */

/* ------------------------------------------------------------- demo chrome */
.demo-pill {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 9px;
	border: 1px solid var(--line-strong);
	border-radius: 99px;
	background: #fff;
	color: var(--accent-ink);
	font: 700 9px/1 var(--font-ui);
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.demo-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	padding: 10px 14px;
	background: var(--accent-soft);
	border: 1px solid #CFE4DC;
	border-radius: 10px;
	color: #315A50;
	font-size: 12px;
	line-height: 1.45;
}
.demo-note a { color: var(--accent-ink); font-weight: 600; }
.demo-note-dot {
	width: 7px; height: 7px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 3px rgba(14, 122, 110, .12);
}
.demo-note-close {
	margin-left: auto;
	width: 24px; height: 24px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #477063;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}
.demo-note-close:hover { background: rgba(14, 122, 110, .1); color: var(--accent-ink); }

/* The realtime page rule cards the first child of #view; the demo page head
   is a plain title block, not a graph card. */
#view > .demo-page-head:first-child {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* ------------------------------------------------------------- page header */
.demo-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 18px;
}
.demo-page-head h2 {
	margin: 0;
	font-size: clamp(26px, 3vw, 34px);
	letter-spacing: -.03em;
}
.demo-desc {
	max-width: 78ch;
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}
.demo-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

/* ----------------------------------------------------------------- grids */
.demo-grid { display: grid; gap: 16px; margin: 0 0 18px; }
.demo-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo-dash { display: grid; gap: 16px; margin: 0 0 18px; }

/* ----------------------------------------------------------------- cards */
.demo-card {
	min-width: 0;
	margin: 0 0 18px;
	padding: 20px 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.demo-grid .demo-card,
.demo-dash .demo-card { margin: 0; }
.demo-card > h3 {
	margin: 0 0 12px;
	font: 600 15px/1.3 var(--font-display);
	color: var(--ink);
}
.demo-card > h3 .demo-card-note {
	margin-left: 8px;
	color: var(--muted);
	font: 400 11.5px/1.3 var(--font-ui);
}
.demo-card-body > :last-child { margin-bottom: 0; }
.demo-card-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line-2);
}

/* ------------------------------------------------------------ key/value */
.demo-kv { display: flex; flex-direction: column; }
.demo-kv > div {
	display: grid;
	grid-template-columns: minmax(100px, 150px) minmax(0, 1fr);
	align-items: baseline;
	gap: 16px;
	padding: 8px 0;
	border-top: 1px solid var(--line-2);
}
.demo-kv > div:first-child { border-top: 0; padding-top: 0; }
.demo-kv span { color: var(--muted); font-size: 12px; }
.demo-kv b, .demo-kv strong {
	color: var(--ink);
	font-weight: 500;
	text-align: left;
	overflow-wrap: anywhere;
}
.demo-kv .mono { font-size: 12px; }

/* ----------------------------------------------------------------- stats */
.demo-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0 0 18px;
}
.demo-stat {
	padding: 15px 17px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}
.demo-stat b {
	display: block;
	color: var(--ink);
	font: 600 26px/1.1 var(--font-display);
}
.demo-stat span {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font: 600 9.5px/1.2 var(--font-ui);
	letter-spacing: .1em;
	text-transform: uppercase;
}
.demo-stat.is-danger b { color: var(--danger); }

/* ------------------------------------------------------------------ meter */
.demo-meter { margin: 0 0 11px; }
.demo-meter:last-child { margin-bottom: 0; }
.demo-meter-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 5px;
	color: var(--muted);
	font-size: 11.5px;
}
.demo-meter-head b { color: var(--ink-2); font-weight: 500; }
.demo-meter-bar {
	height: 6px;
	overflow: hidden;
	background: #EDF1E9;
	border-radius: 99px;
}
.demo-meter-bar > i {
	display: block;
	height: 100%;
	background: var(--accent);
	border-radius: 99px;
}
.demo-meter-bar > i.is-warn { background: #C58A2A; }

/* ----------------------------------------------------------------- tables */
.demo-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
}
.demo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
}
.demo-table th {
	padding: 9px 12px;
	background: #F8FAF5;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font: 700 9px/1.2 var(--font-ui);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: left;
	white-space: nowrap;
}
.demo-table td {
	padding: 10px 12px;
	border-top: 1px solid var(--line-2);
	color: var(--ink-2);
	vertical-align: middle;
}
.demo-table tbody tr:first-child td { border-top: 0; }
.demo-table tbody tr:hover td { background: #FBFCF8; }
.demo-table .right { text-align: right; }
.demo-table .mono { font-size: 11.5px; }
.demo-table .demo-table-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 5px;
}
.demo-table .btn { height: 27px; padding: 0 9px; font-size: 11px; border-radius: 7px; }
button.demo-link {
	border: 0;
	background: transparent;
	height: auto;
	padding: 0;
	font: inherit;
	text-align: left;
}
.demo-table .demo-link {
	color: var(--accent-ink);
	font-weight: 600;
	cursor: pointer;
}
.demo-table .demo-link:hover { text-decoration: underline; }
.demo-table .demo-sub {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 10.5px;
}

/* ----------------------------------------------------------------- badges */
.demo-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border: 1px solid var(--line);
	border-radius: 99px;
	background: #F5F7F1;
	color: var(--muted);
	font: 600 10px/1.2 var(--font-ui);
	white-space: nowrap;
}
.demo-badge::before {
	content: "";
	width: 5px; height: 5px;
	border-radius: 50%;
	background: currentColor;
}
.demo-badge.ok { background: var(--ok-soft); border-color: #C7E5D6; color: var(--ok); }
.demo-badge.warn { background: var(--warn-soft); border-color: #EED9B4; color: var(--warn); }
.demo-badge.danger { background: var(--danger-soft); border-color: #EDC9C3; color: var(--danger); }
.demo-badge.accent { background: var(--accent-soft); border-color: #CFE4DC; color: var(--accent-ink); }
.demo-badge.none::before { display: none; }
.demo-badge.plain { background: transparent; }

/* ---------------------------------------------------------------- toolbar */
.demo-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}
.demo-toolbar .demo-search { flex: 1 1 260px; min-width: 190px; }
.demo-toolbar .demo-search input {
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line-strong);
	border-radius: 9px;
	background: #fff;
	color: var(--ink);
	font: 400 13px var(--font-ui);
}
.demo-toolbar select {
	height: 36px;
	padding: 0 30px 0 11px;
	border: 1px solid var(--line-strong);
	border-radius: 9px;
	background: #fff;
	color: var(--ink);
	font: 500 12.5px var(--font-ui);
}
.demo-toolbar .demo-toolbar-spacer { flex: 1 1 auto; }

/* ------------------------------------------------------------------ forms */
.demo-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
}
.demo-form-grid .cbi-value { grid-column: span 1; }
.demo-form-grid .full { grid-column: 1 / -1; }
.demo-form-grid .cbi-value {
	display: block;
	padding: 6px 0 12px;
	border-top: 0;
}
.demo-form-grid .cbi-value-title {
	display: block;
	width: auto;
	margin: 0 0 5px;
	padding: 0;
	text-align: left;
	font-size: 12px;
}
.demo-form-grid .cbi-value-field { width: 100%; }
.demo-form-grid .cbi-value-field > input,
.demo-form-grid .cbi-value-field > select,
.demo-form-grid .cbi-value-field > textarea,
.demo-form-grid .cbi-value-field > .cbi-input-text,
.demo-form-grid .cbi-value-field > .cbi-input-select { width: 100%; max-width: 100%; }
.demo-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line-2);
}
.demo-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-2);
	font-size: 12.5px;
	line-height: 1.45;
	cursor: pointer;
}
.demo-check input { width: 15px; height: 15px; accent-color: var(--accent); }
.demo-check + .demo-check { margin-left: 16px; }
.demo-hint { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }

/* ------------------------------------------------------------------ empty */
.demo-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 30px 18px;
	color: var(--muted);
	text-align: center;
	font-size: 12.5px;
}
.demo-empty .icon { width: 26px; height: 26px; color: var(--faint); }
.demo-empty b { color: var(--ink-2); font-size: 13px; }

/* ------------------------------------------------------------------ modal */
.demo-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(10, 16, 13, .58);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.demo-modal {
	position: fixed;
	z-index: 101;
	top: 50%; left: 50%;
	width: min(560px, calc(100% - 24px));
	max-height: min(86vh, 760px);
	overflow: auto;
	transform: translate(-50%, -50%);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 30px 80px -30px rgba(8, 14, 11, .6);
}
.demo-modal.is-wide {
	width: min(940px, calc(100% - 24px));
	max-height: min(92vh, 880px);
}
.demo-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 0;
}
.demo-modal-head h3 { margin: 0; font: 600 18px/1.3 var(--font-display); }
.demo-modal-close {
	width: 30px; height: 30px;
	display: grid;
	place-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font-size: 21px;
	line-height: 1;
	cursor: pointer;
}
.demo-modal-close:hover { background: #F4F6F0; color: var(--ink); }
.demo-modal-body { padding: 12px 20px 20px; }
.demo-modal-body > p:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ toast */
.demo-toast-root {
	position: fixed;
	z-index: 120;
	right: 18px;
	bottom: 18px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	pointer-events: none;
}
.demo-toast {
	max-width: min(420px, calc(100vw - 36px));
	padding: 10px 14px;
	border: 1px solid #1E2B25;
	border-left: 3px solid #57D8BE;
	border-radius: 9px;
	background: #121B17;
	color: #E8EFEA;
	font: 500 12.5px/1.45 var(--font-ui);
	box-shadow: 0 16px 40px -20px rgba(8, 14, 11, .8);
	animation: demo-toast-in .18s ease both;
}
.demo-toast.warn { border-left-color: #D9A13B; }
.demo-toast.danger { border-left-color: #E2685B; }
@keyframes demo-toast-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- dashboard */
.hero .hstat { text-decoration: none; }
.hero .hstat:hover { text-decoration: none; }
.demo-netup {
	margin: 2px 0 12px;
	padding: 11px 13px;
	background: var(--accent-soft);
	border-left: 3px solid var(--accent);
	border-radius: 0 8px 8px 0;
}
.demo-netup .demo-netup-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 7px;
	color: var(--accent-ink);
	font: 700 9px/1 var(--font-ui);
	letter-spacing: .12em;
	text-transform: uppercase;
}
.demo-netup .demo-netup-title::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--accent);
}
.demo-netup .demo-kv > div { padding: 4px 0; border-top-color: rgba(14, 122, 110, .12); }
.demo-netup .demo-kv span { color: #4A7368; }
.demo-netup .demo-kv b { color: #123B33; font-family: var(--font-mono); font-size: 11.5px; }
.demo-mac {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 9px;
	padding: 7px 9px;
	background: #fff;
	border: 1px solid #CFE4DC;
	border-radius: 7px;
	color: #315A50;
	font: 500 10.5px/1.3 var(--font-mono);
}
.demo-mac .icon { width: 14px; height: 14px; }

/* --------------------------------------------------------------- interfaces */
.demo-port-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 10px;
}
.demo-port {
	padding: 13px 14px;
	background: #FBFCF9;
	border: 1px solid var(--line);
	border-radius: 10px;
}
.demo-port-head { display: flex; align-items: center; gap: 8px; }
.demo-port-name { color: var(--ink); font: 600 12px/1 var(--font-ui); }
.demo-port-speed { margin-left: auto; color: var(--muted); font: 500 10.5px/1 var(--font-mono); }
.demo-port-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: 7px;
	color: var(--muted);
	font: 400 10.5px/1.4 var(--font-mono);
}
.demo-port-devices {
	margin: 9px 0 0;
	padding: 8px 0 0;
	border-top: 1px dashed var(--line);
	list-style: none;
	color: var(--muted);
	font-size: 11.5px;
}
.demo-port-devices li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.demo-port-devices .mono { color: var(--ink-2); }

/* ------------------------------------------------------------------ captive */
.demo-mode-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 16px;
}
.demo-mode-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 13px 14px;
	background: #FBFCF9;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink-2);
	text-align: left;
	cursor: pointer;
}
.demo-mode-card:hover { border-color: #BFD4CA; background: #fff; }
.demo-mode-card.is-active {
	background: var(--accent-soft);
	border-color: rgba(14, 122, 110, .38);
}
.demo-mode-dot {
	width: 13px; height: 13px;
	flex: 0 0 auto;
	margin-top: 2px;
	border: 1.5px solid var(--line-strong);
	border-radius: 50%;
	background: #fff;
}
.demo-mode-card.is-active .demo-mode-dot { border: 4px solid var(--accent); }
.demo-mode-card b { display: block; color: var(--ink); font-size: 12.5px; }
.demo-mode-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.demo-portal {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 18px 50px -28px rgba(8, 14, 11, .35);
}
.demo-portal-brand {
	position: relative;
	overflow: hidden;
	padding: 24px;
	background: #0E1412;
	color: #F4F5F1;
}
.demo-portal-brand::after {
	content: "";
	position: absolute;
	right: -80px; top: -100px;
	width: 240px; height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(87, 216, 190, .22), transparent 65%);
	pointer-events: none;
}
.demo-portal-mark {
	position: relative;
	width: 42px; height: 42px;
	display: grid;
	place-items: center;
	margin-bottom: 18px;
	border-radius: 12px;
	background: linear-gradient(140deg, #0E7A6E, #149A88);
	color: #EAFFF9;
	box-shadow: 0 8px 24px rgba(14, 122, 110, .35);
}
.demo-portal-mark .icon { width: 23px; height: 23px; }
.demo-portal-eyebrow {
	position: relative;
	margin: 0;
	color: #57D8BE;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.demo-portal-brand h3 {
	position: relative;
	margin: 8px 0 0;
	color: #F4F5F1;
	font: 650 25px/1.15 var(--font-display);
	letter-spacing: -.02em;
}
.demo-portal-brand h3 span { color: #57D8BE; }
.demo-portal-sub { position: relative; margin: 8px 0 0; color: #C9D4CE; font-size: 12.5px; }
.demo-portal-intro { position: relative; margin: 12px 0 0; color: #B9C6BF; font-size: 12.5px; line-height: 1.6; }
.demo-portal-chips { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.demo-portal-chips li {
	padding: 4px 9px;
	border: 1px solid rgba(244, 245, 241, .16);
	border-radius: 999px;
	background: rgba(244, 245, 241, .06);
	color: #DFE9E4;
	font-size: 10.5px;
}
.demo-portal-body { padding: 22px 24px 24px; }
.demo-portal-body h4 { margin: 0; font-size: 15px; }
.demo-portal-body > .demo-hint { margin: 3px 0 12px; }
.demo-portal-terms {
	height: 178px;
	overflow: auto;
	padding: 13px 14px;
	background: #F7F9F5;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink-2);
	font-size: 11.5px;
	line-height: 1.6;
	white-space: pre-wrap;
}
.demo-portal-accept { width: 100%; margin-top: 12px; }
.demo-portal-fine { margin: 9px 0 0; color: var(--muted); font-size: 10.5px; text-align: center; }
.demo-portal-privacy {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: #7B8781;
	font-size: 10.5px;
	line-height: 1.55;
}
@media (max-width: 720px) {
	.demo-portal { grid-template-columns: 1fr; }
	.demo-portal-brand { padding: 20px; }
	.demo-portal-brand h3 { font-size: 23px; }
	.demo-portal-body { padding: 20px; }
	.demo-portal-terms { height: 190px; }
}

/* --------------------------------------------------------------- web viewer */
.demo-viewer-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	padding: 8px;
	background: #F1F4EC;
	border: 1px solid var(--line);
	border-radius: 10px;
}
.demo-viewer-bar input {
	flex: 1 1 280px;
	min-width: 160px;
	height: 33px;
	padding: 0 11px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font: 400 12.5px var(--font-mono);
}
.demo-viewer-frame {
	min-height: 420px;
	padding: 18px;
	background: #EEF1E9;
	border: 1px solid var(--line);
	border-radius: 10px;
}
.demo-mockpage {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 30px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 10px 30px -24px rgba(14, 20, 18, .5);
}
.demo-mockpage h3 { margin: 0 0 8px; font-size: 22px; }
.demo-mockpage p { color: var(--ink-2); font-size: 13px; line-height: 1.65; }
.demo-mockpage .demo-mockpage-url {
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line-2);
	color: var(--muted);
	font: 500 10.5px/1.3 var(--font-mono);
}
.demo-mockpage .demo-mocklinks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }

/* ------------------------------------------------------------------ opencode */
.demo-oc {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	min-height: 470px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
}
.demo-oc-side {
	padding: 15px 12px;
	background: #F7F9F4;
	border-right: 1px solid var(--line);
}
.demo-oc-brand {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 4px 16px;
	color: var(--ink);
	font: 600 13px/1 var(--font-display);
}
.demo-oc-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.demo-oc-brand .brand-mark svg { width: 17px; height: 17px; }
.demo-oc-side h4 {
	margin: 14px 6px 5px;
	color: var(--muted);
	font: 700 9px/1 var(--font-ui);
	letter-spacing: .11em;
	text-transform: uppercase;
}
.demo-oc-project {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 7px;
	border-radius: 6px;
	color: var(--ink-2);
	font-size: 12px;
}
.demo-oc-project.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.demo-oc-main { min-width: 0; padding: 15px 18px; }
.demo-oc-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.demo-oc-toolbar input {
	flex: 1 1 auto;
	height: 34px;
	padding: 0 11px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: #fff;
	font: 400 12.5px var(--font-ui);
}
.demo-oc-list { display: grid; gap: 4px; }
.demo-oc-item {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 9px 8px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--ink-2);
	text-align: left;
	cursor: pointer;
}
.demo-oc-item:hover { background: #F7F9F4; }
.demo-oc-item.is-active { background: var(--accent-soft); border-color: #CFE4DC; }
.demo-oc-item .demo-oc-glyph {
	width: 24px; height: 24px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--accent-ink);
	font: 700 10px/1 var(--font-mono);
}
.demo-oc-item b { display: block; overflow: hidden; color: var(--ink); font-size: 12.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.demo-oc-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 10.5px; }
.demo-oc-item time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.demo-oc-chat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--line-2);
}
.demo-oc-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-oc-chat-head b { font-size: 13px; }
.demo-msg {
	max-width: 84%;
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: #F7F9F4;
	color: var(--ink-2);
	font-size: 12px;
	line-height: 1.55;
	white-space: pre-wrap;
}
.demo-msg.user { align-self: flex-end; background: var(--accent-soft); border-color: #CFE4DC; color: #123B33; }
.demo-msg.assistant { align-self: flex-start; }
.demo-oc-compose { display: flex; gap: 7px; margin-top: 4px; }
.demo-oc-compose input {
	flex: 1 1 auto;
	height: 34px;
	padding: 0 11px;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	font: 400 12.5px var(--font-ui);
}

/* ------------------------------------------------------------------- leds */
.demo-led-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
}
.demo-led {
	padding: 13px 14px;
	background: #FBFCF9;
	border: 1px solid var(--line);
	border-radius: 10px;
}
.demo-led-name { color: var(--ink); font: 600 11px/1.3 var(--font-mono); }
.demo-led-state {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: var(--muted);
	font-size: 11.5px;
}
.demo-led-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.demo-led.is-on .demo-led-dot { background: #3FBF8F; box-shadow: 0 0 0 3px rgba(63, 191, 143, .13); }
.demo-led.is-warn .demo-led-dot { background: #D9A13B; box-shadow: 0 0 0 3px rgba(217, 161, 59, .13); }
.demo-led p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

/* ------------------------------------------------------------------ logs */
.demo-log {
	max-height: 320px;
	overflow: auto;
	padding: 12px 14px;
	background: #101713;
	border: 1px solid #1E2B25;
	border-radius: 9px;
	color: #C9D8D0;
	font: 400 11.5px/1.7 var(--font-mono);
	white-space: pre-wrap;
	word-break: break-word;
}
.demo-log .demo-log-line { display: block; }
.demo-log .demo-log-time { color: #6F857A; }

/* --------------------------------------------------------------- vpn/cloud */
.demo-status-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin: 0 0 16px;
	padding: 11px 14px;
	background: var(--accent-soft);
	border: 1px solid #CFE4DC;
	border-radius: 9px;
	color: #315A50;
	font-size: 11.5px;
}
.demo-status-strip b { color: #123B33; font-family: var(--font-mono); font-weight: 500; }
.demo-radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }

/* ------------------------------------------------------ captive portal */
.demo-adv { grid-column: 1 / -1; }
.demo-adv > details {
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
}
.demo-adv summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 14px;
	font-size: 13px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.demo-adv summary::-webkit-details-marker { display: none; }
.demo-adv summary::before { content: "+"; font-family: var(--font-mono); font-size: 15px; line-height: 1; }
.demo-adv details[open] summary::before { content: "−"; }
.demo-adv-body {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
	padding: 0 14px 14px;
}
.demo-adv-body .full { grid-column: 1 / -1; }
.demo-adv-body .cbi-value-field > input,
.demo-adv-body .cbi-value-field > textarea { width: 100%; max-width: 100%; }

.demo-activity { margin-top: 20px; }
.demo-activity > summary { padding: 8px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.demo-activity > summary .demo-card-note { font-weight: 400; }
.demo-activity-body { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
	.demo-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.demo-grid.three > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	.demo-page-head { align-items: flex-start; flex-direction: column; }
	.demo-grid.two, .demo-grid.three { grid-template-columns: 1fr; }
	.demo-grid.three > :last-child { grid-column: auto; }
	.demo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.demo-form-grid { grid-template-columns: 1fr; }
	.demo-form-grid .full { grid-column: auto; }
	.demo-adv-body { grid-template-columns: 1fr; }
	.demo-adv-body .full { grid-column: auto; }
	.demo-kv > div { grid-template-columns: 1fr; gap: 2px; }
	.demo-mode-grid { grid-template-columns: 1fr; }
	.demo-oc { grid-template-columns: 1fr; }
	.demo-oc-side { border-right: 0; border-bottom: 1px solid var(--line); }
	.demo-oc-side h4, .demo-oc-project { display: none; }
	.demo-oc-brand { margin-bottom: 0; }
	.demo-viewer-frame { min-height: 320px; padding: 10px; }
	.demo-mockpage { padding: 20px; }
}
@media (max-width: 620px) {
	.demo-pill { display: none; }
	.demo-note { padding: 8px 10px; font-size: 11.5px; }
	.demo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.demo-toolbar .demo-search { flex-basis: 100%; }
	.demo-toolbar select { width: 100%; }
	.demo-card { padding: 16px; }
	.demo-table-wrap { border-radius: 8px; }
	.demo-table th, .demo-table td { padding: 8px 9px; }
	.demo-page-head h2 { font-size: 27px; }
	.demo-actions { width: 100%; }
	.demo-actions .btn { flex: 1 1 auto; }
}

/* The mode cards are buttons; keep the focus ring accent, not the UA blue. */
.demo-mode-card:focus { outline: none !important; }
.demo-mode-card:focus-visible { outline: none !important; box-shadow: 0 0 0 3px rgba(14, 122, 110, .2); }
