:root {
	color-scheme: dark;
	--bg: #101418;
	--panel: #171c21;
	--panel-strong: #20272d;
	--text: #f7f8f4;
	--muted: #aab4b8;
	--line: rgba(247, 248, 244, 0.14);
	--green: #43d17f;
	--gold: #e0b24d;
	--cyan: #58b7e8;
	--red: #ed6262;
	--button: #f7f8f4;
	--button-text: #101418;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	background:
		linear-gradient(145deg, rgba(67, 209, 127, 0.10), transparent 34%),
		linear-gradient(20deg, rgba(88, 183, 232, 0.08), transparent 40%),
		var(--bg);
	color: var(--text);
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

button:disabled,
body.busy button {
	cursor: wait;
	opacity: 0.58;
}

a {
	color: inherit;
	text-decoration: none;
}

.shell {
	width: min(100%, 1200px);
	min-height: 100svh;
	margin: 0 auto;
	padding: max(18px, env(safe-area-inset-top)) 14px calc(100px + env(safe-area-inset-bottom));
}

.login-panel {
	width: min(100%, 420px);
	margin: 11svh auto 0;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(23, 28, 33, 0.94);
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.brand-picture {
	width: 58px;
	height: 58px;
	flex: 0 0 auto;
	display: block;
}

.brand-mark {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	filter: drop-shadow(-5px 8px 7px rgba(0, 0, 0, 0.26));
}

.kicker {
	margin: 0 0 4px;
	color: var(--green);
	font-size: 0.72rem;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: 0;
}

h1,
h2,
h3,
p {
	overflow-wrap: anywhere;
}

h1 {
	margin: 0;
	font-size: 2.25rem;
	line-height: 1;
	letter-spacing: 0;
}

h2 {
	margin: 0;
	font-size: 1.18rem;
	line-height: 1.15;
	letter-spacing: 0;
}

h3 {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.15;
	letter-spacing: 0;
}

.login-form {
	display: grid;
	gap: 16px;
	margin-top: 28px;
}

.login-links {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

.login-links a {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.field,
.search-field,
.select-field {
	display: grid;
	gap: 8px;
}

.field span,
.search-field span,
.select-field span {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 750;
}

.field input,
.field select,
.field textarea,
.search-field input,
.select-field select {
	width: 100%;
	min-height: 52px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--text);
	outline: none;
}

.field textarea {
	min-height: 118px;
	padding: 12px 14px;
	resize: vertical;
	line-height: 1.35;
}

.calculated-field output {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--text);
	font-size: 1rem;
	font-weight: 800;
}

.calculated-field small {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 700;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus,
.select-field select:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(67, 209, 127, 0.18);
}

.select-field select {
	min-width: 180px;
	appearance: none;
}

.form-message {
	min-height: 22px;
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.form-message.error,
.toast.error {
	color: var(--red);
}

.form-message.success {
	color: var(--green);
}

.toast.success {
	color: var(--green);
}

.app-view {
	display: grid;
	gap: 16px;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 0 2px;
}

.top-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.account-button {
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 0 12px 0 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--text);
	font: inherit;
	font-weight: 850;
	white-space: nowrap;
	cursor: pointer;
}

.account-avatar,
.account-initials {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 50%;
}

.account-avatar {
	object-fit: cover;
	background: var(--panel);
}

.account-initials {
	display: grid;
	place-items: center;
	background: var(--green);
	color: var(--bg);
	font-size: 0.78rem;
}

.account-label {
	font-size: 0.86rem;
}

.account-profile {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 18px;
}

.account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.account-actions .control-button {
	min-width: 190px;
}

.account-page-photo {
	width: 112px;
	height: 112px;
}

.account-page-avatar,
.account-page-initials {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.account-page-avatar {
	object-fit: cover;
	background: var(--panel);
}

.account-page-initials {
	display: grid;
	place-items: center;
	background: var(--green);
	color: var(--bg);
	font-size: 2.1rem;
	font-weight: 950;
}

.account-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.account-details div {
	min-height: 74px;
	display: grid;
	align-content: center;
	gap: 6px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.account-details dt {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 850;
	text-transform: uppercase;
}

.account-details dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 850;
	overflow-wrap: anywhere;
}

.status-pill {
	max-width: 190px;
	min-width: 88px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
	color: var(--muted);
	font-size: 0.84rem;
	font-weight: 850;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.status-pill.error {
	border-color: rgba(237, 98, 98, 0.38);
	color: var(--red);
}

.status-pill.success {
	border-color: rgba(52, 211, 153, 0.38);
	color: var(--green);
}

.panel {
	display: grid;
	gap: 14px;
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.summary-card,
.status-item,
.content-band {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(23, 28, 33, 0.90);
}

.summary-card {
	min-height: 154px;
	display: grid;
	align-content: space-between;
	gap: 18px;
	padding: 16px;
	text-align: left;
}

.summary-card strong {
	font-size: 1.36rem;
	line-height: 1.08;
}

.summary-card p {
	margin: 0;
	color: var(--muted);
	font-weight: 720;
}

.summary-head {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 850;
	text-transform: uppercase;
}

.summary-head img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.summary-head picture {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	display: block;
}

.summary-head picture > img {
	width: 100%;
	height: 100%;
	display: block;
}

.summary-icon {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--gold);
}

#admin-panel .summary-card {
	min-height: 176px;
	align-content: center;
	justify-items: center;
	padding: 24px 18px;
	text-align: center;
}

#admin-panel .summary-head {
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	color: var(--text);
	font-size: 1.12rem;
	line-height: 1.15;
	text-transform: none;
}

#admin-panel .summary-head img,
#admin-panel .summary-head picture,
#admin-panel .summary-icon {
	width: 72px;
	height: 72px;
}

#admin-panel .summary-icon .button-icon {
	width: 34px;
	height: 34px;
}

.status-strip {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 0.8fr;
	gap: 12px;
}

.status-item {
	min-height: 84px;
	display: grid;
	align-content: center;
	gap: 6px;
	padding: 16px;
}

.status-item span {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 850;
	text-transform: uppercase;
}

.status-item strong {
	font-size: 1.55rem;
	line-height: 1.05;
}

.quick-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.remote-two-up {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.primary-button,
.control-button,
.icon-button,
.nav-item {
	min-height: 50px;
	border: 0;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-weight: 850;
}

.primary-button,
.control-button {
	padding: 0 14px;
	background: var(--button);
	color: var(--button-text);
}

.control-button.danger {
	background: var(--red);
	color: #ffffff;
}

.control-button.secondary {
	border: 1px solid var(--line);
	background: var(--panel-strong);
	color: var(--text);
}

.primary-button:disabled,
.control-button:disabled {
	cursor: not-allowed;
	opacity: 0.48;
}

.control-button.edit-button {
	min-height: 38px;
	padding: 0 14px;
	font-size: 0.82rem;
	letter-spacing: 0;
}

.hpl-active-side .edit-button {
	min-height: 50px;
}

.schedule-actions .edit-button {
	min-height: 34px;
	padding: 0 12px;
}

.privacy-page {
	background: var(--bg);
}

.privacy-shell {
	width: min(100%, 780px);
	margin: 0 auto;
	padding: max(32px, env(safe-area-inset-top)) 18px 56px;
}

.privacy-shell h1 {
	margin-top: 18px;
}

.privacy-shell section {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.privacy-shell p {
	color: var(--muted);
	line-height: 1.6;
}

.privacy-updated {
	margin: 10px 0 0;
}

.privacy-back {
	color: var(--green);
	font-weight: 900;
}

.link-button {
	text-align: center;
}

.icon-button {
	width: 50px;
	padding: 0;
	border: 1px solid var(--line);
	background: var(--panel-strong);
	color: var(--text);
}

.button-icon {
	width: 20px;
	height: 20px;
	display: inline-flex;
	flex: 0 0 auto;
}

.button-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.content-band {
	display: grid;
	gap: 14px;
	padding: 16px;
}

body.modal-open {
	overflow: hidden;
}

.hpl-detail-modal {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
	place-items: center;
	padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
}

.hpl-detail-modal[hidden] {
	display: none;
}

.hpl-knockout-modal {
	z-index: 90;
}

.hpl-detail-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
}

.hpl-detail-dialog {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 14px;
	width: min(100%, 1040px);
	max-height: min(92svh, 980px);
	overflow: auto;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(23, 28, 33, 0.98);
	box-shadow: 0 26px 90px rgba(0, 0, 0, 0.52);
	outline: none;
}

.hpl-detail-dialog > .section-heading {
	position: sticky;
	top: -16px;
	z-index: 2;
	margin: -16px -16px 0;
	padding: 16px;
	border-bottom: 1px solid var(--line);
	background: rgba(23, 28, 33, 0.98);
}

.hpl-detail-inline {
	display: grid;
	gap: 14px;
	outline: none;
}

.hpl-knockout-dialog {
	width: min(100%, 720px);
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.inline-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.video-call-band {
	align-content: start;
}

.video-call-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.video-launch-panel {
	min-height: min(480px, 58svh);
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 14px;
	text-align: center;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
}

.video-launch-panel .summary-icon {
	width: 62px;
	height: 62px;
}

.video-launch-panel strong {
	display: block;
	font-size: 1.35rem;
	line-height: 1.2;
}

.video-launch-panel p {
	margin: 4px 0 0;
	color: var(--muted);
	font-weight: 760;
}

.app-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.app-card {
	min-height: 148px;
	display: grid;
	gap: 16px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.app-card[draggable="true"] {
	cursor: grab;
}

.app-card.dragging {
	opacity: 0.55;
}

.app-card.drag-over {
	border-color: rgba(67, 209, 127, 0.76);
	box-shadow: inset 0 0 0 1px rgba(67, 209, 127, 0.34);
}

.app-card.running {
	border-color: rgba(224, 178, 77, 0.44);
}

.app-card.active {
	border-color: rgba(67, 209, 127, 0.64);
	box-shadow: inset 0 0 0 1px rgba(67, 209, 127, 0.20);
}

.app-card-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 10px;
}

.app-card-main {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
}

.app-icon {
	width: 58px;
	height: 58px;
	object-fit: contain;
}

.app-card p,
.active-tournament p,
.history-row p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 700;
}

.app-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 50px;
	gap: 10px;
	align-self: end;
}

.app-order-actions {
	display: flex;
	gap: 6px;
}

.app-order-button {
	width: 34px;
	min-height: 34px;
	height: 34px;
}

.app-order-button .button-icon {
	width: 17px;
	height: 17px;
}

.fridge-spotify-panel {
	display: grid;
	gap: 14px;
}

.home-spotify-request-controls {
	display: grid;
	gap: 10px;
}

.spotify-now {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
}

.spotify-art {
	width: 62px;
	height: 62px;
	border-radius: 8px;
	object-fit: cover;
	background: var(--panel-strong);
}

.spotify-track {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.spotify-track strong,
.spotify-track span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spotify-track strong {
	font-size: 1.1rem;
	line-height: 1.15;
}

.spotify-track span {
	color: var(--muted);
	font-weight: 740;
}

.spotify-controls {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 52px;
	gap: 10px;
}

.spotify-volume-controls {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr) 50px;
	align-items: center;
	gap: 10px;
}

.spotify-play-button {
	min-width: 0;
}

.spotify-device-panel {
	display: grid;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
}

.spotify-device-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px;
	align-items: center;
	gap: 10px;
}

.spotify-device-heading .kicker,
.spotify-device-heading strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spotify-device-heading .kicker {
	margin: 0 0 2px;
}

.spotify-device-heading strong {
	line-height: 1.2;
}

.spotify-devices,
.spotify-device-list {
	display: grid;
	gap: 8px;
}

.spotify-device {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 42px;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 7px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.spotify-device.active {
	border-color: var(--accent);
}

.spotify-device-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 7px;
	color: var(--muted);
	background: var(--panel);
}

.spotify-device.active .spotify-device-icon {
	color: var(--accent);
}

.spotify-device-main {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.spotify-device-main strong,
.spotify-device-main span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spotify-device-main strong {
	line-height: 1.18;
}

.spotify-device-main span {
	color: var(--muted);
	font-weight: 740;
}

.spotify-search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 10px;
}

.spotify-search-form .field input {
	min-height: 50px;
}

.spotify-results {
	display: grid;
	gap: 8px;
}

.spotify-result-list {
	display: grid;
	gap: 8px;
}

.spotify-result {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) 42px;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.spotify-result-art,
.spotify-result-type {
	width: 46px;
	height: 46px;
	border-radius: 7px;
}

.spotify-result-art {
	object-fit: cover;
	background: var(--panel);
}

.spotify-result-type {
	display: grid;
	place-items: center;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 900;
	background: var(--panel);
}

.spotify-result-main {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.spotify-result-main strong,
.spotify-result-main span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spotify-result-main strong {
	line-height: 1.18;
}

.spotify-result-main span,
.spotify-empty {
	color: var(--muted);
	font-weight: 740;
}

.spotify-empty {
	margin: 0;
	padding: 9px 2px 0;
}

.volume-controls {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr) 50px minmax(120px, auto);
	align-items: center;
	gap: 12px;
}

.volume-slider {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 50px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.volume-slider span {
	color: var(--text);
	font-weight: 850;
}

.volume-slider input {
	width: 100%;
	accent-color: var(--cyan);
}

.active-tournament {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	min-height: 120px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.home-active-tournament {
	border-color: rgba(224, 178, 77, 0.42);
	background: linear-gradient(180deg, rgba(224, 178, 77, 0.11), rgba(23, 28, 33, 0.92));
}

.home-active-tournament .active-tournament {
	background: rgba(16, 20, 24, 0.35);
}

.hpl-empty-active {
	grid-template-columns: 1fr;
}

.hpl-empty-active .empty-state {
	min-height: 150px;
}

.hpl-active-panel {
	grid-template-columns: 1fr;
	align-items: stretch;
}

.hpl-completed-panel {
	border-color: rgba(52, 211, 153, 0.32);
}

.hpl-active-layout {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.hpl-active-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
}

.hpl-active-side {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hpl-complete-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid rgba(52, 211, 153, 0.32);
	border-radius: 8px;
	background: rgba(52, 211, 153, 0.1);
	color: var(--text);
	font-weight: 850;
}

.hpl-complete-banner .button-icon {
	color: var(--green);
}

.hpl-complete-banner span:not(.button-icon) {
	color: var(--muted);
	font-size: 0.92rem;
}

.hpl-metrics {
	display: flex;
	gap: 10px;
}

.hpl-metrics span {
	min-width: 78px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted);
	font-weight: 780;
	text-align: center;
}

.hpl-metrics strong {
	display: block;
	color: var(--text);
	font-size: 1.3rem;
}

.hpl-mode-metric strong {
	font-size: 1.02rem;
	line-height: 1.2;
}

.hpl-draft-summary {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.hpl-draft-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.hpl-draft-meta p {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 780;
}

.hpl-draft-players {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hpl-draft-players span,
.hpl-draft-players strong {
	min-height: 32px;
	display: inline-flex;
	align-items: center;
	padding: 0 10px;
	border: 1px solid rgba(67, 209, 127, 0.28);
	border-radius: 8px;
	background: rgba(67, 209, 127, 0.09);
	color: var(--green);
	font-size: 0.82rem;
	font-weight: 850;
}

.hpl-draft-empty {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 760;
}

.hpl-control-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 12px;
	align-items: start;
}

.hpl-card {
	display: grid;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.hpl-card .section-heading h3,
.hpl-clock-card [data-hpl-clock-summary] {
	font-size: 1.7rem;
	line-height: 1;
}

.hpl-card .section-heading p:not(.kicker),
.user-meta {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 730;
}

.hpl-clock-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
}

.hpl-clock-form.collapsed {
	display: none;
}

.hpl-inline-form,
.hpl-tournament-form {
	display: grid;
	gap: 12px;
}

.hpl-ko-form.collapsed .field-row,
.hpl-ko-form.collapsed .hpl-ko-scene,
.hpl-ko-form.collapsed .form-message {
	display: none;
}

.hpl-tournament-form {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hpl-tournament-form.hpl-card {
	align-content: start;
}

.hpl-edit-section {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
}

.hpl-edit-section summary {
	min-height: 62px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	cursor: pointer;
	list-style: none;
}

.hpl-edit-section summary::-webkit-details-marker {
	display: none;
}

.hpl-edit-section-title {
	min-width: 0;
	display: grid;
	gap: 4px;
}

.hpl-edit-section-title strong {
	color: var(--text);
	font-size: 1rem;
	line-height: 1.15;
}

.hpl-edit-section-title span {
	overflow: hidden;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 760;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hpl-edit-section-chevron {
	color: var(--muted);
	transition: transform 160ms ease;
}

.hpl-edit-section[open] .hpl-edit-section-chevron {
	transform: rotate(180deg);
}

.hpl-edit-section-body {
	display: grid;
	gap: 12px;
	padding: 0 12px 12px;
	border-top: 1px solid var(--line);
}

.hpl-edit-section-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding-top: 12px;
}

.hpl-edit-section .player-picker,
.hpl-edit-section .blind-level-editor,
.hpl-edit-section .payout-editor {
	padding: 12px 0 0;
	border: 0;
	background: transparent;
}

.hpl-danger-section {
	border-color: rgba(237, 98, 98, 0.28);
}

.hpl-danger-section .hpl-edit-section-body {
	padding-top: 12px;
}

.wide-field {
	grid-column: 1 / -1;
}

.field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.checkbox-field {
	min-height: 52px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 780;
}

.checkbox-field input {
	width: 18px;
	height: 18px;
	accent-color: var(--green);
}

.knockout-list,
.rebuy-list {
	display: grid;
	gap: 8px;
}

.knockout-row,
.rebuy-row {
	min-height: 62px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.knockout-row span,
.rebuy-row span {
	color: var(--muted);
	font-weight: 740;
}

.knockout-row p,
.rebuy-row p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 760;
}

.small-button {
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(237, 98, 98, 0.12);
	color: var(--red);
	font-weight: 850;
}

.small-button.success {
	display: inline-grid;
	place-items: center;
	width: max-content;
	background: rgba(67, 209, 127, 0.12);
	color: var(--green);
	text-decoration: none;
}

.hpl-editor {
	border-color: rgba(88, 183, 232, 0.34);
}

.hpl-form-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.hpl-detail-actions {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hpl-start-readiness {
	grid-column: 1 / -1;
	min-height: 18px;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 760;
	line-height: 1.35;
	text-align: center;
}

.hpl-start-readiness:empty {
	display: none;
}

.player-picker {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.player-create {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 8px;
}

.player-create .control-button {
	min-width: 178px;
	grid-column: 1;
}

.player-create-field {
	display: none;
}

.player-create.open .player-create-field {
	display: grid;
}

.player-create .form-message {
	grid-column: 1 / -1;
}

.player-results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 8px;
	max-height: min(340px, 42svh);
	overflow: auto;
}

.player-result {
	min-height: 58px;
	display: grid;
	align-content: center;
	gap: 4px;
	padding: 9px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--text);
	text-align: left;
}

.player-result strong {
	font-size: 0.94rem;
	line-height: 1.15;
}

.player-result span {
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 760;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.player-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 0;
}

.player-chip {
	min-height: 36px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 10px;
	border: 1px solid rgba(67, 209, 127, 0.34);
	border-radius: 8px;
	background: rgba(67, 209, 127, 0.10);
	color: var(--green);
	font-size: 0.84rem;
	font-weight: 850;
}

.player-chip .button-icon {
	width: 16px;
	height: 16px;
}

.blind-level-editor,
.payout-editor {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.blind-level-heading,
.payout-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
}

.blind-level-heading > span,
.payout-heading > span {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 750;
}

.blind-level-heading .control-button,
.payout-heading .control-button {
	min-height: 42px;
}

.blind-level-list,
.payout-list {
	display: grid;
	gap: 8px;
}

.blind-level-row {
	display: grid;
	grid-template-columns: 70px repeat(3, minmax(0, 1fr)) 50px;
	align-items: end;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	cursor: pointer;
}

.payout-row {
	display: grid;
	grid-template-columns: 70px repeat(2, minmax(0, 1fr)) 50px;
	align-items: end;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	cursor: pointer;
}

.blind-level-row.active,
.payout-row.active {
	border-color: rgba(67, 209, 127, 0.64);
	box-shadow: 0 0 0 3px rgba(67, 209, 127, 0.12);
}

.level-number,
.level-field,
.payout-number,
.payout-field {
	display: grid;
	gap: 6px;
}

.level-number,
.payout-number {
	align-self: stretch;
	align-content: center;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.level-number span,
.level-field span,
.payout-number span,
.payout-field span {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 820;
	text-transform: uppercase;
}

.level-number strong,
.payout-number strong {
	color: var(--text);
	font-size: 1.2rem;
	line-height: 1;
}

.level-field input,
.payout-field input {
	width: 100%;
	min-height: 42px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(16, 20, 24, 0.62);
	color: var(--text);
	outline: none;
}

.level-field input:focus,
.payout-field input:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(67, 209, 127, 0.18);
}

.blind-level-row .icon-button,
.payout-row .icon-button {
	width: 42px;
	min-height: 42px;
	justify-self: end;
}

.compact-summary {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.danger-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid rgba(237, 98, 98, 0.38);
	border-radius: 8px;
	background: rgba(237, 98, 98, 0.08);
}

.danger-card p:not(.kicker) {
	margin: 4px 0 0;
	color: var(--muted);
	font-weight: 730;
}

.history-list {
	display: grid;
	gap: 10px;
}

.history-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--text);
	text-align: left;
}

.hpl-history-item {
	display: grid;
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.hpl-history-item.expanded {
	border-color: rgba(67, 209, 127, 0.26);
}

.hpl-history-summary {
	grid-template-columns: minmax(0, 1fr) auto 28px;
	width: 100%;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
}

.hpl-history-summary:disabled {
	cursor: default;
	opacity: 1;
}

.hpl-history-item.current-completed .history-row {
	border-color: transparent;
}

.hpl-history-chevron {
	color: var(--muted);
	transition: transform 160ms ease;
}

.hpl-history-item.expanded .hpl-history-chevron {
	transform: rotate(180deg);
}

.hpl-history-panel {
	display: grid;
	gap: 10px;
	padding: 0 12px 12px;
}

.hpl-history-expanded-panel {
	display: grid;
	gap: 12px;
	min-height: 0;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.hpl-history-expanded-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
}

.hpl-history-expanded-top p:not(.kicker) {
	margin: 4px 0 0;
	color: var(--muted);
	font-weight: 730;
}

.hpl-history-loading {
	display: grid;
	gap: 10px;
	padding: 12px 0 0;
	border-top: 1px solid var(--line);
}

.hpl-history-payout-list,
.hpl-history-points-list {
	display: grid;
	gap: 8px;
}

.hpl-history-payout-row,
.hpl-history-points-row {
	min-height: 44px;
	display: grid;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.hpl-history-payout-row {
	grid-template-columns: 52px minmax(0, 1fr) 82px;
}

.hpl-history-points-row {
	grid-template-columns: 54px minmax(0, 1fr) 82px 82px;
}

.hpl-history-payout-row span,
.hpl-history-points-row span {
	color: var(--gold);
	font-weight: 950;
}

.hpl-history-payout-row b,
.hpl-history-points-row em,
.hpl-history-points-row b {
	color: var(--muted);
	font-size: 0.82rem;
	font-style: normal;
	font-weight: 850;
	text-align: right;
}

.history-row span {
	color: var(--gold);
	font-weight: 900;
}

.history-row .hpl-history-chevron {
	color: var(--muted);
}

.rankings-podium {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.podium-card {
	min-height: 126px;
	display: grid;
	align-content: center;
	gap: 8px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	text-align: center;
}

.podium-card span {
	color: var(--gold);
	font-size: 0.92rem;
	font-weight: 900;
}

.podium-card strong {
	font-size: 1.22rem;
	line-height: 1.1;
}

.podium-card p {
	margin: 0;
	color: var(--muted);
	font-weight: 760;
}

.rankings-list {
	display: grid;
	gap: 10px;
}

.ranking-row {
	min-height: 76px;
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr) 94px 86px;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.ranking-rank {
	color: var(--gold);
	font-size: 1.12rem;
	font-weight: 950;
}

.ranking-player p,
.ranking-points span {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 780;
}

.ranking-points {
	text-align: right;
}

.ranking-points strong {
	font-size: 1.08rem;
}

.ranking-move {
	min-height: 34px;
	display: inline-grid;
	place-items: center;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 900;
}

.ranking-move.up,
.ranking-move.new {
	border-color: rgba(67, 209, 127, 0.38);
	color: var(--green);
}

.ranking-move.down {
	border-color: rgba(237, 98, 98, 0.38);
	color: var(--red);
}

.next-event-card {
	min-height: 126px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(170px, 0.58fr) minmax(280px, 0.9fr);
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid rgba(67, 209, 127, 0.46);
	border-radius: 8px;
	background: var(--panel-strong);
}

.next-event-card p {
	margin: 5px 0 0;
	color: var(--muted);
	font-weight: 760;
}

.event-location {
	display: grid;
	gap: 6px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
}

.event-location span {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 850;
	text-transform: uppercase;
}

.event-location strong {
	font-size: 1rem;
	line-height: 1.15;
}

.rsvp-panel {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
}

.rsvp-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.rsvp-status span {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 850;
	text-transform: uppercase;
}

.rsvp-status strong {
	font-size: 1rem;
	line-height: 1.1;
}

.rsvp-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.rsvp-button {
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 9px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--text);
	font-size: 0.82rem;
	font-weight: 850;
}

.rsvp-button.active {
	border-color: rgba(67, 209, 127, 0.56);
	background: rgba(67, 209, 127, 0.14);
	color: var(--green);
}

.rsvp-counts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 820;
	text-align: center;
}

.rsvp-counts span {
	min-height: 28px;
	display: grid;
	place-items: center;
	padding: 0 6px;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.rsvp-admin-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.rsvp-admin-list .rsvp-name-group {
	min-height: 0;
}

.schedule-list {
	display: grid;
	gap: 10px;
}

.schedule-row {
	min-height: 84px;
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr) minmax(86px, auto);
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.schedule-row.next {
	border-color: rgba(67, 209, 127, 0.58);
	box-shadow: inset 0 0 0 1px rgba(67, 209, 127, 0.18);
}

.schedule-date {
	display: grid;
	gap: 4px;
}

.schedule-date strong {
	font-size: 1rem;
	line-height: 1.05;
}

.schedule-date span,
.schedule-main p {
	margin: 0;
	color: var(--muted);
	font-size: 0.86rem;
	font-weight: 760;
}

.schedule-main {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.schedule-badge {
	min-height: 34px;
	display: inline-grid;
	place-items: center;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 900;
	text-align: center;
}

.schedule-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.schedule-row.next .schedule-badge {
	border-color: rgba(67, 209, 127, 0.42);
	color: var(--green);
}

.schedule-rsvps {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding-top: 2px;
}

.rsvp-name-group {
	min-height: 54px;
	display: grid;
	align-content: center;
	gap: 4px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.rsvp-name-group.yes {
	border-color: rgba(67, 209, 127, 0.32);
}

.rsvp-name-group.maybe {
	border-color: rgba(224, 178, 77, 0.34);
}

.rsvp-name-group.no {
	border-color: rgba(237, 98, 98, 0.30);
}

.rsvp-name-group span {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 900;
	text-transform: uppercase;
}

.rsvp-name-group p {
	margin: 0;
	color: var(--text);
	font-size: 0.9rem;
	font-weight: 740;
	line-height: 1.25;
}

.rsvp-name-list {
	display: grid;
	gap: 6px;
}

.rsvp-name-row {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.rsvp-name-row p {
	min-width: 0;
	overflow-wrap: anywhere;
}

.rsvp-remove-button {
	width: auto;
	min-width: 28px;
	height: 28px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 750;
	line-height: 1;
}

.rsvp-remove-button .button-icon {
	width: 16px;
	height: 16px;
}

.rsvp-remove-label {
	white-space: nowrap;
}

.rsvp-name-group.empty {
	grid-column: 1 / -1;
}

.rsvp-name-group.empty p {
	color: var(--muted);
}

.schedule-editor {
	border-color: rgba(88, 183, 232, 0.34);
}

.schedule-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.schedule-form .field input,
.schedule-form .field select {
	width: 100%;
	min-height: 52px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--text);
	outline: none;
}

.schedule-form .field input:focus,
.schedule-form .field select:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(67, 209, 127, 0.18);
}

.schedule-editor-actions {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.email-start-band {
	align-items: center;
	padding-block: 16px;
}

.email-create-box {
	align-items: center;
}

.email-create-box,
.email-create-empty {
	min-height: 150px;
}

.email-create-empty .control-button {
	justify-self: center;
	min-width: 190px;
}

.email-compose-dialog {
	width: min(100%, 1040px);
}

.email-edit-section .email-options {
	padding-top: 12px;
}

.email-blast-form {
	display: grid;
	gap: 12px;
}

.email-blast-form.is-loading {
	pointer-events: none;
}

.email-options {
	display: grid;
	gap: 10px;
	align-items: start;
}

.email-tournament-fields {
	padding-left: 12px;
	border-left: 2px solid rgba(67, 209, 127, 0.36);
	align-items: start;
}

.email-options .checkbox-field {
	justify-content: space-between;
}

.email-options .checkbox-field span {
	order: 1;
}

.email-options .checkbox-field input {
	order: 2;
	width: 44px;
	height: 24px;
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	flex: 0 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.16s ease, border-color 0.16s ease;
}

.email-options .checkbox-field input::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
	transition: transform 0.16s ease;
}

.email-options .checkbox-field input:checked {
	border-color: rgba(67, 209, 127, 0.5);
	background: var(--green);
}

.email-options .checkbox-field input:checked::after {
	transform: translateX(20px);
}

.email-recipient-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 10px;
}

.email-recipient-picker .status-pill {
	max-width: none;
}

.email-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.email-actions .control-button {
	min-width: 180px;
}

.email-draft-result {
	display: grid;
	gap: 10px;
}

.email-draft-card,
.email-preview-card,
.email-skip-list {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.email-draft-card {
	border-color: rgba(67, 209, 127, 0.36);
}

.email-draft-card p,
.email-preview-card p,
.email-skip-list p {
	margin: 0;
	color: var(--muted);
	font-weight: 720;
	line-height: 1.35;
}

.email-preview-frame {
	width: 100%;
	min-height: min(680px, 72svh);
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}

.email-draft-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.email-skip-list ul {
	margin: 0;
	padding-left: 18px;
	color: var(--muted);
	font-size: 0.88rem;
	font-weight: 730;
	line-height: 1.4;
}

.email-history-list {
	display: grid;
	gap: 10px;
}

.email-history-card {
	display: grid;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.email-history-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 12px;
}

.email-history-main h3,
.email-history-main p {
	margin: 0;
}

.email-history-main p {
	color: var(--muted);
	font-size: 0.88rem;
	font-weight: 720;
	line-height: 1.35;
}

.email-history-stats,
.email-response-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.email-history-stats span,
.email-response-counts span {
	min-height: 30px;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 4px 9px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 820;
	white-space: nowrap;
}

.email-response-counts {
	justify-content: flex-start;
}

.email-response-counts .yes {
	border-color: rgba(67, 209, 127, 0.36);
	color: var(--green);
}

.email-response-counts .maybe {
	border-color: rgba(224, 178, 77, 0.38);
	color: var(--gold);
}

.email-response-counts .no {
	border-color: rgba(255, 107, 107, 0.34);
	color: var(--red);
}

.email-response-groups {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.rules-section-list {
	display: grid;
	gap: 14px;
}

.rule-content,
.rule-rich-text {
	display: grid;
	gap: 12px;
}

.rule-rich-text p,
.rule-rich-text ul {
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 720;
	line-height: 1.45;
}

.rule-rich-text ul {
	display: grid;
	gap: 8px;
	padding-left: 1.25rem;
}

.rule-rich-text li {
	padding-left: 2px;
	color: var(--text);
	font-weight: 760;
}

.rule-card-grid,
.rule-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.rule-card {
	min-height: 178px;
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.rule-card .kicker {
	margin: 0;
}

.rule-card strong {
	color: var(--text);
	font-size: 2rem;
	line-height: 1;
	letter-spacing: 0;
}

.rule-card .rule-rich-text {
	gap: 8px;
}

.rule-card .rule-rich-text p {
	font-size: 0.95rem;
	font-weight: 720;
}

.discount-list {
	display: grid;
	gap: 10px;
}

.discount-row {
	min-height: 58px;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.discount-row.no-icon {
	grid-template-columns: 1fr;
}

.discount-row .button-icon {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	padding: 9px;
	border: 1px solid rgba(224, 178, 77, 0.34);
	border-radius: 8px;
	background: rgba(224, 178, 77, 0.10);
	color: var(--gold);
}

.discount-row .button-icon svg {
	width: 100%;
	height: 100%;
}

.discount-row span:not(.button-icon) {
	color: var(--text);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.35;
}

.collection-tools {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto;
	align-items: end;
	gap: 12px;
}

.segmented {
	min-height: 52px;
	display: inline-grid;
	grid-template-columns: repeat(3, minmax(74px, 1fr));
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.segment {
	min-height: 42px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font-weight: 850;
}

.segment.active {
	background: var(--button);
	color: var(--button-text);
}

.hpl-mode-field {
	align-self: end;
}

.hpl-mode-toggle {
	width: 100%;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hpl-mode-toggle .segment {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.hpl-mode-toggle .segment input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hpl-mode-toggle .segment:has(input:disabled) {
	cursor: not-allowed;
	opacity: 0.58;
}

.team-slots {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.team-slot {
	aspect-ratio: 1;
	min-height: 0;
	display: grid;
	place-items: center;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--text);
}

.team-slot img {
	width: 62%;
	height: 62%;
	object-fit: contain;
}

.team-slot span {
	max-width: 100%;
	color: var(--muted);
	font-size: 0.74rem;
	font-weight: 850;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.team-slot.filled {
	border-color: rgba(67, 209, 127, 0.46);
}

.dex-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.pokemon-card {
	min-height: 268px;
	display: grid;
	gap: 9px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
}

.pokemon-card.on-team {
	border-color: rgba(67, 209, 127, 0.58);
}

.pokemon-art {
	aspect-ratio: 1.08;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
}

.pokemon-art img {
	width: 86%;
	height: 86%;
	object-fit: contain;
}

.pokemon-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 800;
}

.team-toggle {
	min-height: 42px;
	border: 0;
	border-radius: 8px;
	background: var(--button);
	color: var(--button-text);
	font-weight: 850;
}

.skeleton {
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	color: transparent !important;
}

.skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
	transform: translateX(-100%);
}

.panel[aria-busy="true"] .skeleton::after {
	opacity: 1;
	animation: skeleton-sweep 1.35s ease-in-out infinite;
}

.skeleton-line {
	width: min(100%, var(--skeleton-width, 100%));
	height: 14px;
	display: block;
	border-radius: 999px;
}

.skeleton-title {
	height: 22px;
}

.skeleton-tall {
	height: 32px;
}

.skeleton-kicker {
	height: 10px;
}

.skeleton-button {
	height: 42px;
	border-radius: 8px;
}

.skeleton-textarea {
	height: 118px;
	border-radius: 8px;
}

.skeleton-pill {
	height: 30px;
	border-radius: 999px;
}

.skeleton-value {
	height: 24px;
}

.skeleton-square {
	border-radius: 8px;
}

.skeleton-orb {
	width: 58%;
	aspect-ratio: 1;
	display: block;
	border-radius: 50%;
}

.skeleton-art {
	min-height: 0;
	border-radius: 8px;
}

.skeleton-stack {
	display: grid;
	align-content: center;
	gap: 9px;
	min-width: 0;
}

.skeleton-button-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.skeleton-card {
	pointer-events: none;
}

.skeleton-metric {
	display: grid;
	justify-items: center;
	gap: 7px;
}

@keyframes skeleton-sweep {
	to {
		transform: translateX(100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.panel[aria-busy="true"] .skeleton::after {
		animation: none;
	}
}

.empty-state {
	min-height: 94px;
	display: grid;
	place-items: center;
	gap: 4px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel-strong);
	color: var(--muted);
	text-align: center;
}

.empty-state strong {
	color: var(--text);
}

.empty-state.compact {
	min-height: 44px;
	padding: 10px;
}

.toast {
	min-height: 24px;
	margin: 0;
	color: var(--muted);
	font-size: 0.94rem;
	font-weight: 750;
}

.bottom-nav {
	position: fixed;
	left: 50%;
	bottom: max(12px, env(safe-area-inset-bottom));
	z-index: 20;
	width: min(820px, calc(100% - 24px));
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(16, 20, 24, 0.94);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
	transform: translateX(-50%);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.nav-item {
	flex: 1 1 0;
	min-width: 74px;
	min-height: 58px;
	display: grid;
	gap: 4px;
	padding: 6px;
	background: transparent;
	color: var(--muted);
	position: relative;
	-webkit-tap-highlight-color: transparent;
	transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item .button-icon {
	justify-self: center;
	width: 24px;
	height: 24px;
}

.nav-item span:last-child {
	font-size: 0.75rem;
	font-weight: 850;
}

.nav-item.active {
	background: var(--panel-strong);
	color: var(--text);
}

.nav-item:focus-visible {
	outline: 2px solid rgba(67, 209, 127, 0.72);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

@media (max-width: 820px) {
	.shell {
		padding-inline: 12px;
		padding-bottom: calc(86px + env(safe-area-inset-bottom));
	}

	.topbar {
		align-items: flex-start;
	}

	.brand-picture {
		width: 50px;
		height: 50px;
	}

	h1 {
		font-size: 1.95rem;
	}

	.hpl-detail-modal {
		padding: 0;
	}

	.hpl-detail-dialog {
		width: 100%;
		max-height: 100svh;
		min-height: 100svh;
		border-radius: 0;
		border-inline: 0;
		padding: 12px;
	}

	.hpl-detail-dialog > .section-heading {
		top: -12px;
		margin: -12px -12px 0;
		padding: 12px;
	}

		.summary-grid,
		.status-strip,
		.quick-row,
			.app-grid,
			.spotify-now,
			.spotify-controls,
			.spotify-volume-controls,
			.spotify-search-form,
			.volume-controls,
		.collection-tools {
			grid-template-columns: 1fr;
	}

		.active-tournament,
		.account-profile,
		.account-details,
		.hpl-active-header,
		.hpl-history-expanded-top,
		.hpl-control-grid,
		.hpl-tournament-form,
		.hpl-edit-section-grid,
		.field-row,
		.hpl-form-actions,
		.player-create,
		.blind-level-heading,
		.blind-level-row,
		.payout-heading,
		.payout-row,
		.compact-summary,
		.danger-card,
		.email-options,
		.email-recipient-toolbar,
		.email-history-main,
		.email-response-groups,
	.history-row,
		.hpl-history-payout-row,
		.hpl-history-points-row,
		.next-event-card,
		.schedule-row,
		.rule-grid,
		.rule-card-grid,
		.schedule-form,
	.schedule-editor-actions,
	.schedule-rsvps {
		grid-template-columns: 1fr;
	}

	.schedule-actions {
		justify-content: flex-start;
	}

	.blind-level-row .icon-button,
	.blind-level-heading .control-button,
	.payout-row .icon-button,
	.payout-heading .control-button {
		width: 100%;
	}

	.hpl-metrics {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hpl-active-side {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.hpl-draft-panel .hpl-active-side {
		grid-template-columns: 1fr;
	}

	.hpl-draft-panel .hpl-active-side .edit-button {
		width: 100%;
	}

	.rsvp-actions,
	.rsvp-counts {
		grid-template-columns: 1fr;
	}

	.email-recipient-toolbar .inline-actions,
	.email-actions,
	.email-draft-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.email-history-stats {
		justify-content: flex-start;
	}

	.email-recipient-toolbar .icon-button {
		width: 100%;
	}

	.team-slots {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rankings-podium,
	.ranking-row {
		grid-template-columns: 1fr;
	}

	.ranking-points {
		text-align: left;
	}

	.top-actions {
		gap: 6px;
	}

	.account-button {
		width: 50px;
		padding: 0;
	}

	.account-label {
		display: none;
	}

	.status-pill {
		display: none;
	}

	.hpl-clock-card .status-pill {
		display: block;
	}

	.video-call-band .section-heading {
		display: grid;
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.video-call-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.video-call-actions .status-pill {
		display: block;
		max-width: none;
		grid-column: 1 / -1;
	}

	.video-call-actions .control-button {
		min-width: 0;
	}

	.video-launch-panel {
		min-height: min(420px, 54svh);
		padding: 24px 16px;
	}

	.bottom-nav {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		justify-content: center;
		gap: 0;
		overflow-x: visible;
		padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
		border-width: 1px 0 0;
		border-radius: 0;
		background: rgba(16, 20, 24, 0.82);
		box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04), 0 -18px 42px rgba(0, 0, 0, 0.34);
		transform: none;
		backdrop-filter: saturate(1.25) blur(24px);
		-webkit-backdrop-filter: saturate(1.25) blur(24px);
	}

	.nav-item {
		flex: 1 1 0;
		min-width: 0;
		min-height: 58px;
		gap: 2px;
		padding: 8px 2px 4px;
		border-radius: 0;
		background: transparent;
		color: rgba(247, 248, 244, 0.56);
	}

	.nav-item::before {
		content: "";
		position: absolute;
		top: 5px;
		left: 50%;
		width: 22px;
		height: 3px;
		border-radius: 999px;
		background: var(--green);
		opacity: 0;
		transform: translateX(-50%) scaleX(0.54);
		transition: opacity 160ms ease, transform 160ms ease;
	}

	.nav-item .button-icon {
		width: 25px;
		height: 25px;
	}

	.nav-item span:last-child {
		font-size: 0.69rem;
		line-height: 1.05;
		font-weight: 780;
	}

	.nav-item.active {
		background: transparent;
		color: var(--green);
	}

	.nav-item.active::before {
		opacity: 1;
		transform: translateX(-50%) scaleX(1);
	}

	.nav-item:active {
		transform: translateY(1px);
	}
}

@media (max-width: 430px) {
	.bottom-nav {
		padding-inline: 4px;
	}

	.nav-item {
		min-height: 56px;
		padding-inline: 1px;
	}

	.nav-item span:last-child {
		max-width: 100%;
		overflow: hidden;
		font-size: 0.66rem;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.dex-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pokemon-card {
		min-height: 246px;
	}

	.segmented {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
