@charset "UTF-8";
/* MEAS Dashboard 1.0.0 — front-end control room. Self-hosted, no CDN. */

.measd,
.measd-gate {
	--d-bg: #06060c;
	--d-panel: rgba(19, 20, 33, 0.72);
	--d-panel-2: rgba(28, 29, 45, 0.6);
	--d-line: rgba(255, 255, 255, 0.07);
	--d-line-2: rgba(255, 255, 255, 0.12);
	--d-cyan: #00f0ff;
	--d-violet: #7000ff;
	--d-fuchsia: #ff007a;
	--d-text: #f8fafc;
	--d-muted: #9aa4b8;
	--d-dim: #5b647a;
	--d-ok: #38e8a0;
	--d-warn: #ffcc66;
	--d-body: "MEAS Text", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--d-display: "MEAS Display", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--d-tech: "MEAS Tech", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--d-r: 14px;
	--d-r-sm: 10px;
	--d-ease: cubic-bezier(0.22, 0.8, 0.28, 1);

	font-family: var(--d-body);
	color: var(--d-text);
	font-size: 15px;
	line-height: 1.55;
}

/* full bleed inside whatever container the theme provides */
.measd,
.measd-gate {
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	background: var(--d-bg);
	min-height: 100vh;
	position: relative;
}
.measd::before {
	content: "";
	position: absolute;
	inset: -10% -10% auto auto;
	width: 60vw;
	height: 60vh;
	background: radial-gradient(circle at 70% 30%, rgba(112, 0, 255, 0.22), transparent 62%);
	filter: blur(90px);
	pointer-events: none;
}

.measd { display: grid; grid-template-columns: 264px minmax(0, 1fr); }

.measd-grad {
	background: linear-gradient(92deg, #dbfcff, var(--d-cyan) 42%, var(--d-fuchsia));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.measd-h1 { font-family: var(--d-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 4px 0 0; }
.measd-h2 { font-family: var(--d-display); font-size: 20px; letter-spacing: -0.015em; font-weight: 600; margin: 0; }
.measd-h3 { font-family: var(--d-display); font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.measd-eyebrow { font-family: var(--d-tech); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-dim); }

/* ------------------------------------------------------------- sidebar */
.measd-side {
	position: sticky;
	top: 0;
	align-self: start;
	height: 100vh;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 26px 18px;
	background: rgba(10, 10, 18, 0.7);
	border-right: 1px solid var(--d-line);
	backdrop-filter: blur(20px);
	z-index: 2;
}
.measd-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.measd-brand__mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--d-cyan), var(--d-violet) 55%, var(--d-fuchsia)); box-shadow: 0 0 22px rgba(0, 240, 255, 0.35); }
.measd-brand__text { font-family: var(--d-display); font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }

.measd-nav { display: grid; gap: 4px; }
.measd-navitem {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 12px;
	border: 0;
	border-radius: var(--d-r-sm);
	background: transparent;
	color: var(--d-muted);
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	position: relative;
	transition: background-color 0.2s var(--d-ease), color 0.2s var(--d-ease);
}
.measd-navitem:hover { background: rgba(255, 255, 255, 0.04); color: var(--d-text); }
.measd-navitem.is-on { background: rgba(255, 255, 255, 0.07); color: var(--d-text); }
.measd-navitem.is-on::before {
	content: "";
	position: absolute;
	left: -18px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 22px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(180deg, var(--d-cyan), var(--d-fuchsia));
}
.measd-navitem svg { width: 18px; height: 18px; opacity: 0.85; }
.measd-navitem__n { margin-left: auto; font-family: var(--d-tech); font-size: 11px; color: var(--d-dim); }
.measd-side__foot { margin-top: auto; display: grid; gap: 2px; }
.measd-ghostlink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--d-r-sm); color: var(--d-dim); text-decoration: none; font-size: 13px; transition: color 0.2s, background-color 0.2s; }
.measd-ghostlink:hover { color: var(--d-text); background: rgba(255, 255, 255, 0.04); }
.measd-ghostlink svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- main */
.measd-main { position: relative; padding: 30px clamp(20px, 3vw, 44px) 64px; min-width: 0; }
.measd-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.measd-top__actions { display: flex; gap: 10px; align-items: center; }

.measd-search { display: flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: 999px; background: var(--d-panel); border: 1px solid var(--d-line); transition: border-color 0.2s; }
.measd-search:focus-within { border-color: rgba(0, 240, 255, 0.45); }
.measd-search svg { width: 16px; height: 16px; color: var(--d-dim); }
.measd-search input { background: none; border: 0; outline: none; color: var(--d-text); font: inherit; font-size: 14px; padding: 11px 0; width: 200px; }

.measd-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 0;
	border-radius: 999px;
	font-family: var(--d-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.18s var(--d-ease), box-shadow 0.25s var(--d-ease), background-color 0.2s;
}
.measd-btn svg { width: 16px; height: 16px; }
.measd-btn--primary { background: linear-gradient(100deg, var(--d-cyan), #74b6ff 58%, var(--d-fuchsia)); color: #05060f; box-shadow: 0 6px 26px rgba(0, 240, 255, 0.25); }
.measd-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(0, 240, 255, 0.4); }
.measd-btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--d-text); }
.measd-btn--ghost:hover { background: rgba(255, 255, 255, 0.11); }
.measd-btn--danger { background: rgba(255, 0, 122, 0.14); color: #ff8fbe; }
.measd-btn--danger:hover { background: rgba(255, 0, 122, 0.24); }
.measd-icobtn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--d-muted); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.measd-icobtn:hover { background: rgba(255, 255, 255, 0.12); color: var(--d-text); }
.measd-icobtn svg { width: 16px; height: 16px; }

:where(.measd, .measd-gate) :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--d-cyan); outline-offset: 3px; }

/* --------------------------------------------------------------- cards */
.measd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.measd-stat { position: relative; overflow: hidden; padding: 22px; border-radius: var(--d-r); background: var(--d-panel); border: 1px solid var(--d-line); transition: transform 0.3s var(--d-ease), border-color 0.3s; animation: measd-in 0.5s var(--d-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.measd-stat:hover { transform: translateY(-3px); border-color: var(--d-line-2); }
.measd-stat::after { content: ""; position: absolute; inset: auto -30% -70% auto; width: 180px; height: 180px; background: radial-gradient(circle, rgba(0, 240, 255, 0.16), transparent 65%); pointer-events: none; }
.measd-stat:nth-child(2)::after { background: radial-gradient(circle, rgba(112, 0, 255, 0.2), transparent 65%); }
.measd-stat:nth-child(3)::after { background: radial-gradient(circle, rgba(255, 0, 122, 0.16), transparent 65%); }
.measd-stat__k { font-family: var(--d-tech); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-dim); }
.measd-stat__v { font-family: var(--d-display); font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin-top: 10px; }

.measd-section { margin-bottom: 30px; }
.measd-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

/* ---------------------------------------------------------- item grid */
.measd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.measd-item {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--d-r);
	overflow: hidden;
	background: var(--d-panel);
	border: 1px solid var(--d-line);
	transition: transform 0.35s var(--d-ease), border-color 0.3s, box-shadow 0.35s var(--d-ease);
	animation: measd-in 0.45s var(--d-ease) both;
	animation-delay: calc(var(--i, 0) * 35ms);
}
.measd-item:hover { transform: translateY(-4px); border-color: var(--d-line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.measd-item__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #10121f, #1b1533); overflow: hidden; }
.measd-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--d-ease); }
.measd-item:hover .measd-item__media img { transform: scale(1.04); }
.measd-item__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--d-dim); font-family: var(--d-tech); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.measd-item__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.measd-item__meta { font-family: var(--d-tech); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-dim); }
.measd-item__cap { color: var(--d-muted); font-size: 13px; line-height: 1.5; }
.measd-item__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; }
.measd-item__foot .measd-icobtn { width: 32px; height: 32px; }

.measd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--d-tech); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.06); color: var(--d-muted); }
.measd-pill--on { background: rgba(0, 240, 255, 0.14); color: var(--d-cyan); }
.measd-pill--draft { background: rgba(255, 204, 102, 0.14); color: var(--d-warn); }
.measd-item__tag { position: absolute; top: 12px; left: 12px; z-index: 1; backdrop-filter: blur(8px); background: rgba(6, 6, 12, 0.72); }
.measd-item__star { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(6, 6, 12, 0.72); backdrop-filter: blur(8px); }
.measd-item__star.is-on { color: var(--d-cyan); }

/* --------------------------------------------------------------- rows */
.measd-rows { display: grid; gap: 2px; }
.measd-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 170px 110px 96px;
	align-items: center;
	gap: 16px;
	padding: 13px 18px;
	border-radius: var(--d-r-sm);
	background: var(--d-panel-2);
	border: 1px solid transparent;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--d-ease);
	animation: measd-in 0.4s var(--d-ease) both;
	animation-delay: calc(var(--i, 0) * 14ms);
}
.measd-row:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--d-line); transform: translateX(2px); }
.measd-row__name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.measd-row__actions { display: flex; gap: 6px; justify-content: flex-end; }
.measd-row__actions .measd-icobtn { width: 32px; height: 32px; }
@media (max-width: 860px) { .measd-row { grid-template-columns: minmax(0, 1fr) 90px; } .measd-row > :nth-child(2), .measd-row > :nth-child(3) { display: none; } }

/* ----------------------------------------------------------- requests */
.measd-req { padding: 18px 20px; border-radius: var(--d-r); background: var(--d-panel); border: 1px solid var(--d-line); animation: measd-in 0.4s var(--d-ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.measd-req__head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: baseline; }
.measd-req dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 16px; margin: 14px 0 0; font-size: 14px; }
.measd-req dt { font-family: var(--d-tech); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-dim); padding-top: 3px; }
.measd-req dd { margin: 0; color: var(--d-text); word-break: break-word; }

/* ------------------------------------------------------------- drawer */
.measd-drawer { position: fixed; inset: 0; z-index: 99999; }
.measd-drawer__scrim { position: absolute; inset: 0; background: rgba(3, 3, 8, 0.72); backdrop-filter: blur(4px); animation: measd-fade 0.25s var(--d-ease) both; }
.measd-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(560px, 100%);
	display: flex;
	flex-direction: column;
	background: #0b0c16;
	border-left: 1px solid var(--d-line);
	box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
	animation: measd-slide 0.36s var(--d-ease) both;
}
@keyframes measd-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes measd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes measd-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.measd-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--d-line); }
.measd-drawer__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 18px 24px; border-top: 1px solid var(--d-line); background: rgba(255, 255, 255, 0.02); }
.measd-form { flex: 1; overflow-y: auto; padding: 24px; display: grid; gap: 18px; align-content: start; }

.measd-field { display: grid; gap: 7px; }
.measd-field > label { font-family: var(--d-tech); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted); }
.measd-field input[type="text"], .measd-field input[type="url"], .measd-field input[type="number"], .measd-field textarea, .measd-field select {
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--d-r-sm);
	border: 1px solid var(--d-line);
	background: rgba(255, 255, 255, 0.03);
	color: var(--d-text);
	font: inherit;
	font-size: 14px;
	transition: border-color 0.2s, background-color 0.2s;
}
.measd-field input:focus, .measd-field textarea:focus, .measd-field select:focus { outline: none; border-color: rgba(0, 240, 255, 0.5); background: rgba(0, 240, 255, 0.04); }
.measd-field textarea { resize: vertical; min-height: 96px; }
.measd-field--2 { grid-template-columns: 1fr 1fr; gap: 14px; }
.measd-field--2 > span { display: grid; gap: 7px; }
.measd-hint { font-size: 12px; color: var(--d-dim); }

.measd-switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--d-r-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--d-line); cursor: pointer; }
.measd-switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; cursor: pointer; transition: background-color 0.25s var(--d-ease); flex: none; }
.measd-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--d-ease); }
.measd-switch input:checked { background: linear-gradient(100deg, var(--d-cyan), var(--d-fuchsia)); }
.measd-switch input:checked::after { transform: translateX(18px); }
.measd-switch span { font-size: 14px; }

.measd-media { display: flex; gap: 14px; align-items: center; }
.measd-media__thumb { width: 112px; aspect-ratio: 16 / 10; border-radius: var(--d-r-sm); overflow: hidden; background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; flex: none; }
.measd-media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.measd-media__thumb span { font-family: var(--d-tech); font-size: 10px; color: var(--d-dim); letter-spacing: 0.1em; }

.measd-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.measd-chip {
	padding: 8px 14px;
	border: 1px solid var(--d-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--d-muted);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: color 0.2s var(--d-ease), border-color 0.2s var(--d-ease), background-color 0.2s var(--d-ease);
}
.measd-chip:hover { color: var(--d-text); border-color: var(--d-line-2); }
.measd-chip.is-on { background: rgba(0, 240, 255, 0.12); border-color: rgba(0, 240, 255, 0.45); color: var(--d-cyan); }

/* ------------------------------------------------------------- toasts */
.measd-toasts { position: fixed; right: 22px; bottom: 22px; z-index: 100000; display: grid; gap: 10px; }
.measd-toast {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 18px;
	border-radius: 999px;
	background: rgba(12, 13, 22, 0.95);
	border: 1px solid var(--d-line-2);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
	font-size: 14px;
	animation: measd-toast 0.35s var(--d-ease) both;
	backdrop-filter: blur(12px);
}
.measd-toast svg { width: 16px; height: 16px; }
.measd-toast--ok svg { color: var(--d-ok); }
.measd-toast--bad svg { color: var(--d-fuchsia); }
.measd-toast.is-out { animation: measd-toastout 0.3s var(--d-ease) both; }
@keyframes measd-toast { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes measd-toastout { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ------------------------------------------------------ skeletons etc */
.measd-skel { border-radius: var(--d-r); background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 70%); background-size: 220% 100%; animation: measd-shimmer 1.4s linear infinite; height: 180px; }
@keyframes measd-shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }
.measd-empty { padding: 60px 24px; text-align: center; border-radius: var(--d-r); border: 1px dashed var(--d-line-2); color: var(--d-muted); }
.measd-empty h3 { margin: 0 0 6px; }

/* --------------------------------------------------------------- gate */
.measd-gate { display: grid; place-items: center; padding: 80px 20px; }
.measd-gate__card { width: min(420px, 100%); padding: 34px; border-radius: 18px; background: var(--d-panel); border: 1px solid var(--d-line); backdrop-filter: blur(20px); }
.measd-gate__card p { color: var(--d-muted); margin: 10px 0 22px; }
.measd-gate input[type="text"], .measd-gate input[type="password"] { width: 100%; padding: 12px 14px; margin: 6px 0 14px; border-radius: var(--d-r-sm); border: 1px solid var(--d-line); background: rgba(255, 255, 255, 0.03); color: var(--d-text); font: inherit; }
.measd-gate label { font-family: var(--d-tech); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted); }
.measd-gate .button, .measd-gate #wp-submit { width: 100%; padding: 13px; border: 0; border-radius: 999px; background: linear-gradient(100deg, var(--d-cyan), var(--d-fuchsia)); color: #05060f; font-family: var(--d-display); font-weight: 600; cursor: pointer; }
.measd-gate .login-remember { color: var(--d-dim); font-size: 13px; }

/* ------------------------------------------------------------- mobile */
@media (max-width: 900px) {
	.measd { grid-template-columns: 1fr; }
	.measd-side { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; gap: 14px; overflow-x: auto; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--d-line); }
	.measd-nav { display: flex; gap: 4px; }
	.measd-navitem { padding: 9px 12px; white-space: nowrap; }
	.measd-navitem.is-on::before { display: none; }
	.measd-navitem > span:not(.measd-navitem__i):not(.measd-navitem__n) { display: none; }
	.measd-side__foot { margin: 0 0 0 auto; display: flex; }
	.measd-ghostlink > span:not([data-icon]) { display: none; }
	.measd-brand__text { display: none; }
	.measd-search input { width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
	.measd *, .measd-gate * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ============================================================ 1.1.0 ==== */
/* Liquid glass for the control room. Sidebar, drawer and toasts get real   */
/* backdrop blur; panels get a rim light and a pointer-tracked specular.    */

.measd {
	--d-grain: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
	--d-rim: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* slow colour drifting behind everything, so the glass has something to do */
.measd::after {
	content: "";
	position: absolute;
	inset: auto auto -20% -12%;
	width: 46vw; height: 46vw;
	max-width: 640px; max-height: 640px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 240, 255, 0.16), transparent 64%);
	filter: blur(100px);
	pointer-events: none;
	animation: measd-drift-b 30s ease-in-out infinite;
}
.measd::before { animation: measd-drift-a 24s ease-in-out infinite; }
@keyframes measd-drift-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-7%, 8%, 0) scale(1.14); } }
@keyframes measd-drift-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); } 50% { transform: translate3d(9%, -7%, 0) scale(0.92); } }

.measd-side {
	background: rgba(10, 10, 18, 0.52);
	-webkit-backdrop-filter: blur(30px) saturate(190%);
	backdrop-filter: blur(30px) saturate(190%);
	box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.07);
	border-right: 0;
}

.measd-stat,
.measd-item,
.measd-req,
.measd-row,
.measd-empty,
.measd-gate__card {
	position: relative;
	background-image: linear-gradient(148deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.022) 45%, rgba(255, 255, 255, 0.05));
	box-shadow: var(--d-rim), 0 18px 40px rgba(0, 0, 0, 0.35);
	isolation: isolate;
}
.measd-stat::before,
.measd-item::before,
.measd-req::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image: var(--d-grain);
	opacity: 0.04;
	mix-blend-mode: overlay;
	pointer-events: none;
	z-index: 2;
}
.measd-stat > *, .measd-item > *, .measd-req > * { position: relative; z-index: 1; }

/* pointer-tracked specular, driven by --mx and --my from the app */
.measd-stat::after,
.measd-item::after {
	background:
		radial-gradient(220px circle at var(--mx, 50%) var(--my, -10%), rgba(255, 255, 255, 0.16), transparent 62%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%);
	inset: 0;
	width: auto; height: auto;
	opacity: 0.5;
	border-radius: inherit;
	transition: opacity 0.4s var(--d-ease);
	z-index: 2;
}
.measd-stat:hover::after, .measd-item:hover::after { opacity: 1; }

.measd-btn--ghost, .measd-icobtn, .measd-search, .measd-chip {
	-webkit-backdrop-filter: blur(14px) saturate(175%);
	backdrop-filter: blur(14px) saturate(175%);
	box-shadow: var(--d-rim);
}

.measd-drawer__panel {
	background: rgba(11, 12, 22, 0.72);
	-webkit-backdrop-filter: blur(34px) saturate(190%);
	backdrop-filter: blur(34px) saturate(190%);
	box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.1), -30px 0 80px rgba(0, 0, 0, 0.6);
	border-left: 0;
}
.measd-drawer__panel::before {
	content: "";
	position: absolute;
	top: -10%; right: -25%;
	width: 420px; height: 420px;
	border-radius: 50%;
	background: rgba(112, 0, 255, 0.3);
	filter: blur(90px);
	pointer-events: none;
	z-index: -1;
}
.measd-toast {
	background: rgba(12, 13, 22, 0.66);
	-webkit-backdrop-filter: blur(22px) saturate(190%);
	backdrop-filter: blur(22px) saturate(190%);
	box-shadow: var(--d-rim), 0 18px 44px rgba(0, 0, 0, 0.55);
}
.measd-field input, .measd-field textarea, .measd-field select {
	background: rgba(0, 0, 0, 0.28);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

@media (prefers-reduced-motion: reduce) { .measd::before, .measd::after { animation: none; } }
@media (max-width: 900px) {
	.measd-stat::before, .measd-item::before, .measd-req::before { display: none; }
	.measd-side { -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07); }
}

/* ============================================================ 1.2.0 ==== */
/* Sticky action bar, unsaved state, and the Event Design bundle rows.      */

.measd-drawer__panel { height: 100dvh; }
.measd-drawer__head {
	position: sticky;
	top: 0;
	z-index: 3;
	background: rgba(11, 12, 22, 0.82);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
}
.measd-drawer__foot {
	position: sticky;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
	background: rgba(11, 12, 22, 0.86);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -12px 30px rgba(0, 0, 0, 0.45);
	border-top: 0;
}
.measd-drawer__foot .measd-btn--primary { margin-left: 0; }
.measd-dirty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: auto;
	font-family: var(--d-tech);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--d-warn);
}
.measd-dirty__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--d-warn); box-shadow: 0 0 10px rgba(255, 204, 102, 0.8); animation: measd-pulse 1.8s ease-in-out infinite; }
@keyframes measd-pulse { 50% { opacity: 0.35; } }
@media (max-width: 560px) {
	.measd-drawer__foot { flex-wrap: wrap; }
	.measd-dirty { order: -1; flex-basis: 100%; margin: 0 0 4px; }
	.measd-drawer__foot .measd-btn { flex: 1; justify-content: center; }
}

/* ------------------------------------------------- event design bundles */
.measd-bundles { display: grid; gap: 14px; }
.measd-bundle {
	position: relative;
	padding: 18px 20px;
	border-radius: var(--d-r);
	background-image: linear-gradient(148deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.022) 45%, rgba(255, 255, 255, 0.05));
	background-color: var(--d-panel);
	box-shadow: var(--d-rim), 0 18px 40px rgba(0, 0, 0, 0.35);
	animation: measd-in 0.45s var(--d-ease) both;
	animation-delay: calc(var(--i, 0) * 30ms);
	transition: box-shadow 0.3s var(--d-ease);
}
.measd-bundle:hover { box-shadow: var(--d-rim), 0 22px 50px rgba(0, 0, 0, 0.5); }
.measd-bundle__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.measd-bundle__strip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}
.measd-bundle__strip::-webkit-scrollbar { display: none; }
.measd-bundle__shot {
	flex: none;
	width: 104px;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	background: #10121f;
	scroll-snap-align: start;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
	transition: transform 0.3s var(--d-ease);
}
.measd-bundle__shot:hover { transform: translateY(-3px); }
.measd-bundle__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.measd-bundle__more {
	flex: none;
	width: 104px;
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	font-family: var(--d-display);
	font-weight: 600;
	color: var(--d-muted);
}
.measd-bundle__none {
	display: grid;
	place-items: center;
	width: 100%;
	padding: 26px;
	border-radius: 10px;
	border: 1px dashed var(--d-line-2);
	font-family: var(--d-tech);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--d-dim);
}
@media (max-width: 560px) { .measd-bundle__shot, .measd-bundle__more { width: 84px; } }
