/* Sync / conflict banners — J-glass */
.sync-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-display);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    z-index: 50;
    backdrop-filter: blur(20px) saturate(1.5);
}
.sync-banner[hidden] { display: none !important; }
.sync-banner--conflict {
    background: rgba(255, 247, 237, 0.82);
    color: #c2410c;
}
.sync-banner--reconnect {
    background: rgba(254, 242, 242, 0.82);
    color: #b91c1c;
}
.sync-banner-text { flex: 1 1 12rem; }
.sync-banner-btn { min-height: 2.25rem; border-radius: 999px; }

.workflow-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.workflow-stepper-item {
    padding: 0.55rem 0.4rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.35);
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.3;
    font-family: var(--font-display);
}
.workflow-stepper-item strong {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}
.workflow-stepper-item--done {
    background: rgba(209, 250, 229, 0.55);
    border-color: rgba(110, 231, 183, 0.4);
    color: #047857;
}
.workflow-stepper-item--current {
    background: rgba(224, 242, 254, 0.65);
    border-color: rgba(125, 211, 252, 0.5);
    box-shadow: 0 0 0 3px rgba(94, 179, 246, 0.12);
}
.admin-toolbar-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: flex-start;
}
.admin-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    padding: 0.4rem 0.55rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
}
.admin-toolbar-group-label {
    font-size: 0.625rem;
    font-weight: 800;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    width: 100%;
    margin-bottom: 0.1rem;
}
.learning-hint-wrap { margin-top: 0.35rem; }
.learning-hint-summary {
    cursor: pointer;
    font-size: 0.75rem;
    color: #7c3aed;
    font-weight: 700;
    font-family: var(--font-display);
}
.learning-hint-details {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--slate-600, #475569);
    line-height: 1.4;
}
.learning-generate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    margin-left: 0.25rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    background: #059669;
    color: #fff;
    vertical-align: middle;
}
.learning-generate-badge.hidden { display: none; }
.front-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.front-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}
.front-status-badge--live { background: rgba(209, 250, 229, 0.65); color: #047857; }
.front-status-badge--draft { background: rgba(254, 243, 199, 0.65); color: #b45309; }
.front-status-badge--none { background: rgba(248, 250, 252, 0.65); color: #64748b; }
.front-status-badge--warn { background: rgba(254, 226, 226, 0.75); color: #b91c1c; }

.mf-header--not-today { border-bottom-color: rgba(252, 211, 77, 0.45) !important; }
.mf-header--not-today .mf-date-label { color: #d97706; font-weight: 800; }
.mf-test-banner {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: rgba(237, 233, 254, 0.75);
    color: #6d28d9;
    border-bottom: 1px solid rgba(196, 181, 253, 0.45);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(16px);
}
.mf-test-banner a { color: #5b21b6; text-decoration: underline; }

.mf-briscoes-explainer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.5rem 0.75rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(254, 243, 199, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #92400e;
}
.mf-briscoes-explainer.hidden { display: none; }

.api-write-queue-chip:not(.hidden) {
    color: #b45309;
    border: 1px dashed #fbbf24;
    border-radius: 0.5rem;
    padding: 0.15rem 0.5rem;
}

.roster-today-task-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.8125rem;
}
.roster-today-task-bar--warn { background: rgba(254, 243, 199, 0.85); border-color: rgba(251, 191, 36, 0.5); color: #92400e; }
.roster-today-task-bar--ok { background: rgba(209, 250, 229, 0.65); border-color: rgba(52, 211, 153, 0.45); color: #047857; }
.roster-week-progress {
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: #475569;
    background: rgba(226, 232, 240, 0.6);
    border-radius: 0.5rem;
}
.roster-week-progress.hidden { display: none; }

.front-stale-banner {
    margin: 0.5rem 1rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(254, 226, 226, 0.9);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #991b1b;
    font-size: 0.8125rem;
}
.front-stale-banner.hidden { display: none; }
.front-fallback-banner--active {
    background: rgba(254, 243, 199, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #92400e;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 1rem 0;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
}
.front-briscoes-hint {
    margin: 0.35rem 1rem 0;
    font-size: 0.75rem;
    color: #64748b;
}
.front-briscoes-hint.hidden { display: none; }
.front-now-next {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.35rem 1rem 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(239, 246, 255, 0.85);
    font-size: 0.8125rem;
    color: #1e40af;
}
.front-now-next.hidden { display: none; }

.mf-counter-hint {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0.75rem 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(239, 246, 255, 0.9);
    color: #1e3a8a;
}
.mf-counter-hint.hidden { display: none; }
.mf-card-menu-btn {
    margin-left: auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.35);
    color: #9ca3af;
    border-radius: 12px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.mf-card-top-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
}
.mf-counter-hint {
    font-size: 0.75rem;
    color: #0284c7;
    font-weight: 700;
    font-family: var(--font-display);
    margin: 0 0 0.35rem;
}
.mf-notify-sheet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 50vh;
    overflow-y: auto;
}
.mf-notify-sheet-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}
.mf-icon-btn { min-width: 2.75rem; min-height: 2.75rem; }
.mf-btn, .mf-status-btn { min-height: 2.75rem; }

.admin-mobile-hint {
    display: none;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 18px;
    background: rgba(224, 242, 254, 0.55);
    color: #0369a1;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(125, 211, 252, 0.4);
    backdrop-filter: blur(12px);
}
@media (max-width: 767px) {
    body.admin-mobile-layout .admin-mobile-hint {
        display: block;
    }
}
