/* 공통 화면의 밀도·대비만 담당한다. hidden/inert·권한·저장 잠금을 덮어쓰지 않는다. */
html[data-workspace-polish] {--muted:#566277;--text:#202838;}
html[data-workspace-polish] .app>.main>.topbar{min-height:64px;padding:10px 24px;gap:8px 12px;}
html[data-workspace-polish] .app>.main>.topbar .breadcrumbs{flex:0 1 auto;font-size:12px;}
html[data-workspace-polish] .app>.main>.topbar .top-actions{flex:1 1 auto;gap:6px;}
html[data-workspace-polish] .app>.main>.topbar .top-actions>:is(#unifiedSearchButton,#keywordRagChatButton){width:auto;min-width:72px;max-width:none;flex:0 0 auto;}
.workspace-account{position:relative;flex-shrink:0;}.workspace-account>summary{display:none;cursor:pointer;list-style:none;}
.workspace-account-actions{display:flex;gap:6px;align-items:center;}
html[data-workspace-polish] .workspace-account-actions>:is(button,select){min-height:40px;padding:8px 10px;border:1px solid #dce1eb;border-radius:8px;background:white;color:#475569;font-size:12px;}
html[data-workspace-polish] .app .content{padding:20px 24px;}
html[data-workspace-polish] .content>.heading{margin-bottom:16px;gap:12px;}
html[data-workspace-polish] .content>.eyebrow{display:none;}
html[data-workspace-polish] #subtitle{font-size:13px;color:#566277;margin:5px 0 0;}
html[data-workspace-polish] #pageTitle{font-size:24px;line-height:1.4;}
html[data-workspace-polish] .content>.toolbar{gap:10px;margin-bottom:10px;flex-wrap:wrap;}
html[data-workspace-polish] .app .content>.toolbar>.tabs{flex:1 1 100%;overflow:visible;flex-wrap:wrap;max-width:none;}
html[data-workspace-polish] .app .content>.toolbar .tabs>button{color:#48556d;font-size:13px;min-height:36px;padding:7px 10px;}
html[data-workspace-polish] .app .content>.toolbar .tabs>button.active{color:#5140a5;}
html[data-workspace-polish] .content>.toolbar .filters{flex:1;justify-content:flex-end;}
html[data-workspace-polish] .content>.toolbar .people{display:none;}
html[data-workspace-polish] .project-auto-refresh{margin:0 0 8px;font-size:12px;color:#566277;}
html[data-workspace-polish] .compact-dashboard{margin-bottom:8px;}
html[data-workspace-polish] .compact-dashboard-heading{min-height:28px;margin:0;}
html[data-workspace-polish] .filter-panel{margin:8px 0 12px;}
html[data-workspace-polish] .filter-panel>summary{padding:10px 12px;color:#455168;min-height:40px;}
html[data-workspace-polish] .kanban-settings{margin:8px 0 12px;padding:10px 12px;}
html[data-workspace-polish] .card{font-size:13px;}
html[data-workspace-polish] .card h3{font-size:14px;line-height:1.5;}
/* 보고·설정은 같은 조건을 보존하되 업무 보기 전환/통계를 전용 화면 위에 중복하지 않는다. */
html:is([data-workspace-view="weekly"],[data-workspace-view="monthlyReport"],[data-workspace-view="projectSettings"]) .content>.toolbar .tabs,
html:is([data-workspace-view="weekly"],[data-workspace-view="monthlyReport"],[data-workspace-view="projectSettings"]) .compact-dashboard{display:none;}
html[data-workspace-view="projectSettings"] .content>.toolbar,
html[data-workspace-view="projectSettings"] .content>.filter-panel{display:none;}
html:is([data-workspace-view="approvals"],[data-workspace-view="reports"]) .content>.toolbar,
html:is([data-workspace-view="approvals"],[data-workspace-view="reports"]) .content>.filter-panel,
html:is([data-workspace-view="approvals"],[data-workspace-view="reports"]) .compact-dashboard{display:none;}
/* 보고를 읽으며 내려갈 때 업무 필터가 보고 기간·내용 위에 붙어 겹치지 않게 한다. */
html:is([data-workspace-view="weekly"],[data-workspace-view="monthlyReport"]) .content>.toolbar{position:static;}
html:is([data-workspace-view="weekly"],[data-workspace-view="monthlyReport"]) .weekly-report-page>.weekly-heading h2{font-size:17px;}
html[data-workspace-polish] .weekly-project-report{padding:18px;margin-top:16px;}
html[data-workspace-polish] .weekly-ai-editor{background:#fff;border:1px solid #dce1eb;padding:16px;}
html[data-workspace-polish] .weekly-ai-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
html[data-workspace-polish] .weekly-ai-fields>[data-report-reading="actual"],
html[data-workspace-polish] .weekly-ai-fields>.weekly-previous-comparison{grid-column:1/-1;}
html[data-workspace-polish] .weekly-ai-fields label{min-width:0;color:#344158;font-size:14px;}
html[data-workspace-polish] .weekly-ai-fields textarea{width:100%;box-sizing:border-box;font-family:inherit;font-size:14px;line-height:1.7;font-weight:400;min-height:130px;}
.report-reading-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;font-weight:400;color:#27364a;padding:12px 0;}
.report-reading-text.is-empty{color:#59667b;font-size:13px;}
.weekly-ai-editor[data-reading="true"] [data-ai-bucket],.weekly-ai-editor[data-reading="false"] .report-reading-text{display:none;}
.report-mode-toggle{margin-bottom:14px;min-height:40px;}
html[data-workspace-polish] .approval-toolbar{display:grid;grid-template-columns:minmax(160px,1fr) minmax(220px,2fr) auto;gap:12px;align-items:end;padding:14px;}
.workspace-advanced-filters{grid-column:1/-1;border-top:1px solid #dce1eb;padding-top:10px;}
.workspace-advanced-filters>summary{cursor:pointer;color:#48556d;font-size:13px;min-height:30px;}
.workspace-advanced-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:12px;}
html[data-workspace-polish] .approval-toolbar .field{margin:0;min-width:0;font-size:13px;}
html[data-workspace-polish] .approval-toolbar :is(input,select,button){min-height:40px;font-size:13px;}
html[data-workspace-polish] .project-settings-fold>summary{min-height:42px;color:#344158;font-size:14px;}
html[data-workspace-polish] .issue-modal-body{grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);}
html[data-workspace-polish] #serverParentQuery{display:flex;flex-wrap:wrap;gap:8px;width:100%;min-width:0;grid-column:1/-1;}
html[data-workspace-polish] #serverParentQuery input{flex:1 1 100%;width:100%;min-width:0;box-sizing:border-box;}
html[data-workspace-polish] #serverParentQuery small{flex-basis:100%;font-size:12px;line-height:1.6;}
html[data-workspace-polish] .issue-side .field:has(#taskParentId){display:flex;flex-direction:column;align-items:stretch;gap:8px;}
html[data-workspace-polish] .issue-modal-footer button{font-size:13px;min-height:40px;}
html[data-workspace-polish] :is(button,input,select,textarea,summary):focus-visible{outline:2px solid #6552bf;outline-offset:2px;}
@media(max-width:720px){
 html[data-workspace-polish] .app>.main>.topbar{padding:8px 12px;gap:6px;min-height:52px;}
 html[data-workspace-polish] .app>.main>.topbar .top-actions{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px 48px;gap:6px;flex:1 0 100%;}
 html[data-workspace-polish] .app>.main>.topbar .search{grid-column:1;grid-row:1;min-width:0;max-width:none;}
 html[data-workspace-polish] .app>.main>.topbar .search kbd{display:none;}
 html[data-workspace-polish] .app>.main>.topbar #unifiedSearchButton{grid-column:2;grid-row:1;min-width:0;width:44px;padding:4px;}
 html[data-workspace-polish] .app>.main>.topbar #keywordRagChatButton{grid-column:3;grid-row:1;min-width:0;width:44px;padding:4px;}
 .workspace-account{grid-column:4;grid-row:1;}
 .workspace-account>summary{display:flex;align-items:center;justify-content:center;min-height:44px;background:white;border:1px solid #dce1eb;border-radius:8px;font-size:12px;}
 .workspace-account-actions{position:absolute;right:0;top:52px;z-index:90;min-width:190px;display:flex;flex-direction:column;align-items:stretch;background:white;padding:12px;border:1px solid #dce1eb;border-radius:10px;box-shadow:0 8px 24px #17253d26;}
 html[data-workspace-polish] .workspace-account-actions>:is(button,select){min-height:44px;max-width:none;width:100%;font-size:13px;}
 html[data-workspace-polish] .app .content{padding:14px 12px;}
 html[data-workspace-polish] #pageTitle{font-size:20px;}
 html[data-workspace-polish] #subtitle{display:none;}
 html[data-workspace-polish] .content>.heading{margin-bottom:10px;}
 html[data-workspace-polish] .content>.toolbar{gap:8px;margin-bottom:8px;}
 html[data-workspace-polish] .app .content>.toolbar .tabs>button{font-size:13px;min-height:44px;flex:1;}
 html[data-workspace-polish] .compact-dashboard-heading>span{display:none;}
 html[data-workspace-polish] .project-auto-refresh{justify-content:flex-end;font-size:12px;margin-bottom:4px;}
 html[data-workspace-polish] .filter-panel>summary{min-height:44px;}
 html[data-workspace-polish] .weekly-ai-fields{grid-template-columns:1fr;}
 html[data-workspace-polish] .weekly-project-report{padding:12px;}
 html[data-workspace-polish] .weekly-ai-editor{padding:12px;}
 html[data-workspace-polish] .approval-toolbar,.workspace-advanced-grid{grid-template-columns:1fr;}
 html[data-workspace-polish] .issue-modal-body{grid-template-columns:minmax(0,1fr);}
 html[data-workspace-polish] .issue-modal-footer button{min-height:44px;font-size:13px;}
 html[data-workspace-polish] .body-editor-toolbar{gap:4px;}
 html[data-workspace-polish] .body-editor-toolbar button{min-height:44px;font-size:12px;}
}

/* 상태 열의 기존 선택값은 그대로 두고 옵션 조작은 명시적으로 펼쳐 본다. */
html[data-workspace-polish] .kanban-settings:not([open]) .kanban-settings-head>div{display:none!important;}
.workspace-board-filters>summary{display:none;cursor:pointer;color:#48556d;}
.workspace-board-filters{margin-left:auto;}
.workspace-settings-index{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px;}
.workspace-editor-more{display:contents;}
.workspace-editor-more>summary{display:none;}
html[data-workspace-view="approvals"] #view>.approval-heading{justify-content:flex-start;gap:8px;flex-wrap:wrap;}
@media(min-width:721px){
 .workspace-editor-more::details-content{display:contents;}
}
@media(max-width:720px){
 .workspace-board-filters{width:100%;border:1px solid #dce1eb;border-radius:8px;background:white;}
 .workspace-board-filters>summary{display:flex;align-items:center;min-height:44px;padding:0 12px;font-size:13px;}
 html[data-workspace-polish] .workspace-board-filters .filters{padding:8px;}
 .workspace-board-filters .filters select{flex:1;min-width:0;}
 .workspace-editor-more{display:block;position:relative;}
 .workspace-editor-more>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px;border:1px solid #dce1eb;border-radius:6px;color:#48556d;font-size:12px;}
 .workspace-editor-more[open]{flex-basis:100%;display:flex;flex-wrap:wrap;gap:4px;}
 .workspace-editor-more[open]>summary{flex-basis:100%;}
 html[data-workspace-polish] .pms-body-toolbar{gap:4px;}
 html[data-workspace-polish] .pms-body-toolbar button{min-height:44px;font-size:12px;padding:6px 9px;}
}

html[data-workspace-polish] :is(.pms-body-surface,.pms-body-source){font-size:14px;line-height:1.7;}
/* 긴 업무 제목의 select 고유 너비가 모바일 보고 폼을 늘리지 않게 한다. */
html[data-workspace-polish] .weekly-editor form{grid-template-columns:minmax(0,1fr);}
html[data-workspace-polish] .weekly-editor select{min-width:0;width:100%;box-sizing:border-box;}
