/* ONGit Enterprise 8.8: additive, versioned design-system improvements for Forgejo 15.
   Do not hide Forgejo permission controls or alter form behavior. */
:root{
 --og88-primary:#be69d7;--og88-accent:#ef78bb;--og88-focus:#e7a5fa;
 --og88-radius:12px;--og88-radius-sm:9px;--og88-nav-height:65px;
 --og88-shadow:0 14px 40px rgb(20 9 36 / 12%);
}
:root{--og88-stroke:var(--color-secondary,#65556d);--og88-glass:var(--color-body,#201927);--og88-raised:var(--color-box-body,#292132);--og88-ink:var(--color-text,#f6efff);--og88-muted:var(--color-text-light,#bcaacb)}
:root:is([data-og-palette="light"],[data-og86-theme="light"],[data-og86-theme="lightgrey"]){--og88-stroke:#dfd7e6;--og88-glass:#fff;--og88-raised:#f9f7fb;--og88-ink:#271f2b;--og88-muted:#655e6d}
:root:is([data-og-palette="dark"],[data-og86-theme="dark"],[data-og86-theme="grey"],[data-og86-theme="vscode"]){--og88-stroke:#4c3a5a;--og88-glass:#211928;--og88-raised:#2b2136;--og88-ink:#f7efff;--og88-muted:#bbaeca}
/* Base tokens use native Forgejo variables when available and continue working without v8.6. */
:root.og88-live{scroll-padding-top:calc(var(--og88-nav-height) + 20px)}
:root.og88-live .ui.segment,
:root.og88-live .ui.segments,
:root.og88-live .ui.card,
:root.og88-live .ui.cards>.card,
:root.og88-live .repository .ui.table,
:root.og88-live .file-list{
 border-radius:var(--og88-radius);border-color:var(--og88-stroke);
}
:root.og88-live :is(.ui.button,.ui.basic.button,.ui.input input,textarea,select,.ui.dropdown){border-radius:var(--og88-radius-sm)}
:root.og88-live :is(a,button,input,select,summary,textarea,[tabindex]):focus-visible{outline:2px solid var(--og88-focus)!important;outline-offset:2px}
:root.og88-live :is(.ui.table tr,.repo-file-list tr,.file-list tr){transition:background-color .13s ease}
:root.og88-live :is(.ui.table tbody tr,.repo-file-list tr,.file-list tr):hover{background:color-mix(in srgb,var(--og88-primary) 6%,transparent)}
:root.og88-live :is(.ui.label,.ui.small.label){border-radius:7px}
:root.og88-live .page-content :is(h1,h2,h3){text-wrap:balance}
/* Do not replace the native repo tabs, permission-sensitive create dropdown or modal styles. */
#og88-launch{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-width:40px;height:34px;border:1px solid #635075;background:#2a2035;color:#fdf6ff;border-radius:10px;cursor:pointer;font-size:12px;font-weight:700;padding:0 10px}
#og88-launch:hover{background:#43314f}
#og88-launch kbd{font:600 10px/1 ui-monospace,monospace;opacity:.8;border:1px solid #8d6c9c;border-radius:4px;padding:3px 4px}
#og88-command{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:start center;padding:clamp(32px,12vh,110px) 14px 24px;background:rgb(13 8 21 / 75%);backdrop-filter:blur(8px)}
#og88-command[hidden]{display:none!important}
#og88-command .og88-panel{width:min(680px,100%);max-height:min(75vh,650px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #6d5480;background:#1c1625;color:#fbf6ff;border-radius:17px;box-shadow:0 32px 100px #0009}
#og88-command .og88-search-row{display:flex;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #4a3c55}
#og88-command .og88-magnify{font-size:23px;color:#dd91e8}
#og88-command input{flex:1;min-width:0;outline:0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#fff!important;font-size:17px}
#og88-command input::placeholder{color:#afa0bd}
#og88-command .og88-results{overflow:auto;padding:11px;display:grid;gap:4px;min-height:120px}
#og88-command .og88-result{display:flex;gap:12px;justify-content:space-between;align-items:center;text-align:left;width:100%;padding:13px 14px;color:#f3e9ff;background:transparent;border:1px solid transparent;border-radius:10px;cursor:pointer;font-size:14px}
#og88-command .og88-result small{color:#bbaccb;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
#og88-command .og88-result:is(:hover,[aria-selected="true"]){background:#3b294b;border-color:#8b5c9e}
#og88-command .og88-empty{margin:18px 12px;color:#c5b4d0;font-size:14px}
#og88-command .og88-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #4a3c55;padding:10px 17px;color:#b9a8c4;font-size:11px}
#og88-command .og88-footer strong{color:#f8dcff;font-weight:600}
body.og88-command-open{overflow:hidden!important}
@media(max-width:920px){#og88-launch{padding:0 9px}#og88-launch kbd{display:none}}
@media(max-width:520px){#og88-launch{width:33px;min-width:33px;height:33px;padding:0}#og88-launch .og88-launch-label{display:none}#og88-command{padding-top:7vh}#og88-command .og88-panel{max-height:80dvh}#og88-command .og88-result small{max-width:105px}}
@media(prefers-reduced-motion:reduce){:root.og88-live .ui.table tr{transition:none}}
