/*
 * Accounts pages: /login/, /account/, /admin/. Loaded after /styles.css, which
 * owns the tokens, the lock screen (.lockbox), the top bar, the page tabs,
 * tables, banners and the footer. This file adds only what those do not have:
 * the form rows, small buttons, pills, dialogs and filter bars the accounts
 * pages need. Every colour is a token from /styles.css section 1.
 *
 * Narrow screens: tables scroll inside their own .tablewrap; nothing else may
 * widen the page (the filter rows wrap, inputs are 100% of their column).
 */

/* ── logos at the sizes the pages use (no inline styles) ───────────────── */
.logo.h30 {
	--logoh: 30px;
}
.logo.h40 {
	--logoh: 40px;
	margin-bottom: 20px;
}
.logo.h42 {
	--logoh: 42px;
}

/* ── lock-screen additions ─────────────────────────────────────────────── */
.lockbox .field + .field {
	margin-top: 18px;
}
.lockbox .altlink {
	display: block;
	width: auto;
	margin: 16px 0 0;
	padding: 0;
	background: none;
	color: var(--slate);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: underline;
}
.lockbox .altlink:hover {
	background: none;
	color: var(--ink);
}
.lockbox .rules {
	margin: 0 0 16px;
	padding: 10px 12px 10px 28px;
	background: var(--rule-soft);
	font-size: 13.5px;
	color: var(--slate);
}
.lockbox [hidden] {
	display: none;
}
/* Sign in with Microsoft: a link drawn as the card's button, with its note and a divider. */
.lockbox .msbutton {
	display: block;
	padding: 11px;
	background: var(--ink);
	color: #fff;
	text-align: center;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.lockbox .msbutton:hover {
	background: var(--slate);
}
.lockbox .msbutton:focus-visible {
	outline: 2px solid var(--slate);
	outline-offset: 2px;
}
.lockbox .mshint {
	margin: 8px 0 0;
	font-size: 13.5px;
	color: var(--muted);
}
.lockbox .ordivider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--faint);
}
.lockbox .ordivider::before,
.lockbox .ordivider::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--rule);
}
#gatemsg {
	min-height: 18px;
}

/* An author `display` rule must not beat the hidden attribute. */
[hidden] {
	display: none !important;
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.smallbtn {
	display: inline-block;
	margin: 2px 4px 2px 0;
	padding: 6px 12px;
	background: var(--ink);
	color: #fff;
	border: 1px solid var(--ink);
	font-family: var(--sans);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}
.smallbtn:hover:not(:disabled) {
	background: var(--slate);
}
.smallbtn:disabled {
	background: var(--faint);
	border-color: var(--faint);
	cursor: wait;
}
.smallbtn.ghost {
	background: none;
	color: var(--muted);
	border: 1px solid var(--rule);
}
.smallbtn.ghost:hover:not(:disabled) {
	color: var(--ink);
	border-color: var(--ink);
	background: none;
}
.smallbtn.warn {
	background: var(--bad);
	border-color: var(--bad);
}
.smallbtn.ghost.warn {
	background: none;
	color: var(--bad);
	border: 1px solid var(--bad-bg);
}
.smallbtn.ghost.warn:hover:not(:disabled) {
	background: var(--bad-bg);
	border-color: var(--bad);
	color: var(--bad);
}
.smallbtn:focus-visible,
.lockbtn:focus-visible,
.lockbox button:focus-visible,
.pagenav a:focus-visible,
a:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--slate);
	outline-offset: 2px;
}
.paneactions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: 14px;
}
.topactions .srcline {
	max-width: 40vw;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── forms ─────────────────────────────────────────────────────────────── */
.formrow {
	max-width: 440px;
	margin-bottom: 16px;
}
.formrow > label,
.formrow > .eyebrow {
	display: block;
	margin-bottom: 7px;
}
.formrow select,
.formrow input[type="text"],
.formrow input[type="password"],
.formrow input[type="email"],
.formrow input[type="date"],
.formrow input[type="search"],
.formrow input[type="number"] {
	width: 100%;
	padding: 9px 10px;
	font-family: var(--mono);
	font-size: 14.5px;
	border: 1px solid var(--rule);
	background: #fafaf9;
	color: var(--ink);
	border-radius: 0;
}
.formrow select:focus,
.formrow input:focus,
.filterrow select:focus,
.filterrow input:focus {
	outline: 2px solid var(--slate);
	outline-offset: -1px;
	background: #fff;
}
.rowerr {
	display: block;
	margin-top: 4px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--bad);
	min-height: 14px;
	overflow-wrap: anywhere;
}
.rowok {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--good);
}
.hint {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--muted);
}
.panel {
	margin-top: 18px;
	padding: 18px 20px;
	background: var(--panel);
	border: 1px solid var(--rule);
	border-left: 4px solid var(--brand);
}
.panel h3,
.emptystate h3 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 800;
}
.panel p {
	margin: 6px 0;
}
.panel .rules {
	margin: 6px 0 14px;
	padding-left: 20px;
	font-size: 14.5px;
	color: var(--slate);
}
.warnnote {
	margin: 8px 0 14px;
	padding: 10px 12px;
	background: var(--warn-bg);
	color: var(--warn);
	font-size: 14.5px;
	line-height: 1.5;
}
.banner.good {
	background: var(--good-bg);
	border-left-color: var(--good);
}
.emptystate {
	margin-top: 18px;
	padding: 28px 20px;
	text-align: center;
	background: var(--panel);
	border: 1px dashed var(--rule);
	color: var(--muted);
}
.emptystate p {
	margin: 4px 0 14px;
}

/* ── filters and paging ────────────────────────────────────────────────── */
.filterrow {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 18px;
	align-items: flex-end;
	margin-top: 14px;
}
.filterrow .field {
	min-width: 150px;
}
.filterrow .field.grow {
	flex: 1 1 220px;
}
.filterrow .field > label {
	display: block;
	margin-bottom: 7px;
}
.filterrow select,
.filterrow input[type="search"],
.filterrow input[type="text"],
.filterrow input[type="date"] {
	width: 100%;
	padding: 8px 10px;
	font-family: var(--mono);
	font-size: 14.5px;
	border: 1px solid var(--rule);
	background: #fafaf9;
	color: var(--ink);
	border-radius: 0;
}
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}
.pagination[hidden] {
	display: none;
}
.pagination .pageinfo {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
}

/* ── tables ────────────────────────────────────────────────────────────── */
/* The site's tables are built for numbers (centred, one line, mono). These
   hold names and sentences: left-aligned, wrapping, in the body font. */
table.acctable {
	min-width: 560px;
}
table.acctable th,
table.acctable td {
	/* The site's tighter padding is for columns of figures; prose wants room. */
	padding: 8px 11px;
	text-align: left;
	white-space: normal;
	vertical-align: top;
	font-family: var(--sans);
	font-size: 14.5px;
}
table.acctable th {
	font-family: var(--mono);
	font-size: 12px;
	cursor: default;
}
table.acctable td.actions {
	white-space: nowrap;
}
table.acctable tr.ended td {
	color: var(--muted);
}
table.acctable td.wrapcell {
	min-width: 180px;
}
.rolechips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
}
.chip {
	display: inline-block;
	padding: 2px 8px;
	font-size: 13.5px;
	background: var(--rule-soft);
	color: var(--slate);
}
.chip.external {
	background: var(--panel);
	border: 1px solid var(--rule);
	color: var(--ink, var(--slate));
	font-weight: 600;
}
.chip.added {
	background: var(--warn-bg);
	color: var(--warn);
}
.pill {
	display: inline-block;
	padding: 2px 9px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.pill-active,
.pill-ok {
	color: var(--good);
	background: var(--good-bg);
}
.pill-pending,
.pill-denied {
	color: var(--warn);
	background: var(--warn-bg);
}
.pill-disabled,
.pill-failed {
	color: var(--bad);
	background: var(--bad-bg);
}
.userlink {
	font-weight: 700;
	color: var(--ink);
}

/* ── a person's header and facts ───────────────────────────────────────── */
.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 18px;
	margin: 14px 0 0;
	padding: 14px 16px;
	background: var(--panel);
	border: 1px solid var(--rule);
}
.facts dt {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--faint);
	align-self: center;
}
.facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}
.backlink {
	display: inline-block;
	margin-top: 18px;
	font-size: 14.5px;
	color: var(--slate);
}

/* ── setup code ────────────────────────────────────────────────────────── */
.codebox {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 12px 0;
	padding: 14px 16px;
	background: var(--panel);
	border: 1px solid var(--ink);
}
.codevalue {
	font-family: var(--mono);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.08em;
	overflow-wrap: anywhere;
}
.codeleft {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
}

/* ── roles page ────────────────────────────────────────────────────────── */
.rolecard {
	margin-top: 18px;
	padding: 16px 18px;
	background: var(--panel);
	border: 1px solid var(--rule);
}
.rolecard.retired {
	opacity: 0.75;
}
.rolecard h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
}
.rolemeta {
	margin: 4px 0 12px;
	font-size: 14.5px;
	color: var(--muted);
}
.permlist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.permitem {
	display: block;
	padding: 4px 0;
	font-size: 14.5px;
}
.permitem label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}
.permitem input {
	margin-top: 3px;
}
.permitem .permname {
	font-weight: 600;
}
.permitem .permdesc {
	display: block;
	font-size: 13.5px;
	color: var(--muted);
}
.sharemark {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--good);
	background: var(--good-bg);
}
.permitem.off {
	color: var(--faint);
}

/* ── audit ─────────────────────────────────────────────────────────────── */
details.auditrow summary {
	cursor: pointer;
	color: var(--slate);
	font-size: 13.5px;
}
details.auditrow pre {
	margin: 6px 0 0;
	padding: 8px 10px;
	background: var(--rule-soft);
	font-family: var(--mono);
	font-size: 13px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-width: 480px;
}

/* ── dialogs ───────────────────────────────────────────────────────────── */
dialog.accdialog {
	width: min(480px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 22px 24px 20px;
	border: 1px solid var(--rule);
	border-top: 4px solid var(--brand);
	background: var(--panel);
	color: var(--ink);
}
dialog.accdialog.wide {
	width: min(640px, calc(100vw - 32px));
}
dialog.accdialog::backdrop {
	background: rgba(20, 23, 28, 0.45);
}
dialog.accdialog h2 {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
}
dialog.accdialog p {
	margin: 8px 0;
	font-size: 15px;
}
dialog.accdialog .formrow {
	max-width: none;
}
.picklist {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	max-height: 260px;
	overflow: auto;
	border: 1px solid var(--rule);
}
.picklist li + li {
	border-top: 1px solid var(--rule-soft);
}
.picklist button {
	display: block;
	width: 100%;
	padding: 9px 12px;
	text-align: left;
	background: none;
	border: 0;
	font-family: var(--sans);
	font-size: 14.5px;
	cursor: pointer;
	color: var(--ink);
}
.picklist button:hover,
.picklist button:focus-visible {
	background: var(--rule-soft);
}
.picklist .sub {
	display: block;
	font-size: 13.5px;
	color: var(--muted);
}
.sectionbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	margin-top: 10px;
}

@media (max-width: 480px) {
	.facts {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.facts dd {
		margin-bottom: 8px;
	}
	.codevalue {
		font-size: 22px;
	}
}

.usernamepreview {
	margin: 8px 0 14px;
	font-size: 15px;
}
.usernamepreview .hint {
	font-weight: 400;
}

/* ── how a person signs in (Add person, the users list) ────────────────── */
fieldset.choice {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}
fieldset.choice legend {
	padding: 0;
	margin-bottom: 6px;
}
.choiceopt {
	display: block;
	margin: 4px 0;
	font-size: 15px;
	cursor: pointer;
}
.choiceopt input {
	margin-right: 6px;
}
.chip.signin-microsoft {
	background: var(--rule-soft);
}
.chip.signin-waiting,
.chip.signin-none {
	color: var(--slate);
}

/* ── the Paycor link: the Review tab and its items ─────────────────────── */
.tabcount {
	display: inline-block;
	min-width: 18px;
	padding: 0 6px;
	margin-left: 6px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	background: var(--warn-bg);
	color: var(--warn);
}
.chip.paycor {
	background: var(--panel);
	border: 1px solid var(--rule);
	color: var(--slate);
}
.syncbar {
	margin: 0 0 18px;
	padding: 12px 14px;
	background: var(--panel);
	font-size: 15px;
}
.syncbar p {
	margin: 0 0 8px;
}
.syncbar .syncresult {
	margin: 10px 0 0;
	font-weight: 600;
}
.reviewgroup {
	margin-bottom: 26px;
}
.reviewgroup > .hint {
	margin: 0 0 10px;
}
.reviewlist {
	margin: 0;
	padding: 0;
	list-style: none;
}
.reviewitem {
	padding: 12px 14px;
	background: var(--panel);
	border-left: 3px solid var(--rule);
}
.reviewitem + .reviewitem {
	margin-top: 8px;
}
.reviewitem h3 {
	margin: 0 0 4px;
	font-size: 16px;
}
.reviewitem p {
	margin: 2px 0;
	font-size: 15px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.reviewitem .sectionbar .smallbtn,
.reviewitem .sectionbar a.smallbtn {
	text-decoration: none;
}
.acceptednote {
	margin: 0 0 18px;
	padding: 10px 12px;
	background: var(--good-bg);
	font-size: 15px;
	line-height: 1.5;
}
.acceptednote p {
	margin: 0 0 4px;
}
.candidate-chosen {
	margin: 10px 0 0;
	font-size: 15px;
}
.picklist button[aria-pressed="true"] {
	background: var(--rule-soft);
	font-weight: 600;
}

/* ── store devices: the sign-in view and a device session's landing ───── */
.lockbox .devicefields {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.lockbox .devicefields:disabled {
	opacity: 0.55;
}
.lockbox .namelist {
	display: grid;
	gap: 8px;
	max-height: 46vh;
	overflow-y: auto;
}
.lockbox .namelist button.person {
	margin: 0;
	min-height: 52px;
	padding: 12px 14px;
	text-align: left;
	font-size: 17px;
	overflow-wrap: anywhere;
}
.lockbox .chosen {
	margin: 0 0 16px;
	font-size: 16px;
}
.lockbox #pin {
	font-size: 22px;
	letter-spacing: 0.3em;
	text-align: center;
	min-height: 52px;
}
.lockbox #pinsubmit {
	min-height: 52px;
	font-size: 16px;
}
.devicemsg {
	min-height: 18px;
	margin-top: 8px;
	font-family: var(--mono);
	font-size: 13.5px;
	color: var(--bad);
}
.lockbox .devicelock {
	margin: 12px 0 0;
	font-weight: 700;
	color: var(--bad);
}
.devicelanding {
	max-width: 560px;
}
.deviceon {
	font-family: var(--mono);
	font-size: 14.5px;
	color: var(--muted);
}
.bigbtn {
	display: block;
	width: 100%;
	max-width: 360px;
	margin-top: 22px;
	padding: 18px 20px;
	background: var(--ink);
	color: #fff;
	border: 0;
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
}
.bigbtn:hover {
	background: var(--slate);
}
.bigbtn:focus-visible {
	outline: 2px solid var(--slate);
	outline-offset: 2px;
}
.devicewarn {
	max-width: 560px;
	padding: 10px 12px;
	background: var(--warn-bg);
	color: var(--warn);
	font-size: 14.5px;
}

.regresult {
	max-width: 560px;
	margin: 14px 0 0;
	padding: 14px 16px;
	border: 1px solid var(--rule, #ccc);
	border-left: 4px solid var(--slate, #333);
	background: var(--paper, #fff);
}
.regresult h3 {
	margin: 0 0 8px;
	font-size: 17px;
}
.regresult p {
	margin: 0 0 8px;
	font-size: 15.5px;
}
.regresult .bigbtn {
	display: inline-block;
	width: auto;
	margin-top: 8px;
	margin-right: 10px;
}

/* Pair a Screen (owner, 2026-11-17): the sign-in card's way to /tv/, below
   its footer. Outlined, so Sign in stays the primary action; a strong focus
   ring, since it is reached with a TV remote's arrow keys or Tab. */
.lockbox .pairscreen {
	display: block;
	margin-top: 16px;
	padding: 10px;
	border: 1px solid var(--slate);
	background: transparent;
	color: var(--slate);
	text-align: center;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.lockbox .pairscreen:hover {
	background: var(--rule-soft);
	color: var(--ink);
}
.lockbox .pairscreen:focus-visible {
	outline: 3px solid var(--slate);
	outline-offset: 2px;
}

/* The "View as this role" form's store list (roles.js). */
.scopepick {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	min-width: 0;
}

/* ── your own profile photo (/account/) ────────────────────────────────── */
.ownphoto {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	flex-wrap: wrap;
}
.ownphoto-pic {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--panel);
	border: 1px solid var(--rule);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ownphoto-pic img,
.ownphoto-pic canvas {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}
.ownphoto-none {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--faint);
	text-align: center;
}
.ownphoto-body {
	flex: 1 1 260px;
	min-width: 0;
}
.ownphoto-body p {
	margin: 0 0 6px;
}
.ownphoto-actions {
	margin: 10px 0 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ── leaderboard screens (Store devices, owner 2026-11-20) ─────────────── */
.scrstatus {
	min-height: 1.4em;
	margin: 0 0 8px;
	font-size: 14.5px;
}
.scrstatus.error {
	color: var(--bad);
}
.scrstatus.good {
	color: var(--good, var(--ink));
}
.scrstatus.warn {
	color: var(--warn);
}
.scrstore {
	margin: 16px 0 4px;
	font-size: 16px;
}
.scrcodebox {
	max-width: 560px;
	margin: 12px 0;
	padding: 14px 16px;
	background: var(--panel);
	border: 1px solid var(--ink);
	border-left: 4px solid var(--brand, var(--ink));
}
.scrcodebox:focus-visible {
	outline: 3px solid var(--brand, var(--ink));
	outline-offset: 2px;
}
.scrcodebox p {
	margin: 0 0 6px;
}
.scrcode {
	font-family: var(--mono);
	font-size: clamp(28px, 8vw, 44px);
	font-weight: 600;
	letter-spacing: 0.14em;
	margin: 6px 0 8px;
	overflow-wrap: anywhere;
}
.scrcodetime {
	font-family: var(--mono);
	font-size: 14.5px;
}
.scrsteps {
	margin: 8px 0;
	padding-left: 22px;
	font-size: 15.5px;
}
.scrsection button:focus-visible {
	outline: 3px solid var(--brand, var(--ink));
	outline-offset: 2px;
}
