:root{font-family:Avenir Next,Segoe UI,Noto Sans KR,Helvetica Neue,sans-serif;font-size:15px;line-height:1.45;font-weight:400;color:#13313f;background:radial-gradient(circle at 20% 20%,#fff8e6,#eaf7ff 48%,#eef3f7);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;min-height:100vh}#root{min-height:100vh}.app-shell{width:min(900px,calc(100vw - 1.5rem));margin:0;margin-inline:auto;padding:3rem 0 2.5rem;display:flex;flex-direction:column;gap:1.2rem}.hero{padding:1.5rem 1.6rem .2rem}.hero-title-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.eyebrow{margin:0;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#905500;font-size:.78rem}.hero h1{margin:.4rem 0 0;font-size:clamp(1.7rem,4vw,2.35rem);letter-spacing:-.02em;color:#0d2f3d}.ghost-button{background:#fff;color:#1e445a;border-color:#b8cfdb;box-shadow:none;padding:.5rem .85rem}.ghost-button:hover{box-shadow:none}.hero-copy{margin:.85rem 0 0;max-width:66ch;color:#3c4e58}.panel{background:#fefefecc;border:1px solid #d6e6ed;border-radius:16px;padding:1.3rem;box-shadow:0 16px 42px -34px #245;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.panel-header h2{margin:0;font-size:1.15rem}.panel-header p{margin:.45rem 0 0;color:#52656f}.template-form{margin-top:1rem}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.field-grid>*{min-width:0}.field-grid-three-columns{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:.35rem;font-weight:600;font-size:.85rem;color:#334b58}.field-hint{font-size:.78rem;font-weight:500;color:#48616d}.full-width{grid-column:1 / -1;margin-top:.75rem}.file-picker-row{display:flex;gap:.55rem;align-items:center}.file-picker-row button{flex:0 0 auto;padding-inline:.85rem;white-space:nowrap}.letterhead-actions{margin-top:.2rem;display:flex;justify-content:flex-end}.letterhead-actions button{min-width:9.5rem}.letterhead-preview{margin:0;border:1px solid #d6e6ed;border-radius:10px;padding:.45rem;background:#fff}.letterhead-preview img{display:block;width:100%;max-width:100%;height:auto;border-radius:6px}.hidden-file-input{display:none}input,textarea,select,button{border-radius:10px;border:1px solid #c2d6df;padding:.62rem .72rem;font-size:.9rem;font-family:inherit;color:#103041;background:#fff}input,textarea,select{width:100%;max-width:100%;min-width:0}textarea,input,select{overflow-wrap:anywhere}button{cursor:pointer;font-weight:700;color:#0f3348;background:linear-gradient(180deg,#ffd58e,#f8c367);border-color:#efbb63;transition:transform .11s ease,box-shadow .11s ease}button:hover{transform:translateY(-1px);box-shadow:0 12px 22px -15px #cc8d25}button:disabled{cursor:wait;opacity:.75;transform:none;box-shadow:none}.actions{margin-top:.9rem;display:flex;justify-content:flex-end}.template-description{margin:.8rem 0 0;color:#5e7079;font-size:.92rem}.section-divider{margin:1rem 0;border:0;border-top:1px dashed #cfdbe3}.collapsible-section{margin-top:1rem;border:1px solid #d6e6ed;border-radius:12px;padding:.75rem .85rem;background:#fbfeff}.collapsible-summary{list-style:none;display:flex;align-items:center;gap:.45rem;cursor:pointer;font-size:.98rem;font-weight:700;color:#264452}.collapsible-summary::-webkit-details-marker{display:none}.collapsible-summary:before{content:"▸";font-size:.8rem;color:#3c5c6d}.collapsible-section[open] .collapsible-summary:before{content:"▾"}.collapsible-section .field-grid{margin-top:.65rem}.subsection-title{margin:1rem 0 .65rem;font-size:.98rem;color:#264452}.placeholder-card,.result-card{margin-top:1rem;border:1px solid #d7e4ea;border-radius:14px;padding:.95rem;background:#f6fbff}.placeholder-card h3,.result-card h3{margin:0 0 .6rem;font-size:1rem}.placeholder-tree{margin:0;padding-left:1.05rem;display:grid;gap:.55rem}.placeholder-tree>li>strong{color:#264452;display:block;margin-bottom:.28rem}.placeholder-inline-list{margin:0;line-height:1.7}.placeholder-inline-list code{background:#eaf5ff;border:1px solid #d3e6f7;border-radius:999px;padding:.18rem .5rem;display:inline-block}.template-index-card{margin-top:1rem;border:1px dashed #cfdbe3;border-radius:14px;padding:.95rem;background:#ffffffb0}.template-index-card h3{margin:0 0 .6rem;font-size:1rem}.template-index-card ul{margin:0;padding-left:1.1rem;color:#314955}.status-banner{margin-top:1rem;border-radius:12px;padding:.75rem .85rem}.status-banner.error{background:#ffeceb;color:#7f2018;border:1px solid #f5cac4}.result-card p{margin:.35rem 0;word-break:break-all}.result-actions{margin-top:.8rem;display:flex;flex-wrap:wrap;gap:.6rem}code{font-family:Menlo,Consolas,SFMono-Regular,monospace;font-size:.83rem}@media(max-width:740px){.app-shell{width:min(100vw,calc(100vw - 1rem));padding-top:1.7rem}.panel{padding:1rem}.collapsible-section{padding:.65rem .7rem}.hero{padding-inline:.2rem}.field-grid,.field-grid-three-columns{grid-template-columns:1fr}.actions{justify-content:stretch}.actions button{width:100%}.file-picker-row{flex-direction:column;align-items:stretch}.file-picker-row button{width:100%}.letterhead-actions{justify-content:stretch}.letterhead-actions button{width:100%;min-width:0}}
