/* Header styles for the GTUIT shell */

.app-shell-header {
    background: rgb(var(--gtuit-header-surface-rgb, 238 242 248) / var(--gtuit-header-alpha, 0.52));
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-top: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 80;
    transition: box-shadow 0.18s ease, background 0.18s ease;
    padding-top: env(safe-area-inset-top, 0px);
}

html[data-gtuit-theme="rainbow"] .app-shell-header {
    background: linear-gradient(
            135deg,
            rgb(var(--gtuit-rainbow-1-rgb, 239 68 68) / 0.22),
            rgb(var(--gtuit-rainbow-2-rgb, 34 197 94) / 0.18),
            rgb(var(--gtuit-rainbow-3-rgb, 59 130 246) / 0.22)
        ),
        rgb(var(--gtuit-header-surface-rgb, 238 242 248) / var(--gtuit-header-alpha, 0.52));
}

.app-shell-header.is-hidden {
    transform: none;
    opacity: 1;
}

body.is-dark .app-shell-header,
html.wp-dark-mode-active body .app-shell-header,
html[data-wp-dark-mode-active] body .app-shell-header {
    --gtuit-header-surface-rgb: 2 6 23;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.55);
}

.app-shell-header__inner {
    --app-shell-control-height: 48px;
    width: 100%;
    padding: 12px 24px;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-shell-header__brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-slate-900, #0f172a);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.app-shell-header__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0f172a;
    min-width: 0;
}

.app-shell-header__crumb-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-shell-header__crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.75);
}

.app-shell-header__crumb::after {
    content: '/';
    color: rgba(15, 23, 42, 0.4);
}

.app-shell-header__crumb:last-child::after {
    display: none;
}

.app-shell-header__crumb-link {
    color: rgba(15, 23, 42, 0.65);
    text-decoration: none;
    transition: color 0.15s ease;
}

.app-shell-header__crumb-link:hover,
.app-shell-header__crumb-link:focus {
    color: var(--gtuit-accent-700);
}

.app-shell-header__crumb-current {
    color: #0f172a;
}

	@media (max-width: 768px) {
	    .app-shell-header__inner {
	        position: relative;
	        padding: 10px 14px;
	        --app-shell-control-height: 36px;
        min-height: 56px;
        gap: 10px;
    }

    .app-shell-header__breadcrumbs,
    .app-shell-header__breadcrumbs--desktop {
        display: none;
    }

	    .app-shell-header__theme-shortcode {
	        display: none !important;
	    }

	    .app-shell-header__party-btn {
	        display: none;
	    }

    /* Mobile: icon-only chrome for header controls */
    .app-shell-header__search {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: auto;
        height: 32px;
        padding: 0;
    }

    .app-shell-header__search input {
        width: 140px;
    }

    .app-shell-header__search-toggle {
        border: none;
        background: transparent;
    }

    .app-shell-header__profile-btn {
        background: transparent;
        border: 1px solid rgba(148, 163, 184, 0.28);
        box-shadow: none;
        box-sizing: border-box;
    }

	    .app-shell-header__theme-btn {
	        padding: 0;
	    }

    .app-shell-header__theme-text {
        display: none;
    }
}

.app-shell-header__sidebar-toggle,
.app-shell-header__profile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: none;
    color: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    margin-left: 4px;
}

.app-shell-header__sidebar-toggle {
    width: 58px;
    height: 52px;
    flex: 0 0 58px;
    margin-left: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.app-shell-header__profile-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-sizing: border-box;
    box-shadow: none;
}

.app-shell-header__profile-btn:hover,
.app-shell-header__profile-btn:focus {
    background: rgb(var(--gtuit-accent-200-rgb) / 0.22);
    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.45);
}

.app-shell-header__sidebar-logo {
    display: block;
    width: 46px;
    height: 46px;
    border-radius: 0;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    box-shadow: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.app-shell-header__sidebar-toggle:hover,
.app-shell-header__sidebar-toggle:focus,
.app-shell-header__sidebar-toggle:focus-visible,
.app-shell-header__sidebar-toggle.is-open {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.app-shell-header__sidebar-toggle:hover .app-shell-header__sidebar-logo,
.app-shell-header__sidebar-toggle:focus-visible .app-shell-header__sidebar-logo {
    transform: scale(1.03);
}

.app-shell-header__profile-btn .dashicons {
    font-size: 24px;
}

.app-shell-header__controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-shell-header__search-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e3e8f4;
    background: #ffffff;
    color: rgba(15, 23, 42, 0.75);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-shell-header__search-toggle:hover {
    background: rgba(241, 245, 255, 0.35);
    border-color: #d7deef;
}
	.app-shell-header__search-toggle .dashicons,
	.app-shell-header__profile-btn .dashicons {
	    font-size: 20px;
	}

		.app-shell-header__darkmode-btn {
		    position: relative;
		    width: var(--app-shell-control-height, 38px);
		    height: var(--app-shell-control-height, 38px);
		    min-width: var(--app-shell-control-height, 38px);
		    max-width: var(--app-shell-control-height, 38px);
		    padding: 0;
		    aspect-ratio: 1 / 1;
		    border-radius: 50%;
		    border: 1px solid rgba(148, 163, 184, 0.28);
		    background: transparent;
		    color: rgba(15, 23, 42, 0.75);
		    display: inline-flex;
		    align-items: center;
		    justify-content: center;
	    box-sizing: border-box;
	    cursor: pointer;
	    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	}

	.app-shell-header__darkmode-btn:hover,
	.app-shell-header__darkmode-btn:focus-visible {
	    background: rgb(var(--gtuit-accent-200-rgb) / 0.22);
	    color: var(--gtuit-accent-700);
	    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.45);
	    outline: none;
	}

	.app-shell-header__darkmode-icon {
	    width: 18px;
	    height: 18px;
	    position: absolute;
	    inset: 0;
	    margin: auto;
	    transition: opacity 0.18s ease, transform 0.18s ease;
	}

	.app-shell-header__darkmode-icon--sun {
	    opacity: 0;
	    transform: scale(0.78) rotate(-22deg);
	}

	.app-shell-header__darkmode-icon--moon {
	    opacity: 1;
	    transform: scale(1) rotate(0deg);
	}

	html.gtuit-dark-mode .app-shell-header__darkmode-icon--sun {
	    opacity: 1;
	    transform: scale(1) rotate(0deg);
	}

	html.gtuit-dark-mode .app-shell-header__darkmode-icon--moon {
	    opacity: 0;
	    transform: scale(0.78) rotate(22deg);
	}

	.app-shell-header__darkmode-btn[aria-pressed="true"] .app-shell-header__darkmode-icon--sun {
	    opacity: 1;
	    transform: scale(1) rotate(0deg);
	}

		.app-shell-header__darkmode-btn[aria-pressed="true"] .app-shell-header__darkmode-icon--moon {
		    opacity: 0;
		    transform: scale(0.78) rotate(22deg);
		}

	.app-shell-header__weather {
	    height: var(--app-shell-control-height, 48px);
	    min-height: var(--app-shell-control-height, 48px);
	    border-radius: 999px;
	    border: 1px solid rgba(148, 163, 184, 0.28);
	    background: rgba(255, 255, 255, 0.35);
	    color: rgba(15, 23, 42, 0.78);
	    display: inline-flex;
	    align-items: center;
	    gap: 8px;
	    padding: 0 14px;
	    cursor: pointer;
	    box-sizing: border-box;
	    font-size: 13px;
	    font-weight: 700;
	    letter-spacing: 0.01em;
	    white-space: nowrap;
	    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
	}

	.app-shell-header__weather-wrap {
	    position: relative;
	    display: inline-flex;
	    align-items: center;
	}

	.app-shell-header__weather:hover,
	.app-shell-header__weather:focus-visible {
	    background: rgb(var(--gtuit-accent-200-rgb) / 0.22);
	    border-color: rgb(var(--gtuit-accent-200-rgb) / 0.45);
	    color: var(--gtuit-accent-700);
	    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.35);
	    outline: none;
	}

	.app-shell-header__weather-wrap[data-loading="1"] .app-shell-header__weather {
	    cursor: default;
	    opacity: 0.88;
	}

	.app-shell-header__weather-wrap[data-loading="1"] .app-shell-header__weather::after {
	    content: "";
	    width: 12px;
	    height: 12px;
	    border-radius: 999px;
	    border: 2px solid rgba(148, 163, 184, 0.55);
	    border-top-color: rgba(59, 130, 246, 0.95);
	    margin-left: 2px;
	    animation: gtuitHeaderSpin 0.9s linear infinite;
	}

	.app-shell-header__weather-wrap[data-loading="error"] .app-shell-header__weather::after {
	    content: none;
	}

	.app-shell-header__weather-wrap[data-loading="error"] .app-shell-header__weather {
	    opacity: 0.7;
	}

	@keyframes gtuitHeaderSpin {
	    to {
	        transform: rotate(360deg);
	    }
	}

.app-shell-header__weather-wrap[hidden] {
    display: none;
}

.app-shell-header__theme[hidden],
.app-shell-header__darkmode-btn[hidden] {
    display: none;
}

	.app-shell-header__weather-icon,
	.app-shell-header__weather-day-icon {
	    display: inline-flex;
	    align-items: center;
	    justify-content: center;
	    color: rgba(59, 130, 246, 0.9);
	}

	.app-shell-header__weather-icon svg,
	.app-shell-header__weather-day-icon svg {
	    width: 18px;
	    height: 18px;
	    display: block;
	}

	.app-shell-header__weather-icon[data-icon="sun"],
	.app-shell-header__weather-day-icon[data-icon="sun"] {
	    color: rgba(245, 158, 11, 0.95);
	}

	.app-shell-header__weather-icon[data-icon="cloud-sun"],
	.app-shell-header__weather-day-icon[data-icon="cloud-sun"] {
	    color: rgba(59, 130, 246, 0.9);
	}

	.app-shell-header__weather-icon[data-icon="cloud"],
	.app-shell-header__weather-day-icon[data-icon="cloud"] {
	    color: rgba(100, 116, 139, 0.95);
	}

	.app-shell-header__weather-icon[data-icon="rain"],
	.app-shell-header__weather-icon[data-icon="drizzle"],
	.app-shell-header__weather-day-icon[data-icon="rain"],
	.app-shell-header__weather-day-icon[data-icon="drizzle"] {
	    color: rgba(14, 165, 233, 0.95);
	}

	.app-shell-header__weather-icon[data-icon="snow"],
	.app-shell-header__weather-day-icon[data-icon="snow"] {
	    color: rgba(226, 232, 240, 0.92);
	}

	.app-shell-header__weather-icon[data-icon="thunder"],
	.app-shell-header__weather-day-icon[data-icon="thunder"] {
	    color: rgba(168, 85, 247, 0.92);
	}

	.app-shell-header__weather-icon[data-icon="fog"],
	.app-shell-header__weather-day-icon[data-icon="fog"] {
	    color: rgba(148, 163, 184, 0.95);
	}

	.app-shell-header__weather-temp {
	    font-weight: 800;
	}

	.app-shell-header__weather-label {
	    font-weight: 650;
	    color: rgba(15, 23, 42, 0.62);
	}

	.app-shell-header__weather-dropdown {
	    position: absolute;
	    top: calc(100% + 12px);
	    right: 0;
	    width: 360px;
	    max-width: min(360px, calc(100vw - 24px));
	    border-radius: 18px;
	    border: 1px solid rgba(148, 163, 184, 0.24);
	    background: rgba(15, 23, 42, 0.92);
	    color: rgba(248, 250, 252, 0.92);
	    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
	    backdrop-filter: blur(18px) saturate(140%);
	    -webkit-backdrop-filter: blur(18px) saturate(140%);
	    opacity: 0;
	    transform: translateY(10px);
	    pointer-events: none;
	    transition: opacity 180ms ease, transform 180ms ease;
	    z-index: 120;
	    padding: 12px;
	}

	.app-shell-header__weather-wrap:hover .app-shell-header__weather-dropdown,
	.app-shell-header__weather-wrap:focus-within .app-shell-header__weather-dropdown,
	.app-shell-header__weather-wrap.is-open .app-shell-header__weather-dropdown {
	    opacity: 1;
	    transform: translateY(0);
	    pointer-events: auto;
	}

	.app-shell-header__weather-dropdown-head {
	    display: flex;
	    flex-direction: column;
	    gap: 2px;
	    padding: 4px 2px 10px;
	    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
	    margin-bottom: 10px;
	}

	.app-shell-header__weather-dropdown-title {
	    font-weight: 800;
	    letter-spacing: -0.01em;
	}

	.app-shell-header__weather-dropdown-sub {
	    font-size: 12px;
	    color: rgba(226, 232, 240, 0.72);
	}

	.app-shell-header__weather-days {
	    display: grid;
	    grid-auto-flow: column;
	    grid-auto-columns: minmax(86px, 1fr);
	    gap: 10px;
	    overflow-x: auto;
	    padding-bottom: 4px;
	    overscroll-behavior: contain;
	    -webkit-overflow-scrolling: touch;
	}

	.app-shell-header__weather-day {
	    border-radius: 14px;
	    border: 1px solid rgba(148, 163, 184, 0.16);
	    background: rgba(2, 6, 23, 0.35);
	    padding: 10px 10px 9px;
	    display: grid;
	    gap: 8px;
	    justify-items: start;
	}

	.app-shell-header__weather-dow {
	    font-size: 12px;
	    font-weight: 750;
	    letter-spacing: 0.02em;
	    color: rgba(226, 232, 240, 0.82);
	}

	.app-shell-header__weather-day-icon {
	    display: inline-flex;
	    align-items: center;
	    justify-content: center;
	}

	.app-shell-header__weather-day-icon svg {
	    width: 20px;
	    height: 20px;
	}

	.app-shell-header__weather-temps {
	    font-size: 12px;
	    font-weight: 750;
	    color: rgba(248, 250, 252, 0.9);
	}

	body.is-dark .app-shell-header__weather,
	html.wp-dark-mode-active body .app-shell-header__weather,
	html[data-wp-dark-mode-active] body .app-shell-header__weather {
	    background: rgba(2, 6, 23, 0.25);
	    border-color: rgba(148, 163, 184, 0.2);
	    color: rgba(226, 232, 240, 0.9);
	}

	body.is-dark .app-shell-header__weather:hover,
	body.is-dark .app-shell-header__weather:focus-visible,
	html.wp-dark-mode-active body .app-shell-header__weather:hover,
	html.wp-dark-mode-active body .app-shell-header__weather:focus-visible,
	html[data-wp-dark-mode-active] body .app-shell-header__weather:hover,
	html[data-wp-dark-mode-active] body .app-shell-header__weather:focus-visible {
	    background: rgb(var(--gtuit-accent-500-rgb) / 0.18);
	    border-color: rgb(var(--gtuit-accent-400-rgb) / 0.3);
	    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-400-rgb) / 0.25);
	    color: rgba(248, 250, 252, 0.92);
	}

	body.is-dark .app-shell-header__weather-label,
	html.wp-dark-mode-active body .app-shell-header__weather-label,
	html[data-wp-dark-mode-active] body .app-shell-header__weather-label {
	    color: rgba(226, 232, 240, 0.68);
	}

	@media (max-width: 768px) {
	    .app-shell-header__weather-wrap {
	        display: none;
	    }
	}

	.app-shell-header__alerts {
	    position: relative;
	    padding: 4px 0;
	}

.app-shell-header__alert-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: transparent;
    color: rgba(15, 23, 42, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.app-shell-header__alert-btn:hover,
.app-shell-header__alert-btn:focus-visible {
    background: rgb(var(--gtuit-accent-200-rgb) / 0.22);
    color: var(--gtuit-accent-700);
    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.45);
    outline: none;
}

.app-shell-header__alert-btn .dashicons {
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-shell-header__alert-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.app-shell-header__alerts:hover .app-shell-header__alert-dropdown,
.app-shell-header__alerts:focus-within .app-shell-header__alert-dropdown,
.app-shell-header__alert-dropdown:hover,
.app-shell-header__alerts.is-open .app-shell-header__alert-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.app-shell-header__alert-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
    z-index: 30;
}

.app-shell-header__alert-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.app-shell-header__alert-filter {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.95);
    color: rgba(51, 65, 85, 0.95);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-shell-header__alert-filter:hover,
.app-shell-header__alert-filter:focus-visible {
    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.45);
    color: var(--gtuit-accent-700);
    outline: none;
}

.app-shell-header__alert-filter.is-active {
    background: rgb(var(--gtuit-accent-600-rgb) / 0.18);
    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.4);
    color: var(--gtuit-accent-700);
}

.app-shell-header__alert-filter[disabled],
.app-shell-header__alert-filter[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.app-shell-header__alert-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: rgba(30, 41, 59, 0.85);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-shell-header__alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.app-shell-header__alert-group {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.9);
    padding: 2px 6px 0;
}

.app-shell-header__alert-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    color: inherit;
}

.app-shell-header__alert-item[data-alert-item] {
    cursor: pointer;
}

.app-shell-header__alert-item[data-alert-item]:hover,
.app-shell-header__alert-item[data-alert-item]:focus-visible {
    background: rgba(226, 232, 240, 0.8);
}

.app-shell-header__alert-item:focus-visible {
    outline: 2px solid rgba(var(--gtuit-accent-600-rgb), 0.55);
    outline-offset: 2px;
}

.app-shell-header__alert-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgb(var(--gtuit-accent-600-rgb) / 0.18);
    color: var(--gtuit-accent-700);
    min-width: 92px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-shell-header__alert-body {
    min-width: 0;
}

.app-shell-header__alert-title {
    margin: 0;
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.3;
}

.app-shell-header__alert-meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(71, 85, 105, 0.85);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.app-shell-header__alert-footer {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.app-shell-header__alert-link {
    font-weight: 700;
    font-size: 12px;
    color: var(--gtuit-accent-700);
    text-decoration: none;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

.app-shell-header__alert-link:hover,
.app-shell-header__alert-link:focus-visible,
.app-shell-header__alert-link--button:hover,
.app-shell-header__alert-link--button:focus-visible {
    text-decoration: underline;
    color: var(--gtuit-accent-700);
}

.app-shell-header__alert-link--button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
    cursor: pointer;
    color: var(--gtuit-accent-700);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    min-height: 0;
    min-width: 0;
}

.app-shell-header__alert-link--button:hover,
.app-shell-header__alert-link--button:focus-visible,
.app-shell-header__alert-link--button:active {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.app-shell-header__alert-empty {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: rgba(71, 85, 105, 0.9);
}

.app-shell-header__alert-filter-empty {
    margin: 6px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.8);
    font-size: 12px;
    color: rgba(71, 85, 105, 0.9);
    text-align: center;
}

/* Search input reset (keep layout intact). */
#app-shell-header-search-wrapper {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

#app-shell-header-search-wrapper input {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 100%;
    min-width: 0;
    cursor: text;
}
.app-shell-header__profile {
    position: relative;
}

.app-shell-header__theme {
    position: relative;
}

.app-shell-header__theme-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--app-shell-control-height, 48px);
    height: var(--app-shell-control-height, 48px);
    min-width: var(--app-shell-control-height, 48px);
    max-width: var(--app-shell-control-height, 48px);
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: transparent;
    color: rgba(15, 23, 42, 0.75);
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

	.app-shell-header__theme-btn:hover,
	.app-shell-header__theme.is-open .app-shell-header__theme-btn,
	.app-shell-header__theme-btn:focus-visible {
    background: rgb(var(--gtuit-accent-200-rgb) / 0.22);
    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.25);
    color: var(--gtuit-accent-700);
    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.45);
	    outline: none;
	}

	.app-shell-header__party-btn {
	    display: inline-flex;
	    align-items: center;
	    justify-content: center;
	    height: var(--app-shell-control-height, 38px);
	    padding: 0 14px;
	    border-radius: 999px;
	    border: 1px dashed rgba(148, 163, 184, 0.45);
	    background: transparent;
	    color: rgba(15, 23, 42, 0.65);
	    cursor: pointer;
	    font-weight: 700;
	    font-size: 13px;
	    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
	}

	.app-shell-header__party-btn:hover,
	.app-shell-header__party-btn:focus-visible {
	    background: rgb(var(--gtuit-accent-200-rgb) / 0.22);
	    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.25);
	    color: var(--gtuit-accent-700);
	    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.45);
	    outline: none;
	}

	html.gtuit-party-mode .app-shell-header__party-btn {
	    border-style: solid;
	    background: rgb(var(--gtuit-accent-200-rgb) / 0.22);
	    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.3);
	    color: var(--gtuit-accent-700);
	}

.app-shell-header__theme-swatch {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--gtuit-accent-600);
    box-shadow: 0 0 0 5px rgb(var(--gtuit-accent-600-rgb) / 0.12);
}

html[data-gtuit-theme="rainbow"] .app-shell-header__theme-swatch {
    background: conic-gradient(from 90deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6);
}

.app-shell-header__theme-text {
    line-height: 1;
}

.app-shell-header__theme-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
    z-index: 60;
}

.app-shell-header__theme.is-open .app-shell-header__theme-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.app-shell-header__theme-option {
    width: 100%;
    appearance: none;
    border: 1px solid transparent;
    background: rgba(248, 250, 252, 0.92);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.82);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-shell-header__theme-option-label {
    flex: 1 1 auto;
    text-align: left;
}

.app-shell-header__theme-option-check {
    margin-left: auto;
    font-size: 16px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.app-shell-header__theme-option[aria-pressed="true"] .app-shell-header__theme-option-check {
    opacity: 1;
    transform: scale(1);
}

.app-shell-header__theme-option + .app-shell-header__theme-option {
    margin-top: 8px;
}

.app-shell-header__theme-option:hover,
.app-shell-header__theme-option:focus-visible {
    background: rgb(var(--gtuit-accent-200-rgb) / 0.18);
    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.18);
    outline: none;
}

	.app-shell-header__theme-option[aria-checked="true"] {
	    background: rgb(var(--gtuit-accent-200-rgb) / 0.28);
	    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.26);
	    color: var(--gtuit-accent-700);
	}

			.app-shell-header__theme-option--party {
			    border-style: dashed;
			    margin-top: 10px;
			}

		html.gtuit-party-mode .app-shell-header__theme-option--party {
		    border-style: solid;
		    background: rgb(var(--gtuit-accent-200-rgb) / 0.28);
		    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.3);
	    color: var(--gtuit-accent-700);
	}

	.app-shell-header__theme-option-swatch {
	    width: 14px;
	    height: 14px;
	    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.12);
    flex: 0 0 auto;
}

.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="blue"] { background: #2563eb; }
.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="purple"] { background: #7c3aed; }
.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="red"] { background: #e11d48; }
.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="emerald"] { background: #059669; }
.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="pink"] { background: #db2777; }
	.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="orange"] { background: #ea580c; }
			.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="rainbow"] { background: conic-gradient(from 90deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444); }
			.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="party"] { background: conic-gradient(from 90deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444); }
			.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="classic"] { background: linear-gradient(180deg, #ffffff, #e5e7eb); }
			.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="black"] { background: #0f172a; }
			.app-shell-header__theme-option-swatch[data-gtuit-theme-swatch="custom"] { background: var(--gtuit-custom-accent-600, var(--gtuit-accent-600)); }

	.app-shell-header__theme-custom {
	    margin-top: 10px;
	    padding-top: 10px;
	    border-top: 1px solid rgba(148, 163, 184, 0.18);
	}

.app-shell-header__theme-custom-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    cursor: pointer;
}

.app-shell-header__theme-custom-label:hover {
    background: rgb(var(--gtuit-accent-200-rgb) / 0.14);
    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.18);
}

.app-shell-header__theme-custom-text {
    font-weight: 700;
    color: rgba(15, 23, 42, 0.82);
    font-size: 13px;
}

.app-shell-header__theme-custom-input {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.app-shell-header__theme-custom-input::-webkit-color-swatch-wrapper {
    padding: 4px;
}

.app-shell-header__theme-custom-input::-webkit-color-swatch {
    border: none;
    border-radius: 10px;
}

.app-shell-header__theme-custom-reset {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.92);
    box-sizing: border-box;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-shell-header__theme-custom-reset:hover,
.app-shell-header__theme-custom-reset:focus-visible {
    background: rgb(var(--gtuit-accent-200-rgb) / 0.14);
    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.18);
    color: var(--gtuit-accent-700);
    outline: none;
}

body.is-dark .app-shell-header__theme-menu,
html.wp-dark-mode-active body .app-shell-header__theme-menu,
html[data-wp-dark-mode-active] body .app-shell-header__theme-menu {
    background: rgba(2, 6, 23, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.6);
}

body.is-dark .app-shell-header__theme-option,
html.wp-dark-mode-active body .app-shell-header__theme-option,
html[data-wp-dark-mode-active] body .app-shell-header__theme-option {
    background: rgba(148, 163, 184, 0.12);
    color: rgba(226, 232, 240, 0.88);
}

body.is-dark .app-shell-header__theme-option:hover,
body.is-dark .app-shell-header__theme-option:focus-visible,
html.wp-dark-mode-active body .app-shell-header__theme-option:hover,
html.wp-dark-mode-active body .app-shell-header__theme-option:focus-visible,
html[data-wp-dark-mode-active] body .app-shell-header__theme-option:hover,
html[data-wp-dark-mode-active] body .app-shell-header__theme-option:focus-visible {
    background: rgb(var(--gtuit-accent-600-rgb) / 0.18);
    border-color: rgb(var(--gtuit-accent-200-rgb) / 0.2);
}

body.is-dark .app-shell-header__theme-option[aria-checked="true"],
html.wp-dark-mode-active body .app-shell-header__theme-option[aria-checked="true"],
html[data-wp-dark-mode-active] body .app-shell-header__theme-option[aria-checked="true"] {
    background: rgb(var(--gtuit-accent-600-rgb) / 0.22);
    border-color: rgb(var(--gtuit-accent-200-rgb) / 0.24);
    color: #ffffff;
}

body.is-dark .app-shell-header__theme-custom,
html.wp-dark-mode-active body .app-shell-header__theme-custom,
html[data-wp-dark-mode-active] body .app-shell-header__theme-custom {
    border-top-color: rgba(148, 163, 184, 0.18);
}

body.is-dark .app-shell-header__theme-custom-label,
html.wp-dark-mode-active body .app-shell-header__theme-custom-label,
html[data-wp-dark-mode-active] body .app-shell-header__theme-custom-label {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
}

body.is-dark .app-shell-header__theme-custom-label:hover,
html.wp-dark-mode-active body .app-shell-header__theme-custom-label:hover,
html[data-wp-dark-mode-active] body .app-shell-header__theme-custom-label:hover {
    background: rgb(var(--gtuit-accent-600-rgb) / 0.18);
    border-color: rgb(var(--gtuit-accent-200-rgb) / 0.2);
}

body.is-dark .app-shell-header__theme-custom-text,
html.wp-dark-mode-active body .app-shell-header__theme-custom-text,
html[data-wp-dark-mode-active] body .app-shell-header__theme-custom-text {
    color: rgba(226, 232, 240, 0.88);
}

body.is-dark .app-shell-header__theme-custom-input,
html.wp-dark-mode-active body .app-shell-header__theme-custom-input,
html[data-wp-dark-mode-active] body .app-shell-header__theme-custom-input {
    background: rgba(2, 6, 23, 0.4);
    border-color: rgba(148, 163, 184, 0.22);
}

.app-shell-header__profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 50;
    opacity: 0;
    transform: translateY(6px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.app-shell-header__profile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.app-shell-header__profile-meta {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding-bottom: 10px;
}

.app-shell-header__profile-name {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.app-shell-header__profile-email {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(71, 85, 105, 0.9);
}

.app-shell-header__profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-shell-header__profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.15s ease;
}

.app-shell-header__profile-link:hover,
.app-shell-header__profile-link:focus-visible {
    background: rgba(148, 163, 184, 0.18);
}

.app-shell-header__profile-link--logout {
    color: #b91c1c;
}

.app-shell-header__theme-shortcode {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: var(--app-shell-control-height, 38px);
    padding: 0 12px;
}

.app-shell-header__theme-shortcode > *,
.app-shell-header__theme-shortcode .wp-dark-mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.app-shell-header__theme-shortcode .wp-dark-mode-switch {
    border-radius: 50% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.app-shell-header__theme-shortcode .wp-dark-mode-switch label,
.app-shell-header__theme-shortcode .wp-dark-mode-switch .wp-dark-mode-switcher,
.app-shell-header__theme-shortcode .wp-dark-mode-switch .wp-dark-mode-switcher > span {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: transparent !important;
}

.app-shell-header__theme-shortcode .wp-dark-mode-switch input,
.app-shell-header__theme-shortcode .wp-dark-mode-switch label::before,
.app-shell-header__theme-shortcode .wp-dark-mode-switch label::after,
.app-shell-header__theme-shortcode .wp-dark-mode-switcher span::before,
.app-shell-header__theme-shortcode .wp-dark-mode-switcher span::after {
    display: none !important;
}

.app-shell-header__theme-shortcode .wp-dark-mode-switcher span {
    font-size: 18px !important;
    line-height: 1 !important;
}

.app-shell-header__search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--app-shell-control-height, 38px);
    width: clamp(220px, 32vw, 360px);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 0 44px 0 18px;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

.app-shell-header__search:hover {
    border-color: rgb(var(--gtuit-accent-200-rgb) / 0.6);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.35);
}

.app-shell-header__search:focus-within {
    border-color: rgb(var(--gtuit-accent-200-rgb) / 0.62);
    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.5);
}

.app-shell-header__search input {
    flex: 1 1 auto;
    border: none !important;
    background: transparent;
    font-size: 14px;
    color: #0f172a;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    border-radius: 0;
    outline: none !important;
}

.app-shell-header__search input:hover {
    background: transparent;
}

.app-shell-header__search input::placeholder {
    color: rgba(15, 23, 42, 0.55);
}

.app-shell-header__search input:focus {
    outline: none;
}

.app-shell-header__search input:focus-visible,
.app-shell-header__search input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.app-shell-header__search input::-moz-focus-inner {
    border: 0;
}

.app-shell-header__search input::-webkit-search-decoration,
.app-shell-header__search input::-webkit-search-cancel-button,
.app-shell-header__search input::-webkit-search-results-button,
.app-shell-header__search input::-webkit-search-results-decoration {
    display: none;
}

.app-shell-header__search-icon {
    color: rgba(15, 23, 42, 0.6);
}

.app-shell-header__search-clear {
    border: none;
    background: rgba(148, 163, 184, 0.2);
    color: rgba(15, 23, 42, 0.65);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.app-shell-header__search-clear:hover,
.app-shell-header__search-clear:focus-visible {
    background: rgba(148, 163, 184, 0.32);
    color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.app-shell-header__search-clear .dashicons {
    font-size: 16px;
}

.app-shell-header__search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    right: auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.18);
    padding: 10px;
    z-index: 60;
    width: min(640px, 92vw);
    transform: translateX(-50%);
    max-height: 520px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.app-shell-header__search-filters {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 4px 10px;
    background: #fff;
}

.app-shell-header__search-filter {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: rgba(15, 23, 42, 0.75);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-shell-header__search-filter[disabled],
.app-shell-header__search-filter[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.app-shell-header__search-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: rgba(30, 41, 59, 0.85);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-shell-header__search-filter.is-active {
    background: rgb(var(--gtuit-accent-600-rgb) / 0.16);
    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.45);
    color: var(--gtuit-accent-700);
}

.app-shell-header__search-filter:hover:not([disabled]),
.app-shell-header__search-filter:focus-visible:not([disabled]) {
    background: rgb(var(--gtuit-accent-600-rgb) / 0.2);
    border-color: rgb(var(--gtuit-accent-600-rgb) / 0.5);
    color: var(--gtuit-accent-700);
}

.app-shell-header__search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-shell-header__search-group {
    margin: 6px 0;
}

.app-shell-header__search-group-label {
    margin: 8px 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.5);
    padding-left: 4px;
}

.app-shell-header__search-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-shell-header__search-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.15s ease;
    cursor: pointer;
    min-width: 0;
}

.app-shell-header__search-item:hover,
.app-shell-header__search-item:focus-visible,
.app-shell-header__search-item.is-active {
    background: rgba(96, 165, 250, 0.15);
}

.app-shell-header__search-item-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell-header__search-item-subtitle {
    margin: 0;
    font-size: 12px;
    color: rgba(71, 85, 105, 0.9);
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell-header__search-status {
    font-size: 13px;
    text-align: center;
    padding: 12px;
    color: rgba(15, 23, 42, 0.75);
}

body.is-dark .app-shell-header__breadcrumbs,
body.is-dark .app-shell-header__crumb,
body.is-dark .app-shell-header__crumb-current {
    color: rgba(248, 250, 252, 0.9);
}

body.is-dark .app-shell-header__crumb::after {
    color: rgba(248, 250, 252, 0.45);
}

body.is-dark .app-shell-header__crumb-link {
    color: rgba(226, 232, 240, 0.65);
}

body.is-dark .app-shell-header__crumb-link:hover,
body.is-dark .app-shell-header__crumb-link:focus {
    color: #93c5fd;
}

@media (max-width: 768px) {
    .app-shell-header__inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .app-shell-header__sidebar-toggle {
        display: none;
    }

    .app-shell-header__controls {
        width: 100%;
        gap: 8px;
        padding-right: 6px;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        position: relative;
    }

	    .app-shell-header__search {
	        display: flex;
	        flex: 1 1 auto;
	        width: auto;
	        min-height: var(--app-shell-control-height, 36px);
	        height: var(--app-shell-control-height, 36px);
	        background: #f4f7ff;
	        border: 1px solid #dde4f4;
	        border-radius: 999px;
	        padding: 0 18px;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
        min-width: 0;
        max-width: calc(100% - 92px);
        position: static;
    }

    .app-shell-header__search input {
        font-size: 16px;
    }

    .app-shell-header__search-results {
        left: 50%;
        right: auto;
        width: min(640px, 94vw);
        transform: translateX(-50%);
    }

    .app-shell-header__search-clear {
        display: none;
    }

    .app-shell-header__search-toggle {
        display: none;
    }

    .app-shell-header__profile-btn,
    .app-shell-header__alert-btn {
        width: 36px;
        height: 36px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .app-shell-header__inner {
        padding: 10px 12px;
    }

    .app-shell-header__profile-btn {
        font-size: 18px;
    }
}

/* Normalize hover/focus styling across header controls to match the alerts button. */
.app-shell-header :is(
    .app-shell-header__search-toggle,
    .app-shell-header__theme-btn,
    .app-shell-header__darkmode-btn,
    .app-shell-header__weather,
    .app-shell-header__alert-btn,
    .app-shell-header__profile-btn
):hover,
.app-shell-header :is(
    .app-shell-header__search-toggle,
    .app-shell-header__theme-btn,
    .app-shell-header__darkmode-btn,
    .app-shell-header__weather,
    .app-shell-header__alert-btn,
    .app-shell-header__profile-btn
):focus-visible,
.app-shell-header__theme.is-open .app-shell-header__theme-btn,
.app-shell-header__weather-wrap.is-open .app-shell-header__weather {
    background: rgb(var(--gtuit-accent-200-rgb) / 0.22);
    color: var(--gtuit-accent-700);
    box-shadow: 0 0 0 2px rgb(var(--gtuit-accent-200-rgb) / 0.45);
    outline: none;
    border-color: rgba(148, 163, 184, 0.28);
}
