/**
 * USALTG Portal — Complete design system.
 *
 * This stylesheet owns the full visual presentation of all portal pages.
 * The theme's CSS is still loaded via wp_head() but our rules have higher
 * specificity thanks to the body.usaltg-portal-page scope, and the
 * template_include override means no theme HTML exists in the body anyway.
 *
 * Architecture:
 *   1.  CSS Variables  (brand tokens, spacing, shadows)
 *   2.  Body reset     (neutralise any theme bleed-through)
 *   3.  Guest layout   (centered card, branded background)
 *   4.  Auth layout    (sidebar + main area shell)
 *   5.  Sidebar        (logo, nav, user footer)
 *   6.  Top bar
 *   7.  Content area
 *   8.  Notices / alerts
 *   9.  Form wrapper
 *  10.  Fields         (labels, inputs, selects, textareas)
 *  11.  Buttons
 *  12.  Login form extras
 *  13.  Change-password extras
 *  14.  Dashboard tiles (Phase 4 stubs)
 *  15.  Resource list  (Phase 4 stubs)
 *  16.  Utilities
 *  17.  Responsive / mobile
 *
 * Brand colours are defined as CSS custom properties at the :root level so
 * they can be overridden by a child theme or a future admin settings panel.
 *
 * @package USALTG\Portal
 */

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
	/* Sidebar palette */
	--usp-sidebar-bg:        #023B75;
	--usp-sidebar-border:    rgba(255,255,255,0.1);
	--usp-sidebar-active-bg: rgba(255,255,255,0.1);
	--usp-sidebar-hover-bg:  rgba(255,255,255,0.07);
	--usp-sidebar-text:      rgba(255,255,255,0.78);
	--usp-sidebar-text-muted:rgba(255,255,255,0.45);
	--usp-sidebar-active-txt:#ffffff;
	--usp-sidebar-width:     240px;

	/* Main palette — brand: #023B75 primary, #DD3333 accent/error */
	--usp-primary:           #023B75;
	--usp-primary-hover:     #012d5a;
	--usp-primary-light:     #e8eef7;
	--usp-accent:            #1a5fa8;
	--usp-accent-ring:       rgba(2,59,117,0.25);

	/* Semantic */
	--usp-success:           #2d8a5e;
	--usp-success-bg:        #e6f4ed;
	--usp-success-border:    #b3d9c7;
	--usp-error:             #DD3333;
	--usp-error-bg:          #fdeaea;
	--usp-error-border:      #f5c0c0;
	--usp-warning:           #c47a17;
	--usp-warning-bg:        #fbf0dc;
	--usp-warning-border:    #f0d099;
	--usp-info-bg:           #e8eef7;
	--usp-info-border:       #d4dfee;
	--usp-info-text:         #023B75;

	/* Surface & text */
	--usp-page-bg:           #f7f8fa;
	--usp-bg-alt:            #eef1f5;
	--usp-card:              #ffffff;
	--usp-border:            #e1e5eb;
	--usp-border-soft:       #eef0f4;
	--usp-border-focus:      #023B75;
	--usp-text:              #1a1d24;
	--usp-text-secondary:    #424954;
	--usp-text-muted:        #7a818d;
	--usp-placeholder:       #9aa0ab;

	/* Typography */
	--usp-font-heading:      'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--usp-font:              'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--usp-font-mono:         "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

	/* Shape */
	--usp-radius-sm:         4px;
	--usp-radius:            8px;
	--usp-radius-lg:         12px;
	--usp-radius-full:       9999px;

	/* Elevation */
	--usp-shadow-sm:         0 1px 2px rgba(0,0,0,0.05);
	--usp-shadow:            0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
	--usp-shadow-md:         0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
	--usp-shadow-lg:         0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
	--usp-shadow-xl:         0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);

	/* Transition */
	--usp-ease:              cubic-bezier(0.4, 0, 0.2, 1);
	--usp-duration:          150ms;

	/* Layout */
	--usp-topbar-h:          60px;
	--usp-content-max:       1280px;
}

/* ============================================================
   2. Body reset
   ============================================================ */
body.usaltg-portal-page {
	margin: 0;
	padding: 0;
	background: var(--usp-page-bg);
	font-family: var(--usp-font);
	font-size: 14px;
	line-height: 1.55;
	color: var(--usp-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-weight: 400;
}

body.usaltg-portal-page h1,
body.usaltg-portal-page h2,
body.usaltg-portal-page h3,
body.usaltg-portal-page h4,
body.usaltg-portal-page h5,
body.usaltg-portal-page h6 {
	font-family: var(--usp-font-heading);
	font-weight: 700;
	letter-spacing: -0.01em;
}

body.usaltg-portal-page *,
body.usaltg-portal-page *::before,
body.usaltg-portal-page *::after {
	box-sizing: border-box;
}

/* Ensure any lingering theme elements stay hidden */
body.usaltg-portal-page .site-header,
body.usaltg-portal-page .site-footer,
body.usaltg-portal-page .entry-header,
body.usaltg-portal-page .navigation,
body.usaltg-portal-page #wpadminbar { /* admin bar shown for admins only */ }

/* ============================================================
   3. Guest layout
   ============================================================ */
.usp-guest {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background: linear-gradient(145deg, #011d3b 0%, #023B75 40%, #023564 70%, #011d3b 100%);
	padding: 40px 20px;
}

/* Decorative floating circles */
.usp-guest__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.usp-guest__bg-circle {
	position: absolute;
	border-radius: 50%;
	opacity: 0.06;
	background: #1a5fa8;
}

.usp-guest__bg-circle--1 {
	width: 600px;
	height: 600px;
	top: -200px;
	right: -150px;
}

.usp-guest__bg-circle--2 {
	width: 400px;
	height: 400px;
	bottom: -100px;
	left: -100px;
	opacity: 0.04;
}

.usp-guest__bg-circle--3 {
	width: 200px;
	height: 200px;
	top: 50%;
	left: 40%;
	opacity: 0.03;
}

.usp-guest__body {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.usp-guest__body--wide {
	max-width: 550px;
}

/* Brand above the card */
.usp-guest__brand {
	margin-bottom: 28px;
	text-align: center;
}

.usp-guest__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.usp-guest__brand-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.usp-guest__brand-logo {
	display: block;
	height: 35px;
	width: auto;
	max-width: 260px;
	object-fit: contain;
}

.usp-guest__brand-text {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.usp-guest__brand-name {
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.3px;
}

.usp-guest__brand-sub {
	color: rgba(255,255,255,0.5);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-top: 2px;
}

/* The white card */
.usp-guest__card {
	width: 100%;
	background: var(--usp-card);
	border-radius: var(--usp-radius-lg);
	box-shadow: var(--usp-shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
	padding: 0 40px 20px;
	overflow: hidden;
}

/* Card header — brand-coloured banner containing the logo */
.usp-guest__card-header {
	padding: 28px 40px 24px;
	text-align: center;
	margin: 30px -40px 20px;
}

.usp-guest__card-logo-link {
	display: inline-block;
	text-decoration: none;
}

.usp-guest__card-logo {
	display: block;
	height: 50px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.usp-guest__card-portal-label {
	margin: 12px 0 0;
	font-size: 25px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.usp-guest__card-portal-word--primary {
	color: #DD3333;
	font-weight: 800;
}

.usp-guest__card-portal-word--accent {
	color: #023B75;
}

.usp-guest__footer {
	margin-top: 24px;
	font-size: 12px;
	color: rgba(255,255,255,0.3);
	text-align: center;
}

/* ---- 404 card ----------------------------------------------------------- */
.usp-404 {
	text-align: center;
	padding: 48px 40px 44px;
}

.usp-404__code {
	font-size: 80px;
	font-weight: 800;
	line-height: 1;
	color: var(--usp-primary);
	opacity: 0.12;
	letter-spacing: -4px;
	margin-bottom: 0px;
	font-family: 'Poppins', sans-serif;
}

.usp-404__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--usp-text);
	margin: 0 0 12px;
}

.usp-404__desc {
	font-size: 14px;
	color: var(--usp-text-muted);
	margin: 0 0 28px;
	line-height: 1.6;
}

.usp-404__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--usp-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 8px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s;
}

.usp-404__btn:hover {
	opacity: 0.88;
	color: #fff;
	background: #222;
}

.usp-404__btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ============================================================
   4. Auth layout — outer shell
   ============================================================ */
.usp-layout {
	display: flex;
	min-height: 100vh;
}

/* ============================================================
   5. Sidebar
   ============================================================ */
.usp-sidebar {
	width: var(--usp-sidebar-width);
	min-height: 100vh;
	background: var(--usp-sidebar-bg);
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	z-index: 100;
	/* Subtle right border */
	border-right: 1px solid var(--usp-sidebar-border);
}

/* Scrollbar styling for sidebar */
.usp-sidebar::-webkit-scrollbar { width: 4px; }
.usp-sidebar::-webkit-scrollbar-track { background: transparent; }
.usp-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* --- Logo / header --- */
.usp-sidebar__header {
	padding: 20px 20px 18px;
	border-bottom: 1px solid var(--usp-sidebar-border);
	flex-shrink: 0;
}

.usp-sidebar__logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.usp-sidebar__logo-img {
	display: block;
	width: 80%;;
	object-fit: contain;
}


/* --- Navigation --- */
.usp-sidebar__nav {
	flex: 1;
	padding: 12px 14px;
	overflow-y: auto;
}

.usp-sidebar__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.usp-sidebar__item {
	/* nothing — keep list flat */
}

.usp-sidebar__divider {
	height: 1px;
	background: var(--usp-sidebar-border);
	margin: 8px 6px;
}

.usp-sidebar__section-label {
	font-size: 10px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--usp-sidebar-text-muted);
	padding: 18px 14px 6px;
	list-style: none;
}

.usp-sidebar__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: var(--usp-radius-sm);
	text-decoration: none;
	color: var(--usp-sidebar-text);
	font-size: 13.5px;
	font-weight: 500;
	transition: background var(--usp-duration) var(--usp-ease),
	            color var(--usp-duration) var(--usp-ease);
	position: relative;
}
.usp-sidebar__link:focus,
a.usaltg-back-link:focus {
    outline: none;
}
.usp-sidebar__link:hover {
	background: var(--usp-sidebar-hover-bg);
	color: #ffffff;
}

.usp-sidebar__link--active {
	background: var(--usp-sidebar-active-bg) !important;
	color: var(--usp-sidebar-active-txt) !important;
	font-weight: 600;
}

.usp-sidebar__link--active::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 22px;
	background: var(--usp-error);
	border-radius: 0 2px 2px 0;
}

.usp-sidebar__link-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
}

.usp-sidebar__link--active .usp-sidebar__link-icon {
	opacity: 1;
}

.usp-sidebar__link-icon svg {
	width: 18px;
	height: 18px;
	overflow: visible !important;
}

.usp-sidebar__link-label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.usp-sidebar__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--usp-error);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

/* --- Settings group (collapsible toggle + submenu) --- */
.usp-sidebar__group-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 12px;
	background: none;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--usp-sidebar-text-muted);
	text-align: left;
	transition: color 0.15s, background 0.15s;
	margin-top: 2px;
}

.usp-sidebar__group-toggle:hover {
	color: #fff;
	background: var(--usp-sidebar-hover-bg);
}

.usp-sidebar__item--group.is-open .usp-sidebar__group-toggle {
	color: var(--usp-sidebar-text);
}

.usp-sidebar__group-toggle .usp-sidebar__link-icon {
	opacity: 0.55;
	flex-shrink: 0;
}

.usp-sidebar__item--group.is-open .usp-sidebar__group-toggle .usp-sidebar__link-icon {
	opacity: 1;
}

.usp-sidebar__group-chevron {
	display: flex;
	align-items: center;
	margin-left: auto;
	flex-shrink: 0;
	opacity: 0.55;
	transition: transform 0.22s ease;
}

.usp-sidebar__group-chevron svg {
	width: 14px;
	height: 14px;
}

.usp-sidebar__item--group.is-open .usp-sidebar__group-chevron {
	transform: rotate(180deg);
	opacity: 1;
}

.usp-sidebar__submenu {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.usp-sidebar__item--group.is-open .usp-sidebar__submenu {
	max-height: 200px;
}

.usp-sidebar__link--sub {
	padding-left: 42px;
	font-size: 13px;
}

/* --- User footer --- */
.usp-sidebar__footer {
	padding: 14px 16px;
	border-top: 1px solid var(--usp-sidebar-border);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.usp-sidebar__user {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.usp-sidebar__user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--usp-error);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	letter-spacing: 0.5px;
	font-family: var(--usp-font-heading);
}

.usp-sidebar__user-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.usp-sidebar__user-name {
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.usp-sidebar__user-role {
	color: var(--usp-sidebar-text-muted);
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: capitalize;
	margin-top: 1px;
}

.usp-sidebar__logout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: var(--usp-radius-sm);
	color: var(--usp-sidebar-text-muted);
	text-decoration: none;
	flex-shrink: 0;
	transition: background var(--usp-duration) var(--usp-ease),
	            color var(--usp-duration) var(--usp-ease);
}

.usp-sidebar__logout:hover {
	background: rgba(221,51,51,0.15);
	color: #f8a0a0;
}

.usp-sidebar__logout svg {
	width: 17px;
	height: 17px;
}

/* Mobile overlay */
.usp-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 99;
	backdrop-filter: blur(2px);
}

/* ============================================================
   6. Top bar
   ============================================================ */
.usp-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

.usp-topbar {
	height: var(--usp-topbar-h);
	background: var(--usp-card);
	border-bottom: 1px solid var(--usp-border);
	display: flex;
	align-items: center;
	box-shadow: none;
	padding: 0 24px;
	gap: 16px;
	position: sticky;
	top: 0;
	z-index: 50;
	flex-shrink: 0;
	/* Needed so the absolutely-positioned search centres within this bar */
	isolation: isolate;
}

.usp-topbar__toggle {
	display: none; /* Shown on mobile */
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	color: var(--usp-text-secondary);
	border-radius: var(--usp-radius-sm);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0;
}

.usp-topbar__toggle:hover { background: var(--usp-page-bg); }

.usp-topbar__toggle svg {
	width: 20px;
	height: 20px;
}

.usp-topbar__title {
	flex: 1;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.usp-topbar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.usp-topbar__user-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--usp-text-secondary);
}

.usp-topbar__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--usp-error);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.5px;
	font-family: var(--usp-font-heading);
}

.usp-topbar__logout-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: transparent;
	color: var(--usp-text-secondary);
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-sm);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all var(--usp-duration) var(--usp-ease);
}

.usp-topbar__logout-btn:hover {
	background: var(--usp-error-bg);
	border-color: var(--usp-error-border);
	color: var(--usp-error);
}

.usp-topbar__logout-btn svg {
	width: 15px;
	height: 15px;
}

/* Topbar search — absolutely centred so title and actions stay independent */
.usp-topbar__search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    width: 500px;
}

.usp-topbar__search-icon {
	position: absolute;
	right: 11px;
	width: 15px;
	height: 15px;
	color: var(--usp-text-muted);
	pointer-events: none;
	flex-shrink: 0;
}

.usp-topbar__search-input {
	width: 100%;
	padding: 10px 12px 10px 20px !important;
	background: var(--usp-page-bg);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius-full);
	font-family: var(--usp-font);
	font-size: 13.5px;
	color: var(--usp-text);
	outline: none;
	transition: border-color var(--usp-duration) var(--usp-ease),
	            box-shadow var(--usp-duration) var(--usp-ease),
	            background var(--usp-duration) var(--usp-ease);
	-webkit-appearance: none;
	appearance: none;
}

.usp-topbar__search-input::placeholder {
	color: var(--usp-placeholder);
}

.usp-topbar__search-input:focus {
	background: var(--usp-card);
    border-color: transparent;
    box-shadow: none;
    outline-color: transparent !important;
}

/* Remove browser native search clear button */
.usp-topbar__search-input::-webkit-search-cancel-button { display: none; }

/* ============================================================
   7. Content area
   ============================================================ */
.usp-content {
	flex: 1;
	overflow-y: auto;
	padding: 28px 36px 60px;
}

.usp-content-inner {
	max-width: var(--usp-content-max);
	margin: 0 auto;
}

/* Announcement / warning banner (force-change, expiry warning) */
.usp-banner {
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 500;
	flex-shrink: 0;
}

.usp-banner--warning {
	background: var(--usp-warning-bg);
	color: var(--usp-warning);
	border-bottom: 1px solid var(--usp-warning-border);
}

.usp-banner strong {
	margin-right: 4px;
}

/* ============================================================
   8. Notices / alerts
   ============================================================ */
.usaltg-portal .usaltg-notice,
.usp-guest__card .usaltg-notice {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 16px;
	border-radius: var(--usp-radius);
	border: 1px solid transparent;
	font-size: 14px;
	line-height: 1.55;
	margin-bottom: 20px;
}

.usaltg-notice-success {
	background: var(--usp-success-bg);
	border-color: var(--usp-success-border);
	color: var(--usp-success);
}

.usaltg-notice-error {
	background: var(--usp-error-bg);
	border-color: var(--usp-error-border);
	color: var(--usp-error);
}

.usaltg-notice-warning {
	background: var(--usp-warning-bg);
	border-color: var(--usp-warning-border);
	color: var(--usp-warning);
}

.usaltg-notice-info {
	background: var(--usp-info-bg);
	border-color: var(--usp-info-border);
	color: var(--usp-info-text);
}

.usaltg-notice strong {
	font-weight: 600;
}

.usaltg-notice ul {
	margin: 4px 0 0;
	padding-left: 18px;
}

.usaltg-notice ul li {
	margin-bottom: 2px;
}

/* ============================================================
   9. Form wrapper
   ============================================================ */

/* Guest card — form fills the card width, no extra wrapper needed */
.usp-guest__card .usaltg-portal {
	padding: 0;
	max-width: none;
}

/* In the auth content area, wrap forms in a card */
.usp-content .usaltg-portal {
	max-width: 100%;
}

/* Content heading */
.usp-content .usaltg-portal h2,
.usp-content .usaltg-portal .usaltg-form-heading {
	margin: 0 0 10px;
	font-size: 30px;
	font-weight: 700;
	color: var(--usp-text);
}

.usaltg-form {
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	padding: 28px 32px;
	box-shadow: var(--usp-shadow-sm);
}

/* Inside the guest card the form has no extra background/border */
.usp-guest__card .usaltg-form {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.usaltg-form-row {
	margin-bottom: 18px;
}

.usaltg-form-row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.usaltg-form-row--thirds {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 16px;
}

.usaltg-form-row--submit {
	margin-top: 8px;
	margin-bottom: 0;
}

.usaltg-request-back-to-login {
	margin: 16px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--usp-text-muted);
}

.usaltg-request-back-to-login a {
	color: #023B75;
	text-decoration: none;
	font-weight: 500;
}

.usaltg-request-back-to-login a:hover {
	text-decoration: underline;
}

/* ============================================================
   10. Fields
   ============================================================ */
.usaltg-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.usaltg-portal label {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
}

.usaltg-required {
	color: var(--usp-error);
}

.usaltg-portal input[type="text"],
.usaltg-portal input[type="email"],
.usaltg-portal input[type="tel"],
.usaltg-portal input[type="password"],
.usaltg-portal select,
.usaltg-portal textarea {
	width: 100%;
	padding: 9px 13px;
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius);
	font-family: var(--usp-font);
	font-size: 14.5px;
	color: var(--usp-text);
	line-height: 1.5;
	transition: border-color var(--usp-duration) var(--usp-ease),
	            box-shadow var(--usp-duration) var(--usp-ease);
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.usaltg-portal input::placeholder,
.usaltg-portal textarea::placeholder {
	color: var(--usp-placeholder);
}

.usaltg-portal textarea {
	resize: vertical;
	min-height: 100px;
}

.usaltg-portal select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%2364748b' d='M6 7L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	padding-right: 36px;
	cursor: pointer;
}

/* Error state */
.usaltg-field--error input,
.usaltg-field--error select,
.usaltg-field--error textarea {
	border-color: var(--usp-error);
	background: #fff5f5;
}

.usaltg-field--error input:focus,
.usaltg-field--error select:focus,
.usaltg-field--error textarea:focus {
	box-shadow: 0 0 0 3px rgba(221,51,51,0.18);
}

.usaltg-field-error {
	font-size: 12.5px;
	color: var(--usp-error);
	font-weight: 500;
	margin-top: 2px;
}

/* ============================================================
   11. Buttons
   ============================================================ */
.usaltg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 22px;
	border: 1.5px solid transparent;
	border-radius: var(--usp-radius);
	font-family: var(--usp-font);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--usp-duration) var(--usp-ease);
	white-space: nowrap;
	letter-spacing: 0.1px;
}

.usaltg-btn:focus-visible {
	outline: 3px solid var(--usp-accent-ring);
	outline-offset: 2px;
}

/* Primary */
.usaltg-btn-primary {
	background: #DD3333;
	border-color: #DD3333;
	color: #ffffff;
}

.usaltg-btn-primary:hover {
	background: var(--usp-primary-hover);
	border-color: var(--usp-primary-hover);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(2,59,117,0.3);
	transform: translateY(-1px);
}

.usaltg-btn-primary:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Secondary */
.usaltg-btn-secondary {
	background: transparent;
	border-color: var(--usp-border);
	color: var(--usp-text);
}

.usaltg-btn-secondary:hover {
	background: var(--usp-page-bg);
	border-color: var(--usp-text-muted);
}

/* Full-width */
.usaltg-btn-full {
	width: 100%;
	justify-content: center;
}

/* Loading / disabled */
.usaltg-btn[disabled],
.usaltg-btn.is-loading {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
	transform: none !important;
	box-shadow: none !important;
}

/* ============================================================
   12. Login form extras
   ============================================================ */
.usaltg-login-form,
.usaltg-change-password-form {
	/* No extra wrapper needed — guest card provides width */
}

/* Label + forgot-password on same row */
.usaltg-field-label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 5px;
}

.usaltg-field-label-row label {
	margin-bottom: 0;
}

.usaltg-forgot-link {
	font-size: 12.5px;
	color: var(--usp-accent);
	text-decoration: none;
	font-weight: 500;
}

.usaltg-forgot-link:hover {
	text-decoration: underline;
}

/* Password field with reveal button */
.usaltg-password-wrap {
	position: relative;
	display: flex;
}

.usaltg-password-wrap input {
	flex: 1;
	padding-right: 42px !important;
}

.usaltg-toggle-password {
	position: absolute;
	right: 1px;
	top: 1px;
	bottom: 1px;
	width: 40px;
	background: transparent;
	border: none;
	border-radius: 0 calc(var(--usp-radius) - 1px) calc(var(--usp-radius) - 1px) 0;
	cursor: pointer;
	color: var(--usp-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 15px;
	transition: color var(--usp-duration) var(--usp-ease);
}

.usaltg-toggle-password:hover { color: var(--usp-text); }
.usaltg-toggle-password[aria-pressed="true"] { color: var(--usp-accent); }
.usaltg-toggle-password:focus-visible {
	outline: 2px solid var(--usp-accent);
	outline-offset: -2px;
}

/* Remember-me checkbox */
.usaltg-form-row--checkbox {
	margin-bottom: 20px;
}

.usaltg-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--usp-text-secondary);
	cursor: pointer;
	user-select: none;
}

.usaltg-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--usp-primary);
	cursor: pointer;
	flex-shrink: 0;
}

/* "Don't have an account?" footer link */
.usaltg-form-footer {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--usp-border);
	text-align: center;
	font-size: 13.5px;
	color: var(--usp-text-muted);
}

.usaltg-form-footer a {
	color: var(--usp-accent);
	text-decoration: none;
	font-weight: 600;
}

.usaltg-form-footer a:hover {
	text-decoration: underline;
}

/* ============================================================
   13. Change-password form extras
   ============================================================ */
.usaltg-form-heading {
	font-size: 19px;
	font-weight: 700;
	color: var(--usp-text);
	margin: 0 0 22px;
}

.usaltg-form-intro {
	font-size: 14px;
	color: var(--usp-text-muted);
	margin: -14px 0 22px;
	line-height: 1.5;
}

.usaltg-field-hint {
	font-size: 12px;
	color: var(--usp-text-muted);
	margin-top: 4px;
	line-height: 1.5;
}

.usaltg-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--usp-text-muted);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	cursor: default;
	vertical-align: middle;
	margin-left: 5px;
}

.usaltg-tooltip::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: #1a1a1a;
	color: #fff;
	font-size: 11px;
	font-weight: 400;
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 4px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s ease;
	z-index: 100;
}

.usaltg-tooltip::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: #1a1a1a;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s ease;
	z-index: 100;
}

.usaltg-tooltip:hover::after,
.usaltg-tooltip:focus::after,
.usaltg-tooltip:hover::before,
.usaltg-tooltip:focus::before {
	opacity: 1;
}

/* Strength bar */
.usaltg-strength-bar {
	height: 3px;
	background: var(--usp-border);
	border-radius: 2px;
	margin-top: 8px;
	overflow: hidden;
}

.usaltg-strength-bar__fill {
	height: 100%;
	width: 0;
	border-radius: 2px;
	transition: width 0.3s var(--usp-ease), background 0.3s var(--usp-ease);
}

.usaltg-strength-bar__fill[data-strength="1"] { width: 25%; background: #ef4444; }
.usaltg-strength-bar__fill[data-strength="2"] { width: 50%; background: #f59e0b; }
.usaltg-strength-bar__fill[data-strength="3"] { width: 75%; background: #22c55e; }
.usaltg-strength-bar__fill[data-strength="4"] { width: 100%; background: #16a34a; }

/* ============================================================
   14. Dashboard
   ============================================================ */

/* Breadcrumb / back link */
.usaltg-dashboard__breadcrumb {
	margin-bottom: 24px;
	display: flex;
    gap: 8px;
}

.usaltg-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--usp-primary);
	text-decoration: none;
	transition: color 0.15s ease;
}

.usaltg-back-link:hover {
	color: var(--usp-primary-hover);
	text-decoration: underline;
}

.usaltg-back-link svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* Welcome banner */
.usaltg-dashboard__welcome {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--usp-border);
}

.usaltg-dashboard__heading {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
	line-height: 1.15;
}

.usaltg-dashboard__sub {
	margin: 0;
	font-size: 13px;
	color: var(--usp-text-muted);
	font-weight: 400;
}

.usaltg-dashboard__sub-new {
	color: var(--usp-error);
	font-weight: 600;
}

/* ============================================================
   Admin stats bar (visible to manage_options users only)
   ============================================================ */
.usaltg-stats-bar {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.usaltg-stats-bar__item {
	flex: 1 1 160px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 18px 20px;
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.usaltg-stats-bar__item--link:hover {
	border-color: var(--usp-primary);
	box-shadow: 0 2px 8px rgba(2, 59, 117, 0.12);
	text-decoration: none;
}

.usaltg-stats-bar__item--alert {
	border-color: var(--usp-accent);
}

.usaltg-stats-bar__item--alert .usaltg-stats-bar__icon svg {
	color: var(--usp-accent);
}

.usaltg-stats-bar__item--alert .usaltg-stats-bar__value {
	color: var(--usp-accent);
}

.usaltg-stats-bar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(2, 59, 117, 0.07);
	border-radius: 8px;
	flex-shrink: 0;
}

.usaltg-stats-bar__item--alert .usaltg-stats-bar__icon {
	background: rgba(221, 51, 51, 0.08);
}

.usaltg-stats-bar__icon svg {
	width: 18px;
	height: 18px;
	color: var(--usp-primary);
}

.usaltg-stats-bar__value {
	font-size: 1.75rem;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	line-height: 1;
	color: var(--usp-primary);
	letter-spacing: -0.02em;
}

.usaltg-stats-bar__label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--usp-text-secondary);
}

/* ============================================================
   Categories management view (admin only)
   ============================================================ */
.usaltg-cat-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 28px;
	align-items: start;
}

@media (max-width: 860px) {
	.usaltg-cat-layout {
		grid-template-columns: 1fr;
	}
}

/* Form panel */
.usaltg-cat-form-panel {
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: 10px;
	padding: 22px;
}

.usaltg-cat-form-panel__heading {
	margin: 0 0 18px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--usp-text-secondary);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--usp-border);
}

.usaltg-cat-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.usaltg-cat-form__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.usaltg-cat-form__field label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--usp-text);
}

.usaltg-cat-form__field label span {
	color: var(--usp-accent);
}

.usaltg-cat-form__field input[type="text"],
.usaltg-cat-form__field select,
.usaltg-cat-form__field textarea {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid var(--usp-border);
	border-radius: 6px;
	font-size: 0.875rem;
	background: var(--usp-bg);
	color: var(--usp-text);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.usaltg-cat-form__field input[type="text"]:focus,
.usaltg-cat-form__field select:focus,
.usaltg-cat-form__field textarea:focus {
	outline: none;
	border-color: var(--usp-primary);
	box-shadow: 0 0 0 3px rgba(2, 59, 117, 0.12);
}

.usaltg-cat-form__field textarea {
	resize: vertical;
	min-height: 72px;
}

.usaltg-cat-form__hint {
	font-size: 0.72rem;
	color: var(--usp-text-secondary);
}

.usaltg-cat-form__actions {
	display: flex;
	gap: 8px;
	padding-top: 4px;
}

/* List panel */
.usaltg-cat-list-panel {
	min-width: 0;
}

.usaltg-cat-table__slug code {
	font-size: 0.78rem;
	background: rgba(2, 59, 117, 0.06);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--usp-text-secondary);
}

.usaltg-cat-table__count {
	text-align: center;
	color: var(--usp-text-secondary);
	font-size: 0.83rem;
}

.usaltg-cat-table__parent {
	display: block;
	font-size: 0.72rem;
	color: var(--usp-text-secondary);
	margin-top: 2px;
}

.usaltg-cat-table__nodelete {
	font-size: 0.72rem;
	color: var(--usp-text-secondary);
	font-style: italic;
	padding: 5px 8px;
}

.usaltg-cat-row--editing {
	background: rgba(2, 59, 117, 0.04);
	outline: 2px solid rgba(2, 59, 117, 0.2);
	outline-offset: -2px;
}

/* ============================================================
   Resources management view (admin only)
   ============================================================ */
.usaltg-res-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	margin-top: 40px;
}

.usaltg-res-filters {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	flex: 1;
	margin-top: -15px;
}

.usaltg-res-filter {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--usp-text-secondary);
	border: 1px solid var(--usp-border);
	background: var(--usp-card);
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
	white-space: nowrap;
	outline: none !important
}

.usaltg-res-filter:hover {
	border-color: var(--usp-primary);
	background: var(--usp-primary);
	color: #fff;
}

.usaltg-res-filter--active {
	background: var(--usp-primary);
	color: #fff;
	border-color: var(--usp-primary);
}

.usaltg-res-filter-sep {
	color: var(--usp-border);
	font-size: 0.85rem;
	padding: 0 2px;
}

.usaltg-res-add-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.usaltg-res-add-btn svg {
	width: 12px;
	height: 12px;
}

/* Resources table — fixed column widths: Title | Type | Category | Status | Modified | Actions */
.usaltg-res-table col:nth-child(1)            { width: auto; }   /* Title fills remaining space */
.usaltg-res-table .usaltg-res-table__col-type     { width: 92px; }
.usaltg-res-table .usaltg-res-table__col-cat      { width: 140px; }
.usaltg-res-table .usaltg-res-table__col-status   { width: 100px; }
.usaltg-res-table .usaltg-res-table__col-modified { width: 110px; }
.usaltg-res-table .usaltg-res-table__col-actions  { width: 140px; }

.usaltg-res-table__title {
	white-space: normal;   /* allow title to wrap */
}

.usaltg-res-table__title a {
	color: var(--usp-text);
	text-decoration: none;
	font-weight: 600;
}

.usaltg-res-table__title a:hover {
	color: var(--usp-primary);
	text-decoration: underline;
}

.usaltg-res-table__cat {
	color: var(--usp-text-secondary);
	font-size: 0.83rem;
}

.usaltg-res-row--draft {
	opacity: 0.65;
}

.usaltg-res-type {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--usp-text-secondary);
}

.usaltg-res-type svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.usaltg-res-type--video {
	color: #7c3aed;
}

.usaltg-res-type--link {
	color: #0284c7;
}

.usaltg-res-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.usaltg-res-status--published {
	background: rgba(0, 163, 42, 0.1);
	color: #006b1a;
}

.usaltg-res-status--draft {
	background: rgba(100, 100, 100, 0.1);
	color: var(--usp-text-secondary);
}

/* ---- Resources table: tablet (≤ 900px) — hide Category + Modified ---- */
@media (max-width: 900px) {
	.usaltg-res-table .usaltg-res-table__col-cat,
	.usaltg-res-table .usaltg-res-table__col-modified,
	.usaltg-res-table thead th:nth-child(3),
	.usaltg-res-table thead th:nth-child(5),
	.usaltg-res-table tbody td:nth-child(3),
	.usaltg-res-table tbody td:nth-child(5) { display: none; }
}

/* ---- Resources table: mobile (≤ 640px) — card layout ---- */
@media (max-width: 640px) {
	.usaltg-res-toolbar {
		gap: 8px;
	}

	.usaltg-res-filters {
		order: 2;
		width: 100%;
	}

	.usaltg-res-add-btn {
		order: 1;
		margin-left: auto;
	}

	/* Card layout — same pattern as members table */
	.usaltg-res-table,
	.usaltg-res-table tbody,
	.usaltg-res-table tbody tr { display: block; width: 100%; }

	.usaltg-res-table colgroup,
	.usaltg-res-table thead { display: none; }

	.usaltg-res-table tbody tr {
		background: var(--usp-card) !important;
		border: 1.5px solid var(--usp-border);
		border-radius: var(--usp-radius);
		margin-bottom: 10px;
		padding: 14px 16px;
		display: flex;
		flex-wrap: wrap;
		gap: 6px 0;
		opacity: 1;
	}

	.usaltg-res-table tbody tr.usaltg-res-row--draft {
		opacity: 0.65;
	}

	.usaltg-res-table td {
		display: none;
		padding: 0;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		width: 100%;
	}

	/* Title — full width, prominent */
	.usaltg-res-table td:nth-child(1) {
		display: block;
		font-size: 14px;
		padding-bottom: 8px;
	}

	/* Type + Status — side by side on one row */
	.usaltg-res-table td:nth-child(2),
	.usaltg-res-table td:nth-child(4) {
		display: inline-flex;
		align-items: center;
		width: auto;
		margin-right: 10px;
	}

	/* Actions — full width at bottom */
	.usaltg-res-table td:nth-child(6) {
		display: flex !important;
		gap: 6px;
		padding-top: 10px;
		border-top: 1px solid var(--usp-border);
		margin-top: 4px;
		width: 100%;
	}

	.usaltg-res-table .usaltg-users-table__actions {
		padding: 0 !important;
		width: 100%;
	}

	.usaltg-res-table .usaltg-users-btn {
		flex: 1;
		justify-content: center;
	}
}

/* ============================================================
   Users management view (admin only)
   ============================================================ */
.usaltg-users-notice {
	padding: 12px 18px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 24px;
}

.usaltg-users-notice--success {
	background: rgba(0, 163, 42, 0.1);
	color: #006b1a;
	border: 1px solid rgba(0, 163, 42, 0.25);
}

.usaltg-users-notice--error {
	background: rgba(221, 51, 51, 0.1);
	color: var(--usp-accent);
	border: 1px solid rgba(221, 51, 51, 0.25);
}

.usaltg-users-section {
	margin-bottom: 36px;
}

.usaltg-users-section__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 15px 15px 0px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--usp-text-secondary);
}

.usaltg-users-section__heading svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	opacity: 0.7;
}

.usaltg-users-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    background: #f0f0f0;
    padding: 6px 20px;
    border-radius: 10px;
}

.usaltg-users-toolbar__count {
	font-size: 13px;
	font-weight: 600;
	color: var(--usp-text-secondary);
}

/* Filter button */
.usaltg-filter-btn-wrap {
	position: relative;
}

.usaltg-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius);
	font-family: var(--usp-font);
	font-size: 13px;
	font-weight: 600;
	color: var(--usp-text);
	cursor: pointer;
	position: relative;
	transition: border-color 0.18s, background 0.18s;
	outline: none;
}

.usaltg-filter-btn svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.usaltg-filter-btn:hover {
	border-color: var(--usp-primary);
	color: var(--usp-primary);
}

.usaltg-filter-btn.is-active,
.usaltg-filter-btn.has-filter {
	border-color: var(--usp-primary);
	background: rgba(2, 59, 117, 0.06);
	color: var(--usp-primary);
}

/* Active dot indicator */
.usaltg-filter-btn__dot {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--usp-accent);
	border: 1.5px solid var(--usp-card);
}

/* Dropdown panel */
.usaltg-filter-panel {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 200;
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 14px 16px;
	min-width: 265px;
}

.usaltg-filter-panel[hidden] {
	display: none;
}

.usaltg-filter-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.usaltg-filter-panel__title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--usp-text-secondary);
}

.usaltg-filter-panel__clear {
	font-family: var(--usp-font);
	font-size: 12px;
	font-weight: 600;
	color: var(--usp-accent);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	outline: none;
}

.usaltg-filter-panel__clear:hover {
	text-decoration: underline;
	background: none;
}

.usaltg-filter-panel__clear[hidden] {
	display: none;
}

.usaltg-filter-panel__group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 12px;
}

.usaltg-filter-panel__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--usp-text-secondary);
}

.usaltg-filter-panel__select {
	width: 100%;
	font-family: var(--usp-font);
	font-size: 13px;
	font-weight: 500;
	color: var(--usp-text);
	background: var(--usp-page-bg);
	border: 1.5px solid var(--usp-border);
	border-radius: calc(var(--usp-radius) - 2px);
	padding: 7px 32px 7px 10px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px;
}

.usaltg-filter-panel__select:focus {
	outline: none;
	border-color: var(--usp-primary);
}

.usaltg-users-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--usp-border);
	border-radius: 10px;
}

.usaltg-users-table {
	width: 100%;
	table-layout: auto;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.usaltg-users-table thead th {
	padding: 10px 14px;
	text-align: left;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--usp-text-secondary);
	background: rgba(2, 59, 117, 0.03);
	border-bottom: 1px solid var(--usp-border);
	white-space: nowrap;
}

.usaltg-users-table tbody tr {
	border-bottom: 1px solid var(--usp-border);
	transition: background 0.1s ease;
	background: #fff !important;
}

.usaltg-users-table tbody tr:last-child {
	border-bottom: none;
}

.usaltg-users-table tbody tr:hover {
	background: rgba(2, 59, 117, 0.025);
}

.usaltg-users-table td {
	padding: 11px 14px !important;
	color: var(--usp-text);
	vertical-align: middle;
}

.usaltg-users-table td a[href^="mailto"] {
	color: var(--usp-primary);
	text-decoration: none;
}

.usaltg-users-table td a[href^="mailto"]:hover {
	text-decoration: underline;
}

.usaltg-users-table__name {
	font-weight: 600;
}

.usaltg-users-table__never {
	color: var(--usp-text-secondary);
	font-style: italic;
}

.usaltg-users-table__pwd-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	vertical-align: middle;
}

.usaltg-users-table__pwd-badge--pending {
	background: #fff3cd;
	color: #92610a;
	border: 1px solid #f5c842;
}

.usaltg-users-table__pwd-badge--changed {
	background: #d4edda;
	color: #1a6e30;
	border: 1px solid #7ac992;
}

.usaltg-users-table__pwd-date {
	display: block;
	font-size: 11px;
	color: var(--usp-text-secondary);
	margin-top: 2px;
}

.usaltg-users-table__actions-col {
	width: 1%;
}

.usaltg-users-table__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	padding: 15px 0px !important;
}

.usaltg-users-inline-form {
	display: contents;
}

.usaltg-users-btn {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 5px;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
	outline: none;
	border: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.usaltg-users-btn--approve {
	background: rgba(0, 163, 42, 0.1);
	color: #006b1a;
	border-color: rgba(0, 163, 42, 0.3);
}

.usaltg-users-btn--approve:hover {
	background: rgba(0, 163, 42, 0.18);
}

.usaltg-users-btn--edit {
	background: rgba(2, 59, 117, 0.08);
	color: var(--usp-primary);
}

.usaltg-users-btn--edit:hover {
	background: rgba(2, 59, 117, 0.14);
}


.usaltg-users-btn--view {
	background: rgba(2, 59, 117, 0.08);
	color: var(--usp-primary);
	border-color: rgba(2, 59, 117, 0.2);
	text-decoration: none;
}

.usaltg-users-btn--view:hover {
	background: rgba(2, 59, 117, 0.14);
}

.usaltg-users-btn--deny,
.usaltg-users-btn--remove {
	background: rgba(221, 51, 51, 0.08);
}

.usaltg-users-btn--deny:hover,
.usaltg-users-btn--remove:hover {
	background: rgba(221, 51, 51, 0.16);
	border: none;
}

/* ============================================================
   Request detail — redesigned card layout
   ============================================================ */

.usaltg-rd-header {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--usp-border);
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

.usaltg-rd-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--usp-primary);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	letter-spacing: 0.03em;
	user-select: none;
}

.usaltg-rd-header__body {
	flex: 1;
	min-width: 0;
}

.usaltg-rd-header__name {
	font-size: 18px;
	font-weight: 700;
	color: var(--usp-text);
	margin: 0 0 4px;
	line-height: 1.25;
}

.usaltg-rd-header__sub {
	font-size: 13px;
	color: var(--usp-text-muted);
	margin: 0;
}

.usaltg-rd-header__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}

.usaltg-rd-status {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 3px 10px;
	border-radius: 20px;
}

.usaltg-rd-status--pending {
	background: rgba(217, 119, 6, 0.12);
	color: #92400e;
}

.usaltg-rd-status--denied {
	background: rgba(221, 51, 51, 0.1);
	color: #9b1c1c;
}

.usaltg-rd-status--approved {
	background: rgba(0, 163, 42, 0.1);
	color: #065f46;
}

.usaltg-rd-submitted {
	font-size: 12px;
	color: var(--usp-text-muted);
}

/* Two-column grid for detail cards */
.usaltg-rd-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.usaltg-rd-card {
	background: #fff;
	border: 1px solid var(--usp-border);
	border-radius: 10px;
	padding: 20px 24px;
}

.usaltg-rd-card__heading {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--usp-primary);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--usp-border);
}

.usaltg-rd-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
	margin: 0;
}

.usaltg-rd-field--full {
	grid-column: 1 / -1;
}

.usaltg-rd-field dt {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--usp-text-muted);
	margin-bottom: 3px;
}

.usaltg-rd-field dd {
	font-size: 14px;
	color: var(--usp-text);
	margin: 0;
	word-break: break-word;
}

.usaltg-rd-empty {
	font-size: 13px;
	color: var(--usp-text-muted);
	font-style: italic;
}

/* Actions footer card */
.usaltg-rd-actions {
	background: #fff;
	border: 1px solid var(--usp-border);
	border-radius: 10px;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.usaltg-rd-actions__hint {
	font-size: 13px;
	color: var(--usp-text-muted);
	margin: 0;
}

.usaltg-rd-actions__buttons {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.usaltg-rd-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease;
	line-height: 1;
}

.usaltg-rd-btn svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.usaltg-rd-btn--approve {
	background: var(--usp-primary);
	color: #fff;
}

.usaltg-rd-btn--approve:hover {
	background: var(--usp-primary-hover);
	color: #fff;
}

.usaltg-rd-btn--deny {
	background: #DD3333;
	color: #fff;
}

.usaltg-rd-btn--deny:hover {
	background: #b82222;
	color: #fff;
}

@media (max-width: 680px) {
	.usaltg-rd-header {
		flex-wrap: wrap;
	}
	.usaltg-rd-header__meta {
		align-items: flex-start;
		width: 100%;
		flex-direction: row;
		gap: 10px;
	}
	.usaltg-rd-grid {
		grid-template-columns: 1fr;
	}
	.usaltg-rd-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.usaltg-rd-actions__buttons {
		flex-direction: column;
	}
	.usaltg-rd-btn {
		justify-content: center;
	}
}

.usaltg-users-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 56px 24px;
	border: 1px solid var(--usp-border);
	border-radius: 10px;
	text-align: center;
	gap: 10px;
}

.usaltg-users-empty-state svg {
	width: 40px;
	height: 40px;
	color: var(--usp-text-secondary);
	opacity: 0.4;
}

.usaltg-users-empty-state p {
	margin: 0;
	font-weight: 600;
	color: var(--usp-text);
}

.usaltg-users-empty-state span {
	font-size: 0.85rem;
	color: var(--usp-text-secondary);
}

.usaltg-users-empty {
	color: var(--usp-text-secondary);
	font-style: italic;
	font-size: 0.875rem;
	margin: 0;
}

@media (max-width: 640px) {
	.usaltg-users-table thead th:nth-child(3),
	.usaltg-users-table td:nth-child(3) {
		display: none;
	}
}

/* ============================================================
   Activity feed (admin only)
   ============================================================ */
.usaltg-activity-feed {
	margin-bottom: 32px;
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: 10px;
	overflow: hidden;
}

.usaltg-activity-feed__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 14px 20px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--usp-text-secondary);
	border-bottom: 1px solid var(--usp-border);
	background: rgba(2, 59, 117, 0.03);
}

.usaltg-activity-feed__heading svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	opacity: 0.6;
}

.usaltg-activity-feed__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.usaltg-activity-feed__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--usp-border);
	transition: background 0.1s ease;
}

.usaltg-activity-feed__item:last-child {
	border-bottom: none;
}

.usaltg-activity-feed__item:hover {
	background: rgba(2, 59, 117, 0.03);
}

.usaltg-activity-feed__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	flex-shrink: 0;
	background: rgba(2, 59, 117, 0.07);
	color: var(--usp-primary);
}

.usaltg-activity-feed__item--request .usaltg-activity-feed__icon {
	background: rgba(221, 51, 51, 0.08);
	color: var(--usp-accent);
}

.usaltg-activity-feed__icon svg {
	width: 13px;
	height: 13px;
}

.usaltg-activity-feed__text {
	flex: 1;
	font-size: 0.875rem;
	color: var(--usp-text);
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.usaltg-activity-feed__badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 20px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: rgba(221, 51, 51, 0.12);
	color: var(--usp-accent);
	flex-shrink: 0;
}

.usaltg-activity-feed__time {
	font-size: 0.78rem;
	color: var(--usp-text-secondary);
	white-space: nowrap;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.usaltg-activity-feed__item {
		flex-wrap: wrap;
		gap: 6px;
	}
	.usaltg-activity-feed__time {
		padding-left: 42px;
		width: 100%;
	}
}

/* ============================================================
   Latest-resource hero banner
   ============================================================ */

.usaltg-latest-resource {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	background: var(--usp-primary);
	border-radius: 12px;
	padding: 28px 32px;
	margin-bottom: 50px;
	position: relative;
	overflow: hidden;
}

/* decorative diagonal slash — right side */
.usaltg-latest-resource::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 220px;
	background: rgba(255,255,255,0.04);
	clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
	pointer-events: none;
}

.usaltg-latest-resource__body {
	flex: 1;
	min-width: 0;
}

.usaltg-latest-resource__badges {
	margin-bottom: 10px;
}

.usaltg-latest-resource__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--usp-error);
	color: #fff;
	font-family: var(--usp-font-heading);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
}

.usaltg-latest-resource__badge-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
}

.usaltg-latest-resource__title {
	font-family: var(--usp-font-heading);
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.25;
}

.usaltg-latest-resource__excerpt {
	font-size: 13px;
	color: rgba(255,255,255,0.75);
	margin: 0 0 10px;
	max-width: 560px;
	line-height: 1.55;
}

.usaltg-latest-resource__desc {
	font-size: 13px;
	color: rgba(255,255,255,0.65);
	margin: 0 0 14px;
	max-width: 560px;
	line-height: 1.6;
}

.usaltg-latest-resource__desc p {
	margin: 0 0 6px;
}

.usaltg-latest-resource__desc p:last-child {
	margin-bottom: 0;
}

.usaltg-latest-resource__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.55);
	margin: 0;
}

.usaltg-latest-resource__meta span + span::before {
	content: '\00a0\00b7\00a0';
}

.usaltg-latest-resource__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	background: var(--usp-error);
	color: #fff;
	font-family: var(--usp-font-heading);
	font-size: 14px;
	font-weight: 700;
	padding: 14px 24px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.14s ease;
	position: relative;
	z-index: 1;
}

.usaltg-latest-resource__btn:hover,
.usaltg-latest-resource__btn:focus-visible {
	background: #c02020;
	color: #fff;
	transform: translateY(-1px);
	text-decoration: none;
}

.usaltg-latest-resource__btn svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* ============================================================
   What's New strip
   ============================================================ */
.usaltg-whats-new {
	margin-bottom: 32px;
	margin-top: 32px;
}

.usaltg-whats-new__heading {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 18px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	letter-spacing: -0.01em;
	color: var(--usp-primary);
	margin: 0 0 14px;
}

.usaltg-whats-new__heading svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.usaltg-whats-new__list {
	list-style: none;
	margin: 0;
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	padding: 0;
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: 8px;
	overflow: hidden;
}

.usaltg-whats-new__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--usp-border);
	transition: background 0.12s;
}

.usaltg-whats-new__item:last-child {
	border-bottom: none;
}

.usaltg-whats-new__item:hover {
	background: var(--usp-hover);
}

.usaltg-whats-new__type-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	color: var(--usp-primary);
	background: rgba(2, 59, 117, 0.07);
}

.usaltg-whats-new__type-icon svg {
	width: 18px;
	height: 18px;
}

.usaltg-whats-new__type-icon--video {
	color: var(--usp-error);
	background: rgba(221, 51, 51, 0.07);
}

.usaltg-whats-new__type-icon--link {
	color: #6b44c8;
	background: rgba(107, 68, 200, 0.07);
}

.usaltg-whats-new__body {
	flex: 1;
	min-width: 0;
}

.usaltg-whats-new__title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	line-height: 1.3;
}

/* Inline status badges on the title row */
.usaltg-wn-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 4px;
	border: 1.5px solid;
	line-height: 1.5;
	white-space: nowrap;
}

.usaltg-wn-badge--new {
	color: #16a34a;
	border-color: #16a34a;
	background: rgba(22, 163, 74, 0.06);
}

.usaltg-wn-badge--updated {
	color: #d97706;
	border-color: #d97706;
	background: rgba(217, 119, 6, 0.06);
}

.usaltg-wn-badge--confidential {
	color: #b45309;
	border-color: #b45309;
	background: rgba(180, 83, 9, 0.06);
}

.usaltg-whats-new__meta {
	font-size: 12px;
	color: var(--usp-text-muted);
	margin: 0;
}

.usaltg-whats-new__age {
	flex-shrink: 0;
	font-size: 13px;
	color: var(--usp-text-muted);
	white-space: nowrap;
}

.usaltg-whats-new__action {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
	background: transparent;
	border: 1.5px solid var(--usp-border);
	border-radius: 7px;
	padding: 7px 16px;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	white-space: nowrap;
}

.usaltg-whats-new__action svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.usaltg-whats-new__action:hover,
.usaltg-whats-new__action:focus-visible {
	border-color: var(--usp-primary);
	background: var(--usp-primary);
	color: #fff;
	text-decoration: none;
}

/* ============================================================
   Download History table
   ============================================================ */
.usaltg-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: 8px;
	overflow: hidden;
}

.usaltg-history-table thead th {
	background: var(--usp-bg);
	color: var(--usp-text-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1.5px solid var(--usp-border);
}

.usaltg-history-table tbody tr {
	border-bottom: 1px solid var(--usp-border);
	transition: background 0.1s;
}

.usaltg-history-table tbody tr:last-child {
	border-bottom: none;
}

.usaltg-history-table tbody tr:hover {
	background: var(--usp-hover);
}

.usaltg-history-table td {
	padding: 11px 14px;
	vertical-align: middle;
	color: var(--usp-text);
}

.usaltg-history-table__title {
	font-weight: 500;
}

.usaltg-history-table__title .usaltg-badge-confidential {
	margin-left: 6px;
}

.usaltg-history-table__date {
	color: var(--usp-text-muted);
	white-space: nowrap;
	font-size: 13px;
}

.usaltg-history-table__type {
	font-size: 12px;
	color: var(--usp-text-muted);
}

.usaltg-history-table__action-col {
	text-align: right;
	white-space: nowrap;
}

.usaltg-history-table__redownload {
	font-size: 12px;
	font-weight: 600;
	color: var(--usp-primary);
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid transparent;
	transition: background 0.12s, border-color 0.12s;
}

.usaltg-history-table__redownload:hover {
	background: rgba(2, 59, 117, 0.07);
	border-color: var(--usp-primary);
}

/* Section heading above grids */
.usaltg-dashboard__section-heading {
	font-size: 18px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	letter-spacing: -0.01em;
	color: var(--usp-primary);
	margin: 0 0 16px;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.usaltg-dashboard__section-count {
	font-size: 13px;
	font-weight: 400;
	font-family: var(--usp-font);
	color: var(--usp-text-muted);
	letter-spacing: 0;
}

/* Category grid */
.usaltg-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.usaltg-tile {
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	padding: 22px 20px 20px;
	text-align: left;
	text-decoration: none;
	color: var(--usp-text);
	box-shadow: var(--usp-shadow-sm);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	transition: border-color var(--usp-duration) var(--usp-ease),
	            box-shadow var(--usp-duration) var(--usp-ease),
	            transform var(--usp-duration) var(--usp-ease);
}

.usaltg-tile:hover {
	border-color: var(--usp-primary);
	box-shadow: 0 8px 20px -8px rgba(2,59,117,0.18);
	transform: translateY(-2px);
	color: var(--usp-text);
	text-decoration: none;
}

.usaltg-tile:hover .usaltg-tile__icon {
	background: var(--usp-primary);
	color: #ffffff;
}

.usaltg-tile:hover .usaltg-tile__arrow {
	color: var(--usp-error);
}

.usaltg-tile--settings {
	border-style: dashed;
	opacity: 0.8;
}

.usaltg-tile--settings:hover {
	opacity: 1;
	border-style: solid;
}

/* Row: icon left, arrow right */
.usaltg-tile__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
}

.usaltg-tile__icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--usp-primary-light);
	color: var(--usp-primary);
	border-radius: var(--usp-radius);
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
}

.usaltg-tile__icon svg {
	width: 26px;
	height: 26px;
}

.usaltg-tile__arrow {
	color: var(--usp-text-muted);
	display: flex;
	align-items: center;
	transition: color 0.18s ease;
	margin-top: 2px;
}

.usaltg-tile__arrow svg {
	width: 16px;
	height: 16px;
}

.usaltg-tile__title {
	font-size: 16px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
	margin: 0;
	line-height: 1.3;
}

.usaltg-tile__count {
	font-size: 12.5px;
	color: var(--usp-text-muted);
	margin-top: -4px;
}

/* Dashboard empty state */
.usaltg-dashboard__empty {
	text-align: center;
	padding: 60px 24px;
	color: var(--usp-text-muted);
}

.usaltg-dashboard__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	background: var(--usp-page-bg);
	border-radius: var(--usp-radius-lg);
	color: var(--usp-text-muted);
}

.usaltg-dashboard__empty-icon svg { width: 32px; height: 32px; }

.usaltg-dashboard__empty-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--usp-text);
	margin: 0 0 6px;
}

.usaltg-dashboard__empty-sub {
	font-size: 14px;
	margin: 0;
}

/* ============================================================
   15. Resource list
   ============================================================ */

.usaltg-resource-list-wrap {
	max-width: 860px;
	width: 100%;
	overflow-x: hidden;
}

.usaltg-resource-list__heading {
	font-size: 20px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
	margin: 0 0 20px;
}

/* Filter tab bar */
.usaltg-filter-bar {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}


/* Resource list */
.usaltg-resource-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Hidden when filter doesn't match */
.usaltg-resource-item[hidden] {
	display: none;
}

.usaltg-resource-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding: 16px 20px;
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius);
	box-shadow: var(--usp-shadow-sm);
	overflow: hidden;
	min-width: 0;
	transition: border-color var(--usp-duration) var(--usp-ease),
	            box-shadow var(--usp-duration) var(--usp-ease);
}

.usaltg-resource-item:hover {
	border-color: var(--usp-primary);
	box-shadow: var(--usp-shadow);
}

/* Type icon circle */
.usaltg-resource-item__icon {
	width: 40px;
	height: 40px;
	border-radius: var(--usp-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.usaltg-resource-item__icon svg {
	width: 18px;
	height: 18px;
}

.usaltg-resource-item__icon--document {
	background: #e8f0fb;
	color: var(--usp-primary);
}

.usaltg-resource-item__icon--video {
	background: #fde8e8;
	color: var(--usp-error);
}

.usaltg-resource-item__icon--link {
	background: #e8f5e9;
	color: #2e7d32;
}

/* Body */
.usaltg-resource-item__body {
	flex: 1;
	min-width: 0;
}

.usaltg-resource-item__title {
	font-weight: 600;
	font-size: 14.5px;
	color: var(--usp-text);
	margin: 0 0 4px;
}

.usaltg-resource-item__title a {
	color: var(--usp-text);
	text-decoration: none;
}

.usaltg-resource-item__title a:hover {
	color: var(--usp-primary);
}

.usaltg-resource-item__excerpt {
	font-size: 13px;
	color: var(--usp-text-muted);
	margin: 0 0 6px;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.usaltg-resource-item__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.usaltg-resource-item__size {
	font-size: 12px;
	color: var(--usp-text-muted);
}

.usaltg-resource-item__date {
	font-size: 12px;
	color: var(--usp-text-muted);
}

.usaltg-badge-new {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 20px;
	background: #77ffb3;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
	line-height: 18px;
}

.usaltg-resource-item__size + .usaltg-resource-item__date::before {
	content: '·';
	margin-right: 8px;
	opacity: 0.5;
}

/* File extension badge */
.usaltg-ext-badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: var(--usp-radius-sm);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	background: var(--usp-primary-light);
	color: var(--usp-primary);
}

.usaltg-ext-badge--pdf   { background: #fde8e8; color: #c0392b; }
.usaltg-ext-badge--xlsx,
.usaltg-ext-badge--xls   { background: #e8f5e9; color: #27692c; }
.usaltg-ext-badge--docx,
.usaltg-ext-badge--doc   { background: #e8f0fb; color: var(--usp-primary); }
.usaltg-ext-badge--zip   { background: #fff8e1; color: #7c5000; }
.usaltg-ext-badge--pptx,
.usaltg-ext-badge--ppt   { background: #fff3e0; color: #bf360c; }

/* Action button */
.usaltg-resource-item__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: var(--usp-radius);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all var(--usp-duration) var(--usp-ease);
}

.usaltg-resource-item__action svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.usaltg-resource-item__action--icon-only {
	padding: 7px;
}

.usaltg-resource-item__action--document {
	background: var(--usp-primary);
	color: #ffffff;
}

.usaltg-resource-item__action--document:hover {
	background: var(--usp-primary-hover);
	color: #ffffff;
}

.usaltg-resource-item__action--video {
	background: #fde8e8;
	color: var(--usp-error);
}

.usaltg-resource-item__action--video:hover {
	background: var(--usp-error);
	color: #ffffff;
}

.usaltg-resource-item__action--link {
	background: var(--usp-page-bg);
	color: var(--usp-text-secondary);
	border: 1.5px solid var(--usp-border);
}

.usaltg-resource-item__action--link:hover {
	border-color: var(--usp-primary);
	color: var(--usp-primary);
}

/* Multi-file download list */
.usaltg-resource-item__files {
	flex: 1 1 100%;
	min-width: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--usp-border);
}

.usaltg-resource-item__file-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 10px;
	background: var(--usp-page-bg);
	border-radius: calc(var(--usp-radius) - 2px);
}

.usaltg-resource-item__file-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--usp-text);
	min-width: 0;
	flex: 1;
	overflow: hidden;
}

/* Filename text node truncation inside the flex label */
.usaltg-resource-item__file-label .usaltg-ext-badge {
	flex-shrink: 0;
}

.usaltg-resource-item__file-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

/* Resource list empty state */
.usaltg-resource-empty {
	text-align: center;
	padding: 60px 24px;
	background: var(--usp-card);
	border: 1.5px dashed var(--usp-border);
	border-radius: var(--usp-radius-lg);
}

.usaltg-resource-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	background: var(--usp-page-bg);
	border-radius: var(--usp-radius);
	color: var(--usp-text-muted);
}

.usaltg-resource-empty__icon svg { width: 26px; height: 26px; }

.usaltg-resource-empty__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--usp-text);
	margin: 0 0 6px;
}

.usaltg-resource-empty__sub {
	font-size: 13.5px;
	color: var(--usp-text-muted);
	margin: 0;
}

/* ============================================================
   16. Account Settings
   ============================================================ */

.usaltg-account-settings {
	max-width: 560px;
}

.usaltg-account-settings__card {
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	overflow: hidden;
	box-shadow: var(--usp-shadow);
}

.usaltg-account-settings__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 24px 20px;
	border-bottom: 1px solid var(--usp-border);
	background: var(--usp-primary-light);
}

.usaltg-account-settings__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--usp-primary);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	letter-spacing: 0.02em;
}

.usaltg-account-settings__header-info {
	min-width: 0;
}

.usaltg-account-settings__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--usp-primary);
	margin: 0 0 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.usaltg-account-settings__email {
	font-size: 13px;
	color: var(--usp-text-secondary);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.usaltg-account-settings__fields {
	margin: 0;
	padding: 8px 0;
}

.usaltg-account-settings__row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 11px 24px;
	border-bottom: 1px solid var(--usp-border);
}

.usaltg-account-settings__row:last-child {
	border-bottom: none;
}

.usaltg-account-settings__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--usp-text-muted);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
	width: 130px;
	flex-shrink: 0;
}

.usaltg-account-settings__row-icon {
	display: flex;
	flex-shrink: 0;
	color: var(--usp-text-muted);
}

.usaltg-account-settings__row-icon svg {
	width: 14px;
	height: 14px;
}

.usaltg-account-settings__value {
	font-size: 14px;
	color: var(--usp-text);
	margin: 0;
	font-weight: 500;
}

.usaltg-account-settings__note {
	font-size: 12.5px;
	color: var(--usp-text-muted);
	margin: 0;
	padding: 14px 24px;
	border-top: 1px solid var(--usp-border);
	background: var(--usp-page-bg);
	font-style: italic;
}

/* ============================================================
   18. Utilities
   ============================================================ */
.usaltg-honeypot {
	display: none !important;
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
}

/* Screen-reader-only text (WP standard class reused) */
.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ============================================================
   19. Responsive
   ============================================================ */

/* ---- Tablet landscape / large tablet (≤ 900px) ---- */
@media (max-width: 900px) {

	/* Sidebar: slide off-canvas, toggled by JS */
	.usp-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		height: 100%;
		transform: translateX(-100%);
		transition: transform 0.28s var(--usp-ease);
		z-index: 200;
		box-shadow: var(--usp-shadow-xl);
	}

	.sidebar-open .usp-sidebar { transform: translateX(0); }

	.usp-sidebar-overlay:not([aria-hidden]) { display: block; }

	.usp-topbar__toggle      { display: flex; }
	.usp-topbar__user-name   { display: none; }
	.usp-topbar__search      { display: none; }

	/* Content area */
	.usp-content { padding: 20px 20px 48px; }

	/* Category grid: 2 columns on tablet */
	.usaltg-dashboard-grid { grid-template-columns: repeat(2, 1fr); }

	/* Latest resource banner: stay horizontal at 900, collapse later */
	.usaltg-latest-resource { padding: 22px 24px; }

	/* 2-col row (recently viewed + announcements): stack */
	.usaltg-dashboard-two-col { grid-template-columns: 1fr; }
}

/* ---- Tablet portrait (≤ 760px) ---- */
@media (max-width: 760px) {

	/* Hide secondary info on smaller screens */
	.usaltg-whats-new__meta,
	.usaltg-whats-new__age,
	.usaltg-tile__count { display: none; }

	/* Resource list: tighten padding, allow excerpt to wrap */
	.usaltg-resource-list-wrap { max-width: 100%; }

	.usaltg-resource-item {
		padding: 14px 16px;
		gap: 12px;
	}

	.usaltg-resource-item__excerpt {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		line-clamp: 2;
		overflow: hidden;
	}

	/* Multi-file row: allow label to truncate */
	.usaltg-resource-item__file-label {
		font-size: 12px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	/* Welcome heading */
	.usaltg-dashboard__heading { font-size: 24px; }

	/* What's New: wrap age + action below body */
	.usaltg-whats-new__item {
		flex-wrap: wrap;
		gap: 10px 14px;
		padding: 14px 16px;
	}

	.usaltg-whats-new__body {
		/* body still takes full row minus icon */
		flex: 1 1 calc(100% - 60px);
		min-width: 0;
	}

	.usaltg-whats-new__age {
		order: 3;
		flex-basis: 100%;
		padding-left: 54px; /* align with body text (icon 40px + gap 14px) */
	}

	.usaltg-whats-new__action {
		order: 4;
		flex-basis: 100%;
		margin-left: 54px;
		justify-content: center;
	}

	/* Stats bar: 2-col */
	.usaltg-stats-bar { flex-wrap: wrap; gap: 12px; }
	.usaltg-stats-bar__item { flex: 1 1 calc(50% - 6px); padding: 14px 16px; }
	.usaltg-stats-bar__value { font-size: 1.4rem; }
}

/* ---- Mobile (≤ 600px) ---- */
@media (max-width: 600px) {

	/* Shell */
	.usp-content { padding: 16px 14px 40px; }
	.usp-topbar  { padding: 0 14px; }
	.usp-topbar__logout-btn span { display: none; }
	.usp-topbar__logout-btn { padding: 6px 8px; }

	/* Guest card */
	.usp-guest__card { padding: 0 20px 24px; }
	.usp-guest__card-header { padding: 22px 20px 20px; margin: 0 -20px 24px; }
	.usaltg-form-row--half { grid-template-columns: 1fr; gap: 0; }
	.usaltg-form-row--thirds { grid-template-columns: 1fr; gap: 0; }

	/* Welcome */
	.usaltg-dashboard__welcome { margin-bottom: 20px; padding-bottom: 16px; }
	.usaltg-dashboard__heading { font-size: 22px; }
	.usaltg-dashboard__sub     { font-size: 12px; }

	/* Section heading */
	.usaltg-dashboard__section-heading { font-size: 15px; margin-bottom: 12px; }

	/* Latest resource banner: stack vertically */
	.usaltg-latest-resource {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 20px 18px;
	}
	.usaltg-latest-resource__title { font-size: 18px; }
	.usaltg-latest-resource__btn   { width: 100%; justify-content: center; }

	/* Category grid: 2-col */
	.usaltg-dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

	/* Tiles: tighten */
	.usaltg-tile { padding: 16px 14px 14px; gap: 8px; }
	.usaltg-tile__icon { width: 40px; height: 40px; }
	.usaltg-tile__title { font-size: 14px; }

	/* What's New */
	.usaltg-whats-new { margin-top: 24px; }
	.usaltg-whats-new__item {
		padding: 12px 14px;
		gap: 10px 12px;
	}
	.usaltg-whats-new__age   { padding-left: 52px; }
	.usaltg-whats-new__action {
		margin-left: 52px;
		padding: 6px 14px;
		font-size: 12px;
	}

	/* Recently viewed */
	.usaltg-recently-viewed__head  { padding: 14px 16px 12px; }
	.usaltg-recently-viewed__item  { padding: 12px 16px; gap: 10px; }
	.usaltg-recently-viewed__text  { font-size: 13px; }

	/* Announcements */
	.usaltg-announcements__head  { padding: 14px 16px 12px; }
	.usaltg-announcements__item  { padding: 14px 16px; }
	.usaltg-announcements__title { font-size: 14px; }

	/* Forms */
	.usaltg-acct-form__grid { grid-template-columns: 1fr; }

	/* Tables: hide less-important columns */
	.usaltg-res-table__cat,
	.usaltg-users-table.usaltg-res-table thead th:nth-child(4),
	.usaltg-users-table.usaltg-res-table td:nth-child(4) { display: none; }

	.usaltg-history-table__type,
	.usaltg-history-table__action-col { display: none; }
}

/* ---- Small mobile (≤ 420px) ---- */
@media (max-width: 420px) {

	/* Guest */
	.usp-guest { padding: 24px 12px; }
	.usp-guest__brand-mark { width: 40px; height: 40px; }

	/* Category grid: single column */
	.usaltg-dashboard-grid { grid-template-columns: 1fr; gap: 10px; }

	/* Welcome */
	.usaltg-dashboard__heading { font-size: 20px; }

	/* Latest resource */
	.usaltg-latest-resource { padding: 16px 14px; }
	.usaltg-latest-resource__title { font-size: 16px; }

	/* Tiles */
	.usaltg-tile { flex-direction: row; align-items: center; padding: 14px 12px; gap: 12px; }
	.usaltg-tile__top { flex-direction: row; width: auto; }
	.usaltg-tile__arrow { display: none; }
	.usaltg-tile__title { font-size: 14px; }
	.usaltg-tile__count { font-size: 11.5px; }

	/* Stats bar: single column */
	.usaltg-stats-bar__item { flex: 1 1 100%; }

	/* What's New */
	.usaltg-whats-new__action { margin-left: 0; }
	.usaltg-whats-new__age   { padding-left: 0; }
}

/* ==========================================================================
   Users page — responsive
   ========================================================================== */

/* ---- Tablet (≤ 900px): hide Invite Sent + Password columns ---- */
@media (max-width: 900px) {
	.usaltg-users-table colgroup col:nth-child(3),
	.usaltg-users-table colgroup col:nth-child(4) { width: 0; }
	.usaltg-users-table thead th:nth-child(3),
	.usaltg-users-table thead th:nth-child(4),
	.usaltg-users-table tbody td:nth-child(3),
	.usaltg-users-table tbody td:nth-child(4) { display: none; }
}

/* ---- Mobile (≤ 640px): stack rows as cards ---- */
@media (max-width: 640px) {

	/* Toolbar */
	.usaltg-users-toolbar {
		flex-wrap: wrap;
		gap: 8px;
	}

	/* Filter panel: full width, left-aligned */
	.usaltg-filter-btn-wrap {
		position: static;
	}
	.usaltg-filter-panel {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		border-radius: 14px 14px 0 0;
		border-bottom: none;
		padding: 20px 20px 32px;
		z-index: 300;
		min-width: 0;
		box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
	}

	/* Remove table's fixed layout on mobile — rows become cards */
	.usaltg-users-table-wrap {
		border: none;
		border-radius: 0;
		background: transparent;
	}

	.usaltg-users-table,
	.usaltg-users-table tbody,
	.usaltg-users-table tbody tr {
		display: block;
		width: 100%;
	}

	.usaltg-users-table colgroup,
	.usaltg-users-table thead { display: none; }

	/* Each row is a card */
	.usaltg-users-table tbody tr {
		background: var(--usp-card) !important;
		border: 1.5px solid var(--usp-border);
		border-radius: var(--usp-radius);
		margin-bottom: 10px;
		padding: 14px 16px;
		display: flex;
		flex-wrap: wrap;
		gap: 4px 0;
		position: relative;
	}

	.usaltg-users-table tbody tr:last-child {
		border-bottom: 1.5px solid var(--usp-border);
		margin-bottom: 0;
	}

	/* Hide all cells by default, show selectively */
	.usaltg-users-table td {
		display: none;
		padding: 0;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		width: 100%;
	}

	/* Name — full width, prominent */
	.usaltg-users-table td:nth-child(1) {
		display: block;
		font-size: 15px;
		font-weight: 700;
		color: var(--usp-primary);
		padding-bottom: 2px;
	}

	/* Email — full width, secondary */
	.usaltg-users-table td:nth-child(2) {
		display: block;
		font-size: 13px;
		color: var(--usp-text-secondary);
		padding-bottom: 10px;
		border-bottom: 1px solid var(--usp-border);
		margin-bottom: 10px;
	}

	/* Last Login — show below email */
	.usaltg-users-table td:nth-child(5) {
		display: flex;
		align-items: baseline;
		gap: 6px;
		font-size: 13px;
		padding-bottom: 4px;
	}

	.usaltg-users-table td:nth-child(5)::before {
		content: 'Last login:';
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: var(--usp-text-secondary);
		flex-shrink: 0;
	}

	/* Actions — full width row at bottom */
	.usaltg-users-table td:nth-child(6) {
		display: flex !important;
		flex-wrap: wrap;
		gap: 6px;
		padding-top: 10px;
		border-top: 1px solid var(--usp-border);
		margin-top: 6px;
	}

	.usaltg-users-table .usaltg-users-table__actions {
		padding: 0 !important;
		width: 100%;
	}

	.usaltg-users-btn {
		flex: 1;
		justify-content: center;
	}

	/* Profile modal: full-screen on mobile */
	.usaltg-profile-modal__box {
		max-width: 100%;
		max-height: 100%;
		border-radius: 0;
		height: 100%;
	}
}

/* ==========================================================================
   Confidential badge (frontend resource list)
   ========================================================================== */

.usaltg-badge-confidential {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-radius: 3px;
	background: #fff3f3;
	color: #DD3333;
	border: 1px solid #f5c0c0;
	vertical-align: middle;
	margin-left: 6px;
}

/* ==========================================================================
   User profile modal
   ========================================================================== */

.usaltg-profile-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.usaltg-profile-modal[hidden] {
	display: none;
}

body.usaltg-modal-open {
	overflow: hidden;
}

.usaltg-profile-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 20, 50, 0.6);
	backdrop-filter: blur(3px);
}

.usaltg-profile-modal__box {
	position: relative;
	background: var(--usp-card);
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-width: 580px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Close button — sits in the navy header band */
.usaltg-profile-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 30px;
	height: 30px;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	z-index: 2;
	transition: background 0.18s;
}

.usaltg-profile-modal__close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.usaltg-profile-modal__close svg {
	width: 14px;
	height: 14px;
}

/* Scrollable body below the fixed header */
.usaltg-profile-modal__content {
	overflow-y: auto;
}

/* ---- Navy header band ---- */
.usaltg-profile-modal__header {
	background: var(--usp-primary);
	padding: 28px 28px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
}

.usaltg-profile-modal__avatar {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	letter-spacing: 0.02em;
}

.usaltg-profile-modal__name {
	font-size: 20px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: #fff;
	line-height: 1.2;
}

.usaltg-profile-modal__email {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
	margin-top: 4px;
}

.usaltg-profile-modal__email a {
	color: inherit;
	text-decoration: none;
}

.usaltg-profile-modal__email a:hover {
	color: #fff;
}

/* ---- Sections body ---- */
.usaltg-profile-modal__sections {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 20px 24px 24px;
}

.usaltg-profile-modal__section {
	padding: 16px 0;
}

.usaltg-profile-modal__section:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.usaltg-profile-modal__section-title {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--usp-primary);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.usaltg-profile-modal__section-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(2, 59, 117, 0.12);
}

/* Definition list */
.usaltg-profile-modal__dl {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.usaltg-profile-modal__dl-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-size: 13.5px;
	padding: 6px 0;
}

.usaltg-profile-modal__dl-row:last-child {
	border-bottom: none;
}

.usaltg-profile-modal__dl-row dt {
	width: 148px;
	flex-shrink: 0;
	color: var(--usp-text-secondary);
	font-weight: 500;
	font-size: 13px;
}

.usaltg-profile-modal__dl-row dd {
	margin: 0;
	color: var(--usp-text);
	font-weight: 600;
	flex: 1;
}

/* ==========================================================================
   Vimeo modal overlay
   ========================================================================== */

.usaltg-vimeo-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.usaltg-vimeo-modal[hidden] {
	display: none;
}

.usaltg-vimeo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	cursor: pointer;
}

.usaltg-vimeo-modal__box {
	position: relative;
	z-index: 1;
	width: min(92vw, 960px);
	background: #000;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.usaltg-vimeo-modal__close {
	position: absolute;
	top: -40px;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #fff;
	opacity: 0.8;
	transition: opacity 0.15s;
}
table.usaltg-users-table{
	margin: 0px;
}
.usaltg-vimeo-modal__close:hover {
	opacity: 1;
}

.usaltg-vimeo-modal__close svg {
	width: 20px;
	height: 20px;
}

.usaltg-vimeo-modal__player {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
}

.usaltg-vimeo-modal__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Action button as a <button> (video type) — match the <a> button appearance */
.usaltg-resource-item__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}

/* ============================================================
   Account Settings — editable form
   ============================================================ */

.usaltg-alert {
	padding: 13px 18px;
	border-radius: var(--usp-radius);
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 20px;
	border: 1px solid transparent;
}
.usaltg-alert--success {
	background: var(--usp-success-bg);
	border-color: var(--usp-success-border);
	color: var(--usp-success);
}

/* Profile hero — reuses existing avatar/name/email classes */
.usaltg-acct-form__hero {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	padding: 22px 24px;
	margin-bottom: 20px;
	box-shadow: var(--usp-shadow-sm);
}

/* Section cards */
.usaltg-acct-form__card {
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: var(--usp-shadow-sm);
}

.usaltg-acct-form__card-title {
	margin: 0;
	padding: 13px 20px;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #fff;
	background: var(--usp-primary);
}

.usaltg-acct-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	padding: 22px 20px;
}

@media (max-width: 600px) {
	.usaltg-acct-form__grid { grid-template-columns: 1fr; }
}

.usaltg-field--span2 {
	grid-column: 1 / -1;
}

.usaltg-acct-form__footer {
	padding-bottom: 32px;
}

/* ==========================================================================
   Reports page
   ========================================================================== */

.usaltg-report-tabs {
	display: flex;
	gap: 4px;
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	padding: 6px;
	margin-bottom: 20px;
	box-shadow: var(--usp-shadow-sm);
}

.usaltg-report-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: var(--usp-radius);
	font-size: 13px;
	font-weight: 500;
	color: var(--usp-text-secondary);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	flex: 1;
	justify-content: center;
}

.usaltg-report-tab svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	opacity: 0.75;
}

.usaltg-report-tab:hover {
	background: var(--usp-hover);
	color: var(--usp-text);
}

.usaltg-report-tab--active {
	background: var(--usp-primary);
	color: #fff;
	font-weight: 600;
}

.usaltg-report-tab--active svg {
	opacity: 1;
}

.usaltg-report-tab--active:hover {
	background: var(--usp-primary);
	color: #fff;
}

/* Report table tweaks */
.usaltg-report-table .usaltg-report-table__type-col {
	width: 32px;
}

.usaltg-report-table .usaltg-report-table__icon {
	width: 32px;
    padding: 0px 0 0 2px;
    vertical-align: middle;
    margin: 5px;
}

.usaltg-report-table .usaltg-report-table__icon svg {
	width: 15px;
	height: 15px;
	display: block;
}

.usaltg-report-table .usaltg-report-table__ago {
	color: var(--usp-text-secondary);
	font-size: 12px;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.usaltg-report-tabs {
		flex-direction: column;
	}
	.usaltg-report-tab {
		justify-content: flex-start;
	}
}

/* ==========================================================================
   Dashboard 2-column layout (Recently viewed + Announcements)
   ========================================================================== */

.usaltg-dashboard-two-col {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 20px;
	margin-top: 28px;
}

@media (max-width: 900px) {
	.usaltg-dashboard-two-col {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Recently viewed panel
   ========================================================================== */

.usaltg-recently-viewed {
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	overflow: hidden;
}

.usaltg-recently-viewed__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 14px;
	border-bottom: 1px solid var(--usp-border);
}

.usaltg-recently-viewed__heading {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
}

.usaltg-recently-viewed__clear {
	font-size: 13px;
	font-weight: 500;
	color: var(--usp-text-muted);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: color 0.15s;
}

.usaltg-recently-viewed__clear:hover {
	color: var(--usp-primary);
}

.usaltg-recently-viewed__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.usaltg-recently-viewed__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 22px;
	border-bottom: 1px solid var(--usp-border);
}

.usaltg-recently-viewed__item:last-child {
	border-bottom: none;
}

.usaltg-recently-viewed__dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--usp-error);
	margin-top: 5px;
}

.usaltg-recently-viewed__item:not(:first-child) .usaltg-recently-viewed__dot {
	background: #cbd5e1;
}

.usaltg-recently-viewed__body {
	min-width: 0;
}

.usaltg-recently-viewed__text {
	margin: 0 0 3px;
	font-size: 13.5px;
	color: var(--usp-text);
	line-height: 1.4;
}

.usaltg-recently-viewed__text strong {
	font-weight: 700;
	color: var(--usp-primary);
}

.usaltg-recently-viewed__time {
	margin: 0;
	font-size: 12px;
	color: var(--usp-text-muted);
}

.usaltg-recently-viewed__empty {
	padding: 28px 22px;
	font-size: 13px;
	color: var(--usp-text-muted);
	margin: 0;
}

/* ==========================================================================
   Announcements — dashboard panel (new design)
   ========================================================================== */

.usaltg-announcements {
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	overflow: hidden;
}

.usaltg-announcements__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 14px;
	border-bottom: 1px solid var(--usp-border);
}

.usaltg-announcements__heading {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
}

.usaltg-announcements__manage {
	font-size: 13px;
	font-weight: 500;
	color: var(--usp-text-muted);
	text-decoration: none;
	transition: color 0.15s;
}

.usaltg-announcements__manage:hover {
	color: var(--usp-primary);
	text-decoration: none;
}

.usaltg-announcements__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.usaltg-announcements__item {
	padding: 18px 22px;
	border-bottom: 1px solid var(--usp-border);
}

.usaltg-announcements__item:last-child {
	border-bottom: none;
}

.usaltg-announcements__item--pinned {
	border-left: 3px solid #f59e0b;
}

.usaltg-announcements__date {
	display: block;
	font-size: 11px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	letter-spacing: 0.07em;
	color: var(--usp-error);
	margin-bottom: 6px;
	text-transform: uppercase;
}

.usaltg-announcements__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	font-family: var(--usp-font-heading);
	color: var(--usp-primary);
	line-height: 1.3;
}

.usaltg-announcements__body {
	font-size: 13px;
	color: var(--usp-text-muted);
	line-height: 1.6;
}

.usaltg-announcements__body p {
	margin: 0 0 4px;
}

.usaltg-announcements__body p:last-child {
	margin-bottom: 0;
}

.usaltg-announcements__empty {
	padding: 28px 22px;
	font-size: 13px;
	color: var(--usp-text-muted);
	margin: 0;
}

/* ==========================================================================
   Announcements — admin management page (kept for backward-compat)
   ========================================================================== */

/* ==========================================================================
   Announcements — admin management page
   ========================================================================== */

.usaltg-ann-create-card {
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius);
	padding: 24px;
	margin-bottom: 28px;
}

.usaltg-ann-create-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--usp-text);
	margin: 0 0 20px;
}

.usaltg-ann-create-card__title svg {
	width: 16px;
	height: 16px;
	color: var(--usp-primary);
	flex-shrink: 0;
}

.usaltg-ann-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.usaltg-ann-form__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.usaltg-ann-form__label {
	font-size: 13px;
	font-weight: 500;
	color: var(--usp-text);
}

.usaltg-ann-form__input {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid var(--usp-border);
	border-radius: calc(var(--usp-radius) - 2px);
	font-size: 14px;
	color: var(--usp-text);
	background: var(--usp-page-bg);
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.usaltg-ann-form__input:focus {
	outline: none;
	border-color: var(--usp-primary);
}

.usaltg-ann-form__textarea {
	resize: vertical;
	min-height: 90px;
	font-family: inherit;
}

.usaltg-ann-form__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.usaltg-ann-form__check {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--usp-text-muted);
	cursor: pointer;
}

/* Announcement list */
.usaltg-ann-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.usaltg-ann-empty {
	font-size: 14px;
	color: var(--usp-text-secondary);
}

.usaltg-ann-card {
	background: var(--usp-card);
	border: 1.5px solid var(--usp-border);
	border-radius: var(--usp-radius);
	padding: 18px 20px;
}

.usaltg-ann-card--pinned {
	background: #fefbe8;
	border-color: #f59e0b;
	border-left-width: 4px;
}

.usaltg-ann-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.usaltg-ann-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.usaltg-ann-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: #fef3c7;
	color: #92400e;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
}

.usaltg-ann-badge svg {
	width: 9px;
	height: 9px;
}

.usaltg-ann-card__date {
	font-size: 12px;
	color: var(--usp-text-secondary);
}

.usaltg-ann-card__delete {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	background: transparent;
	border: 1.5px solid var(--usp-border);
	border-radius: calc(var(--usp-radius) - 2px);
	font-size: 12px;
	color: var(--usp-text-secondary);
	cursor: pointer;
	transition: all 0.15s;
}

.usaltg-ann-card__delete:hover {
	border-color: var(--usp-error);
	color: var(--usp-error);
	background: #fef2f2;
}

.usaltg-ann-card__delete svg {
	width: 13px;
	height: 13px;
}

.usaltg-ann-card__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--usp-text);
	margin: 0 0 6px;
}

.usaltg-ann-card__body {
	font-size: 13.5px;
	color: var(--usp-text-muted);
	line-height: 1.6;
}

.usaltg-ann-card__body p {
	margin: 0;
}

/* ============================================================
   Client Emails portal view  (/dashboard/client-emails/)
   ============================================================ */

/* --- Page header: intro text + stat cards --- */
.usaltg-ce-wrap {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.usaltg-ce-page-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.usaltg-ce-page-header__left {
	flex: 1 1 340px;
}

.usaltg-ce-intro {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--usp-text-secondary);
}

.usaltg-ce-stats {
	display: flex;
	gap: 14px;
	flex-shrink: 0;
}

.usaltg-ce-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 90px;
	padding: 14px 20px;
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius);
	box-shadow: var(--usp-shadow-sm);
	text-align: center;
}

.usaltg-ce-stat--green {
	border-color: var(--usp-success-border);
	background: var(--usp-success-bg);
}

.usaltg-ce-stat__num {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--usp-primary);
}

.usaltg-ce-stat--green .usaltg-ce-stat__num {
	color: var(--usp-success);
}

.usaltg-ce-stat__label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--usp-text-muted);
	text-transform: uppercase;
}

/* --- Two-column layout --- */
.usaltg-ce-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 24px;
	align-items: start;
}

/* --- Panel card --- */
.usaltg-ce-panel {
	background: var(--usp-card);
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-lg);
	box-shadow: var(--usp-shadow-sm);
	overflow: hidden;
}

.usaltg-ce-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--usp-border);
	background: rgba(2, 59, 117, 0.025);
}

.usaltg-ce-panel__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px !important;
	font-weight: 600;
	color: var(--usp-text);
}

.usaltg-ce-panel__title svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--usp-primary);
}

.usaltg-ce-panel__body {
	padding: 20px;
}

.usaltg-ce-panel__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* --- Drag-and-drop dropzone --- */
.usaltg-ce-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 16px;
	border: 2px dashed var(--usp-border);
	border-radius: var(--usp-radius);
	background: var(--usp-page-bg);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s, background 0.15s;
}

.usaltg-ce-dropzone:hover,
.usaltg-ce-dropzone.usaltg-ce-dropzone--over {
	border-color: var(--usp-primary);
	background: var(--usp-primary-light);
}

.usaltg-ce-dropzone__icon {
	width: 40px;
	height: 40px;
	color: var(--usp-primary);
	opacity: 0.6;
}

.usaltg-ce-dropzone__cta {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--usp-text-secondary);
}

.usaltg-ce-dropzone__or {
	font-size: 0.8rem;
	color: var(--usp-text-muted);
}

.usaltg-ce-browse-btn {
	display: inline-block;
	padding: 6px 16px;
	background: var(--usp-primary);
	color: #fff;
	border-radius: var(--usp-radius-sm);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.usaltg-ce-browse-btn:hover {
	background: var(--usp-primary-hover);
}

.usaltg-ce-file-info {
	font-size: 0.78rem;
	color: var(--usp-text-secondary);
	word-break: break-all;
	max-width: 100%;
}

.usaltg-ce-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* --- Format chips --- */
.usaltg-ce-formats {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
}

.usaltg-ce-formats__label {
	font-size: 0.78rem;
	color: var(--usp-text-muted);
}

.usaltg-ce-format-chip {
	display: inline-block;
	padding: 2px 8px;
	background: var(--usp-primary-light);
	color: var(--usp-primary);
	border: 1px solid rgba(2, 59, 117, 0.2);
	border-radius: var(--usp-radius-full);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

/* --- Import button --- */
.usaltg-ce-import-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	margin-top: 16px;
	padding: 10px 20px;
	background: var(--usp-primary);
	color: #fff;
	border: none;
	border-radius: var(--usp-radius);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.usaltg-ce-import-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.usaltg-ce-import-btn svg {
	width: 14px;
	height: 14px;
}

/* --- Hints (details/summary) --- */
.usaltg-ce-hints {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.usaltg-ce-hint {
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-sm);
	overflow: hidden;
}

.usaltg-ce-hint summary {
	padding: 8px 12px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--usp-text-secondary);
	cursor: pointer;
	background: var(--usp-page-bg);
	list-style: none;
	user-select: none;
}

.usaltg-ce-hint summary::-webkit-details-marker {
	display: none;
}

.usaltg-ce-hint summary::after {
	content: ' ›';
	font-weight: 400;
	color: var(--usp-text-muted);
}

.usaltg-ce-hint[open] summary::after {
	content: ' ‹';
}

.usaltg-ce-hint p {
	margin: 0;
	padding: 8px 12px 10px;
	font-size: 0.8rem;
	line-height: 1.6;
	color: var(--usp-text-muted);
	background: var(--usp-card);
	border-top: 1px solid var(--usp-border-soft);
}

.usaltg-ce-sample-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	margin: 6px 12px 10px;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--usp-primary);
	text-decoration: none;
	background: var(--usp-primary-light);
	border-radius: var(--usp-radius-sm);
	transition: background 0.15s;
}

.usaltg-ce-sample-link:hover {
	background: rgba(2, 59, 117, 0.12);
}

.usaltg-ce-sample-link svg {
	width: 12px;
	height: 12px;
}

/* --- List panel: search + clear --- */
.usaltg-ce-count-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	padding: 1px 7px;
	background: var(--usp-primary);
	color: #fff;
	border-radius: var(--usp-radius-full);
	font-size: 0.7rem;
	font-weight: 700;
}

.usaltg-ce-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.usaltg-ce-search-wrap svg {
	position: absolute;
	right: 9px;
	width: 14px;
	height: 14px;
	color: var(--usp-text-muted);
	pointer-events: none;
}

.usaltg-ce-search {
	padding: 6px 10px 6px 30px;
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-sm);
	font-size: 0.8rem;
	color: var(--usp-text);
	background: var(--usp-page-bg);
	width: 180px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.usaltg-ce-search:focus {
	outline: none;
	border-color: var(--usp-border-focus);
	box-shadow: 0 0 0 3px var(--usp-accent-ring);
}

.usaltg-ce-delete-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	background: transparent;
	border: 1px solid var(--usp-border);
	border-radius: var(--usp-radius-sm);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--usp-text-secondary);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s;
}

.usaltg-ce-delete-btn:hover {
	border-color: var(--usp-error);
	color: var(--usp-error);
	background: var(--usp-error-bg);
}

.usaltg-ce-delete-btn svg {
	width: 13px;
	height: 13px;
}

/* --- Email table --- */
.usaltg-ce-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.usaltg-ce-table thead th {
	padding: 9px 12px;
	text-align: left;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--usp-text-secondary);
	background: rgba(2, 59, 117, 0.03);
	border-bottom: 1px solid var(--usp-border);
	white-space: nowrap;
}

.usaltg-ce-table tbody tr {
	border-bottom: 1px solid var(--usp-border-soft);
	transition: background 0.1s;
}

.usaltg-ce-table tbody tr:last-child {
	border-bottom: none;
}

.usaltg-ce-table tbody tr:hover {
	background: rgba(2, 59, 117, 0.02);
}

.usaltg-ce-table td {
	padding: 10px 12px;
	color: var(--usp-text);
	vertical-align: middle;
}

.usaltg-ce-col-num {
	width: 44px;
	color: var(--usp-text-muted) !important;
	font-size: 0.8rem;
}

.usaltg-ce-col-status {
	width: 90px;
	text-align: center;
}

/* --- Status badge --- */
.usaltg-ce-status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 9px;
	border-radius: var(--usp-radius-full);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.usaltg-ce-status--active {
	background: var(--usp-success-bg);
	color: var(--usp-success);
	border: 1px solid var(--usp-success-border);
}

.usaltg-ce-status--active svg {
	width: 10px;
	height: 10px;
}

/* --- Empty state --- */
.usaltg-ce-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 48px 24px;
	text-align: center;
}

.usaltg-ce-empty__icon {
	width: 56px;
	height: 56px;
	color: var(--usp-primary);
	opacity: 0.25;
}

.usaltg-ce-empty__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--usp-text-secondary);
}

.usaltg-ce-empty__sub {
	margin: 0;
	font-size: 0.85rem;
	color: var(--usp-text-muted);
}

/* --- No results (search) --- */
.usaltg-ce-no-results {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 14px;
	font-size: 0.85rem;
	color: var(--usp-text-muted);
}

.usaltg-ce-no-results[hidden] {
	display: none;
}

.usaltg-ce-no-results svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--usp-text-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.usaltg-ce-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.usaltg-ce-page-header {
		flex-direction: column;
	}

	.usaltg-ce-stats {
		width: 100%;
	}

	.usaltg-ce-stat {
		flex: 1;
	}

	.usaltg-ce-panel__head {
		flex-wrap: wrap;
	}

	.usaltg-ce-panel__actions {
		flex-wrap: wrap;
		width: 100%;
	}

	.usaltg-ce-search {
		width: 100%;
	}
}
