/* 最后修改：2026-09-16 15:25:23（北京时间）。仅缩小手机详情评分查看按钮，保持右列对齐。 */
#fo-mobile{display:none}
@media(max-width:760px){
  html.auth-has-session body.index-workspace-layout #page-followup.fm-ready>.fo-header,
  html.auth-has-session body.index-workspace-layout #page-followup.fm-ready>#foKanbanView,
  html.auth-has-session body.index-workspace-layout #page-followup.fm-ready>#foListView{display:none!important}
  /* Both modes own the complete mobile frame; desktop centering must not survive a mode switch. */
  html.auth-has-session body.index-workspace-layout #page-followup.fm-ready{left:0!important;right:0!important;top:0!important;bottom:0!important;width:100%!important;min-width:0!important;max-width:none!important;transform:none!important;box-sizing:border-box!important;overflow:hidden!important}
  #fo-mobile{display:block;position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--white,#fff);color:var(--text,#111827);font-family:var(--font);font-size:13px}
  #fo-mobile *{box-sizing:border-box}#fo-mobile [hidden]{display:none!important}
  #fo-mobile button,#fo-mobile input,#fo-mobile select{font:inherit;color:inherit}
  #fo-mobile button{cursor:pointer;border:0;background:none}#fo-mobile button:disabled,#fo-mobile select:disabled{opacity:.5;cursor:wait}
  #fo-mobile :is(button,select,input):focus-visible{outline:2px solid #64748b;outline-offset:2px}
  #fo-mobile .fm-head{padding:12px 16px 0;background:var(--bg,#f3f2ef)}
  #fo-mobile .fm-title{display:flex;align-items:center;gap:8px;min-height:42px;padding-left:42px}
  #fo-mobile h1{font-size:20px;margin:0;font-weight:700;white-space:nowrap}#fm-total{font-size:12px;color:var(--text2,#6b7280);white-space:nowrap}
  #fm-year{margin-left:auto;min-width:64px;max-width:80px;border:0;background:transparent;font-size:12px;min-height:36px}
  #fo-mobile .fm-view{display:flex;justify-content:space-between;align-items:center;margin:8px 0 4px;gap:10px}
  #fo-mobile .fm-view>div{display:flex;padding:3px;gap:3px;background:var(--border,#e9e9e7);border-radius:7px}
  #fo-mobile .fm-view button{padding:0 12px;min-height:36px;border-radius:5px;white-space:nowrap}
  #fo-mobile [data-mode][aria-pressed=true]{background:var(--white,#fff);font-weight:600}
  #fo-mobile #fm-import{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 10px;border:1px solid #b8c1cd;border-radius:6px;background:var(--white,#fff);font-size:13px;font-weight:600;color:var(--text,#111827);white-space:nowrap}
  #fo-mobile #fm-import:hover{background:var(--border,#e5e7eb)}
  #fm-stats{display:grid;grid-template-columns:1fr 1fr 1.6fr 1fr 1fr;gap:6px;margin:8px 0 14px;padding:10px 0 12px;font-size:12px;text-align:center}
  #fm-stats>div{min-width:0}#fm-stats strong{display:block;margin-top:5px;font-size:14px;color:var(--text,#111827);overflow-wrap:anywhere}
  /* Reserve the complete focus outline; the stage section must not paint over this input. */
  #fo-mobile .fm-search{position:relative;padding-bottom:8px}#fm-search{width:100%;height:42px;padding:0 40px 0 12px;border:1px solid var(--border,#dfe0dd);border-radius:7px;background:var(--white,#fff);font-size:16px!important}
  #fm-search::placeholder{font-size:13px}#fm-clear{position:absolute;right:0;top:0;width:40px;height:40px;font-size:19px!important}
  #fm-search::-webkit-search-cancel-button{-webkit-appearance:none}
  #fm-sort{min-height:32px;max-width:104px;border:0;background:transparent;font-size:12px!important;color:var(--text2,#6b7280)!important}
  #fo-mobile .fm-stage-nav{padding:6px 16px 0;background:var(--bg,#f3f2ef);border-bottom:1px solid var(--border,#dfe0dd)}
  #fm-tabs{display:grid;grid-template-columns:44px repeat(3,minmax(0,1fr));gap:6px;padding:2px 0 12px}
  #fo-mobile.fm-board #fm-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  #fo-mobile #fm-tabs button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px 4px;min-width:0;min-height:40px;padding:4px;border:1px solid var(--border,#dfe0dd);border-radius:6px;background:var(--white,#fff);font-size:12px;white-space:nowrap}
  #fo-mobile:not(.fm-board) #fm-tabs [data-stage=all]{grid-column:1;grid-row:1 / span 2;flex-direction:column;flex-wrap:nowrap;gap:5px}
  #fo-mobile:not(.fm-board) .fm-all-label{writing-mode:vertical-rl;text-orientation:upright;letter-spacing:2px}
  #fo-mobile #fm-tabs button[aria-pressed=true]{background:var(--stage);color:#000;border-color:#374151;box-shadow:inset 0 0 0 1px #374151;font-weight:600}
  #fo-mobile .fm-tab-count{font-size:11px;color:var(--text2,#6b7280);overflow-wrap:anywhere;white-space:normal}#fo-mobile [aria-pressed=true] .fm-tab-count{color:#000}
  #fo-mobile .fm-result{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:8px 16px;font-size:12px;color:var(--text2,#6b7280)}
  #fm-customers{padding:0 16px}#fo-mobile .fm-customer{padding:16px 0;border-bottom:1px solid var(--border,#e8eaee);cursor:pointer}
  #fo-mobile .fm-row-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
  #fo-mobile .fm-company{min-width:0;padding:0;overflow-wrap:anywhere;text-align:left;font-weight:600;font-size:15px;line-height:1.55}
  #fo-mobile .fm-stage-select{flex-shrink:0;min-width:88px;min-height:36px;border:0;border-radius:5px;padding:0 5px 0 8px;font-size:12px;color:#000}
  #fo-mobile .fm-stage-select option{background:#fff;color:#000}
  #fo-mobile .fm-person{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;font-size:13px;color:var(--text,#111827);margin-top:8px;line-height:1.6}
  #fo-mobile .fm-person>span{overflow-wrap:anywhere;min-width:0}
  #fo-mobile .fm-wechat{display:inline-flex;align-items:center;gap:4px;color:#15803d;font-size:12px;white-space:nowrap}
  #fo-mobile .fm-wechat svg{width:20px;height:20px;flex-shrink:0}
  #fo-mobile .fm-classification{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin-top:12px;font-size:12px}
  #fo-mobile .fm-level,#fo-mobile .fm-quality{display:grid;grid-template-rows:20px minmax(36px,auto);justify-items:start;align-items:center;gap:6px;min-width:0}
  #fo-mobile .fm-field-label{line-height:20px;font-weight:500;color:var(--text2,#6b7280)}
  #fo-mobile .fm-quality{justify-items:end;text-align:right;color:var(--text2,#6b7280)}
  #fo-mobile .fm-quality-unavailable{line-height:1.6;overflow-wrap:anywhere}
  #fo-mobile .fm-quality button{min-height:36px;padding:0;font-weight:600;color:var(--text,#111827)}
  #fo-mobile .fm-level .customer-level-select-shell{height:36px;max-width:100%;border-radius:6px}
  #fo-mobile .fm-level .customer-level-select-label{line-height:36px;font-size:12px}
  #fo-mobile .fm-level select:disabled{opacity:0}
  #fo-mobile .fm-level .customer-level-select-shell:has(select:disabled){opacity:.6;cursor:wait}
  #fo-mobile .fm-level .customer-level-select-shell:focus-within{outline:2px solid #64748b;outline-offset:2px}
  #fo-mobile .fm-note{font-size:14px;color:var(--text,#111827);line-height:1.65;margin-top:9px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #fo-mobile .fm-note.is-empty{color:var(--text2,#6b7280)}
  #fo-mobile .fm-times{display:grid;gap:4px;min-width:0}
  #fo-mobile .fm-recent,#fo-mobile .fm-joined{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:8px;line-height:1.6;overflow-wrap:anywhere}
  #fo-mobile .fm-recent.is-recent{color:#15803d}#fo-mobile .fm-recent.is-due{color:#92400e}#fo-mobile .fm-recent.is-overdue{color:#b91c1c}
  #fo-mobile .fm-row-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:10px;font-size:12px;line-height:1.6;color:var(--text2,#6b7280)}#fo-mobile .fm-row-bottom>span:last-child{white-space:nowrap}
  #fo-mobile .fm-detail-link{display:inline-flex;align-items:center;min-height:36px;font-size:13px;font-weight:600;color:var(--text,#111827)}
  .theme-dark #fo-mobile .fm-wechat,.theme-dark #fo-mobile .fm-recent.is-recent{color:#86efac}.theme-dark #fo-mobile .fm-recent.is-due{color:#fcd34d}.theme-dark #fo-mobile .fm-recent.is-overdue{color:#fca5a5}
  #fo-mobile .fm-overdue{color:#b45309}#fo-mobile .fm-end{font-size:11px;text-align:center;padding:12px 12px 24px;color:var(--text2,#9ca3af)}#fo-mobile .fm-empty{text-align:center;padding:40px 10px;color:var(--text2,#6b7280)}
  #fo-mobile.fm-board{background:var(--bg,#f3f2ef)}#fo-mobile.fm-board .fm-customer{background:var(--white,#fff);border:1px solid var(--border,#e0e3e8);border-radius:8px;padding:14px;margin-bottom:10px}
  #fo-mobile.fm-board .fm-company{font-size:15px}#fo-mobile.fm-board .fm-row-bottom{padding-top:4px;border-top:1px solid var(--border,#e8eaee)}
  #foDetailPanel{left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:calc(100% - 28px)!important;max-width:480px!important;max-height:85dvh!important;border-radius:10px!important;transition:opacity .15s!important}
  #foDetailOverlay{z-index:12000;backdrop-filter:none;-webkit-backdrop-filter:none}
  #foDetailPanel{z-index:12001;background:#fff}
  .theme-dark #foDetailPanel,.theme-soft #foDetailPanel{background:var(--white)}
  #foDetailPanel:not(.open){visibility:hidden}
  #foDetailPanel .fo-dp-header{padding:14px 16px;flex-shrink:0}#foDetailPanel .fo-dp-company{font-size:16px}
  #foDetailPanel .fo-dp-header-bar{gap:8px}#foDetailPanel .fo-dp-close{min-width:56px;min-height:36px;padding:0 10px;border:1px solid var(--border)}
  #foDetailPanel .fo-dp-remove-btn{font-size:11px;padding:4px 8px;border-color:var(--border);min-height:30px}
  #foDetailPanel .fo-dp-body{min-height:0;overscroll-behavior:contain}#foDetailPanel .fo-dp-section{padding:12px 16px}
  #foDetailPanel #dpInfo>div:first-child{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;font-size:13px;overflow-wrap:anywhere}
  #foDetailPanel .fo-dp-quality{grid-column:2;min-width:0;text-align:left}
  #foDetailPanel .fo-dp-quality-action{margin-top:3px;text-align:left;min-width:0}
  #foDetailPanel .fo-dp-quality-action button{min-width:48px;min-height:32px}
  #foDetailPanel .fo-timeline{padding:12px 16px}#foDetailPanel .fo-tl-input-wrap{padding:12px 16px;flex-shrink:0}#foDetailPanel .fo-tl-input{min-width:0;font-size:16px}
  #foDetailPanel .fo-tl-submit{min-height:40px;white-space:nowrap}#foDetailPanel .fo-tl-submit:disabled{opacity:.5;cursor:wait}
}
