/* Mobile floor — Liquid Glass shell (opaque overrides in liquid-glass.css) */

.mobile-floor-shell {
    --mf-bg: transparent;
    --mf-surface: rgba(255, 255, 255, 0.72);
    --mf-text: #0f172a;
    --mf-text-muted: #475569;
    --mf-text-soft: #64748b;
    --mf-border: rgba(255, 255, 255, 0.55);
    --mf-green: #059669;
    --mf-green-bg: rgba(236, 253, 245, 0.55);
    --mf-orange: #ea580c;
    --mf-orange-bg: rgba(255, 247, 237, 0.55);
    --mf-amber: #d97706;
    --mf-amber-bg: rgba(255, 251, 235, 0.55);
    --mf-blue: #2563eb;
    --mf-blue-bg: rgba(239, 246, 255, 0.55);
    --mf-slate: #64748b;
    --mf-slate-bg: rgba(248, 250, 252, 0.5);
    --mf-radius: 18px;
    --mf-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);

    min-height: 100dvh;
    position: relative;
    background: transparent;
    color: var(--mf-text);
    padding-bottom: 1.25rem;
    font-size: 17px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
    font-family: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Native-app feel — block long-press text selection / copy menu (keep inputs editable) */
.mobile-floor-shell *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mobile-floor-shell input,
.mobile-floor-shell textarea,
.mobile-floor-shell select,
.mobile-floor-shell [contenteditable="true"] {
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    user-select: text;
}

.mobile-floor-shell button,
.mobile-floor-shell a,
.mobile-floor-shell .mf-card,
.mobile-floor-shell .mf-icon-btn,
.mobile-floor-shell .mf-kpi,
.mobile-floor-shell [role="button"] {
    touch-action: manipulation;
}

.mobile-floor--readonly .mf-adjust-btn,
.mobile-floor--readonly .mf-status-toggle,
.mobile-floor--readonly .mf-card-actions {
    display: none !important;
}

.mobile-floor-shell .loading-card {
    background: var(--mf-surface);
    color: var(--mf-text);
    border: 1px solid var(--mf-border);
    box-shadow: var(--mf-shadow);
}

.mobile-floor-shell #toast {
    background: var(--mf-text);
    color: #fff;
}

/* ── Header ─────────────────────────────────────────── */

/** Fixed scroll marker — compact mode keys off this, not header height (avoids shrink/expand oscillation). */
.mf-compact-sentinel {
    position: absolute;
    top: 72px;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    visibility: hidden;
    z-index: -1;
}

.mf-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: var(--app-blur-glass);
    -webkit-backdrop-filter: var(--app-blur-glass);
    border-bottom: 1px solid var(--mf-border);
    padding: calc(0.45rem + env(safe-area-inset-top, 0px)) 0.75rem 0.45rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    overflow: hidden;
    contain: layout style;
    transform: translateZ(0);
    transition: padding 0.22s var(--app-motion-fade), box-shadow 0.22s var(--app-motion-fade);
}

.mf-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
    max-height: 5.5rem;
    overflow: hidden;
    transition:
        max-height 0.24s var(--app-motion-fade),
        opacity 0.2s var(--app-motion-fade),
        margin 0.24s var(--app-motion-fade);
}

.mf-header.mf-header--compact .mf-header-row {
    max-height: 2.75rem;
    margin-bottom: 0.2rem;
    justify-content: flex-end;
}

.mf-header.mf-header--compact .mf-date-trigger,
.mf-header.mf-header--compact .mf-sync-badge {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

.mf-date-trigger {
    display: block;
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
    max-height: 3rem;
    overflow: hidden;
    transition:
        max-height 0.24s var(--app-motion-fade),
        opacity 0.2s var(--app-motion-fade),
        margin 0.24s var(--app-motion-fade);
}

.mf-header.mf-header--scrolled {
    padding-top: calc(0.28rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.32rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

.mf-header.mf-header--scrolled .mf-date-label {
    font-size: 0.92em;
}

.mf-brand {
    min-width: 0;
    flex: 1;
}

.mf-date-chevron {
    flex-shrink: 0;
    color: var(--mf-text-soft);
    opacity: 0.65;
}

.mf-brand-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.mf-date-label {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--mf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-header-toolbar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.12rem;
    border-radius: 12px;
    border: 1px solid var(--mf-border);
    background: var(--mf-surface);
}

.mf-header-toolbar .mf-icon-btn {
    width: 2.125rem;
    height: 2.125rem;
    border: none;
    border-radius: 9px;
    background: transparent;
}

.mf-header-toolbar .mf-icon-btn:active {
    background: rgba(15, 23, 42, 0.06);
}

.mf-toolbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.125rem;
    padding: 0 0.65rem;
    border: none;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0284c7;
    background: rgba(224, 242, 254, 0.85);
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
}

.mf-toolbar-chip.hidden { display: none; }

.mf-header-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mf-header-sr-only button {
    display: none !important;
}

.mf-compact-date {
    display: none;
    flex-shrink: 0;
    margin-right: 0.15rem;
    padding: 0 0.45rem 0 0;
    border: none;
    border-right: 1px solid var(--mf-border);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--mf-text-muted);
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
}

.mf-header.mf-header--compact .mf-compact-date {
    display: block;
}

.mobile-floor-shell .lg-tab-thumb--instant {
    transition: none !important;
}

.mf-header-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    background: var(--mf-surface);
    color: var(--mf-text-muted);
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
}

button.mf-icon-btn { padding: 0; }

.mf-icon-btn:active {
    background: var(--mf-bg);
}

.mf-date-native {
    position: fixed;
    top: calc(0.5rem + env(safe-area-inset-top, 0px));
    left: 0.5rem;
    opacity: 0;
    width: 1px;
    height: 1px;
    cursor: pointer;
    border: 0;
    padding: 0;
    pointer-events: none;
}

/* KPI pills */
.mf-summary-slot {
    margin-top: 0.4rem;
    max-height: 8rem;
    overflow: hidden;
    transition:
        max-height 0.24s var(--app-motion-fade),
        opacity 0.2s var(--app-motion-fade),
        margin 0.24s var(--app-motion-fade);
}

.mf-header.mf-header--compact .mf-summary-slot:not(.hidden) {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.mf-header.mf-header--compact .mf-recent-dates:not(.hidden) {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.mf-summary-slot.hidden {
    display: none;
}

.mf-snapshot-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mf-kpi-row--snapshot {
    gap: 0.35rem;
}

.mf-kpi-row--snapshot .mf-kpi {
    padding: 0.28rem 0.2rem;
    min-height: 2.2rem;
    border-radius: 9px;
}

.mf-kpi-row--snapshot .mf-kpi-num {
    font-size: 1.1rem;
}

.mf-kpi-row--snapshot .mf-kpi-label {
    font-size: 0.58rem;
    margin-top: 0.12rem;
    letter-spacing: 0.03em;
}

.mf-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mf-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mf-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--mf-border);
    background: var(--mf-surface);
    min-height: 2.5rem;
}

.mf-kpi-num {
    font-size: 1.25rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.mf-kpi-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mf-text-soft);
    margin-top: 0.2rem;
}

.mf-kpi--floor { background: var(--mf-green-bg); border-color: #a7f3d0; }
.mf-kpi--floor .mf-kpi-num { color: var(--mf-green); }

.mf-kpi--break { background: var(--mf-orange-bg); border-color: #fed7aa; }
.mf-kpi--break .mf-kpi-num { color: var(--mf-orange); }

.mf-kpi--soon { background: var(--mf-amber-bg); border-color: #fde68a; }
.mf-kpi--soon .mf-kpi-num { color: var(--mf-amber); }

.mf-kpis.hidden { display: none; }

/* Floor / Counter tabs */
.mf-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    padding: 0.15rem;
    background: var(--mf-bg);
    border-radius: 10px;
    border: 1px solid var(--mf-border);
}

.mf-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mf-text-muted);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s var(--app-motion-fade), color 0.2s var(--app-motion-fade),
        box-shadow 0.25s var(--app-motion-spring), transform 0.2s var(--app-motion-spring);
}

.mf-tab--active {
    background: var(--mf-surface);
    color: var(--mf-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

body.mf-counter-tab .mf-tab--counter.mf-tab--active {
    background: linear-gradient(135deg, var(--app-brand-rebel-soft), #dbeafe);
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.14);
}

body.mf-counter-tab.mobile-floor-shell {
    --mf-bg: #f0f4fa;
}

/* Counter rotation cards — flatter than hero */
.mf-counter-card {
    position: relative;
    background: var(--mf-surface);
    border-radius: var(--mf-radius);
    border: 1px solid var(--mf-border);
    box-shadow: var(--app-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s var(--app-motion-fade), border-color 0.2s var(--app-motion-fade);
}

.mf-counter-card-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--mf-fill-pct, 0%);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.06));
    transition: width 1s linear;
    pointer-events: none;
}

.mf-counter-card--active {
    border-color: #93c5fd;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.mf-counter-card--active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--mf-blue);
    z-index: 1;
}

.mf-counter-card--soon {
    border-color: #fcd34d;
}

.mf-counter-card-body {
    position: relative;
    z-index: 1;
    padding: 0.85rem 1rem;
}

.mf-counter-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mf-text-muted);
    font-variant-numeric: tabular-nums;
}

.mf-counter-name {
    font-size: 1.125rem;
    font-weight: 800;
    margin-top: 0.15rem;
}

.mf-counter-sub {
    font-size: 0.8125rem;
    color: var(--mf-text-soft);
    margin-top: 0.2rem;
}

.mf-counter-actions {
    margin-top: 0.65rem;
    display: flex;
    gap: 0.5rem;
}

.mf-counter-act {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid #fdba74;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.mf-counter-act--handoff {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.mf-counter-reliever {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.mf-counter-reliever-icon {
    font-size: 1rem;
    font-weight: 800;
    color: #64748b;
    line-height: 1;
}

.mf-counter-reliever-body {
    flex: 1;
    min-width: 0;
}

.mf-counter-reliever-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
}

.mf-counter-reliever-time {
    display: block;
    font-size: 0.6875rem;
    color: var(--mf-text-soft);
    font-variant-numeric: tabular-nums;
    margin-top: 0.1rem;
}

.mf-counter-reliever-cd {
    font-size: 0.8125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #64748b;
    white-space: nowrap;
}

.mf-counter-reliever--soon {
    background: #fffbeb;
    border-color: #fcd34d;
    border-style: solid;
}

.mf-counter-reliever--soon .mf-counter-reliever-label,
.mf-counter-reliever--soon .mf-counter-reliever-cd {
    color: #92400e;
}

.mf-counter-reliever--live {
    background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
    border-color: #6ee7b7;
    border-style: solid;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}

.mf-counter-reliever--live .mf-counter-reliever-icon,
.mf-counter-reliever--live .mf-counter-reliever-label,
.mf-counter-reliever--live .mf-counter-reliever-cd {
    color: #047857;
}

.mf-counter-card--reliever-live {
    border-color: #6ee7b7;
}

.mf-counter-card--reliever-live::before {
    background: #10b981;
}

.mf-counter-card--reliever-live .mf-counter-card-fill {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.08));
}

.mf-counter-card--reliever-soon {
    border-color: #fde68a;
}

/* Counter tab KPIs */
.mf-kpi--counter-now { background: #dbeafe; border-color: #93c5fd; }
.mf-kpi--counter-now .mf-kpi-num { color: #1d4ed8; }
.mf-kpi--counter-next { background: #fef3c7; border-color: #fcd34d; }
.mf-kpi--counter-next .mf-kpi-num { color: #b45309; }
.mf-kpi--counter-left { background: #f1f5f9; border-color: #e2e8f0; }
.mf-kpi--counter-left .mf-kpi-num { color: #475569; }
.mf-kpi-num--text {
    font-size: 0.95rem;
    line-height: 1.15;
    word-break: break-word;
}

.mf-tab--counter { position: relative; }
.mf-tab-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.2rem;
    min-width: 1.35rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1.1rem;
    text-align: center;
    box-shadow: 0 0 0 2px var(--mf-surface, #fff);
}
.mf-tab--pulse {
    animation: mf-tab-pulse 1.4s ease-in-out infinite;
}
@keyframes mf-tab-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
}
.mf-tab-badge.hidden { display: none; }

.mf-counter-view { display: flex; flex-direction: column; gap: 0.65rem; }
.mf-counter-view--dense { gap: 0.45rem; }
.mf-counter-view--front { gap: 0.4rem; }
.mf-counter-more-hint {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mf-text-soft);
    text-align: center;
}
.mf-counter-next-hint {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mf-blue);
}
.mf-counter-snapshot {
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid var(--mf-border);
    background: var(--mf-surface);
}
.mf-counter-snapshot .mf-kpi-row--counter {
    gap: 0.35rem;
}
.mf-counter-now--compact .mf-counter-now-inner {
    padding: 0.75rem 0.85rem;
}
.mf-counter-now--compact .mf-counter-now-name {
    font-size: 1.2rem;
}
body.mf-counter-tab .mf-alert {
    display: none !important;
}
body.mf-counter-tab .mf-list {
    padding-top: 0.35rem;
}
body.mf-counter-tab .mf-summary-slot {
    display: none !important;
}
.mf-counter-end-label {
    margin: 0;
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mf-text-soft);
    background: #f8fafc;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
}

/* Now playing hero — elevated hierarchy */
.mf-counter-now {
    position: relative;
    border-radius: calc(var(--mf-radius) + 4px);
    border: 2px solid #93c5fd;
    background: var(--mf-surface);
    box-shadow: var(--app-shadow-hero);
    overflow: hidden;
}

.mf-counter-now .mf-avatar--lg {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.mf-counter-now-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.mf-countdown {
    font-variant-numeric: tabular-nums;
}
.mf-counter-now-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: var(--mf-fill-pct, 0%);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.06));
    transition: width 1s linear;
    pointer-events: none;
}
.mf-counter-now-inner { position: relative; z-index: 1; padding: 1rem; }
.mf-counter-now-label {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2563eb;
}
.mf-counter-now-person { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }
.mf-counter-now-time { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--mf-text-soft); }

/* Timeline rail */
.mf-counter-timeline-wrap {
    position: relative;
    margin: 0 -0.25rem;
    padding-bottom: 0.15rem;
}

.mf-counter-timeline-rail {
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: 2.05rem;
    height: 3px;
    pointer-events: none;
    z-index: 0;
}

.mf-counter-timeline-rail-track {
    position: absolute;
    inset: 0;
    background: #e2e8f0;
    border-radius: var(--app-radius-pill);
}

.mf-counter-timeline-rail-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--mf-blue), #60a5fa);
    border-radius: var(--app-radius-pill);
    transition: width 0.45s var(--app-motion-fade);
}

.mf-counter-timeline {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.35rem 0.15rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.mf-counter-timeline::-webkit-scrollbar { display: none; }
.mf-counter-tl-seg {
    flex: 0 0 auto;
    min-width: 5.5rem;
    min-height: 3rem;
    border: none;
    background: transparent;
    padding: 0.35rem 0.45rem;
    text-align: center;
    cursor: pointer;
    color: inherit;
    font: inherit;
    scroll-snap-align: center;
}
.mf-counter-tl-time {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--mf-text-muted);
}
.mf-counter-tl-dot {
    display: block;
    width: 11px;
    height: 11px;
    margin: 0.25rem auto;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
    transition: transform 0.2s var(--app-motion-spring), box-shadow 0.2s var(--app-motion-fade);
}
.mf-counter-tl-name {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    max-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mf-counter-tl-seg--active .mf-counter-tl-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 2px #93c5fd;
    animation: mf-tl-dot-pulse 2s ease-in-out infinite;
}
.mf-counter-tl-seg--cover .mf-counter-tl-dot {
    background: var(--app-reliever);
    box-shadow: 0 0 0 2px #c4b5fd;
}
@keyframes mf-tl-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #93c5fd, 0 0 0 0 rgba(59, 130, 246, 0.45); }
    50% { box-shadow: 0 0 0 2px #93c5fd, 0 0 0 7px rgba(59, 130, 246, 0); }
}
.mf-counter-tl-seg--upcoming-soon .mf-counter-tl-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 1px #fcd34d;
}
.mf-counter-tl-seg--done { opacity: 0.45; }

/* Cover duty sub-card */
.mf-counter-cover-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.mf-counter-cover-card.mf-counter-reliever--live {
    background: linear-gradient(90deg, var(--app-reliever-soft), #ede9fe);
    border-color: #a78bfa;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.mf-counter-cover-card.mf-counter-reliever--soon {
    background: linear-gradient(90deg, #faf5ff, #fffbeb);
    border-color: #d8b4fe;
}

.mf-counter-cover-card.mf-counter-reliever--live .mf-counter-cover-label,
.mf-counter-cover-card.mf-counter-reliever--live .mf-counter-cover-cd {
    color: #6d28d9;
}

.mf-counter-cover-card.mf-counter-reliever--soon .mf-counter-cover-label,
.mf-counter-cover-card.mf-counter-reliever--soon .mf-counter-cover-cd {
    color: #7c3aed;
}

.mf-counter-cover-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.mf-counter-cover-label { font-size: 0.75rem; font-weight: 800; }
.mf-counter-cover-time { font-size: 0.6875rem; color: var(--mf-text-muted); }
.mf-counter-cover-sub { font-size: 0.6875rem; color: var(--mf-text-soft); }
.mf-counter-cover-cd {
    font-size: 0.8125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #0f766e;
    flex-shrink: 0;
}

.mf-counter-person {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
}
.mf-counter-person .mf-counter-name { margin-top: 0; }

.mf-counter-break-note {
    margin: 0.5rem 0 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c2410c;
    background: #fff7ed;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}

.mf-counter-earlier-btn {
    width: 100%;
    padding: 0.65rem;
    border: 1px dashed var(--mf-border);
    border-radius: var(--mf-radius);
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mf-text-soft);
    cursor: pointer;
}

.mf-counter-card--compact { opacity: 0.72; }
.mf-counter-card--compact .mf-counter-card-body { padding: 0.65rem 0.85rem; }
.mf-counter-card--done { opacity: 0.55; }

.mf-counter-act--on {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}
.mf-counter-act--late {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

.mf-avatar--lg { width: 2.75rem; height: 2.75rem; font-size: 1.125rem; }
.mf-avatar--sm { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; }

.mf-counter-hint-wrap { margin: 0.5rem 0 0; }
.mf-counter-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #93c5fd;
    border-radius: var(--mf-radius);
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.mf-counter-hint-cta {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e40af;
}
.mf-counter-hint:active { transform: scale(0.98); }

.mf-badge--reliever {
    background: #d1fae5;
    color: #065f46;
}

.mf-publish-badge {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.mf-publish-badge--live {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.mf-publish-badge--draft {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.mf-publish-badge--stale {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.mf-role-chip {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.08rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
    line-height: 1.2;
}

.mf-role-chip--casual {
    background: #dbeafe;
    color: #1d4ed8;
}

.mf-role-chip--office {
    background: #ede9fe;
    color: #6d28d9;
}

.mf-sync-badge {
    margin: 0.2rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    max-height: 2.5rem;
    overflow: hidden;
    transition:
        max-height 0.24s var(--app-motion-fade),
        opacity 0.2s var(--app-motion-fade),
        margin 0.24s var(--app-motion-fade);
}

.mf-sync-badge--warn {
    color: #b45309;
}

.mf-notify-preview {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--mf-radius);
    font-size: 0.75rem;
    color: #475569;
}

.mf-notify-preview summary {
    cursor: pointer;
    font-weight: 700;
    color: #334155;
}

.mf-notify-preview-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.mf-notify-preview-list li {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-top: 1px solid #e2e8f0;
}

.mf-notify-preview-list li:first-child {
    border-top: none;
}

.mf-notify-preview-time {
    flex: 0 0 2.75rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.mf-notify-preview-body {
    flex: 1;
    line-height: 1.35;
}

.mf-notify-preview-empty,
.mf-notify-preview-note {
    margin: 0.35rem 0 0;
    font-size: 0.6875rem;
    color: #64748b;
}

/* ── Alert banner ───────────────────────────────────── */

.mf-alert {
    margin: 0.75rem 1rem 0;
    padding: 0.65rem 0.75rem;
    background: var(--mf-orange-bg);
    border: 1px solid #fdba74;
    border-radius: var(--mf-radius);
    font-size: 0.875rem;
    font-weight: 700;
    color: #9a3412;
    line-height: 1.45;
}
.mf-alert--interactive {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.mf-alert-label {
    flex: 0 0 auto;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}
.mf-alert-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex: 1;
}
.mf-alert-chip {
    min-height: 2.25rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #fdba74;
    border-radius: 999px;
    background: #fff;
    color: #9a3412;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}
.mf-alert-cd { font-weight: 800; opacity: 0.9; }
.mf-card--flash {
    animation: mf-card-flash 1.2s ease;
}
@keyframes mf-card-flash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    40% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35); }
}
.mf-kpi-heading {
    width: 100%;
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mf-text-soft);
}
.mf-counter-snapshot {
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--mf-border);
    background: var(--mf-surface);
    box-shadow: var(--mf-shadow);
}
.mf-counter-snapshot .mf-kpi-heading {
    margin-bottom: 0.45rem;
}
.mf-kpi-row--counter {
    gap: 0.4rem;
}
.mf-chip-hint {
    display: block;
    width: 100%;
    margin-top: 0.15rem;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--mf-text-soft);
    opacity: 0.85;
}
.mf-more-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mf-more-menu-item {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.25rem;
    border: none;
    border-bottom: 1px solid var(--mf-border);
    background: transparent;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--mf-text);
    cursor: pointer;
}

.mf-more-menu-empty {
    margin: 0;
    padding: 0.85rem 0.25rem 0.25rem;
    color: var(--mf-text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}
.mf-empty,
.mf-alert-chip,
.mf-detail {
    -webkit-user-select: text;
    user-select: text;
}

.mf-alert-soon {
    background: var(--mf-amber-bg);
    border-color: #fcd34d;
    color: #92400e;
}

.mf-alert-scheduled {
    background: var(--mf-blue-bg);
    border-color: #93c5fd;
    color: #1e40af;
}

/* ── Staff list ─────────────────────────────────────── */

.mf-list {
    padding: 0.6rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: opacity 0.18s var(--app-motion-fade), transform 0.22s var(--app-motion-spring);
}

/* ── Staff card ─────────────────────────────────────── */

.mf-card {
    --mf-fill-pct: 0%;
    --mf-fill-frac: 0;
    position: relative;
    background: var(--mf-surface);
    border-radius: var(--mf-radius);
    border: 1px solid var(--mf-border);
    box-shadow: var(--mf-shadow);
    overflow: hidden;
    transition: box-shadow 0.8s ease, border-color 0.8s ease;
}

.mf-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--mf-border);
    z-index: 2;
    transition: background 0.6s ease, box-shadow 0.6s ease;
}

.mf-card--aura-floor::before {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
    box-shadow: 2px 0 10px rgba(239, 68, 68, calc(0.2 * var(--mf-fill-frac)));
}

.mf-card--aura-break::before {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: 2px 0 12px rgba(16, 185, 129, calc(0.28 * var(--mf-fill-frac)));
}

.mf-card--floor:not(.mf-card--aura-floor)::before { background: var(--mf-green); }
.mf-card--on_break:not(.mf-card--aura-break)::before { background: var(--mf-orange); }
.mf-card--soon::before { background: var(--mf-amber); }
.mf-card--before_shift::before { background: #94a3b8; }
.mf-card--scheduled::before { background: var(--mf-blue); }
.mf-card--off_shift::before,
.mf-card--past::before { background: #cbd5e1; }

/* Card time fill — left→right, drains right→left with remaining time */
.mf-card-aura {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.mf-card-aura-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--mf-fill-pct, 0%);
    transition: width 1s linear;
    border-radius: inherit;
    will-change: width;
}

.mf-card--aura-break .mf-card-aura-fill {
    background: linear-gradient(90deg,
        rgba(167, 243, 208, 0.95) 0%,
        rgba(187, 247, 208, 0.88) 35%,
        rgba(209, 250, 229, 0.72) 72%,
        rgba(110, 231, 183, 0.38) 96%,
        rgba(110, 231, 183, 0.08) 100%);
}

.mf-card--aura-floor .mf-card-aura-fill {
    background: linear-gradient(90deg,
        rgba(252, 165, 165, 0.92) 0%,
        rgba(254, 202, 202, 0.82) 35%,
        rgba(254, 226, 226, 0.65) 72%,
        rgba(248, 113, 113, 0.35) 96%,
        rgba(248, 113, 113, 0.08) 100%);
}

.mf-card-aura-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--mf-fill-pct, 0%);
    width: 4px;
    margin-left: -2px;
    transition: left 1s linear;
    pointer-events: none;
    opacity: calc(0.35 + 0.65 * var(--mf-fill-frac));
}

.mf-card--aura-break .mf-card-aura-edge {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(52, 211, 153, 0.85) 35%,
        rgba(16, 185, 129, 0.95) 50%,
        rgba(52, 211, 153, 0.85) 65%,
        rgba(255, 255, 255, 0) 100%);
    box-shadow:
        0 0 14px rgba(16, 185, 129, 0.45),
        0 0 28px rgba(52, 211, 153, 0.25);
    animation: mf-edge-pulse-green 2.2s ease-in-out infinite;
}

.mf-card--aura-floor .mf-card-aura-edge {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(248, 113, 113, 0.8) 35%,
        rgba(239, 68, 68, 0.9) 50%,
        rgba(248, 113, 113, 0.8) 65%,
        rgba(255, 255, 255, 0) 100%);
    box-shadow:
        0 0 12px rgba(239, 68, 68, 0.4),
        0 0 24px rgba(248, 113, 113, 0.22);
    animation: mf-edge-pulse-red 2.4s ease-in-out infinite;
}

.mf-break-banner {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: linear-gradient(90deg,
        rgba(16, 185, 129, calc(0.14 * var(--mf-fill-frac))) 0%,
        rgba(110, 231, 183, calc(0.06 * var(--mf-fill-frac))) 100%);
    border: 1px solid rgba(52, 211, 153, calc(0.28 * var(--mf-fill-frac)));
    overflow: hidden;
    position: relative;
    opacity: calc(0.45 + 0.55 * var(--mf-fill-frac));
}

.mf-break-banner-spark {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399, 0 0 18px rgba(52, 211, 153, 0.45);
    flex-shrink: 0;
    animation: mf-sparkle 1.4s ease-in-out infinite;
}

.mf-break-banner-text {
    font-size: 0.8125rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #047857, #10b981, #047857);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: mf-text-shimmer 4s linear infinite;
}

.mf-break-banner-pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255, 255, 255, calc(0.4 * var(--mf-fill-frac))) 50%,
        transparent 70%);
    background-size: 200% 100%;
    animation: mf-banner-sweep 3.5s ease-in-out infinite;
    pointer-events: none;
}

.mf-card--hold {
    transform: scale(0.98);
    box-shadow: 0 0 0 2px var(--mf-orange), var(--mf-sh, 0 4px 16px rgba(15, 23, 42, 0.08));
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mf-card--soon.mf-card--aura-floor {
    border-color: rgba(248, 113, 113, calc(0.25 + 0.45 * (1 - var(--mf-fill-frac))));
    box-shadow:
        0 0 0 1px rgba(254, 202, 202, calc(0.35 * (1 - var(--mf-fill-frac)))),
        var(--mf-shadow);
}

.mf-card--off_shift,
.mf-card--past {
    opacity: 0.92;
}

.mf-card-inner {
    position: relative;
    z-index: 1;
    padding: 1rem 1rem 1rem 1.15rem;
}

.mf-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.mf-badge::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.mf-badge--floor { background: var(--mf-green-bg); color: #047857; }
.mf-badge--floor::before { background: var(--mf-green); }

.mf-badge--counter { background: #dbeafe; color: #1d4ed8; }
.mf-badge--counter::before { background: var(--mf-blue); animation: mf-pulse 1.3s infinite; }

.mf-counter-card--active .mf-countdown {
    color: var(--mf-blue);
    font-weight: 800;
}

.mf-counter-card .mf-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.mf-badge--soon { background: var(--mf-amber-bg); color: #b45309; }
.mf-badge--soon::before { background: var(--mf-amber); animation: mf-pulse 1.4s infinite; }

.mf-badge--break { background: var(--mf-orange-bg); color: #c2410c; }
.mf-badge--break::before { background: var(--mf-orange); animation: mf-pulse 1.2s infinite; }

.mf-card--aura-break .mf-badge--break {
    background: rgba(236, 253, 245, calc(0.5 + 0.5 * var(--mf-fill-frac)));
    color: #047857;
}

.mf-card--aura-break .mf-badge--break::before {
    background: #10b981;
    animation: mf-pulse-green 1.5s ease-in-out infinite;
}

.mf-card--aura-floor .mf-badge--floor {
    background: rgba(254, 242, 242, calc(0.45 + 0.55 * var(--mf-fill-frac)));
    color: #b91c1c;
}

.mf-card--aura-floor .mf-badge--floor::before {
    background: #ef4444;
    animation: mf-pulse-red 2s ease-in-out infinite;
}

.mf-badge--wait { background: var(--mf-slate-bg); color: var(--mf-text-muted); }
.mf-badge--wait::before { background: #94a3b8; }

.mf-badge--scheduled { background: var(--mf-blue-bg); color: #1d4ed8; }
.mf-badge--scheduled::before { background: var(--mf-blue); }

.mf-badge--done { background: var(--mf-slate-bg); color: var(--mf-text-soft); }
.mf-badge--done::before { background: #cbd5e1; }

.mf-countdown {
    font-size: 2rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: var(--mf-text);
    line-height: 1;
    flex-shrink: 0;
}

.mf-card--on_break .mf-countdown { color: var(--mf-orange); }
.mf-card--aura-break .mf-countdown {
    color: #059669;
    text-shadow: 0 0 calc(20px * var(--mf-fill-frac)) rgba(16, 185, 129, 0.3);
}

.mf-card--floor .mf-countdown { color: var(--mf-green); }
.mf-card--aura-floor .mf-countdown {
    color: #dc2626;
    text-shadow: 0 0 calc(18px * var(--mf-fill-frac)) rgba(239, 68, 68, 0.25);
}

.mf-card--soon .mf-countdown { color: var(--mf-amber); }
.mf-card--soon.mf-card--aura-floor .mf-countdown {
    color: #ea580c;
}
.mf-card--scheduled .mf-countdown { color: var(--mf-blue); font-size: 1.5rem; }
.mf-card--off_shift .mf-countdown,
.mf-card--past .mf-countdown { color: var(--mf-text-soft); font-size: 1.25rem; }

.mf-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mf-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #e0e7ef;
    color: var(--mf-text-muted);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mf-card--on_break .mf-avatar { background: #ffedd5; color: #c2410c; }
.mf-card--aura-break .mf-avatar {
    background: linear-gradient(145deg, #a7f3d0, #d1fae5);
    color: #047857;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, calc(0.3 * var(--mf-fill-frac))),
        0 0 calc(14px * var(--mf-fill-frac)) rgba(16, 185, 129, 0.22);
}

.mf-card--floor .mf-avatar { background: #d1fae5; color: #047857; }
.mf-card--aura-floor .mf-avatar {
    background: linear-gradient(145deg, #fecaca, #fee2e2);
    color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, calc(0.22 * var(--mf-fill-frac))),
        0 0 calc(12px * var(--mf-fill-frac)) rgba(239, 68, 68, 0.18);
}

.mf-card--soon .mf-avatar { background: #fef3c7; color: #b45309; }

.mf-name {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mf-text);
    line-height: 1.15;
}

.mf-shift {
    margin: 0.2rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mf-text-muted);
    font-variant-numeric: tabular-nums;
}

.mf-dept {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: var(--mf-bg);
    color: var(--mf-text-soft);
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
}

.mf-detail {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mf-text);
}

/* Break timeline — vertical, easy to scan */
.mf-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mf-chip {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: var(--mf-bg);
    border: 1px solid var(--mf-border);
    overflow: hidden;
    transition: border-color 0.7s ease, box-shadow 0.7s ease;
}

.mf-chip-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
}

.mf-chip-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--mf-fill-pct, 0%);
    transition: width 1s linear;
    border-radius: inherit;
}

.mf-chip-spark {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.225rem;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mf-chip-spark--on {
    opacity: 1;
    transform: scale(1);
    background: #34d399;
    box-shadow: 0 0 8px #34d399, 0 0 14px rgba(52, 211, 153, 0.5);
    animation: mf-sparkle 1.2s ease-in-out infinite;
}

.mf-chip--next .mf-chip-spark--on {
    background: #f87171;
    box-shadow: 0 0 8px #f87171, 0 0 14px rgba(248, 113, 113, 0.45);
}

.mf-chip-type,
.mf-chip-range,
.mf-chip-note {
    position: relative;
    z-index: 1;
}

.mf-chip-type {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--mf-text-soft);
}

.mf-chip-range {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--mf-text);
    font-variant-numeric: tabular-nums;
}

.mf-chip-note {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mf-text-muted);
    text-align: right;
}

.mf-chip--now {
    background: rgba(236, 253, 245, 0.65);
    border-color: rgba(52, 211, 153, 0.45);
}

.mf-chip--now.mf-chip--animated {
    border-color: rgba(16, 185, 129, calc(0.3 + 0.5 * var(--mf-fill-frac, 1)));
    box-shadow: inset 0 0 0 1px rgba(167, 243, 208, calc(0.25 * var(--mf-fill-frac, 1)));
}

.mf-chip--now .mf-chip-fill {
    background: linear-gradient(90deg,
        rgba(16, 185, 129, calc(0.5 * var(--mf-fill-frac, 1))) 0%,
        rgba(110, 231, 183, calc(0.22 * var(--mf-fill-frac, 1))) 75%,
        rgba(255, 255, 255, 0) 100%);
}

.mf-chip--now .mf-chip-type {
    background: linear-gradient(90deg, #047857, #10b981, #047857);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: mf-text-shimmer 3.5s linear infinite;
}

.mf-chip--now .mf-chip-note { color: #047857; font-weight: 800; }

.mf-chip--next {
    background: rgba(254, 242, 242, 0.55);
    border-color: rgba(252, 165, 165, calc(0.2 + 0.5 * var(--mf-fill-frac, 1)));
}

.mf-chip--next.mf-chip--animated {
    box-shadow: inset 0 0 0 1px rgba(254, 202, 202, calc(0.2 + 0.35 * var(--mf-fill-frac, 1)));
}

.mf-chip--next .mf-chip-fill {
    background: linear-gradient(90deg,
        rgba(239, 68, 68, calc(0.45 * var(--mf-fill-frac, 1))) 0%,
        rgba(252, 165, 165, calc(0.22 * var(--mf-fill-frac, 1))) 75%,
        rgba(255, 255, 255, 0) 100%);
}

.mf-chip--next .mf-chip-type {
    color: #b91c1c;
    font-weight: 900;
}

.mf-chip--next .mf-chip-note {
    color: #dc2626;
    font-weight: 800;
}

.mf-chip--done {
    opacity: 0.55;
}

.mf-card-actions {
    margin-top: 0.85rem;
}

.mf-btn {
    width: 100%;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
    min-height: 3.25rem;
}

.mf-btn-break {
    background: var(--mf-orange);
    color: #fff;
}

.mf-btn-break.mf-btn-muted {
    background: var(--mf-surface);
    color: var(--mf-orange);
    border: 2px solid #fdba74;
}

.mf-btn-back {
    background: var(--mf-green);
    color: #fff;
}

/* ── Footer ─────────────────────────────────────────── */

.mf-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--mf-border);
    backdrop-filter: blur(8px);
}

.mf-footer-link {
    color: var(--mf-text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    background: none;
    border: none;
    padding: 0.35rem 0;
    cursor: pointer;
    font-family: inherit;
}

.mf-footer-btn { margin-left: auto; }

.mf-skeleton {
    height: 8rem;
    border-radius: var(--mf-radius);
    background: linear-gradient(90deg, #e8edf3 25%, #f4f6fa 50%, #e8edf3 75%);
    background-size: 200% 100%;
    animation: mf-shimmer 1.2s infinite;
}

.mf-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--mf-text-muted);
    font-size: 1rem;
}

@keyframes mf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.2); }
}

@keyframes mf-pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { opacity: 0.85; transform: scale(1.25); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

@keyframes mf-pulse-red {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.3); }
}

@keyframes mf-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes mf-text-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes mf-edge-pulse-green {
    0%, 100% { opacity: calc(0.5 + 0.5 * var(--mf-fill-frac)); filter: brightness(1); }
    50% { opacity: calc(0.75 + 0.25 * var(--mf-fill-frac)); filter: brightness(1.15); }
}

@keyframes mf-edge-pulse-red {
    0%, 100% { opacity: calc(0.45 + 0.55 * var(--mf-fill-frac)); }
    50% { opacity: calc(0.7 + 0.3 * var(--mf-fill-frac)); }
}

@keyframes mf-sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.35); }
}

@keyframes mf-banner-sweep {
    0% { background-position: 200% 0; opacity: 0; }
    35% { opacity: calc(0.55 * var(--mf-aura-intensity)); }
    100% { background-position: -100% 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .mf-card-aura-edge,
    .mf-break-banner-spark,
    .mf-break-banner-text,
    .mf-break-banner-pulse,
    .mf-chip-spark--on,
    .mf-card--aura-break .mf-badge--break::before,
    .mf-card--aura-floor .mf-badge--floor::before {
        animation: none !important;
    }

    .mf-card-aura-fill,
    .mf-card-aura-edge,
    .mf-chip-fill {
        transition: none;
    }
}

/* ── Walk time progress ─────────────────────────────── */

.mf-walk {
    margin: 0.5rem 0 0.25rem;
}

.mf-walk-track {
    height: 6px;
    border-radius: 999px;
    background: var(--mf-border);
    overflow: hidden;
}

.mf-walk-fill--return {
    background: linear-gradient(90deg, #059669, #10b981);
}

.mf-walk--return .mf-walk-label {
    color: #047857;
}

.mf-walk-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mf-blue), #60a5fa);
    transition: width 0.8s linear;
}

.mf-walk-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mf-blue);
}

/* ── Status toggle ──────────────────────────────────── */

.mf-status-toggle {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.mf-status-btn {
    flex: 1;
    padding: 0.55rem 0.35rem;
    border: 2px solid var(--mf-border);
    border-radius: 10px;
    background: var(--mf-surface);
    color: var(--mf-text-muted);
    font-size: 0.8125rem;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

.mf-status-btn--on {
    border-color: var(--mf-blue);
    background: var(--mf-blue-bg);
    color: var(--mf-blue);
}

.mf-badge--storeroom {
    background: var(--mf-slate-bg);
    color: var(--mf-slate);
}

.mf-card--storeroom {
    border-left: 4px solid var(--mf-slate);
}

/* ── Break notify modal ─────────────────────────────── */

.mf-notify-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.mf-notify-modal.hidden {
    display: none;
}

.mf-notify-card {
    width: 100%;
    max-width: 22rem;
    padding: 1.25rem;
    border-radius: var(--mf-radius);
    background: var(--mf-surface);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    text-align: center;
}

.mf-notify-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--mf-text);
}

.mf-notify-body {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--mf-text-muted);
}

/* ── Adjust times (card entry) ──────────────────────── */

.mf-adjust-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.65rem;
    border: 1px dashed var(--mf-border);
    border-radius: 8px;
    background: transparent;
    color: var(--mf-text-soft);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.mf-adjust-btn svg {
    opacity: 0.7;
}

.mf-adjust-btn:active {
    background: var(--mf-slate-bg);
    color: var(--mf-text-muted);
}

/* ── Edit bottom sheet ──────────────────────────────── */

body.mf-sheet-open {
    overflow: hidden;
}

.mf-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mf-sheet.hidden {
    display: none;
}

.mf-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
}

.mf-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 26rem;
    max-height: min(88dvh, 640px);
    overflow-y: auto;
    padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background: var(--mf-surface);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
    -webkit-overflow-scrolling: touch;
}

.mf-sheet-handle {
    width: 2.5rem;
    height: 4px;
    margin: 0.25rem auto 0.75rem;
    border-radius: 999px;
    background: var(--mf-border);
}

.mf-sheet-title {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--mf-text);
}

.mf-sheet-sub {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--mf-text-muted);
}

.mf-sheet-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--mf-text-soft);
    line-height: 1.4;
}

.mf-edit-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mf-edit-row {
    padding: 0.75rem;
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    background: var(--mf-slate-bg);
}

.mf-edit-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.mf-edit-label {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--mf-text);
}

.mf-sheet-done-tag {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--mf-text-soft);
    letter-spacing: 0.04em;
}

.mf-edit-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mf-edit-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mf-edit-field > span {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mf-text-soft);
}

.mf-edit-time {
    width: 100%;
    padding: 0.65rem 0.5rem;
    border: 2px solid var(--mf-border);
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--mf-surface);
    min-height: 3rem;
}

.mf-edit-time:disabled {
    opacity: 0.45;
}

.mf-edit-live-tag {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mf-blue);
}

.mf-cascade-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: var(--mf-blue-bg);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mf-text-muted);
    line-height: 1.35;
    cursor: pointer;
}

.mf-cascade-toggle input {
    margin-top: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.mf-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.mf-sheet-actions--confirm {
    grid-template-columns: 1fr;
}

.mf-sheet-actions--confirm .mf-btn-save {
    order: -1;
}

.mf-btn-ghost {
    background: var(--mf-surface);
    color: var(--mf-text-muted);
    border: 2px solid var(--mf-border);
}

.mf-btn-save {
    background: var(--mf-blue);
    color: #fff;
}

.mf-btn-save:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mf-sheet-changes {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.mf-sheet-changes li {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: var(--mf-slate-bg);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.mf-sheet-was {
    color: var(--mf-text-soft);
    text-decoration: line-through;
}

.mf-sheet-will {
    color: var(--mf-green);
    font-weight: 800;
}

.mf-sheet-note {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--mf-text-muted);
}

/* ── Mobile manage (legacy redirect) ────────────────── */

.mobile-manage-shell .mm-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--mf-text-soft);
    line-height: 1.4;
}

.mm-break-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mm-break-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mf-text-muted);
}

.mm-time {
    width: 5.5rem;
    padding: 0.45rem 0.35rem;
    border: 1px solid var(--mf-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.mm-save-btn {
    padding: 0.45rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: var(--mf-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.mm-card .mf-name {
    margin: 0 0 0.25rem;
}

@media (min-width: 420px) {
    .mf-header,
    .mf-list,
    .mf-alert {
        max-width: 26rem;
        margin-left: auto;
        margin-right: auto;
    }

    .mf-alert { margin-top: 0.75rem; }
}

.mf-edit-times--auto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: end;
}

.mf-edit-field--start {
    grid-column: 1;
}

.mf-edit-end-auto {
    grid-column: 2;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    background: var(--mf-slate-bg);
    border: 1px solid var(--mf-border);
}

.mf-edit-end-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mf-text-soft);
}

.mf-edit-end-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--mf-text);
}

.mf-edit-dur {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mf-blue);
}

/* ── Mobile test mode (admin-enabled) ───────────────── */

.mf-sim-blocked {
    margin: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
}

.mf-sim-blocked a {
    color: #c2410c;
    font-weight: 800;
}

.mf-test-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 0.85rem 0.65rem;
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%);
    color: #fff;
    border-bottom: 2px solid #fdba74;
    box-shadow: 0 2px 12px rgba(124, 45, 18, 0.25);
}

.mf-test-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mf-test-badge {
    font-size: 0.6875rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}

.mf-test-clock {
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.mf-test-hint {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.6875rem;
    opacity: 0.92;
    line-height: 1.35;
}

.mf-test-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.mf-test-label {
    font-size: 0.6875rem;
    font-weight: 700;
    opacity: 0.85;
    margin-right: 0.15rem;
}

.mf-test-speed,
.mf-test-regen {
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

.mf-test-speed--on {
    background: #fff;
    color: #c2410c;
    border-color: #fff;
}

.mf-test-exit {
    margin-left: auto;
    padding: 0.35rem 0.55rem;
    color: #ffedd5;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

body.mobile-test-mode .mf-header {
    top: 0;
    /* The test bar above already carries the safe-area notch padding, so the
       header underneath uses a plain top padding to avoid a double gap. */
    padding-top: 0.6rem;
}

/* ── Action sheets (card/chip long-press menus) ───── */
.mf-action-sheet-body {
    padding: 0 1rem 1.25rem;
}

.mf-action-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mf-action-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    background: var(--mf-surface);
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}

.mf-action-item-label {
    font-weight: 700;
    color: var(--mf-text);
}

.mf-action-item-sub {
    font-size: 0.82rem;
    color: var(--mf-text-muted);
    margin-top: 0.15rem;
}

.mf-action-picks {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.mf-action-pick {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--mf-border);
    border-radius: 12px;
    background: var(--mf-surface);
    text-align: left;
    touch-action: manipulation;
}

.mf-action-pick--done {
    opacity: 0.55;
}

.mf-action-pick-label {
    font-weight: 700;
}

.mf-action-pick-meta {
    font-size: 0.82rem;
    color: var(--mf-text-muted);
}

.mf-action-desc {
    font-size: 0.92rem;
    color: var(--mf-text-muted);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.mf-action-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.mf-action-btns {
    display: flex;
    gap: 0.5rem;
}

.mf-action-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mf-action-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.mf-action-field input {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--mf-border);
    border-radius: 10px;
    font-size: 1rem;
}

.mf-action-submit {
    margin-top: 0.25rem;
}

.mf-card--hold {
    transform: scale(0.985);
    box-shadow: 0 0 0 2px var(--mf-blue);
}

.mf-chip--hold {
    box-shadow: 0 0 0 2px var(--mf-orange);
}

/* Tab crossfade + timeline scroll highlight */
.mf-list--tab-exit {
    opacity: 0;
    transform: translateY(6px) scale(0.992);
}

.mf-list--tab-enter {
    animation: mf-list-tab-enter 0.32s var(--app-motion-spring) both;
}

@keyframes mf-list-tab-enter {
    from { opacity: 0; transform: translateY(10px) scale(0.988); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mf-counter-card--highlight {
    animation: mf-counter-flash 1.35s ease-out;
}

@keyframes mf-counter-flash {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
    35% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.28); }
    100% { box-shadow: var(--app-shadow-sm); }
}

.mf-counter-empty .empty-state {
    padding: 1.5rem 1rem;
}

.mf-recent-dates {
    display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center;
    padding: 0.35rem 0.75rem 0;
    max-height: 4rem;
    overflow: hidden;
    transition:
        max-height 0.24s var(--app-motion-fade),
        opacity 0.2s var(--app-motion-fade),
        margin 0.24s var(--app-motion-fade),
        padding 0.24s var(--app-motion-fade);
}
.mf-recent-label {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: #94a3b8;
}
.mf-recent-chip {
    border: 1px solid #e2e8f0; background: #fff; padding: 0.15rem 0.45rem;
    border-radius: 999px; font-size: 0.65rem; font-weight: 600; color: #475569;
}
.mf-recent-chip--on { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }

.mf-fallback-banner {
    margin: 0.5rem 0.75rem 0; padding: 0.5rem 0.75rem; border-radius: 10px;
    background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
    font-size: 0.75rem; font-weight: 600;
}
.mf-fallback-banner.hidden { display: none; }

.mf-quick-note {
    margin: 0.4rem 0.75rem 0;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    background: rgba(239, 246, 255, 0.85);
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 600;
}
.mf-quick-note.hidden { display: none; }

.mf-patrol-mode .mf-summary-slot,
.mf-patrol-mode .mf-recent-dates,
.mf-patrol-mode #mf-alert {
    display: none !important;
}
.mf-patrol-mode .mf-card {
    min-height: 130px;
}
.mf-patrol-mode .mf-card-name {
    font-size: 1.22rem;
}
.mf-patrol-mode .mf-card-main {
    font-size: 1.02rem;
}
.mf-patrol-mode .mf-badge {
    font-size: 0.86rem;
    padding: 0.2rem 0.58rem;
}
