/*
 * Phone-only mapping of the supplied Huawei HarmonyOS Component Library.sketch.
 * Phone canvas: 360 x 792; page inset 16; TitleBar 56 / 26 Bold / 32;
 * secondary title 20 Bold / 26; CardBasic radius 20 / minimum 120 px;
 * list rows 48 (one line) / 64 (two lines); button/input 40 / radius 20;
 * BottomTab item 48 with icon 24 and label 10 / 14; sheet radius 32.
 * The library's extra 28 px gesture area is NOT drawn here: real safe-area is used.
 * Saved per-account --brand / --theme-soft replace the library's sample blue accent.
 * Existing API forms, original rows/actions and lazy-loading remain the live controls.
 */
html.harmony-phone .phone-filter-sheet-actions { display: flex; grid-column: 1 / -1; gap: 12px; width: 100%; padding-top: 8px; }
html.harmony-phone .phone-filter-sheet .phone-filter-sheet-actions > button[type="submit"] { flex: 1; order: 2; min-height: 40px; height: 40px; border-radius: 20px; font-size: 16px; line-height: 22px; font-weight: 500; padding: 8px 16px; background: var(--brand); color: white; }
html.harmony-phone .phone-filter-sheet .phone-filter-sheet-actions > button[data-action] { flex: 0 0 32%; order: 1; min-height: 40px; height: 40px; border-radius: 20px; font-size: 16px; line-height: 22px; font-weight: 500; padding: 8px 16px; background: var(--phone-control); color: var(--brand); }
html.harmony-phone .home-trends .metric-time { white-space: pre-line; }
html.harmony-phone { --phone-canvas: #f1f3f5; --phone-surface: #fff; --phone-secondary: rgba(0, 0, 0, .6); --phone-divider: rgba(0, 0, 0, .05); --phone-card-radius: 20px; --phone-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); text-size-adjust: 100%; -webkit-text-size-adjust: 100%; --phone-primary: rgba(0, 0, 0, .901961); --phone-control: rgba(0, 0, 0, .05098); --phone-warning: #e84026; --phone-reminder: #ed6f21; --phone-success: #64bb5c; --phone-sheet-radius: 32px; --ink: var(--phone-primary); --muted: var(--phone-secondary); --line: var(--phone-divider); --radius: 20px; }
html.harmony-phone body { min-width: 0; background: var(--phone-canvas); color: var(--ink); font-size: 16px; line-height: 1.375; overflow-x: clip; font-family: 'HarmonyOS Sans', 'HarmonyHeiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html.harmony-phone :is(#app, .main-shell, .content, .panel, .an-view, .help-view, .release-view) { min-width: 0; max-width: 100%; }
html.harmony-phone .main-shell { min-height: 100dvh; }
html.harmony-phone .content { width: 100%; padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) calc(var(--phone-bottom) + 24px) max(16px, env(safe-area-inset-left, 0px)); }
html.harmony-phone :is(h1, h2, h3) { letter-spacing: 0; }
html.harmony-phone :is(h1, .an-page-head h1, .help-page-head h1) { font-size: 26px; line-height: 32px; font-weight: 700; margin: 0; min-height: 56px; display: flex; align-items: center; }
html.harmony-phone h2 { font-size: 20px; line-height: 26px; font-weight: 700; }
html.harmony-phone h3 { font-size: 16px; line-height: 22px; font-weight: 500; }
html.harmony-phone :is(.page-head, .an-page-head, .help-page-head) { position: static; margin: 0 0 16px; gap: 0 8px; align-items: start; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
html.harmony-phone .page-head { flex-wrap: nowrap; }
html.harmony-phone .page-head > :first-child { min-width: 0; display: contents; }
html.harmony-phone :is(.page-head p, .an-page-head p, .help-page-head p) { margin-top: 8px; color: var(--phone-secondary); font-size: 14px; line-height: 20px; margin: 0; padding: 0 0 4px; grid-column: 1 / -1; grid-row: 2; }
html.harmony-phone .head-actions { flex: 0 0 auto; width: auto; gap: 8px; padding-top: 8px; grid-column: 2; grid-row: 1; }
html.harmony-phone :is(.btn, .btn.small, .table-link),
html.harmony-phone :is(.an-view button, .help-view button) { min-height: 40px; font-size: 16px; border-radius: 20px; box-shadow: none; line-height: 22px; font-weight: 500; }
html.harmony-phone .btn { padding: 8px 16px; border-color: var(--phone-divider); border: 0; background: var(--phone-control); color: var(--brand); }
html.harmony-phone .btn.primary { background: var(--brand); border-color: var(--brand); color: white; }
html.harmony-phone .btn.plain { padding: 8px 16px; background: transparent; color: var(--brand); }
html.harmony-phone .btn.danger { border-color: #f6dade; border: 0; background: #e8402614; color: var(--phone-warning); }
html.harmony-phone .phone-library-icon { stroke: none; }
html.harmony-phone .page-refresh.icon-btn { width: 40px; height: 40px; min-width: 40px; padding: 0; background: transparent; border-color: transparent; border-radius: 20px; }
html.harmony-phone .page-refresh.icon-btn .icon { width: 24px; height: 24px; }
html.harmony-phone :is(button, a, input, select, textarea) { touch-action: manipulation; scroll-margin: 20px 12px calc(var(--phone-bottom) + 20px); }
html.harmony-phone :is(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
html.harmony-phone :is(.small, .table-sub, .panel-subtitle, .detail-note, .settings-intro) { font-size: 14px; line-height: 20px; }
html.harmony-phone :is(.badge, .phone-card-table .badge) { font-size: 12px; line-height: 16px; border: 0; border-radius: 8px; padding: 2px 6px; }
html.harmony-phone :is(.panel, .an-panel, .an-controls, .an-kpi, .help-section, .help-search-panel, .help-directory) { border: 0; border-radius: var(--phone-card-radius); background: var(--phone-surface); box-shadow: none; }
html.harmony-phone :is(.panel-head, .an-panel-heading) { padding: 16px 12px 12px; min-height: 0; gap: 8px; }
html.harmony-phone :is(.panel-head h2, .an-panel-heading h2) { font-size: 16px; color: var(--ink); line-height: 22px; font-weight: 500; }
html.harmony-phone .panel-head > .icon { color: var(--brand); width: 20px; height: 20px; }
html.harmony-phone .panel-body { padding: 0 12px 16px; }

/* A single library TitleBar begins each page; Logo is reserved for launch and About. */
html.harmony-phone .phone-brand-row { display: none; }
html.harmony-phone .phone-brand-row .brand { width: 72px; max-width: 100%; height: 32px; padding: 0 4px; border-radius: 8px; }
html.harmony-phone .phone-brand-row .brand-wordmark { width: 64px; height: 32px; padding: 0; object-fit: contain; object-position: center; border-radius: 0; }
html.harmony-phone .phone-brand-name { min-width: 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
html.harmony-phone .content .home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
html.harmony-phone .home-kpis .kpi { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 120px; padding: 16px; border: 0; border-radius: var(--phone-card-radius); background: var(--phone-surface); box-shadow: none; align-items: stretch; text-align: left; }
html.harmony-phone .home-kpis .kpi-label { font-size: 16px; line-height: 22px; color: var(--phone-primary); font-weight: 500; gap: 8px; }
html.harmony-phone .home-kpis .kpi-symbol { display: grid; width: 32px; height: 32px; padding: 0; border-radius: 16px; color: var(--brand); background: var(--theme-soft); flex: 0 0 32px; }
html.harmony-phone .home-kpis .kpi-symbol .icon { width: 24px; height: 24px; }
html.harmony-phone .home-kpis .kpi-value { margin: 8px 0 0; font: 700 30px/40px 'HarmonyOS Sans', 'HarmonyHeiTi', system-ui, sans-serif; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
html.harmony-phone .home-kpis .kpi-value small { margin-left: 5px; color: var(--phone-secondary); font-size: 14px; }
html.harmony-phone .home-kpis .alert-kpi { background: var(--phone-surface); }
html.harmony-phone .home-kpis .alert-kpi .kpi-value { color: var(--phone-warning); }
html.harmony-phone .home-kpis .alert-kpi .kpi-symbol { background: #e8402614; color: var(--phone-warning); }
html.harmony-phone .home-kpis :is(.phone-step-kpi, .kpi:nth-child(5)) { grid-column: 1 / -1; min-height: 64px; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; aspect-ratio: auto; flex-wrap: nowrap; display: flex; }
html.harmony-phone .home-kpis :is(.phone-step-kpi, .kpi:nth-child(5)) .kpi-label { justify-content: flex-start; gap: 8px; }
html.harmony-phone .home-kpis :is(.phone-step-kpi, .kpi:nth-child(5)) .kpi-symbol { order: -1; }
html.harmony-phone .home-kpis :is(.phone-step-kpi, .kpi:nth-child(5)) .kpi-value { margin: 0; font-size: 26px; text-align: right; line-height: 32px; min-width: 0; overflow-wrap: anywhere; }
html.harmony-phone .home-trends { margin-bottom: 16px; }
html.harmony-phone :is(.home-trends, .member-current-vitals, .device-current-vitals) .vital-metrics,
html.harmony-phone :is(.home-trends .vital-metrics, .member-current-vitals, .device-current-vitals) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.harmony-phone .vital-metric { min-height: 120px; min-width: 0; padding: 12px 8px; border: 0; border-radius: 16px; background: var(--phone-control); }
html.harmony-phone .vital-metric.active { border-color: var(--theme-border); background: var(--theme-soft); border: 0; }
html.harmony-phone .vital-metric .metric-label { gap: 4px; font-size: 14px; line-height: 20px; flex-wrap: wrap; color: var(--phone-secondary); }
html.harmony-phone .vital-metric .metric-label .icon { width: 16px; height: 16px; }
html.harmony-phone .vital-metric strong { font: 700 24px/32px 'HarmonyOS Sans', 'HarmonyHeiTi', system-ui, sans-serif; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
html.harmony-phone .vital-metric small { font-size: 12px; margin-left: 3px; }
html.harmony-phone .vital-metric .metric-time { font: 12px/16px 'HarmonyOS Sans', 'HarmonyHeiTi', system-ui, sans-serif; margin-top: 5px; }
html.harmony-phone .vital-metric::after { display: none; }
html.harmony-phone .home-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
html.harmony-phone .home-bottom-grid > .panel:first-child { grid-column: auto; }
html.harmony-phone .home-bottom-grid .alarm-list { display: block; padding: 0 12px; }
html.harmony-phone .home-bottom-grid .alarm-item { flex-wrap: nowrap; min-height: 64px; padding: 10px 0; gap: 12px; }
html.harmony-phone .alarm-info strong { font-size: 16px; font-weight: 500; line-height: 22px; }
html.harmony-phone :is(.alarm-info p, .alarm-info .table-sub) { margin-top: 4px; font-size: 14px; color: var(--phone-secondary); line-height: 20px; }
html.harmony-phone .alarm-time { font-size: 12px; flex-shrink: 0; }
html.harmony-phone .alarm-time .btn { min-width: 72px; margin-top: 6px; font-size: 13px; }
html.harmony-phone .alarm-panel-footer { padding: 0 12px 12px; font-size: 14px; justify-content: flex-end; }
html.harmony-phone .health-overview { gap: 14px; }
html.harmony-phone .health-overview strong { font-size: 32px; }
html.harmony-phone .health-overview :is(h3, p) { font-size: 14px; }
html.harmony-phone .health-row { min-height: 48px; padding: 12px 0; }
html.harmony-phone .health-row span { font-size: 16px; }
html.harmony-phone .home-location-row { min-height: 48px; font-size: 16px; gap: 8px; }

/* Equal-weight destinations and a four-action tray sit above the system gesture area. */
html.harmony-phone .phone-tabbar { height: var(--phone-bottom); padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); background: var(--phone-canvas); border-color: #e9ebee; backdrop-filter: none; box-shadow: none; border: 0; }
html.harmony-phone .phone-tabbar > :is(a, button) { min-height: 48px; gap: 2px; border-radius: 0; color: var(--phone-secondary); font-size: 10px; font-weight: 500; isolation: isolate; height: 48px; line-height: 14px; }
html.harmony-phone .phone-tabbar > :is(a, button) > .icon { width: 24px; height: 24px; stroke-width: 1.8; }
html.harmony-phone .phone-tabbar > .active { background: transparent; color: var(--brand); font-weight: 500; }
html.harmony-phone .phone-tabbar > .active::before { content: none; position: absolute; width: 44px; height: 30px; top: 3px; border-radius: 15px; background: var(--theme-soft); z-index: -1; }
html.harmony-phone .phone-pending-count { top: -1px; min-width: 16px; height: 16px; font-size: 10px; background: var(--phone-warning); }
html.harmony-phone .phone-more-scrim { background: #0003; backdrop-filter: none; }
html.harmony-phone .phone-more-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); bottom: calc(var(--phone-bottom) + 8px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); padding: 12px 4px; border: 0; border-radius: 20px; box-shadow: none; }
html.harmony-phone .phone-more-panel > :is(a, button) { min-height: 64px; gap: 8px; padding: 8px 4px; color: var(--ink); font-size: 12px; line-height: 16px; border-radius: 0; }
html.harmony-phone .phone-more-panel > :is(a, button) > .icon { width: 24px; height: 24px; color: var(--phone-primary); }
html.harmony-phone .phone-more-panel > .active { background: transparent; color: var(--brand); }
html.harmony-phone .toast { bottom: calc(var(--phone-bottom) + 16px); border-radius: 20px; font-size: 14px; line-height: 20px; }

/* Live lists retain native rows and actions; only presentation becomes phone cards. */
html.harmony-phone .phone-list-panel { border: 0; border-radius: 0; background: transparent; }
html.harmony-phone .phone-card-table > tbody { gap: 16px; grid-template-columns: minmax(0, 1fr); }
html.harmony-phone .phone-card-table > tbody > tr { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 12px; border: 0; border-radius: 20px; background: var(--phone-surface); color: var(--ink); }
html.harmony-phone .phone-card-table > tbody > tr > td { font-size: 16px; line-height: 22px; color: var(--ink); min-width: 0; }
html.harmony-phone .phone-card-table td::before { margin-bottom: 4px; color: var(--phone-secondary); font-size: 14px; line-height: 20px; font-weight: 400; }
html.harmony-phone .phone-card-table td:first-child { padding-bottom: 10px; border-bottom: 1px solid var(--phone-divider); }
html.harmony-phone .phone-card-table td:first-child :is(.table-link, .phone-card-title) { font-size: 16px; line-height: 22px; color: var(--ink); font-weight: 500; }
html.harmony-phone .phone-card-table .table-sub { max-width: 100%; margin-top: 4px; font-size: 14px; color: var(--phone-secondary); line-height: 20px; }
html.harmony-phone .phone-card-table [data-phone-member] { padding-bottom: 14px; }
html.harmony-phone .phone-card-table [data-phone-member] > td:first-child { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; padding-right: 84px; padding-bottom: 0; border-bottom: 0; }
html.harmony-phone .phone-member-avatar { display: grid; grid-column: 1; grid-row: 1 / span 2; place-items: center; align-self: start; width: 40px; height: 40px; border-radius: 20px; background: var(--theme-soft); color: var(--brand); font-size: 16px; font-weight: 500; line-height: 1; }
html.harmony-phone .phone-card-table [data-phone-member] > td:first-child > .member-name { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
html.harmony-phone .phone-card-table [data-phone-member] > td:first-child > .table-sub { grid-column: 2; grid-row: 2; min-width: 0; margin: 0; overflow-wrap: anywhere; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(2) { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--phone-secondary); margin-top: -4px; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(2)::before { display: none; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(2) .table-sub { margin: 0; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(3) { grid-column: 1 / -1; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(3)::before { display: none; }
html.harmony-phone .phone-card-table .member-vitals-cell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; padding: 12px 0; border-top: 1px solid var(--phone-divider); border-bottom: 1px solid var(--phone-divider); font-size: 14px; }
html.harmony-phone .phone-card-table .member-vitals-cell > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 3px; min-width: 0; white-space: normal; }
html.harmony-phone .phone-card-table .member-vitals-cell > div > span:first-child { flex-basis: 100%; text-align: center; color: var(--phone-secondary); font-size: 14px; margin-bottom: 2px; line-height: 20px; }
html.harmony-phone .phone-card-table .member-vitals-cell .member-vital-value { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 32px; }
html.harmony-phone .phone-card-table .member-vitals-cell small { font-size: 12px; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(6) { position: absolute; top: 17px; right: 12px; max-width: 84px; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(6)::before { display: none; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(7) { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; color: var(--phone-secondary); font-size: 14px; padding-top: 9px; border-top: 1px solid var(--phone-divider); line-height: 20px; }
html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(7)::before { margin: 0; }
html.harmony-phone .phone-card-table [data-phone-alert] > td:first-child { padding-right: 86px; display: flex; flex-wrap: wrap; gap: 4px 7px; align-items: center; }
html.harmony-phone .phone-card-table [data-phone-alert] .alert-number { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--phone-secondary); overflow-wrap: anywhere; }
html.harmony-phone .phone-card-table [data-phone-alert] > td:first-child .table-sub { flex-basis: 100%; margin: 3px 0 0; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 22px; }
html.harmony-phone .phone-card-table [data-phone-alert] > td:nth-child(4) { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--phone-secondary); padding-top: 10px; border-top: 1px solid var(--phone-divider); line-height: 20px; }
html.harmony-phone .phone-card-table [data-phone-alert] > td:nth-child(4)::before { margin: 0; }
html.harmony-phone .phone-card-table [data-phone-alert] > td:nth-child(5) { position: absolute; top: 17px; right: 12px; display: grid; gap: 5px; max-width: 85px; justify-items: end; }
html.harmony-phone .phone-card-table [data-phone-alert] > td:nth-child(5)::before { display: none; }
html.harmony-phone .phone-card-table td[data-phone-label="操作"] { grid-column: 1 / -1; }
html.harmony-phone .phone-card-table td[data-phone-label="操作"]::before { display: none; }
html.harmony-phone .phone-interactive-row:active { background: var(--theme-soft); }
html.harmony-phone .content :is(.stats-three, .stats-four) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
html.harmony-phone .content :is(.stats-three, .stats-four) .summary-card { display: block; min-width: 0; min-height: 120px; padding: 16px; border: 0; border-radius: 20px; }
html.harmony-phone .content .summary-card p { font-size: 14px; line-height: 20px; color: var(--phone-secondary); }
html.harmony-phone .content .summary-card strong { display: inline-block; margin-top: 6px; font: 700 30px/40px 'HarmonyOS Sans', 'HarmonyHeiTi', system-ui, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
html.harmony-phone .content .summary-card .summary-note { font-size: 12px; }
html.harmony-phone .content .completion-card { background: var(--phone-surface); }
html.harmony-phone .content .completion-card small { font-size: 12px; line-height: 1.5; }
html.harmony-phone :is(.list-controls, .phone-filter-actions) { justify-content: flex-end; margin: 0 0 12px; padding: 0; border: 0; }
html.harmony-phone .phone-list-panel > .tabs { border: 0; margin: 0 0 12px; padding: 10px 0; gap: 8px; min-height: 56px; background: transparent; border-radius: 0; }
html.harmony-phone .phone-list-panel > .tabs .tab { flex: 0 0 auto; padding: 8px 16px; min-width: 0; min-height: 36px; height: 36px; border-radius: 18px; font-size: 14px; color: var(--phone-primary); line-height: 20px; font-weight: 500; background: var(--phone-control); }
html.harmony-phone .phone-list-panel > .tabs .tab.active { background: var(--brand); color: white; box-shadow: none; }
html.harmony-phone .phone-list-panel > .tabs .tab.active::after { display: none; }
html.harmony-phone .harmony-filter-toggle.btn { min-height: 40px; margin-left: 0; padding: 8px 16px; background: var(--phone-control); border: 0; border-radius: 20px; font-size: 16px; gap: 6px; height: 40px; line-height: 22px; font-weight: 500; color: var(--brand); }
html.harmony-phone .harmony-list-footer { padding: 16px 8px; min-height: 64px; gap: 12px; }
html.harmony-phone .harmony-list-status { font-size: 14px; line-height: 20px; }
html.harmony-phone :is(.member-list-note, .device-list-note) { justify-content: center; padding: 8px 0 0; color: var(--phone-secondary); font-size: 12px; line-height: 1.7; text-align: center; }

/* Filters use the original forms inside a bottom sheet; keyboard scrolling stays within it. */
html.harmony-phone body.phone-filter-open { overflow: hidden; }
html.harmony-phone .phone-filter-scrim { position: fixed; inset: 0; z-index: 40; min-height: 0; border-radius: 0; background: #0003; backdrop-filter: none; }
html.harmony-phone :is(#alert-filter, #member-filter, #device-filter).phone-filter-sheet:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 16px 12px; max-width: 100%; max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px))); padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); margin: 0; border: 0; border-radius: var(--phone-sheet-radius) var(--phone-sheet-radius) 0 0; background: white; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; }
html.harmony-phone .phone-filter-sheet-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; min-height: 56px; }
html.harmony-phone .phone-sheet-handle { grid-column: 1 / -1; justify-self: center; width: 48px; height: 4px; margin: 0 0 -8px; border-radius: 2px; background: rgba(0, 0, 0, .2); }
html.harmony-phone .phone-filter-sheet-head h2 { font-size: 20px; font-weight: 700; line-height: 26px; }
html.harmony-phone [data-phone-filter-close] { display: grid; place-items: center; min-width: 40px; width: 40px; height: 40px; padding: 0; border-radius: 20px; background: var(--phone-control); color: var(--phone-primary); }
html.harmony-phone [data-phone-filter-close] .icon { width: 18px; height: 18px; }
html.harmony-phone .phone-filter-sheet > :is(.search-field, .field, .date-range, .form-error) { grid-column: 1 / -1; width: 100%; min-width: 0; max-width: none; }
html.harmony-phone .phone-filter-sheet > .form-group { grid-column: 1 / -1; width: 100%; margin: 0; min-width: 0; }
html.harmony-phone .phone-filter-sheet .date-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html.harmony-phone #alert-filter.phone-filter-sheet > .date-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.harmony-phone .phone-filter-sheet .date-range-field { min-width: 0; display: grid; gap: 7px; }
html.harmony-phone .phone-filter-sheet .date-range-label { font-size: 14px; color: var(--phone-secondary); line-height: 20px; }
html.harmony-phone .phone-filter-sheet .date-range-separator { display: none; }
html.harmony-phone .phone-filter-sheet > .btn { margin-top: 4px; width: 100%; }
html.harmony-phone .phone-filter-sheet > .btn[type="submit"] { grid-column: 2; grid-row: auto; order: 2; }
html.harmony-phone .phone-filter-sheet > .btn[data-action^="reset-"] { grid-column: 1; grid-row: auto; order: 1; }
html.harmony-phone :is(.input, .field, .search-field, .number-input) { max-width: 100%; border: 0; border-radius: 20px; background: var(--phone-control); }
html.harmony-phone :is(.input, .field, .search-field input) { min-height: 40px; font-size: 16px; color: var(--ink); line-height: 22px; padding: 8px 16px; }
html.harmony-phone .input:not([readonly]):not(:disabled) { height: 40px; min-height: 40px; border-radius: 20px; background: var(--phone-control); color: var(--phone-primary); font-size: 16px; line-height: 22px; padding: 8px 16px; }
html.harmony-phone .search-field { padding: 0 16px; width: 100%; gap: 8px; }
html.harmony-phone .search-field input { padding: 8px 0; background: transparent; border: 0; border-radius: 0; width: 100%; }
html.harmony-phone :is(.input, .field):focus { border-color: var(--brand); box-shadow: none; }
html.harmony-phone .form-group > label { font-size: 14px; color: var(--phone-secondary); margin: 0; line-height: 20px; }
html.harmony-phone .form-group > small { font-size: 12px; color: var(--phone-secondary); margin-top: 0; }
html.harmony-phone .form-error { font-size: 14px; line-height: 20px; }

/* System settings: account card, grouped rows and separate detail screens. */
html.harmony-phone .phone-account-entry { min-height: 64px; padding: 10px 12px; margin-bottom: 16px; gap: 12px; border: 0; border-radius: 20px; }
html.harmony-phone .phone-account-entry strong { font-size: 16px; font-weight: 500; line-height: 22px; }
html.harmony-phone .phone-account-entry small { font-size: 14px; margin-top: 2px; color: var(--phone-secondary); line-height: 20px; }
html.harmony-phone :is(.phone-account-chevron, .phone-setting-chevron) { color: var(--phone-secondary); font-size: 24px; }
html.harmony-phone :is(.phone-account-chevron, .phone-setting-chevron) > .phone-library-icon { width: 12px; height: 24px; }
html.harmony-phone .settings-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
html.harmony-phone .settings-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; border-radius: 20px; background: white; }
html.harmony-phone .settings-nav :is(button, .settings-release-link),
html.harmony-phone .settings-nav :is(button, .settings-release-link).active { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; width: 100%; min-width: 0; padding: 10px 12px; border: 0; border-radius: 0; background: white; color: var(--ink); white-space: normal; }
html.harmony-phone .settings-nav > :not(:last-child)::after { content: ''; position: absolute; left: 48px; right: 12px; bottom: 0; height: 1px; background: var(--phone-divider); }
html.harmony-phone .settings-nav :is(button, .settings-release-link) > .icon { width: 24px; height: 24px; padding: 0; border-radius: 0; background: transparent; color: var(--phone-primary); flex: 0 0 24px; }
html.harmony-phone .phone-setting-text strong { font-size: 16px; font-weight: 500; line-height: 22px; }
html.harmony-phone .phone-setting-text small { font-size: 14px; line-height: 20px; margin-top: 2px; color: var(--phone-secondary); }
html.harmony-phone .phone-settings-detail-head { display: flex; align-items: center; gap: 0; margin: 0 0 16px -8px; min-height: 56px; }
html.harmony-phone .phone-settings-detail-head button { min-width: 40px; min-height: 40px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--phone-primary); font-size: 0; width: 40px; height: 40px; }
html.harmony-phone .phone-settings-detail-head button .icon { width: 24px; height: 24px; }
html.harmony-phone .phone-settings-detail-head h1 { font-size: 20px; font-weight: 700; min-height: 56px; line-height: 26px; }
html.harmony-phone .settings-content { padding: 4px 12px 16px; }
html.harmony-phone .settings-intro { margin-bottom: 16px; font-size: 14px; line-height: 20px; }
html.harmony-phone .setting-group-title { font-size: 14px; color: var(--phone-secondary); margin: 22px 0 8px; }
html.harmony-phone .rule-row { min-height: 64px; padding: 10px 0; gap: 12px; border-color: var(--phone-divider); }
html.harmony-phone .rule-title :is(h3, strong) { font-size: 16px; font-weight: 500; line-height: 22px; }
html.harmony-phone .rule-title p { max-width: none; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--phone-secondary); }
html.harmony-phone .rule-row > .toggle-label { max-width: none; min-width: 52px; }
html.harmony-phone .rule-row:has(> .toggle-label) { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
html.harmony-phone .settings-footer { margin-top: 18px; padding: 16px 0 0; font-size: 13px; }
html.harmony-phone .settings-footer > .btn { width: 100%; }
html.harmony-phone .harmony-settings-notice { padding: 12px; margin: 0 12px 16px; border: 0; border-radius: 16px; background: var(--theme-soft); font-size: 14px; line-height: 20px; }
html.harmony-phone .theme-picker > :is(legend, p) { font-size: 13px; line-height: 1.7; }
html.harmony-phone .harmony-theme-form .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html.harmony-phone .harmony-theme-form .theme-card { padding: 12px 12px 14px; border-radius: 20px; }
html.harmony-phone .harmony-theme-form .theme-mini-preview { height: 64px; border-radius: 10px; margin-bottom: 12px; }
html.harmony-phone .theme-mini-sidebar { display: none; }
html.harmony-phone .theme-mini-header { left: 0; height: 13px; }
html.harmony-phone .theme-mini-button { top: 22px; right: 8%; height: 7px; border-radius: 4px; }
html.harmony-phone .theme-mini-panel { left: 8%; right: 8%; height: 18px; bottom: 7px; border-top: 0; border-radius: 7px; }
html.harmony-phone .harmony-theme-form .theme-name { padding-left: 24px; font-size: 14px; line-height: 20px; }
html.harmony-phone .theme-option input { left: 11px; bottom: 15px; }
html.harmony-phone .account-theme-status { margin-top: 14px; font-size: 14px; line-height: 20px; }

/* Analytics keeps full chart detail; horizontal scroll is contained within chart/table panels. */
html.harmony-phone .an-view { gap: 16px; }
html.harmony-phone .an-section-tabs { gap: 8px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; min-height: 56px; }
html.harmony-phone .an-section-tabs button { flex: 0 0 auto; min-height: 36px; padding: 8px 16px; border-radius: 18px; font-size: 14px; height: 36px; line-height: 20px; background: var(--phone-control); color: var(--phone-primary); }
html.harmony-phone .an-section-tabs button.active { color: white; background: var(--brand); }
html.harmony-phone .an-section-tabs button.active::after { display: none; }
html.harmony-phone .an-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 12px; }
html.harmony-phone .an-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 2px; gap: 0; border-radius: 20px; background: var(--phone-control); width: 100%; min-height: 40px; }
html.harmony-phone .an-periods button { min-height: 36px; min-width: 0; padding: 8px; border-radius: 18px; font-size: 14px; height: 36px; line-height: 20px; color: var(--phone-secondary); }
html.harmony-phone .an-periods button.active { background: white; color: var(--phone-primary); }
html.harmony-phone .an-filter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; width: 100%; min-width: 0; gap: 12px; }
html.harmony-phone .an-filter-form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; width: 100%; min-width: 0; font-size: 14px; line-height: 20px; }
html.harmony-phone .an-filter-form input { width: 100%; min-width: 0; height: 40px; padding: 8px 16px; border: 0; border-radius: 20px; background: var(--phone-control); font-size: 16px; min-height: 40px; line-height: 22px; }
html.harmony-phone .an-filter-form .an-query { min-width: 72px; height: 40px; min-height: 40px; padding: 8px 16px; border-radius: 20px; font-size: 16px; align-self: end; line-height: 22px; }
html.harmony-phone .an-period-nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.harmony-phone .an-period-nav button { width: 100%; min-width: 0; min-height: 40px; padding: 8px 6px; border-color: var(--phone-divider); border-radius: 20px; font-size: 14px; border: 0; line-height: 20px; background: var(--phone-control); }
html.harmony-phone .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html.harmony-phone .an-kpi { padding: 16px; min-height: 120px; }
html.harmony-phone .an-kpi-label { font-size: 14px; line-height: 20px; }
html.harmony-phone .an-kpi-value { margin: 6px 0; color: var(--ink); font: 700 30px/40px 'HarmonyOS Sans', 'HarmonyHeiTi', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
html.harmony-phone .an-kpi-value small { font-size: 12px; }
html.harmony-phone .an-kpi p { font-size: 12px; line-height: 16px; }
html.harmony-phone :is(.an-panel-heading p, .an-chart-legend span, .an-range p, .an-range span, .an-notes li) { font-size: 12px; line-height: 1.7; }
html.harmony-phone .an-range strong { font-size: 14px; }
html.harmony-phone .an-panel-heading h2 { margin-bottom: 5px; }
html.harmony-phone :is(.an-distributions, .an-health-grid) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
html.harmony-phone .an-health-heading h2 { font-size: 16px; line-height: 22px; font-weight: 500; }
html.harmony-phone .an-health-heading p { font-size: 14px; line-height: 20px; }
html.harmony-phone .an-chart-legend { padding: 0 16px; justify-content: flex-start; gap: 8px 12px; }
html.harmony-phone :is(.trend-chart, .history-chart, .daily-steps-chart, .an-chart) { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
html.harmony-phone .home-trends .trend-chart svg { min-width: 100%; width: 100%; height: auto; aspect-ratio: 800 / 190; max-height: none; }
/* Home alone uses an 800-unit viewBox; its text must scale to a readable phone size. */
html.harmony-phone .home-trends .trend-chart svg .chart-label { font-size: 26px; }
html.harmony-phone .home-trends .trend-chart svg .chart-label[text-anchor="end"]:not(.phone-chart-tick) { font-size: 24px; letter-spacing: -.7px; }
html.harmony-phone .trend-chart svg { min-width: 420px; height: 210px; }
html.harmony-phone .history-chart svg { min-width: 440px; height: 220px; }
html.harmony-phone :is(.daily-steps-chart, .an-chart) svg { min-width: 460px; min-height: 190px; max-height: none; }
html.harmony-phone .an-chart { padding: 8px 8px 0; }
html.harmony-phone :is(.an-data-details summary, .an-risk-details summary) { min-height: 48px; display: block; padding: 12px; font-size: 14px; background: var(--phone-control); line-height: 20px; }
html.harmony-phone .an-table-scroll { max-width: 100%; overflow: auto; }
html.harmony-phone .an-table-scroll :is(th, td) { padding: 12px 14px; font-size: 13px; }
html.harmony-phone .an-bars { padding: 4px 16px 20px; gap: 16px; }
html.harmony-phone .an-bar-label { font-size: 13px; }
html.harmony-phone .an-bar-item strong { font-size: 16px; }
html.harmony-phone .an-notes { border: 0; border-radius: 20px; background: var(--phone-control); padding: 16px 12px; }
html.harmony-phone .an-notes h2 { font-size: 14px; margin-bottom: 8px; }
html.harmony-phone .an-risk-members { padding: 0 14px 16px; }
html.harmony-phone .an-risk-member { border-radius: 16px; border-color: #f4dfe3; }
html.harmony-phone .an-risk-member-head { padding: 12px; }
html.harmony-phone .an-risk-member-head h3 { font-size: 16px; }
html.harmony-phone :is(.an-risk-member-head p, .an-risk-context, .an-risk-vitals, .an-risk-evidence, .an-risk-summary-text) { font-size: 14px; line-height: 20px; }
html.harmony-phone .an-risk-summary-item > div, html.harmony-phone .an-risk-summary-item strong { font-size: 13px; }
html.harmony-phone .an-risk-types > span { font-size: 12px; border-radius: 7px; }

/* Existing detail dialogs become comfortable phone sheets, with a fixed accessible close control. */
html.harmony-phone .overlay { padding: max(16px, env(safe-area-inset-top, 0px)) 0 0; align-items: flex-end; background: #0003; backdrop-filter: none; }
html.harmony-phone :is(.modal, .modal.wide, .modal.device-modal) { width: 100%; max-width: 100%; max-height: calc(100dvh - max(16px, env(safe-area-inset-top, 0px))); margin: 0; border-radius: var(--phone-sheet-radius) var(--phone-sheet-radius) 0 0; box-shadow: none; }
html.harmony-phone .modal-head { padding: 8px 16px; gap: 12px; border-bottom: 1px solid var(--phone-divider); min-height: 56px; }
html.harmony-phone .modal-head > :first-child:not(.modal-close) { padding-top: 0; min-width: 0; }
html.harmony-phone .modal-head h2 { font-size: 20px; line-height: 26px; font-weight: 700; }
html.harmony-phone .modal-head .modal-close { min-width: 40px; width: 40px; min-height: 40px; height: 40px; flex-basis: 40px; border: 0; border-radius: 20px; background: var(--phone-control); color: var(--phone-primary); }
html.harmony-phone .modal-head .modal-close > .icon { width: 18px; height: 18px; }
html.harmony-phone .modal-body { min-width: 0; padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--phone-canvas); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.harmony-phone .modal-footer { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; border-top-color: var(--phone-divider); }
html.harmony-phone .modal-footer > .btn { flex: 1 1 auto; }
html.harmony-phone .device-identity { padding: 16px 12px; margin: 0 0 16px; border-radius: 20px; background: white; gap: 12px; align-items: center; }
html.harmony-phone .device-identity-icon { width: 40px; height: 40px; border-radius: 20px; color: var(--brand); background: var(--theme-soft); }
html.harmony-phone .device-identity > div { flex: 1 1 160px; min-width: 0; }
html.harmony-phone .device-identity strong { font-size: 16px; line-height: 22px; font-weight: 500; }
html.harmony-phone .device-identity p { font-size: 14px; line-height: 20px; }
html.harmony-phone .device-identity .badge { font-size: 12px; }
html.harmony-phone .detail-section-head { margin: 16px 0 12px; gap: 10px; align-items: center; }
html.harmony-phone .detail-section-head h3 { font-size: 16px; font-weight: 500; }
html.harmony-phone .modal .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 16px; padding: 16px 12px; gap: 16px 12px; border-radius: 20px; background: white; }
html.harmony-phone .detail-grid > div { min-width: 0; }
html.harmony-phone .detail-grid dt { margin-bottom: 5px; color: var(--phone-secondary); font-size: 14px; line-height: 20px; }
html.harmony-phone .detail-grid dd { color: var(--ink); font-size: 16px; line-height: 22px; overflow-wrap: anywhere; word-break: normal; }
html.harmony-phone :is(.detail-columns, .location-overview, .history-position, .snapshot-context) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
html.harmony-phone .detail-columns > div + div { border-left: 0; padding-left: 0; }
html.harmony-phone .detail-tabs { margin: 0 -16px 18px; padding: 4px 16px; max-width: calc(100% + 32px); gap: 14px; border-color: #e3e6ec; }
html.harmony-phone .detail-tabs .tab { min-height: 48px; height: 48px; min-width: 0; padding: 12px 0; font-size: 16px; line-height: 22px; }
html.harmony-phone .device-modal .history-query, html.harmony-phone .history-query { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; padding: 16px 12px; margin-bottom: 14px; border-radius: 20px; background: white; }
html.harmony-phone .device-modal .history-query .form-group, html.harmony-phone .history-query .form-group { min-width: 0; max-width: none; width: 100%; margin: 0; gap: 7px; }
html.harmony-phone .device-modal .history-query :is(.input, .btn), html.harmony-phone .history-query :is(.input, .btn) { width: 100%; height: 40px; min-height: 40px; font-size: 14px; line-height: 20px; }
html.harmony-phone .history-query .input { font-size: 14px; padding: 8px; }
html.harmony-phone .history-query .form-error { grid-column: 1 / -1; }
html.harmony-phone .modal .form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
html.harmony-phone .modal .form-grid .form-group { margin: 0; }
html.harmony-phone .modal .form-grid .full { grid-column: 1; }
html.harmony-phone .form-actions { margin-top: 18px; gap: 10px; }
html.harmony-phone .form-actions > .btn { flex: 1 1 auto; }
html.harmony-phone .table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
html.harmony-phone .modal .table-wrap { border-radius: 16px; background: white; }
html.harmony-phone .modal :is(th, td) { font-size: 13px; padding: 12px 14px; }
html.harmony-phone :is(.detail-callout, .readonly-note, .info-banner, .evidence, .history-chart, .daily-steps-panel, .alert-snapshot) { padding: 16px 12px; border: 0; border-radius: 20px; font-size: 14px; line-height: 20px; }
html.harmony-phone .detail-callout { gap: 12px; }
html.harmony-phone .detail-callout h3 { font-size: 16px; }
html.harmony-phone .detail-callout p { font-size: 14px; line-height: 20px; }
html.harmony-phone .timeline li { font-size: 14px; line-height: 20px; }
html.harmony-phone .timeline :is(p, time) { font-size: 12px; line-height: 1.75; }
html.harmony-phone .snapshot-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
html.harmony-phone .snapshot-metric { border: 0; border-radius: 16px; padding: 12px; }
html.harmony-phone .snapshot-metric label { font-size: 14px; min-height: 0; margin-bottom: 8px; line-height: 20px; }
html.harmony-phone .snapshot-metric strong { font-size: 30px; line-height: 40px; }
html.harmony-phone .snapshot-metric small { font-size: 12px; line-height: 1.6; }
html.harmony-phone .snapshot-context section { border-radius: 16px; padding: 14px; }
html.harmony-phone .snapshot-context :is(h4, dt, dd) { font-size: 14px; line-height: 20px; }
html.harmony-phone .snapshot-rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.harmony-phone :is(.snapshot-rules summary, .steps-table-details summary) { min-height: 44px; padding: 12px 0; font-size: 14px; }
html.harmony-phone .steps-overview { padding: 16px; margin: 18px 0; border: 0; border-radius: 20px; gap: 12px; }
html.harmony-phone .steps-overview strong { font-size: 27px; }
html.harmony-phone .steps-overview-meta { min-width: 0; width: 100%; font-size: 12px; }
html.harmony-phone .daily-steps-heading h3 { font-size: 16px; }
html.harmony-phone .steps-range-summary { gap: 10px; font-size: 13px; }
html.harmony-phone .steps-range-summary strong { font-size: 21px; }
html.harmony-phone :is(.geo-map, .location-map) { min-width: 0; max-width: 100%; border-radius: 16px; }
html.harmony-phone :is(.lm-fit, .lm-retry, .lm-zoom button) { min-width: 44px; min-height: 44px; }

/* Help and About share the same phone type scale and card surfaces. */
html.harmony-phone .help-page-head { display: block; }
html.harmony-phone .help-eyebrow { display: none; }
html.harmony-phone .help-head-actions { margin-top: 12px; gap: 10px; }
html.harmony-phone .help-latest-update { min-height: 40px; border-radius: 20px; font-size: 14px; line-height: 20px; }
html.harmony-phone .help-role { font-size: 12px; }
html.harmony-phone .help-search-panel { padding: 16px 12px; background: white; scroll-margin-top: 20px; }
html.harmony-phone .help-search-panel label { font-size: 16px; margin-bottom: 12px; }
html.harmony-phone .help-search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html.harmony-phone .help-search-row input { grid-column: 1 / -1; width: 100%; min-height: 40px; border-color: #e5e7eb; border-radius: 20px; background: var(--phone-control); font-size: 16px; border: 0; padding: 8px 16px; }
html.harmony-phone .help-search-row button { min-height: 40px; border-radius: 20px; font-size: 16px; padding: 8px 12px; }
html.harmony-phone .help-search-result { margin-top: 12px; font-size: 14px; line-height: 20px; }
html.harmony-phone .help-quick-grid { margin: 16px 0; gap: 16px; grid-template-columns: minmax(0, 1fr); }
html.harmony-phone .help-quick { min-height: 64px; padding: 10px 12px; gap: 12px; border: 0; border-radius: 20px; }
html.harmony-phone .help-quick-number { width: 24px; height: 24px; border-radius: 12px; font-size: 12px; }
html.harmony-phone .help-quick > span:nth-child(2) { display: block; }
html.harmony-phone .help-quick strong { font-size: 16px; line-height: 22px; font-weight: 500; }
html.harmony-phone .help-quick small { margin-top: 2px; font-size: 14px; line-height: 20px; }
html.harmony-phone .help-directory { padding: 16px 12px; margin-bottom: 16px; position: static; max-height: none; }
html.harmony-phone .help-directory h2 { padding: 0; font-size: 16px; margin-bottom: 10px; line-height: 22px; font-weight: 500; }
html.harmony-phone .help-directory nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; }
html.harmony-phone .help-directory nav button { padding: 12px 6px; min-height: 48px; font-size: 14px; border-radius: 0; line-height: 20px; }
html.harmony-phone .help-layout { display: block; margin-top: 18px; }
html.harmony-phone .help-sections { gap: 16px; }
html.harmony-phone .help-section { scroll-margin-top: 20px; }
html.harmony-phone .help-section > header { padding: 16px 12px 12px; background: white; border-color: var(--phone-divider); }
html.harmony-phone .help-section > header h2 { font-size: 20px; line-height: 26px; }
html.harmony-phone .help-section > header p { font-size: 14px; line-height: 20px; }
html.harmony-phone .help-section-content { padding: 16px 12px; color: var(--phone-primary); font-size: 14px; line-height: 1.6; }
html.harmony-phone .help-section-content h3 { font-size: 16px; margin: 20px 0 10px; line-height: 22px; }
html.harmony-phone .help-note { padding: 14px; border-left: 0; border-radius: 16px; }
html.harmony-phone .help-note :is(strong, p) { font-size: 14px; line-height: 20px; }
html.harmony-phone .help-entry { min-height: 44px; font-size: 14px; }
html.harmony-phone .help-faq summary { min-height: 48px; font-size: 14px; padding: 14px 0; }
html.harmony-phone .help-faq p { font-size: 14px; line-height: 20px; padding-left: 12px; }
html.harmony-phone .help-table-wrap { max-width: 100%; border-radius: 14px; }
html.harmony-phone .help-table :is(th, td) { font-size: 13px; padding: 12px; }
html.harmony-phone .help-back { min-height: 44px; font-size: 13px; margin: 0 16px 10px; }
html.harmony-phone .phone-about-hero { padding: 16px 0 25px; gap: 13px; }
html.harmony-phone .phone-about-icon { width: 80px; height: 80px; border-radius: 22px; }
html.harmony-phone .phone-about-hero h1 { font-size: 26px; }
html.harmony-phone .phone-about-version { border: 0; background: white; min-height: 40px; font-size: 14px; border-radius: 20px; line-height: 20px; }
html.harmony-phone .phone-history-title { margin: 0 0 15px; font-size: 18px; }
html.harmony-phone .release-components { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html.harmony-phone .release-component { border: 0; border-radius: 20px; padding: 16px 12px; gap: 9px; }
html.harmony-phone .release-component.is-active { box-shadow: inset 0 0 0 1.5px var(--brand); }
html.harmony-phone .release-component-name { font-size: 13px; }
html.harmony-phone .release-component > strong { font-size: 22px; }
html.harmony-phone .release-component-caption { font-size: 12px; }
html.harmony-phone .release-toolbar { gap: 12px; margin: 18px 0 12px; }
html.harmony-phone .release-filter-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 0; border-radius: 20px; }
html.harmony-phone .release-filter-options button { min-width: 0; min-height: 40px; padding: 8px; font-size: 14px; border-radius: 20px; line-height: 20px; }
html.harmony-phone :is(.release-result-count, .release-scope-note) { font-size: 14px; line-height: 20px; }
html.harmony-phone .release-timeline { padding-left: 0; }
html.harmony-phone .release-item { padding: 0 0 12px; border: 0; }
html.harmony-phone .release-marker { display: none; }
html.harmony-phone .release-item article { border: 0; border-radius: 20px; }
html.harmony-phone .release-item.is-current article { box-shadow: inset 0 0 0 1px var(--theme-border); }
html.harmony-phone .release-details > summary { padding: 16px 12px; min-height: 64px; gap: 12px; }
html.harmony-phone .release-item-heading { display: block; }
html.harmony-phone .release-item h2 { font-size: 16px; line-height: 1.6; margin-top: 5px; }
html.harmony-phone .release-date { display: flex; text-align: left; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
html.harmony-phone :is(.release-stage, .release-date strong, .release-date time, .release-source) { font-size: 12px; }
html.harmony-phone .release-details > ul { padding: 16px 20px 16px 28px; font-size: 14px; line-height: 1.6; }

/* Login, loading, empty and failure states are first-class phone screens. */
html.harmony-phone .login-screen { min-height: 100dvh; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 16px; padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px)); background: var(--phone-canvas); }
html.harmony-phone .login-screen .login-story { display: block; min-height: 0; width: 100%; padding: 0; }
html.harmony-phone .login-screen .login-story .brand { width: 136px; height: 72px; margin: 0 auto; padding: 4px; border-radius: 18px; }
html.harmony-phone .login-screen .login-story .brand-wordmark { width: 128px; height: 64px; object-fit: contain; object-position: center; }
html.harmony-phone .login-screen .login-side { display: block; min-height: 0; width: 100%; max-width: 440px; padding: 0; overflow: visible; }
html.harmony-phone .login-card { width: 100%; padding: 20px 16px; border-radius: 20px; background: white; }
html.harmony-phone .login-card h2 { font-size: 26px; line-height: 32px; margin: 4px 0 12px; }
html.harmony-phone .login-card > p { margin-bottom: 24px; font-size: 14px; line-height: 20px; color: var(--phone-secondary); }
html.harmony-phone .login-card .form-group { gap: 8px; margin-bottom: 18px; }
html.harmony-phone .login-card .form-group label { margin-bottom: 0; font-size: 14px; }
html.harmony-phone .login-card .input { height: 40px; padding: 8px 16px; font-size: 16px; background: var(--phone-control); }
html.harmony-phone .login-submit { height: 40px; min-height: 40px; margin-top: 8px; font-size: 16px; letter-spacing: 0; line-height: 22px; }
html.harmony-phone .login-footnote { margin-top: 22px; font-size: 12px; line-height: 1.75; color: var(--phone-secondary); }
html.harmony-phone .face-login-card { padding: 22px 18px; border-radius: 20px; background: white; max-width: 100%; }
html.harmony-phone .face-login-card :is(h1, h2) { font-size: 24px; }
html.harmony-phone :is(.face-capture, .face-preview, .face-video) { min-width: 0; max-width: 100%; }
html.harmony-phone .boot-state { min-height: 100dvh; padding: 24px; background: var(--phone-canvas); }
html.harmony-phone .loading-state { padding: 45px 18px; font-size: 14px; }
html.harmony-phone :is(.request-error, .empty-state, .notice-empty, .an-empty, .help-no-results) { padding: 32px 16px; border: 0; border-radius: 20px; background: white; color: var(--phone-secondary); font-size: 14px; line-height: 20px; }
html.harmony-phone :is(.request-error strong, .empty-state h3, .help-no-results h2) { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 22px; }
html.harmony-phone :is(.request-error p, .empty-state p, .an-empty p, .help-no-results p) { font-size: 14px; line-height: 20px; }
html.harmony-phone .request-error .btn { margin-top: 4px; min-width: 112px; }
html.harmony-phone :is(.connection-warning, .live-alert, .audio-availability) { padding: 12px 16px; font-size: 14px; line-height: 20px; }
html.harmony-phone .harmony-network { bottom: calc(var(--phone-bottom) + 12px); width: calc(100% - 24px); max-width: 480px; padding: 12px 16px; border-radius: 20px; font-size: 14px; line-height: 20px; }

@media (max-width: 359px) {
  html.harmony-phone .content { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  html.harmony-phone .home-kpis .kpi { padding: 12px; }
  html.harmony-phone .home-kpis .kpi-value { font-size: 32px; line-height: 40px; }
  html.harmony-phone .vital-metric { padding-left: 6px; padding-right: 6px; }
  html.harmony-phone .vital-metric strong { font-size: 21px; }
  html.harmony-phone .vital-metric .metric-label .icon { display: none; }
  html.harmony-phone .phone-list-panel > .tabs .tab { padding-left: 12px; padding-right: 12px; }
  html.harmony-phone .phone-card-table > tbody > tr { padding-left: 12px; padding-right: 12px; column-gap: 12px; }
  html.harmony-phone .phone-card-table [data-phone-member] > td:nth-child(6), html.harmony-phone .phone-card-table [data-phone-alert] > td:nth-child(5) { right: 12px; }
  html.harmony-phone .login-screen { padding-left: 16px; padding-right: 16px; }
}
@media (max-height: 520px) {
  html.harmony-phone .login-screen { align-content: start; padding-top: 20px; }
  html.harmony-phone .phone-filter-sheet:not([hidden]) { max-height: calc(100dvh - 12px); }
  html.harmony-phone :is(.modal, .modal.device-modal) { max-height: calc(100dvh - 12px); }
}
@media (hover: none) {
  html.harmony-phone :is(.btn, .kpi, .zone-card, .phone-more-panel a, .phone-more-panel button):hover { filter: none; box-shadow: none; }
  html.harmony-phone .btn:not(.primary):not(.danger):hover { background: white; }
  html.harmony-phone .btn.primary:hover { background: var(--brand); }
  html.harmony-phone .home-kpis .kpi:hover { border-color: transparent; }
  html.harmony-phone .phone-card-table > tbody > tr:hover { background: white; }
  html.harmony-phone .phone-interactive-row:active { background: var(--theme-soft); }
}
@media (prefers-reduced-motion: reduce) {
  html.harmony-phone *, html.harmony-phone *::before, html.harmony-phone *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Phone information interaction: retain live nodes, API actions and per-account accents. */
html.harmony-phone .phone-more-panel.has-interaction { grid-template-columns: repeat(5, minmax(0, 1fr)); }
html.harmony-phone .phone-more-panel.has-interaction > :is(a, button) { padding-left: 2px; padding-right: 2px; min-width: 0; font-size: 12px; white-space: nowrap; }

/* The interaction shell reuses settings primitives, but is not a settings detail page. */
html.harmony-phone[data-phone-route="interaction"] #message-dispatch-root { min-width: 0; max-width: 100%; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-layout > .dispatch-panel.settings-panel { display: block; width: 100%; min-width: 0; max-width: 100%; border: 0; border-radius: 20px; background: var(--phone-surface, #fff); }
html.harmony-phone[data-phone-route="interaction"] .dispatch-layout > .settings-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; padding: 0; margin: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-layout > .settings-nav > button { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 20px; background: var(--phone-control, #0000000d); color: var(--phone-primary, #191919); font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-layout > .settings-nav > button::after { display: none; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-layout > .settings-nav > button > .icon { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; background: transparent; border-radius: 0; color: inherit; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-layout > .settings-nav > button.active { background: var(--brand); color: #fff; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-layout > .settings-nav .feedback-unread-badge { min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; line-height: 17px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-panel > .panel-head { min-width: 0; padding: 16px 12px 12px; gap: 8px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-panel > .panel-head h2 { font-size: 16px; line-height: 22px; font-weight: 500; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-panel > .settings-content { min-width: 0; max-width: 100%; padding: 0 12px 16px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-panel > .settings-content[hidden] { display: none; }

/* A draft stays in its original form while the user selects the recipient scope. */
html.harmony-phone[data-phone-route="interaction"] .dispatch-compose { min-width: 0; padding-bottom: 20px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-intro { padding: 0 0 16px; gap: 0; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-intro-icon { display: none; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-intro h3 { margin: 0 0 6px; font-size: 16px; line-height: 22px; font-weight: 500; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-intro p { margin: 0; color: var(--phone-secondary); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-label-row { min-width: 0; gap: 8px; margin-bottom: 8px; align-items: baseline; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-label-row label { font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-label-row > span { flex: 0 0 auto; font-size: 12px; line-height: 16px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-message.dispatch-message,
html.harmony-phone[data-phone-route="interaction"] #feedback-reply-text.dispatch-message { width: 100%; min-width: 0; max-width: 100%; min-height: 112px; height: auto; padding: 12px 16px; resize: vertical; border-radius: 20px; font-size: 16px; line-height: 24px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-message.input:not([readonly]):not(:disabled),
html.harmony-phone[data-phone-route="interaction"] #feedback-reply-text.input:not([readonly]):not(:disabled) { width: 100%; min-width: 0; max-width: 100%; min-height: 112px; height: auto; padding: 12px 16px; resize: vertical; border: 0; border-radius: 20px; background: var(--phone-control, #0000000d); color: var(--ink); font-size: 16px; line-height: 24px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0 16px; padding: 0; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-mode legend { margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-mode label { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: 20px; background: var(--phone-control, #0000000d); font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-mode label:has(input:checked) { color: var(--brand); border-color: var(--theme-border); background: var(--theme-soft); }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-mode input[type="radio"] { flex: 0 0 18px; width: 18px; height: 18px; min-width: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--brand); }
html.harmony-phone[data-phone-route="interaction"] #dispatch-target-picker { min-width: 0; max-width: 100%; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-target-picker .form-group { width: 100%; min-width: 0; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-device.input { width: 100%; min-width: 0; max-width: 100%; height: 40px; min-height: 40px; border-radius: 20px; font-size: 16px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-list { grid-template-columns: minmax(0, 1fr); gap: 4px; max-height: 264px; padding: 8px 12px; border: 0; border-radius: 20px; background: var(--phone-control, #0000000d); overscroll-behavior: contain; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-list legend { padding: 0 0 4px; font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-list label { min-width: 0; min-height: 44px; gap: 12px; padding: 4px 0; font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-list label > span { min-width: 0; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-target-list small { margin-top: 3px; font-size: 12px; line-height: 16px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-all-target { gap: 10px; padding: 12px; border: 0; border-radius: 20px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-all-target strong { font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-selection,
html.harmony-phone[data-phone-route="interaction"] .dispatch-field-note { margin: 10px 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-compose .form-actions { display: flex; margin-top: 16px; gap: 12px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-preview-button.btn { width: 100%; min-height: 40px; border-radius: 20px; padding: 8px 16px; font-size: 16px; line-height: 22px; }

/* Query records are cards on the phone; retain table nodes and delegated actions. */
html.harmony-phone[data-phone-route="interaction"] .dispatch-history { margin: 0; padding-top: 20px; border-top-color: var(--phone-divider); }
html.harmony-phone[data-phone-route="interaction"] .dispatch-history-heading { padding: 0 0 12px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-history-heading h3 { font-size: 16px; line-height: 22px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-history-tabs { gap: 4px; margin: 0 0 12px; padding: 2px; min-height: 40px; border: 0; border-radius: 20px; background: var(--phone-control, #0000000d); }
html.harmony-phone[data-phone-route="interaction"] .dispatch-history-tabs .tab { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 18px; font-size: 14px; line-height: 20px; color: var(--phone-secondary); }
html.harmony-phone[data-phone-route="interaction"] .dispatch-history-tabs .tab.active { background: #fff; color: var(--ink); }
html.harmony-phone[data-phone-route="interaction"] .dispatch-history-tabs .tab::after { display: none; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-history-results, #feedback-results) { min-width: 0; max-width: 100%; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-history-results, #feedback-results) .table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow: visible; border: 0; border-radius: 0; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) { display: block; width: 100%; max-width: 100%; table-layout: fixed; white-space: normal; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) thead { display: none; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; min-width: 0; padding: 16px 12px; border: 0; border-radius: 20px; background: var(--phone-canvas, #f1f3f5); }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) tbody td { display: block; grid-column: 1; width: auto; min-width: 0; max-width: 100%; padding: 0; border: 0; font-size: 14px; line-height: 20px; white-space: normal; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--phone-secondary); font-size: 12px; line-height: 16px; font-weight: 400; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) td:first-child::before,
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) td:last-child::before { display: none; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) td:first-child strong { font-size: 16px; font-weight: 500; line-height: 22px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-history-content { min-width: 0; max-width: none; font-size: 16px; line-height: 24px; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) .table-sub { max-width: none; margin-top: 4px; font-size: 12px; line-height: 18px; white-space: normal; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-counts { max-width: none; gap: 7px 12px; font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-counts b { font-size: 14px; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) td:last-child { padding-top: 8px; border-top: 1px solid var(--phone-divider); text-align: right; }
html.harmony-phone[data-phone-route="interaction"] .dispatch-history-table td:last-child .inline { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
html.harmony-phone[data-phone-route="interaction"] :is(.dispatch-history-table, .feedback-table) td:last-child .btn { min-height: 40px; padding: 8px 16px; border-radius: 20px; font-size: 16px; line-height: 22px; }
html.harmony-phone[data-phone-route="interaction"] .feedback-table .feedback-transcript-text { min-width: 0; max-width: none; max-height: 120px; margin: 6px 0 0; font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .feedback-table .feedback-transcript-note { font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .feedback-media-summary { font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-history-results, #feedback-results) .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-width: 0; padding: 16px 0 0; font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-history-results, #feedback-results) .pagination > span:first-child { flex: 1 0 100%; text-align: center; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-history-results, #feedback-results) .pagination .spacer { display: none; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-history-results, #feedback-results) .pagination .btn { min-height: 40px; padding: 8px 12px; border-radius: 20px; font-size: 14px; }

/* Existing detail, preview and reply forms keep their stable media elements. */
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail, #dispatch-delete-confirmation, #feedback-detail) { min-width: 0; max-width: 100%; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail, #dispatch-delete-confirmation) .dispatch-message-preview { margin: 12px 0 16px; padding: 16px; border: 0; border-radius: 20px; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-confirmation .dispatch-confirm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; padding: 16px; border-radius: 20px; background: #fff; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-confirmation .dispatch-confirm-facts > div:first-child { grid-column: 1 / -1; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-confirmation .dispatch-confirm-facts dt { font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-confirmation .dispatch-confirm-facts dd { font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-confirmation .dispatch-confirm-facts dd strong { font-size: 24px; line-height: 32px; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail, #dispatch-delete-confirmation) :is(.dispatch-confirm-intro, .dispatch-confirm-note, .dispatch-field-note, .dispatch-warning) { font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table { margin-top: 16px; max-width: 100%; max-height: 360px; overflow-y: auto; overflow-x: hidden; border: 0; border-radius: 20px; background: #fff; overscroll-behavior: contain; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table table { display: block; width: 100%; max-width: 100%; white-space: normal; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table thead { display: none; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table tbody { display: grid; grid-template-columns: minmax(0, 1fr); }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; padding: 16px; border-bottom: 1px solid var(--phone-divider); }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table tr:last-child { border-bottom: 0; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table td { display: block; width: auto; min-width: 0; max-width: 100%; padding: 0; border: 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; white-space: normal; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 12px; line-height: 16px; color: var(--phone-secondary); }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table td:first-child::before { display: none; }
html.harmony-phone[data-phone-route="interaction"] :is(#dispatch-confirmation, #dispatch-delivery-detail) .dispatch-recipient-table .table-sub { margin-top: 3px; font-size: 12px; line-height: 18px; white-space: normal; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-delivery-detail .dispatch-detail-meta { gap: 6px 12px; font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-delivery-detail .dispatch-sent-banner { padding: 12px; border-radius: 20px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-delivery-detail .dispatch-sent-banner strong { font-size: 16px; line-height: 22px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-delivery-detail .dispatch-sent-banner p { font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-delivery-detail .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 16px 0; font-size: 12px; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-delivery-detail .pagination > span:first-child { flex: 1 0 100%; text-align: center; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-delivery-detail .pagination .spacer { display: none; }
html.harmony-phone[data-phone-route="interaction"] #dispatch-delivery-detail .pagination .btn { padding: 8px 12px; font-size: 14px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 16px; padding: 16px; border-radius: 20px; background: #fff; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-facts dt { font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-facts dd { font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail :is(.feedback-media, .feedback-transcript, .feedback-replies) { padding: 16px; margin-top: 12px; border: 0; border-radius: 20px; background: #fff; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail :is(.feedback-media, .feedback-transcript, .feedback-replies) h3 { margin: 0 0 12px; font-size: 16px; line-height: 22px; font-weight: 500; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-media h3 span { font-size: 12px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-media audio { width: 100%; max-width: 100%; height: 48px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-video-frame { --feedback-video-max-height: min(56dvh, 560px); max-width: 100%; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-media video { max-width: 100%; border-radius: 12px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail :is(.feedback-transcript-text, .feedback-transcript-hint, .feedback-transcript-note, .feedback-reply p, .dispatch-field-note) { font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-reply { padding: 12px; border: 0; border-radius: 16px; background: var(--phone-canvas, #f1f3f5); }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-reply .dispatch-detail-meta { gap: 6px 10px; font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail .feedback-replies .form-actions { margin-top: 12px; }
html.harmony-phone[data-phone-route="interaction"] #feedback-detail #feedback-reply-send.btn { width: 100%; min-height: 40px; padding: 8px 16px; border-radius: 20px; font-size: 16px; line-height: 22px; }
html.harmony-phone[data-phone-route="interaction"] .modal:has(#dispatch-confirmation, #dispatch-delete-confirmation) .modal-footer > .btn { flex: 1 1 0; min-width: 0; min-height: 40px; height: auto; padding: 8px 12px; border-radius: 20px; font-size: 16px; line-height: 22px; white-space: normal; }

/* Native phone assistance queue and saved meetings use the same account theme. */
html.harmony-phone[data-phone-route="interaction"] :is(.remote-assistance-content, .assistance-records-content, .assist-summary, .assist-waiting, .assist-history) { width: 100%; max-width: 100%; min-width: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-summary.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 16px; padding: 16px; border: 0; border-radius: 20px; box-shadow: none; }
html.harmony-phone[data-phone-route="interaction"] .assist-summary > div { min-width: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-eyebrow { font-size: 12px; line-height: 18px; letter-spacing: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-summary h2 { margin: 8px 0; font-size: 20px; font-weight: 500; line-height: 28px; }
html.harmony-phone[data-phone-route="interaction"] .assist-summary p { margin: 8px 0 0; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .assist-summary-actions { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; gap: 12px; min-width: 0; margin: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-summary-actions > span { flex: 1 0 100%; width: 100%; text-align: left; font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .assist-summary-actions .btn { flex: 1 1 100px; min-width: 0; max-width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 20px; font-size: 16px; line-height: 22px; white-space: normal; text-align: center; }
html.harmony-phone[data-phone-route="interaction"] .assist-waiting.panel { margin: 0; padding: 16px; border: 0; border-radius: 20px; box-shadow: none; }
html.harmony-phone[data-phone-route="interaction"] .assist-waiting .panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0 0 8px; padding: 0 0 12px; }
html.harmony-phone[data-phone-route="interaction"] .assist-waiting .panel-head h2 { min-width: 0; margin: 0; font-size: 16px; font-weight: 500; line-height: 22px; }
html.harmony-phone[data-phone-route="interaction"] .assist-waiting .panel-head .btn { min-height: 40px; padding: 8px 12px; border-radius: 20px; font-size: 14px; line-height: 20px; }
html.harmony-phone[data-phone-route="interaction"] .assist-waiting .badge { font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .assist-request-list { min-width: 0; padding: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-request { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; padding: 16px 0; border-color: var(--phone-divider); }
html.harmony-phone[data-phone-route="interaction"] .assist-request > div { min-width: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-request-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 14px; background: var(--brand-soft); }
html.harmony-phone[data-phone-route="interaction"] .assist-request strong { font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .assist-request p { margin: 4px 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .assist-request small { font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .assist-request > .btn { grid-column: 2; justify-self: stretch; width: 100%; min-width: 0; min-height: 40px; padding: 8px 12px; border-radius: 20px; font-size: 16px; line-height: 22px; white-space: normal; }
html.harmony-phone[data-phone-route="interaction"] .assist-empty { padding: 28px 12px; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .assist-error { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .assist-error .btn { min-height: 40px; padding: 8px 14px; border-radius: 20px; font-size: 14px; line-height: 20px; }
html.harmony-phone .assist-incoming { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 24px); max-width: 100%; padding: 16px; border-radius: 20px; }
html.harmony-phone .assist-incoming-title { flex-wrap: wrap; gap: 8px; font-size: 16px; line-height: 22px; }
html.harmony-phone .assist-incoming-title a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; line-height: 20px; }
html.harmony-phone .assist-incoming > p { font-size: 12px; line-height: 18px; }

html.harmony-phone[data-phone-route="interaction"] .assistance-records-content .assist-history { border: 0; border-radius: 20px; margin: 0; overflow: hidden; background: #fff; box-shadow: none; }
html.harmony-phone[data-phone-route="interaction"] .assistance-records-content .assist-history-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; min-height: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-history-list { min-width: 0; min-height: 0; max-height: 288px; border-right: 0; border-bottom: 1px solid var(--phone-divider); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
html.harmony-phone[data-phone-route="interaction"] .assist-history-item { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 64px; margin: 0; padding: 16px; border: 0; border-bottom: 1px solid var(--phone-divider); border-radius: 0; color: var(--ink); font-size: 14px; line-height: 20px; text-align: left; }
html.harmony-phone[data-phone-route="interaction"] .assist-history-item.selected { background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); }
html.harmony-phone[data-phone-route="interaction"] .assist-history-item strong { font-size: 16px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .assist-history-item small { margin-top: 6px; font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .assist-history-item > span:last-child { min-width: 0; margin-top: 6px; font-size: 12px; line-height: 18px; text-align: left; }
html.harmony-phone[data-phone-route="interaction"] .assist-history-detail { min-width: 0; max-width: 100%; max-height: none; padding: 16px; overflow: visible; }
html.harmony-phone[data-phone-route="interaction"] .assist-detail-heading h3 { margin: 0 0 6px; font-size: 16px; line-height: 24px; font-weight: 500; }
html.harmony-phone[data-phone-route="interaction"] .assist-detail-heading p { margin: 0; font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .assist-session-status { margin-left: 4px; font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .assist-recording-state { margin: 12px 0 16px; padding: 12px; border-radius: 16px; background: var(--brand-soft); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .assist-recording-state.is-warning { color: #9b661d; background: #fff6e6; }
html.harmony-phone[data-phone-route="interaction"] .assist-detail-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-media-column { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; max-width: 100%; }
html.harmony-phone[data-phone-route="interaction"] .assist-playback { min-width: 0; max-width: 100%; margin: 0; }
html.harmony-phone[data-phone-route="interaction"] :is(.assist-playback h4, .assist-transcript-title) { margin: 0 0 12px; font-size: 16px; line-height: 22px; font-weight: 500; }
html.harmony-phone[data-phone-route="interaction"] .assist-playback video { display: block; width: 100%; max-width: 100%; height: auto; max-height: min(60dvh, 520px); margin: 0; border-radius: 16px; object-fit: contain; }
html.harmony-phone[data-phone-route="interaction"] .assist-playback audio { display: block; width: 100%; max-width: 100%; min-width: 0; height: 48px; }
html.harmony-phone[data-phone-route="interaction"] .assist-playback a { display: inline-flex; align-items: center; min-height: 40px; margin: 8px 0 0; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
html.harmony-phone[data-phone-route="interaction"] .assist-conversation { min-width: 0; max-width: 100%; }
html.harmony-phone[data-phone-route="interaction"] .assist-transcripts { width: 100%; max-width: 100%; min-width: 0; height: auto; min-height: 120px; max-height: 480px; padding: 12px; border: 0; border-radius: 16px; background: var(--phone-canvas); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: auto; }
html.harmony-phone[data-phone-route="interaction"] .assist-transcript { width: calc(100% - 12px); min-width: 0; max-width: 100%; margin: 0 12px 12px 0; padding: 12px; border-radius: 16px; }
html.harmony-phone[data-phone-route="interaction"] .assist-transcript.expert { margin-left: 12px; margin-right: 0; background: var(--brand-soft); }
html.harmony-phone[data-phone-route="interaction"] .assist-speaker { gap: 6px; min-width: 0; }
html.harmony-phone[data-phone-route="interaction"] .assist-speaker strong { font-size: 14px; line-height: 20px; font-weight: 500; }
html.harmony-phone[data-phone-route="interaction"] .assist-role { font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .assist-transcript header time { margin-top: 4px; font-size: 12px; line-height: 18px; }
html.harmony-phone[data-phone-route="interaction"] .assist-transcript p { margin-top: 8px; font-size: 16px; line-height: 24px; }
html.harmony-phone[data-phone-route="interaction"] .assist-transcript :is(.assist-translation, .assist-transcript-draft) { font-size: 14px; line-height: 22px; }
html.harmony-phone[data-phone-route="interaction"] .assist-annotation-image { max-width: 100%; max-height: 400px; border-radius: 12px; object-fit: contain; }
html.harmony-phone[data-phone-route="interaction"] .assist-more { min-width: 0; min-height: 40px; max-width: calc(100% - 32px); margin: 16px; padding: 8px 16px; border-radius: 20px; font-size: 14px; line-height: 20px; white-space: normal; }
html.harmony-phone[data-phone-route="interaction"] .assist-conversation > .assist-more { width: 100%; max-width: 100%; margin: 12px 0 0; font-size: 14px; }
/* Feedback counts mirror the shared unread state; the count is never a separate action. */
html.harmony-phone :is(.phone-more-panel [data-nav="interaction"], .phone-tabbar [data-phone-more]) { position: relative; overflow: visible; }
html.harmony-phone .phone-feedback-count { position: absolute; z-index: 1; top: 0; left: calc(50% + 6px); display: grid; place-items: center; min-width: 18px; max-width: 34px; height: 18px; margin: 0; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: var(--phone-warning, #c53743); color: #fff; font-family: system-ui, sans-serif; font-size: 10px; font-weight: 600; line-height: 14px; white-space: nowrap; pointer-events: none; }
html.harmony-phone .phone-feedback-count[hidden] { display: none !important; }

