/* 딸깍 공통 배지 원본은 유지하고 화면의 배치와 카드만 정리합니다. */
@media screen {
 :root{--green:#25745b;--ink:#111;--muted:#111;--line:#daefe6;--ddalkkak-badge-start:#25745b;--ddalkkak-badge-end:#399b76}
 body{background:#f5fbf8;color:#111}
 .topbar.ddalkkak-header{max-width:1536px;width:calc(100% - 48px);height:112px;min-height:112px;margin:14px auto 12px;padding:17px 20px;border:1px solid #d7f3e7;border-radius:17px;background:linear-gradient(110deg,#fafefc,#f1fcf7);box-shadow:0 6px 18px #27604810}
 .ddalkkak-header .app-logo{width:64px;height:64px;flex:none}
 .ddalkkak-header .series-label{color:#2e6a4f;font-size:12px;font-weight:900;letter-spacing:1.25px;line-height:1.3;display:block}
 .ddalkkak-header .brand{font-size:36px;gap:0;margin:4px 0;line-height:1.12;color:#111}
 .app-version{font-size:12px;line-height:1.2;letter-spacing:0;font-weight:800;color:#714000;background:#fff5dd;border:1px solid #f5c66a;border-radius:18px;padding:7px 10px;margin-left:12px;white-space:nowrap}
 .ddalkkak-header p{font-size:14.5px;font-weight:600;color:#111;margin:3px 0 0}
 .series-home{color:#111;background:white;border-color:#d0ede1;font-size:14px;padding:11px 14px;border-radius:10px}
 main{max-width:1536px;width:calc(100% - 48px);margin:auto;padding:0 0 16px;min-height:0}
 .workspace{grid-template-columns:278px minmax(0,1fr);gap:18px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;min-height:0}
 .settings{display:flex;flex-direction:column;gap:8px;padding:11px;border:1px solid #daf1e7;border-radius:20px;background:#edf9f4;min-height:0;overflow:hidden;scrollbar-gutter:auto}
 .settings-body{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;overflow:auto;scrollbar-gutter:auto;scroll-padding-top:8px;padding-right:3px}
 .settings-card{flex:none;min-width:0;background:white;border:1px solid #daefe6;border-radius:16px;padding:15px;box-shadow:0 4px 12px #2d6b5105}
 .settings .section-head{gap:8px;margin:0 0 12px;padding:0;border:0}.settings .section-head h2{font-size:17px;font-weight:850;color:#111}
 .step{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;font-size:12px;border:1px solid #d2f5e6;border-radius:50%;background:#edfbf5;color:#24664b!important}
 .settings .dropzone{margin-top:0;min-height:98px;border:2px dashed #a9dec8;border-radius:11px;padding:12px 5px;background:#f9fefc;gap:3px}
 .settings .dropzone:hover,.settings .dropzone.drag{background:#f0fcf7;border-color:#25745b}
 .settings .upload-icon{font-size:23px;line-height:25px;margin:0;color:#25745b}.settings .dropzone strong{font-size:16px;letter-spacing:-.5px}.settings .dropzone>span:last-of-type{font-size:12px;margin-top:3px}
 .settings .file-info{font-size:12px;background:#f2fbf7;border:1px solid #e5f4ee;margin-top:8px;padding:7px;border-radius:7px}
 .settings .text-button{font-size:13px;padding:8px 0;color:#111}.upload-card #demo{padding-bottom:0}
 .settings .field{font-size:14px;gap:6px;margin-bottom:12px}.settings .field select,.settings .field input{font-size:15px;height:42px;border:1px solid #c6e1d6;border-radius:9px;background:white;color:#111;padding:8px}
 .settings .two-fields{gap:8px}.settings .direct-help{padding:10px;background:#f7fcfa;border:1px solid #dff3eb;border-radius:10px;margin-top:0;line-height:1.6}.settings .direct-help b,.settings .direct-help p{display:none}.settings .direct-help span{font-size:13px;color:#111}
 .settings #auto{font-size:13px;padding:11px 0 7px}.settings details{margin-top:8px;padding-top:11px;border-color:#e0f1ea}.settings summary{font-size:14px;margin-bottom:10px;color:#111}.settings details:not([open]) summary{margin-bottom:0}
 .help-card .usage-help{border:0;padding:0;margin:0}.help-card .privacy{border-color:#e6f3ed;margin-top:12px;padding-top:11px}.help-card .privacy p{font-size:12px;line-height:1.65;color:#111}.help-card .usage-help p{font-size:13px}
 .developer-credit{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0 2px;margin:0;border-top:1px solid #d8f0e6;font-size:12px;line-height:1.4;color:#111;flex:none}.developer-credit b{font-size:13px;color:#111}
 .preview-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:18px;background:transparent;min-height:0;overflow:visible}
 .source-panel,.result-panel{border:1px solid #d3efe3;border-radius:17px;background:white;box-shadow:0 7px 20px #2b614b0b;min-width:0;min-height:0;overflow:hidden}
 .source-panel{grid-column:1;grid-row:1;display:flex;flex-direction:column;padding:18px;align-self:start;height:auto;max-height:100%;flex:none}
 .source-toolbar{gap:7px;display:flex;flex-wrap:wrap;align-items:center}.source-toolbar .section-head{width:100%;margin:0 0 3px}.source-toolbar .section-head h2{font-size:20px;font-weight:850}.source-toolbar .section-head .step{display:none}.source-legend{display:none}
 .panel-focus{border-color:#cfebdf;background:#f8fefb;border-radius:8px;padding:8px 11px;color:#111;font-size:13px;font-weight:700}.panel-focus:hover{background:#eefbf6}.panel-focus[aria-pressed=true]{background:#25745b;border-color:#25745b;color:white}
 .source-note{font-size:13px;line-height:1.65;padding:12px 0;color:#111;flex:none}
 .source-scroll{height:clamp(230px,45vh,490px);max-height:100%;min-height:150px;flex:0 1 auto;border:1px solid #daefe6;border-radius:10px;scrollbar-gutter:auto}
 .source-columns,.source-corner,.source-rownums{background:#f2faf7}.column-pick{background:#f2faf7;color:#111;border-color:#deeee7}.column-pick.selected{background:#e2f9ef;color:#111;border-bottom-color:#25745b}.column-pick:hover{background:#eafaf3}
 .result-panel{grid-column:2;grid-row:1;display:flex;flex-direction:column;height:100%;position:relative;border-top:1px solid #cddfd3}
 .preview-toolbar{padding:17px 18px 14px;border-bottom:1px solid #e1f2eb;background:white;display:flex;flex-wrap:wrap;gap:12px;flex:none}
 .preview-toolbar .section-head{width:100%;gap:8px}.preview-toolbar .section-head h2{font-size:20px;font-weight:850}.preview-toolbar .step{display:none}.preview-toolbar .pill{font-size:12px;border-color:#d4ece2;background:#f7fdfb;color:#111}
 .output-actions{width:100%;display:flex;gap:8px;margin:0!important}.output-actions .primary,.output-actions .secondary{flex:1;font-size:16px;font-weight:800;padding:12px 9px;min-height:46px;border-radius:10px}.output-actions .primary{background:#25745b;color:white;box-shadow:none}.output-actions .primary:hover:enabled{background:#1d5e49}.output-actions .secondary{border-color:#c3e7d8;background:#f9fefc;color:#111}
 .preview-sub{padding:12px 18px;background:#f8fefb;display:flex;flex-wrap:wrap;gap:10px;flex:none;border-bottom:1px solid #e5f4ee;color:#111}.preview-sub #summary{font-size:12px;width:100%}.preview-sub label{margin-left:auto;font-size:13px;color:#111}.preview-sub select{font-size:13px;background:white;border-color:#cfe8de;color:#111;border-radius:7px}
 .preview-canvas{grid-column:auto;grid-row:auto;flex:1;min-height:0;max-height:none;padding:28px 17px 16px;background:#f0f9f5;scrollbar-gutter:auto;overflow:auto}.page-tag{color:#111;font-size:10px}.paper{box-shadow:0 4px 16px #25534020}
 #notice,#pdf-status{grid-column:auto;grid-row:auto;flex:none;margin:10px 14px 0;color:#111}#pdf-status:empty{display:none}
 .workspace.source-focus .preview-area,.workspace.preview-focus .preview-area{display:grid;grid-template-columns:minmax(0,1fr)}
 .workspace.source-focus .source-panel{grid-column:1;grid-row:1;align-self:stretch;height:100%}.workspace.source-focus .source-scroll{flex:1;height:auto}.workspace.source-focus .result-panel{display:none}
 .workspace.preview-focus .source-panel{display:none}.workspace.preview-focus .result-panel{grid-column:1;grid-row:1}.workspace.preview-focus .preview-toolbar .section-head{width:auto}.workspace.preview-focus .output-actions{width:auto;margin-left:auto!important}.workspace.preview-focus .preview-sub #summary{width:auto}
 .workspace.stacked-layout:not(.source-focus):not(.preview-focus) .preview-area{display:flex;flex-direction:column;gap:14px}.workspace.stacked-layout:not(.source-focus):not(.preview-focus) .source-panel{height:44%;flex:0 0 44%;align-self:stretch}.workspace.stacked-layout .source-scroll{flex:1;height:auto;min-height:75px}.workspace.stacked-layout .source-toolbar .section-head{width:auto}.workspace.stacked-layout .source-note{padding:8px 0}.workspace.stacked-layout .result-panel{flex:1;min-height:0;height:auto}.workspace.stacked-layout .preview-toolbar{padding:12px 16px}.workspace.stacked-layout .preview-toolbar .section-head{width:auto}.workspace.stacked-layout .output-actions{width:auto;margin-left:auto!important}.workspace.stacked-layout .preview-sub #summary{width:auto}
 @media(min-width:901px) and (min-height:650px){html,body{height:100%;overflow:hidden}main{height:calc(100dvh - 138px)}.workspace{height:100%}}
 @media(min-width:1600px){.workspace{grid-template-columns:288px minmax(0,1fr)}.preview-area{grid-template-columns:minmax(0,1.03fr) minmax(0,1fr)}.source-toolbar .section-head{width:auto;margin-right:auto}.source-scroll{height:clamp(250px,47vh,520px)}}
 @media(max-width:1200px){.topbar.ddalkkak-header,main{width:calc(100% - 28px)}.workspace{grid-template-columns:252px minmax(0,1fr);gap:12px}.preview-area{gap:12px}.source-panel{padding:15px}.preview-toolbar{padding:15px 14px}.source-toolbar .section-head h2,.preview-toolbar .section-head h2{font-size:18px}.settings{padding:9px;gap:10px}.settings-card{padding:12px}.series-home{display:none}.app-version{font-size:11px;margin-left:9px;padding:6px 8px}.preview-canvas{padding:27px 12px 14px}}
 @media(max-width:900px),(max-height:649px){html,body{height:auto;overflow:auto}main{height:auto}.workspace{height:auto;grid-template-columns:1fr}.settings{display:grid;grid-template-columns:1fr 1fr;align-items:start;overflow:visible}.settings-card{min-width:0}.help-card{grid-column:1/-1}.developer-credit{grid-column:1/-1;flex-direction:row;justify-content:center;gap:12px}.preview-area{display:flex;flex-direction:column}.source-panel{align-self:stretch;max-height:none;height:auto}.source-scroll{height:280px;max-height:400px;flex:0 1 auto}.result-panel{height:650px;min-height:420px;flex:none}.preview-canvas{min-height:0;max-height:none}#toggle-layout,#focus-source,#focus-preview{display:none}.topbar.ddalkkak-header{height:auto;min-height:112px}.ddalkkak-header .brand{font-size:30px}.ddalkkak-header p{font-size:13px}}
 @media(max-width:900px),(max-height:649px){.settings{display:flex;overflow:visible}.settings-body{display:grid;grid-template-columns:1fr 1fr;flex:none;overflow:visible;padding:0}.developer-credit{display:flex;flex-direction:row}}
 @media(max-width:600px){.topbar.ddalkkak-header,main{width:calc(100% - 20px)}.topbar.ddalkkak-header{margin-top:10px;padding:14px 12px;border-radius:15px;gap:10px}.ddalkkak-header .app-logo{width:54px;height:54px}.ddalkkak-header .brand{font-size:25px;flex-wrap:wrap;row-gap:6px;letter-spacing:-1px}.ddalkkak-badge{width:70px;height:29.2px;border-radius:9px;margin-right:6px}.ddalkkak-header .series-label{font-size:10px;letter-spacing:.8px}.app-version{font-size:10px;margin-left:6px;padding:5px 7px}.ddalkkak-header p{font-size:12px;margin-top:5px}.settings{display:flex;padding:9px;gap:10px}.settings-body{display:flex;flex-direction:column}.settings-card{padding:15px}.source-panel{padding:15px}.source-scroll{height:260px}.result-panel{height:550px}.preview-sub{padding:10px 14px}.preview-toolbar .section-head h2{font-size:18px}.developer-credit{display:flex;flex-direction:row}}
}

@media screen and (min-width:901px) and (min-height:650px){.settings{height:auto;max-height:100%;align-self:start}.result-panel{height:min(100%,780px);align-self:start}}

@media screen{.output-actions .primary,.output-actions .secondary{border:1px solid #25745b;background:#25745b;color:#fff;box-shadow:none}.output-actions .primary:hover:enabled,.output-actions .secondary:hover:enabled{background:#1d5e49;border-color:#1d5e49}}

@media screen{.header-developer{font-size:13px;font-weight:700;line-height:1.4;letter-spacing:0;color:#111;margin-left:12px;white-space:nowrap}@media(max-width:600px){.header-developer{font-size:11px;margin-left:8px}}}

/* 편집 영역과 출력 결과의 경계, 원본 좌우 스크롤을 또렷하게 표시 */
@media screen{.source-panel,.result-panel{border:2px solid #4f7964}.source-scroll{border:1.5px solid #719481;scrollbar-color:#5a7e68 #edf3ee}.source-scroll::-webkit-scrollbar{height:12px;width:12px}.source-scroll::-webkit-scrollbar-track{background:#edf3ee;border-radius:10px}.source-scroll::-webkit-scrollbar-thumb{background:#5a7e68;border:2px solid #edf3ee;border-radius:10px}.source-scroll::-webkit-scrollbar-thumb:hover{background:#3d624c}}
