/* GENIUS AI: palette and the pieces the genogx.com layout does not have
   (landing mock-ups, sign-in page, admin page). Loaded after site.css. */
:root {
  /* GENIUS amber (the app's accent #D97706) in the place of the LIMS orange */
  --o-50: #fff7ed;
  --o-100: #ffedd5;
  --o-200: #fed7aa;
  --o-300: #fdba74;
  --o-400: #f59e0b;
  --o-500: #d97706;
  --o-600: #b45309;
  --o-700: #92400e;
  --o-ink: #b45309;
  --peach: #fcd34d;
  --blue: #2563eb;
  --blue-soft: #60a5fa;
  --night: #0f1115;
  --night-2: #151a24;
  --night-ink: #e7e5e4;
  --night-muted: #a8a29e;
  --bad: #b91c1c;
  --warn: #b45309;
}
@media (prefers-color-scheme: dark) {
  :root { --o-50: #2a1f10; --o-100: #3a2a12; --o-ink: #fbbf24; --bad: #f87171; }
}
.hero { background:
    radial-gradient(900px 560px at 82% 18%, rgba(217, 119, 6, 0.28), transparent 62%),
    radial-gradient(700px 520px at 6% 96%, rgba(37, 99, 235, 0.16), transparent 60%),
    linear-gradient(160deg, #0b0d12 0%, var(--night) 40%, var(--night-2) 100%); }
.sec.night { background: radial-gradient(800px 500px at 90% 10%, rgba(217, 119, 6, 0.2), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(37, 99, 235, 0.14), transparent 60%), linear-gradient(160deg, #0b0d12, var(--night-2)); }
.hero h1 em { background: linear-gradient(90deg, var(--peach), var(--o-400) 45%, var(--blue-soft)); -webkit-background-clip: text; background-clip: text; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.chips .cio { background: #0891b2; }
.cta-act { display: flex; justify-content: flex-end; align-items: center; }
.head-act .btn:not(.ghost) { padding: 10px 18px; }

/* run review mock-up beside "Run QC" */
.panel-mock { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 24px; }
.pm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pm-head b { color: var(--heading); font-size: 17px; }
.pm-head span { color: var(--muted); font-size: 13px; }
.pm-verdict { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; }
.pm-row { display: grid; grid-template-columns: 150px 1fr 96px; align-items: center; gap: 14px; font-size: 14px; }
.pm-row span { color: var(--heading); font-weight: 500; }
.pm-row em { font-style: normal; font-size: 12.5px; color: var(--muted); text-align: right; }
.bar { display: block; height: 10px; border-radius: 99px; background: var(--panel); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: #10b981; }
.bar.warn::after { background: var(--o-400); }
.bar.hot::after { background: linear-gradient(90deg, var(--o-400), #dc2626); }
.pm-find { background: var(--o-50); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.pm-find b { color: var(--o-ink); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pm-find p { margin-top: 4px; color: var(--ink); }

/* library journey beside "Libraries" */
.journey { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 26px 28px; }
.journey ol { list-style: none; counter-reset: j; display: flex; flex-direction: column; gap: 0; }
.journey li { counter-increment: j; position: relative; padding: 0 0 22px 52px; display: flex; flex-direction: column; }
.journey li:last-child { padding-bottom: 0; }
.journey li::before { content: counter(j); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--o-500), var(--blue)); }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--line-strong); }
.journey b { color: var(--heading); font-size: 16px; }
.journey span { color: var(--muted); font-size: 14px; font-family: var(--mono); }

.modgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.modgrid h3 { font-size: 18px; margin: 0 0 8px; }
@media (max-width: 1080px) { .modgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .modgrid { grid-template-columns: minmax(0, 1fr); } .pm-row { grid-template-columns: 110px 1fr 74px; } .cta-act { justify-content: flex-start; } }

/* ------------------------------------------------------------------ sign-in page */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--page); }
.auth-side { position: relative; overflow: hidden; color: var(--night-ink); padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(700px 480px at 85% 10%, rgba(217, 119, 6, 0.3), transparent 62%), radial-gradient(600px 420px at 0% 100%, rgba(37, 99, 235, 0.18), transparent 60%), linear-gradient(160deg, #0b0d12, var(--night-2)); }
.auth-side .brand { color: #fff; }
.auth-side h1 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; }
.auth-side h1 em { font-style: normal; background: linear-gradient(90deg, var(--peach), var(--o-400) 45%, var(--blue-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-side p { color: var(--night-muted); max-width: 46ch; }
.auth-side .trust { margin-top: 22px; }
.auth-side small { color: var(--night-muted); font-size: 12.5px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 28px; margin-bottom: 8px; }
.auth-card section > p { color: var(--muted); margin-bottom: 26px; }
.fieldset { display: flex; flex-direction: column; gap: 16px; }
.fl { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--heading); }
.fl input, .fl select { font: 400 15px/1.4 var(--font); color: var(--heading); background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; width: 100%; }
.fl input:focus, .fl select:focus { outline: none; border-color: var(--o-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--o-400) 22%, transparent); }
.fl .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.auth-card .btn { width: 100%; padding: 14px 20px; font-size: 15px; margin-top: 6px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.msg { font-size: 14px; border-radius: 8px; padding: 10px 12px; display: none; }
.msg.err { display: block; background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); }
.msg.ok { display: block; background: color-mix(in srgb, #10b981 12%, transparent); color: var(--ok); }
.auth-foot { margin-top: 22px; font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-foot a { text-decoration: none; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .auth-page { grid-template-columns: minmax(0, 1fr); } .auth-side { padding: 28px 20px; } .auth-side .hide-sm { display: none; } }

/* ------------------------------------------------------------------ admin page */
.adm { min-height: 100vh; background: var(--page-alt); }
.adm-head { background: linear-gradient(160deg, #0b0d12, var(--night-2)); color: #fff; }
.adm-head .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.adm-head .brand { color: #fff; }
.adm-head nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.adm-head nav a, .adm-head nav button { color: rgba(255,255,255,.88); text-decoration: none; font: 500 14px/1 var(--font); padding: 9px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; }
.adm-head nav a:hover, .adm-head nav button:hover { background: rgba(255,255,255,.1); color: #fff; }
.adm-head .who { font-size: 13px; color: var(--night-muted); margin-right: 6px; }
.adm-main { padding: 32px 0 64px; }
.adm-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-title h1 { font-size: 30px; }
.adm-title p { color: var(--muted); margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.kpi b { display: block; font-size: 28px; line-height: 1.1; color: var(--heading); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.live b { color: #059669; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 22px; overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h h2 { font-size: 18px; }
.panel-h p { font-size: 13px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; background: var(--panel); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl td.act { text-align: right; white-space: nowrap; }
.tbl .sub { display: block; color: var(--muted); font-size: 12.5px; }
.tbl tr.off td { opacity: .55; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--panel); color: var(--ink); white-space: nowrap; }
.pill.admin { background: var(--o-50); color: var(--o-ink); }
.pill.on { background: color-mix(in srgb, #10b981 14%, transparent); color: #047857; }
.pill.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.pill.idle::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a8a29e; }
.pill.off { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); }
.pill.me { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.empty { padding: 26px 20px; color: var(--muted); font-size: 14px; }
dialog.dlg { border: 0; border-radius: 16px; padding: 0; width: min(94vw, 480px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); background: var(--card); color: var(--ink); }
dialog.dlg::backdrop { background: rgba(10, 12, 18, .55); }
.dlg form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dlg h3 { font-size: 20px; }
.dlg .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.dlg .check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 60; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.mono { font-family: var(--mono); font-size: 12.5px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-head .who { display: none; } }
