.fm-doc { display: grid; gap: 14px; }
.fm-wrap { display: grid; gap: 10px; min-width: 0; }
.fm-wrap[hidden] { display: none; }

.fm-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(239, 68, 68, .25); border-radius: 14px; background: rgba(239, 68, 68, .05); }
.fm-lock[hidden] { display: none; }
.fm-lock-ico { flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(239, 68, 68, .12); color: #EF4444; font-size: 14px; }
.fm-lock-t { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.fm-lock-t b { font-size: .86rem; color: var(--cc-ink); }
.fm-lock-t span { font-size: .74rem; line-height: 1.5; color: var(--cc-ink-2); }
.fm-lock-a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; background: var(--cc-teal); color: #fff; font: 600 .8rem 'Poppins', sans-serif; text-decoration: none; transition: background .2s; }
.fm-lock-a:hover { background: var(--cc-teal-h); color: #fff; }

.fm-bar { position: sticky; top: calc(var(--cfx-top-h, 44px) + var(--cc-sticky, 66px) + 8px); z-index: 30; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px; border: 1px solid var(--cc-line); border-radius: 14px; background: var(--cc-card); transition: top .45s cubic-bezier(.22, 1, .36, 1); }
body:has(.cfx-header.cfx-hide-top) .fm-bar { top: calc(var(--cc-sticky, 66px) + 8px); }
.fm-mode { flex-shrink: 0; padding: 3px; border-radius: 10px; }
.fm-mode button { flex: 0 0 auto; height: 34px; padding: 0 12px; font-size: .76rem; }
.fm-adds { display: flex; gap: 2px; min-width: 0; }
.fm-app.is-fill .fm-adds { display: none; }
.fm-app.is-create .fm-reset { display: none; }
.fm-add { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--cc-ink-2); font: 600 .74rem 'Poppins', sans-serif; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.fm-add i { font-size: 12px; color: var(--cc-teal); }
html:not(.cf-light) .fm-add i { color: var(--cc-bright); }
.fm-add:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
.fm-reset { display: inline-flex; align-items: center; gap: 7px; height: 36px; margin-left: auto; padding: 0 12px; border: 1px solid var(--cc-line); border-radius: 10px; background: var(--cc-card); color: var(--cc-ink-2); font: 600 .74rem 'Poppins', sans-serif; cursor: pointer; transition: border-color .2s, color .2s; }
.fm-reset i { font-size: 12px; }
.fm-reset:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-teal); }

.fm-stage-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fm-tag { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--cc-teal-soft); color: var(--cc-teal); font-size: .7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-tag:empty { display: none; }
.fm-tag.is-off { background: var(--cc-card); color: var(--cc-ink-3); box-shadow: inset 0 0 0 1px var(--cc-line); }
html:not(.cf-light) .fm-tag { color: var(--cc-bright); }
html:not(.cf-light) .fm-tag.is-off { color: var(--cc-ink-3); }
.fm-view { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; height: 36px; margin-left: auto; padding: 0 12px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-card); color: var(--cc-ink-2); font: 600 .74rem 'Poppins', sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fm-view i { font-size: 12px; }
.fm-view:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-teal); }
.fm-view.is-on { border-color: var(--cc-teal); background: var(--cc-teal); color: #fff; }
.fm-app.is-grid .fm-pnav { display: none; }
.fm-pnav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 3px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-card); }
.fm-pnav button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--cc-teal-soft); color: var(--cc-teal); font-size: 11px; cursor: pointer; transition: background .2s, color .2s; }
html:not(.cf-light) .fm-pnav button { color: var(--cc-bright); }
.fm-pnav button:hover { background: var(--cc-teal); color: #fff; }
.fm-pnav button:disabled { opacity: .35; pointer-events: none; }
.fm-pnav span { min-width: 54px; text-align: center; font-size: .74rem; font-weight: 700; color: var(--cc-ink); }

.fm-pages { display: grid; justify-items: center; padding: 20px; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cc-soft); }
.fm-pages[hidden] { display: none; }
.fm-pg { width: 100%; max-width: 860px; }
.fm-sheet { --k: 1; position: relative; width: 100%; line-height: 0; background: #fff; box-shadow: 0 6px 22px rgba(15, 23, 42, .12); }
.fm-sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fm-sheet .pm-spin { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-width: 2px; }
.fm-layer { position: absolute; inset: 0; line-height: 1.2; }

.fm-f-w { position: absolute; box-sizing: border-box; }
.fm-f-w > .fm-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0 calc(2px * var(--k)); border: 1px solid rgba(6, 147, 139, .55); border-radius: 2px; outline: 0; background: rgba(6, 147, 139, .08); color: var(--ink, #0F172A); font: 400 calc(var(--fs, 11) * var(--k) * 1px) Arial, Helvetica, sans-serif; letter-spacing: calc(var(--ls, 0) * var(--k) * 1px); font-weight: var(--fw, 400); font-style: var(--fi, normal); line-height: 1.15; box-shadow: none; transition: background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.fm-f-w > textarea.fm-in { padding-top: calc(2px * var(--k)); resize: none; overflow: auto; }
.fm-f-w > select.fm-in { padding-right: calc(10px * var(--k)); cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23334155' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right calc(3px * var(--k)) center; background-size: calc(8px * var(--k)) auto; }
.fm-f-w > select.fm-in[multiple] { background-image: none; padding: 0; overflow-y: auto; }
.fm-f-w > .fm-in:focus { background: #fff; box-shadow: 0 0 0 2px rgba(6, 147, 139, .35); }
.fm-f-w.is-ro > .fm-in { background: rgba(100, 116, 139, .08); border-color: rgba(100, 116, 139, .35); color: #475569; }
.fm-box { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(6, 147, 139, .6); border-radius: 2px; background: rgba(6, 147, 139, .08); cursor: pointer; transition: background .15s; }
.fm-box.is-radio { border-radius: 50%; }
.fm-box::after { content: ''; display: none; }
.fm-box.is-on { background: rgba(6, 147, 139, .14); }
.fm-box.is-on::after { display: block; }
.fm-box:not(.is-radio)::after { width: 30%; height: 58%; margin-top: -12%; border: solid #0F172A; border-width: 0 calc(1.6px * var(--k) + 1px) calc(1.6px * var(--k) + 1px) 0; transform: rotate(45deg); }
.fm-box.is-radio::after { width: 46%; height: 46%; border-radius: 50%; background: #0F172A; }
.fm-box:focus-visible { outline: 2px solid var(--cc-teal); outline-offset: 1px; }
.fm-f-w.is-req > .fm-in, .fm-f-w.is-req > .fm-box { border-color: rgba(220, 38, 38, .55); }

.fm-app.is-create .fm-f-w { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.fm-app.is-create .fm-f-w > .fm-in, .fm-app.is-create .fm-f-w > .fm-box { pointer-events: none; }
.fm-app.is-create .fm-f-w.is-pdf { cursor: pointer; touch-action: auto; }
.fm-app.is-create .fm-f-w.is-pdf > .fm-in, .fm-app.is-create .fm-f-w.is-pdf > .fm-box { border-style: dashed; background: rgba(100, 116, 139, .06); border-color: rgba(100, 116, 139, .55); }
.fm-f-w::before { content: ''; position: absolute; inset: -4px; border: 1.5px dashed transparent; border-radius: 4px; pointer-events: none; }
.fm-f-w.is-sel::before { border-color: var(--cc-teal); }
.fm-f-w.is-drag { cursor: grabbing; }
.fm-lbl { position: absolute; left: 0; bottom: calc(100% + 3px); max-width: 220px; padding: 1px 6px; overflow: hidden; border-radius: 4px; background: var(--cc-teal); color: #fff; font: 600 10px/1.5 'Poppins', sans-serif; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; display: none; }
.fm-app.is-create .fm-f-w:not(.is-pdf) .fm-lbl { display: block; opacity: .85; }
.fm-f-w.is-low .fm-lbl { bottom: auto; top: calc(100% + 3px); }
.fm-rs { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--cc-teal); box-shadow: 0 0 0 1px rgba(6, 147, 139, .35); cursor: nwse-resize; touch-action: none; z-index: 2; }
.fm-rs::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
.fm-tools button.is-on { background: var(--cc-teal-soft); color: var(--cc-teal); }
.fm-sp { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; display: none; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--cc-line); border-radius: 50%; background: var(--cc-card); color: var(--cc-ink-2); font-size: 11px; line-height: 1; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); cursor: pointer; z-index: 3; transition: background .2s, color .2s, border-color .2s; }
.fm-f-w:hover .fm-sp, .fm-f-w:focus-within .fm-sp, .fm-f-w.is-sp .fm-sp { display: flex; }
.fm-sp:hover, .fm-sp.is-on { border-color: var(--cc-teal); background: var(--cc-teal-soft); color: var(--cc-teal); }
.fm-lsp { position: absolute; left: 0; top: calc(100% + 8px); display: flex; align-items: center; gap: 8px; width: 210px; padding: 7px 10px; border: 1px solid var(--cc-line); border-radius: 12px; background: var(--cc-card); box-shadow: 0 8px 22px rgba(15, 23, 42, .16); z-index: 5; cursor: default; touch-action: auto; }
.fm-lsp i { flex-shrink: 0; font-size: 12px; color: var(--cc-teal); }
.fm-lsp input { flex: 1 1 auto; min-width: 0; height: 20px; margin: 0; accent-color: var(--cc-teal); cursor: pointer; }
.fm-lsp b { flex-shrink: 0; min-width: 40px; padding: 2px 7px; border-radius: 999px; background: var(--cc-soft); font-size: .7rem; font-weight: 700; color: var(--cc-ink); text-align: center; }
.fm-lsp.is-r { left: auto; right: 0; }
.fm-lsp.is-up { top: auto; bottom: calc(100% + 8px); }
.fm-f-w.is-sp .fm-lbl { display: none !important; }
.fm-tools { position: absolute; left: 50%; bottom: calc(100% + 22px); display: flex; gap: 2px; padding: 3px; transform: translateX(-50%); border: 1px solid var(--cc-line); border-radius: 11px; background: var(--cc-card); box-shadow: 0 8px 22px rgba(15, 23, 42, .16); line-height: 1; z-index: 3; white-space: nowrap; }
.fm-f-w.is-low .fm-tools { bottom: auto; top: calc(100% + 24px); }
.fm-tools button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--cc-ink-2); font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.fm-tools button:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
.fm-tools button.is-del:hover { background: rgba(239, 68, 68, .1); color: #EF4444; }

.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; max-height: 760px; padding: 16px; overflow-y: auto; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cc-soft); scrollbar-width: thin; }
.fm-grid[hidden] { display: none; }
.fm-gcard { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.fm-gsheet { position: relative; width: 100%; line-height: 0; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .12); cursor: pointer; transition: box-shadow .2s; }
.fm-gsheet:hover { box-shadow: 0 0 0 2px var(--cc-teal), 0 4px 14px rgba(15, 23, 42, .12); }
.fm-gsheet::before { content: ''; display: block; padding-top: var(--ar, 141.4%); }
.fm-gsheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fm-gsheet .pm-spin { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-width: 2px; }
.fm-glayer { position: absolute; inset: 0; pointer-events: none; }
.fm-glayer i { position: absolute; border: 1px solid rgba(6, 147, 139, .7); background: rgba(6, 147, 139, .14); }
.fm-gnum { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--cc-ink-2); font: 600 .72rem 'Poppins', sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.fm-gnum:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
.fm-gcard.has-f .fm-gnum { color: var(--cc-teal); }
html:not(.cf-light) .fm-gcard.has-f .fm-gnum { color: var(--cc-bright); }
.fm-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: .72rem; line-height: 1.45; color: var(--cc-ink-3); text-align: center; }
.fm-hint i { color: var(--cc-teal); }
html:not(.cf-light) .fm-hint i { color: var(--cc-bright); }

.fm-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--cc-line); border-radius: 14px; background: var(--cc-card); }
.fm-sum div { display: grid; gap: 3px; min-width: 0; padding: 10px 11px; }
.fm-sum div + div { border-left: 1px solid var(--cc-line); }
.fm-sum span { font-size: .68rem; font-weight: 600; color: var(--cc-ink-3); white-space: nowrap; }
.fm-sum b { font-size: .95rem; font-weight: 700; color: var(--cc-ink); white-space: nowrap; }
.fm-style { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--cc-line); border-radius: 14px; background: var(--cc-card); }
.fm-style-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.fm-style-h > div { min-width: 0; }
.fm-style-h small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-style.is-field { border-color: rgba(6, 147, 139, .45); }
.fm-style.is-field .fm-style-h small { color: var(--cc-teal); font-weight: 600; }
.fm-sty-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-soft); color: var(--cc-ink-2); font: 600 .68rem 'Poppins', sans-serif; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.fm-sty-all[hidden] { display: none; }
.fm-sty-all:hover { border-color: var(--cc-teal); color: var(--cc-teal); background: var(--cc-teal-soft); }
.fm-f-w.is-act > .fm-in { box-shadow: 0 0 0 2px rgba(6, 147, 139, .35); }
.fm-f textarea.fm-grow { min-height: 64px; max-height: 240px; overflow-y: auto; }
.fm-style-h b { display: block; font-size: .82rem; font-weight: 700; color: var(--cc-ink); }
.fm-style-h small { display: block; margin-top: 1px; font-size: .7rem; color: var(--cc-ink-3); }
.fm-style-r { display: grid; gap: 6px; min-width: 0; }
.fm-style-r > span { font-size: .72rem; font-weight: 600; color: var(--cc-ink-2); }
.fm-inks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fm-inks { gap: 7px; }
.fm-inks .qg-sw { width: 22px; height: 22px; }
.fm-inks .qg-sw.is-on::after { width: 7px; height: 4px; }
.fm-hex { position: relative; display: inline-flex; align-items: center; width: 100px; height: 28px; padding: 0 9px 0 6px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.fm-hex:focus-within { border-color: var(--cc-teal); background: var(--cc-card); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.fm-hex.is-on { border-color: var(--cc-teal); background: var(--cc-card); }
.fm-hex.is-bad { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.fm-hex-dot { flex-shrink: 0; width: 14px; height: 14px; margin-right: 5px; border-radius: 50%; background: var(--sw, transparent); box-shadow: inset 0 0 0 1px var(--cc-line); }
.fm-hex b { font-size: .76rem; font-weight: 700; color: var(--cc-ink-3); }
.fm-hex input, .fm-f .fm-hex input { width: 100%; min-width: 0; height: 100%; padding: 0 0 0 2px; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--cc-ink); font: 600 .76rem 'Poppins', sans-serif; letter-spacing: .04em; text-transform: uppercase; box-shadow: none; }
.fm-f .fm-hex input:focus { background: transparent; box-shadow: none; }
.fm-hex input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--cc-ink-3); opacity: .85; }
.fm-fsr { display: flex; align-items: center; gap: 6px; }
.fm-fsr select, .fm-f .fm-fsr select { flex: 1 1 auto; width: auto; min-width: 0; height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--cc-line); border-radius: 9px; background: var(--cc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--cc-ink); font: 600 .76rem 'Poppins', sans-serif; -webkit-appearance: none; appearance: none; cursor: pointer; outline: 0; }
.fm-f .fm-fsr select { height: 40px; border-radius: 11px; font-size: .86rem; }
.fm-fsr select:focus { border-color: var(--cc-teal); }
.fm-tb { flex-shrink: 0; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--cc-line); border-radius: 9px; background: var(--cc-soft); color: var(--cc-ink-2); font: 700 .9rem Georgia, 'Times New Roman', serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fm-f .fm-tb { width: 40px; height: 40px; border-radius: 11px; }
.fm-tb.is-i { font-style: italic; font-weight: 400; }
.fm-tb:hover { border-color: var(--cc-teal); color: var(--cc-teal); }
.fm-tb.is-on { border-color: var(--cc-teal); background: var(--cc-teal); color: #fff; }
.fm-ls { display: flex; align-items: center; gap: 10px; }
.fm-ls input, .fm-f .fm-ls input { flex: 1 1 auto; width: auto; min-width: 0; height: 20px; padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: var(--cc-teal); cursor: pointer; }
.fm-f .fm-ls input:focus { background: transparent; box-shadow: none; }
.fm-ls b { flex-shrink: 0; min-width: 44px; padding: 3px 8px; border-radius: 999px; background: var(--cc-soft); font-size: .72rem; font-weight: 700; color: var(--cc-ink); text-align: center; }
.fm-flat { align-items: flex-start; }
.fm-flat small { display: block; margin-top: 1px; }
.fm-page .pm-dl-row { display: flex; }
.fm-page #fmPreview { flex: 1.7 1 0; }
.fm-page #fmRedo { flex: 1 1 0; }
.fm-page #fmShareFile { flex: 0 0 44px; padding: 0; }
.fm-page #fmShareFile span { display: none; }

.fm-modal { position: fixed; inset: 0; z-index: 1260; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 10, 14, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fm-modal[hidden] { display: none; }
.fm-dlg { display: grid; gap: 12px; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 18px; overflow-y: auto; border-radius: 20px; background: var(--cc-card); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); transform: translateZ(0); overscroll-behavior: contain; }
.fm-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fm-dlg-h b { font-size: 1rem; font-weight: 700; color: var(--cc-ink); }
.fm-x { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--cc-line); border-radius: 10px; background: var(--cc-card); color: var(--cc-ink-2); font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.fm-x:hover { background: rgba(239, 68, 68, .08); color: #EF4444; }
.fm-f { display: grid; gap: 6px; min-width: 0; }
.fm-f[hidden], .fm-tg[hidden] { display: none; }
.fm-f > span { font-size: .76rem; font-weight: 600; color: var(--cc-ink-2); }
.fm-f > span small { display: block; margin-top: 1px; font-weight: 400; color: var(--cc-ink-3); }
.fm-f input, .fm-f select, .fm-f textarea { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--cc-line); border-radius: 11px; outline: 0; background: var(--cc-soft); color: var(--cc-ink); font: 500 .86rem 'Poppins', sans-serif; transition: border-color .2s, box-shadow .2s, background .2s; }
.fm-f textarea { height: auto; min-height: 92px; padding: 9px 12px; line-height: 1.5; resize: vertical; }
.fm-f select { padding-right: 30px; -webkit-appearance: none; appearance: none; background: var(--cc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.fm-f input:focus, .fm-f select:focus, .fm-f textarea:focus { border-color: var(--cc-teal); background-color: var(--cc-card); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.fm-f input.is-bad { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.fm-tg { font-size: .78rem; }
.fm-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(239, 68, 68, .08); color: #DC2626; font-size: .74rem; font-weight: 600; }
.fm-err[hidden] { display: none; }
.fm-dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.fm-dlg-f .qg-btn { height: 42px; }
.fm-dlg-f .qg-btn-main { width: auto; min-width: 120px; }
.fm-dlg-f .qg-btn-ghost { padding: 0 16px; }
html.fm-modal-open { overflow: hidden; }

.fm-page .qg-toast-text.pm-tt { display: flex; min-width: 0; overflow: hidden; }
.fm-page .pm-tt-pre, .fm-page .pm-tt-ext { flex-shrink: 0; white-space: pre; }
.fm-page .pm-tt-stem { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 761px) {
    .fm-page .qg-note { gap: 6px; font-size: .68rem; white-space: nowrap; letter-spacing: -.01em; }
}
@media (max-width: 1100px) and (min-width: 761px) {
    .fm-add span { display: none; }
    .fm-add { padding: 0 11px; }
}
@media (max-width: 760px) {
    .fm-page .pm-tt-pre { display: none; }
    .fm-bar { top: calc(var(--cfx-top-h, 44px) + var(--cc-sticky, 66px) + 6px); flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 12px; }
    .fm-mode { flex: 1 1 100%; }
    .fm-mode button { flex: 1 1 0; }
    .fm-adds { flex: 1 1 100%; gap: 2px; }
    .fm-add { flex: 1 1 0; flex-direction: column; gap: 2px; height: 44px; padding: 0 2px; font-size: .6rem; }
    .fm-add i { font-size: 13px; }
    .fm-reset { flex: 1 1 100%; justify-content: center; margin-left: 0; }
    .fm-stage-bar { flex-wrap: wrap; row-gap: 10px; }
    .fm-tag { order: 1; flex: 1 1 100%; justify-content: center; }
    .fm-view { order: 2; margin-left: 0; }
    .fm-pnav { order: 3; margin-left: auto; }
    .fm-pages { padding: 10px; border-radius: 14px; }
    .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 70vh; padding: 12px; gap: 12px 10px; }
    .fm-rs { width: 16px; height: 16px; right: -8px; bottom: -8px; }
    .fm-rs::before { inset: -10px; }
    .fm-sp { top: -14px; right: -14px; width: 28px; height: 28px; font-size: 12px; }
    .fm-lsp { width: 200px; }
    .fm-tools button { width: 36px; height: 36px; }
    .fm-modal { align-items: flex-end; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 10, 14, .62); }
    .fm-dlg { max-width: none; max-height: 92vh; max-height: 92dvh; padding: 16px 14px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; }
    .fm-f input, .fm-f select, .fm-f textarea { font-size: 16px; }
    .fm-hex input, .fm-f .fm-hex input, .fm-fsr select, .fm-f .fm-fsr select { font-size: 16px; }
    .fm-hex { width: 124px; }
    .fm-dlg-f .qg-btn { flex: 1 1 0; }
}

.fm-page .pm-pv-box.is-zoom { overflow: auto; align-items: flex-start; justify-content: flex-start; cursor: grab; overscroll-behavior: contain; scrollbar-width: thin; }
.fm-page .pm-pv-box.is-zoom.is-pan { cursor: grabbing; user-select: none; }
.fm-page .pm-pv-box.is-zoom canvas { flex-shrink: 0; margin: auto; }
.fm-page .pm-pv-stage.is-zoom { touch-action: pan-x pan-y; }
.fm-zoom { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-card); }
.fm-zoom button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--cc-ink-2); font-size: 12px; cursor: pointer; transition: background .2s, color .2s; }
.fm-zoom button:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
.fm-zoom button:disabled { opacity: .35; pointer-events: none; }
.fm-zoom .fm-zoom-t { width: auto; min-width: 52px; padding: 0 6px; border-radius: 999px; font: 700 .72rem 'Poppins', sans-serif; color: var(--cc-ink); }
@media (max-width: 760px) {
    .fm-zoom { display: none !important; }
}