* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --app-max-width: 1400px;
    --space-2xs: 0.375rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --surface-muted: #f7fafc;
    --surface-soft: #f8fafc;
    --border-soft: #e2e8f0;
    --text-muted: #718096;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    background: #f5f7fa;
    color: #333;
    min-height: 100vh;
}

html,
body {
    width: 100%;
}

.app-hidden {
    display: none !important;
}

.app-tour-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.auth-shell {
    min-height: 100vh;
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(102, 126, 234, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(118, 75, 162, 0.2), transparent 28%),
        linear-gradient(180deg, #eef2ff 0%, #f5f7fa 100%);
}

.auth-card {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    padding: var(--space-xl);
    box-shadow: 0 20px 45px rgba(51, 65, 85, 0.12);
    backdrop-filter: blur(14px);
}

.auth-hero {
    margin-bottom: 1.5rem;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3c56c7;
    background: rgba(102, 126, 234, 0.12);
}

.auth-hero h1 {
    font-size: 2.1rem;
    line-height: 1.1;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.auth-hero p {
    max-width: 48rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
}

.auth-mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-card-section {
    margin-bottom: 0;
}

.auth-section-copy {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.auth-action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-signup-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.auth-signup-header {
    margin-bottom: 1rem;
}

.auth-signup-header h3 {
    font-size: 1.05rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.auth-signup-header p {
    color: #4a5568;
}

.auth-account-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
}

.auth-account-card {
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auth-account-card:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.12);
}

.auth-account-label,
.auth-account-email,
.auth-account-description {
    display: block;
}

.auth-account-label {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.auth-account-email {
    color: #3c56c7;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.auth-account-description,
.auth-empty {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: var(--app-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-role {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.25rem;
}

/* Navigation Tabs */
.nav-tabs {
    background: white;
    border-bottom: 2px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-tabs-container {
    max-width: var(--app-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
}

.nav-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.nav-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.nav-tab.hidden {
    display: none;
}

.manage-shifts-subtabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.manage-shifts-subtab {
    padding: 0.75rem 1rem;
    border: 1px solid #d2d6dc;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.manage-shifts-subtab:hover {
    border-color: #667eea;
    color: #667eea;
}

.manage-shifts-subtab.active {
    background: #edf2ff;
    border-color: #667eea;
    color: #3c56c7;
}

.manage-shifts-subcontent {
    display: none;
}

.manage-shifts-subcontent.active {
    display: block;
}

.admin-subtabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.admin-subtab {
    padding: 0.75rem 1rem;
    border: 1px solid #d2d6dc;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-subtab:hover {
    border-color: #667eea;
    color: #667eea;
}

.admin-subtab.active {
    background: #edf2ff;
    border-color: #667eea;
    color: #3c56c7;
}

.admin-subcontent {
    display: none;
}

.admin-subcontent.active {
    display: block;
}

.admin-users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.admin-users-list-card,
.admin-user-profile-card {
    margin-bottom: 0;
}

.admin-users-list-card {
    min-height: 0;
}

.admin-users-table-container {
    max-height: min(68vh, 820px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
}

.admin-users-table-container table {
    margin: 0;
}

.admin-users-table-container .responsive-table {
    min-width: 0;
    table-layout: fixed;
}

.admin-users-table-container th,
.admin-users-table-container td {
    padding: 0.85rem 0.9rem;
}

.admin-users-table-container th:nth-child(1),
.admin-users-table-container td:nth-child(1) {
    width: 24%;
}

.admin-users-table-container th:nth-child(2),
.admin-users-table-container td:nth-child(2) {
    width: 29%;
}

.admin-users-table-container th:nth-child(3),
.admin-users-table-container td:nth-child(3) {
    width: 24%;
}

.admin-users-table-container th:nth-child(4),
.admin-users-table-container td:nth-child(4) {
    width: 9%;
    text-align: center;
    white-space: nowrap;
}

.admin-users-table-container th:nth-child(5),
.admin-users-table-container td:nth-child(5) {
    width: 14%;
}

.admin-users-table-container thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f7fafc;
}

.admin-user-row.selected {
    background: #edf2ff;
}

.admin-user-row {
    cursor: pointer;
}

.table-user-primary {
    color: #2d3748;
    font-weight: 600;
    word-break: break-word;
}

.table-user-secondary {
    margin-top: 0.2rem;
    color: #718096;
    font-size: 0.82rem;
    word-break: break-word;
}

.table-user-secondary.compact {
    margin-top: 0.35rem;
}

.admin-user-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: #edf2ff;
    color: #3c56c7;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-users-table-container .btn-sm {
    justify-content: center;
    width: 100%;
    white-space: nowrap;
}

.admin-user-inline-row {
    background: transparent;
}

.admin-user-inline-cell {
    padding-top: 0;
    background: white;
}

.admin-user-inline-cell::before {
    display: none;
}

.admin-user-profile-inline {
    padding-top: 0.2rem;
}

.admin-user-profile-inline .account-summary-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.admin-user-profile-inline .admin-user-role-actions .btn {
    width: 100%;
}

.admin-user-summary-grid {
    margin-bottom: 1rem;
}

.admin-user-role-editor {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.admin-user-role-title {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.admin-role-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-role-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #2d3748;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-role-option.selected {
    background: #edf2ff;
    border-color: #667eea;
    color: #3c56c7;
}

.admin-role-option input {
    width: 1rem;
    height: 1rem;
    accent-color: #667eea;
}

.admin-user-role-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-pantries-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    align-items: start;
}

.admin-pantries-list-card,
.admin-pantry-detail-card {
    margin-bottom: 0;
}

.admin-pantry-search-group {
    margin-bottom: 1rem;
}

.admin-pantries-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: min(68vh, 820px);
    overflow-y: auto;
    padding-right: 0.25rem;
}

.admin-pantry-card {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: #fff;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    transition: all 0.2s ease;
}

.admin-pantry-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.admin-pantry-card.selected {
    border-color: #667eea;
    background: #edf2ff;
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.16);
}

.admin-pantry-card-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-pantry-card-name {
    color: #1f2937;
    font-weight: 800;
    word-break: break-word;
}

.admin-pantry-card-address {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.35;
    word-break: break-word;
}

.admin-pantry-card-count {
    flex: 0 0 auto;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-pantry-card.selected .admin-pantry-card-count {
    background: #fff;
    color: #3c56c7;
}

.admin-pantry-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-pantry-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-pantry-detail-header h3 {
    margin: 0 0 0.25rem;
    color: #1f2937;
    font-size: 1.15rem;
}

.admin-pantry-detail-header p {
    margin: 0;
    color: #64748b;
    line-height: 1.4;
}

.admin-pantry-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-pantry-lead-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-pantry-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-pantry-section-heading h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1rem;
}

.admin-pantry-section-heading span {
    color: #64748b;
    font-size: 0.83rem;
    font-weight: 700;
}

.admin-pantry-assigned-leads,
.admin-pantry-lead-results {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.admin-pantry-lead-results {
    max-height: 18rem;
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-gutter: stable;
}

.admin-pantry-assigned-lead,
.admin-pantry-lead-option {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-pantry-lead-option {
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.admin-pantry-lead-option:hover:not(:disabled) {
    border-color: #667eea;
    background: #edf2ff;
}

.admin-pantry-lead-option:disabled {
    cursor: wait;
    opacity: 0.68;
}

.admin-pantry-lead-name {
    color: #1f2937;
    font-weight: 700;
    word-break: break-word;
}

.admin-pantry-lead-email {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.84rem;
    word-break: break-word;
}

.admin-pantry-lead-empty {
    margin: 0;
    padding: 0.9rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

.shift-view-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shift-view-section {
    margin-bottom: 0;
}

.shift-view-filter-card {
    margin-bottom: 0;
}

.shift-view-header {
    align-items: flex-start;
}

.shift-view-copy {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.shift-view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.shift-view-search-group {
    flex: 1 1 280px;
    min-width: 0;
}

.shift-view-search-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
}

.shift-view-search-group input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.shift-view-search-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.shift-view-filter-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.shift-status-filter {
    padding: 0.65rem 1rem;
    border: 1px solid #d8e0eb;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.shift-status-filter:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.shift-status-filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.18);
}

.shift-view-summary {
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.manage-shifts-workspace {
    display: grid;
    gap: 1rem;
}

.manage-shifts-toolbar-card {
    margin-bottom: 0;
}

.manage-shifts-toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.manage-shifts-ops-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
    gap: 1rem;
    align-items: start;
}

.manage-shifts-queue,
.manage-shifts-panel {
    min-width: 0;
}

.manage-shifts-queue {
    max-height: min(72vh, 860px);
    min-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    scrollbar-width: thin;
}

.manage-shifts-card-list {
    display: grid;
    gap: 0.75rem;
}

.manage-shift-card {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.manage-shift-card:hover,
.manage-shift-card:focus {
    border-color: #93c5fd;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.manage-shift-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), var(--shadow-soft);
}

.manage-shift-card-top,
.manage-shift-card-meta,
.manage-shift-card-coverage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manage-shift-card-top {
    justify-content: space-between;
}

.manage-shift-card-title {
    min-width: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.manage-shift-card-meta,
.manage-shift-card-coverage {
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.88rem;
}

.manage-shift-card-coverage {
    justify-content: space-between;
}

.coverage-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.coverage-needs {
    background: #fef2f2;
    color: #991b1b;
}

.coverage-filled {
    background: #dcfce7;
    color: #166534;
}

.coverage-ongoing,
.coverage-neutral {
    background: #e0f2fe;
    color: #075985;
}

.coverage-past,
.coverage-canceled {
    background: #f1f5f9;
    color: #475569;
}

.coverage-meter {
    display: block;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.coverage-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #22c55e;
}

.manage-shifts-panel {
    position: sticky;
    top: 1rem;
}

.manage-shifts-panel-card {
    margin-bottom: 0;
}

.manage-shifts-mobile-back {
    display: none;
    margin-bottom: 0.85rem;
}

.manage-shift-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.manage-shift-detail-badges,
.manage-shift-panel-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.coverage-summary-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.coverage-summary-panel > div {
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.coverage-summary-number {
    display: block;
    color: #111827;
    font-size: 1.4rem;
    font-weight: 800;
}

.coverage-summary-label {
    color: #64748b;
    font-size: 0.85rem;
}

.manage-shift-section {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.manage-shift-section h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1rem;
}

.manage-shift-role-list {
    display: grid;
    gap: 0.65rem;
}

.manage-shift-role-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.manage-shift-role-row > div:first-child,
.manage-shift-role-right {
    display: grid;
    gap: 0.35rem;
}

.manage-shift-role-row span {
    color: #64748b;
    font-size: 0.86rem;
}

.manage-shift-role-right {
    min-width: 130px;
    justify-items: end;
}

/* Main Content */
.main-content {
    max-width: var(--app-max-width);
    margin: 2rem auto;
    padding: 0 2rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.section-muted-card {
    background: var(--surface-muted);
    margin-bottom: 1rem;
}

.section-muted-header {
    border-bottom: none;
    padding-bottom: 0;
}

.section-muted-title {
    font-size: 1rem;
    color: #4a5568;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-control {
    width: 100%;
}

.lead-search-shell,
.pantry-search-shell {
    position: relative;
}

.lead-search-selected,
.pantry-search-selected {
    margin-top: 0.65rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.lead-search-selected-name,
.pantry-search-selected-name {
    font-weight: 700;
    color: #1f2937;
}

.lead-search-selected-email,
.pantry-search-selected-address {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: #64748b;
}

.lead-search-clear,
.pantry-search-clear {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 1.1rem;
    cursor: pointer;
    flex: 0 0 auto;
}

.lead-search-clear:hover,
.pantry-search-clear:hover {
    background: #cbd5e1;
}

.lead-search-results,
.pantry-search-results {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.lead-search-result,
.pantry-search-result {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: none;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lead-search-result:last-child,
.pantry-search-result:last-child {
    border-bottom: none;
}

.lead-search-result:hover,
.pantry-search-result:hover {
    background: #f8fafc;
}

.lead-search-result-name,
.pantry-search-result-name {
    font-weight: 600;
    color: #1f2937;
}

.lead-search-result-email,
.pantry-search-result-address,
.lead-search-empty,
.pantry-search-empty {
    font-size: 0.84rem;
    color: #64748b;
}

.lead-search-empty,
.pantry-search-empty {
    padding: 0.9rem 1rem;
}

.form-action-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-broadcast-help {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
}

.btn-broadcast-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-take-attendance {
    background: linear-gradient(135deg, #0f766e 0%, #22c55e 100%);
    color: #fff;
}

.btn-take-attendance:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.btn-cancel-shift {
    background: linear-gradient(135deg, #ef4444 0%, #be123c 100%);
    color: #fff;
}

.btn-cancel-shift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.3);
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
}

.btn-compact {
    padding: 0.5rem 0.95rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #f7fafc;
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

table tr:hover {
    background: #f7fafc;
}

.shift-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.table-empty-cell,
.empty-state {
    text-align: center;
    color: var(--text-muted);
}

.table-empty-cell {
    padding: 1rem;
}

.empty-state {
    padding: 2rem 1rem;
}

.empty-state-compact {
    padding: 1rem 0;
}

.muted-text {
    color: var(--text-muted);
}

.lead-pill {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #2d3748;
    font-size: 0.85rem;
}

.error-state-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid #f56565;
    border-radius: 12px;
    background: #fed7d7;
    color: #742a2a;
}

.error-state-card h3 {
    margin-bottom: 1rem;
}

.shift-registrations-row td {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.shift-registrations {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    padding: 1rem;
}

.shift-registrations-loading {
    color: #4a5568;
    font-weight: 500;
}

.registrations-title {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.registration-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.registration-role {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f8fafc;
}

.registration-role-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.registration-role-title {
    font-weight: 600;
    color: #2d3748;
}

.registration-role-capacity {
    font-size: 0.8rem;
    color: #4a5568;
}

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

.registrant-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid #e2e8f0;
    padding: 0.6rem 0;
}

.registrant-item:first-child {
    border-top: none;
    padding-top: 0;
}

.registrant-main {
    min-width: 0;
}

.registrant-name {
    font-weight: 500;
    color: #2d3748;
}

.registrant-email {
    color: #4a5568;
    font-size: 0.85rem;
    word-break: break-word;
}

.registrant-status {
    align-self: flex-start;
    background: #edf2f7;
    color: #2d3748;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.registrant-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.registrant-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-attendance:disabled {
    opacity: 0.55;
}

.btn-attendance-showup:not(:disabled) {
    border: 1px solid #38a169;
    color: #2f855a;
    background: #f0fff4;
}

.btn-attendance-noshow:not(:disabled) {
    border: 1px solid #e53e3e;
    color: #c53030;
    background: #fff5f5;
}

.attendance-window-note {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.attendance-window-open {
    color: #2f855a;
}

.attendance-window-closed {
    color: #c53030;
}

.registrations-empty {
    color: #718096;
    font-size: 0.875rem;
}

.registrations-error {
    color: #c53030;
    font-weight: 500;
}

.my-shifts-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.my-shifts-summary-shell {
    margin-bottom: 1rem;
}

.my-shifts-upcoming-count {
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.my-shifts-view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.25rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    width: min(100%, 320px);
}

.my-shifts-view-toggle::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    border-radius: 999px;
    background: white;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.my-shifts-view-toggle[data-active-view="list"]::before {
    transform: translateX(100%);
}

.my-shifts-view-button {
    border: none;
    background: transparent;
    color: #4b5563;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 180ms ease, transform 180ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.my-shifts-view-button.active {
    color: #3730a3;
}

.my-shifts-view-button:hover {
    color: #312e81;
}

.my-shifts-view-button:active {
    transform: scale(0.98);
}

.my-shifts-calendar-shell {
    margin-top: 0.25rem;
}

.my-shifts-view-panel + .my-shifts-view-panel {
    margin-top: 0.25rem;
}

.my-shifts-view-panel:not(.app-hidden) {
    animation: my-shifts-panel-enter 180ms ease;
}

@keyframes my-shifts-panel-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.my-shifts-list-toolbar {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.my-shifts-list-search-group,
.my-shifts-list-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.my-shifts-list-search-group {
    flex: 1 1 280px;
}

.my-shifts-list-filter-group {
    flex: 0 1 220px;
}

.my-shifts-list-filter-group label,
.my-shifts-list-search-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.my-shifts-list-search-group input,
.my-shifts-list-filter-group select {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
}

.my-shifts-list-search-group input:focus,
.my-shifts-list-filter-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.my-shifts-list-filter-actions {
    display: flex;
    align-items: flex-end;
}

.my-shift-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    background: #f8fafc;
}

.my-shift-section-title {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.my-shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.my-shift-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.my-shift-card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.my-shift-title {
    font-size: 1rem;
    color: #2d3748;
    margin: 0;
}

.my-shift-role {
    margin-top: 0.25rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.my-shift-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-badge {
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    background: #edf2f7;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.attendance-badge-attended {
    background: #c6f6d5;
    color: #22543d;
}

.attendance-badge-missed {
    background: #fed7d7;
    color: #742a2a;
}

.attendance-badge-pending {
    background: #e2e8f0;
    color: #2d3748;
}

.signup-status-confirmed {
    background: #c6f6d5;
    color: #22543d;
}

.signup-status-pending-confirmation {
    background: #fefcbf;
    color: #744210;
}

.signup-status-waitlisted {
    background: #e9d8fd;
    color: #553c9a;
}

.signup-status-no-show {
    background: #feebc8;
    color: #7b341e;
}

.signup-status-cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.shift-status-open {
    background: #bee3f8;
    color: #2a4365;
}

.shift-status-full {
    background: #e9d8fd;
    color: #553c9a;
}

.shift-status-cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.my-shift-meta p {
    margin-bottom: 0.3rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.my-shift-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.reconfirm-note {
    font-size: 0.8rem;
    color: #975a16;
    background: #fefcbf;
    border: 1px solid #ecc94b;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
}

.my-shift-empty,
.my-shift-empty-all {
    color: #718096;
    font-size: 0.9rem;
}

.my-shift-load-error {
    color: #c53030;
    font-weight: 500;
}

.credibility-summary {
    border: 1px solid #bee3f8;
    background: #ebf8ff;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.credibility-title {
    color: #2a4365;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.credibility-value {
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.credibility-detail {
    color: #2c5282;
    font-size: 0.875rem;
}

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

.account-summary-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 1rem;
}

.account-summary-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #718096;
    margin-bottom: 0.35rem;
}

.account-summary-value {
    color: #2d3748;
    font-size: 0.95rem;
    word-break: break-word;
}

.account-note {
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    color: #4a5568;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
}

.account-note.firebase-note {
    background: #ebf8ff;
    border-color: #90cdf4;
    color: #2c5282;
}

.account-note.memory-note {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #4a5568;
}

.account-note.account-note-success {
    background: #f0fff4;
    border-color: #9ae6b4;
    color: #22543d;
}

.account-note.delete-account-note {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #822727;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.show {
    display: block;
}

.message-success {
    background: #c6f6d5;
    border-left: 4px solid #48bb78;
    color: #22543d;
}

.message-error {
    background: #fed7d7;
    border-left: 4px solid #f56565;
    color: #742a2a;
}

.message-info {
    background: #bee3f8;
    border-left: 4px solid #4299e1;
    color: #2c5282;
}

/* Calendar/Shifts Grid */
.shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.shift-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    min-width: 0;
}

.shift-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.shift-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.shift-date {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

.shift-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-open {
    background: #c6f6d5;
    color: #22543d;
}

.status-full {
    background: #fed7d7;
    color: #742a2a;
}

.shift-roles {
    margin-top: 1rem;
}

.role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.role-item-main {
    min-width: 0;
    flex: 1;
}

.role-item-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.role-name {
    font-weight: 500;
    color: #2d3748;
}

.role-capacity {
    font-size: 0.875rem;
    color: #718096;
}

.capacity-full {
    color: #f56565;
    font-weight: 600;
}

.capacity-available {
    color: #48bb78;
    font-weight: 600;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pantry Selector */
.pantry-selector {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.pantry-selector-container {
    max-width: var(--app-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pantry-selector label {
    font-weight: 600;
    color: #4a5568;
}

.pantry-selector select {
    flex: 1;
    max-width: 400px;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.pantry-section {
    margin-bottom: 2rem;
}

.pantry-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.pantry-section-title {
    margin: 0;
    font-size: 1.15rem;
}

.pantry-section-subtitle {
    margin: 0.35rem 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.calendar-shell-card {
    overflow: hidden;
}

.calendar-shell-top {
    align-items: flex-start;
}

.calendar-shell-copy {
    margin-top: 0.35rem;
    color: #4a5568;
    line-height: 1.5;
}

.calendar-app {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.calendar-sidebar {
    background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.calendar-sidebar-backdrop {
    display: none;
}

.calendar-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-sidebar-title {
    font-size: 1rem;
    color: #1f2937;
}

.calendar-sidebar-copy {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.calendar-sidebar-close {
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

.calendar-mini-picker,
.calendar-filter-panel,
.calendar-legend-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.95rem;
}

.calendar-filter-panel,
.calendar-legend-panel {
    margin-top: 1rem;
}

.calendar-mini-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.calendar-mini-label {
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    flex: 1;
}

.calendar-nav-button {
    width: 2rem;
    height: 2rem;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: white;
    color: #334155;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-button:hover,
.calendar-view-button:hover,
.calendar-mini-day:hover,
.calendar-month-day-number:hover,
.calendar-more-link:hover {
    background: #eef2ff;
}

.calendar-mini-weekdays,
.calendar-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.calendar-mini-weekdays {
    margin-bottom: 0.45rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.calendar-mini-day {
    border: none;
    background: white;
    border-radius: 10px;
    padding: 0.45rem 0;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.calendar-mini-day.is-outside {
    color: #94a3b8;
}

.calendar-mini-day.is-today {
    border: 1px solid #60a5fa;
}

.calendar-mini-day.is-selected {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: white;
}

.calendar-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.calendar-filter-group:last-of-type {
    margin-bottom: 0;
}

.calendar-filter-group label,
.calendar-legend-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-filter-group input,
.calendar-filter-group select {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
}

.calendar-filter-group input:focus,
.calendar-filter-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.calendar-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.calendar-pantry-legend {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #374151;
    font-size: 0.92rem;
}

.calendar-legend-swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.calendar-main {
    min-width: 0;
}

.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.calendar-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calendar-nav-group,
.calendar-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.calendar-view-switch {
    background: #eef2ff;
    border-radius: 999px;
    padding: 0.2rem;
}

.calendar-view-button {
    border: none;
    background: transparent;
    color: #4b5563;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.calendar-view-button.active {
    background: white;
    color: #3730a3;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.14);
}

.calendar-sidebar-toggle {
    display: none;
}

.calendar-range-label {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
}

.calendar-active-filter-summary {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.calendar-filter-chip,
.calendar-filter-hint {
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.86rem;
}

.calendar-filter-chip {
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
}

.calendar-filter-hint {
    background: #f8fafc;
    color: #64748b;
}

.calendar-view-container {
    min-height: 520px;
}

.calendar-month-view,
.calendar-week-view,
.calendar-day-view,
.calendar-phone-view {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.calendar-month-weekdays,
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-month-weekdays {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-month-weekdays div {
    padding: 0.8rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-month-cell {
    min-height: 150px;
    padding: 0.65rem;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    background: white;
}

.calendar-month-cell:nth-child(7n) {
    border-right: none;
}

.calendar-month-cell.is-outside {
    background: #fbfdff;
}

.calendar-month-cell.is-selected {
    background: #f8faff;
}

.calendar-month-cell.is-today {
    box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.18);
}

.calendar-month-day-number {
    border: none;
    background: transparent;
    color: #1f2937;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 0.55rem;
}

.calendar-month-events {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.calendar-month-event {
    border: none;
    border-left: 4px solid transparent;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    text-align: left;
    cursor: pointer;
    min-width: 0;
}

.calendar-month-event-time,
.calendar-month-event-title,
.calendar-month-event-subtitle,
.calendar-month-event-badge,
.calendar-month-event-span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-month-event-time {
    font-size: 0.74rem;
    font-weight: 700;
}

.calendar-month-event-title {
    font-size: 0.82rem;
}

.calendar-month-event-subtitle {
    margin-top: 0.12rem;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.86;
}

.calendar-month-event-badge {
    margin-top: 0.16rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

.calendar-month-event-span {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.82;
}

.calendar-more-link {
    border: none;
    background: transparent;
    color: #4f46e5;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    padding: 0.15rem 0;
}

.calendar-week-header {
    display: grid;
    grid-template-columns: 80px repeat(7, minmax(0, 1fr));
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-week-time-gutter {
    border-right: 1px solid #e2e8f0;
}

.calendar-week-day-header {
    padding: 0.85rem 0.5rem;
    text-align: center;
    font-weight: 700;
    color: #475569;
    border-right: 1px solid #e2e8f0;
}

.calendar-week-day-header:last-child {
    border-right: none;
}

.calendar-week-day-header.is-today {
    background: #eef2ff;
    color: #3730a3;
}

.calendar-week-body {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
}

.calendar-week-time-column {
    background: #fbfdff;
    border-right: 1px solid #e2e8f0;
}

.calendar-week-time-slot {
    height: 64px;
    padding: 0.35rem 0.6rem;
    font-size: 0.74rem;
    color: #64748b;
    border-bottom: 1px solid #edf2f7;
}

.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-week-day-column {
    border-right: 1px solid #e2e8f0;
}

.calendar-week-day-column:last-child {
    border-right: none;
}

.calendar-week-day-surface {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
}

.calendar-week-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #edf2f7;
}

.calendar-week-event {
    position: absolute;
    border: none;
    border-left: 4px solid transparent;
    border-radius: 12px;
    padding: 0.5rem 0.55rem;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.calendar-week-event-title,
.calendar-week-event-meta,
.calendar-week-event-subtitle,
.calendar-week-event-badge,
.calendar-week-event-span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-week-event-title {
    font-size: 0.84rem;
    font-weight: 700;
}

.calendar-week-event-subtitle {
    margin-top: 0.18rem;
    font-size: 0.74rem;
    font-weight: 700;
    opacity: 0.88;
}

.calendar-week-event-meta {
    margin-top: 0.2rem;
    font-size: 0.74rem;
}

.calendar-week-event-badge {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.88;
}

.calendar-week-event-span {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.8;
}

.calendar-day-header {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.calendar-day-header h3 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.calendar-day-header p {
    color: #64748b;
}

.calendar-day-agenda {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.calendar-day-card {
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4f46e5;
    border-radius: 14px;
    background: white;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
}

.calendar-day-card-time {
    color: #4338ca;
    font-weight: 700;
    font-size: 0.86rem;
}

.calendar-day-card-title {
    margin-top: 0.3rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.calendar-day-card-subtitle {
    margin-top: 0.25rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
}

.calendar-day-card-badge {
    margin-top: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-day-card-span {
    margin-top: 0.3rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-day-card-meta {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.9rem;
}

.calendar-phone-view {
    padding: 1rem;
}

.calendar-phone-summary {
    margin-bottom: 1rem;
}

.calendar-phone-summary h3 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.calendar-phone-summary p {
    color: #64748b;
}

.calendar-phone-pantry-section {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    margin-bottom: 1rem;
}

.calendar-phone-pantry-header {
    padding: 1rem;
    border-left: 4px solid #4f46e5;
    background: #f8fafc;
}

.calendar-phone-pantry-header h4 {
    color: #1f2937;
}

.calendar-phone-pantry-header p {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.88rem;
}

.calendar-phone-day-groups {
    padding: 0.9rem 1rem 1rem;
}

.calendar-phone-day-group + .calendar-phone-day-group {
    margin-top: 1rem;
}

.calendar-phone-day-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.calendar-phone-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.calendar-phone-event {
    border: none;
    border-left: 4px solid #4f46e5;
    border-radius: 14px;
    padding: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.calendar-phone-event-time,
.calendar-phone-event-title,
.calendar-phone-event-subtitle,
.calendar-phone-event-badge,
.calendar-phone-event-meta,
.calendar-phone-event-span {
    display: block;
}

.calendar-phone-event-time {
    font-size: 0.8rem;
    font-weight: 700;
}

.calendar-phone-event-title {
    margin-top: 0.2rem;
    font-size: 0.96rem;
    font-weight: 700;
}

.calendar-phone-event-subtitle {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.88;
}

.calendar-phone-event-badge {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.88;
}

.calendar-phone-event-span {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.84;
}

.calendar-phone-event-meta {
    margin-top: 0.25rem;
    font-size: 0.84rem;
}

.modal-panel-calendar {
    width: min(100%, 640px);
}

.calendar-modal-header {
    border-top: 4px solid #4f46e5;
    padding-top: 0.35rem;
}

.calendar-modal-pantry-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 700;
    font-size: 0.8rem;
}

.calendar-modal-title {
    margin-top: 0.9rem;
    color: #111827;
}

.calendar-modal-time,
.calendar-modal-location,
.calendar-modal-span {
    margin-top: 0.35rem;
    color: #4b5563;
}

.calendar-modal-span {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7c3aed;
}

.calendar-modal-status-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.calendar-status-badge-past {
    background: #e2e8f0;
    color: #475569;
}

.calendar-modal-section {
    margin-top: 1.4rem;
}

.calendar-modal-section h3 {
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.calendar-modal-role-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-modal-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: #f8fafc;
}

.calendar-modal-role-title {
    font-weight: 700;
    color: #1f2937;
}

.calendar-modal-role-info {
    flex: 1 1 auto;
    min-width: 0;
}

.calendar-modal-role-meta {
    margin-top: 0.2rem;
    font-size: 0.86rem;
    color: #64748b;
}

.calendar-modal-role-capacity {
    margin-top: 0.55rem;
}

.calendar-modal-role-capacity-track {
    overflow: hidden;
    width: 100%;
    height: 0.5rem;
    border-radius: 999px;
    background: #dbe5f1;
}

.calendar-modal-role-capacity-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    transition: width 180ms ease;
}

.calendar-modal-role-capacity-fill.is-full {
    background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
}

.calendar-modal-role-capacity-fill.is-cancelled {
    background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
}

.calendar-modal-role-capacity-label {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #64748b;
}

.calendar-modal-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.calendar-modal-action-note {
    font-size: 0.88rem;
    color: #64748b;
}

.volunteer-pantries-shell {
    padding: 1.35rem;
}

.volunteer-pantries-header {
    margin-bottom: 0.6rem;
}

.volunteer-pantries-count {
    font-size: 0.85rem;
    color: #718096;
    white-space: nowrap;
    align-self: center;
}

.volunteer-pantries-toolbar {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.volunteer-pantries-search-group,
.volunteer-pantries-sort-group {
    display: flex;
    flex-direction: column;
}

.volunteer-pantries-search-group {
    flex: 1 1 320px;
}

.volunteer-pantries-sort-group {
    flex: 0 0 180px;
}

.volunteer-pantries-search-group label,
.volunteer-pantries-sort-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.volunteer-pantries-search-group input,
.volunteer-pantries-sort-group select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.volunteer-pantries-search-group input:focus,
.volunteer-pantries-sort-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.volunteer-pantries-filter-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.volunteer-pantries-filter {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.volunteer-pantries-filter.active {
    background: #edf2ff;
    border-color: #667eea;
    color: #3c56c7;
}

.volunteer-pantries-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 1rem;
    align-items: start;
    min-height: 0;
}

.volunteer-pantries-summary {
    margin-bottom: 0.7rem;
    color: #64748b;
    font-size: 0.9rem;
}

.volunteer-pantries-list-column {
    min-height: 0;
}

.volunteer-pantries-list-shell {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    padding: 0.8rem;
}

.volunteer-pantries-list {
    display: grid;
    gap: 0.8rem;
    max-height: min(68vh, 760px);
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    padding-top: 5px;
}

.volunteer-pantries-list::-webkit-scrollbar {
    width: 8px;
}

.volunteer-pantries-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.volunteer-pantries-list::-webkit-scrollbar-track {
    background: transparent;
}

.volunteer-pantry-list-entry {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    border-radius: 22px;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.volunteer-pantry-list-entry.is-selected {
    padding: 0.45rem;
    border: 1px solid #c7d2fe;
    background: linear-gradient(180deg, #f5f7ff 0%, #eef3ff 100%);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.12);
}

.volunteer-pantry-list-card,
.volunteer-pantry-detail-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.volunteer-pantry-list-card {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 1rem 1.05rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.volunteer-pantry-list-card:hover,
.volunteer-pantry-list-card.is-selected {
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.12);
}

.volunteer-pantry-list-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: start;
}

.volunteer-pantry-list-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.volunteer-pantry-list-address,
.volunteer-pantry-list-meta,
.volunteer-pantry-preview-item-meta,
.volunteer-pantry-preview-empty {
    color: #64748b;
}

.volunteer-pantry-list-address {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.volunteer-pantry-list-meta {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
}

.volunteer-pantry-list-hint {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.volunteer-pantry-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
}

.volunteer-pantry-pill.is-subscribed {
    background: #edfdf4;
    border-color: #86efac;
    color: #166534;
}

.volunteer-pantry-detail-card {
    padding: 1.2rem;
    position: sticky;
    top: 1rem;
    max-height: min(68vh, 760px);
    overflow-y: auto;
}

.volunteer-pantry-detail-card-inline {
    position: static;
    top: auto;
    width: 100%;
    max-height: none;
    margin-top: -0.05rem;
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    animation: volunteerPantryInlineSlide 0.24s ease-out;
}

.volunteer-pantry-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.volunteer-pantry-detail-title {
    color: #111827;
}

.volunteer-pantry-detail-address {
    margin-top: 0.3rem;
    color: #64748b;
}

.volunteer-pantry-detail-section + .volunteer-pantry-detail-section {
    margin-top: 1rem;
}

.volunteer-pantry-detail-section h3 {
    color: #1f2937;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}

.volunteer-pantry-leads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.volunteer-pantry-lead-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    padding: 0.32rem 0.78rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.volunteer-pantry-preview-list {
    display: grid;
    gap: 0.7rem;
}

.volunteer-pantry-preview-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.9rem;
    background: #f8fafc;
}

.volunteer-pantry-preview-item-title {
    font-weight: 700;
    color: #1f2937;
}

.volunteer-pantry-preview-item-time {
    margin-top: 0.25rem;
    color: #4338ca;
    font-size: 0.88rem;
    font-weight: 700;
}

.volunteer-pantry-preview-item-meta {
    margin-top: 0.28rem;
    font-size: 0.84rem;
}

.volunteer-pantry-preview-more {
    margin-top: 0.65rem;
    color: #5b6b8c;
    font-size: 0.83rem;
    font-weight: 600;
}

@keyframes volunteerPantryInlineSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1023px) {
    .admin-pantries-layout {
        grid-template-columns: 1fr;
    }

    .admin-pantries-list {
        max-height: min(44vh, 520px);
    }

    .volunteer-pantries-layout {
        display: block;
    }

    .volunteer-pantries-detail-column {
        display: none;
    }

    .volunteer-pantries-list-shell {
        padding: 0.7rem;
    }

    .volunteer-pantries-list {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .volunteer-pantry-detail-card {
        position: static;
    }
}

.role-input-group {
    margin-top: 1rem;
}

.role-input-actions {
    display: flex;
    align-items: flex-end;
}

.role-input-actions .btn {
    width: 100%;
}

.recurrence-card {
    margin-top: 1rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--border-soft);
    box-shadow: none;
}

.recurrence-card-header {
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recurrence-copy {
    margin: 0.25rem 0 0;
    color: #64748b;
    line-height: 1.45;
}

.recurrence-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #dbe4f0;
    background: #fff;
    white-space: nowrap;
}

.recurrence-toggle input {
    accent-color: #667eea;
}

.recurrence-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.recurrence-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.recurrence-fields {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.recurrence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

.recurrence-inline-input {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.recurrence-inline-input input {
    width: min(140px, 100%);
}

.recurrence-helper,
.recurrence-note {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.recurrence-weekday-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.recurrence-weekday-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.recurrence-weekday-chip.active {
    background: #edf2ff;
    border-color: #667eea;
    color: #3c56c7;
}

.recurrence-end-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.recurrence-end-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #334155;
}

.recurrence-end-date-group {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.recurrence-end-date-group input[type="date"] {
    min-width: 170px;
}

.recurrence-badge {
    background: #edf2ff;
    color: #3c56c7;
}

.recurring-scope-copy {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.6;
}

.recurring-scope-actions {
    display: grid;
    gap: 0.75rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
}

.modal-overlay-notification {
    z-index: 2000;
}

.modal-panel {
    position: relative;
    width: min(100%, 560px);
    max-height: min(90vh, 720px);
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.modal-panel-sm {
    width: min(100%, 480px);
}

.modal-panel-notification {
    width: min(100%, 420px);
    padding: 2rem 2rem 1.5rem;
}

.modal-title {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: #1f2937;
}

.modal-close-button {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    line-height: 1;
    z-index: 1;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-form-group {
    margin-bottom: 1rem;
}

.modal-form-group-spacious {
    margin-bottom: 1.5rem;
}

.modal-panel-help-broadcast {
    width: min(100%, 680px);
}

.modal-panel-take-attendance {
    width: min(100%, 760px);
}

.help-broadcast-summary {
    display: grid;
    gap: 0.25rem;
    margin: -0.5rem 0 1rem;
    color: #4b5563;
}

.help-broadcast-summary strong {
    color: #111827;
}

.help-broadcast-selected-wrap,
.help-broadcast-results-wrap {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.help-broadcast-selected-label,
.help-broadcast-count {
    font-size: 0.85rem;
    color: #4b5563;
}

.help-broadcast-selected {
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.help-broadcast-selected-empty,
.help-broadcast-empty {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.help-broadcast-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.35rem 0.5rem 0.35rem 0.65rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.9rem;
}

.help-broadcast-chip button {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    cursor: pointer;
    line-height: 1;
}

.help-broadcast-results-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f2937;
}

.help-broadcast-results {
    display: grid;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.help-broadcast-candidate {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    text-align: left;
    cursor: pointer;
}

.help-broadcast-candidate:hover,
.help-broadcast-candidate:focus {
    border-color: #60a5fa;
    background: #f8fbff;
}

.help-broadcast-candidate-main,
.help-broadcast-candidate-meta {
    display: grid;
    gap: 0.2rem;
}

.help-broadcast-candidate-main span,
.help-broadcast-candidate-meta span {
    color: #6b7280;
    font-size: 0.85rem;
}

.help-broadcast-candidate-meta {
    text-align: right;
    white-space: nowrap;
}

.take-attendance-list {
    display: grid;
    gap: 0.65rem;
    max-height: min(56vh, 520px);
    overflow-y: auto;
    padding-right: 0.2rem;
}

.take-attendance-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0.5rem;
}

.take-attendance-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.take-attendance-main span {
    color: #6b7280;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.take-attendance-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.take-attendance-actions .registrant-status {
    align-self: center;
}

.notification-modal-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.notification-modal-text {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    word-break: break-word;
}

/* Base layout: laptop / desktop (>= 1024px) */
@media (min-width: 1024px) {
    .nav-tabs-container {
        overflow: visible;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .auth-shell {
        padding: 1.5rem;
    }

    .auth-card,
    .card {
        padding: 1.5rem;
    }

    .header {
        padding: 1.25rem 1.5rem;
    }

    .header-content {
        gap: 1rem;
    }

    .header-left h1 {
        font-size: 1.35rem;
    }

    .header-right {
        gap: 0.75rem;
    }

    .nav-tabs-container {
        padding: 0.75rem 1.5rem;
        gap: 0.75rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .nav-tabs-container::-webkit-scrollbar {
        display: none;
    }

    .nav-tab {
        flex: 0 0 auto;
        padding: 0.7rem 1rem;
        border: 1px solid var(--border-soft);
        border-radius: 999px;
        border-bottom-width: 1px;
        background: #fff;
    }

    .nav-tab:hover {
        background: #f8fafc;
    }

    .nav-tab.active {
        border-color: #667eea;
        background: #edf2ff;
    }

    .main-content {
        margin: 1.5rem auto;
        padding: 0 1.5rem;
    }

    .pantry-selector {
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pantry-selector-container {
        align-items: flex-start;
    }

    .pantry-selector select {
        max-width: 320px;
    }

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

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

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

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

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

    .admin-users-layout {
        grid-template-columns: 1fr;
    }

    .shift-actions {
        gap: 0.4rem;
    }

    .shift-view-toolbar {
        align-items: stretch;
    }

    .my-shifts-list-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
        gap: 0.85rem;
    }

    .my-shifts-list-search-group {
        grid-column: 1 / -1;
    }

    .my-shifts-list-search-group,
    .my-shifts-list-filter-group,
    .my-shifts-list-filter-actions {
        min-width: 0;
        width: 100%;
    }

    .my-shifts-list-filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .manage-shifts-ops-layout {
        grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
        gap: 0.85rem;
    }

    .manage-shifts-panel {
        position: sticky;
        top: 0.75rem;
    }

    .manage-shifts-queue {
        max-height: min(70vh, 720px);
        min-height: 420px;
    }

    .manage-shift-card,
    .manage-shifts-panel-card {
        padding: 1rem;
    }

    .manage-shift-card-title {
        font-size: 0.95rem;
    }

    .manage-shift-panel-actions .btn {
        padding-inline: 0.8rem;
    }

    .manage-shifts-panel .form-grid,
    .manage-shifts-panel .recurrence-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .responsive-table {
        min-width: 720px;
    }

    .admin-users-table-container {
        max-height: min(62vh, 680px);
    }

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

    .modal-panel {
        padding: 1.35rem;
    }

    .calendar-app {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 1rem;
    }

    .calendar-range-label {
        font-size: 1.15rem;
    }

    .calendar-month-cell {
        min-height: 132px;
    }

    .calendar-month-event-title,
    .calendar-week-event-meta {
        font-size: 0.72rem;
    }
}

/* Phone */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .auth-shell {
        padding: 1rem;
        align-items: stretch;
    }

    .auth-card {
        max-width: 100%;
        padding: 1.25rem;
        border-radius: 18px;
        margin: auto;
    }

    .auth-hero h1 {
        font-size: 1.7rem;
    }

    .header {
        padding: 1.15rem 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 0.9rem;
        text-align: center;
    }

    .header-left h1 {
        font-size: 1.25rem;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .header-right .btn {
        width: 100%;
        justify-content: center;
    }

    .user-info {
        text-align: center;
    }

    .nav-tabs-container {
        padding: 0.75rem 1rem;
        gap: 0.6rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .nav-tabs-container::-webkit-scrollbar {
        display: none;
    }

    .nav-tab {
        flex: 0 0 auto;
        padding: 0.7rem 0.95rem;
        border: 1px solid var(--border-soft);
        border-radius: 999px;
        border-bottom-width: 1px;
        background: #fff;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .nav-tab.active {
        border-color: #667eea;
        background: #edf2ff;
    }

    .manage-shifts-subtabs,
    .admin-subtabs {
        gap: 0.6rem;
    }

    .manage-shifts-toolbar-header,
    .manage-shift-detail-header,
    .manage-shift-role-row {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-shifts-toolbar-header .btn,
    .manage-shift-panel-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .manage-shifts-mobile-back {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }

    .manage-shifts-workspace[data-mobile-view="queue"] .manage-shifts-panel,
    .manage-shifts-workspace:not([data-mobile-view="queue"]) .manage-shifts-queue,
    .manage-shifts-workspace:not([data-mobile-view="queue"]) .manage-shifts-toolbar-card {
        display: none;
    }

    .manage-shifts-workspace[data-mobile-view="create"] .manage-shifts-panel,
    .manage-shifts-workspace[data-mobile-view="detail"] .manage-shifts-panel,
    .manage-shifts-workspace[data-mobile-view="edit"] .manage-shifts-panel {
        display: block;
    }

    .manage-shifts-ops-layout {
        display: block;
    }

    .manage-shift-card {
        padding: 0.85rem;
        gap: 0.5rem;
        box-shadow: none;
    }

    .manage-shift-card:hover,
    .manage-shift-card:focus {
        transform: none;
    }

    .manage-shift-card-top {
        align-items: flex-start;
    }

    .manage-shift-card-title {
        font-size: 0.95rem;
    }

    .manage-shift-card-meta {
        gap: 0.4rem;
        font-size: 0.82rem;
    }

    .coverage-summary-panel {
        grid-template-columns: 1fr;
    }

    .manage-shift-role-right {
        min-width: 0;
        justify-items: stretch;
    }

    .manage-shifts-queue {
        max-height: none;
        overflow-y: visible;
    }

    .main-content {
        margin: 1rem auto 1.5rem;
        padding: 0 1rem;
    }

    .card {
        padding: 1.15rem;
        overflow-x: hidden;
        border-radius: 10px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .card-header .btn {
        width: 100%;
        justify-content: center;
    }

    .form-grid,
    .account-summary-grid,
    .my-shifts-grid,
    .registration-role-grid,
    .admin-users-layout,
    .admin-pantries-layout {
        grid-template-columns: 1fr;
    }

    .recurrence-grid {
        grid-template-columns: 1fr;
    }

    .form-action-row,
    .modal-actions {
        flex-direction: column;
    }

    .form-action-row .btn,
    .modal-actions .btn,
    .auth-action-row .btn,
    .manage-shifts-subtab,
    .admin-subtab {
        width: 100%;
        justify-content: center;
    }

    .pantry-selector {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .pantry-selector-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .pantry-selector select {
        max-width: none;
        width: 100%;
    }

    .shifts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shift-card,
    .my-shift-card {
        width: 100%;
        max-width: 100%;
    }

    .shift-header,
    .role-item,
    .my-shift-card-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .role-item-main,
    .role-item-action,
    .role-item-action .btn,
    .role-item .btn,
    .my-shift-actions .btn,
    .shift-actions .btn,
    .take-attendance-actions .btn,
    .registrant-actions .btn,
    .role-input-actions .btn {
        width: 100%;
    }

    .role-item-action,
    .my-shift-actions,
    .shift-actions,
    .take-attendance-actions {
        justify-content: stretch;
    }

    .take-attendance-row {
        flex-direction: column;
    }

    .shift-view-toolbar,
    .shift-view-filter-group,
    .volunteer-pantries-toolbar,
    .my-shifts-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .shift-view-search-group,
    .volunteer-pantries-search-group,
    .volunteer-pantries-sort-group,
    .my-shifts-list-search-group,
    .my-shifts-list-filter-group,
    .my-shifts-list-filter-actions {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .my-shifts-list-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .my-shifts-list-search-group {
        grid-column: auto;
    }

    .volunteer-pantry-list-head,
    .volunteer-pantry-detail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .volunteer-pantry-detail-head .btn {
        width: 100%;
        justify-content: center;
    }

    .recurrence-card-header {
        align-items: flex-start;
    }

    .recurrence-toggle {
        width: 100%;
        justify-content: center;
    }

    .recurrence-weekday-chip {
        flex: 1 1 calc(33.333% - 0.55rem);
        text-align: center;
    }

    .recurrence-inline-input {
        width: 100%;
    }

    .recurrence-inline-input input,
    .recurrence-end-options input[type="date"] {
        width: 100%;
    }

    .recurrence-end-date-group {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.55rem;
    }

    .shift-status-filter {
        width: 100%;
        text-align: center;
    }

    .shift-title,
    .shift-date,
    .role-name,
    .role-capacity,
    .my-shift-meta {
        word-break: break-word;
    }

    .my-shift-badges {
        justify-content: flex-start;
    }

    .my-shift-section {
        padding: 0.85rem;
    }

    .my-shifts-view-toggle {
        width: 100%;
    }

    .my-shifts-view-button,
    .my-shifts-list-filter-actions .btn,
    .calendar-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .registrant-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .registrant-right,
    .registrant-actions {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .modal-overlay {
        padding: 0.75rem;
    }

    .modal-panel,
    .modal-panel-notification {
        width: 100%;
        padding: 1.1rem;
        max-height: 88vh;
    }

    .modal-panel-help-broadcast,
    .modal-panel-take-attendance {
        width: min(100%, calc(100vw - 1.5rem));
    }

    .help-broadcast-results,
    .take-attendance-list {
        max-height: min(48vh, 420px);
        overflow-y: auto;
    }

    .modal-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-right: 1.75rem;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 0.75rem;
        padding: 0.35rem 0;
        border: 1px solid var(--border-soft);
        border-radius: 10px;
        background: white;
    }

    .responsive-table td {
        border: none;
        padding: 0.55rem 1rem;
    }

    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .responsive-table td[colspan]::before {
        display: none;
    }

    .table-container {
        overflow: visible;
    }

    .admin-users-table-container {
        max-height: none;
        overflow: visible;
        border: none;
        border-radius: 0;
    }

    .admin-users-table-container .responsive-table {
        table-layout: auto;
    }

    .calendar-shell-card {
        padding: 1rem;
    }

    .calendar-app {
        grid-template-columns: 1fr;
    }

    .calendar-sidebar-toggle,
    .calendar-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .calendar-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 340px);
        max-width: 340px;
        border-radius: 0 20px 20px 0;
        border-left: none;
        z-index: 1100;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

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

    .calendar-sidebar-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15, 23, 42, 0.38);
        z-index: 1090;
    }

    .calendar-toolbar {
        align-items: stretch;
    }

    .calendar-toolbar-left,
    .calendar-view-switch {
        width: 100%;
    }

    .calendar-toolbar-left {
        justify-content: space-between;
    }

    .calendar-view-switch {
        justify-content: space-between;
    }

    .calendar-view-button {
        flex: 1;
        text-align: center;
        padding-inline: 0.65rem;
    }

    .calendar-range-label {
        width: 100%;
        font-size: 1.05rem;
    }

    .calendar-active-filter-summary {
        margin-bottom: 0.85rem;
    }

    .calendar-view-container {
        min-height: 320px;
    }

    .calendar-month-weekdays,
    .calendar-month-view,
    .calendar-week-view,
    .calendar-day-view {
        display: none;
    }

    .calendar-phone-view {
        display: block;
    }

    .calendar-modal-role-item {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-modal-role-item .btn {
        width: 100%;
        justify-content: center;
    }

    .admin-user-profile-card {
        display: none;
    }

    .admin-pantries-list {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .admin-pantry-card,
    .admin-pantry-detail-header,
    .admin-pantry-assigned-lead,
    .admin-pantry-lead-option {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-pantry-detail-actions,
    .admin-pantry-assigned-lead .btn,
    .admin-pantry-card-count {
        width: 100%;
    }

    .admin-pantry-detail-actions .btn {
        flex: 1 1 0;
    }

    .admin-users-table-container th,
    .admin-users-table-container td,
    .admin-users-table-container th:nth-child(1),
    .admin-users-table-container td:nth-child(1),
    .admin-users-table-container th:nth-child(2),
    .admin-users-table-container td:nth-child(2),
    .admin-users-table-container th:nth-child(3),
    .admin-users-table-container td:nth-child(3),
    .admin-users-table-container th:nth-child(4),
    .admin-users-table-container td:nth-child(4),
    .admin-users-table-container th:nth-child(5),
    .admin-users-table-container td:nth-child(5) {
        width: 100%;
        text-align: left;
        white-space: normal;
    }

    .admin-user-row {
        cursor: default;
    }
}

#start-tour-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1090;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3rem;
    width: auto;
    max-width: calc(100vw - 2rem);
    padding: 0.8rem 1.1rem;
    border: 1px solid rgba(202, 138, 4, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    color: #422006;
    box-shadow: 0 14px 32px rgba(120, 53, 15, 0.22);
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#start-tour-btn:hover {
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
    box-shadow: 0 18px 38px rgba(120, 53, 15, 0.28);
    transform: translateY(-2px);
}

#start-tour-btn:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.38);
    outline-offset: 3px;
}

.tour-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1200;
    pointer-events: auto;
}

.tour-highlighter {
    position: fixed;
    z-index: 1201;
    pointer-events: none;
    border: 3px solid #dc2626;
    box-shadow:
        0 0 0 9999px rgba(15, 23, 42, 0.52),
        0 0 0 6px rgba(255, 255, 255, 0.14),
        0 18px 40px rgba(15, 23, 42, 0.18);
    transition: all 0.25s ease;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.tour-popover {
    position: fixed;
    z-index: 1202;
    max-width: min(440px, calc(100vw - 2rem));
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    padding: 1rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.tour-popover-arrow {
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 4px;
    transform: rotate(45deg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.tour-popover-arrow-top {
    left: calc(var(--tour-arrow-left, 50%) - 9px);
    bottom: -8px;
}

.tour-popover-arrow-right {
    top: calc(var(--tour-arrow-top, 50%) - 9px);
    left: -8px;
}

.tour-popover-arrow-bottom {
    left: calc(var(--tour-arrow-left, 50%) - 9px);
    top: -8px;
}

.tour-popover-arrow-left {
    top: calc(var(--tour-arrow-top, 50%) - 9px);
    right: -8px;
}

.tour-popover-card {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.tour-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tour-popover-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.tour-popover-body {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tour-popover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.tour-step-count {
    color: #64748b;
    font-size: 0.85rem;
}

.tour-step-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#app-tour-backdrop.app-hidden,
#app-tour-highlighter.app-hidden,
#app-tour-popover.app-hidden {
    display: none;
}

.tour-nudge {
    position: fixed;
    right: 1rem;
    bottom: 5.25rem;
    z-index: 1100;
    max-width: min(320px, calc(100vw - 2rem));
}

.tour-nudge-card {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid #fdba74;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.tour-nudge-title {
    margin: 0;
    color: #9a3412;
    font-size: 0.98rem;
    font-weight: 700;
}

.tour-nudge-copy {
    margin: 0;
    color: #7c2d12;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tour-nudge-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#app-tour-nudge.app-hidden {
    display: none;
}
