:root {
  --brand: #102A43;
  --brand-accent: #C9A227;
  --surface: #ffffff;
  --text: #102A43;
  --text-muted: #5c6b7a;
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 160ms;
  color-scheme: light;
  font-family: Inter, "Noto Sans Ethiopic", "Abyssinica SIL", sans-serif;
  line-height: 1.5;
}
html[lang="am"] body,
html[lang="om"] body { line-height: 1.65; }
[data-theme="dark"] {
  --brand: #d6e4f0;
  --brand-accent: #e0c36a;
  --surface: #0e1c2b;
  --text: #f4f7fb;
  --text-muted: #b7c3d0;
  color-scheme: dark;
}
[data-theme="dark"] body.opc-university {
  background: #0e1c2b;
  color: #f4f7fb;
}
[data-theme="dark"] .opc-header__brand {
  background: #0e1c2b;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .opc-header__brand .opc-brand__title,
[data-theme="dark"] .opc-header__brand .opc-brand__sub,
[data-theme="dark"] .opc-header__brand .opc-brand__sub--am {
  color: #f4f7fb;
}
/* Mobile trilingual titles (EN / Afaan Oromo / Amharic) — match desktop white */
[data-theme="dark"] .opc-header-mobile__names,
[data-theme="dark"] .opc-header-mobile__line,
[data-theme="dark"] .opc-header-mobile__line--en,
[data-theme="dark"] .opc-header-mobile__line--om,
[data-theme="dark"] .opc-header-mobile__line--am {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}
[data-theme="dark"] .opc-header .navbar-toggler {
  color: #f4f7fb;
  border-color: rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .opc-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28244, 247, 251, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
[data-theme="dark"] .opc-header__brand [data-theme-toggle] {
  color: #f4f7fb;
  border-color: rgba(255, 255, 255, 0.35);
}
[data-theme="dark"] body.opc-university .bg-white,
[data-theme="dark"] body.opc-university .bg-light,
[data-theme="dark"] body.opc-university .opc-stats-bar {
  background: #0e1c2b !important;
  color: #f4f7fb;
}
[data-theme="dark"] body.opc-university main .dt-section-title,
[data-theme="dark"] body.opc-university main h1,
[data-theme="dark"] body.opc-university main h2,
[data-theme="dark"] body.opc-university main h3,
[data-theme="dark"] body.opc-university main .text-dark,
[data-theme="dark"] body.opc-university main a.text-dark {
  color: #f4f7fb !important;
}
[data-theme="dark"] body.opc-university main .text-muted {
  color: #c5d0dc !important;
}
[data-theme="dark"] body.opc-university main .card,
[data-theme="dark"] body.opc-university main .card-body,
[data-theme="dark"] body.opc-university main .opc-program-card,
[data-theme="dark"] body.opc-university main .opc-program-card--featured {
  background: #163049 !important;
  background-image: none !important;
  color: #f4f7fb !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] body.opc-university main .card a,
[data-theme="dark"] body.opc-university main .opc-program-card h3 {
  color: #f4f7fb;
}
[data-theme="dark"] body.opc-university .opc-stats-bar .dt-stat__num,
[data-theme="dark"] body.opc-university .opc-stats-bar .dt-stat__lbl {
  color: #f4f7fb;
}
[data-theme="dark"] body.opc-university .btn-opc-primary {
  background: #C9A227 !important;
  border-color: #C9A227 !important;
  color: #102A43 !important;
}
[data-theme="dark"] body.opc-university .dt-footer {
  background: #08111b;
  color: #c5d0dc;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
#opcInstall {
  position: fixed;
  /* Sit above the AI FAB so Install never covers / sticks on it (esp. mobile). */
  left: 1rem;
  right: 1rem;
  bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(16, 42, 67, .25);
  max-width: 28rem;
  margin-inline: auto;
  pointer-events: auto;
}
#opcInstall[hidden] { display: none !important; }
@media (min-width: 768px) {
  #opcInstall {
    left: auto;
    right: 5.5rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    margin-inline: 0;
  }
}
/* When install is up, keep AI FAB clear and tappable on the right. */
body.opc-install-visible .opc-ai {
  bottom: 20px;
  right: 16px;
}
body.opc-install-visible .opc-ai__fab {
  box-shadow: 0 0 0 2px #0f2744, 0 10px 24px rgba(0,0,0,.4);
}
/* Mobile: install bar spans the bottom, so lift the FAB above it (desktop bar sits beside the FAB). */
:root { --install-bar-h: 64px; }
@media (max-width: 767.98px) {
  body.opc-install-visible .opc-ai__fab { bottom: calc(var(--install-bar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}

/* Dark theme: cards and articles were left white while headings were forced light. */
[data-theme="dark"] body.opc-university main .dt-work-card,
[data-theme="dark"] body.opc-university main .dt-work-card > .p-3,
[data-theme="dark"] body.opc-university main .opc-partner-card,
[data-theme="dark"] body.opc-university main .opc-partner-card__body,
[data-theme="dark"] body.opc-university main .opc-team-card,
[data-theme="dark"] body.opc-university main .opc-team-card__body,
[data-theme="dark"] body.opc-university main .dt-blog-post,
[data-theme="dark"] body.opc-university main .opc-blog-nav-card,
[data-theme="dark"] body.opc-university main .opc-partner-intro,
[data-theme="dark"] body.opc-university main .list-group-item {
  background: #1a3350 !important;
  color: #f4f7fb !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] body.opc-university .cms-body,
[data-theme="dark"] body.opc-university .cms-body p,
[data-theme="dark"] body.opc-university .cms-body li,
[data-theme="dark"] body.opc-university .cms-body h1,
[data-theme="dark"] body.opc-university .cms-body h2,
[data-theme="dark"] body.opc-university .cms-body h3,
[data-theme="dark"] body.opc-university .cms-body h4,
[data-theme="dark"] body.opc-university .dt-blog-post__title,
[data-theme="dark"] body.opc-university .dt-blog-post__lead,
[data-theme="dark"] body.opc-university .opc-partner-card__title,
[data-theme="dark"] body.opc-university .opc-team-card__name,
[data-theme="dark"] body.opc-university .opc-blog-nav-card__title,
[data-theme="dark"] body.opc-university .opc-news-card-link__title {
  color: #f4f7fb !important;
}
[data-theme="dark"] body.opc-university .opc-partner-card__excerpt,
[data-theme="dark"] body.opc-university .opc-partner-card__date,
[data-theme="dark"] body.opc-university .opc-team-card__role,
[data-theme="dark"] body.opc-university .opc-team-card__bio,
[data-theme="dark"] body.opc-university .dt-blog-post__date,
[data-theme="dark"] body.opc-university .opc-news-card-link__date {
  color: #c5d0dc !important;
}
[data-theme="dark"] body.opc-university .cms-body a,
[data-theme="dark"] body.opc-university .dt-blog-post__back,
[data-theme="dark"] body.opc-university .opc-blog-card__readall,
[data-theme="dark"] body.opc-university .opc-partner-card__cta {
  color: #e0c36a !important;
}
[data-theme="dark"] body.opc-university .badge.bg-light,
[data-theme="dark"] body.opc-university .badge.text-bg-light {
  background: #0e1c2b !important;
  color: #f4f7fb !important;
}
[data-theme="dark"] body.opc-university .form-control,
[data-theme="dark"] body.opc-university .form-select,
[data-theme="dark"] body.opc-university .form-control:focus,
[data-theme="dark"] body.opc-university .form-select:focus,
[data-theme="dark"] body.udema-main .form-control,
[data-theme="dark"] body.udema-main .form-select,
[data-theme="dark"] .udema-main .form-control,
[data-theme="dark"] .udema-main .form-select {
  background: #12263a !important;
  color: #f4f7fb !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none;
}
[data-theme="dark"] body.opc-university .form-control::placeholder,
[data-theme="dark"] body.udema-main .form-control::placeholder,
[data-theme="dark"] .udema-main .form-control::placeholder,
[data-theme="dark"] body.opc-university textarea::placeholder {
  color: #9db0c4 !important;
  opacity: 1;
}
[data-theme="dark"] body.opc-university .form-text,
[data-theme="dark"] body.opc-university .form-text.text-muted,
[data-theme="dark"] body.udema-main .form-text,
[data-theme="dark"] .text-muted.form-text {
  color: #c5d0dc !important;
}
[data-theme="dark"] body.opc-university .form-control:disabled,
[data-theme="dark"] body.opc-university .form-control[readonly],
[data-theme="dark"] body.udema-main .form-control:disabled,
[data-theme="dark"] body.udema-main .form-control[readonly] {
  background: #0a1622 !important;
  color: #c5d0dc !important;
  opacity: 1;
}
[data-theme="dark"] body.opc-university .form-label,
[data-theme="dark"] body.udema-main .form-label,
[data-theme="dark"] .udema-main label {
  color: #e8eef5 !important;
}
[data-theme="dark"] body.opc-university .btn-outline-dark,
[data-theme="dark"] body.udema-main .btn-outline-dark,
[data-theme="dark"] .udema-main .btn-outline-dark {
  color: #f4f7fb !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
}
[data-theme="dark"] body.opc-university .btn-outline-dark:hover,
[data-theme="dark"] body.udema-main .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
[data-theme="dark"] body.opc-university .btn-dark,
[data-theme="dark"] body.udema-main .btn-dark {
  background: #c9a227 !important;
  border-color: #c9a227 !important;
  color: #102a43 !important;
}
[data-theme="dark"] body.opc-university .btn-outline-secondary,
[data-theme="dark"] body.udema-main .btn-outline-secondary {
  color: #e8eef5 !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
[data-theme="dark"] body.opc-university .btn-outline-light,
[data-theme="dark"] .accordion-button,
[data-theme="dark"] body.opc-university .accordion-button {
  background: #163049 !important;
  color: #f4f7fb !important;
}
[data-theme="dark"] body.opc-university .accordion-button:not(.collapsed) {
  background: #1a3a55 !important;
  color: #fff !important;
  box-shadow: none;
}
[data-theme="dark"] body.opc-university .accordion-body,
[data-theme="dark"] body.opc-university .accordion-item {
  background: #12263a !important;
  color: #e8eef5 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] body.opc-university .accordion-body .text-muted,
[data-theme="dark"] body.opc-university .accordion-body p,
[data-theme="dark"] body.opc-university .alert-light {
  color: #c5d0dc !important;
}
[data-theme="dark"] body.opc-university .alert-light,
[data-theme="dark"] body.opc-university .bg-white.border {
  background: #163049 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] body.opc-university .list-group-item,
[data-theme="dark"] .udema-course-section-card,
[data-theme="dark"] .udema-course-section .card,
[data-theme="dark"] .udema-course-section .card-body,
[data-theme="dark"] body.udema-main .card,
[data-theme="dark"] body.udema-main .card-body,
[data-theme="dark"] body.udema-main.bg-light,
[data-theme="dark"] .udema-main.bg-light {
  background: #163049 !important;
  color: #f4f7fb !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] body.udema-main .table,
[data-theme="dark"] body.udema-main .table > :not(caption) > * > * {
  color: #f4f7fb;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] body.udema-main .table-light,
[data-theme="dark"] body.udema-main thead.table-light th {
  background: #0e1c2b !important;
  color: #f4f7fb !important;
}
[data-theme="dark"] .learn-dash-kpi--warning,
[data-theme="dark"] .learn-dash-kpi--warning .text-dark,
[data-theme="dark"] .learn-dash-kpi--warning a {
  color: #102a43 !important;
}
[data-theme="dark"] .learn-dash-kpi--warning {
  background: #e0c36a !important;
}
[data-theme="dark"] .opc-aau-nav-bar,
[data-theme="dark"] .opc-aau-nav__link,
[data-theme="dark"] .opc-header__mobile-nav {
  background: #0e1c2b;
  color: #f4f7fb;
}
[data-theme="dark"] .opc-header__mobile-nav .opc-aau-nav__mobile-link--top,
[data-theme="dark"] .opc-header__mobile-nav .opc-aau-nav__trigger--mobile {
  color: #f4f7fb !important;
  -webkit-text-fill-color: #f4f7fb;
}
[data-theme="dark"] .dt-cert-preview {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #c5a037 !important;
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #c5a037 !important;
  max-width: 520px;
}
[data-theme="dark"] .dt-cert-preview .text-muted,
[data-theme="dark"] .dt-cert-preview__offered {
  color: #475569 !important;
}
.dt-cert-preview {
  background: #fff;
  border-color: #c5a037 !important;
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #c5a037 !important;
  max-width: 520px;
}
.dt-cert-preview__bar-dark {
  height: 4px;
  background: #0f172a;
  margin: -12px -12px 10px -12px;
  border-radius: 2px 2px 0 0;
}
.dt-cert-preview__bar-gold {
  height: 2px;
  background: #c5a037;
  margin: 0 -12px 12px -12px;
}
.dt-cert-preview__eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #64748b;
}
.dt-cert-preview__rule {
  width: 72px;
  height: 2px;
  background: #c5a037;
  margin: 8px auto;
}
.dt-cert-preview__name {
  font-size: 1.35rem;
  color: #0f172a !important;
}
.dt-cert-preview__course {
  font-size: 1.05rem;
  color: #1e3a5f !important;
}
.dt-cert-preview__meta-strong {
  color: #0f172a !important;
}
[data-theme="dark"] .dt-cert-preview__name,
[data-theme="dark"] .dt-cert-preview__course,
[data-theme="dark"] .dt-cert-preview__meta-strong {
  color: #0f172a !important;
}
[data-theme="dark"] .review-card .fw-semibold,
[data-theme="dark"] .list-group-item .fw-semibold,
[data-theme="dark"] body.opc-university main .card .fw-semibold,
[data-theme="dark"] body.opc-university main .card .fw-bold,
[data-theme="dark"] body.udema-main .card .fw-semibold,
[data-theme="dark"] body.udema-main .card .fw-bold {
  color: #f4f7fb !important;
}
/* Certificate preview stays paper-white — don't force light text on it. */
[data-theme="dark"] .dt-cert-preview .fw-semibold,
[data-theme="dark"] .dt-cert-preview .fw-bold,
[data-theme="dark"] body.opc-university main .dt-cert-preview .fw-semibold,
[data-theme="dark"] body.opc-university main .dt-cert-preview .fw-bold {
  color: #0f172a !important;
}
[data-theme="dark"] body.opc-university main .card.bg-white,
[data-theme="dark"] body.udema-main .card.bg-white {
  background: #163049 !important;
}
/* Review rows / Bootstrap “subtle” chips were left near-white with light text. */
[data-theme="dark"] body.opc-university .bg-light-subtle,
[data-theme="dark"] body.udema-main .bg-light-subtle,
[data-theme="dark"] .udema-course-section .bg-light-subtle,
[data-theme="dark"] .udema-course-section .border.rounded-3.p-3 {
  background: #12263a !important;
  color: #e8eef5 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] body.opc-university .bg-light-subtle .text-muted,
[data-theme="dark"] .udema-course-section .bg-light-subtle .text-muted,
[data-theme="dark"] .udema-course-section .border.rounded-3.p-3 .text-muted,
[data-theme="dark"] .opc-review-item__body,
[data-theme="dark"] .opc-review-item__name {
  color: #e8eef5 !important;
}
/* Credentials / staff tables on public_base (opc-university), not only udema. */
[data-theme="dark"] body.opc-university main .table,
[data-theme="dark"] body.opc-university main .table > :not(caption) > * > * {
  color: #f4f7fb !important;
  background-color: #163049 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] body.opc-university main .table-light,
[data-theme="dark"] body.opc-university main thead.table-light th,
[data-theme="dark"] body.opc-university main .table thead th {
  background: #0e1c2b !important;
  color: #f4f7fb !important;
}
[data-theme="dark"] body.opc-university main .table code,
[data-theme="dark"] body.opc-university main .table .text-muted {
  color: #c5d0dc !important;
}
/* Grey outline buttons: gold like other dark CTAs (readable on navy or leftover white). */
[data-theme="dark"] body.opc-university .btn-outline-secondary,
[data-theme="dark"] body.udema-main .btn-outline-secondary {
  color: #102a43 !important;
  background: #c9a227 !important;
  border-color: #c9a227 !important;
}
[data-theme="dark"] body.opc-university .btn-outline-secondary:hover,
[data-theme="dark"] body.udema-main .btn-outline-secondary:hover {
  background: #ddb83a !important;
  border-color: #ddb83a !important;
  color: #102a43 !important;
}
[data-theme="dark"] .opc-header-utils .btn-outline-secondary,
[data-theme="dark"] .opc-header__mobile-lang .btn-outline-secondary {
  color: #f4f7fb !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
/* Learn dashboard sticky tabs: app.css forces dark text; bar becomes navy in dark mode. */
[data-theme="dark"] .learn-dashboard-sticky-nav,
[data-theme="dark"] .learn-dashboard-sticky-nav.bg-white {
  background: #0e1c2b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .learn-dash-tabs .learn-dash-tab,
[data-theme="dark"] .learn-dash-tabs .learn-dash-tab--signout {
  color: #f4f7fb !important;
  background: rgba(201, 162, 39, 0.18) !important;
  border-color: rgba(201, 162, 39, 0.45) !important;
}
[data-theme="dark"] .learn-dash-tabs .learn-dash-tab:hover,
[data-theme="dark"] .learn-dash-tabs .learn-dash-tab--signout:hover {
  background: rgba(201, 162, 39, 0.32) !important;
  color: #fff !important;
}
[data-theme="dark"] .learn-dash-tab__label {
  color: inherit !important;
}
[data-theme="dark"] .opc-header__mobile-nav .opc-mobile-account-menu a,
[data-theme="dark"] .opc-header__mobile-nav a.text-dark {
  color: #f4f7fb !important;
}

.opc-ai { position: fixed; right: 16px; bottom: 20px; z-index: 3000; pointer-events: none; }
.opc-ai > * { pointer-events: auto; }
.opc-ai__fab {
  width: 56px; height: 56px; border: 3px solid #fff; border-radius: 50%;
  /* Gold fill stays visible on white pages and on the navy footer. */
  background: #f4c430; color: #0f2744; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 0 0 2px #0f2744, 0 10px 24px rgba(0,0,0,.4);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 3001;
}
.opc-ai__fab:hover { background: #ffd24a; }
.opc-ai__panel {
  position: fixed; right: 16px; bottom: 88px; z-index: 3000;
  width: min(420px, calc(100vw - 24px));
  height: min(660px, calc(100vh - 120px));
  background: #0f1318; color: #e8eaed;
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  display: flex; flex-direction: column; overflow: hidden;
}
.opc-ai__panel[hidden] { display: none !important; }
.opc-ai__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: #0f2744; color: #fff; flex-shrink: 0;
}
.opc-ai__head-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.opc-ai__lang, .opc-ai__voice {
  background: #151920; color: #e8eaed; border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; font-size: 12px; padding: 4px 8px; max-width: 120px;
}
.opc-ai__reset, .opc-ai__close {
  border: 0; background: transparent; color: #f4c430; cursor: pointer; font-weight: 700;
}
.opc-ai__close { color: #fff; font-size: 22px; line-height: 1; }
.opc-ai__body {
  flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 12px 12px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.opc-ai__hint { font-size: 13px; color: #aeb4bd; margin: 0; flex-shrink: 0; }
.opc-ai__chips { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.opc-ai__chip {
  border: 1px solid rgba(255,255,255,.16); background: #151920; color: #e8eaed;
  border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; text-decoration: none;
}
.opc-ai__log { flex: 1 1 auto; min-height: 80px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.opc-ai__row { display: flex; flex-direction: column; gap: 4px; max-width: 92%; }
.opc-ai__row--user { align-self: flex-end; align-items: flex-end; }
.opc-ai__bubble { margin: 0; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.opc-ai__row--user .opc-ai__bubble { background: #1d81c2; color: #fff; border-bottom-right-radius: 4px; }
.opc-ai__row:not(.opc-ai__row--user) .opc-ai__bubble { background: #1b212b; color: #e8eaed; border-bottom-left-radius: 4px; }
.opc-ai__bubble--hits {
  display: flex !important; flex-direction: column !important; gap: 8px; white-space: normal !important;
}
.opc-ai__bubble--wait { display: flex; align-items: center; gap: 8px; opacity: .9; }
.opc-ai__typing {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2); border-top-color: #f4c430;
  animation: opc-ai-spin .7s linear infinite;
}
@keyframes opc-ai-spin { to { transform: rotate(360deg); } }
.opc-ai__hit {
  display: block !important; width: 100%; box-sizing: border-box;
  color: #f4c430 !important; font-weight: 600; text-decoration: none !important; line-height: 1.4;
  padding: 8px 10px; border-radius: 10px; background: rgba(244,196,48,.06);
  border: 1px solid rgba(244,196,48,.22);
}
.opc-ai__hit:hover { background: rgba(244,196,48,.14); color: #ffe08a !important; }
.opc-ai__links {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: center !important; justify-content: flex-start; gap: 8px !important;
  width: max-content; max-width: 100%; margin-top: 6px;
}
.opc-ai__row--user .opc-ai__links { align-self: flex-end; }
.opc-ai__row:not(.opc-ai__row--user) .opc-ai__links { align-self: flex-start; }
.opc-ai__open, .opc-ai__speak {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: auto !important; max-width: none !important; flex: 0 0 auto !important;
  border: 1px solid rgba(244,196,48,.55); background: rgba(244,196,48,.1); color: #f4c430;
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer;
  line-height: 1.2; white-space: nowrap !important;
}
.opc-ai__speak { background: transparent; }
.opc-ai__form {
  display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.1);
  background: #0f1318; position: relative; flex-shrink: 0; align-items: center;
}
.opc-ai__form input[type="search"],
.opc-ai__form input[type="text"] {
  flex: 1; min-width: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: #151920; color: #e8eaed; padding: 8px 12px;
}
.opc-ai__ico {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: #151920; color: #e8eaed; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; padding: 0; line-height: 1;
}
.opc-ai__ico:hover { border-color: rgba(244,196,48,.55); color: #f4c430; }
.opc-ai__ico.is-on { background: #dc2626; border-color: #dc2626; color: #fff; }
.opc-ai__form button[type="submit"] {
  flex-shrink: 0; border: 0; border-radius: 999px; background: #f4c430; color: #111;
  font-weight: 700; padding: 8px 14px; cursor: pointer;
}
.opc-ai__note {
  font-size: 11px; color: #8b929c; padding: 0 12px 6px; background: #0f1318; flex-shrink: 0; min-height: 0;
}
.opc-ai__suggest {
  position: absolute; left: 12px; right: 12px; bottom: 62px; z-index: 2;
  background: #151920; border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  max-height: 180px; overflow: auto;
}
.opc-ai__suggest[hidden] { display: none !important; }
.opc-ai__suggest button {
  display: block; width: 100%; text-align: left; background: transparent; color: #e8eaed;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px 10px; cursor: pointer;
}
@media (max-width: 576px) {
  .opc-ai { right: 12px; bottom: 16px; }
  .opc-ai__panel { right: 8px; left: 8px; width: auto; bottom: 80px; height: min(70vh, calc(100vh - 100px)); }
  .opc-ai__form button[type="submit"] { padding: 8px 10px; }
}
