/**
 * Mobile Media Import modal — Phase 1 shell.
 *
 * CSS-gated: only applies on mobile viewports. Desktop sees display:none.
 */

.mmi-overlay {
    display: none;
}

@media (max-width: 767px) {

    .mmi-overlay {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        /* Reserve room for tab-bar (z 11000 sits above this z 10100).
           See mobile-tab-bar.css → "UNIVERSAL MOBILE-MODAL BOTTOM RESERVATION". */
        padding-bottom: var(--mobile-control-panel-height, 56px);
        z-index: 10100;
        background: linear-gradient(180deg, #0d1626 0%, #0a1220 100%);
        color: #e8ebf2;
        font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.18s ease-out, transform 0.18s ease-out;
        overscroll-behavior: contain;
    }

    .mmi-overlay.mmi-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* ── Header ─────────────────────────────────────────────────────── */
    .mmi-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: calc(env(safe-area-inset-top, 0) + 10px) 16px 10px;
        background: rgba(11, 20, 35, 0.92);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .mmi-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        color: #e8ebf2;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mmi-close-btn:active { background: rgba(255, 255, 255, 0.12); }

    .mmi-title {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 0.2px;
        color: #f6f7fb;
    }

    /* ── Body ───────────────────────────────────────────────────────── */
    .mmi-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px 24px;
    }

    .mmi-section {
        margin-top: 18px;
    }
    .mmi-section:first-child { margin-top: 4px; }

    .mmi-section-label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #9aa3b8;
        margin-bottom: 6px;
    }

    .mmi-section-hint {
        margin: 0 0 10px;
        font-size: 14px;
        line-height: 1.4;
        color: #b4bccf;
    }

    /* Resume-on-return list */
    .mmi-resume-section {
        padding: 14px;
        background: rgba(118, 94, 255, 0.08);
        border: 1px solid rgba(118, 94, 255, 0.22);
        border-radius: 14px;
    }

    .mmi-resume-list {
        list-style: none;
        margin: 6px 0 0;
        padding: 0;
    }

    .mmi-resume-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 10px;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 10px;
        margin-top: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mmi-resume-item:active { background: rgba(255, 255, 255, 0.09); }

    .mmi-resume-icon { font-size: 22px; width: 28px; text-align: center; }
    .mmi-resume-meta { flex: 1; min-width: 0; }
    .mmi-resume-name {
        font-size: 15px; font-weight: 600; color: #f2f4fa;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mmi-resume-sub { font-size: 13px; color: #9aa3b8; margin-top: 2px; }
    .mmi-resume-arrow { font-size: 22px; color: #6c7690; }

    /* Title input (humble-kindling-hummingbird S2) */
    .mmi-input-wrap {
        position: relative;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 14px;
        padding: 8px 12px;
    }
    .mmi-input-wrap:focus-within {
        border-color: rgba(235, 190, 120, 0.55);
        background: rgba(255, 255, 255, 0.06);
    }
    /* Reserve space on the right for the floating mic button. */
    .mmi-input-wrap-with-mic {
        padding-right: 52px;
    }
    .mmi-title-input {
        width: 100%;
        background: transparent;
        border: 0;
        outline: 0;
        color: #f2f4fa;
        font-size: 17px;
        line-height: 1.4;
        font-family: inherit;
        padding: 6px 0;
    }
    .mmi-title-input::placeholder {
        color: #6c7690;
    }

    /* Context textarea */
    .mmi-textarea-wrap {
        position: relative;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 14px;
        padding: 10px 12px 28px;
    }
    .mmi-textarea-wrap.mmi-input-wrap-with-mic {
        padding-right: 52px;
    }
    .mmi-textarea-wrap:focus-within {
        border-color: rgba(235, 190, 120, 0.55);
        background: rgba(255, 255, 255, 0.06);
    }
    .mmi-context-input {
        width: 100%;
        background: transparent;
        border: 0;
        outline: 0;
        resize: vertical;
        min-height: 120px;
        color: #f2f4fa;
        font-size: 16px;
        line-height: 1.5;
        font-family: inherit;
    }
    .mmi-context-input::placeholder {
        color: #6c7690;
    }
    .mmi-char-count {
        position: absolute;
        right: 12px;
        bottom: 6px;
        font-size: 12px;
        color: #6c7690;
    }
    /* When a textarea shares its wrap with a mic button, push the char count
       clear of the mic so they don't collide. */
    .mmi-textarea-wrap.mmi-input-wrap-with-mic .mmi-char-count {
        right: 56px;
    }

    /* Source pickers — default 3-col, 2-col variant for I1 collapse */
    .mmi-source-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .mmi-source-grid.mmi-source-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .mmi-source-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 18px 8px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 14px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.12s ease-out, border-color 0.12s ease-out;
    }
    .mmi-source-btn:active {
        background: rgba(235, 190, 120, 0.14);
        border-color: rgba(235, 190, 120, 0.45);
    }

    .mmi-source-icon {
        font-size: 28px;
        line-height: 1;
    }
    .mmi-source-label {
        font-size: 13px;
        font-weight: 600;
        color: #dfe3ee;
    }
    .mmi-source-input {
        position: absolute;
        width: 0;
        height: 0;
        opacity: 0;
        pointer-events: none;
    }

    /* File list */
    .mmi-list-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
    }
    .mmi-list-count {
        font-size: 14px;
        color: #9aa3b8;
        font-variant-numeric: tabular-nums;
    }

    /* Selected Files — 3-column grid (deliberate-flooding-meridian I2, 2026-04-19).
       Was vertical list; now compact tile grid: thumb on top, filename + remove X.
       Scroll container max-height respects tab-bar reservation. */
    .mmi-file-list {
        list-style: none;
        margin: 6px 0 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mmi-file-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 4px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        margin-top: 0;  /* grid gap handles spacing */
    }

    .mmi-file-thumb {
        position: relative;
        width: 100%;
        aspect-ratio: 1;
        border-radius: 8px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.06);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mmi-file-thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mmi-file-thumb-badge {
        position: absolute;
        right: 4px;
        bottom: 4px;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-size: 10px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mmi-file-thumb-doc {
        background: linear-gradient(140deg, rgba(120, 140, 220, 0.28), rgba(80, 110, 200, 0.15));
        flex-direction: column;
        gap: 2px;
    }
    /* G6 type-specific tile tints — document kinds get distinct backgrounds so
       a mixed-batch file list communicates type at-a-glance. */
    .mmi-file-thumb-pdf   { background: linear-gradient(140deg, rgba(235, 120, 110, 0.28), rgba(180, 70, 70, 0.15)); }
    .mmi-file-thumb-word  { background: linear-gradient(140deg, rgba(100, 150, 220, 0.28), rgba(60, 100, 180, 0.15)); }
    .mmi-file-thumb-text  { background: linear-gradient(140deg, rgba(160, 170, 180, 0.28), rgba(110, 120, 140, 0.15)); }
    .mmi-file-thumb-sheet { background: linear-gradient(140deg, rgba(120, 200, 140, 0.28), rgba(80, 160, 100, 0.15)); }
    .mmi-file-thumb-audio { background: linear-gradient(140deg, rgba(190, 140, 220, 0.28), rgba(140, 90, 180, 0.15)); }
    .mmi-file-thumb-image { background: linear-gradient(140deg, rgba(220, 180, 120, 0.28), rgba(180, 140, 80, 0.15)); }
    .mmi-file-thumb-icon {
        font-size: 18px;
        line-height: 1;
    }
    .mmi-file-thumb-ext {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #eaf0ff;
    }

    .mmi-file-meta {
        min-width: 0;
        text-align: center;
    }
    .mmi-file-name {
        font-size: 11px;
        color: #e8ebf2;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mmi-file-size {
        font-size: 10px;
        color: #7d87a1;
        margin-top: 1px;
    }

    /* Remove X — overlay top-right corner of the tile (grid layout). */
    .mmi-file-remove {
        position: absolute;
        top: 2px;
        right: 2px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mmi-file-remove svg {
        width: 14px;
        height: 14px;
    }
    .mmi-file-remove:active { background: rgba(229, 96, 96, 0.85); }

    .mmi-list-empty {
        padding: 16px 12px;
        font-size: 14px;
        color: #7d87a1;
        text-align: center;
        border: 1px dashed rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        margin-top: 8px;
    }

    .mmi-footer-spacer {
        height: calc(env(safe-area-inset-bottom, 0) + 120px);
    }

    /* ── Footer (sticky Upload CTA) ─────────────────────────────────── */
    .mmi-footer {
        position: sticky;
        bottom: 0;
        padding: 12px 16px calc(env(safe-area-inset-bottom, 0) + 14px);
        background: rgba(11, 20, 35, 0.94);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mmi-footer-hint {
        font-size: 12px;
        color: #7d87a1;
        text-align: center;
    }
    .mmi-footer-hint-ready {
        color: #8fe5a8;
    }

    .mmi-upload-cta {
        width: 100%;
        min-height: 52px;
        border: 0;
        border-radius: 14px;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 0.3px;
        color: #0a1220;
        background: linear-gradient(135deg, #ffd27a 0%, #ebbe78 100%);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.08s ease-out, box-shadow 0.12s ease-out, opacity 0.12s ease-out;
        box-shadow: 0 6px 18px rgba(235, 190, 120, 0.28);
    }
    .mmi-upload-cta:active {
        transform: scale(0.985);
        box-shadow: 0 2px 8px rgba(235, 190, 120, 0.24);
    }
    .mmi-upload-cta:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        box-shadow: none;
    }

    /* ── Step ③ Send it in (footer) — LS-4 truing-about-stagecraft ──────
       The Ch3 post-capture-card cue (about_ch3_08b_modal) is the design spec:
       a primary "Upload" CTA + a dashed "or send it bare" skip. Sandbox/Archive
       is the routing detail, tucked into a small destination sub-control. */
    .mmi-send-head {
        margin-bottom: 2px;
    }
    .mmi-send-head .mmi-step-label {
        color: #dfe4f0;
    }

    /* Destination sub-control (Sandbox | Archive). */
    .mmi-dest-row {
        display: flex;
        gap: 8px;
        justify-content: center;
    }
    .mmi-dest-chip {
        flex: 1 1 auto;
        min-height: 34px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        color: #9aa3b8;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.3px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.14s ease-out, color 0.14s ease-out, border-color 0.14s ease-out;
    }
    .mmi-dest-chip:active { transform: scale(0.99); }
    .mmi-dest-chip.mmi-dest-selected {
        color: #f6f7fb;
        border-color: rgba(235, 190, 120, 0.6);
        background: rgba(235, 190, 120, 0.14);
    }

    /* "or send it bare" — the dashed no-gate skip. */
    .mmi-barepill {
        align-self: center;
        min-height: 34px;
        padding: 6px 16px;
        border: 1px dashed rgba(255, 255, 255, 0.30);
        border-radius: 20px;
        background: transparent;
        color: #9aa3b8;
        font-size: 13px;
        letter-spacing: 0.2px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.14s ease-out, border-color 0.14s ease-out, opacity 0.12s ease-out;
    }
    .mmi-barepill:not(:disabled):active {
        color: #e8ebf2;
        border-color: rgba(232, 160, 64, 0.6);
    }
    .mmi-barepill:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    /* ── Numbered steps (① Describe · ② Tag) — LS-4 ─────────────────────
       The cue's "three quick things" — steps ① and ② in the scrollable body,
       step ③ (Send) is the sticky footer above. */
    .mmi-step-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }
    .mmi-step-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        flex: none;
        border-radius: 50%;
        border: 1.5px solid rgba(235, 190, 120, 0.55);
        color: #ffd27a;
        font-size: 12px;
        font-weight: 700;
    }
    .mmi-step-label {
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.2px;
        color: #f6f7fb;
    }
    /* Steps drop the inner section's own uppercase label — the step head names
       it — but keep the hint copy. */
    .mmi-step .mmi-section { margin-top: 12px; }

    /* Step ② — the FACES · or · DOCUMENT binary. */
    .mmi-tag-chips {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mmi-tag-chip {
        flex: 1 1 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 54px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
        color: #b4bccf;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.14s ease-out, color 0.14s ease-out, border-color 0.14s ease-out, transform 0.08s ease-out;
    }
    .mmi-tag-chip:active { transform: scale(0.985); }
    .mmi-tag-chip-icon {
        width: 20px;
        height: 20px;
        flex: none;
    }
    .mmi-tag-chip.mmi-tag-selected {
        color: #8fe5a8;
        border-color: rgba(110, 210, 150, 0.7);
        background: rgba(110, 210, 150, 0.14);
    }
    .mmi-tag-chip.mmi-tag-done {
        opacity: 0.85;
        cursor: default;
    }
    .mmi-tag-chip:disabled { cursor: not-allowed; }
    .mmi-tag-or {
        flex: none;
        font-size: 12px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #7d87a1;
    }

    /* Header subtitle "three quick things". */
    .mmi-title-wrap {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
    }
    .mmi-title-sub {
        font-size: 12px;
        font-style: italic;
        color: #7d87a1;
        letter-spacing: 0.2px;
    }

    /* ── LS-15: the Ch3 "Captured just now" card ────────────────────────
       The warm echo of the about_ch3_08b_modal cue, shown for a single fresh
       camera capture. Amber-tinted parchment note on the dark shell. */
    .mmi-capture-card {
        margin-top: 14px;
        padding: 14px 16px;
        border-radius: 16px;
        border: 1px solid rgba(235, 190, 120, 0.28);
        background: linear-gradient(160deg, rgba(235, 190, 120, 0.10) 0%, rgba(235, 190, 120, 0.03) 100%);
    }
    .mmi-captured-eyebrow {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #ffd27a;
    }
    .mmi-captured-title {
        margin-top: 4px;
        font-size: 18px;
        font-style: italic;
        line-height: 1.3;
        color: #f4ede0;
    }
    .mmi-capture-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }
    .mmi-capture-chip {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 5px 11px;
        border-radius: 999px;
        border: 1px solid rgba(235, 190, 120, 0.30);
        background: rgba(235, 190, 120, 0.06);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.2px;
        color: #e6d7bd;
    }
    .mmi-capture-chip-dot {
        width: 6px;
        height: 6px;
        flex: none;
        border-radius: 50%;
        background: #ffd27a;
    }

    /* ── Phase 2 overlay: upload / success / processing / error ───────── */
    .mmi-p2-overlay {
        position: fixed;
        inset: 0;
        z-index: 10150;
        background: rgba(5, 10, 22, 0.72);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        opacity: 0;
        transition: opacity 0.18s ease-out;
    }
    .mmi-p2-overlay.mmi-p2-visible { opacity: 1; }

    .mmi-p2-card {
        width: 100%;
        max-width: 420px;
        background: linear-gradient(160deg, #13203a 0%, #0c1628 100%);
        border: 1px solid rgba(235, 190, 120, 0.22);
        border-radius: 20px;
        padding: 24px 22px 22px;
        color: #e8ebf2;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    }

    .mmi-p2-banner {
        background: linear-gradient(135deg, rgba(235, 190, 120, 0.18), rgba(235, 190, 120, 0.08));
        border: 1px solid rgba(235, 190, 120, 0.35);
        color: #f4dca8;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.3px;
        padding: 10px 14px;
        border-radius: 10px;
        text-align: center;
        margin-bottom: 18px;
    }

    .mmi-p2-title {
        font-size: 20px;
        font-weight: 700;
        text-align: center;
        letter-spacing: 0.2px;
        margin-bottom: 16px;
    }

    .mmi-p2-bar-wrap {
        height: 10px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 10px;
    }
    .mmi-p2-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #ffd27a 0%, #ebbe78 100%);
        transition: width 0.2s ease-out;
    }

    .mmi-p2-stats {
        text-align: center;
        font-size: 13px;
        color: #c4cad8;
        font-variant-numeric: tabular-nums;
        margin-bottom: 12px;
    }

    .mmi-p2-hint {
        text-align: center;
        font-size: 13px;
        color: #8994ac;
        margin: 8px 0 0;
    }

    .mmi-p2-msg {
        text-align: center;
        font-size: 15px;
        line-height: 1.5;
        color: #cdd4e2;
        margin: 0 0 18px;
    }

    .mmi-p2-check {
        display: flex;
        justify-content: center;
        margin: 4px 0 14px;
        color: #6dd19a;
    }
    .mmi-p2-success .mmi-p2-title { color: #8fe5a8; }

    .mmi-p2-error .mmi-p2-title { color: #f59a8c; }

    .mmi-p2-btn-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 6px;
    }

    .mmi-p2-btn {
        min-height: 48px;
        border-radius: 12px;
        border: 0;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.2px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        padding: 10px 12px;
    }
    .mmi-p2-btn:active { transform: scale(0.985); }

    .mmi-p2-btn-primary {
        background: linear-gradient(135deg, #ffd27a 0%, #ebbe78 100%);
        color: #0a1220;
        box-shadow: 0 6px 14px rgba(235, 190, 120, 0.22);
    }
    .mmi-p2-btn-secondary {
        background: rgba(255, 255, 255, 0.06);
        color: #e8ebf2;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
    .mmi-p2-btn-wide { width: 100%; grid-column: 1 / -1; }

    .mmi-p2-fail-list {
        list-style: none;
        margin: 8px 0 14px;
        padding: 10px 12px;
        background: rgba(245, 154, 140, 0.08);
        border: 1px solid rgba(245, 154, 140, 0.22);
        border-radius: 10px;
        max-height: 170px;
        overflow-y: auto;
    }
    .mmi-p2-fail-item {
        font-size: 12px;
        color: #f5c8bf;
        padding: 3px 0;
    }

    /* ─── Mobile Batch List (humble-kindling-hummingbird S5) ──────────── */
    .mbl-container {
        padding: 14px;
        background: rgba(118, 94, 255, 0.10);
        border: 1px solid rgba(118, 94, 255, 0.28);
        border-radius: 14px;
        margin-bottom: 4px;
    }
    .mbl-heading {
        margin-bottom: 10px;
    }
    .mbl-heading-label {
        font-size: 13px;
        font-weight: 700;
        color: #c7b8ff;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
    .mbl-heading-hint {
        font-size: 13px;
        color: #a5aec9;
        margin: 4px 0 0;
        line-height: 1.45;
    }
    .mbl-skeleton {
        font-size: 13px;
        color: #a5aec9;
        padding: 10px 0;
        text-align: center;
    }
    .mbl-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .mbl-card {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 12px;
        overflow: hidden;
        transition: background 0.15s ease-out, opacity 0.25s ease-out, transform 0.25s ease-out;
    }
    .mbl-card:active { background: rgba(255, 255, 255, 0.07); }
    .mbl-card-dismissing {
        opacity: 0.35;
        transform: translateX(6px);
        pointer-events: none;
    }
    .mbl-card-body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        padding: 12px 14px 8px;
        background: transparent;
        border: 0;
        color: inherit;
        text-align: left;
        font: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mbl-card-title-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
    }
    .mbl-card-title {
        font-size: 15px;
        font-weight: 600;
        color: #f2f4fa;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1 1 auto;
        min-width: 0;
    }
    .mbl-card-elapsed {
        font-size: 12px;
        color: #8892ad;
        flex-shrink: 0;
    }
    .mbl-card-desc {
        font-size: 13px;
        color: #b4bccf;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .mbl-card-counts {
        font-size: 12px;
        color: #c7b8ff;
        font-weight: 500;
        margin-top: 2px;
    }
    .mbl-card-actions {
        display: flex;
        gap: 8px;
        padding: 8px 10px 10px;
        justify-content: flex-end;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .mbl-btn {
        appearance: none;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        color: #e8ebf2;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        padding: 8px 14px;
        border-radius: 10px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 36px;
        -webkit-tap-highlight-color: transparent;
    }
    .mbl-btn:active { transform: scale(0.97); }
    .mbl-btn-resume {
        background: linear-gradient(135deg, #7a5fff 0%, #5a42d8 100%);
        border-color: transparent;
        color: #fff;
    }
    .mbl-btn-dismiss {
        background: rgba(255, 255, 255, 0.05);
        color: #b4bccf;
    }
    .mbl-btn-icon {
        font-size: 13px;
        line-height: 1;
    }

}  /* end @media (max-width: 767px) */
