/* 돈값 사무실(design/office.js)이다. 색은 스케치북 지침(design/sketchStyle.md)의 종이·잉크·딥그린·세이지·모래·노랑이고 노랑은 일하는 중에만 쓴다. */
.office { --officePaper: var(--ivory, #f4f1e9); --officeDot: #c9c6b9; --officeInk: #13241d; --officeForest: var(--forest, #153d32); --officeSage: #cbdcbf; --officeWash: #e3eadb; --officeSun: #f3e3a0; --officeOnSun: #153d32; --officeLabel: #faf7ee; --officeShadow: #a7b8c2; --officeDim: #ebe7dc; --officeUnder: #e9e5d8; --officeSand: #e6d3b3; --officeWood: #dcc7a1; --officeGlass: #dce8e4; --officeStop: #983e36; --officeMuted: #7d8a83; --officeLead: #153d32; --officeMember: #13241d; --officeOutline: #13241d; --officeRack: #1f4a3c; --officeRemote: #f26a1b;
  --officeToneSun: #f3e3a0; --officeToneSand: #e6d3b3; --officeToneSpring: #d5eadf; --officeToneOk: #cfe5d6; --officeToneAccent: #a8d6bf; --officeToneLine: #315446; --officeToneHero: #d8e7c7;
  position: relative; display: flex; flex-direction: column; gap: var(--size12); width: 100%; max-width: 1296px; margin: 0 auto; }
:root[data-theme=dark] .office { --officePaper: #1a2420; --officeDot: #2f4136; --officeInk: #e8efe9; --officeForest: #9bd5b2; --officeWash: #22352a; --officeSun: #b8a24a; --officeOnSun: #13241d; --officeLabel: #25392d; --officeShadow: #0a241c; --officeDim: #0f1613; --officeUnder: #142019; --officeSand: #5e5039; --officeWood: #4a3f2c; --officeGlass: #2b4038; --officeStop: #ffaba0; --officeMuted: #8fa196; --officeLead: #2f6b52; --officeMember: #3a4a42; --officeOutline: #7f9a8b; --officeRack: #0c1a15; --officeRemote: #f59a5f; }

/* 조종 줄: 회사 운영 세 버튼(지금 상태가 눌린 채), PC의 자동 실행, 기획팀에 바로 지시. */
.officeBar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--size10) var(--size16); }
.officePower { display: inline-flex; flex: none; padding: var(--size3); border: var(--stroke) solid var(--line); border-radius: var(--size24); background: var(--card); }
.officePower button { min-height: var(--size36); padding: 0 var(--size16); border: 0; border-radius: var(--size20); background: transparent; color: var(--muted); font-size: var(--size14); font-weight: 700; }
.officePower button[aria-pressed=true] { background: var(--action); color: var(--actionInk); }
.officePower button[data-power=pause][aria-pressed=true] { background: var(--sun); color: var(--sunInk); }
.officePower button[data-power=stop][aria-pressed=true] { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 var(--stroke) var(--line); }
.officePower button:disabled { cursor: default; }
.officePower button:not([aria-pressed=true]):disabled { opacity: .55; }
.officeAutorun { flex: none; font-size: var(--size13); color: var(--muted); }
.officeOrder { display: flex; flex: 1; gap: var(--size8); min-width: min(100%, 320px); margin: 0; }
.officeOrder input { flex: 1; min-width: 0; min-height: var(--size40); padding: 0 var(--size14); border: var(--stroke) solid var(--inputLine); border-radius: var(--size20); background: var(--card); color: var(--ink); font-size: var(--size14); }
.officeOrder button { flex: none; min-height: var(--size40); padding: 0 var(--size18); border: 0; border-radius: var(--size20); background: var(--action); color: var(--actionInk); font-weight: 700; }
.officeOrder :disabled { opacity: .55; }
.officeNote { margin: 0; color: var(--muted); font-size: var(--size13); }

.officeStage { position: relative; width: 100%; }
.officeStage canvas { display: block; width: 100%; border-radius: var(--size8); background: var(--officePaper); }
.officeStage[data-stale] canvas { filter: grayscale(1); opacity: .65; }
.officeLabels { position: absolute; inset: 0 0 auto 0; overflow: hidden; pointer-events: none; }
.officeLabel { position: absolute; display: flex; align-items: center; gap: var(--size6); min-height: 0; max-width: 100%; padding: var(--size2) var(--size8); border: 0; border-radius: var(--size2); background: var(--officeLabel); color: var(--officeInk); box-shadow: 0 var(--size1) var(--size2) var(--heroShadow); font: 700 13px/1.4 var(--fontBody); white-space: nowrap; text-align: left; transform: rotate(-1.2deg); pointer-events: auto; }
.officeLabel span { flex: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.officeLabel small { min-width: 0; overflow: hidden; color: var(--officeMuted); font-size: 12px; font-weight: 600; text-overflow: ellipsis; }
button.officeLabel { cursor: pointer; }
button.officeLabel:hover span { text-decoration: underline; }
.officeLabel[data-tone=work] small { padding: 0 var(--size4); background: var(--officeSun); color: var(--officeOnSun); }
.officeLabel[data-tone=ask] { background: var(--stop); color: var(--bg); }
.officeLabel[data-tone=ask] small { color: inherit; }
.officeLabel[data-tone=due] small { padding: 0 var(--size6); border-radius: var(--size10); background: var(--stop); color: var(--bg); }
.officeLabel[data-desk] { padding: 0 var(--size6); font-size: 12px; transform: rotate(.8deg); }
.officeLabel[data-desk] span { flex: 0 1 auto; }
/* PC 층 묶음의 이름(본체, 회사 PC). 테두리가 그 묶음의 층 테두리 색이다. */
.officeLabel[data-pc] { border: 2px solid var(--officeForest); box-shadow: none; font-weight: 800; transform: none; }
.officeLabel[data-pc=remote] { border-color: var(--officeRemote); color: var(--officeRemote); }
/* 대표실 지시판의 지시 한 줄: 글과 지금 상태. */
.officeLabel[data-board] { gap: var(--size4); padding: 0 var(--size6); box-shadow: none; background: transparent; font-size: 12px; font-weight: 600; transform: none; }
.officeLabel[data-board] span { flex: 0 1 auto; min-width: 2em; }
.officeLabel[data-board] small { flex: none; max-width: 55%; text-overflow: ellipsis; padding: 0 var(--size4); border-radius: var(--size4); background: var(--officeWash); color: var(--officeInk); }
.officeLabel[data-board][data-tone=sending] small, .officeLabel[data-board][data-tone=reading] small, .officeLabel[data-board][data-tone=working] small { background: var(--officeSun); color: var(--officeOnSun); }
.officeLabel[data-board][data-tone=halted] small { background: var(--stopSoft); color: var(--stop); }

/* 사람 단추와 말풍선. 단추는 사람 몸을 덮고(누르면 작업 기록), 말풍선은 머리 위에 선다. */
.officeFig { position: absolute; top: 0; left: 0; padding: 0; border: 0; border-radius: 40%; background: transparent; pointer-events: auto; cursor: pointer; }
.officeFig:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.officeFig.officeMoving .officeBubble { visibility: hidden; }
.officeBubble { position: absolute; bottom: calc(100% + 4px); left: 50%; max-width: 220px; padding: var(--size2) var(--size8); border: var(--stroke) solid var(--officeInk); border-radius: var(--size10); background: var(--officeLabel); color: var(--officeInk); font: 600 12px/1.45 var(--fontBody); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); pointer-events: none; }
.officeBubble[data-row='1'] { bottom: calc(100% + 28px); }
/* 지금 쓰는 도구(굵게)는 잘리지 않고 그 뒤의 하는 일이 말줄임이다. */
/* 두 줄 말풍선: 윗줄이 지금 쓰는 도구(굵게), 아랫줄이 하는 일(흐리게). 줄마다 말줄임이고 띄우는 높이는 office.js placeBubbles가 정한다. */
.officeBubble b, .officeBubble span { display: block; overflow: hidden; text-overflow: ellipsis; }
.officeBubble b { font-weight: 800; }
.officeBubble span { color: var(--officeMuted); font-weight: 600; }
.officeBubble[data-row='2'] { bottom: calc(100% + 52px); }
.officeFig::after { content: ''; position: absolute; left: 50%; bottom: calc(100% - 4px); width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--officeInk); transform: translateX(-50%); visibility: hidden; }
.officeFig[data-talk]::after { visibility: visible; }
.officeFig[data-pose=think] .officeBubble, .officeFig[data-pose=wait] .officeBubble { color: var(--officeMuted); border-style: dashed; }
.officeFig[data-pose=error] .officeBubble { border-color: var(--officeStop); }
.officeFig[data-build] .officeBubble { background: var(--officeWash); }

/* 지금 일어나는 일(새것부터). */
.officeFeed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: var(--size2) var(--size24); margin: 0; padding: 0 var(--size4); list-style: none; font-size: var(--size13); }
/* 칸보다 긴 줄은 그 칸 안에서 말줄임한다(옆 칸 글과 겹쳤다). */
.officeFeed > li { min-width: 0; }
.officeFeedRow { overflow: hidden; display: flex; align-items: baseline; gap: var(--size6); width: 100%; min-width: 0; min-height: var(--size32); padding: var(--size4) var(--size6); border: 0; border-radius: var(--size6); background: transparent; color: var(--ink); font-size: var(--size13); text-align: left; }
button.officeFeedRow:hover { background: var(--soft); }
.officeFeedRow time { flex: none; color: var(--muted); font-size: var(--size12); font-variant-numeric: tabular-nums; }
.officeFeedRow b { flex: none; }
.officeFeedRow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.officeFeedRow small { flex: 0 1 auto; max-width: 45%; margin-left: auto; overflow: hidden; color: var(--muted); font-size: var(--size12); text-overflow: ellipsis; white-space: nowrap; }

/* 기록 창: PC는 오른쪽 판, 휴대폰은 아래에서 올라온다. */
.officeSheet { position: fixed; top: var(--headerHeight); right: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column; width: min(100%, 360px); border-left: var(--stroke) solid var(--line); background: var(--card); box-shadow: 0 0 var(--size24) var(--heroShadow); }
.officeSheet[hidden] { display: none; }
.officeSheet header { display: flex; align-items: center; gap: var(--size8); min-height: var(--size54); padding: var(--size6) var(--size8) var(--size6) var(--size20); border-bottom: var(--stroke) solid var(--line); }
.officeSheet h2 { flex: 1; margin: 0; font-size: var(--size16); }
.officeSheetClose { width: var(--size40); height: var(--size40); border: 0; background: transparent; color: var(--muted); font-size: var(--size22); }
.officeSheetLead { display: flex; flex-direction: column; gap: var(--size6); padding: var(--size12) var(--size20); border-bottom: var(--stroke) solid var(--line); font-size: var(--size13); }
.officeSheetLead p { margin: 0; }
.officeSheetLead p:first-child { font-weight: 700; }
.officeSheet > .officeOrder { flex: none; min-width: 0; padding: var(--size10) var(--size16); border-bottom: var(--stroke) solid var(--line); }
.officeSheet > .officeOrder[hidden] { display: none; }
.officeLink { align-self: flex-start; padding: 0; border: 0; background: transparent; color: var(--action); font-size: var(--size13); font-weight: 700; text-align: left; }
.officeLog { flex: 1; min-height: 0; margin: 0; padding: var(--size8) 0; overflow-y: auto; list-style: none; font-size: var(--size13); }
.officeLog li { display: flex; gap: var(--size10); padding: var(--size6) var(--size20); }
.officeLog time { flex: none; width: 3.2em; color: var(--muted); font-size: var(--size12); font-variant-numeric: tabular-nums; }
.officeLog div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.officeLog small { color: var(--muted); font-size: var(--size12); }
.officeLog li > .officeLink { flex: none; align-self: center; margin-left: auto; white-space: nowrap; }
.officeLog li > .officeQueueMove { flex: none; display: grid; place-items: center; align-self: center; width: var(--size40); height: var(--size40); margin-left: auto; color: var(--muted); font-size: var(--size22); cursor: grab; touch-action: none; user-select: none; }
.officeLog li > .officeLink + .officeQueueMove { margin-left: 0; }
/* 대기열 창 줄 안의 아이콘 단추다(office.js iconButton). 복사는 지금 게시와 크기를 맞춰 32px, 그림은 18px 선 아이콘이다. 지금 게시만 채운 색이다. */
.officeIcon { position: relative; flex: none; display: grid; place-items: center; align-self: center; width: var(--size32); height: var(--size32); margin-left: auto; padding: 0; border: var(--stroke) solid var(--line); border-radius: var(--size10); background: var(--card); color: var(--ink); cursor: pointer; }
.officeIcon svg { width: var(--size18); height: var(--size18); display: block; }
.officeIcon .officeIconAfter { display: none; }
.officeIcon[data-done] { border-color: var(--action); background: var(--action); color: var(--actionInk); }
.officeIcon[data-done] .officeIconNow { display: none; }
.officeIcon[data-done] .officeIconAfter { display: block; }
.officeIcon > b { position: absolute; top: calc(-1 * var(--size6)); right: calc(-1 * var(--size6)); min-width: var(--size18); height: var(--size18); padding: 0 var(--size4); border-radius: var(--size10); background: var(--action); color: var(--actionInk); font-size: var(--size11); line-height: var(--size18); text-align: center; }
/* 지금 게시는 작게(30px, 그림 16px) 두고 옆 순서 바꾸기 손잡이와 붙인다(2026-11-23 대표 "올리기버튼 작게하고 버튼간갭줄이라"). */
.officeIconSend { width: var(--size30); height: var(--size30); border-color: var(--action); border-radius: 50%; background: var(--action); color: var(--actionInk); }
.officeIconSend svg { width: var(--size16); height: var(--size16); }
.officeIcon[aria-busy] { opacity: .5; }
/* 캐러셀 줄의 '모두 다운로드'는 글을 붙인 단추다(office.js saveAll). 받는 동안 글은 '받은 장/전체 장'이다. */
.officeIconAll { grid-auto-flow: column; gap: var(--size4); width: auto; padding: 0 var(--size10); border-color: var(--action); color: var(--action); font-size: var(--size12); font-weight: 700; white-space: nowrap; }
.officeIconAll[aria-busy] { opacity: 1; }
.officeLog li > .officeIcon + .officeQueueMove { width: var(--size28); margin-left: calc(var(--size4) - var(--size10)); }
/* 줄 앞의 그림이다: 표지는 세로로 긴 영상이라 3:4로 잘라 보이고, 제품 사진은 정사각이다. 그림이 없으면 같은 크기의 빈 칸이다. */
.officeThumb { flex: none; align-self: center; width: var(--size36); height: var(--size48); overflow: hidden; border-radius: var(--size6); background: var(--soft); }
.officeThumbProduct { height: var(--size36); background: var(--card); border: var(--stroke) solid var(--line); }
.officeThumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.officeLog li:has(> .officeThumb) > div { flex: 1; align-self: center; }
.officeLog li:has(> .officeThumb) > time { align-self: center; }
.officeLog li[data-dragging] { position: relative; z-index: 1; background: var(--card); box-shadow: 0 var(--size2) var(--size10) var(--line); }
.officeLog li[data-dragging] > .officeQueueMove { cursor: grabbing; color: var(--action); }
.officeLog li[data-drop=above] { box-shadow: inset 0 var(--size2) 0 var(--action); }
.officeLog li[data-drop=below] { box-shadow: inset 0 calc(-1 * var(--size2)) 0 var(--action); }
.officeLog li[data-kind=act] span { color: var(--muted); }
.officeLog li[data-kind=start] span, .officeLog li[data-kind=end] span { font-weight: 700; }
.officeQuiet { color: var(--muted); }
.officeLog li.officeQueueProduct { padding-left: var(--size20); font-size: var(--size13); }
/* 대표가 앱에서 올릴 릴스 줄의 제품 머리 줄('영상 핵심 제품 n개', '세트의 다른 상품 n개', office.js handProducts). */
.officeLog li.officeQueueSub { padding-left: var(--size20); font-size: var(--size12); color: var(--muted); }
/* 대기열 창의 게시물 줄은 맨 위에 '날짜 시각 ───'이 한 줄로 서고 그 아래에 그림·제목·단추가 온다. 게시물끼리는 조금 띄운다
   (2026-11-23 대표 "시간을 왼쪽에하지말고 게시물과 갭을 약간두고 시간, 옆에 횡핵하나 그아래 게시물과제품을 쓰는게맞지않나"). */
.officeLog li.officeQueueItem { flex-wrap: wrap; row-gap: var(--size6); margin-top: var(--size10); }
.officeLog li.officeQueueItem > time { flex: 0 0 100%; display: flex; align-items: center; gap: var(--size8); width: auto; }
.officeLog li.officeQueueItem > time::after { content: ''; flex: 1; border-top: var(--stroke) solid var(--line); }
.officeLog li.officeQueueHead { margin-top: var(--size8); padding-top: var(--size12); border-top: var(--stroke) solid var(--line); font-weight: 700; }
/* 게시물 줄은 표지 옆 오른쪽에 단추를 모으고, 캡션(제목)과 팀 이름은 그 아래 한 줄 전체에 둔다. 단추 다섯 개 옆에 두면 캡션이
   한 줄에 몇 글자씩 세로로 길게 늘어졌다(2026-11-27 개발팀 방 대표 "보기안좋지않나 버튼들아래에캡션넣는게좋을듯하고"). 단추가 없는 줄도
   같은 모양이어야 한 목록에서 캡션 위치가 줄마다 달라지지 않는다. */
.officeLog li.officeQueueItem > div { order: 1; flex: 0 0 100%; }
.officeLog li.officeQueueItem > .officeIcon ~ .officeIcon { margin-left: 0; }
/* 게시물 줄 아래 '연결된 제품 n개' 단추다. 제품 줄은 접혀 있다가 누르면 펼쳐지고 화살표가 위를 본다(office.js productFold). */
.officeLog li[hidden] { display: none; }
.officeLog li.officeQueueFold { padding-top: 0; padding-bottom: 0; }
.officeQueueFold button { display: inline-flex; align-items: center; gap: var(--size4); min-height: var(--size40); padding: 0 var(--size16) 0 0; border: 0; background: transparent; color: var(--action); font-size: var(--size13); font-weight: 700; cursor: pointer; }
.officeQueueFold svg { width: var(--size16); height: var(--size16); transition: transform .15s; }
.officeQueueFold button[aria-expanded=true] svg { transform: rotate(180deg); }
.officeMore { margin: 0 var(--size20) var(--size16); padding: var(--size8); border: var(--stroke) solid var(--line); border-radius: var(--size20); background: var(--card); color: var(--ink); font-size: var(--size13); }
.officeMore[hidden] { display: none; }

@media (max-width: 700px) {
  .officeBar { gap: var(--size8); }
  .officePower { width: 100%; }
  .officePower button { flex: 1; padding: 0 var(--size8); }
  .officeLabel { gap: var(--size4); padding: 0 var(--size4); font-size: 11px; }
  .officeLabel small { font-size: 10px; }
  .officeLabel[data-desk] { font-size: 10px; }
  .officeLabel[data-board] { font-size: 10px; padding: 0 var(--size2); }
  .officeBubble { max-width: 140px; padding: 0 var(--size6); font-size: 10px; border-radius: var(--size8); }
  .officeBubble[data-row='1'] { bottom: calc(100% + 20px); }
  .officeSheet { top: auto; left: 0; width: 100%; max-height: 72vh; border-left: 0; border-top: var(--stroke) solid var(--line); border-radius: var(--size16) var(--size16) 0 0; }
}

/* 투두리스트(회사 기록 todos)의 열린 일. 맡은 팀 · 일 · 하는 중. 누르면 메신저의 투두리스트 방이다. */
.officeUsage { display: flex; flex-wrap: wrap; gap: var(--size4) var(--size12); margin: 0; color: var(--muted); font-size: var(--size12); }
.officeUsage span[data-tone=stop] { color: var(--stop); font-weight: 700; }
.officeRings { flex-basis: 100%; }
.officeUsage span[data-next=yes] { color: var(--ink); font-weight: 700; }
/* 이용 대시보드(조회수·클릭·방문자 타일, 날짜별·시간대별 막대, 포스팅별·상품별 표). 색은 역할 변수만 쓰고 오름·내림은 글자에도 있다.
   막대 위에는 그 수가 있고 많은 셋은 진하다. 표의 첫 칸은 그 표의 30일 수만큼 옅은 막대가 깔린다(2026-10-28 대표 "그래프에수치를넣으면어때"). */
.officeChannels { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--size8); margin: 0; }
.officeChannel { display: flex; flex-direction: column; gap: var(--size2); padding: var(--size8) var(--size10); border-radius: var(--size8); background: var(--card); }
/* 누르면 그 채널에 기다리는 영상 목록이 기록 창에 열리는 채널 칸이다. */
button.officeChannel { border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.officeChannel:hover { background: color-mix(in srgb, var(--action) 8%, var(--card)); }
.officeChannel span, .officeChannel small { font-size: var(--size12); color: var(--muted); }
.officeChannel strong { font-size: var(--size18); line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.officeChannel strong[data-tone=stop] { color: var(--stop); }
.officeChannel[data-paused] span { color: var(--stop); font-weight: 700; }
/* 채널 칸 아래 모든 채널 단추 줄(전체 대기·전체 다시 시작·전체 시간 지연)과 대기열 창 위 단추 줄(게시 대기·시간 지연·지연 해제)다. */
.officeQueueAll, .officeLeadActions { display: flex; flex-wrap: wrap; gap: var(--size4) var(--size16); margin: 0; }
.officeQueueAll[hidden] { display: none; }
.officeSpending { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--size8); margin: 0; }
.officeSpend { display: flex; flex-direction: column; gap: var(--size2); padding: var(--size8) var(--size10); border-radius: var(--size8); background: var(--card); }
.officeSpend span, .officeSpend small { font-size: var(--size12); color: var(--muted); }
.officeSpend strong { font-size: var(--size18); line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.officeSpend strong[data-tone=none] { color: var(--muted); }
/* 토큰이 없거나 읽지 못한 표시 아래의 토큰 입력창과 저장 버튼이다. 저장한 결과 글은 그 아래 한 줄이다. */
.officeSpendKey { display: flex; flex-wrap: wrap; gap: var(--size6); margin-top: var(--size6); }
.officeSpendKey input { flex: 1; min-width: 0; min-height: var(--size32); padding: 0 var(--size10); border: var(--stroke) solid var(--inputLine); border-radius: var(--size16); background: var(--card); color: var(--ink); font-size: var(--size13); }
.officeSpendKey button { flex: none; min-height: var(--size32); padding: 0 var(--size14); border: 0; border-radius: var(--size16); background: var(--action); color: var(--actionInk); font-weight: 700; }
.officeSpendKey :disabled { opacity: .55; }
.officeSpendKey small { flex-basis: 100%; }
.officeSpendKey small[data-tone=ok] { color: var(--ok); }
.officeSpendKey small[data-tone=stop] { color: var(--stop); }
.officeDash { --officeDashBar: color-mix(in srgb, var(--officeForest) 42%, transparent); --officeDashRow: color-mix(in srgb, var(--officeForest) 18%, transparent);
  display: flex; flex-direction: column; gap: var(--size10); margin: 0; }
.officeDashHead { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--size4) var(--size12); font-size: var(--size12); color: var(--muted); }
.officeDashHead b { font-size: var(--size14); color: var(--ink); }
.officeDashTiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--size8); }
.officeDashTile { display: flex; flex-direction: column; gap: var(--size2); padding: var(--size8) var(--size10); border-radius: var(--size8); background: var(--card); }
.officeDashTile span { font-size: var(--size12); color: var(--muted); }
.officeDashValue { display: flex; flex-wrap: wrap; align-items: center; gap: var(--size4) var(--size8); }
.officeDashTile strong { font-size: var(--size24); line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.officeDashValue em { padding: var(--size1) var(--size6); border-radius: var(--size10); background: var(--soft); color: var(--muted); font-size: var(--size12); font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.officeDashValue em[data-trend=up] { background: var(--okSoft); color: var(--ok); }
.officeDashValue em[data-trend=down] { background: var(--stopSoft); color: var(--stop); }
.officeDashTile small { font-size: var(--size11); color: var(--muted); }
.officeDashTile[data-state=unavailable] strong { color: var(--muted); }
.officeDashCharts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--size12) var(--size20); }
.officeDashChart { min-width: 0; margin: 0; container-type: inline-size; }
.officeDashChart figcaption { margin-bottom: var(--size4); font-size: var(--size12); color: var(--muted); }
/* 막대 칸 위의 띄움은 가장 긴 막대 위에 놓이는 수가 들어갈 높이다. 수와 이름 줄은 막대와 같은 너비·간격이라 막대 바로 위아래에 온다. */
.officeDashBars, .officeDashAxis { display: flex; gap: 3px; }
.officeDashBars { align-items: flex-end; height: 76px; padding-top: var(--size16); border-bottom: var(--stroke) solid var(--line); }
.officeDashBars i, .officeDashAxis span { flex: 1 1 0; min-width: 0; max-width: 56px; }
.officeDashBars i { position: relative; min-height: 1px; border-radius: 2px 2px 0 0; background: var(--officeDashBar); }
.officeDashBars i[data-top] { background: var(--officeForest); }
.officeDashBars i[data-none] { background: none; }
.officeDashBars b { position: absolute; bottom: 100%; left: 50%; padding-bottom: var(--size2); transform: translateX(-50%); color: var(--ink); font-size: var(--size11); font-style: normal; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.officeDashBars i:not([data-top]) b { color: var(--muted); font-weight: 600; }
.officeDashBars[data-many] b { font-size: var(--size10); }
.officeDashAxis { margin-top: var(--size2); font-size: var(--size11); color: var(--muted); }
.officeDashAxis span { display: flex; justify-content: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.officeDashAxis span:last-child:not(:empty) { color: var(--ink); font-weight: 700; }
/* 막대가 많은데 좁으면 3자리 넘는 수는 많은 셋에만 남긴다(겹치지 않게). 전부는 막대를 누르거나 '자세히'에서 본다. */
@container (width < 520px) { .officeDashBars[data-many] i[data-wide]:not([data-top]) b { display: none; } }
.officeDashTables { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; gap: var(--size12); }
.officeDashTable { width: 100%; border-collapse: collapse; font-size: var(--size12); }
.officeDashTable caption { margin-bottom: var(--size4); text-align: left; color: var(--muted); }
.officeDashTable th, .officeDashTable td { padding: var(--size2) var(--size6); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.officeDashTable th:first-child, .officeDashTable td:first-child { text-align: left; white-space: normal; }
.officeDashTable td[data-bar] { background: linear-gradient(var(--officeDashRow), var(--officeDashRow)) no-repeat 0 0 / 0 100%; background-clip: content-box; background-origin: content-box; padding-top: var(--size3); padding-bottom: var(--size3); }
.officeDashTable thead th { font-weight: 600; color: var(--muted); border-bottom: var(--stroke) solid var(--line); }
.officeVisitsHours { display: flex; align-items: flex-end; gap: 1px; width: 96px; height: 18px; }
.officeVisitsHours i { flex: 1; min-height: 1px; background: var(--officeForest); opacity: .7; }
.officeTodos { display: flex; flex-wrap: wrap; gap: var(--size6); margin: 0; padding: 0; list-style: none; }
.officeTodos li { min-width: 0; max-width: 100%; }
.officeTodo { display: inline-flex; align-items: center; gap: var(--size6); max-width: 100%; min-height: var(--size32); padding: 0 var(--size10); border: var(--stroke) solid var(--line); border-radius: var(--size16); background: var(--card); color: var(--ink); font-size: var(--size13); font-weight: 400; }
.officeTodo b { flex: none; color: var(--muted); font-weight: 600; }
.officeTodo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.officeTodo small { flex: none; padding: 0 var(--size6); border-radius: var(--size8); background: var(--officeSun); color: var(--officeOnSun); font-size: var(--size12); }
.officeTodo small:empty { display: none; }
.officeTodo[data-running] { border-color: var(--ok); }
