/* Shared layout controls stay outside the animated page content. */
:is(button, a, input, select, textarea, [role="button"]) { -webkit-tap-highlight-color: transparent; }
:is(button, a, [role="button"]):focus:not(:focus-visible) { outline: none; }
.dashboard-branch-picker { cursor: pointer; text-align: left; font: inherit; }
.dashboard-branch-picker > .busy-button-content { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.dashboard-branch-picker strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-branch-picker .busy-button-content > svg { flex-shrink: 0; width: 20px; transform: rotate(90deg); }
.dashboard-info-card.payroll { grid-template-columns: auto minmax(0,1fr) auto; min-height: 0; }
.dashboard-info-card.payroll > .info-orb { grid-column: 1; grid-row: 1; }
.dashboard-info-card.payroll > .payroll-card-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.dashboard-info-card.payroll > .payroll-card-copy strong { overflow-wrap: anywhere; }
.dashboard-info-card.payroll > .payroll-card-copy p { margin: 6px 0; }
.dashboard-info-card.payroll > .payroll-card-copy small { color: var(--muted); }
.dashboard-info-card.payroll > b { position: static; grid-column: 3; grid-row: 1; align-self: end; margin: 0; font-size: clamp(20px,3vw,30px); }
.dashboard-info-card.payroll > svg { grid-column: 3; grid-row: 1; justify-self: end; margin: 4px 0 0; }
.dashboard-info-card.payroll > .payroll-progress { position: static; grid-column: 1 / -1; grid-row: 2; width: 100%; height: 10px; margin-top: 4px; }
.profile-hero > .profile-avatar { width: 88px; height: 88px; flex: 0 0 88px; aspect-ratio: 1; border-radius: 22px; }
.profile-hero > .profile-avatar > .photo-avatar { border-radius: 19px; aspect-ratio: 1; }
.profile-photo-preview .photo-avatar { border-radius: 16px; aspect-ratio: 1; }

@media screen and (max-width: 767.98px) {
    :root { --mobile-toolbar-height: 60px; --mobile-tabs-height: 68px; }
    html { scroll-padding-top: calc(var(--mobile-toolbar-height) + env(safe-area-inset-top,0px) + 12px); scroll-padding-bottom: calc(var(--mobile-tabs-height) + env(safe-area-inset-bottom,0px) + 12px); }
    .workspace-frame { min-width: 0; }
    .workspace-frame .app-shell { width: 100%; min-width: 0; max-width: 100%; padding-bottom: calc(var(--mobile-tabs-height) + env(safe-area-inset-bottom,0px) + 20px); }
    .workspace-frame .app-shell:has(> .app-header) { padding-top: calc(var(--mobile-toolbar-height) + env(safe-area-inset-top,0px)); }
    .workspace-frame .app-shell > .app-header {
        position: fixed; inset: 0 0 auto; z-index: 45;
        width: 100%; height: calc(var(--mobile-toolbar-height) + env(safe-area-inset-top,0px));
        padding: calc(8px + env(safe-area-inset-top,0px)) 16px 8px;
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        border: 0; box-shadow: none; background: #f5f5ff;
    }
    .workspace-frame .app-header .brand-mark { display: flex; align-items: baseline; gap: 5px; font-size: 25px; line-height: 1; letter-spacing: -.5px; }
    .workspace-frame .app-header .brand-mark small { font-size: 17px; }
    .workspace-frame .app-header .brand-mark b { display: none; }
    .workspace-frame .app-header .header-actions { gap: 8px; }
    .workspace-frame .app-header .header-actions :is(.icon-button,.avatar-orb) { width: 38px; height: 38px; flex: 0 0 38px; border: 0; box-shadow: none; }
    .workspace-frame .app-header .header-actions .icon-button { background: transparent; border-radius: 12px; }
    .workspace-frame .app-header .header-actions svg { width: 21px; height: 21px; }
    .workspace-frame .app-content { min-width: 0; padding: 10px 16px 24px; }
    .workspace-frame .bottom-nav {
        position: fixed; z-index: 46; inset: auto 0 0;
        transform: none; translate: none; width: 100%; max-width: 100%;
        height: calc(var(--mobile-tabs-height) + env(safe-area-inset-bottom,0px));
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom,0px));
        display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
        border-radius: 26px 26px 0 0;
    }
    .workspace-frame .bottom-nav > :is(a,button) { min-width: 0; min-height: 0; height: 56px; padding: 5px 2px; border-radius: 24px; }
    .workspace-frame .bottom-nav svg { width: 22px; height: 22px; }
    .workspace-frame .bottom-nav > a.active { background: #eee9ff; color: #6c5ce7; }
    .workspace-frame .bottom-nav :is(a,button) span { font-size: 10px; line-height: 1.3; }
    .sticky-action-bar { bottom: calc(var(--mobile-tabs-height) + env(safe-area-inset-bottom,0px) + 10px); }
    .hr-dashboard-page { min-width: 0; gap: 16px; }
    .hr-dashboard-page > * { min-width: 0; max-width: 100%; }
    .dashboard-filters { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 8px; }
    .dashboard-filters .dashboard-filter { min-width: 0; height: 48px; padding: 0 12px; gap: 8px; }
    .dashboard-filters .dashboard-filter strong { font-size: 12px; }
    .dashboard-filters .filter-symbol { width: 22px; height: 22px; flex: 0 0 22px; }
    .dashboard-filters .filter-symbol svg { width: 19px; height: 19px; }
    .dashboard-filters .dashboard-filter > svg { width: 16px; }
    .approval-queue-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; width: 100%; }
    .approval-queue-grid .approval-queue-card { min-width: 0; min-height: 114px; padding: 12px 7px; grid-template-columns: minmax(0,1fr); grid-template-rows: 32px 25px auto; gap: 5px; justify-items: center; text-align: center; border-radius: 20px; }
    .approval-queue-card > .queue-icon { grid-column: 1; grid-row: 1; width: 32px; height: 32px; }
    .approval-queue-card > .queue-icon svg { width: 19px; height: 19px; }
    .approval-queue-card > strong { grid-column: 1; grid-row: 2; font-size: 24px; }
    .approval-queue-card > small { grid-column: 1; grid-row: 3; max-width: 100%; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
    .approval-queue-card > svg { display: none; }
    .dashboard-info-card.payroll { padding: 18px 16px; gap: 12px; }
    .dashboard-info-card.payroll > .info-orb { width: 44px; height: 44px; }
    .dashboard-info-card.payroll strong { font-size: 17px; margin-top: 0; }
    .dashboard-info-card.payroll > .payroll-card-copy p { font-size: 14px; }
    .dashboard-info-card.payroll > b { font-size: 22px; }
    .dashboard-info-card.holiday { grid-template-columns: 44px minmax(0,1fr) 20px; padding: 18px 16px; }
    .dashboard-info-card.holiday .info-orb { width: 44px; height: 44px; }
    .dashboard-info-card.holiday :is(strong,h3,p) { overflow-wrap: anywhere; }
    .employee-today-page .today-reference-heading { gap: 8px; align-items: flex-start; }
    .employee-today-page .today-reference-heading h1 { font-size: 23px; line-height: 1.45; letter-spacing: -.5px; overflow-wrap: anywhere; }
    .employee-today-page .today-reference-heading p { font-size: 14px; margin: 4px 0 0; }
    .employee-today-page .weather-chip { width: 42px; height: 36px; flex: 0 0 42px; margin-top: 5px; }
    .employee-today-page .dashboard-head-text { margin: 8px 0 12px; }
    .employee-today-page .today-scan-reference { height: 54px; margin: 8px 0 0; padding: 0 12px; grid-template-columns: 32px minmax(0,1fr) 36px; border-radius: 20px; }
    .employee-today-page .today-scan-reference strong { font-size: 17px; }
    .employee-today-page .today-scan-reference > svg { width: 22px; height: 22px; }
    .employee-today-page .today-scan-reference > span { width: 34px; height: 34px; }
    .employee-today-page .employee-shift-stage { height: clamp(230px,67vw,290px); margin: 0; }
    .employee-today-page .employee-shift-core { width: 142px; height: 142px; }
    .employee-today-page .employee-shift-core > strong { font-size: 22px; margin-top: 6px; }
    .employee-today-page .employee-shift-core > b { font-size: 12px; }
    .employee-today-page .shift-brief { width: 34px; height: 34px; }
    .employee-today-page .shift-edge { top: 50%; transform: translateY(-10%); }
    .employee-today-page .shift-edge strong { font-size: 13px; }
    .employee-today-page .shift-edge span { font-size: 10px; }
    .profile-hero { align-items: flex-start; gap: 14px; }
    .profile-hero > div:last-child { min-width: 0; }
    .profile-hero h1 { font-size: 25px; line-height: 1.6; overflow-wrap: anywhere; }
}
