/* ONGIT v7.4 • ONHOST V2 palette • scoped overrides over v7.1/v7.3.
   No blanket hiding of navigation/repository components. */
:root {--og74-magenta:#e91e7a;--og74-purple:#bb88eb;--og74-ink:#f8f5ff;--og74-header:#110d1c;--og74-border:#49314d}
html[data-og-palette="light"] {--og74-main-bg:#f6f7fa;--og74-main-text:#20212a;--og74-card:#fff;--og74-bdr:#dad9e3}
html[data-og-palette="grey"] {--og74-main-bg:#24242c;--og74-main-text:#f3f0f8;--og74-card:#30303b;--og74-bdr:#4e4b56}
html[data-og-palette="dark"] {--og74-main-bg:#0f0e19;--og74-main-text:#eeeaf6;--og74-card:#1a1727;--og74-bdr:#382f48}
html[data-og-palette="vscode"] {--og74-main-bg:#1e1e1e;--og74-main-text:#e8e8ed;--og74-card:#252526;--og74-bdr:#424246}
/* Header stays consistent across themes. Actual login/profile/notifications remain native. */
html.og74-ready #navbar.og74-nav,html.og74-ready .og-v73-promoted-nav.og74-nav {
 background:var(--og74-header)!important;color:#f7f5ff!important;border-bottom:1px solid #6c4084!important;
 box-shadow:0 3px 16px #08050b19!important;position:relative!important;z-index:650!important;
 min-height:56px!important;align-items:center!important;
}
html.og74-ready #navbar.og74-nav :is(.item,a,summary),html.og74-ready .og-v73-promoted-nav.og74-nav :is(.item,a,summary){color:#f6f2ff!important}
html.og74-ready #navbar.og74-nav .item:hover,html.og74-ready .og-v73-promoted-nav.og74-nav a:hover{background:#fff1!important}
html.og74-ready .og-paired-brand img {object-fit:contain!important;filter:none!important;opacity:1!important}
html.og74-ready .og-paired-brand a:hover img {opacity:1!important;filter:none!important;transform:none!important}
html.og74-ready .og-paired-brand a:hover {box-shadow:inset 0 -2px 0 var(--og74-magenta)!important;background:#fff1!important}
/* Product mega menu: compact, keyboard-accessible using native details elements. */
.og74-primary {display:flex;align-items:center;gap:5px;flex:0 1 auto;min-width:0;padding-inline:8px}
.og74-menu {position:relative;display:block;flex-shrink:0;color:#f7f5ff}
.og74-menu-label,.og74-top-link {display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font:600 12px/1.3 system-ui,sans-serif!important;padding:10px 11px!important;border-radius:7px;min-height:36px;cursor:pointer;list-style:none;text-decoration:none!important}
.og74-menu-label::-webkit-details-marker{display:none}
.og74-menu-label svg{width:12px;height:12px;opacity:.72}
.og74-menu-label:hover,.og74-menu[open]>.og74-menu-label,.og74-top-link:hover {background:#ffffff18!important}
.og74-menu-popover {display:none;position:absolute;top:calc(100% + 9px);left:0;z-index:9000;min-width:255px;padding:9px;
 border:1px solid #594468;border-radius:11px;box-shadow:0 22px 55px #0009;background:#191421!important;color:#f6f2ff!important}
.og74-menu[open] .og74-menu-popover {display:grid;gap:2px}
.og74-menu-item {display:block!important;text-align:left!important;padding:11px 13px!important;font:550 13px/1.25 system-ui,sans-serif!important;border-radius:7px;text-decoration:none!important}
.og74-menu-item:hover {background:#442c55!important;color:white!important}
.og74-controls {display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}
.og74-controls .og74-icon-control,.og74-controls .og74-theme-trigger {display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;margin:0!important;border:1px solid #685073!important;
 background:#ffffff0d!important;border-radius:9px!important;color:#f6efff!important;cursor:pointer!important;box-sizing:border-box!important}
.og74-controls .og74-icon-control:hover,.og74-controls .og74-theme-trigger:hover {background:#46324f!important}
.og74-icon-control .og-language-trigger {display:flex!important;align-items:center!important;justify-content:center!important;border:0!important;background:none!important;padding:0!important;min-height:0!important;width:34px!important;height:34px!important;font-size:0!important}
.og74-icon-control summary::-webkit-details-marker {display:none!important}
.og74-icon-control .og-language-list {top:calc(100% + 9px)!important;min-width:182px!important;border-radius:9px!important;background:#191421!important;z-index:9001!important}
.og74-icon-control .og-language-item {color:#fff!important;display:block!important;padding:9px 12px!important}
.og74-controls .og74-theme-trigger .og-mini-swatch {display:none!important}
.og74-controls .og74-theme-trigger svg {display:block!important}
.og74-login {margin-left:5px!important;white-space:nowrap!important}
.og74-controls+.og74-login {margin-left:8px!important}
html.og74-ready #navbar .right.menu,html.og74-ready #navbar .navbar-right{margin-left:auto!important;gap:4px}
/* Footer is one consistently dark component on public, signed-in and repository routes. */
footer#og74-footer {position:relative;z-index:1;margin-top:auto;padding:23px clamp(17px,3vw,44px)!important;background:#0d0c16!important;
 border-top:1px solid #30263d!important;color:#c4b5d4!important;width:100%!important;font:12px/1.5 system-ui,sans-serif!important;box-sizing:border-box}
#og74-footer .og74-footer-inner{max-width:1340px;margin:auto;display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}
#og74-footer .og74-footer-brand{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#og74-footer .og74-footer-logo {display:inline-flex;align-items:center;line-height:1;text-decoration:none!important}
#og74-footer .og74-footer-logo img {width:auto;height:24px;max-width:107px;max-height:24px;object-fit:contain;opacity:1!important;filter:none!important}
#og74-footer .og74-footer-logo:hover img{transform:none!important;opacity:.88!important}
#og74-footer .og74-footer-divider {color:#796d8c}
#og74-footer .og74-footer-source{font-weight:500;white-space:nowrap}
#og74-footer a {color:#efdbfa!important;text-decoration:none!important;transition:color .12s ease}
#og74-footer a:hover {color:#ff9ed7!important;text-decoration:underline!important}
#og74-footer .og74-footer-detail {display:flex;flex-direction:column;align-items:flex-end;gap:4px}
#og74-footer .og74-footer-links {display:flex;gap:13px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
#og74-footer .og74-render-metrics {opacity:.75;white-space:nowrap}
footer.page-footer.og74-hide-native-footer,footer.og74-hide-legacy-footer {display:none!important}
/* Icon-only theme palette, compact popover; premium control gated in JS. */
#ongit-theme-panel.og74-panel {top:68px!important;right:clamp(8px,2vw,27px)!important;width:min(325px,calc(100vw - 16px))!important;
 max-height:calc(100vh - 90px)!important;overflow:auto!important;padding:14px!important;box-shadow:0 20px 55px #0006!important}
#ongit-theme-panel.og74-panel .og74-premium-area.og74-locked {opacity:.48}
#ongit-theme-panel.og74-panel input[type=color]:disabled {cursor:not-allowed!important;opacity:.55!important}
#ongit-theme-panel.og74-panel .og74-premium-message {font-size:11px;line-height:1.6;padding:8px;margin-top:5px;
 color:var(--og-muted,#aaa)!important;border-radius:8px;border:1px solid var(--og-border,#444)}
#ongit-theme-panel.og74-panel .og74-premium-message[hidden]{display:none!important}
#ongit-theme-panel.og74-panel .og74-premium-message a{color:var(--og-accent,#e91e7a)!important;font-weight:650}
/* Four theme consistency throughout repo tree / settings / PR / issues / Actions */
html[data-og-palette] :is(.ui.dropdown .menu,.ui.selection.dropdown,.ui.popup,.ui.modal,.ui.message,.ui.segment,.ui.table,
 .repository .file-view,.repository .files-table,.organization .ui.segment,.user.profile .ui.segment) {
 border-color:var(--og-border,var(--og74-bdr))!important;color:var(--og-text,var(--og74-main-text))!important}
html[data-og-palette] :is(.ui.form input,.ui.form select,.ui.form textarea,.ui.selection.dropdown,.ui.dropdown .menu) {
 background-color:var(--og-input,var(--og74-card))!important;color:var(--og-text,var(--og74-main-text))!important}
html[data-og-palette] :is(.ui.form label,.ui.form .field>label,.ui.dropdown .text,.ui.dropdown .item) {
 color:var(--og-text,var(--og74-main-text))!important}
html[data-og-palette] .ui.dropdown .menu>.item:hover {background:var(--og-hover,#37313a)!important}
html[data-og-palette] :is(.ui.table th,.ui.table td,.ui.list>.item,.ui.menu .item) {border-color:var(--og-border,var(--og74-bdr))!important}
html[data-og-palette] :is(.repository .diff-file-box,.code-view,.file-content,.repository .file-view) {color:var(--og-text,var(--og74-main-text))!important}
html[data-og-palette] :is(input,select,button,a,summary):focus-visible{outline:2px solid #e91e7a!important;outline-offset:2px!important}
/* Swagger docs are visually branded; raw API schema and license untouched. */
.swagger-ui .info .title {font-family:inherit!important;color:var(--og-text,#eae8ed)!important}
.swagger-ui .og74-api-compat {font-size:13px;line-height:1.5;color:var(--og-muted,#aeabb5)!important;max-width:75ch}
@media (max-width:1210px){.og74-primary{gap:0}.og74-menu-label,.og74-top-link{font-size:11px!important;padding:8px!important}}
@media (max-width:1050px){.og74-primary{overflow-x:auto;scrollbar-width:thin;max-width:min(45vw,420px)}.og74-menu-label,.og74-top-link{padding:9px 7px!important}}
@media (max-width:760px){.og74-primary{order:4;max-width:100%!important;flex-basis:100%!important;overflow-x:auto;padding:2px 0 4px}
 html.og74-ready #navbar.og74-nav,html.og74-ready .og-v73-promoted-nav.og74-nav{flex-wrap:wrap!important}
 #og74-footer .og74-footer-detail{align-items:flex-start}#og74-footer .og74-footer-links{justify-content:flex-start}
 #og74-footer .og74-footer-inner{flex-direction:column;align-items:flex-start;gap:14px}}
@media (prefers-reduced-motion:reduce){.og74-primary *,#og74-footer *{transition:none!important}}
