/* UstaTally Frontend Styles */

:root {
	--usta-primary: #059669;
	--usta-primary-dark: #047857;
	--usta-secondary: #64748b;
	--usta-success: #10b981;
	--usta-warning: #f59e0b;
	--usta-danger: #ef4444;
	--usta-bg: #f8fafc;
	--usta-card-bg: #ffffff;
	--usta-text: #1e293b;
	--usta-text-light: #64748b;
	--usta-border: #e2e8f0;
	--usta-radius: 12px;
	--usta-nav-bg: #ffffff;
	--usta-nav-bg-mobile: #ffffff;
	--usta-nav-text: #1e293b;
	--usta-nav-text-muted: #475569;
	--usta-nav-hover-bg: #f1f5f9;
	--usta-nav-hover-text: #0f172a;
	--usta-nav-active-bg: var(--usta-primary);
	--usta-nav-active-text: #ffffff;
	--usta-nav-border: #e2e8f0;
	--usta-nav-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
	:root {
		--usta-bg: #0f172a;
		--usta-card-bg: #1e293b;
		--usta-text: #f1f5f9;
		--usta-text-light: #94a3b8;
		--usta-border: #334155;
		--usta-nav-bg: #1d2327;
		--usta-nav-bg-mobile: #2c2f33;
		--usta-nav-text: #f1f5f9;
		--usta-nav-text-muted: #cbd5e1;
		--usta-nav-hover-bg: rgba(255, 255, 255, 0.08);
		--usta-nav-hover-text: #ffffff;
		--usta-nav-active-bg: var(--usta-primary);
		--usta-nav-active-text: #ffffff;
		--usta-nav-border: rgba(255, 255, 255, 0.08);
		--usta-nav-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	}
}

html[data-theme="dark"] {
	--usta-bg: #0f172a;
	--usta-card-bg: #1e293b;
	--usta-text: #f1f5f9;
	--usta-text-light: #94a3b8;
	--usta-border: #334155;
	--usta-nav-bg: #1d2327;
	--usta-nav-bg-mobile: #2c2f33;
	--usta-nav-text: #f1f5f9;
	--usta-nav-text-muted: #cbd5e1;
	--usta-nav-hover-bg: rgba(255, 255, 255, 0.08);
	--usta-nav-hover-text: #ffffff;
	--usta-nav-active-bg: var(--usta-primary);
	--usta-nav-active-text: #ffffff;
	--usta-nav-border: rgba(255, 255, 255, 0.08);
	--usta-nav-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html { color-scheme: light dark; }

/* Consistent page container - requirement 1 & 5 */
.usta-tally-page-content,
.usta-competition-select,
.usta-dash,
.usta-results,
.usta-voting,
.usta-progress,
.usta-tally-competition-questions,
.usta-tally-competition-timer,
.usta-tally-competition-leaders,
.usta-tally-competition-comments,
.usta-tally-competition-outstanding,
.usta-hall-of-fame,
.usta-leaders-wrap,
.usta-tally-competition-results,
.usta-judge-comments {
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 12px;
	box-sizing: border-box;
}
.usta-tally-page-content {
	border: none;
}
.usta-tally-page-content + hr {
	display: none;
}
hr:has(+ .usta-tally-page-content) {
	display: none;
}
@media (max-width: 768px) {
	.usta-tally-page-content,
	.usta-competition-select,
	.usta-dash,
	.usta-results,
	.usta-voting,
	.usta-progress,
	.usta-tally-competition-questions,
	.usta-tally-competition-timer,
	.usta-tally-competition-leaders,
	.usta-tally-competition-comments,
	.usta-tally-competition-outstanding {
		padding: 20px 12px;
	}
}
/* Ensure menu has same outer spacing on all plugin pages */
.usta-tally-nav {
	margin-left: auto;
	margin-right: auto;
	max-width: 1120px;
	box-sizing: border-box;
}
.usta-tally-nav-global {
	max-width: 1120px;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
}
/* Display modes - competition owner can set boxed vs full width */
.usta-display-full .usta-tally-page-content,
.usta-display-full .usta-competition-select,
.usta-display-full .usta-dash,
.usta-display-full .usta-results,
.usta-display-full .usta-voting,
.usta-display-full .usta-progress,
.usta-display-full .usta-tally-competition-questions,
.usta-display-full .usta-tally-competition-timer,
.usta-display-full .usta-tally-competition-leaders,
.usta-display-full .usta-tally-competition-comments,
.usta-display-full .usta-tally-competition-outstanding,
.usta-display-full .usta-hall-of-fame,
.usta-display-full .usta-leaders-wrap,
.usta-display-full .usta-tally-competition-results,
.usta-display-full .usta-judge-comments {
	max-width: none;
	margin: 0;
}
.usta-display-full .usta-tally-nav,
.usta-display-full .usta-tally-nav-global {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	border-radius: 0;
	border-left: none;
	border-right: none;
}
.usta-display-full .usta-tally-footer {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* Results page tabs */
.usta-tally-competition-results .usta-tally-tabs { display:flex; gap:0; margin-bottom:24px; border-bottom:2px solid #e2e8f0; }
.usta-tally-competition-results .usta-tally-tab { padding:10px 24px; background:none; border:none; font-size:0.95rem; font-weight:600; color:#94a3b8; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.15s; }
.usta-tally-competition-results .usta-tally-tab:hover { color:#059669; }
.usta-tally-competition-results .usta-tally-tab.active { color:#059669; border-bottom-color:#059669; }
.usta-tally-competition-results .usta-tally-tab-content { display:none; }
.usta-tally-competition-results .usta-tally-tab-content.active { display:block; }
.usta-results-tabs { display:flex; gap:8px; margin-bottom:24px; border-bottom:2px solid var(--usta-border, #e2e8f0); }
.usta-results-tab { padding:10px 18px; background:none; border:none; font-size:0.9rem; font-weight:600; color:#64748b; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.15s; }
.usta-results-tab:hover { color:var(--usta-primary, #059669); }
.usta-results-tab.active { color:var(--usta-primary, #059669); border-bottom-color:var(--usta-primary, #059669); }
.usta-results-tab-content { display:none; }
.usta-results-tab-content.active { display:block; animation: usta-fadeIn 0.2s ease; }
.usta-tally-competition-results .usta-tally-vote-table { width:100%; border-collapse:collapse; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,0.06); }
.usta-tally-competition-results .usta-tally-vote-table th { background:#f1f5f9; padding:12px 16px; text-align:left; font-size:0.85rem; font-weight:600; color:#475569; }
.usta-tally-competition-results .usta-tally-vote-table td { padding:12px 16px; border-top:1px solid #f1f5f9; font-size:0.9rem; }
.usta-tally-competition-results .usta-tally-vote-total { margin-top:12px; font-size:0.85rem; color:#64748b; text-align:center; }
.usta-tally-competition-results .usta-tally-vote-bar { height:8px; background:#e2e8f0; border-radius:4px; overflow:hidden; }
.usta-tally-competition-results .usta-tally-vote-bar-fill { height:100%; background:#059669; border-radius:4px; transition:width 0.5s; }

/* Announcement/Winners header */
.usta-tally-competition-announcement .usta-tally-announce-header,
.usta-tally-competition-winners .usta-tally-winners-header { margin-bottom:32px; padding-bottom:16px; border-bottom:1px solid #e2e8f0; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.usta-tally-competition-announcement .usta-tally-announce-header h1,
.usta-tally-competition-winners .usta-tally-winners-header h1 { margin:0; font-size:1.5rem; color:#1e293b; }
.usta-tally-competition-announcement .usta-tally-announce-header a,
.usta-tally-competition-winners .usta-tally-winners-header a { color:#059669; text-decoration:none; font-size:0.875rem; }
.usta-tally-competition-announcement .usta-tally-announce-header a:hover,
.usta-tally-competition-winners .usta-tally-winners-header a:hover { text-decoration:underline; }

/* Questions page - real-time layout (form left, list right) */
.usta-tally-competition-questions .section-title { font-size:1.25rem; font-weight:700; color:#0f172a; margin:0 0 16px; }
.usta-questions-layout {
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 24px;
	align-items: start;
}
.usta-questions-form-col {
	position: sticky;
	top: 84px;
}
.usta-questions-list-col {
	min-width: 0;
}
.usta-questions-live-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.usta-questions-live-header h3 {
	font-size: 16px;
	font-weight: 600;
	color: var(--usta-text);
	margin: 0;
}
.usta-questions-live-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--usta-text-light);
}
.usta-questions-live-indicator::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
	animation: usta-pulse 2s infinite;
}
@keyframes usta-pulse {
	0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
	70% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
	100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
@media (max-width: 900px) {
	.usta-questions-layout {
		grid-template-columns: 1fr;
	}
	.usta-questions-form-col {
		position: static;
		order: -1;
	}
}

/* Question form */
.usta-tally-question-form {
	background: var(--usta-card-bg);
	border: 1px solid var(--usta-border, #e2e8f0);
	border-radius: var(--usta-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	padding: 24px;
	max-width: 560px;
}
.usta-tally-question-form h3 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
}
.usta-tally-question-form p {
	font-size: 12px;
	color: var(--usta-text-light, #64748b);
	margin: 0 0 16px;
}
.usta-tally-question-form select,
.usta-tally-question-form input[type="text"],
.usta-tally-question-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--usta-border, #e2e8f0);
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 10px;
	background: var(--usta-bg, #f8fafc);
	color: var(--usta-text, #1e293b);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
	box-sizing: border-box;
}
.usta-tally-question-form select:focus,
.usta-tally-question-form input[type="text"]:focus,
.usta-tally-question-form textarea:focus {
	border-color: var(--usta-primary, #059669);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.usta-tally-question-form textarea {
	min-height: 80px;
	resize: vertical;
}
.usta-tally-questions-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 700px;
}
.usta-tally-questions-empty {
	color: var(--usta-text-light, #64748b);
	font-size: 14px;
}
.usta-tally-question-item {
	padding: 16px;
	background: var(--usta-card-bg);
	border-radius: var(--usta-radius);
	border: 1px solid var(--usta-border, #e2e8f0);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.usta-tally-question-meta {
	font-size: 12px;
	color: var(--usta-text-light, #64748b);
	margin-bottom: 4px;
}
.usta-tally-question-text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--usta-text, #334155);
}
.usta-tally-qf-alert {
	display: none;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 12px;
	font-size: 13px;
}
.usta-tally-qf-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}
.usta-tally-qf-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	color: #dc2626;
}

/* Timer fullscreen */
body.usta-tally-timer-fullscreen {
	margin: 0;
	background: #0f172a;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
body.usta-tally-timer-fullscreen .usta-timer-display {
	transform: scale(1.5);
	margin: 40px;
}
body.usta-tally-timer-fullscreen .usta-timer-controls {
	max-width: 500px;
}

/* Login Page - container removed per request, card now centered in page flow */
.usta-login-card {
	background: var(--usta-card-bg);
	border-radius: var(--usta-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	padding: 48px 40px;
	width: 100%;
	max-width: 420px;
	margin: 24px auto;
	animation: usta-fadeIn 0.3s ease;
}

.usta-login-header {
	text-align: center;
	margin-bottom: 32px;
}

.usta-login-header h1 {
	font-size: 32px;
	font-weight: 800;
	background: linear-gradient(135deg, #059669, #047857);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 4px;
}

.usta-login-header p {
	color: var(--usta-text-light);
	font-size: 15px;
}

.usta-login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.usta-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.usta-field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--usta-text);
}

.usta-field input[type="text"],
.usta-field input[type="email"],
.usta-field input[type="password"],
.usta-field input[type="number"] {
	padding: 12px 16px;
	border: 2px solid var(--usta-border);
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s;
	outline: none;
	background: var(--usta-bg);
}

.usta-field input:focus {
	border-color: var(--usta-primary);
	background: white;
}

.usta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	gap: 8px;
}

.usta-btn-primary {
	background: var(--usta-primary);
	color: white;
}

.usta-btn-primary:hover {
	background: var(--usta-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.usta-btn-secondary {
	background: var(--usta-secondary);
	color: white;
}

.usta-btn-secondary:hover {
	background: #475569;
}

.usta-btn-outline {
	background: transparent;
	border: 2px solid var(--usta-border);
	color: var(--usta-text);
}

.usta-btn-outline:hover {
	border-color: var(--usta-primary);
	color: var(--usta-primary);
}

.usta-btn-block {
	width: 100%;
}

.usta-btn-danger {
	background: var(--usta-danger);
	color: white;
}

.usta-btn-sm {
	padding: 8px 16px;
	font-size: 13px;
}

/* Alerts */
.usta-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.usta-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--usta-danger);
}

.usta-alert-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #16a34a;
}

/* Dashboard */
.usta-dashboard {
	padding: 24px;
}

.usta-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 16px;
}

.usta-dashboard-header h1 {
	font-size: 28px;
	font-weight: 800;
}

.usta-judge-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.usta-judge-info span {
	color: var(--usta-text-light);
}

/* Competition Selector */
.usta-comp-selector {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: white;
	border-radius: var(--usta-radius);
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.usta-comp-selector label {
	font-weight: 600;
	font-size: 14px;
	color: var(--usta-text-light);
	white-space: nowrap;
}
.usta-comp-selector select {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--usta-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--usta-bg);
	color: var(--usta-text);
	cursor: pointer;
	outline: none;
	max-width: 360px;
}
.usta-comp-selector select:focus {
	border-color: var(--usta-primary);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Tabs */
.usta-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 24px;
	background: white;
	border-radius: var(--usta-radius);
	padding: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.usta-tab {
	flex: 1;
	padding: 12px 24px;
	border: none;
	background: transparent;
	color: var(--usta-text-light);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s;
}

.usta-tab.active {
	background: var(--usta-primary);
	color: white;
}

.usta-tab:hover:not(.active) {
	background: var(--usta-bg);
}

.usta-tab-content {
	display: none;
}

.usta-tab-content.active {
	display: block;
	animation: usta-fadeIn 0.3s ease;
}

/* Category Section */
.usta-category {
	margin-bottom: 32px;
}

.usta-category h2 {
	font-size: 20px;
	font-weight: 700;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--usta-border);
	margin-bottom: 16px;
	color: var(--usta-primary);
}

/* Team Card */
.usta-team-card {
	background: white;
	border-radius: var(--usta-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	padding: 24px;
	margin-bottom: 16px;
	transition: all 0.2s;
	border: 1px solid var(--usta-border);
}

.usta-team-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.usta-team-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.usta-team-order {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--usta-primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.usta-team-logo {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--usta-bg);
}

.usta-team-info {
	flex: 1;
	min-width: 0;
}

.usta-team-school {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--usta-primary);
	margin-bottom: 2px;
}

.usta-team-info h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 4px;
}

.usta-team-info p {
	color: var(--usta-text-light);
	font-size: 14px;
	line-height: 1.5;
}

/* Criteria Groups */
.usta-criteria-group {
	margin-bottom: 16px;
}

.usta-criteria-group:last-child {
	margin-bottom: 0;
}

.usta-criteria-group-header {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px dashed var(--usta-border);
}

.usta-criteria-group-header h4 {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--usta-primary);
}

.usta-criteria-group-notes {
	font-style: italic;
	color: #64748b;
	font-size: 0.85em;
	margin: 4px 0 0;
}

.usta-team-comment {
	width: 100%;
	margin-top: 8px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	padding: 6px 8px;
	font-size: 0.85em;
	font-family: inherit;
	resize: vertical;
	box-sizing: border-box;
}

.ms-comment {
	font-size: 0.85em;
	color: #475569;
	font-style: italic;
	padding: 4px 0 4px 16px;
}

.usta-criterion-header {
	margin-bottom: 6px;
	padding: 4px 0;
}

.usta-criterion-header strong {
	font-size: 14px;
	color: var(--usta-text);
}

.usta-criterion-description {
	font-size: 0.82em;
	color: #94a3b8;
	font-style: italic;
	margin: 2px 0 4px;
	line-height: 1.3;
	text-align: left;
}

.usta-cs-row {
	margin: 2px 0;
	line-height: 1.4;
}

.usta-cs-comment {
	display: block;
	font-size: 0.85em;
	color: #475569;
	font-style: italic;
	padding-left: 8px;
}

.usta-criteria-group-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--usta-primary);
	margin-top: 4px;
	margin-bottom: 2px;
}

/* Scores */
.usta-scores {
	display: grid;
	gap: 12px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--usta-border);
}

.usta-score-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.usta-score-label-wrap {
	flex: 1;
	min-width: 0;
}

.usta-score-row label {
	font-size: 14px;
	font-weight: 500;
	color: var(--usta-text);
}
.usta-score-row label .usta-max {
	font-size: 12px;
	font-weight: 400;
	color: #64748b;
	margin-left: 4px;
}

.usta-score-row input[type="number"] {
	width: 90px;
	padding: 8px 12px;
	border: 2px solid var(--usta-border);
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	outline: none;
	transition: border-color 0.2s;
}

.usta-score-row input[type="number"]:focus {
	border-color: var(--usta-primary);
}
.usta-score-row input[type="number"].usta-score-out-of-range {
	border-color: #dc2626;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.usta-score-row input[type="number"]::-webkit-inner-spin-button,
.usta-score-row input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.usta-score-row input[type="number"] {
	-moz-appearance: textfield;
}

.usta-score-control {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 220px;
}
.usta-score-range {
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	outline: none;
	cursor: pointer;
}
.usta-score-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--usta-primary, #0ea5e9);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	cursor: pointer;
	transition: transform 0.15s;
}
.usta-score-range::-webkit-slider-thumb:hover {
	transform: scale(1.1);
}
.usta-score-range::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--usta-primary, #0ea5e9);
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	cursor: pointer;
}
.usta-score-number-input {
	width: 72px;
	padding: 8px 8px;
	border: 2px solid var(--usta-border);
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	outline: none;
	transition: border-color 0.2s;
}
.usta-score-number-input:focus {
	border-color: var(--usta-primary);
}
.usta-score-number-input.usta-score-out-of-range {
	border-color: #dc2626;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}
.usta-score-number-input::-webkit-inner-spin-button,
.usta-score-number-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.usta-score-number-input {
	-moz-appearance: textfield;
}
.usta-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.usta-next-team-btn {
	background: #0f172a;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}
.usta-next-team-btn:hover {
	background: #1e293b;
}

.usta-yesno-wrap .usta-yesno-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 36px;
	padding: 0;
	border: 2px solid var(--usta-border);
	border-radius: 6px;
	background: #fff;
	color: var(--usta-text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}
.usta-yesno-wrap .usta-yesno-btn:hover {
	border-color: var(--usta-primary);
}
.usta-yesno-wrap .usta-yesno-btn.active {
	border-color: var(--usta-primary);
	background: var(--usta-primary);
	color: #fff;
}

.usta-total-score {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	margin-top: 12px;
	border-top: 2px solid var(--usta-primary);
	font-weight: 700;
	font-size: 16px;
}

.usta-total-score span:last-child {
	color: var(--usta-primary);
	font-size: 20px;
}

.usta-team-actions {
	margin-top: 16px;
	display: flex;
	justify-content: flex-end;
}

/* Modal */
.usta-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.usta-modal.active {
	display: flex !important;
}

.usta-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.usta-modal-content {
	position: relative;
	background: white;
	border-radius: var(--usta-radius);
	padding: 32px;
	max-width: 480px;
	width: 100%;
	margin: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	animation: usta-fadeIn 0.2s ease;
}

.usta-modal-content h2 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
}

.usta-modal-content p {
	color: var(--usta-text-light);
	margin-bottom: 20px;
}

.usta-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

#usta-modal-score-summary {
	background: var(--usta-bg);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

#usta-modal-score-summary .ms-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 14px;
}

#usta-modal-score-summary .ms-row.ms-total {
	font-weight: 700;
	border-top: 1px solid var(--usta-border);
	padding-top: 8px;
	margin-top: 8px;
}

/* History / Juryd team card */
.usta-judged-card {
	background: white;
	border-radius: var(--usta-radius);
	padding: 20px;
	margin-bottom: 12px;
	border: 1px solid var(--usta-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.usta-judged-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.usta-judged-info h4 {
	font-size: 16px;
	font-weight: 600;
}

.usta-judged-info .usta-criteria-breakdown {
	font-size: 13px;
	color: var(--usta-text-light);
	margin-top: 4px;
}

.usta-judged-total {
	font-size: 24px;
	font-weight: 800;
	color: var(--usta-success);
}

/* Results Page */
.usta-results {
	padding: 24px;
}

.usta-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.usta-results-header h1 {
	font-size: 32px;
	font-weight: 800;
}

.usta-results-category {
	margin-bottom: 48px;
}

.usta-results-category h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--usta-primary);
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--usta-border);
}

.usta-chart-wrapper {
	background: white;
	border-radius: var(--usta-radius);
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--usta-border);
	margin-bottom: 24px;
}

.usta-podium {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 32px;
	padding: 24px;
}

.usta-podium-item {
	text-align: center;
	padding: 20px;
	border-radius: var(--usta-radius);
	min-width: 160px;
}

.usta-podium-item.usta-gold {
	order: 2;
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	color: white;
	transform: scale(1.1);
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.usta-podium-item.usta-silver {
	order: 1;
	background: linear-gradient(135deg, #e2e8f0, #94a3b8);
	color: white;
}

.usta-podium-item.usta-bronze {
	order: 3;
	background: linear-gradient(135deg, #fed7aa, #d97706);
	color: white;
}

.usta-podium-rank {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 4px;
}

.usta-podium-name {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}

.usta-podium-score {
	font-size: 20px;
	font-weight: 700;
}

/* Notification */
.usta-notification {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(-80px);
	background: var(--usta-primary);
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
	z-index: 10000;
	transition: transform 0.3s ease;
	pointer-events: none;
}

.usta-notification.usta-notification-show {
	transform: translateX(-50%) translateY(0);
}

/* Loading */
.usta-loading {
	text-align: center;
	padding: 48px;
	color: var(--usta-text-light);
	font-size: 16px;
}

.usta-loading::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 8px;
	border: 2px solid var(--usta-border);
	border-top-color: var(--usta-primary);
	border-radius: 50%;
	animation: usta-spin 0.6s linear infinite;
	vertical-align: middle;
}

/* Error */
.usta-error {
	text-align: center;
	padding: 48px;
	color: var(--usta-danger);
	font-size: 16px;
}

/* Animations */
@keyframes usta-fadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes usta-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.usta-dashboard-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.usta-team-header {
		flex-wrap: wrap;
	}

	.usta-team-logo {
		width: 40px;
		height: 40px;
	}

	.usta-score-row {
		flex-wrap: wrap;
	}

	.usta-score-row input[type="number"] {
		width: 70px;
	}

	.usta-podium {
		flex-direction: column;
		align-items: center;
	}

	.usta-podium-item.usta-gold {
		transform: none;
	}

	.usta-judged-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.usta-login-card {
		padding: 32px 24px;
	}
}

/* Hall of Fame */
.usta-hall-of-fame {
	padding: 24px;
}

.usta-hof-header {
	text-align: center;
	margin-bottom: 40px;
}

.usta-hof-header h1 {
	font-size: 36px;
	font-weight: 800;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 8px;
}

.usta-hof-subtitle {
	color: var(--usta-text-light);
	font-size: 16px;
}

.usta-hof-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
	padding: 16px;
	background: white;
	border-radius: var(--usta-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--usta-border);
}

.usta-hof-controls label {
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

.usta-hof-controls select {
	padding: 8px 12px;
	border: 2px solid var(--usta-border);
	border-radius: 8px;
	font-size: 14px;
	flex: 1;
	outline: none;
	background: white;
}

.usta-hof-controls select:focus {
	border-color: var(--usta-primary);
}

.usta-hof-competition {
	margin-bottom: 48px;
}

.usta-hof-competition h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--usta-primary);
	padding-bottom: 12px;
	border-bottom: 3px solid var(--usta-primary);
	margin-bottom: 24px;
}

.usta-hof-team {
	background: white;
	border-radius: var(--usta-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--usta-border);
	padding: 24px;
	margin-bottom: 20px;
}

.usta-hof-team-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--usta-border);
}

.usta-hof-team-logo {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
}

.usta-hof-team-info h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
}

.usta-hof-organisation {
	color: var(--usta-text-light);
	font-size: 14px;
}

.usta-hof-members {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.usta-hof-member {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--usta-bg);
	border-radius: 8px;
	transition: box-shadow 0.2s;
}

.usta-hof-member:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.usta-hof-member-photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.usta-hof-member-placeholder {
	background: linear-gradient(
		135deg,
		var(--usta-primary),
		var(--usta-primary-dark)
	);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
}

.usta-hof-member-info h4 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
}

.usta-hof-member-role {
	font-size: 12px;
	color: var(--usta-text-light);
}

.usta-hof-empty {
	text-align: center;
	padding: 64px 24px;
	color: var(--usta-text-light);
	font-size: 16px;
}

/* Judge Progress */
.usta-progress {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px;
}

.usta-progress-header {
	text-align: center;
	margin-bottom: 40px;
}

.usta-progress-header h1 {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 4px;
}

.usta-progress-subtitle {
	color: var(--usta-text-light);
	font-size: 15px;
	margin-bottom: 24px;
}

.usta-progress-summary {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	background: var(--usta-card-bg);
	border: 1px solid var(--usta-border);
	border-radius: 12px;
	padding: 16px 28px;
}

.usta-progress-count {
	font-size: 36px;
	font-weight: 800;
	color: var(--usta-primary);
	line-height: 1;
}

.usta-progress-label {
	font-size: 14px;
	color: var(--usta-text-light);
}

.usta-progress-teams {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.usta-progress-team {
	background: var(--usta-card-bg);
	border: 1px solid var(--usta-border);
	border-radius: var(--usta-radius);
	padding: 20px 24px;
	transition: box-shadow 0.2s;
}

.usta-progress-team:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.usta-progress-team-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.usta-progress-team-order {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--usta-primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	flex-shrink: 0;
}

.usta-progress-team-logo {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--usta-bg);
}

.usta-progress-team-logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	color: var(--usta-text-light);
}

.usta-progress-team-info {
	flex: 1;
	min-width: 0;
}

.usta-progress-team-info h3 {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 2px;
}

.usta-progress-organisation {
	font-size: 13px;
	color: var(--usta-text-light);
}

.usta-progress-team-status {
	display: flex;
	align-items: baseline;
	gap: 2px;
	flex-shrink: 0;
}

.usta-progress-number {
	font-size: 24px;
	font-weight: 800;
	color: var(--usta-primary);
	line-height: 1;
}

.usta-progress-of {
	font-size: 14px;
	color: var(--usta-text-light);
}

.usta-progress-bar-track {
	height: 8px;
	background: var(--usta-bg);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 16px;
}

.usta-progress-bar-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.5s ease;
	min-width: 0;
}

.usta-bar-empty {
	background: var(--usta-border);
}

.usta-bar-partial {
	background: var(--usta-primary);
}

.usta-bar-complete {
	background: var(--usta-success);
}

.usta-progress-members {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.usta-progress-member {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--usta-bg);
	border-radius: 8px;
	font-size: 13px;
}

.usta-progress-member-photo {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.usta-progress-member-placeholder {
	background: var(--usta-primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

.usta-progress-member-name {
	font-weight: 600;
	color: var(--usta-text);
}

.usta-progress-member-role {
	color: var(--usta-text-light);
	font-size: 12px;
}

.usta-progress-empty {
	text-align: center;
	padding: 64px 24px;
	color: var(--usta-text-light);
	font-size: 16px;
}

@media (max-width: 480px) {
	.usta-tabs {
		flex-direction: column;
	}

	.usta-modal-content {
		padding: 24px;
		margin: 16px;
	}

	.usta-hof-members {
		grid-template-columns: 1fr;
	}

	.usta-hof-controls {
		flex-direction: column;
		align-items: stretch;
	}
}

/* Block Wrapper (applies block supports and custom CSS properties) */
.usta-block-wrapper {
	--usta-accent: #059669;
	--usta-bar-color: #059669;
	--usta-card-bg: #ffffff;
}

/* Plugin Page Wrapper (replaces theme Tailwind classes) */
.usta-page-content {
	min-height: 100vh;
	background: var(--usta-bg);
}

.usta-page-main {
	padding: 32px 24px;
}

/* Site Header (theme-agnostic — rendered by plugin templates) */
.usta-site-header {
	background: white;
	border-bottom: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.usta-site-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.usta-site-logo {
	font-size: 22px;
	font-weight: 800;
	background: linear-gradient(135deg, #059669, #047857);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-decoration: none;
}

.usta-site-logo:hover {
	opacity: 0.9;
}

.usta-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.usta-header-welcome {
	font-size: 14px;
	color: #64748b;
}

.usta-header-logout {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
}

.usta-header-logout:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

/* Hide site header on login page */
.usta-login-page .usta-site-header {
	display: none;
}

/* Focus styles */
input:focus-visible,
button:focus-visible {
	outline: 2px solid #059669;
	outline-offset: 2px;
}

/* Login footer links */
.usta-login-footer {
	text-align: center;
	margin-top: 1.5rem;
	font-size: 0.875rem;
	color: var(--usta-text-light);
}
.usta-login-footer a {
	color: var(--usta-primary);
	text-decoration: none;
	font-weight: 600;
}
.usta-login-footer a:hover {
	color: var(--usta-primary-dark);
	text-decoration: underline;
}
.usta-login-sep {
	margin: 0 0.5rem;
	color: var(--usta-border);
}

/* Auth alert messages */
.usta-alert {
	padding: 0.85rem 1rem;
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
}
.usta-alert-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.usta-alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
.usta-alert a {
	font-weight: 700;
}
.usta-alert-success a {
	color: #047857;
}
.usta-alert-error a {
	color: #b91c1c;
}

/* Voting */
.usta-voting {
	padding: 24px;
}
.usta-voting-header {
	margin-bottom: 24px;
}
.usta-voting-header h1 {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--usta-primary);
	margin: 0 0 4px;
}
.usta-voting-subtitle {
	color: var(--usta-text-light);
	font-size: 0.9rem;
	margin: 0;
}
.usta-voting-login-prompt {
	text-align: center;
	padding: 48px 24px;
	background: var(--usta-card-bg);
	border-radius: var(--usta-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.usta-voting-login-prompt p {
	margin-bottom: 20px;
	color: var(--usta-text-light);
}
.usta-voting-closed {
	text-align: center;
	padding: 48px 24px;
	background: var(--usta-card-bg);
	border-radius: var(--usta-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	color: var(--usta-text-light);
}
.usta-voting-teams {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.usta-voting-team {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: var(--usta-card-bg);
	border-radius: var(--usta-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	border: 2px solid transparent;
	transition: border-color 0.2s;
}
.usta-voting[data-target="member"] .usta-voting-team {
	flex-direction: column;
	align-items: stretch;
}
.usta-voting[data-target="member"] .usta-voting-team-header {
	width: 100%;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-bottom: 1px solid var(--usta-border);
	padding-bottom: 12px;
	margin-bottom: 4px;
}
.usta-voting-team:hover {
	border-color: var(--usta-border);
}
.usta-voting-team-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}
.usta-voting-team-logo {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}
.usta-voting-team-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--usta-text);
	margin: 0;
}
.usta-voting-team-desc {
	font-size: 0.85rem;
	color: var(--usta-text-light);
	margin: 2px 0 0;
}
.usta-vote-btn {
	padding: 8px 24px;
	border: 2px solid var(--usta-primary);
	background: var(--usta-card-bg);
	color: var(--usta-primary);
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s;
	flex-shrink: 0;
}
.usta-vote-btn:hover {
	background: var(--usta-primary);
	color: #fff;
}
.usta-vote-btn.usta-voted {
	background: var(--usta-primary);
	color: #fff;
	border-color: var(--usta-primary);
	cursor: default;
}
.usta-vote-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.usta-voting-message {
	margin-top: 16px;
}
.usta-voting-results {
	margin-top: 30px;
}
.usta-voting-results h2 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--usta-text);
	margin: 0 0 12px;
}
.usta-vote-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--usta-card-bg);
	border-radius: var(--usta-radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.usta-vote-table th {
	background: #f1f5f9;
	padding: 12px 16px;
	text-align: left;
	font-size: 0.85rem;
	font-weight: 600;
	color: #475569;
}
.usta-vote-table td {
	padding: 12px 16px;
	border-top: 1px solid #f1f5f9;
	font-size: 0.9rem;
}
.usta-vote-total {
	margin-top: 12px;
	font-size: 0.85rem;
	color: var(--usta-text-light);
	text-align: center;
}
.usta-vote-tally {
	font-size: 0.85rem;
	color: var(--usta-text-light);
}

.usta-judge-comments {
}
.usta-judge-comments-filters {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding: 20px;
	background: var(--usta-card-bg);
	border-radius: var(--usta-radius);
	border: 1px solid var(--usta-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.usta-judge-comments-filters label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--usta-text, #1e293b);
}
.usta-judge-comments-filters select {
	padding: 8px 12px;
	border: 1px solid var(--usta-border, #cbd5e1);
	border-radius: 8px;
	font-size: 14px;
	min-width: 200px;
	background: var(--usta-bg, #f8fafc);
	color: var(--usta-text, #1e293b);
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.usta-judge-comments-filters select:focus {
	border-color: var(--usta-primary, #059669);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.usta-judge-comments-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.usta-judge-comment-item {
	padding: 16px;
	background: var(--usta-card-bg);
	border-radius: var(--usta-radius);
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	border: 1px solid #e2e8f0;
}
.usta-judge-comment-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 8px;
	font-size: 0.85rem;
}
.usta-judge-comment-team {
	font-weight: 700;
	color: var(--usta-primary);
}
.usta-judge-comment-author {
	color: #64748b;
}
.usta-judge-comment-text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #334155;
}

.usta-results-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--usta-border);
	margin-bottom: 24px;
}
.usta-results-table th {
	background: var(--usta-primary, #059669);
	color: white;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 12px 16px;
	text-align: left;
}
.usta-results-table th:first-child { width: 48px; text-align: center; }
.usta-results-table th:nth-child(3) { text-align: right; }
.usta-results-table th:nth-child(4) { text-align: center; }
.usta-results-table td {
	padding: 10px 16px;
	font-size: 14px;
	border-bottom: 1px solid var(--usta-border, #e2e8f0);
}
.usta-results-table tr:last-child td { border-bottom: none; }
.usta-table-rank { text-align: center; font-weight: 700; color: #64748b; }
.usta-table-name { font-weight: 500; color: #1e293b; }
.usta-table-school { font-size: 12px; color: #94a3b8; font-weight: 400; }
.usta-table-score { text-align: right; font-weight: 700; color: var(--usta-primary, #059669); }
.usta-table-judges { text-align: center; font-size: 13px; color: var(--usta-text-light, #64748b); white-space: nowrap; }
.usta-table-top-1 td { background: rgba(251, 191, 36, 0.08); }
.usta-table-top-2 td { background: rgba(148, 163, 184, 0.08); }
.usta-table-top-3 td { background: rgba(217, 119, 6, 0.08); }
.usta-table-top-1 .usta-table-score { color: #f59e0b; }
.usta-table-top-2 .usta-table-score { color: #64748b; }
.usta-table-top-3 .usta-table-score { color: #d97706; }

/* Leaders */
.usta-leaders-wrap { margin: 16px 0; }
.usta-leaders-filter { margin-bottom: 16px; }
.usta-leaders-filter select {
	padding: 8px 12px;
	border: 1px solid var(--usta-border, #e2e8f0);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
}
.usta-leaders-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.usta-leader-card {
	background: var(--usta-card-bg, #fff);
	border: 1px solid var(--usta-border, #e2e8f0);
	border-radius: var(--usta-radius, 12px);
	padding: 20px;
	text-align: center;
	transition: box-shadow 0.2s;
}
.usta-leader-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.usta-leader-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--usta-primary, #059669);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	margin: 0 auto 12px;
}
.usta-leader-name { font-size: 16px; font-weight: 600; color: var(--usta-text, #1e293b); margin: 0 0 4px; }
.usta-leader-title { display: block; font-size: 13px; color: var(--usta-primary, #059669); font-weight: 500; margin-bottom: 4px; }
.usta-leader-org { display: block; font-size: 12px; color: var(--usta-text-light, #64748b); }
.usta-leader-team { display: block; font-size: 12px; color: var(--usta-text-light, #64748b); font-style: italic; margin-top: 2px; }
.usta-leaders-empty { text-align: center; color: var(--usta-text-light, #64748b); padding: 24px; }

/* Timer */
.usta-timer-wrap {
	max-width: 560px;
	margin: 24px auto;
	background: transparent;
}
.usta-timer-display {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-radius: 20px;
	padding: 40px 32px 32px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}
.usta-timer-display::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.usta-timer-time {
	font-size: 96px;
	font-weight: 300;
	font-variant-numeric: tabular-nums;
	color: #f1f5f9;
	line-height: 1;
	margin-bottom: 12px;
	letter-spacing: 4px;
	transition: color 0.3s;
	font-family: 'SF Mono', 'SFMono-Regular', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
	text-shadow: 0 0 40px rgba(5, 150, 105, 0.15);
}
.usta-timer-time.usta-timer-warning {
	color: #fbbf24;
	text-shadow: 0 0 40px rgba(251, 191, 36, 0.25);
}
.usta-timer-time.usta-timer-critical {
	color: #ef4444;
	text-shadow: 0 0 60px rgba(239, 68, 68, 0.35);
	animation: usta-timer-pulse 0.8s ease-in-out infinite;
}
@keyframes usta-timer-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}
.usta-timer-team {
	font-size: 18px;
	font-weight: 500;
	color: #94a3b8;
	margin-bottom: 2px;
	letter-spacing: 0.3px;
}
.usta-timer-team:empty { display: none; }
.usta-timer-status {
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.usta-timer-controls {
	background: var(--usta-card-bg, #fff);
	border: 1px solid var(--usta-border, #e2e8f0);
	border-radius: 16px;
	padding: 24px;
}
.usta-timer-controls-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.usta-timer-controls-row:last-child { margin-bottom: 0; }
.usta-timer-controls-row label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--usta-text, #1e293b);
}
.usta-timer-controls-row select,
.usta-timer-controls-row input[type="number"] {
	padding: 8px 12px;
	border: 1px solid var(--usta-border, #e2e8f0);
	border-radius: 10px;
	font-size: 14px;
	background: #fff;
	color: var(--usta-text, #1e293b);
	transition: border-color 0.15s;
}
.usta-timer-controls-row select:focus,
.usta-timer-controls-row input[type="number"]:focus {
	border-color: var(--usta-primary, #059669);
	outline: none;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.usta-timer-btn {
	padding: 10px 22px;
	border-radius: 10px;
	border: none;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
	letter-spacing: 0.3px;
}
.usta-timer-btn:hover { transform: translateY(-1px); }
.usta-timer-btn:active { transform: translateY(0); }
.usta-timer-btn-start { background: #059669; color: #fff; }
.usta-timer-btn-start:hover { background: #047857; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3); }
.usta-timer-btn-pause { background: #f59e0b; color: #fff; }
.usta-timer-btn-pause:hover { background: #d97706; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.usta-timer-btn-resume { background: #059669; color: #fff; }
.usta-timer-btn-resume:hover { background: #047857; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3); }
.usta-timer-btn-reset { background: #64748b; color: #fff; }
.usta-timer-btn-reset:hover { background: #475569; box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3); }
.usta-timer-btn-add { background: #3b82f6; color: #fff; }
.usta-timer-btn-add:hover { background: #2563eb; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

/* Intelligent Navigation */
.usta-tally-nav {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	position: relative;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	background: var(--usta-nav-bg);
	border: 1px solid var(--usta-nav-border);
	border-radius: 12px;
	box-shadow: var(--usta-nav-shadow);
	padding: 8px 12px;
}
.usta-tally-nav a:focus-visible,
.usta-tally-nav button:focus-visible {
	outline: 2px solid var(--usta-primary);
	outline-offset: 2px;
	border-radius: 4px;
}
.usta-tally-nav-skip {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	background: var(--usta-nav-bg);
	color: var(--usta-nav-text);
	padding: 8px 12px;
	border-radius: 6px;
	z-index: 10000;
}
.usta-tally-nav-skip:focus {
	left: 12px;
	top: 8px;
	width: auto;
	height: auto;
}
.usta-tally-nav-global {
	background: var(--usta-nav-bg);
	border: 1px solid var(--usta-nav-border);
	box-shadow: var(--usta-nav-shadow);
	padding: 8px 12px;
	margin-bottom: 24px;
	position: sticky;
	top: 0;
	z-index: 1000;
}
.usta-tally-nav-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-right: 12px;
	min-width: 0;
}
.usta-tally-nav-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}
.usta-tally-nav-brand-link:hover {
	text-decoration: none;
}
.usta-tally-nav-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 6px;
	flex-shrink: 0;
	background: #fff;
	padding: 2px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.usta-tally-nav-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--usta-nav-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 280px;
}
.usta-tally-footer {
	max-width: 1120px;
	margin: 40px auto 0;
	padding: 20px;
	text-align: center;
	font-size: 13px;
	color: var(--usta-text-light);
	border-top: 1px solid var(--usta-border);
}
.usta-tally-footer a {
	color: var(--usta-primary);
	text-decoration: none;
	font-weight: 600;
}
.usta-tally-footer a:hover {
	text-decoration: underline;
	color: var(--usta-primary-dark);
}
.usta-tally-nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
	flex: 1 1 auto;
}
.usta-tally-nav-item {
	margin: 0;
	flex: 0 1 auto;
}
.usta-tally-nav-item a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: var(--usta-nav-text-muted);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
	white-space: nowrap;
	box-sizing: border-box;
	border-radius: 8px;
}
.usta-tally-nav-item a:hover {
	color: var(--usta-nav-hover-text);
	background: var(--usta-nav-hover-bg);
}
.usta-tally-nav-item.active a {
	color: var(--usta-nav-active-text);
	background: var(--usta-nav-active-bg);
}
.usta-tally-nav-item.active a:hover {
	filter: brightness(0.95);
}
.usta-tally-nav-icon {
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}
.usta-tally-nav-divider {
	width: 1px;
	height: 24px;
	background: var(--usta-nav-border);
	margin: 0 6px;
	flex: 0 0 auto;
	list-style: none;
}
.usta-tally-nav-cta {
	margin-left: 6px;
}
.usta-tally-nav-cta a {
	min-height: 44px;
	padding: 0 16px;
	font-weight: 600;
	border-radius: 8px;
	border: 1.5px solid transparent;
}
.usta-tally-nav-cta-back a {
	color: var(--usta-nav-text-muted);
	border-color: transparent;
	background: transparent;
}
.usta-tally-nav-cta-back a:hover {
	color: var(--usta-nav-hover-text);
	background: var(--usta-nav-hover-bg);
}
.usta-tally-nav-cta-back a .usta-tally-nav-icon {
	color: var(--usta-nav-text-muted);
}
.usta-tally-nav-cta-logout a {
	color: #dc2626;
	border-color: rgba(220, 38, 38, 0.2);
	background: rgba(220, 38, 38, 0.08);
}
.usta-tally-nav-cta-logout a:hover {
	background: rgba(220, 38, 38, 0.15);
	color: #b91c1c;
}
@media (prefers-color-scheme: dark) {
	.usta-tally-nav-cta-logout a {
		color: #fca5a5;
		border-color: rgba(220, 38, 38, 0.3);
		background: rgba(220, 38, 38, 0.1);
	}
	.usta-tally-nav-cta-logout a:hover {
		background: rgba(220, 38, 38, 0.2);
		color: #fff;
	}
}
html[data-theme="dark"] .usta-tally-nav-cta-logout a {
	color: #fca5a5;
	border-color: rgba(220, 38, 38, 0.3);
	background: rgba(220, 38, 38, 0.1);
}
html[data-theme="dark"] .usta-tally-nav-cta-logout a:hover {
	background: rgba(220, 38, 38, 0.2);
	color: #fff;
}
.usta-tally-nav-cta-logout a .usta-tally-nav-icon {
	color: inherit;
}
.usta-tally-nav-toggle {
	display: none;
	background: var(--usta-nav-bg-mobile);
	border: 1px solid var(--usta-nav-border);
	border-radius: 8px;
	padding: 10px 14px;
	cursor: pointer;
	width: auto;
	text-align: center;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	color: var(--usta-nav-text);
}
.usta-tally-nav-toggle:hover {
	background: var(--usta-nav-hover-bg);
}
.usta-tally-nav-hamburger,
.usta-tally-nav-hamburger::before,
.usta-tally-nav-hamburger::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: all 0.2s;
}
.usta-tally-nav-hamburger {
	position: relative;
	color: var(--usta-nav-text);
}
.usta-tally-nav-hamburger::before,
.usta-tally-nav-hamburger::after {
	content: '';
	position: absolute;
	left: 0;
}
.usta-tally-nav-hamburger::before { top: -6px; }
.usta-tally-nav-hamburger::after { top: 6px; }
.usta-tally-nav-toggle[aria-expanded="true"] .usta-tally-nav-hamburger {
	background: transparent;
}
.usta-tally-nav-toggle[aria-expanded="true"] .usta-tally-nav-hamburger::before {
	top: 0;
	transform: rotate(45deg);
}
.usta-tally-nav-toggle[aria-expanded="true"] .usta-tally-nav-hamburger::after {
	top: 0;
	transform: rotate(-45deg);
}
.usta-tally-nav-vertical .usta-tally-nav-list {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 8px;
	border-radius: 12px;
	background: var(--usta-nav-bg);
	border: 1px solid var(--usta-nav-border);
}
.usta-tally-nav-vertical .usta-tally-nav-item a {
	justify-content: flex-start;
	border-radius: 6px;
}
.usta-tally-nav-vertical .usta-tally-nav-cta {
	margin-left: 0;
	margin-top: 8px;
}
.usta-tally-nav-vertical .usta-tally-nav-cta a {
	justify-content: center;
	min-height: 44px;
	border-radius: 8px;
	border: 1.5px solid transparent;
}
@media (max-width: 1024px) {
	.usta-tally-nav {
		flex-wrap: wrap;
	}
	.usta-tally-nav-brand {
		margin-right: auto;
		max-width: calc(100% - 60px);
	}
	.usta-tally-nav-toggle {
		display: flex;
		margin-left: auto;
		width: auto;
	}
	.usta-tally-nav-list {
		flex-basis: 100%;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 8px 0 0;
		padding: 8px;
		border-radius: 12px;
		background: var(--usta-nav-bg-mobile);
		border: 1px solid var(--usta-nav-border);
		box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s;
	}
	.usta-tally-nav-list[data-open="true"] {
		max-height: 80vh;
		overflow-y: auto;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	.usta-tally-nav-toggle[aria-expanded="true"] + .usta-tally-nav-list {
		display: flex;
		max-height: 80vh;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		overflow-y: auto;
	}
	.usta-tally-nav-list[hidden] {
		display: none !important;
	}
	.usta-tally-nav-item {
		width: 100%;
	}
	.usta-tally-nav-item a {
		width: 100%;
		justify-content: flex-start;
		min-height: 44px;
		border-radius: 8px;
	}
	.usta-tally-nav-divider {
		width: 100%;
		height: 1px;
		margin: 6px 0;
	}
	.usta-tally-nav-cta {
		margin-left: 0;
		margin-top: 6px;
	}
	.usta-tally-nav-cta a {
		width: 100%;
		justify-content: center;
	}
	body.usta-nav-open {
		overflow: hidden;
	}
}
@media (prefers-reduced-motion: reduce) {
	.usta-tally-nav-list,
	.usta-tally-nav-hamburger,
	.usta-tally-nav-hamburger::before,
	.usta-tally-nav-hamburger::after,
	.usta-tally-nav-item a {
		transition: none !important;
	}
}

/* Analytics Styles */
.usta-tally-frontend-analytics {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
}

.usta-tally-frontend-analytics h1 {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
}

.usta-tally-frontend-analytics .usta-tally-subtitle {
	color: #64748b;
	font-size: 14px;
	margin-bottom: 24px;
}

.analytics-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 16px;
}

.analytics-card h2 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
	color: #0f172a;
}

.analytics-stat {
	text-align: center;
	padding: 16px;
	background: #f8fafc;
	border-radius: 8px;
}

.analytics-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: #059669;
}

.analytics-stat-label {
	font-size: 12px;
	color: #64748b;
	margin-top: 4px;
}

.analytics-progress-bar {
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 8px;
}

.analytics-progress-fill {
	height: 100%;
	background: #059669;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.usta-tally-loading {
	text-align: center;
	padding: 40px;
	color: #64748b;
	font-size: 14px;
}

/* ---------- COMPETITION SELECT / COMPETITIONS LIST ---------- */
.usta-competition-select {
	padding: 32px 20px;
}

.usta-select-header {
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e8f0;
}

.usta-select-header h1 {
	margin: 0 0 4px;
	font-size: 1.75rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
}

.usta-select-subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: #64748b;
}

.usta-dash-admin {
	padding: 0 20px 32px;
}

.usta-dash-admin p {
	margin: 0;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.usta-empty-state {
	background: #fff;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
	color: #64748b;
	font-size: 0.95rem;
}

.usta-empty-state p {
	margin: 0 0 8px;
}

.usta-empty-state p:last-child {
	margin-bottom: 0;
}

.usta-empty-hint {
	font-size: 0.85rem;
	color: #94a3b8;
}

.usta-competition-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.usta-comp-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.usta-comp-card:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
	transform: translateY(-2px);
	border-color: #cbd5e1;
}

.usta-comp-thumb {
	position: relative;
	height: 140px;
	background: #f1f5f9;
	overflow: hidden;
}

.usta-comp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.usta-comp-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #059669;
	background: linear-gradient(135deg, #ecfdf5 0%, #f1f5f9 100%);
}

.usta-comp-placeholder .dashicons {
	font-size: 42px;
	width: 42px;
	height: 42px;
}

.usta-comp-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: #94a3b8;
}

.usta-badge-active { background: #059669; }
.usta-badge-completed { background: #6366f1; }
.usta-badge-draft { background: #94a3b8; }

.usta-comp-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 0;
}

.usta-comp-info h2 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.35;
}

.usta-comp-desc {
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.5;
}

.usta-comp-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 0.85rem;
	color: #64748b;
}

.usta-comp-meta .usta-comp-remaining {
	color: #d97706;
	font-weight: 600;
}

.usta-comp-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

.usta-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.usta-stat .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #059669;
}

.usta-comp-action {
	padding: 14px 18px 18px;
}

.usta-comp-action .usta-btn {
	width: 100%;
	text-align: center;
}

/* ---------- DASHBOARD ---------- */
.usta-dash-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.usta-dash-header .usta-btn-secondary {
	margin-top: 8px;
	flex-shrink: 0;
}

.usta-welcome {
	display: flex;
	align-items: center;
	gap: 16px;
}

.usta-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.usta-welcome-text h1 {
	margin: 0 0 2px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.usta-welcome-text .usta-select-subtitle {
	margin: 0 0 8px;
	font-size: 0.95rem;
	color: #64748b;
}

.usta-user-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.usta-role-chip {
	display: inline-flex;
	align-items: center;
	background: #ecfdf5;
	color: #047857;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.usta-dash-links {
	margin-top: 20px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.usta-comp-action-multi {
	display: flex;
	gap: 8px;
}

.usta-comp-action-multi .usta-btn {
	flex: 1;
	text-align: center;
}

/* ---------- MEMBER SCORING ---------- */
.usta-member-list {
	padding: 12px 0;
}

.usta-member-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	margin-bottom: 8px;
	background: var(--usta-card-bg);
	border: 1px solid var(--usta-border);
	border-radius: var(--usta-radius);
	transition: all .15s;
}

.usta-member-item:hover {
	border-color: var(--usta-primary);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.usta-member-header {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.usta-member-name {
	font-weight: 600;
	font-size: 14px;
	color: var(--usta-text);
	flex: 1;
}

.usta-member-role {
	font-size: 12px;
	color: #64748b;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 4px;
}

.usta-score-member-btn {
	flex-shrink: 0;
}

.usta-member-scoring-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid var(--usta-border);
	margin-bottom: 16px;
}

.usta-member-scoring-header h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--usta-text);
}

.usta-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid var(--usta-border);
	background: var(--usta-card-bg);
	color: var(--usta-text);
	transition: all .15s;
}

.usta-btn-sm:hover {
	background: #f1f5f9;
}

@media (max-width: 640px) {
	.usta-dash-header {
		flex-direction: column;
		align-items: stretch;
	}
	.usta-dash-header .usta-btn-secondary {
		width: 100%;
	}
	.usta-comp-action-multi {
		flex-direction: column;
	}
	.usta-welcome {
		flex-direction: column;
		align-items: flex-start;
	}
}
