/* signature-maker 전용. 글씨체는 글꼴 파일이 아니라 경로 자료(/signature-maker/glyphs/)로 그린다. 출처: glyphs/NOTICE.txt */
.sg-ui .sg-modes { margin: 0 0 14px; }
.sg-ui .sg-out { margin: 0 0 18px; }
.sg-ui .sg-stage { display: flex; align-items: center; justify-content: center; min-height: 160px; padding: 18px 24px; background: #fff; border: 1px solid var(--rule); border-radius: 2px; }
.sg-ui .sg-stage svg { width: 100%; max-height: 220px; display: block; }
.sg-ui .sg-pad { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 2px; touch-action: none; }
.sg-ui .sg-pad canvas { display: block; width: 100%; aspect-ratio: 2 / 1; touch-action: none; cursor: crosshair; }
.sg-ui .sg-pad::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 28%; border-bottom: 1px dashed #c9ced6; pointer-events: none; }
.sg-ui .sg-pad-hint { position: absolute; left: 0; right: 0; top: 38%; margin: 0; text-align: center; color: #9aa1ab; font-size: 15px; pointer-events: none; }
.sg-ui .sg-status { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.sg-ui .sg-actions, .sg-ui .sg-draw-tools { margin: 6px 0 0; gap: 8px; }
.sg-ui .sg-actions .btn { flex: 1 1 auto; }
.sg-ui .sg-doc { display: flex; align-items: flex-end; gap: 10px; margin: 12px 0 0; padding: 5.2em 18px 18px; background: #fff; border: 1px solid var(--rule); border-radius: 2px; color: #222; font: 15px/1.6 "AppleMyungjo", "Batang", "Noto Serif KR", serif; }
.sg-ui .sg-doc-line { position: relative; flex: 1; min-width: 120px; border-bottom: 1px solid #333; height: 1.6em; }
.sg-ui .sg-doc-line i { position: absolute; left: 8%; bottom: -0.35em; max-width: 92%; }
.sg-ui .sg-doc-line i svg { max-height: 5em; width: auto; max-width: 100%; }
.sg-ui .sg-doc-line i svg { display: block; width: 100%; height: auto; }
.sg-ui .sg-f label { display: block; font-size: 14px; }
.sg-ui .sg-fonts { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sg-ui .sg-fonts legend { padding: 0; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sg-ui .sg-fonts label { position: relative; margin: 0; cursor: pointer; }
.sg-ui .sg-fonts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sg-ui .sg-fonts span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 6px; background: #fff; border: 1px solid var(--rule); border-radius: 2px; }
.sg-ui .sg-fonts .sg-fp { display: flex; align-items: center; height: 54px; }
.sg-ui .sg-fonts .sg-fp svg { width: 100%; height: 100%; }
.sg-ui .sg-fonts em { font-style: normal; font-size: 12px; font-weight: 600; color: #555; }
.sg-ui .sg-fonts input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.sg-ui .sg-fonts input:focus-visible + span { outline: 2px solid var(--seal); outline-offset: 2px; }
.sg-ui .sg-range { margin: 14px 0 0; }
.sg-ui .sg-range label { display: flex; justify-content: space-between; margin-bottom: 2px; font-size: 14px; }
.sg-ui .sg-range output { color: var(--ink-3); font-weight: 600; }
.sg-ui .sg-range input { width: 100%; accent-color: var(--ink); min-height: 32px; }
.sg-ui .sg-legal { margin: 20px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.55; color: var(--ink-2); border-left: 3px solid var(--rule); background: var(--paper-2); }
.sg-ui .sg-credit { display: none; }
@media (max-width: 520px) {
  .sg-ui .sg-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-ui .sg-pad canvas { aspect-ratio: 4 / 3; }
  .sg-ui .sg-stage { min-height: 200px; }
}
@media (min-width: 900px) { .sg-ui { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; } .sg-ui > .sg-modes, .sg-ui > .sg-legal, .sg-ui > script { grid-column: 1 / -1; } .sg-ui .sg-out { position: sticky; top: 12px; align-self: start; } }
/* 다른 사이트 안에 넣어 쓸 때 */
.sg-embed body { background: var(--paper); }
.sg-embed .site-header, .sg-embed .crumbs, .sg-embed h1, .sg-embed .tool-intro, .sg-embed .explain, .sg-embed .faq,
.sg-embed .related, .sg-embed .site-footer, .sg-embed .gear, .sg-embed .ad-slot, .sg-embed .panel-bar, .sg-embed .next-step, .sg-embed .sg-ui .sg-doc { display: none !important; }
.sg-embed .page { max-width: none; padding: 0; }
.sg-embed .tool-panel { margin: 0; border: 0; padding: 12px var(--gutter) 10px; }
.sg-embed .sg-ui .sg-credit { display: block; margin: 8px 0 0; font-size: 12px; color: var(--ink-3); text-align: right; }
