/* ProDesk: interface clara e escura com a mesma estrutura em todas as páginas. */
:root, [data-theme="light"] {
    color-scheme: light;
    --pd-bg: #f2f4fa; --pd-surface: #f2f4fa; --pd-surface-card: #fff;
    --pd-surface-hover: #e9edfa; --pd-border: #e4e8f0;
    --pd-primary: #466cf5; --pd-primary-hover: #3357da;
    --pd-text-main: #303c55; --pd-text-muted: #8492aa;
    --pd-shadow: 0 3px 16px rgba(45, 60, 92, .035);
    --pd-input: #f8f9fd; --pd-table-head: #f8f9fc;
}
[data-theme="dark"] {
    color-scheme: dark;
    --pd-bg: #151923; --pd-surface: #191e2a; --pd-surface-card: #222836;
    --pd-surface-hover: #2d3546; --pd-border: #343d4d;
    --pd-primary: #8196ff; --pd-primary-hover: #a1b0ff;
    --pd-text-main: #e5eaf4; --pd-text-muted: #a4afc1;
    --pd-shadow: 0 3px 16px rgba(0, 0, 0, .1);
    --pd-input: #1b202c; --pd-table-head: #252c3a;
}
body { background: var(--pd-bg); color: var(--pd-text-main); font-family: "Segoe UI", Roboto, Arial, sans-serif; }
.pd-sidebar { width: 258px; background: var(--pd-surface); border-right: 0; }
.pd-brand { height: 94px; border: 0; padding: 25px 28px; gap: 12px; }
.pd-brand-logo { width: 37px; height: 37px; background: transparent; color: var(--pd-primary); border: 1px solid currentColor; border-radius: 10px; box-shadow: none; font-size: 17px; }
.pd-brand-text h1 { color: var(--pd-text-main); font-size: 1.28rem; letter-spacing: -.03em; }
.pd-brand-text span { color: var(--pd-text-muted); font-size: .62rem; letter-spacing: .1em; }
.pd-nav { padding: 25px 17px; gap: 5px; }
.pd-nav-caption { padding: 0 13px 13px; color: var(--pd-text-muted); font-size: .66rem; letter-spacing: .09em; font-weight: 600; }
.pd-nav-link { min-height: 48px; color: var(--pd-text-main); font-size: .91rem; font-weight: 400; }
.pd-nav-link i { color: var(--pd-text-muted); font-size: 1rem; }
.pd-nav-link:hover { background: var(--pd-surface-hover); color: var(--pd-primary); }
.pd-nav-link.active { background: transparent; color: var(--pd-primary); font-weight: 600; }
.pd-nav-link.active i { color: var(--pd-primary); }
.pd-sidebar-footer { border-color: var(--pd-border); }
.pd-topbar { min-height: 94px; background: var(--pd-bg); border: 0; padding: 18px 38px; }
.pd-topbar-actions { gap: 18px; }
.pd-quick-connect { background: var(--pd-surface-card); border: 1px solid var(--pd-border); border-radius: 7px; max-width: 420px; padding: 7px 9px 7px 13px; }
.pd-quick-connect input { color: var(--pd-text-main); }
.pd-theme-toggle { border: 1px solid var(--pd-border); background: var(--pd-surface-card); color: var(--pd-text-main); border-radius: 7px; padding: 9px 12px; font-size: .8rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pd-theme-toggle i { color: var(--pd-primary); }
.pd-theme-toggle:hover { background: var(--pd-surface-hover); }
.pd-user-badge { background: transparent; border: 0; padding: 0; }
.pd-user-avatar { border-radius: 6px; background: var(--pd-surface-hover); color: var(--pd-primary); }
.pd-content { padding: 24px 38px 42px; }
.pd-content > .d-flex h2, .pd-content > .d-flex h3 { font-size: 1.65rem; font-weight: 400 !important; letter-spacing: -.025em; }
.pd-card, .pd-stat-card { background: var(--pd-surface-card); border: 1px solid var(--pd-border); border-radius: 6px; box-shadow: var(--pd-shadow); }
.pd-card-header { border-color: var(--pd-border); }
.pd-card-header h3 { font-size: 1rem; }
.pd-stat-card { min-height: 160px; padding: 23px; }
.pd-stat-value { color: var(--pd-text-main); font-weight: 400; font-size: 2rem; }
.pd-stat-label { font-size: .8rem; }
.pd-stat-icon { width: 42px; height: 42px; border-radius: 50%; font-size: 1rem; }
.btn-pd-primary, .btn-primary { background: #466cf5 !important; border-color: #466cf5 !important; color: #fff !important; border-radius: 6px; box-shadow: none; }
.btn-pd-primary:hover, .btn-primary:hover { background: #3357da !important; border-color: #3357da !important; transform: none; box-shadow: none; }
.text-muted { color: var(--pd-text-muted) !important; }
.pd-content h2.text-white, .pd-content h3.text-white, .pd-content h4.text-white, .pd-content h5.text-white, .pd-content h6.text-white, .pd-content strong.text-white, .pd-card-header h3, .pd-user-badge .text-white, .modal .text-white:not(.btn):not(input):not(textarea):not(select), .pd-card td.text-white { color: var(--pd-text-main) !important; }
.pd-card .text-white:not(.btn):not(.badge):not(input):not(textarea):not(select), .pd-content .btn-outline-secondary.text-white { color: var(--pd-text-main) !important; }
.pd-content .btn-outline-secondary:hover { background: var(--pd-surface-hover); border-color: var(--pd-border); }
.pd-content .pd-session-container .text-white { color: #f8fafc !important; }
.pd-card .table, .pd-card .table-dark, .pd-card table.dataTable { --bs-table-color: var(--pd-text-main); --bs-table-bg: transparent; --bs-table-border-color: var(--pd-border); --bs-table-hover-color: var(--pd-text-main); --bs-table-hover-bg: var(--pd-surface-hover); color: var(--pd-text-main) !important; }
.pd-card .table > :not(caption) > * > * { border-color: var(--pd-border); }
.pd-card .table thead th, table.dataTable thead th { background: var(--pd-table-head) !important; color: var(--pd-text-muted) !important; }
.pd-card .table tbody tr:hover > * { background: var(--pd-surface-hover); }
.form-control, .form-select, .dataTables_wrapper input, .dataTables_wrapper select { background: var(--pd-input) !important; border-color: var(--pd-border) !important; color: var(--pd-text-main) !important; }
.form-control::placeholder { color: var(--pd-text-muted); }
.form-control:focus, .form-select:focus { border-color: var(--pd-primary) !important; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { background: var(--pd-input) !important; color: var(--pd-text-main) !important; }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { color: var(--pd-text-muted) !important; }
.page-link { background: var(--pd-surface-card); color: var(--pd-text-main); border-color: var(--pd-border); }
.modal-content, .swal2-popup { background: var(--pd-surface-card) !important; color: var(--pd-text-main) !important; border-color: var(--pd-border) !important; }
.modal-header, .modal-footer { border-color: var(--pd-border) !important; }
[data-theme="light"] .btn-close-white { filter: none; }
[data-theme="dark"] .modal .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.dropdown-menu, .dropdown-menu-dark { background: var(--pd-surface-card); border-color: var(--pd-border); }
.dropdown-menu-dark .dropdown-item { color: var(--pd-text-main); }
.dropdown-menu-dark .dropdown-item:hover { color: var(--pd-text-main); background: var(--pd-surface-hover); }
.dropdown-menu.pd-dropdown-floating {
    position: fixed !important;
    z-index: 1040;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    border-radius: 10px;
}
.pd-dashboard-connect { background: var(--pd-surface-card) !important; }
.pd-device-card { background: var(--pd-input) !important; border-color: var(--pd-border) !important; }
.pd-login-theme { position: fixed; top: 24px; right: 26px; z-index: 2; }
html body:has(.pd-login-card) { background: var(--pd-bg); }
html .pd-login-card { background: var(--pd-surface-card); border-color: var(--pd-border); box-shadow: var(--pd-shadow); }
html .pd-login-card .text-white { color: var(--pd-text-main) !important; }
html .pd-login-card .pd-form-control { background: var(--pd-input); color: var(--pd-text-main); border-color: var(--pd-border); }
@media(max-width: 900px) {
    .pd-sidebar { width: 72px; }
    .pd-brand { height: 74px; padding: 15px; }
    .pd-nav { padding: 18px 10px; }
    .pd-nav-caption { display: none; }
    .pd-topbar { min-height: 74px; padding: 12px 16px; }
    .pd-content { padding: 20px 16px 32px; }
}
@media(max-width: 540px) {
    .pd-theme-toggle span { display: none; }
    .pd-login-theme { top: 14px; right: 14px; }
}

/* Navegação fixa, com rolagem própria quando a janela é baixa. */
.pd-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    height: 100dvh;
    overflow: hidden;
}
.pd-brand { flex: 0 0 94px; overflow: hidden; text-decoration: none; }
.pd-brand-image { display: block; width: 185px; max-width: 100%; height: auto; object-fit: contain; }
.pd-brand { flex-basis: 120px; padding: 10px 20px; }
.pd-brand-image { width: 205px; max-height: 100px; }
.pd-nav { min-height: 0; overflow-y: auto; }
.pd-sidebar-footer { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; padding: 12px 17px 18px; border-top: 1px solid var(--pd-border); }
.pd-sidebar-theme, .pd-sidebar-logout {
    display: flex; width: 100%; min-height: 45px; align-items: center; gap: 14px;
    padding: 10px 13px; color: var(--pd-text-main); background: transparent; border: 0;
    border-radius: 8px; text-decoration: none; font-size: .91rem; text-align: left;
}
.pd-sidebar-theme { cursor: pointer; }
.pd-sidebar-theme:hover, .pd-sidebar-logout:hover { color: var(--pd-primary); background: var(--pd-surface-hover); }
.pd-sidebar-theme > i, .pd-sidebar-logout > i { width: 20px; text-align: center; color: var(--pd-text-muted); }
.pd-sidebar-theme .pd-theme-label { flex: 1; white-space: nowrap; }
.pd-switch { width: 37px; height: 21px; flex: 0 0 37px; border-radius: 999px; background: #b6c0d0; padding: 3px; transition: background .2s; }
.pd-switch-knob { display: block; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s; }
.pd-sidebar-theme[aria-checked="true"] .pd-switch { background: #466cf5; }
.pd-sidebar-theme[aria-checked="true"] .pd-switch-knob { transform: translateX(16px); }
.pd-card, .pd-stat-card, .pd-screen-area, .pd-remote-control { border-radius: 14px; }
.pd-device-card { border-radius: 12px !important; }
.pd-card .table-responsive { border-radius: 12px; }
.pd-card table.dataTable, .pd-card .table { border-collapse: separate !important; border-spacing: 0; }
.pd-card table.dataTable thead th:first-child, .pd-card .table thead th:first-child { border-top-left-radius: 10px; }
.pd-card table.dataTable thead th:last-child, .pd-card .table thead th:last-child { border-top-right-radius: 10px; }
.pd-card table.dataTable tbody tr:last-child td:first-child { border-bottom-left-radius: 10px; }
.pd-card table.dataTable tbody tr:last-child td:last-child { border-bottom-right-radius: 10px; }
.dt-bootstrap5 .dt-search, .dt-bootstrap5 .dt-length, .dt-bootstrap5 .dt-info { color: var(--pd-text-muted); font-size: .875rem; }
.dt-bootstrap5 .dt-search input, .dt-bootstrap5 .dt-length select { border-radius: 8px; min-height: 38px; }
.dt-bootstrap5 .dt-search, .dt-bootstrap5 .dt-length { margin-bottom: 14px; }
.dt-bootstrap5 .dt-info, .dt-bootstrap5 .dt-paging { padding-top: 14px; }
.dt-bootstrap5 .dt-paging .pagination { gap: 4px; }
.dt-bootstrap5 .dt-paging .page-link { border-radius: 7px !important; }
.dt-bootstrap5 .dt-paging .active .page-link { background: #466cf5; border-color: #466cf5; color: #fff; }
.pd-sidebar-theme:focus-visible, .pd-sidebar-logout:focus-visible, .pd-user-avatar:focus-visible { outline: 2px solid var(--pd-primary); outline-offset: 2px; }
.pd-main { min-width: 0; width: calc(100% - 258px); margin-left: 258px; padding-top: 74px; }
.pd-topbar { position: fixed; top: 0; left: 258px; right: 0; z-index: 1020; height: 74px; min-height: 74px; justify-content: flex-end; background: var(--pd-bg); border-bottom: 1px solid var(--pd-border); }
.pd-topbar .pd-user-avatar { width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
@media(max-width: 900px) {
    .pd-sidebar { width: 72px; }
    .pd-brand { flex-basis: 74px; justify-content: flex-start; padding: 16px; }
    .pd-brand-image { width: 160px; max-width: none; height: 36px; object-fit: contain; object-position: left center; }
    .pd-main { width: calc(100% - 72px); margin-left: 72px; }
    .pd-topbar { left: 72px; }
    .pd-sidebar-footer { display: flex; padding: 10px 8px 16px; align-items: center; }
    .pd-sidebar-theme, .pd-sidebar-logout { justify-content: center; padding: 10px 0; }
    .pd-sidebar-theme > i, .pd-sidebar-theme .pd-theme-label, .pd-sidebar-logout span { display: none; }
}

/* Controle remoto: o direcional mantém proporção e não comprime os botões. */
.pd-session-container { height: auto; min-height: 0; align-items: stretch; }
.pd-screen-area { min-width: 0; min-height: min(650px, 68vh); }
.pd-screen-toolbar { gap: 12px; flex-wrap: wrap; }
.pd-screen-toolbar > div { min-width: 0; flex-wrap: wrap; }
.pd-screen-toolbar .pd-status-pill { white-space: normal; }
.pd-remote-control { width: min(320px, 100%); height: auto; min-width: 0; overflow: visible; }
.pd-remote-header h4 { color: var(--pd-text-main); }
.pd-dpad {
    display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    flex: 0 0 auto; width: min(100%, 204px); height: auto; aspect-ratio: 1;
    gap: 4px; padding: 9px; margin: 10px auto 22px; border-radius: 50%;
}
.pd-dpad-btn { position: static; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.pd-dpad-up { grid-area: 1 / 2; }
.pd-dpad-left { grid-area: 2 / 1; }
.pd-dpad-ok { grid-area: 2 / 2; }
.pd-dpad-right { grid-area: 2 / 3; }
.pd-dpad-down { grid-area: 3 / 2; }
.pd-remote-grid { flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-remote-btn { min-width: 0; min-height: 62px; }
.pd-text-sender { min-width: 0; }
.pd-text-sender input { min-width: 0; }
@media (max-width: 1200px) {
    .pd-session-container { flex-direction: column; }
    .pd-screen-area { min-height: 420px; }
    .pd-remote-control { width: 100%; }
    .pd-remote-grid { max-width: 420px; width: 100%; margin-left: auto; margin-right: auto; }
    .pd-text-sender { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 540px) {
    .pd-screen-area { min-height: 340px; }
    .pd-screen-toolbar { padding: 10px; }
    .pd-remote-control { padding: 16px; }
}

/* Ícones lineares e cards ilustrados do dashboard. */
.pd-nav-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--pd-text-muted); }
.pd-nav-link.active .pd-nav-icon, .pd-nav-link:hover .pd-nav-icon, .pd-sidebar-logout:hover .pd-nav-icon { color: var(--pd-primary); }
.pd-metric { min-height: 190px; height: 100%; position: relative; overflow: hidden; padding: 23px 20px; border: 1px solid transparent; }
.pd-metric-total { background: linear-gradient(130deg, #edf2ff, #dfe8ff); border-color: #d6e1ff; --metric-ink: #263c74; --metric-muted: #536b9f; }
.pd-metric-online { background: linear-gradient(130deg, #eafbf5, #d6f2e9); border-color: #ccecdf; --metric-ink: #205b4c; --metric-muted: #4d8473; }
.pd-metric-offline { background: linear-gradient(130deg, #f4f0f9, #e8e1f1); border-color: #e2d9ee; --metric-ink: #54446c; --metric-muted: #817192; }
[data-theme="dark"] .pd-metric-total { background: linear-gradient(130deg, #25324d, #263c65); border-color: #3d5277; --metric-ink: #edf2ff; --metric-muted: #b3c5e8; }
[data-theme="dark"] .pd-metric-online { background: linear-gradient(130deg, #203e38, #225044); border-color: #366357; --metric-ink: #e7fff6; --metric-muted: #acd9c8; }
[data-theme="dark"] .pd-metric-offline { background: linear-gradient(130deg, #343042, #494057); border-color: #60556e; --metric-ink: #f5efff; --metric-muted: #c5b9d1; }
.pd-metric-content { position: relative; z-index: 1; width: 65%; color: var(--metric-ink); }
.pd-metric-label { font-size: .98rem; font-weight: 650; }
.pd-metric-value { font-size: 2.45rem; line-height: 1.1; font-weight: 700; margin: 8px 0; letter-spacing: -.04em; }
.pd-metric-caption { color: var(--metric-muted); font-size: .81rem; }
.pd-metric-breakdown { color: var(--metric-muted); display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: .76rem; line-height: 1.35; }
.pd-metric-breakdown span { white-space: nowrap; }
.pd-metric-breakdown strong { color: var(--metric-ink); margin-left: 2px; }
.pd-metric-art { position: absolute; pointer-events: none; width: 55%; max-width: 225px; min-width: 130px; right: -18px; bottom: -30px; transform: rotate(-12deg); filter: drop-shadow(0 12px 12px #22345626); }
@media (max-width: 420px) { .pd-metric-content { width: 70%; } .pd-metric-art { width: 48%; min-width: 110px; } }

/* Configurações e acesso rápido ao código do aplicativo. */
.pd-downloader-inline { min-width: 160px; max-width: 190px; }
.pd-downloader-inline .form-label { display: block; color: var(--pd-text-muted); font-size: .72rem; font-weight: 600; }
.pd-downloader-inline .form-control { min-height: 42px; font-size: .88rem; }
.pd-settings { max-width: 1040px; }
.pd-settings-heading h2 { color: var(--pd-text-main); font-size: 1.7rem; font-weight: 650; letter-spacing: -.025em; }
.pd-settings-eyebrow { color: var(--pd-primary); font-size: .68rem; font-weight: 700; letter-spacing: .12em; margin-bottom: .45rem; }
.pd-settings-section { background: var(--pd-surface-card); border: 1px solid var(--pd-border); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.pd-settings-section-intro { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.pd-settings-marker { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; background: var(--pd-surface-hover); color: var(--pd-primary); }
.pd-settings-section h3 { color: var(--pd-text-main); font-size: 1rem; font-weight: 650; margin: 0 0 4px; }
.pd-settings-section p { color: var(--pd-text-muted); font-size: .83rem; margin: 0; }
.pd-settings .form-label { color: var(--pd-text-main); font-size: .83rem; font-weight: 600; }
.pd-settings .form-control { min-height: 43px; }
.pd-settings .form-text { color: var(--pd-text-muted); font-size: .76rem; }
.pd-settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 16px; }
@media(max-width: 575px) { .pd-settings-section { padding: 18px; } .pd-settings-actions { align-items: stretch; flex-direction: column; } }

/* Navegação móvel recolhida, com acesso ao menu completo sob demanda. */
.pd-sidebar-toggle, .pd-sidebar-close { display: none; }
.pd-sidebar-backdrop[hidden] { display: none; }
@media (max-width: 900px) {
    .pd-sidebar { width: min(280px, 85vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: none; z-index: 1050; }
    body.pd-nav-open .pd-sidebar { transform: translateX(0); box-shadow: 12px 0 35px #0003; }
    .pd-sidebar-close { display: grid; position: absolute; top: 20px; right: 12px; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--pd-text-main); cursor: pointer; }
    .pd-sidebar-close:hover { background: var(--pd-surface-hover); }
    .pd-sidebar-toggle { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--pd-border); border-radius: 9px; background: var(--pd-surface-card); color: var(--pd-text-main); cursor: pointer; }
    .pd-sidebar-toggle:focus-visible, .pd-sidebar-close:focus-visible { outline: 2px solid var(--pd-primary); outline-offset: 2px; }
    .pd-sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1040; border: 0; background: #080d1a99; }
    body.pd-nav-open { overflow: hidden; }
    .pd-brand { flex: 0 0 106px; justify-content: flex-start; padding: 10px 52px 10px 18px; }
    .pd-brand-image { width: 165px; max-width: 100%; height: auto; max-height: 86px; }
    .pd-nav { padding: 18px 17px; }
    .pd-nav-caption { display: block; }
    .pd-nav-link { justify-content: flex-start; padding: 12px 16px; }
    .pd-nav-link span { display: inline; }
    .pd-sidebar-footer { display: flex; align-items: stretch; padding: 12px 17px 18px; }
    .pd-sidebar-theme, .pd-sidebar-logout { justify-content: flex-start; padding: 10px 13px; }
    .pd-sidebar-theme > i { display: inline-block; }
    .pd-sidebar-theme .pd-theme-label, .pd-sidebar-logout span { display: inline; }
    .pd-main { width: 100%; margin-left: 0; }
    .pd-topbar { left: 0; justify-content: space-between; flex-wrap: nowrap; }
    .pd-content { padding: 20px 16px 32px; }
    .pd-content .table-responsive { max-width: 100%; overflow-x: auto; }
    .dt-container .dt-layout-row { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 575px) {
    .pd-content h2 { font-size: 1.4rem; }
    .pd-content .pd-card-header { gap: 10px; flex-wrap: wrap; }
    .pd-content .modal-dialog { margin: .75rem; }
    .pd-downloader-inline { min-width: 145px; }
    .pd-session-container, .pd-screen-area, .pd-remote-control { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pd-sidebar { transition: none; } }

/* Sessão móvel: imagem fixa e controle compacto permanecem visíveis juntos. */
#instalarApkOpcao[hidden], #arquivoProgresso[hidden], #cancelarEnvio[hidden] { display: none !important; }
.pd-command-feedback { min-height: 1.2em; margin: 0 0 8px; color: var(--pd-text-muted); font-size: .76rem; line-height: 1.35; }
.pd-command-feedback.is-error { color: #dc5d5d; }
@media (max-width: 767px) {
    .pd-main { overflow: visible; }
    .pd-session-container { gap: 10px; }
    .pd-screen-area { position: sticky; top: 74px; z-index: 1010; flex: 0 0 auto; min-height: 0; }
    .pd-screen-toolbar { padding: 8px 10px; gap: 6px; }
    .pd-screen-toolbar > div { gap: 6px !important; }
    .pd-screen-toolbar h5 { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem !important; }
    .pd-screen-model, #pingBadge, #fpsBadge { display: none; }
    .pd-session-indicators { gap: 5px !important; }
    .pd-session-indicators .pd-status-pill { font-size: .65rem; padding: 3px 6px; }
    .pd-disconnect-label { display: none; }
    .pd-screen-viewport { flex: 0 0 auto; height: clamp(120px, 44vw, 30dvh); }
    .pd-screen-viewport #loadingOverlay { padding: 8px; font-size: .8rem; }
    .pd-screen-viewport #loadingOverlay .spinner-border { width: 1.5rem !important; height: 1.5rem !important; margin-bottom: .25rem !important; }
    .pd-remote-control { display: grid; grid-template-columns: minmax(115px, .85fr) minmax(0, 1.15fr); grid-template-areas: 'header header' 'file file' 'power power' 'pad keys' 'feedback feedback' 'text text'; align-items: center; gap: 10px; padding: 12px; }
    .pd-remote-header { grid-area: header; text-align: left; margin: 0; padding: 0 0 8px; }
    .pd-remote-header span { display: none; }
    .pd-file-trigger { grid-area: file; margin: 0 !important; }
    .pd-remote-power { grid-area: power; margin: 0 !important; }
    .pd-dpad { grid-area: pad; width: min(100%, 155px); margin: 0 auto; }
    .pd-remote-grid { grid-area: keys; width: 100%; margin: 0; gap: 5px; }
    .pd-remote-btn { min-height: 44px; padding: 5px 2px; gap: 2px; font-size: .65rem; }
    .pd-remote-btn i { font-size: .92rem; }
    .pd-remote-btn span { white-space: nowrap; font-size: .58rem; letter-spacing: -.02em; }
    .pd-command-feedback { grid-area: feedback; margin: 0; }
    .pd-text-sender { grid-area: text; width: 100%; margin: 0 !important; }
}
