/* 手机独立工作台。所有规则限定在 phone 视图，桌面仍使用 app.css 的管理布局。 */
.phone-layout { scrollbar-width: thin; scrollbar-color: #8a909a66 transparent; }
.phone-layout::-webkit-scrollbar { width: 4px; }
.phone-layout::-webkit-scrollbar-thumb { background: #8a909a66; border-radius: 8px; }
.phone-layout::-webkit-scrollbar-track { background: transparent; }
.phone-shell, .phone-auth {
  --phone-bg: #f5f6f8; --phone-card: #fff; --phone-border: #e9ebef; --phone-muted: #858a94;
  --phone-ink: #23272f; --phone-soft: #eef0f4;
  color: var(--phone-ink); background: var(--phone-bg); min-height: 100vh; min-height: 100dvh;
}
[data-theme="blackgold"] .phone-shell, [data-theme="blackgold"] .phone-auth {
  --phone-bg: #101216; --phone-card: #1a1d23; --phone-border: #292d35; --phone-muted: #9299a5;
  --phone-ink: #eff1f5; --phone-soft: #242831;
}
.shell.phone-shell { display: block; }
.phone-shell button { touch-action: manipulation; }
.phone-header {
  position: sticky; top: 0; z-index: 35; height: 66px; display: flex; align-items: center; gap: 8px;
  padding: 0 max(18px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: var(--phone-bg); border-bottom: 0;
}
.phone-header-title { flex: 1; min-width: 0; font-size: 19px; font-weight: 750; line-height: 1.3; }
.phone-header-title small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; color: var(--phone-muted); letter-spacing: .04em; }
.app-android .phone-header { height: 54px; }
.app-android .phone-header-title small, .app-android .phone-header > .phone-icon:last-child { display: none; }
.phone-shell .phone-icon { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px;
  padding: 0; border: 0; background: var(--phone-card); border-radius: 15px; color: var(--phone-ink); box-shadow: none; flex: 0 0 auto; }
.phone-back .icon { transform: rotate(180deg); }
.main.phone-main { padding: 4px max(18px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.phone-main.is-entering > * { animation: none; }
.phone-main > * { max-width: 640px; margin-left: auto; margin-right: auto; min-width: 0; }
.phone-page { display: grid; gap: 24px; }
.phone-tabbar { position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; display: flex; align-items: stretch;
  height: calc(76px + env(safe-area-inset-bottom)); padding: 6px 10px env(safe-area-inset-bottom); background: var(--phone-card);
  border-top: 1px solid var(--phone-border); box-shadow: 0 -8px 24px -18px #151a2530; }
.phone-tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--phone-muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.phone-tab-icon { display: grid; place-items: center; width: 48px; height: 30px; border-radius: 12px; }
.phone-tabbar a.active { color: var(--brand); }
.phone-tabbar a.active .phone-tab-icon { background: var(--brand-soft); }
.phone-tabbar a:hover { text-decoration: none; }
.phone-home-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 22px 22px 0;
  color: #fff; background: radial-gradient(110% 90% at 110% -5%, #eb200065, transparent 70%), #1c2028;
  box-shadow: 0 12px 24px -20px #eb200090; }
.phone-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: #b6bac4; }
.phone-live { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 20px; background: #ffffff0b; font-size: 10px; }
.phone-live::before { content: ""; width: 5px; height: 5px; background: #69d0a1; border-radius: 50%; }
.phone-home-hero h1 { font-size: clamp(21px,5.5vw,27px); line-height: 1.5; margin: 20px 0 4px; color: #fff; overflow-wrap: anywhere; letter-spacing: -.03em; }
.phone-home-hero p { font-size: 12px; color: #bfc3cc; margin: 0 0 24px; }
.phone-hero-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #ffffff13; padding: 17px 0 19px; }
.phone-hero-metrics a { display: flex; flex-direction: column; gap: 4px; color: #fff; text-decoration: none; min-height: 48px; }
.phone-hero-metrics a + a { border-left: 1px solid #ffffff13; padding-left: 16px; }
.phone-hero-metrics strong { font-size: 27px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.phone-hero-metrics span { font-size: 11px; color: #b6bac4; }
.phone-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.phone-shell .phone-shortcut { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none;
  border: 0; padding: 0; min-height: 74px; box-shadow: none; color: var(--phone-ink); }
.phone-shortcut > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 18px; background: var(--phone-card); color: var(--phone-ink); border: 1px solid var(--phone-border); }
.phone-shortcut strong { font-size: 12px; font-weight: 600; white-space: nowrap; }
.phone-shortcut.primary-action > span { color: #fff; background: linear-gradient(135deg,#ff4a1f,#eb2000); border-color: transparent; box-shadow: 0 7px 16px -9px #eb2000aa; }
.phone-attention { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--phone-border);
  border-radius: 18px; background: var(--phone-card); color: var(--phone-ink); text-decoration: none; }
.phone-attention:hover { text-decoration: none; }
.phone-attention > span:nth-child(2) { flex: 1; min-width: 0; }
.phone-attention strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.phone-attention small { display: block; font-size: 10px; color: var(--phone-muted); margin-top: 3px; }
.phone-attention-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--ok-soft); color: var(--ok); flex: 0 0 auto; }
.phone-attention.warning .phone-attention-icon { background: var(--brand-soft); color: var(--brand); }
.phone-section { min-width: 0; }
.phone-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.phone-section h2 { font-size: 17px; font-weight: 750; color: var(--phone-ink); margin: 0 0 12px; letter-spacing: -.02em; }
.phone-section-head h2 { margin: 0; }
.phone-section-head a { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--phone-muted); min-height: 36px; text-decoration: none; }
.phone-card-list { display: grid; gap: 10px; }
.phone-run-card, .phone-work-card { display: block; background: var(--phone-card); border: 1px solid var(--phone-border); border-radius: 19px;
  padding: 16px; color: var(--phone-ink); text-decoration: none; min-width: 0; }
.phone-run-main { display: block; color: inherit; text-decoration: none; }
.phone-run-main:hover, .phone-work-card:hover { text-decoration: none; }
.phone-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.phone-card-heading .badge { font-size: 10px; padding: 1px 8px; line-height: 21px; flex: 0 0 auto; }
.phone-card-heading .badge::before { width: 4px; height: 4px; }
.phone-card-heading h3, .phone-work-card h3 { font-size: 15px; line-height: 1.6; font-weight: 650; margin: 0; color: var(--phone-ink); overflow-wrap: anywhere; }
.phone-work-card h3 { margin: 11px 0 6px; }
.phone-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-top: 8px; font-size: 11px; color: var(--phone-muted); overflow-wrap: anywhere; }
.phone-card-meta .mono, .phone-card-heading .mono { font-size: 10px; }
.phone-card-progress { margin-top: 13px; }
.phone-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--phone-border); color: var(--phone-muted); font-size: 10px; }
.phone-shell .phone-text-button { border: 0; background: none; box-shadow: none; padding: 0 0 0 10px; min-height: 44px; font-size: 12px; color: var(--phone-ink); }
.phone-priority { color: var(--warn); margin-left: auto; }
.phone-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  padding: 27px 18px; min-height: 158px; background: var(--phone-card); border: 1px dashed var(--phone-border); border-radius: 19px; text-align: center; }
.phone-empty > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 17px; background: var(--phone-soft); color: var(--phone-muted); margin-bottom: 3px; }
.phone-empty strong { font-size: 13px; font-weight: 600; }
.phone-empty p { margin: 0; font-size: 11px; color: var(--phone-muted); line-height: 1.7; }
.phone-footnote { text-align: center; font-size: 10px; line-height: 1.8; color: var(--phone-muted); margin: 0; }
.phone-page-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phone-page-intro h1 { font-size: 24px; line-height: 1.4; margin: 0 0 6px; font-weight: 750; letter-spacing: -.03em; }
.phone-page-intro p { font-size: 11px; color: var(--phone-muted); margin: 0; line-height: 1.6; }
.phone-shell .phone-primary-compact { flex: 0 0 auto; border-radius: 14px; min-height: 44px; padding: 10px 14px; font-size: 12px; }
.phone-chips { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 1px; min-width: 0; }
.phone-chips::-webkit-scrollbar { display: none; }
.phone-shell .phone-chips button { flex: 0 0 auto; min-height: 44px; border: 1px solid var(--phone-border); border-radius: 13px;
  box-shadow: none; background: var(--phone-card); color: var(--phone-muted); font-size: 12px; padding: 7px 14px; }
.phone-shell .phone-chips button.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-ring); font-weight: 650; }
.phone-list-count { font-size: 10px; color: var(--phone-muted); margin: -10px 0 -13px; }
.phone-filter-details { border: 1px solid var(--phone-border); border-radius: 15px; background: var(--phone-card); }
.phone-filter-details summary { display: flex; align-items: center; gap: 8px; padding: 13px 15px; font-size: 12px; cursor: pointer; }
.phone-filter-details .scope-filters { border: 0; margin: 0; padding-top: 0; background: none; }
.phone-load-more, .phone-pager button { width: 100%; min-height: 44px; border-radius: 14px; border-color: var(--phone-border); background: var(--phone-card); color: var(--phone-ink); box-shadow: none; font-size: 12px; }
.phone-pager { display: flex; gap: 10px; }
.phone-order-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 18px 0; border: 1px solid var(--phone-border); background: var(--phone-card); border-radius: 19px; }
.phone-order-metrics > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.phone-order-metrics > div + div { border-left: 1px solid var(--phone-border); }
.phone-order-metrics strong { font-size: 23px; font-weight: 650; }
.phone-order-metrics span { font-size: 11px; color: var(--phone-muted); }
.phone-search { display: flex; align-items: center; gap: 8px; padding: 4px 5px 4px 13px; min-width: 0;
  background: var(--phone-card); border: 1px solid var(--phone-border); border-radius: 16px; }
.phone-search > .icon { color: var(--phone-muted); }
.phone-search input { flex: 1; width: 0; min-width: 0; background: none; border: 0; box-shadow: none; padding: 9px 0; font-size: 16px; }
.phone-search button { flex: 0 0 auto; white-space: nowrap; min-width: 54px; padding: 8px 12px; border: 0; background: var(--phone-soft); border-radius: 12px; box-shadow: none; min-height: 44px; font-size: 11px; }
.phone-profile { display: flex; align-items: center; gap: 15px; padding: 23px 18px; border-radius: 22px; background: var(--phone-card); border: 1px solid var(--phone-border); }
.phone-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; font-size: 25px; font-weight: 650;
  color: #fff; background: linear-gradient(135deg,#ff4a1f,#eb2000); flex: 0 0 auto; }
.phone-profile h1 { margin: 0 0 5px; font-size: 21px; overflow-wrap: anywhere; }
.phone-profile p { margin: 0; color: var(--phone-muted); font-size: 11px; overflow-wrap: anywhere; }
.phone-theme { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-theme button { display: flex; align-items: center; justify-content: flex-start; gap: 9px; padding: 12px; border-radius: 15px;
  background: var(--phone-card); border: 1px solid var(--phone-border); box-shadow: none; color: var(--phone-ink); font-size: 12px; }
.phone-theme button.active { border-color: var(--brand); }
.phone-theme-swatch { width: 25px; height: 25px; border-radius: 9px; background: #f1f3f6; border: 1px solid #dce0e6; }
.phone-theme-swatch.blackgold { background: #1c2028; border-color: #655344; }
.phone-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.phone-catalog a { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 11px; border: 1px solid var(--phone-border);
  border-radius: 15px; background: var(--phone-card); color: var(--phone-ink); text-decoration: none; font-size: 11px; }
.phone-catalog-icon { color: var(--brand); flex: 0 0 auto; }
.phone-catalog a > .icon { margin-left: auto; width: 12px; color: var(--phone-muted); }
.phone-shell .phone-setting-row { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 52px;
  padding: 13px 16px; border: 1px solid var(--phone-border); border-radius: 15px; background: var(--phone-card); color: var(--phone-ink); font-size: 12px; box-shadow: none; }
.phone-setting-row + .phone-setting-row { margin-top: 9px; }
.phone-setting-row > .icon:last-child:not(:first-child) { margin-left: auto; }
.phone-setting-row.danger { color: var(--danger); }
.phone-loading { display: grid; gap: 16px; }
.phone-loading > div { height: 136px; background: var(--phone-soft); border-radius: 22px; }
.phone-loading > div:first-child { height: 216px; }
.phone-auth { padding: 22px 22px 28px; }
.phone-auth-header { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; max-width: 420px; margin: auto; }
.phone-auth-header .theme-switch { position: static; margin-left: auto; }
.phone-auth-intro { max-width: 420px; margin: 38px auto 30px; }
.phone-eyebrow { display: block; font-size: 11px; color: var(--brand); margin-bottom: 13px; font-weight: 650; letter-spacing: .05em; }
.phone-auth-intro h2 { margin: 0 0 14px; font-size: 37px; line-height: 1.3; letter-spacing: -.04em; font-weight: 800; }
.phone-auth-intro p { max-width: 28em; margin: 0; font-size: 12px; line-height: 1.9; color: var(--phone-muted); }
.phone-auth-body { max-width: 420px; margin: 0 auto 24px; }
.phone-auth .login-card { padding: 22px 20px; border-radius: 22px; background: var(--phone-card); border-color: var(--phone-border); box-shadow: none; }
.phone-auth .login-card h1 { font-size: 20px; color: var(--phone-ink); background: none; -webkit-text-fill-color: currentColor; }
.phone-auth .login-card p.sub { font-size: 12px; margin-bottom: 22px; }
.phone-auth input { min-height: 49px; font-size: 16px; border-radius: 13px; }
.phone-auth .field { margin-bottom: 17px; }
.phone-auth .login-card form button.primary { min-height: 49px; border-radius: 14px; }
.phone-auth .auth-switch button { min-height: 44px; font-size: 12px; border-radius: 13px; }
.phone-file-list, .phone-files { display: grid; gap: 10px; min-width: 0; }
.phone-file-card { padding: 13px 13px 8px; background: var(--phone-card); border: 1px solid var(--phone-border); border-radius: 18px; }
.phone-file-card.is-selected { border-color: var(--brand); background: var(--brand-softer); }
.phone-file-main { display: grid; grid-template-columns: 22px 38px minmax(0,1fr); align-items: center; gap: 10px; }
.phone-file-check { display: grid; place-items: center; width: 44px; margin-left: -11px; min-height: 44px; }
.phone-file-check input { width: 19px; height: 19px; margin: 0; }
.phone-file-symbol { display: grid; place-items: center; width: 38px; height: 42px; }
.phone-file-name { min-width: 0; }
.phone-file-name .drive-label { max-width: none; display: block; white-space: normal; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 1.6; }
.phone-file-name button.drive-label { min-height: 44px; }
.phone-file-name .phone-card-meta { margin-top: 2px; font-size: 10px; }
.phone-file-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--phone-border); padding-top: 4px; gap: 8px; }
.phone-file-footer > span { font-size: 10px; color: var(--phone-muted); }
.phone-files-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 2px; }
.phone-files-head > label { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.phone-files-head select { width: auto; min-height: 38px; max-width: 140px; font-size: 11px; }

/* 以下都以 phone-layout / phone-main 限定，Android 横屏也保持手机操作方式。 */
  .phone-layout .modal-back { place-items: end center; padding: 0; }
  .phone-layout .modal { width: 100%; max-width: 640px; max-height: 92dvh; border-radius: 24px 24px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
  .phone-layout .modal input:not([type="checkbox"]):not([type="radio"]), .phone-layout .modal textarea, .phone-layout .modal select { font-size: 16px; min-height: 46px; }
  .phone-layout .modal-close { width: 44px; height: 44px; min-height: 44px; top: 10px; right: 10px; }
  .phone-layout .modal-actions { margin: 20px -20px calc(-20px - env(safe-area-inset-bottom)); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); bottom: calc(-20px - env(safe-area-inset-bottom)); }
  .phone-layout .modal-actions button { min-height: 46px; border-radius: 14px; }
  .phone-layout .toasts { bottom: calc(89px + env(safe-area-inset-bottom)); }
  .phone-main .workspace-hero { align-items: flex-start; }
  .phone-main .workspace-hero h1 { font-size: 21px; }
  .phone-main .workspace-hero p, .phone-main .page-head .hint { font-size: 11px; }
  .phone-main .panel { border-radius: 18px; border-color: var(--phone-border); box-shadow: none; background: var(--phone-card); }
  .phone-main .panel > header { font-size: 14px; background: none; padding: 15px; }
  .phone-main .kv { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 14px 12px; font-size: 12px; }
  .phone-main .kv dt { font-size: 11px; }
  .phone-main .kv dd { min-width: 0; overflow-wrap: anywhere; }
  .phone-main .work-detail-grid { display: flex; flex-direction: column; }
  .phone-main .workspace-page > .text-button { display: none; }
  .phone-main .work-main, .phone-main .work-aside { width: 100%; }
  .phone-main .work-aside { display: grid; grid-template-columns: 1fr; }
  .phone-main .work-description { font-size: 12px; padding: 16px; }
  .phone-main .timeline li { flex-direction: column; gap: 5px; }
  .phone-main .timeline .when { flex: none; width: auto; }
  .phone-main .drive-page { gap: 16px; }
  .phone-main .drive-page .page-head h1 { display: none; }
  .phone-main .drive-page .page-head { margin: 0; }
  .phone-main .drive-page .page-head .hint { margin: 0; }
  .phone-main .drive-page .page-head .row-actions { flex: 1 1 100%; }
  .phone-main .drive-page .page-head button { min-height: 44px; font-size: 12px; border-radius: 13px; }
  .phone-main .drive-toolbar { gap: 12px; }
  .phone-main .segmented { max-width: 100%; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .phone-main .segmented button { flex: 0 0 auto; font-size: 11px; min-height: 40px; padding: 7px 12px; }
  .phone-main .drive-search { width: 100%; min-height: 46px; border-radius: 14px; }
  .phone-main .drive-page > .panel { border: 0; background: none; margin: 0; }
  .phone-main .drive-page > .panel > header { border: 0; padding: 0 0 13px; min-height: 38px; flex-wrap: wrap; }
  .phone-main .drive-breadcrumb { font-size: 11px; }
  .phone-main .drive-batch { padding: 12px; margin: 0 0 12px; border-radius: 16px; }
  .phone-main .drive-usage { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .phone-main .drive-foot { flex-direction: column; gap: 15px; }
  .phone-main .drive-file-name { min-width: 0; }
  .phone-main .drive-page .upload-tray { bottom: 90px; }
  .phone-main .phone-file-footer .icon-button { width: 44px; height: 44px; min-height: 44px; border-radius: 12px; }
/* ------------------------------------------------------------ 2026-10-19 手机界面精简（Claude）
   列表从一条一张大卡片改成同一块里的紧凑两行；页内大标题、说明文字不再和顶栏重复；
   主操作放右下角；"我的"改成四列小图标。都限定在手机视图，桌面不受影响。 */
.phone-page { gap: 20px; }
.phone-page-tight { gap: 14px; }

/* 分组列表：一块白底，行与行之间一条细线 */
.phone-list { background: var(--phone-card); border: 1px solid var(--phone-border); border-radius: 18px; overflow: hidden; min-width: 0; }
.phone-list > * + * { border-top: 1px solid var(--phone-border); }
.phone-row { display: flex; align-items: stretch; min-width: 0; }
.phone-row-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 11px 14px;
  color: var(--phone-ink); text-decoration: none; }
.phone-row-link:hover { text-decoration: none; }
.phone-row-link:active { background: var(--phone-soft); }
.phone-row-main { flex: 1; min-width: 0; }
.phone-row-title { font-size: 14.5px; font-weight: 600; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-row-meta { margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--phone-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-row-progress { margin-top: 7px; }
.phone-row-side { flex: 0 0 auto; }
.phone-row-side .badge { font-size: 11px; padding: 0 8px; line-height: 22px; }
.phone-row-side .badge::before { width: 5px; height: 5px; }
.phone-row-flag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; line-height: 18px;
  font-weight: 650; vertical-align: 1px; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.phone-shell .phone-row-action { flex: 0 0 auto; display: grid; place-items: center; width: 48px; min-height: 48px; padding: 0;
  border: 0; border-left: 1px solid var(--phone-border); border-radius: 0; background: none; box-shadow: none; color: var(--phone-muted); }
.phone-shell .phone-row-action:active { background: var(--phone-soft); }

/* 执行记录按天分组 */
.phone-days { display: grid; gap: 16px; min-width: 0; }
.phone-day-label { margin: 0 0 8px 4px; font-size: 12px; font-weight: 650; color: var(--phone-muted); }
.phone-list-count { margin: 0; text-align: center; font-size: 11px; color: var(--phone-muted); }

/* 右下角主操作 */
.phone-shell .phone-fab { position: fixed; z-index: 55; right: max(18px, env(safe-area-inset-right));
  bottom: calc(92px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 6px; height: 50px;
  padding: 0 20px 0 15px; border: 0; border-radius: 25px; color: #fff; font-size: 14px; font-weight: 650;
  background: linear-gradient(135deg, #ff4a1f, #eb2000); box-shadow: 0 10px 24px -10px #eb2000aa; }
.phone-main:has(.phone-fab) { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }

/* 状态筛选：圆角胶囊，矮一点 */
.phone-shell .phone-chips button { min-height: 38px; padding: 6px 14px; border-radius: 19px; }

/* 工单页三个数字 */
.phone-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.phone-shell .phone-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 58px; padding: 10px 13px;
  border: 1px solid var(--phone-border); border-radius: 15px; background: var(--phone-card); box-shadow: none; color: var(--phone-ink); }
.phone-stat strong { font-size: 20px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.phone-stat span { font-size: 11px; color: var(--phone-muted); }

/* 工作台：头部卡片收紧，小节标题小一号 */
.phone-home-hero { padding: 18px 20px 0; border-radius: 22px; }
.phone-home-hero h1 { margin: 12px 0 14px; font-size: clamp(20px, 5.2vw, 24px); line-height: 1.4; }
.phone-hero-metrics { padding: 14px 0 16px; }
.phone-hero-metrics strong { font-size: 24px; }
.phone-shortcut > span { width: 48px; height: 48px; border-radius: 16px; }
.phone-section h2 { font-size: 16px; }
.phone-section-head { margin-bottom: 8px; }

/* 我的 */
.phone-profile { flex-wrap: wrap; gap: 12px; padding: 16px; border-radius: 20px; }
.phone-avatar { width: 48px; height: 48px; border-radius: 16px; font-size: 21px; }
.phone-profile-text { flex: 1; min-width: 0; }
.phone-profile h1 { font-size: 18px; margin: 0 0 2px; }
.phone-profile-theme { flex: 1 1 100%; }
.phone-profile-theme .phone-theme { gap: 8px; }
.phone-profile-theme .phone-theme button { min-height: 44px; padding: 8px 12px; border-radius: 13px; }
.phone-section h2.phone-group-title { margin: 0 0 8px 4px; font-size: 13px; font-weight: 650; color: var(--phone-muted); letter-spacing: 0; }
.phone-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 10px 6px;
  background: var(--phone-card); border: 1px solid var(--phone-border); border-radius: 18px; }
.phone-app { display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 78px; padding: 8px 2px; border-radius: 12px;
  color: var(--phone-ink); text-decoration: none; text-align: center; }
.phone-app:hover { text-decoration: none; }
.phone-app:active { background: var(--phone-soft); }
.phone-app-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--brand-softer); color: var(--brand); }
.phone-app-label { font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; }
.phone-shell .phone-row-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; border: 0;
  border-radius: 0; background: none; box-shadow: none; color: var(--phone-ink); font-size: 14px; text-align: left; }
.phone-row-button > span { flex: 1; }
.phone-row-button.danger { color: var(--danger); }

/* 桌面页面放进手机外壳时：页内大标题和顶栏重复（详情页保留，顶栏只写"详情"）、说明文字、"← 返回"都不显示 */
.phone-main:not([data-detail]) .page-head h1 { display: none; }
.phone-main:not([data-detail]) .page-head:not(:has(button, a, select, input, .badge)) { display: none; }
.phone-main .page-head .hint, .phone-main .page-back { display: none; }
.phone-main[data-detail] .page-head h1 { font-size: 20px; line-height: 1.35; }
.phone-main .page-head { gap: 8px; }
/* 表格叠成卡片后：空值不占行，行距收紧 */
.phone-main .stackable td.is-empty { display: none; }
.phone-main .stackable tbody tr { padding: 10px 14px; }
.phone-main .stackable td { padding-top: 3px; padding-bottom: 3px; font-size: 12.5px; }

/* 表格叠成卡片：每条记录两列排（小标签在上、值在下），首格和宽格占整行，操作按钮放到右上角，一条记录从六行左右缩到三四行 */
.phone-main .stackable tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 6px 14px; }
.phone-main .stackable td, .phone-main .stackable td:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  text-align: left; min-width: 0; overflow-wrap: anywhere; }
.phone-main .stackable td::before { font-size: 11px; color: var(--phone-muted); padding: 0; }
.phone-main .stackable td > * { justify-self: auto; grid-column: auto; }
.phone-main .stackable td:first-child, .phone-main .stackable td.wrap { grid-column: 1 / -1; }
.phone-main .stackable td:first-child { padding-right: 76px; }
.phone-main .segmented button { white-space: nowrap; }
.phone-main .stackable td[data-label=""]:last-child { position: absolute; top: 8px; right: 12px; flex-direction: row; padding: 0; }
.phone-main .stackable td[data-label=""]:last-child button { min-height: 34px; padding: 4px 12px; }
@media (min-width: 600px) and (max-width: 860px) {
  .phone-main { padding-top: 16px; }
  .phone-page { gap: 28px; }
  .phone-header { padding-left: max(24px, calc((100vw - 640px) / 2)); padding-right: max(24px, calc((100vw - 640px) / 2)); }
}
@media (min-width: 861px) {
  .phone-main > * { max-width: 920px; }
  .phone-header { padding-left: max(24px, calc((100vw - 920px) / 2)); padding-right: max(24px, calc((100vw - 920px) / 2)); }
  .phone-card-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .phone-tabbar { padding-left: max(10px, calc((100vw - 700px) / 2)); padding-right: max(10px, calc((100vw - 700px) / 2)); }
  .phone-home-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 20px; }
  .phone-hero-top { grid-column: 1 / -1; }
  .phone-home-hero h1 { margin-top: 18px; }
  .phone-hero-metrics { grid-column: 2; grid-row: 2 / span 2; border: 0; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-shell *, .phone-auth * { animation: none !important; transition: none !important; }
}
