/* ============================================================
   BreakerBoxMap — Home Breaker Panel Documentation
   Electric-amber + graphite theme layered over Web Awesome
   ============================================================ */

:root {
	/* App palette */
	--ep-amber: #f5a623;
	--ep-amber-dark: #c77f00;
	--ep-graphite: #2b2f36;
	--ep-steel-1: #e8eaee;
	--ep-steel-2: #c9cdd4;
	--ep-steel-3: #9aa0ab;
	--ep-page-bg: #f2f4f7;

	/* Breaker type colors */
	--bt-standard: #4a5261;
	--bt-gfci:     #1c7ed6;
	--bt-afci:     #2f9e44;
	--bt-dualfunc: #0ca678;
	--bt-tandem:   #9c36b5;
	--bt-quad:     #e8590c;
	--bt-main:     #c92a2a;
}

body {
	margin: 0;
	background: var(--ep-page-bg);
	font-family: var(--wa-font-family-body, system-ui, sans-serif);
	color: var(--wa-color-text-normal, #212529);
}

/* ---------- Top bar ---------- */
.ep-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding: .6rem 1.25rem;
	background: linear-gradient(180deg, #343a44 0%, var(--ep-graphite) 100%);
	border-bottom: 3px solid var(--ep-amber);
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ep-brand {
	display: flex;
	align-items: center;
	gap: .65rem;
	text-decoration: none;
	color: #fff;
}
.ep-brand-bolt {
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: .5rem;
	background: var(--ep-amber);
	color: #212529;
	font-size: 1.15rem;
	box-shadow: inset 0 -2px 0 rgba(0,0,0,.25);
}
/* the Pin Panel mark (assets/logo/bbm-icon.svg) */
.ep-brand-mark { height: 2.4rem; width: auto; display: block; }
.ep-authbrand-mark { height: 3.2rem; width: auto; display: block; }
.ep-brand-text { font-size: 1.15rem; letter-spacing: .5px; }
.ep-brand-text strong { color: var(--ep-amber); }
.ep-brand-sub {
	display: inline-block;
	margin-left: .6rem;
	font-size: .78rem;
	color: var(--ep-steel-3);
	letter-spacing: .3px;
}
.ep-nav-links { display: flex; gap: .25rem; }
.ep-nav-links wa-button::part(base) { color: var(--ep-steel-2); }
.ep-nav-links wa-button::part(base):hover { color: #fff; }

/* ---------- Page scaffolding ---------- */
.ep-wrap {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 4rem;
}
/* admin pages use the full page width — the dense tables/grids benefit from the room */
.ep-wrap.ep-wrap-full { max-width: none; }

/* ---------- Inline table filter row (rides under the column labels) ----------
   Standing pattern for data tables: text columns filter on Enter, finite-set
   columns are dropdowns that filter on change, plus a Clear button. */
.ep-frow th { padding: .3rem .6rem .55rem; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.ep-frow input, .ep-frow select {
	width: 100%; box-sizing: border-box;
	padding: .35rem .5rem;
	border: 1px solid #d1d5db; border-radius: 6px;
	font-size: .82rem; font-family: inherit; background: #fff; color: inherit;
}
.ep-frow input:focus, .ep-frow select:focus { outline: 2px solid var(--ep-amber); outline-offset: 0; border-color: var(--ep-amber); }
.ep-page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin: .5rem 0 1.25rem;
}
.ep-page-head h1 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
}
.ep-page-head .ep-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Signed-in identity + account dropdown in the nav ---------- */
/* trigger is a <button>, so reset its native chrome */
.ep-nav-user {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-left: .25rem;
	padding: .25rem .5rem .25rem .6rem;
	border: none;
	border-left: 1px solid rgba(255,255,255,.15);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.ep-nav-caret { font-size: .68rem; color: var(--ep-steel-3); transition: color .15s; }
.ep-nav-user:hover .ep-nav-caret,
.ep-nav-user:hover .ep-nav-username { color: #fff; }
/* dropdown panel */
.ep-usermenu {
	min-width: 190px;
	display: flex;
	flex-direction: column;
	gap: .1rem;
	padding: .35rem;
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: .5rem;
	box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.ep-usermenu-item {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .5rem .65rem;
	border-radius: .35rem;
	color: var(--ep-graphite);
	text-decoration: none;
	font-size: .92rem;
}
.ep-usermenu-item:hover { background: var(--ep-steel-1); }
.ep-usermenu-item wa-icon { color: var(--ep-amber-dark); font-size: .95rem; }
/* account-switcher entries are <button>s inside a <form> — reset native chrome so
   they read as menu rows, and mark the currently-active account */
.ep-usermenu-head {
	padding: .35rem .65rem .25rem;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ep-steel-3);
}
button.ep-usermenu-item {
	width: 100%;
	border: none;
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.ep-acct-choice small { color: var(--ep-steel-3); font-weight: 400; }
.ep-acct-choice.is-active { background: var(--ep-steel-1); font-weight: 600; }
.ep-acct-choice.is-active wa-icon { color: var(--bt-afci, #2e7d32); }
.ep-nav-avatar {
	flex: 0 0 auto;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 50%;
	background: var(--ep-amber);
	color: var(--ep-graphite);
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: .8rem;
}
.ep-nav-username {
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	white-space: nowrap;
}

.ep-flash { margin-bottom: 1rem; }

/* ---------- Home: hero + lookup ---------- */
.ep-hero {
	text-align: center;
	padding: 2.25rem 1rem 1.5rem;
}
.ep-hero h1 { margin: 0 0 .35rem; font-size: 1.9rem; }
.ep-hero p  { margin: 0; color: var(--wa-color-text-quiet, #6c757d); }

.ep-lookup {
	max-width: 460px;
	margin: 1.25rem auto 2rem;
}
.ep-lookup form { display: flex; gap: .5rem; align-items: end; }
.ep-lookup wa-input { flex: 1; }

/* Panel cards on home */
.ep-panel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1rem;
}
.ep-panel-card h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.ep-panel-card .ep-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: .5rem 0 0;
}
.ep-card-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.ep-limit-callout { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

/* Big-account filterable panel grid (>4 panels) */
.ep-head-count { color: var(--wa-color-text-quiet, #6c757d); font-weight: 500; font-size: .8em; }
.ep-grid-toolbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: .7rem; margin-bottom: .6rem; flex-wrap: wrap;
}
.ep-grid-hint { font-size: .82rem; color: var(--wa-color-text-quiet, #6c757d); }
.ep-panels-grid .ep-grid-name { font-weight: 600; color: inherit; text-decoration: none; }
.ep-panels-grid .ep-grid-name:hover { text-decoration: underline; }
.ep-panels-grid td.num { white-space: nowrap; }
.ep-panels-grid tr.ep-row-own > td { background: var(--wa-color-brand-fill-quiet, #fff8ee); }
/* inline utilities when the grid takes the full width (no rail) */
.ep-inline-lookup { display: flex; gap: .4rem; align-items: center; }
.ep-inline-lookup wa-input { width: 11rem; }
.ep-inline-bucks {
	display: inline-flex; align-items: center; gap: .1rem; text-decoration: none;
	font-size: .9rem; font-weight: 600; color: var(--ep-amber-dark);
	padding: .25rem .5rem; border: 1px solid #f3d9a8; border-radius: 8px; background: #fff8ee;
}

/* ---------- Signed-in home: panels + right utility rail ---------- */
/* Panels flow through the left column; a fixed-width rail on the right pins the
   sponsor and stacks utilities (code lookup + BreakerBoxBucks) beneath it. The
   panel grid keeps its own auto-fill, so it lays out 2-up inside the left cell. */
.ep-home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 1.25rem;
	align-items: start;
	margin-top: .5rem;
}
.ep-home-main { min-width: 0; }
.ep-home-rail { display: flex; flex-direction: column; gap: .8rem; }

.ep-rail-card::part(base) { padding: .85rem .95rem; }
.ep-rail-card-title { font-size: .92rem; font-weight: 600; margin-bottom: .55rem; color: var(--ep-graphite); }
.ep-rail-lookup { display: flex; flex-direction: column; gap: .5rem; }
.ep-rail-lookup wa-button::part(base) { width: 100%; }

/* BreakerBoxBucks chip — whole card is a link to the coupon manager */
.ep-rail-bucks a { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.ep-rail-bucks-icon { font-size: 1.3rem; color: var(--ep-amber-dark); }
.ep-rail-bucks-label { font-size: .78rem; color: var(--wa-color-text-quiet, #6c757d); }
.ep-rail-bucks-value { font-size: 1.1rem; font-weight: 700; color: var(--ep-graphite); }
.ep-rail-bucks-arrow { margin-left: auto; color: var(--ep-steel-3); }

/* In the rail the sponsor becomes a centered, amber-tinted card — drops the slim
   strip's left accent bar (which read as an off-left "bracket" when stacked) and
   centers everything so nothing feels offset. */
.ep-home-rail .ep-sponsor-strip {
	margin: 0;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: .3rem;
	padding: 1rem .9rem 1.05rem;
	background: #fff8ee;
	border: 1px solid #f3d9a8;
	border-left: 1px solid #f3d9a8;   /* override the 3px amber "bracket" */
	border-radius: .6rem;
}
.ep-home-rail .ep-sponsor-strip-text { align-items: center; gap: .1rem; }
.ep-home-rail .ep-sponsor-strip .ep-sponsor-eyebrow { color: var(--ep-amber-dark); margin-bottom: .1rem; }
.ep-home-rail .ep-sponsor-strip-logo { height: 40px; margin: .15rem 0; }
.ep-home-rail .ep-sponsor-strip .ep-sponsor-mark-sm { width: 46px; height: 46px; border-radius: 11px; font-size: 1.15rem; margin: .15rem 0; }
.ep-home-rail .ep-sponsor-strip-name { font-size: 1.05rem; }
.ep-home-rail .ep-sponsor-strip-tag  { color: #8a6a2a; }
.ep-home-rail .ep-sponsor-strip-link { margin-left: 0; margin-top: .35rem; color: var(--ep-amber-dark); }

/* ---------- QR badge ---------- */
.ep-qrid {
	font-family: var(--wa-font-family-code, monospace);
	letter-spacing: .1em;
}

/* ============================================================
   The breaker panel visualization
   ============================================================ */
.ep-panelbox-outer {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.1rem 1.4rem 2.1rem;
	border-radius: 14px;
	background:
		linear-gradient(160deg, #f4f5f7 0%, #d8dbe0 45%, #e9ebee 60%, #c7ccd3 100%);
	border: 1px solid var(--ep-steel-3);
	box-shadow:
		0 10px 25px rgba(20,24,31,.18),
		inset 0 1px 0 rgba(255,255,255,.8);
	position: relative;
}
/* panel screws — slotted heads, each turned a little differently like real ones */
.ep-screw {
	position: absolute;
	width: 17px; height: 17px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 28%, #ffffff 0%, #d7dade 35%, #8d939d 75%, #767c86 100%);
	box-shadow:
		inset 0 0 3px rgba(0,0,0,.5),
		0 1px 2px rgba(0,0,0,.3);
}
.ep-screw::after {
	content: "";
	position: absolute;
	left: 2px; right: 2px;
	top: 50%; height: 3px;
	margin-top: -1.5px;
	border-radius: 2px;
	background: linear-gradient(180deg, #2e333a 0%, #4a5058 100%);
	box-shadow: 0 1px 0 rgba(255,255,255,.45);
	transform: rotate(var(--slot, 0deg));
}
.ep-screw-tl { top: 9px;  left: 11px;  --slot: 32deg; }
.ep-screw-tr { top: 9px;  right: 11px; --slot: -18deg; }
.ep-screw-bc { bottom: 9px; left: 50%; margin-left: -8.5px; --slot: 78deg; }

.ep-panelbox-title {
	text-align: center;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: #565d68;
	margin: 0 0 .8rem;
}

.ep-deadfront {
	background: linear-gradient(180deg, #31353d 0%, #23262c 100%);
	border-radius: 8px;
	border: 1px solid #14161a;
	box-shadow: inset 0 2px 10px rgba(0,0,0,.6);
	padding: 1rem .9rem;
}

/* ---------- main disconnect — centered above the branch columns ---------- */
.ep-mainrow {
	display: flex;
	justify-content: center;
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.ep-breaker.ep-main {
	width: 62%;
	min-width: 240px;
	height: 58px;
}
.ep-breaker.ep-main .ep-handle { width: 2.6rem; font-size: .9rem; }
.ep-slotno-main {
	min-width: auto;
	padding: 0 .35rem;
	letter-spacing: .08em;
	font-size: .62rem;
	background: var(--bt-main);
	color: #fff;
}
.ep-slot-empty.ep-main-empty {
	width: 62%;
	min-width: 240px;
	height: 44px;
}

/* grid: [left col] [bus spine] [right col] — single-column panels drop the right side */
.ep-slotgrid {
	display: grid;
	gap: 0 .55rem;
}
.ep-slotgrid.two-col { grid-template-columns: 1fr 16px 1fr; }
.ep-slotgrid.one-col { grid-template-columns: 1fr; }

.ep-col {
	display: grid;
	grid-auto-rows: 52px;
	row-gap: 8px;
}
.ep-spine {
	background: repeating-linear-gradient(
		180deg,
		#565d68 0 6px,
		#3a3f47 6px 12px
	);
	border-radius: 3px;
	box-shadow: inset 0 0 4px rgba(0,0,0,.7);
}

/* ---------- a breaker ---------- */
.ep-breaker {
	position: relative;
	display: flex;
	align-items: center;
	gap: .5rem;
	border: none;
	width: 100%;
	height: 100%;
	text-align: left;
	padding: 0 .5rem;
	border-radius: 6px;
	background: linear-gradient(180deg, #f5f6f8 0%, #dcdfe4 100%);
	box-shadow:
		0 2px 4px rgba(0,0,0,.45),
		inset 0 1px 0 rgba(255,255,255,.9);
	cursor: pointer;
	font: inherit;
	transition: transform .08s ease, box-shadow .08s ease;
}
.ep-breaker:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 9px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.9);
}
/* right-column breakers mirror (handle toward the spine) */
.ep-col-right .ep-breaker { flex-direction: row-reverse; text-align: right; }

.ep-slotno {
	flex: none;
	display: grid;
	place-items: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 .2rem;
	border-radius: .35rem;
	background: #23262c;
	color: #cfd4db;
	font-size: .72rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ep-breaker-info { flex: 1; min-width: 0; line-height: 1.15; }
.ep-breaker-loc {
	display: block;
	font-size: .8rem;
	font-weight: 600;
	color: #23262c;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ep-breaker-sub {
	display: block;
	font-size: .68rem;
	color: #5c6472;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* the toggle handle — colored by breaker type, amps printed on it */
.ep-handle {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.15rem;
	height: 70%;
	border-radius: 4px;
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	background: var(--bt-standard);
	box-shadow:
		inset 0 2px 0 rgba(255,255,255,.28),
		inset 0 -3px 0 rgba(0,0,0,.35),
		0 1px 2px rgba(0,0,0,.5);
}
.ep-breaker[data-type="GFCI"]     .ep-handle { background: var(--bt-gfci); }
.ep-breaker[data-type="AFCI"]     .ep-handle { background: var(--bt-afci); }
.ep-breaker[data-type="DualFunc"] .ep-handle { background: var(--bt-dualfunc); }
.ep-breaker[data-type="Tandem"]   .ep-handle { background: var(--bt-tandem); }
.ep-breaker[data-type="Quad"]     .ep-handle { background: var(--bt-quad); }
.ep-breaker[data-type="Main"]     .ep-handle { background: var(--bt-main); }

/* GFCI/AFCI style test button dot */
.ep-breaker[data-type="GFCI"] .ep-handle::after,
.ep-breaker[data-type="AFCI"] .ep-handle::after,
.ep-breaker[data-type="DualFunc"] .ep-handle::after {
	content: "";
	position: absolute;
	bottom: 5px;
	width: 7px; height: 7px;
	border-radius: 2px;
	background: #ffd43b;
	box-shadow: inset 0 -1px 1px rgba(0,0,0,.4);
}

/* ---------- empty slot ---------- */
.ep-slot-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	width: 100%;
	height: 100%;
	border: 1.5px dashed #4a5261;
	border-radius: 6px;
	background: transparent;
	color: #6b7382;
	font: inherit;
	font-size: .78rem;
	cursor: pointer;
	transition: border-color .1s ease, color .1s ease, background .1s ease;
}
.ep-slot-empty:hover {
	border-color: var(--ep-amber);
	color: var(--ep-amber);
	background: rgba(245,166,35,.06);
}
.ep-slot-empty .ep-slotno { background: transparent; border: 1px solid #4a5261; }

/* ---------- legend ---------- */
.ep-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem .9rem;
	margin: 1rem auto 0;
	max-width: 720px;
	font-size: .78rem;
	color: var(--wa-color-text-quiet, #6c757d);
}
.ep-legend .chip {
	display: inline-block;
	width: .8rem; height: .8rem;
	border-radius: 3px;
	vertical-align: -2px;
	margin-right: .3rem;
}

/* ---------- breaker schedule table ---------- */
/* overflow-x keeps a wide table scrolling in place instead of blowing out the page on phones */
.ep-schedule { margin-top: 2rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ep-schedule table {
	width: 100%;
	min-width: 460px;
	border-collapse: collapse;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
	font-size: .875rem;
}
.ep-schedule th, .ep-schedule td {
	padding: .5rem .75rem;
	text-align: left;
	border-bottom: 1px solid #eceff3;
}
.ep-schedule th {
	background: var(--ep-graphite);
	color: var(--ep-steel-2);
	font-weight: 600;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.ep-schedule tr:last-child td { border-bottom: none; }
.ep-schedule td.num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- forms ---------- */
.ep-form-card { max-width: 640px; margin: 0 auto; }
.ep-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.ep-form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) {
	.ep-form-grid { grid-template-columns: 1fr; }
}
.ep-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: .5rem;
	margin-top: 1.25rem;
}

.ep-state::part(input) { text-transform: uppercase; }

/* dialog form spacing */
.ep-dlg-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .9rem;
}
.ep-dlg-grid .span2 { grid-column: 1 / -1; }

/* ============================================================
   Mobile / narrow screens (phones) — this is the primary device:
   people scan the panel's QR with a phone.
   ============================================================ */
@media (max-width: 640px) {
	/* top bar: let it wrap, drop the tagline, shrink buttons to icons-ish */
	.ep-nav { flex-wrap: wrap; padding: .5rem .75rem; gap: .5rem; }
	.ep-brand-sub { display: none; }
	.ep-brand-text { font-size: 1.05rem; }
	.ep-nav-links { gap: 0; }

	/* keep just the avatar on small screens; the name would crowd the bar */
	.ep-nav-user { margin-left: 0; padding-left: 0; border-left: none; }
	.ep-nav-username { display: none; }

	/* page gutters tighter so cards/tables get max room */
	.ep-wrap { padding: 1rem .75rem 3rem; }

	/* heading + action buttons stack instead of fighting for one row */
	.ep-page-head { flex-direction: column; align-items: stretch; }
	.ep-page-head h1 { font-size: 1.25rem; }
	.ep-page-head .ep-actions { justify-content: flex-start; }

	/* home rail drops below the panels — the owner sees their own panels first,
	   sponsor + utilities follow */
	.ep-home-grid { grid-template-columns: 1fr; }

	/* lookup: stack the field over the button, both full width */
	.ep-lookup form { flex-direction: column; align-items: stretch; }

	/* dialog fields go single-column so they aren't cramped 2-up */
	.ep-dlg-grid { grid-template-columns: 1fr; }

	/* the load center: single visual column reads far better than two 150px ones */
	.ep-slotgrid.two-col { grid-template-columns: 1fr; }
	.ep-slotgrid.two-col .ep-spine { display: none; }
	.ep-col-right .ep-breaker { flex-direction: row; text-align: left; }
	.ep-panelbox-outer { padding: 1rem .75rem 1.9rem; }
	.ep-deadfront { padding: .8rem .6rem; }
	.ep-breaker.ep-main, .ep-slot-empty.ep-main-empty { width: 100%; min-width: 0; }
}

/* ============================================================
   Auth pages (sign-in / sign-up / verify / reset / locked)
   Centered card on the graphite page.
   ============================================================ */
.ep-authpage {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	background:
		radial-gradient(1200px 600px at 50% -10%, rgba(58,64,72,.10) 0%, transparent 60%),
		var(--ep-page-bg);
}
.ep-authbrand {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: 1.25rem;
	text-decoration: none;
	color: var(--ep-graphite);
}
.ep-authbrand .ep-brand-bolt { width: 2.4rem; height: 2.4rem; font-size: 1.3rem; }
.ep-authbrand .name { font-size: 1.4rem; letter-spacing: .5px; }
.ep-authbrand .name strong { color: var(--ep-amber-dark); }

.ep-authcard {
	width: 100%;
	max-width: 400px;
}
.ep-authcard h1 {
	margin: 0 0 .25rem;
	font-size: 1.4rem;
}
.ep-authcard .ep-sub {
	margin: 0 0 1.25rem;
	color: var(--wa-color-text-quiet, #6c757d);
	font-size: .92rem;
}
.ep-authform { display: flex; flex-direction: column; gap: .9rem; }
.ep-authform wa-button[type="submit"] { margin-top: .35rem; }
/* First/last name row — minmax(0,1fr) + min-width:0 so wa-inputs shrink to
   fit the card instead of overflowing; stacks on very narrow screens. */
.ep-namerow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .9rem; }
.ep-namerow > wa-input { min-width: 0; }
@media (max-width: 360px) { .ep-namerow { grid-template-columns: 1fr; } }
.ep-authcode {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: var(--ep-graphite);
	color: #fff;
	padding: .15rem .5rem;
	border-radius: .4rem;
	font-family: var(--wa-font-family-code, monospace);
	letter-spacing: .12em;
}
.ep-authfoot {
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid #eceff3;
	font-size: .9rem;
	text-align: center;
	color: var(--wa-color-text-quiet, #6c757d);
}
.ep-authfoot a { color: var(--bt-gfci); text-decoration: none; }
.ep-authfoot a:hover { text-decoration: underline; }
.ep-devbox {
	margin-top: 1rem;
	font-size: .82rem;
	word-break: break-all;
}

/* ============================================================
   Public landing page (index.cfm) — bbm-* classes
   ============================================================ */
.bbm-section { padding: 3.5rem 1.25rem; }
.bbm-inner { max-width: 1080px; margin: 0 auto; }
.bbm-section h2 {
	margin: 0 0 .4rem;
	font-size: 1.7rem;
	text-align: center;
}
.bbm-section .bbm-kicker {
	display: block;
	text-align: center;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ep-amber-dark);
	margin-bottom: .5rem;
}
.bbm-section .bbm-lead {
	max-width: 640px;
	margin: 0 auto 2rem;
	text-align: center;
	color: var(--wa-color-text-quiet, #6c757d);
}

/* ---------- hero ---------- */
.bbm-hero {
	background:
		radial-gradient(900px 420px at 80% -10%, rgba(245,166,35,.16) 0%, transparent 60%),
		linear-gradient(180deg, #343a44 0%, var(--ep-graphite) 100%);
	color: #fff;
	padding: 4rem 1.25rem 4.5rem;
}
.bbm-hero .bbm-inner {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 3rem;
	align-items: center;
}
.bbm-hero h1 {
	margin: 0 0 1rem;
	font-size: 2.6rem;
	line-height: 1.12;
}
.bbm-hero h1 em {
	font-style: normal;
	color: var(--ep-amber);
}
.bbm-hero p.sub {
	margin: 0 0 1.75rem;
	font-size: 1.1rem;
	line-height: 1.55;
	color: var(--ep-steel-2);
	max-width: 34rem;
}
.bbm-hero .ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
/* outlined/plain WA buttons are unreadable on the dark bands — recolor their parts */
.bbm-hero wa-button[appearance="outlined"]::part(base),
.bbm-band wa-button[appearance="outlined"]::part(base) {
	color: #fff;
	border-color: rgba(255,255,255,.45);
	background: transparent;
}
.bbm-hero wa-button[appearance="outlined"]::part(base):hover,
.bbm-band wa-button[appearance="outlined"]::part(base):hover {
	border-color: var(--ep-amber);
	color: var(--ep-amber);
}
.bbm-hero wa-button[appearance="plain"]::part(base) { color: var(--ep-steel-2); }
.bbm-hero wa-button[appearance="plain"]::part(base):hover { color: #fff; }
.bbm-hero .trust {
	margin-top: 1.4rem;
	font-size: .82rem;
	color: var(--ep-steel-3);
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.4rem;
}
.bbm-hero .trust wa-icon { color: var(--ep-amber); vertical-align: -2px; }

/* hero mini panel art */
.bbm-minipanel {
	background: linear-gradient(160deg, #f4f5f7 0%, #d8dbe0 55%, #c7ccd3 100%);
	border-radius: 14px;
	padding: .9rem 1rem 1rem;
	box-shadow: 0 18px 45px rgba(0,0,0,.45);
	max-width: 360px;
	justify-self: center;
	width: 100%;
	transform: rotate(1.5deg);
}
/* mini slotted screws — little siblings of .ep-screw on panel.cfm */
.bbm-minipanel { position: relative; }
.bbm-minipanel .mp-screw {
	position: absolute;
	top: 8px;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 28%, #ffffff 0%, #d7dade 35%, #8d939d 75%, #767c86 100%);
	box-shadow: inset 0 0 2px rgba(0,0,0,.5), 0 1px 1px rgba(0,0,0,.3);
}
.bbm-minipanel .mp-screw::after {
	content: "";
	position: absolute;
	left: 1.5px; right: 1.5px;
	top: 50%; height: 2px;
	margin-top: -1px;
	border-radius: 1.5px;
	background: linear-gradient(180deg, #2e333a 0%, #4a5058 100%);
	box-shadow: 0 1px 0 rgba(255,255,255,.45);
	transform: rotate(var(--slot, 0deg));
}
.bbm-minipanel .mp-screw.l { left: 9px;  --slot: 32deg; }
.bbm-minipanel .mp-screw.r { right: 9px; --slot: -18deg; }

/* mini main disconnect — centered above the branch columns */
.bbm-minipanel .mp-main {
	display: flex;
	justify-content: center;
	padding-bottom: 6px;
	margin-bottom: 2px;
	border-bottom: 1px solid rgba(255,255,255,.09);
}
.bbm-minipanel .mp-main .mp-b { flex: none; width: 80%; }
.bbm-minipanel .mchip {
	flex: none;
	font-size: .46rem;
	font-weight: 800;
	letter-spacing: .07em;
	background: var(--bt-main);
	color: #fff;
	border-radius: 3px;
	padding: 1px 4px;
}

.bbm-minipanel .mp-title {
	text-align: center;
	font-size: .6rem;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: #565d68;
	margin: 0 0 .55rem;
}
.bbm-minipanel .mp-front {
	background: linear-gradient(180deg, #31353d 0%, #23262c 100%);
	border-radius: 8px;
	padding: .7rem .65rem;
	box-shadow: inset 0 2px 8px rgba(0,0,0,.6);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.bbm-minipanel .mp-row { display: flex; gap: 6px; align-items: stretch; }
.bbm-minipanel .mp-b {
	flex: 1;
	display: flex;
	align-items: center;
	gap: .35rem;
	background: linear-gradient(180deg, #f5f6f8 0%, #dcdfe4 100%);
	border-radius: 5px;
	padding: .28rem .4rem;
	box-shadow: 0 1px 3px rgba(0,0,0,.45);
	min-width: 0;
}
.bbm-minipanel .mp-b .t {
	flex: 1; min-width: 0;
	font-size: .58rem; font-weight: 600; color: #23262c;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bbm-minipanel .mp-b .h {
	flex: none;
	width: 1.15rem; height: 1.05rem;
	border-radius: 3px;
	display: grid; place-items: center;
	color: #fff; font-size: .5rem; font-weight: 700;
	background: var(--bt-standard);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.35);
}
.bbm-minipanel .mp-b.right { flex-direction: row-reverse; }
.bbm-minipanel .mp-b.right .t { text-align: right; }
.bbm-minipanel .mp-spine { width: 8px; border-radius: 2px;
	background: repeating-linear-gradient(180deg, #565d68 0 4px, #3a3f47 4px 8px); }
.bbm-minipanel .mp-qr {
	display: flex; align-items: center; justify-content: center; gap: .45rem;
	margin-top: .6rem; font-size: .6rem; color: #565d68; font-weight: 600;
	letter-spacing: .06em; text-transform: uppercase;
}
.bbm-minipanel .mp-qr wa-icon { font-size: 1.3rem; color: #23262c; }

/* ---------- benefit / feature cards ---------- */
.bbm-cards3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.1rem;
}
.bbm-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.1rem;
}
.bbm-fcard {
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 12px;
	padding: 1.35rem 1.25rem;
	box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.bbm-fcard .ic {
	display: grid; place-items: center;
	width: 2.5rem; height: 2.5rem;
	border-radius: .65rem;
	background: rgba(245,166,35,.14);
	color: var(--ep-amber-dark);
	font-size: 1.15rem;
	margin-bottom: .8rem;
}
.bbm-fcard h3 { margin: 0 0 .35rem; font-size: 1.02rem; }
.bbm-fcard p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--wa-color-text-quiet, #6c757d); }

/* ---------- how it works ---------- */
.bbm-steps { counter-reset: step; }
.bbm-steps .bbm-fcard { position: relative; padding-top: 1.6rem; }
.bbm-steps .bbm-fcard::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	top: -1.05rem; left: 1.15rem;
	width: 2.1rem; height: 2.1rem;
	display: grid; place-items: center;
	background: var(--ep-graphite);
	color: var(--ep-amber);
	border-radius: 50%;
	font-weight: 700;
	box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

/* ---------- alt band (labels service) ---------- */
.bbm-band {
	background: linear-gradient(180deg, #343a44 0%, var(--ep-graphite) 100%);
	color: #fff;
}
.bbm-band h2, .bbm-band .bbm-kicker { color: #fff; }
.bbm-band .bbm-kicker { color: var(--ep-amber); }
.bbm-band .bbm-lead { color: var(--ep-steel-2); }
.bbm-band .bbm-fcard {
	background: rgba(255,255,255,.05);
	border-color: rgba(255,255,255,.12);
	box-shadow: none;
}
.bbm-band .bbm-fcard h3 { color: #fff; }
.bbm-band .bbm-fcard p { color: var(--ep-steel-2); }
.bbm-band .bbm-fcard .ic { background: rgba(245,166,35,.2); color: var(--ep-amber); }
.bbm-cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.bbm-band ul.perks { margin: .6rem 0 0; padding: 0 0 0 1.1rem; font-size: .88rem; line-height: 1.7; color: var(--ep-steel-2); }

/* ---------- pricing ---------- */
.bbm-price-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	align-items: stretch;
}
.bbm-price {
	position: relative;
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 14px;
	padding: 1.6rem 1.4rem;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.bbm-price.hot {
	border: 2px solid var(--ep-amber);
	box-shadow: 0 10px 28px rgba(245,166,35,.18);
}
.bbm-price .flag {
	position: absolute;
	top: -0.85rem; left: 50%;
	transform: translateX(-50%);
	background: var(--ep-amber);
	color: #212529;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: .25rem .7rem;
	border-radius: 999px;
	white-space: nowrap;
}
.bbm-price h3 { margin: 0 0 .1rem; font-size: 1.05rem; }
.bbm-price .amount { font-size: 2.1rem; font-weight: 800; margin: .35rem 0 0; }
.bbm-price .amount small { font-size: .9rem; font-weight: 500; color: var(--wa-color-text-quiet, #6c757d); }
.bbm-price .alt-price { font-size: .78rem; font-weight: 600; color: var(--ep-amber-dark); margin: .2rem 0 0; }
.bbm-price .blurb { font-size: .85rem; color: var(--wa-color-text-quiet, #6c757d); margin: .3rem 0 1rem; }
.bbm-price ul {
	list-style: none;
	margin: 0 0 1.4rem; padding: 0;
	font-size: .88rem; line-height: 2;
	flex: 1;
}
.bbm-price ul wa-icon { color: var(--bt-afci); margin-right: .45rem; vertical-align: -2px; }
.bbm-price wa-button { width: 100%; }

/* ---------- final CTA + footer ---------- */
.bbm-cta-final { text-align: center; }
.bbm-cta-final .ctas { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.bbm-footer {
	background: var(--ep-graphite);
	color: var(--ep-steel-3);
	padding: 2rem 1.25rem;
	font-size: .85rem;
}
.bbm-footer .bbm-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	align-items: center;
	justify-content: space-between;
}
.bbm-footer a { color: var(--ep-steel-2); text-decoration: none; }
.bbm-footer a:hover { color: #fff; }
.bbm-footer .links { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ---------- landing mobile ---------- */
@media (max-width: 860px) {
	.bbm-cards3, .bbm-feature-grid, .bbm-price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.bbm-hero { padding: 2.5rem 1rem 3rem; }
	.bbm-hero .bbm-inner { grid-template-columns: 1fr; gap: 2rem; }
	.bbm-hero h1 { font-size: 1.9rem; }
	.bbm-minipanel { transform: none; }
	.bbm-cards3, .bbm-feature-grid, .bbm-price-grid, .bbm-cards2 { grid-template-columns: 1fr; }
	.bbm-steps .bbm-fcard { margin-top: 1rem; }
	.bbm-section { padding: 2.5rem 1rem; }
}

/* ---------- read-only panel (public viewer, not signed in) ---------- */
.ep-deadfront.ep-noedit .ep-breaker { cursor: default; }
.ep-deadfront.ep-noedit .ep-breaker:hover {
	transform: none;
	box-shadow: 0 2px 4px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.9);
}
.ep-slot-empty.ep-readonly { cursor: default; opacity: .5; }
.ep-slot-empty.ep-readonly:hover {
	border-color: #4a5261;
	color: #6b7382;
	background: transparent;
}

/* ---------- Account page ---------- */
.ep-acct-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.ep-acct-name { font-size: 1.25rem; font-weight: 600; }
.ep-acct-email { color: var(--wa-color-text-quiet, #6c757d); font-size: .88rem; margin-top: .1rem; }
.ep-acct-planbadge { font-size: .8rem; }
.ep-acct-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: .75rem;
	margin-top: 1.1rem;
}
.ep-acct-stat {
	background: var(--ep-page-bg);
	border-radius: .55rem;
	padding: .7rem .8rem;
}
.ep-acct-stat-label {
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--ep-steel-3);
	font-weight: 600;
}
.ep-acct-stat-value { font-size: 1.15rem; font-weight: 700; color: var(--ep-graphite); margin-top: .15rem; }
.ep-acct-stat-value small { font-size: .72rem; font-weight: 500; color: var(--ep-steel-3); }
.ep-acct-sponsornote {
	margin: 1rem 0 0;
	font-size: .86rem;
	color: var(--wa-color-text-quiet, #6c757d);
}
.ep-acct-sponsornote wa-icon { color: var(--bt-gfci); }
.ep-acct-subhead { margin: 0 0 .6rem; font-size: 1.05rem; font-weight: 600; }
.ep-acct-caps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ep-acct-caps li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.ep-acct-caps li wa-icon { color: var(--ep-amber-dark); flex: 0 0 auto; }
.ep-acct-upgrade { margin: 1.1rem 0 0; font-size: .88rem; color: var(--wa-color-text-quiet, #6c757d); }
.ep-acct-upgrade a { color: var(--bt-gfci); text-decoration: none; }
.ep-acct-upgrade a:hover { text-decoration: underline; }
@media (max-width: 560px) {
	.ep-acct-grid { grid-template-columns: 1fr; }
}

/* ---------- Team / delegation (account page) ---------- */
.ep-team-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ep-team-subhead { margin: 1.3rem 0 .5rem; font-size: .95rem; font-weight: 600; color: var(--ep-graphite); }
.ep-team-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ep-team-table th {
	text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
	color: var(--ep-steel-3); font-weight: 700; padding: .3rem .5rem; border-bottom: 1px solid #e2e5ea;
}
.ep-team-table td { padding: .55rem .5rem; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.ep-team-email { color: var(--ep-steel-3); font-size: .8rem; margin-top: .1rem; }
.ep-team-roleform { display: flex; align-items: center; gap: .4rem; margin: 0; }
.ep-team-roleform wa-select { min-width: 8.5rem; }
.ep-team-actioncol { text-align: right; white-space: nowrap; }
.ep-team-invite { margin-top: 1.1rem; }
.ep-team-inviteform {
	display: grid; grid-template-columns: 1fr 1fr auto; gap: .7rem; align-items: end;
}
.ep-team-note { margin: .8rem 0 0; font-size: .86rem; color: var(--wa-color-text-quiet, #6c757d); display: flex; align-items: center; gap: .4rem; }
.ep-team-note a { color: var(--bt-gfci); text-decoration: none; }
.ep-team-note a:hover { text-decoration: underline; }
@media (max-width: 560px) {
	.ep-team-inviteform { grid-template-columns: 1fr; }
}
.ep-invite-banner { margin-bottom: 1rem; }
.ep-invite-row {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	flex-wrap: wrap; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgba(0,0,0,.08);
}
.ep-invite-btns { display: flex; gap: .4rem; }

/* ---------- Delegated-account banner (panels.cfm, working in another owner's account) ---------- */
.ep-delegated { border-left: 4px solid var(--ep-amber, #f5a623); margin-bottom: 1rem; }
.ep-delegated-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ep-delegated-icon {
	flex: 0 0 auto; width: 2.9rem; height: 2.9rem; border-radius: 50%;
	background: var(--ep-amber, #f5a623); color: var(--ep-graphite, #2b2f36);
	display: grid; place-items: center; font-size: 1.2rem;
}
.ep-delegated-body { flex: 1 1 auto; min-width: 0; }
.ep-delegated-eyebrow {
	font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
	color: var(--ep-steel-3); font-weight: 700;
}
.ep-delegated-addr { font-size: 1.2rem; font-weight: 700; color: var(--ep-graphite); margin: .2rem 0; line-height: 1.25; }
.ep-delegated-owner { color: var(--ep-steel-3); font-size: .95rem; }
.ep-delegated-role { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 560px) {
	.ep-delegated-role { margin-left: 0; }
}

/* ---------- Site footer (Webtropic, Inc. copyright) ---------- */
/* sticky footer: the content column grows so the footer rests at the bottom
   on short pages instead of floating mid-screen */
body { min-height: 100vh; display: flex; flex-direction: column; }
.ep-wrap { flex: 1 0 auto; }
/* Mirror image of the header (.ep-nav): amber line on top, reversed graphite
   gradient, shadow pointing up, light text. */
.ep-footer {
	flex-shrink: 0;
	border-top: 3px solid var(--ep-amber);
	background: linear-gradient(180deg, var(--ep-graphite) 0%, #343a44 100%);
	box-shadow: 0 -2px 8px rgba(0,0,0,.25);
	padding: 1.15rem 1.25rem;
	text-align: center;
	font-size: .78rem;
	color: var(--ep-steel-2);
}
.ep-footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: center; align-items: center; }
.ep-footer-links a { color: var(--ep-amber); text-decoration: none; }
.ep-footer-links a:hover { text-decoration: underline; }
/* auth pages: small copyright under the centered card */
.ep-authcopy {
	margin: 1.5rem 0 0;
	text-align: center;
	font-size: .74rem;
	line-height: 1.5;
	color: var(--ep-steel-3);
}

/* ---------- Sponsor cards (panel.cfm / panels.cfm) ---------- */
/* shared quiet eyebrow label */
.ep-sponsor-eyebrow {
	display: block;
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--ep-steel-3);
}
/* fallback logo mark when a sponsor has no logoPath */
.ep-sponsor-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 12px;
	background: rgba(245, 166, 35, .14);
	color: var(--ep-amber-dark);
	font-size: 1.6rem;
	flex: 0 0 auto;
}
.ep-sponsor-mark-sm { width: 34px; height: 34px; border-radius: 8px; font-size: .95rem; }

/* PROMINENT primary card — exclusive local sponsor (tier 2) */
.ep-sponsor-card {
	margin: 1.5rem 0;
	--wa-panel-border-color: var(--ep-steel-2);
}
.ep-sponsor-card::part(base) {
	border-left: 4px solid var(--ep-amber);
}
.ep-sponsor-card-body {
	display: flex;
	flex-direction: column;   /* logo on top, then text, then the CTA at the bottom */
	align-items: flex-start;
	gap: .8rem;
}
/* logo sits above everything, sized to a readable max: 100px tall, up to full column width */
.ep-sponsor-logo { width: 100%; }
.ep-sponsor-logo img { max-height: 100px; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; display: block; }
.ep-sponsor-main { flex: 1 1 auto; min-width: 0; }
.ep-sponsor-name {
	margin: .15rem 0 .1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ep-graphite);
}
.ep-sponsor-tagline { margin: 0 0 .4rem; font-size: .95rem; font-weight: 600; color: var(--ep-amber-dark); }
.ep-sponsor-blurb   { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--wa-color-text-quiet, #6c757d); }
.ep-sponsor-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem 1rem;
	margin: .6rem 0 0;
	font-size: .82rem;
	color: var(--ep-steel-3);
}
.ep-sponsor-meta wa-icon { color: var(--ep-amber-dark); vertical-align: -2px; margin-right: .15rem; }
.ep-sponsor-cta { flex: 0 0 auto; align-self: flex-start; }

/* SLIM strip — house/BBM sponsor, or panels.cfm compact context */
.ep-sponsor-strip {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin: 1.25rem 0;
	padding: .8rem 1rem;
	background: #fff;
	border: 1px solid var(--ep-steel-1);
	border-left: 3px solid var(--ep-amber);
	border-radius: .55rem;
}
.ep-sponsor-strip-logo { height: 38px; width: auto; max-width: 140px; object-fit: contain; flex: 0 0 auto; }
.ep-sponsor-strip .ep-sponsor-mark-sm { flex: 0 0 auto; }
/* name + tagline stack as a tidy text block between logo and Visit */
.ep-sponsor-strip-text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.ep-sponsor-strip .ep-sponsor-eyebrow { display: block; margin-bottom: .05rem; }
.ep-sponsor-strip-name { font-weight: 700; color: var(--ep-graphite); line-height: 1.2; }
.ep-sponsor-strip-tag  { color: var(--wa-color-text-quiet, #6c757d); font-size: .85rem; line-height: 1.25; }
.ep-sponsor-strip-link {
	margin-left: auto;
	flex: 0 0 auto;
	align-self: center;
	font-size: .85rem;
	font-weight: 600;
	color: var(--bt-gfci);
	text-decoration: none;
	white-space: nowrap;
}
.ep-sponsor-strip-link:hover { text-decoration: underline; }

/* SECONDARY co-sponsor ads — quieter row of compact cards */
.ep-cosponsor { margin: 1.5rem 0 .5rem; }
.ep-cosponsor > .ep-sponsor-eyebrow { margin-bottom: .55rem; }
.ep-cosponsor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: .8rem;
}
.ep-cosponsor-card::part(base) { padding: .85rem .95rem; }
.ep-cosponsor-head { display: flex; align-items: center; gap: .5rem; }
.ep-cosponsor-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.ep-cosponsor-name { font-weight: 700; font-size: .95rem; color: var(--ep-graphite); flex: 1 1 auto; min-width: 0; }
.ep-cosponsor-badge { flex: 0 0 auto; font-size: .62rem; }
.ep-cosponsor-tag { margin: .5rem 0 .55rem; font-size: .84rem; line-height: 1.45; color: var(--wa-color-text-quiet, #6c757d); }
.ep-cosponsor-link {
	font-size: .82rem;
	font-weight: 600;
	color: var(--bt-gfci);
	text-decoration: none;
}
.ep-cosponsor-link:hover { text-decoration: underline; }

@media (max-width: 560px) {
	.ep-sponsor-card-body { flex-direction: column; }
	.ep-sponsor-cta { align-self: stretch; }
	.ep-sponsor-cta wa-button { width: 100%; }
	.ep-sponsor-strip-link { margin-left: 0; }
}

/* ---------- Super-Admin ---------- */
.ep-nav-admin::part(base) { color: var(--ep-amber); }
.ep-admin-crumb {
	font-size: .82rem;
	color: var(--ep-steel-3);
	margin: 0 0 .4rem;
	display: flex;
	align-items: center;
	gap: .35rem;
	flex-wrap: wrap;
}
.ep-admin-crumb a { color: var(--bt-gfci); text-decoration: none; }
.ep-admin-crumb a:hover { text-decoration: underline; }
.ep-admin-crumb wa-icon { font-size: .7rem; color: var(--ep-steel-2); }

/* hub tool tiles */
.ep-admin-tools {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1rem;
}
.ep-admin-tool {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--ep-steel-1);
	border-radius: .7rem;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ep-admin-tool:hover {
	border-color: var(--ep-amber);
	box-shadow: 0 4px 14px rgba(43, 47, 54, .08);
	transform: translateY(-1px);
}
.ep-admin-tool-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	flex: 0 0 auto;
	border-radius: 11px;
	background: rgba(245, 166, 35, .14);
	color: var(--ep-amber-dark);
	font-size: 1.35rem;
}
.ep-admin-tool-body { flex: 1 1 auto; min-width: 0; }
.ep-admin-tool-name { display: block; font-weight: 700; color: var(--ep-graphite); }
.ep-admin-tool-desc { display: block; font-size: .85rem; color: var(--wa-color-text-quiet, #6c757d); margin-top: .15rem; }
.ep-admin-tool-arrow { color: var(--ep-steel-3); flex: 0 0 auto; }

/* admin tables */
.ep-table-wrap { overflow-x: auto; }
.ep-admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ep-admin-table th, .ep-admin-table td {
	text-align: left;
	padding: .6rem .7rem;
	border-bottom: 1px solid var(--ep-steel-1);
	vertical-align: middle;
}
.ep-admin-table thead th {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--ep-steel-3);
	font-weight: 700;
	white-space: nowrap;
}
.ep-admin-table td.num, .ep-admin-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ep-admin-table tbody tr:hover { background: var(--ep-page-bg); }
.ep-admin-sub { font-size: .78rem; color: var(--wa-color-text-quiet, #6c757d); margin-top: .15rem; }
.ep-col-actions { white-space: nowrap; }
.ep-row-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.ep-assign-form { display: flex; gap: .4rem; align-items: center; }
.ep-assign-select { min-width: 220px; }

@media (max-width: 560px) {
	.ep-assign-form { flex-direction: column; align-items: stretch; }
	.ep-assign-select { min-width: 0; }
}

/* ---------- Sponsored Account Agreement (accept screen) ---------- */
/* scrollable box holding the agreement copy; the accept button unlocks only
   after the reader scrolls to the bottom + checks the box + supplies a phone */
.ep-agreement-scroll {
	max-height: 46vh;
	overflow-y: auto;
	border: 1px solid var(--ep-steel-1, #d5d9df);
	border-radius: .6rem;
	background: #fff;
	padding: 1rem 1.25rem;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, .05);
	line-height: 1.6;
}
.ep-agreement-scroll:focus-visible { outline: 2px solid var(--ep-amber); outline-offset: 2px; }
.ep-agreement-scroll h2 {
	font-size: 1.02rem;
	margin: 1.1rem 0 .35rem;
	color: var(--ep-graphite, #2b2f36);
}
.ep-agreement-scroll h2:first-of-type { margin-top: .2rem; }
.ep-agreement-scroll p { margin: 0 0 .7rem; font-size: .92rem; }
.ep-agreement-scroll a { color: var(--bt-gfci); text-decoration: none; }
.ep-agreement-scroll a:hover { text-decoration: underline; }
.ep-agreement-end {
	margin-top: 1rem;
	text-align: center;
	font-size: .82rem;
	font-weight: 600;
	color: var(--ep-steel-3);
	letter-spacing: .04em;
}
.ep-agreement-hint {
	margin: .5rem 0 0;
	font-size: .82rem;
	color: var(--ep-steel-3);
	display: flex;
	align-items: center;
	gap: .35rem;
}
.ep-agreeform { margin-top: 1.4rem; }
.ep-agree-decline {
	font-size: .88rem;
	color: var(--wa-color-text-quiet, #6c757d);
	text-decoration: none;
}
.ep-agree-decline:hover { text-decoration: underline; }
