.mobile-tools, .mobile-nav-shade, .hr-mobile-department-filter, .hr-mobile-employee-list { display: none; }
.mobile-install-help { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 24px; border: 1px solid #dce1e7; border-radius: 12px; color: #28384a; }
.mobile-install-help::backdrop { background: #172d4a66; }
.mobile-install-help h2 { font-size: 20px; margin: 0 0 16px; }
.mobile-install-help p { font-size: 16px; line-height: 1.7; color: #526173; }
.mobile-install-help button { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 6px; background: #246c94; color: white; font: inherit; }
@media screen and (max-width: 1023px) {
  body { min-width: 0; }
  .mobile-has-tools { --mobile-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .shell, .shell.sidebar-collapsed { display: block; height: 100vh; height: 100dvh; min-height: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: var(--mobile-bottom, 0px); }
  .shell .workspace { width: 100%; height: 100%; overflow: auto; }
  .shell .sidebar, .shell.sidebar-collapsed .sidebar { position: fixed; z-index: 102; top: env(safe-area-inset-top, 0px); bottom: var(--mobile-bottom, 0px); left: 0; width: min(300px, 86vw); height: auto; visibility: hidden; transform: translateX(-100%); }
  .mobile-nav-open .shell .sidebar { visibility: visible; transform: none; }
  .mobile-nav-open .mobile-nav-shade { display: block; position: fixed; z-index: 101; inset: 0 0 var(--mobile-bottom, 0px); width: 100%; border: 0; background: #172d4a66; }
  .shell .sidebar-controls { display: none; }
  .mobile-tools { position: fixed; z-index: 103; bottom: 0; left: 0; right: 0; align-items: center; justify-content: space-around; gap: 8px; min-height: 56px; padding: 4px max(12px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: #fff; border-top: 1px solid #dce1e7; }
  .mobile-has-tools .mobile-tools { display: flex; }
  .mobile-tools button { min-height: 44px; padding: 8px 16px; border: 0; background: transparent; color: #246c94; font-size: 15px; font-weight: 600; }
  .mobile-tools [hidden] { display: none; }
  .mobile-tools [role=status] { color: #9b321f; font-size: 13px; }
  .mobile-tools [role=status]:empty { display: none; }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #246c94; outline-offset: 2px; }
  .shell .topbar { height: auto; min-height: 52px; margin: 0; padding: 8px 12px; border-radius: 0; flex-wrap: wrap; gap: 4px; }
  .shell .toolbar-title, .shell.sidebar-collapsed .toolbar-title { padding-left: 0; min-width: 0; }
  .top-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .account-summary { flex: 1; min-width: 0; min-height: 44px; }
  .user-meta { min-width: 0; }
  .user-meta strong { font-size: 12px; line-height: 18px; }
  .user-meta small { font-size: 11px; line-height: 16px; }
  .shell .content { padding: 12px; min-width: 0; }
  .workbench-brand-banner { height: auto; min-height: 85px; padding: 16px; }
  .workbench-brand-banner > div { font-size: 20px; line-height: 1.4; }
  .workbench-brand-banner small { line-height: 1.6; }
  .workbench-welcome > div > small, .workbench-reset-layout { display: none; }
  .page-head { flex-wrap: wrap; gap: 12px; }
  .btn, .logout-button, .tab, .nav-item, .sidebar button, .oa-workbench button, .oa-tabs button, .oa-dialog button { min-height: 44px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; max-width: 100%; }
  input:not([type=checkbox]):not([type=radio]), select { min-height: 44px; }
  .filter-input, .filter-select { min-width: 0; width: 100%; }
  .filter-bar > label { min-width: 0; max-width: 100%; }
  .tabs, .drawer-tabs, .oa-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tabs > *, .drawer-tabs > *, .oa-tabs > * { flex-shrink: 0; }
  .field-grid, .oa-form-grid, .oa-details { grid-template-columns: minmax(0, 1fr); }
  .field-grid > * { min-width: 0; grid-column: 1; }
  .drawer, .drawer.wide, .drawer.hr-editor, .drawer.hr-departments-drawer, .drawer.hr-lifecycle-drawer, .drawer.hr-operation-log-drawer { width: 100% !important; max-width: 100%; left: 0 !important; top: 0 !important; bottom: 0; margin: 0; height: 100dvh; max-height: 100dvh; }
  .drawer-mask, .drawer { z-index: 200; }
  .drawer { z-index: 201; }
  .drawer-head, .drawer-body { padding: 16px; }
  .drawer-head, .oa-dialog > header { touch-action: auto; cursor: default; }
  .drawer-foot, .oa-dialog footer { flex-wrap: wrap; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
  .oa-dialog { top: env(safe-area-inset-top, 0px) !important; left: 0 !important; transform: none; width: 100%; max-height: calc(100dvh - env(safe-area-inset-top, 0px)); border-radius: 0; }
  .hr-self-hero { padding: 20px; }
  .hr-self-hero h1 { font-size: 24px; }
  .hr-self-filters { grid-template-columns: 1fr 1fr; }
  .hr-self-directory > header, .hr-self-directory footer { flex-wrap: wrap; gap: 12px; }
  .oa-filters label, .oa-filters .oa-search { flex: 1 1 140px; min-width: 0; }
  .oa-filters select, .oa-filters input[type=date] { width: 100%; }
  .source-bottom { left: 0; right: 0; bottom: var(--mobile-bottom, 0px); overflow-x: auto; padding-left: 12px; }
  .login-screen { display: block; min-height: 100dvh; padding-bottom: var(--mobile-bottom, 0px); }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: calc(100dvh - var(--mobile-bottom, 0px)); padding: max(32px, env(safe-area-inset-top)) 24px 32px; }
  .login-form { max-width: 420px; margin: auto; }
  .login-heading h2 { font-size: 26px; }
}
/* Phone layouts reflow their controls; only dense reports keep horizontal scrolling. */
@media screen and (max-width: 1023px) {
  .shell .workspace, .shell .content, .attendance, .oa-workbench, .work-center { min-width: 0; max-width: 100%; }
  .shell .content { padding: 10px; overflow: visible; }
  .shell .top-actions { display: flex; }
  .shell.page-hr .topbar, .shell.page-customer .topbar { height: auto; margin: 0; padding: 8px 12px; }
  .shell .account-summary { flex: 1 1 100%; max-width: none; }
  .shell .user-meta strong { white-space: normal; overflow-wrap: anywhere; }
  .shell .top-actions > .logout-button { flex: 1; }
  .shell .att-hero { padding: 16px 12px; }
  .shell .att-page-title { padding: 16px 12px; }
  .shell .att-hero h1, .shell .att-page-title h1 { font-size: 24px; padding-left: 0; }
  .shell .att-hero > .att-panel-heading { padding: 0; gap: 8px; }
  .shell .att-hero > .att-panel-heading h1 { flex-basis: 100%; }
  .shell .att-panel-heading button { margin-left: 0; }
  .shell .att-hero > .att-panel-heading > button { flex: 1 1 auto; }
  .attendance button, .attendance input:not([type=checkbox]), .attendance select { min-height: 44px; }
  .attendance button { font-size: 14px; }
  .shell .att-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 20px 0; }
  .shell .att-shortcuts button { gap: 8px; min-height: 76px; white-space: normal; }
  .shell .att-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .shell .att-metrics article { gap: 8px; }
  .shell .att-metrics strong { font-size: 36px; text-align: left; overflow-wrap: anywhere; }
  .shell .att-metric-link { width: 100%; text-align: left; }
  .shell .att-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 0; gap: 14px 12px; }
  .shell .att-filters > label, .shell .att-filters > .att-employee-filter { min-width: 0; max-width: none; width: 100%; gap: 6px; }
  .shell .att-filters input, .shell .att-filters select { min-inline-size: 0; width: 100%; }
  .shell .att-filter-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .shell .att-filter-actions button { padding: 8px 4px; white-space: nowrap; }
  .shell .att-list-toolbar, .shell .att-list-toolbar > div { flex-wrap: wrap; gap: 8px; }
  .shell .att-list-tools { margin-left: 0; width: 100%; min-width: 0; flex: 1 1 100%; justify-content: flex-start; }
  .shell .att-list-tools input { flex: 1 1 100%; width: 100%; }
  .shell .att-pagination, .shell .oa-pagination { flex-wrap: wrap; gap: 10px; }
  .shell .att-page-controls { flex: 1 1 100%; justify-content: space-between; margin-left: 0; }
  .shell .att-table-scroll, .shell .oa-table-scroll, .shell .hr-self-table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
  .shell .att-report-split { grid-template-columns: minmax(0, 1fr); }
  .shell .att-table-scroll:not(:has(.mobile-record-table))::before, .shell .oa-table-scroll::before, .shell .hr-employee-table-wrap::before { content: '左右滑动查看完整表格'; display: block; position: sticky; left: 0; padding: 8px 10px; font-size: 12px; color: #526173; background: #f6f7f9; }
  .shell .att-table-scroll:has(.mobile-record-table) { max-height: none; min-height: 0; overflow: visible; margin: 0; }
  .shell .mobile-record-table { display: block; width: 100%; min-width: 0; max-width: 100%; white-space: normal; }
  .mobile-record-table::before { content: '排序：左右滑动选择字段'; display: block; padding: 8px 12px 0; color: #526173; font-size: 12px; }
  .shell .mobile-record-table thead { display: block; width: 100%; overflow-x: auto; padding: 8px 12px; }
  .shell .mobile-record-table thead tr { display: flex; width: max-content; gap: 6px; }
  .shell .mobile-record-table th { display: block; position: static; height: auto; flex: 0 0 auto; border: 0; padding: 0; }
  .shell .mobile-record-table th > button { width: auto; min-height: 44px; gap: 8px; border: 1px solid #e4e6eb; border-radius: 4px; }
  .shell .mobile-record-table tbody { display: block; padding: 0 12px; }
  .shell .mobile-record-table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid #dce1e7; }
  .shell .mobile-record-table td { display: grid; grid-template-columns: minmax(0, 6em) minmax(0, 1fr); gap: 12px; position: static; width: auto; min-width: 0; max-width: none; height: auto; padding: 6px 0; border: 0; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; text-align: left; font-size: 14px; line-height: 1.6; }
  .shell .mobile-record-table td::before { content: attr(data-mobile-label); color: #526173; }
  .shell .mobile-record-value { min-width: 0; }
  .shell .mobile-record-table td.att-actions .mobile-record-value { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .shell .mobile-record-table td[colspan] { display: block; }
  .shell .mobile-record-table td[colspan]::before { content: none; }
  .shell .mobile-record-table td.att-empty { padding: 28px 0; }
  .attendance .att-modal-backdrop { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .attendance .att-editor { max-height: 100%; min-height: 0; }
  .attendance .att-editor > form { min-height: 0; }
  .attendance .att-form-grid, .attendance .att-detail { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .attendance .att-form-footer { flex-wrap: wrap; padding: 12px 16px; }
  .attendance .att-form-footer button { flex: 1; min-width: 0; }
  .attendance .att-editor > .att-panel-heading { padding: 12px 16px; }
  .attendance .att-field input { min-inline-size: 0; }
  .attendance .att-device-confirm label { min-width: 0; flex-basis: 100%; }
  .shell .hr-list-toolbar { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px; }
  .shell .hr-list-actions, .shell .hr-list-search { width: 100%; min-width: 0; flex-wrap: wrap; gap: 6px; margin-left: 0; }
  .shell .hr-list-toolbar button { min-height: 44px; }
  .shell .hr-list-search > label { flex: 1 1 100%; width: 100%; min-width: 0; height: 46px; }
  .shell .hr-list-search label > button { width: 44px; flex-basis: 44px; }
  .shell .hr-employee-table-wrap { height: 55dvh; min-height: 260px; }
  .shell .hr-employee-table [class*="hr-fixed-"] { position: relative !important; left: auto; right: auto; z-index: auto !important; }
  .shell .hr-list-footer { height: auto; min-height: 50px; flex-wrap: wrap; gap: 8px; padding: 12px; }
  .shell .oa-top, .shell .oa-top > div, .shell .oa-section-title { flex-wrap: wrap; gap: 8px; }
  .shell .oa-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .shell .oa-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell .oa-filters > label, .shell .oa-filters .oa-search { min-width: 0; }
  .shell .oa-filters .oa-search { grid-column: 1 / -1; }
  .oa-dialog input, .oa-dialog select, .oa-dialog textarea { min-inline-size: 0; }
  .shell .work-center header, .shell .work-center-subject, .shell .work-center footer { flex-wrap: wrap; }
  .shell .work-center header h1 { font-size: 22px; }
  .shell .work-center-subject strong, .shell .work-center time { overflow-wrap: anywhere; min-width: 0; }
}
@media screen and (max-width: 420px) {
  .shell .att-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shell .att-filters, .shell .oa-filters { grid-template-columns: minmax(0, 1fr); }
  .shell .att-hero > .att-panel-heading > button { flex-basis: calc(50% - 8px); }
  .shell .att-hero > .att-panel-heading > [data-att-update-device] { flex-basis: 100%; }
  .shell .hr-self-filters { grid-template-columns: minmax(0, 1fr); }
}
.hr-mobile-more-action { display: none !important; }
/* Employee archives use an app-style phone surface instead of shrinking the desktop grid. */
@media screen and (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .shell .workspace { overscroll-behavior-x: none; }
  .shell.page-hr .topbar { position: sticky; z-index: 60; top: 0; border-bottom-color: #e7ebf0; background: rgba(255,255,255,.97); }
  .shell.page-hr .content { padding: 10px 10px 20px; }
  .shell.page-hr .hr-archive-page { width: 100%; min-width: 0; }
  .shell.page-hr .hr-view-tabs:first-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; overflow: visible; padding: 4px; border: 1px solid #e4e8ed; border-radius: 12px; background: #f5f7f9; }
  .shell.page-hr .hr-view-tabs:first-child:not(:has(.hr-departed-view-tab)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell.page-hr .hr-view-tabs:first-child .hr-view-tab { min-width: 0; min-height: 42px; justify-content: center; padding: 7px 5px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; }
  .shell.page-hr .hr-view-tabs:first-child .hr-view-tab.active { background: #fff; color: #166b68; box-shadow: 0 2px 8px rgba(26,48,68,.09); }
  .shell.page-hr .hr-view-tabs:first-child .hr-view-tab .hr-reference-icon { display: none; }
  .shell.page-hr .hr-department-tabs { display: none; }
  .shell.page-hr .hr-mobile-department-filter { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; border: 1px solid #e4e8ed; border-radius: 12px; background: #fff; }
  .shell.page-hr .hr-mobile-department-filter span { flex: 0 0 auto; color: #617083; font-size: 13px; }
  .shell.page-hr .hr-mobile-department-filter select { flex: 1; min-width: 0; border: 0; background: transparent; color: #172435; text-align: right; }

  .shell.page-hr .hr-list-toolbar { display: flex; position: relative; margin-top: 10px; padding: 10px; overflow: visible; border: 1px solid #e4e8ed; border-radius: 14px; background: #fff; }
  .shell.page-hr .hr-list-search { order: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .shell.page-hr .hr-list-search > label { grid-column: 1 / -1; height: 46px; border-radius: 10px; background: #f5f7f9; }
  .shell.page-hr .hr-list-search > label input { background: transparent; }
  .shell.page-hr .hr-list-search .hr-filter-button,
  .shell.page-hr .hr-list-search [data-action="refreshHr"],
  .shell.page-hr .hr-list-search [data-hr-toolbar-panel="more"] { display: inline-flex; width: 100%; min-width: 0; justify-content: center; gap: 6px; border: 1px solid #dfe5ea; border-radius: 10px; background: #fff; color: #425469; }
  .shell.page-hr .hr-list-search [data-hr-toolbar-panel="fields"],
  .shell.page-hr .hr-list-search [data-hr-toolbar-panel="sort"],
  .shell.page-hr .hr-list-search [data-hr-toolbar-panel="group"] { display: none; }
  .shell.page-hr .hr-list-actions { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .shell.page-hr .hr-list-actions:not(:has(.hr-add-button)) { grid-template-columns: minmax(0, 1fr); }
  .shell.page-hr .hr-list-actions > button { width: 100%; min-width: 0; justify-content: center; border-radius: 10px; }
  .shell.page-hr .hr-list-actions [data-action="hrBulkDelete"],
  .shell.page-hr .hr-list-actions [data-action="hrOperationLog"] { display: none; }
  .shell.page-hr .hr-list-actions .hr-add-button { border-color: #167d77; background: #167d77; color: #fff; }
  .shell.page-hr .hr-toolbar-popover { position: fixed; z-index: 190; top: auto; right: 8px; bottom: calc(var(--mobile-bottom, 56px) + 8px); left: 8px; width: auto; max-height: min(68dvh, 620px); padding: 16px; border: 1px solid #dce3e9; border-radius: 16px 16px 12px 12px; background: #fff; box-shadow: 0 14px 34px rgba(20,38,55,.2); overflow-y: auto; }
  .shell.page-hr .hr-query-panel.hr-more-popover { width: auto; }
  .shell.page-hr .hr-query-panel button,
  .shell.page-hr .hr-query-panel label { min-height: 44px; }
  .shell.page-hr .hr-query-panel.hr-more-popover > button { display: block; width: 100%; border: 0; border-bottom: 1px solid #edf0f3; background: #fff; color: #253448; text-align: left; }
  .shell.page-hr .hr-query-panel.hr-more-popover > button.hr-mobile-more-action { display: block !important; }
  .shell.page-hr .hr-query-summary { margin-top: 8px; padding: 9px 10px; border-radius: 10px; }

  .shell.page-hr .hr-employee-table-frame,
  .shell.page-hr .hr-list-footer { display: none; }
  .shell.page-hr .hr-mobile-employee-list { display: grid; gap: 10px; margin-top: 10px; padding-bottom: 10px; }
  .shell.page-hr .hr-mobile-list-count { padding: 2px 4px; color: #667589; font-size: 13px; }
  .shell.page-hr .hr-mobile-employee-card { min-width: 0; padding: 14px; border: 1px solid #e3e8ed; border-radius: 14px; background: #fff; }
  .shell.page-hr .hr-mobile-employee-card.selected { border-color: #167d77; background: #f3faf9; }
  .shell.page-hr .hr-mobile-employee-card > header { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
  .shell.page-hr .hr-mobile-avatar { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 12px; background: #e8f3f2; color: #176f6a; font-size: 15px; font-weight: 700; }
  .shell.page-hr .hr-mobile-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .shell.page-hr .hr-mobile-employee-card header > div:nth-child(2) { min-width: 0; }
  .shell.page-hr .hr-mobile-employee-name { display: flex; min-width: 0; align-items: center; gap: 7px; }
  .shell.page-hr .hr-mobile-employee-name strong { overflow: hidden; color: #172435; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .shell.page-hr .hr-mobile-employee-card header > div:nth-child(2) > span { display: block; margin-top: 4px; color: #7a8796; font-size: 12px; font-variant-numeric: tabular-nums; }
  .shell.page-hr .hr-mobile-employee-card header > div:nth-child(2) > em { display: inline-block; margin-top: 5px; padding: 4px 7px; border-radius: 7px; background: #fff4df; color: #966119; font-size: 11px; font-style: normal; white-space: nowrap; }
  .shell.page-hr .hr-mobile-select { display: grid; width: 44px; height: 44px; place-items: center; cursor: pointer; }
  .shell.page-hr .hr-mobile-select input { width: 20px; height: 20px; margin: 0; accent-color: #167d77; }
  .shell.page-hr .hr-mobile-employee-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 14px 0; padding: 12px 0; border-block: 1px solid #edf0f3; }
  .shell.page-hr .hr-mobile-employee-card dl > div { min-width: 0; }
  .shell.page-hr .hr-mobile-employee-card dt { margin-bottom: 3px; color: #7a8796; font-size: 11px; }
  .shell.page-hr .hr-mobile-employee-card dd { margin: 0; overflow: hidden; color: #34465a; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .shell.page-hr .hr-mobile-employee-card footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shell.page-hr .hr-mobile-employee-card footer button { min-height: 44px; border: 1px solid #dce3e9; border-radius: 10px; background: #fff; color: #3f5165; font-size: 14px; }
  .shell.page-hr .hr-mobile-employee-card footer button.primary { grid-column: 1 / -1; border-color: #167d77; background: #167d77; color: #fff; }
  .shell.page-hr .hr-mobile-employee-card footer button.danger { color: #b43a43; }
  .shell.page-hr .hr-mobile-employee-card.departed { background: #fcfcfd; }
  .shell.page-hr .hr-mobile-empty { display: grid; gap: 7px; padding: 48px 20px; border: 1px dashed #d6dde4; border-radius: 14px; color: #7a8796; text-align: center; }
  .shell.page-hr .hr-mobile-empty strong { color: #34465a; }

  .drawer.hr-editor { display: flex; flex-direction: column; background: #f6f7f9; }
  .drawer.hr-editor .drawer-head { position: sticky; z-index: 2; top: 0; padding: max(14px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid #e2e7ec; background: #fff; }
  .drawer.hr-editor .drawer-body { flex: 1; min-height: 0; padding: 14px 12px 24px; overflow-y: auto; }
  .drawer.hr-editor .field-grid { gap: 13px; }
  .drawer.hr-editor .field { padding: 12px; border: 1px solid #e4e8ed; border-radius: 12px; background: #fff; }
  .drawer.hr-editor .drawer-foot { position: sticky; z-index: 2; bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid #dfe5ea; background: #fff; }
  .drawer.hr-editor .drawer-foot > * { min-width: 0; margin: 0; }
  .drawer.hr-editor [data-action="printHrRecord"] { grid-column: 1 / -1; border-color: #167d77; background: #edf8f7; color: #116b66; }
  .drawer.hr-editor .drawer-foot [data-close="hr-editor"]:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .shell .sidebar { transition: none; } }
