:root {
  --enoa-bg: #020617;
  --enoa-panel: #0b1220;
  --enoa-panel-soft: #0f172a;
  --enoa-line: rgba(148, 163, 184, .16);
  --enoa-brand: #0ea5e9;
  --enoa-brand-light: #38bdf8;
}

[data-theme="gitea-dark"],
[data-theme="gitea-auto"] {
  --is-dark-theme: true;
  --color-primary: #0ea5e9;
  --color-primary-contrast: #ffffff;
  --color-primary-dark-1: #0284c7;
  --color-primary-dark-2: #0369a1;
  --color-primary-light-1: #38bdf8;
  --color-primary-light-2: #7dd3fc;
  --color-body: #020617;
  --color-nav-bg: #060b16;
  --color-nav-text: #cbd5e1;
  --color-nav-hover-bg: #0f172a;
  --color-box-header: #0b1220;
  --color-box-body: #0b1220;
  --color-box-body-highlight: #111c31;
  --color-text-dark: #f8fafc;
  --color-text: #e2e8f0;
  --color-text-light: #cbd5e1;
  --color-text-light-1: #94a3b8;
  --color-text-light-2: #64748b;
  --color-text-light-3: #475569;
  --color-menu: #0b1220;
  --color-card: #0b1220;
  --color-input-text: #f8fafc;
  --color-input-background: #07101f;
  --color-input-toggle-background: #1e293b;
  --color-input-border: #334155;
  --color-hover: rgba(148, 163, 184, .10);
  --color-hover-opaque: #162033;
  --color-active: rgba(56, 189, 248, .16);
  --color-light: rgba(148, 163, 184, .08);
  --color-light-border: rgba(148, 163, 184, .18);
  --color-shadow: rgba(0, 0, 0, .36);
  --color-shadow-opaque: #000814;
  --color-secondary: #0f172a;
  --color-secondary-dark-1: #1e293b;
  --color-secondary-alpha-60: rgba(15, 23, 42, .60);
  --color-secondary-alpha-70: rgba(15, 23, 42, .70);
  --color-secondary-alpha-80: rgba(15, 23, 42, .80);
  --color-secondary-alpha-90: rgba(15, 23, 42, .90);
}

body {
  color: #e2e8f0 !important;
  background:
    radial-gradient(circle at 12% -12%, rgba(14, 165, 233, .13), transparent 34rem),
    var(--enoa-bg) !important;
}

.home .hero.ui.header,
.home .hero h1,
.home .hero h2,
.home .ui.header.title,
.home .ui.header.title + h2 {
  color: #f8fafc !important;
}

.home p.large {
  color: #94a3b8 !important;
}

.home .hero.ui.header svg {
  color: var(--enoa-brand-light) !important;
}

.home .logo {
  filter: drop-shadow(0 18px 38px rgba(14, 165, 233, .16));
}

.enoa-home {
  padding: 0 24px 72px !important;
}

.enoa-home-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding-top: clamp(58px, 8vw, 104px);
}

.enoa-home-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.enoa-home-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .10);
}

.enoa-home-hero {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.enoa-home-logo {
  width: 148px;
  height: 148px;
  filter: drop-shadow(0 22px 48px rgba(14, 165, 233, .18));
}

.enoa-home h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(52px, 8vw, 88px);
  line-height: .95;
  letter-spacing: -.06em;
}

.enoa-home h1 span { color: #38bdf8; }

.enoa-home-hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: #94a3b8;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.enoa-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.enoa-home-actions .ui.button {
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 11px !important;
  color: #e2e8f0 !important;
  background: #0f172a !important;
}

.enoa-home-actions .ui.primary.button {
  border-color: rgba(56, 189, 248, .4) !important;
  color: white !important;
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
}

.enoa-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
}

.enoa-home-grid article {
  min-height: 220px;
  padding: 27px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 18px;
  background: rgba(15, 23, 42, .72);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.enoa-home-index {
  color: #38bdf8;
  font: 800 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
}

.enoa-home-grid h2 {
  margin: 38px 0 12px;
  color: #f8fafc;
  font-size: 21px;
  letter-spacing: -.025em;
}

.enoa-home-grid p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.65;
}

@media (max-width: 780px) {
  .enoa-home-hero { grid-template-columns: 1fr; gap: 24px; }
  .enoa-home-logo { width: 104px; height: 104px; }
  .enoa-home-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .enoa-home-grid article { min-height: auto; }
}

@media (max-width: 480px) {
  .enoa-home { padding-inline: 14px !important; }
  .enoa-home-actions .ui.button { width: 100%; margin: 0 !important; }
}

.full.height > .following.bar,
.ui.top.attached.header,
.ui.attached.segment,
.ui.segment,
.ui.menu,
.repository.file.list {
  border-color: var(--enoa-line) !important;
}

.full.height > .following.bar {
  background: rgba(6, 11, 22, .92) !important;
  backdrop-filter: blur(15px);
}

.ui.primary.button,
.ui.primary.buttons .button {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .16) !important;
}

.ui.primary.button:hover,
.ui.primary.buttons .button:hover {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important;
}

a,
.ui.breadcrumb a,
.ui.secondary.menu .active.item {
  --color-primary: var(--enoa-brand);
}

.ui.green.label,
.ui.green.labels .label {
  background-color: #059669 !important;
}

.repository .repo-header,
.page-content.repository,
.dashboard.feeds {
  background-color: transparent !important;
}

footer.page-footer {
  border-top: 1px solid var(--enoa-line);
  background: rgba(2, 6, 23, .78) !important;
}

footer.page-footer::before {
  content: "EnoaSoft · Core Systems";
  margin-right: 1rem;
  color: #64748b;
  font-size: .85rem;
}

::selection {
  color: white;
  background: rgba(14, 165, 233, .42);
}
