/* The publishing workspace shares CGWind type, color and control tokens. */
.cg-publisher-facet .tag-list { padding:0; border:0; background:transparent; color:inherit; font:inherit; }
.cg-publisher-facet .tag-list:focus-visible { outline:2px solid var(--cg-publish-accent); outline-offset:2px; }
.cg-admin-only { display:none!important; }
.cg-publish-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 24px; margin-bottom:14px; }
.cgwind-site .cg-view-rules { display:table; width:fit-content; max-width:100%; margin-top:14px; min-height:44px; text-decoration:none; }
.cgwind-site.page-template-newposts .cg-publish-heading :is(h1,h2,p) { margin:0; }
.cgwind-site.page-template-newposts .cg-tags-help { color:var(--cg-text); margin:16px 0 8px; }
.cg-model-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }
.cg-model-fields label { display:flex; flex-direction:column; gap:8px; color:var(--cg-muted); font-size:14px; }
.cgwind-site.page-template-newposts .cg-model-fields>label { margin:0; }
.cg-model-fields input[type=text] { width:100%; min-width:0; min-height:44px; border:1px solid var(--cg-border); border-radius:8px; padding:10px 12px; background:var(--cg-surface); color:var(--cg-text); font:inherit; }
.cg-model-fields input:focus-visible { outline:2px solid var(--cg-publish-accent); outline-offset:3px; }
.cg-model-fields fieldset { grid-column:1/-1; min-width:0; margin:0; padding:0; border:0; }
.cg-model-fields legend { display:flex; align-items:center; gap:8px; width:auto; margin:0 0 10px; padding:0; border:0; color:var(--cg-text); font:500 14px/24px var(--cg-body); }
.cg-model-fields legend small { margin:0; padding:0 7px; border-radius:4px; background:color-mix(in srgb,var(--cg-publish-accent) 10%,var(--cg-surface)); color:var(--cg-publish-accent); font:400 12px/22px var(--cg-body); }
.cg-model-choices { display:flex; flex-wrap:wrap; gap:10px; }
.cgwind-site.page-template-newposts .cg-model-fields .cg-model-choice { display:flex; flex-direction:row; align-items:center; gap:9px; min-height:44px; margin:0; padding:9px 14px; border:1px solid var(--cg-border); border-radius:8px; background:var(--cg-surface); color:var(--cg-text); cursor:pointer; }
.cg-model-choice:has(input:checked) { border-color:var(--cg-publish-accent)!important; background:color-mix(in srgb,var(--cg-publish-accent) 16%,var(--cg-surface))!important; }
.cg-model-choice:hover { border-color:var(--cg-publish-accent)!important; }
.cg-model-choice:active { background:var(--cg-edit-button)!important; }
.cg-model-choice:has(input:focus-visible) { outline:2px solid var(--cg-publish-accent); outline-offset:2px; }
.cgwind-site.page-template-newposts .cg-model-choice input:focus-visible { outline:none; }
.cgwind-site.page-template-newposts .cg-model-choice input[type=checkbox] { appearance:auto!important; -webkit-appearance:checkbox!important; flex:none; width:17px!important; height:17px!important; min-height:17px!important; margin:0!important; padding:0!important; accent-color:var(--cg-publish-accent); cursor:pointer; }
.cg-model-choice input::before { display:none!important; }
@media(max-width:700px) { .cg-model-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } }
@media(max-width:420px) { .cg-model-fields { grid-template-columns:minmax(0,1fr); } }
.cgwind-site.page-template-newposts .content-layout { margin-right:330px; }
.cgwind-site.page-template-newposts .sidebar { width:306px; }
.cgwind-site.page-template-newposts .editor-main-box { padding:28px; }
.cg-publish-intro { margin-bottom:24px; padding-bottom:22px; border-bottom:1px solid var(--cg-border); }
.cg-publish-intro h2 { margin:6px 0 10px; font-size:25px; font-weight:600; }
.cg-publish-intro p,.cg-edit-heading p,.cg-publish-settings>p { color:var(--cg-muted); font-size:13px; line-height:1.7; margin:0; }
.cg-title-label { display:block; font-size:14px; font-weight:600; margin:18px 0 8px; }
.cgwind-site.page-template-newposts .new-title { border:1px solid var(--cg-border); background:var(--cg-background); border-radius:8px; padding:14px 16px; font-size:18px; font-weight:500; }
.cgwind-site.page-template-newposts .newposts-title { margin-bottom:22px; }
.cgwind-site.page-template-newposts .newposts-title>.line-form-line { display:none; }
.cg-publish-section { border:1px solid var(--cg-border); border-radius:10px; padding:20px; margin-top:20px; background:var(--cg-background); }
.cg-edit-heading { display:flex; align-items:flex-start; gap:12px; margin-bottom:18px; }
.cg-edit-heading h2 { color:var(--cg-text); font-size:18px; font-weight:600; margin:0 0 6px; }
.cg-step { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; background:var(--cg-surface); color:var(--cg-primary); font-size:12px; font-weight:600; flex:none; }
.cg-fixed-label { color:var(--cg-muted); font-size:11px; border:1px solid var(--cg-border); border-radius:5px; padding:3px 7px; margin-left:auto; white-space:nowrap; }
.cg-version-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.cg-version-fields label,.cg-publish-settings label { display:block; font-size:13px; font-weight:500; color:var(--cg-muted); }
.cg-version-fields select,.cg-publish-settings select,.cg-publish-settings input { display:block; width:100%; min-height:46px; padding:10px 12px; margin-top:8px; border:1px solid var(--cg-border); border-radius:7px; background:var(--cg-surface); color:var(--cg-text); font:inherit; color-scheme:dark; }
.cgwind-site:not(.dark-theme) .cg-version-fields select,.cgwind-site:not(.dark-theme) .cg-publish-settings :is(input,select) { color-scheme:light; }
.cg-publish-settings h2 { font-size:18px; font-weight:600; margin:0 0 10px; }
.cg-publish-settings>label { margin-top:20px; }
#cg-schedule-field { margin-top:15px; }
#cg-schedule-help { color:var(--cg-muted); font-size:12px; margin:10px 0; line-height:1.7; }
.cg-preview-button { width:100%; background:transparent; border:1px solid var(--cg-border); border-radius:7px; color:var(--cg-text); min-height:44px; margin-top:18px; }
.cg-preview-button:hover { border-color:var(--cg-primary); color:var(--cg-primary); }
.cg-preview-button:disabled { opacity:.6; cursor:wait; }
#cg-publish-feedback { font-size:13px; line-height:1.7; color:var(--cg-primary); margin:12px 0; overflow-wrap:anywhere; }
#cg-publish-feedback.is-error { color:#ffb0a6; }
.cgwind-site.page-template-newposts .sidebar>.zib-widget { padding:20px; border-radius:10px; }
.cgwind-site.page-template-newposts .title-theme { font-size:16px; font-weight:600; }
.cgwind-site.page-template-newposts .but-average { display:flex; flex-wrap:wrap; gap:10px; }
.cgwind-site.page-template-newposts .new-posts-submit { min-height:44px; flex:1 1 100%; margin:0!important; border-radius:7px; font:600 14px var(--cg-body); }
.cgwind-site.page-template-newposts [action="posts_draft"] { background:transparent; border:1px solid var(--cg-border); color:var(--cg-text); }
.cgwind-site.page-template-newposts [action="posts_save"] { background:var(--cg-primary); color:#032238; }
.cg-structured-ready #wp-post_content-editor-container,.cg-structured-ready #wp-post_content-wrap>.wp-editor-tools { display:none; }
.cg-publish-section .mce-panel { background:var(--cg-background)!important; border-color:var(--cg-border)!important; }
.cg-publish-section .mce-toolbar .mce-btn { background:transparent!important; }
.cg-publish-section .mce-ico { color:var(--cg-muted)!important; }
.cg-publish-section .mce-toolbar-grp { padding:5px!important; }
#cg-publish-preview { width:min(920px,94vw); max-height:90vh; padding:22px; border:1px solid var(--cg-border); border-radius:12px; background:var(--cg-surface); color:var(--cg-text); }
#cg-publish-preview::backdrop { background:#000a; }
.cg-preview-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.cg-preview-bar h2 { font-size:20px; margin:0; }
.cg-preview-close { background:transparent; border:0; font-size:28px!important; color:var(--cg-muted); width:40px; height:40px; }
#cg-publish-preview>p { font-size:12px; color:var(--cg-muted); margin:12px 0; }
#cg-publish-preview iframe { width:100%; height:65vh; border:1px solid var(--cg-border); border-radius:8px; background:var(--cg-background); }
@media(max-width:1000px) {
 .cgwind-site.page-template-newposts .content-layout { margin-right:0; }
 .cgwind-site.page-template-newposts .content-wrap { float:none; }
 .cgwind-site.page-template-newposts .sidebar { width:100%; display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px; }
}
@media(max-width:600px) {
 .cgwind-site.page-template-newposts .editor-main-box { padding:16px; }
 .cg-publish-intro h2 { font-size:21px; }
 .cg-publish-section { padding:14px; }
 .cg-edit-heading { gap:8px; flex-wrap:wrap; }
 .cg-edit-heading h2 { font-size:17px; }
 .cg-fixed-label { display:none; }
 .cg-version-fields { grid-template-columns:1fr; }
 .cgwind-site.page-template-newposts .sidebar { display:block; }
}
/* Vertical publishing flow: keep original Zibll controls inside the same form. */
.cgwind-site.page-template-newposts main.container { max-width:1120px; }
.cgwind-site.page-template-newposts .content-wrap { float:none; width:100%; }
.cgwind-site.page-template-newposts .content-layout { margin:0!important; }
.cgwind-site.page-template-newposts .sidebar { float:none; width:100%; }
.cg-publish-lower { display:flex; flex-direction:column; gap:20px; margin-top:20px; }
.cg-publish-lower>.zib-widget,.cg-publish-lower>.cg-publish-settings,.cg-publish-lower>.cg-access-settings { margin:0; padding:22px; border:1px solid var(--cg-border); border-radius:10px; background:var(--cg-background); }
.cg-publish-sections :is(label,legend) { display:block; font-size:13px; font-weight:500; color:var(--cg-muted); }
.cg-publish-sections label+label { margin-top:15px; }
.cg-publish-section :is(select,input[type=text],input[type=url],input[type=datetime-local],input:not([type])) { display:block; width:100%; background:var(--cg-surface); border:1px solid var(--cg-border); border-radius:7px; color:var(--cg-text); padding:12px; min-height:46px; font:14px/1.5 var(--cg-body); margin-top:8px; }
.cg-publish-sections input[hidden] { display:none!important; }
.cg-version-fields { display:flex; flex-direction:column; gap:0; }
.cg-version-fields small { display:block; font-size:12px; margin-top:8px; }
.cg-drive-row { border:1px solid var(--cg-border); border-radius:8px; padding:18px; margin:0 0 18px; background:var(--cg-surface); }
.cg-drive-row legend { border:0; width:auto; font-size:13px; padding:0 8px; margin:0; color:var(--cg-primary); }
.cgwind-site .cg-publish-sections .cg-drive-row input,.cgwind-site .cg-publish-sections .cg-drive-row select { background:var(--cg-background); }
#cg-add-drive,.cg-remove-drive { border:1px solid var(--cg-border); background:transparent; border-radius:7px; color:var(--cg-text); min-height:40px; padding:8px 16px; }
.cg-remove-drive { margin-top:15px; color:var(--cg-muted); font-size:12px; }
#cg-native-payment>.zib-widget { padding:20px 0 0; margin:22px 0 0; border:0; border-top:1px solid var(--cg-border); box-shadow:none; background:transparent; }
.cg-publish-actions .but-average { display:flex; flex-direction:column; }
.cg-publish-actions .new-posts-submit { width:100%; }
.cg-access-settings>p { color:var(--cg-muted); font-size:12px; margin-top:10px; }
.cg-legacy-download { margin-top:18px; color:var(--cg-muted); }
.cg-legacy-download summary { cursor:pointer; padding:12px 0; }
.cg-license-note { border-top:1px solid var(--cg-border); padding:16px 0; color:var(--cg-muted); font-size:13px; }
.cg-publish-section .cg-step { display:none; }
.cg-preview-button { width:auto; min-width:140px; padding-inline:20px; }
.cgwind-site.page-template-newposts [action="posts_save"] { color:#211a11; }

/* One predictable heading and disclosure treatment for every publishing unit. */
.cg-publish-section>.cg-edit-heading { align-items:center; gap:14px; margin-bottom:18px; }
.cg-publish-section>.cg-edit-heading h2,.cg-publish-section>.title-theme.cg-edit-heading { font:600 18px/1.5 var(--cg-body); letter-spacing:.02em; margin-top:0; color:var(--cg-text); }
.cg-publish-section>.cg-edit-heading h2 { margin:0; }
.cg-collapse { margin-left:auto; flex:none; border:0; background:transparent; color:var(--cg-muted); padding:8px 10px; font:13px/1.5 var(--cg-body); min-height:38px; border-radius:6px; }
.cg-collapse:hover { background:var(--cg-surface); color:var(--cg-primary); }
.cg-publish-section.is-collapsed>:not(.cg-edit-heading) { display:none!important; }
.cg-publish-section.is-collapsed>.cg-edit-heading { margin-bottom:0; }
.cg-publish-section [hidden],.cg-publish-settings [hidden] { display:none!important; }
.cg-publish-section .newposts-title { margin:0; }
.cg-publish-section .featured-edit { margin:0; }
.cg-secondary { min-height:42px; padding:9px 16px; border:1px solid var(--cg-border); border-radius:7px; background:var(--cg-surface); color:var(--cg-text); font:500 13px/1.5 var(--cg-body); }
.cg-secondary:hover { border-color:var(--cg-primary); }
.cg-upload-hint,.cg-preset-status { margin:8px 0 16px; font-size:12px; line-height:1.8; color:var(--cg-muted); }
.cg-version-fields :is(#cg-version-custom,#cg-software-custom) { width:100%; margin-top:12px; border-color:var(--cg-primary); background:var(--cg-background); box-shadow:0 0 0 3px #eab26b0a; }
.cg-drive-row { background:none; padding:0 0 18px; border:0; border-bottom:1px solid var(--cg-border); border-radius:0; }
.cg-drive-row legend { color:var(--cg-muted); padding:0; margin:0 0 12px; font-size:12px; }
.cg-drive-row .cg-remove-drive { min-height:32px; padding:4px 0; border:0; }
.cgwind-site .cg-publish-sections textarea.cg-drive-share { box-sizing:border-box; width:100%; min-height:90px; max-height:210px; margin-top:6px; padding:10px 12px; resize:none; overflow-y:auto; background:var(--cg-background); color:var(--cg-text); font:400 14px/1.8 var(--cg-body); border:1px solid var(--cg-border); border-radius:7px; }
.cg-price-input { display:flex; align-items:center; gap:12px; padding:0 15px; border:1px solid var(--cg-border); background:var(--cg-surface); border-radius:8px; margin:8px 0 16px; }
.cg-price-input>span { font-size:22px; color:var(--cg-primary); }
.cg-price-input input { width:100%; min-height:52px; border:0; background:transparent; color:var(--cg-text); font-size:22px; outline-offset:2px; }
.cg-gold-price { display:flex; flex-wrap:wrap; align-items:center; gap:12px; color:var(--cg-muted); font-size:13px; }
.cg-gold-price strong { color:var(--cg-primary); font-size:18px; }
.cg-gold-price small { margin-left:auto; font-size:12px; }
.cg-required-tag { margin:14px 0; }
.cg-required-tag span { display:inline-block; padding:6px 12px; background:#eab26b12; color:var(--cg-primary); border:1px solid #eab26b35; border-radius:5px; font-size:12px; }
.cg-preset-panel { max-width:720px; margin-top:18px; }
.cg-preset-panel>.cg-upload-hint { margin:0 0 16px; }
.cg-preset-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.cg-preset-controls select { grid-column:1/-1; width:100%; margin:0; min-height:46px; background:var(--cg-surface); color:var(--cg-text); border:1px solid var(--cg-border); border-radius:7px; padding:10px 12px; }
.cg-preset-panel .cg-preset-name { display:block; max-width:none; margin:20px 0 12px; }
.cg-preset-save-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.cg-preset-panel :is(.cg-preset-controls,.cg-preset-save-actions) button { font-size:14px; min-height:42px; }
.cg-preset-panel button:disabled { opacity:.4; cursor:not-allowed; }
.cg-preset-import { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:8px; }
.cg-preset-import button { flex:none; min-height:36px; }
.cg-preset-import p { flex:1 1 240px; margin:0; color:var(--cg-muted); font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
#cg-config-status { overflow-wrap:anywhere; }
#cg-config-status:empty { display:none; }
.cg-folder-files { max-height:300px; overflow:auto; list-style:none; padding:0; margin:8px 0; border:1px solid var(--cg-border); border-radius:7px; }
.cg-folder-files li { display:grid; grid-template-columns:minmax(0,1fr) 120px; gap:6px 12px; padding:10px; border-bottom:1px solid var(--cg-border); }
.cg-folder-files li:last-child { border-bottom:0; }
.cg-folder-name { align-self:center; overflow-wrap:anywhere; font-size:13px; }
.cg-folder-files select { width:100%; min-height:34px; background:var(--cg-surface); color:var(--cg-text); border:1px solid var(--cg-border); border-radius:6px; padding:4px 6px; }
.cg-folder-file-status { color:var(--cg-muted); font-size:12px; overflow-wrap:anywhere; grid-column:1/-1; }
.cg-folder-files progress { width:100%; height:8px; grid-column:1/-1; accent-color:var(--cg-publish-accent,#6bcaff); }
.cg-folder-actions { display:flex; flex-wrap:wrap; gap:8px; }
.cg-folder-actions button { min-height:36px; }
@media(max-width:480px) { .cg-folder-files li { grid-template-columns:minmax(0,1fr); }.cg-folder-files select { max-width:180px; } }
@media(max-width:480px) { .cg-preset-controls { grid-template-columns:1fr; } }
.cg-schedule-toggle { display:flex!important; flex-wrap:wrap; align-items:center; gap:12px; color:var(--cg-text)!important; }
.cg-schedule-toggle input { appearance:none; width:40px; height:24px; min-height:24px; border:0; border-radius:20px; background:#555; padding:3px; margin:0; cursor:pointer; }
.cg-schedule-toggle input:before { content:''; display:block; width:18px; height:18px; background:white; border-radius:50%; transition:transform .15s; }
.cg-schedule-toggle input:checked { background:var(--cg-primary); }
.cg-schedule-toggle input:checked:before { transform:translateX(16px); }
.cgwind-site .cg-schedule-toggle input[type=checkbox] { appearance:none!important; -webkit-appearance:none!important; width:40px!important; height:24px!important; min-height:24px!important; padding:3px!important; border:0!important; border-radius:20px!important; background:#555; box-shadow:none; }
.cgwind-site .cg-schedule-toggle input[type=checkbox]:checked { background:var(--cg-primary)!important; }
.cgwind-site .cg-schedule-toggle input[type=checkbox] { background-image:radial-gradient(circle at 12px 50%,#fff 0 8px,transparent 9px)!important; }
.cgwind-site .cg-schedule-toggle input[type=checkbox]:checked { background-image:radial-gradient(circle at 28px 50%,#fff 0 8px,transparent 9px)!important; }
.cgwind-site .cg-schedule-toggle input[type=checkbox]::before { display:none!important; }
#cg-calendar.opens-below { bottom:auto; top:calc(100% + 10px); }
.cg-schedule-toggle small { font-size:12px; color:var(--cg-muted); }
.cg-schedule-controls { display:grid; grid-template-columns:1.4fr 1fr .7fr; align-items:end; gap:12px; }
.cg-schedule-controls label { margin:0!important; }
.cg-date-control { position:relative; }
#cg-date-button { width:100%; min-height:46px; margin-top:8px; padding:10px 12px; text-align:left; background:var(--cg-surface); border:1px solid var(--cg-border); color:var(--cg-text); border-radius:7px; }
#cg-calendar { position:absolute; z-index:90; bottom:calc(100% + 10px); right:0; width:320px; max-width:85vw; background:#282a2e; border:1px solid var(--cg-border); border-radius:10px; box-shadow:0 12px 40px #0008; overflow:hidden; padding:14px; }
.cg-calendar-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.cg-calendar-nav strong { font-size:15px; }
.cg-calendar-nav button,.cg-calendar-days button,#cg-calendar-default { background:transparent; border:0; color:var(--cg-text); min-height:36px; border-radius:6px; }
.cg-calendar-nav button { width:36px; font-size:24px; }
.cg-weekdays,.cg-calendar-days { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; gap:4px; }
.cg-weekdays { font-size:12px; color:var(--cg-muted); margin-bottom:8px; }
.cg-calendar-days button { font-size:13px; padding:0; }
.cg-calendar-days button[aria-pressed=true] { background:var(--cg-primary); color:#211a11; }
.cg-calendar-days button:hover:not(:disabled) { outline:1px solid var(--cg-primary); }
#cg-calendar button:disabled { color:#737579; cursor:not-allowed; }
#cg-calendar-default { width:100%; color:var(--cg-primary); border-top:1px solid var(--cg-border); margin-top:12px; border-radius:0; }
.cg-confirm-preset { width:min(460px,90vw); padding:24px; border:1px solid var(--cg-border); border-radius:12px; background:var(--cg-surface); color:var(--cg-text); }
.cg-confirm-preset::backdrop { background:#0009; }
.cg-confirm-preset h2 { font-size:18px; margin:0 0 14px; }
.cg-confirm-preset p { color:var(--cg-muted); font-size:14px; line-height:1.8; }
.cg-confirm-preset form { display:flex; gap:12px; justify-content:flex-end; margin-top:22px; }
/* Sky-blue authoring controls on the shared charcoal canvas. */
.cgwind-site.page-template-newposts { --cg-edit-blue:#6bcaff; --cg-edit-button:rgba(31,134,224,.26); }
.cgwind-site.page-template-newposts .cg-publish-section>.cg-edit-heading h2 { color:var(--cg-edit-blue); }
.cgwind-site.page-template-newposts .cg-edit-heading { align-items:flex-start; }
.cgwind-site.page-template-newposts .cg-collapse { margin:0; min-height:30px; padding:4px 8px; font-size:12px; flex:none; }
.cgwind-site.page-template-newposts :is(.cg-secondary,.cg-collapse,.cg-preview-button,.cg-remove-drive,#cg-add-drive,.new-posts-submit,.drop-btn) { color:#fff!important; background:var(--cg-edit-button)!important; border:1px solid #499de85c!important; box-shadow:none; border-radius:7px; }
.cgwind-site.page-template-newposts :is(.cg-secondary,.cg-collapse,.cg-preview-button,.cg-remove-drive,#cg-add-drive,.new-posts-submit,.drop-btn):hover { background:rgba(31,134,224,.42)!important; border-color:#6bcaff!important; }
.cgwind-site.page-template-newposts .cg-remove-drive { padding:8px 14px; min-height:38px; }
.cgwind-site.page-template-newposts :is(.featured-edit .but,.featured-edit button,#cg-date-button,.cg-calendar-nav button,#cg-calendar-default,.cg-preview-close) { background:var(--cg-edit-button)!important; color:#fff!important; border:1px solid #499de85c; }
.cgwind-site.page-template-newposts .cg-calendar-days button[aria-pressed=true] { background:rgba(31,134,224,.5); color:#fff; }
.cg-taxonomy-grid>div:last-child .dropdown-menu { left:auto; right:0; }
.cgwind-site.page-template-newposts .cg-version-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.cgwind-site.page-template-newposts .cg-version-fields label+label { margin:0; }
.cgwind-site.page-template-newposts .cg-version-fields :is(#cg-version-custom,#cg-software-custom) { border-color:var(--cg-border); box-shadow:none; background:var(--cg-surface); padding:12px; font-size:14px; }
.cgwind-site.page-template-newposts :is(#cg-schedule-toggle,#cg-preset-toggle):checked { background-color:rgba(30,143,233,.45)!important; border:1px solid #6bcaff!important; }
.cg-time-selects { display:flex; align-items:center; gap:7px; }
.cg-time-selects>select { min-width:0; flex:1; }
.cg-time-selects>span { padding-top:8px; }
.cg-taxonomy-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.cg-taxonomy-grid>div { margin:0!important; min-width:0; }
.cg-taxonomy-grid .drop-btn { width:100%; min-height:46px; text-align:left; margin-bottom:0!important; }
.cg-taxonomy-grid .dropdown-menu { min-width:260px; max-width:86vw; }
.cg-taxonomy-grid>.drop-select:not(.newpost-cat-drop):not(.cg-resource-module) .dropdown-menu { left:auto; right:0; }
.cgwind-site.page-template-newposts .cg-publish-actions .but-average { display:flex; flex-direction:row; flex-wrap:nowrap; gap:12px; }
.cgwind-site.page-template-newposts .cg-publish-actions .new-posts-submit { flex:1 1 0; width:auto; }
:is(#cg-video-uploader,#cg-three-view-uploader) { min-height:210px; padding:30px; border:1px dashed #6bcaff55; border-radius:9px; background:linear-gradient(135deg,#3287cf10,#1c1e22); text-align:center; }
#cg-video-stage p { color:var(--cg-muted); font-size:13px; padding:30px 0 18px; }
#cg-video-stage video { width:100%; max-height:400px; display:block; margin-bottom:18px; background:#111; border-radius:8px; }
#cg-upload-video span { font:inherit; vertical-align:baseline; margin-right:0; }
.cg-drive-native[hidden],.cg-drive-popup[hidden],.cg-drive-option[hidden],.cg-drive-more[hidden] { display:none!important; }
.cg-drive-picker { position:relative; margin-top:8px; }
.cgwind-site.page-template-newposts .cg-drive-trigger { display:flex; align-items:center; gap:11px; width:100%; min-height:46px; padding:11px 16px; text-align:left; border:1px solid var(--cg-border)!important; border-radius:7px; background:var(--cg-surface)!important; color:var(--cg-text)!important; font:400 14px/1.5 var(--cg-body); }
.cg-drive-arrow { margin-left:auto; }
.cg-drive-icon { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 24px; width:24px; height:24px; }
.cg-drive-icon svg { display:block; width:22px; height:22px; }
.cg-drive-icon>span { position:absolute; font:700 8px/1 Arial,sans-serif; }
.cg-drive-popup { position:absolute; z-index:60; top:calc(100% + 5px); left:0; right:0; border:1px solid var(--cg-border); border-radius:8px; padding:6px; background:var(--cg-surface); box-shadow:0 14px 28px #0005; }
.cg-drive-popup [role=listbox] { max-height:220px; overflow:auto; }
.cgwind-site.page-template-newposts .cg-drive-option { display:flex; align-items:center; gap:11px; width:100%; height:44px; padding:8px 10px; border:0; border-radius:5px; text-align:left; background:transparent; color:var(--cg-text); font:400 14px/1.5 var(--cg-body); }
.cgwind-site.page-template-newposts .cg-drive-option[aria-selected=true] { background:#3287cf38; }
.cgwind-site.page-template-newposts .cg-drive-option:hover { background:#3287cf26; }
.cgwind-site.page-template-newposts .cg-drive-more { width:100%; min-height:38px; padding:8px 10px; margin-top:5px; background:transparent; color:var(--cg-publish-accent,#6bcaff); border:0; border-top:1px solid var(--cg-border); border-radius:0; font-size:13px; text-align:left; }
.cgwind-site.page-template-newposts :is(.cg-drive-trigger,.cg-drive-option,.cg-drive-more):focus-visible { outline:2px solid var(--cg-publish-accent,#6bcaff); outline-offset:-2px; }
@media(max-width:700px) { .cg-taxonomy-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .cg-edit-heading>div { min-width:0; } }
@media(max-width:420px) { .cgwind-site.page-template-newposts .cg-version-fields { gap:10px; } .cg-version-fields select,.cg-version-fields input { padding-inline:8px!important; } #cg-video-uploader { padding:18px; } }
@media(max-width:600px) { .cg-schedule-controls { grid-template-columns:1fr 1fr; } .cg-schedule-controls>label:first-child { grid-column:1/-1; } .cg-gold-price small { flex-basis:100%; margin:0; } .cg-publish-section>.cg-edit-heading { gap:8px; } .cg-collapse { padding-inline:4px; } #cg-calendar { right:auto; left:0; width:300px; } }
/* All authoring dropdowns share the preset control's surface and geometry. */
.cgwind-site.page-template-newposts :is(.cg-publish-section,.cg-publish-settings) :is(select,.drop-btn) { background:var(--cg-surface)!important; color:var(--cg-text)!important; border:1px solid var(--cg-border)!important; border-radius:7px; min-height:46px; padding:11px 16px; font:400 14px/1.5 var(--cg-body); box-shadow:none; }
.cgwind-site.page-template-newposts :is(.cg-publish-section,.cg-publish-settings) :is(select,.drop-btn):hover { background:var(--cg-surface)!important; border-color:var(--cg-publish-accent,#6bcaff)!important; }
.cgwind-site.page-template-newposts select option { background:var(--cg-surface); color:var(--cg-text); }
.cgwind-site.page-template-newposts :is(select,.drop-btn):focus-visible { outline:2px solid var(--cg-publish-accent,#6bcaff); outline-offset:2px; }
.cgwind-site.page-template-newposts :is(#cg-upload-cover,#cg-remove-cover,#cg-upload-video,#cg-remove-video,#cg-upload-three-views,#cg-remove-three-views,#cg-upload-screenshots) { display:inline-flex; align-items:center; justify-content:center; width:182px; max-width:100%; min-height:42px; padding:9px 14px; border-radius:7px; font:500 14px/1.5 var(--cg-body); vertical-align:middle; margin:0 6px 8px 0; }
#cg-preset-editor-dialog { width:min(1060px,96vw); max-height:94vh; padding:18px; border:1px solid var(--cg-border); border-radius:12px; background:var(--cg-surface); color:var(--cg-text); }
#cg-preset-editor-dialog::backdrop { background:#000a; }
.cg-preset-dialog-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.cg-preset-dialog-bar h2 { margin:0; font:600 18px/1.5 var(--cg-body); color:var(--cg-publish-accent,#6bcaff); overflow-wrap:anywhere; }
#cg-preset-editor-dialog iframe { display:block; width:100%; height:72vh; border:1px solid var(--cg-border); border-radius:8px; background:var(--cg-background); }
html:has(body.cg-preset-editor) { margin-top:0!important; }
.cg-preset-editor :is(#wpadminbar,.cg-nav-shell,.cg-header,.cg-page-banner,footer,.cg-site-footer,.cg-page-tail,#cg-publish-settings,#cg-publish-actions,.cg-presets .cg-preset-controls,.cg-presets .cg-preset-save-actions,.cg-presets .cg-preset-toggle,.cg-presets .cg-collapse,.cg-publish-intro>p,.fixed-body,.newposts-draft) { display:none!important; }
.cg-preset-editor main.container { padding:0 10px; }
.cg-preset-editor .editor-main-box { padding:16px!important; }
.cg-preset-editor .cg-publish-intro { margin-bottom:12px; padding-bottom:10px; }
.cg-preset-editor .cg-publish-intro h1 { font-size:24px; }
.cg-preset-editor-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; position:sticky; bottom:0; z-index:20; background:var(--cg-surface); padding:14px; border-top:1px solid var(--cg-border); border-radius:8px; }
.cg-preset-editor .cg-presets .cg-preset-name { margin:0; }
@media(max-width:600px) { #cg-preset-editor-dialog { width:calc(100% - 24px); max-width:calc(100% - 24px); box-sizing:border-box; padding:10px; }.cg-preset-dialog-bar h2 { font-size:16px; }.cg-preset-dialog-bar button { flex-shrink:0; white-space:nowrap; min-height:38px; padding:8px 12px; }.cg-preset-editor main.container { padding:0; }.cg-preset-editor .editor-main-box { padding:8px!important; }.cg-preset-editor .cg-publish-section { padding:12px; } }

/* Compact authoring density; the long form keeps document scroll ownership. */
.cgwind-site.page-template-newposts { --cg-publish-sticky-top:calc(var(--wp-admin--admin-bar--height,0px) + 16px); }
.cgwind-site.page-template-newposts main.container { max-width:1320px; }
.cgwind-site.page-template-newposts .cg-publisher-layout { display:grid; grid-template-columns:168px minmax(0,1fr); gap:18px; align-items:start; }
.cgwind-site.page-template-newposts .editor-main-box { min-width:0; padding:18px; margin:0; }
.cgwind-site.page-template-newposts .cg-page-banner { padding-block:12px; min-height:58px; }
.cg-publish-intro { margin-bottom:12px; padding-bottom:10px; }
.cgwind-site.page-template-newposts .cg-publish-intro h1 { font-size:26px; margin-bottom:8px; }
.cg-publish-intro>.cg-upload-hint { margin:0; }
.cgwind-site.page-template-newposts .cg-publish-section,
.cgwind-site.page-template-newposts .cg-publish-lower>:is(.zib-widget,.cg-publish-settings,.cg-access-settings) { padding:12px 14px; }
.cg-publish-section { margin-top:12px; }
.cg-publish-lower { gap:12px; margin-top:12px; }
.cg-publish-section>.cg-edit-heading { gap:10px; margin-bottom:10px; }
.cgwind-site.page-template-newposts .cg-collapse { min-height:28px; padding:3px 8px; }
.cgwind-site.page-template-newposts .new-title { min-height:50px; height:50px; padding:10px 12px; font-size:16px; line-height:24px; }
.cg-publish-sections label+label,.cg-publish-settings>label { margin-top:10px; }
.cgwind-site.page-template-newposts .cg-version-fields { gap:12px; }
.cgwind-site.page-template-newposts :is(.cg-publish-section,.cg-publish-settings) :is(select,.drop-btn,input[type=text],input[type=url],input:not([type])),
.cgwind-site.page-template-newposts .cg-drive-trigger,
.cgwind-site.page-template-newposts #cg-date-button { min-height:38px; padding:7px 12px; margin-top:6px; }
.cgwind-site.page-template-newposts .cg-version-fields :is(#cg-version-custom,#cg-software-custom) { padding:7px 12px; margin-top:8px; }
.cgwind-site.page-template-newposts :is(.cg-secondary,.cg-preview-button,.cg-remove-drive),
.cgwind-site.page-template-newposts #cg-add-drive { min-height:34px; padding:6px 12px; }
.cgwind-site.page-template-newposts :is(#cg-upload-cover,#cg-remove-cover,#cg-upload-video,#cg-remove-video,#cg-upload-three-views,#cg-remove-three-views,#cg-upload-screenshots) { min-height:34px; padding:6px 12px; margin-bottom:4px; }
.cgwind-site.page-template-newposts .new-posts-submit { min-height:38px; padding-block:7px; }
.cg-upload-hint,.cg-preset-status { margin:6px 0 10px; }
.cg-version-fields small { margin-top:5px; }
/* Cover and video use the same compact, centered upload surface. */
.cgwind-site.page-template-newposts :is(.cg-cover-uploader,#cg-video-uploader,#cg-three-view-uploader) { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; align-content:center; gap:8px; box-sizing:border-box; min-height:80px; padding:12px; }
.cgwind-site.page-template-newposts :is(.cg-cover-stage,#cg-video-stage,#cg-three-view-stage) { flex:0 0 100%; min-width:0; }
.cgwind-site.page-template-newposts :is(.cg-cover-stage,#cg-video-stage,#cg-three-view-stage):empty { display:none; }
.cgwind-site.page-template-newposts :is(.cg-cover-uploader,#cg-video-uploader,#cg-three-view-uploader)>.cg-secondary { margin:0; font:500 14px/1.5 var(--cg-body); }
.cgwind-site.page-template-newposts .cg-publish-section:has(.cg-cover-uploader)>.cg-upload-hint { font-size:13px; line-height:1.7; }
.cgwind-site.page-template-newposts :is(.cg-cover-stage p,#cg-video-stage p) { padding:8px 0; margin-bottom:10px; }
.cgwind-site.page-template-newposts :is(.cg-cover-uploader:has(img),#cg-video-uploader:has(video)) { padding:0 0 10px; }
.cgwind-site.page-template-newposts :is(.cg-cover-stage:has(img),#cg-video-stage:has(video)) { max-width:560px; margin:0 auto 10px; }
.cgwind-site.page-template-newposts #cg-three-view-uploader:has(img) { padding:0 0 10px; }
.cgwind-site.page-template-newposts #cg-three-view-stage:has(img) { max-width:560px; margin:0 auto 10px; }
.cg-three-view-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.cg-three-view-gallery[data-count="1"] { grid-template-columns:minmax(0,1fr); }
.cg-three-view-gallery[data-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cg-three-view-image { position:relative; min-width:0; }
.cg-three-view-image img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:contain; border:1px solid var(--cg-border); border-radius:8px; background:var(--cg-surface); }
.cg-three-view-gallery[data-count="1"] img { aspect-ratio:16/9; }
.cgwind-site.page-template-newposts .cg-three-view-image>.cg-secondary { position:absolute; top:6px; right:6px; width:28px; min-height:28px; margin:0; padding:0; background:var(--cg-background); color:var(--cg-text); border:1px solid var(--cg-border); }
.cg-publish-section .mce-toolbar-grp { padding:3px!important; }
.cg-drive-row { padding-bottom:12px; margin-bottom:12px; }
.cg-drive-picker { margin-top:6px; }
.cgwind-site.page-template-newposts .cg-drive-trigger { margin-top:0; padding-block:6px; }
.cg-drive-popup [role=listbox] { max-height:180px; }
.cgwind-site.page-template-newposts .cg-drive-option { height:36px; padding-block:6px; }
.cgwind-site.page-template-newposts .cg-drive-more { min-height:32px; padding-block:5px; }
.cg-drive-row .cg-remove-drive { margin-top:8px; }
.cg-price-input { margin:6px 0 10px; padding-inline:12px; }
.cg-price-input input { min-height:42px; font-size:20px; }
.cg-gold-price { gap:8px; }
.cg-price-note { margin:8px 0 0; font-size:12px; line-height:1.6; }
.cg-preset-panel { margin-top:10px; }
.cg-preset-panel>.cg-upload-hint { margin-bottom:10px; }
.cg-preset-panel .cg-preset-name { margin:12px 0 8px; }
.cg-preset-panel :is(.cg-preset-controls,.cg-preset-save-actions) button { min-height:34px; }
.cg-preset-controls select { margin-top:0; }
.cg-required-tag { margin:10px 0; }
.cg-tag-presets { margin-bottom:10px; }
.cgwind-site.page-template-newposts .cg-tag-presets .cg-secondary { min-height:28px; padding:4px 10px; }
.cg-taxonomy-grid { margin-bottom:10px; }
.cg-resource-module[hidden],.cg-resource-legacy[hidden],.cg-category-hidden[hidden],.cg-resource-panel[hidden] { display:none!important; }
.cg-taxonomy-grid>.cg-resource-module { grid-column:span 2; }
.cg-resource-module .drop-btn { display:flex; align-items:center; justify-content:space-between; }
.cg-taxonomy-grid>.cg-resource-module .dropdown-menu { left:auto; right:0; }
.cgwind-site.page-template-newposts .cg-resource-category-menu { position:fixed; width:min(640px,calc(100vw - 24px)); max-width:calc(100vw - 24px); min-width:0; margin:0; padding:10px; max-height:min(440px,calc(100dvh - 24px)); transform:none; transition:opacity .15s; overflow:auto; overscroll-behavior:contain; background:var(--cg-surface); color:var(--cg-text); border:1px solid var(--cg-border); }
.cg-resource-category-menu .cg-upload-hint { margin:0 0 6px; font-size:12px; line-height:1.6; }
.cg-resource-node { position:relative; border-top:1px solid var(--cg-border); }
.cg-resource-node>label { display:flex; align-items:center; gap:8px; min-height:34px; padding:5px 40px 5px 4px; margin:0; cursor:pointer; font-weight:400; line-height:24px; overflow-wrap:anywhere; }
.cg-resource-category-menu :is(input[type=checkbox],input[type=radio]) { flex:none; width:17px; height:17px; margin:0; accent-color:var(--cg-publish-accent,#6bcaff); }
.cg-resource-node summary { position:absolute; right:3px; top:2px; display:grid; place-items:center; width:32px; min-height:30px; padding:4px; cursor:pointer; list-style:none; color:var(--cg-muted); }
.cg-resource-node summary::-webkit-details-marker { display:none; }
.cg-resource-node summary::before,.cg-resource-arrow::before { content:""; display:block; width:0; height:0; border-top:4px solid transparent; border-bottom:4px solid transparent; border-left:6px solid currentColor; }
.cg-resource-node details[open]>summary::before,.cg-resource-arrow[aria-expanded=true]::before { transform:rotate(90deg); }
.cg-resource-node summary:focus-visible,.cg-resource-category-menu input:focus-visible,.cg-resource-arrow:focus-visible { outline:2px solid var(--cg-publish-accent,#6bcaff); outline-offset:2px; }
.cg-resource-node details[open]>summary { color:var(--cg-publish-accent,#6bcaff); }
.cg-resource-children { margin-left:16px; border-left:1px solid var(--cg-border); padding-left:8px; }
.cg-resource-node>label:has(input:checked) { color:var(--cg-publish-accent,#6bcaff); }
.cg-resource-roots { position:sticky; top:-10px; z-index:1; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; padding:6px 0 10px; background:var(--cg-surface); }
.cg-resource-root { display:flex; align-items:center; min-width:0; border:1px solid color-mix(in srgb,var(--cg-publish-accent) 35%,var(--cg-border)); border-radius:8px; background:color-mix(in srgb,var(--cg-publish-accent) 8%,var(--cg-background)); color:var(--cg-publish-accent); }
.cgwind-site.page-template-newposts .cg-resource-root>label { position:relative; display:flex; flex:1; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:44px; padding:8px 4px 8px 10px; margin:0; color:inherit; font-weight:600; cursor:pointer; }
.cg-resource-root input[type=radio] { position:absolute!important; width:1px!important; height:1px!important; min-height:0!important; margin:0!important; padding:0!important; clip-path:inset(50%); overflow:hidden; }
.cg-resource-root>label>span { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.cg-resource-root>label>span::before { content:''; width:13px; height:13px; border:1px solid currentColor; border-radius:4px; }
.cg-resource-root:has(input:checked) { border-color:var(--cg-publish-accent); background:color-mix(in srgb,var(--cg-publish-accent) 32%,var(--cg-background)); color:var(--cg-text); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cg-publish-accent) 35%,transparent); }
.cg-resource-root:has(input:checked)>label>span::before { content:'✓'; display:grid; place-items:center; background:var(--cg-publish-accent); border-color:var(--cg-publish-accent); color:var(--cg-background); font-size:11px; line-height:1; }
.cg-resource-root:hover { border-color:var(--cg-publish-accent); }
.cg-resource-root:active { background:color-mix(in srgb,var(--cg-publish-accent) 30%,var(--cg-background)); }
.cg-resource-root:focus-within { outline:2px solid var(--cg-publish-accent); outline-offset:2px; }
.cgwind-site.page-template-newposts .cg-resource-arrow { display:grid; place-items:center; flex:none; width:26px; min-height:44px; padding:0; border:0; border-radius:0 7px 7px 0; background:transparent; color:var(--cg-publish-accent); cursor:pointer; }
.cg-resource-arrow:focus-visible { outline:2px solid var(--cg-publish-accent); outline-offset:-3px; }
.cg-resource-arrow:hover,.cg-resource-arrow[aria-expanded=true] { color:var(--cg-publish-accent,#6bcaff); }
.cg-resource-panel { border-top:1px solid var(--cg-border); }
.cg-resource-panel>.cg-resource-node:first-child { border-top:0; }
@media(max-width:600px) { .cg-resource-roots { gap:4px; }.cg-resource-root { flex-direction:column; }.cgwind-site.page-template-newposts .cg-resource-root>label { width:100%; min-height:32px; padding:6px 2px 0; font-size:13px; }.cg-resource-root>label>span::before { display:none; }.cgwind-site.page-template-newposts .cg-resource-arrow { width:100%; min-height:24px; border-radius:0 0 7px 7px; } }
@media(forced-colors:active) { .cg-resource-root:has(input:checked),.cg-model-choice:has(input:checked) { border:2px solid Highlight!important; }.cg-resource-root:has(input:checked)>label>span::before { background:Highlight; color:HighlightText; } }
.cgwind-site.page-template-newposts .cg-access-fields { grid-template-columns:minmax(0,1fr); margin-top:10px; gap:12px; }
#cg-schedule-field { margin-top:10px; }
#cg-schedule-help { margin-block:6px; }
.cgwind-site.page-template-newposts #cg-publish-actions { padding:14px; }
.cgwind-site.page-template-newposts .cg-publish-actions>.cg-preview-button { margin-top:8px; }
#cg-publish-feedback:empty { margin:0; }
.cg-legacy-download { margin-top:10px; }
.cg-legacy-download summary { padding-block:6px; }
.cg-publish-module { scroll-margin-top:calc(var(--cg-publish-sticky-top) + 12px); }
.cg-publish-nav { position:sticky; top:var(--cg-publish-sticky-top); min-width:0; padding:12px 8px; border:1px solid var(--cg-border); border-radius:10px; background:var(--cg-surface); max-height:calc(100dvh - var(--cg-publish-sticky-top) - 16px); overflow:auto; }
.cg-publish-nav h2 { margin:0 8px 8px; color:var(--cg-publish-accent,#6bcaff); font:600 15px/24px var(--cg-body); }
.cg-publish-nav ul { list-style:none; padding:0; margin:0; }
.cg-publish-nav a { display:block; min-height:32px; padding:6px 10px; border-radius:6px; font:400 13px/20px var(--cg-body); color:var(--cg-muted); cursor:pointer; overflow-wrap:anywhere; }
.cg-publish-nav a:hover { color:var(--cg-text); background:var(--cg-background); }
.cg-publish-nav a[aria-current] { color:var(--cg-publish-accent,#6bcaff); background:var(--cg-edit-button); }
.cg-publish-nav a:active { background:var(--cg-background); }
.cg-publish-nav a:focus-visible { outline:2px solid var(--cg-publish-accent,#6bcaff); outline-offset:-2px; }
.cgwind-site.cg-preset-editor main.container { max-width:1120px; }
@media(max-width:1000px) {
 .cgwind-site.page-template-newposts .cg-publisher-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
 .cg-publish-nav { position:static; max-height:none; overflow:visible; padding:10px; }
 .cg-publish-nav h2 { margin-left:0; margin-bottom:4px; }
 .cg-publish-nav ul { display:flex; gap:4px; overflow-x:auto; padding-bottom:4px; }
 .cg-publish-nav li { flex:none; }
 .cg-publish-nav a { white-space:nowrap; }
}
@media(max-width:600px) {
 .cgwind-site.page-template-newposts .editor-main-box { padding:10px; }
 .cgwind-site.page-template-newposts .cg-publish-section,
 .cgwind-site.page-template-newposts .cg-publish-lower>:is(.zib-widget,.cg-publish-settings,.cg-access-settings) { padding:10px; }
 .cgwind-site.page-template-newposts .cg-version-fields { grid-template-columns:minmax(0,1fr); gap:10px; }
 .cg-access-fields { grid-template-columns:minmax(0,1fr); }
 .cg-publish-section>.cg-edit-heading { gap:8px; }
}

/* 2.8: a single neutral field surface for the entire publishing workflow. */
.cgwind-site.page-template-newposts { --cg-field-bg:#303338; --cg-field-text:#f2f0ec; --cg-field-muted:#b8bec6; --cg-field-border:#525860; }
.cgwind-site.page-template-newposts .editor-main-box :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]),textarea,select,.drop-btn,.cg-drive-trigger,#cg-date-button,#cg-resource-category-menu) {
 background:var(--cg-field-bg)!important; color:var(--cg-field-text)!important; border:1px solid var(--cg-field-border)!important; border-radius:7px; color-scheme:dark; box-shadow:none;
}
.cgwind-site.page-template-newposts .editor-main-box :is(select,.drop-btn,.cg-drive-trigger,#cg-date-button,#cg-resource-category-menu):hover { background:var(--cg-field-bg)!important; color:var(--cg-field-text)!important; border-color:var(--cg-publish-accent,#6bcaff)!important; }
.cgwind-site.page-template-newposts .editor-main-box :is(input,textarea)::placeholder { color:var(--cg-field-muted); opacity:1; }
.cgwind-site.page-template-newposts .editor-main-box :is(select option,.cg-drive-popup,.cg-drive-option) { background:var(--cg-field-bg); color:var(--cg-field-text); }
.cgwind-site.page-template-newposts .editor-main-box .cg-drive-option[aria-selected=true] { background:#3287cf38; }
.cgwind-site.page-template-newposts .editor-main-box :is(input,textarea,select,.drop-btn,.cg-drive-trigger):focus-visible { outline:2px solid var(--cg-publish-accent,#6bcaff); outline-offset:2px; }
.cgwind-site.page-template-newposts .editor-main-box :is(input,textarea,select):disabled { color:var(--cg-field-muted)!important; cursor:not-allowed; }
.cg-version-row { margin:0; padding:0; border:0; min-width:0; }
.cg-version-row+.cg-version-row { margin-top:12px; padding-top:12px; border-top:1px solid var(--cg-border); }
.cg-version-row .cg-remove-version { display:block; margin:8px 0 0 auto; }
#cg-add-version { margin-top:12px; }
.cg-software-section>.cg-upload-hint { display:block; margin-bottom:0; }
.cg-auto-category-source[hidden] { display:none!important; }
.cg-taxonomy-grid { grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
.cg-taxonomy-grid>.cg-resource-module { grid-column:auto; }
.cg-project-type { padding:14px; border:1px solid var(--cg-border); border-radius:8px; background:var(--cg-background); }
.cgwind-site.page-template-newposts .cg-project-type h1::before { display:none!important; }
.cg-project-type>label { display:block; max-width:460px; color:var(--cg-muted); font-size:13px; }
.cg-project-type select { display:block; width:100%; min-height:38px; margin-top:6px; padding:7px 12px; font:400 14px/1.5 var(--cg-body); cursor:pointer; }
.cg-project-type .cg-project-empty { min-height:80px; margin:20px 0 0; color:var(--cg-muted); }
.cg-project-unconfigured .editor-main-box>:not(.cg-project-type) { display:none!important; }
.cg-publisher-layout.cg-type-empty-layout { grid-template-columns:minmax(0,1fr)!important; }
.cg-publish-nav[hidden] { display:none!important; }
.cg-tutorial-section[hidden] { display:none!important; }
@media(max-width:700px) { .cg-taxonomy-grid { grid-template-columns:minmax(0,1fr); } }
