/* Custom formatting controls use the existing template containers and type. */
.gcf-studio {max-width:640px;box-sizing:border-box;}
.gcf-tag-list {display:grid!important;gap:6px!important;list-style:none!important;margin:12px 0!important;padding:0!important;}
.gcf-tag-row {display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid #334449;min-width:0;}
.gcf-tag-row>span {display:flex;gap:6px;margin-left:auto;}
.gcf-tag-row>small {color:#a2b5b9;}
.gcf-tag-row code {color:#eaf2f3;overflow-wrap:anywhere;}
.gcf-tag-row button {display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:5px;background:#14272d;border:1px solid #385054;color:#d1e3e6;cursor:pointer;}
.gcf-tag-row svg {width:16px;height:16px;}
.gcf-new,.gcf-dialog-edit {padding:8px 12px;background:#14272d;border:1px solid #385054;border-radius:0 8px 0 0;color:#eaf2f3;font:700 12px/1.4 Karla,sans-serif;cursor:pointer;}
.gcf-dialog-edit {align-self:center;justify-self:end;}
html body dialog.gcf-editor-dialog {position:fixed;inset:0;margin:auto;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;padding:0;border:1px solid #3c5a60;border-radius:0 14px 0 0;background:#101b1f;color:#eaf2f3;font:13px/1.5 Karla,sans-serif;overflow:auto;}
html body dialog.gcf-editor-dialog::backdrop {background:#000b;}
html body dialog.gcf-editor-dialog>header {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;position:sticky;top:0;z-index:2;background:#173137;border-bottom:1px solid #385054;}
html body dialog.gcf-editor-dialog>header h3 {margin:0;font:700 15px/1.4 Karla,sans-serif;}
html body dialog.gcf-editor-dialog>header button {width:32px;height:32px;padding:0;background:#071114;border:1px solid #385054;border-radius:0 6px 0 0;color:#eef6f7;font:22px/1 sans-serif;cursor:pointer;}
.gcf-editor-body .gcf-tag {margin:0;border:0;}
.gcf-editor-body .gcf-tag>summary {display:none!important;}
.gcf-editor-body .gcf-tag-body {padding:14px;}
.gcf-editor-body label {display:grid;gap:5px;}
.gcf-editor-body :is(input:not([type=checkbox]),select,textarea) {width:100%;min-width:0;box-sizing:border-box;padding:7px 9px;border:1px solid #385054;background:#081316;color:#eaf2f3;border-radius:0 6px 0 0;font:13px/1.4 Karla,sans-serif;}
.gcf-editor-body input[type=color] {height:34px;padding:3px;}
.gcf-editor-body [hidden] {display:none!important;}
.gcf-editor-body .gcf-preview {margin-top:10px;}
.gcf-editor-body .gcf-actions {margin-top:12px;}
@media(max-width:720px) {.gcf-editor-body :is(input:not([type=checkbox]),select,textarea) {font-size:16px;}.gcf-dialog-edit {justify-self:start;}}
.gcf-tag { border:1px solid var(--gol-line,#334449); background:#10191c; margin:10px 0; }
.gcf-tag>summary { cursor:pointer; padding:12px 14px; color:var(--gol-text,#edf4f4); font-weight:700; }
.gcf-tag-body { display:grid; gap:14px; padding:14px; border-top:1px solid var(--gol-line,#334449); }
.gcf-tag-body label,.gcf-dialog label { display:grid!important; gap:5px; min-width:0; font:500 12px/1.5 var(--gol-body,'Karla',sans-serif)!important; letter-spacing:0!important; text-transform:none!important; }
.gcf-tag-body :is(input:not([type=checkbox]),select,textarea),.gcf-dialog select { width:100%; min-width:0; box-sizing:border-box; padding:8px; background:#080e10; border:1px solid #395156; color:#e7f1f1; border-radius:0 8px 0 0; font:inherit; }
.gcf-tag-body input[type=color] { height:36px; padding:3px; }
.gcf-style-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.gcf-color>span { display:flex; align-items:center; gap:6px; }
.gcf-effect { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; min-width:0; margin:0; padding:10px 12px 12px; border:1px solid #334449; }
.gcf-effect legend { padding:0 6px; color:var(--gol-accent,#3fb3b9); font-size:12px; font-weight:700; }
.gcf-preview { padding:16px; min-width:0; background:#070d0f; border-left:3px solid var(--gol-accent,#3fb3b9); overflow:hidden; }
.gcf-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.gcf-actions button,.gcf-hidden-tag button { padding:8px 12px; background:var(--gol-accent,#1f7e84); color:#fff; border:1px solid #416e73; border-radius:0 8px 0 0; cursor:pointer; font:600 12px var(--gol-body,'Karla',sans-serif); }
.gcf-actions [role=status],.gcf-html small,.gcf-dialog small { color:#abbcc0; font:400 12px/1.5 var(--gol-body,'Karla',sans-serif); }
.gcf-html[hidden] { display:none!important; }
.gcf-html textarea { font:12px/1.6 Consolas,monospace; resize:vertical; }
.gcf-dialog { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px; border-top:1px solid #334449; }
.gcf-dialog>small { grid-column:1/-1; }
.gcf-dialog label.gcf-toggle { display:flex!important; align-items:center; gap:8px; min-height:32px; }
.gcf-dialog input[type=checkbox] { accent-color:var(--gol-accent,#3fb3b9); width:16px; height:16px; }
.gcf-dialog input:disabled { opacity:.6; }
.gcf-hidden-tag { display:flex; justify-content:space-between; align-items:center; padding:10px; font-size:12px; }
.rich-dd-custom .rich-dd-menu { max-height:min(380px,70dvh); overflow-y:auto; }
.gol-post-entity { display:block; position:relative; min-width:0; max-width:100%; isolation:isolate; contain:paint; overflow-wrap:anywhere; }
@media(max-width:720px) {
 html body #community-app#community-app#community-app[data-gol-skin=gol] #app-view#app-view .gts-card:not(.is-on) .gts-colwrap {display:block!important;flex:0 0 100%!important;width:100%!important;}
 html body #community-app#community-app#community-app[data-gol-skin=gol] #gol-mbar .gmb-top { gap:5px!important; padding-left:12px!important; padding-right:12px!important; }
 html body #community-app#community-app#community-app[data-gol-skin=gol] #gol-mbar .notify-bell:not(.header-recent) { order:3!important; display:grid!important; place-items:center; flex:none; width:36px; height:40px; padding:0; background:transparent; border:0; box-shadow:none; color:var(--gol-accent,#3fb3b9); position:relative; }
 html body #community-app#community-app#community-app[data-gol-skin=gol] #gol-mbar .gmb-me { order:4!important; }
 html body #community-app#community-app#community-app[data-gol-skin=gol] #gol-mbar .gmb-logo { min-width:0; flex:1; }
 html body #community-app#community-app#community-app[data-gol-skin=gol] #gol-mbar .gmb-logo b { font-size:clamp(12px,4.3vw,22px)!important; letter-spacing:.1em!important; }
 html body #community-app#community-app#community-app[data-gol-skin=gol] #gol-mbar .gmb-logo small { font-size:clamp(7px,2vw,10px)!important; }
 html body #community-app#community-app#community-app[data-gol-skin=gol] .gmm-universe { padding:0!important; }
 html body #community-app#community-app#community-app[data-gol-skin=gol] .gmm-universe>summary { display:flex; align-items:center; justify-content:space-between; list-style:none; padding:15px; cursor:pointer; font:700 14px var(--gol-body,'Karla',sans-serif); color:var(--gol-text,#edf4f4); }
 .gmm-universe>summary::-webkit-details-marker { display:none; }
 .gmm-universe>summary::after { content:'+'; font-size:22px; color:var(--gol-accent,#3fb3b9); }
 .gmm-universe[open]>summary::after { content:'−'; }
 .gcf-style-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .gcf-tag-body { padding:12px; }
 .gcf-effect { gap:8px; padding:8px; }
 .gcf-dialog { grid-template-columns:1fr; }
}
