/* OutilsIA Unified Shell & Studio Design System (v2026.12.01-r2)
   Self-hosted WOFF2 fonts (0 third-party requests), prefixed .oi-* classes, Ctrl+K Command Palette. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --oi-bg: #070a11;
  --oi-surface: #0d1320;
  --oi-surface-2: #131c2e;
  --oi-border: rgba(148, 163, 184, 0.15);
  --oi-border-strong: rgba(148, 163, 184, 0.28);
  --oi-text: #f1f5f9;
  --oi-muted: #94a3b8;
  --oi-dim: #64748b;
  --oi-accent: #38bdf8;
  --oi-accent-2: #22d3ee;
  --oi-ok: #34d399;
  --oi-violet: #a78bfa;
  --oi-amber: #fbbf24;
  --oi-header-h: 64px;
  --oi-max: 1180px;
  --oi-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --oi-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body {
  font-family: var(--oi-font-sans);
}

code, pre, kbd, .font-mono {
  font-family: var(--oi-font-mono);
}

/* Site-wide safety patches for Tailwind classes missing from static tailwind.min.css */
.bg-emerald-400 { background-color: #34d399 !important; }
.bg-emerald-400\/10 { background-color: rgba(52, 211, 153, 0.10) !important; }
.bg-emerald-400\/15 { background-color: rgba(52, 211, 153, 0.15) !important; }
.bg-emerald-400\/20 { background-color: rgba(52, 211, 153, 0.20) !important; }
.bg-emerald-400\/5 { background-color: rgba(52, 211, 153, 0.06) !important; }
.border-emerald-400\/25 { border-color: rgba(52, 211, 153, 0.25) !important; }
.border-emerald-400\/30 { border-color: rgba(52, 211, 153, 0.30) !important; }
.border-emerald-400\/35 { border-color: rgba(52, 211, 153, 0.35) !important; }
.border-emerald-400\/40 { border-color: rgba(52, 211, 153, 0.40) !important; }
.text-emerald-200 { color: #a7f3d0 !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-emerald-400 { color: #34d399 !important; }

/* Discrete footer link injected by navigation_public.py */
#score-privacy-link {
  text-align: center;
  padding: 6px 16px 24px;
  font: 12px/1.4 var(--oi-font-sans);
  color: #64748b;
  background: #05070d;
  border: 0;
}
#score-privacy-link a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
#score-privacy-link a:hover {
  color: #94a3b8;
  text-decoration: underline;
}

/* ==================== UNIFIED STICKY HEADER ==================== */
.oi-header,
.oi-header *,
.oi-drawer,
.oi-drawer *,
.oi-footer,
.oi-footer *,
.oi-cmdk-backdrop,
.oi-cmdk-backdrop * {
  box-sizing: border-box;
  font-family: var(--oi-font-sans);
}

.oi-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--oi-header-h);
  background: rgba(7, 10, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--oi-border);
}

.oi-header-in {
  max-width: var(--oi-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.oi-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: #f8fafc !important;
  flex-shrink: 0;
}

.oi-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
  color: #04101c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.22);
}

.oi-word {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f8fafc;
}

.oi-word span {
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Primary desktop nav */
.oi-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.oi-nav-link,
.oi-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1 !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.oi-nav-link:hover,
.oi-drop-btn:hover,
.oi-drop.open > .oi-drop-btn {
  color: #ffffff !important;
  background: rgba(148, 163, 184, 0.10);
}

.oi-nav-link.oi-active {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.09);
  font-weight: 600;
}

.oi-chev {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.oi-drop.open > .oi-drop-btn .oi-chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panels */
.oi-drop {
  position: relative;
}

.oi-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #0c1220;
  border: 1px solid var(--oi-border-strong);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(56, 189, 248, 0.06);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 120;
}

.oi-drop.open > .oi-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.oi-panel-wide {
  width: 660px;
}

.oi-panel-narrow {
  width: 370px;
}

.oi-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.oi-panel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oi-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  text-decoration: none !important;
  color: var(--oi-text) !important;
  border: 1px solid transparent;
  transition: background 0.14s, border-color 0.14s;
}

.oi-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.22);
}

.oi-app-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #38bdf8;
}
.oi-app-ico svg {
  width: 17px;
  height: 17px;
  display: block;
}
.oi-app-ico.ico-ok {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.26);
  color: #34d399;
}
.oi-app-ico.ico-teal {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.26);
  color: #2dd4bf;
}
.oi-app-ico.ico-violet {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.26);
  color: #a78bfa;
}
.oi-app-ico.ico-amber {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.26);
  color: #fbbf24;
}
.oi-app-ico.ico-indigo {
  background: rgba(129, 140, 248, 0.13);
  border-color: rgba(129, 140, 248, 0.28);
  color: #818cf8;
}
.oi-app-ico.ico-pink {
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.26);
  color: #f472b6;
}
.oi-app-ico.ico-slate {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
}

.oi-item-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.oi-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.oi-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

.oi-item-badge {
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--oi-font-mono);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  white-space: nowrap;
}

.oi-item-badge.ok {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.oi-item-desc {
  font-size: 12px;
  line-height: 1.4;
  color: #94a3b8;
}

.oi-panel-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--oi-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 6px;
  padding-right: 6px;
}

.oi-panel-foot a {
  font-size: 12.5px;
  font-weight: 600;
  color: #38bdf8 !important;
  text-decoration: none !important;
}

.oi-panel-foot a:hover {
  color: #bae6fd !important;
  text-decoration: underline !important;
}

/* Right actions + Quick Search trigger */
.oi-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.oi-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--oi-border);
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.oi-search-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
}

.oi-search-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.oi-kbd {
  font-family: var(--oi-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  line-height: 1.1;
}

.oi-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--oi-border);
  background: rgba(148, 163, 184, 0.06);
  color: #cbd5e1 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.oi-lang:hover {
  border-color: var(--oi-border-strong);
  color: #ffffff !important;
  background: rgba(148, 163, 184, 0.12);
}

.oi-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: #38bdf8;
  color: #04101c !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.oi-cta:hover {
  background: #7dd3fc;
}

.oi-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--oi-border);
  background: rgba(148, 163, 184, 0.07);
  color: #e2e8f0;
  cursor: pointer;
  padding: 0;
}

.oi-burger:hover {
  border-color: var(--oi-border-strong);
  color: #ffffff;
}

/* ==================== COMMAND PALETTE (CTRL+K) ==================== */
.oi-cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(4, 7, 14, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: min(11vh, 96px) 16px 24px;
}

.oi-cmdk-backdrop.open {
  display: flex;
}

.oi-cmdk-dialog {
  width: 100%;
  max-width: 640px;
  max-height: min(74vh, 560px);
  display: flex;
  flex-direction: column;
  background: #0c1220;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  color: #f1f5f9;
}

.oi-cmdk-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.oi-cmdk-top svg {
  width: 18px;
  height: 18px;
  color: #38bdf8;
  flex-shrink: 0;
}

.oi-cmdk-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.oi-cmdk-input::placeholder {
  color: #64748b;
}

.oi-cmdk-esc {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--oi-font-mono);
  cursor: pointer;
}

.oi-cmdk-esc:hover {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.4);
}

.oi-cmdk-list {
  overflow-y: auto;
  padding: 8px 10px 12px;
  flex: 1;
}

.oi-cmdk-group {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #64748b;
  padding: 10px 10px 6px;
}

.oi-cmdk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #e2e8f0 !important;
  border: 1px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}

.oi-cmdk-row:hover,
.oi-cmdk-row.active {
  background: rgba(56, 189, 248, 0.11);
  border-color: rgba(56, 189, 248, 0.28);
}

.oi-cmdk-row-main {
  min-width: 0;
  flex: 1;
}

.oi-cmdk-row-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oi-cmdk-row-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oi-cmdk-row-badge {
  font-family: var(--oi-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  flex-shrink: 0;
  white-space: nowrap;
}

.oi-cmdk-empty {
  padding: 28px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13.5px;
}

.oi-cmdk-foot {
  padding: 9px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 10, 17, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: #64748b;
}

.oi-cmdk-hints {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==================== MOBILE FULLSCREEN DRAWER ==================== */
.oi-drawer {
  position: fixed;
  inset: var(--oi-header-h) 0 0 0;
  z-index: 89;
  background: rgba(7, 10, 17, 0.98);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  padding: 20px 20px 44px;
  display: none;
}

.oi-drawer.open {
  display: block;
}

body.oi-drawer-lock {
  overflow: hidden;
}
body.oi-drawer-lock #sc-privacy {
  display: none !important;
}

.oi-drawer-sec {
  margin-bottom: 22px;
}

.oi-drawer-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin: 0 0 10px 4px;
}

.oi-drawer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.oi-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #0d1320;
  border: 1px solid var(--oi-border);
  color: #f1f5f9 !important;
  text-decoration: none !important;
  font-size: 14.5px;
  font-weight: 600;
}

.oi-drawer-link small {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.oi-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: #38bdf8;
  color: #04101c !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  margin-top: 8px;
}

@media (max-width: 1120px) {
  .oi-search-label,
  .oi-search-btn .oi-kbd {
    display: none;
  }
  .oi-search-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .oi-header-in {
    padding: 0 16px;
    gap: 8px;
  }
  .oi-nav,
  .oi-cta {
    display: none !important;
  }
  .oi-burger {
    display: inline-flex;
  }
  .oi-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
}

/* ==================== UNIFIED 4-COLUMN FOOTER ==================== */
.oi-footer {
  background: #05070d;
  border-top: 1px solid var(--oi-border);
  padding: 56px 24px 28px;
  color: var(--oi-muted);
  margin-top: 56px;
}

.oi-footer-in {
  max-width: var(--oi-max);
  margin: 0 auto;
}

.oi-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--oi-border);
}

.oi-footer-about p {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 280px;
}

.oi-footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}

.oi-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.oi-footer-col a {
  font-size: 13.5px;
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: color 0.14s;
}

.oi-footer-col a:hover {
  color: #38bdf8 !important;
}

.oi-footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.5px;
  color: #64748b;
}

.oi-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.oi-footer-legal a {
  color: #64748b !important;
  text-decoration: none !important;
}

.oi-footer-legal a:hover {
  color: #cbd5e1 !important;
}

@media (max-width: 960px) {
  .oi-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oi-footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .oi-footer {
    padding: 40px 18px 20px;
  }
  .oi-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==================== ACCESSIBILITY FOCUS ==================== */
.oi-header a:focus-visible,
.oi-header button:focus-visible,
.oi-drawer a:focus-visible,
.oi-footer a:focus-visible,
.oi-cmdk-row:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
