/* Civadelia V2.6E: University Setup visual cleanup.
   No changes to other Operations, form names, validation, models or routes. */
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell:has(.gs-settings-layout-full) {
  --gs-ink:var(--civa26b-text,#26313d);
  --gs-muted:var(--civa26b-muted,#5c6878);
  --gs-line:var(--civa26b-line,#dce2e9);
  width:min(calc(100% - 30px),1320px);
  padding-top:0!important;padding-bottom:32px!important;
}
/* Bring the first title panel closer to canonical breadcrumbs, preserving the
   horizontal measurement already handled by V2.6B. */
body.co-ui-v1 main.co-main.civa-v26-enhanced:has(> .gs-shell .gs-settings-layout-full) > .civa-v26-context:not([hidden]) {
  margin-top:8px!important;margin-bottom:0!important;
  min-height:38px;transform:none!important;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell:has(.gs-settings-layout-full) .gs-hero {
  margin-top:0!important;margin-bottom:16px!important;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full {
  display:block!important;grid-template-columns:none!important;
  width:100%;min-width:0;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full > .gs-settings-content {
  display:grid;grid-template-columns:minmax(0,1fr);
  width:100%;min-width:0;gap:18px;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-settings-section {
  scroll-margin-top:80px;
  padding:23px 26px!important;
  max-width:none;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-section-title h2 {
  font-size:18px!important;line-height:1.3!important;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-section-title p {
  font-size:14px!important;line-height:1.55!important;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-field-grid {
  gap:20px 22px!important;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-field label,
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-switch-copy strong {
  font-size:14px!important;line-height:1.5!important;font-weight:660;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full :is(.gs-field small,.gs-lock,.gs-switch-copy span,.gs-logo-filename,.gs-logo-upload-copy p) {
  font-size:13px!important;line-height:1.5!important;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full :is(.gs-readonly code,.gs-preview-copy strong) {
  font-size:14px!important;line-height:1.5;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-readonly {
  min-height:42px;padding:10px 12px;flex-wrap:wrap;
  background:var(--civa26b-soft,#f6f7f9);
  border:1px solid var(--civa26b-line,#dce2e9);
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-switch-copy span {display:block;}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-logo-upload-card {
  background:var(--civa26b-soft,#f6f7f9);
  border-color:var(--civa26b-line,#dce2e9);
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar {
  position:sticky!important;bottom:0!important;z-index:50;
  display:flex;align-items:center;justify-content:flex-end;
  padding:12px 16px!important;margin:0!important;
  min-height:64px;
  background:var(--civa26b-raised,#fff)!important;
  border:1px solid var(--civa26b-line,#dce2e9)!important;
  border-radius:10px!important;
  box-shadow:0 -6px 20px rgba(17,24,39,.075)!important;
  backdrop-filter:none!important;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar-actions {
  display:flex;align-items:center;justify-content:flex-end;gap:10px;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar-actions :is(a,button) {
  min-height:42px;font-size:14px!important;padding:8px 18px;line-height:1.4;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar-actions .gs-btn-primary {
  color:var(--on-brand)!important;background:var(--brand)!important;border-color:var(--brand)!important;
}
body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar-actions .gs-btn-primary:is(:hover,:focus-visible) {
  background:var(--brand-hover)!important;border-color:var(--brand-hover)!important;
}
/* Original V3 settings page hard-coded light surfaces. The app-wide dark
   theme cannot work until these controls inherit readable dark colours. */
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell:has(.gs-settings-layout-full) {
  --gs-ink:#f2f4f8;--gs-muted:#bdc7d4;--gs-line:#424955;
  color:#f2f4f8!important;color-scheme:dark;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full :is(.gs-settings-section,.gs-card) {
  background:#222730!important;border-color:#424955!important;color:#f2f4f8!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full :is(.gs-section-title h2,.gs-field label,.gs-switch-copy strong,.gs-logo-upload-copy>strong) {
  color:#f3f5f8!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full :is(.gs-section-title p,.gs-field small,.gs-switch-copy span,.gs-logo-upload-copy p,.gs-logo-filename,.gs-lock) {
  color:#bac7d4!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-readonly {
  background:#2b313b!important;border-color:#485160!important;color:#f3f5f8!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-readonly :is(code,span) {
  color:#e5ebf3!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full :is(.gs-logo-upload-card,.gs-logo-preview,.gs-preview-card,.gs-preview-mark) {
  background:#2a3039!important;border-color:#46505e!important;color:#f3f5f8!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full :is(.gs-preview-copy span,.gs-preview-copy strong) {
  color:#e4eaf2!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full :is(.gs-switch-row) {
  border-color:#414b57!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar {
  background:#252a33!important;border-color:#46505b!important;
  box-shadow:0 -8px 24px rgba(0,0,0,.25)!important;
}
html[data-civa-theme="dark"] body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar .gs-btn {
  background:#303743!important;border-color:#586474!important;color:#f2f4f8!important;
}
@media(max-width:760px) {
  body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-settings-section {padding:17px!important;}
  body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-field-grid {grid-template-columns:1fr!important;}
  body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-field.full {grid-column:auto;}
  body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar {padding:10px!important;}
  body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar-actions {width:100%;}
  body.co-ui-v1 main.co-main.civa-v26-enhanced .gs-shell .gs-settings-layout-full .gs-savebar-actions > * {flex:1;}
}
