/* ==== pdf common css: start ==== */
.pc-prog { margin: 14px 0; }
.pc-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.pc-prog span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pc-thumb { background: #fff; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; overflow: hidden; position: relative; }
.pc-thumb .pc-cv { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.pc-thumb img.pc-cv { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 12px; }
.pc-file { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; }
.pc-fi { font-size: 26px; }
.pc-fn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-fn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-fn small { color: var(--muted); }
.pc-file .btn { padding: 8px 12px; min-height: 40px; font-size: 14px; flex: none; }
.pc-ib { font: inherit; font-size: 16px; min-width: 40px; min-height: 40px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; cursor: pointer; padding: 0 6px; }
.pc-ib:hover { border-color: var(--brand); color: var(--brand); }
.pc-dragging { opacity: .45; }
.pc-over { outline: 2px dashed var(--brand); outline-offset: 2px; }
.pc-check { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 600; font-size: 15px; cursor: pointer; }
.pc-check input { flex: none; }
.pc-note { font-size: 14px; color: var(--muted); margin: 6px 0; }
/* ==== pdf common css: end ==== */

.ed-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.ed-tools { flex: 1 1 auto; }
.ed-tools button { font-size: 15px; padding: 8px 12px; min-height: 42px; }
.ed-small { padding: 6px 12px; min-height: 40px; font-size: 14px; }
.ed-props { margin-bottom: 10px; }
.ed-hint { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.ed-group[hidden] { display: none; }
#ed-g-text { display: flex; gap: 10px; flex-wrap: wrap; }
#ed-g-text[hidden] { display: none; }
#ed-g-text .field:first-child { flex: 1 1 220px; }
#ed-g-text textarea { min-height: 60px; }
.ed-sizef { width: 110px; }
.ed-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.ed-nav select { width: auto; min-height: 40px; padding: 4px 8px; }
.ed-stage { position: relative; width: 100%; max-width: 820px; margin: 0 auto; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; touch-action: pan-y; user-select: none; }
.ed-stage > canvas { display: block; width: 100%; height: 100%; }
.ed-stage .ed-ink { position: absolute; inset: 0; pointer-events: none; }
.ed-stage .ed-ink.on { pointer-events: auto; touch-action: none; cursor: crosshair; z-index: 3; }
.ed-layer { position: absolute; inset: 0; z-index: 2; }
.ed-layer.drawing { cursor: crosshair; touch-action: none; }
.ed-item { position: absolute; touch-action: none; cursor: move; }
.ed-item.sel { outline: 2px solid var(--brand); outline-offset: 1px; }
.ed-text:not(.sel) { outline: 1px dashed rgba(79, 70, 229, .5); }
.ed-t { white-space: pre; line-height: 1.2; font-family: Helvetica, Arial, "Noto Sans", sans-serif; }
.ed-img img { display: block; width: 100%; height: 100%; pointer-events: none; }
.ed-x, .ed-rs { display: none; }
.ed-item.sel .ed-x { display: grid; place-items: center; position: absolute; top: -14px; right: -14px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 14px; cursor: pointer; padding: 0; z-index: 2; }
.ed-item.sel .ed-rs { display: block; position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; cursor: nwse-resize; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
