/* 안내 편집 도구. 본문 흐름 밖의 관리·서식 막대는 저장 원문에 포함하지 않는다. */
.fradmin-canvas-surround { position: relative; --fct-safe-area-bottom: env(safe-area-inset-bottom, 0px); --fct-soft: var(--brand-soft, #edf3ff); --fct-line: #dfe6f1; --fct-ink: #344057; --fct-muted: #6b768a; }
.fct-scroll-room { height: var(--fct-scroll-room, 0px); pointer-events: none; }
.fct-scroll-room[hidden] { display: none !important; }
.fradmin-canvas-surround.has-fct-scroll-room [data-content-field] { scroll-margin-bottom: calc(20px + var(--fct-scroll-room, 0px)); }
.fct-layer { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.fct-layer[hidden], .fct-layer [hidden] { display: none !important; }

/* 공통 도구 버튼 */
.fct-tool { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 5px; min-width: 32px; min-height: 32px; padding: 0 7px; box-sizing: border-box; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #4a5670; font: inherit; font-weight: 650; line-height: 1.3; white-space: nowrap; cursor: pointer; transition: background-color .12s, color .12s, border-color .12s; }
.fct-tool svg { flex: none; width: 18px; height: 18px; }
.fct-tool .fct-caret { width: 13px; height: 13px; margin: 0 -2px 0 -1px; opacity: .65; }
.fct-tool:hover:not(:disabled) { background: var(--fct-soft); color: var(--brand); }
.fct-tool[aria-expanded="true"], .fct-tool[aria-pressed="true"] { border-color: color-mix(in srgb, var(--brand), #fff 70%); background: var(--fct-soft); color: var(--brand); }
.fct-tool.is-danger:hover:not(:disabled) { background: #fdeeee; color: #c73535; }
.fct-tool.is-primary { padding: 0 12px 0 9px; border-color: color-mix(in srgb, var(--brand), #fff 62%); background: var(--fct-soft); color: var(--brand); font-weight: 750; }
.fct-tool.is-primary:hover:not(:disabled) { border-color: var(--brand); background: color-mix(in srgb, var(--brand), #fff 84%); }
.fct-tool:disabled { opacity: .38; cursor: default; }
.fct-tool:focus-visible, .fct-popup :is(button,input):focus-visible, .fct-toast button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.fct-glyph { min-width: 12px; font-size: 15px; font-weight: 850; line-height: 1; text-align: center; }
.fct-tool[data-tool="italic"] .fct-glyph { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; }
.fct-group { display: inline-flex; flex: none; align-items: center; gap: 1px; }
.fct-divider { flex: none; width: 1px; height: 20px; margin: 0 4px; background: #e3e8f1; }
/* 위/아래 추가: 일반 액션 버튼처럼 흰 배경·중립 테두리 한 칸에 두 아이콘을 얇은 구분선으로 나눈다. 테마색은 아이콘과 hover/focus/active에만 쓴다. */
.fct-insert { gap: 0; border: 1px solid var(--fct-line); border-radius: 8px; background: #fff; }
.fct-insert > .fct-tool { min-width: 34px; min-height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--brand); font-weight: inherit; }
.fct-insert > .fct-tool.has-label { padding: 0 8px; }
.fct-insert > .fct-tool + .fct-tool { border-radius: 0 7px 7px 0; box-shadow: -1px 0 0 var(--fct-line); }
.fct-insert > .fct-tool:first-child:not(:last-child) { border-radius: 7px 0 0 7px; }
.fct-insert > .fct-tool:hover:not(:disabled) { background: var(--fct-soft); color: var(--brand); }
.fct-insert > .fct-tool:active:not(:disabled) { background: color-mix(in srgb, var(--brand), #fff 82%); }
.fct-insert:has(> .fct-tool:hover:not(:disabled), > .fct-tool:focus-visible) { border-color: color-mix(in srgb, var(--brand), #fff 55%); }
.fct-insert svg { width: 20px; height: 20px; }

/* 선택한 대상 표시 */
.fct-target { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 8px; box-sizing: border-box; border: 1px solid #e3e8f1; border-radius: 7px; background: #fff; color: #3a455b; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: default; }
.fct-target svg { flex: none; width: 16px; height: 16px; color: var(--brand); }
.fct-target em { padding: 1px 6px; border-radius: 4px; background: #fff4de; color: #9a5b07; font-size: 11px; font-style: normal; font-weight: 750; }
.fct-target.is-locked svg { color: #b7791f; }

/* 선택한 행·문구 옆 도구. 본문 높이와 스크롤 영역을 늘리지 않는다. */
.fct-toolbar { position: fixed; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 42px; padding: 4px; box-sizing: border-box; border: 1px solid #d9e1ee; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #1b2a4a24, 0 1px 3px #1b2a4a14; color: var(--fct-ink); font: 600 12.5px/1.3 Pretendard, sans-serif; pointer-events: auto; }
.fct-toolbar[aria-disabled="true"] { opacity: .5; }
.fct-toolbar .fct-target { background: #f5f8fd; }
.fct-toolbar [data-tool="back"] { color: var(--fct-muted); }

/* 메뉴 */
.fct-popup { position: fixed; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 280px; max-height: min(440px, 65dvh); padding: 8px; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; border: 1px solid #d9e1ee; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px #1b2a4a29; color: var(--fct-ink); font: 600 13px/1.4 Pretendard, sans-serif; pointer-events: auto; }
.fct-popup-title { grid-column: 1 / -1; margin: 8px 4px 2px; color: #7a8599; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.fct-popup-title:first-child { margin-top: 2px; }
.fct-menu-item { grid-column: 1 / -1; justify-content: flex-start; min-height: 36px; padding: 0 10px; color: var(--fct-ink); text-align: left; }
.fct-menu-item.is-half { grid-column: auto; justify-content: center; border-color: #e6ebf3; background: #f8faff; }
.fct-menu-item .fct-check { width: 16px; height: 16px; margin-left: auto; color: var(--brand); }
.fct-menu-item.is-half .fct-check { display: none; }
.fct-menu-item[aria-pressed="true"] { border-color: var(--brand); }
/* 표·안내표 모양: 도식 + 이름. 도식만 보고도 네 모양을 비교할 수 있게 같은 크기로 둔다. */
.fct-menu-item.fct-style-tile { flex-direction: column; gap: 6px; min-height: 66px; padding: 8px 6px 7px; white-space: normal; text-align: center; line-height: 1.25; }
/* 일반 도구 아이콘(.fct-tool svg 18px)보다 우선해 프리셋 도식만 44×28로 둔다. */
.fct-tool.fct-style-tile > svg.fct-style-preview { flex: none; width: 44px; height: 28px; }
.fct-style-preview .p-line, .fct-style-preview .p-dash { fill: #fff; stroke: #9aa8bf; stroke-width: 1; }
.fct-style-preview path.p-line { fill: none; }
.fct-style-preview .p-dash { stroke-dasharray: 3 2; }
.fct-style-preview .p-text { fill: #c3ccda; }
.fct-style-preview .p-stripe { fill: #e6ebf3; }
.fct-style-preview .p-accent { fill: var(--fct-accent, var(--brand)); }
.fct-style-preview .p-accent-text { fill: #fff; }
.fct-popup.is-accent-soft .fct-style-preview .p-accent { fill-opacity: .12; }
.fct-popup.is-accent-soft .fct-style-preview .p-accent-text { fill: var(--fct-accent, var(--brand)); }
.fct-style-tile.is-pending { border-style: dashed; border-color: var(--brand); }
/* 강조 색·세기 초안 → 적용 */
.fct-accent-form { grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 2px; padding-top: 6px; border-top: 1px solid #edf0f5; }
.fct-accent-form > .fct-popup-title { margin: 4px 4px 0; }
.fct-accent-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.fct-accent-choice { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 40px; padding: 6px 8px; box-sizing: border-box; border: 1px solid #e3e8f1; border-radius: 7px; background: #f8faff; color: var(--fct-ink); font: inherit; font-weight: 650; cursor: pointer; }
.fct-accent-choice:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.fct-accent-choice[aria-pressed="true"], .fct-accent-pick.is-pressed { border-color: var(--brand); background: var(--fct-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.fct-accent-choice:disabled, .fct-accent-pick:has(input:disabled) { opacity: .4; cursor: default; }
.fct-popup .fct-accent-pick > input[type="color"] { flex: none; width: 24px; height: 24px; min-height: 0; padding: 0; border: 1px solid #ccd6e6; border-radius: 5px; background: none; cursor: inherit; }
.fct-popup .fct-accent-pick > input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.fct-popup .fct-accent-pick > input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.fct-accent-pick > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fct-accent-pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }
.fct-accent-form > button.is-primary { min-height: 40px; margin-top: 4px; }
.fct-accent-form > button.is-primary:disabled { border-color: #e3e8f1; background: #eef1f6; color: #8a95a8; opacity: 1; }
/* 유의사항 모양(팝업): 색 조합 2열×3행 → 직접 설정(접힘) → 적용. 표 강조 폼과 같은 버튼·간격·테마색 원칙. */
.fct-notice-form { grid-column: 1 / -1; display: grid; gap: 4px; min-width: 0; }
.fct-notice-form > .fct-popup-title { margin: 2px 4px 0; }
.fct-notice-hint { margin: 0 0 2px; padding: 7px 9px; border-radius: 6px; background: #fff7e8; color: #7a5a1e; font-size: 12px; font-weight: 600; line-height: 1.5; }
.fct-notice-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.fct-notice-preset { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 6px 9px; box-sizing: border-box; border: 1px solid #e3e8f1; border-radius: 7px; background: #f8faff; color: var(--fct-ink); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.fct-notice-preset:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.fct-notice-preset[aria-pressed="true"] { border-color: var(--brand); background: var(--fct-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.fct-notice-preset:disabled { opacity: .4; cursor: default; }
.fct-notice-preset:focus-visible, .fct-notice-custom > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.fct-notice-swatch { flex: none; width: 26px; height: 20px; box-sizing: border-box; border: 1px solid #0000001a; border-left: 4px solid #d5a134; border-radius: 4px; background: #fffaf0; }
.fct-notice-preset > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fct-notice-custom { margin-top: 2px; border-top: 1px solid #edf0f5; }
.fct-notice-custom > summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 4px; color: #5d6a80; font-size: 12px; font-weight: 750; list-style: none; cursor: pointer; }
.fct-notice-custom > summary::-webkit-details-marker { display: none; }
.fct-notice-custom > summary::after { content: ""; width: 6px; height: 6px; margin: 0 4px 3px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.fct-notice-custom[open] > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.fct-notice-custom.is-active > summary { color: var(--brand); }
.fct-notice-custom-body { display: grid; gap: 6px; padding: 0 0 4px; }
.fct-notice-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-width: 0; }
.fct-notice-row > span:first-child { color: var(--fct-muted); font-size: 12px; font-weight: 650; line-height: 1.3; }
.fct-notice-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; min-width: 0; padding: 2px; border: 1px solid #e3e8f1; border-radius: 7px; background: #f4f6fa; }
.fct-notice-modes > label { position: relative; display: block; min-width: 0; }
.fct-popup .fct-notice-modes > label > input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.fct-notice-modes > label > span { display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 5px; color: #53627a; font-size: 12px; font-weight: 650; }
.fct-notice-modes > label > input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 1px 2px #1720331f, inset 0 0 0 1px color-mix(in srgb, var(--brand), #fff 55%); }
.fct-notice-modes > label > input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.fct-notice-modes > label > input:disabled + span { color: #a3adbd; }
.fct-popup .fct-notice-row > input.fct-notice-color { flex: none; width: 40px; height: 40px; min-height: 0; padding: 3px; border: 1px solid #ccd6e6; border-radius: 7px; background: #fff; cursor: pointer; }
.fct-popup .fct-notice-row > input.fct-notice-color::-webkit-color-swatch-wrapper { padding: 0; }
.fct-popup .fct-notice-row > input.fct-notice-color::-webkit-color-swatch { border: 1px solid #0000001a; border-radius: 4px; }
.fct-notice-row:has(input[value="theme"]:checked) > .fct-notice-color { opacity: .55; }
.fct-notice-apply { min-height: 40px; margin-top: 4px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.fct-popup .fct-notice-apply:disabled { border-color: #e3e8f1; background: #eef1f6; color: #8a95a8; opacity: 1; cursor: default; }
.fct-popup > .fct-swatch, .fct-popup form > button { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 9px; border: 1px solid #e6ebf3; border-radius: 7px; background: #f8faff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fct-popup > .fct-swatch:hover:not(:disabled), .fct-popup form > button:hover:not(:disabled) { border-color: var(--brand); background: var(--fct-soft); color: var(--brand); }
.fct-popup form > button.is-primary { justify-content: center; border-color: var(--brand); background: var(--brand); color: #fff; }
.fct-popup button:disabled { opacity: .4; cursor: default; }
.fct-swatch > span { flex: none; width: 16px; height: 16px; border: 1px solid #cdd5e3; border-radius: 50%; }
.fct-popup input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; box-sizing: border-box; border: 1px solid #ccd6e6; border-radius: 7px; background: #fff; color: var(--fct-ink); font: inherit; font-weight: 500; }
.fct-link-form, .fct-width-form { grid-column: 1 / -1; display: grid; gap: 8px; }
.fct-link-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fct-link-form > :is(input,label,p) { grid-column: 1 / -1; }
.fct-link-form label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.fct-link-form input[type="checkbox"] { accent-color: var(--brand); }
.fct-button-appearance { grid-column: 1 / -1; display: grid; gap: 12px; }
.fct-button-color-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fct-button-color-row > label { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; font-size: 13px; font-weight: 600; }
.fct-button-color-row > label > span { white-space: nowrap; }
.fct-popup .fct-button-color-row input[type="color"] { flex: none; box-sizing: border-box; width: 44px; min-width: 44px; min-height: 36px; height: 36px; padding: 3px; border: 1px solid var(--line, #dce3ef); border-radius: 6px; background: #fff; cursor: pointer; }
.fct-button-color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.fct-button-color-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 3px; }
.fct-button-color-default { white-space: nowrap; }
.fct-button-appearance-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fct-button-layout { display: grid; gap: 6px; }
.fct-button-layout > p { margin: 0; font-size: 13px; font-weight: 600; }
.fct-button-layout-choices { display: flex; gap: 4px; }
.fct-button-layout-choices > button { flex: 1; padding-inline: 5px; font-size: 12px; }
.fct-button-appearance button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-weak, #edf3ff); color: var(--brand); }
.fct-button-width-entry { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.fct-button-width-entry[hidden] { display: none; }
.fct-popup .fct-button-width-entry input { width: 80px; min-width: 0; padding: 7px; }
.fct-button-appearance button { min-height: 36px; padding: 7px 9px; border: 1px solid #e6ebf3; border-radius: 7px; background: #f8faff; color: inherit; font: inherit; cursor: pointer; }
.fct-button-appearance button.is-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.fct-button-appearance button:hover:not(:disabled) { border-color: var(--brand); }
.fct-width-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-top: 2px; }
.fct-width-form label { display: grid; gap: 5px; color: var(--fct-muted); font-size: 12px; }
.fct-error { margin: 0; color: #c73535; font-size: 12px; line-height: 1.5; }
.fct-error:empty { display: none; }
.fct-alignment { grid-column: 1 / -1; display: flex; gap: 4px; }
.fct-alignment > button { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 38px; border: 1px solid #e3e8f1; border-radius: 7px; background: #f8faff; color: inherit; font: inherit; cursor: pointer; }
.fct-alignment svg { flex: none; width: 18px; height: 18px; }
.fct-alignment > button:hover, .fct-alignment > button[aria-pressed="true"] { border-color: var(--brand); background: var(--fct-soft); color: var(--brand); }

/* 선택 표시와 삽입 위치 */
.fct-row-mark, .fct-column-mark, .fct-insert-mark { position: absolute; box-sizing: border-box; pointer-events: none; }
.fct-row-mark { background: color-mix(in srgb, var(--brand), transparent 96%); }
.fct-row-mark.is-item { border-left: 2px solid var(--brand); background: transparent; }
.fct-row-mark.is-new { animation: fct-added 1.4s ease-out; }
@keyframes fct-added { 0%, 30% { background: color-mix(in srgb, var(--brand), transparent 82%); } 100% { background: transparent; } }
.fct-column-mark { border-left: 1px solid color-mix(in srgb, var(--brand), #fff 50%); border-right: 1px solid color-mix(in srgb, var(--brand), #fff 50%); }
.fct-insert-mark { border-radius: 2px; background: var(--brand); }
.fct-insert-mark::before { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); transform: translateY(-50%); }
.fct-insert-mark > span { position: absolute; top: 50%; right: 6px; padding: 1px 8px; border-radius: 10px; background: var(--brand); color: #fff; font: 700 11px/1.5 Pretendard, sans-serif; white-space: nowrap; transform: translateY(-50%); }

/* 되돌리기 안내 */
.fct-toast { position: fixed; bottom: 24px; left: 50%; display: flex; align-items: center; gap: 15px; max-width: calc(100vw - 24px); padding: 12px 16px; box-sizing: border-box; border-radius: 9px; background: #273248; color: #fff; font-size: 13px; box-shadow: 0 5px 20px #1b2a4a33; transform: translateX(-50%); pointer-events: auto; }
.fct-toast > span { line-height: 1.5; }
.fct-toast button { flex: none; min-height: 32px; padding: 5px 8px; border: 1px solid #ffffff55; border-radius: 5px; background: transparent; color: #fff; font: inherit; font-weight: 700; }

/* 모바일·터치: 키보드 위 하단 막대. 아이콘 위주로 320px 한 줄에 들어간다. */
.fct-layer.is-docked .fct-toolbar { flex-wrap: wrap; justify-content: center; gap: 1px; min-height: 48px; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); border-radius: 12px; box-shadow: 0 3px 18px #1b2a4a26; }
.fct-layer.is-docked .fct-tool { min-width: 38px; min-height: 40px; padding: 0 6px; font-size: 12px; }
.fct-layer.is-docked .fct-tool .fct-caret { display: none; }
.fct-layer.is-docked .fct-toolbar.is-structure .fct-tool .fct-label { display: none; }
.fct-layer.is-docked .fct-target { min-height: 40px; padding: 0 7px; gap: 4px; border-color: transparent; }
.fct-layer.is-docked .fct-target svg { width: 15px; height: 15px; }
.fct-layer.is-docked .fct-divider { height: 22px; margin: 0 2px; }
.fct-layer.is-docked .fct-menu-item, .fct-layer.is-docked .fct-popup > .fct-swatch, .fct-layer.is-docked .fct-popup form > button { min-height: 42px; }
.fct-layer.is-docked :is(.fct-notice-preset, .fct-notice-apply, .fct-notice-custom > summary) { min-height: 44px; }
.fct-layer.is-docked .fct-notice-modes > label > span { min-height: 40px; }
.fct-layer.is-docked .fct-popup .fct-notice-row > input.fct-notice-color { width: 44px; height: 44px; }
.fct-layer.is-docked .fct-toast { gap: 10px; padding: 10px 12px; font-size: 12px; }
/* 좁은 화면에서는 대상 아이콘과 번호를 세로로 놓아 버튼 크기를 유지한다. */
@media (max-width: 359px) {
  .fct-layer.is-docked .fct-toolbar.is-structure, .fct-layer.is-docked .fct-toolbar.is-structure .fct-group { gap: 0; }
  .fct-layer.is-docked .fct-toolbar.is-structure .fct-divider { margin: 0 1px; }
  .fct-layer.is-docked .fct-toolbar.is-structure .fct-target { flex-direction: column; justify-content: center; gap: 1px; padding: 0 4px; font-size: 11px; line-height: 1.2; }
  .fct-layer.is-docked .fct-toolbar.is-structure .fct-target svg { width: 14px; height: 14px; }
  .fct-layer.is-docked .fct-toolbar.is-structure .fct-target > span { max-width: 56px; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 380px) {
  .fct-layer.is-docked .fct-toolbar.is-structure [data-tool="add"] .fct-label { display: inline; }
}
@media (max-width: 640px) {
  .fct-toolbar { min-height: 48px; }
  .fct-toast { bottom: 16px; gap: 10px; padding: 10px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fct-row-mark.is-new { animation: none; }
  .fct-tool { transition: none; }
}

/* 글자 서식 도구줄 맨 앞 '텍스트 유형' 선택: [본문 ▾] → [본문 / 제목 / 소제목 / 보조 설명] (+ 원래 서식). 현재 이름이 늘 보이고, 메뉴 글씨가 실제 모양 견본이라 계층을 바로 비교한다(보조 설명은 작은 회색). 선택은 파란 글씨 + 체크. */
.fct-layer .fct-toolbar .fct-tool.fct-text-style { justify-content: space-between; gap: 4px; min-width: 64px; padding: 0 6px 0 9px; font-size: 12.5px; font-weight: 700; }
.fct-layer .fct-toolbar .fct-tool.fct-text-style .fct-label { display: inline; white-space: nowrap; }
.fct-layer .fct-toolbar .fct-tool.fct-text-style .fct-caret { display: block; }
.fct-menu-item.fct-text-style-option { min-height: 40px; padding: 6px 12px; color: var(--fct-ink); line-height: 1.25; white-space: nowrap; }
.fct-menu-item.fct-text-style-option[data-style="body"] { font-size: 14px; font-weight: 500; }
.fct-menu-item.fct-text-style-option[data-style="heading"] { min-height: 48px; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.fct-menu-item.fct-text-style-option[data-style="subheading"] { min-height: 44px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.fct-menu-item.fct-text-style-option[data-style="description"] { font-size: 13px; font-weight: 500; color: var(--fct-muted); }
.fct-menu-item.fct-text-style-option[aria-pressed="true"] { color: var(--brand); }
.fct-layer .fct-popup > .fct-divider { grid-column: 1 / -1; width: auto; height: 1px; margin: 4px 2px; }
@media (max-width: 640px), (pointer: coarse) {
  .fct-layer .fct-toolbar .fct-tool.fct-text-style { min-height: 44px; }
  .fct-layer .fct-menu-item.fct-text-style-option { min-height: 44px; }
  .fct-layer .fct-menu-item.fct-text-style-option[data-style="heading"] { min-height: 48px; }
}
