/* Product shell adapted from the copied Bosang Haengbok base. */
:root{--ink:#182f4b;--navy:#102b53;--teal:#2859b8;--line:#dfe5ee;--cream:#f5f6f8;--muted:#65758b;--shadow:0 3px 22px #15345709}
body{background:var(--cream);color:var(--ink);font-size:15px}
.container{max-width:1180px;padding:0 24px}.site-header{background:white}.nav-inner{min-height:76px;gap:20px}
.brand{font-size:22px;letter-spacing:-.06em}.brand-icon{background:#2859b8;border-radius:10px;width:34px;height:34px;color:white;font-size:19px}
.header-right{margin-left:auto;display:flex;gap:16px;align-items:center}.quiet{color:var(--muted);font-size:13px}
.lang{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 11px;color:var(--ink)}
main{padding-bottom:70px}.intro{padding:60px 0 24px}.intro h1{font-size:clamp(28px,4vw,44px);line-height:1.28;letter-spacing:-.06em;margin:9px 0 14px}
.intro p{max-width:690px;color:#607187;line-height:1.8}.kicker{color:#2859b8;font-weight:700;letter-spacing:.05em;font-size:12px}
.demo-badge{display:inline-block;border:1px solid #e4c993;color:#795823;background:#fff8e9;border-radius:5px;font-size:11px;padding:2px 7px;white-space:nowrap}
.card{border:1px solid var(--line);border-radius:16px;background:white;box-shadow:var(--shadow);padding:26px;margin-top:18px}
.modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.module-card{display:block;min-width:0;box-sizing:border-box;overflow-wrap:anywhere;transition:transform .15s}.module-card:hover{transform:translateY(-3px);border-color:#9db4dc}.module-card h2{font-size:23px;letter-spacing:-.05em;margin:16px 0 12px}.module-card p{color:var(--muted)}.module-icon{font-size:25px;color:#2859b8;background:#edf3fd;width:50px;height:50px;display:grid;place-items:center;border-radius:13px}.arrow{color:#2859b8;font-weight:700}.pill{display:inline-block;max-width:100%;box-sizing:border-box;font-size:12px;border:1px solid var(--line);border-radius:30px;padding:4px 10px;background:#f8faff;white-space:normal;overflow-wrap:anywhere}.small{font-size:12px;color:var(--muted);line-height:1.7}.small a{text-decoration:underline}
.steps{display:flex;gap:20px;margin:5px 0 25px;color:var(--muted);font-size:13px}.steps b{color:#2859b8;margin-right:5px}
.work-layout{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:start}.work-layout .card{margin-top:0}.aside h3{font-size:16px;margin-bottom:10px}
.drop{border:2px dashed #bacbe3;background:#f8fbff;border-radius:12px;padding:30px 24px;text-align:center;transition:.15s}.drop.over{background:#e9f1ff;border-color:#2859b8}.drop p{margin:6px 0 16px;color:#607187}.drop strong{font-size:18px}.upload-icon{font-size:30px;color:#2859b8}
.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:center}.button{padding:10px 16px;min-height:42px;border-radius:8px;font-size:14px;gap:6px}.button-primary{background:#2859b8;border-color:#2859b8}.button-primary:hover{background:#204a9c}.button-outline{border-color:#cad5e5}.button:disabled{opacity:.5;cursor:not-allowed}.text-button{border:0;background:none;color:#2859b8;text-decoration:underline;padding:8px}.work-bottom{display:flex;gap:15px;align-items:center;margin-top:20px}.work-bottom .button-primary{min-width:180px}.file-list{margin:14px 0 0;max-height:200px;overflow:auto;padding:0;list-style:none}.file-list li{display:flex;gap:10px;align-items:center;padding:7px;border-bottom:1px solid #edf0f5;font-size:12px;word-break:break-all}.file-list button{margin-left:auto;border:0;background:none;color:#65758b}.banner{padding:12px 15px;border-radius:8px;margin-top:16px;background:#edf4ff;color:#294d89;font-size:13px;white-space:pre-line}.banner.error{color:#933727;background:#fff0e9}.banner.success{color:#216947;background:#e9f7ef}
details{margin-top:17px;border-top:1px solid var(--line);padding-top:14px}summary{cursor:pointer;font-weight:650;font-size:14px}.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}label{display:block;font-size:12px;color:#55677e}.field,input:not([type=checkbox]),select,textarea{width:100%;border:1px solid #cfd9e6;border-radius:7px;padding:9px;background:white;color:#172e4b}input[type=file]{display:none}input[type=checkbox]{accent-color:#2859b8}textarea{resize:vertical;min-height:90px}.field-row{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;align-items:center;margin:8px 0}.field-row span{font-size:12px}.template-row{display:grid;grid-template-columns:24px 120px 1fr;gap:8px;align-items:center;margin:7px 0}.template-row label{display:contents}
.result-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.result-header h2{font-size:24px;letter-spacing:-.04em;margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.stat{border:1px solid var(--line);border-radius:10px;padding:13px;background:#fafcff}.stat strong{font-size:21px;display:block;letter-spacing:-.04em}.stat span{font-size:11px;color:var(--muted)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px;margin:12px 0}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:970px}th{background:#f3f6fa;font-weight:650;color:#566881;white-space:nowrap;padding:10px}td{padding:7px;border-top:1px solid #e6ecf3;vertical-align:top}td input{min-width:88px;font-size:12px!important;padding:7px!important}td.source{max-width:160px;overflow-wrap:anywhere}.issue{color:#a24d20;font-size:11px;min-width:140px;max-width:210px}.ok{color:#217049}.review-row{background:#fffaf1}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar .small{margin-left:auto}
pre.source-text{white-space:pre-wrap;word-break:break-all;background:#f7f8fa;padding:15px;max-height:400px;overflow:auto;font-size:12px}
dialog{border:1px solid var(--line);border-radius:14px;max-width:720px;width:90vw;color:var(--ink);padding:26px}dialog::backdrop{background:#14253f66}.close-row{display:flex;justify-content:space-between}.photo-options{display:flex;gap:15px;margin:18px 0}.photo-options label{width:50%}#photo-size-row{flex-wrap:wrap}#photo-size-row label{flex:1 1 170px;width:auto}.compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.compare img{max-width:100%;max-height:330px;object-fit:contain;border-radius:8px;background:#f2f3f5}.compare figure{margin:0}.compare figcaption{font-size:12px;color:var(--muted);margin:6px 0}.feedback{max-width:780px}.feedback form{display:grid;gap:12px}.feedback .button{justify-self:start}.honeypot{display:none!important}.notice-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 0}.footer{border-top:1px solid var(--line);padding:24px 0;font-size:12px;color:#52657f;background:#eef2f7}td.source{min-width:130px}
@media(max-width:800px){.work-layout{grid-template-columns:1fr}.aside{display:none}.intro{padding-top:32px}.modules{grid-template-columns:1fr}.card{padding:20px}.stats{grid-template-columns:1fr 1fr}.stats .stat:last-child{grid-column:1/-1}.quiet{display:none}.nav-inner{min-height:66px}.brand{font-size:19px}.header-right{gap:8px}.container{padding:0 16px}.drop{padding:22px 12px}.steps{gap:10px;font-size:11px}.result-header{align-items:flex-start;flex-direction:column}.options-grid{grid-template-columns:1fr}.compare{gap:8px}.work-bottom{flex-wrap:wrap}.template-row{grid-template-columns:24px 90px 1fr}.notice-row{align-items:flex-start;flex-direction:column}}

#account-form{display:grid;gap:14px;margin-top:18px}.explanation-panel{margin:18px 0}#explanation p{margin:12px 0}.account-button{white-space:nowrap}@media(max-width:600px){.has-account .header-right .demo-badge{display:none}.has-account .header-right{gap:6px}.has-account .lang{padding:7px 9px}}

.split-options{align-items:flex-end;flex-wrap:wrap}.split-options label{flex:1;min-width:220px}.split-options .button{min-height:43px}#split-download-area table{min-width:620px}@media(max-width:600px){.split-options label{width:100%;flex-basis:100%;min-width:0}.split-options .button{flex:1}.split-options .text-button{flex:1}}

.changes-inputs{display:grid;grid-template-columns:1fr 1fr;gap:20px}.changes-inputs h2{font-size:21px;margin-top:0}.changes-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.changes-columns{border:1px solid var(--line);border-radius:8px;padding:15px;margin:20px 0;display:flex;gap:16px;flex-wrap:wrap}.changes-columns label{display:flex;gap:6px;align-items:center}.changes-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:20px 0}#changes-rows td{min-width:160px;overflow-wrap:anywhere}#changes-rows details{padding:0;margin:0;border:0}@media(max-width:800px){.changes-inputs,.changes-keys{grid-template-columns:1fr}.changes-stats{grid-template-columns:1fr 1fr}}

.subtle-rule{border:0;border-top:1px solid var(--line);margin:24px 0}.mapping-upload{justify-content:flex-start;margin:10px 0}.mapping-upload span{overflow-wrap:anywhere}

.photo-faq{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}.photo-faq summary{cursor:pointer;font-weight:650}.photo-faq h3{font-size:15px;margin:18px 0 4px}.photo-faq p{margin:4px 0;color:var(--muted)}#photo-cancel{background:#fff}
@media(max-width:600px){#photo-size-row,.photo-options{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.photo-options label,#photo-size-row label{width:auto;min-width:0}.photo-options input,.photo-options select{max-width:100%}.photo-order-actions{display:flex;gap:4px}.photo-order-actions button{min-width:36px;min-height:36px}.photo-options .actions,.work-bottom{display:flex;flex-wrap:wrap}.photo-faq{font-size:14px}}

/* Column Fit: shared compact layout */
.file-input-hidden{display:none}.column-required{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.column-required label{display:flex;align-items:center;gap:6px}.column-required input{width:auto}.column-layout{margin:16px 0;padding:14px;border:1px solid #d9e3ed;border-radius:12px}.column-layout select,.column-layout input{min-width:150px}.column-layout summary{font-weight:600;cursor:pointer}#columns-targets{max-width:600px;width:100%}

.column-target-label{display:block}#columns-targets{display:block;margin-top:6px}.column-layout .column-mapping{min-width:0;width:100%}.column-mapping th:first-child{width:27%}.column-mapping input[hidden]{display:none}.column-mapping input:not([hidden]){display:block;margin-top:6px}.column-layout .column-mapping select,.column-layout .column-mapping input{min-width:0;width:100%;max-width:100%}.column-mapping td{overflow-wrap:anywhere}

/* Portable rule preview uses existing dialog styles; long headings remain readable on mobile. */
#columns-backup{margin-top:18px}
#columns-profile-dialog{width:min(600px,calc(100% - 32px));max-height:calc(100vh - 32px);overflow:auto}
#columns-profile-dialog li,.profile-file-name{overflow-wrap:anywhere}
#columns-profile-dialog .actions{margin-top:20px}

/* Hub search and separate, keyboard-accessible favorite buttons. */
.hub-search{max-width:760px;margin:0 0 12px}.hub-search label{font-size:15px;font-weight:650;margin-bottom:8px}.hub-search-row{display:flex;gap:8px;align-items:center}.hub-search-row input{min-width:0;flex:1;box-sizing:border-box;min-height:44px}.hub-search-row button{flex:none;min-height:44px}.hub-search .small{margin:8px 0}
.hub-card{position:relative;min-width:0;display:flex}.hub-card[hidden]{display:none}.hub-card>.module-card{width:100%;margin-top:0}.hub-favorite{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:10px;background:white;color:var(--muted);font-size:27px;cursor:pointer}.hub-favorite[aria-pressed=true]{color:#805300;background:#fff5d9;border-color:#dcc16e}.hub-favorite:hover{border-color:var(--teal)}.hub-favorite:focus-visible,#hub-search:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
@media(max-width:480px){.hub-search-row{flex-wrap:wrap}.hub-search-row input{flex-basis:100%}.hub-search-row button{padding-left:0}.hub-favorite{top:14px;right:14px}}

/* PDF folder reuses the hub grid's measured card dimensions. */
.modules{grid-auto-rows:1fr}
#hub-pdf-dialog{padding:0;border:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;background:var(--cream)}
.pdf-folder-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;position:sticky;top:0;background:var(--cream);z-index:1}
.pdf-folder-header h2{margin:0;font-size:23px}
.pdf-folder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.pdf-folder-grid>.module-card{margin:0;min-height:var(--pdf-card-height,300px)}
#hub-pdf-folder:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
@media(max-width:1100px){.pdf-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.pdf-folder-grid{grid-template-columns:minmax(0,1fr)}}
