/* This layer is activated only by harmony-phone.js. Desktop and explicit tablets never match. */
html.harmony-phone { --phone-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); --radius: 18px; }
.harmony-phone body { min-width: 0; overflow-x: clip; }
.harmony-phone .main-shell, .harmony-phone body.sidebar-collapsed .main-shell { width: 100%; margin-left: 0; }
.harmony-phone .content { padding: 16px 16px calc(var(--phone-bottom) + 24px); }
/* Brand stays in document flow so it cannot cover the page or bottom navigation. */
.harmony-phone .phone-brand-row { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; }
.harmony-phone .phone-brand-row .brand { width: 129.6px; height: 64.8px; padding: 0; background: #30343b; border-radius: 10px; }
.harmony-phone .phone-brand-row .brand:has(.brand-logo[data-logo-kind="custom"]) { background: transparent; }
.harmony-phone .phone-brand-row .brand-wordmark { width: 129.6px; height: 64.8px; object-fit: contain; object-position: left center; filter: none; }
.harmony-phone .topbar { display: none; }
.harmony-phone .page-head { gap: 14px; margin-bottom: 20px; }
.harmony-phone h1 { font-size: 25px; line-height: 1.35; }
.harmony-phone .page-head p { font-size: 13px; line-height: 1.8; margin-top: 6px; }
.harmony-phone .head-actions { width: auto; max-width: 100%; gap: 10px; }
.harmony-phone .head-actions .btn { min-height: 44px; font-size: 14px; }
.harmony-phone .page-head:has(.page-refresh) { display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
.harmony-phone .page-head:has(.page-refresh) .head-actions { align-self: start; padding-top: 2px; }
.harmony-phone :is(button, a, input, select, textarea) { scroll-margin: 24px 12px calc(var(--phone-bottom) + 16px); }

/* Five equal destinations. More opens only one row immediately above the bar. */
.harmony-phone .phone-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 32; height: var(--phone-bottom); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); background: #fffffff5; backdrop-filter: blur(16px); border-top: 1px solid var(--theme-border); box-shadow: 0 -3px 18px #20283e08; }
.harmony-phone .phone-tabbar > :is(a, button) { position: relative; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; background: transparent; color: #667081; font: inherit; font-size: 12px; line-height: 1.3; }
.harmony-phone .phone-tabbar > :is(a, button) > .icon { width: 23px; height: 23px; }
.harmony-phone .phone-tabbar > .active { color: var(--brand); background: var(--theme-soft); font-weight: 600; }
.harmony-phone .phone-pending-count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; background: #c53743; color: white; font: 600 10px/1 system-ui, sans-serif; border: 2px solid white; border-radius: 12px; }
.harmony-phone .sidebar, .harmony-phone body.sidebar-collapsed .sidebar, .harmony-phone .harmony-nav-scrim { display: none !important; }
.harmony-phone body.phone-more-open { overflow: hidden; }
.harmony-phone .phone-more-scrim { position: fixed; inset: 0; z-index: 30; border-radius: 0; background: #11172926; }
.harmony-phone .phone-more-panel { position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(var(--phone-bottom) + 10px); z-index: 31; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 10px 4px; border: 1px solid var(--theme-border); border-radius: 20px; background: #fff; box-shadow: 0 8px 28px #20283e18; }
.harmony-phone .phone-more-panel > :is(a, button) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 60px; padding: 6px 2px; border-radius: 12px; background: transparent; color: var(--brand-dark); font: inherit; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.harmony-phone .phone-more-panel > :is(a, button) > .icon { width: 23px; height: 23px; }
.harmony-phone .phone-more-panel > :is(.active, a:hover, button:hover) { background: var(--theme-soft); color: var(--brand); }
.harmony-phone .harmony-network { bottom: calc(var(--phone-bottom) + 12px); width: calc(100% - 24px); max-width: 480px; font-size: 13px; }
.harmony-phone .phone-about-hero { display: flex; flex-direction: column; align-items: center; padding: 16px 0 28px; gap: 16px; text-align: center; }
.harmony-phone .phone-about-icon { width: 92px; height: 92px; border-radius: 22px; }
.harmony-phone .phone-about-hero h1 { font-size: 26px; }
.harmony-phone .phone-about-version { min-height: 44px; padding: 10px 18px; border: 1px solid var(--theme-border); border-radius: 22px; background: #fff; color: var(--brand); font: inherit; font-size: 14px; }
.harmony-phone .release-view > :is(.release-head, .release-policy) { display: none; }
.harmony-phone .phone-history-title { margin: 4px 0 20px; font-size: 18px; }
.harmony-phone .phone-account-entry { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; padding: 16px; margin: 0 0 20px; border: 1px solid var(--theme-border); border-radius: 18px; background: white; text-align: left; }
.harmony-phone .phone-account-entry > span:first-child { min-width: 0; }
.harmony-phone .phone-account-entry strong { display: block; overflow-wrap: anywhere; font-size: 16px; color: var(--ink); }
.harmony-phone .phone-account-entry small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.harmony-phone .phone-account-chevron { font: 28px/1 system-ui, sans-serif; color: var(--brand); }

/* Main data becomes readable cards, while original buttons and append-only list state are retained. */
.harmony-phone .phone-list-panel { border: 0; background: transparent; overflow: visible; }
.harmony-phone .phone-list-panel > .table-wrap { overflow: visible; }
.harmony-phone .phone-card-table { display: block; width: 100%; min-width: 0; border-collapse: separate; }
.harmony-phone .phone-card-table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.harmony-phone .phone-card-table > tbody { display: grid; gap: 14px; }
.harmony-phone .phone-card-table > tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 14px; padding: 18px 16px 10px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.harmony-phone .phone-card-table > tbody > tr > td { display: block; min-width: 0; width: auto; max-width: none; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; background: transparent; }
.harmony-phone .phone-card-table td::before { content: attr(data-phone-label); display: block; font-size: 11px; line-height: 1.5; color: #687484; margin-bottom: 4px; }
.harmony-phone .phone-card-table td:first-child { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.harmony-phone .phone-card-table td:first-child::before { display: none; }
.harmony-phone .phone-card-table td:first-child :is(.table-link, .alert-number) { font-size: 17px; font-weight: 650; line-height: 1.5; }
.harmony-phone .phone-card-table td:first-child .table-link { min-height: 36px; padding: 2px 0; }
.harmony-phone .phone-card-table td:first-child .table-sub { font-size: 13px; margin-top: 4px; }
.harmony-phone .phone-card-table td[data-phone-label="操作"] { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 8px; }
.harmony-phone .phone-card-table td[data-phone-label="操作"]::before { display: none; }
.harmony-phone .phone-card-table td[data-phone-label="操作"] .inline { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.harmony-phone .phone-card-table td[data-phone-label="操作"] > .btn { width: 100%; background: var(--theme-soft); color: var(--brand); }
.harmony-phone .phone-interactive-row { cursor: pointer; touch-action: manipulation; }
.harmony-phone .phone-interactive-row:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.harmony-phone .phone-card-table .phone-interactive-row { padding-bottom: 18px; }
.harmony-phone .phone-card-table .phone-interactive-row:active { border-color: var(--brand); background: var(--theme-soft); }
.harmony-phone .phone-card-table [data-phone-member] > td:first-child { font-size: 17px; font-weight: 650; color: var(--ink); }
.harmony-phone .phone-card-table [data-phone-member] > td:first-child .table-sub { font-weight: 400; }
.harmony-phone .phone-card-table :is(.table-sub, .badge) { font-size: 12px; }
.harmony-phone .phone-card-table .steps-number { font-size: 16px; }
.harmony-phone .phone-card-table .btn { min-height: 44px; padding: 8px 12px; }
.harmony-phone :is(.tabs, .list-controls, .phone-filter-actions) { padding: 10px 0; background: transparent; }
.harmony-phone .tabs { gap: 20px; margin-bottom: 4px; scrollbar-width: none; }
.harmony-phone .tabs .tab { font-size: 14px; min-height: 48px; height: 48px; }
.harmony-phone .phone-filter-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.harmony-phone .list-controls { border-bottom: 0; margin-bottom: 10px; }
.harmony-phone .harmony-filter-toggle { min-height: 44px; font-size: 13px; padding: 10px 14px; border-radius: 22px; background: white; }
.harmony-phone :is(#alert-filter, #device-filter, #member-filter):not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px; margin-bottom: 16px; background: white; border: 1px solid var(--theme-border); border-radius: 18px; }
.harmony-phone :is(#alert-filter, #device-filter, #member-filter) > :is(.search-field, .field, .date-range, .form-error) { grid-column: 1 / -1; min-width: 0; max-width: none; width: 100%; }
.harmony-phone #alert-filter > .date-range { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.harmony-phone #alert-filter .date-range-separator { display: none; }
.harmony-phone :is(#alert-filter, #device-filter, #member-filter) .search-field { flex-basis: auto; }
.harmony-phone :is(#alert-filter, #device-filter, #member-filter) .search-field input { min-width: 0; width: 100%; font-size: 14px; }
.harmony-phone .harmony-list-footer { padding: 20px 10px; border-top: 0; }
.harmony-phone .harmony-list-status { font-size: 13px; }
.harmony-phone :is(.device-list-note, .member-list-note) { padding: 14px 4px; font-size: 12px; line-height: 1.8; align-items: flex-start; }

/* Summary, forms, details and secondary data remain complete at phone width. */
.harmony-phone :is(.kpi-grid, .stats-three, .stats-four, .an-kpis) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.harmony-phone :is(.kpi, .summary-card, .an-kpi) { padding: 16px 13px; border-radius: 16px; min-width: 0; }
.harmony-phone .summary-card { gap: 8px; }
.harmony-phone .summary-card .summary-icon { display: none; }
.harmony-phone :is(.summary-card p, .kpi-label, .an-kpi-label) { font-size: 12px; }
.harmony-phone :is(.summary-card strong, .kpi-value, .an-kpi-value) { font-size: 28px; }
.harmony-phone :is(.summary-note, .kpi-foot) { font-size: 11px; overflow-wrap: anywhere; }
.harmony-phone :is(.dashboard-grid, .settings-layout, .location-overview, .history-position, .snapshot-context, .area-editor-grid, .interactive-area-grid, .sampling-grid, .help-layout) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.harmony-phone :is(.panel-head, .panel-body) { padding-left: 16px; padding-right: 16px; }
.harmony-phone .panel-head { padding-top: 16px; padding-bottom: 14px; }
.harmony-phone :is(.panel-subtitle, .section-label) { font-size: 12px; }
.harmony-phone .vital-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.harmony-phone .vital-metric { min-height: 94px; padding: 12px 10px; }
.harmony-phone .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.harmony-phone .zone-card { padding: 14px 12px; }
.harmony-phone :is(.alarm-summary, .alarm-list) { margin-left: 0; margin-right: 0; }
.harmony-phone .alarm-list { padding: 0 14px; }
.harmony-phone .alarm-summary { margin: 0 14px; }
.harmony-phone .alarm-item { gap: 8px; }
.harmony-phone .alarm-info strong { font-size: 14px; }
.harmony-phone .alarm-info p { font-size: 12px; overflow-wrap: anywhere; }
.harmony-phone .alarm-time { font-size: 10px; }
.harmony-phone .alarm-icon { display: none; }
.harmony-phone :is(.chart-heading, .chart-caption, .section-label, .detail-section-head, .device-headline, .detail-title-row) { flex-wrap: wrap; gap: 10px; }
.harmony-phone :is(.trend-chart, .history-chart, .daily-steps-chart, .an-chart) { overflow-x: auto; overscroll-behavior-x: contain; }
.harmony-phone :is(.trend-chart, .history-chart) svg { min-width: 520px; height: 220px; }
.harmony-phone :is(.daily-steps-chart, .an-chart) svg { min-width: 540px; min-height: 190px; }
.harmony-phone :is(.form-grid, .detail-grid, .harmony-setting-facts, .escalation-setting) { grid-template-columns: minmax(0, 1fr); }
.harmony-phone .form-grid .full { grid-column: 1; }
.harmony-phone .toolbar { padding: 14px; }
.harmony-phone .toolbar :is(.form-group, .search-field, .field) { min-width: 0; max-width: none; }
.harmony-phone .toolbar .search-field { flex-basis: 100%; }
.harmony-phone :is(.history-filters, .history-filter, .binding-filter) { flex-wrap: wrap; gap: 10px; }
.harmony-phone .history-query { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.harmony-phone .history-query .form-group { min-width: 0; width: 100%; margin: 0; }
.harmony-phone .history-query :is(.input, .field) { min-width: 0; width: 100%; min-height: 48px; font-size: 14px; }
.harmony-phone .history-query .form-error { grid-column: 1 / -1; }
.harmony-phone .detail-tabs { max-width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; overflow-x: auto; overscroll-behavior-x: contain; }
.harmony-phone .detail-tabs .tab { flex: 0 0 auto; white-space: nowrap; font-size: 14px; }
.harmony-phone .device-identity { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.harmony-phone .device-identity > div { min-width: 0; flex: 1 1 160px; overflow-wrap: anywhere; }
.harmony-phone :is(.input, .field, select, textarea) { max-width: 100%; }
.harmony-phone .detail-grid > div { min-width: 0; }
.harmony-phone .detail-grid dd { overflow-wrap: anywhere; }
.harmony-phone :is(.live-alert, .connection-banner, .audio-availability) { padding: 12px 16px; font-size: 13px; }
.harmony-phone .settings-nav { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; gap: 10px; padding: 0; }
.harmony-phone .settings-nav :is(button, .settings-release-link), .harmony-phone .settings-nav :is(button, .settings-release-link).active { display: flex; align-items: center; width: 100%; min-width: 0; min-height: 76px; padding: 15px 16px; gap: 14px; border: 1px solid var(--theme-border); border-radius: 16px; background: white; color: var(--ink); text-align: left; }
.harmony-phone .settings-nav :is(button, .settings-release-link) > .icon { width: 24px; height: 24px; color: var(--brand); }
.harmony-phone .phone-setting-text { flex: 1; min-width: 0; }
.harmony-phone .phone-setting-text strong { display: block; font-size: 16px; font-weight: 600; }
.harmony-phone .phone-setting-text small { display: block; font-size: 12px; line-height: 1.7; margin-top: 4px; color: var(--muted); font-weight: 400; }
.harmony-phone .phone-setting-chevron { font: 26px/1 system-ui, sans-serif; color: var(--muted); }
.harmony-phone .settings-layout .settings-panel { display: none; }
.harmony-phone .phone-settings-detail .settings-panel { display: block; }
.harmony-phone .phone-settings-detail > :is(.page-head, .phone-account-entry), .harmony-phone .phone-settings-detail .settings-nav { display: none; }
.harmony-phone .phone-settings-detail-head { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.harmony-phone .phone-settings-detail-head button { display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex: 0 0 auto; min-height: 48px; padding: 10px 12px 10px 4px; border: 1px solid var(--theme-border); border-radius: 14px; background: white; color: var(--brand); font-size: 14px; }
.harmony-phone .phone-settings-detail-head h1 { font-size: 24px; min-width: 0; }
.harmony-phone .phone-settings-detail .settings-panel > .panel-head > h2 { display: none; }
.harmony-phone .phone-settings-detail .settings-panel > .panel-head { min-height: 0; padding-top: 16px; padding-bottom: 12px; }
.harmony-phone .settings-content { padding: 18px 16px; min-width: 0; }
.harmony-phone .harmony-settings-notice { margin: 0 16px 16px; padding: 12px; font-size: 13px; line-height: 1.8; }
.harmony-phone .harmony-theme-form .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.harmony-phone .harmony-theme-form .theme-card { padding: 8px 8px 14px; }
.harmony-phone .harmony-theme-form .theme-name { font-size: 12px; padding-left: 22px; padding-right: 0; }
.harmony-phone .theme-selected { display: none !important; }
.harmony-phone .harmony-theme-form .theme-mini-preview { height: 64px; }
.harmony-phone .theme-option input { left: 10px; bottom: 16px; }
.harmony-phone :is(.settings-intro, .detail-note, .form-group small) { font-size: 13px; line-height: 1.8; }
.harmony-phone .rule-inputs { flex-wrap: wrap; gap: 10px; }
.harmony-phone .rule-inputs label { flex-wrap: wrap; }
.harmony-phone .rule-row { flex-wrap: wrap; gap: 12px; }
/* Legacy narrow-screen rules absolutely positioned toggles over their descriptions. */
.harmony-phone .rule-row:has(> .toggle-label) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.harmony-phone .rule-row:has(> .toggle-label) > .rule-title { grid-column: 1; grid-row: 1; min-width: 0; width: auto; overflow-wrap: anywhere; }
.harmony-phone .rule-row:has(> .toggle-label) > .rule-title p { max-width: none; white-space: normal; overflow-wrap: anywhere; line-height: 1.8; }
.harmony-phone .rule-row > .toggle-label { position: static; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; max-width: 132px; min-width: 0; margin: 0; }
.harmony-phone .rule-row:has(> .toggle-label) > .spacer { display: none; }
.harmony-phone .rule-row:has(> .toggle-label) > .rule-inputs { grid-column: 1 / -1; min-width: 0; }
.harmony-phone :is(.settings-footer, .form-actions, .modal-footer) { flex-wrap: wrap; gap: 12px; }
.harmony-phone .settings-footer > .spacer { display: none; }
.harmony-phone :is(.an-section-tabs, .an-periods, .history-metric-tabs) { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; }
.harmony-phone :is(.an-section-tabs, .history-metric-tabs) > button { flex-shrink: 0; }
.harmony-phone .an-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
.harmony-phone .an-controls .an-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.harmony-phone .an-filter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; width: 100%; min-width: 0; }
.harmony-phone .an-filter-form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; font-size: 13px; }
.harmony-phone .an-filter-form input { width: 100%; min-width: 0; height: 48px; min-height: 48px; padding: 10px 12px; font-size: 16px; border-radius: 12px; }
.harmony-phone .an-filter-form .an-query { height: 48px; min-height: 48px; min-width: 64px; padding: 10px 16px; border-radius: 12px; font-size: 15px; align-self: end; }
.harmony-phone .an-period-nav { width: 100%; justify-content: space-between; gap: 4px; }
.harmony-phone .an-period-nav button { padding: 8px; font-size: 12px; }
.harmony-phone .an-page-head { align-items: flex-start; gap: 10px; }
.harmony-phone .an-page-head h1 { font-size: 25px; }
.harmony-phone .an-page-head .an-readonly { display: none; }
.harmony-phone .help-directory { position: static; max-height: none; }
.harmony-phone .help-directory nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.harmony-phone .help-directory nav button { font-size: 13px; text-align: left; }
.harmony-phone .help-quick-grid, .harmony-phone .help-feature-grid { grid-template-columns: minmax(0, 1fr); }
.harmony-phone .help-search-panel { padding: 18px 16px; }
.harmony-phone .help-search-input { min-width: 0; }
.harmony-phone .help-section-content { padding: 16px; font-size: 14px; }
.harmony-phone .help-section > header { padding: 18px 16px 14px; }
.harmony-phone .help-section { scroll-margin-top: 24px; }
.harmony-phone :is(.release-card, .release-summary) { padding: 18px 16px; }

/* Sheets keep close/actions reachable and leave scrolling to their bodies. */
.harmony-phone .overlay { padding: max(12px, env(safe-area-inset-top, 0px)) 0 0; align-items: flex-end; }
.harmony-phone :is(.modal, .modal.wide) { width: 100%; max-width: 100%; max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px))); border-radius: 24px 24px 0 0; margin: 0; }
.harmony-phone .modal-head { padding: 16px; gap: 12px; }
.harmony-phone .modal-head > :first-child:not(.modal-close) { padding-top: 8px; }
.harmony-phone .modal-head h2 { font-size: 20px; line-height: 1.4; }
.harmony-phone .modal-head .modal-close { background: var(--bg); border-radius: 50%; }
.harmony-phone .modal-body { padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); overscroll-behavior-y: contain; }
.harmony-phone .modal-footer { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.harmony-phone .modal-body .tabs { gap: 18px; }
.harmony-phone .form-actions .btn { flex: 1 1 auto; }
.harmony-phone .snapshot-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.harmony-phone :is(.device-detail-title, .member-detail-title, .binding-member) { min-width: 0; overflow-wrap: anywhere; }
.harmony-phone .geo-map, .harmony-phone .location-map { width: 100%; min-width: 0; }
.harmony-phone :is(.lm-fit, .lm-retry, .lm-zoom button) { min-width: 44px; min-height: 44px; }
.harmony-phone .lm-selected-values { grid-template-columns: minmax(0, 1fr); }
.harmony-phone :is(.modal-body audio, .modal-body video, .modal-body img) { max-width: 100%; }
.harmony-phone .login-screen { padding: max(28px, env(safe-area-inset-top, 0px)) 24px max(28px, env(safe-area-inset-bottom, 0px)); align-content: center; }
.harmony-phone .login-screen .login-story .brand { width: 212px; height: 115px; margin-bottom: 20px; }
.harmony-phone .login-screen .login-story .brand-wordmark { width: 156.6px; height: 78.3px; }
.harmony-phone .login-card h2 { font-size: 28px; }
.harmony-phone .login-card { padding: 0; }
.harmony-phone .login-card input { font-size: 16px; }
.harmony-phone :is(.face-login-card, .face-capture) { max-width: 100%; min-width: 0; }
.harmony-phone .face-login-card { padding: 0; }
@media (orientation: landscape) {
  .harmony-phone :is(.kpi-grid, .stats-four) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .harmony-phone .phone-card-table > tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .harmony-phone .content { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .harmony-phone .login-screen { align-content: start; }
}
