/* The editor uses its own neutral palette so theme edits only affect the preview. */
.theme-editor{--te-ink:#26372e;--te-muted:#788277;--te-line:#e0e5dc;--te-green:#385a42;--te-paper:#fff;--te-soft:#f3f5ef;color:var(--te-ink);font-family:'Pretendard Variable',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.5;max-width:1500px;margin:0 auto}
.theme-editor *{box-sizing:border-box}
.theme-editor button,.theme-editor input,.theme-editor select,.theme-editor textarea{font:inherit}
.theme-editor button{cursor:pointer;letter-spacing:0}
.theme-editor button:disabled{cursor:default;opacity:.45}
.theme-editor button svg,.theme-editor summary svg,.te-asset-preview svg{width:19px;height:19px;flex-shrink:0}
.theme-editor :focus-visible{outline:3px solid #86a673;outline-offset:3px}
.theme-editor [hidden]{display:none!important}
.te-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 26px}
.te-eyebrow{margin:0 0 9px;color:#67775e;font-size:12px;font-weight:650;letter-spacing:.025em}
.te-header h1{font-size:clamp(23px,2.4vw,32px);line-height:1.35;letter-spacing:-.07em;font-weight:650;margin:0;display:flex;align-items:center;gap:14px}
.te-header h1 span{font-size:29px;color:#95aa7f;font-weight:500}
.te-intro{margin:9px 0 0;color:var(--te-muted);font-size:13px}
.te-guide-button{border:1px solid var(--te-line);border-radius:9px;padding:11px 14px;text-decoration:none;color:#5c695c;font-size:12px;white-space:nowrap;background:#fff}
.te-savebar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#fff;border:1px solid var(--te-line);border-radius:14px 14px 0 0}
.te-savebar>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.te-status{font-size:12px;font-weight:650;display:flex;align-items:center;gap:7px;color:#597050}
.te-status:before{content:'';width:6px;height:6px;background:#74905e;border-radius:50%}
.te-status.is-dirty{color:#8c7446}.te-status.is-dirty:before{background:#bb9454}
.te-status.is-warning{color:#ab6539}.te-status.is-warning:before{background:#bd784b}
.te-current{font-size:12px;color:#939b91;border-left:1px solid var(--te-line);padding-left:14px}
.te-current strong{font-weight:500;color:#5f705c;margin-left:6px}
.te-save-actions,.te-file-actions,.te-asset-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.te-button{border:1px solid transparent;border-radius:8px;padding:10px 15px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.3;font-weight:600;font-size:12px!important;white-space:nowrap;text-decoration:none}
.te-button-primary{background:var(--te-green);color:#fff;box-shadow:0 2px 3px #2039250a}
.te-button-primary:hover:not(:disabled){background:#284a34}
.te-button-subtle{background:#fff;color:#465b45;border-color:var(--te-line)}
.te-button-subtle:hover:not(:disabled){background:#f0f4ed;border-color:#c7d3c1}
.te-text-button{padding:5px 2px;background:transparent;border:0;color:#607752;font-size:12px!important;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.te-notice{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:13px 18px;background:#fff5e9;border:1px solid #ecdcc4;border-top:0;font-size:12px;color:#7a5c35}
.te-notice .te-text-button{flex-shrink:0;color:#7a5c35}
.te-layout{display:grid;grid-template-columns:minmax(300px,355px) minmax(0,1fr);align-items:start;border:1px solid var(--te-line);border-top:0;background:#fff;border-radius:0 0 14px 14px;overflow:clip}
.te-settings{border-right:1px solid var(--te-line);background:#fff;min-width:0}
.te-panel{margin:0;border:0;border-bottom:1px solid var(--te-line);border-radius:0;background:#fff;overflow:hidden}
.te-panel:last-child{border-bottom:0}
.te-panel>summary{display:flex;align-items:center;gap:10px;min-height:60px;padding:18px 20px;cursor:pointer;list-style:none;font-size:13px;font-weight:650;user-select:none;color:#465642}
.te-panel>summary::-webkit-details-marker{display:none}
.te-panel>summary>svg{color:#718867}
.te-panel[open]>summary{padding-bottom:13px}
.te-chevron{margin-left:auto;font-size:19px;color:#7c8a74;line-height:1;transform:rotate(-90deg)}
.te-panel[open] .te-chevron{transform:rotate(0)}
.te-panel-content{padding:0 20px 22px}
.te-help{font-size:12px;line-height:1.6;color:var(--te-muted);margin:0 0 13px}
.te-subheading{font-size:12px;font-weight:650;color:#5a6b51;margin:24px 0 9px}
.te-field{display:block;margin:0 0 14px}
.te-field>span{display:block;color:#65705f;font-size:12px;font-weight:550;margin-bottom:6px}
.te-field input,.te-field textarea,.te-field select{display:block;width:100%;background:#fff;border:1px solid #dce2d7;border-radius:7px;min-height:40px;color:#33452f;padding:10px 11px;font-size:13px;line-height:1.45;box-shadow:none}
.te-field input:focus,.te-field textarea:focus,.te-field select:focus{border-color:#94aa83}
.te-field textarea{resize:vertical;min-height:68px}
.te-field small{display:block;font-size:11px;color:#89917e;margin-top:6px}
.te-presets{display:grid;gap:8px}
.te-preset{display:flex;align-items:center;gap:10px;width:100%;padding:11px 10px;text-align:left;border:1px solid var(--te-line);border-radius:8px;background:#fff;color:#48573f}
.te-preset.is-selected{border-color:#91a781;background:#f7f9f3;box-shadow:0 0 0 1px #91a781}
.te-preset>span:nth-child(2){flex:1;min-width:0}
.te-preset strong{display:block;font-size:12px;font-weight:650;margin-bottom:3px}
.te-preset small{display:block;font-size:11px;color:#869079;line-height:1.45}
.te-preset-check{width:14px;color:#6d8956}
.te-preset-check svg{width:14px!important;height:14px!important}
.te-preset-art{width:45px;height:45px;flex-shrink:0;background:#f0f1e8;border:1px solid #dfe5d5;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:22px 13px;gap:3px;padding:3px;border-radius:4px;overflow:hidden}
.te-preset-art i{display:block;background:#c9d5b8;border-radius:2px}
.te-preset-original i:first-child,.te-preset-editorial i:first-child{grid-column:1 / -1;background:#afc19c}
.te-preset-editorial{grid-template-rows:27px 8px}
.te-preset-compact{grid-template-rows:25px 10px}
.te-preset-compact i:last-child{grid-column:1 / -1;background:#dde3ce}
.te-section-list{border:1px solid var(--te-line);border-radius:8px;overflow:hidden}
.te-section-row{display:flex;align-items:center;gap:10px;min-height:45px;padding:7px 8px 7px 12px;background:#fff;border-bottom:1px solid #edf0e8}
.te-section-row:last-child{border-bottom:0}
.te-section-index{width:13px;font-size:11px;color:#a2ad98}
.te-section-row>label{display:flex;align-items:center;gap:10px;flex:1;position:relative;cursor:pointer;font-size:12px;color:#607151}
.te-section-row>label>span:first-child{flex:1}
.te-section-row input,.te-toggle-row input{position:absolute;opacity:0;width:1px;height:1px}
.te-switch{display:block;width:28px;height:17px;border-radius:10px;background:#dce1d7;flex-shrink:0;position:relative;transition:background .15s}
.te-switch:after{content:'';position:absolute;left:3px;top:3px;width:11px;height:11px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #0001;transition:transform .15s}
.te-section-row input:checked+.te-switch,.te-toggle-row input:checked+.te-switch{background:#829b70}
.te-section-row input:checked+.te-switch:after,.te-toggle-row input:checked+.te-switch:after{transform:translateX(11px)}
.te-section-row input:focus-visible+.te-switch,.te-toggle-row input:focus-visible+.te-switch{outline:3px solid #c1d4b0;outline-offset:2px}
.te-order-controls{display:flex;gap:1px;margin-left:2px}
.te-order-controls button{background:transparent;border:0;width:26px;height:28px;color:#5d754e;font-size:15px}
.te-order-controls button:hover:not(:disabled){background:#f0f4eb;border-radius:4px}
.te-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;margin-bottom:18px}
.te-color-field{min-width:0;display:block}
.te-color-field>span:first-child{display:block;font-size:11px;color:#6d795f;margin-bottom:6px}
.te-color-control{border:1px solid var(--te-line);border-radius:6px;height:37px;display:flex;align-items:center;background:#fff;padding:5px;gap:5px}
.te-color-control input[type=color]{width:23px;height:25px;border:0;background:none;padding:0;cursor:pointer;flex-shrink:0}
.te-color-control input[type=color]::-webkit-color-swatch-wrapper{padding:2px}
.te-color-control input[type=color]::-webkit-color-swatch{border:1px solid #0001;border-radius:3px}
.te-color-control input[type=text]{border:0;padding:0;min-width:0;width:100%;background:transparent;color:#6c795d;font-size:11px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;box-shadow:none}
.te-range-field{display:block;margin:17px 0}
.te-range-field>span{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#66715c;margin-bottom:9px}
.te-range-field output{font-size:11px;color:#7e8f70;background:#f2f5ed;padding:2px 7px;border-radius:4px}
.te-range-field input{width:100%;margin:0;accent-color:#829b70;height:17px;cursor:pointer;display:block}
.te-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;min-height:38px;font-size:12px;color:#66715c;cursor:pointer}
.te-asset-preview{aspect-ratio:16 / 10;max-height:190px;background:#f4f5ef;border:1px dashed #d4ddc9;border-radius:9px;overflow:hidden;margin-bottom:10px}
.te-asset-preview.is-portrait{aspect-ratio:1;max-width:155px;margin-left:auto;margin-right:auto}
.te-asset-preview img{width:100%;height:100%;object-fit:cover;display:block}
.te-asset-preview>div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#8e9b80;font-size:11px}
.te-asset-preview>div svg{width:28px;height:28px;color:#a4b395}
.te-asset-buttons{margin:10px 0}
.te-asset-buttons .te-button{padding:8px 12px;min-height:35px;font-size:11px!important}
.te-asset-buttons .te-button svg{width:15px;height:15px}
.te-asset-block>.te-help{font-size:11px;margin-bottom:0}
.te-chat-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}
.te-chat-preset{border:1px solid var(--te-line);background:#fff;padding:6px;border-radius:8px;min-width:0;color:#647357}
.te-chat-preset.is-selected{border-color:#91a781;box-shadow:0 0 0 1px #91a781;background:#f7f9f3}
.te-chat-sample{display:flex;flex-direction:column;gap:9px;padding:13px 7px;border-radius:4px;height:63px}
.te-chat-sample i{height:11px;width:70%;border-radius:4px;display:block;box-shadow:0 1px 2px #00000008}
.te-chat-sample i:last-child{align-self:flex-end;width:58%}
.te-chat-preset strong{font-size:11px;font-weight:550;display:block;padding:6px 0 1px}
.te-default-card{padding:13px;background:#f4f6ef;border-radius:9px}
.te-default-card strong{font-size:12px;color:#536c44;font-weight:600}
.te-default-card p{font-size:11px;color:#819175;line-height:1.6;margin:5px 0 11px}
.te-default-card .te-button{padding:8px 10px;min-height:34px;font-size:11px!important}
.te-history-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #ebeee5}
.te-history-row>div{min-width:0}
.te-history-row strong{display:block;font-size:12px;font-weight:550;color:#576b4e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.te-history-row span{display:block;font-size:10px;color:#9ba490;margin-top:3px}
.te-history-row button{flex-shrink:0}
.te-file-actions .te-button{font-size:11px!important;padding:8px 10px;min-height:35px}
.te-guide-link{display:flex;align-items:center;justify-content:space-between;color:#698355;font-size:12px;margin-top:14px;text-underline-offset:3px}
.te-preview-column{position:sticky;top:16px;min-width:0;align-self:start}
.te-preview-toolbar{min-height:62px;background:#fbfcf9;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 20px;border-bottom:1px solid var(--te-line)}
.te-page-tabs,.te-device-tabs{display:flex;align-items:center;gap:3px;background:#edf1e7;padding:3px;border-radius:8px}
.te-page-tabs button,.te-device-tabs button{border:0;background:transparent;color:#7d8d6e;border-radius:5px;height:31px;padding:0 11px;font-size:11px;font-weight:600;white-space:nowrap;display:flex;align-items:center;justify-content:center}
.te-page-tabs button[aria-pressed=true],.te-device-tabs button[aria-pressed=true]{background:#fff;color:#485f37;box-shadow:0 1px 3px #45563710}
.te-device-tabs button{width:33px;padding:0}
.te-device-tabs svg{width:17px!important;height:17px!important}
.te-preview-stage{padding:25px 16px 21px;min-width:0;background-color:#eef1e9;background-image:radial-gradient(#b7c4a750 .7px,transparent .7px);background-size:13px 13px;display:flex;justify-content:center;overflow:hidden}
.te-frame-wrap{position:relative;background:#fff;flex-shrink:0;box-shadow:0 12px 25px #354b3014,0 0 0 1px #52683c18;border-radius:7px;overflow:hidden;max-width:100%}
.te-frame-wrap.is-mobile{border-radius:20px;box-shadow:0 14px 35px #354b3020,0 0 0 1px #52683c25}
.te-frame-wrap iframe{border:0;position:absolute;left:0;top:0;transform-origin:top left;background:#fff;max-width:none}
.te-preview-caption{display:flex;justify-content:space-between;gap:12px;padding:12px 17px;font-size:10px;color:#8a977b;background:#fbfcf8;border-top:1px solid var(--te-line)}
.te-preview-caption>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap;color:#a4ad99}
.te-local-note{color:#94a087;font-size:10px;padding:0 17px 13px;margin:0;background:#fbfcf8;line-height:1.6}
.te-loading,.te-load-error{padding:60px 25px;text-align:center;color:#6c7c60}
.te-load-error h2{font-size:20px;color:#485e3b}.te-load-error p{font-size:14px}.te-load-error a{color:#567b3f;font-size:13px;text-decoration:underline}
.te-leave-dialog{--te-line:#e0e5dc;--te-green:#385a42;width:min(430px,calc(100vw - 32px));border:1px solid #dfe5d8;border-radius:17px;padding:27px;background:#fff;color:#35472e;box-shadow:0 22px 75px #22351b25;font-family:'Pretendard Variable',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.te-leave-dialog::backdrop{background:#23311c55;backdrop-filter:blur(3px)}
.te-leave-eyebrow{margin:0 0 8px;color:#859771;font-size:11px;font-weight:600}
.te-leave-dialog h2{font-size:21px;line-height:1.4;font-weight:650;letter-spacing:-.04em;margin:0 0 12px}
.te-leave-dialog>p:not(.te-leave-eyebrow){font-size:13px;line-height:1.8;color:#7f8b72;margin:0}
.te-leave-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:24px}
.te-leave-dialog .te-button{font-family:inherit;cursor:pointer}
.te-leave-dialog :focus-visible{outline:3px solid #b3c79d;outline-offset:3px}
@media (min-width:1550px){.te-layout{grid-template-columns:380px minmax(0,1fr)}.te-preview-stage{padding-top:30px;padding-bottom:30px}}
@media (max-width:1050px){.te-layout{grid-template-columns:290px minmax(0,1fr)}.te-panel>summary{padding-left:15px;padding-right:15px}.te-panel-content{padding-left:15px;padding-right:15px}.te-preview-toolbar{padding:12px}.te-guide-button{display:none}.te-preset-art{width:38px}.te-current{display:none}.te-header{margin-top:0}}
@media (max-width:760px){.te-layout{display:flex;flex-direction:column}.te-settings{width:100%;border-right:0;order:2;border-top:1px solid var(--te-line)}.te-preview-column{position:relative;top:auto;width:100%;order:1}.te-preview-stage{max-height:580px;overflow:auto;padding:20px 16px}.te-savebar{padding:12px;gap:10px}.te-save-actions{gap:5px}.te-save-actions .te-button{font-size:11px!important;padding:9px 11px;min-height:37px}.te-status{font-size:10px}.te-header{margin-bottom:18px}.te-header h1{font-size:24px}.te-intro{font-size:12px}.te-preview-caption{font-size:10px}.te-panel-content{padding:0 18px 22px}.te-panel>summary{padding:17px 18px}.te-colors{grid-template-columns:1fr 1fr;max-width:none}.te-notice{align-items:flex-start;flex-direction:column;gap:5px;font-size:11px}.te-preset small{font-size:12px}.te-preset strong{font-size:13px}.te-chat-sample{height:76px}.te-asset-preview{max-height:230px}.te-asset-preview.is-portrait{max-width:175px}.te-history-row strong{max-width:230px}}
@media (prefers-reduced-motion:reduce){.te-switch,.te-switch:after{transition:none}}
