:root {
    --background: #edf1f7;
    --blue: #245bd5;
}
body {
    background: var(--background);
}
#appHeader.topbar {
    background: #fff;
    color: #17243a;
    border-bottom: 1px solid #dce4ef;
    padding-right: 76px;
}
#appHeader .brand small,
#appHeader .offline {
    color: #52647d;
}
.update-tools {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 12;
}
#updateBell {
    background: #edf3ff;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    min-width: 42px;
    min-height: 40px;
    position: relative;
}
#updateBadge {
    position: absolute;
    top: -5px;
    right: -4px;
    background: #c62828;
    color: white;
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 11px;
}
#updateDialog {
    max-width: min(440px, 92vw);
    padding: 22px;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    color: #17243a;
}
#updateDialog button {
    margin: 5px 0;
    width: 100%;
}
#updateDialog::backdrop {
    background: #10233f66;
}
#updateDialog [hidden],
#updateBadge[hidden] {
    display: none !important;
}
.pagehead h1 {
    text-transform: none;
    letter-spacing: -0.02em;
}
.panel {
    box-shadow: 0 3px 14px #2538580b;
}
.stats-panel .stats {
    gap: 10px;
}
.stats-panel .stats .stat {
    background: #fff;
    border: 1px solid #e0e6ef;
    border-left: 4px solid #245bd5;
    border-radius: 10px;
    padding: 14px;
}
.stats-panel .stats .stat:nth-child(2) {
    border-left-color: #0891b2;
}
.stats-panel .stats .stat:nth-child(3) {
    border-left-color: #16845b;
}
.stats-panel .stats .stat:nth-child(4) {
    border-left-color: #d97706;
}
#clean #stationPicker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    max-height: 240px;
    overflow: auto;
    padding: 3px;
}
#clean #stationPicker .station-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    text-align: left;
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 6px !important;
    font-size: 14px;
}
#stationPicker small {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
#clean .checklist-control-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
#clean .selection-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
#clean #saveReport {
    width: 100%;
    margin: 0;
    background: #16845b !important;
    color: white !important;
    border: 1px solid #126b49 !important;
    min-height: 48px;
    font-size: 15px;
}
#clean #saveReport:hover {
    background: #126b49 !important;
}
#clean #cameraGrid.camera-grid {
    display: block;
    max-height: min(55vh, 540px);
    overflow: auto;
    padding: 0 4px;
    scroll-snap-type: none;
    touch-action: pan-y;
}
#clean .camera-block {
    display: block;
    margin-bottom: 12px;
}
#clean .camera-group-title {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #edf3ff;
    padding: 9px;
    border-radius: 6px;
    font-size: 15px;
}
#clean .camera-columns {
    display: grid;
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 0 12px;
}
#clean #cameraGrid .camera {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px 9px;
    border: 0;
    border-bottom: 1px solid #e1e7ef;
    border-radius: 0;
    box-shadow: none;
}
#clean #cameraGrid .camera.selected {
    background: #e8f5ee;
    color: #126b49;
}
#clean #cameraGrid .camera input {
    accent-color: #16845b;
    flex-shrink: 0;
}
#clean .camera-info {
    gap: 2px;
}
#clean .camera-carousel .carousel-arrow {
    display: none;
}
@media (max-width: 600px) {
    #clean #stationPicker,
    #clean .camera-columns {
        grid-template-columns: 1fr;
    }
    #appHeader .offline {
        display: none;
    }
    #appHeader .brand strong {
        font-size: 13px;
    }
}
.data-columns,
.analytics-filters,
.analytics-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0;
}
.data-column {
    min-width: 0;
}
.data-column h3 {
    margin: 10px 0;
}
.data-column button,
.data-column input {
    max-width: 100%;
    width: 100%;
    margin-top: 8px;
}
.analytics-filters,
.analytics-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.analytics-filters label {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.analytics-filters input,
.analytics-filters select {
    width: 100%;
    min-width: 0;
}
.analytics-bar {
    padding: 8px 0;
    border-bottom: 1px solid #e0e6ef;
}
.analytics-bar > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.analytics-bar progress {
    width: 100%;
    height: 12px;
    accent-color: #245bd5;
}
.analytics-missing {
    max-height: 180px;
    overflow: auto;
    overflow-wrap: anywhere;
}
.analytics-stats .panel {
    margin: 0;
}
@media (max-width: 800px) {
    .data-columns {
        grid-template-columns: 1fr;
    }
    .analytics-filters,
    .analytics-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* v23 horizontal CRM-inspired dashboard */
#appHeader.topbar {
    background: #11182d;
    color: #fff;
    border: 0;
}
#appHeader .brand small,
#appHeader .offline {
    color: #cbd5e1;
}
#appHeader .brandmark {
    color: #fff;
}
#updateBell {
    background: #28334d;
    color: #fff;
    border-color: #39445d;
}
@media (min-width: 901px) {
    .layout {
        display: block;
    }
    .layout .sidebar {
        display: flex;
        flex-direction: row;
        width: 100%;
        padding: 8px 24px;
        background: #11182d;
        border: 0;
        gap: 8px;
        position: static;
        height: auto;
    }
    .sidebar .nav {
        color: #dbe5f5;
        white-space: nowrap;
        padding: 11px 16px;
    }
    .sidebar .nav.active {
        background: #2563eb;
        color: white;
    }
    .sidebar .side-note {
        display: none;
    }
    main {
        width: min(1440px, 100%);
        padding: 24px 30px;
    }
}
#dashboard .stats-panel {
    background: white;
    padding: 18px;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    margin-bottom: 16px;
}
#dashboard .stats .stat small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
}
#dashboard .stats .stat b {
    font-size: 30px;
}
#dashboard .stats .stat {
    min-width: 0;
}
#dashboard .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.dash-grid .panel {
    min-width: 0;
    margin: 0;
    padding: 20px;
    border-radius: 12px;
}
.dash-grid .panelhead {
    background: white;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    margin: -20px -20px 14px;
    padding: 16px 20px;
}
.dash-chart {
    display: flex;
    gap: 10px;
    height: 210px;
    margin: 12px 0;
}
.dash-day {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.dash-track {
    flex: 1;
    width: 65%;
    background: #eff6ff;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.dash-track > div {
    width: 100%;
    background: #3475ed;
    border-radius: 5px 5px 0 0;
}
.dash-progress-row {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
}
.dash-progress-row > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}
.dash-progress-row progress {
    width: 100%;
    height: 10px;
    accent-color: #2563eb;
}
.dash-recent article {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.dash-recent small {
    display: block;
    color: #64748b;
    margin-top: 4px;
}
.dash-recent strong {
    color: #16845b;
}
.dash-grid #stationTiles {
    max-height: 320px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dash-grid #dashProgress {
    max-height: 320px;
    overflow: auto;
}
@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
    #dashboard .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #dashboard .stats .stat b {
        font-size: 24px;
    }
    .dash-chart {
        height: 170px;
    }
}
/* v24: full-bleed Material section titles and prominent cleaning entry. */
#dashboard .stats-panel,
#dashboard .dash-start,
#dashboard .dash-grid .panel {
    --section-pad: 20px;
    padding: var(--section-pad);
    overflow: hidden;
}
#dashboard .stats-panel {
    --section-color: #1565c0;
}
#dashboard .dash-start {
    --section-color: #2e7d32;
    margin-bottom: 16px;
    border-radius: 12px;
}
#dashboard .dash-trend {
    --section-color: #00838f;
}
#dashboard .dash-progress {
    --section-color: #bf5100;
}
#dashboard .dash-activity {
    --section-color: #455a64;
    grid-column: 1/-1;
}
#dashboard .stats-heading,
#dashboard .panel > .panelhead {
    box-sizing: border-box;
    width: calc(100% + 2 * var(--section-pad));
    max-width: none;
    margin: calc(-1 * var(--section-pad)) calc(-1 * var(--section-pad)) 16px;
    padding: 14px var(--section-pad);
    background: var(--section-color);
    color: white;
    border: 0;
    border-radius: 0;
    min-height: 48px;
    font-weight: 700;
}
#dashboard .panelhead h2,
#dashboard .panelhead .textbtn {
    color: white;
}
#dashboard .panelhead .textbtn {
    background: #ffffff20;
    border: 1px solid #ffffff65;
    border-radius: 6px;
    padding: 6px 10px;
}
#dashboard .dash-start-button {
    width: 100%;
    background: #2e7d32;
    color: white;
    margin-bottom: 12px;
    min-height: 46px;
}
#dashboard .dash-start #stationTiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-height: 260px;
    overflow: auto;
    gap: 8px;
}
#updateDialog #alertPermission {
    font-weight: 600;
    margin-top: 12px;
}
#updateDialog #alertResult {
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    #dashboard .stats-panel,
    #dashboard .dash-start,
    #dashboard .dash-grid .panel {
        --section-pad: 14px;
    }
    #dashboard .dash-start #stationTiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 800px) {
    main {
        touch-action: pan-y pinch-zoom;
    }
}
/* v26: consistent Material section headers across navigation views. */
#clean,
#history,
#analytics,
#manage {
    --section-color: #1565c0;
}
#clean {
    --section-color: #2e7d32;
}
#history {
    --section-color: #455a64;
}
#analytics {
    --section-color: #00838f;
}
#manage {
    --section-color: #1565c0;
}
:is(#clean, #history, #analytics, #manage) .panel {
    --section-pad: 16px;
    padding: var(--section-pad);
    border-radius: 12px;
    min-width: 0;
    overflow: hidden;
}
:is(#clean, #history, #analytics, #manage) .panel > h2:first-child,
:is(#clean, #history, #analytics, #manage) .panel > .panelhead:first-child {
    box-sizing: border-box;
    width: calc(100% + 2 * var(--section-pad));
    max-width: none;
    margin: calc(-1 * var(--section-pad)) calc(-1 * var(--section-pad)) 16px;
    padding: 14px var(--section-pad);
    background: var(--section-color);
    color: white;
    border: 0;
    border-radius: 0;
    font-size: 17px;
    line-height: 1.4;
}
#clean .panelhead h2,
#clean .panelhead .muted,
#clean .panelhead p {
    color: white;
}
#clean .nonumber-head {
    background: #455a64;
    color: white;
    padding: 12px;
    border-radius: 8px;
}
#clean .nonumber-head small {
    color: white;
}
#manage .manage-list-title,
#manage .data-heading {
    background: #455a64;
    color: white;
    padding: 12px;
    border-radius: 8px;
}
#manage .data-column:nth-child(1) {
    --section-color: #1565c0;
}
#manage .data-column:nth-child(2) {
    --section-color: #2e7d32;
}
#manage .data-column:nth-child(3) {
    --section-color: #b71c1c;
}
#manage .data-column > h3 {
    background: var(--section-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 0 0 12px;
}
#analytics .analytics-filters > .material-heading {
    grid-column: 1/-1;
}
#analytics .panel:nth-of-type(3) {
    --section-color: #1565c0;
}
#updateDialog > h2:first-child {
    background: #1565c0;
    color: white;
    padding: 14px;
    border-radius: 8px;
}
@media (max-width: 600px) {
    :is(#clean, #history, #analytics, #manage) .panel {
        --section-pad: 12px;
    }
}

/* v27 notification overview and simplified dialog */
.notification-banner[hidden] {
    display: none !important;
}
.notification-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #e3f2fd;
    color: #174778;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 16px;
}
.notification-banner p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
}
.notification-banner button {
    flex-shrink: 0;
}
#updateDialog #pushStatus {
    background: #edf4fb;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.5;
}
#updateDialog details {
    margin: 12px 0;
    color: #455a64;
}
#updateDialog summary {
    cursor: pointer;
    padding: 8px 0;
}
@media (max-width: 600px) {
    .notification-banner {
        align-items: stretch;
        flex-direction: column;
    }
    .notification-banner button {
        width: 100%;
    }
}

/* v28 compact notification controls */
#updateDialog {
    width: min(360px, 92vw);
    box-sizing: border-box;
    padding: 16px;
    margin: auto;
    font-size: 13px;
    line-height: 1.45;
}
#updateDialog .notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
#updateDialog .notification-head h2 {
    font-size: 18px;
    margin: 0;
}
#updateDialog #closeUpdates {
    width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 22px;
    margin: 0;
}
#updateDialog p {
    font-size: 13px;
    margin: 8px 0;
}
#updateDialog #pushStatus {
    padding: 10px;
}
#updateDialog button {
    font-size: 13px;
    min-height: 44px;
    padding: 9px 12px;
    margin: 4px 0;
}
#updateDialog .update-section {
    border-top: 1px solid #dce4ef;
    margin-top: 12px;
    padding-top: 6px;
}
#updateDialog #versionInfo {
    font-size: 12px;
    color: #64748b;
}
#notificationBanner button {
    position: relative;
    touch-action: manipulation;
    pointer-events: auto;
}

/* v29: compact history cards and selected-camera editor. */
.view .pagehead {
    background: #28334d;
    color: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    min-width: 0;
}
.view .pagehead h1 {
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-size: clamp(19px, 4vw, 27px);
    color: #fff;
}
.view .pagehead .eyebrow,
.view .pagehead .muted {
    color: #dbe5f5;
}
#historyList .history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px;
    min-width: 0;
}
#historyList .history-details {
    min-width: 0;
    width: 100%;
}
#historyList .history-details > b {
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}
#historyList .history-camera-list {
    max-height: 112px;
    overflow: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
    padding: 6px 8px;
    background: #f4f7fb;
    border-radius: 6px;
    font-size: 0.83rem;
    line-height: 1.5;
}
#historyList .history-camera-list .history-group {
    font-size: inherit;
    line-height: inherit;
}
#historyList .history-camera-list b {
    font-weight: 800;
}
#historyList .history-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    width: 100%;
    min-width: 0;
}
#historyList .history-actions .tag {
    font-size: 0.78rem;
    justify-self: start;
    padding: 5px 7px;
    white-space: normal;
}
#historyList .history-actions .smallbtn {
    font-size: 0.82rem;
    min-height: 38px;
    padding: 7px 12px;
    margin: 0;
}
#historyList .history-actions .history-delete {
    grid-column: 1/-1;
    justify-self: end;
}
#historyList .history-date-records {
    padding-left: 0;
}
.edit-selected {
    margin: 12px 0;
    padding: 10px;
    background: #edf7f0;
    border: 1px solid #c8e6d0;
    border-radius: 8px;
    min-width: 0;
}
.edit-selected h3 {
    font-size: 14px;
    margin: 0 0 4px;
    color: #126b49;
}
.edit-selected p {
    font-size: 12px;
    margin: 0 0 8px;
    color: #405c4b;
}
.edit-selected-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 3px 2px 8px;
    min-width: 0;
}
.edit-camera-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #a8d5b5;
    border-radius: 7px;
    color: #126b49;
    padding: 7px 10px;
    min-height: 44px;
    text-align: left;
}
.edit-camera-chip small,
.edit-camera-chip strong {
    display: block;
    font-size: 12px;
}
.edit-camera-chip small {
    font-size: 10px;
    color: #405c4b;
}
.edit-camera-chip > span:last-child {
    font-size: 20px;
}

/* v30: edge-to-edge page title bands and station-separated history/editor. */
main {
    --page-gutter: 42px;
}
@media (max-width: 900px) {
    main {
        --page-gutter: 14px;
        padding-inline: var(--page-gutter);
    }
}
@media (min-width: 901px) {
    main {
        --page-gutter: 30px;
    }
}
.view > .pagehead {
    box-sizing: border-box;
    width: calc(100% + 2 * var(--page-gutter));
    max-width: none;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
    border-radius: 0;
}
#historyList .history-camera-list {
    max-height: 180px;
    padding: 8px;
}
#historyList .history-group {
    display: block;
    background: #fff;
    border: 1px solid #dce4ef;
    border-left: 3px solid #526b94;
    border-radius: 5px;
    padding: 8px;
    margin: 0;
}
#historyList .history-group + .history-group {
    margin-top: 9px;
}
#historyList .history-station-heading,
.edit-station-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
#historyList .history-station-heading small {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0;
}
.edit-selected-list {
    display: block;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}
.edit-station-row {
    min-width: 0;
    padding: 8px;
    background: #ffffff80;
    border: 1px solid #c8e6d0;
    border-radius: 7px;
}
.edit-station-row + .edit-station-row {
    margin-top: 8px;
}
.edit-station-heading {
    font-size: 13px;
    color: #126b49;
}
.edit-station-heading small {
    font-size: 11px;
    color: #405c4b;
}
.edit-station-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 6px;
    touch-action: pan-x pan-y;
}
.edit-station-scroll .edit-camera-chip {
    min-height: 40px;
    white-space: nowrap;
}
/* Allow native horizontal scrolling inside station rows; swipe navigation already excludes scroll containers. */
@media (max-width: 800px) {
    main {
        touch-action: auto;
    }
}

/* v31: flush mobile titles and elevated surfaces. */
:root {
    --background: #dce4ee;
}
body,
main {
    background: var(--background);
}
.panel,
#dashboard .stats-panel {
    box-shadow:
        0 3px 12px rgba(25, 43, 70, 0.12),
        0 1px 3px rgba(25, 43, 70, 0.07);
}
@media (max-width: 800px) {
    main {
        padding-top: 0;
    }
    .view > .pagehead {
        margin-top: 0;
    }
    @media (prefers-reduced-motion: no-preference) {
        .view.active {
            animation: ppm-page-enter 150ms ease-out;
        }
    }
}
@keyframes ppm-page-enter {
    from {
        opacity: 0.75;
    }
    to {
        opacity: 1;
    }
}

/* v32 non-blocking update status */
#updateProgress {
    background: #e8effa;
    color: #233653;
    padding: 8px 16px;
    font-size: 12px;
}
#updateProgress[hidden],
#updateProgressAction[hidden] {
    display: none !important;
}
#updateProgress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
#updateProgress progress {
    width: 100%;
    height: 7px;
    accent-color: #1565c0;
    display: block;
    margin-top: 5px;
}
#updateProgressAction {
    font-size: 12px;
    min-height: 30px;
    padding: 4px 10px;
}
#updateOffer {
    width: min(340px, 90vw);
    border: 0;
    border-radius: 14px;
    padding: 18px;
    color: #17243a;
    background: white;
    box-shadow: 0 12px 40px #0004;
    margin: auto;
}
#updateOffer::backdrop {
    background: #11182d66;
}
#updateOffer h2 {
    font-size: 17px;
    margin: 0 0 10px;
}
#updateOffer p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 15px;
}
.offer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.offer-actions button {
    font-size: 13px;
    padding: 8px 12px;
}

/* v33 compact notification center */
#updateBell {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    isolation: isolate;
}
#bellProgress {
    position: absolute;
    inset: 1px;
    border-radius: 10px;
    background: conic-gradient(#60a5fa var(--progress, 25%), transparent 0);
    pointer-events: none;
    z-index: -1;
    mask: radial-gradient(transparent 57%, black 60%);
}
#bellProgress.spinning {
    border-radius: 50%;
    animation: ppm-bell-spin 1.2s linear infinite;
}
@keyframes ppm-bell-spin {
    to {
        transform: rotate(360deg);
    }
}
#bellProgress[hidden] {
    display: none !important;
}
#updateDialog {
    width: min(340px, 92vw);
    padding: 14px;
    max-height: 85dvh;
    overflow: auto;
    box-shadow: 0 12px 36px #0003;
}
#updateDialog .push-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
}
#updateDialog .push-row button {
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
}
#updateDialog #pushStatus {
    background: none;
    padding: 0;
    margin: 2px 0;
    color: #64748b;
    font-size: 12px;
}
#updateDialog #updateProgress {
    padding: 8px 0;
    background: transparent;
    color: #334155;
}
#updateDialog #updateProgress progress {
    height: 6px;
}
#updateDialog #updateProgress progress[hidden] {
    display: none !important;
}
#updateDialog #updateStatus {
    color: #64748b;
    font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
    #bellProgress.spinning {
        animation: none;
    }
}

#updateDialog .update-timing {
    font-size: 11px;
    color: #64748b;
    margin: 5px 0;
    line-height: 1.4;
}
#updateDialog #updateCompleted {
    color: #166534;
}

/* v35: full-width desktop and circular bell */
@media (min-width: 901px) {
    .layout > main {
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
    }
}
#updateBell {
    border-radius: 50% !important;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}

/* BETA identity: distinguish test installations from production. */
#appHeader.topbar {
    background: #9a3412;
}
#appHeader .brandmark {
    background: #c2410c;
    color: #fff;
}
#appHeader .brand small,
#appHeader .offline {
    color: #ffedd5;
}
