/* 편집 화면 틀 (React 편집기 공통: 문서·슬라이드…) - 동작은 claude_common/react/components(EditorShell·Menu·Pop·ToolbarRow·CommentsPanel·VersionPanel·ShareDialog), 규칙 claude_common/ui/editor-shell.md
   머리줄(앱 아이콘·제목·저장 상태·함께 보는 사람·댓글·공유·프로필) + 메뉴줄 + 한 줄 툴바(⋮) + 펼침 메뉴·색 고르기·표 고르기 + 오른쪽 패널(버전·댓글) + 공유 창 안쪽
   readocapi에서 옮김(2026-10-06). 색·모서리는 --uk-* 만.
   흔한 이름(.muted .field .check …)은 React 앱 안(#root)으로만 - 매뉴얼·PHP 화면의 같은 이름과 섞이지 않게 */
#root .muted { color: var(--uk-muted); }
#root .msg-error { color: var(--uk-danger-fg); }
#root .page-message { padding: 48px 16px; text-align: center; }
#root .btn-plain { border: 0; background: none; padding: 6px 8px; border-radius: var(--uk-r-sm); cursor: pointer; }
#root .btn-plain:hover { background: var(--uk-sunk); }
@media (max-width: 600px) {
  .app-name { display: none; }
}
#root .modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.app-icon { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--uk-fg); text-decoration: none; }
.app-icon svg { display: block; }
/* 앱 아이콘 귀퉁이 뱃지 - 문서 위치·저장 상태(구름·모니터), 글자 대신 (2026-10-12) */
.app-icon.has-badge { position: relative; }
/* 모양은 storage-location.css(흰 동그라미 + 그림, 2026-10-14 통일) - 여기서는 앱 아이콘 귀퉁이 자리만 */
.app-icon .loc-badge { --loc-size: 20px; right: -5px; bottom: -3px; }
.app-name { font-size: 18px; font-weight: 600; }
/* 편집 화면. 종이(흰 A4)만 테마와 상관없이 흰색 - 인쇄·PDF와 같은 모습이어야 해서 */
.editor-shell { display: flex; flex-direction: column; height: 100%; }
.editor-top {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 0;
  background: var(--uk-surface);
}
.editor-head { flex: 1; min-width: 0; }
.editor-title-row { display: flex; align-items: center; gap: 12px; }
.doc-title {
  font-size: 18px; border: 1px solid transparent; border-radius: var(--uk-r-xs);
  /* 글자 길이만큼만 (field-sizing) - 예전엔 480px 고정이라 '저장됨'이 가운데쯤 떠 있었다(10-08). 왼쪽 여백은 메뉴 글자와 같은 세로줄 */
  padding: 2px 7px; background: none; min-width: 60px; max-width: 480px; flex: 0 1 auto; width: auto; field-sizing: content;
}
.editor-actions { flex: none; display: flex; align-items: center; gap: 12px; }
.menubar { flex-wrap: nowrap; overflow-x: clip; overflow-y: visible; } /* 좁은 창에서 옆으로만 자른다 - hidden이면 아래로 펼친 메뉴까지 잘렸다(10-07) */
.menubar .menu-label { white-space: nowrap; }
.doc-title:hover { border-color: var(--uk-border); }
.doc-title:focus { outline: none; border-color: var(--uk-brand); }
.save-status { font-size: 12px; color: var(--uk-muted); white-space: nowrap; }
.save-status.is-local { color: var(--uk-warn-fg); }
/* 평소 저장 상태 글은 앱 아이콘 뱃지가 대신한다 - 화면 읽기용으로만 남김 (2026-10-12) */
.editor-title-row .save-status.is-quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menubar { display: flex; gap: 2px; }
.menu { position: relative; }
.menu-label { border: 0; background: none; padding: 3px 8px; border-radius: var(--uk-r-xs); cursor: pointer; }
.menu-label:hover, .menu-label.is-open { background: var(--uk-sunk); }
.menu-list {
  position: absolute; top: 100%; left: 0; z-index: 50; min-width: 220px; padding: 6px 0;
  background: var(--uk-surface); border-radius: var(--uk-r-sm); box-shadow: var(--uk-up);
}
.menu-list > button {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%;
  border: 0; background: none; padding: 6px 16px; text-align: left; cursor: pointer;
}
.menu-list > button:hover:not(:disabled) { background: var(--uk-sunk); }
/* 항목 앞 아이콘 (React MenuItem.icon, 오른쪽 클릭 메뉴는 늘 자리를 둔다) */
.menu-label { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.menu-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; color: var(--uk-muted); }
.menu-icon svg { width: 18px; height: 18px; }
.menu-list > button:disabled { opacity: .45; cursor: default; }
.menu-list kbd { font: inherit; font-size: 12px; color: var(--uk-muted); }
.menu-list hr { border: 0; border-top: 1px solid var(--uk-line); margin: 6px 0; }
/* 툴바: 카드(둥근 배경·바깥 여백) 없이 아이콘만 한 줄, 바탕은 머리줄과 같은 색(위쪽이 한 띠) + 아래 선 - 아이콘은 키우고 자리는 줄인다
   (2026-10-08 사용자 "카드 빼고 아이콘을 그냥 나열, 아이콘을 좀 더 키워 - 아이콘은 커지고 공간은 줄어들게") */
.toolbar {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0; min-width: 0;
  margin: 0; padding: 2px 12px 2px 5px; background: var(--uk-surface); border-bottom: 1px solid rgba(var(--uk-shc), .22); /* 문서는 툴바 아래가 같은 색 바탕이라 옅은 선으로는 경계가 안 보였다(10-08) */
}
.tool {
  min-width: 36px; height: 36px; padding: 0 6px; border: 0; background: none; color: var(--uk-fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 1px;
  border-radius: var(--uk-r-xs); cursor: pointer; font-size: 14px;
}
.tool svg { flex: none; }
/* 글자 색·형광펜: 아이콘 아래 지금 색 막대 */
.color-icon { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.color-icon svg { margin-bottom: 1px; }
.color-icon i { display: block; width: 18px; height: 4px; border-radius: 1px; margin-top: -3px; box-shadow: inset 0 0 0 1px rgba(var(--uk-shc), .12); }
.tool-pop-panel .pop-item { display: flex; align-items: center; gap: 4px; }
.tool:hover:not(:disabled) { background: var(--uk-sunk); }
.tool.is-active { background: var(--uk-pick-light); color: var(--uk-pick-dark); }
.tool:disabled { opacity: .35; cursor: default; }
.tool-sep { width: 1px; height: 20px; background: var(--uk-border); margin: 0 4px; }
.tool-select { height: 36px; font-size: 14px; color: var(--uk-fg); border: 0; background: none; border-radius: var(--uk-r-xs); padding: 0 4px; cursor: pointer; }
.tool-select:hover { background: var(--uk-sunk); }
.tool-context { display: flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--uk-border); }
.tool-context .tool { font-size: 12px; }
.tool-context-label { font-size: 12px; font-weight: 600; color: var(--uk-pick-dark); margin-right: 2px; }
.editor-body { flex: 1; display: flex; min-height: 0; }
/* 오른쪽 패널 (버전 기록) */
.side-panel {
  width: 340px; flex: none; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: var(--uk-surface); border-left: 1px solid var(--uk-line);
}
.side-panel header { display: flex; align-items: center; justify-content: space-between; }
.side-panel h2 { font-size: 16px; margin: 0; }
.version-list { list-style: none; margin: 0; padding: 0; }
.version-list button {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  border: 0; background: none; padding: 8px 10px; border-radius: var(--uk-r-sm); cursor: pointer; text-align: left;
}
.version-list button:hover { background: var(--uk-sunk); }
.version-list button.is-active { background: var(--uk-pick-light); }
.version-list .muted { font-size: 12px; }
.version-preview { border-top: 1px solid var(--uk-line); padding-top: 12px; }
.version-preview-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.version-preview-body { background: var(--uk-paper); padding: 16px; border-radius: var(--uk-r-sm); max-height: 50vh; overflow: auto; font-size: 13px; }
@media (max-width: 900px) {
  .side-panel { position: fixed; inset: auto 0 0 0; width: auto; max-height: 70vh; border-left: 0; box-shadow: var(--uk-up-lg); z-index: 60; }
}
@media (max-width: 600px) {
  .editor-top { padding: 8px 8px 0; }
  .toolbar { margin: 8px; border-radius: var(--uk-r-md); }
}
/* ── PDF 편집 ── */
.tool-hint { font-size: 12px; color: var(--uk-pick-dark); margin-left: 8px; }
.tool-select .pdf-annot { cursor: move; }
/* ── 공유·함께 보기·댓글 ── */
.shared-from { font-size: 12px; white-space: nowrap; }
.presence { display: flex; gap: 2px; }
.presence-dot { width: 26px; height: 26px; border-radius: 50%; color: var(--uk-on-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 2px solid var(--uk-surface); }
.presence-more { font-size: 12px; color: var(--uk-muted); align-self: center; margin-left: 2px; }
.comments-toggle { font-size: 14px; }
.comments-toggle.is-active { background: var(--uk-pick-light); }
.share-add { display: flex; gap: 8px; }
.share-add input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--uk-border); border-radius: var(--uk-r-sm); background: var(--uk-surface); }
.share-add select, .share-list select { border: 1px solid var(--uk-border); border-radius: var(--uk-r-sm); background: var(--uk-surface); padding: 6px; }
.share-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 40vh; overflow: auto; }
.share-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--uk-line); }
.share-hint { font-size: 12px; align-self: center; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comment-thread { border: 1px solid var(--uk-line); border-radius: var(--uk-r-md); padding: 10px; background: var(--uk-surface); cursor: pointer; }
.comment-thread.is-active { border-color: var(--uk-brand); box-shadow: 0 0 0 2px var(--uk-brand-light); }
.comment-thread.is-resolved { opacity: .7; }
.comment-quote { margin: 0 0 8px; padding-left: 8px; border-left: 3px solid var(--uk-warn); color: var(--uk-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-item + .comment-item { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--uk-line); }
.comment-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.comment-meta .muted { font-size: 12px; }
.comment-edit { margin-left: auto; padding: 0 4px; display: inline-flex; align-items: center; }
.comment-del { margin-left: auto; padding: 0 4px; font-size: 12px; }
.comment-edit + .comment-del { margin-left: 0; }
.comment-body { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.comment-actions { display: flex; gap: 4px; margin-top: 6px; }
.comment-actions .btn-plain { font-size: 12px; color: var(--uk-pick-dark); }
.comment-box textarea { width: 100%; border: 1px solid var(--uk-border); border-radius: var(--uk-r-sm); padding: 6px 8px; resize: vertical; background: var(--uk-surface); font: inherit; }
.comment-box-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.presence-dot.is-two { width: auto; min-width: 26px; padding: 0 5px; border-radius: var(--uk-r-pill); font-size: 11px; letter-spacing: -.3px; }
/* 휴대폰(손가락 화면)만: 제목 칸이 한 줄을 다 쓰고, 저장 상태·함께 보는 사람·공유는 다음 줄로. PC는 좁아도 한 줄 */
@media (max-width: 600px) and (pointer: coarse) {
  .editor-title-row { flex-wrap: wrap; row-gap: 4px; }
  .doc-title { flex: 1 1 100%; width: 100%; }
  .editor-title-row .shared-from { white-space: normal; }
}
/* 표 크기 고르기 (구글 문서 방식) */
.tool-pop { position: relative; display: inline-flex; }
.tool-pop-panel, .menu-sub-panel {
  position: absolute; z-index: 60; background: var(--uk-surface); border-radius: var(--uk-r-sm); box-shadow: var(--uk-up); padding: 10px;
}
.tool-pop-panel { top: calc(100% + 4px); left: 0; }
.menu-sub { position: relative; }
.menu-sub > button { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; border: 0; background: none; padding: 6px 16px; text-align: left; cursor: pointer; }
.menu-sub > button:hover, .menu-sub > button[aria-expanded='true'] { background: var(--uk-sunk); }
.menu-sub-panel { top: -6px; left: 100%; }
/* 오른쪽 클릭 메뉴 (React ContextMenu) */
.context-menu { z-index: 200; min-width: 240px; }
/* 우클릭 메뉴 묶음(ContextMenu) - 위에 미니 도구(head)가 붙을 수 있다. 자리는 묶음이 잡고 메뉴는 그 안에 그대로 */
.context-wrap { z-index: 200; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.context-wrap > .context-menu { position: static; z-index: auto; } /* flex 안에서는 z-index가 살아나 미니 도구의 펼친 칸을 덮었다 */
.context-mini { position: relative; z-index: 1; display: flex; gap: 2px; padding: 4px; background: var(--uk-surface); border-radius: var(--uk-r-sm); box-shadow: var(--uk-up); }
.context-mini .tool { flex-direction: column; width: auto; height: auto; min-width: 52px; padding: 4px 8px; gap: 2px; }
.fb-label { font-size: 12px; line-height: 14px; color: var(--uk-fg); white-space: nowrap; }
.context-menu .menu-sub-panel { left: 100%; top: -6px; min-width: 220px; }
.context-menu button > span, .context-menu kbd { white-space: nowrap; } /* 항목이 두 줄로 꺾이지 않게 */
.table-picker { outline: none; }
.table-picker-grid { display: grid; gap: 3px; }
.table-picker-cell { width: 18px; height: 18px; padding: 0; border: 1px solid var(--uk-border); border-radius: var(--uk-r-xs); background: var(--uk-surface); cursor: pointer; }
.table-picker-cell.is-on { background: var(--uk-pick-light); border-color: var(--uk-pick); }
.table-picker-label { text-align: center; margin-top: 8px; font-size: 13px; color: var(--uk-fg); }
.table-picker:focus-visible .table-picker-label { text-decoration: underline; }
/* ───────── 2026-10-06 서식·도구·쪽 모양 ───────── */
/* 툴바 펼침 칸 */
.tool-pop-panel.is-right { left: auto; right: 0; }
.tool-pop-panel { min-width: 180px; }
.pop-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; border: 0; background: none; padding: 6px 10px; border-radius: var(--uk-r-xs); text-align: left; cursor: pointer; white-space: nowrap; }
.pop-item:hover { background: var(--uk-sunk); }
.pop-item.is-active { background: var(--uk-pick-light); color: var(--uk-pick-dark); }
.pop-item kbd { font: inherit; font-size: 12px; color: var(--uk-muted); }
/* 아이콘 + 글자 메뉴(도형 고르기 등): 아이콘과 글자를 세로 가운데로 - 예전엔 글자가 아이콘 아래 줄에 붙었다(2026-10-08 사용자 캡처) */
.pop-item > span:first-child { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.pop-item > span:first-child > svg { flex: none; }
.tool-pop-panel hr { border: 0; border-top: 1px solid var(--uk-line); margin: 6px 0; }
.tool-font { display: inline-flex; align-items: center; gap: 2px; width: 140px; max-width: 140px; justify-content: space-between; text-align: left; }
.tool-font > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-font.is-open { background: var(--uk-sunk); }
/* 글꼴 목록 (React TextTools FontSelect) - 검색 + 최근 사용 + 분류. 목록만 스크롤 */
.font-list { display: flex; flex-direction: column; width: 260px; }
.font-search { margin: 4px 4px 6px; padding: 7px 10px; border: 1px solid var(--uk-border); border-radius: var(--uk-r-xs); background: var(--uk-paper); color: var(--uk-fg); font: inherit; font-size: 14px; }
.font-search:focus { outline: 2px solid var(--uk-brand); outline-offset: -1px; }
.font-scroll { max-height: min(420px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.font-group { padding: 8px 10px 4px; font-size: 12px; color: var(--uk-muted); }
.font-item { display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--uk-r-xs); background: none; color: var(--uk-fg); font-size: 16px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-item:hover { background: var(--uk-sunk); }
.font-item.is-active { background: var(--uk-brand-light); color: var(--uk-brand-dark); }
.font-none { padding: 12px 10px; color: var(--uk-muted); font-size: 13px; }
.font-size { display: inline-flex; align-items: center; }
.font-size-input { width: 44px; height: 26px; padding: 0 2px; box-sizing: border-box; font: inherit; font-size: 14px; text-align: center; color: var(--uk-fg); border: 1px solid var(--uk-border); border-radius: var(--uk-r-xs); background: var(--uk-surface); }
.color-a { display: inline-block; line-height: 1; padding-bottom: 1px; border-bottom: 4px solid; font-weight: 700; }
.color-grid { display: flex; flex-direction: column; gap: 3px; }
.color-row { display: flex; gap: 3px; }
.color-row:nth-child(3) { margin-bottom: 6px; }
.color-cell { width: 20px; height: 20px; padding: 0; border: 1px solid rgba(var(--uk-shc), .12); border-radius: 50%; cursor: pointer; }
.color-cell:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--uk-brand-light); }
.color-none { border: 0; background: none; padding: 4px 6px; text-align: left; cursor: pointer; border-radius: var(--uk-r-xs); margin-bottom: 4px; }
.color-none:hover { background: var(--uk-sunk); }
/* 스크롤과 상관없이 눈금자 아래 왼쪽 (구글 문서 자리) */
.editor-body { position: relative; }
#root .field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; border: 0; padding: 0; }
#root .field > span:first-child, #root .field legend { font-size: 13px; color: var(--uk-muted); padding: 0; }
#root .field input, #root .field select, #root .field textarea { padding: 7px 10px; border: 1px solid var(--uk-border); border-radius: var(--uk-r-sm); background: var(--uk-surface); }
#root .field-row { display: flex; gap: 6px; }
#root .field-row input { flex: 1; }
#root .field-inline { flex-direction: row; align-items: center; gap: 8px; }
#root .field-inline > span:first-child { width: 48px; }
#root .field-inline input { width: 80px; }
#root .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
#root .form-grid > :last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
#root .check { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-size: 14px; }
/* 댓글 반응 */
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.reaction { border: 1px solid var(--uk-border); background: var(--uk-surface); border-radius: var(--uk-r-pill); padding: 1px 8px; font-size: 12px; cursor: pointer; }
.reaction.is-mine { background: var(--uk-pick-light); border-color: var(--uk-pick); }
.reaction-add { position: relative; }
.reaction-add .btn-plain { font-size: 12px; padding: 2px 4px; opacity: .6; }
.reaction-pick { position: absolute; z-index: 20; bottom: 100%; left: 0; display: flex; gap: 2px; padding: 4px; background: var(--uk-surface); border-radius: var(--uk-r-pill); box-shadow: var(--uk-up); }
.reaction-pick button { border: 0; background: none; font-size: 16px; cursor: pointer; padding: 2px 4px; border-radius: 50%; }
.reaction-pick button:hover { background: var(--uk-sunk); }
/* 툴바 묶음: 한 줄, 묶음 사이 세로줄. 넘치는 묶음은 ⋮ 안으로 (Toolbar.tsx OverflowBar) */
.tool-group { display: flex; align-items: center; gap: 2px; flex: none; padding: 0 4px; }
.tool-group + .tool-group { border-left: 1px solid var(--uk-border); }
/* ⋮ 안: 자르거나 스크롤하지 않는다 - 안의 펼침 메뉴(정렬·줄 간격·색)가 상자 밖으로 다 보이게. 폭이 모자라면 줄을 바꾼다 */
.tool-more { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; padding: 2px; width: max-content; max-width: calc(100vw - 32px); overflow: visible; }
.tool-more .tool-group { border-left: 0; padding: 0; flex-wrap: wrap; row-gap: 4px; max-width: 100%; min-width: 0; } /* 묶음 하나가 칸보다 넓으면 묶음 안에서도 줄 바꿈 */
.tool-more .tool-group + .tool-group { border-left: 1px solid var(--uk-border); padding-left: 4px; margin-left: 4px; }
/* 그림·표를 고르면 그 위에 뜨는 도구 띠 */
.selection-tools { position: fixed; z-index: 40; display: flex; align-items: center; gap: 2px; padding: 3px 6px; background: var(--uk-surface); border-radius: var(--uk-r-sm); box-shadow: var(--uk-up); }
.selection-tools .tool { font-size: 12px; height: 28px; }
.comments-toggle { display: inline-flex; align-items: center; gap: 4px; color: var(--uk-fg); }
/* 저장소 파일을 처음 열 때 진행 표시(ImportProgress.tsx, 2026-10-07) - 빈 종이 위 가운데 카드. 편집 화면을 덮지 않고(클릭 통과) 보여만 준다 */
.import-progress { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
.import-progress-card {
  display: flex; align-items: flex-start; gap: 14px; max-width: 420px; width: 100%; padding: 18px 20px;
  background: var(--uk-surface); color: var(--uk-fg); border: 1px solid var(--uk-line); border-radius: var(--uk-r-lg); box-shadow: var(--uk-up-lg);
  animation: ui-dialog-in .15s ease-out;
}
.import-progress-card strong { font-size: 16px; }
.import-progress-name { margin-top: 2px; font-size: 13px; color: var(--uk-muted); overflow-wrap: anywhere; }
.import-progress-detail { margin-top: 8px; font-size: 14px; }
.import-progress-hint { margin-top: 4px; font-size: 12px; color: var(--uk-muted); }
.import-progress-spin {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  border: 3px solid var(--uk-line); border-top-color: var(--uk-brand); animation: import-spin .8s linear infinite;
}
@keyframes import-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .import-progress-spin { animation-duration: 2.4s; } .import-progress-card { animation: none; } }
/* 테두리 두께·모양 고르기 (FillBorder.tsx, 2026-10-08) - 글자 + 선 미리보기 */
.border-pick { display: flex; flex-direction: column; min-width: 150px; }
.border-pick-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--uk-r-xs); background: none; color: var(--uk-fg); cursor: pointer; white-space: nowrap; }
.border-pick-item:hover { background: var(--uk-sunk); }
.border-pick-item.is-active { background: var(--uk-pick-light); color: var(--uk-pick-dark); }
.border-pick-label { font-size: 13px; min-width: 32px; text-align: left; }
.border-pick-line { flex: none; }
/* 테두리 칸 (FillBorder - PowerPoint '도형 윤곽선'처럼): 색 → 구분선 → 두께 ▸ · 모양 ▸ */
.border-panel { display: flex; flex-direction: column; }
.border-panel > hr { width: 100%; margin: 8px 0 4px; border: 0; border-top: 1px solid var(--uk-line); }
.border-panel .menu-sub > button { padding: 6px 8px; border-radius: var(--uk-r-xs); color: var(--uk-fg); font-size: 14px; }
.border-panel .menu-label { display: inline-flex; align-items: center; gap: 4px; }
.border-sub { z-index: 300; } /* 자리는 FillBorder가 화면 기준(fixed)으로 - 스크롤 패널 안에서도 안 잘리게. 오른쪽 끝이면 왼쪽(.is-left) */
/* 다른 이름으로 저장 창 (SaveAsDialog.tsx, 2026-10-08) - 이름·저장할 곳(노바프 저장소/내 PC)·형식·폴더 고르기 */
.save-as { display: flex; flex-direction: column; gap: 14px; min-width: min(520px, 80vw); }
.save-as-row { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.save-as-row > span:first-child { color: var(--uk-muted); }
.save-as-name { display: flex; align-items: center; gap: 6px; }
.save-as-name input, .save-as-row select { flex: 1; width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--uk-border); border-radius: var(--uk-r-xs); background: var(--uk-surface); color: var(--uk-fg); font: inherit; }
.save-as-where { display: flex; gap: 8px; flex-wrap: wrap; }
.save-as-choice { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 1px solid var(--uk-border); border-radius: var(--uk-r-xs); background: var(--uk-surface); color: var(--uk-fg); cursor: pointer; font: inherit; }
.save-as-choice.is-active { border-color: var(--uk-brand); background: var(--uk-pick-light); color: var(--uk-pick-dark); font-weight: 600; }
.save-as-folders { display: flex; flex-direction: column; gap: 6px; }
.save-as-path { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 13px; }
.save-as-path span { display: inline-flex; align-items: center; gap: 2px; }
.save-as-path button { border: 0; background: none; padding: 2px 6px; border-radius: var(--uk-r-xs); color: var(--uk-brand-dark); cursor: pointer; font: inherit; }
.save-as-path button:hover { background: var(--uk-sunk); }
.save-as-list { list-style: none; margin: 0; padding: 4px; height: 220px; overflow: auto; border: 1px solid var(--uk-border); border-radius: var(--uk-r-sm); background: var(--uk-surface); }
.save-as-list li.muted { padding: 10px; font-size: 13px; }
.save-as-list button { display: flex; align-items: center; gap: 4px; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--uk-r-xs); background: none; color: var(--uk-fg); text-align: left; cursor: pointer; font: inherit; font-size: 14px; }
.save-as-list button:hover { background: var(--uk-sunk); }
.save-as-list button > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-as-list svg { flex: none; color: var(--uk-folder); }
.save-as-hint { margin: 0; font-size: 12px; }
/* 파일 열기 창 (OpenDialog.tsx) - 다른 이름으로 저장 창과 같은 틀 + 파일 줄(크기·때), 고른 파일 */
.open-list { height: 280px; }
.save-as-list button.is-file small { flex: none; font-size: 12px; }
.save-as-list button.is-file svg { color: var(--uk-brand); }
.save-as-list button.is-picked { background: var(--uk-pick-light); color: var(--uk-pick-dark); }
.save-as-indent { margin: -8px 0 0 92px; } /* 줄 이름 칸(80px)+사이(12px) 뒤에 맞춘 안내 */
.save-as-choice:disabled { opacity: .45; cursor: not-allowed; }
.save-as-name { flex-wrap: wrap; }
.save-as-name input { min-width: 140px; }
.save-as-name select { flex: 0 1 auto; width: auto; max-width: 100%; }
.save-as-row.is-name { grid-template-columns: 1fr; } /* 줄 이름 없이 칸 안 안내(placeholder "이름") - 2026-10-18 */ /* 형식 = 이름 바로 뒤 확장자 자리(2026-10-18) - 좁으면 다음 줄로 */

/* ── 휴대폰 편집 화면 (2026-10-12 사용자 "구글 문서 앱처럼 위쪽 깔끔하게", claude_common/react/mobile-editor.md) ──
   손가락 화면 + 600px 이하만(React phone.ts PHONE_QUERY와 같은 조건). 본문은 그대로, 위 줄은 아이콘 한 줄, 서식 툴바는 카드 없이 화면 아래(자판 바로 위) */
@media (max-width: 600px) {
  .toolbar { margin: 0; border-radius: 0; } /* 좁은 화면 툴바도 카드로 띄우지 않는다 */
}
@media (max-width: 600px) and (pointer: coarse) {
  /* 화면 높이에 고정, 넘치는 것은 본문 안에서만 스크롤 - 페이지 전체가 밀려 위 줄이 화면 밖으로 나가지 않게
     (:root를 붙여 앱 CSS의 .editor-shell { height: 100% }보다 앞선다 - 슬라이드는 목록·종이·메모가 세로로 쌓여 페이지가 밀렸다) */
  :root .editor-shell { height: var(--app-h, 100dvh); overflow: hidden; }
  .editor-shell > .editor-body { min-height: 0; overflow: auto; }
  .editor-top.is-phone { display: flex; align-items: center; gap: 0; padding: 4px 4px; min-height: 52px; border-bottom: 1px solid var(--uk-line); }
  .phone-spacer { flex: 1; }
  .phone-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--uk-fg); cursor: pointer; text-decoration: none; }
  .phone-btn:active, .phone-btn.is-active { background: var(--uk-sunk); }
  .phone-btn:disabled { opacity: .35; }
  .phone-done { color: var(--uk-brand); }
  .phone-badge { position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--uk-r-pill); background: var(--uk-brand); color: var(--uk-on-strong); font-size: 10px; line-height: 16px; text-align: center; }
  /* 서식 툴바 = 화면 아래, 자판 바로 위 (본문 뒤로 순서만 바꾼다) */
  .editor-shell > .editor-body { order: 5; }
  .editor-shell > .toolbar { order: 10; flex: none; border-top: 1px solid var(--uk-line); border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .editor-shell > .toolbar .tool-pop-panel { top: auto; bottom: calc(100% + 6px); } /* 위로 연다 - 안쪽 펼침(⋮ 안 정렬 등)이 잘리지 않게 스크롤 칸으로 만들지 않는다 */
  /* 아래 줄 ⋮(넘친 묶음)는 줄 전체 폭에 맞춰 연다 - ⋮가 왼쪽에 있으면(시트·슬라이드처럼 들어가는 묶음이 적으면) 화면 왼쪽 밖으로 나갔다 */
  .editor-shell > .toolbar { position: relative; }
  .editor-shell > .toolbar > .tool-pop:last-child { position: static; }
  .editor-shell > .toolbar > .tool-pop:last-child > .tool-pop-panel { left: 8px; right: 8px; }
  .editor-shell > .toolbar > .tool-pop:last-child > .tool-pop-panel > .tool-more { width: auto; max-width: none !important; } /* 칸 폭 안에서 줄 바꿈 */
}
/* ⋮·서식·삽입 시트 안 (휴대폰) */
.react-sheet .phone-sheet-head { display: flex; align-items: center; gap: 8px; padding: 4px 52px 12px 16px; border-bottom: 1px solid var(--uk-line); }
.react-sheet .phone-sheet-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.react-sheet .phone-sheet-title .doc-title { max-width: none; width: 100%; font-size: 18px; font-weight: 600; padding: 4px 6px; border: 1px solid transparent; }
.react-sheet .phone-sheet-title .doc-title:focus { border-color: var(--uk-brand); }
.react-sheet .phone-sheet-title .save-status { display: inline-flex; align-items: center; gap: 4px; padding-left: 7px; white-space: normal; }
.react-sheet .phone-sheet-share { padding: 12px 16px 4px; }
.react-sheet .phone-sheet-share .button { width: 100%; }
.react-sheet .phone-sheet-menu-label, .react-sheet .phone-sheet-items > button, .react-sheet .phone-sheet-sub > button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 20px;
  border: 0; background: none; color: var(--uk-fg); font: inherit; font-size: 16px; text-align: left; cursor: pointer;
}
.react-sheet .phone-sheet-menu-label { font-weight: 600; border-top: 1px solid var(--uk-line); }
.react-sheet .phone-sheet-menu:first-child .phone-sheet-menu-label { border-top: 0; }
.react-sheet .phone-sheet-menu .phone-sheet-items > button, .react-sheet .phone-sheet-menu .phone-sheet-sub > button { padding-left: 32px; }
.react-sheet .phone-sheet-items > button:active, .react-sheet .phone-sheet-sub > button:active, .react-sheet .phone-sheet-menu-label:active { background: var(--uk-sunk); }
.react-sheet .phone-sheet-items > button:disabled { opacity: .45; }
.react-sheet .phone-sheet-items > button.is-active { color: var(--uk-brand); }
.react-sheet .phone-sheet-items hr { border: 0; border-top: 1px solid var(--uk-line); margin: 4px 20px; }
.react-sheet .phone-sheet-items .menu-label { display: inline-flex; align-items: center; gap: 4px; }
.react-sheet svg.is-open { transform: rotate(180deg); }
.react-sheet .phone-sheet-panel { padding: 4px 20px 12px; }
.react-sheet .phone-sheet-panel .menu-sub-panel, .react-sheet .phone-sheet-panel > * { position: static; box-shadow: none; }
.react-sheet:focus { outline: none; }
.editor-top.is-phone .phone-btn:focus { outline: none; } /* 시트를 닫으면 초점이 단추로 돌아와 테두리가 남았다(아이폰) - 손가락 화면 전용 줄 */
.editor-top.is-phone .phone-draft { color: var(--uk-warn-fg); }
/* React 바닥 시트(Sheet.tsx): 손잡이·X·제목은 고정, 안쪽(.react-sheet-body)만 스크롤 */
dialog.react-sheet[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.react-sheet > .react-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* ── 열린 파일 탭 (2026-10-13, react/components/EditorTabs.tsx, 규칙 ui/editor-shell.md "열린 파일 탭") ──
   제목 줄이 메모장처럼 탭 줄 - 지금 탭 자리는 제목 칸 그대로, 다른 탭은 그림+이름, × 닫기, + 새로 만들기·열기. 좁으면 제목 + ▾ */
.editor-tabs { display: flex; align-items: center; gap: 2px; min-width: 0; flex: 0 1 auto; }
.editor-tabs-scroll { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.editor-tabs-scroll::-webkit-scrollbar { display: none; }
.editor-tab { display: flex; align-items: center; flex: none; border-radius: var(--uk-r-sm); }
.editor-tab:not(.is-active):hover { background: var(--uk-sunk); }
.editor-tabs.is-many .editor-tab.is-active { box-shadow: inset 0 -2px 0 var(--uk-brand); border-radius: var(--uk-r-xs) var(--uk-r-xs) 0 0; }
.editor-tabs.is-many .doc-title, .editor-tab-ghost .doc-title { max-width: 300px; font-size: 14px; } /* 탭이 여럿이면 지금 탭 글자도 다른 탭과 같은 크기 (10-14 사용자) */
.editor-tabs.is-many .editor-tab.is-active { padding-left: 8px; gap: 2px; }
.editor-tabs.is-many .editor-tab.is-active > .file-icon { flex: none; }
.editor-tabs.is-dragging, .editor-tabs.is-dragging * { user-select: none; cursor: grabbing; } /* 탭 끌어 옮기기 (10-14) */
.editor-tab.is-drag { background: var(--uk-sunk); opacity: .8; }
/* 끄는 동안 (10-14 사용자 "고스트" - 둘 다): 마우스를 따라오는 반투명 탭(.editor-tab-ghost, body에 띄움) + 놓일 자리의 흐린 빈칸(.is-placeholder) */
.editor-tab.is-placeholder { background: var(--uk-sunk); box-shadow: inset 0 0 0 1px var(--uk-line) !important; border-radius: var(--uk-r-sm) !important; }
.editor-tab.is-placeholder > * { visibility: hidden; }
.editor-tab-ghost { position: fixed; z-index: 10000; margin: 0; pointer-events: none; opacity: .75; background: var(--uk-surface); box-shadow: var(--uk-up); border-radius: var(--uk-r-sm); cursor: grabbing; }
.editor-tab-ghost .doc-title { border-color: transparent; background: none; }
.editor-tab-go { display: flex; align-items: center; gap: 4px; min-width: 0; border: 0; background: none; padding: 4px 2px 4px 8px; color: var(--uk-muted); font: inherit; font-size: 14px; cursor: pointer; }
.editor-tab-go svg { flex: none; }
.editor-tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.editor-tab-x { display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--uk-muted); cursor: pointer; }
.editor-tab-x:hover { background: var(--uk-border); color: var(--uk-fg); }
.editor-tab:not(.is-active) .editor-tab-x { opacity: .55; }
.editor-tab:hover .editor-tab-x, .editor-tab-x:focus-visible { opacity: 1; }
.editor-tab-add, .editor-tab-list { position: relative; flex: none; display: flex; }
.editor-tab-plus, .editor-tab-drop { display: inline-flex; align-items: center; gap: 2px; padding: 4px; color: var(--uk-muted); }
.editor-tab-count { min-width: 18px; padding: 0 4px; border-radius: var(--uk-r-pill); background: var(--uk-sunk); color: var(--uk-fg); font-size: 12px; font-weight: 600; text-align: center; }
.editor-tabs.is-narrow { gap: 4px; }
.editor-tab-pop { min-width: 240px; max-width: min(360px, 90vw); }
.editor-tab-pop .pop-item { display: flex; align-items: center; justify-content: flex-start; gap: 4px; width: 100%; }
.editor-tab-pop hr { margin: 4px 0; border: 0; border-top: 1px solid var(--uk-line); }
.editor-tab-rows { display: flex; flex-direction: column; }
.editor-tab-row { display: flex; align-items: center; border-radius: var(--uk-r-sm); padding-right: 6px; }
.editor-tab-row .editor-tab-go { flex: 1; padding: 8px 10px; color: var(--uk-fg); }
.editor-tab-row .editor-tab-name { max-width: none; }
.editor-tab-row:hover { background: var(--uk-sunk); }
.editor-tab-row.is-active { background: var(--uk-brand-light); }
.editor-tab-row.is-active .editor-tab-name { font-weight: 600; }
.phone-tabs-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 3px; border: 2px solid currentColor; border-radius: var(--uk-r-xs); font-size: 12px; font-weight: 700; }
.react-sheet .editor-tab-rows { padding: 0 8px; }
/* 저장할 곳 - 쓸 수 없는 곳은 회색 (2026-10-14, SaveAsDialog LocationPicker) */
.save-as-list button:disabled { opacity: .45; cursor: not-allowed; }
.save-as-list button:disabled:hover { background: none; }
.save-as-list button small { flex: none; font-size: 12px; }
/* 저장할 곳 트리 (10-14 사용자 "노바프 ㄴ저장소 ㄴPC공유폴더 ㄴ구글드라이브 트리 구조로") - 줄 모양은 공통 tree.css, 저장 창 목록 단추 모양을 덮는다 */
.save-as-tree { padding: 4px 0; }
.save-as-tree ul { list-style: none; margin: 0; padding: 0; }
.save-as-tree .tree-row { height: 32px; }
.save-as-tree .tree-row button.tree-arrow { width: 24px; min-width: 24px; height: 24px; padding: 0; justify-content: center; flex: 0 0 auto; }
.save-as-tree .tree-row button.tree-arrow svg { color: var(--uk-muted); }
.save-as-tree .tree-row button.tree-name { flex: 1 1 auto; width: auto; height: 100%; padding: 0 4px; gap: 4px; border-radius: 0; }
.save-as-tree .tree-row button:hover { background: none; }
.save-as-tree .tree-row.is-off button.tree-arrow { opacity: 0; }
.save-as-tree .tree-wait { display: flex; align-items: center; gap: 4px; height: 32px; font-size: 13px; }
div.save-as-path { padding: 2px 6px; color: var(--uk-pick-dark); }
/* 저장할 곳 탭 [노바프 저장소 | 로컬저장소] - 아래 상자와 붙은 한 쌍 (10-14 사용자 "붙여서 한 쌍의 탭으로, UI도 탭처럼 보이게")
   켜진 탭 = 상자와 같은 바탕·테두리가 이어짐(아래 선 없음), 꺼진 탭 = 옅은 회색 바탕 */
.save-as-tabbox { display: flex; flex-direction: column; gap: 0; }
.save-as-tabs { display: flex; align-items: flex-end; gap: 0; position: relative; z-index: 1; margin-bottom: -1px; }
.save-as-tabs button { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 16px; border: 1px solid var(--uk-border); border-radius: var(--uk-r-sm) var(--uk-r-sm) 0 0; background: var(--uk-head); color: var(--uk-muted); font: inherit; font-size: 14px; cursor: pointer; }
.save-as-tabs button + button { margin-left: -1px; }
.save-as-tabs button:hover { color: var(--uk-fg); }
.save-as-tabs button svg { opacity: .8; }
.save-as-tabs button.is-active { z-index: 1; background: var(--uk-surface); border-bottom-color: var(--uk-surface); color: var(--uk-fg); font-weight: 700; }
.save-as-tabs button.is-active svg { opacity: 1; color: var(--uk-pick); }
.save-as-tabs button:focus-visible { outline: 2px solid var(--uk-brand); outline-offset: -2px; }
.save-as-tabbox .save-as-list, .save-as-tabbox .save-as-local { border-top-left-radius: 0; }
.save-as-tabbox .save-as-folders { gap: 6px; }
.save-as-local { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 222px; padding: 16px; border: 1px solid var(--uk-border); border-radius: var(--uk-r-sm); background: var(--uk-surface); text-align: center; font-size: 14px; }
.save-as-local svg { color: var(--uk-muted); }
.save-as-local p { margin: 0; }
.save-as-local p.muted { font-size: 12.5px; }
.save-as-folders div.save-as-path { font-size: 13px; padding: 2px 2px 0; }
.save-as-folders[hidden] { display: none; }
.save-as-tree .tree-file .tree-arrow { visibility: hidden; } /* 파일 줄(열기 창)은 펼칠 것이 없다 */
/* 저장할 곳 트리 색 (10-14 사용자 "선택 가능한 폴더는 노랑, 선택할 수 없는 건 파랑") - 묶음 줄(노바프·PC 공유 폴더)은 파랑·보통 글자, 구글·MYBOX는 제 로고 그대로 */
.save-as-tree .tree-row.is-group .tree-name > svg { color: var(--uk-brand); }
/* 탭을 바꿔도 크기 그대로 (10-14 사용자 "로컬저장소를 선택하면 화면이 줄어들어") - 트리 칸은 늘 자리를 차지하고(보이지만 않게), 로컬저장소 안내는 그 위에 겹친다 */
.save-as-panes { position: relative; }
.save-as-panes > .save-as-local { position: absolute; inset: 0; height: auto; } /* z-index를 주지 않는다 - 주면 켜진 탭 밑(선을 가리는 자리)을 덮어 로컬저장소 탭 아래에 선이 보였다(10-14 사용자) */
/* 탭 폭은 모두 같게 (10-14 사용자 "탭 크기도 일정하게 - 길이에 따라 다르게 할 필요 없어") - 크롬처럼 고정 폭, 긴 이름은 …, ×는 오른쪽 끝 */
.editor-tabs.is-many .editor-tab { flex: 0 0 180px; width: 180px; min-width: 0; }
.editor-tabs.is-many .editor-tab .editor-tab-go { flex: 1 1 auto; min-width: 0; }
.editor-tabs.is-many .editor-tab .editor-tab-name { flex: 1 1 auto; min-width: 0; max-width: none; text-align: left; }
.editor-tabs.is-many .editor-tab.is-active .doc-title { flex: 1 1 auto; min-width: 0; width: 100%; max-width: none; field-sizing: fixed; text-overflow: ellipsis; }
.editor-tabs.is-many .editor-tab .editor-tab-x { margin-left: auto; margin-right: 4px; }
/* 로컬저장소 트리(앱 안, LocalTree.tsx 10-14) - 안내 상자 대신 노바프 저장소 트리와 같은 모양 */
.save-as-panes > .save-as-local.is-tree { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; padding: 0; border: 0; background: none; text-align: left; }
.save-as-local.is-tree .save-as-list { flex: 1 1 auto; height: auto; min-height: 0; border-top-left-radius: var(--uk-r-sm); }
.save-as-local-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.save-as-local-tools { display: inline-flex; align-items: center; gap: 4px; }
.save-as-local-tools .btn-plain { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; font-size: 12.5px; color: var(--uk-fg); }
.save-as-tree span.tree-name { display: flex; align-items: center; gap: 4px; padding: 0 4px; color: var(--uk-muted); cursor: default; } /* 로컬저장소 트리의 파일 줄(고를 수 없음) */
/* ── 머리줄 두 줄 (2026-10-14 사용자 시안, EditorShell EditorHeader is-rows) ──
   1줄 = ☰(목록으로) + 열린 파일 탭 + 오른쪽 끝 저장 상태, 2줄 = 메뉴 + 오른쪽 끝 단추(댓글·모니터·발표·공유·서비스 모음·프로필) */
.editor-top.is-rows { flex-direction: column; align-items: stretch; gap: 0; padding: 2px 12px 0; }
.editor-tabrow { display: flex; align-items: center; gap: 4px; min-height: 42px; min-width: 0; }
.editor-burger { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--uk-r-sm); color: var(--uk-fg); text-decoration: none; }
.editor-burger:hover { background: var(--uk-sunk); }
.editor-burger:focus-visible { outline: 2px solid var(--uk-brand); outline-offset: -2px; }
.editor-tabrow .editor-title-row { flex: 1 1 auto; min-width: 0; }
.editor-status { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 12px; color: var(--uk-muted); font-size: 12.5px; white-space: nowrap; }
.editor-status .save-status { font-size: inherit; color: inherit; }
.editor-status.is-warn, .editor-status.is-warn .save-status { color: var(--uk-warn-fg); }
.editor-status.is-busy svg { animation: loc-badge-pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .editor-status.is-busy svg { animation: none; } }
.editor-menurow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid var(--uk-line); }
.editor-menurow .menubar { flex: 1 1 auto; min-width: 0; }
.editor-menurow .editor-actions { gap: 10px; }
/* 탭을 밑줄 대신 브라우저 탭처럼 (10-14 사용자 "탭메뉴도 라인만 넣지 말고 깔끔하게"):
   탭 줄 바탕은 한 톤 어둡게, 지금 탭은 아래 메뉴 줄과 같은 바탕으로 이어 붙인 둥근 머리, 다른 탭은 글자만 + 마우스를 올리면 옅게, 탭 사이 가는 세로선 */
.editor-top.is-rows { padding-top: 0; }
.editor-top.is-rows .editor-tabrow { margin: 0 -12px; padding: 6px 12px 0; background: var(--uk-bg); align-items: flex-end; min-height: 44px; }
.editor-top.is-rows .editor-burger, .editor-top.is-rows .editor-status { align-self: center; margin-bottom: 4px; }
.editor-top.is-rows .editor-tabs { align-self: stretch; align-items: flex-end; }
.editor-top.is-rows .editor-tabs-scroll { align-self: stretch; align-items: flex-end; gap: 0; }
.editor-top.is-rows .editor-tab { position: relative; height: 36px; padding: 0 6px 0 4px; border-radius: 10px 10px 0 0; box-shadow: none !important; }
.editor-top.is-rows .editor-tab:not(.is-active):hover { background: color-mix(in srgb, var(--uk-surface) 55%, transparent); }
.editor-top.is-rows .editor-tab.is-active { background: var(--uk-surface); color: var(--uk-fg); }
/* 지금 탭 양옆 아래 귀퉁이를 바깥으로 둥글게 - 메뉴 줄과 한 덩어리로 보이게 */
.editor-top.is-rows .editor-tab.is-active::before,
.editor-top.is-rows .editor-tab.is-active::after { content: ""; position: absolute; bottom: 0; width: 10px; height: 10px; pointer-events: none; }
.editor-top.is-rows .editor-tab.is-active::before { left: -10px; background: radial-gradient(circle at 0 0, transparent 9.5px, var(--uk-surface) 10px); }
.editor-top.is-rows .editor-tab.is-active::after { right: -10px; background: radial-gradient(circle at 100% 0, transparent 9.5px, var(--uk-surface) 10px); }
/* 다른 탭 사이 가는 세로선 (지금 탭 옆·마우스를 올린 탭 옆은 없앤다) */
.editor-top.is-rows .editor-tab:not(.is-active) + .editor-tab:not(.is-active)::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--uk-border); }
.editor-top.is-rows .editor-tab:not(.is-active):hover::before, .editor-top.is-rows .editor-tab:not(.is-active):hover + .editor-tab::before { display: none; }
.editor-top.is-rows .editor-tab .editor-tab-go { color: var(--uk-muted); }
.editor-top.is-rows .editor-tab.is-active .doc-title { color: var(--uk-fg); }
.editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active { padding-left: 10px; }
.editor-top.is-rows .editor-tab-add { align-self: center; margin-bottom: 2px; }
.editor-top.is-rows .editor-menurow { border-top: 0; }
/* 탭이 하나여도 같은 탭 머리 (10-14 - 제목만 떠 있으면 어색했다) */
.editor-top.is-rows .editor-tabs:not(.is-many) .editor-tab.is-active { padding: 0 10px 0 6px; }
.editor-top.is-rows .editor-tabs:not(.is-many) .doc-title { font-size: 14px; }
/* 끌 때 흐린 빈칸·고스트도 같은 모양 */
.editor-top.is-rows .editor-tab.is-placeholder { background: color-mix(in srgb, var(--uk-surface) 40%, transparent); box-shadow: none !important; border-radius: 10px 10px 0 0 !important; }
.editor-tab-ghost { border-radius: 10px 10px 0 0; }
/* 탭 줄과 지금 탭 구분을 뚜렷하게 (10-14 사용자 "색상이 너무 비슷해서 구분이 안 가") - 탭 줄 바탕을 한 단계 더 어둡게(다크에서도 어둡게), 지금 탭 제목은 굵게 */
.editor-top.is-rows .editor-tabrow { background: color-mix(in srgb, #000 9%, var(--uk-bg)); }
.editor-top.is-rows .editor-tab:not(.is-active):hover { background: color-mix(in srgb, var(--uk-surface) 60%, transparent); }
.editor-top.is-rows .editor-tab.is-active .doc-title { font-weight: 600; }
.editor-top.is-rows .editor-tab:not(.is-active) .editor-tab-go { color: color-mix(in srgb, var(--uk-fg) 70%, transparent); }
.editor-top.is-rows .editor-tab:not(.is-active) + .editor-tab:not(.is-active)::before { background: color-mix(in srgb, var(--uk-fg) 25%, transparent); }
/* 탭 다듬기 (10-14 사용자 "구분은 잘 되는데 디자인적으로 투박") - 진한 회색 대신 옅은 바탕 + 가는 아래 선,
   지금 탭은 가는 테두리로 감싸 그 선 위에 올라탄 모양(아래 선을 덮는다), 바깥 곡선은 없앰, 다른 탭은 마우스를 올리면 안쪽 둥근 칠만 */
.editor-top.is-rows .editor-tabrow { background: color-mix(in srgb, #000 4%, var(--uk-bg)); box-shadow: inset 0 -1px 0 var(--uk-border); padding-top: 7px; }
.editor-top.is-rows .editor-tab.is-active::before, .editor-top.is-rows .editor-tab.is-active::after { display: none; }
.editor-top.is-rows .editor-tab { height: 34px; border-radius: 8px 8px 0 0; }
.editor-top.is-rows .editor-tab.is-active {
  background: var(--uk-surface); border: 1px solid var(--uk-border); border-bottom: 0; margin-bottom: 0;
  box-shadow: 0 1px 0 var(--uk-surface), 0 -1px 3px rgba(15, 23, 42, .05) !important; /* 아래 1px = 탭 줄 아래 선을 덮어 메뉴 줄과 이어짐 */
}
.editor-top.is-rows .editor-tab.is-active .doc-title { font-weight: 500; }
.editor-top.is-rows .editor-tab:not(.is-active):hover { background: none; }
.editor-top.is-rows .editor-tab:not(.is-active):hover .editor-tab-go { background: color-mix(in srgb, var(--uk-fg) 7%, transparent); border-radius: 6px; }
.editor-top.is-rows .editor-tab:not(.is-active) .editor-tab-go { margin: 3px 0; padding-top: 3px; padding-bottom: 3px; }
.editor-top.is-rows .editor-tab:not(.is-active) + .editor-tab:not(.is-active)::before { top: 10px; bottom: 10px; background: var(--uk-border); }
.editor-top.is-rows .editor-tab.is-placeholder { background: color-mix(in srgb, #000 6%, var(--uk-bg)); border-radius: 8px 8px 0 0 !important; }
.editor-tab-ghost { border-radius: 8px 8px 0 0; }
/* 문서를 여는 동안(EditorLoading, 10-14) - 머리줄은 진짜와 같은 자리, 툴바 자리 높이 그대로, 본문 자리에 도는 표시 */
.editor-shell.is-loading { height: 100%; }
.editor-shell.is-loading .editor-menurow { min-height: 44px; }
.editor-loading-bar { min-height: 41px; }
.editor-loading-body { flex: 1; display: grid; place-items: center; background: var(--uk-bg); }
.editor-loading-body .tree-spin { width: 22px; height: 22px; border: 2px solid var(--uk-border); border-top-color: var(--uk-brand); border-radius: 50%; animation: tree-spin .7s linear infinite; }
@keyframes tree-spin { to { transform: rotate(360deg); } }
.editor-shell.is-loading .editor-tab-name.is-current { padding: 2px 7px; font-size: 14px; font-weight: 500; color: var(--uk-fg); max-width: 300px; } /* 여는 동안 지금 탭 제목 */
/* 좁은 창(탭 대신 제목 + 열린 파일 수 ▾, 10-14 사용자 "한 줄일 때 푹 떨어지는데 PC 화면과 비슷하게") - 제목을 지금 탭과 같은 머리로 */
.editor-top.is-rows .editor-tabs.is-narrow { align-self: stretch; align-items: flex-end; gap: 4px; min-width: 0; }
.editor-top.is-rows .editor-tabs.is-narrow > .doc-title {
  height: 34px; min-width: 0; max-width: min(320px, 100%); padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--uk-fg);
  background: var(--uk-surface); border: 1px solid var(--uk-border); border-bottom: 0; border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 0 var(--uk-surface), 0 -1px 3px rgba(15, 23, 42, .05); text-overflow: ellipsis;
}
.editor-top.is-rows .editor-tabs.is-narrow > .doc-title:focus { border-color: var(--uk-brand); }
.editor-top.is-rows .editor-tabs.is-narrow .editor-tab-list { align-self: center; margin-bottom: 2px; }
/* 탭 위 여백을 줄이고 탭을 키움 (10-14 사용자 "여백이 있으니까 탭을 키우거나 여백을 줄여도") */
.editor-top.is-rows .editor-tabrow { padding-top: 3px; min-height: 42px; }
.editor-top.is-rows .editor-tab, .editor-top.is-rows .editor-tabs.is-narrow > .doc-title { height: 38px; }
.editor-top.is-rows .editor-burger, .editor-top.is-rows .editor-status { margin-bottom: 3px; }
/* 좁은 창에서 메뉴가 오른쪽 단추에 가려 잘리던 것 (10-14 사용자 "이렇게 잘리는데 아래로 내려가야") - 남는 메뉴는 아랫줄로, 단추는 오른쪽 위 그대로 */
.editor-menurow { align-items: center; padding: 3px 0; }
.editor-menurow .menubar { flex-wrap: wrap; overflow: visible; row-gap: 2px; }
.editor-menurow .editor-actions { align-self: center; }
/* 좁은 창 (10-14 사용자 "좌측이 줄어들면 안 되고 아래로 내려가야") - 메뉴는 그대로 한 줄, 자리가 모자라면 오른쪽 단추 묶음이 통째로 아랫줄(오른쪽 끝)로 */
.editor-menurow { flex-wrap: wrap; row-gap: 4px; }
.editor-menurow .menubar { flex: 0 0 auto; flex-wrap: nowrap; }
.editor-menurow .editor-actions { margin-left: auto; }
/* 메뉴 줄 오른쪽 단추는 그림자 없이 (10-14 사용자 "그림자 없어도 돼") - 흰 단추·발표 묶음은 가는 테두리로 */
.editor-menurow .editor-actions .button, .editor-menurow .editor-actions .button:active, .editor-menurow .present-group { box-shadow: none; }
.editor-menurow .editor-actions > .button:not(.is-primary), .editor-menurow .present-group { border: 1px solid var(--uk-border); }
/* 발표·모니터 묶음 테두리를 조금 더 진하게 (10-14 사용자 "라인 색을 조금 더 진하게") */
.editor-menurow .editor-actions > .button:not(.is-primary), .editor-menurow .present-group { border-color: color-mix(in srgb, var(--uk-fg) 28%, transparent); }
.editor-menurow .present-group > .button { border-left-color: color-mix(in srgb, var(--uk-fg) 22%, transparent); }
/* 탭이 많아지면 너비를 줄여 모두 보이게 (10-14 사용자 "탭이 계속 늘어나면 안 보이게 되잖아 - 그때는 탭 width를 줄여야") - 크롬처럼.
   한 탭 최대 180px, 자리가 모자라면 같이 줄어든다(최소 60px, 지금 탭은 150px). 그보다 많으면 그때만 옆으로 민다. 좁아진 다른 탭은 × 숨김(마우스를 올리면 보임) */
.editor-top.is-rows .editor-title-row { min-width: 0; }
.editor-top.is-rows .editor-tabs.is-many { flex: 1 1 auto; min-width: 0; }
.editor-top.is-rows .editor-tabs.is-many .editor-tabs-scroll { flex: 0 1 auto; min-width: 0; }
.editor-top.is-rows .editor-tabs.is-many .editor-tab { flex: 0 1 180px; width: auto; min-width: 60px; }
.editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active { min-width: 60px; } /* 지금 탭도 같은 너비 - 눌러도 크기가 안 바뀌게(10-14 "크기는 변경 없이") */
.editor-top.is-rows .editor-tabs.is-many .editor-tab-go { overflow: hidden; }
.editor-tabs-scroll.is-tight .editor-tab:not(.is-active):not(:hover) > .editor-tab-x { display: none; } /* is-tight = 다른 탭이 100px보다 좁아짐(EditorTabs가 붙인다) */
/* 탭 줄 너비 = 탭 수 × 180px (글자 길이와 상관없이) - 탭을 눌러 옮기는 동안(여는 동안 머리줄은 ×가 없어 글자 폭이 다르다) 크기가 줄었다 늘었다 하던 것
   (10-14 사용자 "탭을 누르면 간격이 줄어들고 다시 길어져 - 크기는 변경 없이"). --tab-n은 EditorTabs·EditorLoading이 넣는다 */
.editor-top.is-rows .editor-tabs.is-many .editor-tabs-scroll { flex: 0 1 calc(var(--tab-n, 1) * 180px); }
.editor-top.is-rows .editor-tabs.is-many .editor-tab .editor-tab-go, .editor-top.is-rows .editor-tabs.is-many .editor-tab > .doc-title { min-width: 0; }
/* 저장 상태 칸은 너비를 고정 - "불러오는 중…"·"저장됨"처럼 글 길이가 달라 탭 줄 자리(= 탭 너비)가 흔들렸다(10-14) */
.editor-top.is-rows .editor-status { width: 150px; justify-content: flex-end; overflow: hidden; }
.editor-top.is-rows .editor-status .save-status { overflow: hidden; text-overflow: ellipsis; }
/* 저장 상태 = 폴더 그림 + 글 단추, 누르면 오른쪽 끝 탐색기 칸 (2026-10-20 사용자 "폴더 모양으로 하고 클릭하면 우측 끝에 탐색기처럼", FileLocation.tsx).
   단추 모양은 예전 저장 상태 그대로(너비 150px·글 줄임), 칸은 버전 기록·댓글과 같은 .side-panel 자리 */
/* 단추를 감싼 자리(.editor-status-slot)가 150px·오른쪽 끝을 갖고, 단추는 그림·글 크기만 - 단추가 150px이면 빈 곳까지 눌렸다(10-20 사용자) */
.editor-status-slot { flex: none; margin-left: auto; display: flex; justify-content: flex-end; align-self: center; }
.editor-top.is-rows .editor-status-slot { width: 150px; margin-bottom: 4px; }
.editor-top.is-rows .editor-status-slot > .editor-status { width: auto; max-width: 100%; margin: 0; padding: 0 8px; }
.editor-status-btn { height: 32px; border: 0; border-radius: var(--uk-r-sm); background: none; font: inherit; cursor: pointer; }
button.editor-status-btn:hover, .editor-status-btn[aria-pressed='true'] { background: var(--uk-sunk); }
.editor-status-btn[aria-pressed='true'] { color: var(--uk-fg); }
.editor-status-btn:focus-visible { outline: 2px solid var(--uk-brand); outline-offset: -2px; }
/* 열린 폴더 + "열기", 저장 문제는 그림 귀퉁이 빨간 점만(10-20 사용자) - 글자색·깜빡임은 쓰지 않는다. 저장 상태 글은 숨김(마우스 올림 글·화면 읽기·시험이 읽는다) */
.editor-status-btn.is-warn, .editor-status-btn.is-warn .save-status { color: var(--uk-muted); }
.editor-status-btn.is-busy svg { animation: none; }
.editor-status-btn[aria-pressed='true'] { color: var(--uk-fg); }
.editor-status-icon { position: relative; display: inline-grid; place-items: center; }
.editor-status-dot { position: absolute; top: -3px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--uk-danger); box-shadow: 0 0 0 2px var(--uk-bg); }
.editor-status-btn .save-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.file-pane { position: fixed; right: 8px; bottom: 8px; z-index: 70; width: 340px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; gap: 8px;
  padding: 12px 10px 10px; background: var(--uk-surface); border: 1px solid var(--uk-line); border-radius: var(--uk-r-md); box-shadow: var(--uk-up-lg); }
.file-pane header { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 0 6px; }
.file-pane h2 { font-size: 15px; margin: 0; }
/* 칸은 body에 붙어 #root 밖이라 공통 .btn-plain(#root 안만)이 안 먹는다 - 닫기 단추 모양을 여기서 (2026-10-20 사용자 "X 버튼 CSS 적용 안 돼") */
.file-pane header .btn-plain { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--uk-r-sm); background: none; color: var(--uk-fg); cursor: pointer; }
.file-pane header .btn-plain:hover { background: var(--uk-sunk); }
.file-pane header .btn-plain:focus-visible { outline: 2px solid var(--uk-brand); outline-offset: -2px; }
.file-pane-modal { display: flex; flex-direction: column; height: min(60vh, 520px); }
/* 767px 이하에서도 가운데 떠 있는 창 - 공통 모달은 그 폭에서 화면 가득(휴대폰용)이라 덮는다
   (2026-10-20 사용자 캡처 "이 부분도 모달창으로 띄워줘"). 트리 글자도 휴대폰 1.5배 대신 PC 크기 그대로. 휴대폰은 이 모달 대신 ⋮ 시트를 쓴다 */
@media (max-width: 767px) {
  /* 창 높이 = 화면 - 위아래 24px, 트리가 창 아래 끝까지 채운다(같은 날 사용자 "가득 차게" - 목록이 중간에서 끝나고 창 본문이 따로 굴렀다) */
  dialog.modal-sheet:has(.file-pane-modal) { width: min(520px, calc(100vw - 32px)); height: calc(100dvh - 48px); max-height: none; margin: auto; inset: 0; border-radius: var(--uk-r-lg); box-shadow: var(--uk-up-lg); --modal-pad: 20px; }
  dialog.modal-sheet:has(.file-pane-modal)[open] { animation-name: modal-in; }
  dialog.modal-sheet .modal-body:has(> .file-pane-modal) { display: flex; flex-direction: column; overflow: hidden; }
  .file-pane-modal { flex: 1 1 auto; min-height: 0; height: auto; }
  .file-pane-modal .save-as-tree { --st-indent: 14px; --st-lead: 27px; font-size: 14px; }
  .file-pane-modal .save-as-tree .tree-row { height: 32px; }
  .file-pane-modal .save-as-tree .tree-row button.tree-arrow { width: 24px; min-width: 24px; height: 24px; }
  .file-pane-modal .save-as-tree .tree-row button.tree-arrow svg { width: 15px; height: 15px; }
  .file-pane-modal .save-as-tree .tree-row button.tree-name { font-size: 14px; gap: 4px; }
  .file-pane-modal .save-as-tree .tree-row button.tree-name svg, .file-pane-modal .save-as-tree .tree-row button.tree-name img { width: 18px; height: 18px; }
  .file-pane-modal .save-as-tree .tree-wait { height: 32px; font-size: 13px; }
}
.file-loc-tree .tree-name small { display: none; } /* 크기·날짜는 줄에 마우스를 올리면 - 좁은 칸에서 이름이 잘렸다 */
.file-loc { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; font-size: 13px; color: var(--uk-fg); }
.file-loc-head { display: flex; justify-content: flex-end; }
.file-pane .file-loc-head, .file-pane-modal .file-loc-head { display: none; } /* PC는 단추에 저장 상태가 있다 - 휴대폰 시트에서만 */
.file-loc-status { font-size: 12px; }
.file-loc-here { margin: 0; padding: 0 4px; font-size: 12.5px; color: var(--uk-muted); line-height: 1.5; word-break: break-all; }
.file-loc-note { margin: 0; padding: 0 4px; color: var(--uk-muted); font-size: 12.5px; line-height: 1.5; }
.file-loc-note.is-warn { color: var(--uk-warn-fg); }
.file-loc-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.file-loc-actions .button { display: inline-flex; align-items: center; gap: 4px; }
.file-loc-tree { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.file-loc-tree .save-as-tree { flex: 1 1 auto; height: auto; min-height: 0; max-height: none; overflow: auto; border: 0; }
.file-loc-tree .save-as-path { display: none; } /* 지금 파일 경로는 위 줄에 */
.editor-tab-here { display: contents; } /* 좁은 창 제목 칸 - 마우스를 올리면 위치(title)만 붙인다 */
.react-sheet .file-loc { padding: 4px 12px 16px; height: min(70vh, 560px); }
.react-sheet .phone-file-loc { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 6px 0; border: 0; background: none; color: var(--uk-muted); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.react-sheet .phone-file-loc span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 여는 동안 머리줄의 지금 탭 제목 = 진짜 제목 칸(.doc-title)과 같은 크기·여백 (10-14) */
.editor-tab .doc-title-ghost { display: block; flex: 1 1 auto; min-width: 0; padding: 2px 7px; border: 1px solid transparent; border-radius: var(--uk-r-xs); font-size: 14px; font-weight: 500; color: var(--uk-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-tabs:not(.is-many) .editor-tab .doc-title-ghost { font-size: 14px; }
.editor-shell.is-loading .editor-tab-x { display: grid; place-items: center; }
/* 지금 탭·다른 탭 안쪽 배치를 똑같이 - 누른 탭이 지금 탭이 되는 순간 그림·제목·×가 움직이지 않게 (10-14 사용자 "탭 안 내용이 줄었다 원복 - 그대로 유지")
   모든 탭: 1px 테두리(다른 탭은 투명), 그림 왼쪽 13px, 제목 글자 왼쪽 39px, × 오른쪽 11px */
.editor-top.is-rows .editor-tab { border: 1px solid transparent; border-bottom: 0; padding: 0 6px 0 0; gap: 0; }
.editor-top.is-rows .editor-tabs .editor-tab.is-active, .editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active { padding: 0 6px 0 12px; gap: 0; }
.editor-top.is-rows .editor-tab:not(.is-active) .editor-tab-go { margin: 3px 0; padding: 3px 2px 3px 12px; gap: 4px; }
.editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active > .doc-title, .editor-top.is-rows .editor-tab.is-active > .doc-title-ghost { margin-left: 6px; padding-left: 0; padding-right: 4px; }
.editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active > .doc-title:focus, .editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active > .doc-title[data-renaming="true"] { padding-left: 2px; margin-left: 4px; }
.editor-top.is-rows .editor-tab .editor-tab-x { margin-left: auto; margin-right: 4px; }
/* 탭 너비를 똑같이 나눈다(탭 줄 ÷ 탭 수, 최대 180·최소 60) - 안의 글자·제목 칸 크기와 상관없이, 지금 탭이 바뀌어도 그대로 (10-14) */
.editor-top.is-rows .editor-tabs.is-many .editor-tab, .editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active { flex: 1 1 0; max-width: 180px; min-width: 60px; }
.editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active > .doc-title { flex: 1 1 0; min-width: 0; max-width: none; }
/* 모든 탭의 안쪽 여백을 똑같이(왼 12·오 6) - 나눈 너비에 여백이 더해져 지금 탭만 넓어지던 것. 다른 탭의 마우스 칠은 그림부터 */
.editor-top.is-rows .editor-tabs.is-many .editor-tab { padding: 0 6px 0 12px; }
.editor-top.is-rows .editor-tab:not(.is-active) .editor-tab-go { padding: 3px 2px 3px 0; margin-left: 0; }
/* 좁을 때 지금 탭 제목이 사라지던 것 - 지금 탭도 ×는 마우스를 올릴 때만, 제목 칸은 남은 자리를 다 쓴다 */
.editor-tabs-scroll.is-tight .editor-tab.is-active:not(:hover) > .editor-tab-x { display: none; }
.editor-top.is-rows .editor-tabs.is-many .editor-tab.is-active > .doc-title { width: 0; field-sizing: fixed; }
/* 메뉴 줄 높이를 늘 같게 - 여는 동안(단추가 없어 44px)과 실제(46px)가 달라 아래 툴바·본문이 2px 움직였다(10-14 사용자 "노트·슬라이드·시트에서 탭 클릭 시 살짝 바뀌는데") */
.editor-menurow, .editor-shell.is-loading .editor-menurow { min-height: 46px; }

/* 휴대폰 저장·열기 창(가운데 창이 화면 가득인 폭 - modal.css와 같은 767px): PC 창을 줄여 쓴 느낌이 아니게 손가락 크기로
   (2026-10-18 사용자 "모바일 메뉴가 아닌 것 같아 - 크기를 키워서 스마트폰 버전에 맞게"). 입력 칸 48px, 트리 줄 52px·글자 18px(PC의 1.5배 쯤), 아래 칸은 화면 끝까지 */
@media (max-width: 767px) {
  .save-as { min-width: 0; gap: 12px; }
  .save-as-row { grid-template-columns: 1fr; gap: 6px; font-size: 15px; }
  .save-as-name input, .save-as-row select { height: 48px; font-size: 16px; } /* 16px 아래면 아이폰이 칸을 누를 때 화면을 확대한다 */
  .save-as-name input { flex: 1 1 0; min-width: 0; }
  .save-as-name select { flex: 0 1 auto; max-width: 48%; } /* 휴대폰도 이름 바로 뒤 한 줄 */
  .save-as-tabs button { flex: 1 1 0; justify-content: center; height: 48px; font-size: 16px; }
  /* 아래 칸은 화면 끝까지 늘어난다(2026-10-18 사용자 "화면 크기에 맞춰 아래가 늘어나게") - 창 본문 → 탭 상자 → 칸 → 목록이 남은 높이를 나눠 갖는다 */
  dialog.modal-sheet .modal-body:has(> .save-as) { display: flex; flex-direction: column; }
  /* :has()를 모르는 브라우저(삼성 인터넷 등, 10-19 사용자 휴대폰 열기 창)에서도 - 창 본문 높이가 정해져 있어 100%로 채운다 */
  .save-as { flex: 1 1 auto; min-height: 0; height: 100%; box-sizing: border-box; }
  .save-as-tabbox, .save-as-panes, .save-as-folders { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .save-as-list { flex: 1 1 auto; height: auto; min-height: 240px; }
  .save-as-local:not(.is-tree) { height: auto; min-height: 240px; }
  /* 트리 글자·줄 PC의 1.5배 쯤(같은 날 사용자 "트리 내용이 작아 1.5배 정도") */
  .save-as-tree { --st-indent: 24px; --st-lead: 44px; font-size: 18px; }
  .save-as-tree .tree-row { height: 52px; }
  .save-as-tree .tree-row button.tree-arrow { width: 40px; min-width: 40px; height: 40px; }
  .save-as-tree .tree-row button.tree-arrow svg { width: 22px; height: 22px; }
  .save-as-tree .tree-row button.tree-name { font-size: 18px; gap: 4px; }
  .save-as-tree .tree-row button.tree-name svg { width: 24px; height: 24px; }
  .save-as-tree .tree-row small { font-size: 13px; }
  .save-as-tree .tree-wait { height: 52px; font-size: 16px; }
  .save-as-path, .save-as-hint { font-size: 14px; }
}
