/* App-only layout. Existing desktop workspace and agenda alignment stay unchanged. */
body.qingyun-mobile { min-width:0!important; width:100%; overflow-x:hidden; -webkit-text-size-adjust:100%; }
.qingyun-mobile .app-shell { display:block!important; min-width:0!important; width:100%!important; margin:0!important; padding:0!important; }
.qingyun-mobile #appSidebar,.qingyun-mobile .mobile-app-bar,.qingyun-mobile #mobileNavBackdrop { display:none!important; }
.qingyun-mobile .workspace { width:100%!important; min-width:0!important; max-width:none!important; margin:0!important; padding:16px!important; }
.qingyun-mobile .panel { min-width:0!important; max-width:100%; }
.qingyun-mobile .panel.active { overflow-wrap:anywhere; }
.qingyun-mobile input,.qingyun-mobile select,.qingyun-mobile textarea { max-width:100%; min-width:0; font-size:16px; }
.qingyun-mobile button { min-height:40px; white-space:normal; }
.qingyun-mobile .table-wrap,.qingyun-mobile .table-responsive,.qingyun-mobile .table-container { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.qingyun-mobile .mobile-table-scroll { width:100%; overflow:auto; -webkit-overflow-scrolling:touch; }
.qingyun-mobile table { min-width:640px; }
.qingyun-mobile iframe { max-width:100%; }
.qingyun-mobile #agendaPanel iframe { height:calc(100dvh - 32px)!important; min-height:420px; }
.qingyun-mobile .modal,.qingyun-mobile [role="dialog"] { max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; }
@media(max-width:600px){
 .qingyun-mobile .workspace{padding:12px!important;}
 .qingyun-mobile .panel-head,.qingyun-mobile .section-head,.qingyun-mobile .card-head,.qingyun-mobile .toolbar,.qingyun-mobile .filter-bar{flex-wrap:wrap;gap:10px;}
 .qingyun-mobile .form-grid,.qingyun-mobile .filters-grid,.qingyun-mobile .filter-grid,.qingyun-mobile .settings-grid{grid-template-columns:minmax(0,1fr)!important;}
 .qingyun-mobile .message-center-stats,.qingyun-mobile .stats-grid,.qingyun-mobile .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .qingyun-mobile .message-center-filter-grid{grid-template-columns:minmax(0,1fr)!important;}
 .qingyun-mobile .hub-tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;}
 .qingyun-mobile .hub-tabs button{flex-shrink:0;}
}
@media(min-width:840px){.qingyun-mobile .workspace{padding:24px!important;max-width:1440px!important;margin:auto!important;}}

/* 3.1: the native shell owns the toolbar and bottom tabs. */
body.qingyun-mobile{margin:0!important;padding:0!important;background:#fff!important;color:#202123;font-size:14px!important;--qy-compact-bar-height:0px;}
body.qingyun-mobile .app-shell,body.qingyun-mobile.sidebar-collapsed .app-shell{padding:0!important;height:100dvh!important;max-height:100dvh!important;}
body.qingyun-mobile .workspace{height:100%!important;max-height:100%!important;box-sizing:border-box;overflow:auto!important;padding:12px!important;background:#fff!important;}
body.qingyun-mobile .panel{margin-top:0!important;padding-top:0!important;}
body.qingyun-mobile #chatOptimizerRankDrawer{display:none!important;}
body.qingyun-mobile .panel-head{margin:0 0 16px!important;padding:4px 0!important;}
body.qingyun-mobile .panel-head h1,body.qingyun-mobile .panel-head h2{font-size:22px!important;line-height:1.35!important;}
body.qingyun-mobile .config-card{border-radius:12px!important;box-shadow:none!important;padding:16px!important;}
body.qingyun-mobile button,body.qingyun-mobile input,body.qingyun-mobile select{border-radius:9px;}
body.qingyun-mobile #chatPanel{height:100%!important;min-height:0!important;gap:8px!important;}
body.qingyun-mobile #chatMessages{min-height:0!important;padding:12px 0!important;}
body.qingyun-mobile #chatPanel .message .bubble{font-size:15px!important;line-height:1.65!important;box-shadow:none!important;}
body.qingyun-mobile #chatPanel .message.user .bubble{background:#f1f1f1!important;color:#202123!important;}
body.qingyun-mobile #chatPanel .message.assistant .bubble{background:transparent!important;border:0!important;}
body.qingyun-mobile #agendaPanel{height:100%!important;padding:0!important;}
body.qingyun-mobile #agendaPanel iframe{height:100%!important;min-height:0!important;border:0!important;}
@media(min-width:840px){body.qingyun-mobile .workspace{padding:20px!important;max-width:1440px!important;}}
body.qingyun-mobile .workspace > :is(#chatPanel,#recordsPanel,#summaryPanel,#businessInsightsPanel,#parentChannelInsightsPanel,#optimizerCostPanel,#announcementsPanel,#issueReportsPanel,#usersPanel,#settingsPanel,#logsPanel,#messageCenterPanel,#dailyReportsPanel,#periodicReportsPanel,#deliveryDistributionPanel,#toolsPanel,#signDeductPanel,#hourlyMonitorPanel,#agendaPanel).panel.active{padding:0 0 12px!important;margin:0!important;}
body.qingyun-mobile .panel-header,body.qingyun-mobile .panel-header.compact{padding:4px 0!important;margin:0 0 12px!important;min-height:0!important;}
body.qingyun-mobile .panel-header h1{font-size:22px!important;}

/* 3.1.2: each page owns its vertical scroll; large filters must scroll away. */
body.qingyun-mobile .workspace{overflow:hidden!important;}
body.qingyun-mobile .workspace > .panel.active:not(#chatPanel){
 height:100%!important;max-height:100%!important;min-height:0!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:auto;
}
body.qingyun-mobile .workspace > .panel:not(#chatPanel) > form,
body.qingyun-mobile .workspace > .panel:not(#chatPanel) .records-toolbar,
body.qingyun-mobile .workspace > .panel:not(#chatPanel) .summary-toolbar,
body.qingyun-mobile .workspace > .panel:not(#chatPanel) .panel-header,
body.qingyun-mobile .workspace > .panel:not(#chatPanel) .section-switch-row,
body.qingyun-mobile .workspace > .panel:not(#chatPanel) .pager{
 position:static!important;inset:auto!important;transform:none!important;
}
body.qingyun-mobile .workspace > .panel:not(#chatPanel) > .config-card{
 flex-shrink:0!important;max-height:none!important;
}
body.qingyun-mobile .workspace .panel .hub-tabs,
body.qingyun-mobile .workspace .panel .module-tabs{
 max-width:100%!important;min-width:0!important;overflow-x:auto!important;
 overflow-y:hidden!important;flex-wrap:nowrap!important;touch-action:auto;
}
body.qingyun-mobile .workspace .panel .hub-tab,
body.qingyun-mobile .workspace .panel .module-tab{flex-shrink:0!important;white-space:nowrap!important;}
/* Embedded pages retain their own scroll area within the available WebView height. */
body.qingyun-mobile #agendaPanel.panel.active{overflow:hidden!important;}
body.qingyun-mobile .workspace > .panel .alert-workspace-frame{min-height:0!important;}
body.qingyun-mobile #recordsPanel #recordsPager{
 position:static!important;inset:auto!important;transform:none!important;
 width:100%!important;max-width:100%!important;margin:12px 0 0!important;
 box-shadow:none!important;
}

/* Handheld-only: mobile-workspace.js gates this class BEFORE any DOM mutation.
   Desktop keeps its existing CSS, regardless of window width or browser zoom. */
html.qy-adaptive { width:100%!important; height:100%; min-width:0!important; max-width:100%!important; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html.qy-adaptive body { width:100%!important; max-width:100%!important; min-width:0!important; height:var(--qy-viewport-height,100dvh)!important; margin:0; overflow:hidden; }
html.qy-adaptive body:has(.login-page) { overflow:auto; }
html.qy-adaptive .app-shell { position:fixed!important; inset:0!important; width:auto!important; min-width:0!important; max-width:none!important; height:var(--qy-viewport-height,100dvh)!important; max-height:none!important; margin:0!important; box-sizing:border-box; }
html.qy-adaptive body .workspace { width:100%!important; min-width:0!important; max-width:none!important; height:100%!important; max-height:100%!important; margin:0!important; padding:0!important; overflow:hidden!important; container-type:inline-size; container-name:workspace; }
html.qy-adaptive .workspace > .panel { min-width:0!important; width:100%!important; max-width:none!important; box-sizing:border-box; }
html.qy-adaptive .workspace > :is(#chatPanel,#hourlyMonitorPanel,#agendaPanel,#signDeductPanel,#recordsPanel,#summaryPanel,#dailyReportsPanel,#periodicReportsPanel,#messageCenterPanel,#alertDetailsPanel,#testRecordsPanel,#optimizerCostPanel,#deliveryDistributionPanel,#usersPanel,#settingsPanel,#logsPanel,#toolsPanel,#announcementsPanel,#issueReportsPanel).panel:not(.active) { display:none!important; }
html.qy-adaptive .workspace > .panel.active { height:100%!important; min-height:0!important; max-height:100%!important; overflow-x:hidden!important; overflow-y:auto!important; overscroll-behavior-y:contain; touch-action:auto; scroll-padding-block:16px; }
html.qy-adaptive .workspace > .panel > * { min-width:0; max-width:100%; }
html.qy-adaptive .workspace::after { display:none!important; }
html.qy-adaptive .workspace :is(.config-card,.tr-card,.message-center-item,.delivery-person-card) { min-width:0; overflow-wrap:anywhere; }
html.qy-adaptive .workspace :is(.panel-header,.table-head,.inline-actions,.pager) { flex-wrap:wrap; }
html.qy-adaptive :is(.mobile-table-scroll,.table-wrap,.table-responsive,.table-container,.tr-table-wrap,[class*="table-wrap"]) { width:100%; max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; touch-action:auto; }
html.qy-adaptive .mobile-table-scroll table { width:100%; min-width:640px; }
html.qy-adaptive .workspace :is(.hub-tabs,.module-tabs,.hourly-monitor-view-tabs) { max-width:100%; min-width:0; overflow-x:auto; overflow-y:hidden; flex-wrap:nowrap; touch-action:auto; }
html.qy-adaptive .workspace :is(.hub-tabs,.module-tabs,.hourly-monitor-view-tabs) > button { flex-shrink:0; min-height:44px; }
html.qy-adaptive :focus-visible { outline:3px solid #8eb7ff; outline-offset:2px; }
html.qy-adaptive .side-nav { min-height:0!important; overflow-y:auto!important; touch-action:auto!important; }

/* Compact navigation is also available when a phone impersonates desktop Chrome. */
html.qy-adaptive[data-qy-nav="drawer"] body .app-shell { display:block!important; padding:calc(56px + var(--qy-safe-top)) 0 0!important; }
html.qy-adaptive[data-qy-nav="drawer"] body .mobile-app-bar { display:grid!important; grid-template-columns:44px minmax(0,1fr) 36px; gap:10px; align-items:center; position:fixed; inset:0 0 auto; height:calc(56px + var(--qy-safe-top)); padding:var(--qy-safe-top) 12px 0; box-sizing:border-box; z-index:980; background:#fff; border-bottom:1px solid #e2e8f0; backdrop-filter:none; }
html.qy-adaptive[data-qy-nav="drawer"] .mobile-menu-btn { width:44px!important; height:44px!important; }
html.qy-adaptive[data-qy-nav="drawer"] .mobile-app-title { min-width:0; display:flex; gap:8px; align-items:baseline; overflow:hidden; white-space:nowrap; }
html.qy-adaptive[data-qy-nav="drawer"] .mobile-app-title strong { font-size:16px; }
html.qy-adaptive[data-qy-nav="drawer"] .mobile-app-title span { font-size:13px; overflow:hidden; text-overflow:ellipsis; }
html.qy-adaptive[data-qy-nav="drawer"] body .sidebar { display:flex!important; position:fixed!important; inset:0 auto 0 0!important; width:min(86vw,320px)!important; height:var(--qy-viewport-height)!important; max-height:var(--qy-viewport-height)!important; padding:16px!important; padding-top:calc(16px + var(--qy-safe-top))!important; z-index:1010; transform:translateX(-105%)!important; transition:transform .18s ease!important; visibility:hidden; background:#fff; }
html.qy-adaptive[data-qy-nav="drawer"] body.mobile-nav-open .sidebar { transform:translateX(0)!important; visibility:visible; }
html.qy-adaptive[data-qy-nav="drawer"] .sidebar .side-nav { display:flex!important; flex:1; flex-direction:column!important; gap:5px; }
html.qy-adaptive[data-qy-nav="drawer"] .sidebar .nav-item { width:100%!important; min-height:46px!important; flex:none!important; justify-content:flex-start!important; padding:10px 12px!important; font-size:15px!important; }
html.qy-adaptive[data-qy-nav="drawer"] .sidebar .desktop-label { display:inline!important; }
html.qy-adaptive[data-qy-nav="drawer"] .sidebar .mobile-label { display:none!important; }
html.qy-adaptive[data-qy-nav="drawer"] .side-footer { display:grid!important; flex:none; gap:10px; }
html.qy-adaptive[data-qy-nav="drawer"] .mobile-nav-backdrop:not([hidden]) { display:block!important; position:fixed; inset:0; z-index:1000; background:#172b4d66; backdrop-filter:none; }
html.qy-adaptive[data-qy-nav="sidebar"] .mobile-app-bar { display:none!important; }

/* Analysis has one vertical scroller; its tab pane no longer clips the dashboard. */
html.qy-adaptive body #hourlyMonitorPanel.panel.active { overflow-y:auto!important; padding:16px!important; }
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-workspace { width:100%!important; height:auto!important; min-height:100%; max-height:none!important; overflow:visible!important; }
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-view-pane { flex:none!important; height:auto!important; max-height:none!important; min-height:0!important; overflow:visible!important; scrollbar-gutter:auto; }
html.qy-adaptive #deliveryPerformanceAnalysis { width:100%!important; min-width:0!important; max-width:100%!important; grid-template-columns:minmax(0,1fr); }
html.qy-adaptive #deliveryPerformanceAnalysis > * { min-width:0!important; max-width:100%; box-sizing:border-box; }
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-workspace,
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-view-pane { align-self:stretch; min-width:0!important; width:100%!important; max-width:100%!important; box-sizing:border-box; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-card { min-width:0!important; width:100%; max-width:100%; overflow:hidden; }
html.qy-adaptive #deliveryAnalysisChart { min-width:0; max-width:100%; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-status { display:flex; flex-wrap:wrap; min-width:0; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-status > span { min-width:0; white-space:normal; overflow-wrap:anywhere; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-metric-toggles { min-width:0; max-width:100%; }
/* Explicit width tiers also work in Android kernels without container queries. */
html.qy-adaptive[data-qy-layout="tablet"] #deliveryAnalysisKpis { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
html.qy-adaptive[data-qy-nav="drawer"] .side-footer { grid-template-columns:minmax(0,1fr) auto!important; gap:8px!important; }
html.qy-adaptive[data-qy-nav="drawer"] .side-footer .user-chip { min-width:0; }
html.qy-adaptive[data-qy-nav="drawer"] .side-footer > .ghost-btn { width:auto!important; min-width:0!important; padding:8px 12px!important; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-compare-controls { grid-template-columns:minmax(0,1fr); }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-compare-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .hourly-monitor-view-tabs { width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .hourly-monitor-view-tabs button { min-width:0; padding:10px 4px; font-size:13px; }
html.qy-adaptive #deliveryAnalysisKpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px!important; }
html.qy-adaptive .delivery-analysis-kpi { min-width:0!important; min-height:116px!important; padding:16px!important; }
html.qy-adaptive .delivery-analysis-kpi > b { font-size:clamp(24px,2.4vw,30px)!important; overflow-wrap:anywhere; }
html.qy-adaptive .delivery-analysis-kpi > span { font-size:13px!important; }
html.qy-adaptive .delivery-analysis-kpi > small { font-size:12px!important; line-height:1.5; }
html.qy-adaptive :is(.qy-more-metrics,.qy-template-more) { display:none; }

/* Chat keeps its composer in view without shrinking long input to 10px. */
html.qy-adaptive body #chatPanel.panel.active { display:flex!important; flex-direction:column; height:100%!important; overflow:hidden!important; padding:16px 20px max(12px,env(safe-area-inset-bottom))!important; gap:10px!important; }
html.qy-adaptive #chatPanel > .qy-chat-stream { flex:1 1 0; width:100%; min-width:0; min-height:0; max-width:100%; overflow:auto; overscroll-behavior:contain; overflow-anchor:none; }
html.qy-adaptive #chatPanel .qy-chat-context { width:100%; max-width:var(--qy-chat,1000px); margin:0 auto; min-height:0; }
html.qy-adaptive #chatPanel .qy-chat-context > .panel-header { position:static!important; inset:auto!important; transform:none!important; min-height:0!important; margin:0 0 10px!important; padding:0!important; }
html.qy-adaptive #chatPanel .qy-chat-context > .panel-header h1 { font-size:24px!important; line-height:1.4!important; }
html.qy-adaptive .qy-chat-context > * { width:100%; min-width:0; box-sizing:border-box; }
html.qy-adaptive #chatPanel .qy-chat-context :is(.chat-announcement-card,.record-helper-card,.sync-panel-wrap) { display:block!important; position:static!important; height:auto!important; }
html.qy-adaptive #chatPanel .qy-chat-context .fill-action { min-height:44px!important; height:auto!important; font-size:13px!important; }
html.qy-adaptive #chatPanel .qy-chat-context .chat-capture-grid { display:grid!important; grid-template-columns:minmax(0,1fr)!important; margin:8px 0 0!important; gap:8px!important; }
html.qy-adaptive .qy-chat-context.has-podium #chatOptimizerRankDrawer { display:none!important; }
html.qy-adaptive:not([data-qy-layout="desktop"]) .qy-chat-context:not(.has-podium) #chatOptimizerRankDrawer { display:block!important; }
html.qy-adaptive .qy-chat-context #mobileOptimizerRankStrip:not([hidden]) { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
html.qy-adaptive .qy-chat-context .mobile-rank-chip { min-width:0; white-space:normal; }
html.qy-adaptive[data-qy-layout="phone"] .qy-chat-context #mobileOptimizerRankStrip:not([hidden]) { grid-template-columns:minmax(0,1fr); }
html.qy-adaptive .chat-podium-head { align-items:flex-start; gap:8px; }
html.qy-adaptive .chat-podium-head > div { min-width:0; }
html.qy-adaptive .chat-podium-head span { white-space:normal!important; overflow:visible!important; line-height:1.5; font-size:12px; }
html.qy-adaptive .chat-podium-item > span { white-space:normal!important; text-overflow:clip; overflow:visible!important; line-height:1.5; }
html.qy-adaptive #chatPanel #chatMessages { flex:none!important; min-height:60px!important; height:auto!important; max-height:none!important; overflow:visible!important; padding:12px 0!important; }
html.qy-adaptive #chatPanel .message .bubble { max-width:100%; min-width:0; font-size:15px!important; line-height:1.65!important; overflow-wrap:anywhere; }
html.qy-adaptive #chatPanel #chatForm { flex:none!important; position:relative!important; inset:auto!important; width:100%!important; max-width:var(--qy-chat,1000px)!important; height:auto!important; min-height:0!important; max-height:none!important; margin:0 auto!important; transform:none!important; box-sizing:border-box; overflow:visible!important; }
html.qy-adaptive #chatPanel #chatForm :is(.send-btn,.voice-input-btn) { width:44px!important; height:44px!important; min-width:44px!important; min-height:44px!important; max-height:none!important; }
html.qy-adaptive #chatInput { font-size:16px!important; line-height:1.5!important; touch-action:auto; }
html.qy-adaptive #chatPanel #chatInput { white-space:pre-wrap!important; overflow-x:hidden!important; }
html.qy-adaptive[data-qy-keyboard] #chatPanel .qy-chat-context { display:none; }

/* Responsive grids are based on usable panel width, including a desktop sidebar. */
@container workspace (max-width:1100px) {
  html.qy-adaptive #deliveryAnalysisKpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
  html.qy-adaptive :is(.message-center-stats,.ad-stats,.tr-counts,.tr-kpi-grid,.tr-comparison-grid) { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
  html.qy-adaptive :is(.daily-report-workspace,.daily-report-main-grid,.tr-bottom-grid) { grid-template-columns:minmax(0,1fr)!important; }
  html.qy-adaptive .tr-list-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
html.qy-adaptive:not([data-qy-layout="desktop"]) :is(button,input,select,textarea) { min-height:44px!important; }
html.qy-adaptive:not([data-qy-layout="desktop"]) :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]) { min-width:0; max-width:100%; font-size:16px!important; }
html.qy-adaptive:not([data-qy-layout="desktop"]) :is(input[type="checkbox"],input[type="radio"]) { min-height:0!important; width:18px; height:18px; flex-shrink:0; }
html.qy-adaptive:not([data-qy-layout="desktop"]) .workspace > .panel.active { padding:16px!important; }
html.qy-adaptive:not([data-qy-layout="desktop"]) #deliveryAnalysisKpis:not(.qy-expanded) [data-priority="secondary"] { display:none; }
html.qy-adaptive:not([data-qy-layout="desktop"]) .qy-more-metrics { display:block; width:100%; margin:8px 0 16px; }
html.qy-adaptive:not([data-qy-layout="desktop"]) :is(.modal-backdrop,.modal-overlay) { padding:12px!important; }
html.qy-adaptive:not([data-qy-layout="desktop"]) :is(.modal-card,[role="dialog"],.tr-dialog) { width:min(100%,960px); min-width:0!important; max-width:calc(100vw - 24px)!important; max-height:calc(var(--qy-viewport-height) - 24px)!important; overflow-y:auto; box-sizing:border-box; }
html.qy-adaptive:not([data-qy-layout="desktop"]) #trCreateDialog { overflow:hidden; }
html.qy-adaptive:not([data-qy-layout="desktop"]) .workspace :is(.panel-header,.records-toolbar,.summary-toolbar) { position:static!important; transform:none!important; }
html.qy-adaptive:not([data-qy-layout="desktop"]) #recordsPager { position:static!important; inset:auto!important; transform:none!important; width:100%!important; margin-top:12px!important; }

html.qy-adaptive[data-qy-layout="phone"] .workspace > .panel.active,
html.qy-adaptive[data-qy-layout="phone"] body #hourlyMonitorPanel.panel.active { padding:12px!important; }
html.qy-adaptive[data-qy-layout="phone"] :is(.panel-header h1,.tr-header h1) { font-size:22px!important; }
html.qy-adaptive[data-qy-layout="phone"] .workspace :is(.form-grid,.filters-grid,.filter-grid,.message-center-filter-grid,.ad-filters,.daily-report-toolbar-grid,.tr-create-columns,.tr-create-basics,.tr-create-timing,.tr-bottom-grid,.tr-facts) { grid-template-columns:minmax(0,1fr)!important; }
html.qy-adaptive[data-qy-layout="phone"] .workspace :is(.message-center-stats,.ad-stats,.tr-counts,.tr-kpi-grid,.tr-comparison-grid,.tr-list-metrics),
html.qy-adaptive[data-qy-layout="phone"] #deliveryAnalysisKpis { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px!important; }
html.qy-adaptive[data-qy-layout="phone"] .delivery-analysis-kpi { padding:12px!important; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-filters { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-toolbar { display:flex!important; flex-direction:column; align-items:stretch; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-toolbar > * { width:100%; flex:auto; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-refresh-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-refresh-buttons { display:contents; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-refresh-actions :is(button,label) { width:100%; min-width:0!important; }
html.qy-adaptive[data-qy-layout="phone"] #chatPanel.panel.active { padding:10px 12px max(10px,env(safe-area-inset-bottom))!important; }
html.qy-adaptive[data-qy-layout="phone"] .qy-chat-context > .panel-header { display:none!important; }
html.qy-adaptive[data-qy-layout="phone"] .chat-podium-list { grid-template-columns:minmax(0,1fr)!important; gap:6px; }
html.qy-adaptive[data-qy-layout="phone"] .chat-podium-item { min-height:60px; padding:8px 10px; }
html.qy-adaptive[data-qy-layout="phone"] .chat-podium-head { flex-wrap:wrap; }
html.qy-adaptive[data-qy-layout="phone"] .chat-podium-head strong { font-size:15px; }
html.qy-adaptive[data-qy-layout="phone"] #chatPanel .record-template-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px!important; }
html.qy-adaptive[data-qy-layout="phone"] .record-template-grid:not(.qy-expanded) > :nth-child(n+3) { display:none!important; }
html.qy-adaptive[data-qy-layout="phone"] .qy-template-more { display:block; width:100%; margin-top:6px; }
html.qy-adaptive[data-qy-layout="phone"] #chatPanel #chatForm { display:grid!important; grid-template-columns:minmax(0,1fr) 44px 44px 44px!important; gap:6px!important; padding:8px!important; border-radius:16px!important; }
html.qy-adaptive[data-qy-layout="phone"] #chatForm #chatInput { grid-column:1/-1!important; grid-row:1!important; width:100%!important; min-height:48px!important; max-height:120px!important; margin:0!important; padding:8px!important; }
html.qy-adaptive[data-qy-layout="phone"] #chatForm :is(.mode-select,.web-search-toggle,.voice-input-btn,.send-btn) { grid-row:2!important; width:100%!important; min-width:0!important; max-width:none!important; height:44px!important; min-height:44px!important; position:static!important; margin:0!important; padding:6px!important; }
html.qy-adaptive[data-qy-layout="phone"] #chatForm .mode-select { grid-column:1; }
html.qy-adaptive[data-qy-layout="phone"] #chatForm .web-search-toggle { grid-column:2; }
html.qy-adaptive[data-qy-layout="phone"] #chatForm .voice-input-btn { grid-column:3; }
html.qy-adaptive[data-qy-layout="phone"] #chatForm .send-btn { grid-column:4; }
html.qy-adaptive[data-qy-layout="phone"] .tr-list-item { flex-direction:column; align-items:stretch; }
html.qy-adaptive[data-qy-layout="phone"] .tr-list-item > * { flex:auto; min-width:0; width:100%; }
html.qy-adaptive[data-qy-layout="phone"] :is(#trCreate .tr-create-columns,#trCreate .tr-create-basics,#trCreate .tr-create-timing) { grid-template-columns:minmax(0,1fr); }
html.qy-adaptive[data-qy-layout="phone"] #trCreateDialog > .tr-header,html.qy-adaptive[data-qy-layout="phone"] #trCreate,html.qy-adaptive[data-qy-layout="phone"] .tr-create-footer { padding:12px; }
html.qy-adaptive[data-qy-layout="phone"] .tr-create-footer { flex-wrap:wrap; gap:8px; }
html.qy-adaptive[data-qy-layout="phone"] .tr-create-footer .tr-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }
@media(max-width:359px) { html.qy-adaptive #deliveryAnalysisKpis { grid-template-columns:minmax(0,1fr)!important; } }

/* Embedded documents own their scroll; remote content cannot be restyled here. */
html.qy-adaptive body #agendaPanel.panel.active { padding:0!important; overflow:hidden!important; }
html.qy-adaptive #agendaPanel iframe { display:block; width:100%!important; height:100%!important; min-height:0!important; border:0!important; border-radius:0!important; }
html.qy-adaptive #signDeductPanel .sign-deduct-shell { height:100%!important; min-height:0!important; display:flex; flex-direction:column; }
html.qy-adaptive #signDeductPanel .sign-deduct-embed-head { flex:none; flex-wrap:wrap; gap:8px; }
html.qy-adaptive #signDeductPanel .sign-deduct-frame-wrap { flex:1; min-height:0!important; }
html.qy-adaptive #signDeductFrame { width:100%!important; height:100%!important; min-height:0!important; }
html.qy-adaptive body.qingyun-mobile .app-shell { padding:0!important; }

/* 2026-11: phone workflow, not a scaled-down desktop. Only handhelds opt in. */
html.qy-adaptive body #hourlyMonitorPanel.panel.active {
  padding-bottom:max(20px,env(safe-area-inset-bottom))!important;
  padding-left:max(12px,env(safe-area-inset-left))!important;
  padding-right:max(12px,env(safe-area-inset-right))!important;
}
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-view-tabs {
  display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr))!important;
  position:sticky!important; top:0!important; z-index:20;
  width:100%!important; background:#edf2fa; box-shadow:0 3px 8px #23446a0a;
  flex:none; overflow:visible!important;
}
html.qy-adaptive #hourlyMonitorPanel > .hourly-monitor-workspace { flex:none!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-table-card { scroll-margin-top:70px; }
html.qy-adaptive #deliveryPerformanceAnalysis .dq-strip { padding:4px 12px; margin:0; gap:4px 12px; }
html.qy-adaptive #deliveryPerformanceAnalysis .qy-quality-details { flex:1; min-width:0; }
html.qy-adaptive #deliveryPerformanceAnalysis .qy-quality-details > summary { min-height:44px; display:flex; align-items:center; font-size:12px; }
html.qy-adaptive #deliveryPerformanceAnalysis .qy-quality-details > summary::after { content:'⌄'; margin-left:8px; }
html.qy-adaptive #deliveryPerformanceAnalysis .qy-quality-details[open] > summary::after { content:'⌃'; }
html.qy-adaptive #deliveryPerformanceAnalysis .qy-quality-details > span { display:block; padding:4px 0; overflow-wrap:anywhere; }
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-view-tabs button { white-space:nowrap; min-width:0!important; }
html.qy-adaptive .qy-analysis-filter-toggle,html.qy-adaptive .qy-account-details { display:none; }
html.qy-adaptive #deliveryAnalysisChannelTable .qy-plan-open { min-width:44px; min-height:44px; }
html.qy-adaptive .mobile-app-bar { padding-left:max(10px,env(safe-area-inset-left))!important; padding-right:max(10px,env(safe-area-inset-right))!important; }
html.qy-adaptive .sidebar { padding-bottom:max(16px,env(safe-area-inset-bottom))!important; }
@media(max-width:600px) {
  html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-view-tabs button { font-size:12px!important; padding-inline:2px!important; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-header-row { display:grid!important; grid-template-columns:minmax(0,1fr) auto; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-auto-state { grid-column:1; grid-row:2; white-space:normal; }
  html.qy-adaptive #hourlyMonitorPanel .qy-analysis-filter-toggle { display:inline-flex; grid-column:2; grid-row:1/3; align-items:center; min-height:44px; padding:8px 10px; font-size:13px; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filters { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filters > label:first-child { grid-column:1/-1; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filters > label:nth-child(3) { grid-column:1/-1; grid-row:3; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filter-card:not(.qy-filters-open) .delivery-analysis-filters > label:not(:first-child) { display:none!important; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-refresh-buttons { display:contents!important; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-refresh-buttons > button { min-width:0; width:100%; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-refresh-actions { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-compare-switch { min-width:0; width:100%!important; justify-content:center; }
  html.qy-adaptive #deliveryAnalysisStatus > span { font-size:11px!important; }
  html.qy-adaptive #hourlyMonitorPanel #deliveryAnalysisChannelTable { overflow:visible; }
  html.qy-adaptive #deliveryAnalysisChannelTable table { display:block; width:100%!important; min-width:0!important; }
  html.qy-adaptive #deliveryAnalysisChannelTable thead { display:none; }
  html.qy-adaptive #deliveryAnalysisChannelTable tbody { display:grid; gap:12px; }
  html.qy-adaptive #deliveryAnalysisChannelTable tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; border:1px solid #e1e8f2; border-radius:12px; background:#fff; }
  html.qy-adaptive #deliveryAnalysisChannelTable td { display:block; min-width:0; padding:8px 4px; border:0; white-space:normal!important; overflow-wrap:anywhere; font-size:14px; text-align:left; }
  html.qy-adaptive #deliveryAnalysisChannelTable td::before { content:attr(data-label); display:block; font-size:11px; color:#63758f; margin-bottom:4px; }
  html.qy-adaptive #deliveryAnalysisChannelTable td:nth-child(2) { grid-column:1/-1; grid-row:1; padding-top:0; border-bottom:1px solid #edf2f7; }
  html.qy-adaptive #deliveryAnalysisChannelTable td:nth-child(2)::before { display:none; }
  html.qy-adaptive #deliveryAnalysisChannelTable td:nth-child(4) { grid-column:1/-1; grid-row:2; }
  html.qy-adaptive #deliveryAnalysisChannelTable tr:not(.qy-row-expanded) td:is(:nth-child(1),:nth-child(3),:nth-child(5),:nth-child(8),:nth-child(9),:nth-child(10),:nth-child(11),:nth-child(12),:nth-child(13)) { display:none; }
  html.qy-adaptive #deliveryAnalysisChannelTable .qy-channel-plans { display:flex; align-items:center; gap:8px; min-width:0; }
  html.qy-adaptive #deliveryAnalysisChannelTable .qy-channel-plans > span { flex:1; min-width:0; }
  html.qy-adaptive #deliveryAnalysisChannelTable .qy-channel-plans :is(b,small) { white-space:normal; overflow-wrap:anywhere; }
  html.qy-adaptive #deliveryAnalysisChannelTable .qy-account-details { display:block; min-height:44px; margin-top:8px; width:100%; font-size:12px; }
  html.qy-adaptive #deliveryAnalysisChannelPager { font-size:12px; }
  html.qy-adaptive #deliveryAnalysisChannelPager button { min-height:44px; }
}
html.qy-adaptive body.qingyun-mobile :is(#appSidebar,.mobile-app-bar,#mobileNavBackdrop) { display:none!important; }
html.qy-adaptive body.qingyun-mobile .workspace { background:#fff; }
@media(max-width:760px) { html.qy-adaptive body.qingyun-mobile .ad-table { min-width:0!important; } }
@media(prefers-reduced-motion:reduce) { html.qy-adaptive *,html.qy-adaptive *::before,html.qy-adaptive *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }

/* Handheld typography and chart navigation. Every selector stays behind device gating;
   never shrink/zoom the desktop canvas or disable browser magnification. */
html.qy-adaptive body { font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; font-size:14px; line-height:1.5; }
html.qy-adaptive .workspace :is(h1,h2,h3) { letter-spacing:0!important; line-height:1.4!important; }
html.qy-adaptive .workspace :is(.panel-header h1,.tr-header h1) { font-size:20px!important; font-weight:650!important; }
html.qy-adaptive .workspace :is(.panel-header p,.tr-header p) { font-size:13px!important; color:#64748b; line-height:1.6!important; }
html.qy-adaptive[data-qy-nav="drawer"] body .app-shell { padding-top:calc(48px + var(--qy-safe-top))!important; }
html.qy-adaptive[data-qy-nav="drawer"] body .mobile-app-bar { height:calc(48px + var(--qy-safe-top))!important; gap:8px; padding-inline:10px; }
html.qy-adaptive[data-qy-nav="drawer"] .mobile-app-title { flex-direction:row!important; gap:8px!important; }
html.qy-adaptive[data-qy-nav="drawer"] .mobile-app-title strong { font-size:15px!important; font-weight:650!important; }
html.qy-adaptive[data-qy-nav="drawer"] .mobile-app-title span { font-size:12px!important; }
html.qy-adaptive .workspace :is(button,.ghost-btn,.primary-btn) { font-size:14px; font-weight:600; letter-spacing:0; }
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-workspace { gap:12px!important; }
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-view-tabs { padding:3px!important; gap:3px!important; margin:0 0 12px!important; border-radius:12px!important; }
html.qy-adaptive #hourlyMonitorPanel .hourly-monitor-view-tabs button { height:44px!important; min-height:44px!important; padding:8px 6px!important; font-size:14px!important; font-weight:600!important; border-radius:9px!important; }
html.qy-adaptive #deliveryPerformanceAnalysis { gap:12px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filter-card { padding:12px!important; gap:10px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filter-copy h2 { font-size:16px!important; font-weight:650!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-auto-state { font-size:11px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-header-row { gap:4px 10px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filters { gap:8px 10px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filters label > span { font-size:12px!important; font-weight:500!important; margin-bottom:4px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-filters :is(input,select),
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-compare-date input { font-size:var(--qy-control-font,16px)!important; font-weight:400!important; padding:8px 9px!important; height:44px!important; min-height:44px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-refresh-actions :is(button,label) { font-size:13px!important; font-weight:550!important; height:44px!important; min-height:44px!important; padding:8px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-refresh-actions { gap:6px!important; }
html.qy-adaptive #deliveryAnalysisStatus { gap:6px!important; margin:0!important; }
html.qy-adaptive #deliveryAnalysisStatus > span { padding:5px 8px!important; font-size:11px!important; line-height:1.5!important; color:#64748b!important; }
html.qy-adaptive #deliveryAnalysisKpis .delivery-analysis-kpi { min-height:100px!important; padding:12px!important; border-radius:12px!important; }
html.qy-adaptive #deliveryAnalysisKpis .delivery-analysis-kpi > b { font-size:24px!important; font-weight:650!important; line-height:1.25!important; font-variant-numeric:tabular-nums; }
html.qy-adaptive #deliveryAnalysisKpis .delivery-analysis-kpi > span { font-size:12px!important; font-weight:500!important; color:#64748b!important; }
html.qy-adaptive #deliveryAnalysisKpis .delivery-analysis-kpi > small { font-size:11px!important; color:#64748b!important; }
html.qy-adaptive .qy-more-metrics { margin:0!important; font-size:12px!important; }
html.qy-adaptive #hourlyMonitorPanel :is(.delivery-analysis-chart-card,.delivery-analysis-table-card) { padding:12px!important; border-radius:12px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-section-head { flex-direction:column!important; gap:10px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-section-head h3 { font-size:17px!important; font-weight:650!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-section-head p:last-child { font-size:12px!important; line-height:1.5!important; margin:4px 0 0!important; color:#64748b!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-section-head .eyebrow { display:none!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-tools { display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important; gap:8px!important; align-items:center!important; justify-items:stretch!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-views { grid-column:1; grid-row:1; display:flex!important; width:100%!important; min-width:0!important; padding:2px!important; gap:2px!important; border-radius:9px!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-views button { flex:1 1 0!important; min-width:0!important; font-size:12px!important; padding:4px!important; min-height:44px!important; height:44px!important; border-radius:7px!important; white-space:normal!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-actions { grid-column:2; grid-row:1; display:flex!important; gap:5px!important; min-width:0; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-actions button { display:inline-flex!important; align-items:center; justify-content:center; flex:1 1 0; min-width:0!important; min-height:44px!important; height:44px!important; font-size:12px!important; font-weight:500!important; padding:4px!important; white-space:normal!important; }
/* Navigation only: keep the original SVG, value labels and chart scrolling. */
html.qy-adaptive #hourlyMonitorPanel #deliveryAnalysisChartCard > .delivery-analysis-section-head { display:flex!important; align-items:stretch!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-tools { width:100%!important; max-width:none!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-metric-toggles { grid-column:1/-1; grid-row:2; display:grid!important; grid-template-columns:repeat(6,minmax(0,1fr)); width:100%!important; max-width:none!important; min-width:0!important; gap:6px!important; overflow:visible!important; padding:8px 0 0!important; border-top:1px solid #edf1f7; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-metric-toggles button { display:flex!important; align-items:center; justify-content:center; gap:5px!important; width:100%!important; min-width:0!important; height:44px!important; min-height:44px!important; margin:0!important; padding:6px!important; font-size:12px!important; line-height:1.3!important; font-weight:550!important; white-space:nowrap!important; border-radius:8px!important; box-shadow:none!important; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-metric-toggles button i { width:6px; height:6px; flex-shrink:0; }
html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-actions .delivery-analysis-mobile-range { display:none!important; }
@media(max-width:1100px) {
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-metric-toggles { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:680px) {
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-chart-actions .delivery-analysis-mobile-range { display:inline-flex!important; }
}
@media(max-width:600px) {
  html.qy-adaptive #hourlyMonitorPanel .delivery-analysis-metric-toggles { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
html.qy-adaptive #hourlyMonitorPanel #deliveryAnalysisChartCard:is(:fullscreen,.is-chart-expanded) { position:fixed!important; inset:0!important; width:100%!important; max-width:none!important; height:100%!important; max-height:100%!important; padding:14px!important; overflow:auto!important; z-index:2000; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .delivery-analysis-filter-copy p:last-child { display:none!important; }
html.qy-adaptive[data-qy-layout="phone"] #deliveryAnalysisKpis .delivery-analysis-kpi > b { font-size:22px!important; }
html.qy-adaptive body.qingyun-mobile .app-shell { padding:0!important; }
html.qy-adaptive[data-qy-layout="phone"] #hourlyMonitorPanel .hourly-monitor-view-tabs button { font-size:12px!important; padding-inline:2px!important; }

/* Account analysis uses the same navigation across embedded secondary views. */
html body :is(#hourlyMonitorPanel,#signDeductPanel,#packageRatioPanel) .hourly-monitor-view-tabs.account-analysis-tabs {
  display:flex!important; flex-wrap:nowrap!important; gap:4px!important;
  width:min(100%,560px)!important; max-width:100%; min-width:0; flex:0 0 auto;
  padding:4px!important; margin:0 0 12px!important; border:1px solid #dce5f1;
  border-radius:12px; background:#edf2f9; overflow:visible!important;
}
html body :is(#hourlyMonitorPanel,#signDeductPanel,#packageRatioPanel) .hourly-monitor-view-tabs.account-analysis-tabs > button {
  flex:1 1 0; min-width:0!important; min-height:44px!important; padding:8px 6px!important;
  border-radius:9px; font-size:14px!important; font-weight:600; white-space:nowrap;
}
html body #signDeductPanel > .sign-deduct-shell.sign-deduct-external-shell {
  flex:1 1 0; height:auto!important; min-height:0!important;
}
@media(max-width:600px) {
  html body :is(#hourlyMonitorPanel,#signDeductPanel,#packageRatioPanel) .hourly-monitor-view-tabs.account-analysis-tabs > button {
    padding-inline:2px!important; font-size:12px!important;
  }
}

/* The legacy narrow desktop shell can place its workspace behind the fixed bar. */
@media(max-width:760px) {
  html:not(.qy-adaptive) body :is(#hourlyMonitorPanel,#signDeductPanel,#packageRatioPanel,#deliveryAccountCenterPanel,#announcementsPanel,#issueReportsPanel).panel.active {
    padding-top:calc(64px + env(safe-area-inset-top,0px))!important;
  }
}

html body #packageRatioPanel .package-ratio-shell {
  display:flex; flex-direction:column; flex:1 1 auto; min-height:460px;
  border:1px solid #dce5f1; border-radius:16px; overflow:hidden; background:#fff;
}
html body #packageRatioPanel .package-ratio-head {
  display:flex; justify-content:space-between; align-items:center; flex:0 0 auto;
  flex-wrap:wrap; gap:12px; padding:16px 20px; border-bottom:1px solid #e2e8f0;
}
html body #packageRatioPanel .package-ratio-head :is(h1,p) { margin:0; }
html body #packageRatioPanel .package-ratio-head h1 { font-size:23px; }
html body #packageRatioPanel .package-ratio-head .subtle { margin-top:4px; font-size:13px; }
html body #packageRatioFrame { display:block; flex:1 1 auto; width:100%; min-height:360px; border:0; background:#fff; }
html body .today-announcements-tabs { flex:0 0 auto; margin-bottom:12px; overflow-x:auto; white-space:nowrap; }
html body #deliveryAccountCenterPanel > .delivery-distribution-view-tabs { flex-wrap:wrap; gap:4px; }
html body #deliveryAccountLoadState[hidden] { display:none!important; }
@media(max-width:760px) {
  html body #packageRatioPanel .package-ratio-head { padding:12px; gap:8px; }
  html body #packageRatioPanel .package-ratio-shell { min-height:500px; }
  html body #deliveryAccountCenterPanel > .delivery-distribution-view-tabs { flex-wrap:nowrap; overflow-x:auto; white-space:nowrap; }
  html body #deliveryAccountCenterPanel > .delivery-distribution-view-tabs > button { flex:0 0 auto; min-height:44px; }
}
