/* ==========================================================================
   레이아웃 v2 (상단 탭) — v64
   디자인 번들 "ES 재고관리 — 전체 시스템"의 본 시스템 레이아웃.
   html.v2 가 켜진 동안에만 적용 (내부 팀 화면 전용 · 고객사/에이전시는 기존 유지)
   ========================================================================== */
html.v2 body { background: #eef0e6; }
html.v2 #app { flex-direction: column; }
html.v2 #sidebar { display: none !important; }
html.v2 #main { width: 100%; }

/* ---------- 열린 탭(진행 탭) 줄 (36px · v539 · 시안 「셀러본진 통합 셸」 ① 탭줄) ---------- */
#v2hdr .v2open { display: flex; align-items: flex-end; gap: 1px; height: 36px; padding: 5px 10px 0; background: #20241a; overflow-x: auto; scrollbar-width: none; }
#v2hdr .v2open::-webkit-scrollbar { display: none; }
#v2hdr .v2otab { flex: 0 1 200px; min-width: 92px; display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 5px 0 10px;
  background: #2c3221; color: #a8ac86; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; position: relative; user-select: none; }
#v2hdr .v2otab + .v2otab::before { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 1px; background: #4a5236; }
#v2hdr .v2otab:hover { background: #353c27; color: #e6e2cc; }
#v2hdr .v2otab.on { background: #3a4028; color: #f2eeda; font-weight: 700; z-index: 1; }
#v2hdr .v2otab.on::before, #v2hdr .v2otab.on + .v2otab::before { display: none; }
#v2hdr .v2otab.drag { opacity: .4; }
#v2hdr .v2otab.over { box-shadow: inset 2px 0 0 #c9a34e; }
#v2hdr .v2otab .ic { flex: none; font-size: 11px; filter: grayscale(1); opacity: .8; }
#v2hdr .v2otab .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#v2hdr .v2otab .x { flex: none; width: 16px; height: 16px; margin-left: auto; border: 0; background: none; color: #7f8566; font: inherit; font-size: 11px; line-height: 16px; cursor: pointer; padding: 0; }
#v2hdr .v2otab .x:hover { background: #4a5236; color: #f2eeda; }
#v2hdr .v2onew { flex: none; width: 28px; height: 28px; margin: 0 0 2px 4px; border: 0; background: none; color: #a8ac86; font: inherit; font-size: 17px; line-height: 28px; cursor: pointer; padding: 0; }
#v2hdr .v2onew:hover { background: #353c27; color: #f2eeda; }
#v2hdr .v2open .n { margin-left: auto; flex: none; align-self: center; font-size: 10.5px; color: #7f8566; padding: 0 4px 3px; white-space: nowrap; }

/* ---------- 상단 헤더 (54px) ---------- */
#v2hdr { display: none; }
html.v2 #v2hdr {
  display: block; position: sticky; top: 0; z-index: 90;
  background: #fff; border-bottom: 1px solid #dcd8c0;
}
#v2hdr .v2bar { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 54px; }
#v2hdr .v2brand {
  display: flex; align-items: center; gap: 8px; flex: none; padding: 6px 10px 6px 8px;
  border: 1px solid transparent; border-radius: 9px; background: none; font: inherit;
  cursor: pointer; color: #1c2430;
}
#v2hdr .v2brand:hover { background: #f4f3e8; border-color: #dcd8c0; }
#v2hdr .v2brand i { width: 9px; height: 9px; border-radius: 99px; background: #5a6636; display: inline-block; }
#v2hdr .v2brand b { font-size: 15px; letter-spacing:-.3px; white-space: nowrap; }
#v2hdr nav.v2tabs {
  display: flex; align-items: stretch; gap: 2px; height: 54px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
#v2hdr nav.v2tabs::-webkit-scrollbar { height: 0; }
#v2hdr .v2tab {
  display: flex; align-items: center; gap: 7px; height: 54px; padding: 0 12px; border: 0;
  background: none; font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; position: relative; color: #4f5644; box-shadow: inset 0 -2px 0 0 transparent;
}
#v2hdr .v2tab:hover { color: #1c2430; background: #f6f5ec; }
#v2hdr .v2tab.on { color: #4d5434; box-shadow: inset 0 -2px 0 0 #5a6636; }
#v2hdr .v2tab .dot { width: 6px; height: 6px; border-radius: 99px; background: #a8442a; display: inline-block; }
#v2hdr .v2right { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
#v2hdr .v2search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 240px; min-width: 36px;
  padding: 7px 10px; border: 1.5px solid #dcd8c0; border-radius: 9px; background: #f6f5ec;
  color: #6b7160; font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; overflow: hidden;
}
#v2hdr .v2search:hover { border-color: #c9c5a1; background: #fff; }
#v2hdr .v2search .hint { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v2hdr .v2search .kbd {
  flex: none; font-size: 11.5px; font-weight: 700; color: #98a08a; border: 1px solid #dcd8c0;
  border-radius: 5px; padding: 1px 5px; background: #fff;
}
#v2hdr .v2ib {
  position: relative; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border: 1px solid #dcd8c0; border-radius: 9px; background: #fff; font: inherit; font-size: 12.5px;
  font-weight: 700; color: #1c2430; cursor: pointer; white-space: nowrap;
}
#v2hdr .v2ib:hover { background: #f6f5ec; border-color: #c9c5a1; }
#v2hdr .v2ib .grn { width: 7px; height: 7px; border-radius: 99px; background: #4d7c2f; }
#v2hdr .v2ib .badge {
  position: absolute; top: -6px; right: -6px; background: #a8442a; color: #fff;
  font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 1px 5px;
}
#v2hdr .v2me {
  display: flex; align-items: center; gap: 7px; flex: none; padding: 3px 9px 3px 3px;
  border: 1px solid #dcd8c0; border-radius: 99px; background: #fff; font: inherit;
  max-width: 130px; overflow: hidden; cursor: pointer;
}
#v2hdr .v2me:hover { background: #f6f5ec; }
#v2hdr .v2me .av {
  width: 26px; height: 26px; border-radius: 99px; background: #ecead7; color: #4d5434;
  font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
}
#v2hdr .v2me b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 메가 메뉴 ---------- */
#v2mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-bottom: 1px solid #dcd8c0; box-shadow: 0 18px 40px rgba(16, 24, 40, .13); z-index: 89;
  animation: v2in .13s ease-out;
}
@keyframes v2in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#v2mega .mg { display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
#v2mega .mgl { padding: 16px 20px 20px; }
#v2mega .mgh {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  color: #6b7160;  margin-bottom: 11px;
}
#v2mega .mgh .hint { font-weight: 600; color: #98a08a; }
#v2mega .mgi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
#v2mega .mit {
  display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%;
  padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; background: none;
  font: inherit; cursor: pointer; color: #1c2430;
}
#v2mega .mit:hover { background: #f4f3e8; border-color: #dcd8c0; }
#v2mega .mit .ico { font-size: 15px; line-height: 1.2; margin-top: 1px; }
#v2mega .mit b { font-size: 13.5px; letter-spacing:-.2px; }
#v2mega .mit .desc { display: block; font-size: 11.5px; color: #6b7160; margin-top: 2px; line-height: 1.45; }
#v2mega .mit .bdg { background: #a8442a; color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 0 6px; }
#v2mega .mit .adm { background: #eceade; color: #4f5644; font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 1px 4px; }
#v2mega .mit .soon { background: #fff4e6; color: #8f6708; font-size: 10.5px; font-weight: 800; border-radius: 4px; padding: 1px 5px; }
#v2mega .mgs { margin-top: 11px; padding-top: 11px; border-top: 1px solid #e8e5d1; }
#v2mega .mgs .t { font-size: 11.5px; font-weight: 800; color: #98a08a; margin-right: 7px; }
#v2mega .mgs .t2 { font-size: 11.5px; color: #c6c8b4; }
#v2mega .mgs .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#v2mega .mgs .chips button {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid #dcd8c0;
  border-radius: 9px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600;
  color: #3a4030; cursor: pointer; white-space: nowrap;
}
#v2mega .mgs .chips button:hover { border-color: #5a6636; color: #4d5434; background: #f5f4e7; }
#v2mega .mgr { padding: 16px 20px 20px; background: #f7f7ec; border-left: 1px solid #e8e5d1; }
#v2mega .mgr .t { font-size: 12.5px; font-weight: 800; color: #6b7160;  margin-bottom: 9px; }
#v2mega .mgr .qk { display: flex; flex-direction: column; gap: 6px; }
#v2mega .mgr .qk button {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #dcd8c0;
  border-radius: 8px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-align: left; color: #1c2430;
}
#v2mega .mgr .qk button:hover { border-color: #5a6636; color: #4d5434; background: #f5f4e7; }
#v2mega .mgr .note { margin-top: 14px; font-size: 11.5px; color: #98a08a; line-height: 1.6; }

/* ---------- 가입자 목록 팝오버 ---------- */
#v2roster {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 95; width: 320px; max-height: 430px;
  display: flex; flex-direction: column; background: #fff; border: 1px solid #dcd8c0;
  border-radius: 13px; box-shadow: 0 20px 48px rgba(16, 24, 40, .2); overflow: hidden;
  animation: v2in .12s ease-out; text-align: left; font-weight: 400;
}
#v2roster .hd { flex: none; padding: 11px 13px; border-bottom: 1px solid #e8e5d1; }
#v2roster .hd input {
  width: 100%; margin-top: 9px; padding: 7px 10px; border: 1.5px solid #dcd8c0; border-radius: 8px;
  outline: none; font: inherit; font-size: 12.5px; background: #fff;
}
#v2roster .ls { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
#v2roster .mem { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 10px; min-width: 0; }
#v2roster .mem:hover { background: #f6f5ec; }
#v2roster .mem .avw { position: relative; flex: none; }
#v2roster .mem .av {
  width: 30px; height: 30px; border-radius: 10px; font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
#v2roster .mem .st { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 99px; border: 2px solid #fff; }
#v2roster .mem .nm { flex: 1; min-width: 0; }
#v2roster .mem .nm b { font-size: 12.5px; }
#v2roster .mem .nm .me { font-size: 10.5px; font-weight: 800; border-radius: 4px; padding: 1px 5px; background: #ecead7; color: #4d5434; margin-left: 5px; }
#v2roster .mem .nm .sub { display: block; font-size: 11.5px; color: #98a08a; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#v2roster .mem .act { flex: none; display: flex; gap: 4px; }
#v2roster .mem .act button {
  width: 28px; height: 28px; border: 1px solid #dcd8c0; border-radius: 8px; background: #fff;
  font: inherit; font-size: 12.5px; cursor: pointer; padding: 0;
}
#v2roster .mem .act button:hover { border-color: #5a6636; background: #f5f4e7; }
#v2roster .ft {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 13px;
  border-top: 1px solid #e8e5d1; background: #fbfaf2; font-size: 10.5px; color: #98a08a;
}

/* ---------- 페이지 헤더 밴드 (#topbar 재구성) ---------- */
html.v2 #topbar {
  top: 90px; z-index: 40; background: #fff; border-bottom: 1px solid #dcd8c0;   /* v539 — 헤더 54px + 열린 탭 줄 36px */
  padding: 9px 18px 10px; box-shadow: none; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
html.v2 #topbar #menuBtn { display: none; }
html.v2 #v2crumb { display: block; font-size: 11.5px; color: #98a08a; font-weight: 600; margin-bottom: 2px; }
html.v2 #v2crumb b { color: #6b7160; font-weight: 600; }
html.v2 #topbar h1 { font-size: 17px; font-weight: 800; letter-spacing:-.3px; margin: 0; }
#v2crumb { display: none; }
html.v2 #gsearch { display: none; } /* 전역검색은 ⌘K 팔레트로 통합 */
html.v2 #content { max-width: none; padding: 16px 18px 90px; margin: 0; }

/* ---------- 명령 팔레트 (⌘K) ---------- */
#v2pal { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(16, 24, 40, .4); padding: 9vh 16px 0; }
#v2pal.show { display: block; }
#v2pal .box {
  width: 620px; max-width: 100%; margin: 0 auto; background: #fff; border-radius: 14px;
  box-shadow: 0 30px 70px rgba(16, 24, 40, .35); overflow: hidden; display: flex; flex-direction: column;
  max-height: 66vh;
}
#v2pal input {
  width: 100%; border: 0; outline: none; padding: 15px 17px; font: inherit; font-size: 15px;
  border-bottom: 1px solid #e8e5d1; background: #fff; color: #1c2430;
}
#v2pal .rs { flex: 1; min-height: 0; overflow-y: auto; padding: 7px; }
#v2pal .sec { font-size: 10.5px; font-weight: 800; color: #98a08a;  padding: 8px 10px 4px; }
#v2pal .it {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 11px;
  border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; cursor: pointer; color: #1c2430;
}
#v2pal .it:hover, #v2pal .it.sel { background: #f3f2e6; }
#v2pal .it .sub { font-size: 11.5px; color: #98a08a; margin-left: auto; white-space: nowrap; }
#v2pal .ft { padding: 8px 14px; border-top: 1px solid #e8e5d1; background: #fbfaf2; font-size: 11.5px; color: #98a08a; display: flex; gap: 14px; }

/* ---------- 채팅 FAB ---------- */
#v2fab { display: none; }
html.v2 #v2fab {
  display: flex; position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 56px; height: 56px; border-radius: 99px; border: 0; background: #5a6636; color: #fff;
  font-size: 22px; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 10px 26px rgba(90,102,54, .45);
  transition: transform .12s ease, background .12s ease;
}
html.v2 #v2fab:hover { background: #4d5434; transform: translateY(-2px); }
html.v2 #v2fab .badge {
  position: absolute; top: -4px; right: -4px; background: #a8442a; color: #fff;
  font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 7px; border: 2px solid #fff;
}

/* ---------- 홈 v2 ---------- */
#h2 { min-width: 0; }
#h2 .strip { display: flex; align-items: center; gap: 8px; padding-bottom: 13px; min-width: 0; overflow-x: auto; }
#h2 .strip .lb { font-size: 11.5px; font-weight: 800; color: #98a08a;  flex: none; }
#h2 .strip .lb.warn { color: #8f6708; }
#h2 .pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 13px;
  border: 1px solid #dcd8c0; border-radius: 99px; background: #fff; font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; color: #1c2430; white-space: nowrap;
}
#h2 .pill:hover { border-color: #5a6636; color: #4d5434; background: #f5f4e7; }
#h2 .pill.ghost { border-style: dashed; border-color: #c6c8b4; background: none; color: #6b7160; font-weight: 500; }
#h2 .pill.rec { border-color: #e8e5d1; background: #fbfaf2; color: #4f5644; font-size: 12.5px; padding: 7px 11px; }
#h2 .pill.appr { border-width: 1.5px; }
#h2 .pill .n { font-size: 11.5px; font-weight: 800; color: #fff; border-radius: 99px; padding: 1px 7px; }
#h2 .pill .go { font-size: 11.5px; font-weight: 700; color: #4d5434; }
#h2 .cfg { display: flex; align-items: center; gap: 9px; margin: 2px 0 10px; flex-wrap: wrap; }
#h2 .cfg .t { font-size: 12.5px; font-weight: 800; color: #98a08a;  }
#h2 .cfg .d { font-size: 11.5px; color: #6b7160; }
#h2 .grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; min-width: 0;
  align-items: stretch; grid-auto-rows: minmax(min-content, auto); grid-auto-flow: dense;
}
#h2 .pan {
  display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #fff;
  border: 1.5px solid #dcd8c0; border-radius: 12px; padding: 13px 15px;
}
#h2 .pan.drag { opacity: .4; border-style: dashed; }
#h2 .pan.dover { border-color: #5a6636; }
#h2 .pan .ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
#h2 .pan .ph .grip { font-size: 12.5px; color: #c6c8b4; cursor: grab; }
#h2 .pan .ph > b { font-size: 13.5px; }
#h2 .pan .ph .chip2 { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: #eceade; color: #4f5644; white-space: nowrap; }
#h2 .pan .ph .ctr { margin-left: auto; display: flex; gap: 4px; align-items: center; }
#h2 .pan .ph .ctr .sp {
  padding: 3px 8px; border: 1px solid #dcd8c0; border-radius: 6px; background: #fff; font: inherit;
  font-size: 10.5px; font-weight: 700; color: #6b7160; cursor: pointer;
}
#h2 .pan .ph .ctr .sp.on { border-color: #c9c5a1; background: #f5f4e7; color: #4d5434; }
#h2 .pan .ph .ctr .x { width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 12.5px; color: #c6c8b4; cursor: pointer; padding: 0; }
#h2 .pan .ph .ctr .x:hover { background: #f4f3e8; color: #a8442a; }
#h2 .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
#h2 .kpi { border: 1px solid #e8e5d1; border-radius: 11px; padding: 10px 11px; min-width: 0; }
#h2 .kpi .l { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #6b7160; font-weight: 600; white-space: nowrap; overflow: hidden; }
#h2 .kpi .v { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; }
#h2 .kpi .v b { font-size: 20px; letter-spacing:-.4px; font-variant-numeric: tabular-nums; }
#h2 .kpi .v span { font-size: 11.5px; color: #98a08a; }
#h2 .kpi a, #h2 .kpi button.go2 {
  display: inline-block; margin-top: 7px; padding: 3px 8px; border: 1px solid #dcd8c0; border-radius: 7px;
  background: #fff; font: inherit; font-size: 11.5px; font-weight: 600; color: #4d5434; cursor: pointer;
  white-space: nowrap; text-decoration: none;
}
#h2 .kpi a:hover { background: #f5f4e7; border-color: #5a6636; }
#h2 .lvh { display: flex; align-items: center; gap: 7px; margin: 11px 0 8px; padding-top: 11px; border-top: 1px solid #edebdb; flex-wrap: wrap; }
#h2 .lvh b { font-size: 11.5px; color: #4f5644; }
#h2 .live { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #3f6626; background: #e9f0e0; border-radius: 99px; padding: 1px 7px; }
#h2 .lrow {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid #edebdb;
  border-radius: 8px; background: #fff; min-width: 0; font-size: 11.5px;
}
#h2 .lrow .at { flex: none; font-size: 10.5px; color: #98a08a; font-variant-numeric: tabular-nums; }
#h2 .lrow .k { flex: none; font-size: 10.5px; font-weight: 800; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
#h2 .lrow .cd { flex: none; font-weight: 700; color: #4d5434; white-space: nowrap; }
#h2 .lrow .m { flex: 1 1 90px; min-width: 0; font-size: 11.5px; color: #6b7160; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h2 .lrow b.q { flex: none; font-variant-numeric: tabular-nums; }
#h2 .hidden-row { grid-column: span 12; order: 999; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
#h2 .sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; min-width: 0; }
#h2 .sstep { min-width: 0; text-align: left; padding: 10px 11px; border: 1px solid #e8e5d1; border-radius: 10px; background: #fff; font: inherit; cursor: pointer; color: #1c2430; text-decoration: none; display: block; }
#h2 .sstep:hover { border-color: #5a6636; }
#h2 .sstep .l { display: block; font-size: 11.5px; color: #6b7160; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h2 .sstep .v { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
#h2 .sstep .v b { font-size: 17px; font-variant-numeric: tabular-nums; }
#h2 .sstep .v span { font-size: 11.5px; color: #98a08a; }
#h2 .pan .empty { padding: 16px; text-align: center; font-size: 12.5px; color: #98a08a; }
#h2 #apiPanel { width: auto !important; }
#h2 #apiPanel .hcard { width: auto !important; border: 0; padding: 0; margin: 0; box-shadow: none; background: none; }
#h2 #zoomCal .hcard { border: 0; padding: 0; margin: 0 !important; box-shadow: none; background: none; }

/* ---------- 모바일 ---------- */
@media (max-width: 860px) {
  #v2hdr .v2bar { padding: 0 8px; gap: 6px; }
  #v2hdr .v2search { flex-basis: 40px; }
  #v2hdr .v2search .hint, #v2hdr .v2search .kbd { display: none; }
  #v2hdr .v2me b { display: none; }
  #v2hdr .v2brand b { font-size: 13.5px; }
  #v2mega .mg { grid-template-columns: 1fr; }
  #v2mega .mgr { border-left: 0; border-top: 1px solid #e8e5d1; }
  #v2mega .mgi { grid-template-columns: 1fr; }
  html.v2 #topbar { top: 90px; padding: 8px 12px; }   /* v539 — 헤더 54px + 열린 탭 줄 36px */
  html.v2 #content { padding: 12px 12px 96px; }
  #h2 .grid > .pan { grid-column: span 12 !important; }
  #h2 .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.v2 #v2fab { bottom: 76px; }
  #v2roster { width: min(320px, calc(100vw - 24px)); }
}

/* AI 플로팅 버튼과 겹치지 않게 채팅 FAB 위로 올림 */
html.v2 #aiFab { bottom: 86px !important; }
@media (max-width: 860px) { html.v2 #aiFab { bottom: 140px !important; } }

/* 🎨 테마 색상 버튼은 채팅 FAB과 같은 자리(우측 하단)에 겹칩니다.
   상단 탭 레이아웃에서는 채팅 버튼만 남기고 숨기며, 색상 설정은
   프로필 메뉴 → 「🎨 테마 · 화면 색상」 에서 엽니다. */
html.v2 #retroFab { display: none !important; }
html.v2 #retroPanel { bottom: 22px; right: 84px; }
@media (max-width: 860px) { html.v2 #retroPanel { right: 12px; bottom: 138px; } }

/* ===== v66 내 워크스페이스 — 반응형 ===== */
@media (max-width: 1180px) {
  #h2grid { grid-template-columns: repeat(6, minmax(0,1fr)) !important; }
  #h2grid > * { grid-column: span 6 !important; grid-row: span 1 !important; }
}
@media (max-width: 900px) {
  #h2grid { grid-template-columns: 1fr !important; }
  #h2grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .h2kpi { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .h2api { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .h2kpi { grid-template-columns: 1fr !important; }
}

/* ============================================================
   v113 — 상단 메뉴 적응형 배치
   창 너비가 줄어도 메뉴 탭이 검색창·아이콘에 가려지지 않도록
   오른쪽 도구부터 단계적으로 접고(c1→c2→c3), 그래도 넘치면
   좌우 화살표로 스크롤한다.
   ============================================================ */
#v2hdr .v2navw {
  display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; position: relative;
}
#v2hdr .v2navw .v2nav {
  display: none; flex: none; width: 24px; align-items: center; justify-content: center;
  border: 0; background: none; font: inherit; font-size: 17px; line-height: 1;
  color: #6b7160; cursor: pointer; padding: 0;
}
#v2hdr .v2navw.ovf .v2nav { display: flex; }
#v2hdr .v2navw .v2nav:disabled { opacity: .25; cursor: default; }
#v2hdr .v2navw .v2nav:not(:disabled):hover { color: #1c2430; background: #f6f5ec; }
#v2hdr .v2tabs { scroll-behavior: smooth; }
#v2hdr .v2tab { flex: none; }
#v2hdr .v2tab .lb { white-space: nowrap; }

/* 오른쪽 도구가 탭을 밀어내지 않도록 함께 줄어들 수 있게 */
#v2hdr .v2right { flex: 0 1 auto; min-width: 0; }
#v2hdr .v2search { flex: 0 1 240px; min-width: 0; }

/* ① 검색창을 아이콘으로 */
#v2hdr.c1 .v2search .hint, #v2hdr.c1 .v2search .kbd { display: none; }
#v2hdr.c1 .v2search { flex: 0 0 34px; width: 34px; padding: 0; justify-content: center; }
/* ② 접속자 수 · 내 이름 숨김 */
#v2hdr.c2 #v2onN, #v2hdr.c2 .v2me b { display: none; }
#v2hdr.c2 .v2ib { padding: 0 8px; }
#v2hdr.c2 .v2me { padding: 3px; max-width: none; }
/* ③ 탭 여백 축소 */
#v2hdr.c3 .v2tab { padding: 0 9px; gap: 6px; }
/* ④ 브랜드 이름 숨김 */
#v2hdr.c4 .v2brand { padding-right: 2px; }
#v2hdr.c4 .v2brand b { display: none; }
#v2hdr.c4 .v2tab { padding: 0 7px; font-size: 12.5px; }
/* ⑤ 탭 아이콘 숨김 (마지막 수단) */
#v2hdr.c5 .v2tab .ic { display: none; }

/* ── v205: 홈 작업 바 — 고정 작업 · 최근 · 승인 요청 한 줄 통합 (시안 workspace.css wbar) ── */
#h2 .wbar { display: flex; align-items: stretch; margin-bottom: 12px; border: 1px solid #dcd8c0; border-radius: 12px; background: #fff; min-width: 0; }
#h2 .wbar__pins { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; min-width: 0; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
#h2 .wbar__pins::-webkit-scrollbar { height: 0; }
#h2 .wbar__gear { flex: none; width: 30px; height: 30px; padding: 0; border: 1px dashed #c6c8b4; border-radius: 99px; background: none; font: inherit; font-size: 12.5px; color: #6b7160; cursor: pointer; }
#h2 .wbar__gear:hover { border-color: #5a6636; color: #4d5434; }
#h2 .wbar__seg { position: relative; flex: none; display: flex; align-items: center; border-left: 1px solid #e8e5d1; }
#h2 .wbar__seg:last-child { border-radius: 0 12px 12px 0; overflow: visible; }
#h2 .wbar__btn { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; border: 0; background: #fff; font: inherit; font-size: 12px; font-weight: 700; color: #6b7160; cursor: pointer; white-space: nowrap; }
#h2 .wbar__seg:last-child .wbar__btn { border-radius: 0 11px 11px 0; }
#h2 .wbar__btn:hover, #h2 .wbar__btn.is-on { background: #f6f5ec; color: #1c2430; }
#h2 .wbar__btn--warn { background: #fffaf3; color: #8f6708; font-size: 12.5px; }
#h2 .wbar__btn--warn:hover, #h2 .wbar__btn--warn.is-on { background: #fef3e2; color: #8f6708; }
#h2 .wbar__n { font-size: 11px; font-weight: 800; color: #fff; background: #d97706; border-radius: 99px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
#h2 .wbar__caret { font-size: 9.5px; color: #98a08a; }
#h2 .wbar__pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 58; width: 238px; background: #fff; border: 1px solid #dcd8c0; border-radius: 11px; overflow: hidden; box-shadow: 0 18px 40px rgba(16,24,40,.16); }
#h2 .wbar__pop--wide { width: 318px; }
#h2 .wbar__pop-head { padding: 8px 12px; border-bottom: 1px solid #edebdb; font-size: 10.5px; font-weight: 800; color: #98a08a; }
#h2 .wbar__pop-head--row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #edebdb; }
#h2 .wbar__pop-head--row b { font-size: 12px; color: #1c2430; font-weight: 700; }
#h2 .wbar__pop-head--row span { margin-left: auto; font-size: 10.5px; color: #98a08a; }
#h2 .wbar__row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid #f2f1e4; background: #fff; font: inherit; font-size: 12px; font-weight: 600; color: #33415c; cursor: pointer; }
#h2 .wbar__row:last-of-type { border-bottom: 0; }
#h2 .wbar__row:hover { background: #f5f4e7; }
#h2 .wbar__row--ap { padding: 10px 12px; gap: 9px; }
#h2 .wbar__row--ap:hover { background: #fffaf3; }
#h2 .wbar__row-ico { flex: none; font-size: 13px; }
#h2 .wbar__row-label { flex: 1; min-width: 0; font-size: 12.5px; color: #1c2430; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h2 .wbar__row-go { flex: none; font-size: 11.5px; font-weight: 700; color: #4d5434; }
#h2 .wbar__all { display: block; width: 100%; padding: 9px; border: 0; border-top: 1px solid #edebdb; background: #fbfaf2; font: inherit; font-size: 11.5px; font-weight: 700; color: #4d5434; cursor: pointer; }
#h2 .wbar__all:hover { background: #f5f4e7; }
@media (max-width: 720px) { #h2 .wbar { flex-wrap: wrap; } #h2 .wbar__pins { flex-basis: 100%; border-bottom: 1px solid #e8e5d1; } #h2 .wbar__seg { flex: 1; border-left: 0; } #h2 .wbar__seg + .wbar__seg { border-left: 1px solid #e8e5d1; } #h2 .wbar__btn { width: 100%; justify-content: center; } }


/* ══════════════════════════════════════════════════════════════
   v287 — 워크스페이스 홈 디자인 토큰 · 컴포넌트 (시안 workspace.css 포팅, #h2 스코프)
   ══════════════════════════════════════════════════════════════ */
#h2 {
  --panel-sub: #fbfaf2; --panel-alt: #f6f5ec;
  --line: #dcd8c0; --line-soft: #e8e5d1; --line-faint: #edebdb;
  --text: #1c2430; --text-mid: #33415c; --sub: #6b7160; --muted: #98a08a; --faint: #c6c8b4; --slate: #4f5644;
  --accent: #5a6636; --accent-hover: #4d5434; --accent-fg: #4d5434; --accent-bg: #ecead7; --accent-bg-2: #f5f4e7; --accent-line: #c9c5a1;
  --ok: #4d7c2f; --ok-fg: #3f6626; --ok-bg: #e9f0e0; --ok-line: #cfdcc0;
  --warn: #b8860b; --warn-fg: #8f6708; --warn-bg: #fffaf3; --warn-line: #e6d3a3;
  --danger: #a8442a; --danger-fg: #a8442a; --danger-bg: #fffafa; --danger-line: #f2ddd4;
  --info: #6d28d9; --info-bg: #f3eafe; --neutral-bg: #eceade;
  --fs-body: 13.5px; --fs-sm: 12.5px; --fs-xs: 11.5px; --fs-card: 14.5px; --fs-num: 21px;   /* v364 — 전반 1px 확대 (레이아웃 유지) */
  --r-sm: 0; --r: 0; --r-lg: 0; --r-pill: 0; --gap: 12px; --row-h: 440px;
}
/* 고정 높이 행 + 카드 본문 스크롤 (헤더 고정) — «내 워크스페이스» 탭에서만 */
#h2 #h2grid.fixed { grid-auto-rows: var(--row-h, 440px); }
@media (max-width: 900px) { #h2 #h2grid.fixed { grid-auto-rows: var(--row-h, 400px); } }
#h2 #h2grid.fixed .pan { overflow: hidden; }
#h2 .pbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#h2 #h2grid.fixed .pbody { overflow-y: auto; padding-right: 4px; margin-right: -4px; scrollbar-width: thin; scrollbar-color: #cfd3bd transparent; }
#h2 #h2grid.fixed .pbody::-webkit-scrollbar { width: 6px; }
#h2 #h2grid.fixed .pbody::-webkit-scrollbar-track { background: transparent; }
#h2 #h2grid.fixed .pbody::-webkit-scrollbar-thumb { background: #d8dbc6; }
#h2 #h2grid.fixed .pbody:hover::-webkit-scrollbar-thumb { background: #b9bda2; }
/* 카드 헤더 도구 */
#h2 .card__go { flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--slate); font: inherit; font-size: 11px; cursor: pointer; padding: 0; }
#h2 .card__go:hover { background: var(--accent); border-color: var(--accent); color: #f2eeda; }
#h2 .card__go:disabled { opacity: .6; cursor: default; }
#h2 .card__cx { flex: none; border: 1px solid var(--danger-line); background: var(--danger-bg); color: var(--danger);
  font: inherit; font-size: 10px; font-weight: 800; padding: 2px 7px; cursor: pointer; }
#h2 .card__cx:hover, #h2 .card__cx.is-on { background: var(--danger); border-color: var(--danger); color: #fff; }
#h2 .badge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 2px 7px; white-space: nowrap; }
#h2 .badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
#h2 .badge--warn { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); }
#h2 .badge--danger { background: #f7e7e1; color: var(--danger); }
#h2 .badge--info { background: var(--accent-bg); color: var(--accent-fg); }
#h2 .badge--live { display: inline-flex; align-items: center; gap: 4px; background: var(--ok-bg); color: var(--ok-fg); padding: 1px 7px; }
#h2 .row-btn { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line-soft);
  background: #fff; font: inherit; font-size: 12px; color: var(--text); cursor: pointer; text-align: left; min-width: 0; }
#h2 .row-btn:hover { border-color: var(--accent); background: var(--accent-bg-2); }
#h2 .row-btn__grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h2 .bar { flex: 1 1 60px; min-width: 40px; height: 6px; background: var(--line-soft); overflow: hidden; }
#h2 .bar__fill { display: block; height: 6px; background: var(--accent); }
#h2 .card__section { flex: none; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line-faint); }
#h2 .card__section-title { font-size: var(--fs-sm); font-weight: 700; color: var(--slate); }
#h2 .kpi { border: 1px solid var(--line-soft); padding: 10px 11px; min-width: 0; background: var(--panel-sub); }
#h2 .kpi__label { font-size: var(--fs-sm); color: var(--sub); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h2 .kpi__value { font-size: var(--fs-num); letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
#h2 .kpi__unit { font-size: 11px; color: var(--muted); }
#h2 .btn.sm { padding: 5px 11px; font-size: var(--fs-sm); font-weight: 700; }
#h2 .pill__count { font-size: 11px; font-weight: 800; color: #fff; padding: 1px 7px; font-variant-numeric: tabular-nums; }

/* ── 수집 로딩 스피너 — 직각(회전 사각) ── */
@keyframes ws-spin { to { transform:rotate(360deg); } }
#h2 .spin { display:inline-block; width:10px; height:10px; border:2px solid var(--line); border-top-color:var(--accent, #5a6636); animation:ws-spin .7s linear infinite; vertical-align:-1px; }
#h2 .spin--w { border-color:rgba(255,255,255,.4); border-top-color:#fff; }
/* ── 체크박스 (직각) ── */
#h2 .ck { width:15px; height:15px; flex:none; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid #cbd5e1; background:#fff; color:#fff; font-size:9px; font-weight:900; cursor:pointer; }
#h2 .ck.is-on { border-color:var(--accent, #5a6636); background:var(--accent, #5a6636); }
/* ── 발주 취합 도우미 — 단계 표시 · 대화 로그 ── */
#h2 .sf-steps { display:inline-flex; flex-wrap:wrap; }
#h2 .sf-step { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border:1px solid var(--line-soft); border-left:0; background:var(--panel-sub); font-size:10px; font-weight:800; color:var(--muted); white-space:nowrap; }
#h2 .sf-step:first-child { border-left:1px solid var(--line-soft); }
#h2 .sf-step.is-done { background:var(--accent-bg-2, #f0efe2); color:var(--accent-fg, #4d5434); }
#h2 .sf-step.is-busy { background:var(--warn-bg, #fef3e2); color:var(--warn-fg, #b4530a); border-color:var(--warn-line, #f2d3ae); }
#h2 .sf-chat { display:flex; flex-direction:column; gap:6px; padding:10px; border:1px solid var(--line-soft); background:var(--panel-sub); }
#h2 .sf-msg { max-width:88%; padding:7px 10px; font-size:11.5px; line-height:1.6; word-break:keep-all; }
#h2 .sf-msg--sys { align-self:flex-start; background:#fff; border:1px solid var(--line-soft); color:var(--text-mid); }
#h2 .sf-msg--user { align-self:flex-end; background:#fff; color:var(--accent-fg, #4d5434);
  border:1px solid var(--accent, #5a6636); border-right-width:3px; }
#h2 .sf-msg--user b { color:var(--accent-fg, #4d5434); }
#h2 .sf-msg--sys { border-left-width:3px; border-left-color:var(--line); }
#h2 .sf-acts { display:flex; gap:5px; flex-wrap:wrap; margin-top:6px; padding-top:8px;
  border-top:1px dashed var(--line); }
/* ── 일괄 수집 설정 바 ── */
#h2 .col-bar { display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:8px 10px; border:1px solid var(--line); background:var(--panel-sub); }
#h2 .col-f { display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:800; color:var(--muted); }
#h2 .col-f select { border:1px solid var(--line); background:#fff; font:inherit; font-size:11px; font-weight:700; padding:4px 6px; outline:none; color:var(--text); }

/* ── 사이트별 주문 — 채널 · 계정 행 공통 열 격자 (막대 · 건수 열 정렬) ── */
#h2 .ch-row { display:grid; grid-template-columns:15px 16px var(--cw-name,minmax(88px,1.5fr)) var(--cw-late,46px) var(--cw-pay,minmax(130px,1fr)) 62px 22px;
          align-items:center; gap:6px; padding:8px 9px; border:1px solid var(--line-soft); background:#fff; }
/* v373 — 1열 계정 행: 2열처럼 표 형태 (행 채움 · 구분선 · 얼룩무늬) */
#h2 .ch-row--sub { border:0; border-top:1px solid var(--line-faint); background:#fff; padding:6px 9px; }
#h2 .ch-row--sub:nth-child(even) { background:var(--panel-sub,#fbfaf2); }
/* v373 — 열 헤더 + 폭 조절 그립 */
#h2 .ch-head { display:grid; grid-template-columns:15px 16px var(--cw-name,minmax(88px,1.5fr)) var(--cw-late,46px) var(--cw-pay,minmax(130px,1fr)) 62px 22px;
  align-items:center; gap:6px; padding:4px 9px; border:1px solid var(--line-soft); border-bottom:0; background:var(--panel-alt,#f6f5ec);
  font-size:10.5px; font-weight:800; color:var(--muted); }
#h2 .ch-head__c { position:relative; white-space:nowrap; overflow:hidden; }
#h2 .ch-head__c[data-cw="n"], #h2 .ch-head__c[data-cw="late"], #h2 .ch-head__c[data-cw="pay"] { text-align:right; padding-right:6px; }
#h2 .cw-grip { position:absolute; top:-5px; bottom:-5px; right:0; width:9px; cursor:col-resize; }
#h2 .cw-grip::after { content:''; position:absolute; top:3px; bottom:3px; right:3px; width:1px; background:var(--line,#dcd8c0); }
#h2 .cw-grip:hover::after { background:var(--accent,#5a6636); width:2px; }
#h2 .ch-row__name { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .ch-row--sub .ch-row__name { font-size:11px; color:var(--text-mid); }
#h2 .ch-row__n { display:flex; align-items:baseline; gap:3px; justify-content:flex-end; }
#h2 .ch-row__n b { font-size:13px; font-variant-numeric:tabular-nums; }
#h2 .ch-row--sub .ch-row__n b { font-size:11.5px; }
#h2 .ch-row__n span { font-size:var(--fs-xs); color:var(--muted); }
#h2 .ch-row__late { font-size:11px; text-align:right; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .ch-row--sub .ch-row__late { color:var(--faint); }
#h2 .ch-row__pay { font-size:10.5px; color:var(--muted); text-align:right; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .ch-row__fold { display:flex; justify-content:flex-end; gap:5px; min-width:0; }
#h2 .ch-row__cfg { display:flex; justify-content:flex-end; min-width:0; }
@media (max-width:900px) {
  #h2 .ch-row { grid-template-columns:15px 16px minmax(88px,1fr) 44px 46px 62px 22px; }
  #h2 .ch-row .bar { grid-column:3 / -1; }
  #h2 .ch-row__pay { grid-column:3 / span 2; text-align:left; }
}


/* ── 재고 작업 폼 (판매입력 · 구매입력 · 재고조정 · 로케이션이동) ── */
#h2 .st-box { margin-top: 9px; border: 1px solid var(--line); background: var(--panel-sub); padding: 9px 10px;
          display: flex; flex-direction: column; gap: 7px; }
#h2 .st-f { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
#h2 .st-l { flex: none; font-size: 10.5px; font-weight: 800; color: var(--muted); }
#h2 .st-i { border: 1px solid var(--line); background: #fff; font: inherit; font-size: 12px; padding: 5px 8px; outline: none; color: var(--text); }
#h2 .st-i:focus { border-color: var(--accent, #5a6636); }
#h2 .st-i--code { width: 96px; font-weight: 700; }
#h2 .st-i--n { width: 68px; text-align: right; font-variant-numeric: tabular-nums; }
#h2 .st-info { flex: 1 1 150px; min-width: 0; font-size: 11px; color: var(--muted); }
#h2 .st-cur { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 6px 9px; background: #fff; border: 1px solid var(--line-soft); }
#h2 .st-cur b { font-size: 12px; }
#h2 .st-cur__t { font-size: 10px; font-weight: 800; color: var(--muted); }
#h2 .st-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 7px; border-top: 1px solid var(--line-soft); }
#h2 .st-note { flex: 1 1 180px; min-width: 0; font-size: 10.5px; color: var(--muted); }

/* 카드 본문이 스크롤을 맡으므로, 내부 grow 섹션은 내용 높이로 고정한다
   (flex-shrink로 0까지 눌려 목록이 사라지는 문제 방지) */
#h2 .pbody > .card__section--grow { flex: 0 0 auto; }
#h2 .pbody > .card__section--grow > .scroll-y { min-height: 180px; overflow-y: visible; }
/* CS 카드처럼 2행 카드의 목록은 넉넉히 유지 */
#h2 .pbody .scroll-y.card__section--grow { flex: 1 1 auto; min-height: 180px; }

/* 가상 로케이션 표시 · 이동 가이드 */
#h2 .st-warn { font-size: 10px; font-weight: 800; padding: 1px 6px; background: var(--warn-bg); color: var(--warn-fg); }
#h2 .st-ok { font-size: 10px; font-weight: 800; padding: 1px 6px; background: var(--ok-bg); color: var(--ok-fg); }
#h2 .st-guide { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px 10px;
            border: 1px solid var(--accent-line, #c9c5a1); background: var(--accent-bg-2, #f0efe2); }
#h2 .st-guide > b { flex: none; font-size: 10.5px; color: var(--accent-fg, #4d5434); }
#h2 .st-guide > span { flex: 1 1 220px; min-width: 0; font-size: 11px; color: var(--text-mid); line-height: 1.55; word-break: keep-all; }

/* 사이트별 주문 하단 실행 바 — 목록이 길어져도 스크롤 없이 바로 실행 */
#h2 .sf-bar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
          margin-top: 7px; padding: 8px 9px; border: 1px solid var(--line); background: var(--panel-sub); }
#h2 .sf-bar__sum { flex: 1 1 auto; min-width: 0; font-size: 11px; color: var(--muted); }
#h2 .sf-bar__sum b { font-size: 12.5px; color: var(--accent-fg, #4d5434); font-variant-numeric: tabular-nums; }

/* 비활성 버튼 — 눌리지 않음을 명확히 (sticky 실행 바 · 폼 제출 공통) */
#h2 .btn:disabled, #h2 .btn.primary:disabled, #h2 button:disabled.btn {
  background: var(--panel-alt, #f6f5ec); color: var(--muted); border-color: var(--line);
  cursor: default; box-shadow: none; }
#h2 .btn:disabled:hover { background: var(--panel-alt, #f6f5ec); }

/* ── 대화 속 파일 · 완료 카드 ── */
#h2 .sf-file { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 7px;
           border: 1px solid var(--line); background: var(--panel-sub); }
#h2 .sf-file--sm { margin-top: 4px; background: #fff; }
#h2 .sf-file__ico { flex: none; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
                background: var(--panel-alt, #f6f5ec); color: var(--slate); font-size: 10px; font-weight: 800; }
#h2 .sf-file__n { flex: 1 1 auto; min-width: 0; font-size: 11px; font-weight: 700; white-space: nowrap;
              overflow: hidden; text-overflow: ellipsis; }
#h2 .sf-file__s { flex: none; font-size: 10px; color: var(--muted); white-space: nowrap; }
#h2 .sf-done { border: 1px solid var(--accent, #5a6636); background: #fff; }
#h2 .sf-done__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 11px;
              background: var(--accent, #5a6636); color: #f2eeda; }
#h2 .sf-done__h b { font-size: 12.5px; }
#h2 .sf-done__no { font-size: 10.5px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
#h2 .sf-done__save { margin-left: auto; font-size: 10px; font-weight: 800; padding: 2px 7px;
                 background: rgba(255,255,255,.16); }
#h2 .sf-done__b { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; }
#h2 .sf-done__r { display: flex; gap: 9px; font-size: 11.5px; }
#h2 .sf-done__r b { flex: none; width: 86px; font-size: 10.5px; font-weight: 800; color: var(--muted); }
#h2 .sf-done__r span { flex: 1; min-width: 0; color: var(--text-mid); word-break: keep-all; }
#h2 .sf-done__f { padding: 0 11px 9px; }
#h2 .sf-done__ft { display: block; font-size: 10.5px; font-weight: 800; color: var(--muted); margin-bottom: 3px; }
#h2 .sf-done .sf-acts { margin: 0; padding: 8px 11px; border-top: 1px solid var(--line-soft); border-bottom: 0; }

/* ── 오늘 완료 이력 ── */
#h2 .sf-hist { border: 1px solid var(--line); background: #fff; margin-bottom: 8px; }
#h2 .sf-hist__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px;
              background: var(--panel-sub); border-bottom: 1px solid var(--line-soft); }
#h2 .sf-hist__h b { font-size: 11.5px; }
#h2 .sf-hist__h span { font-size: 10.5px; color: var(--muted); }
#h2 .sf-hist__r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px;
              border-bottom: 1px solid var(--line-faint); }
#h2 .sf-hist__r:last-child { border-bottom: 0; }
#h2 .sf-hist__at { flex: none; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
#h2 .sf-hist__no { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; }
#h2 .sf-hist__ch { flex: 1 1 140px; min-width: 0; font-size: 11px; color: var(--text-mid);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h2 .sf-hist__n, #h2 .sf-hist__way, #h2 .sf-hist__f { flex: none; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
#h2 .sf-hist__n b { font-size: 11.5px; color: var(--accent-fg, #4d5434); font-variant-numeric: tabular-nums; }
/* v477 — 완료 이력 날짜 선택 · 작업 노트(.wn-modal 은 body 직속)에서도 같은 형태 */
#h2 .sf-hist__nav { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
#h2 .sf-hist__nav input[type=date] { font: inherit; font-size: 11px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
#h2 .sf-hist__nav .btn.sm { padding: 3px 8px; }
.wn-modal .sf-hist { border: 1px solid var(--line); background: #fff; border-radius: 10px; overflow: hidden; }
.wn-modal .sf-hist__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; background: var(--panel-sub); border-bottom: 1px solid var(--line-soft); }
.wn-modal .sf-hist__h b { font-size: 11.5px; }
.wn-modal .sf-hist__h span { font-size: 10.5px; color: var(--muted); }
.wn-modal .sf-hist__r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-bottom: 1px solid var(--line-faint); }
.wn-modal .sf-hist__r:last-child { border-bottom: 0; }
.wn-modal .sf-hist__at { flex: none; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wn-modal .sf-hist__no { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; }
.wn-modal .sf-hist__ch { flex: 1 1 140px; min-width: 0; font-size: 11px; color: var(--text-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-modal .sf-hist__n, .wn-modal .sf-hist__way, .wn-modal .sf-hist__f { flex: none; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.wn-modal .sf-hist__n b { font-size: 11.5px; color: var(--accent-fg, #4d5434); font-variant-numeric: tabular-nums; }
.wn-modal .sf-hist .btn.sm { padding: 4px 9px; font-size: 11px; font-weight: 700; }

/* ── 업로드 파일 레이아웃 설정 패널 ── */
#h2 .cfg { margin: 0 0 2px; border: 1px solid var(--accent-line, #c9c5a1); background: var(--panel-sub); }
#h2 .cfg__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px;
          border-bottom: 1px solid var(--line-soft); background: #fff; }
#h2 .cfg__h b { font-size: 11.5px; }
#h2 .cfg__h span { flex: 1 1 auto; min-width: 0; font-size: 10.5px; color: var(--muted); }
#h2 .cfg__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 8px 10px; }
#h2 .cfg__f { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; color: var(--muted); }
#h2 .cfg__hint { font-size: 10.5px; color: var(--muted); }
#h2 .cfg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 5px 8px; padding: 0 10px 8px; }
#h2 .cfg__row { display: flex; align-items: center; gap: 6px; }
#h2 .cfg__l { flex: 1 1 auto; min-width: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h2 .cfg__row select { width: 54px; }
#h2 .cfg__ex { flex: none; width: 42px; font-size: 10px; color: var(--muted); }
#h2 .cfg__match { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-top: 1px solid var(--line-soft); }
#h2 .cfg__match b { flex: none; font-size: 10.5px; color: var(--muted); }
#h2 .cfg__acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-top: 1px solid var(--line-soft); background: #fff; }

/* 판매 · 구매입력 품목 행 */
#h2 .st-row { display:grid; grid-template-columns:96px minmax(90px,1.3fr) minmax(96px,1fr) 68px 72px 30px;
          align-items:center; gap:6px; }
#h2 .st-row__n { font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .st-row__s { font-size:10.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .st-row__s b { color:var(--accent-fg, #4d5434); font-variant-numeric:tabular-nums; }
#h2 .st-row__a { font-size:10.5px; color:var(--muted); text-align:right; white-space:nowrap; }
#h2 .st-row__a b { font-size:11.5px; color:var(--text); font-variant-numeric:tabular-nums; }
@media (max-width:900px) { #h2 .st-row { grid-template-columns:96px minmax(80px,1fr) 68px 30px; }
  #h2 .st-row__s, #h2 .st-row__a { display:none; } }

/* 로케이션 검색 필드 — 입력값으로 후보 좁히기 */
#h2 .st-loc { position:relative; display:inline-flex; align-items:center; gap:6px; }
#h2 .st-loc__pop { position:absolute; left:0; top:calc(100% + 3px); z-index:6; min-width:190px;
               border:1px solid var(--line); background:#fff; box-shadow:0 10px 24px rgba(16,24,40,.14); }
#h2 .st-loc__i { display:block; width:100%; text-align:left; border:0; border-bottom:1px solid var(--line-faint);
             background:#fff; font:inherit; font-size:11.5px; padding:6px 9px; cursor:pointer; color:var(--text); }
#h2 .st-loc__i:last-child { border-bottom:0; }
#h2 .st-loc__i:hover { background:var(--panel-sub); }
#h2 .st-loc__none { display:block; padding:7px 9px; font-size:11px; color:var(--muted); }

/* 카드 제목 옆 이동하기 */
#h2 .card__go { flex:none; width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center;
            border:1px solid var(--line); background:#fff; color:var(--slate); font-size:11px; cursor:pointer; padding:0; }
#h2 .card__go:hover { background:var(--accent, #5a6636); border-color:var(--accent, #5a6636); color:#f2eeda; }

/* 쿠팡 재고 일괄 반영 위젯 — 일괄 실행 바 */
#h2 .cp-bar { display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:8px 9px;
          border:1px solid var(--line); background:var(--panel-sub); }

/* 실시간 취소요청 — 계정 표시 행 · 취소완료 확인 팝업 */
#h2 .cx-row { display:grid; grid-template-columns:60px minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,0.9fr) minmax(0,0.7fr) 48px;
          align-items:center; gap:6px; padding:6px 9px; border:1px solid var(--warn-line); background:var(--warn-bg); }
#h2 .cx-row__acct { font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .cx-row__no { font-size:11px; color:var(--text-mid); font-variant-numeric:tabular-nums; white-space:nowrap;
              overflow:hidden; text-overflow:ellipsis; }
#h2 .cx-row__it { font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .cx-row__at { font-size:10.5px; color:var(--muted); text-align:right; white-space:nowrap; }
#h2 .cx-row .btn { justify-self:end; }
#h2 .cx-pop { margin-top:7px; border:1px solid var(--danger-line); background:#fff; }
#h2 .cx-pop__h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 10px;
             background:var(--danger-bg); border-bottom:1px solid var(--danger-line); }
#h2 .cx-pop__h b { font-size:12px; color:var(--danger); }
#h2 .cx-pop__h span { flex:1 1 auto; min-width:0; font-size:10.5px; color:var(--text-mid); }
#h2 .cx-pop__b { display:flex; flex-direction:column; gap:4px; padding:9px 10px; }
#h2 .cx-pop__r { display:flex; gap:9px; font-size:11.5px; }
#h2 .cx-pop__r b { flex:none; width:70px; font-size:10.5px; font-weight:800; color:var(--muted); }
#h2 .cx-pop__n { margin-top:4px; padding:7px 9px; background:var(--panel-sub); border:1px solid var(--line-soft);
             font-size:11px; color:var(--text-mid); line-height:1.55; word-break:keep-all; }
#h2 .cx-pop__f { display:flex; justify-content:flex-end; gap:6px; padding:8px 10px; border-top:1px solid var(--line-soft); }
@media (max-width:900px) { #h2 .cx-row { grid-template-columns:60px minmax(0,1fr) minmax(0,0.8fr) 48px; }
  #h2 .cx-row__it, #h2 .cx-row__at { display:none; } }

/* 상단 일괄 수집 — 최소 구성(기간 · 주기 · 실행) */
#h2 .col-mini { display:inline-flex; align-items:center; gap:7px; flex-wrap:wrap; }
#h2 .col-mini__t { font-size:10.5px; color:var(--muted); white-space:nowrap; }

/* 헤더 취소 배지 · 간략 취소 목록 패널 */
#h2 .card__cx { flex:none; border:1px solid var(--danger-line); background:var(--danger-bg); color:var(--danger);
            font:inherit; font-size:10px; font-weight:800; padding:2px 7px; cursor:pointer; }
#h2 .card__cx:hover, #h2 .card__cx.is-on { background:var(--danger); border-color:var(--danger); color:#fff; }
#h2 .cx-panel { margin-bottom:10px; border:1px solid var(--danger-line); background:#fff; padding:8px; }
#h2 .cx-panel__h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
#h2 .cx-panel__h b { font-size:11.5px; }
#h2 .cx-panel__h span { flex:1 1 auto; min-width:0; font-size:10.5px; color:var(--muted); }
#h2 .cx-panel .cx-row + .cx-row { margin-top:5px; }

#h2 .col-d { border:1px solid var(--line); background:#fff; font:inherit; font-size:11px; font-weight:700;
         padding:3px 6px; outline:none; color:var(--text); }

/* v291 — KPI 타일 격자 (시안 .kpi-grid) — 재고 · 주문 카드의 주요 현황이 가로로 배치되도록 */
#h2 .kpi-grid { display: grid; gap: 8px; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
#h2 .kpi-grid--4 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
#h2 .kpi-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#h2 .kpi { display: flex; flex-direction: column; justify-content: flex-start; }
#h2 .kpi .btn.sm { align-self: flex-start; }

/* v293 — 로딩 스피너: 밀리터리 스킨의 직각 강제(border-radius 0 !important)보다 우선해 원형 링으로 회전시킨다 */
html.mil #h2 .spin, html #h2 .spin { border-radius: 50% !important; width: 12px; height: 12px; border-width: 2px; border-color: rgba(90,102,54,.22); border-top-color: #5a6636; animation: ws-spin .65s linear infinite; vertical-align: -2px; box-sizing: border-box; }
html.mil #h2 .spin--w, html #h2 .spin--w { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
html.mil #h2 .card__go .spin, html #h2 .card__go .spin { width: 11px; height: 11px; vertical-align: 0; }

/* v294 — 수집 중 버튼: 비활성이어도 흐려지지 않고(올리브 배경 유지) 흰 링 스피너가 보이게 */
#h2 .btn.primary.is-busy:disabled, #h2 .btn.primary.is-busy:disabled:hover { background: #5a6636 !important; border-color: #5a6636 !important; color: #f2eeda !important; opacity: .92; cursor: progress; }
#h2 .btn.sm.primary.is-busy .spin { margin-right: 2px; }

/* v296 — 발주 취합: 수집 방식 전환(API 수집분 · 수동 업로드) · 계정별 발주확인 파일 업로드 (시안 workspace.css 476~498행 포팅) */
/* 발주 취합 — 수집 방식 전환 · 계정별 수동 업로드 */
#h2 .sf-seg { display:inline-flex; border:1px solid var(--line); }
#h2 .sf-seg__b { border:0; background:#fff; font:inherit; font-size:10.5px; font-weight:800; color:var(--muted);
             padding:4px 9px; cursor:pointer; }
#h2 .sf-seg__b + .sf-seg__b { border-left:1px solid var(--line); }
#h2 .sf-seg__b:hover:not(:disabled) { background:var(--panel-sub); color:var(--text); }
#h2 .sf-seg__b.is-on { background:var(--accent); border-color:var(--accent); color:#fff; }
#h2 .sf-seg__b:disabled { cursor:default; opacity:.55; }
#h2 .sf-man { border:1px solid var(--line); background:#fff; margin-top:8px; }
#h2 .sf-man__h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:7px 9px;
             background:var(--panel-sub); border-bottom:1px solid var(--line); }
#h2 .sf-man__h b { font-size:11.5px; }
#h2 .sf-man__h span { flex:1 1 180px; min-width:0; font-size:10.5px; color:var(--muted); }
#h2 .sf-man__r { display:grid; grid-template-columns:20px minmax(0,1fr) minmax(0,1.5fr) minmax(0,0.8fr) auto auto;
             align-items:center; gap:7px; padding:6px 9px; border-top:1px solid var(--line-faint); }
#h2 .sf-man__r:first-of-type { border-top:0; }
#h2 .sf-man__n { font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .sf-man__f { font-size:11px; color:var(--accent-fg); font-weight:700;
             white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .sf-man__f--none { color:var(--faint); font-weight:400; }
#h2 .sf-man__s { font-size:10.5px; color:var(--muted); white-space:nowrap; text-align:right; }
@media (max-width:900px) { #h2 .sf-man__r { grid-template-columns:20px minmax(0,1fr) auto auto; }
  .sf-man__f, #h2 .sf-man__s { display:none; } }

/* v297 — 데모(시안) 톤: KPI 숫자 21px · 폴드 버튼 줄바꿈 방지 · 채널 칩(span-btn) */
#h2 .kpi__value { font-size: 21px; letter-spacing: -.8px; font-weight: 800; }
#h2 .ch-row__fold .btn { white-space: nowrap; }
#h2 .span-btn { padding: 3px 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 10.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
#h2 .span-btn.is-active { background: var(--accent-bg); color: var(--accent-fg); border-color: var(--accent-line); }
#h2 .kpi-grid .kpi { padding: 10px 11px; }

/* v298 — 사이트별 주문 행: 펼치기 버튼(▾ N스토어) 폭을 내용에 맞춰 결제완료/반품 칸과 겹치지 않게 */
#h2 .ch-row, #h2 .ch-head { grid-template-columns: 15px 16px var(--cw-name,minmax(88px,1.5fr)) var(--cw-late,46px) var(--cw-pay,minmax(120px,1fr)) auto 22px; }
#h2 .ch-row__fold .btn { white-space: nowrap; }
/* 작업 노트 — 재고 조정 요약 바 (시안 worknote.css) */
#h2cal .wn-adj { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:9px 11px; margin-bottom:11px; border:1px solid #c9c5a1; background:#f5f4e7; }
#h2cal .wn-adj__t { flex:none; font-size:11px; font-weight:800; color:#4d5434; }
#h2cal .wn-adj__b { display:flex; align-items:center; gap:5px; padding:3px 8px; background:#fff; border:1px solid var(--line-soft); }
#h2cal .wn-adj__b > b { font-size:12px; font-variant-numeric:tabular-nums; }
#h2cal .wn-adj__l { font-size:10px; font-weight:800; color:var(--muted); }
#h2cal .wn-adj__up { font-size:10.5px; font-weight:800; padding:1px 5px; background:#e7f6ec; color:#15803d; }
#h2cal .wn-adj__dn { font-size:10.5px; font-weight:800; padding:1px 5px; background:#fdece8; color:#b0413e; }
#h2cal .wn-adj__net { font-size:11px; font-weight:700; color:var(--muted); }
#h2cal .wn-adj__net b { font-size:13px; font-variant-numeric:tabular-nums; }
#h2cal .wn-adj__hint { margin-left:auto; font-size:10.5px; color:var(--muted); }

/* v303 — 결제완료 · 준비중 동시 표시에 맞춰 칸을 넓힘 */
#h2 .ch-row { grid-template-columns: 15px 16px minmax(88px,1.5fr) 44px minmax(40px,0.9fr) 46px 128px auto 22px; }
#h2 .ch-row__pay { font-size: 10.5px; }

/* v305 — 사이트별 주문: 그룹 행과 계정 행의 열 폭을 고정해 막대 · 건수 · 버튼 열이 한 줄로 맞게 */
#h2 .ch-row, #h2 .ch-row--sub { grid-template-columns: 15px 16px minmax(88px,1.5fr) 44px minmax(40px,0.9fr) 46px 128px 84px 22px; }
#h2 .ch-row--sub { padding: 3px 9px; }
#h2 .ch-row__fold { justify-content: flex-end; }
#h2 .ch-row__late { min-width: 46px; }

/* v306 — 사이트별 주문 표 다듬기: 행 높이 통일(32px) · 작은 버튼 · 막대 폭 확보 · 숫자 우측 정렬 */
#h2 .ch-row, #h2 .ch-row--sub { grid-template-columns: 15px 16px minmax(96px,1.3fr) 48px minmax(60px,1.2fr) 48px 120px 74px 22px; min-height: 32px; gap: 8px; }
#h2 .ch-row { padding: 6px 9px; }
#h2 .ch-row--sub { padding: 2px 9px; min-height: 28px; }
#h2 .ch-row--sub .ch-row__name { font-size: 11.5px; color: #33415c; font-weight: 600; }
#h2 .ch-row__n { justify-content: flex-end; white-space: nowrap; }
#h2 .ch-row__late, #h2 .ch-row__pay { text-align: right; font-variant-numeric: tabular-nums; }
#h2 .ch-row__fold .btn, #h2 .ch-row__cfg .btn { height: 22px; padding: 0 8px; font-size: 11px; line-height: 20px; }
#h2 .ch-row__fold .btn.sm[title^="발주파일"] { width: 26px; padding: 0; justify-content: center; }
#h2 .ch-row .bar { height: 7px; }
#h2 #h2ship > .card__section > div[style*="flex-direction:column"] { gap: 4px !important; }

/* v307 — 결제완료 · 준비중 2칸 고정 폭 (행마다 같은 자리) */
#h2 .ch-row, #h2 .ch-row--sub { grid-template-columns: 15px 16px minmax(96px,1.3fr) 48px minmax(60px,1.2fr) 48px 150px 74px 22px; }
#h2 .ch-row__pay2 { display: grid; grid-template-columns: 78px 64px; gap: 4px; }
#h2 .ch-row__pay2 > span { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#h2 .ch-row__pay2 i { font-style: normal; color: #d4d6c6; }

/* v313 — 사이트별 주문 2열 보기 (시안): 채널 카드 격자 */
#h2 .ch-card { border: 1px solid var(--line-soft); background: #fff; min-width: 0; }
#h2 .ch-card.is-open { border-color: var(--line); }
#h2 .ch-card__r { display: flex; align-items: center; gap: 6px; padding: 7px 9px; min-width: 0; }
#h2 .ch-card__r--sub { padding: 3px 9px 3px 14px; background: #fbfaf2; border-top: 1px solid var(--line-faint); }
#h2 .ch-card__name { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#h2 .ch-card__late { flex: none; font-size: 10px; font-weight: 800; color: #fff; background: #b8860b; padding: 0 5px; line-height: 15px; }
#h2 .ch-row__late .ch-card__late { display: inline-block; }   /* v372 — 1열도 2열과 같은 지연 배지 */
#h2 .ch-card__n { flex: none; font-size: 10.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
#h2 .ch-card__n b { font-size: 12.5px; color: var(--text); }
#h2 .ch-card__pay { flex: none; font-size: 12px; color: #4d5434; font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
#h2 .ch-card__pay2 { flex: none; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
#h2 .ch-card .btn.sm { height: 22px; line-height: 20px; font-size: 11px; }
@media (max-width: 900px) { #h2 #h2ship [style*="repeat(2,minmax(0,1fr))"] { grid-template-columns: 1fr !important; } }

/* v314 — 현황 타일 미니멀화 (시안 갱신분): 여백 5px 9px 6px · 라벨 10.5px · 줄 간격 0 — 숫자 크기(21px)는 유지 */
#h2 .kpi, #h2 .kpi-grid .kpi { padding: 5px 9px 6px !important; gap: 0; min-height: 0; line-height: 1.2; }
#h2 .kpi__label { font-size: 10.5px; line-height: 1.25; }
#h2 .kpi > div[style*="margin-top:5px"] { margin-top: 1px !important; }
#h2 .kpi > span[style*="margin-top:2px"], #h2 .kpi > span[style*="margin-top:3px"] { margin-top: 0 !important; font-size: 10px; line-height: 1.2; }
#h2 .kpi__value { line-height: 1.15; }

/* v315 — 2열 보기: 카드 행을 격자로 바꿔 건수 · 결제완료 · 준비중 열이 행마다 같은 자리에 오게 */
#h2 .ch-card__r { display: grid; grid-template-columns: 15px 16px minmax(0,1fr) 22px 150px 44px 22px; gap: 6px; align-items: center; }
#h2 .ch-card__r--sub { grid-template-columns: 15px 16px minmax(0,1fr) 22px 150px 26px; }
#h2 .ch-card__r > .ck { grid-column: 1; }
#h2 .ch-card__r--sub > .ck + .ch-card__name { grid-column: 3; }
#h2 .ch-card__late { justify-self: start; }
#h2 .ch-card__n { text-align: right; }
#h2 .ch-card__pay { text-align: right; }
#h2 .ch-card__pay2 { display: grid; grid-template-columns: 78px 64px; gap: 4px; text-align: right; }
#h2 .ch-card__pay2 .ch-row__pay2 { display: contents; }
#h2 .ch-card__r .bar { width: 100%; }
#h2 .ch-card__r > .btn.sm { justify-self: end; }

/* v315b — 2열 카드 열 폭 압축 (좁은 카드에서도 이름 칸 확보) · 카드 폭이 부족하면 자동 1열 */
#h2 .ch-card__r { grid-template-columns: 15px 16px minmax(40px,1fr) 20px 50px 44px 32px 40px 20px; gap: 4px; }
#h2 .ch-card__r--sub { grid-template-columns: 15px 16px minmax(40px,1fr) 20px 50px 124px 24px; }
#h2 .ch-card__pay2 { grid-template-columns: 66px 54px; gap: 4px; font-size: 10px; }
#h2 .ch-card__r--sub { grid-template-columns: 15px 16px minmax(40px,1fr) 20px 50px 124px 20px; }

/* v316 — 홈 탭: 시안 page-tabs(밑줄 탭) · 고정 메뉴 바는 탭 아래 */
#h2 .h2tabs { display: flex; gap: 2px; padding: 0 2px; margin: -4px 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
#h2 .h2tabs::-webkit-scrollbar { height: 0; }
#h2 .h2tabs .page-tabs__item { padding: 7px 12px 9px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--sub); cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 0 transparent; }
#h2 .h2tabs .page-tabs__item:hover { color: var(--text); }
#h2 .h2tabs .page-tabs__item.is-active { color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 0 var(--accent); }
#h2 .wbar { margin-bottom: 10px; }

/* v317 — 행 높이 400px: 주문·배송(2행) · CS(2행) 812px, 재고 등 1행 400px — 기본 상태에서 스크롤이 생기지 않게 */
#h2 { --row-h: 400px; }

/* v320 — 사이트별 주문: 이름 칸 폭(--h2nw) · 결제완료/준비중 좌측 정렬(첫 글자 열 맞춤) · 잘림 방지 */
#h2 .ch-row, #h2 .ch-row--sub { grid-template-columns: 15px 16px var(--h2nw, minmax(40px,1fr)) 48px minmax(60px,1.2fr) 48px 150px 74px 22px; }
#h2 .ch-row__pay2 { grid-template-columns: 84px 64px; text-align: left; }
#h2 .ch-row__pay2 > span { text-align: left; overflow: visible; }
#h2 .ch-row__pay { text-align: left; }
#h2 .ch-card__r { grid-template-columns: 15px 16px var(--h2nw, minmax(40px,1fr)) 20px 50px minmax(30px,1fr) 32px 40px 20px; }
#h2 .ch-card__r--sub { grid-template-columns: 15px 16px var(--h2nw, minmax(40px,1fr)) 20px 50px minmax(120px,1fr) 20px; }
#h2 .ch-card__pay2 { grid-template-columns: 72px 56px; text-align: left; }
#h2 .ch-card__pay2 > span, #h2 .ch-card__pay2 .ch-row__pay2 > span { text-align: left; overflow: visible; white-space: nowrap; }
#h2 .ch-card__pay { text-align: left; }
/* 탭 배경 흰색 (시안) — 활성 탭은 흰 바탕 + 밑줄 */
#h2 .h2tabs { background: #fff; border: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 6px; margin: 0 0 10px; }
#h2 .h2tabs .page-tabs__item.is-active { background: #fff; }

/* v323 — 홈 탭 디테일 (시안 page-tabs): 페이지 헤더 바로 아래 흰 띠로 이어붙고, 항목은 13px/600 · 7px 12px 9px · 활성=밑줄 2px */
#h2 .h2tabs { display: flex; gap: 2px; align-items: flex-end; margin: -16px -18px 12px; padding: 6px 18px 0; background: #fff; border: 0; border-bottom: 1px solid #dcd8c0; overflow-x: auto; scrollbar-width: none; }
#h2 .h2tabs .page-tabs__item { padding: 7px 12px 9px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #6b7160; cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 0 transparent; }
#h2 .h2tabs .page-tabs__item:hover { color: #1c2430; }
#h2 .h2tabs .page-tabs__item.is-active { color: #1c2430; font-weight: 700; background: #fff; box-shadow: inset 0 -2px 0 0 #5a6636; }
#h2 .h2tabs .page-tabs__item[title] { color: #98a08a; }
@media (max-width: 900px) { #h2 .h2tabs { margin: -12px -12px 10px; padding: 4px 12px 0; } }

/* v328 — 도우미 대화 텍스트 선택 가능 */
#h2 .sf-chat, #h2 .sf-msg, #h2 .sf-done, #h2 .sf-hist { user-select: text; -webkit-user-select: text; cursor: text; }
#h2 .sf-chat .btn, #h2 .sf-acts, #h2 .sf-done .btn { cursor: pointer; user-select: none; }

/* v335 — 잘린 글씨 자동 흐름(전자 간판) */
.mq { overflow: hidden !important; text-overflow: clip !important; }
.mq__in { display: inline-block; white-space: nowrap; will-change: transform; animation: mq-slide var(--mq-d, 6s) linear infinite alternate; animation-delay: 1.2s; }
@keyframes mq-slide { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(var(--mq-x, -40px)); } }
.mq:hover .mq__in { animation-play-state: paused; }

/* ══ v345 — 주문상세조회 모달 (시안 order-detail.css · od-*) ══ */
#modal.od { --panel:#fff; --panel-sub:#fbfaf2; --panel-alt:#f6f5ec; --line:#dcd8c0; --line-soft:#e8e5d1; --line-faint:#edebdb; --text:#1c2430; --text-mid:#33415c; --sub:#6b7686; --muted:#98a2b3; --faint:#cbd5e1; --slate:#475467; --accent:#5a6636; --accent-hover:#4d5434; --accent-fg:#4d5434; --accent-bg:#ecead7; --accent-line:#c9c5a1; --ok-fg:#15803d; --ok-bg:#e7f6ec; --warn-fg:#b4530a; --warn-bg:#fef3e2; --warn-line:#f2d3ae; --danger-fg:#b45309; --danger-bg:#fcefdc; --danger-line:#efd4a5; --neutral-bg:#eef2f7; }
html #modal.od, html.official #modal.od { padding:0 !important; max-width:1000px; overflow:hidden; display:flex; flex-direction:column; max-height:calc(100vh - 60px); border:1px solid var(--line); box-shadow:0 18px 44px rgba(16,24,40,.3); }
.od-hd { flex:none; display:flex; align-items:flex-start; gap:11px; padding:13px 16px; background:#2a3020; color:#f2eeda; }
.od-hd__ico { flex:none; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border:1px solid #4d5434; background:#3f4a2b; font-size:14px; }
.od-hd__t { display:flex; align-items:center; gap:9px; flex-wrap:wrap; min-width:0; }
.od-hd__t b { font-size:15px; letter-spacing:-.3px; }
.od-no { font-family:'SFMono-Regular',Menlo,monospace; font-size:14.5px; font-weight:700; letter-spacing:.4px; }
.od-hd__m { display:flex; align-items:center; gap:7px; flex-wrap:wrap; font-size:11px; color:#b9bda6; margin-top:3px; }
.od-hd__m i { font-style:normal; color:#6b7355; }
.od-x { flex:none; width:30px; height:30px; border:1px solid #4d5434; background:none; color:#b9bda6; font:inherit; font-size:14px; cursor:pointer; }
.od-x:hover { background:#3f4a2b; color:#f2eeda; }
.od-tabs { flex:none; display:flex; gap:2px; padding:0 16px; background:var(--panel-sub); border-bottom:1px solid var(--line); }
.od-tab { padding:10px 13px 11px; border:0; background:none; font:inherit; font-size:12.5px; font-weight:800; color:var(--muted); cursor:pointer; box-shadow:inset 0 -2px 0 0 transparent; display:flex; align-items:center; gap:6px; }
.od-tab:hover { color:var(--text); }
.od-tab.is-on { color:var(--text); box-shadow:inset 0 -2px 0 0 var(--accent); }
.od-tab__n { min-width:16px; padding:0 5px; background:var(--warn-bg); color:var(--warn-fg); font-size:10px; font-weight:800; line-height:16px; text-align:center; }
.od-bd { flex:1; min-height:0; overflow-y:auto; padding:14px 16px 16px; display:flex; flex-direction:column; gap:14px; }
.od-sec__h { display:flex; align-items:center; gap:8px; margin-bottom:7px; flex-wrap:wrap; }
.od-sec__h b { font-size:11.5px; font-weight:800; color:var(--sub); letter-spacing:.3px; }
.od-sec__h span { font-size:10.5px; color:var(--muted); }
.od-dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 26px; border:1px solid var(--line-soft); background:var(--panel-sub); padding:4px 12px; }
.od-dl__r { display:flex; align-items:baseline; gap:10px; padding:6px 0; min-width:0; border-bottom:1px solid var(--line-faint); }
.od-dl__r:last-child, .od-dl__r--last { border-bottom:0; }
.od-dl__r--wide { grid-column:1 / -1; }
.od-dl__k { flex:none; width:92px; white-space:nowrap; font-size:11px; font-weight:700; color:var(--muted); }
.od-dl__v { flex:1; min-width:0; font-size:12.5px; font-weight:700; color:var(--text); display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.od-dl__v--num { justify-content:flex-end; font-variant-numeric:tabular-nums; }
.od-dl__v small { font-size:11px; font-weight:600; color:var(--sub); }
.od-copy { flex:none; border:1px solid var(--line); background:var(--panel); color:var(--sub); font:inherit; font-size:9.5px; font-weight:800; padding:1px 5px; cursor:pointer; }
.od-copy:hover { background:var(--accent-bg); border-color:var(--accent-line); color:var(--accent-fg); }
.od-tb { width:100%; border-collapse:collapse; background:var(--panel); }
.od-tb th { text-align:left; font-size:10.5px; font-weight:800; color:var(--sub); white-space:nowrap; background:var(--panel-alt); border:1px solid var(--line-soft); padding:7px 10px; }
.od-tb td { font-size:12px; color:var(--text-mid); border:1px solid var(--line-faint); padding:8px 10px; vertical-align:middle; }
.od-tb tfoot td { background:var(--panel-sub); font-weight:800; color:var(--text); }
.od-num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.od-thumb { width:34px; height:34px; flex:none; border:1px solid var(--line-soft); background:var(--panel-alt); color:var(--faint); font-size:9px; display:flex; align-items:center; justify-content:center; }
.od-mono { font-family:'SFMono-Regular',Menlo,monospace; font-weight:700; white-space:nowrap; }
.od-note { display:flex; align-items:flex-start; gap:9px; padding:9px 11px; border:1px solid var(--warn-line); background:var(--warn-bg); }
.od-note__i { flex:none; font-size:12px; line-height:1.5; }
.od-note__t { flex:1; min-width:0; font-size:11.5px; line-height:1.6; color:var(--warn-fg); word-break:keep-all; }
.od-note__t b { font-weight:800; }
.od-note a { color:var(--warn-fg); font-weight:800; }
.od-wb { border:1px solid var(--line-soft); background:var(--panel); }
.od-wb__r { display:flex; align-items:center; gap:9px; padding:9px 11px; flex-wrap:wrap; }
.od-wb__r + .od-wb__r { border-top:1px solid var(--line-faint); }
.od-wb__none { padding:16px 11px; text-align:center; font-size:11.5px; color:var(--muted); background:var(--panel-sub); }
.od-ft { flex:none; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:11px 16px; border-top:1px solid var(--line); background:var(--panel-sub); }
.od-ft__t { flex:1 1 260px; min-width:0; font-size:11px; color:var(--sub); line-height:1.55; word-break:keep-all; }
.od-btn { border:1px solid var(--line); background:var(--panel); color:var(--text-mid); font:inherit; font-size:11.5px; font-weight:700; padding:7px 12px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.od-btn:hover { background:var(--panel-alt); }
.od-btn--pri { border-color:var(--accent-hover); background:var(--accent); color:#f2eeda; font-weight:800; }
.od-btn--pri:hover { background:var(--accent-hover); }
.od-btn--warn { border-color:var(--danger-line); background:var(--danger-bg); color:var(--danger-fg); font-weight:800; }
.od-btn--warn:hover { background:#f8e3c4; }
.od-btn--sm { font-size:11px; padding:4px 9px; }
.od-rt { border:1px solid var(--line-soft); background:var(--panel); }
.od-rt__h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:9px 11px; background:var(--panel-sub); border-bottom:1px solid var(--line-soft); }
.od-rt__h b { font-size:12.5px; }
.od-tag { font-size:10px; font-weight:800; padding:2px 7px; white-space:nowrap; }
.od-tag--warn { background:var(--warn-bg); color:var(--warn-fg); }
.od-tag--ok { background:var(--ok-bg); color:var(--ok-fg); }
.od-tag--mute { background:var(--neutral-bg); color:var(--slate); }
@media (max-width:820px) { .od-dl { grid-template-columns:minmax(0,1fr); } }

/* ══ v390 — 집중 모드 (시안 workspace.css card--focus → #h2 .pan) ══ */
#h2 .pan { transition: box-shadow .34s cubic-bezier(.22,.68,.32,1), border-color .34s ease, opacity .3s ease, filter .3s ease; }
/* 확장 — 원래 자리에서 떠올라 화면을 덮는다 (테두리 부근 배경이 살짝 비치게) */
#h2 .pan--focus { position: fixed !important; z-index: 60; inset: 82px 22px 22px; order: 0 !important;
  grid-column: auto !important; grid-row: auto !important;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border-color: #c9c5a1 !important; box-shadow: 0 26px 70px rgba(28,32,20,.26);
  background: rgba(255,255,255,.965) !important; backdrop-filter: blur(3px) saturate(1.04);
  animation: h2-card-zoom .38s cubic-bezier(.22,.68,.32,1) both; }
@keyframes h2-card-zoom {
  from { transform: scale(.965) translateY(10px); opacity: .55; box-shadow: 0 4px 14px rgba(28,32,20,.08); }
  to   { transform: none; opacity: 1; }
}
/* 복구 — 제자리로 내려앉으며 사라진다 */
#h2 .pan--closing { animation: h2-card-unzoom .3s cubic-bezier(.4,.02,.72,.4) both; }
@keyframes h2-card-unzoom {
  from { transform: none; opacity: 1; }
  to   { transform: scale(.972) translateY(8px); opacity: .2; box-shadow: 0 4px 14px rgba(28,32,20,.06); }
}
#h2 .pan--dim { opacity: .34; filter: saturate(.55); pointer-events: none; }
#h2 .pan--undim { opacity: 1; filter: none; }
#h2 .pan--focus .pbody { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: #cfd3bd transparent; }
#h2scrim { position: fixed; inset: 0; z-index: 55; background: rgba(42,48,32,.16); backdrop-filter: blur(1.5px);
  opacity: 0; pointer-events: none; transition: opacity .34s ease; }
#h2scrim.is-on { opacity: 1; pointer-events: auto; }
body.has-focus { overflow: hidden; }
@media (max-width: 900px) { #h2 .pan--focus { inset: 66px 10px 10px; } }

/* v512 — 사이트별 주문 1열: 헤더와 행이 «같은 7칸 격자»를 쓰게 한다.
   종전엔 행(.ch-row)에 예전 9칸 규칙(막대 · 건수 열이 있던 v306)이 뒤에서 덮어써 헤더(7칸)와 열이 어긋났다
   (접기 버튼이 지연 칸 옆 48px 칸에, ••• 가 150px 칸에 들어감). 칸: 체크 | 아이콘 | 사이트 | 지연 | 결제 · 준비 | 펼침 · 발주파일 | ••• */
#h2 .ch-head, #h2 .ch-row, #h2 .ch-row--sub {
  grid-template-columns: 15px 16px var(--cw-name, minmax(110px,1.4fr)) var(--cw-late, 56px) var(--cw-pay, minmax(150px,1fr)) 86px 24px; gap: 8px; }
#h2 .ch-head { padding: 5px 9px; }
#h2 .ch-row { padding: 6px 8px; }          /* 바깥 테두리 1px + 행 테두리 1px + 8px = 헤더 · 계정 행과 같은 기준선(10px) */
#h2 .ch-row--sub { padding: 2px 9px; }
#h2 .ch-head__c[data-cw="late"], #h2 .ch-head__c[data-cw="pay"] { padding-right: 0; }
#h2 .ch-row__late, #h2 .ch-row__pay { min-width: 0; }

/* v513 — 사이트별 주문 2열 카드: 채널 행과 계정 행이 «같은 7칸 격자»를 쓰게 한다.
   종전엔 채널 행에 옛 9칸 규칙(지연 20px · 결제 50px …)이 남아 지연 배지가 결제완료 글자와 겹치고, 계정 행과 열 위치도 달랐다.
   칸: 체크 | 아이콘 | 이름 | 지연 | 결제완료 · 준비중(72+56) | 펼침 · 발주파일 | ••• */
#h2 .ch-card__r, #h2 .ch-card__r--sub {
  grid-template-columns: 15px 16px var(--h2nw, minmax(40px,1fr)) 40px 132px 44px 22px; gap: 5px; }
#h2 .ch-card__r--sub { padding: 3px 9px; }                       /* 들여쓰기는 이름 칸 안에서 — 오른쪽 열은 채널 행과 같은 자리 */
#h2 .ch-card__r--sub .ch-card__name { padding-left: 7px; }
#h2 .ch-card__late { justify-self: end; }
#h2 .ch-card__pay2 { min-width: 0; }
#h2 .ch-card__r > .btn.sm, #h2 .ch-card__r > a.btn.sm { justify-self: end; }
/* 1열: 이름 칸 폭 조절(--h2nw)도 그대로 반영 · 결제 · 준비 머리글은 값과 같이 왼쪽 정렬 */
#h2 .ch-head, #h2 .ch-row, #h2 .ch-row--sub {
  grid-template-columns: 15px 16px var(--cw-name, var(--h2nw, minmax(110px,1.4fr))) var(--cw-late, 56px) var(--cw-pay, minmax(150px,1fr)) 86px 24px; }
#h2 .ch-head__c[data-cw="pay"] { text-align: left; }

/* v681 — 자기 머리글(크럼 · 제목)이 있는 화면(채널 가격 · 재고 통합 · 발주 취합 파일함 · 노트 …)은 클래식 제목 밴드를 숨긴다 — 라우터가 매 이동마다 지우고 그 화면이 다시 켠다 */
html.v2 body.own-hdr #topbar { display:none !important; }

/* ══ v782 — 주문 · 배송 현황 설계 반영 (대표 2026-11-09 «주문 배송현황 설계입니다. 반영해주세요» · 명세 «내 워크스페이스 — 주문 · 배송 현황 (레이아웃 · 글자 크기)»)
   ① 대시보드 행 높이 560px(≤900px 480px) ② 플랫폼 글자 배지(.pbg · .pbl) ③ 사이트별 주문 2열 = 압축 행(.ch-row--slim — 숫자 칸 고정 폭이라 줄마다 같은 자리)
   ④ 1열에 건수 · 막대 칸 ⑤ 수동 업로드 줄(.sf-mr · .sf-mgrid) · 비밀번호 칸(.sf-pw) · 묶음 머리(.sf-man__g) · 여러 파일 한 번에(.sf-drop · .sf-multi) ══ */
#h2 { --row-h: 560px; }
@media (max-width: 900px) { #h2 { --row-h: 480px; } }

/* 플랫폼 배지 — 15×15 정사각 · 흰 글자 9.5px/800 · 두 글자(24)는 8px · 모서리 직각 · 그림 아이콘 없음 */
#h2 .pbg { display:inline-flex; align-items:center; justify-content:center; flex:none; width:15px; height:15px; color:#fff; font-style:normal;
  font-size:9.5px; font-weight:800; line-height:1; letter-spacing:-.3px; vertical-align:-2px; font-family:inherit; }
#h2 .pbg--2 { font-size:8px; letter-spacing:-.5px; }
#h2 .pbl { display:inline-flex; align-items:center; gap:4px; min-width:0; }
#h2 .pbl > span { font-size:10.5px; font-weight:800; color:var(--sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .ch-ico { margin-right:4px; font-size:11px; }
#h2 .ch-ico .pbg { margin-right:5px; }
#h2 .sf-man__g .pbg { margin-right:3px; }

/* 1열 — 체크 | 배지 | 사이트 | 건수 | 막대(결제완료 비율) | 지연 | 결제 · 준비 | 펼침 · 발주파일 | ••• (머리글 · 채널 행 · 계정 행이 같은 9칸 격자) */
#h2 .ch-head, #h2 .ch-row, #h2 .ch-row--sub {
  grid-template-columns: 15px 16px var(--cw-name, var(--h2nw, minmax(110px,1.4fr))) var(--cw-n, 54px) var(--cw-bar, minmax(40px,0.8fr)) var(--cw-late, 56px) var(--cw-pay, minmax(150px,1fr)) 86px 24px; }
#h2 .ch-row__n { min-width:0; }
#h2 .ch-row > .bar { min-width:0; width:100%; }
#h2 .ch-head__c[data-cw="n"] { text-align:right; padding-right:0; }
#h2 .ch-head__c[data-cw="bar"] { text-align:left; }
@media (max-width: 900px) {   /* 좁은 화면의 1열은 종전 7칸 그대로(건수 · 막대 칸은 숨김) */
  #h2 .ch-head, #h2 .ch-row, #h2 .ch-row--sub {
    grid-template-columns: 15px 16px var(--cw-name, var(--h2nw, minmax(110px,1.4fr))) var(--cw-late, 56px) var(--cw-pay, minmax(150px,1fr)) 86px 24px; }
  #h2 .ch-head > [data-cw="n"], #h2 .ch-head > [data-cw="bar"], #h2 .ch-row:not(.ch-row--slim) > .ch-row__n, #h2 .ch-row:not(.ch-row--slim) > .bar { display:none; }
}

/* 2열(압축) — 체크 14 | 이름(배지 + 채널 이름 + 지연 n) | 건수 54 | 막대 56 | 결제완료 36 | 준비중 30 | 버튼 64 */
#h2 .ch-wrap { container-type:inline-size; min-width:0; }
#h2 .ch-grid { display:flex; flex-direction:column; gap:6px; min-width:0; }
#h2 .ch-grid--2 { display:grid; grid-template-columns:minmax(0,1fr); gap:6px 8px; align-items:start; }
@container (min-width:620px) { #h2 .ch-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
#h2 .ch-row.ch-row--slim { grid-template-columns:14px minmax(0,1fr) 54px 56px 36px 30px 64px; gap:5px; padding:7px 8px; min-height:0; }
#h2 .ch-row.ch-row--slim.ch-row--sub { padding:1px 7px; min-height:24px; }
#h2 .ch-row--slim > .ck { width:14px; height:14px; }
#h2 .ch-row--slim .ch-row__name { font-size:12px; min-width:0; }
#h2 .ch-row--slim.ch-row--sub .ch-row__name { font-size:11.5px; }
#h2 .ch-row__nm { display:flex; align-items:center; min-width:0; }   /* 이름 칸 — 배지 · 지연 n 은 고정, 이름 글자만 줄임 */
#h2 .ch-row__nm > .ch-ico { flex:none; display:inline-flex; margin-right:5px; }
#h2 .ch-row__nm > .ch-ico .pbg { margin-right:0; vertical-align:0; }
#h2 .ch-row__nm > .ch-row__name { flex:0 1 auto; min-width:0; }
#h2 .ch-row__nm > .ch-late { flex:none; margin-left:4px; }
#h2 .ch-row--slim.ch-row--sub .ch-row__nm { padding-left:10px; }
@container (min-width:620px) and (max-width:839.98px) { #h2 .ch-grid--2 .ch-sfx { display:none; } }   /* 2칸으로 나뉘어 이름 칸이 좁을 때 «(4계정)» 꼬리 숨김 */
#h2 .ch-row--slim .ch-ico { font-size:12px; }
#h2 .ch-row--slim .ch-row__n { justify-content:flex-end; }
#h2 .ch-row--slim .ch-row__n b { font-size:13px; }
#h2 .ch-row--slim.ch-row--sub .ch-row__n b { font-size:11.5px; }
#h2 .ch-row--slim .ch-row__n span { font-size:11px; }
#h2 .ch-row--slim > .bar { grid-column:auto; height:6px; }
#h2 .ch-row--slim .ch-row__pay, #h2 .ch-row--slim .ch-row__prep { grid-column:auto; font-size:12px; text-align:right; font-variant-numeric:tabular-nums; min-width:0; }
#h2 .ch-row--slim .ch-row__wide { grid-column:span 2; min-width:0; font-size:11px; text-align:right; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
#h2 .ch-row__prep { font-size:10.5px; color:var(--muted); text-align:right; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .ch-row__prep.is-on { color:var(--warn-fg); }
#h2 .ch-row__prep b { font-variant-numeric:tabular-nums; }
#h2 .ch-row__act { display:flex; align-items:center; justify-content:flex-end; gap:4px; min-width:0; }
#h2 .ch-row--slim .ch-row__act .btn { height:20px; padding:0 5px; font-size:11px; line-height:18px; white-space:nowrap; }
#h2 .ch-row--slim .ch-row__act .btn.ch-dots { width:17px; height:17px; padding:0; font-size:9px; letter-spacing:.4px; line-height:1; justify-content:center; }
#h2 .ch-late { display:inline-block; padding:0 4px; line-height:15px; background:#fcefdc; color:#b45309; font-size:10.5px; font-weight:800; vertical-align:1px; }

/* 수동 업로드 — 묶음 머리(플랫폼 · 네이버 비밀번호 일괄) · 줄 격자 · 비밀번호 칸 · 여러 파일 한 번에 */
#h2 .sf-man__g { display:flex; align-items:center; gap:7px; flex-wrap:wrap; padding:7px 10px; background:var(--panel-sub); border-top:1px solid var(--line-faint); font-size:11px; color:var(--sub); }
#h2 .sf-man__g > span { flex:1 1 220px; min-width:0; font-weight:700; }
#h2 .sf-man__g > span small { font-size:10.5px; font-weight:400; color:var(--muted); }
#h2 .sf-man__g input { width:150px; height:26px; border:1px solid var(--line); background:#fff; padding:0 7px; font:inherit; font-size:11.5px; }
#h2 .sf-man__g input:focus { outline:none; border-color:var(--accent); }
#h2 .sf-man__g em { font-style:normal; font-size:10.5px; color:var(--accent-fg); font-weight:700; }
#h2 .sf-man__g .btn.sm { padding:3px 8px; }
#h2 .sf-man__warn { padding:7px 10px; background:#fff3e0; color:var(--warn-fg); font-size:11px; font-weight:700; border-top:1px solid var(--line-faint); }
#h2 .sf-drop { margin:6px 10px; padding:9px 11px; border:1.5px dashed var(--accent-line, #c9c5a1); background:var(--panel-sub); font-size:11px; color:var(--sub); line-height:1.55; }
#h2 .sf-drop.is-over { border-color:var(--accent); background:var(--accent-bg-2, #f0efe2); }
#h2 .sf-multi { margin:0 10px 6px; border:1px solid var(--accent-line, #c9c5a1); background:#fff; }
#h2 .sf-multi__h { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:6px 9px; background:var(--accent-bg-2, #f0efe2); font-size:11px; }
#h2 .sf-multi__h span { flex:1 1 160px; min-width:0; color:var(--muted); }
#h2 .sf-multi__h .btn.sm { padding:3px 8px; }
#h2 .sf-multi__r { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 170px; gap:8px; align-items:center; padding:5px 9px; border-top:1px solid var(--line-faint); font-size:11px; }
#h2 .sf-multi__r.is-miss { background:#fff6f2; }
#h2 .sf-multi__r--act { grid-template-columns:minmax(0,1.1fr) minmax(0,1.3fr) minmax(170px,240px); }   /* 확인 필요 줄 — 고르는 칸 + 단추가 들어가게 */
#h2 .sf-multi__f { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .sf-multi__w { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .sf-multi__r.is-miss .sf-multi__w { color:var(--danger-fg); font-weight:700; }
#h2 .sf-multi__a { display:flex; align-items:center; justify-content:flex-end; gap:4px; min-width:0; }
#h2 .sf-multi__r select, #h2 .sf-multi__r input { height:26px; border:1px solid var(--line); background:#fff; font:inherit; font-size:11px; min-width:0; width:100%; padding:0 5px; }
#h2 .sf-multi__r .btn.sm { padding:3px 7px; flex:none; white-space:nowrap; }
#h2 .sf-mr { display:grid; grid-template-columns:62px minmax(52px,96px) minmax(0,1fr) auto; align-items:center; gap:6px; padding:6px 9px; border-top:1px solid var(--line-faint); min-width:0; }
#h2 .sf-mr--nv { grid-template-columns:62px minmax(52px,96px) minmax(0,1fr) minmax(76px,104px) auto; }
#h2 .sf-mr.is-new { background:var(--accent-bg-2, #f0efe2); }
#h2 .sf-mr__i { font-size:inherit; display:flex; min-width:0; }
#h2 .sf-mr__n { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
#h2 .sf-mr__f { display:flex; flex-direction:column; min-width:0; }
#h2 .sf-mr__f b { font-size:11.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .sf-mr__f b.is-none { color:var(--faint); font-weight:600; }
#h2 .sf-mr__f small { font-size:10.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#h2 .sf-mr__f em { font-style:normal; font-weight:800; color:var(--warn-fg); }
#h2 .sf-mr.is-lock .sf-mr__f b { color:var(--warn-fg); }
#h2 .sf-mr__a { display:flex; gap:4px; }
#h2 .sf-mr__a .btn.sm { padding:3px 8px; white-space:nowrap; }
#h2 .sf-pw { display:flex; gap:4px; align-items:center; min-width:0; }
#h2 .sf-pw input { width:100%; min-width:0; height:26px; border:1px solid var(--line); background:#fff; padding:0 7px; font:inherit; font-size:11.5px; }
#h2 .sf-pw input:focus { outline:none; border-color:var(--accent); }
#h2 .sf-pw.is-need input { border-color:var(--warn-fg); background:#fff8ec; }
#h2 .sf-pw .btn.sm { padding:3px 7px; flex:none; white-space:nowrap; }
#h2 .sf-mr .sf-pw input { height:24px; font-size:11px; padding:0 6px; }
#h2 .sf-mgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(330px, 1fr)); border-top:1px solid var(--line-faint); }
#h2 .sf-mgrid--nv { grid-template-columns:repeat(auto-fill, minmax(460px, 1fr)); }   /* 네이버 줄은 비밀번호 칸이 하나 더 있어 넓게 — 330px 칸에서는 파일명 칸이 0 이 된다 */
#h2 .sf-mgrid > .sf-mr { border-top:0; border-bottom:1px solid var(--line-faint); border-right:1px solid var(--line-faint); }
#h2 .sf-mgrid__none { grid-column:1 / -1; padding:8px 10px; font-size:11px; color:var(--faint); }
/* 이름 · 건수 숫자는 본문 글자색(카드 본문 기본이 옅은 회색이라 채널 이름이 흐리게 보이던 것 — 설계는 기본 글자색) · 계정 행은 종전 색 그대로 */
#h2 .ch-row__name, #h2 .ch-row__n b { color:var(--text); }
