/* 2026-10: 통합 탐색·고정 워크스페이스. 뷰어/검토 오버레이의 배율·스크롤은 건드리지 않는다. */
body.workspace,body.gate-active,#dlgSettings.ws-settings{--ws-bg:#f1f2f5;--ws-panel:#fafafd;--ws-raised:#fff;--ws-hover:#eeeef5;--ws-line:#dedfe8;--ws-ink:#272b36;--ws-muted:#61697a;--ws-accent:#6156c8;--ws-selected:#ece9fc;--ws-accent-fill:#6d60d8;--ws-top:56px;--ws-bottom:calc(28px + env(safe-area-inset-bottom,0px));--ink:var(--ws-ink);--muted:var(--ws-muted);--hair:var(--ws-line);--hair-in:var(--ws-line);--s0:var(--ws-bg);--s1:var(--ws-panel);--s2:var(--ws-raised);--s3:var(--ws-hover);--acc-text:var(--ws-accent);--gh-surface:var(--ws-panel);--gh-head:var(--ws-panel);--gh-solid:var(--ws-panel);--gh-popup:var(--ws-raised);--gh-selected:var(--ws-selected);--gh-accent:var(--ws-selected);--gh-accent-ink:var(--ws-accent);--gh-shadow:none;--gh-blur:none;background:var(--ws-bg);color:var(--ws-ink);height:100dvh;min-height:0;overflow:hidden;font-size:calc(13px*var(--ws-font-scale,1))}
html[data-theme=dark] body.workspace,html[data-theme=dark] body.gate-active,html[data-theme=dark] #dlgSettings.ws-settings{--ws-bg:#17191e;--ws-panel:#1e2128;--ws-raised:#252932;--ws-hover:#2b303a;--ws-line:#323741;--ws-ink:#e9ebf1;--ws-muted:#a2a9b8;--ws-accent:#aaa3ff;--ws-selected:#33314e;--ws-accent-fill:#7168df}
body.workspace:before,body.workspace:after,body.workspace #sideNav:before{display:none!important}
body.workspace>header{position:fixed;top:0;left:0;right:0;height:var(--ws-top);max-width:none;width:100%;margin:0;display:flex;flex-wrap:nowrap;background:var(--ws-panel);border-bottom:1px solid var(--ws-line);box-shadow:none;backdrop-filter:none;z-index:25}
body.workspace>header .searchwrap{max-width:460px;min-width:0;background:transparent;border:1px solid var(--ws-line);border-radius:6px;height:34px;box-shadow:none;backdrop-filter:none}
body.workspace>header .searchwrap input{height:32px;font-size:calc(12px*var(--ws-font-scale,1));background:transparent}
body.workspace>header>.brand .wm{font-size:calc(15px*var(--ws-font-scale,1))}body.workspace>header>.brand .blogo{width:25px;height:25px}
body.workspace>header .hbtn,body.workspace>header .avatar{border-radius:6px;background:transparent;box-shadow:none;backdrop-filter:none;color:var(--ink)}
body.workspace>header #btnInbox{margin-left:auto}body.workspace>header #userWrap{}body.workspace #wsAddSlot #btnNew{display:flex;min-height:34px;width:34px;border-radius:6px;background:transparent;padding:0;align-items:center;justify-content:center}body.workspace #btnNew[hidden]{display:none!important}
body.workspace>main{position:fixed;inset:var(--ws-top)0 var(--ws-bottom);padding:0;margin:0;width:100%;max-width:none;min-width:0;overflow:hidden}
body.workspace #viewMain{height:100%;min-height:0;padding:0}body.workspace #hubWrap{display:grid;grid-template-columns:var(--col-proj,304px) minmax(0,1fr) var(--col-hist,420px);grid-template-rows:minmax(0,1fr);gap:0;padding:0;margin:0;width:100%;height:100%;min-height:0;max-width:none;align-content:stretch}
body.workspace #hubWrap.gh-history-closed{grid-template-columns:var(--col-proj,304px) minmax(0,1fr) 56px}
body.workspace>footer{position:fixed;bottom:0;left:0;right:0;height:var(--ws-bottom);padding:5px 12px env(safe-area-inset-bottom,0px);border-top:1px solid var(--ws-line);background:var(--ws-panel);text-align:left;font-size:calc(10px*var(--ws-font-scale,1));line-height:18px;color:var(--ws-muted);z-index:20}
body.workspace #kindSeg,body.workspace #secLabel,body.workspace #empty,body.workspace #listHead,body.workspace .lb-title{display:none!important}
body.workspace #sideNav{grid-column:1;grid-row:1;position:relative;inset:auto;width:100%;height:100%;max-height:none;border:0;border-right:1px solid var(--ws-line);border-radius:0;background:var(--ws-panel);padding:0;box-shadow:none;backdrop-filter:none;display:flex;flex-direction:column;overflow:hidden;min-width:0;z-index:5}
.ws-library-heading{height:61px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;flex-shrink:0}.ws-library-heading h2{font-size:calc(14px*var(--ws-font-scale,1));margin:0;font-weight:650}
body.workspace #sideNav .sn-scroll{flex:1;min-height:0;overflow:auto;padding:0 10px 20px;scrollbar-width:none;overscroll-behavior:contain}
body.workspace #mainCol{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;max-height:none;height:auto;padding:0;overflow:visible;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;position:relative;grid-column:auto;grid-row:auto}
body.workspace #listBar{height:auto;min-height:36px;padding:0 4px 7px;display:flex;gap:4px;border:0;flex-shrink:0;flex-wrap:nowrap}body.workspace #listBar .lb-tools{width:100%;justify-content:flex-start}body.workspace #chipTools{margin:0;gap:4px}body.workspace #listBar button{height:30px;min-height:30px;border:0;border-radius:5px;background:none;padding:5px;color:var(--muted)}body.workspace #chipTools>.vtoggle{display:none!important}
body.workspace #filterBar{padding:8px;background:var(--ws-raised);border:1px solid var(--ws-line);border-radius:6px;gap:4px;margin-bottom:8px}body.workspace #filterBar[hidden]{display:none!important}
body.workspace .gh-filter summary{background:var(--ws-panel);border:1px solid var(--ws-line);border-radius:5px;font-size:calc(11px*var(--ws-font-scale,1))}.ws-empty{padding:10px 7px;color:var(--muted);font-size:calc(11px*var(--ws-font-scale,1));line-height:1.7}.ws-empty button{color:var(--ws-accent);border:0;background:none;font:inherit;text-decoration:underline;cursor:pointer}
body.workspace #projects{overflow:visible;padding:0;min-height:0;display:block;width:100%}body.workspace #projects .ws-folder,body.workspace #projects .ws-project{position:relative;display:block;padding:0;margin:0;min-width:0;border:0}
body.workspace #projects summary{list-style:none;display:flex;align-items:center;gap:8px;width:100%;height:39px;min-height:39px;padding:5px 7px;border:0;border-radius:5px;background:transparent;color:var(--ink);font-size:calc(12px*var(--ws-font-scale,1));cursor:pointer;text-transform:none;letter-spacing:normal;box-shadow:none}
body.workspace #projects summary::-webkit-details-marker{display:none}body.workspace #projects summary>svg:first-child{width:12px;flex-shrink:0;transition:transform .15s;color:var(--muted)}body.workspace #projects details[open]>summary>svg:first-child{transform:rotate(90deg)}body.workspace #projects summary>svg:nth-child(2){width:16px;color:var(--muted);flex-shrink:0}body.workspace #projects summary small{margin-left:auto;font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted);font-variant-numeric:tabular-nums}
body.workspace #projects .ws-files{padding-left:8px;margin:1px 0 9px 17px;border-left:1px solid var(--ws-line);min-width:0}.ws-project-caption{border-top:1px solid var(--ws-line);display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:14px 6px 6px;font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted)}.ws-project-caption .gh-icon{width:28px;min-width:28px;height:28px;min-height:28px}
body.workspace #projects .ws-project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}body.workspace #projects .ws-project>summary{padding-right:38px}.ws-project-menu{position:static;flex:none;width:30px!important;height:32px!important;min-height:32px!important;min-width:30px!important}
.ws-project-children{margin-left:18px;border-left:1px solid var(--ws-line);padding-left:8px}body.workspace #projects .ws-project-children .ws-files{margin:0;border:0;padding-left:0}body.workspace #projects .ws-project-children summary{font-size:calc(11px*var(--ws-font-scale,1));height:34px;min-height:34px}
body.workspace #projects .lrow{min-height:54px;height:auto;display:flex;width:100%;padding:8px 9px;margin:0 0 3px;gap:0;border:0;border-radius:6px;background:transparent;box-shadow:none;position:relative;overflow:hidden}
body.workspace #projects .lrow.sel{background:var(--ws-selected)}body.workspace #projects .lrow.sel:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:2px;height:auto;display:block;background:var(--ws-accent)}
body.workspace #projects .lth,body.workspace #projects .lacts,body.workspace #projects .lcol,body.workspace #projects .lauthor{display:none!important}body.workspace #projects .lbody{width:100%;min-width:0;flex:1;display:block;padding:0;margin:0}body.workspace #projects .ltop{display:flex;align-items:center;flex-wrap:wrap;gap:3px;min-height:0;padding:0!important}
body.workspace #projects .ltitle{font-size:calc(11px*var(--ws-font-scale,1));min-height:20px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.7;width:100%;max-width:100%;order:0;padding:0;flex:1 1 100%}
body.workspace #projects .lmeta{display:block;margin-top:3px;font-size:calc(10px*var(--ws-font-scale,1));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}body.workspace #projects .lmeta .pjname{font-weight:400;color:var(--muted)}body.workspace #projects .revi,body.workspace #projects .mtgi{min-height:24px;min-width:24px;padding:3px;border-radius:4px;font-size:calc(9px*var(--ws-font-scale,1));background:transparent}body.workspace #projects .selchk{flex-shrink:0;margin-right:8px}
body.workspace .sn-foot{border-top:1px solid var(--ws-line);padding:8px 12px;margin:0;background:var(--ws-panel)}body.workspace #snTrash{border-radius:5px;min-height:34px;font-size:calc(11px*var(--ws-font-scale,1));padding:6px;background:none;color:var(--muted)}body.workspace .sn-foot .sn-item:before{display:none}
body.workspace #ghPreview{grid-column:2;grid-row:1;display:flex;flex-direction:column;height:100%;min-height:0;min-width:0;padding:0;border:0;border-radius:0;background:var(--ws-bg);box-shadow:none;position:relative;inset:auto;z-index:auto}
body.workspace #ghPreview[hidden]{display:none!important}#wsDocHead{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:88px;padding:16px 24px;border-bottom:1px solid var(--ws-line);flex-shrink:0}#wsDocHead .grow{min-width:0;flex:1}#wsBreadcrumb{display:block;color:var(--muted);font-size:calc(10px*var(--ws-font-scale,1));margin-bottom:7px}#wsDocTitle{margin:0;font-size:calc(15px*var(--ws-font-scale,1));font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ws-doc-actions{display:flex;align-items:center;gap:3px}.ws-doc-actions .gh-icon{min-width:30px;width:30px;min-height:34px;height:34px;border-radius:5px}#wsFavorite[aria-pressed=true]{color:var(--ws-accent)}#wsFavorite[aria-pressed=true] svg{fill:color-mix(in srgb,var(--ws-accent) 15%,transparent)}
body.workspace .hbtn.primary{background:var(--ws-accent-fill);color:#fff;box-shadow:none;border:0;border-radius:6px}#wsPresent{display:flex;align-items:center;gap:6px;font-size:calc(12px*var(--ws-font-scale,1));min-height:34px;padding:0 10px;margin-left:4px}


body.workspace .gh-preview-shell{flex:1;min-height:0;border:0;border-radius:0;margin:0;padding:0;overflow:hidden;background:var(--ws-bg)}body.workspace #ghPreviewPort{width:100%;height:100%;min-height:0;max-height:none;position:relative;border:0;border-radius:0;background:var(--ws-bg);overflow:auto}body.workspace #ghPreviewCanvas{border-radius:0}.ws-preview-status{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;min-height:39px;padding:2px 16px;font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted)}#wsCurrentVersion{font:inherit;color:var(--ws-accent);background:none;border:0;cursor:pointer}.ws-page-nav{display:flex;align-items:center;gap:5px}.ws-page-nav .gh-icon{width:28px;min-width:28px;height:30px;min-height:30px}
body.workspace .gh-resizer[data-col=list]{display:none!important}body.workspace .gh-resizer[data-col=proj]{grid-column:1;grid-row:1;left:auto;right:-3px;width:6px;inset-block:0;z-index:10}body.workspace .gh-resizer[data-col=hist]{grid-column:3;grid-row:1;left:-3px;right:auto;width:6px;inset-block:0;z-index:10}body.workspace #hubWrap.gh-history-closed .gh-resizer[data-col=hist]{display:none}
body.workspace #infoPanel{grid-column:3;grid-row:1;position:relative;inset:auto;width:100%;height:100%;max-height:none;min-width:0;min-height:0;padding:12px 16px 0;border:0;border-left:1px solid var(--ws-line);border-radius:0;background:var(--ws-panel);box-shadow:none;backdrop-filter:none;display:flex;overflow:hidden;z-index:5}
body.workspace #infoPanel[hidden]{display:none!important}body.workspace .gh-history-title{display:flex;margin:0;min-height:32px;padding:0;align-items:center}.gh-history-title h2{font-size:calc(13px*var(--ws-font-scale,1))!important;font-weight:600}body.workspace .gh-history-title #ghHistoryToggle{display:flex;min-width:30px;min-height:32px;width:30px;height:32px;border-radius:5px}body.workspace #infoPanel .ip-tabwrap{padding:0;margin:0 0 13px}body.workspace #ipTabs{gap:18px;border-color:var(--ws-line)}body.workspace #ipTabs .ip-tab{height:38px;min-height:38px}body.workspace #ipTabs .ip-tab.on:after{background:var(--ws-accent)}body.workspace #ipBody{flex:1;min-height:0;overflow:auto;padding:0 0 15px;scrollbar-width:none}body.workspace #ipHist{padding:0!important}
body.workspace #infoPanel .history-overview{border:0;font-size:calc(10px*var(--ws-font-scale,1));margin:0 0 12px;padding:0;color:var(--muted)}body.workspace #infoPanel .tl{margin:0;padding:0}body.workspace #infoPanel .tl:before,body.workspace #infoPanel .history-version:after{display:none}body.workspace #infoPanel .tlnext{display:flex;width:100%;margin:0 0 17px;padding:7px 10px;border:1px dashed color-mix(in srgb,var(--ws-accent) 40%,var(--ws-line));background:color-mix(in srgb,var(--ws-selected) 50%,transparent);border-radius:6px;min-height:calc(var(--ws-card-summary) + 16px);box-shadow:none}body.workspace #infoPanel .tlnext:before{display:none}body.workspace #infoPanel .tlnext>.vb{position:static;width:31px;height:31px;margin:0 9px 0 0;border-radius:5px;flex-shrink:0;background:none;color:var(--ws-accent);font-size:calc(11px*var(--ws-font-scale,1))}body.workspace #infoPanel .tlnext .mid{min-width:0;flex:1}body.workspace #infoPanel .tlnext .lb{font-size:calc(11px*var(--ws-font-scale,1))}body.workspace #infoPanel .tlnext .sub,body.workspace #infoPanel .tlnext .future{font-size:calc(9px*var(--ws-font-scale,1));color:var(--muted)}body.workspace #infoPanel .tlnextline{display:none}
.ws-history-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted);margin:0 0 13px}.ws-history-toolbar>button{border:1px solid var(--ws-line);background:none;color:inherit;border-radius:5px;min-height:30px;padding:4px 7px;display:flex;align-items:center;gap:5px;font:inherit;cursor:pointer}#wsHistoryControls{margin-bottom:8px}.ws-checkpoints h3,.ws-other h3{font-size:calc(10px*var(--ws-font-scale,1));display:flex;gap:6px;align-items:center;color:var(--muted);font-weight:500;margin:0 0 10px}.ws-checkpoints h3 small{margin-left:auto}.ws-other{margin-top:17px}
body.workspace #infoPanel .history-version{padding:0;margin:0 0 8px;border:0}body.workspace #infoPanel .history-version[hidden]{display:none!important}body.workspace #infoPanel .history-card,body.workspace #infoPanel .history-card.history-folded:not(.cur){display:block;border:1px solid var(--ws-line);border-radius:7px;padding:7px 10px 7px 45px;background:var(--ws-raised);min-height:calc(var(--ws-card-summary) + 16px);overflow:hidden}body.workspace #infoPanel .history-card.ws-selected-version,body.workspace #infoPanel .history-card.history-folded.ws-selected-version:not(.cur){background:var(--ws-raised);border-color:var(--ws-accent);box-shadow:none}body.workspace #infoPanel .ws-version-badge{position:absolute;left:9px;top:calc(7px + (var(--ws-card-summary) - 31px)/2);width:29px;min-width:29px;height:31px;border-radius:5px;border:1px solid var(--ws-line);background:var(--ws-hover);font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted)}body.workspace #infoPanel .history-card.cur>.ws-version-badge{background:var(--ws-accent-fill);color:white;border-color:transparent}
body.workspace #infoPanel .history-card-head{gap:0;min-height:var(--ws-card-summary);position:relative;padding-right:0}body.workspace #infoPanel .history-title-group{min-width:0;flex:1 1 70px}body.workspace #infoPanel .ws-version-title{font:inherit;font-size:calc(11px*var(--ws-font-scale,1));background:none;color:var(--ink);border:0;text-align:left;min-height:20px;padding:0;cursor:pointer}body.workspace #infoPanel .history-card-head .t b{font-size:calc(11px*var(--ws-font-scale,1));line-height:1.6;max-width:100%}body.workspace #infoPanel .history-title-actions{flex-shrink:0}body.workspace #infoPanel .history-title-actions button{min-width:26px;width:26px;height:30px;min-height:30px;border-radius:5px}body.workspace #infoPanel .history-card-head .m{font-size:calc(9px*var(--ws-font-scale,1));color:var(--muted);margin-top:2px;line-height:1.7;white-space:normal;gap:4px}.ws-current{font-size:calc(8px*var(--ws-font-scale,1));padding:0 4px;border-radius:3px;background:color-mix(in srgb,#76b798 12%,transparent);color:#478a67}.ws-pin[aria-pressed=true]{color:var(--ws-accent)}
body.workspace #infoPanel .history-fold{position:static;left:auto;top:auto;bottom:auto;width:26px;height:30px;min-width:26px;padding:0;border-radius:5px}body.workspace #infoPanel .history-node{border:0;background:none;width:20px;height:20px}body.workspace #infoPanel .history-empty-node{display:none}body.workspace #infoPanel .history-content{margin-top:5px}body.workspace #infoPanel .history-content:empty{display:none}body.workspace #infoPanel .history-content .tle{font-size:calc(11px*var(--ws-font-scale,1));min-height:50px;grid-template-columns:17px minmax(0,1fr) 30px}body.workspace #infoPanel .history-content .tle .mid b,body.workspace #infoPanel .history-content .mtgc .t b{font-size:calc(11px*var(--ws-font-scale,1));font-weight:550;line-height:1.5;letter-spacing:0}body.workspace #infoPanel .history-content .tle .mid small,body.workspace #infoPanel .history-meeting-meta{font-size:calc(10px*var(--ws-font-scale,1))}body.workspace #infoPanel .annoi{border:0;border-radius:6px;background:var(--ws-selected);padding:10px;font-size:calc(11px*var(--ws-font-scale,1))}body.workspace #infoPanel .annoi .x{font-size:calc(11px*var(--ws-font-scale,1));line-height:1.8}body.workspace #infoPanel .history-timeline .tlkids{border:0;padding:0}
#wsCalendar{border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-raised);padding:9px;margin:0 0 12px}.ws-month{display:flex;align-items:center;justify-content:space-between;font-size:calc(11px*var(--ws-font-scale,1));margin-bottom:8px}.ws-month>div{display:flex}.ws-month .gh-icon{min-width:27px;width:27px;min-height:29px;height:29px}.ws-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.ws-calendar-grid>span{display:grid;place-items:center;min-height:23px;color:var(--muted);font-size:calc(9px*var(--ws-font-scale,1))}.ws-calendar-grid>button{aspect-ratio:1;position:relative;border:0;border-radius:5px;background:none;color:var(--muted);font:inherit;font-size:calc(10px*var(--ws-font-scale,1));cursor:pointer}.ws-calendar-grid>button.has-event{color:var(--ink);font-weight:650}.ws-calendar-grid .has-event:after{content:"";position:absolute;bottom:4px;left:calc(50% - 1.5px);width:3px;height:3px;border-radius:50%;background:var(--ws-accent)}.ws-calendar-grid>button[aria-pressed=true]{background:var(--ws-accent-fill);color:#fff}#wsDateFilter{display:flex;align-items:center;justify-content:space-between;background:var(--ws-selected);color:var(--ws-accent);font-size:calc(10px*var(--ws-font-scale,1));border-radius:4px;padding:6px 8px}#wsDateFilter button{background:none;border:0;color:inherit;cursor:pointer;font:inherit}#wsDateFilter[hidden],#wsCalendar[hidden]{display:none}
#wsVersionRail{display:none}body.workspace #hubWrap.gh-history-closed #infoPanel{padding:8px 5px;width:56px}body.workspace #hubWrap.gh-history-closed #infoPanel>:not(#wsVersionRail){display:none!important}body.workspace.glass-hub #hubWrap.gh-history-closed #infoPanel #wsVersionRail{display:flex!important;flex:1;min-height:0;flex-direction:column;gap:5px;align-items:center;overflow:auto;scrollbar-width:none}#wsVersionRail .gh-icon{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:5px}#wsRailAi{display:flex;flex-direction:column;align-items:center;color:var(--ws-accent);gap:4px;font-size:calc(10px*var(--ws-font-scale,1));padding:10px 0 12px;width:100%;border-top:1px solid var(--ws-line);border-bottom:1px dashed var(--ws-line);margin:6px 0 4px}#wsRailAi small{font-size:calc(8px*var(--ws-font-scale,1));color:var(--muted)}#wsRailVersions{display:contents}.ws-rail-version{width:44px;min-height:48px;flex-shrink:0;border:0;border-radius:5px;color:var(--muted);font:inherit;font-size:calc(10px*var(--ws-font-scale,1));background:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;cursor:pointer}.ws-rail-version.on{background:var(--ws-selected);color:var(--ws-accent)}.ws-rail-version i{width:4px;height:4px;border-radius:50%;background:var(--ws-accent)}#wsRailCalendar{margin-top:auto}
#wsMemo{position:fixed;top:calc(var(--ws-top,56px) + 130px);right:78px;width:275px;max-width:calc(100vw - 88px);max-height:calc(100dvh - 220px);overflow:auto;background:var(--ws-panel);color:var(--ink);border:1px solid var(--ws-line);border-radius:11px;box-shadow:0 14px 40px #0004;z-index:80;padding:13px}.ws-memo-head{display:flex;justify-content:space-between;gap:9px;align-items:flex-start;margin-bottom:12px}.ws-memo-head h2{font-size:calc(13px*var(--ws-font-scale,1));margin:0 0 4px}.ws-memo-head small{color:var(--muted);font-size:calc(10px*var(--ws-font-scale,1))}.ws-memo-head .gh-icon{min-width:28px;width:28px;min-height:28px;height:28px;border-radius:5px}.ws-memo-summary{border:1px solid var(--ws-line);padding:12px;border-radius:7px}.ws-memo-summary>small{font-size:calc(9px*var(--ws-font-scale,1));color:var(--muted)}.ws-memo-summary h3{font-size:calc(12px*var(--ws-font-scale,1));font-weight:550;line-height:1.8;margin:8px 0;overflow-wrap:anywhere}.ws-memo-summary p{font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted)}.ws-memo-summary>button{border:1px solid var(--ws-line);background:none;color:var(--ink);border-radius:5px;padding:6px;min-height:34px;font:inherit;font-size:calc(10px*var(--ws-font-scale,1));cursor:pointer;display:flex;align-items:center;gap:6px}
#wsNotes{--note-height:150px;position:relative;height:var(--note-height);flex-shrink:0;display:flex;flex-direction:column;border-top:1px solid var(--ws-line);padding:0 24px 8px;background:var(--ws-panel);min-width:0}#wsNotes.closed{height:39px;padding-bottom:0}#wsNotes.closed #wsNoteInput,#wsNotes.closed #wsNoteStatus,#wsNotes.closed #wsNoteGrip{display:none}#wsNotes.closed #wsNoteToggle svg{transform:rotate(180deg)}.ws-note-head{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:38px;flex-shrink:0}.ws-note-head label{font-size:calc(12px*var(--ws-font-scale,1));font-weight:550}.ws-note-head label small{font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted);margin-left:9px;font-weight:400}.ws-note-head>div{display:flex;gap:5px;align-items:center}.ws-note-head button:not(.gh-icon){font-size:calc(10px*var(--ws-font-scale,1));color:var(--ws-accent);background:none;border:0;cursor:pointer;min-height:30px}.ws-note-head .gh-icon{width:28px;min-width:28px;height:30px;min-height:30px;border-radius:5px}#wsNoteInput{flex:1;min-height:0;width:100%;resize:none;border:0;border-radius:3px;background:transparent;color:var(--ink);font:inherit;font-size:calc(12px*var(--ws-font-scale,1));line-height:1.85;padding:3px 4px}#wsNoteInput:focus{outline:1px solid var(--ws-line);outline-offset:1px;box-shadow:none}#wsNoteInput:disabled{cursor:wait;opacity:.6}#wsNoteStatus{font-size:calc(9px*var(--ws-font-scale,1));color:var(--muted);padding:6px 4px 0;min-height:19px;line-height:1.6}#wsNoteGrip{position:absolute;height:10px;top:-5px;left:0;right:0;z-index:4;cursor:ns-resize;touch-action:none}#wsNoteGrip:before{content:"";position:absolute;left:calc(50% - 19px);top:4px;width:38px;height:2px;border-radius:2px;background:var(--ws-line)}.ws-note-resizing,.ws-note-resizing *{cursor:ns-resize!important;user-select:none!important}.ws-note-resizing iframe{pointer-events:none!important}
body.workspace .chat-message{border:0;border-radius:6px;background:var(--ws-raised);font-size:calc(11px*var(--ws-font-scale,1))}body.workspace .chat-message p{font-size:calc(12px*var(--ws-font-scale,1));line-height:1.8}body.workspace .chat-message.mine{background:var(--ws-selected)}body.workspace #chatInput{border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-raised);font-size:calc(12px*var(--ws-font-scale,1))}body.workspace #chatSend{border-radius:6px;background:var(--ws-accent-fill);color:white}body.workspace dialog,body.workspace .dlmenu,body.workspace .umenu,body.workspace #newMenu{border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-panel);box-shadow:0 16px 45px #0003;backdrop-filter:none}:where(body.workspace) :is(button,a[href],input,select,textarea,summary,[role=button],[tabindex]):focus-visible{outline:2px solid var(--ws-accent);outline-offset:-3px}body.workspace #viewTrash{height:100%;overflow:auto;padding:20px}body.workspace #viewTrash .trashitem{border-color:var(--ws-line)}
body.workspace .ws-nav-toggle{display:none}
@media(hover:hover){body.workspace #projects summary:hover,body.workspace #projects .lrow:hover,body.workspace .gh-icon:hover,body.workspace .ws-rail-version:hover{background:var(--ws-hover)}}
@media(max-width:900px){body.workspace{--ws-top:56px}body.workspace #hubWrap,body.workspace #hubWrap.gh-history-closed{grid-template-columns:minmax(0,1fr) 56px}body.workspace #sideNav{position:fixed;top:var(--ws-top);bottom:var(--ws-bottom);left:0;right:auto;transform:translateX(-100%);width:min(310px,calc(100vw - 44px));height:auto;z-index:65;border-radius:0;padding:0;transition:transform .15s}body.workspace.nav-open #sideNav{transform:translateX(0);display:flex;position:fixed;top:var(--ws-top);bottom:var(--ws-bottom);left:0;right:auto;width:min(310px,calc(100vw - 44px));height:auto;z-index:65;background:var(--ws-panel)}body.workspace #ghPreview{grid-column:1;grid-row:1;display:flex!important;position:relative;inset:auto;width:100%;height:100%;padding:0;border-radius:0;box-shadow:none;z-index:auto}body.workspace #infoPanel{grid-column:2;grid-row:1;position:fixed;top:var(--ws-top);bottom:var(--ws-bottom);right:0;left:auto;width:min(376px,calc(100vw - 20px));height:auto;border-radius:0;display:none;padding:12px 16px 0;z-index:60}body.workspace #infoPanel.gh-history-open{display:flex}body.workspace #hubWrap.gh-history-closed #infoPanel{display:flex;position:relative;inset:auto;width:56px;height:100%;grid-column:2;padding:8px 5px;z-index:5}body.workspace #hubWrap:not(.gh-history-closed) #infoPanel:not(.gh-history-open){display:none}body.workspace #navScrim{position:fixed;inset:var(--ws-top)0 var(--ws-bottom);border-radius:0;z-index:62;background:#0006}body.workspace .ws-nav-toggle{display:flex;border:0;background:none;color:var(--ink);align-items:center;justify-content:center;min-width:44px;min-height:44px}body.workspace .gh-resizer{display:none!important}body.workspace .ws-page-nav .gh-icon,body.workspace #wsVersionRail .gh-icon{min-width:44px;width:44px;min-height:44px;height:44px}body.workspace #ipTabs .ip-tab{min-height:44px;height:44px}body.workspace .gh-history-title #ghHistoryToggle{min-width:44px;width:44px;min-height:44px;height:44px}body.workspace #projects summary,body.workspace #projects .ws-project-children summary{min-height:44px;height:auto}body.workspace #projects .ltitle{min-height:44px;display:flex;align-items:center}body.workspace #projects .revi,body.workspace #projects .mtgi{min-width:44px;min-height:44px}.ws-project-menu{min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important;top:0}body.workspace #projects .ws-project>summary{padding-right:46px}body.workspace #listBar button{min-width:44px;min-height:44px;height:44px}body.workspace #infoPanel .history-title-actions button{min-width:44px;width:44px;min-height:44px;height:44px}body.workspace #infoPanel .history-title-group{flex-basis:100%}body.workspace #infoPanel .history-title-actions{margin-left:0}body.workspace #infoPanel .history-fold{min-width:44px;height:44px;width:44px}.ws-calendar-grid>button{min-height:44px;aspect-ratio:auto}.ws-month .gh-icon,.ws-memo-head .gh-icon,.ws-note-head .gh-icon{min-width:44px;width:44px;min-height:44px;height:44px}.ws-history-toolbar>button,.ws-memo-summary>button{min-height:44px}#wsNotes{padding-left:16px;padding-right:16px}#wsNotes.closed{height:44px}.ws-note-head{min-height:44px}body.workspace #wsPresent{min-height:44px}.ws-doc-actions .gh-icon{width:44px;height:44px;min-width:44px;min-height:44px}.ws-doc-actions #wsEditAction{display:none}body.workspace #wsAddSlot #btnNew{min-width:44px;min-height:44px}.ws-project-caption .gh-icon{min-width:44px;min-height:44px}}
@media(max-width:640px){body.workspace{--ws-top:54px}body.workspace>header{flex-wrap:nowrap;padding:0 7px;gap:4px}body.workspace>header>.brand .wm{font-size:calc(12px*var(--ws-font-scale,1))}body.workspace>header>.brand .blogo{width:23px;height:23px}body.workspace>header .searchwrap{order:0;flex:1;flex-basis:auto;min-width:35px;width:auto;height:34px}body.workspace>header .searchwrap input{font-size:calc(11px*var(--ws-font-scale,1));padding-left:27px}body.workspace>header #userWrap{order:0;margin:0}body.workspace>header #btnInbox{min-width:44px;min-height:44px}body.workspace #hubWrap,body.workspace #hubWrap.gh-history-closed{grid-template-columns:minmax(0,1fr) 56px}body.workspace #hubWrap.gh-history-closed #infoPanel{width:56px}#wsDocHead{padding:12px;min-height:79px;gap:4px}#wsDocTitle{font-size:calc(12px*var(--ws-font-scale,1))}#wsBreadcrumb{font-size:calc(9px*var(--ws-font-scale,1))}.ws-doc-actions #wsContextAction,.ws-doc-actions #wsFavorite{display:none}#wsPresent{font-size:calc(10px*var(--ws-font-scale,1));padding:0 7px}body.workspace .gh-preview-shell{flex:1;min-height:0}body.workspace #ghPreviewPort{height:100%}.ws-preview-status{padding-inline:8px;font-size:calc(9px*var(--ws-font-scale,1));gap:2px}.ws-preview-status .ws-page-nav{gap:0}#wsVersionStatus{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:45%}#wsCurrentVersion{font-size:calc(9px*var(--ws-font-scale,1))}#wsNotes{padding-inline:12px}#wsNoteInput{font-size:calc(12px*var(--ws-font-scale,1))}#wsNoteGrip{height:14px;top:-7px}#wsMemo{right:68px;max-width:calc(100vw - 78px);top:170px}body.workspace #infoPanel{padding-left:12px;padding-right:12px}.ws-calendar-grid{gap:0}#wsCalendar{padding:7px}body.workspace #filterBar{max-width:100%}}
@media(prefers-reduced-motion:reduce){body.workspace *,body.workspace *:before,body.workspace *:after{transition:none!important;animation:none!important}}

/* 기존 목록 제목의 모바일 표시와 등록 버튼의 기존 숨김을 덮는다. */
body.workspace #listBar .lb-title{display:none!important}body.workspace #wsAddSlot #btnNew{visibility:visible;opacity:1;color:var(--ink)}

/* 밀착 패널의 폭 손잡이가 옆 도구의 클릭을 가리지 않도록 한다. 터치에서는 손잡이를 숨긴다. */
body.workspace .gh-resizer::before{width:8px}

body.workspace #projects .ws-project>summary>small{margin-right:26px}body.workspace #wsAddSlot #btnNew{box-shadow:none;border:0}

#wsRailChat{position:relative}#wsRailChat.ws-unread:after{content:"";position:absolute;right:7px;top:7px;width:6px;height:6px;background:var(--ws-accent);border-radius:50%}
@media(max-width:900px){#wsNoteGrip{height:44px;top:-22px;left:calc(50% - 44px);width:88px;right:auto}#wsNoteGrip:before{top:21px}}
body.workspace #navToggle{display:none!important}
@media(max-width:900px){body.workspace #navToggle{display:flex!important;min-width:44px;min-height:44px;width:44px;height:44px;padding:0;align-items:center;justify-content:center;flex-shrink:0}}
@media(hover:hover){body.workspace .ws-project-menu{opacity:0}body.workspace .ws-project:hover>.ws-project-menu,body.workspace .ws-project:hover>summary>.ws-project-menu,body.workspace .ws-project:focus-within .ws-project-menu{opacity:1}}
@media(max-width:640px){.ws-doc-actions #wsContextAction,.ws-doc-actions #wsFavorite{display:inline-flex}#wsDocTitle{min-width:0}}
@media(max-width:900px){body.workspace #infoPanel .history-card-head .ws-version-title{min-height:44px}}

body:not(.glass-hub) .gh-resizer{display:none}

.ws-library-heading{display:none}body.workspace .ws-library-heading{display:flex}
body.workspace #cfMsg pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:40dvh;overflow:auto;text-align:left}

body.workspace .ws-file-context{font-size:calc(12px*var(--ws-font-scale,1));line-height:1.8;border-top:1px solid var(--ws-line);margin-top:14px;padding-top:12px}body.workspace .ws-file-context h3{font-size:calc(12px*var(--ws-font-scale,1));margin:0 0 7px}body.workspace .ws-file-context p{white-space:pre-wrap;overflow-wrap:anywhere}

body.workspace .sn-foot{display:flex;flex-direction:column;gap:4px}body.workspace #selbar{position:static;left:auto;bottom:auto;transform:none;z-index:auto;width:100%;max-width:none;flex-wrap:wrap;gap:4px;padding:8px;background:var(--ws-selected);border-radius:6px;box-shadow:none}body.workspace #selbar[hidden]{display:none!important}body.workspace #selCount{flex-basis:100%;color:var(--ink);font-size:calc(11px*var(--ws-font-scale,1));margin-bottom:3px}body.workspace #selbar .hbtn{font-size:calc(11px*var(--ws-font-scale,1));padding:5px 7px;min-height:32px;box-shadow:none;background:none;color:var(--ink)}body.workspace #selbar .danger-t{color:#b63b54}html[data-theme=dark] body.workspace #selbar .danger-t{color:#ef91a3}body.workspace #snTrash{width:100%}
@media(max-width:900px){body.workspace #selbar .hbtn{min-height:44px;min-width:44px}}
/* 승인 시안의 서체/단수/행간. 터치 타깃은 기존 44px 예외를 유지한다. */
body.workspace{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;line-height:1.5;--ws-folder:#c6ae7e}
body.workspace #projects .ws-project>summary>svg:nth-child(2){color:var(--ws-folder)}
body.workspace #projects .lrow{padding:8px 9px;padding-left:9px!important;min-height:55px}
body.workspace #projects .ltop{flex-wrap:nowrap;gap:4px;height:24px}
body.workspace #projects .ltitle{font-size:calc(11px*var(--ws-font-scale,1));font-weight:600;flex:1 1 0;width:0;min-width:0;min-height:20px;line-height:1.5}
body.workspace #projects .lmeta{font-size:calc(10px*var(--ws-font-scale,1));margin-top:3px}
body.workspace #projects .ws-project .lmeta{font-size:calc(9px*var(--ws-font-scale,1))}
body.workspace #projects .revi,body.workspace #projects .mtgi{flex:0 0 auto;font-size:calc(9px*var(--ws-font-scale,1));margin:0;align-self:center}
#wsMemo .ws-memo-summary p{font-size:calc(11px*var(--ws-font-scale,1));margin:8px 0 18px;line-height:1.85}
#wsMemo .ws-memo-summary>button{display:inline-flex;width:auto;min-height:32px;padding:5px 9px;gap:6px;font-size:calc(11px*var(--ws-font-scale,1));font-weight:400;border:1px solid var(--ws-line);border-radius:5px;background:transparent;box-shadow:none}
/* 시안의 날짜 구분·왼쪽 아바타·본문 흐름. 기존 버전/멘션/전송 상태는 그대로 사용한다. */
body.workspace #ipBody:has(#ipChat:not([hidden])){overflow:hidden;display:flex;flex-direction:column;padding-bottom:0}
body.workspace #ipChat{gap:0;flex:1;min-height:0}
body.workspace .chat-heading{border:1px solid var(--ws-line);border-radius:5px;background:var(--ws-raised);padding:6px 9px;gap:7px;font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted);min-height:38px}
body.workspace .chat-heading b{font-weight:400}body.workspace .chat-heading button{min-width:28px;min-height:28px;border-radius:4px;background:none;font:inherit}
body.workspace .chat-members{margin-top:10px;border:0;background:transparent;border-bottom:1px solid var(--ws-line);border-radius:0}
body.workspace .chat-members summary{padding:6px 2px;min-height:34px}body.workspace .chat-members b{font-size:calc(11px*var(--ws-font-scale,1))}body.workspace .chat-members small{font-size:calc(9px*var(--ws-font-scale,1))}
body.workspace .chat-status:empty{display:none}body.workspace #chatMessages{gap:0;padding:18px 1px;flex:1;overflow:auto}
body.workspace #chatMessages:has(>.chat-empty){display:flex;align-items:center;justify-content:center}body.workspace #chatMessages>.chat-empty{width:100%;margin:0;padding:24px 12px;text-align:center;font-size:calc(12px*var(--ws-font-scale,1));line-height:1.8;color:var(--ws-muted)}
body.workspace .chat-date{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:calc(9px*var(--ws-font-scale,1));margin:0 0 23px;flex-shrink:0}
body.workspace .chat-date:before,body.workspace .chat-date:after{content:"";flex:1;border-top:1px solid var(--ws-line)}
body.workspace .chat-message,body.workspace .chat-message.mine{display:flex;gap:9px;width:100%;max-width:100%;padding:0;margin:0 0 24px;background:none;align-self:stretch;border:0;border-radius:0;flex-shrink:0}
body.workspace .chat-avatar{width:27px;height:27px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:var(--ws-selected);color:var(--ws-accent);font-size:calc(10px*var(--ws-font-scale,1));font-weight:600}
body.workspace .chat-message-content{min-width:0;flex:1}body.workspace .chat-meta{align-items:center;gap:7px;font-size:calc(9px*var(--ws-font-scale,1))}
body.workspace .chat-meta b{font-size:calc(11px*var(--ws-font-scale,1));font-weight:550;color:var(--ink)}body.workspace .chat-meta time{color:var(--muted)}
body.workspace .chat-message p{font-size:calc(11px*var(--ws-font-scale,1));line-height:1.85;margin:5px 0 0}
body.workspace .chat-compose{margin:0 0 16px;padding:10px;border:1px solid var(--ws-line);border-radius:7px;background:var(--ws-raised);gap:6px}
body.workspace .chat-compose:focus-within{border-color:var(--ws-accent)}body.workspace .chat-input-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.workspace #chatInput{border:0!important;box-shadow:none!important;background:transparent;border-radius:0;outline:none!important;padding:0;min-height:62px;max-height:140px;resize:vertical;font-family:inherit;font-size:calc(11px*var(--ws-font-scale,1));line-height:1.7}
body.workspace .chat-send-row{align-items:flex-end}body.workspace .chat-send-row small{font-size:calc(9px*var(--ws-font-scale,1));line-height:1.7}
body.workspace #chatSend{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:5px;box-shadow:none}
body.workspace #sideNav .sn-foot{display:flex;flex-direction:column;align-items:stretch;gap:4px}
body.workspace #sideNav #wsSettingsOpen{width:100%;justify-content:flex-start}
#wsSettingsOpen{display:flex;align-items:center;gap:9px;width:auto;min-height:34px;padding:6px;border:0;border-radius:5px;color:var(--muted);background:none;cursor:pointer}
#wsSettingsIcon{display:flex}#wsSettingsIcon svg{width:16px;height:16px}
/* Orca 형식의 설정 탐색과 내용 영역. 기존 입력·저장 DOM을 그대로 사용한다. */
#dlgSettings.ws-settings{inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;grid-template-columns:248px minmax(0,1fr);overflow:hidden;box-shadow:none;font-family:inherit}
#dlgSettings.ws-settings[open]{display:grid}
.ws-settings-nav{min-width:0;min-height:0;overflow:auto;background:var(--ws-panel);border-right:1px solid var(--ws-line);padding-bottom:env(safe-area-inset-bottom,0px);scrollbar-width:none}
#wsSettingsBack{display:flex;align-items:center;gap:8px;width:100%;min-height:56px;padding:12px 16px;border:0;border-bottom:1px solid var(--ws-line);background:none;color:var(--muted);font-size:calc(12px*var(--ws-font-scale,1));text-align:left}
.ws-settings-search{display:flex;align-items:center;gap:7px;height:36px;margin:14px 12px 6px;padding:0 9px;border:1px solid var(--ws-line);border-radius:6px;color:var(--muted)}
#dlgSettings #wsSettingsSearch{width:100%;min-width:0;min-height:0;height:100%;padding:0;border:0;border-radius:0;background:none;font-size:calc(12px*var(--ws-font-scale,1));box-shadow:none}
.ws-settings-search:focus-within{outline:2px solid var(--ws-accent);outline-offset:2px}
.ws-settings-nav nav{padding:8px 10px}.ws-settings-group{margin-bottom:22px}
.ws-settings-group>small{display:block;margin:13px 8px 8px;font-size:calc(10px*var(--ws-font-scale,1));font-weight:400;color:var(--muted)}
.ws-settings-group>button{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;margin:2px 0;padding:8px 10px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:calc(12px*var(--ws-font-scale,1));font-weight:400;text-align:left}
.ws-settings-group>button svg{width:16px;flex:none}.ws-settings-group>button[aria-current=page]{background:var(--ws-hover);color:var(--ink)}
#wsSettingsSearchStatus{padding:8px;color:var(--muted);font-size:12px;line-height:1.6}
.ws-settings-main{min-width:0;min-height:0;overflow:auto;scrollbar-width:none;padding:40px 36px calc(40px + env(safe-area-inset-bottom,0px))}
#dlgSettings.ws-settings .dhead{display:block;max-width:880px;margin:0 auto 24px;padding:0 0 24px;border-bottom:1px solid var(--ws-line);background:none;font:inherit}
#wsSettingsTitle{margin:0;color:var(--ink);font-size:calc(22px*var(--ws-font-scale,1));font-weight:600;line-height:1.4}
#wsSettingsDescription{margin:10px 0 0;font-size:calc(13px*var(--ws-font-scale,1));font-weight:400;line-height:1.65;color:var(--muted)}
#dlgSettings.ws-settings .dbody{max-width:880px;max-height:none;min-width:0;margin:0 auto;padding:0;overflow:visible;background:none;font-size:calc(13px*var(--ws-font-scale,1))}
#dlgSettings .setcard,#dlgSettings .panel{border:1px solid var(--ws-line);border-radius:10px;box-shadow:none;background:var(--ws-panel);padding:22px 24px;margin:0 0 20px;min-width:0}
#dlgSettings .setcard-h{display:flex;align-items:baseline;gap:8px;margin:0 0 18px;padding:0;border:0}
#dlgSettings .setcard-h b,#dlgSettings .tinfo b{color:var(--ink);font-size:calc(13px*var(--ws-font-scale,1));font-weight:550;letter-spacing:normal}
#dlgSettings .setrow{margin:0;padding:14px 0;gap:16px;min-width:0;align-items:center}
#dlgSettings .setrow+.setrow{border-top:1px solid var(--ws-line)}
#dlgSettings .setlbl{margin:0;min-width:0;color:var(--ink);font-size:calc(13px*var(--ws-font-scale,1));font-weight:500;line-height:1.6}
#dlgSettings .setctl{max-width:460px;min-width:0;gap:8px}
#dlgSettings .setctl input,#dlgSettings .setctl select{min-width:0;max-width:100%}
#dlgSettings .hbtn{justify-content:center;min-height:36px;padding:7px 12px;font-size:calc(12px*var(--ws-font-scale,1));border-radius:6px;box-shadow:none}
#dlgSettings input:not([type=checkbox],[type=radio],[type=range],[type=color]),#dlgSettings select,#dlgSettings textarea{min-height:44px;border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-bg);font-size:calc(13px*var(--ws-font-scale,1))}
#dlgSettings .setrow-model .setctl{flex:1}.ws-setting-hint,#dlgSettings .setnote,#dlgSettings .tinfo span{font-size:calc(12px*var(--ws-font-scale,1));font-weight:400;line-height:1.65;color:var(--muted);margin:5px 0 0}
#dlgSettings .setnote{border-top:1px solid var(--ws-line);padding-top:14px;margin-top:12px}
#dlgSettings .cx-steps{font-size:calc(13px*var(--ws-font-scale,1));line-height:1.8}
#dlgSettings .tsw{margin:0}#dlgSettings button:focus-visible,#dlgSettings input:focus-visible,#dlgSettings textarea:focus-visible{outline:2px solid var(--ws-accent);outline-offset:2px}
#dlgSettings [hidden]{display:none!important}
.ws-account-identity{display:flex;align-items:center;gap:14px;margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--ws-line)}
#wsAccountAvatar{width:44px;height:44px;display:grid;place-items:center;flex:none;background:var(--ws-selected);color:var(--ws-accent);border-radius:8px;font-size:18px}
.ws-account-identity>div{min-width:0;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}.ws-account-identity strong{font-size:calc(15px*var(--ws-font-scale,1));font-weight:550}.ws-account-identity span,.ws-account-identity small{color:var(--muted);font-size:calc(12px*var(--ws-font-scale,1))}
#wsAccountGuest #wsAccountLogin{margin-top:20px}
.ws-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
@media(hover:hover){.ws-settings-group>button:hover,#wsSettingsBack:hover{background:var(--ws-hover);color:var(--ink)}}
@media(max-width:900px){#dlgSettings button,#dlgSettings .hbtn,#dlgSettings input:not([type=checkbox],[type=radio],[type=range],[type=color]),#dlgSettings select,.ws-settings-search{min-height:44px}.ws-settings-group>button{min-height:44px}}
@media(max-width:640px){#dlgSettings.ws-settings{grid-template-columns:128px minmax(0,1fr)}.ws-settings-main{padding:24px 16px calc(24px + env(safe-area-inset-bottom,0px))}.ws-settings-nav nav{padding:6px}.ws-settings-group>button{gap:7px;padding:8px 7px;font-size:12px}.ws-settings-group>small{margin-left:7px}#wsSettingsBack{padding:10px 8px;gap:5px;font-size:11px}.ws-settings-search{margin:12px 6px 6px;padding:0 6px;gap:4px}.ws-settings-search svg{width:13px;flex:none}#wsSettingsTitle{font-size:20px}#wsSettingsDescription{font-size:12px}#dlgSettings .setcard,#dlgSettings .panel{padding:16px 12px}#dlgSettings .setrow{align-items:flex-start;flex-direction:column;gap:10px}#dlgSettings .setctl{width:100%;max-width:none;flex-wrap:wrap}#dlgSettings .setctl input,#dlgSettings .setctl select{max-width:100%;width:100%}#dlgSettings .setlbl,#dlgSettings .stat,#dlgSettings .setcard-h{white-space:normal;overflow-wrap:anywhere}#dlgSettings .row{flex-wrap:wrap}#dlgSettings .row>div{min-width:0;flex-basis:100%}#dlgSettings #mcpUrl{width:100%!important}#dlgSettings .ws-account-identity{align-items:flex-start;gap:10px}#wsAccountAvatar{width:36px;height:36px;font-size:16px}}
@media(max-width:900px){body.workspace #projects .ltop{height:44px}body.workspace #projects .ltitle{min-height:44px;line-height:44px}body.workspace #projects .lrow{min-height:78px}body.workspace #projects .revi,body.workspace #projects .mtgi{min-width:44px;min-height:44px}body.workspace .chat-heading button,body.workspace #chatSend,#wsMemo .ws-memo-summary>button,#wsSettingsOpen{min-width:44px;min-height:44px}body.workspace .chat-members summary{min-height:44px}body.workspace #chatInput{font-size:calc(16px*var(--ws-font-scale,1))}.ws-settings-nav nav>button{min-height:44px}}
/* 문서 제목·배율·자료 도구를 같은 한 줄에 둔다. 좁아지면 기존 도구 DOM을 메뉴로 옮긴다. */
#wsDocumentBar{display:flex;align-items:center;gap:9px;min-height:62px;padding:10px 20px;border-bottom:1px solid var(--ws-line);flex-shrink:0;position:relative}
#wsDocumentBar[hidden]{display:none!important}#wsDocumentBar #wsDocHead{padding:0;border:0;min-height:0;min-width:0;flex:1}
#wsDocumentBar #wsDocTitle{font-size:calc(15px*var(--ws-font-scale,1));font-weight:600;letter-spacing:-.2px}#wsDocumentBar #wsBreadcrumb{font-size:calc(10px*var(--ws-font-scale,1));margin-bottom:4px}
.deletion-lock-badge,.ws-project-private{display:inline-flex;align-items:center;gap:3px;flex-shrink:0;white-space:nowrap;font-size:11px;line-height:1.4;color:var(--muted)}.deletion-lock-badge svg,.ws-project-private svg{flex-shrink:0}
.ws-tab-lock{display:inline-flex;align-items:center;flex-shrink:0;color:var(--muted)}
#wsDocumentBar #wsHeaderActions{flex-shrink:0;display:flex;gap:3px}


#wsToolMenu{position:relative;flex-shrink:0}#wsToolMenu>summary{list-style:none;cursor:pointer;width:34px;height:34px;display:flex;align-items:center;justify-content:center;color:var(--muted);border-radius:6px}
#wsToolMenu>summary::-webkit-details-marker,#wsLibraryMenu>summary::-webkit-details-marker{display:none}
#wsToolMenu:not([open])>.ws-tools-popup{display:none}
.ws-tools-popup{position:absolute;right:0;top:calc(100% + 9px);z-index:75;width:260px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 180px);overflow:auto;padding:8px;border:1px solid var(--ws-line);border-radius:7px;background:var(--ws-panel);box-shadow:0 14px 40px #0004}



#wsDocumentBar.compact #wsHeaderActions{flex-direction:column;align-items:stretch;border-bottom:1px solid var(--ws-line);padding-bottom:7px;margin-bottom:7px}
#wsDocumentBar.compact #wsHeaderActions>.gh-icon{display:flex;width:100%;height:auto;min-height:44px;justify-content:flex-start;padding:8px 10px;gap:10px;white-space:normal;text-align:left;font-size:calc(11px*var(--ws-font-scale,1))}
#wsDocumentBar.compact #wsHeaderActions>.gh-icon:after{content:attr(aria-label);line-height:1.5}
#wsDocumentBar summary:focus-visible,#wsLibraryMenu summary:focus-visible{outline:2px solid var(--ws-accent);outline-offset:2px}
/* 시안의 보관함 검색창. 원래 필터·다중 선택은 보관함 더보기에서 같은 핸들러를 쓴다. */
body.workspace #listBar{display:none!important}.ws-library-search{margin:0 12px 14px;flex-shrink:0;display:flex;align-items:center;gap:7px;border:1px solid var(--ws-line);height:34px;border-radius:6px;padding:0 9px;color:var(--muted)}
.ws-library-search svg{width:14px;height:14px;flex-shrink:0}.ws-library-search input{width:100%;min-width:0;border:0;background:none;color:var(--ink);font:inherit;font-size:calc(11px*var(--ws-font-scale,1));outline:none;box-shadow:none;padding:0;height:100%}.ws-library-search:focus-within{border-color:var(--ws-accent)}
.ws-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.ws-library-heading>div{display:flex;align-items:center;gap:2px}
#wsLibraryMenu{position:relative}#wsLibraryMenu>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:30px;height:34px;border-radius:6px;cursor:pointer;color:var(--muted)}#wsLibraryMenu:not([open])>div{display:none}
#wsLibraryMenu>div{position:absolute;right:0;top:calc(100% + 5px);z-index:70;width:170px;border:1px solid var(--ws-line);border-radius:7px;background:var(--ws-panel);padding:5px;box-shadow:0 14px 40px #0004}
#wsLibraryMenu>div>button{display:flex;align-items:center;gap:8px;min-height:34px;width:100%;background:none;color:var(--ink);border:0;border-radius:5px;padding:7px 9px;font:inherit;font-size:calc(11px*var(--ws-font-scale,1));text-align:left;cursor:pointer}
/* 이력 7/19: 가벼운 통계 줄과 체크포인트/나머지 저장본의 독립 경계. */
body.workspace #infoPanel .history-overview{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:calc(10px*var(--ws-font-scale,1));font-weight:400;line-height:1.5;margin:2px 0 14px;padding:0;border:0}
.ws-activity-pip{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.ws-activity-pip:before{content:"";width:4px;height:4px;background:#8ac9ac;border-radius:50%}html[data-theme=light] .ws-activity-pip:before{background:#277b59}
body.workspace #infoPanel .ws-checkpoints h3{font-size:calc(10px*var(--ws-font-scale,1));font-weight:500;margin:0 0 10px;line-height:1.5}.ws-checkpoints h3 svg{width:13px;height:13px}.ws-checkpoints h3 small{font-size:calc(9px*var(--ws-font-scale,1));font-weight:400}
body.workspace #infoPanel .ws-other{display:block;margin-top:20px;border-top:1px solid var(--ws-line);padding-top:12px}
.ws-other>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;color:var(--muted);font-size:calc(10px*var(--ws-font-scale,1));font-weight:400;line-height:1.5;padding:3px 0 12px}
.ws-other>summary::-webkit-details-marker{display:none}.ws-other>summary>svg{width:12px;height:12px;transition:transform .15s}.ws-other[open]>summary>svg{transform:rotate(90deg)}.ws-other>summary>small{margin-left:auto;font-size:calc(10px*var(--ws-font-scale,1));font-weight:400}
body.workspace #infoPanel .history-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;cursor:pointer}body.workspace #infoPanel .history-title-group{grid-column:1;grid-row:1}body.workspace #infoPanel .history-card-head>.m{grid-column:1;grid-row:2}body.workspace #infoPanel .history-title-actions{grid-column:2;grid-row:1/3;align-self:center}body.workspace #infoPanel .history-title-group{flex:1 1 70px;min-width:0}
body.workspace #infoPanel .history-card-head .ws-version-title{font-size:calc(11px*var(--ws-font-scale,1));font-weight:550;line-height:1.5;min-height:20px}
body.workspace #infoPanel .history-card-head .t b{font-size:calc(11px*var(--ws-font-scale,1));font-weight:550;line-height:1.5}
body.workspace #infoPanel .history-card-head .m{font-size:calc(9px*var(--ws-font-scale,1));font-weight:400;line-height:1.5;margin-top:2px}
body.workspace #infoPanel .history-title-actions button{width:27px;min-width:27px;height:31px;min-height:31px}body.workspace #infoPanel .history-title-actions svg{width:14px;height:14px}
body.workspace #infoPanel #ipTabs .ip-tab,body.workspace #infoPanel #ipTabs .ip-tab.on{display:flex;align-items:center;gap:6px;font-size:calc(12px*var(--ws-font-scale,1));font-weight:400}body.workspace #infoPanel .ip-tab>svg{width:14px;height:14px}
body.workspace.glass-hub #infoPanel .ip-tabwrap{display:flex!important;align-items:center;gap:8px;border-bottom:1px solid var(--ws-line)}body.workspace #infoPanel #ipTabs{flex:1;min-width:0;gap:8px;border-bottom:0}#wsHistoryCalendar{flex:none;display:flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:32px;padding:0;border:0;border-radius:5px;background:none;color:var(--ws-muted)}#wsHistoryCalendar[hidden]{display:none!important}#wsHistoryCalendar.filtered{background:var(--ws-selected);color:var(--ws-accent)}#wsHistoryCalendar:disabled{opacity:.45;cursor:default}@media(hover:hover){#wsHistoryCalendar:not(:disabled):hover{background:var(--ws-hover);color:var(--ws-ink)}}@media(max-width:900px){#wsHistoryCalendar{width:44px;min-width:44px;height:44px;min-height:44px}}
.ws-chat-count{display:inline-flex;flex:none;align-items:center;justify-content:center;box-sizing:content-box;width:3ch;border-radius:4px;background:var(--ws-selected);color:var(--ws-accent);font-size:calc(9px*var(--ws-font-scale,1));font-variant-numeric:tabular-nums;padding:0 5px;line-height:17px}.ws-chat-count:empty{visibility:hidden}
body.workspace #infoPanel #ghHistoryToggle{background:transparent;box-shadow:none;color:var(--muted)}
@media(hover:hover){body.workspace #infoPanel .history-card [data-history-menu]{opacity:0;pointer-events:none}body.workspace #infoPanel .history-card:hover [data-history-menu],body.workspace #infoPanel .history-card:focus-within [data-history-menu]{opacity:1;pointer-events:auto}body.workspace #infoPanel #ghHistoryToggle:hover,#wsToolMenu>summary:hover,#wsLibraryMenu>summary:hover,#wsLibraryMenu button:hover{background:var(--ws-hover)}}
@media(max-width:900px){#wsDocumentBar{padding:9px 16px;min-height:62px;gap:6px}#wsToolMenu>summary,#wsLibraryMenu>summary{width:44px;height:44px;min-width:44px;min-height:44px}#wsLibraryMenu>div>button{min-height:44px}.ws-library-search{height:44px}.ws-library-search input{font-size:calc(16px*var(--ws-font-scale,1))}body.workspace #infoPanel .history-title-actions button{width:44px;min-width:44px;height:44px;min-height:44px}body.workspace #infoPanel .history-card-head .ws-version-title{min-height:44px}.ws-other>summary{min-height:44px}body.workspace #wsDocumentBar.compact #wsHeaderActions .gh-icon{display:flex}body.workspace #infoPanel .history-title-group{flex-basis:70px}}
@media(max-width:640px){#wsDocumentBar{padding:12px}#wsDocumentBar #wsDocTitle{font-size:calc(15px*var(--ws-font-scale,1))}#wsDocumentBar #wsBreadcrumb{font-size:calc(10px*var(--ws-font-scale,1))}}
body.workspace #infoPanel .history-timeline .tl:before{display:none}
body.workspace #infoPanel .history-timeline .tlnext{width:100%;margin:0 0 18px;padding:7px 10px;min-height:calc(var(--ws-card-summary) + 16px);display:flex;align-items:center;gap:9px;border-radius:6px}
body.workspace #infoPanel .history-timeline .tlnext:before{display:none}
body.workspace #infoPanel .history-timeline .tlnext>.vb{position:static;flex:none;width:15px;min-width:15px;height:20px;margin:0;border:0;background:none;color:var(--ws-accent);padding:0}
body.workspace #infoPanel .history-timeline .tlnext .lb{font-size:calc(11px*var(--ws-font-scale,1));font-weight:500}body.workspace #infoPanel .history-timeline .tlnext .lb>svg{display:none}
body.workspace #infoPanel .history-timeline .tlnext .sub{font-size:calc(9px*var(--ws-font-scale,1));font-weight:400}body.workspace #infoPanel .history-timeline .tlnext .future{font-size:calc(9px*var(--ws-font-scale,1));font-weight:400}
#wsDocumentBar .gh-icon svg{width:16px;height:16px}body.workspace #wsNoteInput{font-size:calc(11px*var(--ws-font-scale,1))}
@media(any-pointer:coarse){body.workspace #infoPanel .history-card [data-history-menu]{opacity:1;pointer-events:auto}}

/* 파일 형식은 시안의 문서 마크로 표현하고 목록에서는 제목/소속·수정일만 읽게 한다. */
body.workspace #projects .lrow{gap:9px;align-items:center}
body.workspace #projects .ws-file-mark{width:28px;height:32px;flex:0 0 28px;border:1px solid var(--ws-line);border-radius:5px;display:grid;place-items:center;color:var(--muted)}
body.workspace #projects .ws-file-mark svg{width:15px;height:15px}
body.workspace #projects .lrow.sel .ws-file-mark:not(.ws-type-icon){color:var(--ws-accent);background:var(--ws-bg)}
/* 자료 탭: 한 자료/한 탭, 가로 스크롤과 키보드 전환. 기존 미리보기 하나를 재사용한다. */
#wsDocumentTabs{height:40px;min-height:40px;display:flex;align-items:stretch;flex-shrink:0;border-bottom:1px solid var(--ws-line);background:var(--ws-bg);position:relative;z-index:18;min-width:0}
#wsDocumentTabList{display:flex;flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;align-items:stretch;scrollbar-width:none;overscroll-behavior-x:contain}#wsDocumentTabList::-webkit-scrollbar{display:none}
.ws-document-tab{display:flex;align-items:stretch;flex:0 1 180px;min-width:0;max-width:220px;border-right:1px solid var(--ws-line);position:relative;color:var(--muted);background:var(--ws-bg)}
.ws-document-tab.active{color:var(--ink);background:var(--ws-selected)}.ws-document-tab.active:after{content:"";position:absolute;background:var(--ws-accent);pointer-events:none}.ws-document-tab.active>[role=tab]{font-weight:600}
.ws-document-tab>[role=tab]{display:flex;align-items:center;gap:7px;flex:1;min-width:0;width:0;padding:0 9px 0 12px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-size:calc(11px*var(--ws-font-scale,1));text-align:left;cursor:pointer}
.ws-tab-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
#wsDocumentTabs .ws-file-mark{display:inline-flex;align-items:center;justify-content:center;width:14px;height:16px;flex:0 0 14px;color:var(--muted)}#wsDocumentTabs .ws-file-mark svg{width:14px;height:14px}
#wsDocumentTabs .active .ws-file-mark{color:var(--ws-accent)}
.ws-tab-close{display:inline-flex;align-items:center;justify-content:center;flex:none;align-self:center;width:24px;min-width:24px;height:28px;min-height:28px;border:0;border-radius:4px;padding:0;margin:0 4px 0 0;color:var(--muted);background:none;cursor:pointer}.ws-tabs-empty{align-self:center;padding:0 16px;color:var(--muted);font-size:calc(11px*var(--ws-font-scale,1))}
#wsDocumentTabs button:focus-visible{outline:2px solid var(--ws-accent);outline-offset:-3px}
body.workspace.ws-no-document #infoPanel>:not(#wsVersionRail):not(#wsEmptyHistory){display:none!important}
#wsEmptyHistory{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--ws-muted);text-align:center;padding:24px 8px}#wsEmptyHistory[hidden]{display:none!important}#wsEmptyHistory h2{margin:0;color:var(--ws-ink);font-size:14px;font-weight:550}#wsEmptyHistory p{margin:0;font-size:12px;line-height:1.8}#wsVersionRail .gh-icon:disabled{opacity:.35;cursor:default}
@media(hover:hover){.ws-document-tab:not(.active):hover,.ws-tab-close:hover{background:var(--ws-hover)}.ws-tab-close:hover{color:var(--ink)}}
@media(max-width:900px){#wsDocumentTabs{height:44px;min-height:44px}.ws-document-tab{flex:1;max-width:none}.ws-document-tab>[role=tab]{min-height:44px;font-size:calc(12px*var(--ws-font-scale,1))}.ws-tab-close{width:44px;min-width:44px;height:44px;min-height:44px;margin:0;border-radius:0}}

body.workspace.ws-no-document #ghPosition,body.workspace.ws-no-document #ghPageFeedback{display:none!important}

/* 탐색 20 원본: 스마트폴더의 파일 마크와 프로젝트 내부의 간결한 두 줄 목록. */
body.workspace #wsLibraryContent>.ws-folder>summary{height:37px;min-height:37px}
body.workspace #projects .ws-project>summary{padding-right:7px}
body.workspace #projects .ws-project>summary>small{margin-right:0;font-weight:400}
body.workspace #projects .ws-project-menu{margin-left:0}
body.workspace #projects .ws-project-children summary{height:32px;min-height:32px}
body.workspace #projects .ws-project .ws-file-mark{display:none}
body.workspace #projects .ws-project .lrow{min-height:40px;margin:2px 0}
body.workspace #projects .ltop{height:auto;min-height:0;flex-wrap:nowrap}
body.workspace #projects .ltitle{display:block;min-height:0;height:auto;line-height:1.5;text-align:left}
body.workspace #projects .ws-project .lmeta{font-size:calc(9px*var(--ws-font-scale,1));line-height:13.5px;height:13.5px}
body.workspace #projects .ws-file-type,body.workspace #projects .ws-project .pjname{display:none}body.workspace #projects .ws-project .ws-file-type{display:inline}
body.workspace #projects .lrow.sel:before,body.workspace .ws-document-tab.active:after{left:0;top:10px;bottom:10px;width:2px;border-radius:2px}
.ws-project-caption{margin-top:15px;padding:15px 8px 4px;font-weight:550;letter-spacing:.3px}
.ws-project-caption .gh-icon{width:26px;min-width:26px;height:26px;min-height:26px}
@media(max-width:900px){.ws-project-caption .gh-icon{width:44px;min-width:44px;height:44px;min-height:44px}}
body.workspace #sideNav .sn-foot{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;flex-wrap:wrap}
body.workspace #sideNav #snTrash{width:auto;flex:0 1 auto;gap:8px}
body.workspace #sideNav #wsSettingsOpen{width:34px;min-width:34px;height:34px;flex:none;justify-content:center;padding:0}
body.workspace #sideNav #selbar{flex-basis:100%}
body.workspace #sideNav #snTrash>svg,#wsSettingsIcon svg{width:15px;height:15px}
@media(hover:hover){#wsLibraryMenu{opacity:0;pointer-events:none}.ws-library-heading:hover #wsLibraryMenu,.ws-library-heading:focus-within #wsLibraryMenu,#wsLibraryMenu[open]{opacity:1;pointer-events:auto}}
@media(any-pointer:coarse){#wsLibraryMenu,body.workspace .ws-project-menu{opacity:1;pointer-events:auto}}
@media(max-width:900px){body.workspace #wsLibraryContent>.ws-folder>summary,body.workspace #projects .ws-project-children summary{min-height:44px;height:auto}body.workspace #projects .lrow,body.workspace #projects .ws-project .lrow{min-height:55px}body.workspace #projects .lrow .ltitle{min-height:44px;line-height:44px}body.workspace #sideNav #snTrash,body.workspace #sideNav #wsSettingsOpen{min-width:44px;min-height:44px}body.workspace #projects .ws-project-menu{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}}
/* 제목 바는 핵심 공유/발표/검토와 보조 메뉴로 나누고 확대·축소 조작은 노출하지 않는다. */

body.workspace #wsDocumentBar:not(.compact) .ws-tools-popup>[data-ws-secondary]{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:38px;height:auto;padding:8px 10px;border:0;border-radius:5px;background:none;color:var(--ink);font-size:calc(11px*var(--ws-font-scale,1));text-align:left}
#wsDocumentBar:not(.compact) .ws-tools-popup>[data-ws-secondary]:after{content:attr(aria-label);line-height:1.5}
@media(hover:hover){#wsDocumentBar:not(.compact) .ws-tools-popup>[data-ws-secondary]:hover{background:var(--ws-hover)}}
/* 드래그는 선택 자료를 바꾸지 않는다. 선으로 놓을 위치를 표시한다. */
.ws-document-tab>[role=tab]{user-select:none;-webkit-user-select:none;cursor:grab}
.ws-tab-dragging,.ws-tab-dragging *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
.ws-document-tab.drag-source{opacity:.45}
.ws-document-tab.drop-before:before,.ws-document-tab.drop-after:before{content:"";position:absolute;top:4px;bottom:4px;width:2px;background:var(--ws-accent);z-index:2;pointer-events:none}
.ws-document-tab.drop-before:before{left:0}.ws-document-tab.drop-after:before{right:0}



/* 승인 시안 검수: 레거시 타이포·색상 상속을 패널 안에서 차단한다. */
body.workspace #projects .ltitle{color:var(--ink);letter-spacing:normal}
/* 마우스 조작 뒤에도 DOM 초점은 유지하고 키보드 이동에서만 테두리를 표시한다. */
:where(body[data-ws-input="pointer"]) :is(button,a[href],summary,[role=button],[tabindex]:not(input,textarea,select)):focus{outline:none!important}
body.workspace #wsDocumentTabs button:focus-visible{outline-offset:-3px}
.ws-search-empty{padding:12px 9px 15px;color:var(--muted)}
.ws-search-empty p{font-size:calc(11px*var(--ws-font-scale,1));line-height:1.7;margin:0 0 5px;color:var(--ink)}
.ws-search-empty small{display:block;font-size:calc(10px*var(--ws-font-scale,1));line-height:1.7}
.ws-search-empty button{display:inline-flex;align-items:center;margin-top:8px;min-height:32px;padding:4px 0;border:0;background:none;color:var(--ws-accent);font:inherit;font-size:calc(11px*var(--ws-font-scale,1));cursor:pointer}
@media(max-width:900px){.ws-search-empty button,.ws-empty button{min-height:44px;min-width:44px}}

/* 구형 레이아웃의 좁은 오른쪽 여백을 복원하고 패널 내부 스크롤 조작은 유지한다. */
body.workspace #hubWrap:not(.gh-history-closed) #infoPanel{padding-inline:16px}
body.workspace :is(#sideNav,#infoPanel),body.workspace :is(#sideNav,#infoPanel) *{scrollbar-width:none}
body.workspace :is(#sideNav,#infoPanel)::-webkit-scrollbar,body.workspace :is(#sideNav,#infoPanel) *::-webkit-scrollbar{display:none;width:0;height:0}
/* 승인01 패널 정렬형: 동일 탭·도구 DOM을 한 줄에 모아 기존 실행 경로를 유지한다. */
body.workspace>header{padding:0 6px 0 0;gap:0;overflow:visible}
body.workspace>header .searchwrap,body.workspace .ws-library-search{display:none!important}
#wsTopBrand[hidden]{display:none!important}
body.workspace #wsTopBrand{display:flex;align-items:center;gap:10px;flex:0 0 var(--ws-brand-width,304px);width:var(--ws-brand-width,304px);height:100%;padding:0 14px 0 16px;border-right:1px solid var(--ws-line);min-width:0}
body.workspace #wsTopBrand .brand{flex:1;min-width:0;gap:8px;white-space:nowrap}
body.workspace #wsTopBrand .wm{font-size:calc(14px*var(--ws-font-scale,1));letter-spacing:0}
body.workspace #wsTopBrand .blogo{width:23px;height:23px}
body.workspace #wsTopBrand #btnNew{display:flex;align-items:center;justify-content:center;width:34px;min-width:34px;min-height:34px;padding:0;border:0;background:transparent;color:var(--muted);box-shadow:none}
body.workspace #wsTopBrand #navToggle{display:none}
body.workspace>header #wsDocumentTabs{flex:1;align-self:stretch;height:var(--ws-top);min-height:var(--ws-top);border:0;background:none;padding-left:4px;z-index:auto}
body.workspace>header .ws-document-tab{min-width:min(120px,100%);flex:0 1 200px;max-width:200px;background:transparent}
body.workspace>header .ws-document-tab.active{background:var(--ws-selected)}
@media(width > 900px){body.workspace>header #wsDocumentTabs{max-width:var(--ws-tabs-width,100%);margin-right:auto;padding-left:0}}
body.workspace>header #wsDocumentBar{flex:none;height:var(--ws-top);min-height:var(--ws-top);border:0;padding:0;margin-left:12px;gap:2px;z-index:auto}
body.workspace>header #wsDocumentBar[hidden]{display:none!important}
body.workspace>header #wsDocHead{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}


body.workspace>header #wsHeaderActions{gap:2px}
body.workspace>header #btnInbox{display:flex;align-items:center;justify-content:center;gap:0;width:44px;min-width:44px;height:44px;padding:0;margin-left:9px;border:0;background:transparent;box-shadow:none;flex:none}
body.workspace>header #userWrap{flex:none;margin-left:8px}
body.workspace>header #wsToolMenu>.ws-tools-popup{top:calc(100% + 9px)}


body.workspace>header #wsDocumentBar.compact .ws-doc-actions{width:100%;display:flex}
body.workspace>header #wsDocumentBar.compact .ws-tools-popup>[data-ws-secondary]{display:flex;align-items:center;justify-content:flex-start;width:100%;height:auto;min-height:38px;gap:9px;padding:8px 10px;text-align:left;font-size:calc(11px*var(--ws-font-scale,1))}
body.workspace>header #wsDocumentBar.compact .ws-tools-popup>[data-ws-secondary]:after{content:attr(aria-label);display:inline;position:static;color:inherit;background:none;border:0;box-shadow:none;padding:0;opacity:1;transform:none;white-space:normal;font:inherit}
body.workspace #projects .lmeta{height:calc(15px*var(--ws-font-scale,1));line-height:1.5}
body.workspace #projects .ws-project .lmeta{height:calc(13.5px*var(--ws-font-scale,1));line-height:1.5}
@media(max-width:900px){
 body.workspace>header{padding:0 6px;gap:2px}
 body.workspace #wsTopBrand{flex:0 0 44px;width:44px;padding:0;border:0;gap:0}
 body.workspace #wsTopBrand .brand{display:none}
 body.workspace #wsTopBrand #navToggle{display:flex;width:44px;min-width:44px;height:44px;min-height:44px;margin:0}
 body.workspace>header #wsDocumentBar{margin:0;gap:0}
 body.workspace>header #wsDocumentTabs{padding:0}
 body.workspace>header .ws-document-tab{flex:0 1 200px;min-width:min(140px,100%);max-width:200px;border:0}
 body.workspace>header .ws-tab-close{display:inline-flex}
 body.workspace>header .ws-document-tab>[role=tab]{padding:0 5px;gap:5px}
 body.workspace>header #btnInbox{display:none}
 body.workspace>header #userWrap{margin-left:0}
 body.workspace>header #avatarBtn,body.workspace>header #wsToolMenu>summary{width:44px;min-width:44px;height:44px;min-height:44px}
 body.workspace>header #wsToolMenu>.ws-tools-popup{position:fixed;top:calc(var(--ws-top) + 8px);left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 90px);overflow:auto;scrollbar-width:none}
 body.workspace>header #wsDocumentBar.compact .ws-tools-popup>[data-ws-secondary]{min-height:44px}
}
body.workspace{--ws-top:44px;--ws-card-summary:max(36px,calc(36px * var(--ws-font-scale,1)))}
body.workspace>header #avatarBtn,body.workspace>header #btnInbox{width:34px;min-width:34px;height:34px;min-height:34px}
@media(max-width:900px){body.workspace>header #avatarBtn,body.workspace>header #btnInbox{width:44px;min-width:44px;height:44px;min-height:44px}}
@media(max-width:900px){body.workspace{--ws-top:48px;--ws-card-summary:44px}}

.ws-mobile-inbox{display:none}
@media(max-width:900px){body.workspace .ws-tools-popup>.ws-mobile-inbox{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:8px 10px;gap:9px;border:0;background:none;color:var(--ink);font-size:calc(11px*var(--ws-font-scale,1));text-align:left}}

body.workspace:has(#viewMain:not(.active))>header #wsDocumentTabs,body.workspace:has(#viewMain:not(.active))>header #wsDocumentBar{display:none}
body.workspace:has(#viewMain:not(.active))>header #btnInbox{margin-left:auto}
@media(max-width:900px){body.workspace #wsAddSlot #btnNew{min-width:44px;width:44px;min-height:44px;height:44px}}
body.workspace #wsTopBrand #morpho{display:none!important}

/* 개인 조건 보관함: 고정 스마트폴더와 구분하고 원래 목록/파일 조작을 재사용한다. */
.ws-library-save-status{margin:0;padding:0 8px;color:var(--muted);font-size:calc(10px*var(--ws-font-scale,1));line-height:1.6;overflow-wrap:anywhere}.ws-library-save-status:empty{display:none}
body.workspace #projects [data-library-id]>summary{position:relative;gap:7px}
body.workspace #projects [data-library-id]>summary>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.workspace #projects [data-library-id]>summary>small{flex:none}
.ws-library-menu{display:inline-flex;align-items:center;justify-content:center;width:24px;min-width:24px;min-height:28px;padding:0;flex:none;border:0;border-radius:4px;color:var(--muted);background:none;cursor:pointer}
.ws-library-actions [data-action=up]>svg{transform:rotate(90deg)}
#wsLibraryDialog{width:520px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;color:var(--ink);font:inherit}
#wsLibraryForm{display:flex;flex-direction:column;max-height:calc(100dvh - 26px);min-height:0}
#wsLibraryDialog .dhead,#wsLibraryDialog .dfoot{flex:none}
#wsLibraryDialog .dhead{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 20px;border-bottom:1px solid var(--ws-line)}
#wsLibraryDialog .dhead h2{margin:0;font-size:calc(14px*var(--ws-font-scale,1));font-weight:600;line-height:1.5}
#wsLibraryDialog .dhead .gh-icon{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border-radius:6px;color:var(--muted)}
#wsLibraryDialog .dbody{display:flex;flex-direction:column;gap:16px;min-height:0;max-height:none;overflow:auto;padding:16px 20px}
#wsLibraryFields{display:flex;flex-direction:column;gap:16px;min-width:0;margin:0;padding:0;border:0}
.ws-library-name{display:flex;flex-direction:column;gap:6px;margin:0;color:var(--ink);font-size:calc(12px*var(--ws-font-scale,1));font-weight:550;line-height:1.5}
#wsLibraryName{width:100%;min-width:0;min-height:40px;padding:9px 10px;border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-raised);color:var(--ink);font:inherit;font-weight:400}
.ws-library-choices{min-width:0;border:0;padding:0;margin:0}
.ws-library-choices legend{padding:0;color:var(--ink);font-size:calc(12px*var(--ws-font-scale,1));font-weight:550;line-height:1.5}
.ws-library-choices p,.ws-library-help{font-size:calc(11px*var(--ws-font-scale,1));font-weight:400;line-height:1.6;color:var(--muted);margin:4px 0 8px}
.ws-library-choices>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px}
#wsLibraryProjects{grid-template-columns:repeat(2,minmax(0,1fr));max-height:156px;overflow:auto;scrollbar-width:none}
.ws-library-choices label{display:flex;align-items:center;min-width:0;min-height:36px;gap:8px;margin:0;padding:6px 8px;border-radius:5px;color:var(--ink);font-size:calc(12px*var(--ws-font-scale,1));font-weight:400;line-height:1.5;overflow-wrap:anywhere;cursor:pointer}
.ws-library-choices label:has(:checked){background:var(--ws-selected)}
#wsLibraryDialog input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:none;margin:0;padding:0;accent-color:var(--ws-accent)}
.ws-library-summary{padding-top:12px;border-top:1px solid var(--ws-line)}
.ws-library-preview{padding:0;margin:0;color:var(--ws-accent);font-size:calc(12px*var(--ws-font-scale,1));line-height:1.5}
.ws-library-help{margin:4px 0 0}
#wsLibraryError{margin:0;font-size:calc(12px*var(--ws-font-scale,1));line-height:1.6;color:var(--ink);overflow-wrap:anywhere}#wsLibraryError:empty{display:none}
#wsLibraryDialog .dfoot{gap:8px;padding:12px 20px;border-top:1px solid var(--ws-line)}
#wsLibraryDialog .dfoot .hbtn{justify-content:center;min-width:72px;min-height:36px;padding:7px 16px;border-radius:6px;font-size:calc(12px*var(--ws-font-scale,1));font-weight:550;line-height:20px}
#wsLibraryDialog .dfoot .hbtn:not(.primary){background:transparent;border:1px solid var(--ws-line);color:var(--ink)}
@media(hover:hover){.ws-library-menu{opacity:0}.ws-folder>summary:hover .ws-library-menu,.ws-folder:focus-within .ws-library-menu{opacity:1}.ws-library-menu:hover{background:var(--ws-hover)}}
@media(max-width:900px){.ws-library-menu{width:44px;min-width:44px;min-height:44px}.ws-library-menu{opacity:1}body.workspace #projects [data-library-id]>summary{min-height:44px;height:auto}#wsLibraryDialog .dhead .gh-icon{width:44px;min-width:44px;height:44px;min-height:44px}#wsLibraryDialog .dfoot .hbtn,.ws-library-choices label,#wsLibraryName{min-height:44px}}
@media(max-width:640px){#wsLibraryDialog .dhead{padding:6px 12px 6px 16px}#wsLibraryDialog .dbody{padding:16px}#wsLibraryDialog .dfoot{padding:12px 16px max(12px,env(safe-area-inset-bottom))}#wsLibraryName{font-size:16px}.ws-library-choices>div{grid-template-columns:repeat(2,minmax(0,1fr))}#wsLibraryProjects{max-height:180px}}
@media(any-pointer:coarse){.ws-library-menu{opacity:1}}

/* 카드 요약은 같은 밀도를 쓰고, 실제 기록 본문만 필요할 때 늘어난다. */
@media(max-width:900px){
 body.workspace #infoPanel .history-card,body.workspace #infoPanel .history-card.history-folded:not(.cur),body.workspace #infoPanel .history-timeline .tlnext{min-height:60px}
 body.workspace #infoPanel .history-card-head{min-height:44px;grid-template-rows:minmax(24px,1fr) auto}
 body.workspace #infoPanel .history-title-group{grid-row:1/3;align-self:stretch}
 body.workspace #infoPanel .history-card-head .ws-version-title{min-height:44px;height:100%;padding-bottom:18px}
 body.workspace #infoPanel .history-card-head>.m{align-self:end;pointer-events:none}
 body.workspace #infoPanel .ws-version-badge{top:calc(7px + (var(--ws-card-summary) - 31px)/2)}
}

/* 상위 메뉴와 목록은 같은 오른쪽 조작·숫자 열을 공유한다. */
body.workspace{--ws-nav-action:28px;--ws-nav-end:4px}
body.workspace #sideNav{gap:0}
body.workspace :is(.vp-ad-entry,#vpMeetingEntry,.ws-library-heading){min-height:40px;height:40px;margin:0 10px 2px;padding:0;border:0;border-radius:5px;flex-shrink:0}
body.workspace :is(.vp-ad-entry,#vpMeetingListOpen,#wsLibraryToggle){display:flex;align-items:center;gap:8px;min-width:0;min-height:40px;height:40px;border:0;border-radius:5px;background:none;color:var(--ws-ink);font:inherit;font-size:calc(13px*var(--ws-font-scale,1));font-weight:550;text-align:left;cursor:pointer}
body.workspace #vpAgentDashboardOpen{padding:0 var(--ws-nav-end) 0 30px}
body.workspace :is(#vpMeetingListOpen,#wsLibraryToggle){flex:1;padding:0 10px}
body.workspace :is(.vp-ad-entry,#vpMeetingListOpen,#wsLibraryToggle)>svg{width:16px;height:16px;flex:none;color:var(--ws-muted)}
body.workspace .vp-ad-entry>small{display:grid;place-items:center;flex:none;width:var(--ws-nav-action);margin:0;font-size:calc(11px*var(--ws-font-scale,1));font-weight:400;color:var(--ws-muted);font-variant-numeric:tabular-nums}
body.workspace .vp-ad-entry.has-attention>small{color:var(--ws-accent);font-weight:650}
body.workspace #vpMeetingEntry{gap:0;padding-right:var(--ws-nav-end)}
body.workspace #vpMeetingCreate,body.workspace #wsAddSlot>[data-library-add],body.workspace #wsLibraryMenu>summary{display:inline-flex;align-items:center;justify-content:center;flex:0 0 var(--ws-nav-action);width:var(--ws-nav-action);min-width:var(--ws-nav-action);height:28px;min-height:28px;padding:0;border:0;border-radius:4px;background:none;color:var(--ws-muted)}
body.workspace #vpMeetingCreate>svg,body.workspace #wsAddSlot>[data-library-add]>svg,body.workspace #wsLibraryMenu>summary>svg{width:16px;height:16px}
body.workspace #sideNav .ws-library-heading{gap:0;padding-right:var(--ws-nav-end);margin-bottom:6px}
body.workspace #wsLibraryToggle{padding-right:0}body.workspace #vpMeetingListOpen{padding-left:30px}
body.workspace #wsLibraryToggle>.ws-library-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-library-chevron{display:grid;place-items:center;flex:none;width:12px;color:var(--ws-muted)}
.ws-library-chevron>svg{width:12px;height:12px}
body.workspace #wsAddSlot{gap:0}
body.workspace #wsLibraryContent[hidden],body.workspace #sideNav.ws-library-collapsed>.ws-library-search{display:none!important}
body.workspace #sideNav.ws-library-collapsed>.sn-foot{margin-top:auto}
body.workspace #wsLibraryToggle:focus-visible{outline:2px solid var(--ws-accent);outline-offset:-2px}
@media(hover:hover){body.workspace #wsLibraryToggle:hover{background:var(--ws-hover)}}
body.workspace #wsTopBrand{gap:8px;padding:0 10px}
body.workspace #wsTopBrand .gh-rail-toggle{display:inline-flex;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:5px}
body.workspace #wsTopBrand .blogo{width:19px;height:19px}
body.workspace #wsTopBrand #navToggle{display:none!important}
body.workspace #sideNav #projects :is(.ws-folder,.ws-project)>summary{position:relative;padding-right:calc(var(--ws-nav-action) + var(--ws-nav-end))}
body.workspace #sideNav #projects :is(.ws-folder,.ws-project)>summary>small{position:absolute;right:var(--ws-nav-end);display:grid;place-items:center;flex:none;width:var(--ws-nav-action);margin:0;text-align:center;font-variant-numeric:tabular-nums}
body.workspace #sideNav #projects :is(.ws-project-menu,.ws-folder-add,.ws-library-menu){position:absolute;right:calc(var(--ws-nav-end) + var(--ws-nav-action));top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:var(--ws-nav-action)!important;min-width:var(--ws-nav-action)!important;height:var(--ws-nav-action)!important;min-height:var(--ws-nav-action)!important;margin:0;padding:0}
body.workspace #sideNav #projects .ws-project>summary:has(>.ws-project-menu),body.workspace #sideNav #projects .ws-folder>summary:has(>.ws-folder-add),body.workspace #sideNav #projects [data-library-id]>summary{padding-right:calc(2*var(--ws-nav-action) + var(--ws-nav-end))}
body.workspace #sideNav #projects .ws-project>summary:has(>.ws-project-private){padding-right:calc(3*var(--ws-nav-action) + var(--ws-nav-end))}
body.workspace #sideNav #projects .ws-project>summary>.ws-project-private{position:absolute;right:calc(var(--ws-nav-end) + 2*var(--ws-nav-action));top:50%;transform:translateY(-50%);display:grid;place-items:center;width:var(--ws-nav-action);height:var(--ws-nav-action);margin:0;padding:0}
body.workspace #sideNav #projects [data-library-id]>summary>span{padding-right:0}
body.workspace #sideNav .ws-project-caption{padding-right:var(--ws-nav-end)}
body.workspace #sideNav .ws-project-caption>.gh-icon{width:var(--ws-nav-action);min-width:var(--ws-nav-action);height:var(--ws-nav-action);min-height:var(--ws-nav-action);padding:0}
#wsLibraryRail{display:none}
.ws-library-shortcut{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:5px;background:none;color:var(--ws-muted);cursor:pointer}
.ws-library-shortcut>svg{width:18px;height:18px;flex:none}
.ws-library-shortcut>small{position:absolute;top:2px;right:1px;display:grid;place-items:center;min-width:14px;height:14px;padding:0 2px;border-radius:4px;background:var(--ws-panel);color:var(--ws-muted);font:inherit;font-size:9px;line-height:1;font-variant-numeric:tabular-nums;pointer-events:none}
.ws-library-shortcut>small:empty{display:none}
.ws-library-shortcut[aria-current=location]{background:var(--ws-selected);color:var(--ws-accent)}
.ws-library-shortcut>span{position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);z-index:30;width:max-content;max-width:220px;padding:6px 9px;border:1px solid var(--ws-line);border-radius:5px;background:var(--ws-panel);color:var(--ws-ink);font:inherit;font-size:calc(11px*var(--ws-font-scale,1));line-height:1.5;white-space:nowrap;opacity:0;pointer-events:none}
.ws-library-shortcut:focus-visible{outline:2px solid var(--ws-accent);outline-offset:2px}.ws-library-shortcut:focus-visible>span{opacity:1}
@media(hover:hover){.ws-library-shortcut:hover{background:var(--ws-hover);color:var(--ws-ink)}.ws-library-shortcut:hover>span{opacity:1}}
@media(width > 900px){body.workspace.nav-rail #sideNav{overflow:visible;contain:none}body.workspace.nav-rail #wsLibraryRail{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;gap:4px;padding:8px 6px}body.workspace.nav-rail #wsLibraryRail>[data-ws-library-shortcut]{display:none}#wsLibraryRail>.vp-ad-shortcut{order:0}#vpMeetingShortcut{order:1}#wsLibraryExpand{order:2}}
@media(width > 900px){body.workspace.nav-rail #sideNav :is(#vpAgentDashboardOpen,#vpMeetingEntry){display:none!important}body.workspace.nav-rail #wsTopBrand{flex:0 0 56px;width:56px;min-width:56px;padding:0 6px;gap:0;justify-content:center}body.workspace.nav-rail #wsTopBrand #homeLink{display:none}body.workspace.nav-rail #wsTopBrand .gh-rail-toggle{width:44px;min-width:44px;height:44px;min-height:44px}}
body.workspace #wsAddSlot{display:flex;align-items:center}
body.workspace.nav-rail #sideNav{padding:0;align-items:stretch}.ws-library-menu{position:absolute;right:26px;top:4px}
body.workspace #projects [data-library-id]>summary>span{flex:1;min-width:0;padding-right:28px}body.workspace #projects [data-library-id]>summary>small{margin-left:auto;width:16px;text-align:right}
@media(width > 900px){body.workspace.nav-rail #hubWrap{grid-template-columns:56px minmax(0,1fr) var(--col-hist,420px)}body.workspace.nav-rail #hubWrap.gh-history-closed{grid-template-columns:56px minmax(0,1fr) 56px}body.workspace.nav-rail #sideNav .sn-scroll,body.workspace.nav-rail .ws-library-heading,body.workspace.nav-rail #wsAddSlot,body.workspace.nav-rail #selbar{display:none!important}body.workspace.nav-rail #sideNav .sn-foot{margin-top:auto;flex-direction:row;align-items:flex-end;justify-content:center;padding:0 6px;gap:0}body.workspace.nav-rail #sideNav .sn-foot>button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;justify-content:center;border-radius:5px;background:none;color:var(--muted)}body.workspace.nav-rail #wsTopBrand{flex:0 0 56px;width:56px;padding:0 6px;border-right:1px solid var(--ws-line)}body.workspace.nav-rail #wsTopBrand .brand{flex:1}body.workspace.nav-rail>header{padding-left:0}body.workspace.nav-rail #sideNav .sn-lbl{display:none}}
@media(max-width:900px){body.workspace{--ws-nav-action:44px;--ws-nav-end:0px}body.workspace :is(.vp-ad-entry,#vpMeetingEntry,.ws-library-heading,#vpMeetingListOpen,#wsLibraryToggle){height:44px;min-height:44px}body.workspace #vpMeetingCreate,body.workspace #wsAddSlot>[data-library-add],body.workspace #wsLibraryMenu>summary{height:44px;min-height:44px}body.workspace #wsTopBrand{flex:0 0 82px;width:82px;padding:0 6px;gap:6px}body.workspace #wsTopBrand .brand{display:flex;flex:none}body.workspace #wsTopBrand .wm{display:none}body.workspace #wsTopBrand .gh-rail-toggle{display:none}body.workspace #wsTopBrand #navToggle{display:inline-flex!important}body.workspace.nav-rail #sideNav .sn-foot{margin:0;padding:0 12px;flex-direction:row}body.workspace.nav-rail #sideNav #snTrash .sn-lbl{display:inline}}

/* 프로젝트 생성: 기본 입력에 집중하고 선택 항목은 필요할 때 연다. */
#dlgProject{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--hair-in);border-radius:12px;overflow:hidden;background:var(--s1);color:var(--ink)}
#dlgProject[open]{display:flex;flex-direction:column}#dlgProject .dhead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--hair-in)}
#dlgProject .dhead h2{margin:0;font-size:calc(16px*var(--ws-font-scale,1));font-weight:600;letter-spacing:-.02em}#dlgProject .dhead .gh-icon{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;background:none;border-radius:5px;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;flex:none}
#dlgProject .dbody{padding:20px;overflow-y:auto;min-height:0;scrollbar-width:none}#dlgProject .dbody::-webkit-scrollbar{display:none}:is(#dlgProject,#dlgWorkspaceCreate,#dlgWorkspaceInvites,#dlgFreeStorage) .np-field{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;padding:0;border:0;min-width:0}
:is(#dlgProject,#dlgWorkspaceCreate,#dlgWorkspaceInvites,#dlgFreeStorage) label,:is(#dlgProject,#dlgWorkspaceCreate,#dlgWorkspaceInvites,#dlgFreeStorage) legend{margin:0;padding:0;font-size:calc(12px*var(--ws-font-scale,1));font-weight:500;line-height:1.5;color:var(--ink)}:is(#dlgProject,#dlgWorkspaceCreate,#dlgWorkspaceInvites,#dlgFreeStorage) legend{margin-bottom:8px}
:is(#dlgProject,#dlgWorkspaceCreate,#dlgWorkspaceInvites,#dlgFreeStorage) input:not([type=checkbox]):not([type=color]),:is(#dlgProject,#dlgWorkspaceCreate,#dlgWorkspaceInvites,#dlgFreeStorage) textarea{width:100%;margin:0;padding:10px 12px;min-height:40px;border:1px solid var(--hair-in);border-radius:6px;background:var(--s2);color:var(--ink);font:inherit;font-size:calc(13px*var(--ws-font-scale,1));box-shadow:none}:is(#dlgProject,#dlgWorkspaceCreate,#dlgWorkspaceInvites,#dlgFreeStorage) textarea{resize:vertical;line-height:1.6}
#dlgProject #npColors{display:flex;gap:6px;align-items:center;flex-wrap:wrap}#dlgProject #npColors .swb{width:30px;height:30px;min-width:30px;min-height:30px;margin:0;border-radius:6px;padding:0;border:2px solid transparent;font-size:calc(11px*var(--ws-font-scale,1));cursor:pointer}#dlgProject #npColors .swb.auto{width:42px;background:var(--s2);color:var(--muted)}#dlgProject #npColors .swb.on{border-color:var(--ink);box-shadow:0 0 0 2px var(--s1) inset}
#dlgProject #npPickInput{position:absolute;width:0;height:0;opacity:0;border:0;padding:0}#dlgProject .np-private{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;margin:0 0 18px}#dlgProject .np-private>span:first-child{display:flex;flex-direction:column;gap:3px}#dlgProject .np-private b{font-size:calc(13px*var(--ws-font-scale,1));font-weight:500}#dlgProject small{font-size:calc(11px*var(--ws-font-scale,1));color:var(--muted);line-height:1.6}
#dlgProject #npAdvanced{border-top:1px solid var(--hair-in);padding-top:2px}#dlgProject #npAdvanced summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:36px;cursor:pointer;font-size:calc(12px*var(--ws-font-scale,1));color:var(--muted)}#dlgProject #npAdvanced summary::-webkit-details-marker{display:none}#dlgProject #npAdvanced[open] summary svg{transform:rotate(180deg)}#dlgProject .np-advanced-body{padding-top:12px}#dlgProject .np-advanced-body .np-field:last-child{margin-bottom:0}
#dlgProject .dfoot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--hair-in)}#dlgProject .dfoot .hbtn{display:inline-flex;justify-content:center;align-items:center;min-width:68px;height:36px;min-height:36px;padding:0 14px;margin:0;border-radius:6px;font-size:calc(12px*var(--ws-font-scale,1));line-height:1;box-shadow:none}#dlgProject #npDelete{margin-right:auto;color:var(--red-text);min-width:0;padding-left:0;padding-right:0;background:none;border-color:transparent}#dlgProject :is(button,input,textarea,summary):focus-visible{outline:2px solid var(--acc-text);outline-offset:2px}
@media(hover:hover){#dlgProject .dhead .gh-icon:hover{background:var(--s3)}#dlgProject #npAdvanced summary:hover{color:var(--ink)}}
@media(max-width:900px){#dlgProject .dhead .gh-icon,#dlgProject .dfoot .hbtn,#dlgProject #npColors .swb,#dlgProject #npAdvanced summary{min-width:44px;min-height:44px}#dlgProject .np-private{min-height:44px}#dlgProject input:not([type=checkbox]):not([type=color]){min-height:44px}}
@media(max-width:640px){#dlgProject{max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));width:calc(100vw - 24px)}#dlgProject .dhead{padding:12px 16px}#dlgProject .dbody{padding:16px}#dlgProject .dfoot{padding:12px 16px}#dlgProject #npColors{gap:4px}}

#dlgSettings.ws-settings .gh-select-button{min-height:44px;height:44px;border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-raised);color:var(--ws-ink);font-weight:400;text-align:left;box-shadow:none;padding:0 12px;justify-content:space-between}#dlgSettings.ws-settings .setrow .field{min-width:0}#dlgSettings.ws-settings .ws-font-sample{border-radius:6px}
@media(max-width:900px){#dlgSettings.ws-settings .gh-select-button{min-height:44px;height:44px}}

/* 좁은 화면에서는 설정 항목을 한 줄로 옮겨 본문 너비를 확보한다. */
@media(max-width:640px){#dlgSettings.ws-settings{grid-template-columns:minmax(0,1fr);grid-template-rows:106px minmax(0,1fr)}#dlgSettings.ws-settings .ws-settings-nav{display:grid;grid-template-columns:128px minmax(0,1fr);grid-template-rows:56px 50px;padding:0;border-right:0;border-bottom:1px solid var(--ws-line);overflow:hidden}#dlgSettings.ws-settings #wsSettingsBack{height:56px;min-width:0;padding:0 10px;gap:5px;font-size:calc(10px*var(--ws-font-scale,1))}#dlgSettings.ws-settings .ws-settings-search{margin:6px 12px 6px 0;width:auto}#dlgSettings.ws-settings .ws-settings-nav nav{grid-column:1/-1;display:flex;align-items:center;gap:4px;min-width:0;padding:0 8px;overflow-x:auto;scrollbar-width:none}#dlgSettings.ws-settings .ws-settings-group:not([hidden]){display:contents}#dlgSettings.ws-settings .ws-settings-group>small{display:none}#dlgSettings.ws-settings .ws-settings-nav nav button{width:auto;flex:none;padding:0 12px;margin:0;white-space:nowrap}#dlgSettings.ws-settings .ws-settings-main{padding:24px 16px}#dlgSettings.ws-settings .ws-settings-group button{min-height:44px}#dlgSettings.ws-settings .ws-settings-search input{font-size:16px}#dlgSettings.ws-settings #wsSettingsSearchStatus{white-space:nowrap;margin:0}}

@media(width > 900px){body.workspace.nav-rail #sideNav .sn-foot>button#wsSettingsOpen,body.workspace.nav-rail #sideNav .sn-foot>button#snTrash{width:44px;min-width:44px;height:44px;min-height:44px;padding:0}}

#dlgSettings.ws-settings .dhead:after{display:none}#dlgSettings.ws-settings #wsAccountLogin{margin-top:16px}

@media(width > 900px){.ws-library-menu{width:30px;min-width:30px;height:32px;min-height:32px;top:2px}}


/* 작업 패널은 미리보기 높이를 바꾸지 않고 상태 바 위에 겹쳐 열린다. */
body.workspace #ghPreview{container:ws-preview/inline-size}
body.workspace .ws-preview-status{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;min-height:44px;padding:5px 12px;border-top:1px solid var(--ws-line);background:var(--ws-bg)}
.ws-version-state{display:flex;align-items:center;gap:8px;min-width:0}.ws-version-state #wsVersionStatus{min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-version-state #wsCurrentVersion{flex:none;font-size:calc(10px*var(--ws-font-scale,1));min-height:32px;padding:0 4px}
#wsDocumentActions{display:flex;align-items:center;justify-content:center;gap:2px;min-width:0}#wsDocumentActions>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 8px;border:0;border-radius:5px;background:none;color:var(--ws-muted);font:inherit;font-size:calc(11px*var(--ws-font-scale,1));white-space:nowrap;cursor:pointer}#wsDocumentActions>button>svg{width:14px;height:14px;flex:none}#wsDocumentActions>button[aria-expanded=true]{background:var(--ws-selected);color:var(--ws-accent)}
#wsActionPanel{position:absolute;left:0;right:var(--ws-rail-inset,0px);bottom:var(--ws-status-height,44px);z-index:15;display:flex;flex-direction:column;height:var(--ws-action-height,280px);min-height:116px;max-height:calc(100% - var(--ws-status-height,44px) - 40px);padding:0;background:var(--ws-panel);border-top:1px solid var(--ws-line);box-shadow:0-8px 24px #0001;min-width:0}
#wsActionHeader{display:flex;align-items:center;gap:9px;min-height:40px;flex:none;padding:0 16px}#wsActionTitle{font-size:calc(12px*var(--ws-font-scale,1));font-weight:600;line-height:1.5;margin:0;outline:none}#wsActionHeader>#wsNotePage{font-size:calc(10px*var(--ws-font-scale,1));color:var(--ws-muted)}#wsActionClose{margin-left:auto;flex:none;width:32px;min-width:32px;height:32px;min-height:32px;background:none;border:0;color:var(--ws-muted)}.ws-note-recovery{display:flex;align-items:center;gap:5px}.ws-note-recovery>button{min-height:32px;padding:0 6px;font:inherit;font-size:calc(10px*var(--ws-font-scale,1));border:0;border-radius:4px;background:none;color:var(--ws-accent);cursor:pointer}
#wsActionBody{flex:1;min-height:0;overflow:hidden}#wsActionBody>section{height:100%;min-width:0;min-height:0}#wsActionBody>#wsNotes{display:flex;flex-direction:column;position:static;height:100%;padding:3px 16px 12px;border:0;background:none}body.workspace #wsActionPanel #wsNoteInput{font-size:calc(12px*var(--ws-font-scale,1));padding:0;outline-offset:0}#wsActionPanel #wsNoteStatus{padding:6px 0 0}
#wsActionPanel #wsNoteGrip{position:absolute;left:0;right:0;top:-4px;height:8px;cursor:ns-resize;touch-action:none}#wsActionPanel #wsNoteGrip:before{left:calc(50% - 16px);top:3px;width:32px;height:2px}
#wsActionBody dialog.ws-inline-info,#wsActionBody dialog.ws-inline-edit{position:static;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:none;overflow:hidden;color:var(--ink)}
#wsActionBody dialog.ws-inline-info[open],#wsActionBody dialog.ws-inline-edit[open]{display:flex;flex-direction:column}#wsActionBody dialog.ws-inline-info:not([open]),#wsActionBody dialog.ws-inline-edit:not([open]){display:none}
#wsActionBody .ws-inline-info>.dhead{display:none}#wsActionBody .ws-inline-edit>.dhead{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#wsActionBody :is(.ws-inline-info,.ws-inline-edit)>.dbody{flex:1;min-height:0;overflow:auto;scrollbar-width:none;padding:0 16px 12px;font-size:calc(12px*var(--ws-font-scale,1))}#wsActionBody :is(.ws-inline-info,.ws-inline-edit)>.dbody::-webkit-scrollbar{display:none}#wsActionBody :is(.ws-inline-info,.ws-inline-edit)>.dfoot{display:flex;align-items:center;justify-content:flex-end;flex:none;padding:8px 16px;gap:8px;border-top:1px solid var(--ws-line)}#wsActionBody .dfoot .hbtn{display:inline-flex;align-items:center;justify-content:center;line-height:1;text-align:center;gap:6px;height:32px;min-height:32px;min-width:68px;margin:0;padding:0 12px;font-size:calc(11px*var(--ws-font-scale,1));border-radius:5px;box-shadow:none}
#wsActionBody .gh-defs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px;margin:0}#wsActionBody .gh-defs>div{display:block;min-width:0;padding:0;border:0}#ghFileInfo .gh-defs>.gh-file-name{grid-column:1/-1}#wsActionBody .gh-defs dt{font-size:calc(10px*var(--ws-font-scale,1));margin:0 0 3px;color:var(--ws-muted)}#wsActionBody .gh-defs dd{font-size:calc(12px*var(--ws-font-scale,1));margin:0;overflow-wrap:anywhere}#wsActionBody .ws-inline-info .ws-file-context{font-size:calc(11px*var(--ws-font-scale,1));line-height:1.7}#wsActionBody .ws-inline-info .ws-file-context h3{font-size:inherit}
#wsActionBody .ws-inline-edit .fgrid{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:0 0 10px}#wsActionBody .ws-inline-edit .fgrid>div:last-child{order:-1}#wsActionBody .ws-inline-edit label{margin:0 0 5px;font-size:calc(10px*var(--ws-font-scale,1));font-weight:400}#wsActionBody .ws-inline-edit label em{display:none}#wsActionBody .ws-inline-edit :is(input:not([type=file]),textarea,select){min-height:34px;padding:6px 9px;font-size:calc(12px*var(--ws-font-scale,1));border-radius:5px}#wsActionBody .ws-inline-edit .dz{padding:10px 12px;margin:0;border-radius:6px;text-align:left;min-height:0}#wsActionBody .ws-inline-edit .dz-t{font-size:calc(11px*var(--ws-font-scale,1))}#wsActionBody .ws-inline-edit .dz-hint{display:none}#wsActionBody .ws-inline-edit .dz-name{font-size:calc(10px*var(--ws-font-scale,1));margin-top:5px}#wsActionBody .ws-inline-edit .bundle-picks{justify-content:flex-start;margin-top:7px;gap:6px}#wsActionBody .ws-inline-edit .bundle-picks .hbtn{min-height:32px;padding:4px 9px;font-size:calc(11px*var(--ws-font-scale,1));box-shadow:none}#wsActionBody .ws-inline-edit .bundle-status:empty{display:none}#wsActionBody .ws-inline-edit .fsec{font-size:calc(11px*var(--ws-font-scale,1));margin:14px 0 8px}
#wsEditAdvanced{margin-top:8px}#wsEditAdvanced>summary{display:flex;align-items:center;justify-content:space-between;min-height:32px;font-size:calc(11px*var(--ws-font-scale,1));color:var(--ws-muted);list-style:none;cursor:pointer}#wsEditAdvanced>summary::-webkit-details-marker{display:none}#wsEditAdvanced[open]>summary svg{transform:rotate(180deg)}#wsEditAdvanced>.fsec:first-of-type,#wsEditAdvanced>.fsec:nth-of-type(2){display:none}#wsEditAdvanced>label{margin-top:10px!important}#wsEditAdvanced .urlprev{font-size:calc(10px*var(--ws-font-scale,1))}
@container ws-preview (max-width:900px){#wsDocumentActions>button{width:32px;min-width:32px;padding:0}#wsDocumentActions>button>span{display:none}}
@container ws-preview (max-width:640px){body.workspace .ws-preview-status{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"version pages""actions actions";gap:2px 8px;padding:3px 10px 5px}.ws-version-state{grid-area:version}.ws-page-nav{grid-area:pages}#wsDocumentActions{grid-area:actions;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px}#wsDocumentActions>button{padding:0 4px}#wsActionBody .gh-defs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container ws-preview (max-width:480px){#wsDocumentActions>button>span{display:inline}#wsDocumentActions{grid-auto-flow:row;grid-template-columns:repeat(5,minmax(0,1fr))}#wsDocumentActions>button{width:100%;min-width:44px;flex-direction:column;gap:3px;min-height:48px;padding:4px 0;font-size:calc(10px*var(--ws-font-scale,1))}#wsDocumentActions>button>svg{width:15px;height:15px}#wsActionBody .ws-inline-edit .fgrid{grid-template-columns:minmax(0,1fr)}#wsActionBody .ws-inline-edit .fgrid>div:last-child{order:0}}
/* 전역 상태 바 왼쪽의 사용량 진입. 실제 수집 경로가 없으면 연결 전 상태를 표시한다. */
body.workspace>footer{display:flex;align-items:center;gap:10px;padding:0 12px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}body.workspace .ws-copyright{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:calc(10px*var(--ws-font-scale,1))}#wsUsageDock{position:relative;flex:none;width:auto;max-width:56%;align-self:stretch}#wsUsageToggle{display:flex;align-items:center;gap:8px;padding:0 12px;min-height:26px;width:100%;height:100%;border:0;background:none;color:var(--ws-muted);font:inherit;font-size:calc(10px*var(--ws-font-scale,1));cursor:pointer;text-align:left}#wsUsageToggle small{margin-left:auto;font-size:calc(9px*var(--ws-font-scale,1))}#wsUsagePopup{position:absolute;left:8px;bottom:calc(100% + 8px);width:320px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 120px);overflow:auto;scrollbar-width:none;z-index:80;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-panel);box-shadow:0 10px 28px #0003}#wsUsagePopup::-webkit-scrollbar{display:none}.ws-usage-head{display:flex;align-items:center;gap:8px;padding:9px 12px}.ws-usage-head h2{font-size:calc(12px*var(--ws-font-scale,1));font-weight:550;margin:0}.ws-usage-head>small{margin-left:auto;font-size:calc(9px*var(--ws-font-scale,1));color:var(--ws-muted)}.ws-usage-head .gh-icon{flex:none;width:32px;min-width:32px;height:32px;min-height:32px;background:none;border:0;color:var(--ws-muted)}.ws-usage-rows{padding:0 12px}.ws-usage-row{display:flex;align-items:center;gap:10px;min-height:58px;border-top:1px solid var(--ws-line)}.ws-agent-mark{display:grid;place-items:center;width:28px;height:28px;flex:none;background:var(--ws-raised);border-radius:5px;font-size:calc(10px*var(--ws-font-scale,1));font-weight:550;color:var(--ws-muted)}.ws-usage-row b{font-size:calc(12px*var(--ws-font-scale,1));font-weight:500}.ws-usage-row small{display:block;font-size:calc(10px*var(--ws-font-scale,1));color:var(--ws-muted);margin-top:2px}.ws-usage-empty{margin-left:auto;color:var(--ws-muted)}#wsUsagePopup>p{font-size:calc(10px*var(--ws-font-scale,1));line-height:1.7;color:var(--ws-muted);margin:0;padding:12px}body:not(.workspace)>footer #wsUsageDock{display:none!important}
@media(hover:hover){#wsDocumentActions>button:hover,#wsUsageToggle:hover,#wsUsageClose:hover{background:var(--ws-hover);color:var(--ink)}#wsDocumentActions>button[data-workspace-action=delete]:hover{color:var(--red-text)}}
@media(max-width:900px){body.workspace{--ws-bottom:calc(48px + env(safe-area-inset-bottom,0px))}#wsDocumentActions>button{min-width:44px;min-height:44px}#wsActionHeader{min-height:44px}#wsActionClose,.ws-note-recovery>button,#wsActionBody .dfoot .hbtn,#wsActionBody .ws-inline-edit .bundle-picks .hbtn,#wsEditAdvanced>summary,.ws-usage-head .gh-icon{min-width:44px;min-height:44px}#wsActionPanel #wsNoteGrip{left:calc(50% - 44px);right:auto;top:-22px;width:88px;height:44px}#wsActionPanel #wsNoteGrip:before{top:21px;left:28px}#wsActionBody .ws-inline-edit :is(input:not([type=file]),textarea,select){min-height:44px;font-size:16px}body.workspace #wsActionPanel #wsNoteInput{font-size:16px}#wsUsageToggle{min-height:44px}}
@media(max-width:640px){body.workspace>footer .ws-copyright{display:none}#wsUsageDock{width:auto;max-width:none;flex:1;border-right:0}#wsActionHeader{padding-inline:12px}#wsActionBody :is(.ws-inline-info,.ws-inline-edit)>.dbody,#wsActionBody :is(.ws-inline-info,.ws-inline-edit)>.dfoot,#wsActionBody>#wsNotes{padding-left:12px;padding-right:12px}}
@media(max-width:900px){#wsActionBody .ws-inline-edit #dkUrlCopy{min-width:44px;width:44px;min-height:44px;height:44px}}

/* 자료 작업은 상태 바에 모으고 탐색 패널의 하단 기준선을 맞춘다. */
body.workspace #sideNav .sn-foot{position:relative;height:var(--ws-status-height,44px);min-height:var(--ws-status-height,44px);flex:none;padding:0 12px;margin:0;border-top:1px solid var(--ws-line);box-shadow:none;flex-wrap:nowrap;justify-content:flex-start}
body.workspace #sideNav #snTrash,body.workspace #wsTopBrand #btnNew,body.workspace #wsAddSlot #btnNew{display:none!important}
body.workspace #sideNav #wsSettingsOpen{width:auto;min-width:44px;gap:8px;height:44px;min-height:44px;justify-content:flex-start;padding:0 6px}
body.workspace #sideNav #selbar{position:absolute;bottom:100%;left:8px;right:8px;width:auto;margin-bottom:8px;z-index:20}
body.workspace>header #wsDocumentBar{margin-left:0}
body.workspace #projects .ws-project-children .ws-folder>summary{position:relative;padding-right:8px}
body.workspace #projects .ws-folder>summary>.ws-folder-add{display:inline-flex;align-items:center;justify-content:center;position:static;margin-left:auto;flex:none;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;color:var(--ws-muted);background:none;border:0}
body.workspace #projects .ws-folder>summary:has(.ws-folder-add)>small{margin-left:0;min-width:15px;text-align:right}
body.workspace #projects .lrow{padding-right:38px}
.ws-row-menu{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:32px;min-height:32px;padding:0;border:0;background:none;color:var(--ws-muted)}
.ws-file-menu{max-width:calc(100vw - 16px);max-height:calc(100dvh - 32px);overflow:auto;scrollbar-width:none}.ws-file-menu::-webkit-scrollbar{display:none}
.ws-file-menu>button{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:34px;line-height:1.5;text-align:left}.ws-file-menu>button>svg{flex:none}
.ws-tab-ghost{position:fixed;left:0;top:0;display:flex;align-items:stretch;z-index:90;pointer-events:none;background:var(--ws-panel);color:var(--ink);border:1px solid var(--ws-accent);border-radius:5px;box-shadow:0 5px 16px #0003;opacity:.95;overflow:hidden}
.ws-tab-ghost>[role=tab]{display:flex;align-items:center;gap:7px;min-width:0;flex:1;padding:0 9px 0 12px;border:0;background:none;color:inherit;font:inherit;font-size:calc(11px*var(--ws-font-scale,1));text-align:left}.ws-tab-ghost .ws-tab-close{border:0;background:none;color:var(--muted);width:30px;flex:none}
#dlgSettings [data-ws-settings-page=trash] #trashGrid{margin-top:20px}#dlgSettings [data-ws-settings-page=trash] #btnEmptyTrash{margin:20px 0 0!important}#dlgSettings [data-ws-settings-page=trash] .project{margin:0;box-shadow:none}
@media(hover:hover){body.workspace #projects .ws-folder-add,.ws-row-menu{opacity:0;pointer-events:none}body.workspace #projects summary:hover>.ws-folder-add,body.workspace #projects summary:focus-within>.ws-folder-add,body.workspace #projects .lrow:hover>.ws-row-menu,body.workspace #projects .lrow:focus-within>.ws-row-menu{opacity:1;pointer-events:auto}.ws-row-menu:hover,body.workspace #projects .ws-folder-add:hover{background:var(--ws-hover);color:var(--ink)}}
@media(max-width:900px){body.workspace .ws-preview-status{min-height:48px;padding-top:1px;padding-bottom:1px}body.workspace #sideNav .sn-foot{min-height:48px;height:48px}body.workspace #sideNav #wsSettingsOpen{min-height:44px}#wsDocumentActions>button{width:auto;min-width:44px}body.workspace #projects .ws-folder>summary>.ws-folder-add,.ws-row-menu{width:44px;min-width:44px;height:44px;min-height:44px}body.workspace #projects .lrow{padding-right:54px}.ws-file-menu>button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.ws-tab-ghost,.ws-document-tab{transition:none}}

body.workspace #infoPanel .history-card.cur:not(.ws-selected-version){background:var(--ws-raised);border-color:var(--ws-line);box-shadow:none}
#wsRename{width:min(400px,calc(100vw - 32px));padding:0;border:1px solid var(--hair-in);border-radius:10px;background:var(--s1);color:var(--ink)}#wsRename .dhead{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}#wsRename h2{font-size:calc(14px*var(--ws-font-scale,1));font-weight:600;margin:0}#wsRename .dhead .gh-icon{display:flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:0;background:none;color:var(--muted)}#wsRename .dbody{padding:16px}#wsRename label{display:block;font-size:calc(11px*var(--ws-font-scale,1));margin:0 0 8px}#wsRename input{width:100%;min-height:36px;font-size:calc(13px*var(--ws-font-scale,1))}#wsRename .dfoot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 16px}#wsRename .hbtn{display:inline-flex;align-items:center;justify-content:center;min-width:68px;height:32px;min-height:32px;line-height:1;margin:0;padding:0 12px;font-size:calc(11px*var(--ws-font-scale,1))}#wsRenameError{color:var(--red-text);font-size:calc(11px*var(--ws-font-scale,1));margin:8px 0 0}
@media(max-width:900px){#wsRename .hbtn,#wsRename .dhead .gh-icon{min-width:44px;min-height:44px}#wsRename input{min-height:44px;font-size:16px}}
@media(any-pointer:coarse){body.workspace #projects .ws-folder-add,.ws-row-menu{opacity:1;pointer-events:auto}}
@media(max-width:900px){#dlgSettings [data-ws-settings-page=trash] :is(.ibtn,.hbtn){min-width:44px;min-height:44px}}

/* 접혀 있어도 같은 버전의 의견/회의 건수를 같은 줄에서 확인한다. */
body.workspace #infoPanel .history-card-head>.m{display:flex;align-items:center;flex-wrap:nowrap;gap:2px 8px}body.workspace #infoPanel .ws-version-meta{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.workspace #infoPanel .history-card-head>.m>.ws-current{flex:none}body.workspace #infoPanel .ws-record-counts{display:inline-flex;align-items:center;gap:8px;flex:none}body.workspace #infoPanel .ws-record-counts .history-meta-count{font-size:inherit;gap:3px;line-height:1.5}body.workspace #infoPanel .ws-record-counts svg{width:11px;height:11px;flex:none}

/* 공유·다운로드: 같은 선 아이콘, 접근/링크/전송/저장 구분. */
body.workspace #dlgShare,body.workspace #dlgAI{padding:0;background:var(--ws-panel);color:var(--ink);border:1px solid var(--ws-line);border-radius:12px;box-shadow:0 18px 70px #0003;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}body.workspace #dlgShare{width:540px}body.workspace :is(#dlgShare,#dlgAI) .dhead{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--ws-line)}body.workspace :is(#dlgShare,#dlgAI) .dhead h2{font-size:calc(14px*var(--ws-font-scale,1));line-height:1.5;margin:0;font-weight:600;letter-spacing:-.01em}body.workspace :is(#dlgShare,#dlgAI) .modal-close{background:transparent;border:0;border-radius:6px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}body.workspace :is(#dlgShare,#dlgAI) .modal-close:hover{background:var(--ws-hover);color:var(--ink)}body.workspace #dlgShare .dbody{padding:18px 20px;overflow:auto;max-height:calc(100dvh - 200px)}body.workspace #dlgShare .share-section{margin:22px 0 0;padding:0;border:0}body.workspace #dlgShare h3,body.workspace #dlgShare .ga-h{font-size:calc(12px*var(--ws-font-scale,1));line-height:1.5;font-weight:600;color:var(--ink);letter-spacing:0;text-transform:none;margin:0 0 10px;padding:0;border:0}body.workspace #dlgShare .share-section-heading{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;margin-bottom:8px}body.workspace #dlgShare .share-section-heading h3{margin:0}body.workspace #dlgShare .share-section-heading>span{font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted)}body.workspace #dlgShare .share-url{gap:8px;align-items:stretch}body.workspace #dlgShare .share-url input{min-width:0;min-height:42px;padding:9px 12px;background:var(--ws-bg);color:var(--ink);border:1px solid var(--ws-line);border-radius:6px;font-size:calc(12px*var(--ws-font-scale,1))}body.workspace #dlgShare #shCopy{flex:none;border:1px solid var(--ws-line);background:transparent;border-radius:6px;padding:0 12px;min-height:42px;justify-content:center;gap:6px}body.workspace #dlgShare .share-grid{display:grid;gap:8px;margin:0}body.workspace #dlgShare .share-methods{grid-template-columns:repeat(3,minmax(0,1fr))}body.workspace #dlgShare .share-downloads{grid-template-columns:repeat(2,minmax(0,1fr))}body.workspace #dlgShare .sbtn{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:10px 12px;min-height:44px;min-width:0;background:transparent;border:1px solid var(--ws-line);border-radius:6px;box-shadow:none;color:var(--muted);font:inherit}body.workspace #dlgShare .sbtn svg{width:18px;height:18px;flex:none}body.workspace #dlgShare .sbtn span{font-size:calc(12px*var(--ws-font-scale,1));font-weight:500;color:var(--ink);white-space:normal;text-align:left}body.workspace #dlgShare .sbtn:hover:enabled{background:var(--ws-hover);border-color:var(--ws-muted)}body.workspace #dlgShare .sbtn:disabled{opacity:.35}body.workspace #dlgShare #shHint{margin:8px 0 0;font-size:calc(11px*var(--ws-font-scale,1));line-height:1.6}body.workspace #dlgShare .dfoot{padding:12px 20px;display:flex;justify-content:flex-end;align-items:center;border-top:1px solid var(--ws-line);gap:8px}body.workspace #dlgShare .dfoot .hbtn{min-height:36px;min-width:76px;justify-content:center;border-radius:6px}body.workspace #dlgShare .ga{margin:0;padding:0;background:transparent;border:0}body.workspace #dlgShare .ga-row{align-items:flex-start;gap:10px}body.workspace #dlgShare .ga-ic{width:34px;height:34px;flex:none;background:var(--ws-hover);border-radius:6px;color:var(--muted)}body.workspace #dlgShare .ga-ic.on{color:var(--ws-accent);background:var(--ws-selected)}body.workspace #dlgShare .ga-main{min-width:0;flex:1}body.workspace #dlgShare .ga-desc{font-size:calc(11px*var(--ws-font-scale,1));line-height:1.6;margin-top:6px;color:var(--muted)}body.workspace #dlgShare .ga-pick{min-height:34px;border:1px solid var(--ws-line);background:transparent;border-radius:6px;padding:4px 10px;max-width:100%;font-size:calc(12px*var(--ws-font-scale,1))}body.workspace #dlgShare .ga-sub{margin:10px 0 0 44px;font-size:calc(11px*var(--ws-font-scale,1))}body.workspace #dlgShare .ga-seg button{border-radius:4px;min-height:32px;font-size:inherit;background:transparent}body.workspace #dlgShare .ga-seg button.on{background:var(--ws-selected)}
/* 프로젝트 도우미: 맥락 메시지와 하단 요청 입력부를 한 흐름으로 구성한다. */
body.workspace #dlgAI{width:700px}body.workspace #dlgAI .dhead{padding:14px 20px}body.workspace #dlgAI .dhead>div{min-width:0}body.workspace #dlgAI #aiTitle{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis}body.workspace #dlgAI .ai-eyebrow{display:block;font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted);margin-bottom:3px}body.workspace #dlgAI .dbody{padding:0;max-height:calc(100dvh - 125px);overflow:auto}body.workspace #dlgAI .ai-thread{padding:22px 20px;min-height:190px}body.workspace #dlgAI .ai-context{border:0;background:transparent}body.workspace #dlgAI .ai-context-head{border:0;padding:0;background:transparent;box-shadow:none;position:static;display:flex;align-items:center;gap:10px;margin-bottom:12px}body.workspace #dlgAI .ai-assistant-mark{width:30px;height:30px;display:flex;align-items:center;justify-content:center;flex:none;color:var(--ws-accent)}body.workspace #dlgAI h3{font-size:calc(12px*var(--ws-font-scale,1));font-weight:600;line-height:1.5;margin:0;border:0;padding:0;letter-spacing:0}body.workspace #dlgAI .ai-context-title{min-width:0;flex:1}body.workspace #dlgAI #aiCtxAt{display:block;font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted);line-height:1.5}body.workspace #dlgAI .ai-context-actions{display:flex;align-items:center;gap:4px;flex:none}body.workspace #dlgAI .ai-quiet{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 8px;min-width:32px;border:0;background:transparent;border-radius:6px;color:var(--muted);font-size:calc(11px*var(--ws-font-scale,1));font-weight:500}body.workspace #dlgAI .ai-quiet:hover:enabled{background:var(--ws-hover);color:var(--ink)}body.workspace #dlgAI #aiCtx{white-space:pre-wrap;overflow-wrap:anywhere;max-height:38dvh;overflow:auto;scrollbar-width:thin;font-size:calc(13px*var(--ws-font-scale,1));line-height:1.8;color:var(--ink);padding:14px 16px;margin-left:40px;border-radius:10px;background:var(--ws-bg);border:1px solid var(--ws-line)}body.workspace #dlgAI .ai-context-empty{padding:24px 12px 18px;text-align:center;color:var(--muted)}body.workspace #dlgAI .ai-context-empty strong{font-size:calc(15px*var(--ws-font-scale,1));font-weight:500;color:var(--ink)}body.workspace #dlgAI .ai-context-empty p{max-width:350px;margin:8px auto 0;font-size:calc(12px*var(--ws-font-scale,1));line-height:1.7}body.workspace #dlgAI .ai-context[data-state=content] .ai-context-empty{display:none}body.workspace #dlgAI .ai-context:not([data-state=content]) #aiCtx{display:none}body.workspace #dlgAI #aiCtxLoadRetry{margin-left:40px}body.workspace #dlgAI .ai-compose-area{border-top:1px solid var(--ws-line);padding:18px 20px 20px}body.workspace #dlgAI .ai-compose-heading{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:10px}body.workspace #dlgAI .ai-compose-heading>span{font-size:calc(10px*var(--ws-font-scale,1));color:var(--muted)}body.workspace #dlgAI .ai-composer{border:1px solid var(--ws-line);border-radius:14px;background:var(--ws-bg);padding:12px;box-shadow:none}body.workspace #dlgAI .ai-composer:focus-within{border-color:var(--ws-accent);box-shadow:0 0 0 1px var(--ws-accent)}body.workspace #dlgAI #aiPrompt{width:100%;min-height:84px;max-height:200px;resize:vertical;padding:3px 3px 12px;background:transparent;border:0;border-radius:0;box-shadow:none;font:inherit;font-size:calc(13px*var(--ws-font-scale,1));line-height:1.7;color:var(--ink)}body.workspace #dlgAI #aiPrompt:focus{outline:0;box-shadow:none}body.workspace #dlgAI #aiPrompt::placeholder{color:var(--muted)}body.workspace #dlgAI .ai-composer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}body.workspace #dlgAI .ai-options{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}body.workspace #dlgAI #aiFormat{width:auto;max-width:100%;min-height:34px;font-size:calc(11px*var(--ws-font-scale,1));padding:4px 8px;background:transparent;border:1px solid var(--ws-line);border-radius:6px;color:var(--ink)}body.workspace #dlgAI #aiFormat+.gh-select-button{width:auto;max-width:100%;font-size:calc(11px*var(--ws-font-scale,1));background:transparent;border:1px solid var(--ws-line);min-height:34px;padding:4px 8px}body.workspace #dlgAI .ai-meetings-option{display:flex;align-items:center;gap:7px;position:relative;margin:0;min-height:34px;cursor:pointer;font-size:calc(11px*var(--ws-font-scale,1));font-weight:400;white-space:nowrap;color:var(--muted)}body.workspace #dlgAI input#aiUseMeetings{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;margin:0;border:0}body.workspace #dlgAI .ai-switch-track{position:relative;display:inline-block;flex:none;width:28px;height:16px;border-radius:9px;background:var(--ws-muted);opacity:.65}body.workspace #dlgAI .ai-switch-track:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--ws-panel)}body.workspace #dlgAI #aiUseMeetings:checked+.ai-switch-track{background:var(--ws-accent-fill);opacity:1}body.workspace #dlgAI #aiUseMeetings:checked+.ai-switch-track:after{transform:translateX(12px);background:#fff}body.workspace #dlgAI #aiUseMeetings:focus-visible+.ai-switch-track{outline:2px solid var(--ws-accent);outline-offset:3px}body.workspace #dlgAI #aiGen{flex:none;display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 12px;border-radius:8px;font-size:calc(12px*var(--ws-font-scale,1));line-height:1.5}body.workspace #dlgAI #aiGen:disabled{opacity:.4;cursor:default}body.workspace #dlgAI #aiProg{font-size:calc(11px*var(--ws-font-scale,1));color:var(--muted);line-height:1.6;margin-top:10px;overflow-wrap:anywhere;display:flex;align-items:flex-start;gap:6px}body.workspace #dlgAI #aiProg:empty{display:none}body.workspace #dlgAI #aiError{color:var(--red-text);font-size:calc(11px*var(--ws-font-scale,1));line-height:1.6;margin:10px 0 0;overflow-wrap:anywhere}
@media(max-width:900px){body.workspace :is(#dlgShare,#dlgAI) :is(button,.gh-select-button,select),body.workspace #dlgAI .ai-meetings-option{min-height:44px}body.workspace :is(#dlgShare,#dlgAI) .modal-close{min-width:44px;min-height:44px}body.workspace #dlgAI #aiCtxCopy{min-width:44px}body.workspace #dlgAI :is(#aiCtxCopy,#aiCtxGen,#aiCtxLoadRetry,#aiGen),body.workspace #dlgShare #shCopy,body.workspace #dlgShare .dfoot .hbtn{min-height:44px;min-width:44px}body.workspace #dlgShare .share-url input{min-height:44px}body.workspace #dlgAI #aiFormat+.gh-select-button{min-height:44px}}
@media(max-width:640px){body.workspace :is(#dlgShare,#dlgAI){max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:10px}body.workspace :is(#dlgShare,#dlgAI) .dhead{padding:12px 14px}body.workspace #dlgShare .dbody{padding:16px 14px;max-height:calc(100dvh - 170px)}body.workspace #dlgShare .share-methods{grid-template-columns:1fr}body.workspace #dlgShare .share-section{margin-top:18px}body.workspace #dlgShare .sbtn{padding:8px 10px}body.workspace #dlgShare .dfoot{padding:10px 14px calc(10px + env(safe-area-inset-bottom))}body.workspace #dlgAI .ai-thread{padding:18px 14px;min-height:160px}body.workspace #dlgAI .ai-context-head{gap:6px;flex-wrap:wrap}body.workspace #dlgAI .ai-assistant-mark{width:24px}body.workspace #dlgAI .ai-context-actions{gap:0}body.workspace #dlgAI #aiCtx{margin-left:0;padding:12px;max-height:28dvh}body.workspace #dlgAI .ai-compose-area{padding:14px 12px calc(14px + env(safe-area-inset-bottom))}body.workspace #dlgAI .ai-composer{padding:10px}body.workspace #dlgAI .ai-composer-tools{align-items:flex-end}body.workspace #dlgAI .ai-options{gap:4px;flex-direction:column;align-items:flex-start}body.workspace #dlgAI #aiPrompt{font-size:max(16px,calc(13px*var(--ws-font-scale,1)))}body.workspace #dlgAI .ai-context-empty{padding:16px 8px}body.workspace #dlgAI .ai-compose-heading>span{font-size:calc(10px*var(--ws-font-scale,1))}}

/* 접힌 보관함에서도 아이콘과 실제 목록 개수를 한 버튼 안에 표시한다. */
.ws-library-shortcut>[data-ws-rail-count]{position:absolute;bottom:3px;left:4px;right:4px;text-align:center;font-size:10px;font-weight:500;line-height:12px;font-variant-numeric:tabular-nums;color:inherit;pointer-events:none}.ws-library-shortcut:has([data-ws-rail-count])>svg{transform:translateY(-5px)}

/* 인증 표면은 로그인 여부에 의존하지 않고 현재 VP 표시 토큰을 그대로 쓴다. */
:is(#dlgAuth,#dlgReset){--vp-card:var(--ws-panel);--vp-bg:var(--ws-bg);--vp-light:var(--ws-line);--vp-gray:var(--ws-muted);--vp-sub:var(--ws-muted);--acc-text:var(--ws-accent);--solid:var(--ws-accent-fill);--solid-text:#fff;width:min(400px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - clamp(32px,16dvh,144px));margin:clamp(16px,8dvh,72px) auto auto;padding:0;overflow:hidden;border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-panel);color:var(--ws-ink);box-shadow:0 16px 48px #0002;backdrop-filter:none;font-family:var(--ws-ui-font,-apple-system),BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;font-size:calc(13px*var(--ws-font-scale,1));line-height:1.6}
:is(#dlgAuth,#dlgReset) .dhead{display:block;position:relative;padding:24px 28px 0;background:none;color:inherit;border:0;font:inherit}
:is(#dlgAuth,#dlgReset) .auth-heading{display:flex;align-items:center;gap:8px;padding-right:32px;font-size:calc(12px*var(--ws-font-scale,1));font-weight:500;color:var(--ws-muted)}
:is(#dlgAuth,#dlgReset) .dhead h2{margin:20px 0 0;font-size:calc(22px*var(--ws-font-scale,1));font-weight:600;letter-spacing:-.025em;line-height:1.35;text-wrap:balance}
#dlgAuth .auth-close{position:absolute;right:12px;top:14px;display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0;background:transparent;border:0;border-radius:6px;color:var(--ws-muted)}
:is(#dlgAuth,#dlgReset)[open]{display:flex;flex-direction:column}
:is(#dlgAuth,#dlgReset) :is(.dhead,.dfoot){flex-shrink:0}
:is(#dlgAuth,#dlgReset) .dhead:after{display:none}
:is(#dlgAuth,#dlgReset) .auth-logo{width:28px;height:28px}
:is(#dlgAuth,#dlgReset) .dbody{padding:24px 28px;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;background:none}
:is(#dlgAuth,#dlgReset) label{display:block;margin:16px 0 6px;color:var(--ws-ink);font-size:inherit;font-weight:500}
:is(#dlgAuth,#dlgReset) input:not([type=checkbox]){display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-raised);color:inherit;font:inherit;box-shadow:none}
:is(#dlgAuth,#dlgReset) input::placeholder{color:var(--ws-muted);opacity:1}
:is(#dlgAuth,#dlgReset) input[type=checkbox]{accent-color:var(--ws-accent-fill);width:16px;height:16px;min-width:16px;min-height:16px;flex:none}
:is(#dlgAuth,#dlgReset) button{font:inherit;min-height:44px;line-height:1.4;transition:background .15s,color .15s,border-color .15s}
:is(#dlgAuth,#dlgReset) .gbtn{margin:0;border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-raised);color:inherit;font-weight:500}
:is(#dlgAuth,#dlgReset) .oauth-div{margin:20px 0 4px;font-size:calc(11px*var(--ws-font-scale,1));color:var(--ws-muted)}
:is(#dlgAuth,#dlgReset) .oauth-div:before,:is(#dlgAuth,#dlgReset) .oauth-div:after{background:var(--ws-line)}
#dlgAuth .auth-password-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
#dlgAuth .auth-password-label label{margin:0}
#dlgAuth #rememberRow{display:flex;align-items:center;gap:8px;margin:8px 0 0;min-height:44px;color:var(--ws-muted);font-weight:400;line-height:1.5;cursor:pointer}
#dlgAuth .linklike,#dlgAuth .authswitch{font:inherit;font-size:calc(12px*var(--ws-font-scale,1));color:var(--ws-accent);background:none;border:0;box-shadow:none;padding:0}
#dlgAuth .linklike{min-width:44px;text-align:right}
#dlgAuth .authswitch{margin:0;text-align:center;color:var(--ws-muted)}
#dlgAuth .authswitch b{color:var(--ws-accent);font-weight:500}
:is(#dlgAuth,#dlgReset) .muted{color:var(--ws-muted);font-size:inherit;line-height:1.65}
#dlgAuth #authHint{margin:12px 0 0}
#dlgAuth #authHint:empty{display:none}
:is(#dlgAuth,#dlgReset) .autherr{font:inherit;font-size:calc(12px*var(--ws-font-scale,1));font-weight:500;border-radius:6px;overflow-wrap:anywhere}
:is(#dlgAuth,#dlgReset) .dfoot{display:flex;justify-content:flex-end;gap:8px;padding:12px 28px max(12px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--ws-line);background:none}
:is(#dlgAuth,#dlgReset) .hbtn{display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:44px;padding:10px 16px;margin:0;border:1px solid var(--ws-line);border-radius:6px;background:transparent;color:inherit;font:inherit;font-weight:500;box-shadow:none}
:is(#dlgAuth,#dlgReset) .hbtn.primary{border-color:transparent;background:var(--ws-accent-fill);color:#fff}
#dlgAuth #aSubmit{width:100%;margin-top:16px}
:is(#dlgAuth,#dlgReset) :is(input,button):focus-visible{outline:2px solid var(--ws-accent);outline-offset:3px;box-shadow:none}
:is(#dlgAuth,#dlgReset) button:disabled{opacity:.55;cursor:wait}
body.gate-active{height:auto;min-height:100dvh;overflow:auto;background:var(--ws-bg);color:var(--ws-ink);font-family:var(--ws-ui-font,-apple-system),BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif}
body.gate-active #gateBg,body.gate-active header .brand{display:none}
body.gate-active>header{justify-content:flex-end;padding:12px 20px;background:transparent;border:0}
body.gate-active>header button{min-width:44px;min-height:44px;color:var(--ws-muted)}
body.gate-active>footer{color:var(--ws-muted);padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));font-size:calc(11px*var(--ws-font-scale,1))}
body.gate-active #hubWrap{min-height:calc(100dvh - 120px)}
body.gate-active #mainCol{padding:0}
body.gate-active #projects{padding:0}
#gate{min-height:calc(100dvh - 120px);align-items:center;padding:24px 20px}
#gate .gate-card{max-width:360px;padding:24px 0;border:0;border-radius:0;background:transparent;color:var(--ws-ink);box-shadow:none;font:inherit}
#gate .gate-card:before{display:none}
#gate .gate-logo{width:48px;height:48px;margin:0 auto 16px}
#gate .gate-wm{font-size:calc(24px*var(--ws-font-scale,1));font-weight:600;margin:0 0 16px}
#gate .gate-wm span{background:none;color:inherit;-webkit-text-fill-color:currentColor}
#gate .gate-card .lead{font-size:calc(13px*var(--ws-font-scale,1));color:var(--ws-muted);line-height:1.8;margin:0 0 28px}
#gate .gate-btn{width:100%;min-height:44px;background:var(--ws-accent-fill);color:#fff;font-size:calc(13px*var(--ws-font-scale,1));font-weight:500;border-radius:6px;box-shadow:none;transform:none;transition:filter .15s}
#gate .gate-card .gate-note{margin:24px 0 0;padding:0;border:0;font-size:calc(11px*var(--ws-font-scale,1));color:var(--ws-muted);line-height:1.7}
#gate .gate-btn:focus-visible{outline:2px solid var(--ws-accent);outline-offset:3px}
@media(hover:hover){:is(#dlgAuth,#dlgReset) :is(.gbtn,.hbtn:not(.primary),.auth-close):hover{background:var(--ws-hover)}}
@media(max-width:640px){:is(#dlgAuth,#dlgReset){margin:16px auto auto;max-height:calc(100dvh - 32px)}:is(#dlgAuth,#dlgReset) .dhead{padding:20px 20px 0}:is(#dlgAuth,#dlgReset) .dbody{padding:20px}:is(#dlgAuth,#dlgReset) .dfoot{padding-inline:20px}:is(#dlgAuth,#dlgReset) input:not([type=checkbox]){font-size:max(16px,calc(13px*var(--ws-font-scale,1)))}}
@media(prefers-reduced-motion:reduce){:is(#dlgAuth,#dlgReset) button,#gate .gate-btn{transition:none}}
/* D-178: 항목 패널은 고정하고 그래프 표면만 왼쪽으로 펼친다. */
body.workspace #infoPanel{isolation:isolate}
#hgToggle{margin-left:auto;flex-shrink:0;color:var(--ws-muted)}#hgToggle.on{color:var(--ws-accent);background:var(--ws-selected)}
#hgRail{position:fixed;width:var(--hg-rail-width,48px);z-index:4;background:var(--ws-panel);border:1px solid var(--ws-line);border-right:0;transform:translateX(0);transition:transform .18s ease;overflow:hidden;pointer-events:none}
#hgRail.open{transform:translateX(calc(-1 * var(--hg-rail-width,48px)));pointer-events:auto}#hgRail[hidden]{display:none!important}
.hg-rail-clip{position:absolute;left:0;right:0;overflow:hidden}.hg-lines{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}.hg-lines path{stroke:var(--hg-color,var(--ws-accent));stroke-width:2;fill:none;opacity:.8}
.hg-color-0{--hg-color:var(--ws-accent)}.hg-color-1{--hg-color:#367f8b}.hg-color-2{--hg-color:#9a6b2c}html[data-theme=dark] .hg-color-1{--hg-color:#65aab4}html[data-theme=dark] .hg-color-2{--hg-color:#d5a661}
.hg-nodes{position:absolute;inset:0}.hg-node{position:absolute;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;background:none!important;border:0;color:var(--hg-color);cursor:pointer}.hg-node i{transform:translateX(var(--hg-node-x,0px));display:block;width:9px;height:9px;background:currentColor;border:1px solid var(--ws-panel);border-radius:50%}.hg-node[aria-pressed=true] i{outline:2px solid var(--ws-accent);outline-offset:2px}.hg-node:focus-visible{outline:0}.hg-node:focus-visible i{outline:2px solid var(--ws-ink);outline-offset:3px}
#hgTip{position:fixed;z-index:100;max-width:min(260px,calc(100vw - 16px));padding:10px 12px;background:var(--ws-raised);color:var(--ws-ink);border:1px solid var(--ws-line);border-radius:7px;box-shadow:0 4px 15px #0002;pointer-events:none;font-size:calc(10px*var(--ws-font-scale,1));line-height:1.6;overflow-wrap:anywhere}#hgTip b,#hgTip span,#hgTip small{display:block}#hgTip small{color:var(--ws-muted);font-size:inherit}#hgTip[hidden]{display:none}
#hgView{position:relative;display:flex;align-items:center;gap:8px;min-height:36px;font-size:calc(10px*var(--ws-font-scale,1));color:var(--ws-muted);margin-bottom:8px}#hgState{margin-left:auto;min-width:0;font-size:inherit}#hgOptions{margin-left:auto}#hgOptions summary{width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;border-radius:5px}#hgOptions summary::-webkit-details-marker{display:none}#hgOptions[open] summary{background:var(--ws-selected);color:var(--ws-accent)}.hg-option-menu{position:absolute;right:0;top:100%;z-index:15;width:180px;background:var(--ws-raised);border:1px solid var(--ws-line);border-radius:7px;padding:5px;box-shadow:0 4px 16px #0002}.hg-option-menu button{display:block;text-align:left;width:100%;border:0;background:none;color:var(--ws-ink);padding:8px 10px;border-radius:4px;font:inherit;cursor:pointer}.hg-option-menu button[aria-pressed=true]{background:var(--ws-selected);color:var(--ws-accent)}.hg-option-menu button:disabled{opacity:.5;cursor:default}.hg-option-menu hr,.history-version-menu hr{border:0;border-top:1px solid var(--ws-line);margin:5px 0}
.hg-group-title{display:flex;align-items:center;gap:7px;margin:16px 0 9px;padding:0 4px;font-size:calc(10px*var(--ws-font-scale,1));font-weight:500;color:var(--ws-muted)}.hg-group-title[class*=hg-color]:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--hg-color)}.hg-group-title small{margin-left:auto;font:inherit}.hg-work-version{padding:0!important;margin:0 0 7px!important}body.workspace #infoPanel #hgWorks .history-card{position:relative;border-left:2px solid var(--hg-color);padding:8px 10px 8px 45px!important;min-height:54px}.hg-work-version .history-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 6px}body.workspace #infoPanel #hgWorks .history-badge{display:flex;align-items:center;justify-content:center;position:absolute;left:9px;top:10px;width:27px;height:30px;background:var(--ws-hover);border-radius:5px;color:var(--hg-color)}.hg-work-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;text-align:left;color:var(--ws-ink);font:inherit;font-size:calc(11px*var(--ws-font-scale,1));font-weight:550;border:0;background:none;padding:0;cursor:pointer}.hg-work-version .m{grid-column:1;grid-row:2;color:var(--ws-muted);font-size:calc(9px*var(--ws-font-scale,1));line-height:1.5}
body.workspace #hgDialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;background:var(--ws-panel);color:var(--ws-ink);border:1px solid var(--ws-line);border-radius:9px}#hgDialog .dhead{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ws-line)}#hgDialog h2{margin:0;font-size:14px;font-weight:600}#hgDialog .dbody{padding:18px;overflow:auto;max-height:calc(100dvh - 200px)}#hgDialog .dfoot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--ws-line);background:transparent}#hgDialog label{display:block;font-size:11px;color:var(--ws-muted);margin:14px 0 6px}#hgDialog input:not([hidden]),#hgDialog select{width:100%;border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-raised);color:var(--ws-ink);padding:9px 11px;font:inherit;font-size:12px;min-width:0}#hgDialog small{display:block;margin-top:8px;color:var(--ws-muted);font-size:10px}#hgDialog .hbtn{font-size:11px;min-height:36px;background:var(--ws-raised);color:var(--ws-ink);border:1px solid var(--ws-line);border-radius:6px;box-shadow:none}#hgDialog .hbtn.primary{background:var(--ws-accent-fill);color:white;border-color:transparent}#hgError{color:var(--ws-accent);font-size:11px;line-height:1.6;overflow-wrap:anywhere}#hgError[hidden]{display:none}#hgDialog .hg-work-actions{display:flex;gap:8px;flex-wrap:wrap}#hgDialog .hg-upload{display:flex;align-items:center;padding:8px 10px;margin:0;cursor:pointer}#hgFilesList{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}#hgFilesList .hbtn{max-width:100%;overflow-wrap:anywhere;white-space:normal}.hg-parents{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:14px 0;color:var(--ws-muted);font-size:11px}.hg-parents span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.workspace #hgDialog{font-family:var(--ws-ui-font,-apple-system),BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;font-size:calc(13px*var(--ws-font-scale,1));line-height:1.6}
body.workspace #hgDialog .dhead{background:var(--ws-panel);color:var(--ws-ink);gap:12px}#hgDialog .dhead::after{display:none}#hgDialog h2{font-size:calc(15px*var(--ws-font-scale,1));line-height:1.5}#hgDialog .dhead .gh-icon{width:44px;height:44px;min-width:44px;min-height:44px;flex:none}#hgDialog .hbtn{font-size:calc(12px*var(--ws-font-scale,1))}
#hgDialog .hg-apply-source{display:flex;gap:12px;align-items:flex-start;margin:0 0 20px}#hgDialog .hg-apply-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border:1px solid var(--ws-line);border-radius:8px;color:var(--ws-accent);background:var(--ws-selected)}#hgDialog .hg-apply-source>div{min-width:0}#hgDialog .hg-apply-source span:not(.hg-apply-icon){display:block;font-size:calc(11px*var(--ws-font-scale,1));color:var(--ws-muted);margin-bottom:4px}#hgDialog .hg-apply-source strong{display:block;font-size:calc(14px*var(--ws-font-scale,1));font-weight:600;overflow-wrap:anywhere}
#hgDialog .hg-apply-flow{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;padding:16px;border:1px solid var(--ws-line);border-radius:8px;background:var(--ws-raised)}#hgDialog .hg-apply-flow>div{min-width:0}#hgDialog .hg-apply-flow>div:last-child{color:var(--ws-accent)}#hgDialog .hg-apply-flow span:not(.hg-apply-arrow){display:block;font-size:calc(11px*var(--ws-font-scale,1));color:var(--ws-muted)}#hgDialog .hg-apply-flow strong{display:block;margin-top:4px;font-size:calc(21px*var(--ws-font-scale,1));font-weight:600;overflow-wrap:anywhere}#hgDialog .hg-apply-arrow{display:flex;color:var(--ws-muted)}
#hgDialog .hg-apply-note{font-size:calc(12px*var(--ws-font-scale,1));line-height:1.7;color:var(--ws-muted);margin:14px 0 0}#hgDialog .hg-apply-notice{display:flex;gap:10px;border-top:1px solid var(--ws-line);padding-top:16px;margin-top:18px;font-size:calc(12px*var(--ws-font-scale,1));line-height:1.7}#hgDialog .hg-apply-notice>svg{flex:none;color:var(--ws-accent);margin-top:3px}#hgDialog .hg-apply-notice strong{font-weight:600}#hgDialog .hg-apply-notice p{margin:4px 0 0;color:var(--ws-muted)}
@media(max-width:640px){#hgDialog .dhead{padding:10px 14px}#hgDialog .dbody{padding:16px}#hgDialog .dfoot{flex-wrap:wrap;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}#hgDialog .dfoot .hbtn{white-space:normal;min-width:0}#hgDialog .hg-apply-flow{gap:10px}}
@media(max-width:900px){body.workspace #hubWrap:not(.gh-history-closed) #infoPanel{width:min(376px,calc(100vw - var(--hg-rail-width,48px)))}#hgRail{z-index:59}#hgToggle,#hgOptions summary,.hg-option-menu button,#hgDialog .hbtn{min-height:44px}#hgToggle,#hgOptions summary{min-width:44px;width:44px}#hgDialog input:not([hidden]),#hgDialog select{min-height:44px;font-size:16px}.hg-work-title{min-height:44px}body.workspace #infoPanel #hgWorks .history-card{min-height:70px}}
@media(prefers-reduced-motion:reduce){#hgRail{transition:none}}
/* 레일 유무와 무관하게 자료 하단 조작에48px 여유를 두어, 열릴 때 버튼을 덮지 않는다. */
body.workspace #hubWrap:not(.gh-history-closed) .ws-preview-status{padding-right:60px}
@container ws-preview (max-width:480px){body.workspace #hubWrap:not(.gh-history-closed) #wsDocumentActions{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}}
@media(max-width:900px){body.workspace #hubWrap:not(.gh-history-closed) .ws-preview-status{padding-right:10px}}

/* 파일명 헤더는 이력·대화·에이전트에서 같은 높이를 유지한다. */

body.workspace .gh-history-title{gap:8px;min-height:36px;margin-bottom:12px}
body.workspace .gh-history-title h2{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;font-weight:550}
body.workspace #infoPanel .ip-tabwrap #hgToggle{flex:none;display:flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:5px;background:none;color:var(--ws-muted)}
body.workspace #infoPanel .ip-tabwrap #hgToggle.on{background:var(--ws-selected);color:var(--ws-accent)}
body.workspace #infoPanel .ip-tabwrap #hgToggle[hidden]{display:none!important}
@media(max-width:900px){body.workspace #infoPanel .ip-tabwrap #hgToggle{width:44px;min-width:44px;height:44px;min-height:44px}}

body.workspace #infoPanel .ip-tabwrap #hgOptions{position:relative;flex:none;margin:0}
body.workspace #infoPanel .ip-tabwrap #hgOptions>summary{display:flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:5px;background:none;color:var(--ws-muted);list-style:none}
body.workspace #infoPanel .ip-tabwrap #hgOptions>summary::-webkit-details-marker{display:none}
body.workspace #infoPanel .ip-tabwrap #hgOptions[open]>summary{background:var(--ws-selected);color:var(--ws-accent)}
body.workspace #infoPanel .ip-tabwrap #hgOptions[hidden],#hgView[hidden]{display:none!important}
body.workspace #hgView{min-height:0;padding:0;margin:0 0 8px;justify-content:flex-start}
body.workspace #hgViewLabel{display:none}
@media(max-width:900px){body.workspace #infoPanel .ip-tabwrap #hgOptions>summary{width:44px;min-width:44px;height:44px;min-height:44px}}

body.workspace.glass-hub #infoPanel .ip-tabwrap{gap:4px 12px;flex-wrap:wrap;align-items:flex-start;min-height:38px}
body.workspace #infoPanel #ipTabs{flex:1 1 max-content;min-width:0;flex-wrap:wrap;gap:0 16px}
body.workspace #infoPanel #ipTabs .ip-tab{gap:6px;padding-left:4px;padding-right:4px}
.ip-history-tools{display:flex;align-items:center;justify-content:flex-end;flex:none;gap:8px;margin-left:auto;min-height:38px}
.ip-history-tools[hidden]{display:none!important}
body.workspace #infoPanel .ip-tabwrap #hgToggle{margin-left:0}
@media(max-width:900px){body.workspace.glass-hub #infoPanel .ip-tabwrap{min-height:44px}}

#hgProgress{margin:12px 0 0;color:var(--ws-muted);font-size:calc(11px*var(--ws-font-scale,1))}
#hgProgress[hidden],#hgError[hidden]{display:none!important}
/* 수정본은 중앙에서 확인하고 반영은 명시적으로 선택한다. */
#hgDraftBar{flex:none;min-width:0;background:var(--ws-panel);color:var(--ws-ink);border-bottom:1px solid var(--ws-line);z-index:9}
#hgDraftBar[hidden]{display:none}
.hg-draft-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;padding:12px 16px;min-width:0}
.hg-draft-heading>div:first-child{min-width:0;flex:1 1 180px;display:grid;gap:3px}
.hg-draft-heading strong{font-size:calc(13px*var(--ws-font-scale,1));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hg-draft-heading small{font-size:calc(10px*var(--ws-font-scale,1));color:var(--ws-muted)}
.hg-draft-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;min-width:0}
.hg-draft-actions .hbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-size:calc(11px*var(--ws-font-scale,1))}
.hg-draft-actions .hg-delete{color:var(--danger,#cf7070)}
#hgPreviewState{margin-left:10px;font-size:inherit;color:var(--ws-muted)}#hgPreviewError{padding:8px 16px;margin:0;color:var(--ws-ink)}
.hg-draft-preview #wsDocumentActions>:not(#wsAction-info):not(#wsAction-edit):not(#wsAction-present):not(#wsAction-download):not(#vpEditorOpen):not(#vpMeetingOpen){display:none!important}
body.workspace #infoPanel #hgWorks .history-card.hg-selected{border-color:var(--ws-accent);outline:none;box-shadow:none}
#ghPreviewCanvas>iframe:fullscreen{width:100vw!important;height:100dvh!important;left:0!important;top:0!important;transform:none!important;position:fixed!important;border:0;background:var(--ws-panel)}
@media(max-width:900px){.hg-draft-heading{padding:10px 12px}.hg-draft-heading>div:first-child{flex-basis:100%}.hg-draft-actions{justify-content:flex-start}.hg-draft-actions .hbtn{min-width:44px;min-height:44px}#hgPreviewError{padding:8px 12px}}

.hg-applied{margin:16px 0 0}.hg-applied>summary{color:var(--ws-muted);font-size:calc(11px*var(--ws-font-scale,1));min-height:44px;display:flex;align-items:center;cursor:pointer}.hg-applied[open]>summary{margin-bottom:8px}

/* 현재본의 상태 표시와 사용자가 누른 카드의 선택을 구분한다. */
body.workspace #infoPanel #hgWorks .history-card{border-left-width:1px;border-left-color:var(--ws-line)}
body.workspace #infoPanel #hgWorks .history-card.hg-selected{border-color:var(--ws-accent);box-shadow:none;outline:none}

/* 선택 버전은 탭 본문 밖의 같은 위치에서 유지한다. */
body.workspace #wsSelectionContext{display:flex;align-items:center;gap:6px;min-width:0;min-height:28px;margin:-5px 0 8px;font-size:calc(10px*var(--ws-font-scale,1));color:var(--ws-muted)}
body.workspace #wsSelectionContext[hidden]{display:none}
#wsSelectionContext .ws-selection-text{display:flex;align-items:center;gap:7px;flex:1;min-width:0}
#wsSelectionContext .ws-selection-badge{flex:none;padding:2px 6px;border-radius:4px;background:var(--ws-selected);color:var(--ws-accent)}
#wsSelectionContext .ws-selection-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wsSelectionContext button{flex:none;width:28px;min-width:28px;height:28px;min-height:28px}
@media(max-width:900px){body.workspace #wsSelectionContext{min-height:44px;margin-top:-8px;margin-bottom:4px}#wsSelectionContext button{width:44px;min-width:44px;height:44px;min-height:44px}}

.ws-draft-edit .dbody>.fgrid,.ws-draft-edit #wsEditAdvanced,.ws-draft-edit #dkBundleEntryWrap,.ws-draft-edit #dkFolderPick{display:none!important}#wsDraftEditHint{font-size:12px;line-height:1.7;color:var(--ws-muted)}#wsDraftEditError{display:block;color:var(--danger);margin-top:8px}

/* 탭 내용 묶음 사이의 여백을 같게 하고, 대화 숫자는 배치 폭에서 분리한다. */
body.workspace #infoPanel #ipTabs{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:0 12px;flex:1 1 260px}
body.workspace #infoPanel #ipTabs .ip-tab{position:relative;flex:0 0 auto;justify-content:flex-start;min-width:0;white-space:nowrap;gap:6px;padding:0 4px;line-height:18px;overflow:visible}
body.workspace #infoPanel #ipTabs .ip-tab>svg{flex:none}
body.workspace #infoPanel #ipTabs .ip-tab>span:not(.ws-chat-count){min-width:0;overflow:hidden;text-overflow:ellipsis}
body.workspace #infoPanel .ip-history-tools{gap:2px;min-height:38px}
body.workspace #infoPanel .ip-history-tools :is(button:disabled,summary[aria-disabled="true"]){opacity:.4;cursor:default;background:none}
body.workspace #infoPanel .ip-history-tools summary[aria-disabled="true"]{pointer-events:none}
body.workspace #infoPanel .ws-chat-count{position:absolute;top:-8px;right:0;transform:translateX(35%);width:3ch;padding:0 3px;line-height:12px;font-size:calc(8px*var(--ws-font-scale,1))}
@media(width > 900px){body.workspace #infoPanel .ip-history-tools :is(#hgToggle,#hgOptions>summary,#wsHistoryCalendar){width:28px;min-width:28px}}
#wsFileInfoPane #ghFileSize{font-variant-numeric:tabular-nums}

/* 검토 의견도 현재 테마의 표면·글자·경계선을 재사용한다. */
body.workspace #reviewer,html[data-theme=dark] body.workspace #reviewer{--vp-bg:var(--ws-bg);--vp-card:var(--ws-raised);--vp-ink:var(--ws-ink);--vp-sub:var(--ws-ink);--vp-gray:var(--ws-muted);--vp-light:var(--ws-line);--vp-border:var(--ws-line);--ico-idle:var(--ws-muted);--acc:var(--ws-accent-fill);--acc-soft:var(--ws-selected);--acc-sel:var(--ws-selected);--acc-border:var(--ws-accent);--solid:var(--ws-selected);--solid-text:var(--ws-accent);--btn-gray:var(--ws-hover)}
body.workspace #reviewer #rvSide{margin-top:0;border-radius:0;border-right:1px solid var(--ws-line);background:var(--ws-panel);color:var(--ws-ink)}
body.workspace #reviewer #rvSideTg{background:var(--ws-raised);color:var(--ws-muted);border-color:var(--ws-line);box-shadow:none}
body.workspace #reviewer :is(.rvs-cnt,.rvs-now){color:var(--ws-ink)}
body.workspace #reviewer .rvs-item.old{opacity:1}
body.workspace #reviewer .rvs-vchip{background:color-mix(in srgb,var(--vc,var(--ws-accent)) 18%,var(--ws-raised));color:var(--ws-ink)}
@media(max-width:900px){body.workspace #reviewer #rvSideTg{width:44px;min-width:44px}}

/* 갈래 번호·출발 버전·독립 선 자리로 색상 외에도 관계를 구분한다. */
.hg-color-0{--hg-color:var(--ws-muted)}.hg-color-3{--hg-color:#77619b}.hg-color-4{--hg-color:#3a7c57}.hg-color-5{--hg-color:#a65a70}html[data-theme=dark] .hg-color-3{--hg-color:#b6a0d9}html[data-theme=dark] .hg-color-4{--hg-color:#83b99a}html[data-theme=dark] .hg-color-5{--hg-color:#d99db0}
.hg-lines .hg-line-spine{stroke:var(--ws-muted);stroke-width:1.5;opacity:.42}.hg-lines .hg-line-branch{opacity:.7;stroke-width:1.8}.hg-lines .hg-line-source{stroke-dasharray:4 3;opacity:.65}.hg-focusing .hg-lines .hg-line-branch:not(.is-active){opacity:.18}.hg-lines path.is-active{opacity:1;stroke-width:2.5}.hg-node{width:100%}.hg-node i{font:600 9px/1 var(--vp-font);display:grid;place-items:center}.hg-work-node i{width:17px;height:17px;color:var(--ws-panel);background:var(--hg-color)}.hg-node.hg-connected i{box-shadow:0 0 0 2px var(--ws-panel),0 0 0 3px var(--hg-color)}.hg-work-node[aria-pressed=true] i{outline-color:var(--hg-color)}.hg-focusing .hg-work-node:not(.hg-connected){opacity:.5}body.workspace #infoPanel #hgWorks .history-badge{gap:2px;width:29px}.history-badge b{font-size:10px;font-weight:600}.hg-origin-label{font-weight:550;color:var(--hg-color)}.hg-published-origin{white-space:nowrap;color:var(--ws-muted)}

.hg-lines .hg-line-collapsed{stroke-dasharray:3 3}.hg-collapsed-node i{width:18px;height:18px;background:var(--ws-panel);border:1px solid var(--ws-line);font-size:12px;color:var(--ws-muted)}

.hg-origin-label{white-space:nowrap}

/* 저장본의 접힘 조작과 새 버전 업로드는 독립된 버튼이다. */
.ws-saved-group{position:relative}.ws-saved-group>.ws-other>summary{min-height:44px;padding:0 48px 10px 0}.ws-upload-version{position:absolute;right:0;top:4px;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:5px;background:transparent!important;color:var(--ws-muted);cursor:pointer}.ws-upload-version:hover{color:var(--ws-ink)}.ws-upload-version:focus-visible{outline:2px solid var(--ws-accent);outline-offset:-5px}.ws-upload-version:disabled{opacity:.4;cursor:default}.ws-upload-version svg{width:17px;height:17px}
body.workspace #wsVersionUpload{width:min(520px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:0;overflow:auto;border:1px solid var(--ws-line);border-radius:10px;background:var(--ws-panel);color:var(--ws-ink)}
#wsVersionUpload .dhead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px 12px 24px;background:transparent;border-bottom:1px solid var(--ws-line)}#wsVersionUpload .dhead:after{display:none}#wsVersionUpload h2{font-size:16px;font-weight:600;margin:0}#wsVersionUpload .gh-icon{width:44px;height:44px;color:var(--ws-muted)}#wsVersionUpload .dbody{padding:22px 24px 18px;max-height:none;overflow:visible}#wsVersionUpload .dfoot{padding:16px 24px calc(16px + env(safe-area-inset-bottom,0px));background:transparent;border-color:var(--ws-line)}#wsVersionUpload .hbtn{min-height:44px;min-width:80px;font-size:12px;font-weight:500;border-radius:6px;box-shadow:none}#wsVersionUpload .hbtn.primary{background:var(--ws-accent-fill);color:#fff;border-color:transparent}#wsVersionUpload .hbtn:disabled{opacity:.45;cursor:default}
.ws-upload-context{display:flex;flex-direction:column;gap:10px;margin-bottom:20px;min-width:0}.ws-upload-context p{font-size:12px;color:var(--ws-muted);line-height:1.6;overflow-wrap:anywhere;margin:0}.ws-upload-context>div{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--ws-muted);flex-wrap:wrap}.ws-upload-context b{color:var(--ws-ink);font-weight:500}.ws-upload-context strong{color:var(--ws-accent);background:var(--ws-selected);border-radius:4px;font-size:12px;font-weight:600;padding:3px 8px;overflow-wrap:anywhere}.ws-upload-context svg{flex:none}
.ws-upload-file{min-height:172px;padding:18px;border:1px dashed var(--ws-line);border-radius:7px;background:var(--ws-bg);display:flex;align-items:center;justify-content:center}.ws-upload-file.over{border-color:var(--ws-accent);background:var(--ws-selected)}.ws-upload-file.has-file{min-height:122px}#wsUploadEmpty{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;min-width:0}#wsUploadEmpty>span,#wsUploadEmpty>small{color:var(--ws-muted)}#wsUploadEmpty>strong{font-size:12px;font-weight:500;line-height:1.6}#wsUploadEmpty>small{font-size:11px}#wsUploadEmpty>div{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px}#wsUploadSelected{width:100%}.ws-upload-file-row{display:flex;align-items:center;gap:12px;min-width:0}.ws-upload-file-row>div{flex:1;min-width:0}.ws-upload-file-row strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere;line-height:1.6}.ws-upload-file-row small{display:block;font-size:11px;color:var(--ws-muted);margin-top:5px}#wsUploadKind{display:grid;place-items:center;min-width:43px;height:48px;border:1px solid var(--ws-line);border-radius:5px;font-size:10px;color:var(--ws-muted)}.ws-upload-ready{color:var(--green-text,var(--ws-accent));flex:none}.ws-upload-change{display:block;margin-left:auto;min-height:44px;padding:0 4px;border:0;background:none;color:var(--ws-muted);font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#wsVersionUpload label{display:block;font-size:11px;margin:20px 0 8px}#wsVersionUpload label small{color:var(--ws-muted);font-size:10px;margin-left:6px}#wsVersionUpload :is(input:not([type=file]),select){width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--ws-line);border-radius:5px;background:var(--ws-bg);color:var(--ws-ink);font:inherit;font-size:12px}#wsVersionUpload input::placeholder{color:var(--ws-muted)}#wsVersionUpload :is(input,select):focus-visible{outline:2px solid var(--ws-accent);outline-offset:2px}.ws-upload-retention{display:flex;align-items:flex-start;gap:7px;color:var(--ws-muted);font-size:11px;line-height:1.7;margin:16px 0 0}.ws-upload-retention svg{flex:none;margin-top:2px}#wsUploadError{font-size:12px;color:var(--red-text,#c84e60);line-height:1.6;margin-top:10px}#wsUploadProgress{font-size:11px;color:var(--ws-muted);line-height:1.6;margin:12px 0 0}
@media(max-width:640px){#wsVersionUpload .dhead{padding:10px 12px 10px 18px}#wsVersionUpload .dbody{padding:18px}#wsVersionUpload .dfoot{padding:14px 18px calc(14px + env(safe-area-inset-bottom,0px))}#wsVersionUpload :is(input:not([type=file]),select){font-size:16px}.ws-upload-file{padding:14px}}
.ws-saved-group{margin-top:20px;padding-top:4px;border-top:1px solid var(--ws-line)}body.workspace #infoPanel .ws-saved-group>.ws-other{margin-top:0;padding-top:0;border-top:0}.ws-saved-group>.ws-other>summary{padding-bottom:0;margin-bottom:8px}

/* 수정본도 저장본과 같은 위치에 더보기를 두어 카드 높이와 제목 폭을 유지한다. */
.hg-work-actions{display:flex;align-items:center;justify-content:flex-end}.hg-work-pin-space{visibility:hidden}.hg-work-more{display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:28px;min-height:28px;border:0;border-radius:5px;background:transparent;color:var(--ws-muted);cursor:pointer}.hg-work-more:focus-visible{outline:2px solid var(--ws-accent);outline-offset:1px}.hg-work-more[aria-expanded=true]{background:var(--ws-hover);color:var(--ws-ink)}
@media(hover:hover) and (pointer:fine){.hg-work-more{opacity:0}.hg-work-version .history-card:hover .hg-work-more,.hg-work-version .history-card:focus-within .hg-work-more,.hg-work-more[aria-expanded=true]{opacity:1}.hg-work-more:hover{background:var(--ws-hover);color:var(--ws-ink)}}
@media(max-width:900px),(hover:none){.hg-work-more{width:44px;min-width:44px;height:44px;min-height:44px;opacity:1}.hg-work-actions{align-self:center}}
/* 목록 구분선 대신 각 카드의 테두리만 유지한다. */
body.workspace #infoPanel .vblk+.vblk{border-top:0}
body.workspace #infoPanel .hg-deleted-version{padding:0;margin:0 0 8px;border:0;color:var(--ws-muted)}
body.workspace #infoPanel .hg-deleted-version .history-card,body.workspace #infoPanel .hg-deleted-version .history-card.history-folded{border:1px dashed var(--ws-line);background:transparent}
body.workspace #infoPanel .hg-deleted-version .history-card-head{display:flex;align-items:center;min-height:var(--ws-card-summary);cursor:default}
body.workspace #infoPanel .hg-deleted-version .ws-version-title,body.workspace #infoPanel .hg-deleted-version .ws-deleted-label{font-size:calc(11px*var(--ws-font-scale,1));font-weight:500;color:var(--ws-muted);padding:0}
body.workspace #infoPanel .hg-deleted-version .ws-version-title{display:flex;align-items:center;min-height:var(--ws-card-summary)}
body.workspace #infoPanel .hg-deleted-version .history-card-head>.m[hidden]{display:none!important}
.hg-deleted-node i{background:var(--ws-panel)!important;border:1px dashed var(--ws-muted);width:9px;height:9px}.hg-node.hg-deleted-node:disabled{opacity:.65;cursor:default}.hg-lines .hg-line-deleted{stroke-dasharray:3 3;opacity:.45}
#hgDialog .hbtn.danger{color:var(--red-text);border-color:var(--red-text);background:transparent}.hg-delete-summary{font-size:13px;line-height:1.8}
body.workspace #infoPanel #hgWorks .history-card-head>.m{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 상속된 disabled 상태로 뒤늦게 추가되는 문서 도구와 페이지 조작도 함께 막는다. */
#wsDocumentActions,.ws-page-nav{border:0;padding:0;margin:0;min-inline-size:0}
#wsDocumentActions:disabled>button{opacity:.4;cursor:default}#wsDocumentActions:disabled>button:hover{background:transparent;color:var(--ws-muted)}.ws-page-nav:disabled{opacity:.4}
body.workspace #infoPanel .hg-deleted-version .history-card.ws-selected-version{border-color:var(--ws-accent)}
/* 앱 선택 뒤에는 문서 화면을 가리지 않는다. */
dialog.ws-external-editor{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--ws-line);border-radius:9px;background:var(--ws-panel);color:var(--ws-ink);font:inherit;overflow:auto}
.ws-external-editor::backdrop{background:#0006}.ws-external-editor form{margin:0}.ws-external-editor .dhead,.ws-external-editor .dfoot{padding:16px 20px;display:flex;align-items:center;gap:12px}.ws-external-editor .dhead{justify-content:space-between;border-bottom:1px solid var(--ws-line)}.ws-external-editor h2{margin:0;font-size:15px;font-weight:600}.ws-external-editor .dbody{padding:16px 20px;display:grid;gap:12px}.ws-external-editor .dfoot{justify-content:flex-end;border-top:1px solid var(--ws-line);padding-bottom:max(16px,env(safe-area-inset-bottom))}.ws-external-editor p{margin:0;color:var(--ws-muted);font-size:12px;line-height:1.7}.ws-external-editor label{margin:0;font-size:12px}.ws-external-editor select{box-sizing:border-box;min-width:0;width:100%;font:inherit;background:var(--ws-bg);color:var(--ws-ink);border:1px solid var(--ws-line);border-radius:5px;padding:10px}.ws-external-editor #vpExternalContext{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-external-editor #vpExternalChoices{display:grid;gap:12px}.ws-editor-choice{width:100%;display:flex;align-items:center;gap:12px;padding:14px;text-align:left;font:inherit;background:transparent;color:inherit;border:1px solid var(--ws-line);border-radius:6px;cursor:pointer}.ws-editor-choice>svg{flex:none}.ws-editor-choice>span{min-width:0;flex:1;display:grid;gap:4px}.ws-editor-choice strong{font-size:13px;font-weight:550}.ws-editor-choice small{color:var(--ws-muted);font-size:11px;line-height:1.7}.ws-external-editor .hbtn{margin:0;min-height:36px}.ws-external-editor :focus-visible{outline:2px solid var(--ws-accent);outline-offset:2px}.ws-external-editor [hidden]{display:none!important}
.ws-external-change{justify-self:end;border:0;background:transparent;color:var(--ws-muted);font:inherit;font-size:12px;min-height:36px;padding:4px 8px;cursor:pointer}.ws-editor-choice strong{overflow-wrap:anywhere}
@media(hover:hover){.ws-editor-choice:hover{background:var(--ws-selected)}.ws-external-change:hover{color:var(--ws-ink);text-decoration:underline}}
@media(max-width:900px){.ws-external-editor button,.ws-external-editor .hbtn,.ws-external-editor select{min-width:44px;min-height:44px}.ws-external-editor select{font-size:16px}}
@media(max-width:640px){.ws-external-editor .dhead,.ws-external-editor .dbody,.ws-external-editor .dfoot{padding-left:16px;padding-right:16px}}

/* 고정한 바로가기는 버전 카드·레일의 순서를 바꾸지 않는다. */
#wsPinned{display:flex;flex-direction:column;gap:4px}
body.workspace #infoPanel .ws-checkpoint-link{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:7px 9px;border:0;border-radius:5px;background:transparent;color:var(--ws-muted);font:inherit;font-size:calc(11px*var(--ws-font-scale,1));text-align:left;cursor:pointer}
.ws-checkpoint-link strong{font-size:calc(10px*var(--ws-font-scale,1));font-weight:550;flex:none;color:var(--ws-ink)}
.ws-checkpoint-link>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.ws-checkpoint-link svg{flex:none}.hg-node.hg-latest i{width:11px;height:11px;background:var(--ws-ink)}
@media(hover:hover){body.workspace #infoPanel .ws-checkpoint-link:hover{background:var(--ws-hover);color:var(--ws-ink)}}

body.workspace #dlgAI .ai-generated-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}body.workspace #dlgAI #aiDiscardGenerated{white-space:nowrap}
@media(max-width:640px){body.workspace #dlgAI .ai-generated-actions{flex-direction:column;align-items:stretch}}

#dlgProject .np-private.is-fixed{cursor:default}

body.workspace>header :is(#wsThemeToggle,#btnInbox,#wsToolMenu){display:none!important}
body.workspace>header #ghHistoryToggle{position:static;order:100;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;min-height:44px;margin-left:auto;padding:0;border:0;border-radius:5px;background:transparent;color:var(--ws-muted)}
body.workspace>header #ghHistoryToggle>svg{width:17px;height:17px;flex:none}
body.workspace #wsRailExpand,body.workspace.vp-agent-dashboard-open #ghHistoryToggle{display:none!important}
body.workspace>header #ghHistoryToggle:focus-visible{outline:2px solid var(--ws-accent);outline-offset:-2px}
@media(hover:hover){body.workspace>header #ghHistoryToggle:hover{background:var(--ws-hover);color:var(--ws-ink)}}
body.workspace #hubWrap.gh-history-closed #hgRail,body.workspace #hubWrap.gh-history-closed .gh-resizer[data-col="hist"]{display:none!important}
#wsVersionRail .gh-icon>svg{width:18px;height:18px;flex:none}
#wsVersionRail :is(button,.ws-rail-version):focus-visible{outline:2px solid var(--ws-accent);outline-offset:-2px}
@media(width > 900px){body.workspace.nav-rail #sideNav #wsSettingsOpen{justify-content:center;gap:0}body.workspace.nav-rail #wsSettingsIcon svg{width:18px;height:18px}}

/* 팝업의 공통 조작은 같은 모서리·높이를 사용한다. */
body.workspace dialog :is(.hbtn,.sbtn,.chip-btn,.gh-select-button){border-radius:6px}
body.workspace dialog .dfoot{gap:8px;flex-wrap:wrap}
body.workspace dialog .dfoot>.hbtn{min-height:44px;line-height:1.4}
#qFileName{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
#qFileName>svg{width:16px;height:16px;flex:none}
.ws-month [data-ws-calendar-close]{display:none}
@media(max-width:900px){body.workspace #wsTopBrand{flex-basis:106px;width:106px}body.workspace #wsTopBrand .brand{min-width:44px;min-height:44px;justify-content:center}}
@media(max-width:640px){body.workspace #wsCalendar{position:fixed;top:64px;right:12px;width:calc(100vw - 24px);max-width:360px;max-height:calc(100dvh - 140px);overflow:auto;z-index:60;padding:8px;margin:0;background:var(--ws-panel);box-shadow:0 8px 28px #0003}body.workspace .ws-calendar-grid{gap:1px}body.workspace .ws-calendar-grid>button{min-width:44px;min-height:44px}body.workspace .ws-month .gh-icon{min-width:44px;width:44px;min-height:44px;height:44px}.ws-month [data-ws-calendar-close]{display:inline-flex}body.workspace dialog .dfoot>.ai-service-locked{flex-basis:100%;justify-content:center}}

/* 패널 경계는 상단부터 본문까지 이어지고 전역 상태 바 앞에서 끝난다. */
body.workspace>header::after{content:"";position:absolute;top:0;bottom:0;right:0;width:var(--ws-history-width,56px);box-sizing:border-box;border-left:1px solid var(--ws-line);pointer-events:none}
body.workspace.vp-agent-dashboard-open>header::after{display:none}
@media(max-width:900px){body.workspace>header::after{width:56px}body.workspace>header:has(~main #infoPanel.gh-history-open)::after{width:var(--ws-history-width,376px)}}

/* 자료 연결 조회는 하단의 고정 공간에 표시해 이력과 도구의 위치를 유지한다. */
body.workspace .ws-preview-status{position:relative;padding-right:40px}
#wsPageCounter{min-width:9ch;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.ws-background-load{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:20px;height:20px;display:flex;align-items:center;justify-content:center;pointer-events:none}
@media(max-width:900px){body.workspace #hubWrap .ws-preview-status{padding-right:34px}}
