/* =============================================================
   세일즈 플로우 › 문의·영업 보드 — 시안 v4(public/static/inquiry-pipeline-board-preview.html) 그대로.
   범위: #pipeline-content 안쪽만(선택자 전부 html #pipeline-content 로 시작), 값은 ui-tokens.css 토큰만.
   PC: 5열 + 오른쪽 칸(요약 / 고른 카드 상세). 휴대폰(≤768): 단계 탭 + 누른 단계만, 카드는 아래 시트.
   세일즈 플로우 공용 스타일(.toss-module input · button 의 !important)을 이기려고 입력칸·단추 일부에 !important.
   되돌리기: index.tsx 의 이 파일 <link> 한 줄 + ws-pipeline.js.
   ============================================================= */
html #pipeline-content .fb-root{ color:var(--ui-text-1); font-size:var(--ui-text-body); line-height:var(--ui-leading) }
html #pipeline-content .fb-root button,
html #pipeline-content .fb-root input,
html #pipeline-content .fb-root select,
html #pipeline-content .fb-root textarea{ font-size:inherit; color:inherit; letter-spacing:inherit }
html #pipeline-content .fb-root button:hover,
html #pipeline-content .fb-root button:active{ transform:none !important }
html #pipeline-content .fb-mtabs{ display:none }
html #pipeline-content .fb-bar{ display:flex; align-items:center; gap:8px; margin-bottom:10px; flex-wrap:wrap }
html #pipeline-content .fb-seg{ display:inline-flex; background:var(--ui-fill); border-radius:var(--ui-radius-control); padding:2px; gap:2px }
html #pipeline-content .fb-seg button{ border:0; background:none; height:24px; padding:0 10px; border-radius:6px !important; font-size:var(--ui-text-footnote); color:var(--ui-text-2); cursor:pointer; white-space:nowrap }
html #pipeline-content .fb-seg button.on{ background:var(--ui-surface); color:var(--ui-text-1); font-weight:var(--ui-weight-semibold); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line) }
html #pipeline-content .fb-btn{ display:inline-flex; align-items:center; justify-content:center; gap:4px; height:28px; padding:0 12px; border-radius:var(--ui-radius-control) !important; border:0; background:var(--ui-surface); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line-control),var(--ui-elev-raised); cursor:pointer; font-weight:var(--ui-weight-semibold); font-size:var(--ui-text-body); color:var(--ui-text-1); white-space:nowrap }
html #pipeline-content .fb-btn.pri{ background:var(--ui-accent); color:var(--ui-on-accent); box-shadow:none }
html #pipeline-content .fb-btn.pri:disabled{ opacity:.45; cursor:default }
html #pipeline-content .fb-btn:disabled{ cursor:default }
html #pipeline-content .fb-btn.danger{ color:var(--ui-danger) }
html #pipeline-content .fb-btn.sm{ height:24px; padding:0 9px; font-size:var(--ui-text-footnote) }
html #pipeline-content .fb-btn i{ font-size:var(--ui-text-footnote) }
html #pipeline-content select.fb-ctl{ height:28px; border-radius:var(--ui-radius-control) !important; border:var(--ui-hairline) solid var(--ui-line-control) !important; background:var(--ui-surface) !important; color:var(--ui-text-1) !important; padding:0 8px; font-size:var(--ui-text-body); box-shadow:none !important }
html #pipeline-content .fb-sp{ flex:1 }
html #pipeline-content .fb-chip{ display:inline-flex; align-items:center; gap:4px; height:22px; padding:0 8px; border-radius:11px; font-size:var(--ui-text-caption); font-weight:var(--ui-weight-semibold); background:var(--ui-fill-subtle); color:var(--ui-text-2); white-space:nowrap; flex:none }
html #pipeline-content .fb-chip.red{ background:var(--ui-danger-tint); color:var(--ui-danger) }
html #pipeline-content .fb-chip.orange{ background:var(--ui-warning-tint); color:var(--ui-warning) }
html #pipeline-content .fb-chip.blue{ background:var(--ui-accent-tint); color:var(--ui-accent-text) }
html #pipeline-content .fb-chip.green{ background:var(--ui-success-tint); color:var(--ui-success) }
html #pipeline-content .fb-layout{ display:flex; gap:12px; align-items:flex-start }
html #pipeline-content .fb-board{ flex:1; min-width:0; display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:10px; overflow-x:auto; padding-bottom:6px }
html #pipeline-content .fb-col{ background:var(--ui-fill-subtle); border-radius:var(--ui-radius-group); padding:6px; min-height:200px; min-width:0 }
html #pipeline-content .fb-col-h{ display:flex; align-items:center; gap:6px; height:24px; padding:0 4px; font-weight:var(--ui-weight-bold); font-size:var(--ui-text-body); white-space:nowrap }
html #pipeline-content .fb-col-rule{ padding:0 4px 5px; font-size:var(--ui-text-caption); color:var(--ui-text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
html #pipeline-content .fb-col-h .fb-n{ font-size:var(--ui-text-caption); font-weight:var(--ui-weight-semibold); color:var(--ui-text-2); background:var(--ui-fill); border-radius:9px; padding:0 6px; line-height:18px }
html #pipeline-content .fb-col-add{ width:100%; height:28px; border:var(--ui-hairline) dashed var(--ui-line-dashed); background:none; border-radius:var(--ui-radius-card) !important; color:var(--ui-accent-text); font-size:var(--ui-text-footnote); font-weight:var(--ui-weight-semibold); cursor:pointer; margin-bottom:6px }
html #pipeline-content .fb-card{ background:var(--ui-surface); border-radius:var(--ui-radius-card); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line),var(--ui-elev-raised); padding:7px 9px; margin-bottom:6px; cursor:pointer; outline:none; transition:background-color 1.4s ease }
html #pipeline-content .fb-card:hover{ box-shadow:0 0 0 var(--ui-hairline) var(--ui-line-control),var(--ui-elev-control) }
html #pipeline-content .fb-card:focus-visible{ box-shadow:var(--ui-focus-ring) }
html #pipeline-content .fb-card.sel{ box-shadow:0 0 0 2px var(--ui-accent) }
html #pipeline-content .fb-card.flash{ background:var(--ui-accent-flash); transition:none }
html #pipeline-content .fb-c1{ display:flex; align-items:center; gap:6px }
html #pipeline-content .fb-c1 b{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:var(--ui-weight-semibold) }
html #pipeline-content .fb-c2{ display:flex; align-items:center; gap:6px; margin-top:3px; font-size:var(--ui-text-footnote); color:var(--ui-text-2); white-space:nowrap; overflow:hidden }
html #pipeline-content .fb-c2 .fb-who{ overflow:hidden; text-overflow:ellipsis; min-width:0 }
/* 담당 이름은 다 보이고(짧다) 뒤따르는 근거·함께 담당 글이 줄어든다 */
html #pipeline-content .fb-c2 > .fb-who:first-child{ flex:0 0 auto; max-width:70% }
html #pipeline-content .fb-age{ font-size:var(--ui-text-caption); font-weight:var(--ui-weight-semibold); color:var(--ui-text-2); white-space:nowrap; font-variant-numeric:tabular-nums }
html #pipeline-content .fb-age.orange{ color:var(--ui-warning) }
html #pipeline-content .fb-age.red{ color:var(--ui-danger) }
html #pipeline-content .fb-c3{ margin-top:4px; font-size:var(--ui-text-footnote); color:var(--ui-text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
html #pipeline-content .fb-empty{ font-size:var(--ui-text-footnote); color:var(--ui-text-2); text-align:center; padding:14px 4px }
/* 오른쪽 칸: 요약(아무것도 안 고름) / 상세(카드 고름) */
/* 앱은 왼쪽 메뉴(190px)가 있어 시안(메뉴 없음)보다 좁다 → 1600px 아래에서는 오른쪽 칸 340px 로 5열이 한 화면에 들게 */
html #pipeline-content .fb-side{ width:340px; flex:none; position:sticky; top:12px }
@media (min-width:1600px){ html #pipeline-content .fb-side{ width:380px } }
html #pipeline-content .fb-panel{ background:var(--ui-surface); border-radius:var(--ui-radius-panel); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line); overflow:hidden }
html #pipeline-content .fb-side.open .fb-rail{ display:none }
html #pipeline-content .fb-rail{ margin-top:12px }
html #pipeline-content .fb-rail:has(> #pl-target-panel:empty){ display:none }
html #pipeline-content .fb-p-head{ padding:12px 14px 10px; border-bottom:var(--ui-hairline) solid var(--ui-line); display:flex; gap:8px; align-items:flex-start }
html #pipeline-content .fb-p-tt{ min-width:0 }
html #pipeline-content .fb-p-head h2{ margin:0; font-size:var(--ui-text-title3) !important; font-weight:var(--ui-weight-bold) !important; line-height:1.3; color:var(--ui-text-1) !important; overflow-wrap:anywhere }
html #pipeline-content .fb-sub{ font-size:var(--ui-text-footnote); color:var(--ui-text-2); margin-top:3px; display:flex; gap:6px; align-items:center; flex-wrap:wrap }
html #pipeline-content .fb-x{ width:22px; height:22px; border-radius:11px !important; border:0; background:var(--ui-fill); color:var(--ui-text-2); cursor:pointer; flex:none; margin-left:auto; display:inline-flex; align-items:center; justify-content:center; padding:0 }
/* 아래쪽 56px: 화면 오른쪽 아래에 떠 있는 도움말(?) 단추가 마지막 줄을 가리지 않게 끝까지 내려 볼 자리 */
html #pipeline-content .fb-p-body{ padding:10px 14px 56px; max-height:calc(100vh - 200px); overflow:auto }
html #pipeline-content .fb-grp-t{ font-size:var(--ui-text-footnote); color:var(--ui-text-2); font-weight:var(--ui-weight-semibold); margin:10px 0 4px }
html #pipeline-content .fb-grp-row{ display:flex; align-items:center }
html #pipeline-content .fb-grp-row .fb-lnk{ margin-left:auto }
html #pipeline-content .fb-kv{ border-radius:var(--ui-radius-group); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line) }
html #pipeline-content .fb-kv > div{ display:flex; gap:10px; padding:6px 10px; border-bottom:var(--ui-hairline) solid var(--ui-line) }
html #pipeline-content .fb-kv > div:last-child{ border-bottom:0 }
html #pipeline-content .fb-kv > div > span:first-child{ width:64px; flex:none; color:var(--ui-text-2) }
html #pipeline-content .fb-kv > div > span:last-child{ flex:1; min-width:0; word-break:break-all }
html #pipeline-content .fb-pre{ white-space:pre-wrap }
html #pipeline-content .fb-wait{ color:var(--ui-text-2) }
html #pipeline-content .fb-err{ color:var(--ui-danger) }
html #pipeline-content .fb-assign{ display:flex; gap:6px; align-items:center; margin-top:6px }
html #pipeline-content .fb-assign select{ flex:1; min-width:0 }
html #pipeline-content .fb-hint{ font-size:var(--ui-text-footnote); color:var(--ui-text-2); margin-top:6px }
html #pipeline-content .fb-hint.err{ color:var(--ui-danger) }
html #pipeline-content .fb-hint.ok{ color:var(--ui-success) }
html #pipeline-content textarea.fb-in{ display:block; width:100%; min-height:92px; resize:vertical; border-radius:var(--ui-radius-control) !important; border:var(--ui-hairline) solid var(--ui-line-control) !important; padding:8px 10px; background:var(--ui-surface) !important; color:var(--ui-text-1) !important; line-height:1.5; box-shadow:none !important }
html #pipeline-content input.fb-in{ width:100%; height:28px; border-radius:var(--ui-radius-control) !important; border:var(--ui-hairline) solid var(--ui-line-control) !important; padding:0 9px; background:var(--ui-surface) !important; color:var(--ui-text-1) !important; box-shadow:none !important }
html #pipeline-content .fb-in:focus,
html #pipeline-content select.fb-ctl:focus{ outline:none; box-shadow:var(--ui-focus-ring) !important }
html #pipeline-content .fb-in.bad{ box-shadow:var(--ui-error-ring) !important; border-color:var(--ui-danger) !important }
html #pipeline-content .fb-in[readonly]{ color:var(--ui-text-2) !important }
html #pipeline-content .fb-choices{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:8px }
html #pipeline-content .fb-choice{ border:var(--ui-hairline) solid var(--ui-line-control); background:var(--ui-surface); border-radius:var(--ui-radius-control); padding:6px; cursor:pointer; text-align:center; outline:none }
html #pipeline-content .fb-choice:focus-visible{ box-shadow:var(--ui-focus-ring) }
html #pipeline-content .fb-choice b{ display:block; font-size:var(--ui-text-body) }
html #pipeline-content .fb-choice small{ display:block; font-size:var(--ui-text-caption); color:var(--ui-text-2) }
html #pipeline-content .fb-choice.on{ border-color:var(--ui-accent); background:var(--ui-accent-tint) }
html #pipeline-content .fb-choice.on b{ color:var(--ui-accent-text) }
html #pipeline-content .fb-choice.need{ box-shadow:var(--ui-error-ring); border-color:var(--ui-danger) }
html #pipeline-content .fb-ev{ display:flex; flex-direction:column; gap:6px; margin-top:6px }
html #pipeline-content .fb-ev label{ display:flex; gap:8px; align-items:center; padding:6px 10px; border-radius:var(--ui-radius-control); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line); cursor:pointer }
html #pipeline-content .fb-ev label.on{ box-shadow:0 0 0 1.5px var(--ui-accent); background:var(--ui-accent-tint) }
html #pipeline-content .fb-ev-none{ padding:8px 10px; border-radius:var(--ui-radius-control); background:var(--ui-danger-tint); color:var(--ui-danger); font-size:var(--ui-text-footnote) }
html #pipeline-content .fb-ev-acts{ display:flex; gap:6px; flex-wrap:wrap }
html #pipeline-content .fb-won-row{ display:flex; justify-content:flex-end; margin-top:8px }
html #pipeline-content .fb-sum-row{ display:flex; justify-content:space-between; padding:6px 10px; border-bottom:var(--ui-hairline) solid var(--ui-line) }
html #pipeline-content .fb-sum-row:last-child{ border-bottom:0 }
html #pipeline-content .fb-sum-row b{ font-variant-numeric:tabular-nums }
html #pipeline-content .fb-sum-row[data-open]{ cursor:pointer }
html #pipeline-content .fb-kbd{ display:inline-block; min-width:18px; padding:0 4px; border-radius:4px; box-shadow:0 0 0 var(--ui-hairline) var(--ui-line-control); font-size:var(--ui-text-caption); text-align:center; background:var(--ui-surface) }
html #pipeline-content .fb-toast{ position:fixed; right:20px; top:64px; z-index:1200; background:var(--ui-surface); border-radius:var(--ui-radius-group); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line),var(--ui-elev-popover); padding:0 14px; height:46px; display:none; align-items:center; gap:10px; font-weight:var(--ui-weight-semibold) }
html #pipeline-content .fb-toast.show{ display:flex }
html #pipeline-content .fb-toast i{ color:var(--ui-success-dot) }
html #pipeline-content .fb-toast #fb-toast-msg{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
html #pipeline-content .fb-toast button{ border:0; background:none; color:var(--ui-accent-text); font-weight:var(--ui-weight-semibold); cursor:pointer; flex:none; height:32px; padding:0 4px }
/* 시트(창) */
html #pipeline-content .fb-scrim{ position:fixed; inset:0; background:var(--ui-scrim); display:none; align-items:center; justify-content:center; z-index:1100 }
html #pipeline-content .fb-scrim.show{ display:flex }
html #pipeline-content .fb-sheet{ width:460px; max-width:calc(100vw - 24px); max-height:calc(100vh - 48px); display:flex; flex-direction:column; background:var(--ui-surface); border-radius:var(--ui-radius-panel); box-shadow:var(--ui-elev-sheet); overflow:hidden }
html #pipeline-content .fb-sheet[data-kind="archive"],
html #pipeline-content .fb-sheet[data-kind="link"]{ width:560px }
html #pipeline-content .fb-sheet .fb-p-head h2{ font-size:var(--ui-text-title2) !important }
html #pipeline-content .fb-foot{ display:flex; justify-content:flex-end; gap:8px; padding:10px 14px; border-top:var(--ui-hairline) solid var(--ui-line) }
html #pipeline-content .fb-form{ display:grid; grid-template-columns:70px 1fr; gap:8px 10px; align-items:center; padding:12px 14px; overflow:auto }
html #pipeline-content .fb-form label{ color:var(--ui-text-2); font-size:var(--ui-text-footnote) }
html #pipeline-content .fb-form textarea.fb-in{ min-height:70px }
html #pipeline-content .fb-arch-q{ padding:10px 14px 0 }
html #pipeline-content .fb-arch-wrap{ max-height:50vh; overflow:auto; margin-top:8px }
html #pipeline-content .fb-arch{ width:100%; border-collapse:collapse }
html #pipeline-content .fb-arch th{ height:31px; background:var(--ui-fill-subtle); font-size:var(--ui-text-footnote); color:var(--ui-text-2); text-align:left; padding:0 10px; font-weight:var(--ui-weight-semibold); white-space:nowrap }
html #pipeline-content .fb-arch td{ height:32px; padding:0 10px; border-bottom:var(--ui-hairline) solid var(--ui-line); white-space:nowrap; max-width:180px; overflow:hidden; text-overflow:ellipsis }
html #pipeline-content .fb-arch td:last-child{ max-width:none; overflow:visible; text-align:right }
html #pipeline-content .fb-num{ text-align:right; font-variant-numeric:tabular-nums }
html #pipeline-content .fb-note{ margin-top:14px; font-size:var(--ui-text-footnote); color:var(--ui-text-2) }
html #pipeline-content .fb-ret .fb-bar{ margin-bottom:8px }
/* 단계 칸 — 지나간 칸도 계속 보인다(흐름 파악용) */
html #pipeline-content .fb-stages{ display:flex; flex-direction:column; gap:0 }
html #pipeline-content .fb-stg{ position:relative; border-radius:var(--ui-radius-group); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line); padding:7px 10px 8px; background:var(--ui-surface); margin-top:12px }
html #pipeline-content .fb-stg + .fb-stg::before{ content:''; position:absolute; left:16px; top:-12px; height:12px; border-left:1.5px solid var(--ui-line) }
html #pipeline-content .fb-stg-h{ display:flex; align-items:center; gap:6px; font-weight:var(--ui-weight-semibold); font-size:var(--ui-text-footnote); white-space:nowrap }
html #pipeline-content .fb-stg-h > span:not(.fb-chip){ overflow:hidden; text-overflow:ellipsis }
html #pipeline-content .fb-stg-at{ margin-left:auto; color:var(--ui-text-2); font-weight:var(--ui-weight-regular); font-variant-numeric:tabular-nums }
html #pipeline-content .fb-stg-txt{ white-space:pre-wrap; margin-top:4px; line-height:1.5; overflow-wrap:anywhere }
html #pipeline-content .fb-stg-ph{ margin-top:3px; font-size:var(--ui-text-footnote); color:var(--ui-text-2) }
html #pipeline-content .fb-stg.cur{ box-shadow:0 0 0 1.5px var(--ui-accent) }
html #pipeline-content .fb-stg.cur textarea.fb-in{ margin-top:6px }
html #pipeline-content .fb-stg textarea#fb-editing{ min-height:60px; margin-top:4px }
html #pipeline-content .fb-stg.future{ background:var(--ui-fill-subtle); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line-dashed) }
html #pipeline-content .fb-stg.future .fb-stg-h{ color:var(--ui-text-2) }
html #pipeline-content .fb-stg.cur .fb-stg-at{ display:none }
html #pipeline-content .fb-i-done{ color:var(--ui-success-dot) }
html #pipeline-content .fb-i-cur{ color:var(--ui-accent) }
html #pipeline-content .fb-i-future{ color:var(--ui-text-3) }
html #pipeline-content .fb-lnk{ border:0; background:none; color:var(--ui-accent-text); font-size:var(--ui-text-footnote); font-weight:var(--ui-weight-semibold); cursor:pointer; padding:0 0 0 6px; height:auto }
html #pipeline-content .fb-lnk.fb-lnk-0{ padding:0 }
/* 요약(오른쪽 칸) */
html #pipeline-content .fb-kv .fb-sum-row > span:first-child{ width:auto; flex:1; min-width:0 }
html #pipeline-content .fb-kv .fb-sum-row > :last-child:not(:first-child){ flex:none; text-align:right }
html #pipeline-content .fb-sum-row.fun{ display:grid; grid-template-columns:96px 1fr 22px 52px; align-items:center; gap:8px }
html #pipeline-content .fb-sum-row .fb-fk{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
html #pipeline-content .fb-kv .fb-sum-row.fun > span.fb-fk{ flex:none }
html #pipeline-content .fb-fbar{ height:6px; border-radius:3px; background:var(--ui-fill-subtle); overflow:hidden }
html #pipeline-content .fb-fbar i{ display:block; height:100%; background:var(--ui-accent) }
html #pipeline-content .fb-famt{ text-align:right; color:var(--ui-text-2); font-variant-numeric:tabular-nums; font-size:var(--ui-text-footnote) }
html #pipeline-content .fb-sum-row.fun b{ text-align:right }
html #pipeline-content .fb-sum-row.two{ cursor:pointer; align-items:center; gap:8px }
html #pipeline-content .fb-two-main{ min-width:0; display:flex; flex-direction:column }
html #pipeline-content .fb-two-main b{ font-weight:var(--ui-weight-semibold); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
html #pipeline-content .fb-two-main small{ font-size:var(--ui-text-footnote); color:var(--ui-text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
html #pipeline-content .fb-when{ font-size:var(--ui-text-footnote); color:var(--ui-text-2); white-space:nowrap; font-variant-numeric:tabular-nums }
html #pipeline-content .fb-when.over{ color:var(--ui-danger); font-weight:var(--ui-weight-semibold) }
html #pipeline-content .fb-when.today{ color:var(--ui-accent-text); font-weight:var(--ui-weight-semibold) }
html #pipeline-content .fb-kv.fb-deal input.fb-in{ height:26px }
html #pipeline-content .fb-deal-next{ display:flex; flex-wrap:wrap; gap:6px }
html #pipeline-content .fb-deal-next input[type=date]{ width:128px; flex:none }
/* 오른쪽 칸이 좁으면(340px) 내용 칸이 잘리지 않게 다음 줄로 */
html #pipeline-content .fb-deal-next input:not([type=date]){ flex:1 1 130px; min-width:0 }
/* 아이폰 사파리는 날짜 칸을 고유 폭(~170px)으로 그려 칸 밖으로 삐져나온다(실기 확인) → 사파리에서만 기본 모양 끄기(달력은 그대로 열림) */
@supports (-webkit-touch-callout:none){
  html #pipeline-content input[type=date].fb-in{ -webkit-appearance:none; appearance:none; min-width:0; display:block; text-align:left; line-height:normal }
  html #pipeline-content input[type=date].fb-in::-webkit-date-and-time-value{ text-align:left }
}
/* 휴대폰 */
@media (max-width:768px){
  /* 도구 줄 두 줄: [전체|내 카드] [최근 순|경과일] [7일 칩] / [담당자] [지난 기록] [개별문의 추가] (앱은 시안보다 좌우 여백이 넓다) */
  html #pipeline-content .fb-bar{ gap:6px }
  html #pipeline-content #fb-scope{ order:1 }
  html #pipeline-content #fb-sort{ order:2 }
  html #pipeline-content #fb-stale{ order:3 }
  html #pipeline-content .fb-bar > .fb-sp{ order:4; flex-basis:100%; height:0 }
  html #pipeline-content #fb-owner{ order:5; flex:1 1 0; min-width:0 }
  html #pipeline-content #fb-arch-btn{ order:6 }
  html #pipeline-content #fb-add-btn{ order:7 }
  html #pipeline-content .fb-layout{ display:block }
  html #pipeline-content .fb-mtabs{ display:flex; gap:2px; margin:0 0 8px; background:var(--ui-fill); border-radius:var(--ui-radius-control); padding:2px }
  html #pipeline-content .fb-mtabs button{ flex:1; min-width:0; border:0; background:none; border-radius:6px !important; height:44px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; color:var(--ui-text-2); cursor:pointer; padding:0 2px }
  html #pipeline-content .fb-mtabs button span{ font-size:var(--ui-text-footnote); font-weight:var(--ui-weight-semibold); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100% }
  html #pipeline-content .fb-mtabs button b{ font-size:var(--ui-text-footnote); font-variant-numeric:tabular-nums }
  html #pipeline-content .fb-mtabs button.on{ background:var(--ui-surface); color:var(--ui-accent-text); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line) }
  html #pipeline-content .fb-board{ display:block; overflow:visible; padding:0 0 8px }
  html #pipeline-content .fb-col{ display:none; min-height:0 }
  html #pipeline-content .fb-col.on{ display:block }
  html #pipeline-content .fb-col-h{ display:none }
  html #pipeline-content .fb-card{ padding:9px 10px }
  html #pipeline-content .fb-side{ display:none; position:fixed; left:0; right:0; bottom:0; top:auto; width:auto; z-index:1000 }
  html #pipeline-content .fb-side.open{ display:block }
  html #pipeline-content .fb-side.open .fb-panel{ border-radius:14px 14px 0 0; box-shadow:var(--ui-elev-sheet) }
  html #pipeline-content .fb-side.open .fb-p-head::before{ content:''; position:absolute; left:50%; top:5px; width:36px; height:5px; border-radius:3px; background:var(--ui-fill-hover); transform:translateX(-50%) }
  html #pipeline-content .fb-side.open .fb-p-head{ position:relative; padding-top:16px }
  html #pipeline-content .fb-side .fb-p-body{ max-height:62vh }
  /* 휴대폰 아이콘 단추는 누를 자리 32px(맥 규칙) — 보이는 동그라미는 그대로 두고 둘레만 넓힌다 */
  html #pipeline-content .fb-x{ width:32px; height:32px; border-radius:16px !important; margin:-5px -5px -5px auto }
  /* 휴대폰: 요약(단계 전환·주간 점검·할 일)은 보드 아래에 */
  html #pipeline-content .fb-side.sum{ display:block; position:static; margin:12px 0 0; z-index:auto }
  html #pipeline-content .fb-side.sum .fb-panel{ border-radius:var(--ui-radius-panel); box-shadow:0 0 0 var(--ui-hairline) var(--ui-line) }
  html #pipeline-content .fb-side.sum .fb-p-body{ max-height:none }
  html #pipeline-content textarea.fb-in,
  html #pipeline-content input.fb-in,
  html #pipeline-content select.fb-ctl{ font-size:16px }
  html #pipeline-content .fb-kv.fb-deal input.fb-in{ height:36px }
  html #pipeline-content .fb-deal-next{ flex-direction:column }
  html #pipeline-content .fb-deal-next input[type=date]{ width:100% }
  html #pipeline-content input.fb-in,
  html #pipeline-content select.fb-ctl{ height:36px }
  html #pipeline-content .fb-btn{ height:36px }
  html #pipeline-content .fb-btn.pri{ height:44px }
  html #pipeline-content .fb-btn.sm{ height:32px }
  html #pipeline-content .fb-seg button{ height:32px }
  html #pipeline-content .fb-scrim{ align-items:flex-end }
  html #pipeline-content .fb-sheet,
  html #pipeline-content .fb-sheet[data-kind="archive"],
  html #pipeline-content .fb-sheet[data-kind="link"]{ position:fixed; left:0; right:0; bottom:0; width:auto; max-width:none; max-height:88vh; border-radius:14px 14px 0 0 }
  html #pipeline-content .fb-kbd-tip{ display:none }
  html #pipeline-content .fb-toast{ left:12px; right:12px; top:56px }
  html #pipeline-content .fb-arch th,
  html #pipeline-content .fb-arch td{ padding:0 8px }
  html #pipeline-content .fb-arch td{ max-width:110px }
  html #pipeline-content .fb-arch td:last-child{ max-width:none }
}
/* ── 손댈 카드 줄 · 오래된 카드 정리 · 주간 점검표 (docs/plans/flow-board-nudges.md) ── */
html #pipeline-content button#fb-stale{ border:0; cursor:pointer }
html #pipeline-content .fb-todo{ display:flex; align-items:center; gap:6px; margin:-2px 0 10px; flex-wrap:wrap }
html #pipeline-content .fb-todo[hidden]{ display:none }
html #pipeline-content .fb-todo-t{ flex:none; white-space:nowrap; font-size:var(--ui-text-footnote); font-weight:var(--ui-weight-semibold); color:var(--ui-text-2); margin-right:2px }
html #pipeline-content .fb-todo-none{ font-size:var(--ui-text-footnote); color:var(--ui-text-3) }
html #pipeline-content .fb-tchip{ display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 9px; border:0; border-radius:12px !important; background:var(--ui-fill-subtle); color:var(--ui-text-1); font-size:var(--ui-text-footnote); white-space:nowrap; cursor:pointer; flex:none }
html #pipeline-content .fb-tchip b{ font-variant-numeric:tabular-nums; font-weight:var(--ui-weight-semibold) }
html #pipeline-content .fb-tchip.red b{ color:var(--ui-danger) }
html #pipeline-content .fb-tchip.orange b{ color:var(--ui-warning) }
html #pipeline-content .fb-tchip.on{ background:var(--ui-accent); color:var(--ui-on-accent) }
html #pipeline-content .fb-tchip.on b{ color:var(--ui-on-accent) }
html #pipeline-content .fb-tchip i{ font-size:var(--ui-text-caption); margin-left:1px; opacity:.85 }
html #pipeline-content .fb-grp-acts{ display:inline-flex; gap:12px; flex:none; margin-left:auto }
html #pipeline-content .fb-grp-acts .fb-lnk{ margin-left:0 }
html #pipeline-content .fb-check-note{ display:flex; gap:8px; align-items:flex-start; margin:8px 0 0; padding:8px 10px; border-radius:var(--ui-radius-control); background:var(--ui-accent-tint); font-size:var(--ui-text-footnote); color:var(--ui-text-1) }
html #pipeline-content .fb-check-note i{ color:var(--ui-accent-text); margin-top:2px }
html #pipeline-content .fb-check-note b{ font-weight:var(--ui-weight-semibold); margin-right:4px }
html #pipeline-content .fb-sheet[data-kind="cleanup"],
html #pipeline-content .fb-sheet[data-kind="checks"]{ width:720px }
html #pipeline-content .fb-clean-top{ padding:10px 14px 0 }
html #pipeline-content .fb-clean-top .fb-hint{ margin-top:6px }
html #pipeline-content .fb-clean-owners{ display:flex; gap:6px; overflow-x:auto; padding-bottom:2px }
html #pipeline-content .fb-clean-n{ align-self:center; font-size:var(--ui-text-footnote); color:var(--ui-text-2); font-variant-numeric:tabular-nums }
html #pipeline-content .fb-arch.fb-clean .fb-ck{ width:34px; max-width:34px; padding:0 0 0 12px; text-align:left }
html #pipeline-content .fb-arch.fb-clean input[type=checkbox]{ width:16px; height:16px; accent-color:var(--ui-accent); cursor:pointer }
html #pipeline-content .fb-arch.fb-clean tr.on td{ background:var(--ui-accent-tint) }
html #pipeline-content .fb-arch.fb-clean td:last-child{ max-width:220px; overflow:hidden; text-align:left; color:var(--ui-text-2) }
html #pipeline-content .fb-chk-wrap{ padding:0 14px 6px }
html #pipeline-content .fb-chk-grp + .fb-chk-grp{ margin-top:10px }
html #pipeline-content .fb-chk-gh{ position:sticky; top:0; z-index:1; display:flex; gap:8px; align-items:baseline; padding:6px 0; background:var(--ui-surface); border-bottom:var(--ui-hairline) solid var(--ui-line) }
html #pipeline-content .fb-chk-gh span{ font-size:var(--ui-text-footnote); color:var(--ui-text-2) }
html #pipeline-content .fb-chk-row{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:2px 12px; padding:8px 0; border-bottom:var(--ui-hairline) solid var(--ui-line) }
html #pipeline-content .fb-chk-main{ display:flex; gap:8px; align-items:center; min-width:0 }
html #pipeline-content .fb-chk-main .fb-lnk{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:var(--ui-weight-semibold) }
html #pipeline-content .fb-chk-meta{ display:inline-flex; gap:6px; align-items:center; flex:none; font-size:var(--ui-text-footnote); color:var(--ui-text-2) }
html #pipeline-content .fb-chk-last{ font-size:var(--ui-text-footnote); color:var(--ui-text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; align-self:center }
html #pipeline-content .fb-chk-prev{ grid-column:1 / -1; font-size:var(--ui-text-footnote); color:var(--ui-text-2) }
html #pipeline-content .fb-chk-prev.ok{ color:var(--ui-success) }
html #pipeline-content .fb-chk-in{ grid-column:1 / -1; display:flex; gap:6px; align-items:center; margin-top:4px }
html #pipeline-content .fb-chk-in input.fb-in{ flex:1; min-width:0; height:28px }
@media (max-width:768px){
  html #pipeline-content .fb-todo{ flex-wrap:nowrap; overflow-x:auto; margin:0 0 8px; padding-bottom:2px }
  html #pipeline-content .fb-tchip{ height:32px; padding:0 12px; border-radius:16px !important }
  html #pipeline-content .fb-sheet[data-kind="cleanup"],
  html #pipeline-content .fb-sheet[data-kind="checks"]{ position:fixed; left:0; right:0; bottom:0; width:auto; max-width:none; max-height:88vh; border-radius:14px 14px 0 0 }
  html #pipeline-content .fb-arch.fb-clean td:last-child{ max-width:120px }
  html #pipeline-content .fb-chk-row{ grid-template-columns:minmax(0,1fr) }
  html #pipeline-content .fb-chk-in input.fb-in{ height:36px }
  html #pipeline-content .fb-arch.fb-clean input[type=checkbox]{ width:20px; height:20px }
}
