/* 같은 역할의 글자는 모든 사무실 메뉴와 내장 직원 페이지에서 이 파일을 공유한다. */
:root{--menu-font:'Pretendard GOV','Malgun Gothic',sans-serif;--menu-title-size:17px;--menu-title-weight:700;--menu-body-size:14px;--menu-body-weight:400;--menu-meta-size:13px;--menu-title-color:#1e2124;--menu-body-color:#334254;--menu-meta-color:#6d7882;--menu-blue:#256ef4;--menu-line:#e6e8ea;--menu-border:#dfe3e8;--menu-padding:24px;--menu-gap:12px;--menu-radius:8px;--menu-plan:#7040a0;--menu-wait:#926300;--menu-running:#26745c;--menu-held:#6d7882}
/* 흰 창: 같은 제목 줄, 여백, 서식. 게임 바깥 틀과 사진 전체화면은 별도. */
#records,#secretary,#board,.office-work{font-family:var(--menu-font);font-size:15px;line-height:1.5;color:var(--menu-title-color)}
.win:not(.social-full),#secretary.sheet{background:#fff;border:1px solid var(--menu-border);border-radius:16px;box-shadow:0 12px 32px rgba(16,24,40,.28)}
.win .win-head,#secretary .head{padding:16px var(--menu-padding)!important;gap:12px;border-bottom:1px solid var(--menu-line);align-items:center}
.win .win-head h2,#secretary .head h3{margin:0;font:700 22px/1.5 var(--menu-font);letter-spacing:0}
.win .win-body{padding:20px var(--menu-padding) var(--menu-padding)!important}
#records .win-body:has(> #pagePane:not([hidden])){padding:0!important}
#secretary .conv-item{padding:14px var(--menu-padding)}
#secretary #convRoom{padding:20px var(--menu-padding) var(--menu-padding)}
.win :is(input,select,textarea){font-family:var(--menu-font);border-radius:var(--menu-radius)}
@media(max-width:760px){:root{--menu-padding:16px}.win .win-head,#secretary .head{padding:14px var(--menu-padding)!important}.win .win-body{padding:16px var(--menu-padding)!important}}

#projectsListView .project-brief-title h3,#board .tile b,#secretary .cv-top b,.win #settingsPane .settings-action .tilebtn b,#approveList .approval-section h3,.win .menu-section-title{font-family:var(--menu-font)!important;font-size:var(--menu-title-size)!important;font-weight:var(--menu-title-weight)!important;color:var(--menu-title-color);line-height:1.5;letter-spacing:0}
#projectsListView .project-current,#approveList .wc-sum,#secretary .cv-prev{font-family:var(--menu-font)!important;font-size:var(--menu-body-size)!important;font-weight:var(--menu-body-weight)!important;color:var(--menu-body-color)!important;line-height:1.5}
#projectsListView .project-next,#projectsListView .project-next>b,#board .tile small,#secretary .cv-time,.wc-meta{font-family:var(--menu-font);font-size:var(--menu-meta-size);font-weight:400;color:var(--menu-meta-color)}
#projectsListView .project-current{display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}
#projectsListView .project-state{font-family:var(--menu-font);font-size:var(--menu-meta-size);font-weight:400}
.project-state.state-plan{color:var(--menu-plan)}.project-state.state-wait{color:var(--menu-wait)}.project-state.state-running{color:var(--menu-running)}.project-state.state-decide,.project-state.state-approval{color:var(--menu-blue)}.project-state.state-held,.project-state.state-empty{color:var(--menu-held)}
/* 설정은 대표 지정 카드 메뉴. 구분 이름은 숨기고 줄/간격으로만 묶는다. */
#settingsPane :is(.settings-mobile-bar,.settings-nav){display:none!important}
#settingsPane .settings-layout{display:block;min-height:0}
#settingsPane .settings-content{display:block!important;padding:0;min-width:0}
#settingsPane .settings-section{margin:0 0 20px;padding:0;border:0;background:none;box-shadow:none}
#settingsPane .settings-section+.settings-section{padding-top:20px;border-top:1px solid var(--menu-line)}
#settingsPane .settings-section:last-child{margin-bottom:0}
.win #settingsPane .menu-section-title{display:none}
#settingsPane .settings-section-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:var(--menu-gap);align-items:stretch}
#settingsPane :is(.settings-page,.settings-action){display:contents!important}
#settingsPane .settings-page[hidden],.win #settingsPane button.tilebtn[hidden]{display:none!important}
#settingsPane .settings-page>*:not(.settings-action){display:none!important}
.win #settingsPane button.tilebtn{display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:100%;height:auto;min-height:112px!important;padding:12px!important;gap:10px;border:1px solid var(--menu-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;color:var(--menu-title-color)!important;text-align:center;line-height:1.5}
.win #settingsPane button.tilebtn:hover{background:#f5f7fa!important;border-color:#256ef4!important}
.win #settingsPane button.tilebtn[aria-pressed=true]{background:#eef4ff!important;border-color:#256ef4!important}
.win #settingsPane button.tilebtn svg{display:block;flex:none;width:28px;height:28px;margin:0;color:var(--menu-blue);fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.win #settingsPane .settings-action .tilebtn b{display:block;white-space:normal;word-break:keep-all}
.win #settingsPane button.tilebtn small{display:none!important}
.win #settingsPane #officeWander small{display:none!important}
#settingsPane #storageBox:not([hidden]){grid-column:1/-1;margin:0;font:400 14px/1.5 var(--menu-font);color:var(--menu-body-color);overflow-wrap:anywhere}
@media(max-width:520px){#settingsPane .settings-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 하단 메뉴: 가용폭 비율 대신 같은 정사각형 5칸으로 고정한다. */
:root{--quick-cell:clamp(50px,calc((100vw - 64px - var(--sal,0px) - var(--sar,0px))/5),88px);--qh:calc(var(--quick-cell) + 12px)}
#quick,body.sb-side #quick{width:max-content!important;max-width:calc(100vw - 24px);height:auto;left:var(--office-left,50%)!important;right:auto!important;transform:translateX(-50%);gap:6px;padding:6px}
#quick button{flex:0 0 var(--quick-cell)!important;width:var(--quick-cell)!important;height:var(--quick-cell)!important;aspect-ratio:1;padding:1px;gap:calc(var(--quick-cell)/16);font-size:clamp(11px,calc(var(--quick-cell)/5.6),16px);line-height:1.15;min-width:0}
#quick button svg{width:calc(var(--quick-cell)*.34);height:calc(var(--quick-cell)*.34);flex:none}
#quick button>span{width:100%;text-wrap:balance;word-break:normal}

/* 카드 안 여백: 사진·이름·직무 사이 간격을 명시해 균등 분배 여백을 없앤다. */
#board .tiles{grid-template-columns:repeat(auto-fill,minmax(156px,1fr));gap:12px;align-items:start}
html body #board .tile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:0;height:auto;padding:12px 10px;gap:4px}
#board .tile .ph{width:100px;height:112px;flex:none;margin:0 0 4px;border-radius:12px}
#board .tile b,#board .tile small{margin:0;padding:0;min-height:0}
#board .tile small{line-height:1.5}
/* 번호 순서와 같은 너비. 폴더 용량은 표시하거나 배치에 사용하지 않는다. */
#projectsListView .project-editorial{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:12px;grid-auto-flow:row;align-items:start}
.win #projectsListView button.project-brief{display:flex!important;flex-direction:column;gap:12px;padding:20px 16px!important;min-height:144px!important;justify-content:center;border:1px solid #dfe3e8!important;border-radius:12px!important;background-color:#fff!important;text-align:left}
#projectsListView .project-brief-title{width:100%;flex-wrap:wrap;row-gap:4px}
#projectsListView .project-current{width:100%;margin:0!important}
#projectsListView .project-next{width:100%;margin:0}
#projectsListView .project-next>span{-webkit-line-clamp:1}
@media(max-width:520px){#board .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
#winBody{container-type:inline-size;container-name:office-content}
@container office-content (max-width:659px){#projectsListView .project-editorial{grid-template-columns:repeat(2,minmax(0,1fr))}.win #projectsListView button.project-brief{grid-column:auto!important}}
#projectsListView .project-brief-title{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:8px;row-gap:10px}
#projectsListView .project-brief-title>.project-state{grid-column:1/-1;grid-row:2;justify-self:start;margin:0;padding:3px 7px;border:0;border-radius:0;padding:0;font-size:13px;line-height:1.3;white-space:normal;text-align:center;max-width:120px}#projectsListView .project-brief-title>.project-state:before{display:none}
.held-projects{margin:20px 0 0;padding-top:16px;border-top:1px solid #e6e8ea}
.win .held-projects>.menu-section-title{margin:0 0 8px}
.win .held-project-row{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 0;border:0;border-bottom:1px solid #eef0f2;border-radius:0;background:none;color:var(--menu-body-color);text-align:left;font:400 14px/1.5 var(--menu-font)}
.held-project-row>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.held-project-row .project-state{margin-left:auto;flex:none}
#statusBar{container-type:inline-size;container-name:server-status;max-width:calc(100dvw - 28px - var(--sal) - var(--sar))}
#statusBar.collapsed{width:var(--sidew)!important}
#sbHead{display:grid!important;grid-template-columns:minmax(0,1fr) auto 10px;gap:6px;width:100%;box-sizing:border-box}
#sbClock{min-width:0;font-size:clamp(18px,12cqw,28px);white-space:nowrap;letter-spacing:0}
#sbDate{min-width:0;white-space:nowrap;font-size:12px}
#sbHead .sb-caret{grid-column:3;grid-row:1;justify-self:end}
#sbSum{grid-column:1/-1;grid-row:2;min-width:0;max-width:100%;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#sbSum>span{min-width:0;overflow:hidden;text-overflow:ellipsis}#statusBar:not(.collapsed) #sbSum{display:none}
@container server-status (max-width:235px){#sbDate{grid-row:2;grid-column:1/3}#sbSum{grid-row:3}}
.win button:focus-visible,.sheet button:focus-visible,.work-modal button:focus-visible,#board .tile:focus-visible{outline:2px solid #256ef4;outline-offset:2px}
dialog.work-modal{box-sizing:border-box;max-width:calc(100dvw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.wm-body{min-width:0;overflow-wrap:anywhere}.srv-head h2{font-size:22px}

@media(max-width:760px){#statusBar.collapsed{width:min(var(--sidew),55vw)!important}#statusBar.collapsed #sbHead{padding:4px 10px!important;gap:2px}#statusBar.collapsed #sbClock{font-size:18px;line-height:1.2}#statusBar.collapsed #sbDate{display:none}#statusBar.collapsed #sbSum{grid-row:2;font-size:11px;line-height:1.2}#brand{max-width:calc(45vw - 30px)}#brand img{max-width:100%;height:auto;max-height:100%;object-fit:contain}#records{top:calc(72px + var(--sat))}}

#board .tile-caption{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;max-width:100%}

/* 직원 목록도 메뉴 본문과 같은 시작점. 상세/채용 화면 크기는 유지한다. */
body.staff-menu{background:#fff;background-image:none;line-height:1.5}
body.staff-menu #app.wrap{padding:20px var(--menu-padding) var(--menu-padding)}
body.staff-menu #app>header{margin:0 0 20px;color:var(--menu-title-color)}
body.staff-menu #app>header h1{font:700 22px/1.5 var(--menu-font);letter-spacing:0;text-shadow:none}
body.staff-menu #app>header img{display:none}
body.staff-menu.embedded #app>header{display:none}
body.staff-menu #board{padding:0}
body.staff-menu #board .tile{border:1px solid var(--menu-border);border-radius:12px}
body.staff-menu #board .tile:hover{border-color:var(--menu-blue);background:#f5f7fa}
@media(max-width:760px){body.staff-menu #app.wrap{padding:16px var(--menu-padding)}}
/* 업무현황은 같은 흰 메뉴. 표/편집 구조만 이 페이지가 소유한다. */
.office-work{margin:0;padding:20px var(--menu-padding) var(--menu-padding);background:#fff}
.office-work h1{font:700 22px/1.5 var(--menu-font);margin:0}
.office-work h2,.office-work h3{font:700 17px/1.5 var(--menu-font);margin:0}
.office-work button,.office-work input,.office-work select,.office-work textarea{font:400 15px/1.5 var(--menu-font);min-height:44px;padding:8px 12px;border:1px solid #cdd1d5;border-radius:var(--menu-radius);background:#fff;color:var(--menu-title-color);max-width:100%}
.office-work :is(input,select,textarea){font-size:16px;min-width:0;width:100%}
.office-work button{cursor:pointer;border-color:#d5dae0}
.office-work button:hover{background:#f5f7fa}
.office-work button.primary{background:var(--menu-blue);border-color:var(--menu-blue);color:#fff}
.office-work button:disabled{opacity:.55;cursor:wait}
.office-work :is(button,input,select,textarea):focus-visible{outline:2px solid var(--menu-blue);outline-offset:2px}
.office-work .sub{font:400 13px/1.5 var(--menu-font);color:var(--menu-meta-color)}
.office-work .title-button{border:0;border-radius:0;padding:0;background:none;color:var(--menu-title-color);font-size:17px;font-weight:700;text-align:left;text-decoration:underline;text-underline-offset:3px}
.office-work .title-button:hover{color:var(--menu-blue);background:none}
.office-work.embedded>header{justify-content:flex-end;border:0;padding:0}
.office-work.embedded>header h1{display:none}
.office-work table{font-size:14px;color:var(--menu-body-color);border-top:1px solid var(--menu-line)}
.office-work th{font-weight:700;color:var(--menu-title-color);background:#f8f9fa}
.office-work :is(th,td){border-bottom:1px solid var(--menu-line);padding:12px}
.office-work .toolbar{gap:12px;margin:20px 0}
.office-work .toolbar label{font-size:13px;color:var(--menu-meta-color)}
.office-work .message:empty{display:none}
.office-work .detail{border-top:1px solid var(--menu-line)}
@media(max-width:760px){.office-work{padding:16px var(--menu-padding)}}
@media(max-width:620px){.office-work td{padding:6px 0;border:0}}

/* 두 메뉴 창은 하나의 좌표·크기 정의를 공유한다. */
:root{--office-top:calc(64px + var(--sat));--office-bottom:calc(var(--qb) + var(--qh) + 30px + var(--sat));--office-left:50%;--office-width:min(1120px,calc(100dvw - 64px))}
@media(min-width:761px){body.sb-side{--qh:calc(var(--quick-cell) + 12px);--quick-cell:clamp(50px,calc((100vw - var(--sidew) - 30px - var(--sar) - 64px)/5),88px);--office-left:calc((100vw - var(--sidew) - 30px - var(--sar))/2);--office-width:min(1120px,calc(100vw - var(--sidew) - 30px - var(--sar) - 48px))}}
@media(max-width:760px){:root{--office-top:calc(72px + var(--sat));--office-bottom:calc(var(--qb) + var(--qh) + 18px);--office-width:calc(100dvw - 32px - var(--sal) - var(--sar))}}
#records:not(.social-full):not(.page-full):not(.page-overlay),#secretary.sheet,body.sb-side #secretary.sheet{position:fixed;left:var(--office-left)!important;right:auto!important;top:max(var(--office-top),var(--conv-vtop,0px))!important;bottom:max(var(--office-bottom),var(--conv-vbottom,0px))!important;width:var(--office-width)!important;height:auto!important;min-height:0;max-height:none!important;transform:translateX(-50%)!important;resize:none}
#secretary .head{cursor:default;touch-action:auto}
.win-head h2{flex:1;min-width:0}
/* 새로고침: 모든 메뉴 창 머리줄에서 같은 모양·같은 자리(닫기 왼쪽). */
.win-head #workRefresh,#secretary .head #secRefresh,.office-work #refresh{width:34px;height:34px;min-width:34px;min-height:34px!important;padding:0!important;display:inline-grid;place-items:center;background:#f1f3f5!important;color:#4a535c!important;border:0!important;border-radius:8px!important;box-shadow:none!important;cursor:pointer}
.win-head #workRefresh:hover,#secretary .head #secRefresh:hover,.office-work #refresh:hover{background:#e6e9ec!important}
#workRefresh svg,#secRefresh svg,.office-work #refresh svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
#workRefresh.spin svg,#secRefresh.spin svg{animation:refresh-spin .6s linear}
@keyframes refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#workRefresh.spin svg,#secRefresh.spin svg{animation:none}}
.office-work.embedded #refresh{display:none}
.office-work .work-section+.work-section{margin-top:28px}
.office-work .work-section>h2{margin:0 0 12px}
.office-work .work-age{font-size:13px;color:var(--menu-meta-color)}
@media(max-width:760px){#projectsListView .project-editorial{grid-template-columns:repeat(2,minmax(0,1fr))}.win #projectsListView button.project-brief{padding:16px 12px!important;min-height:140px!important}}

#projectsListView .project-brief-title h3{word-break:keep-all;overflow-wrap:anywhere}

/* 대표 이미지가 카드 전체를 채우고 이름·할 일 수만 겹쳐 표시한다. */
.win #projectsListView button.project-brief{position:relative;overflow:hidden;aspect-ratio:16/10;min-height:150px!important;padding:0!important;background-color:#183540!important;background-image:var(--project-cover)!important;background-size:cover!important;background-position:center!important;justify-content:flex-end;border:0!important;border-radius:12px!important}
#projectsListView .project-brief-title{display:block;padding:14px 16px;background:rgba(9,23,30,.86);width:100%;min-height:56px}
#projectsListView .project-brief-title h3{color:#fff!important;font-size:17px!important;margin:0;line-height:1.4}
#projectsListView :is(.project-index,.project-state,.project-current,.project-next){display:none!important}
.project-count{position:absolute;top:10px;right:10px;display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:6px;background:#256ef4;color:#fff;font:700 14px/1 var(--menu-font)}
@media(max-width:520px){.win #projectsListView button.project-brief{min-height:140px!important}#projectsListView .project-brief-title{padding:12px;min-height:60px}#projectsListView .project-brief-title h3{font-size:16px!important}}


/* 대화함: 카카오톡 채팅 목록 모양(대표 요청 2026-11-20). */
#secretary.sheet{background:#fff}
#secretary #convList{padding:0;background:#fff}
#secretary button.conv-item{gap:14px;min-height:88px;padding:16px 20px;border-radius:0;background:#fff;align-items:center}
#secretary button.conv-item:hover{background:#f5f5f5}
#secretary .conv-item .face.sm{width:56px;height:56px;flex:none;border-radius:22px;overflow:hidden;background:#e9edf2}
#secretary .conv-item .face.sm .ini{font-size:22px}
#secretary .conv-item .cv-mid{gap:3px;align-self:center}
#secretary .cv-top{align-items:baseline}
#secretary .cv-top b{font:700 16px/1.4 var(--menu-font)!important;color:#191919}
#secretary .cv-time{font:400 12px/1.4 var(--menu-font)!important;color:#999!important}
#secretary .cv-prev{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;overflow:hidden;font:400 14px/1.45 var(--menu-font)!important;color:#777!important;padding-right:36px}
#secretary .conv-item .unread{right:20px;bottom:auto;top:calc(50% - 4px);min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:#ff5a36;color:#fff;font:700 12px/22px var(--menu-font)}
#convRoom:has(#secDmRoom:not([hidden])){background:#b2c7d9;padding:12px 14px 0}
#secretary .dm-row.them .dm-bubble{background:#fff;color:#191919;border-top-left-radius:4px}
#secretary .dm-row.me .dm-bubble{background:#fee500;color:#191919;border-top-right-radius:4px}
#convRoom:has(#secDmRoom:not([hidden])) .dm-name{color:#3b4a56}
#convRoom:has(#secDmRoom:not([hidden])) .dm-time{color:#4f6070}
#convRoom:has(#secDmRoom:not([hidden])) #secDmForm{margin:0 -14px;padding:8px 14px 12px;background:#fff}

/* 대화함 단톡방·삭제(2026-11-20) — 카카오톡 목록 톤 유지 */
#secretary .conv-new{display:block;width:100%;min-height:48px;padding:12px 20px;border:0;border-bottom:1px solid #f0f0f0;border-radius:0;background:#fff;color:#191919;font:700 15px/1.4 var(--menu-font);text-align:left;cursor:pointer}
#secretary .conv-new:hover{background:#f5f5f5}
#secretary .group-face{width:56px;height:56px;flex:none;border-radius:22px;background:#e9edf2;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;overflow:hidden}
#secretary .group-face span{display:grid;place-items:center;font-size:14px;font-weight:700;color:#4a535c;border:1px solid #fff}
#secretary .sec-more-menu{position:absolute;right:56px;top:52px;z-index:5;background:#fff;border:1px solid #e6e8ea;box-shadow:0 4px 12px rgba(0,0,0,.08);display:flex;flex-direction:column;min-width:160px}
#secretary .sec-more-menu button{border:0;border-radius:0;background:none;padding:12px 16px;text-align:left;font:400 15px/1.4 var(--menu-font);color:#191919;cursor:pointer}
#secretary .sec-more-menu button:hover{background:#f5f5f5}
#secretary .sec-more-menu button[hidden]{display:none}
#secretary .dm-del{border:0;background:none;color:#d93025;font:700 12px/1 var(--menu-font);padding:4px 6px;cursor:pointer;align-self:flex-end}
#secretary .room-dialog{border:0;padding:20px;width:min(420px,calc(100vw - 32px));max-height:80dvh;overflow:auto}
#secretary .room-dialog h3{margin:0 0 12px;font-size:18px}
#secretary .room-dialog label{display:block;font-size:14px;color:#4a535c}
#secretary .room-dialog input#roomTitle{display:block;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #cdd1d5;font-size:16px}
#secretary .room-dialog fieldset{border:0;border-top:1px solid #e6e8ea;margin:16px 0 0;padding:12px 0 0}
#secretary .room-dialog legend{font-size:14px;font-weight:700;color:#191919;padding:0}
#secretary .room-dialog .room-person{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #f0f0f0;font-size:15px;color:#191919}
#secretary .room-person input{width:18px;height:18px}
#secretary .room-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
