:root {
	--ink: #0a0a0a;
	--paper: #faf7ef;
	--muted: #d0cbbd;
	--line: rgba(250, 247, 239, .18);
	--line-strong: rgba(250, 247, 239, .45);
	--ok: #d4ff2a;
	--danger: #ff4d52;
	--panel: #121212;
	--panel-2: #1c1c1c;
	--row-hover: rgba(255, 255, 255, .05);
	--topbar-bg: rgba(10, 10, 10, .96);
	--main-wash: rgba(255, 255, 255, .035);
	--font-display: "Michroma", "Arial Narrow", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;
	--track-tight: .06em;
	--track-display: .12em;
	--track-ui: .05em;
	--lime: #d4ff2a;
	--fg: #faf7ef;
	--cell-h: 88px;
}

html, body {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
}

button, input, select, textarea {
	outline: none;
	-webkit-tap-highlight-color: transparent;
}
button:focus,
button:focus-visible,
input:focus,
input:focus-visible {
	outline: none;
	box-shadow: none;
}

.adm {
	display: grid;
	grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	height: 100svh;
	height: 100dvh;
	max-height: 100svh;
	margin: 0;
	max-width: none;
	padding: 0;
	gap: 0;
	overflow: hidden;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
}

.adm-top {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	min-height: 48px;
	padding: .45rem .75rem;
	border-bottom: 1px solid var(--line);
	background: var(--topbar-bg);
}

.adm-brand {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1rem;
	letter-spacing: var(--track-display);
	text-transform: uppercase;
	white-space: nowrap;
	text-align: center;
}
.adm-brand span {
	color: var(--muted);
	margin-left: .45rem;
}

.adm-nav {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 8px;
	padding: 16px 12px;
	border-right: 1px solid var(--line);
	background: var(--panel);
	min-height: 0;
	overflow: auto;
}

.adm-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: var(--track-ui);
	text-transform: uppercase;
	text-align: center;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	box-sizing: border-box;
}
.adm-link:hover {
	color: var(--paper);
	background: var(--panel-2);
	border-color: var(--line);
}
.adm-link.is-on {
	color: var(--paper);
	background: var(--panel-2);
	border-color: var(--line-strong);
}
.adm-out {
	margin-top: 8px;
	border-color: var(--line);
}

.adm-main {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem 1.15rem 1.25rem;
	min-width: 0;
	min-height: 0;
	overflow: auto;
	background: linear-gradient(180deg, var(--main-wash), transparent 120px), var(--ink);
}

.adm-kpis {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	max-width: 1350px;
}
#sec-points .adm-kpis {
	grid-template-columns: repeat(3, minmax(160px, 1fr));
	max-width: 810px;
}
#sec-cafes .adm-kpis,
#sec-access .adm-kpis {
	grid-template-columns: repeat(2, minmax(160px, 1fr));
	max-width: 540px;
}

.kpi,
.adm-act {
	min-height: var(--cell-h);
	height: var(--cell-h);
	border: 1px solid var(--line);
	background: var(--panel);
	box-sizing: border-box;
}
.kpi {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	padding: .7rem .8rem;
	text-align: center;
}
.kpi__label {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
}
.kpi__value {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 400;
	letter-spacing: var(--track-tight);
	text-transform: uppercase;
	color: var(--paper);
	line-height: 1.15;
	text-align: center;
}

.adm-act {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 .85rem;
	border-radius: 0;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: var(--track-ui);
	text-transform: uppercase;
	text-align: center;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}
.adm-act:hover { border-color: var(--paper); }
.adm-act.is-ghost {
	background: var(--panel);
	color: var(--paper);
}
.adm-act.is-ghost:hover { border-color: var(--line-strong); }
.adm-act:disabled {
	opacity: .45;
	cursor: not-allowed;
}
.adm-act.is-print {
	padding: 0;
}
.adm-act.is-print svg {
	width: 26px;
	height: 26px;
	display: block;
	fill: none;
	stroke: var(--ink);
	stroke-width: 2.35;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.table-wrap {
	overflow: auto;
	border: 1px solid var(--line);
}
table.data {
	width: 100%;
	border-collapse: collapse;
}
table.data th,
table.data td {
	text-align: center;
	padding: .7rem .8rem;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	color: var(--paper);
	font-weight: 500;
}
table.data th {
	color: var(--muted);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 12px;
}
table.data tr:hover td { background: var(--row-hover); }
table.data td.muted { color: var(--muted); }
table.data button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	min-width: 112px;
	height: 36px;
	padding: 0 .7rem;
	border: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--paper);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: var(--track-ui);
	text-transform: uppercase;
	text-align: center;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	white-space: nowrap;
	box-sizing: border-box;
}
table.data button:hover { border-color: var(--line-strong); }
table.data button:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.auth-top .eyebrow {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: var(--track-display);
	color: var(--paper);
}
.auth-lime h1 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: var(--track-tight);
	text-transform: uppercase;
}

.sheet.wiz-sheet {
	width: min(920px, 88vw);
	height: min(680px, 86vh);
	max-width: 88vw;
	max-height: 86vh;
	background: var(--land-bg);
	border: 1px solid var(--land-line);
	color: var(--land-text);
	font-weight: 400;
}
.wiz-sheet .wiz-head,
.wiz-sheet .wiz-rail,
.wiz-sheet .wiz-foot {
	border-color: var(--land-line);
}
.wiz-sheet .eyebrow {
	color: var(--land-muted);
	letter-spacing: .16em;
}
.wiz-sheet .wiz-head h3 {
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: none;
	text-align: center;
	color: var(--land-text);
}
.wiz-sheet .wiz-head { text-align: center; }
.wiz-sheet .wiz-status {
	margin-top: 8px;
	text-align: center;
	color: var(--land-muted);
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: none;
}
.wiz-rail.adm-rail {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
}
.wiz-sheet .wiz-dot {
	align-items: center;
	justify-content: center;
	text-align: center;
}
.wiz-sheet .wiz-pane {
	border-color: var(--land-line);
	align-items: center;
	justify-content: center;
}
.wiz-sheet .wiz-form .slab {
	max-width: none;
}
.wiz-make {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
}
.wiz-make .slab {
	width: 100%;
}
.wiz-make-log {
	margin: 0;
	min-height: 2.8em;
	width: 100%;
	text-align: center;
	color: var(--land-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .06em;
	line-height: 1.45;
}
.wiz-make-log b {
	display: block;
	margin-bottom: 4px;
	color: var(--land-text);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .04em;
}
.wiz-picks {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	width: 100%;
}
.wiz-flags {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	flex: none;
	width: 100%;
	align-content: center;
}
.wiz-flags .slab {
	max-width: none;
	position: relative;
	box-sizing: border-box;
}
.wiz-flags .slab::before,
.wiz-wd-modes .slab::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	background: var(--land-b);
	pointer-events: none;
}
.wiz-flags .slab.is-on::before,
.wiz-wd-modes .slab.is-on::before {
	background: #3dff6e;
}
#wiz-2 {
	overflow: auto;
	justify-content: flex-start;
}
.wiz-wd {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
}
.wiz-wd-modes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
}
.wiz-wd-modes .slab,
.wiz-wd .slab {
	max-width: none;
	width: 100%;
	position: relative;
	box-sizing: border-box;
	appearance: none;
	flex: none;
	min-width: 0;
}
.wiz-wd-st {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	width: 100%;
}
.wiz-wd-st button {
	position: relative;
	aspect-ratio: 1;
	min-height: 44px;
	height: auto;
	margin: 0;
	padding: 0;
	border: 1px solid var(--land-line);
	border-radius: 0;
	background: #252830;
	color: var(--land-muted);
	font: inherit;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	appearance: none;
	outline: none;
	box-shadow: none;
}
.wiz-wd-st button.is-on {
	background: var(--st-bg);
	color: var(--st-fg);
	border-color: var(--st-bg);
}
.wiz-wd-st button:focus,
.wiz-wd-st button:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: var(--land-muted);
}
.wiz-q {
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0 auto;
	padding: 0;
	border: 1px solid var(--land-line);
	border-radius: 0;
	background: var(--land-bg);
	color: var(--land-text);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	appearance: none;
	outline: none;
	box-shadow: none;
}
.wiz-q:hover,
.wiz-q:focus,
.wiz-q:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: var(--land-muted);
}
#flagHelp {
	z-index: 40;
}
.flag-sheet {
	width: min(720px, calc(100% - 24px));
	max-height: min(86vh, 760px);
	overflow: auto;
	align-items: center;
}
.flag-sheet h3 {
	font-weight: 500;
	letter-spacing: .04em;
	text-align: center;
	font-size: 16px;
}
#sdAsk {
	z-index: 50;
}
.sd-ask {
	width: min(360px, calc(100% - 24px));
	align-items: center;
	gap: 16px;
}
.sd-ask h3 {
	font-weight: 500;
	letter-spacing: .04em;
	text-align: center;
	margin: 0;
}
.sd-ask-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
}
.sd-ask-row .slab {
	width: 100%;
	max-width: none;
	margin: 0;
}
.flag-dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
}
.flag-dl div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 88px;
	padding: 12px 14px;
	border: 1px solid var(--land-line);
	text-align: center;
	box-sizing: border-box;
}
.flag-dl b {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--land-muted);
}
.flag-dl span {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--land-text);
}
.flag-sheet .slab {
	width: 148px;
	max-width: 148px;
	margin: 8px auto 0;
}
.wiz-qr-pane,
#wizQrPane {
	align-items: center;
	justify-content: center;
	background: #fff;
	border-color: var(--land-line);
}
#wizQr {
	display: block;
	width: min(100%, 320px);
	height: auto;
	aspect-ratio: 320 / 96;
	background: #fff;
	image-rendering: pixelated;
}
.wiz-sheet .wiz-sd {
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 12px;
	padding: 16px;
	text-align: center;
}
.wiz-sd-disk,
.wiz-sd-pct {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--land-muted);
}
.wiz-sd-act {
	font-size: clamp(1.1rem, 2.4vw, 1.7rem);
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--land-text);
}
.wiz-sd-bar {
	width: 80%;
	height: 8px;
	background: var(--land-line);
	border: 1px solid var(--land-line);
}
.wiz-sd-bar i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--land-text);
	outline: none;
	box-shadow: none;
}
.wiz-sheet .wiz-foot {
	justify-content: center;
}
.wiz-sheet .wiz-foot .slab { width: 148px; max-width: 148px; }

#ops {
	z-index: 45;
	background: rgba(0, 0, 0, .55);
}
.ops-sheet {
	width: min(640px, calc(100% - 24px));
	max-height: min(92vh, 920px);
	overflow: auto;
	background: var(--panel);
	border: 1px solid var(--line);
	color: var(--paper);
	align-items: stretch;
	gap: 12px;
}
.ops-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
}
.ops-head .eyebrow {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
}
.ops-sheet h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: var(--track-tight);
	text-transform: uppercase;
	font-size: 1rem;
	text-align: center;
}
.ops-meta {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
	min-height: 20px;
}
.ops-acts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.ops-cli {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	align-items: stretch;
}
.ops-sheet .slab {
	width: 100%;
	height: 44px;
	line-height: 42px;
	border: 1px solid var(--line);
	background: var(--panel-2);
	color: var(--paper);
	font-size: 13px;
}
.ops-sheet .slab.is-go {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--paper);
	font-weight: 800;
}
.ops-sheet input.slab {
	cursor: text;
	text-align: center;
}
.ops-sheet input.slab:focus,
.ops-sheet input.slab:focus-visible,
.ops-sheet .slab:focus,
.ops-sheet .slab:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: #555;
}
.ops-log {
	margin: 0;
	min-height: 140px;
	max-height: 200px;
	overflow: auto;
	padding: 12px;
	border: 1px solid var(--line);
	background: #0a0a0a;
	color: var(--paper);
	font: inherit;
	font-size: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
	text-align: left;
}
.ops-sheet > .ops-cli:last-child .slab {
	align-self: stretch;
}

@media (max-width: 860px) {
	.adm-kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.adm {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto 1fr;
		height: auto;
		min-height: 100svh;
		max-height: none;
		overflow: visible;
	}
	.adm-nav {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
	.adm-link {
		width: auto;
		min-width: 120px;
		flex: 1 1 120px;
	}
	.adm-out { margin-top: 0; }
	.adm-main { overflow: visible; }
	#sec-points .adm-kpis {
		grid-template-columns: 1fr;
		max-width: none;
	}
	#sec-cafes .adm-kpis,
	#sec-access .adm-kpis {
		grid-template-columns: 1fr 1fr;
		max-width: none;
	}
}
