:root {
  --de24-bg: #06182c;
  --de24-side: #0a2340;
  --de24-card: #164370;
  --de24-hover: #1a4f81;
  --de24-accent: #aec30c;
  --de24-accent-strong: #c0d520;
  --de24-text: #f8fafc;
  --de24-muted: #a9b7c9;
  --de24-line: rgba(198, 222, 238, .18);
  --de24-danger: #e05a67;
  --de24-warning: #f2d15d;
  --de24-radius: 8px;
  --bg: var(--de24-bg);
  --side: var(--de24-side);
  --panel: var(--de24-card);
  --field: #071d30;
  --accent: var(--de24-accent);
  --cyan: var(--de24-accent);
  --green: var(--de24-accent);
  --orange: var(--de24-accent);
  --text: var(--de24-text);
  --muted: var(--de24-muted);
  --soft: rgba(226, 235, 242, .84);
  --line: var(--de24-line);
}

html { color-scheme: dark; }
body { background-color: var(--de24-bg); color: var(--de24-text); font-family: "DM Sans", "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font-family: inherit; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid var(--de24-accent); outline-offset: 2px; }
:where(button, .button):not(.secondary):not(.danger) {
  background: var(--de24-accent);
  color: #071523;
  border-color: var(--de24-accent);
}
:where(button, .button):not(.secondary):not(.danger):hover { background: var(--de24-accent-strong); }
:where(input, select, textarea) {
  background-color: #071d30;
  border-color: var(--de24-line);
  color: var(--de24-text);
}
:where(.sidebar, aside.sidebar) { background: var(--de24-side); border-color: var(--de24-line); }
:where(.panel, .card, .toolbar, .project-card, .report-card) {
  background-color: var(--de24-card);
  border-color: var(--de24-line);
}
:where(.sidebar a, .sidebar button, nav a, nav button).active,
:where(.sidebar a, .sidebar button, nav a, nav button)[aria-current="page"] {
  border-color: var(--de24-accent);
  color: var(--de24-text);
}
:where(h1, h2, h3, .accent, .section-title) { color: var(--de24-text); }
.de24-status, .notice { border-color: rgba(183,214,0,.52); background: rgba(183,214,0,.08); }
.de24-auth-state { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--de24-line); border-radius: var(--de24-radius); background: rgba(11,42,67,.82); color: var(--de24-muted); font-size: .9rem; }
.de24-auth-state strong { color: var(--de24-text); }
#de24-build-info { border-color: var(--de24-line) !important; background: rgba(3,17,30,.88) !important; color: rgba(247,249,251,.78) !important; }

/* The public entry and sign-in share the homepage branding without changing role workflows. */
body.de24-portal-entry, body.de24-portal-auth { background: var(--de24-bg); }
body.de24-portal-entry::before {
  background: linear-gradient(90deg, rgba(6,24,44,.88), rgba(6,24,44,.24)), url("../08_branding/landing/de24-homepage-hero.png") center / cover no-repeat;
}
body.de24-portal-entry::after, body.de24-portal-auth::after { content: none; }
body.de24-portal-auth::before { background: linear-gradient(180deg, #06182c, #11355e 60%, #06182c); }
.de24-portal-entry main { width: min(1200px, 100%); min-height: 100svh; padding: 20px 24px; gap: 32px; }
.de24-portal-entry .landing-nav { justify-content: flex-start; min-height: 100px; border-bottom: 1px solid var(--de24-line); padding-bottom: 16px; }
.de24-portal-entry .brand-logo { width: 300px; max-width: 100%; height: 100px; object-fit: contain; filter: none; }
.de24-portal-entry .landing-main { justify-content: center; gap: 32px; padding: 40px 0; }
.de24-portal-entry .hero-layout { display: block; margin: 0; }
.de24-portal-entry .hero-visual { display: none; }
.de24-portal-entry .landing-head { max-width: 680px; gap: 20px; }
.de24-portal-entry .landing-head h1 { font: 800 1.12 "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif; font-size: 56px; letter-spacing: 0; overflow-wrap: anywhere; text-shadow: none; }
.de24-portal-entry .landing-claim { font-size: 24px; line-height: 1.45; text-shadow: none; }
.de24-portal-entry .landing-copy { font-size: 17px; color: #e0e8f0; }
.de24-portal-entry .hero-line { background: var(--de24-accent); width: 72px; height: 3px; }
.de24-portal-entry .portal-grid { display: block; margin: 0; padding: 0; }
.de24-portal-entry .portal-card { display: inline-flex; gap: 16px; min-height: 80px; max-width: 100%; padding: 16px 24px; border: 1px solid var(--de24-accent); border-radius: 8px; background: var(--de24-accent); color: #06182c; box-shadow: none; }
.de24-portal-entry .portal-card:hover { background: var(--de24-accent-strong); transform: none; box-shadow: none; }
.de24-portal-entry .portal-card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.de24-portal-entry .portal-card strong { font-size: 22px; color: #06182c; }
.de24-portal-entry .portal-card span { font-size: 15px; color: #06182c; }
.de24-portal-entry .portal-icon { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.de24-portal-entry .portal-icon svg { width: 32px; height: 32px; }
.de24-portal-entry .landing-footer { justify-content: space-between; color: #d4deeb; }
.de24-portal-auth main { width: min(1200px, 100%); padding: 32px 20px; }
.de24-portal-auth .auth-panel { border: 1px solid var(--de24-line); border-radius: 8px; background: #0a2340; padding: 28px; box-shadow: none; }
.de24-portal-auth .auth-logo { width: 360px; max-width: 100%; height: auto; aspect-ratio: 3 / 1; max-height: none; object-fit: contain; filter: none; }
.de24-portal-auth .auth-head h1 { color: var(--de24-text); font-size: 26px; letter-spacing: 0; }
.de24-portal-auth .portal-lead { font-size: 16px; }
.de24-portal-auth .auth-panel button { background: var(--de24-accent); color: #06182c; min-height: 44px; white-space: normal; }
.de24-portal-auth .auth-panel button.secondary, .de24-portal-auth .auth-panel .password-toggle { background: transparent; color: var(--de24-text); border: 1px solid var(--de24-line); }
.de24-portal-auth .auth-panel button:hover { background: var(--de24-accent-strong); color: #06182c; }
.de24-portal-auth .auth-panel input { background: #06182c; color: var(--de24-text); border-color: #45617c; }
.de24-portal-entry #de24-build-info, .de24-portal-auth #de24-build-info { position: static !important; width: fit-content; max-width: calc(100% - 24px); margin: 12px auto; white-space: normal !important; text-align: center; }
@media (max-width: 600px) {
  .de24-portal-entry main { padding: 16px; gap: 20px; }
  .de24-portal-entry .landing-head h1 { font-size: 36px; }
  .de24-portal-entry .landing-claim { font-size: 20px; }
  .de24-portal-entry .landing-main { padding: 20px 0; }
  .de24-portal-entry .portal-card { width: 100%; padding: 16px; text-align: left; }
  .de24-portal-entry .landing-footer { font-size: 13px; }
  .de24-portal-auth main { padding: 16px 12px; }
  .de24-portal-auth .auth-panel { padding: 20px 16px; }
}
