/* 仅移动工作台页面使用，桌面业务页面保持原有样式。 */
html.mobile-mode .mobile-page {
  --mobile-blue: #006cff;
  --mobile-surface: hsl(var(--card));
  --mobile-text: hsl(var(--foreground));
  --mobile-muted: hsl(var(--muted-foreground));
  --mobile-border: hsl(var(--border));
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px 24px;
  color: var(--mobile-text);
  overflow-wrap: anywhere;
}
html.mobile-mode :where(.mobile-page) button,
html.mobile-mode :where(.mobile-page) input { font: inherit; }
html.mobile-mode .mobile-page button { cursor: pointer; touch-action: manipulation; }
html.mobile-mode .mobile-page button:disabled { cursor: default; opacity: .45; }
html.mobile-mode .mobile-page button:focus-visible,
html.mobile-mode .mobile-page input:focus-visible { outline: 3px solid hsl(var(--primary) / .35); outline-offset: 2px; }
html.mobile-mode .mobile-page .icon { width: 20px; height: 20px; flex: 0 0 20px; }
html.mobile-mode .mobile-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
html.mobile-mode .mobile-page-heading h1 { margin: 0; font-size: 28px; font-weight: 750; line-height: 36px; letter-spacing: -.5px; }
html.mobile-mode .mobile-page-heading p { margin: 3px 0 0; color: var(--mobile-muted); font-size: 14px; line-height: 20px; }
html.mobile-mode .mobile-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid var(--mobile-border); border-radius: 9px; background: var(--mobile-surface); color: var(--mobile-blue); font-weight: 600; line-height: 1.4; }
html.mobile-mode .mobile-action-primary { color: #fff; background: var(--mobile-blue); border-color: var(--mobile-blue); }
html.mobile-mode .mobile-action-compact { padding: 8px; border-color: transparent; background: transparent; font-size: 13px; font-weight: 500; }
html.mobile-mode .mobile-action-danger { color: #df373f; border-color: #df373f; }
html.mobile-mode .mobile-actions-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
html.mobile-mode .mobile-section { margin-top: 16px; }
html.mobile-mode .mobile-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; }
html.mobile-mode .mobile-section-heading h2,
html.mobile-mode .mobile-app-group h2,
html.mobile-mode .mobile-display-settings h2 { font-size: 17px; line-height: 1.5; margin: 0; font-weight: 650; }
html.mobile-mode .mobile-caption { font-size: 12px; line-height: 1.7; color: var(--mobile-muted); margin: 8px 0; }
html.mobile-mode .mobile-live-notice { min-height: 21px; margin-bottom: 0; }
html.mobile-mode .mobile-text-error { color: #c9363c; }
html.mobile-mode .mobile-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 18px; text-align: center; border: 1px solid var(--mobile-border); border-radius: 12px; background: var(--mobile-surface); }
html.mobile-mode .mobile-empty > .icon { width: 32px; height: 32px; flex-basis: 32px; margin-bottom: 12px; color: var(--mobile-muted); }
html.mobile-mode .mobile-empty strong { font-size: 16px; line-height: 1.5; }
html.mobile-mode .mobile-empty p { max-width: 300px; color: var(--mobile-muted); font-size: 13px; line-height: 1.65; margin: 8px 0 12px; }
html.mobile-mode .mobile-home-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 32px; margin-bottom: 16px; }
html.mobile-mode .mobile-home-logo { display: flex; align-items: center; gap: 8px; }
html.mobile-mode .mobile-home-logo .logo-mark { width: 32px; height: 32px; display: block; }
html.mobile-mode .mobile-home-logo strong { font-size: 20px; font-weight: 750; }
html.mobile-mode .mobile-home-logo > span:last-child { font-size: 14px; color: var(--mobile-muted); }
html.mobile-mode .mobile-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 70px; width: 70px; height: 70px; border-radius: 50%; border: none; background: hsl(var(--primary) / .11); color: var(--mobile-blue); font-size: 27px; font-weight: 650; }
html.mobile-mode .mobile-avatar-small { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
html.mobile-mode .mobile-task-tabs { display: flex; border-bottom: 1px solid var(--mobile-border); margin: 0 -16px 12px; padding: 0 16px; }
html.mobile-mode .mobile-task-tab { position: relative; flex: 1; min-width: 0; border: 0; background: none; color: var(--mobile-muted); display: flex; align-items: center; flex-direction: column; gap: 0; padding: 0 6px 10px; font-size: 14px; line-height: 20px; }
html.mobile-mode .mobile-task-tab strong { font-size: 22px; line-height: 26px; font-variant-numeric: tabular-nums; color: var(--mobile-text); }
html.mobile-mode .mobile-task-tab small { font-size: 10px; }
html.mobile-mode .mobile-task-tab-active,
html.mobile-mode .mobile-task-tab-active strong { color: var(--mobile-blue); }
html.mobile-mode .mobile-task-tab-active::after { content: ''; position: absolute; bottom: -1px; left: 25%; right: 25%; height: 3px; border-radius: 3px 3px 0 0; background: var(--mobile-blue); }
html.mobile-mode .mobile-task-list { display: grid; gap: 10px; }
html.mobile-mode .mobile-task-card { overflow: hidden; padding: 12px; border-radius: 10px; background: var(--mobile-surface); border: 1px solid var(--mobile-border); }
html.mobile-mode .mobile-task-card-featured { border-left: 3px solid var(--mobile-blue); }
html.mobile-mode .mobile-task-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
html.mobile-mode .mobile-task-title { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; text-align: left; color: inherit; min-height: 42px; }
html.mobile-mode .mobile-task-title strong { display: block; font-size: 17px; line-height: 24px; font-weight: 700; }
html.mobile-mode .mobile-task-title small { display: block; margin-top: 1px; color: var(--mobile-muted); font-size: 13px; line-height: 18px; }
html.mobile-mode .mobile-status { flex: 0 0 auto; max-width: 92px; border-radius: 6px; padding: 5px 8px; margin-top: 2px; background: hsl(35 100% 95%); color: #ae6500; font-size: 11px; font-weight: 600; line-height: 1.4; }
html.mobile-mode .mobile-task-card-body { margin: 7px 0; border-top: 1px solid var(--mobile-border); padding-top: 4px; }
html.mobile-mode .mobile-task-line { display: flex; align-items: flex-start; gap: 7px; margin: 5px 0; font-size: 14px; line-height: 20px; }
html.mobile-mode .mobile-task-line .icon { width: 17px; height: 17px; flex-basis: 17px; margin-top: 2px; color: var(--mobile-muted); }
html.mobile-mode .mobile-task-card > .mobile-action { width: 100%; min-height: 38px; padding: 7px 12px; border-radius: 6px; font-size: 15px; }
html.mobile-mode .mobile-task-card > .mobile-action-compact { justify-content: flex-end; min-height: 34px; padding: 4px; }
html.mobile-mode .mobile-notice { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; line-height: 1.6; }
html.mobile-mode .mobile-notice-error { background: hsl(0 80% 97%); color: #b62e38; }
html.mobile-mode .mobile-notice .mobile-action { flex: 0 0 auto; }
html.mobile-mode .mobile-common-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
html.mobile-mode .mobile-route-link { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 54px; padding: 12px; color: inherit; border: 0; text-align: left; background: transparent; }
html.mobile-mode .mobile-route-icon { color: var(--mobile-blue); display: flex; flex: 0 0 auto; }
html.mobile-mode .mobile-route-copy { flex: 1; min-width: 0; }
html.mobile-mode .mobile-route-copy strong { display: block; font-size: 16px; line-height: 24px; font-weight: 400; }
html.mobile-mode .mobile-route-copy small { display: block; color: var(--mobile-muted); font-size: 11px; line-height: 1.5; margin-top: 4px; }
html.mobile-mode .mobile-route-link > .icon:last-child { color: var(--mobile-muted); width: 15px; flex-basis: 15px; }
html.mobile-mode .mobile-common-grid .mobile-route-link { background: var(--mobile-surface); border: 1px solid var(--mobile-border); border-radius: 8px; min-height: 42px; padding: 8px 10px; gap: 8px; }
html.mobile-mode .mobile-common-grid .mobile-route-link:nth-child(3) { grid-column: 1 / -1; }
html.mobile-mode .mobile-common-grid .mobile-route-link:nth-child(-n+2) > .icon:last-child { display: none; }
html.mobile-mode .mobile-common-grid .mobile-route-icon .icon { width: 18px; height: 18px; flex-basis: 18px; }
html.mobile-mode .mobile-tab-settings { background: var(--mobile-surface); border: 1px solid var(--mobile-border); padding: 15px; border-radius: 12px; margin-bottom: 20px; }
html.mobile-mode .mobile-tab-settings-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
html.mobile-mode .mobile-tab-settings-summary > div { font-size: 14px; line-height: 1.6; }
html.mobile-mode .mobile-tab-settings-summary .mobile-action { min-height: 36px; padding: 5px 7px; }
html.mobile-mode .mobile-tab-settings > .mobile-live-notice { margin-top: 2px; }
html.mobile-mode .mobile-tab-settings-body { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--mobile-border); }
html.mobile-mode .mobile-tab-settings-body[hidden],
html.mobile-mode .mobile-tabs-savebar[hidden],
html.mobile-mode .mobile-tabs-savebar-actions > [hidden] { display: none; }
html.mobile-mode .mobile-tabs-savebar { position: sticky; bottom: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 12px; margin: 16px -4px -24px; background: var(--mobile-surface); border: 1px solid var(--mobile-border); border-radius: 12px 12px 0 0; box-shadow: 0 -5px 20px hsl(var(--foreground) / .08); }
html.mobile-mode .mobile-tabs-savebar-copy { flex: 1 1 140px; min-width: 0; }
html.mobile-mode .mobile-tabs-savebar-copy > strong { font-size: 14px; line-height: 1.5; }
html.mobile-mode .mobile-tabs-savebar-copy > .mobile-caption { margin: 3px 0 0; font-size: 11px; line-height: 1.5; }
html.mobile-mode .mobile-tabs-savebar-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
html.mobile-mode .mobile-tabs-savebar-actions .mobile-action { font-size: 13px; padding-left: 9px; padding-right: 9px; }
html.mobile-mode .mobile-selection-count { color: var(--mobile-blue); font-size: 13px; font-weight: 600; }
html.mobile-mode .mobile-selected-tabs { list-style: none; padding: 0; margin: 10px 0; }
html.mobile-mode .mobile-selected-tab { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--mobile-border); flex-wrap: wrap; }
html.mobile-mode .mobile-selected-number { font-size: 12px; color: var(--mobile-muted); flex: 0 0 14px; }
html.mobile-mode .mobile-selected-title { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 120px; font-size: 14px; line-height: 1.5; }
html.mobile-mode .mobile-selected-title .icon { color: var(--mobile-blue); width: 17px; height: 17px; flex-basis: 17px; }
html.mobile-mode .mobile-sort-actions { display: flex; margin-left: auto; gap: 0; }
html.mobile-mode .mobile-sort-actions .mobile-action { min-width: 44px; padding: 6px 5px; font-size: 11px; gap: 2px; }
html.mobile-mode .mobile-sort-actions .icon { width: 13px; height: 13px; flex-basis: 13px; }
html.mobile-mode .mobile-selection-empty { font-size: 13px; line-height: 1.7; padding: 12px; color: var(--mobile-muted); background: hsl(var(--muted) / .5); border-radius: 8px; }
html.mobile-mode .mobile-tab-fixed { display: flex; align-items: center; gap: 20px; margin: 12px 0 16px; color: var(--mobile-muted); font-size: 12px; }
html.mobile-mode .mobile-tab-fixed span { display: inline-flex; gap: 5px; align-items: center; }
html.mobile-mode .mobile-tab-fixed .icon { width: 16px; height: 16px; flex-basis: 16px; }
html.mobile-mode .mobile-search { display: flex; align-items: center; gap: 9px; padding: 0 13px; min-height: 44px; background: hsl(var(--muted)); border: 1px solid transparent; border-radius: 9px; color: var(--mobile-muted); margin: 0 0 20px; }
html.mobile-mode .mobile-search-input { color: var(--mobile-text); flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; font-size: 16px; }
html.mobile-mode .mobile-search-input::placeholder { color: var(--mobile-muted); }
html.mobile-mode .mobile-app-group { margin: 0 0 24px; }
html.mobile-mode .mobile-app-group h2 { margin-bottom: 10px; }
html.mobile-mode .mobile-app-rows { border: 1px solid var(--mobile-border); background: var(--mobile-surface); border-radius: 9px; overflow: hidden; box-shadow: 0 2px 3px hsl(var(--foreground) / .02); }
html.mobile-mode .mobile-app-row { display: flex; align-items: center; padding-right: 9px; gap: 3px; }
html.mobile-mode .mobile-app-row + .mobile-app-row { border-top: 1px solid var(--mobile-border); }
html.mobile-mode .mobile-app-row .mobile-route-link { flex: 1; }
html.mobile-mode .mobile-app-row .mobile-route-link { min-height: 48px; padding: 10px 12px; gap: 12px; }
html.mobile-mode .mobile-app-row .mobile-route-copy strong { font-size: 17px; }
html.mobile-mode .mobile-app-row .mobile-route-icon { color: var(--mobile-text); }
html.mobile-mode .mobile-app-row .mobile-route-icon .icon { width: 23px; height: 23px; }
html.mobile-mode .mobile-apps:not(.mobile-apps-editing) .mobile-tab-toggle { display: none; }
html.mobile-mode .mobile-apps-editing .mobile-app-row .mobile-route-link > .icon:last-child { display: none; }
html.mobile-mode .mobile-apps .mobile-tab-settings[hidden] { display: none; }
html.mobile-mode .mobile-apps .mobile-page-heading > .mobile-action { padding: 4px 0 4px 8px; font-size: 12px; align-self: flex-start; margin-top: 4px; }
html.mobile-mode .mobile-tab-toggle { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; min-height: 44px; padding: 7px; border: 0; border-radius: 7px; font-size: 11px; background: transparent; color: var(--mobile-blue); white-space: nowrap; }
html.mobile-mode .mobile-tab-toggle .icon { width: 14px; height: 14px; flex-basis: 14px; }
html.mobile-mode .mobile-tab-toggle-selected { color: var(--mobile-muted); }
html.mobile-mode .mobile-profile { min-height: calc(100dvh - var(--mobile-nav-height) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); display: flex; flex-direction: column; padding: 48px 16px 28px; }
html.mobile-mode .mobile-profile-card { display: flex; align-items: center; gap: 20px; padding: 0 2px; margin-bottom: 16px; min-height: 76px; }
html.mobile-mode .mobile-profile-card .mobile-avatar { width: 72px; height: 72px; flex-basis: 72px; font-size: 28px; }
html.mobile-mode .mobile-profile-identity { min-width: 0; }
html.mobile-mode .mobile-profile-identity h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 750; }
html.mobile-mode .mobile-profile-identity p { margin: 4px 0 6px; color: var(--mobile-muted); font-size: 16px; }
html.mobile-mode .mobile-role-badge { display: inline-block; color: var(--mobile-blue); background: hsl(var(--primary) / .1); border-radius: 5px; font-size: 12px; padding: 4px 7px; line-height: 1.5; }
html.mobile-mode .mobile-profile-group { flex-shrink: 0; background: var(--mobile-surface); border: 1px solid var(--mobile-border); border-radius: 10px; margin: 0 0 18px; overflow: hidden; }
html.mobile-mode .mobile-account-details { margin: 0; padding: 0 15px; }
html.mobile-mode .mobile-account-details > div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; font-size: 14px; line-height: 1.6; }
html.mobile-mode .mobile-account-details > div + div { border-top: 1px solid var(--mobile-border); }
html.mobile-mode .mobile-account-details dt { flex: 0 0 auto; color: var(--mobile-muted); }
html.mobile-mode .mobile-account-details dd { margin: 0; text-align: right; }
html.mobile-mode .mobile-scope-note { color: var(--mobile-muted); font-size: 12px; line-height: 1.7; padding: 0 15px 14px; margin: 0; }
html.mobile-mode .mobile-setting-row { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: inherit; padding: 10px 14px; min-height: 48px; width: 100%; text-align: left; }
html.mobile-mode .mobile-setting-row + .mobile-setting-row { border-top: 1px solid var(--mobile-border); }
html.mobile-mode .mobile-setting-label { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; }
html.mobile-mode .mobile-setting-value { flex: 0 1 auto; color: var(--mobile-muted); font-size: 13px; white-space: nowrap; }
html.mobile-mode .mobile-setting-row > .icon:last-child { width: 16px; flex-basis: 16px; color: var(--mobile-muted); }
html.mobile-mode .mobile-display-settings { padding: 15px; }
html.mobile-mode .mobile-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
html.mobile-mode .mobile-mode-option { min-height: 44px; padding: 9px 4px; border: 1px solid var(--mobile-border); border-radius: 8px; background: transparent; color: var(--mobile-muted); font-size: 13px; }
html.mobile-mode .mobile-mode-option-active { background: hsl(var(--primary) / .08); border-color: var(--mobile-blue); color: var(--mobile-blue); font-weight: 600; }
html.mobile-mode .mobile-logout { flex-shrink: 0; width: 100%; margin-top: auto; min-height: 46px; border-radius: 8px; font-size: 17px; font-weight: 400; }
html.mobile-mode .mobile-profile > .mobile-live-notice:empty { display: none; }
html.mobile-mode .mobile-settings-sheet { --mobile-blue: #006cff; --mobile-text: hsl(var(--foreground)); --mobile-muted: hsl(var(--muted-foreground)); --mobile-border: hsl(var(--border)); }
html.mobile-mode .mobile-settings-sheet .mobile-account-details > div { font-size: 15px; }
html.mobile-mode .mobile-settings-sheet .mobile-mode-options { display: flex; flex-direction: column; gap: 0; padding-bottom: 20px; }
html.mobile-mode .mobile-settings-sheet .mobile-mode-option { display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 8px; text-align: left; padding: 14px; font-size: 16px; }
html.mobile-mode .mobile-settings-sheet .mobile-mode-option .icon { width: 20px; height: 20px; }
html.mobile-mode .mobile-home .mobile-page-heading { margin-bottom: 10px; }
html.mobile-mode .mobile-home .mobile-page-heading h1 { font-size: 24px; line-height: 32px; }
html.mobile-mode .mobile-home .mobile-page-heading > .mobile-action { width: 36px; min-height: 36px; overflow: hidden; font-size: 0; gap: 0; }
html.mobile-mode .mobile-home .mobile-section-heading { margin-bottom: 8px; }
html.mobile-mode .mobile-home .mobile-section-heading > .mobile-action { min-height: 32px; padding: 4px 8px; }
html.mobile-mode .mobile-home .mobile-task-line { font-size: 15px; }
html.mobile-mode.dark .mobile-page { --mobile-blue: #70adff; }
html.mobile-mode.dark .mobile-action-primary { background: #1268e8; border-color: #1268e8; color: #fff; }
html.mobile-mode.dark .mobile-status { background: #392d18; color: #f2bd6a; }
html.mobile-mode.dark .mobile-notice-error { background: #39252b; color: #ffb5bf; }
html.mobile-mode.dark .mobile-text-error { color: #ffb5bf; }
@media (max-width: 360px) {
  html.mobile-mode .mobile-page { padding-left: 14px; padding-right: 14px; }
  html.mobile-mode .mobile-setting-row { gap: 9px; padding-left: 12px; padding-right: 12px; }
  html.mobile-mode .mobile-setting-label { font-size: 15px; }
  html.mobile-mode .mobile-setting-value { font-size: 12px; }
  html.mobile-mode .mobile-selected-title { min-width: 100px; }
  html.mobile-mode .mobile-sort-actions .mobile-action { font-size: 10px; }
  html.mobile-mode .mobile-app-row { padding-right: 3px; }
}
