:root {
    color-scheme: light;
    --bg: #fff8f0;
    --panel: #ffffff;
    --panel-soft: #fff5e8;
    --text: #10223f;
    --muted: #5f6f87;
    --navy: #06204a;
    --line: #ead2b8;
    --primary: #d66a12;
    --primary-dark: #963d08;
    --primary-soft: #ffead1;
    --success: #15803d;
    --danger: #dc2626;
    --danger-dark: #991b1b;
    --warning: #8f4a08;
    --shadow: 0 18px 48px rgba(6, 32, 74, 0.10);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(214, 106, 18, 0.11), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(6, 32, 74, 0.10), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    color: var(--text);
}

button, input { font: inherit; }

.app-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 34px 0 20px;
}

.header-action-zone {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 280px;
}

.header-connection-card {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: end;
    gap: 8px 12px;
    padding: 7px 9px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 220, 200, 0.95);
    box-shadow: 0 8px 18px rgba(6, 32, 74, 0.06);
}

.header-session-meta {
    text-align: right;
    padding: 0 3px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-room-code {
    margin-top: 1px;
    font-size: clamp(0.68rem, 0.95vw, 0.82rem);
    letter-spacing: 0.055em;
}

.header-role-text {
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
    justify-self: end;
}

.brand-block { display: flex; gap: 16px; align-items: center; }

.brand-logo-block {
    min-width: 0;
    flex: 1;
    justify-content: flex-start;
}

.brand-logo-img {
    width: min(540px, 100%);
    height: auto;
    display: block;
    border-radius: 18px;
    filter: drop-shadow(0 14px 22px rgba(6, 32, 74, 0.08));
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); letter-spacing: -0.035em; }
h3 { font-size: 1rem; margin-bottom: 12px; }
p { color: var(--muted); line-height: 1.55; }

.panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(241, 215, 189, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}


.badge-mode { background: #ffedd5; color: var(--primary-dark); }



.share-method-panel {
    margin-bottom: 18px;
}

.share-method-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.share-method-card {
    position: relative;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    padding: 18px 16px;
    min-height: 72px;
    text-align: center;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 8px 22px rgba(6, 32, 74, 0.05);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.share-method-card:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.36);
}

.share-method-card.active {
    border-color: rgba(249, 115, 22, 0.78);
    background: linear-gradient(145deg, #ffffff, #fff1dc);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.14);
}

.share-method-card strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
}

.share-method-card span {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 20;
    width: min(300px, 86vw);
    transform: translate(-50%, -4px);
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--navy);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: 0 14px 28px rgba(6, 32, 74, 0.18);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.share-method-card small {
    display: none;
}


.share-method-card:hover span,
.share-method-card:focus-visible span {
    opacity: 1;
    transform: translate(-50%, 0);
}

.share-method-card span::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--navy);
}

.workflow-panel {
    margin-bottom: 18px;
    padding: 18px;
}

.workflow-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.workflow-head h2 {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.workflow-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    min-height: 104px;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 8px 22px rgba(6, 32, 74, 0.05);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.workflow-card:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.36);
}

.workflow-card.active {
    border-color: rgba(249, 115, 22, 0.78);
    background: linear-gradient(145deg, #ffffff, #fff1dc);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.14);
}

.workflow-card strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 900;
}

.workflow-card span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}


.trusted-panel {
    margin-bottom: 18px;
    padding: 18px;
}

.trusted-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.trusted-head h2 {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-top: 6px;
}


.manage-devices-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    margin-bottom: 14px;
    overflow: hidden;
}

.manage-devices-panel summary {
    cursor: pointer;
    padding: 14px 16px;
    color: var(--navy);
    font-weight: 900;
    list-style-position: inside;
}

.manage-devices-body {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
}

.manage-devices-body .trusted-device-row {
    margin-bottom: 0;
}

.manage-devices-body .trusted-device-id {
    min-width: 0;
    text-align: left;
}

.own-device-register-status {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}


.add-trusted-device-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    margin: 14px 0;
    overflow: visible;
}

.add-trusted-device-panel summary {
    cursor: pointer;
    padding: 14px 16px;
    color: var(--navy);
    font-weight: 900;
    list-style-position: inside;
}

.add-trusted-device-body {
    padding: 0 14px 14px;
}

.add-trusted-device-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.add-trusted-device-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 185px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-soft);
}

.add-trusted-device-card h3 {
    margin-bottom: 0;
    color: var(--navy);
}

.add-trusted-device-or {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.add-trusted-device-or span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(124, 45, 18, 0.10);
}

.trusted-list-head {
    margin: 6px 0 8px;
}

.trusted-device-card small {
    display: none;
}

.compact-toggle {
    font-size: 0.86rem;
}

.trusted-device-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 12px;
}

.device-name-input {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--text);
    background: #fff;
    font-weight: 800;
}

.trusted-device-id {
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffaf3;
    text-align: right;
}

.trusted-device-id strong {
    display: block;
    color: var(--navy);
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

.trusted-devices-list {
    display: grid;
    gap: 10px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 12px;
    background: #fffaf3;
}

.trusted-device-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.trusted-device-card strong {
    color: var(--navy);
}

.trusted-device-card small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.trusted-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}


.device-approval-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffaf3;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.device-approval-toggle input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.trusted-actions .btn {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
}


.landing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
}

.or-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.or-divider::before,
.or-divider::after {
    content: "";
    display: block;
    width: 2px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, #fdba74, transparent);
}

.or-divider span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(124, 45, 18, 0.10);
}

.action-card {
    min-height: 310px;
    padding: 28px;
    border-radius: 22px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
}

.primary-card {
    background: linear-gradient(145deg, #ffffff, #fff1dc);
}

.creator-pairing-code-box {
    padding: 14px 16px;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(124, 45, 18, 0.08);
}

.creator-pairing-code {
    margin-top: 4px;
    color: var(--navy);
    font-size: clamp(1.85rem, 4vw, 2.7rem);
    line-height: 1;
    letter-spacing: 0.13em;
    font-weight: 950;
}

.creator-pairing-code-box small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.step-label {
    display: inline-flex;
    width: max-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.join-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.code-input {
    min-width: 0;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.code-input:focus {
    outline: 3px solid rgba(249, 115, 22, 0.18);
    border-color: var(--primary);
}

.btn {
    border: 0;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

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

.btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
}
.btn-primary:not(:disabled):hover { background: var(--primary-dark); }

.btn-secondary {
    color: var(--primary-dark);
    background: #ffedd5;
}
.btn-secondary:not(:disabled):hover { background: #fed7aa; }

.btn-danger {
    color: #fff;
    background: var(--danger);
}
.btn-danger:not(:disabled):hover { background: var(--danger-dark); }

.header-disconnect {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

.session-panel { padding: 22px; }

.session-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.muted-small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.room-code {
    margin-top: 4px;
    font-size: clamp(2rem, 6vw, 3.7rem);
    line-height: 1;
    letter-spacing: 0.13em;
    font-weight: 900;
}

.session-substatus {
    grid-column: 1 / -1;
    margin-top: 0;
    width: 100%;
    display: block;
    text-align: right;
    justify-self: end;
    color: var(--success);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.status-stack { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1dc;
    color: #5f361c;
    font-weight: 800;
    font-size: 0.82rem;
}
.badge-wait { background: #fff4df; color: var(--warning); }
.badge-good { background: #e4f8f0; color: var(--success); }
.badge-bad { background: #ffe9e9; color: var(--danger); }

.status-card {
    margin-top: 18px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.transfer-panel {
    margin-top: 18px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #fff;
}

.transfer-head {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.button-cluster { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.download-options {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-soft);
}

.download-folder-control {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    text-align: right;
}

.file-select-row {
    margin-top: 14px;
    justify-content: flex-end;
}

.toggle-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
}

.toggle-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.download-folder-status {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.drop-zone {
    margin-top: 18px;
    min-height: 120px;
    border: 2px dashed #fdba74;
    background: #fffaf3;
    border-radius: 20px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 22px;
    color: var(--muted);
}
.drop-zone strong { color: var(--text); display: block; font-size: 1.05rem; }
.drop-zone.is-over { border-color: var(--primary); background: #ffedd5; }

.transfer-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.transfer-list {
    min-height: 82px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 16px;
    padding: 12px;
}

.empty-list { color: var(--muted); }

.transfer-item {
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 10px;
}
.transfer-item:last-child { margin-bottom: 0; }
.transfer-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: 800;
}
.transfer-title span:first-child {
    overflow-wrap: anywhere;
}
.transfer-meta {
    color: var(--muted);
    font-size: 0.86rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.progress-track {
    margin: 10px 0 8px;
    height: 9px;
    border-radius: 999px;
    background: #ffedd5;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    transition: width 0.16s ease;
}
.download-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--primary-dark);
    font-weight: 800;
    text-decoration: none;
}
.download-link:hover { text-decoration: underline; }

.log-panel {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffaf3;
    padding: 12px 14px;
}
.log-panel summary {
    cursor: pointer;
    font-weight: 800;
}
.log-box {
    margin-top: 10px;
    max-height: 160px;
    overflow: auto;
    color: #7b604f;
    font-size: 0.86rem;
    line-height: 1.55;
}
.log-entry { border-top: 1px solid #f1d7bd; padding: 6px 0; }
.log-entry:first-child { border-top: 0; }

footer {
    margin-top: auto;
    padding: 24px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-mainline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-mainline span:first-child {
    color: var(--navy);
    font-weight: 800;
}

.legal-disclaimer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(244, 220, 200, 0.95);
    color: #6c5b4f;
    font-size: 0.78rem;
    line-height: 1.45;
}

.hidden { display: none !important; }

@media (max-width: 980px) {
    .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .suite-settings-menu .suite-menu-list { left: 0; right: auto; min-width: min(320px, 90vw); }


    .connected-devices-box { align-items: flex-start; }
    .rename-download-control { width: 100%; }
    .personal-profile-edit-row, .personal-inline-profile .own-device-edit-row { grid-template-columns: 1fr; }


    .add-trusted-device-grid { grid-template-columns: 1fr; }
    .add-trusted-device-or { min-height: 20px; }


    .share-method-card span {
        position: static;
        width: auto;
        transform: none;
        opacity: 1;
        margin-top: 8px;
        background: transparent;
        color: var(--muted);
        box-shadow: none;
        padding: 0;
    }
    .share-method-card span::before { display: none; }
    .manage-devices-body .trusted-device-row { grid-template-columns: 1fr; }

    .app-shell { width: min(100% - 20px, 1120px); }
    .app-header { align-items: stretch; flex-direction: column; }
    .header-action-zone { justify-content: flex-start; min-width: 0; }
    .header-connection-card { justify-content: flex-start; width: 100%; grid-template-columns: 1fr; }
    .header-session-meta { text-align: left; flex: 1; align-items: flex-start; }
    .header-role-text, .header-disconnect { justify-self: start; }
    .session-substatus { text-align: left; justify-self: start; }
    .landing-grid, .transfer-lists, .mode-grid, .workflow-grid, .share-method-selector { grid-template-columns: 1fr; }
    .or-divider { min-height: auto; padding: 0; }
    .or-divider::before, .or-divider::after { width: 1px; height: 28px; }
    .mode-panel-head { flex-direction: column; align-items: stretch; }
    .action-card { min-height: 250px; }
    .session-topbar { grid-template-columns: 1fr; align-items: stretch; }
    .status-stack { justify-content: flex-start; }
    .status-card, .transfer-head { flex-direction: column; align-items: stretch; }
    .button-cluster { justify-content: stretch; }
    .download-options { align-items: stretch; flex-direction: column; }
    .trusted-head, .trusted-device-card { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
    .trusted-device-row { grid-template-columns: 1fr; }
    .trusted-device-id { text-align: left; }
    .trusted-actions { justify-content: stretch; flex-wrap: wrap; }
    .trusted-actions .btn { flex: 1; }
    .download-folder-control { margin-left: 0; align-items: stretch; text-align: left; flex-direction: column; }
    .download-options .btn, .header-disconnect { width: 100%; }
    .button-cluster .btn, .status-card .btn { width: 100%; }
    .join-row { grid-template-columns: 1fr; }
}

.beta-testing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 75, 31, 0.10);
    color: var(--navy);
    border: 1px solid rgba(255, 75, 31, 0.24);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.room-code.header-room-code {
    margin-top: 1px;
    font-size: clamp(0.68rem, 0.95vw, 0.82rem);
    letter-spacing: 0.055em;
}

.offline-panel {
    margin-bottom: 18px;
    padding: 18px;
}

.offline-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.offline-head p,
.offline-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.offline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.offline-card {
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 22px rgba(6, 32, 74, 0.05);
}

.offline-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: end;
    margin-top: 14px;
}

.offline-select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    background: #fffaf3;
    color: var(--text);
    font-weight: 800;
}

.offline-buttons {
    margin-top: 14px;
    justify-content: flex-start;
}

.offline-status {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.offline-files-list {
    margin-top: 14px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 16px;
    padding: 12px;
    min-height: 74px;
}

.offline-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    margin-bottom: 8px;
}

.offline-file-row:last-child { margin-bottom: 0; }
.offline-file-row strong { overflow-wrap: anywhere; }
.offline-file-row small { display: block; color: var(--muted); margin-top: 4px; }

@media (max-width: 760px) {
    .offline-grid { grid-template-columns: 1fr; }
    .offline-file-row { flex-direction: column; align-items: stretch; }
    .offline-buttons { justify-content: stretch; }
}


/* v1.1.9 compact header selector and cleaner My Devices UI */
.app-header {
    align-items: flex-start;
}
.header-action-zone {
    flex: 0 0 min(430px, 42vw);
    min-width: 330px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
}
.header-share-selector {
    align-self: stretch;
    padding: 10px;
    border: 1px solid rgba(241, 215, 189, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(6, 32, 74, 0.07);
    backdrop-filter: blur(10px);
}
.header-share-title {
    color: var(--navy);
    font-weight: 950;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.header-share-selector .share-method-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}
.header-share-selector .share-method-card {
    min-height: 42px;
    padding: 9px 7px;
    border-radius: 12px;
    box-shadow: none;
}
.header-share-selector .share-method-card strong {
    font-size: 0.72rem;
    line-height: 1.15;
}
.header-share-selector .share-method-card span {
    font-size: 0.76rem;
}
.own-device-inline {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}
.own-device-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.own-device-name-row strong {
    color: var(--navy);
    font-size: 1rem;
}
.btn-mini {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
}
.own-device-edit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.own-device-details summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}
.own-device-details .trusted-device-id {
    margin-top: 8px;
    min-width: 0;
    text-align: left;
}
.device-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.device-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}
.device-status-label {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    background: #f1f5f9;
    color: #475569;
}
.trusted-device-card.status-live .device-status-dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16); }
.trusted-device-card.status-live .device-status-label { background: #dcfce7; color: #166534; }
.trusted-device-card.status-sleeping .device-status-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }
.trusted-device-card.status-sleeping .device-status-label { background: #fef3c7; color: #92400e; }
.trusted-device-card.status-offline .device-status-dot { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16); }
.trusted-device-card.status-offline .device-status-label { background: #f1f5f9; color: #475569; }
.btn-delete-device {
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger);
    background: #fff5f5;
}
.btn-delete-device:hover {
    border-color: rgba(220, 38, 38, 0.45);
}

@media (max-width: 900px) {
    .app-header { align-items: stretch; flex-direction: column; }
    .header-action-zone { flex: 1 1 auto; min-width: 0; width: 100%; }
    .brand-logo-img { width: min(500px, 100%); }
}
@media (max-width: 760px) {
    .header-share-selector .share-method-selector { grid-template-columns: 1fr; }
    .header-share-selector .share-method-card { text-align: left; min-height: 48px; }
    .own-device-edit-row { grid-template-columns: 1fr; }
}

/* v1.1.9 suite navigation and focused application pages */
.suite-header {
    align-items: flex-start;
}

.brand-logo-block {
    text-decoration: none;
}

.suite-header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: min(520px, 48vw);
}

.suite-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
    border: 1px solid rgba(244, 220, 200, 0.95);
    border-radius: 18px;
    background: rgba(255,255,255,0.84);
    box-shadow: 0 10px 24px rgba(6,32,74,0.07);
}

.suite-nav-link,
.suite-menu-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.suite-nav-link.active,
.suite-nav-link:hover,
.suite-menu:hover .suite-menu-button,
.suite-menu-button:focus-visible {
    background: var(--primary-soft);
    border-color: rgba(249,115,22,0.35);
    color: var(--primary-dark);
}

.suite-menu {
    position: relative;
}

.suite-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    display: none;
    z-index: 60;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(6,32,74,0.14);
}

.suite-menu:hover .suite-menu-list,
.suite-menu:focus-within .suite-menu-list,
.suite-menu.open .suite-menu-list {
    display: grid;
    gap: 4px;
}

.suite-menu-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.suite-menu-list a:hover {
    background: var(--panel-soft);
    color: var(--primary-dark);
}

.home-dashboard {
    padding: 24px;
}

.home-dashboard-head {
    margin-bottom: 18px;
}

.home-dashboard-head h1 {
    margin-top: 6px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.app-card {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 28px rgba(6,32,74,0.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249,115,22,0.45);
    box-shadow: 0 18px 34px rgba(6,32,74,0.10);
}

.app-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--primary-soft);
    font-size: 1.45rem;
}

.app-card strong {
    color: var(--navy);
    font-size: 1rem;
}

.app-card small {
    color: var(--muted);
    line-height: 1.35;
    font-weight: 700;
}


.suite-menu.open .suite-menu-list {
    display: grid;
    gap: 4px;
}

.suite-settings-menu .suite-menu-list {
    min-width: 320px;
}

.suite-settings-list {
    gap: 10px;
}

.settings-dropdown-card {
    display: grid;
    gap: 9px;
    min-width: 280px;
}

.settings-current-name strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.86rem;
}

.settings-inline-edit {
    display: grid;
    gap: 8px;
}

.settings-inline-edit .device-name-input {
    height: 38px;
    margin: 0;
}

.app-card-action {
    align-self: end;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(249,115,22,0.22);
}

.app-card:hover .app-card-action {
    background: var(--primary-dark);
}

.muted-app {
    opacity: 0.78;
}



.personal-inline-profile {
    margin-bottom: 14px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.personal-inline-profile .own-device-name-row {
    margin-bottom: 0;
}

.personal-add-type-row {
    margin-bottom: 14px;
}

.personal-add-type-row label {
    display: block;
}

.personal-add-type-row .offline-select {
    width: min(360px, 100%);
    margin-top: 6px;
}

.connected-devices-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffaf3;
}

.connected-device-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.84rem;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--navy);
}

.connected-device-chip.remote-chip {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: rgba(249, 115, 22, 0.35);
}

.connected-device-arrow {
    color: var(--primary-dark);
    font-weight: 900;
}

.rename-download-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: min(260px, 100%);
}

.rename-download-control .device-name-input {
    height: 40px;
    margin-top: 0;
}

.personalization-panel {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}
.personalization-panel summary {
    cursor: pointer;
    padding: 13px 16px;
    color: var(--navy);
    font-weight: 900;
    list-style-position: inside;
}
.personalization-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 0 14px 14px;
}
.personalization-body .own-device-register-status {
    grid-column: 1 / -1;
}
.compact-own-device {
    margin-bottom: 14px;
}
.compact-personal-devices.empty-list {
    display: block;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: #fffaf3;
    color: var(--muted);
    font-weight: 800;
}
.personal-type-picker {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffaf3;
}
.personal-direct-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.personal-type-btn {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-weight: 900;
    cursor: pointer;
}
.personal-type-btn.active,
.personal-type-btn:hover {
    border-color: rgba(249,115,22,0.74);
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.personal-more-types {
    margin-top: 10px;
}
.personal-more-types summary {
    cursor: pointer;
    color: var(--primary-dark);
    font-weight: 900;
    margin-bottom: 8px;
}
#personalSelectedTypeText {
    margin-top: 10px;
}

.personal-devices-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.personal-device-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.personal-device-slot.empty {
    background: #fffaf3;
    border-style: dashed;
}

.slot-select-label {
    display: block;
    margin-bottom: 14px;
}

.placeholder-panel {
    padding: 28px;
    text-align: left;
}

.placeholder-panel h2 {
    margin-top: 8px;
    margin-bottom: 8px;
}

@media (max-width: 940px) {
    .suite-header {
        flex-direction: column;
    }
    .suite-header-actions {
        width: 100%;
        min-width: 0;
        align-items: stretch;
    }
    .suite-nav {
        justify-content: flex-start;
    }
    .app-grid,
    .personal-devices-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {

    .personalization-body { grid-template-columns: 1fr; }
    .personal-direct-types { grid-template-columns: 1fr 1fr; }

    .suite-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .suite-nav-link,
    .suite-menu-button {
        width: 100%;
    }
    .suite-menu-list {
        left: 0;
        right: auto;
        min-width: min(260px, 86vw);
    }
    .personal-device-slot {
        grid-template-columns: 1fr;
    }
}

/* v1.2.8 personal-device encrypted pickup inbox */
.personal-hybrid-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin: 14px 0 18px;
    border: 1px solid rgba(255, 122, 44, 0.25);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 122, 44, 0.10), rgba(255, 244, 234, 0.72));
}
.personal-hybrid-strip strong { display: block; color: #4b250b; }
.personal-hybrid-strip small { display: block; margin-top: 4px; color: #76533c; }
.notification-setup-card {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.notification-status-pill,
.personal-pending-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 122, 44, 0.13);
    color: #8a3b08;
    border: 1px solid rgba(255, 122, 44, 0.26);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 9px;
    white-space: nowrap;
}
.personal-pending-badge {
    margin-left: 6px;
    background: rgba(16, 118, 75, 0.10);
    border-color: rgba(16, 118, 75, 0.25);
    color: #0f714b;
}
.personal-inbox-section {
    margin: 18px 0;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(23, 32, 42, 0.10);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 30px rgba(34, 20, 10, 0.06);
}
.personal-inbox-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}
.personal-inbox-head h3 { margin: 4px 0 3px; }
.personal-inbox-head p { margin: 0; color: #76533c; }
.personal-inbox-controls {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.personal-inbox-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.personal-inbox-package {
    border: 1px solid rgba(23, 32, 42, 0.10);
    border-radius: 16px;
    padding: 12px;
    background: #fffdfb;
}
.personal-inbox-package-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.personal-inbox-package-head strong { display: block; color: #1f2933; }
.personal-inbox-package-head small { color: #76533c; }
.personal-inbox-files {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.personal-inbox-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255, 122, 44, 0.06);
}
.personal-inbox-file-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}
.personal-inbox-file-row small { color: #76533c; white-space: nowrap; }
@media (max-width: 760px) {
    .personal-hybrid-strip,
    .personal-inbox-head,
    .personal-inbox-package-head {
        align-items: stretch;
        flex-direction: column;
    }
    .notification-setup-card,
    .personal-inbox-controls,
    .trusted-actions { justify-content: flex-start; }
    .personal-inbox-file-row { grid-template-columns: 1fr; }
}

/* v1.2.8 compact personal-device UI and mobile download hardening */
.suite-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
}
.suite-nav-link,
.suite-menu-button {
    flex: 0 0 auto;
}
@media (max-width: 560px) {
    .suite-nav {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .suite-nav-link,
    .suite-menu-button {
        width: auto;
        min-width: max-content;
        padding: 0 10px;
        font-size: 0.78rem;
    }
}
.compact-status:empty,
.offline-status.hidden {
    display: none;
}
.personal-sent-section {
    margin-top: 12px;
}
.personal-sent-package {
    background: #fffaf3;
}
.sent-file-status,
.manual-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}
.sent-file-status {
    padding: 5px 9px;
    color: #7c3b09;
    background: rgba(255, 122, 44, 0.12);
    border: 1px solid rgba(255, 122, 44, 0.24);
}
.manual-download-link {
    padding: 7px 10px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #ff8a3d);
    border: 1px solid rgba(255, 122, 44, 0.28);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.16);
}
@media (max-width: 560px) {
    .personal-inbox-file-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }
    .personal-inbox-package-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v1.2.8 header dropdown, settings, and compact grouped inbox refinements */
.suite-header {
    align-items: center;
}
.suite-header-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}
.suite-nav {
    flex-wrap: nowrap;
    overflow: visible;
    gap: 5px;
    padding: 6px;
    position: relative;
}
.suite-nav-link,
.suite-menu-button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.78rem;
}
.suite-menu-list {
    overflow: visible;
}
.suite-settings-list {
    min-width: min(410px, calc(100vw - 32px));
}
.settings-dropdown-card + .settings-dropdown-card {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.notification-settings-card .notification-setup-card {
    justify-content: flex-start;
    margin-top: 7px;
}
.personal-inbox-device-group {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(23, 32, 42, 0.10);
    border-radius: 18px;
    padding: 12px;
    background: #fffdfb;
}
.personal-sent-device-group {
    background: #fffaf3;
}
.personal-inbox-device-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--navy);
}
.personal-inbox-device-body {
    display: grid;
    gap: 10px;
}
.personal-inbox-package.compact-package {
    padding: 10px;
    background: rgba(255, 255, 255, 0.82);
}
.personal-package-title strong {
    font-size: 0.88rem;
    color: #1f2933;
}
.personal-package-actions {
    align-items: center;
    flex-wrap: wrap;
}
.personal-package-meta {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 122, 44, 0.09);
    color: #76533c;
    border: 1px solid rgba(255, 122, 44, 0.18);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}
.personal-inbox-file-row.compact-file-row {
    grid-template-columns: minmax(0, 1fr) auto;
}
.trusted-device-info small.hidden {
    display: none;
}
@media (max-width: 940px) {
    .suite-header-actions {
        width: auto;
        align-items: flex-end;
    }
    .brand-logo-img {
        width: min(420px, 100%);
    }
}
@media (max-width: 700px) {
    .suite-header {
        gap: 10px;
    }
    .brand-logo-block {
        flex: 0 1 112px;
    }
    .brand-logo-img {
        width: 112px;
        border-radius: 12px;
    }
    .suite-header-actions {
        flex: 1 1 auto;
        min-width: 0;
    }
    .suite-nav {
        max-width: calc(100vw - 150px);
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: thin;
    }
    .suite-nav-link,
    .suite-menu-button {
        min-height: 30px;
        padding: 0 8px;
        font-size: 0.72rem;
    }
    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list {
        position: fixed;
        top: 82px;
        left: 12px;
        right: 12px;
        min-width: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}
@media (max-width: 560px) {
    .suite-nav {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .suite-menu-list {
        left: 0;
        right: auto;
    }
    .personal-inbox-package-head,
    .personal-package-actions,
    .personal-inbox-file-row.compact-file-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
    .personal-package-meta {
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

/* v1.2.8 header, timer-feedback, and incoming/outgoing file card refinements */
.suite-header {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
    align-items: stretch;
    gap: 18px;
    overflow: visible;
}

.brand-logo-block {
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

.brand-logo-img {
    width: 100%;
    min-height: 118px;
    max-height: 150px;
    object-fit: contain;
}

.suite-header-actions {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    overflow: visible;
}

.suite-header-actions.session-active {
    display: grid;
    grid-template-rows: minmax(54px, 1fr) minmax(54px, 1fr);
}

.header-connection-card {
    order: 1;
    width: 100%;
    min-height: 54px;
    justify-content: stretch;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.suite-nav {
    order: 2;
    width: 100%;
    min-height: 54px;
    justify-content: flex-end;
    align-items: center;
    overflow: visible !important;
    z-index: 40;
}

.suite-menu,
.suite-header-actions,
.app-header {
    overflow: visible;
}

.suite-menu-list {
    z-index: 9999;
    pointer-events: auto;
}

.incoming-download-options {
    margin: 0 0 12px;
    align-items: flex-start;
}

.incoming-download-options .rename-download-control {
    display: grid;
    gap: 6px;
    min-width: min(240px, 100%);
}

.incoming-download-options .download-folder-control {
    margin-left: 0;
    text-align: left;
    justify-content: flex-start;
}

.transfer-item-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.transfer-delete-btn {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.22);
    background: #fff7f7;
}

.transfer-delete-btn:hover {
    border-color: rgba(220, 38, 38, 0.44);
    background: #fff1f1;
}

@media (max-width: 940px) {
    .suite-header {
        grid-template-columns: 1fr;
    }
    .brand-logo-img {
        max-height: none;
    }
    .suite-header-actions.session-active {
        grid-template-rows: auto auto;
    }
}

@media (max-width: 700px) {
    .suite-header {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: start;
    }
    .brand-logo-img {
        width: 112px;
        min-height: 0;
        max-height: none;
        object-fit: contain;
    }
    .suite-header-actions {
        justify-content: flex-start;
    }
    .suite-header-actions.session-active {
        grid-template-rows: auto auto;
    }
    .header-connection-card {
        grid-template-columns: 1fr auto;
        gap: 6px;
    }
    .header-role-text {
        grid-column: 1 / -1;
        justify-self: start;
    }
    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list {
        position: fixed;
        top: 94px;
        left: 12px;
        right: 12px;
        min-width: 0;
        max-height: calc(100vh - 112px);
        overflow-y: auto;
    }
}

@media (max-width: 560px) {
    .incoming-download-options {
        flex-direction: column;
    }
    .incoming-download-options .btn,
    .transfer-item-actions .btn {
        width: 100%;
    }
}

/* v1.2.8 list-style personal devices and compact Inbox/Outbox rows */
.personal-devices-list.compact-personal-devices {
    grid-template-columns: 1fr;
    gap: 7px;
}
.personal-device-slot.registered {
    border-radius: 12px;
    padding: 9px 10px;
    box-shadow: none;
}
.personal-device-slot.registered .trusted-actions {
    gap: 6px;
}
.personal-device-slot.registered .btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.78rem;
}
.personal-device-slot.registered .device-name-line {
    gap: 8px;
}
.personal-device-slot.registered .trusted-device-info small {
    font-size: 0.72rem;
}

.icon-btn,
.icon-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(249, 115, 22, 0.22);
    background: #fff7ed;
    color: #7c2d12;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.icon-btn:hover,
.icon-download-link:hover {
    border-color: rgba(249, 115, 22, 0.45);
    background: #ffedd5;
    text-decoration: none;
}
.icon-btn.delete-icon,
.transfer-delete-btn,
.bulk-icon[aria-label*="Delete"] {
    color: var(--danger);
    background: #fff7f7;
    border-color: rgba(220, 38, 38, 0.20);
}
.icon-btn.delete-icon:hover,
.transfer-delete-btn:hover,
.bulk-icon[aria-label*="Delete"]:hover {
    background: #fff1f1;
    border-color: rgba(220, 38, 38, 0.42);
}

.personal-list-device-group {
    gap: 8px;
    padding: 10px;
}
.personal-group-bulk-actions,
.transfer-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}
.mini-select {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #76533c;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}
.row-check-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
}
.personal-file-table {
    gap: 6px;
}
.personal-inbox-file-row.personal-file-list-row {
    grid-template-columns: 24px minmax(0, 1.35fr) minmax(145px, 0.9fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid rgba(249, 115, 22, 0.10);
    background: rgba(255, 255, 255, 0.92);
}
.personal-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}
.personal-file-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #76533c;
    text-align: right;
}
.personal-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.manual-download-link {
    width: auto;
    min-width: 68px;
    height: 32px;
    padding: 0 9px;
}

.transfer-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.transfer-card-head h3 {
    margin: 0;
}
.compact-transfer-item {
    padding: 8px;
    margin-bottom: 7px;
}
.transfer-main-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.transfer-name-block {
    min-width: 0;
    display: grid;
    gap: 5px;
}
.compact-transfer-item .transfer-title {
    margin-bottom: 0;
    align-items: center;
}
.compact-transfer-item .transfer-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.compact-transfer-item .progress-track {
    height: 6px;
}
.compact-transfer-item .transfer-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: hidden;
    font-size: 0.72rem;
}
.compact-transfer-item .transfer-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.compact-transfer-item .transfer-item-actions {
    margin-top: 0;
    gap: 5px;
    align-items: center;
}

@media (max-width: 700px) {
    .personal-inbox-file-row.personal-file-list-row {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }
    .personal-file-meta {
        grid-column: 2 / 3;
        text-align: left;
        font-size: 0.7rem;
    }
    .personal-row-actions {
        grid-column: 3 / 4;
        grid-row: 1 / span 2;
    }
    .transfer-main-row {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }
    .compact-transfer-item .transfer-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .personal-device-slot.registered {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .personal-device-slot.registered .trusted-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .personal-device-slot.registered .trusted-actions .btn {
        width: auto;
    }
    .personal-inbox-device-head,
    .transfer-card-head {
        align-items: stretch;
        flex-direction: column;
    }
    .personal-group-bulk-actions,
    .transfer-bulk-actions {
        justify-content: flex-start;
    }
}
.icon-download-link { margin-top: 0; }
.icon-download-link:hover { text-decoration: none; }

/* v1.2.8 personal page grouping, collapsible inbox/outbox, and mobile header repair */
.personal-page {
    display: grid;
    gap: 16px;
}
.personal-page-card {
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,245,0.90));
    box-shadow: 0 16px 34px rgba(34, 20, 10, 0.07);
    padding: 16px;
    overflow: visible;
}
.personal-devices-section {
    border-left: 5px solid #f97316;
}
.personal-inbox-section {
    margin: 0;
    border-left: 5px solid #0f766e;
}
.personal-sent-section {
    border-left-color: #7c3aed;
}
.personal-card-head,
.personal-card-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.personal-card-summary {
    cursor: pointer;
    list-style: none;
}
.personal-card-summary::-webkit-details-marker {
    display: none;
}
.personal-card-summary h3,
.personal-card-head h2 {
    margin: 0;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.personal-card-head h2 {
    font-size: clamp(1.08rem, 2vw, 1.42rem);
    font-weight: 950;
}
.personal-card-summary h3 {
    font-size: clamp(1rem, 1.7vw, 1.22rem);
    font-weight: 950;
}
.personal-section-subtitle {
    display: block;
    margin-top: 4px;
    color: #76533c;
    font-size: 0.78rem;
    font-weight: 700;
}
.collapse-hint {
    min-width: 72px;
    text-align: center;
    border: 1px solid rgba(249, 115, 22, 0.20);
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 6px 10px;
}
.personal-collapsible-card[open] .collapse-hint::before {
    content: 'Hide';
}
.personal-collapsible-card:not([open]) .collapse-hint::before {
    content: 'Open';
}
.personal-collapsible-card .collapse-hint {
    font-size: 0;
}
.personal-collapsible-card.active-card {
    box-shadow: 0 18px 38px rgba(15, 118, 110, 0.10), 0 8px 20px rgba(249, 115, 22, 0.06);
}
.personal-card-body {
    padding-top: 14px;
}
.personal-card-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.personal-card-toolbar-right {
    justify-content: flex-end;
}
.personal-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.personal-section-actions .btn-mini {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 900;
}
.btn.danger-soft {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.22);
    background: #fff7f7;
}
.btn.danger-soft:hover {
    border-color: rgba(220, 38, 38, 0.42);
    background: #fff1f1;
}
.personal-devices-list.compact-personal-devices {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(244, 220, 200, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.70);
}
.personal-devices-list.compact-personal-devices.empty-list {
    display: block;
    color: #76533c;
    font-weight: 800;
}
.personal-device-slot.registered {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid rgba(249, 115, 22, 0.12);
    background: #ffffff;
}
.personal-device-slot.registered .trusted-device-info strong {
    font-size: 0.94rem;
    font-weight: 950;
    color: #17202a;
}
.personal-device-slot.registered .device-status-label,
.personal-device-slot.registered .trusted-device-info small {
    font-size: 0.73rem;
    font-weight: 750;
    color: #76533c;
}
.personal-add-device-panel {
    margin-top: 12px;
}
.personal-list-device-group {
    border: 1px solid rgba(23, 32, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
}
.personal-inbox-device-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 8px;
    border-bottom: 1px dashed rgba(118, 83, 60, 0.18);
}
.personal-group-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.personal-group-label strong {
    color: #17202a;
    font-size: 0.88rem;
    font-weight: 950;
}
.personal-group-label small {
    color: #76533c;
    font-size: 0.72rem;
    font-weight: 800;
}
.personal-inbox-file-row.personal-file-list-row {
    grid-template-columns: 24px minmax(0, 1.25fr) minmax(156px, 0.85fr) auto;
    border-color: rgba(249, 115, 22, 0.13);
}
.personal-file-name {
    font-size: 0.84rem;
    font-weight: 950;
    color: #1f2933;
}
.personal-file-meta {
    font-size: 0.72rem;
    font-weight: 750;
    color: #76533c;
}
.personal-inbox-list.empty-list,
.personal-sent-section .empty-list {
    padding: 12px;
    border: 1px dashed rgba(118, 83, 60, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    color: #76533c;
    font-size: 0.84rem;
    font-weight: 800;
}

@media (max-width: 700px) {
    .suite-header {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .brand-logo-block {
        width: 100%;
        justify-content: center;
    }
    .brand-logo-img {
        width: 100% !important;
        min-height: 92px;
        max-height: 138px;
        object-fit: contain;
    }
    .suite-header-actions {
        width: 100%;
        min-width: 0;
        align-items: stretch;
        gap: 8px;
    }
    .header-connection-card {
        order: 1;
        width: 100%;
        min-height: auto;
    }
    .suite-nav {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        min-height: 0;
        padding: 8px;
        overflow: visible !important;
        justify-content: stretch;
    }
    .suite-nav-link,
    .suite-menu-button {
        width: 100%;
        min-height: 38px;
        padding: 0 8px;
    }
    .suite-menu {
        position: relative;
        width: 100%;
    }
    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: 0 !important;
        min-width: 100% !important;
        max-height: 58vh;
        overflow-y: auto;
        z-index: 99999;
    }
    .suite-settings-menu .suite-menu-list {
        left: auto !important;
        right: 0 !important;
        min-width: min(340px, calc(100vw - 24px)) !important;
    }
    .personal-page-card {
        padding: 13px;
        border-radius: 18px;
    }
    .personal-card-head,
    .personal-card-summary,
    .personal-card-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .personal-section-actions,
    .personal-inbox-controls {
        justify-content: flex-start;
    }
    .personal-section-actions .btn-mini {
        flex: 1 1 auto;
    }
    .personal-device-slot.registered,
    .personal-inbox-file-row.personal-file-list-row {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }
    .personal-device-slot.registered {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .personal-device-slot.registered .trusted-actions {
        justify-content: flex-start;
    }
    .personal-file-meta {
        grid-column: 2 / 3;
        text-align: left;
    }
    .personal-row-actions {
        grid-column: 3 / 4;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 420px) {
    .suite-nav {
        grid-template-columns: 1fr;
    }
    .suite-settings-menu .suite-menu-list,
    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list {
        left: 0 !important;
        right: 0 !important;
        min-width: 100% !important;
    }
}

/* v1.2.8 collapsed-count summaries, mobile horizontal header nav, and pickup-later wording polish */
.personal-card-summary > div {
    min-width: 0;
}
.personal-card-summary .personal-section-subtitle {
    color: #5f4635;
    font-size: 0.82rem;
    font-weight: 900;
}
.personal-collapsible-card.has-files:not([open]) .personal-section-subtitle {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.22);
    background: #fff7ed;
    color: #9a3412;
}
.personal-sent-section.has-files:not([open]) .personal-section-subtitle {
    border-color: rgba(124, 58, 237, 0.20);
    background: #f6f1ff;
    color: #5b21b6;
}

@media (max-width: 700px) {
    .suite-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .brand-logo-block {
        width: 100% !important;
        justify-content: center !important;
    }
    .suite-header-actions {
        width: 100% !important;
        align-items: stretch !important;
    }
    .suite-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        width: 100% !important;
        overflow: visible !important;
    }
    .suite-nav-link,
    .suite-menu {
        flex: 1 1 30% !important;
        min-width: 92px !important;
    }
    .suite-nav-link,
    .suite-menu-button {
        width: 100% !important;
        min-height: 34px !important;
        padding: 0 7px !important;
        font-size: 0.70rem !important;
    }
    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list,
    .suite-menu:hover .suite-menu-list {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: auto !important;
        min-width: min(260px, calc(100vw - 24px)) !important;
        max-height: 60vh !important;
        z-index: 99999 !important;
    }
    .suite-settings-menu .suite-menu-list {
        left: auto !important;
        right: 0 !important;
        min-width: min(340px, calc(100vw - 24px)) !important;
    }
}

@media (max-width: 420px) {
    .suite-nav-link,
    .suite-menu {
        flex-basis: 30% !important;
        min-width: 88px !important;
    }
    .suite-nav-link,
    .suite-menu-button {
        font-size: 0.66rem !important;
        padding: 0 5px !important;
    }
}

/* v1.2.8 nested device group, minute-level file metadata, and tighter mobile rows */
.personal-devices-list.compact-personal-devices {
    margin-left: clamp(8px, 1.8vw, 18px);
    margin-right: clamp(2px, 0.8vw, 8px);
    padding: 12px 12px 12px 16px;
    border-left: 4px solid rgba(249, 115, 22, 0.20);
    background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,247,237,0.62));
}
.personal-device-slot.registered {
    background: rgba(255, 255, 255, 0.96);
}
.personal-card-summary {
    min-height: 40px;
}
.personal-card-summary > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: nowrap;
}
.personal-card-summary .personal-section-subtitle {
    margin-top: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.personal-file-meta {
    font-variant-numeric: tabular-nums;
}
.personal-inbox-file-row.personal-file-list-row {
    grid-template-columns: 24px minmax(0, 1.05fr) minmax(220px, 0.92fr) auto;
}

@media (max-width: 700px) {
    .suite-nav {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }
    .suite-nav-link,
    .suite-menu {
        min-width: 0 !important;
        width: 100% !important;
        flex: initial !important;
    }
    .suite-nav-link,
    .suite-menu-button {
        min-height: 32px !important;
        padding: 0 5px !important;
        font-size: 0.64rem !important;
        letter-spacing: -0.01em;
    }
    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list,
    .suite-menu:hover .suite-menu-list {
        min-width: min(245px, calc(100vw - 24px)) !important;
    }
    .suite-settings-menu .suite-menu-list {
        min-width: min(330px, calc(100vw - 24px)) !important;
    }
    .personal-card-head,
    .personal-card-summary {
        flex-direction: row !important;
        align-items: center !important;
    }
    .personal-card-summary > div {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        gap: 7px;
    }
    .personal-card-summary h3 {
        font-size: 0.95rem;
        flex: 0 0 auto;
    }
    .personal-card-summary .personal-section-subtitle {
        font-size: 0.66rem;
        min-width: 0;
    }
    .collapse-hint {
        min-width: 42px;
        padding: 5px 7px;
        font-size: 0;
    }
    .personal-collapsible-card[open] .collapse-hint::before,
    .personal-collapsible-card:not([open]) .collapse-hint::before {
        font-size: 0.66rem;
    }
    .personal-card-toolbar {
        flex-direction: row !important;
        align-items: center !important;
        gap: 7px;
    }
    .personal-inbox-controls {
        flex: 0 0 auto;
        gap: 6px;
    }
    .personal-inbox-controls .muted-small {
        font-size: 0.62rem;
    }
    .personal-inbox-controls .offline-select {
        min-height: 30px;
        padding: 0 8px;
        font-size: 0.72rem;
    }
    .personal-section-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 5px;
    }
    .personal-section-actions .btn-mini {
        flex: 0 0 auto;
        min-height: 30px;
        padding: 0 8px;
        font-size: 0.66rem;
    }
    .personal-devices-list.compact-personal-devices {
        margin-left: 8px;
        padding: 9px 9px 9px 12px;
    }
    .personal-inbox-file-row.personal-file-list-row {
        grid-template-columns: 20px minmax(0, 1fr) minmax(92px, 0.58fr) auto !important;
        gap: 5px;
        align-items: center;
        padding: 6px;
    }
    .personal-file-name {
        font-size: 0.74rem;
    }
    .personal-file-meta {
        grid-column: auto !important;
        text-align: right !important;
        font-size: 0.58rem;
        line-height: 1.15;
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .personal-row-actions {
        grid-column: auto !important;
        grid-row: auto !important;
        gap: 3px;
    }
    .icon-btn,
    .icon-download-link {
        width: 27px;
        height: 27px;
        border-radius: 8px;
        font-size: 0.82rem;
    }
    .manual-download-link {
        min-width: 48px;
        padding: 0 5px;
        font-size: 0.66rem;
    }
    .personal-inbox-device-head {
        flex-direction: row !important;
        align-items: center !important;
        padding-bottom: 6px;
    }
    .personal-group-label {
        gap: 5px;
    }
    .personal-group-label strong {
        font-size: 0.76rem;
    }
    .personal-group-label small {
        font-size: 0.62rem;
    }
}

@media (max-width: 380px) {
    .suite-nav-link,
    .suite-menu-button {
        font-size: 0.58rem !important;
        padding: 0 3px !important;
    }
    .personal-file-meta {
        max-width: 86px;
        font-size: 0.54rem;
    }
    .personal-section-actions .btn-mini {
        padding: 0 6px;
        font-size: 0.62rem;
    }
}

/* v1.3.0 mobile navigation polish and timestamp chips */
.personal-file-meta-chips {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
}
.personal-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid rgba(118, 83, 60, 0.13);
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.personal-meta-chip .chip-label {
    color: rgba(52, 64, 84, 0.72);
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.personal-meta-chip.sent {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.personal-meta-chip.expiry {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}
.personal-meta-chip.size {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}
.personal-meta-chip.status.pending {
    background: #f6f1ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}
.personal-meta-chip.status.done {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

@media (max-width: 700px) {
    .suite-header {
        gap: 8px !important;
    }
    .suite-header-actions {
        gap: 7px !important;
    }
    .suite-nav {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 8px !important;
        border-radius: 18px !important;
        border: 1px solid rgba(249, 115, 22, 0.18) !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,247,237,0.86)) !important;
        box-shadow: 0 10px 22px rgba(6,32,74,0.08) !important;
        overflow: visible !important;
    }
    .suite-nav > .suite-nav-link,
    .suite-nav > .suite-menu {
        width: 100% !important;
        min-width: 0 !important;
        flex: initial !important;
    }
    .suite-nav > :nth-child(1),
    .suite-nav > :nth-child(2),
    .suite-nav > :nth-child(3) {
        grid-column: span 2;
    }
    .suite-nav > :nth-child(4),
    .suite-nav > :nth-child(5) {
        grid-column: span 3;
    }
    .suite-nav-link,
    .suite-menu-button {
        width: 100% !important;
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 6px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(244, 220, 200, 0.95) !important;
        background: #ffffff !important;
        box-shadow: 0 4px 10px rgba(6,32,74,0.05) !important;
        color: var(--navy) !important;
        font-size: 0.68rem !important;
        font-weight: 950 !important;
        letter-spacing: -0.015em !important;
    }
    .suite-nav-link.active,
    .suite-nav-link:hover,
    .suite-menu.open .suite-menu-button,
    .suite-menu:hover .suite-menu-button,
    .suite-menu-button:focus-visible {
        background: #fff7ed !important;
        border-color: rgba(249,115,22,0.36) !important;
        color: #9a3412 !important;
    }
    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list,
    .suite-menu:hover .suite-menu-list {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: 154px !important;
        min-width: 0 !important;
        max-height: calc(100vh - 170px) !important;
        padding: 10px !important;
        border-radius: 18px !important;
        border: 1px solid rgba(249,115,22,0.20) !important;
        background: rgba(255,255,255,0.98) !important;
        box-shadow: 0 18px 42px rgba(6,32,74,0.18) !important;
        z-index: 100000 !important;
    }
    .suite-menu-list a {
        padding: 11px 12px !important;
        border-radius: 12px !important;
        background: #fffaf5;
        font-size: 0.82rem !important;
    }
    .suite-settings-menu .suite-menu-list {
        top: 154px !important;
        left: 12px !important;
        right: 12px !important;
        min-width: 0 !important;
    }
    .personal-file-meta-chips {
        justify-content: flex-end;
        gap: 3px;
        max-width: 128px;
    }
    .personal-meta-chip {
        min-height: 18px;
        padding: 1px 5px;
        font-size: 0.55rem;
        max-width: 122px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .personal-meta-chip .chip-label {
        font-size: 0.50rem;
    }
}

@media (max-width: 380px) {
    .suite-nav-link,
    .suite-menu-button {
        font-size: 0.62rem !important;
        padding: 0 4px !important;
    }
    .personal-meta-chip .chip-label {
        display: none;
    }
    .personal-file-meta-chips {
        max-width: 104px;
    }
}

/* v1.3.0 decluttered personal-device UI */
.personal-page {
    gap: 12px;
}
.personal-page-card {
    padding: 13px 14px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(34, 20, 10, 0.055);
}
.personal-devices-section,
.personal-inbox-section,
.personal-sent-section {
    border-left-width: 3px;
}
.personal-card-head h2,
.personal-card-summary h3 {
    font-size: 1.02rem;
    letter-spacing: -0.018em;
}
.personal-title-subtitle {
    margin-top: 2px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #76533c;
}
.personal-card-summary {
    min-height: 34px;
}
.personal-card-summary > div {
    gap: 8px;
}
.personal-card-summary .personal-section-subtitle {
    font-size: 0.74rem;
    color: #6b4b37;
}
.collapse-hint {
    min-width: 32px;
    width: 32px;
    height: 28px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    font-size: 0 !important;
}
.personal-collapsible-card[open] .collapse-hint::before {
    content: '⌃';
    font-size: 1rem;
    line-height: 1;
}
.personal-collapsible-card:not([open]) .collapse-hint::before {
    content: '⌄';
    font-size: 1rem;
    line-height: 1;
}
.personal-card-body {
    padding-top: 10px;
}
.personal-devices-list.compact-personal-devices {
    margin: 10px 8px 10px 18px;
    padding: 8px;
    gap: 6px;
    border-radius: 14px;
    border-left: 3px solid rgba(249, 115, 22, 0.22);
    background: rgba(255, 250, 245, 0.72);
}
.personal-device-slot.registered.fd-v130-device-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 44px;
    padding: 7px 8px;
    border-radius: 12px;
    box-shadow: none;
}
.fd-v130-device-line {
    gap: 6px;
    flex-wrap: nowrap;
}
.fd-v130-device-line strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem !important;
}
.fd-v130-device-line .device-status-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
}
.fd-v130-device-line .device-status-label,
.fd-v130-device-line .personal-pending-badge {
    flex: 0 0 auto;
    padding: 2px 7px;
    font-size: 0.66rem !important;
}
.fd-v130-device-actions {
    gap: 5px;
    flex-wrap: nowrap;
}
.fd-v130-device-actions .btn {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 950;
}
.fd-v130-remove-btn {
    width: 32px;
    padding: 0 !important;
    font-size: 0.88rem !important;
}
.personal-add-device-panel {
    margin-top: 8px;
    border-radius: 14px;
}
.personal-add-device-panel > summary {
    font-size: 0.78rem;
    font-weight: 950;
}
.personal-card-toolbar {
    margin-bottom: 8px;
    gap: 8px;
}
.personal-inbox-controls {
    gap: 8px;
}
.personal-inbox-controls .muted-small {
    display: none;
}
.personal-inbox-controls .offline-select {
    min-height: 32px;
    font-size: 0.72rem;
    padding: 0 9px;
}
.compact-toggle {
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid rgba(244,220,200,.95);
    border-radius: 10px;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}
.personal-section-actions {
    gap: 6px;
}
.personal-section-actions .btn-mini {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.72rem;
}
.personal-inbox-list {
    gap: 8px;
    margin-top: 8px;
}
.personal-inbox-device-group.personal-list-device-group {
    gap: 6px;
    padding: 8px;
    border-radius: 13px;
    background: rgba(255,255,255,.78);
    box-shadow: none;
}
.personal-inbox-device-head {
    padding: 0 0 5px;
}
.personal-group-label strong {
    font-size: 0.78rem;
}
.personal-group-label small {
    font-size: 0.64rem;
}
.personal-inbox-file-row.personal-file-list-row {
    min-height: 34px;
    grid-template-columns: 20px minmax(0, 1.1fr) minmax(210px, 0.9fr) auto;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 10px;
    background: rgba(255, 122, 44, 0.035);
}
.personal-file-name {
    font-size: 0.78rem;
    font-weight: 900;
}
.row-check-label input,
.personal-file-select {
    width: 15px;
    height: 15px;
}
.personal-file-meta-chips {
    gap: 4px;
    flex-wrap: nowrap;
}
.personal-meta-chip {
    min-height: 20px;
    padding: 1px 6px;
    font-size: 0.62rem;
    border-radius: 8px;
}
.personal-meta-chip .chip-label {
    font-size: 0.55rem;
}
.personal-row-actions {
    gap: 4px;
}
.personal-row-icon,
.icon-download-link {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 0.82rem;
}
.personal-inbox-list.empty-list,
.personal-sent-section .empty-list {
    padding: 9px 10px;
    font-size: 0.76rem;
}
.personal-collapsible-card.has-files:not([open]) .personal-section-subtitle {
    margin-top: 0;
    padding: 3px 7px;
    font-size: 0.68rem;
}

@media (max-width: 700px) {
    .app-shell { width: min(100% - 12px, 1120px); }
    .app-header { padding-top: 14px; gap: 6px !important; }
    .brand-logo-img {
        min-height: 72px !important;
        max-height: 104px !important;
        border-radius: 10px;
    }
    .suite-header-actions { gap: 5px !important; }
    .header-connection-card {
        padding: 6px 8px;
        border-radius: 12px;
        font-size: 0.72rem;
    }
    .suite-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 4px !important;
        padding: 5px !important;
        border-radius: 14px !important;
        box-shadow: 0 6px 14px rgba(6,32,74,0.06) !important;
    }
    .suite-nav > :nth-child(1),
    .suite-nav > :nth-child(2),
    .suite-nav > :nth-child(3),
    .suite-nav > :nth-child(4),
    .suite-nav > :nth-child(5) {
        grid-column: span 1 !important;
    }
    .suite-nav-link,
    .suite-menu-button {
        min-height: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
        padding: 0 2px !important;
        font-size: 0.58rem !important;
        box-shadow: none !important;
    }
    .suite-nav > :nth-child(3) .suite-menu-button {
        font-size: 0 !important;
    }
    .suite-nav > :nth-child(3) .suite-menu-button::after {
        content: 'Cast';
        font-size: 0.58rem;
    }
    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list,
    .suite-menu:hover .suite-menu-list,
    .suite-settings-menu .suite-menu-list {
        top: 116px !important;
        left: 8px !important;
        right: 8px !important;
        max-height: calc(100vh - 132px) !important;
        padding: 8px !important;
        border-radius: 14px !important;
    }
    .suite-menu-list a { padding: 9px 10px !important; font-size: 0.76rem !important; }
    .settings-dropdown-card { min-width: 0; }
    .personal-page { gap: 9px; }
    .personal-page-card {
        padding: 10px;
        border-radius: 15px;
        border-left-width: 3px;
    }
    .personal-card-head h2,
    .personal-card-summary h3 { font-size: 0.90rem; }
    .personal-title-subtitle { display: none; }
    .personal-card-summary > div { gap: 5px; }
    .personal-card-summary .personal-section-subtitle { font-size: 0.61rem; }
    .collapse-hint { width: 26px; min-width: 26px; height: 25px; border-radius: 8px; }
    .personal-devices-list.compact-personal-devices {
        margin: 8px 2px 8px 10px;
        padding: 7px;
        gap: 5px;
    }
    .personal-device-slot.registered.fd-v130-device-row {
        grid-template-columns: minmax(0, 1fr) auto !important;
        min-height: 38px;
        padding: 5px 6px;
        gap: 5px;
    }
    .fd-v130-device-line { gap: 4px; }
    .fd-v130-device-line strong { font-size: 0.74rem !important; }
    .fd-v130-device-line .device-status-label,
    .fd-v130-device-line .personal-pending-badge {
        padding: 1px 5px;
        font-size: 0.54rem !important;
    }
    .fd-v130-device-actions { gap: 3px; }
    .fd-v130-device-actions .btn {
        min-height: 26px;
        padding: 0 7px;
        font-size: 0.62rem;
        border-radius: 8px;
    }
    .fd-v130-remove-btn { width: 27px; }
    .personal-add-device-panel > summary { font-size: 0.70rem; }
    .personal-card-toolbar {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        align-items: center !important;
        gap: 5px !important;
    }
    .personal-card-toolbar-right { grid-template-columns: 1fr !important; }
    .personal-inbox-controls { gap: 4px; }
    .personal-inbox-controls .offline-select { min-height: 27px; font-size: 0.62rem; padding: 0 5px; }
    .compact-toggle { min-height: 27px; padding: 0 5px; font-size: 0.60rem; }
    .personal-section-actions { gap: 4px; justify-content: flex-end !important; }
    .personal-section-actions .btn-mini { min-height: 27px; padding: 0 7px; font-size: 0.60rem; }
    .personal-inbox-device-group.personal-list-device-group { padding: 6px; gap: 4px; }
    .personal-inbox-device-head { padding-bottom: 4px; }
    .personal-group-label strong { font-size: 0.68rem; }
    .personal-group-label small { font-size: 0.56rem; }
    .personal-inbox-file-row.personal-file-list-row {
        grid-template-columns: 18px minmax(0, 1fr) auto auto !important;
        min-height: 31px;
        gap: 4px;
        padding: 4px 5px;
        border-radius: 8px;
    }
    .personal-file-name { font-size: 0.66rem; }
    .personal-file-meta-chips {
        max-width: 96px;
        gap: 2px;
        justify-content: flex-end;
    }
    .personal-meta-chip {
        min-height: 16px;
        padding: 0 4px;
        font-size: 0.48rem;
        border-radius: 6px;
        max-width: 92px;
    }
    .personal-meta-chip .chip-label { display: none; }
    .personal-row-icon,
    .icon-download-link { width: 24px; height: 24px; border-radius: 7px; font-size: 0.72rem; }
    .row-check-label input,
    .personal-file-select { width: 13px; height: 13px; }
}

@media (max-width: 380px) {
    .suite-nav-link,
    .suite-menu-button { font-size: 0.52rem !important; }
    .suite-nav > :nth-child(3) .suite-menu-button::after { font-size: 0.52rem; }
    .personal-file-meta-chips { max-width: 78px; }
    .personal-meta-chip { max-width: 76px; font-size: 0.44rem; }
}

/* v1.4.1 Receive Files public desk */
.receive-panel{max-width:1180px;margin:0 auto;padding:18px 0 4px}.receive-hero-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;background:linear-gradient(135deg,#fff 0%,#fff7ed 100%);border:1px solid #fed7aa;border-radius:26px;padding:16px 18px;box-shadow:0 18px 50px rgba(15,23,42,.08)}.receive-hero-logo{width:100%;max-height:210px;object-fit:contain;object-position:left center}.receive-hero-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end}.receive-grid{display:grid;grid-template-columns:330px minmax(0,1fr) 270px;gap:16px;margin-top:16px}.receive-card{background:#fff;border:1px solid #f4dcc8;border-radius:22px;padding:16px;box-shadow:0 14px 40px rgba(15,23,42,.06)}.receive-card-headline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.receive-card-headline h2{margin:0;font-size:1.15rem;color:#09204a}.receive-chip{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;background:#fff7ed;color:#ea580c;font-weight:900;font-size:.82rem}.receive-qr-box{display:flex;align-items:center;justify-content:center;border:2px solid #fb923c;border-radius:18px;padding:10px;background:#fff;margin-bottom:12px}.receive-qr-box svg{display:block;max-width:100%;height:auto}.receive-copy-row{display:grid;grid-template-columns:42px minmax(0,1fr) 38px;gap:7px;align-items:center;margin:8px 0}.receive-copy-row span{font-weight:900;color:#0b2147;font-size:.82rem}.receive-copy-row input,.receive-mini-grid input,.receive-sender-name{height:38px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;color:#0b2147;font-weight:800;padding:0 10px;min-width:0}.icon-btn{width:36px;height:36px;border:1px solid #fed7aa;background:#fff7ed;color:#ea580c;border-radius:12px;font-weight:900;cursor:pointer}.receive-stats-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.receive-stats-row span{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:10px;text-align:center;color:#334155;font-size:.82rem}.receive-stats-row b{display:block;color:#0b2147;font-size:1.3rem}.receive-tabs{display:flex;gap:6px}.receive-tabs button{border:1px solid #e5e7eb;background:#f8fafc;border-radius:999px;padding:5px 10px;font-weight:900;color:#334155;cursor:pointer}.receive-tabs button.active{background:#ff4b1f;color:#fff;border-color:#ff4b1f}.receive-bulk-row{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-bottom:10px}.receive-files-list{display:grid;gap:8px}.receive-file-row{display:grid;grid-template-columns:28px minmax(0,1.7fr) minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #edf2f7;background:#fff;border-radius:14px;padding:8px 10px}.receive-file-row input[type=checkbox]{width:17px;height:17px}.receive-file-name{min-width:0}.receive-file-name strong{display:block;color:#09204a;font-size:.93rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.receive-file-name small{display:block;color:#64748b;font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.receive-file-meta{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.receive-meta-chip{background:#eff6ff;color:#1e3a8a;border-radius:999px;padding:4px 7px;font-size:.72rem;font-weight:900;white-space:nowrap}.receive-meta-chip.ready{background:#ecfdf5;color:#166534}.receive-meta-chip.uploading{background:#fff7ed;color:#ea580c}.receive-row-actions{display:flex;gap:5px}.receive-row-actions button,.receive-row-actions a{width:32px;height:32px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.receive-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.receive-check{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #f1f5f9;color:#0b2147;font-weight:800}.receive-check:last-child{border-bottom:0}.receive-sender-view{max-width:520px;margin:0 auto}.receive-sender-card{background:#fff;border:1px solid #fed7aa;border-radius:26px;padding:18px;box-shadow:0 18px 54px rgba(15,23,42,.08);text-align:center}.receive-sender-logo{width:100%;max-height:150px;object-fit:contain}.receive-sender-card h1{margin:10px 0;color:#09204a;font-size:1.7rem}.receive-sender-code{display:inline-flex;gap:7px;align-items:center;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;padding:7px 13px;color:#0b2147;font-weight:900;margin-bottom:12px}.receive-sender-name{width:100%;margin:0 0 12px}.receive-big-actions{display:grid;gap:10px}.receive-whatsapp-help{display:grid;gap:8px;margin-top:10px}.receive-whatsapp-help button{border:1px solid #fed7aa;background:#fff7ed;color:#0b2147;border-radius:14px;padding:11px 12px;font-weight:900}.receive-sender-status{margin:12px 0;color:#475569;font-weight:800}.receive-upload-list{display:grid;gap:8px;text-align:left}.receive-upload-row{border:1px solid #e5e7eb;border-radius:14px;padding:10px;background:#f8fafc}.receive-upload-row strong{display:block;color:#0b2147;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.receive-progress{height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin-top:8px}.receive-progress span{display:block;height:100%;background:#ff4b1f;width:0%}.receive-send-mode .suite-header,.receive-send-mode footer{display:none}.receive-send-mode .app-shell{min-height:100vh;display:flex;align-items:center;justify-content:center}.receive-send-mode main{width:100%;padding:16px}.empty-list{color:#64748b;text-align:center}
@media (max-width: 980px){.receive-grid{grid-template-columns:1fr}.receive-hero-card{grid-template-columns:1fr}.receive-hero-actions{justify-content:stretch}.receive-hero-actions .btn{width:100%}.receive-hero-logo{max-height:160px}.receive-file-row{grid-template-columns:24px minmax(0,1fr) auto}.receive-file-meta{grid-column:2 / 4;justify-content:flex-start}.receive-settings-card{order:3}.receive-qr-card{order:1}.receive-files-card{order:2}}
@media (max-width: 560px){.receive-panel{padding:8px 0}.receive-hero-card,.receive-card,.receive-sender-card{border-radius:20px;padding:12px}.receive-copy-row{grid-template-columns:36px minmax(0,1fr) 34px}.receive-card-headline h2{font-size:1rem}.receive-bulk-row{justify-content:flex-start}.receive-mini-grid{grid-template-columns:1fr}.receive-file-name strong{font-size:.86rem}.receive-file-row{padding:8px}.receive-sender-logo{max-height:120px}}

/* v1.4.1 Receive Files two-mode public desk refinements */
.page-receive-files .brand-logo-block{flex:1.1}.receive-main-header-logo{width:min(500px,100%);max-height:150px;object-fit:contain;object-position:left center;background:#fff;border:1px solid #fed7aa;padding:6px}.receive-mode-view{display:grid;gap:18px;justify-items:center;padding:18px}.receive-mode-logo{width:min(880px,100%);max-height:260px;object-fit:contain}.receive-mode-actions{display:grid;grid-template-columns:repeat(2,minmax(0,230px));gap:14px;width:min(500px,100%)}.receive-mode-btn{border:1px solid #fed7aa;background:#fff;border-radius:22px;padding:20px 16px;box-shadow:0 16px 40px rgba(15,23,42,.07);color:#0b2147;font-weight:950;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;min-height:82px}.receive-mode-btn span{font-size:1.65rem}.receive-mode-btn strong{font-size:1.1rem}.receive-mode-btn.primary{background:linear-gradient(135deg,#ff4b1f,#f97316);border-color:#ff4b1f;color:#fff}.receive-compact-hero{grid-template-columns:minmax(0,1fr) auto;padding:10px 14px}.receive-compact-hero .receive-hero-logo{max-height:150px}.receive-recent-card{margin-top:12px;background:#fff;border:1px solid #f4dcc8;border-radius:22px;padding:12px 14px;box-shadow:0 12px 34px rgba(15,23,42,.045)}.receive-code-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:8px}.receive-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;border:1px solid #fed7aa;background:#fff7ed;border-radius:14px;padding:7px 8px}.receive-code-row strong{font-size:1rem;color:#0b2147;letter-spacing:.08em}.receive-code-row span{font-size:.72rem;font-weight:900;color:#ea580c}.receive-code-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:8px 0 12px}.receive-code-entry .code-input{text-align:center;letter-spacing:.12em;font-weight:950;text-transform:uppercase}.receive-code-entry .btn{height:44px}.receive-sender-view .btn:disabled{opacity:.55;cursor:not-allowed}.receive-file-meta .receive-meta-chip:nth-child(2){background:#f1f5f9;color:#334155}.receive-send-mode .receive-code-entry{display:grid}.receive-send-mode .receive-sender-card{max-width:520px;margin:auto}
@media (max-width:700px){.page-receive-files .app-header{padding-top:12px}.receive-main-header-logo{width:100%;max-height:120px;border-radius:14px}.receive-mode-view{padding:10px}.receive-mode-logo{max-height:165px}.receive-mode-actions{grid-template-columns:1fr 1fr;gap:10px}.receive-mode-btn{min-height:70px;padding:14px 10px;border-radius:18px}.receive-mode-btn strong{font-size:.96rem}.receive-mode-btn span{font-size:1.3rem}.receive-compact-hero{grid-template-columns:1fr;gap:10px}.receive-compact-hero .receive-hero-logo{max-height:120px}.receive-code-list{grid-template-columns:1fr}.receive-recent-card{padding:10px}.receive-sender-view{max-width:100%;}.receive-sender-card h1{font-size:1.35rem}.receive-sender-logo{max-height:110px}}

/* v1.4.3 Receive Files uncluttered entry + connected upload flow */
.receive-mode-view-compact {
    padding: 22px 0 10px;
}
.receive-mode-view-compact .receive-mode-actions {
    margin-inline: auto;
}
.receive-action-strip {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 20px;
}
.receive-connect-panel {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}
.receive-scan-main {
    min-height: 54px;
    font-size: 1.05rem;
}
.receive-scanner-panel {
    display: grid;
    gap: 8px;
    justify-items: center;
    background: #0b2147;
    border-radius: 18px;
    padding: 10px;
}
.receive-scanner-panel video {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 14px;
    background: #020617;
}
.receive-connected-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 950;
    border: 1px solid #bbf7d0;
}
.receive-connected-bar span {
    color: #0b2147;
    letter-spacing: .08em;
}
.receive-after-connect {
    display: grid;
    gap: 10px;
}
.receive-sender-card .receive-upload-list.empty-list {
    display: none;
}
.receive-sender-status {
    min-height: 20px;
}

@media (max-width: 700px) {
    .receive-mode-view-compact {
        padding: 12px 0 6px;
    }
    .receive-mode-actions {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
    .receive-mode-btn {
        min-height: 64px;
    }
    .receive-action-strip {
        justify-content: stretch;
    }
    .receive-action-strip .btn {
        flex: 1;
    }
    .receive-scanner-panel video {
        max-height: 220px;
    }
}


/* v1.4.4 Receive Files header spacing + wider logo */
.page-receive-files .suite-header {
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
    align-items: stretch;
    column-gap: 26px;
    row-gap: 18px;
    margin-bottom: 14px;
}
.page-receive-files .brand-logo-block {
    justify-content: center;
    align-items: center;
    min-width: 0;
}
.page-receive-files .receive-main-header-logo {
    width: 100%;
    max-width: 980px;
    min-height: 0;
    max-height: 238px;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
}
.page-receive-files .suite-header-actions {
    align-self: center;
}
.page-receive-files .receive-mode-view-compact {
    padding-top: 22px;
    padding-bottom: 16px;
}
.page-receive-files .receive-mode-view-compact .receive-mode-actions {
    margin-top: 8px;
    gap: 22px;
    width: min(620px, 100%);
}
@media (max-width: 900px) {
    .page-receive-files .suite-header {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-inline: 10px;
        margin-bottom: 8px;
    }
    .page-receive-files .brand-logo-block {
        width: 100%;
        max-width: none;
        align-self: center;
    }
    .page-receive-files .receive-main-header-logo {
        width: 100%;
        max-width: none;
        max-height: 210px;
        object-position: center center;
    }
    .page-receive-files .suite-header-actions {
        width: 100%;
    }
}
@media (max-width: 700px) {
    .page-receive-files .receive-mode-view-compact {
        padding-top: 18px;
        padding-bottom: 12px;
    }
    .page-receive-files .receive-mode-view-compact .receive-mode-actions {
        gap: 14px;
        margin-top: 6px;
    }
}
@media (max-width: 520px) {
    .page-receive-files .suite-header {
        padding-top: 10px;
        padding-inline: 4px;
        gap: 14px;
    }
    .page-receive-files .receive-main-header-logo {
        max-height: 188px;
    }
    .page-receive-files .receive-mode-view-compact {
        padding-top: 14px;
    }
}

/* v1.4.7 Receive Files header/action polish + code controls */
.page-receive-files .suite-header,
.receive-send-mode .suite-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    align-items: start;
    gap: 18px;
    margin-bottom: 20px;
}
.page-receive-files .brand-logo-block,
.receive-send-mode .brand-logo-block {
    justify-content: center;
    align-items: center;
    padding: 0;
}
.page-receive-files .receive-main-header-logo,
.receive-send-mode .receive-main-header-logo {
    width: 100%;
    max-width: 720px;
    max-height: 160px;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
}
.page-receive-files .suite-header-actions,
.receive-send-mode .suite-header-actions {
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 390px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.08);
}
.page-receive-files .suite-nav,
.receive-send-mode .suite-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}
.page-receive-files .suite-nav-link,
.page-receive-files .suite-menu-button,
.receive-send-mode .suite-nav-link,
.receive-send-mode .suite-menu-button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    border: 1px solid #fed7aa;
    color: #0b2147;
}
.page-receive-files .suite-nav-link.active,
.receive-send-mode .suite-nav-link.active {
    background: linear-gradient(135deg, #ff4b1f, #f97316);
    color: #fff;
    border-color: #ff4b1f;
}
.page-receive-files .suite-menu,
.receive-send-mode .suite-menu {
    min-width: 0;
}
.page-receive-files .suite-menu-list,
.receive-send-mode .suite-menu-list {
    z-index: 80;
}
.receive-send-mode .app-shell {
    min-height: 100vh;
    display: block;
}
.receive-send-mode main {
    width: 100%;
    padding: 14px 16px 28px;
}
.receive-send-mode footer {
    display: block;
}
.receive-send-mode .receive-sender-logo {
    display: none;
}
.receive-send-mode .receive-sender-view {
    max-width: 520px;
    margin-top: 16px;
}
.receive-code-admin {
    background: #fff;
    border: 1px solid #f4dcc8;
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 12px 34px rgba(15,23,42,.045);
    overflow: visible;
}
.receive-code-admin > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    color: #0b2147;
    font-weight: 950;
}
.receive-code-admin > summary::-webkit-details-marker { display: none; }
.receive-code-admin > summary::after {
    content: '▾';
    color: #ea580c;
    font-weight: 950;
}
.receive-code-admin:not([open]) > summary::after { content: '▸'; }
.receive-code-admin > summary small {
    color: #ea580c;
    font-weight: 900;
    margin-left: auto;
}
.receive-code-admin-body {
    padding: 0 12px 12px;
}
.receive-code-action-strip {
    box-shadow: none;
    border-radius: 18px;
    padding: 10px;
    justify-content: flex-end;
}
.receive-duration-select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    color: #0b2147;
    font-size: 0.78rem;
    font-weight: 950;
}
.receive-duration-select select {
    height: 36px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff;
    color: #0b2147;
    font-weight: 900;
    padding: 0 8px;
}
.receive-code-row {
    grid-template-columns: minmax(72px, 1fr) auto auto auto;
}
.receive-code-row.is-inactive {
    background: #f8fafc;
    border-color: #e5e7eb;
}
.receive-code-row.is-inactive span {
    color: #64748b;
}
.receive-code-row .code-stop-btn:disabled {
    opacity: .45;
}
@media (max-width: 900px) {
    .page-receive-files .suite-header,
    .receive-send-mode .suite-header {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 18px;
    }
    .page-receive-files .receive-main-header-logo,
    .receive-send-mode .receive-main-header-logo {
        max-width: 100%;
        max-height: 150px;
    }
    .page-receive-files .suite-header-actions,
    .receive-send-mode .suite-header-actions {
        max-width: none;
        justify-self: stretch;
    }
}
@media (max-width: 560px) {
    .page-receive-files .suite-header,
    .receive-send-mode .suite-header {
        gap: 12px;
        padding-inline: 6px;
    }
    .page-receive-files .receive-main-header-logo,
    .receive-send-mode .receive-main-header-logo {
        max-height: 118px;
    }
    .page-receive-files .suite-nav,
    .receive-send-mode .suite-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
    }
    .page-receive-files .suite-nav-link,
    .page-receive-files .suite-menu-button,
    .receive-send-mode .suite-nav-link,
    .receive-send-mode .suite-menu-button {
        min-height: 32px;
        padding: 0 4px;
        font-size: 0.68rem;
        border-radius: 10px;
    }
    .receive-code-action-strip {
        flex-wrap: wrap;
        justify-content: stretch;
    }
    .receive-duration-select {
        width: 100%;
        justify-content: space-between;
        margin-right: 0;
    }
    .receive-duration-select select {
        min-width: 118px;
    }
    .receive-code-row {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 5px;
    }
    .receive-code-row strong { font-size: .88rem; }
    .receive-code-row .btn-mini { padding: 0 7px; font-size: .7rem; }
}

/* v1.4.7 Receive Files: independent code cards, compact workspace and file notes */
.receive-code-action-strip {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
}
.receive-code-nickname-input,
.receive-naming-mode,
.receive-sender-note {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff;
    color: #0b2147;
    font-weight: 800;
    padding: 0 11px;
}
.receive-code-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 12px;
}
.receive-code-card {
    border: 1px solid #fed7aa;
    background: #fffaf6;
    border-radius: 18px;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}
.receive-code-card.is-inactive {
    border-color: #e2e8f0;
    background: #f8fafc;
}
.receive-code-card-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-content: start;
}
.receive-code-identity {
    min-width: 0;
    position: relative;
    padding-right: 28px;
}
.receive-code-identity strong {
    display: block;
    color: #0b2147;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.receive-code-identity small {
    display: block;
    color: #64748b;
    font-size: .74rem;
    font-weight: 800;
    margin-top: 2px;
}
.receive-code-edit {
    position: absolute;
    top: -2px;
    right: 0;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 8px;
    background: #fff1e7;
    color: #ea580c;
    font-weight: 950;
    cursor: pointer;
}
.receive-code-inline-input {
    width: 100%;
    height: 34px;
    margin-top: 7px;
    border: 1px solid #fb923c;
    border-radius: 10px;
    padding: 0 9px;
    color: #0b2147;
    font-weight: 800;
}
.receive-code-timer {
    align-self: start;
    border-radius: 999px;
    padding: 5px 9px;
    background: #ecfdf5;
    color: #166534;
    font-size: .74rem;
    font-weight: 950;
    white-space: nowrap;
}
.receive-code-card.is-inactive .receive-code-timer {
    background: #e2e8f0;
    color: #475569;
}
.receive-code-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.receive-code-qr-area {
    width: 142px;
    display: grid;
    justify-items: center;
    gap: 7px;
}
.receive-code-qr {
    width: 136px;
    min-height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 4px;
}
.receive-code-card.is-inactive .receive-code-qr {
    opacity: .6;
    filter: grayscale(.65);
}
.receive-code-qr svg {
    display: block;
    width: 100%;
    height: auto;
}
.receive-code-qr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.receive-desk-active {
    margin-top: 16px;
}
.receive-active-session-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 10px 13px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
}
.receive-active-session-bar strong {
    color: #0b2147;
    margin-right: auto;
}
.receive-active-session-bar .receive-chip.inactive {
    background: #e2e8f0;
    color: #475569;
}
.receive-active-count {
    color: #475569;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}
.receive-active-count b { color: #0b2147; }
.receive-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
}
.receive-naming-mode {
    margin-bottom: 10px;
}
.receive-settings-card .receive-mini-grid {
    grid-template-columns: 1fr;
}
.receive-file-note {
    display: block;
    margin-top: 4px;
    color: #9a3412;
    font-style: normal;
    font-size: .74rem;
    font-weight: 850;
    line-height: 1.25;
    white-space: normal;
}
.receive-sender-note {
    margin: 0 0 12px;
}

@media (max-width: 900px) {
    .receive-work-grid { grid-template-columns: 1fr; }
    .receive-settings-card { order: -1; }
}
@media (max-width: 700px) {
    .receive-code-action-strip {
        grid-template-columns: 1fr 1fr;
    }
    .receive-code-nickname-input { grid-column: 1 / -1; }
    .receive-duration-select { width: auto; }
    .receive-code-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .receive-code-action-strip {
        grid-template-columns: 1fr;
    }
    .receive-duration-select { width: 100%; }
    .receive-code-card {
        grid-template-columns: minmax(0, 1fr) 112px;
        padding: 8px;
    }
    .receive-code-qr-area { width: 112px; }
    .receive-code-qr { width: 106px; min-height: 106px; }
    .receive-code-qr-actions .btn-mini { font-size: .66rem; padding: 0 6px; }
    .receive-active-session-bar { gap: 6px; padding: 8px 10px; }
    .receive-active-session-bar strong { width: 100%; margin-right: 0; }
    .receive-file-row {
        grid-template-columns: 22px minmax(0, 1fr) auto;
    }
    .receive-file-meta { grid-column: 2 / 4; }
    .receive-row-actions { grid-column: 2 / 4; justify-content: flex-end; }
}
.receive-selected-files {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.receive-selected-file-row {
    display: grid;
    grid-template-columns: minmax(110px, .9fr) minmax(140px, 1.35fr) 34px;
    gap: 7px;
    align-items: center;
    padding: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 13px;
}
.receive-selected-file-row strong {
    min-width: 0;
    color: #0b2147;
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.receive-selected-file-row input {
    width: 100%;
    min-width: 0;
    height: 34px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff;
    padding: 0 9px;
    color: #0b2147;
    font-size: .8rem;
}
@media (max-width: 520px) {
    .receive-selected-file-row {
        grid-template-columns: minmax(0, 1fr) 34px;
    }
    .receive-selected-file-row input {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .receive-selected-file-row .icon-btn {
        grid-column: 2;
        grid-row: 1;
    }
}

/* v1.4.7 Receive Files: five-code desk, per-code time, naming presets and archive */
.receive-active-codes-summary {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    overflow: visible;
    flex-wrap: wrap;
}
.receive-code-admin[open] .receive-active-codes-summary {
    display: none;
}
.receive-active-code-chip,
.receive-active-code-empty {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 190px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: .7rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.receive-active-code-empty {
    background: #f1f5f9;
    color: #64748b;
}
.receive-code-actions {
    align-items: center;
}
.receive-code-duration {
    height: 31px;
    min-width: 88px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff;
    color: #0b2147;
    padding: 0 8px;
    font-size: .72rem;
    font-weight: 900;
}
.receive-code-delete {
    width: 31px;
    height: 31px;
}
.receive-naming-fields {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}
.receive-prefix-group {
    display: grid;
    gap: 8px;
}
.receive-prefix-type,
.receive-naming-fields input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff;
    color: #0b2147;
    font-weight: 800;
    padding: 0 10px;
}
.receive-archive-panel {
    margin-top: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #f8fafc;
    overflow: hidden;
}
.receive-archive-panel > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    color: #0b2147;
    font-weight: 950;
}
.receive-archive-panel > summary::-webkit-details-marker { display: none; }
.receive-archive-panel > summary::after {
    content: '▸';
    margin-left: auto;
    color: #64748b;
}
.receive-archive-panel[open] > summary::after { content: '▾'; }
.receive-archive-panel > summary small {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 900;
}
.receive-archive-list {
    display: grid;
    gap: 7px;
    padding: 0 10px 10px;
}
.receive-archive-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
}
@media (max-width: 720px) {
    .receive-active-codes-summary {
        justify-content: flex-start;
    }
    .receive-code-card {
        grid-template-columns: minmax(0, 1fr) 112px;
    }
    .receive-code-actions {
        gap: 5px;
    }
    .receive-code-duration {
        min-width: 78px;
        padding-inline: 6px;
    }
}
@media (max-width: 520px) {
    .receive-code-admin > summary {
        gap: 6px;
        padding: 10px;
    }
    .receive-active-code-chip {
        max-width: 126px;
        font-size: .64rem;
    }
    .receive-code-actions .btn-mini {
        padding-inline: 7px;
    }
    .receive-archive-row {
        padding: 7px 8px;
    }
}

/* v1.4.8 Receive Files: grouped active desks + advanced download options */
.receive-active-sessions-section {
    margin-top: 18px;
}
.receive-active-sessions-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 2px 10px;
}
.receive-active-sessions-heading h2 {
    margin: 0;
    color: #0b2147;
    font-size: 1.12rem;
}
.receive-active-sessions-list {
    display: grid;
    gap: 16px;
}
.receive-session-workspace {
    border: 1px solid #fed7aa;
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 38%);
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .055);
}
.receive-session-workspace.is-inactive {
    border-color: #dbe4ee;
    background: #f8fafc;
}
.receive-session-workspace-head {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    padding: 2px 2px 10px;
}
.receive-session-workspace-head > strong {
    min-width: 0;
    margin-right: auto;
    color: #0b2147;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.receive-session-workspace .receive-files-card {
    padding: 12px;
    border-radius: 17px;
    box-shadow: none;
}
.receive-session-workspace .receive-card-headline {
    align-items: flex-start;
}
.receive-session-workspace .receive-card-headline h3 {
    margin: 3px 0 0;
    color: #0b2147;
    font-size: .98rem;
}
.receive-session-workspace .receive-bulk-row {
    margin: 0;
}
.receive-session-file-row {
    min-width: 0;
}
.receive-advanced-options {
    margin-top: 10px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.receive-advanced-options > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #0b2147;
    font-size: .88rem;
    font-weight: 950;
}
.receive-advanced-options > summary::-webkit-details-marker { display: none; }
.receive-advanced-options > summary::after {
    content: '▸';
    margin-left: auto;
    color: #ea580c;
}
.receive-advanced-options[open] > summary::after { content: '▾'; }
.receive-advanced-options-body {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(210px, 1fr);
    gap: 9px 12px;
    padding: 0 12px 12px;
}
.receive-advanced-options-body .receive-naming-mode,
.receive-advanced-options-body .receive-naming-fields {
    grid-column: 1;
}
.receive-advanced-options-body .receive-check,
.receive-advanced-options-body .receive-folder-row {
    grid-column: 2;
}
.receive-folder-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
}
.receive-folder-status {
    min-width: 0;
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.receive-session-workspace .receive-archive-panel {
    margin-top: 10px;
}
.receive-session-workspace .receive-chip.inactive {
    background: #e2e8f0;
    color: #475569;
}
@media (max-width: 760px) {
    .receive-advanced-options-body {
        grid-template-columns: 1fr;
    }
    .receive-advanced-options-body .receive-naming-mode,
    .receive-advanced-options-body .receive-naming-fields,
    .receive-advanced-options-body .receive-check,
    .receive-advanced-options-body .receive-folder-row {
        grid-column: 1;
    }
    .receive-session-workspace .receive-card-headline {
        display: grid;
        grid-template-columns: 1fr;
    }
    .receive-session-workspace .receive-bulk-row {
        justify-content: flex-start;
    }
}
@media (max-width: 520px) {
    .receive-session-workspace {
        padding: 8px;
        border-radius: 18px;
    }
    .receive-session-workspace-head {
        gap: 6px;
    }
    .receive-session-workspace-head > strong {
        width: 100%;
        margin-right: 0;
    }
    .receive-session-workspace .receive-files-card {
        padding: 9px;
    }
    .receive-session-workspace .receive-bulk-row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 5px;
    }
    .receive-session-workspace .receive-bulk-row .btn-mini {
        padding-inline: 5px;
        font-size: .68rem;
    }
    .receive-active-sessions-heading h2 {
        font-size: 1rem;
    }
}

/* v1.4.9 Receive Files: wide desktop workspace, suffix presets and sender batches */
@media (min-width: 1000px) {
    .page-receive-files .app-shell,
    .receive-send-mode .app-shell {
        width: calc(100% - 24px);
    }
    .page-receive-files .receive-panel {
        width: 100%;
        max-width: none;
    }
}
.receive-prefix-group,
.receive-suffix-group {
    display: grid;
    grid-template-columns: minmax(150px, .9fr) minmax(160px, 1.1fr);
    gap: 8px;
}
.receive-suffix-type {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff;
    color: #0b2147;
    font-weight: 800;
    padding: 0 10px;
}
.receive-batch-message-input {
    margin-top: -4px;
}
.receive-selected-file-row {
    grid-template-columns: minmax(0, 1fr) auto 34px;
}
.receive-selected-file-row small {
    color: #64748b;
    font-size: .76rem;
    font-weight: 850;
    white-space: nowrap;
}
.receive-sender-batch {
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #f8fafc;
    padding: 9px;
    display: grid;
    gap: 8px;
}
.receive-sender-batch + .receive-sender-batch {
    margin-top: 9px;
}
.receive-sender-batch-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 2px 3px;
}
.receive-sender-batch-identity {
    min-width: 135px;
    flex: 0 0 auto;
}
.receive-sender-batch-identity strong {
    display: block;
    color: #0b2147;
    font-size: .92rem;
}
.receive-sender-batch-identity small {
    display: block;
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
}
.receive-sender-batch-message {
    min-width: 0;
    flex: 1;
    border-left: 3px solid #fb923c;
    background: #fff7ed;
    color: #7c2d12;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: .8rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.receive-sender-batch-files {
    gap: 6px;
    padding: 0;
}
.receive-sender-batch .receive-file-row {
    background: #fff;
}
.receive-sender-batch.is-archived {
    background: #f1f5f9;
}
@media (max-width: 700px) {
    .receive-prefix-group,
    .receive-suffix-group {
        grid-template-columns: 1fr;
    }
    .receive-sender-batch-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .receive-sender-batch-identity {
        min-width: 0;
    }
}
@media (max-width: 520px) {
    .receive-selected-file-row {
        grid-template-columns: minmax(0, 1fr) auto 34px;
    }
    .receive-sender-batch {
        padding: 7px;
        border-radius: 14px;
    }
}


/* v1.5.0 Receive Files visual reset: balanced width, fewer lines, restored Bhagwa palette */
.page-receive-files {
    --receive-bhagwa: #d66a12;
    --receive-bhagwa-dark: #963d08;
    --receive-bhagwa-soft: #fff0dc;
    --receive-cream: #fff8f0;
    --receive-card: #ffffff;
    --receive-navy: #06204a;
}

@media (min-width: 1000px) {
    .page-receive-files .app-shell,
    .receive-send-mode .app-shell {
        width: min(1440px, calc(100% - 36px));
    }
    .page-receive-files .receive-panel {
        width: 100%;
        max-width: 1400px;
        margin-inline: auto;
    }
}

.page-receive-files .suite-header {
    max-width: 1400px;
    margin-inline: auto;
}

.page-receive-files .receive-mode-btn.primary,
.page-receive-files .receive-tabs button.active,
.page-receive-files .receive-progress span {
    background: linear-gradient(135deg, var(--receive-bhagwa-dark), var(--receive-bhagwa));
    border-color: var(--receive-bhagwa);
}

.page-receive-files .receive-chip,
.page-receive-files .receive-meta-chip.uploading {
    background: var(--receive-bhagwa-soft);
    color: var(--receive-bhagwa-dark);
}

.page-receive-files .receive-active-sessions-section {
    margin-top: 24px;
}

.page-receive-files .receive-active-sessions-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
    gap: 22px;
    align-items: start;
}

.page-receive-files .receive-session-workspace {
    width: 100%;
    max-width: 720px;
    justify-self: center;
    border: 0;
    background: linear-gradient(180deg, #fff4e5 0%, #fffaf4 100%);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 16px 38px rgba(79, 42, 12, .09);
}

.page-receive-files .receive-session-workspace.is-inactive {
    border: 0;
    background: #f6f3ef;
}

.page-receive-files .receive-session-workspace-head {
    padding: 2px 4px 14px;
}

.page-receive-files .receive-session-workspace .receive-files-card {
    border: 0;
    background: rgba(255,255,255,.92);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(6, 32, 74, .05);
}

.page-receive-files .receive-sender-batch {
    border: 0;
    background: #fff8ef;
    border-radius: 16px;
    padding: 11px;
    box-shadow: 0 7px 18px rgba(89, 48, 14, .055);
}

.page-receive-files .receive-sender-batch + .receive-sender-batch {
    margin-top: 12px;
}

.page-receive-files .receive-sender-batch-message {
    border-left-color: var(--receive-bhagwa);
    background: #fff0dc;
    color: #71350a;
}

.page-receive-files .receive-file-row,
.page-receive-files .receive-archive-row,
.page-receive-files .receive-upload-row {
    border: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(6, 32, 74, .045);
}

.page-receive-files .receive-sender-batch-files {
    gap: 8px;
}

.page-receive-files .receive-advanced-options,
.page-receive-files .receive-archive-panel {
    border: 0;
    background: #fff6e9;
    border-radius: 16px;
    box-shadow: none;
}

.page-receive-files .receive-advanced-options > summary,
.page-receive-files .receive-archive-panel > summary {
    padding: 11px 13px;
}

.page-receive-files .receive-advanced-options > summary::after,
.page-receive-files .receive-code-admin > summary::after {
    color: var(--receive-bhagwa-dark);
}

.page-receive-files .receive-check,
.page-receive-files .receive-folder-row {
    border-bottom: 0;
    padding-block: 7px;
}

.page-receive-files .receive-code-admin,
.page-receive-files .receive-recent-card,
.page-receive-files .receive-code-card {
    border-color: transparent;
    background: #fff8ef;
    box-shadow: 0 10px 24px rgba(79, 42, 12, .06);
}

.page-receive-files .receive-code-duration,
.page-receive-files .receive-prefix-type,
.page-receive-files .receive-suffix-type,
.page-receive-files .receive-naming-fields input {
    border-color: #e8c8a5;
}

.page-receive-files .icon-btn,
.page-receive-files .receive-whatsapp-help button {
    border-color: #e8c8a5;
    background: #fff4e5;
    color: var(--receive-bhagwa-dark);
}

.page-receive-files .receive-active-sessions-heading {
    margin-bottom: 14px;
}

.page-receive-files .receive-active-sessions-heading h2,
.page-receive-files .receive-session-workspace-head > strong,
.page-receive-files .receive-card-headline h2,
.page-receive-files .receive-card-headline h3 {
    color: var(--receive-navy);
}

@media (min-width: 1200px) {
    .page-receive-files .receive-active-sessions-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .page-receive-files .receive-session-workspace {
        max-width: 840px;
    }
}

@media (max-width: 700px) {
    .page-receive-files .receive-active-sessions-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .page-receive-files .receive-session-workspace {
        padding: 10px;
        border-radius: 19px;
    }
    .page-receive-files .receive-session-workspace .receive-files-card {
        padding: 10px;
    }
    .page-receive-files .receive-sender-batch {
        padding: 8px;
    }
}

/* v1.5.0 Pairing-code area kept compact instead of stretching edge to edge */
.page-receive-files .receive-code-admin {
    width: min(1100px, 100%);
    margin-inline: auto;
    border: 0;
    background: #fff8ef;
    box-shadow: 0 14px 32px rgba(79, 42, 12, .07);
}
.page-receive-files .receive-code-action-strip {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 10px 4px 16px;
}
.page-receive-files .receive-recent-card {
    border: 0;
    background: rgba(255,255,255,.78);
    box-shadow: 0 7px 18px rgba(79, 42, 12, .045);
}
.page-receive-files .receive-code-card {
    border: 0;
    background: #fff4e5;
    box-shadow: 0 5px 14px rgba(79, 42, 12, .045);
}

/* v1.5.1 Receive Files: stacked desks with pairing-card width */
.page-receive-files .receive-active-sessions-list {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(1100px, 100%);
    margin-inline: auto;
    gap: 18px;
}
.page-receive-files .receive-session-workspace,
.page-receive-files .receive-session-workspace:only-child {
    width: 100%;
    max-width: 1100px;
    justify-self: stretch;
}
@media (min-width: 1200px) {
    .page-receive-files .receive-active-sessions-list {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* v1.5.2 Align Active receiving desks heading with desk cards */
.page-receive-files .receive-active-sessions-heading {
    width: min(1100px, 100%);
    margin: 0 auto 14px;
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.page-receive-files .receive-active-sessions-heading h2 {
    margin: 0;
    line-height: 1.25;
}
.page-receive-files .receive-active-sessions-heading .receive-chip {
    flex: 0 0 auto;
}
@media (max-width: 520px) {
    .page-receive-files .receive-active-sessions-heading {
        padding-inline: 8px;
        margin-bottom: 10px;
    }
}

/* v1.5.3 Final Receive Files logo + device-specific desk status strip */
.page-receive-files .receive-header-picture,
.receive-sender-picture {
    display: block;
    width: 100%;
}
.page-receive-files .receive-main-header-logo,
.receive-sender-logo {
    width: 100%;
    height: auto;
    display: block;
}
.page-receive-files .receive-main-header-logo {
    max-width: 850px;
    max-height: 185px;
    object-fit: contain;
}
.page-receive-files .brand-logo-block {
    overflow: hidden;
}
.page-receive-files .receive-active-sessions-section {
    margin-top: 22px;
}
.page-receive-files .receive-desk-status-strip {
    display: grid;
    grid-template-columns: 64px minmax(220px, 1.6fr) repeat(3, minmax(110px, .72fr)) auto;
    align-items: center;
    gap: 0;
    padding: 15px 18px;
    background: rgba(255,255,255,.94);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 8px 22px rgba(94,52,14,.055);
}
.page-receive-files .receive-desk-status-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff1df;
    color: #d35a00;
    font-size: 1.5rem;
    font-weight: 950;
}
.page-receive-files .receive-desk-identity {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding-right: 18px;
}
.page-receive-files .receive-desk-identity strong {
    color: #13264a;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-receive-files .receive-desk-identity span {
    color: #d35a00;
    font-size: .86rem;
    font-weight: 900;
}
.page-receive-files .receive-desk-identity small {
    color: #64748b;
    font-size: .74rem;
}
.page-receive-files .receive-desk-metric {
    min-height: 50px;
    display: grid;
    grid-template-columns: 28px auto;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 7px;
    padding: 0 14px;
    border-left: 1px solid rgba(217,119,6,.16);
}
.page-receive-files .receive-desk-metric-icon {
    grid-row: 1 / 3;
    align-self: center;
    color: #475569;
    font-size: 1.35rem;
}
.page-receive-files .receive-desk-metric strong {
    color: #13264a;
    font-size: .9rem;
    line-height: 1.1;
}
.page-receive-files .receive-desk-metric small {
    color: #64748b;
    font-size: .72rem;
}
.page-receive-files .receive-desk-state {
    margin-left: 14px;
    min-width: 66px;
    justify-content: center;
}
@media (max-width: 900px) {
    .page-receive-files .receive-main-header-logo {
        max-width: none;
        max-height: 165px;
    }
    .page-receive-files .receive-desk-status-strip {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 12px;
    }
    .page-receive-files .receive-desk-metric {
        grid-column: auto;
        border-left: 0;
        min-height: 0;
        padding: 4px 8px;
    }
    .page-receive-files .receive-desk-status-strip > .receive-desk-metric:nth-child(3) {
        grid-column: 1 / 2;
    }
    .page-receive-files .receive-desk-status-strip > .receive-desk-metric:nth-child(4) {
        grid-column: 2 / 3;
    }
    .page-receive-files .receive-desk-status-strip > .receive-desk-metric:nth-child(5) {
        grid-column: 3 / 4;
    }
    .page-receive-files .receive-desk-state {
        margin-left: 0;
    }
}
@media (max-width: 560px) {
    .page-receive-files .receive-main-header-logo {
        max-height: 142px;
    }
    .page-receive-files .receive-desk-status-strip {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        border-radius: 16px 16px 0 0;
    }
    .page-receive-files .receive-desk-status-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .page-receive-files .receive-desk-identity strong {
        font-size: .92rem;
    }
    .page-receive-files .receive-desk-metric {
        padding: 4px;
        grid-template-columns: 20px auto;
        column-gap: 4px;
    }
    .page-receive-files .receive-desk-metric-icon {
        font-size: 1rem;
    }
    .page-receive-files .receive-desk-metric strong {
        font-size: .78rem;
    }
    .page-receive-files .receive-desk-metric small {
        font-size: .64rem;
    }
}

/* v1.8.0 Live Transfer group */
.home-app-group {
    margin-top: 18px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 14px 36px rgba(6,32,74,.06);
}
.home-app-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.home-app-group-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.05rem;
}
.app-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.live-transfer-home-group {
    background: linear-gradient(135deg, #fffaf3 0%, #fff2dc 100%);
}

.fixed-live-panel {
    width: min(720px, 100%);
    margin: 18px auto 0;
}
.fixed-live-shell {
    background: #fff;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 18px 52px rgba(6,32,74,.10);
}
.fixed-live-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}
.fixed-live-head h1,
.fixed-live-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.35rem, 3vw, 2rem);
}
.fixed-live-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    font-size: 1.45rem;
}
.fixed-live-waiting,
.fixed-live-join {
    display: grid;
    justify-items: center;
    gap: 14px;
}
.fixed-live-qr {
    width: min(300px, 80vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 22px;
    padding: 12px;
    box-shadow: inset 0 0 0 2px rgba(214,106,18,.28);
}
.fixed-live-qr svg {
    width: 100%;
    height: 100%;
}
.fixed-live-code-row {
    display: grid;
    grid-template-columns: auto minmax(120px, auto) 38px;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}
.fixed-live-code-row strong {
    color: var(--navy);
    font-size: 1.35rem;
    letter-spacing: .12em;
}
.fixed-live-status {
    min-height: 22px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}
.fixed-live-join {
    max-width: 420px;
    margin: 0 auto;
}
.fixed-live-join-title {
    color: var(--navy);
    font-weight: 950;
    font-size: 1.05rem;
}
.live-fixed-module .session-panel {
    max-width: 900px;
    margin-inline: auto;
}
.live-fixed-module .log-panel {
    display: none;
}
.live-fixed-module .transfer-lists {
    grid-template-columns: 1fr;
}
.live-send-to-phone.live-fixed-host .transfer-card-incoming,
.live-send-to-phone.live-fixed-guest .transfer-card-outgoing,
.live-receive-from-phone.live-fixed-host .transfer-card-outgoing,
.live-receive-from-phone.live-fixed-guest .transfer-card-incoming {
    display: none;
}
.live-send-to-phone.live-fixed-guest .file-select-row,
.live-send-to-phone.live-fixed-guest .drop-zone,
.live-receive-from-phone.live-fixed-host .file-select-row,
.live-receive-from-phone.live-fixed-host .drop-zone {
    display: none !important;
}
.live-receive-from-phone.live-fixed-guest .file-select-row {
    justify-content: center;
}
.live-receive-from-phone.live-fixed-guest .live-phone-only {
    display: inline-flex;
}

@media (max-width: 760px) {
    .app-grid-three {
        grid-template-columns: 1fr;
    }
    .home-app-group {
        padding: 12px;
        border-radius: 20px;
    }
    .fixed-live-panel {
        margin-top: 10px;
    }
    .fixed-live-shell {
        padding: 16px 12px;
        border-radius: 22px;
    }
    .fixed-live-head {
        margin-bottom: 12px;
    }
    .fixed-live-qr {
        width: min(270px, 84vw);
    }
    .fixed-live-code-row strong {
        font-size: 1.15rem;
    }
    .live-fixed-module .transfer-panel {
        padding-inline: 0;
    }
    .live-fixed-module .file-select-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .live-send-to-phone.live-fixed-guest .file-select-row,
    .live-receive-from-phone.live-fixed-host .file-select-row {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .live-fixed-guest .suite-nav,
    .live-fixed-guest footer {
        display: none !important;
    }
    .live-fixed-guest .suite-header-actions {
        min-height: 0;
    }
    .live-fixed-guest .suite-header {
        gap: 8px;
    }
}

/* v1.8.0 Broadcast Files */
.broadcast-panel {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 0 8px;
}
.broadcast-shell {
    display: grid;
    gap: 18px;
}
.broadcast-start-view,
.broadcast-join-view {
    display: grid;
    justify-items: center;
    gap: 14px;
}
.broadcast-primary-card,
.broadcast-receiver-card {
    width: min(520px, 100%);
    background: linear-gradient(145deg, #fffdf8, #fff6e7);
    border: 1px solid rgba(214, 106, 18, .22);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 18px 46px rgba(67, 38, 10, .09);
    text-align: center;
}
.broadcast-primary-card h1,
.broadcast-primary-card h2,
.broadcast-receiver-card h1,
.broadcast-receiver-card h2 {
    margin: 8px 0 20px;
    color: #082451;
    font-size: clamp(1.55rem, 3vw, 2rem);
}
.broadcast-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #fff0d5;
    font-size: 1.8rem;
}
.broadcast-main-btn {
    min-width: min(280px, 100%);
    min-height: 54px;
    font-size: 1.04rem;
}
.broadcast-join-fallback {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}
.broadcast-join-fallback summary {
    cursor: pointer;
    color: #6b4b25;
    font-weight: 850;
    text-align: center;
}
.broadcast-join-fallback .join-row {
    margin-top: 12px;
}
.broadcast-waiting-view {
    display: grid;
    grid-template-columns: minmax(260px, 350px) minmax(240px, 1fr);
    gap: 18px;
    align-items: stretch;
}
.broadcast-qr-card,
.broadcast-status-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
    padding: 18px;
}
.broadcast-qr {
    display: grid;
    place-items: center;
    min-height: 265px;
    border-radius: 18px;
    background: #fffaf0;
}
.broadcast-qr svg {
    max-width: 100%;
    height: auto;
}
.broadcast-code-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f7ead4;
    color: #082451;
}
.broadcast-code-line strong {
    font-size: 1.22rem;
    letter-spacing: .11em;
    text-align: center;
}
.broadcast-status-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
}
.broadcast-stat {
    display: grid;
    justify-items: center;
    gap: 4px;
}
.broadcast-stat strong {
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1;
    color: #d16a16;
}
.broadcast-stat span,
.broadcast-status {
    color: #52627a;
    font-weight: 850;
}
.broadcast-actions {
    display: flex;
    gap: 10px;
}
.broadcast-receiver-card .join-row {
    margin-top: 8px;
}
body.broadcast-host .transfer-card-incoming {
    display: none;
}
body.broadcast-host .transfer-lists {
    grid-template-columns: minmax(0, 1fr);
}
body.broadcast-receiver .transfer-card-outgoing,
body.broadcast-receiver .transfer-head,
body.broadcast-receiver .file-select-row,
body.broadcast-receiver .drop-zone {
    display: none !important;
}
body.broadcast-receiver .transfer-lists {
    grid-template-columns: minmax(0, 1fr);
}
body.broadcast-receiver .transfer-panel {
    max-width: 820px;
    margin-inline: auto;
}
.page-broadcast-files .app-header {
    border-color: rgba(214, 106, 18, .28);
}
.page-broadcast-files .btn-primary {
    background: linear-gradient(135deg, #c75e0d, #df811d);
}
@media (max-width: 760px) {
    .broadcast-panel { padding-top: 10px; }
    .broadcast-waiting-view { grid-template-columns: 1fr; }
    .broadcast-primary-card,
    .broadcast-receiver-card { padding: 18px 14px; border-radius: 20px; }
    .broadcast-qr-card,
    .broadcast-status-card { border-radius: 20px; padding: 13px; }
    .broadcast-qr { min-height: 235px; }
    .broadcast-status-card { grid-template-columns: 1fr auto; justify-items: start; }
    .broadcast-stat { justify-items: start; }
    .broadcast-stat strong { font-size: 2.2rem; }
    .broadcast-actions { grid-column: 1 / -1; width: 100%; }
    .broadcast-actions .btn { flex: 1; }
}

/* FileDostV4 v4.1.6 icon footer */
.site-footer {
    display: grid;
    gap: 18px;
    margin-top: 34px;
    padding: 26px 0 22px;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(220px, 1.25fr) minmax(210px, .9fr) minmax(260px, 1.2fr);
    gap: 22px;
    align-items: start;
    padding: 22px;
    border: 1px solid rgba(215, 224, 238, .94);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff, #f7faff);
    box-shadow: 0 14px 42px rgba(6, 32, 74, .06);
}

.footer-brand strong {
    color: var(--navy);
    font-size: 1.15rem;
}

.footer-brand p {
    margin: 6px 0 0;
    color: #66768d;
    font-size: .8rem;
    line-height: 1.5;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: #214f9c;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 850;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #d35a00;
    text-decoration: underline;
}

.footer-share {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.footer-share > span {
    width: 100%;
    color: #263d60;
    font-size: .76rem;
    font-weight: 900;
}

.footer-share a,
.footer-share button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #dbe5f4;
    border-radius: 10px;
    background: #fff;
    color: #214f9c;
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 850;
    text-decoration: none;
}

.footer-share a:hover,
.footer-share a:focus-visible,
.footer-share button:hover,
.footer-share button:focus-visible {
    border-color: #2b65d9;
    background: #edf4ff;
    outline: none;
}

@media (max-width: 820px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-share {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .site-footer {
        margin-top: 22px;
        padding-top: 16px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 17px;
        border-radius: 20px;
    }
    .footer-share {
        grid-column: auto;
    }
    .footer-mainline {
        gap: 8px;
        font-size: .78rem;
    }
}

/* FileDostV4 v4.1.6: final mobile viewport, toolbar and icon-footer overrides. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.footer-social-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.footer-share .social-icon {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 35, 68, .14);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.footer-share .social-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-share .social-icon:hover,
.footer-share .social-icon:focus-visible {
    transform: translateY(-2px);
    border: 0;
    outline: 3px solid rgba(43, 101, 217, .18);
    box-shadow: 0 12px 24px rgba(15, 35, 68, .20);
    filter: saturate(1.08);
}

.footer-share .social-icon-share { background: #d66a12; }
.footer-share .social-icon-whatsapp { background: #25d366; }
.footer-share .social-icon-facebook { background: #1877f2; }
.footer-share .social-icon-x { background: #111827; }
.footer-share .social-icon-linkedin { background: #0a66c2; }
.footer-share .social-icon-email { background: #6b7280; }

.footer-share .social-icon-facebook svg {
    fill: currentColor;
    stroke: none;
}

html,
body {
    max-width: 100%;
}

@media (max-width: 700px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden !important;
    }

    body,
    .app-shell,
    main,
    main > *,
    section,
    article,
    .panel,
    .app-seo-intro,
    .transfer-panel,
    .personal-page,
    .trusted-panel,
    .broadcast-panel,
    .receive-panel {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .app-shell {
        width: 100% !important;
        padding-inline: 7px !important;
        margin-inline: auto !important;
    }

    img,
    picture,
    svg,
    canvas,
    video,
    iframe {
        max-width: 100%;
    }

    input,
    select,
    textarea,
    button {
        min-width: 0;
        max-width: 100%;
    }

    .suite-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 7px !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 8px 0 5px !important;
        overflow: visible !important;
    }

    .brand-logo-block {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .brand-logo-img,
    .receive-main-header-logo {
        width: min(100%, 360px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: 78px !important;
        object-fit: contain !important;
        border-radius: 10px !important;
    }

    .suite-header-actions {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        overflow: visible !important;
    }

    .suite-nav {
        order: 2 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 6px !important;
        overflow: visible !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, .97) !important;
        box-shadow: 0 7px 18px rgba(6, 32, 74, .07) !important;
    }

    .suite-nav > .suite-nav-link,
    .suite-nav > .suite-menu,
    .suite-nav > :nth-child(n) {
        grid-column: span 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .suite-nav-link,
    .suite-menu-button {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 4px !important;
        overflow: hidden !important;
        border: 1px solid #ead8c7 !important;
        border-radius: 9px !important;
        background: #fff !important;
        color: var(--navy) !important;
        font-size: .62rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }

    .suite-nav > :nth-child(3) .suite-menu-button {
        font-size: .62rem !important;
    }

    .suite-nav > :nth-child(3) .suite-menu-button::after {
        content: none !important;
    }

    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list {
        position: fixed !important;
        top: 132px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: calc(100vh - 146px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 100000 !important;
    }

    .header-connection-card {
        width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .landing-grid,
    .transfer-lists,
    .mode-grid,
    .workflow-grid,
    .share-method-selector,
    .app-grid,
    .personal-devices-list,
    .receive-grid,
    .broadcast-waiting-view,
    .receive-mode-actions,
    .receive-code-list,
    .add-trusted-device-grid,
    .offline-layout,
    .personal-inbox-file-row,
    .personal-inbox-file-row.personal-file-list-row,
    .receive-file-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .file-select-row,
    .live-fixed-module .file-select-row,
    .receive-big-actions,
    .broadcast-actions,
    .receive-hero-actions,
    .incoming-download-options,
    .trusted-actions,
    .personal-package-actions,
    .receive-bulk-row {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .file-select-row > *,
    .receive-big-actions > *,
    .broadcast-actions > *,
    .receive-hero-actions > * {
        flex: 1 1 140px !important;
        min-width: 0 !important;
    }

    .drop-zone,
    .room-panel,
    .transfer-card,
    .receive-card,
    .broadcast-primary-card,
    .broadcast-receiver-card,
    .personal-page-card,
    .trusted-device-row,
    .personal-inbox-package,
    .personal-sent-package {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .footer-social-strip {
        gap: 8px;
    }

    .footer-share .social-icon {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }
}

@media (max-width: 380px) {
    .suite-nav-link,
    .suite-menu-button,
    .suite-nav > :nth-child(3) .suite-menu-button {
        font-size: .58rem !important;
        padding-inline: 2px !important;
    }

    .footer-share .social-icon {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
    }
}
.footer-share .social-icon-share.is-copied {
    background: #15803d;
}


/* FileDostV4 v4.1.6: production-safe compact social share strip.
   Explicit sizing prevents generic SVG/button rules or stale partial styles from expanding icons. */
.site-footer .footer-share .footer-social-strip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}
.site-footer .footer-share .footer-social-strip > .social-icon {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    overflow: hidden !important;
    vertical-align: middle !important;
}
.site-footer .footer-share .footer-social-strip > .social-icon > svg {
    display: block !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
@media (max-width: 560px) {
    .site-footer .footer-share .footer-social-strip { gap: 7px !important; }
    .site-footer .footer-share .footer-social-strip > .social-icon {
        flex-basis: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
    .site-footer .footer-share .footer-social-strip > .social-icon > svg {
        flex-basis: 19px !important;
        width: 19px !important;
        min-width: 19px !important;
        max-width: 19px !important;
        height: 19px !important;
        min-height: 19px !important;
        max-height: 19px !important;
    }
}

/* FileDostV4 v4.1.7: QR-first mobile joining for Scan & Send / Scan & Receive. */
.fixed-live-join {
    width: min(460px, 100%);
}

.fixed-live-join-hint {
    max-width: 34rem;
    margin: -4px 0 2px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.fixed-live-scanner {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.fixed-live-camera-shell {
    position: relative;
    width: min(360px, 88vw);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px;
    background: #0c1424;
    box-shadow: 0 16px 42px rgba(6, 32, 74, .18);
}

.fixed-live-scan-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fixed-live-scan-frame {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(62%, 230px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, .94);
    border-radius: 20px;
    box-shadow: 0 0 0 999px rgba(3, 14, 32, .34), 0 0 0 6px rgba(214, 106, 18, .32);
    pointer-events: none;
}

.fixed-live-scan-frame::before,
.fixed-live-scan-frame::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    height: 2px;
    background: rgba(255, 180, 82, .95);
    box-shadow: 0 0 12px rgba(255, 180, 82, .9);
}

.fixed-live-scan-frame::before { top: 23%; }
.fixed-live-scan-frame::after { bottom: 23%; }

.fixed-live-scan-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fixed-live-scan-btn {
    min-width: 210px;
}

.fixed-live-scan-btn > span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 7px;
    border: 2px solid currentColor;
    border-radius: 6px;
    font-size: .85rem;
    line-height: 1;
}

.fixed-live-scan-status {
    min-height: 22px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.fixed-live-scan-status.is-good { color: #147a45; }
.fixed-live-scan-status.is-bad { color: #b42318; }

.fixed-live-code-fallback {
    width: min(420px, 100%);
    border: 1px solid #dfe7f3;
    border-radius: 16px;
    background: #f8fbff;
}

.fixed-live-code-fallback > summary {
    position: relative;
    padding: 13px 42px 13px 16px;
    color: #29476f;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 900;
    list-style: none;
}

.fixed-live-code-fallback > summary::-webkit-details-marker { display: none; }

.fixed-live-code-fallback > summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eaf1ff;
    color: #2459c4;
    font-size: 1rem;
    line-height: 24px;
    text-align: center;
}

.fixed-live-code-fallback[open] > summary::after { content: "−"; }

.fixed-live-code-fallback-body {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
}

.fixed-live-code-fallback .join-row {
    width: 100%;
}

@media (max-width: 760px) {
    .fixed-live-join {
        width: 100%;
        gap: 11px;
    }

    .fixed-live-join-title {
        font-size: 1.08rem;
    }

    .fixed-live-join-hint {
        max-width: 29rem;
        font-size: .84rem;
    }

    .fixed-live-camera-shell {
        width: min(330px, calc(100vw - 48px));
        max-width: 100%;
        border-radius: 18px;
    }

    .fixed-live-scan-btn {
        width: min(290px, 100%);
        min-width: 0;
    }

    .fixed-live-code-fallback {
        max-width: 100%;
    }

    .fixed-live-code-fallback .join-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}


/* FileDostV4 v4.1.8: compact round mobile application toolbar with Home always visible. */
.suite-nav-icon { display: none; }
.suite-nav-text { display: inline; }

@media (max-width: 700px) {
    .suite-header,
    .page-receive-files .suite-header,
    .receive-send-mode .suite-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
        overflow: visible !important;
    }

    .suite-header-actions,
    .page-receive-files .suite-header-actions,
    .receive-send-mode .suite-header-actions {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 4px !important;
        border-radius: 14px !important;
        overflow: visible !important;
    }

    .suite-nav,
    .page-receive-files .suite-nav,
    .receive-send-mode .suite-nav {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 2px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 3px 1px !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,.98) !important;
        box-shadow: 0 5px 14px rgba(6,32,74,.06) !important;
    }

    .suite-nav > .suite-nav-link,
    .suite-nav > .suite-menu,
    .suite-nav > :nth-child(n),
    .page-receive-files .suite-nav > *,
    .receive-send-mode .suite-nav > * {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 49px !important;
        min-height: 49px !important;
        grid-column: span 1 !important;
        overflow: visible !important;
    }

    .suite-nav-link,
    .suite-menu-button,
    .page-receive-files .suite-nav-link,
    .page-receive-files .suite-menu-button,
    .receive-send-mode .suite-nav-link,
    .receive-send-mode .suite-menu-button {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 2px !important;
        width: 100% !important;
        height: 49px !important;
        min-height: 49px !important;
        max-height: 49px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--navy) !important;
        line-height: 1 !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    .suite-nav-icon {
        display: grid !important;
        place-items: center !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        border: 1px solid #ead8c7 !important;
        border-radius: 50% !important;
        background: #fff !important;
        color: #0b2147 !important;
        font-size: 1rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        box-shadow: 0 3px 8px rgba(6,32,74,.08) !important;
    }

    .suite-nav-text {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        color: #334155 !important;
        font-size: .46rem !important;
        font-weight: 900 !important;
        line-height: 1.05 !important;
        text-align: center !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .suite-nav-link.active .suite-nav-icon,
    .suite-nav-link:hover .suite-nav-icon,
    .suite-nav-link:focus-visible .suite-nav-icon,
    .suite-menu.open > .suite-menu-button .suite-nav-icon,
    .suite-menu-button:hover .suite-nav-icon,
    .suite-menu-button:focus-visible .suite-nav-icon {
        border-color: #d66a12 !important;
        background: linear-gradient(135deg, #f97316, #d66a12) !important;
        color: #fff !important;
    }

    .suite-menu.open .suite-menu-list,
    .suite-menu:focus-within .suite-menu-list {
        top: 126px !important;
        left: 7px !important;
        right: 7px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .page-send-to-phone .app-seo-intro .mobile-omit-description,
    .page-receive-from-phone .app-seo-intro .mobile-omit-description {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .suite-nav-icon {
        flex-basis: 31px !important;
        width: 31px !important;
        min-width: 31px !important;
        max-width: 31px !important;
        height: 31px !important;
        min-height: 31px !important;
        max-height: 31px !important;
        font-size: .92rem !important;
    }
    .suite-nav-text { font-size: .42rem !important; }
}

/* FileDostV4 v4.1.9: independent mobile application bar.
   This bar is outside suite-header state classes, so Home remains available in guest, sender and receiver modes. */
.mobile-global-toolbar { display: none; }

@media (max-width: 700px) {
    /* The legacy desktop navigation is replaced on mobile by the compact independent bar below. */
    .suite-header-actions > .suite-nav {
        display: none !important;
    }

    .mobile-global-toolbar {
        position: sticky;
        top: 0;
        z-index: 100200;
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: start;
        gap: 2px;
        width: 100%;
        max-width: 100%;
        margin: 0 0 7px;
        padding: 5px 3px 4px;
        border: 1px solid rgba(214, 106, 18, .18);
        border-radius: 15px;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 7px 20px rgba(6, 32, 74, .12);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow: visible;
    }

    .mobile-global-action,
    .mobile-global-menu > summary {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        min-width: 0;
        min-height: 46px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #20324f;
        font-size: .48rem;
        font-weight: 900;
        line-height: 1;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        list-style: none;
        white-space: nowrap;
    }

    .mobile-global-menu > summary::-webkit-details-marker { display: none; }
    .mobile-global-menu > summary::marker { content: ''; }

    .mobile-global-icon {
        display: grid;
        place-items: center;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        border: 1px solid #ead8c7;
        border-radius: 50%;
        background: #fff;
        color: #0b2147;
        font-size: 1.05rem;
        font-weight: 950;
        line-height: 1;
        box-shadow: 0 3px 9px rgba(6, 32, 74, .10);
    }

    .mobile-global-action.active .mobile-global-icon,
    .mobile-global-menu.active > summary .mobile-global-icon,
    .mobile-global-menu[open] > summary .mobile-global-icon,
    .mobile-global-action:focus-visible .mobile-global-icon,
    .mobile-global-menu > summary:focus-visible .mobile-global-icon {
        border-color: #d66a12;
        background: linear-gradient(135deg, #f97316, #d66a12);
        color: #fff;
        outline: none;
    }

    .mobile-global-menu {
        position: relative;
        min-width: 0;
    }

    .mobile-global-menu-list {
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        z-index: 100300;
        display: grid;
        width: min(240px, calc(100vw - 20px));
        padding: 7px;
        border: 1px solid #ead8c7;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 16px 38px rgba(6, 32, 74, .18);
    }

    .mobile-global-menu-list-right {
        right: 0;
        left: auto;
    }

    .mobile-global-menu:not([open]) .mobile-global-menu-list { display: none; }

    .mobile-global-menu-list a {
        padding: 10px 11px;
        border-radius: 10px;
        color: #0b2147;
        font-size: .78rem;
        font-weight: 850;
        text-decoration: none;
    }

    .mobile-global-menu-list a:hover,
    .mobile-global-menu-list a:focus-visible {
        background: #fff4e8;
        color: #a84e08;
        outline: none;
    }

    /* Do not allow specialised guest/sender modes to hide the independent Home bar. */
    .live-fixed-guest .mobile-global-toolbar,
    .receive-send-mode .mobile-global-toolbar,
    .page-receive-files .mobile-global-toolbar {
        display: grid !important;
    }
}

@media (max-width: 360px) {
    .mobile-global-toolbar { gap: 1px; padding-inline: 1px; }
    .mobile-global-icon {
        width: 31px;
        min-width: 31px;
        height: 31px;
        min-height: 31px;
        font-size: .95rem;
    }
    .mobile-global-action,
    .mobile-global-menu > summary { font-size: .43rem; }
}
