.gio-editor{border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#17243a;overflow:hidden;font:16px/1.7 system-ui,sans-serif}.gio-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:10px;background:#f5f8fb;border-bottom:1px solid #dde5ed}.gio-toolbar button{font:inherit;font-size:13px;color:#243c54;background:#fff;border:1px solid #d4dfe9;border-radius:6px;padding:5px 9px;cursor:pointer}.gio-toolbar button:hover{background:#eaf3ff}.gio-toolbar button:focus-visible{outline:3px solid #2563eb;outline-offset:1px}.gio-toolbar button:disabled{opacity:.5;cursor:default}.gio-content{font-size:12px;padding:22px;min-height:240px;max-height:65vh;overflow:auto;overflow-wrap:anywhere;outline:none}.gio-content:focus{box-shadow:inset 0 0 0 2px #4088df}.gio-content p{margin:0 0 12px}.gio-content h2{font-size:1.6em}.gio-content h3{font-size:1.25em}.gio-content blockquote{border-left:3px solid #3b82f6;padding-left:15px;color:#556877}.gio-content a{color:#175dbc;text-decoration:underline}.gio-bold{font-weight:700}.gio-italic{font-style:italic}.gio-underline{text-decoration:underline}.gio-strike{text-decoration:line-through}.gio-underline.gio-strike{text-decoration:underline line-through}.gio-status{min-height:24px;padding:7px 16px;border-top:1px solid #e6edf3;font-size:12px;color:#53657d}
.gio-toolbar button[aria-pressed=true]{background:#dbeafe;border-color:#3b82f6;color:#1e40af}.gio-link-dialog{border:1px solid #b7cbd3;border-radius:14px;padding:24px;width:min(420px,80vw);color:#18304a}.gio-link-dialog::backdrop{background:#10283f66}.gio-link-dialog label{display:block;font-weight:600}.gio-link-dialog input{box-sizing:border-box;width:100%;padding:12px;margin-top:10px;border:1px solid #afc2d0;border-radius:6px}.gio-link-dialog button,.gio-bot button{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:7px 12px;margin-right:8px;cursor:pointer}.gio-link-dialog p{font-size:13px;color:#a02d2d}.gio-bot{padding:12px 20px;background:#f8faff;border-top:1px solid #dbeafe}.gio-bot h3{font-size:15px;margin:0}.gio-bot p{font-size:13px;color:#526985;margin:5px 0}.gio-bot ul{margin:0;padding:0;list-style:none}.gio-bot li{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-top:1px solid #dbeafe;padding:10px 0;font-size:13px}.gio-bot code{white-space:pre-wrap;overflow-wrap:anywhere}.gio-bot button:disabled{opacity:.5}

.gio-content :is(p,h2,h3,blockquote,li){margin-bottom:var(--gio-paragraph-gap,12px)}
.gio-content:after{content:"";display:block;clear:both}
.gio-toolbar{align-items:center;align-content:start;gap:4px;padding:8px 12px}
.gio-toolbar button{width:32px;height:32px;padding:4px;font:600 17px/1 system-ui;display:inline-flex;align-items:center;justify-content:center;border-color:transparent;background:transparent}
.gio-toolbar button:hover{background:#e4edff;border-color:#c5d8f5}
.gio-toolbar button svg{width:19px;height:19px}
.gio-toolbar button:disabled{opacity:.4}
.gio-choice{position:relative;display:inline-flex;flex:0 0 44px;width:44px;height:36px;margin:2px;color:#334e70}
.gio-choice-icon{position:absolute;inset:0 10px 0 0;display:flex;align-items:center;justify-content:center;font:600 17px/1 system-ui;pointer-events:none;color:#334e70}
.gio-choice:after{content:"";position:absolute;right:7px;top:14px;width:4px;height:4px;border-right:1.5px solid #7387a3;border-bottom:1.5px solid #7387a3;transform:rotate(45deg);pointer-events:none}
.gio-choice select{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:44px;height:36px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:transparent;font:500 13px/1.4 system-ui;cursor:pointer}
.gio-choice select option{color:#273c56;background:white;font:400 14px/1.5 system-ui}
.gio-choice select:hover:not(:disabled){border-color:#bdd1ef;background:#eaf2ff}.gio-choice select:focus-visible{outline:2px solid #2563eb;outline-offset:2px;background:#eaf2ff}
.gio-choice select:disabled{cursor:default}.gio-choice select:disabled~.gio-choice-icon{opacity:.35}
.gio-choice.gio-scope-all select{background:#dbeafe;border-color:#93b4e7}.gio-choice.gio-scope-all .gio-choice-icon{color:#1d4ed8}
.gio-choice[data-choice="글자색"] .gio-choice-icon{text-decoration:underline;text-decoration-color:#2563eb;text-decoration-thickness:3px;text-underline-offset:3px}
.gio-choice[data-choice="배경색"] .gio-choice-icon{color:#4b83da}
@media(forced-colors:active){.gio-choice-icon{color:ButtonText}.gio-choice select{border-color:ButtonText}.gio-choice select:disabled~.gio-choice-icon{color:GrayText}}

.gio-attachments{flex-basis:100%;display:flex;gap:8px;border-bottom:1px solid #dbe5f2;padding-bottom:6px;margin-bottom:2px}
.gio-image{max-width:100%;height:auto}
.gio-link-dialog label+label{margin-top:15px}
.gio-chat{border-top:1px solid #d7e4f7;background:#f8faff;padding:20px 22px;display:flex;flex-direction:column;gap:12px;min-width:0}
.gio-chat-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.gio-chat h3{margin:0;font-size:17px}.gio-chat p{margin:0}.gio-chat-subtitle{font-size:12px;color:#748398;margin-top:4px!important}
.gio-chat button{border:1px solid #d6e2f2;border-radius:8px;background:white;color:#36577f;padding:7px 11px;cursor:pointer;font:12px/1.4 system-ui}.gio-chat button:hover:not(:disabled){background:#edf4ff;border-color:#b6cdef}.gio-chat button:disabled{opacity:.42;cursor:default}
.gio-chat-header>button{white-space:nowrap;background:transparent;border-color:transparent;color:#8190a3}
.gio-chat-log{max-height:240px;min-height:92px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:3px;scrollbar-width:thin}
.gio-chat-log p{padding:12px 15px;border-radius:12px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-width:85%;width:fit-content}
.gio-chat-log strong{display:block;margin-bottom:4px;font-size:11px;color:#57739a}.gio-message-bot{background:white;border:1px solid #e0e8f3;align-self:flex-start}.gio-message-user{background:#e5eeff;align-self:flex-end}
.gio-chat-categories{display:flex;gap:4px}.gio-chat-categories button{border:0;background:transparent;padding:5px 13px;color:#7a8ba3}.gio-chat-categories button[aria-pressed=true]{background:#e7effe;color:#245ec3;font-weight:600}
.gio-chat-examples{display:flex;gap:7px;flex-wrap:wrap}.gio-chat-examples button{font-size:12px;border-radius:18px;padding:6px 12px}
.gio-chat-composer{display:flex;align-items:flex-end;gap:10px;background:white;border:1px solid #cddcf0;border-radius:12px;padding:12px;box-shadow:0 3px 12px #234b8610}.gio-chat-composer:focus-within{border-color:#7da7e9;box-shadow:0 0 0 3px #2563eb0c}
.gio-chat label{flex:1;min-width:0;font-size:11px;color:#8190a3;font-weight:500}.gio-chat textarea{box-sizing:border-box;display:block;width:100%;resize:vertical;min-height:56px;max-height:180px;border:0;outline:0;padding:7px 0 0;font:14px/1.6 system-ui;color:#273c56;background:transparent}
.gio-chat button.gio-chat-send{background:#2563eb;color:white;border-color:#2563eb;padding:10px 17px;white-space:nowrap}.gio-chat button.gio-chat-send:hover:not(:disabled){background:#1d4ed8}
.gio-chat-footer{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.gio-chat-hint,.gio-chat-counter{font-size:11px;color:#8a98aa}.gio-chat-counter{margin-right:auto}.gio-chat-footer button{font-size:11px;background:transparent;padding:4px 8px;border-color:transparent}
.gio-chat-current{font-size:11px;color:#7c8da5;border-top:1px solid #e6ecf5;padding-top:10px}
.gio-chat button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:600px){.gio-chat{padding:14px}.gio-chat-subtitle{max-width:220px}.gio-chat-composer{flex-wrap:wrap}.gio-chat-composer label{flex-basis:100%}.gio-chat button.gio-chat-send{margin-left:auto}.gio-content{padding:16px}.gio-chat-log p{max-width:95%}.gio-chat-hint{display:none}}
.gio-editor{display:flex;flex-direction:column}.gio-chat{order:10}

.gio-visual-panel[hidden],.gio-source-panel[hidden]{display:none}
.gio-source-panel{padding:12px 20px;background:#f8faff}.gio-source-panel p{font:12px/1.5 system-ui;color:#526985;margin:0 0 8px}
.gio-source-panel textarea{box-sizing:border-box;display:block;width:100%;min-height:300px;height:40vh;resize:vertical;padding:14px;font:14px/1.65 Consolas,monospace;border:1px solid #c5d4e8;border-radius:6px;color:#19334f;background:white}
.gio-source-panel button{margin-top:8px;padding:5px 10px;border:1px solid #c5d4e8;border-radius:5px;background:white;color:#526985;cursor:pointer}
.gio-mode-tabs{display:flex;justify-content:flex-end;gap:0;border-top:1px solid #dbe5f2;background:#f5f8fc;padding:0 12px}
.gio-mode-tabs button{padding:9px 22px;border:0;border-left:1px solid #dbe5f2;background:transparent;color:#66758b;font:600 12px system-ui;cursor:pointer}
.gio-mode-tabs button[aria-selected=true]{background:white;color:#2563eb;box-shadow:inset 0 -2px #2563eb}
.gio-mode-tabs button:focus-visible{outline:2px solid #2563eb;outline-offset:-3px}

:is(.gio-image-choices,.gio-narrative-choices){display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#edf4ff;border:1px solid #cbdcf5;border-radius:10px}:is(.gio-image-choices,.gio-narrative-choices)[hidden]{display:none}:is(.gio-image-choices,.gio-narrative-choices) button{max-width:100%;overflow-wrap:anywhere}
.gio-commerce-check{padding:11px 12px;border:1px solid #d7e8df;border-radius:10px;background:#f6fbf8}.gio-commerce-check[hidden]{display:none}.gio-commerce-check h4{margin:0 0 4px;font-size:13px;color:#16624e}.gio-commerce-check p{margin:0 0 7px;font-size:12px;color:#527266}.gio-commerce-check ul{list-style:none;margin:0;padding:0}.gio-commerce-check li{padding:5px 0;border-top:1px solid #e1eee7;font-size:12px;line-height:1.45}.gio-commerce-check li.ready{color:#167156}.gio-commerce-check li.missing{color:#617168}

.gio-preview-option{display:flex;align-items:center;gap:7px;font-size:12px;color:#36577f;margin:8px 0}.gio-preview-option input{width:16px;height:16px;accent-color:#2563eb}
.gio-spacing-preview{padding:12px;border:1px solid #bfd5f7;border-radius:10px;background:#f5f9ff;margin:8px 0;min-width:0}.gio-spacing-preview[hidden]{display:none}.gio-spacing-preview>p{font-size:12px;color:#536b89;line-height:1.5}.gio-spacing-samples{display:flex;flex-wrap:wrap;gap:10px}.gio-spacing-sample{flex:1 1 190px;min-width:0;padding:10px;border:1px solid #dce6f5;border-radius:8px;background:white;overflow-wrap:anywhere}.gio-spacing-sample>p{font-size:11px;color:#536b89}.gio-spacing-sample>div{font-size:14px;max-height:220px;overflow:auto;white-space:pre-wrap}.gio-spacing-preview>button{margin:10px 6px 0 0;padding:7px 10px;border:1px solid #b8cff1;border-radius:7px;background:white;color:#245aa7}

.gio-content .gio-table{border-collapse:collapse;width:100%;table-layout:fixed;margin:12px 0}.gio-table-cell{border:1px solid #b8cbe4;padding:8px;vertical-align:top;overflow-wrap:anywhere;min-width:0}.gio-table-header{background:#edf4ff;font-weight:700}.gio-table-selected{background:#dbeafe}.gio-table-dialog{max-width:min(400px,90vw);border:1px solid #bfd5f7;border-radius:12px;padding:20px}.gio-table-dialog label{display:block;margin:10px 0}.gio-table-dialog input{width:80px;margin-left:12px}.gio-table-dialog button{margin:8px;padding:8px}

.gio-local-ai{margin:10px 0;padding:10px;border:1px solid #bfdbfe;border-radius:8px;background:#f0f7ff;font-size:12px;overflow-wrap:anywhere}.gio-local-ai p{margin:4px 0 8px}.gio-local-ai select{max-width:100%;margin:6px 0;padding:6px;border:1px solid #bfdbfe;border-radius:6px}.gio-local-ai button{max-width:100%;white-space:normal;margin:4px 6px 4px 0}

.gio-link-dialog select{display:block;width:100%;margin-top:8px;padding:10px;border:1px solid #abc4e6;border-radius:6px;background:#f7fbff;color:#18304a;font:inherit}.gio-link-dialog ol{max-height:120px;overflow:auto;overflow-wrap:anywhere}

/* Conversation layout: keep the composer reachable and secondary controls folded. */
.gio-chat{padding:18px;gap:12px;background:#f7f9fd;color:#213650}
.gio-chat-header{align-items:flex-start}.gio-chat-header>div{min-width:0}.gio-chat h3{font-size:16px;letter-spacing:-.4px}.gio-chat-subtitle{line-height:1.6}
.gio-chat-settings{border-bottom:1px solid #dce5f1;padding-bottom:10px;font:12px/1.6 system-ui;flex-shrink:0;max-height:240px;overflow:auto}
.gio-chat summary{cursor:pointer;color:#466487;padding:5px 2px;min-height:28px}.gio-chat summary:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.gio-chat-settings[open]>summary{margin-bottom:9px;color:#1d4ed8}.gio-chat-settings .gio-preview-option{flex:none;margin:8px 0;color:#466487;font-size:12px}
.gio-chat-feed{min-height:220px;max-height:440px;overflow:auto;overscroll-behavior:contain;padding:6px 3px;scrollbar-width:thin;flex:1 1 320px}.gio-chat-feed:focus-visible{outline:2px solid #93b4e7;outline-offset:2px}
.gio-chat-log{max-height:none;min-height:0;overflow:visible;padding:0;gap:16px}
.gio-chat-log p{max-width:92%;padding:12px 14px;line-height:1.65}.gio-message-bot{border-radius:4px 14px 14px!important;background:white;box-shadow:0 2px 5px #16335805}.gio-message-user{border-radius:14px 4px 14px 14px!important;background:#2563eb;color:white}.gio-message-user strong{color:#dbeafe}.gio-message-bot strong{color:#2563eb}
.gio-chat-suggestions{border-top:1px solid #e1e8f2;padding-top:10px;flex-shrink:0}.gio-chat-categories{flex-wrap:wrap;margin:4px 0 7px;gap:3px}.gio-chat-categories button{padding:6px 10px;min-height:32px}.gio-chat-examples{flex-wrap:nowrap;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}.gio-chat-examples button{white-space:nowrap;flex-shrink:0;min-height:32px}
.gio-chat-scope-note{font-size:11px;color:#526c8c;line-height:1.5}.gio-chat-composer{padding:10px 12px;gap:8px;flex-shrink:0;border-radius:14px;border-color:#b9cce7}.gio-chat-composer label{margin:0;flex:1 1 auto;font-size:11px}.gio-chat textarea{min-height:52px;max-height:144px;resize:none;padding:4px 0 0}.gio-chat button.gio-chat-send{width:38px;height:38px;padding:0;font-size:23px;border-radius:11px;flex:0 0 38px;min-height:38px}.gio-chat-footer{gap:4px 8px;flex-shrink:0}.gio-chat-footer button{min-height:30px;color:#426187}.gio-chat-hint,.gio-chat-counter{color:#647990}.gio-chat-current{margin-top:10px!important;line-height:1.6}
.gio-chat-checks{margin-top:10px}.gio-commerce-check{background:#f1f6ff;border-color:#d7e4f6}.gio-commerce-check h4,.gio-commerce-check p,.gio-commerce-check li.missing{color:#466487}.gio-commerce-check li.ready{color:#2563eb}.gio-commerce-check li{border-color:#dce7f7}
.gio-spacing-preview{margin:12px 0 0}.gio-spacing-preview>strong{font-size:13px}.gio-spacing-preview>button:first-of-type{background:#2563eb;color:white;border-color:#2563eb}.gio-spacing-sample{flex-basis:130px}.gio-spacing-sample>p{max-height:160px;overflow:auto}
.gio-choice{position:relative}.gio-choice[data-choice="적용 범위"]{border-right:1px solid #dbe5f2;padding-right:6px;margin-right:3px}
@media(max-width:600px){.gio-chat{padding:14px;gap:10px}.gio-chat-composer{flex-wrap:nowrap}.gio-chat-composer label{flex-basis:auto}.gio-chat-hint{display:inline}.gio-chat-log p{max-width:94%}.gio-chat-feed{min-height:220px;max-height:380px}.gio-chat-subtitle{max-width:none}}

.gio-chat-mode{display:inline-block;font:11px/1.5 system-ui;color:#235cb3;background:#eaf2ff;border-radius:5px;padding:3px 6px;margin-top:7px}

.gio-chat-feed .gio-spacing-sample>div,.gio-chat-feed .gio-spacing-sample>p{max-height:96px;overflow:auto}.gio-chat-feed .gio-spacing-preview>p{font-size:11px;margin:6px 0}.gio-chat-feed .gio-spacing-samples{margin-top:8px}

.gio-chat:has(.gio-chat-settings[open]) .gio-chat-feed{min-height:120px}

.gio-choice-tooltip{position:fixed;z-index:10000;box-sizing:border-box;max-width:min(220px,calc(100vw - 16px));padding:9px 12px;border:1px solid #cedcf0;border-radius:9px;background:#fff;color:#213b5e;box-shadow:0 5px 18px #10284e1f;font:12px/1.5 system-ui;overflow-wrap:anywhere;text-align:left}.gio-choice-tooltip[hidden]{display:none}.gio-choice-tooltip strong{display:block;font-weight:650;color:#1e4c8b}.gio-choice-tooltip span{display:block;color:#5b6d84;margin-top:2px}

/* Add 3px on each side without reducing the existing icon space. */
.gio-choice{flex-basis:50px;width:50px;height:42px}.gio-choice select{width:50px;height:42px;padding:3px}.gio-choice-icon{inset:3px 13px 3px 3px}.gio-choice:after{right:10px;top:17px}
.gio-local-ai select{padding:9px}.gio-link-dialog select{padding:13px}
.gio-chat-scope-note[data-pending=true]{color:#1d4ed8;background:#eaf2ff;border-radius:6px;padding:6px 8px}

/* Style the opened picker too, rather than only the closed control. */
@supports (appearance:base-select){
 .gio-choice select,.gio-choice select::picker(select),.gio-local-ai select,.gio-local-ai select::picker(select),.gio-link-dialog select,.gio-link-dialog select::picker(select){appearance:base-select}
 .gio-choice select::picker-icon{display:none}
 .gio-choice select::picker(select),.gio-local-ai select::picker(select),.gio-link-dialog select::picker(select){min-width:180px;max-width:calc(100vw - 24px);max-height:320px;overflow:auto;padding:4px;border:1px solid #c4d5ec;border-radius:10px;background:#fff;color:#273c56;box-shadow:0 6px 20px #10284e20}
 .gio-choice select option,.gio-local-ai select option,.gio-link-dialog select option{padding:9px 12px;min-height:36px;box-sizing:border-box;border-radius:5px;font:14px/1.5 system-ui;color:#273c56;background:#fff}
 .gio-choice select option:hover,.gio-local-ai select option:hover,.gio-link-dialog select option:hover{background:#edf4ff}
 .gio-choice select option:checked,.gio-local-ai select option:checked,.gio-link-dialog select option:checked{background:#e3eeff;color:#1d4ed8}
}

.gio-spelling-list{max-height:240px;overflow:auto}.gio-spelling-list label{display:grid;grid-template-columns:20px 1fr;gap:4px 8px;padding:9px 0;border-bottom:1px solid #dbe5f2;color:#24496c;font-size:12px}.gio-spelling-list input{width:16px;height:16px;accent-color:#2563eb}.gio-spelling-list small{grid-column:2;overflow-wrap:anywhere;color:#61758f}

.gio-chat .gio-spelling-preview>button:first-of-type{background:white;color:#245aa7}.gio-chat .gio-spelling-preview>button.gio-spelling-apply{background:#2563eb;color:white;border-color:#2563eb}.gio-chat .gio-spelling-preview>button.gio-spelling-apply:hover:not(:disabled){background:#1d4ed8}

.gio-proofread-review{padding:12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;overflow-wrap:anywhere}.gio-proofread-review p{white-space:pre-wrap}.gio-proofread-review button{margin:4px}

.gio-drop-caret{position:fixed;width:2px;background:#2563eb;pointer-events:none;z-index:10000}

.gio-drop-caret{width:4px;background:#0754e9;box-shadow:0 0 0 2px white,0 0 7px #0754e9;transform:translateX(-2px)}
.gio-drop-caret::before,.gio-drop-caret::after{content:"";position:absolute;left:-3px;width:10px;height:4px;background:#0754e9;border-radius:2px}.gio-drop-caret::before{top:-3px}.gio-drop-caret::after{bottom:-3px}
.gio-block-handle{position:fixed;z-index:10001;border:1px solid #0754e9;border-radius:5px;background:#fff;color:#0754e9;padding:4px 8px;cursor:grab;font:13px sans-serif}.gio-block-drop{position:fixed;height:4px;background:#0754e9;box-shadow:0 0 0 2px white;pointer-events:none;z-index:10000}

.gio-table-resize{position:fixed;z-index:10002;width:28px;height:24px;border:1px solid #0754e9;border-radius:4px;background:white;color:#0754e9;cursor:ew-resize;touch-action:none}

.gio-column-resize{position:fixed;z-index:10003;width:10px;min-width:0;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}.gio-column-resize:hover,.gio-column-resize:focus{background:#2563eb55;outline:1px solid #2563eb}

.gio-row-resize{position:fixed;z-index:10004;height:10px;min-height:0;padding:0;border:0;background:transparent;cursor:row-resize;touch-action:none}.gio-row-resize:hover,.gio-row-resize:focus{background:#2563eb55;outline:1px solid #2563eb}

.gio-image-resize{position:fixed;z-index:10005;width:28px;height:28px;padding:0;border:2px solid #0754e9;border-radius:4px;background:white;color:#0754e9;cursor:nwse-resize;touch-action:none}.gio-image-size-guide{position:fixed;pointer-events:none;z-index:10004;border:3px solid #0754e9;box-sizing:border-box;background:#2563eb18}

.gio-row-guide{position:fixed;height:4px;background:#0754e9;box-shadow:0 0 0 2px white;pointer-events:none;z-index:10000}

.gio-help{border-bottom:1px solid #dbe7fa;background:#f5f9ff;color:#17243a;font:14px/1.65 sans-serif}.gio-help>summary{padding:9px 16px;cursor:pointer;color:#1857bf;font-weight:600;text-align:right}.gio-help-content{padding:0 16px 16px;max-height:420px;overflow:auto;overscroll-behavior:contain}.gio-help-content>p{margin:0 0 12px;color:#526581}.gio-help-content details{margin:8px 0;border:1px solid #dbe7fa;border-radius:8px;background:white}.gio-help-content summary{cursor:pointer;padding:10px 12px;font-weight:600}.gio-help-content ul{margin:0;padding:0 24px 12px 30px}.gio-help-content li{margin:8px 0;overflow-wrap:anywhere}.gio-help-content button{padding:7px 14px;background:white;border:1px solid #94b6ec;border-radius:6px;color:#1857bf;cursor:pointer}.gio-help summary:focus-visible,.gio-help button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}

/* Compact workspace: scoped to each editor; no host-page or viewport sizing. */
.gio-editor.gio-compact{container:gio-workspace / inline-size;display:flex;flex-direction:column;min-width:0}
.gio-compact>.gio-toolbar{order:0;padding:6px;gap:4px}
.gio-compact>.gio-visual-panel,.gio-compact>.gio-source-panel{order:1}
.gio-compact>.gio-mode-tabs{order:2}
.gio-compact>.gio-status{order:3}
.gio-compact>.gio-status:empty{display:none}
.gio-compact>.gio-bot{order:4;padding:6px 12px}
.gio-compact>.gio-chat{order:5;padding:10px;gap:8px;min-height:0}
.gio-compact .gio-content{min-height:220px;max-height:420px;overflow:auto}
.gio-compact .gio-attachments{flex-basis:auto;flex-shrink:0;margin:0 0 0 auto;padding:0;border:0}
.gio-compact .gio-toolbar button svg{width:16px;height:16px}
.gio-compact .gio-choice-icon{font-size:15px}
.gio-compact .gio-chat-subtitle,.gio-compact .gio-chat-scope-note,.gio-compact>.gio-bot>h3{display:none}
.gio-compact .gio-chat-feed{min-height:100px;max-height:210px;overflow:auto}
.gio-compact .gio-chat-composer{margin:0;padding:8px 10px;min-width:0}
.gio-compact .gio-chat-footer{gap:4px;flex-wrap:wrap}
.gio-compact .gio-compact-help{order:-1}
.gio-compact .gio-compact-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gio-compact .gio-chat-header{align-items:center;gap:8px;flex-wrap:wrap}
.gio-compact .gio-chat-mode{margin:0}
.gio-compact .gio-bot summary{font-weight:600;cursor:pointer;font-size:12px}
.gio-compact .gio-bot ul{max-height:110px;overflow:auto}
.gio-compact .gio-bot details>[role=status]{margin:3px 0;font-size:12px}
.gio-compact .gio-compact-dialog{width:min(600px,calc(100vw - 48px));max-height:80dvh;box-sizing:border-box;overflow:auto;padding:16px;border:1px solid #bdd0ee;border-radius:12px;background:#fff;color:#17243a;font:14px/1.7 system-ui}
.gio-compact .gio-compact-dialog::backdrop{background:#14243b66}
.gio-compact-dialog>.gio-chat-settings{max-height:none;border:0;padding:0;overflow:visible}
.gio-compact-dialog>.gio-chat-settings>summary{display:none}
.gio-compact .gio-compact-dialog button{padding:7px 10px;border:1px solid #bdd0ee;border-radius:7px;background:#eff6ff;color:#1857bf;cursor:pointer}
.gio-compact .gio-compact-examples{margin:8px 0}
@container gio-workspace (min-width:760px){
 .gio-compact>.gio-chat{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(140px,200px) auto;gap:8px 16px}
 .gio-compact .gio-chat-header{grid-column:1/-1;grid-row:1}
 .gio-compact .gio-chat-feed{grid-column:1;grid-row:2/4;min-height:0;max-height:240px;border-right:1px solid #d7e4f7;padding-right:12px}
 .gio-compact .gio-chat-composer{grid-column:2;grid-row:2;align-items:stretch}
 .gio-compact .gio-chat-composer label{display:flex;flex-direction:column;min-height:0}
 .gio-compact .gio-chat-composer textarea{flex:1;min-height:32px;max-height:none}
 .gio-compact .gio-chat-send{align-self:flex-end}
 .gio-compact .gio-chat-footer{grid-column:2;grid-row:3}
}

.gio-color-dialog{width:320px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:22px;border-radius:16px}
.gio-color-dialog h3{margin:0 0 18px;font-size:18px}
.gio-color-swatches{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:20px}
.gio-color-swatches button{width:100%;height:34px;min-width:0;padding:0;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer}
.gio-color-swatches button:hover,.gio-color-swatches button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.gio-color-custom{display:grid;grid-template-columns:88px 1fr;gap:12px;align-items:end}
.gio-color-custom label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#53667e}
.gio-color-dialog input[type=color]{display:block;width:100%;height:40px;padding:3px;box-sizing:border-box;cursor:pointer}
.gio-color-dialog input[type=text]{width:100%;height:40px;box-sizing:border-box;font-family:monospace}
.gio-color-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.gio-color-actions button{margin:0}

.gio-toolbar-menu{position:fixed;margin:0;z-index:10000;max-height:calc(100vh - 16px);overflow:auto;border:1px solid #d5dfeb;background:#fff;color:#17243a;box-shadow:0 10px 30px #17243a26}
.gio-choice-menu{padding:6px;width:180px;border-radius:10px;box-sizing:border-box}
.gio-choice-menu button{display:block;width:100%;padding:10px 12px;margin:0;text-align:left;border:0;background:transparent;border-radius:6px;font-size:14px;color:inherit}
.gio-choice-menu button:hover,.gio-choice-menu button:focus-visible{background:#e8f1ff;outline:none}
.gio-color-dialog.gio-toolbar-menu{width:280px;padding:16px}.gio-color-dialog.gio-toolbar-menu h3{font-size:15px;margin-bottom:12px}
.gio-color-dialog .gio-color-swatches{gap:6px;margin-bottom:14px}.gio-color-dialog .gio-color-swatches button{height:28px}

.gio-photo-dialog{width:min(900px,92vw);max-height:90vh;overflow:auto;padding:20px;border:1px solid #cbd5e1;border-radius:14px;color:#17243a}.gio-photo-dialog canvas{display:block;max-width:100%;max-height:55vh;object-fit:contain;margin:16px auto;touch-action:none;cursor:crosshair;background:#eef2f6}.gio-photo-controls{display:flex;flex-wrap:wrap;gap:8px}.gio-photo-controls input{width:90px}.gio-photo-controls button{padding:8px 12px}.gio-photo-dialog::backdrop{background:#17243a80}

.gio-photo-dialog .gio-photo-controls button,.gio-photo-dialog .gio-photo-text button{background:#fff;color:#087f8c;border:1px solid #9ccbd0;border-radius:7px;font:600 12px/1.4 inherit;font-size:12px;padding:8px 12px;cursor:pointer;box-shadow:0 1px 2px #1232}
.gio-photo-dialog button:hover{background:#edf9fa;border-color:#087f8c}.gio-photo-dialog button:focus-visible{outline:2px solid #087f8c;outline-offset:2px}
.gio-photo-dialog .gio-photo-controls{padding:12px;background:#f6fafb;border:1px solid #dde9ed;border-radius:10px;gap:7px}
.gio-photo-text{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px;margin-top:12px;border:1px solid #dde9ed;border-radius:10px;background:#fff}
.gio-photo-text label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#42616a}.gio-photo-text input{box-sizing:border-box;border:1px solid #c3d7dd;border-radius:6px;height:34px;padding:5px;font-size:12px;max-width:100%}.gio-photo-text input[type=number]{width:72px}.gio-photo-text input[type=color]{width:50px}.gio-photo-text small{flex-basis:100%;font-size:12px;color:#59717a}
.gio-editor .gio-attachments{display:flex;align-items:center;gap:4px}.gio-photo-dialog h3{margin:0 0 8px}.gio-photo-dialog>p{font-size:12px;line-height:1.6}

.gio-photo-dialog{width:min(1120px,96vw);max-height:94vh;padding:0;border:1px solid #d7e2e8;border-radius:14px;font-family:inherit}
.gio-photo-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto auto minmax(220px,1fr) auto;gap:0}
.gio-photo-dialog>h3{grid-column:1/-1;margin:0;padding:18px 22px 8px;font-size:16px;color:#17243a}
.gio-photo-dialog>p{grid-column:1/-1;margin:0;padding:0 22px 16px;color:#6b7a8c;border-bottom:1px solid #e4ebef}
.gio-photo-stage{grid-column:1;grid-row:3;display:flex;align-items:center;justify-content:center;min-width:0;min-height:300px;background:#1f252c;padding:24px;overflow:auto}
.gio-photo-stage canvas{max-width:100%;max-height:60vh;margin:0;box-shadow:0 4px 24px #0005}
.gio-photo-side{grid-column:2;grid-row:3;overflow:auto;max-height:68vh;background:#f8fafb;padding:14px;border-left:1px solid #e4ebef}
.gio-photo-side .gio-photo-controls{padding:0;border:0;background:transparent;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gio-photo-side .gio-photo-controls input{width:100%;min-width:0;height:34px;box-sizing:border-box;border:1px solid #c3d7dd;border-radius:7px;padding:6px;font-size:12px}
.gio-photo-side .gio-photo-controls button{padding:8px 5px;min-height:34px}
.gio-photo-text{margin-top:18px;padding:14px 0 0;border:0;border-top:1px solid #dce6ea;border-radius:0;background:transparent}
.gio-photo-text label:first-child{width:100%}.gio-photo-text label:first-child input{width:100%}.gio-photo-text small{line-height:1.6}
.gio-photo-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;background:white;border-top:1px solid #e4ebef}
.gio-photo-footer p{margin:0;font-size:12px;color:#617789}.gio-photo-footer .gio-photo-controls{padding:0;border:0;background:none;flex-shrink:0}
@media(max-width:680px){.gio-photo-dialog[open]{grid-template-columns:1fr}.gio-photo-stage{grid-column:1;grid-row:3;padding:12px;min-height:160px}.gio-photo-stage canvas{max-height:34vh}.gio-photo-side{grid-column:1;grid-row:4;max-height:none;border-left:0}.gio-photo-side .gio-photo-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.gio-photo-footer{grid-row:5;flex-wrap:wrap}.gio-photo-dialog{max-height:94vh;overflow:auto}}

.gio-photo-stage{position:relative}.gio-photo-selection{position:absolute;pointer-events:none;box-sizing:border-box;border:2px solid #12b8cc;background:#12b8cc26;box-shadow:0 0 0 1px #fff,0 0 0 2px #1238;z-index:2}.gio-photo-selection[hidden]{display:none}
.gio-photo-width{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#42616a}.gio-photo-controls{align-items:end}
.gio-upload-dialog{width:440px;max-width:calc(100vw - 32px);box-sizing:border-box;border:1px solid #d7e2e8;border-radius:14px;padding:22px;background:#fff;color:#17243a}
.gio-upload-dialog h3{font-size:17px;margin:0 0 18px}.gio-upload-dialog>label{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:12px;color:#42616a;font-weight:600}
.gio-upload-dialog input,.gio-upload-dialog select{width:100%;box-sizing:border-box;height:38px;padding:8px 10px;border:1px solid #c3d7dd;border-radius:7px;background:#fff;color:#17243a;font-size:12px}
.gio-upload-dialog input[type=file]{height:auto;padding:15px;border:1px dashed #86b7bf;background:#f6fbfc}.gio-upload-dialog input::file-selector-button{background:white;border:1px solid #9ccbd0;border-radius:6px;color:#087f8c;font-size:12px;padding:7px 10px;margin-right:10px;cursor:pointer}
.gio-upload-dialog ol{font-size:12px;color:#42616a;max-height:110px;overflow:auto;padding-left:22px}.gio-upload-dialog [role=status]{font-size:12px;line-height:1.6;color:#59717a}.gio-upload-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e4ebef;padding-top:14px;margin-top:16px}.gio-upload-actions button{background:#fff;color:#087f8c;border:1px solid #9ccbd0;border-radius:7px;font-size:12px;padding:8px 14px;cursor:pointer}

.gio-photo-dialog .gio-photo-resize{position:absolute;z-index:3;width:22px;height:22px;min-width:0;padding:0;border:2px solid #fff;border-radius:4px;background:#087e8b;color:#fff;cursor:nwse-resize;touch-action:none;line-height:18px;box-shadow:0 1px 5px #0005}.gio-photo-resize[hidden]{display:none}

.gio-upload-dialog .gio-upload-positions{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.gio-upload-positions legend{font-size:12px;margin-bottom:10px}.gio-upload-dialog .gio-upload-positions button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:12px 4px;font-size:12px;white-space:normal}.gio-upload-dialog .gio-upload-positions button[aria-pressed="true"]{border-color:#087e8b;background:#eaf8f9;color:#076572;box-shadow:inset 0 0 0 1px #087e8b}

.gio-content img.gio-photo-selected{outline:3px solid #0896a5;outline-offset:3px;box-shadow:0 0 0 5px #0896a51a}.gio-photo-notice{margin:0;padding:10px 14px;background:#edf9fa;color:#076572;font-size:12px;border-bottom:1px solid #b5dfe3}.gio-photo-notice[hidden]{display:none}

/* AI 연결 설정의 버튼·입력 간격을 한 줄 기준으로 맞춥니다. */
.gio-chat-settings .gio-ai-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid #dce8eb}
.gio-ai-actions>button,.gio-ai-actions>a,.gio-compact .gio-compact-dialog button{box-sizing:border-box;min-height:36px;padding:8px 12px;border:1px solid #a3c9ce;border-radius:7px;background:#fff;color:#087985;font:500 12px/1.5 system-ui;text-decoration:none;cursor:pointer}
.gio-ai-actions>button,.gio-ai-actions>a{display:inline-flex;align-items:center;justify-content:center;margin:0;max-width:100%;white-space:normal}
.gio-ai-actions>:focus-visible,.gio-compact-dialog button:focus-visible{outline:2px solid #087985;outline-offset:3px}
.gio-compact-dialog-title{margin:0 0 18px;font:700 16px/1.5 system-ui;color:#203b47}
.gio-compact-dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid #dce8eb}
.gio-compact-dialog .gio-local-ai{display:flex;flex-direction:column;gap:12px;margin:16px 0;padding:16px;background:#f5fafb;border-color:#d0e2e5}
.gio-compact-dialog .gio-local-ai>p{margin:0;line-height:1.7}
.gio-compact-dialog .gio-local-ai>button{align-self:flex-start;margin:0}
.gio-compact-dialog .gio-local-ai>label{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.gio-compact-dialog .gio-local-ai select{margin:0;min-height:36px;background:#fff}
.gio-compact-dialog .gio-local-ai>[role=status]{padding:9px 10px;border-radius:6px;background:#fff;border:1px solid #dce8eb}

.gio-chat-log .gio-message-user .gio-request-reuse{display:block;width:100%;padding:0;border:0;border-radius:3px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;white-space:pre-wrap;overflow-wrap:anywhere;cursor:pointer;box-shadow:none}
.gio-chat-log .gio-message-user .gio-request-reuse:hover{text-decoration:underline;text-underline-offset:3px}
.gio-chat-log .gio-message-user .gio-request-reuse:focus-visible{outline:2px solid currentColor;outline-offset:4px}
