:root { --acc: #db2777; --accd: #be185d; --accbg: #fdf0f6 }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 5px; font: 600 12px Inter, sans-serif; background: #fff }
.alt { display: flex; gap: 8px; justify-content: center; margin-top: 12px }
.ed { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0 }
.tb { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap }
.tools { display: flex; gap: 2px } .tools button, .ib { width: 36px; height: 36px; border: 1px solid transparent; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--tx2); font-size: 16px }
.tools button:hover, .ib:hover:not(:disabled) { background: #f1f2f5 } .tools button.on { background: var(--ink); color: #fff } .ib:disabled { opacity: .35; cursor: default }
.colors { display: flex; gap: 4px } .colors button { width: 22px; height: 22px; border: 1px solid #0003; cursor: pointer } .colors button.on { outline: 2px solid var(--ink); outline-offset: 2px }
.div { width: 1px; height: 24px; background: var(--line) } .tb .sp { flex: 1 } .tb .s { font-size: 12px; color: var(--tx3) }
.seg.sm button { height: 30px; padding: 0 10px; font-size: 12.5px }
.ck { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer } .ck input { accent-color: var(--acc) }
.cbox { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#e9ebef 0 25%, #f3f4f6 0 50%) 0 0/20px 20px; position: relative; min-height: 0 }
.cbox canvas { box-shadow: 0 2px 12px rgba(0,0,0,.18); background: #fff; touch-action: none }
#textEd { position: absolute; min-width: 160px; border: 1.5px dashed #2563eb; background: rgba(255,255,255,.85); font-family: Inter, Segoe UI, Arial, sans-serif; font-weight: 700; padding: 0 4px; resize: both; outline: none; z-index: 5 }
.side .txt { font-size: 13px; color: var(--tx2); margin: 0 0 8px; line-height: 1.5 } .keys { font-size: 12px !important }
.go .two { display: flex; gap: 8px } .go .two .btn { flex: 1; width: auto }
#frSeg button { padding: 0 6px; font-size: 13px }
