/* Premier League app-page inspiration: bold type, rounded panels, pill controls
 and generous spacing. Colours and fills are inherited from the existing BioIDz theme. */
body { font-size:15px; }
h1,h2,h3,.display,.drawer-brand,.result-name,.rail-group-summary b {
 font-family:'IBM Plex Sans',Arial,sans-serif; font-weight:700; letter-spacing:-.025em;
}
.product-lockup .product-name, header.top .product-name {
 font-family:'IBM Plex Sans',Arial,sans-serif; font-weight:700; letter-spacing:-.04em;
}
header.top, html[data-theme="light"] header.top {
 border-bottom:1px solid var(--line);
}
header.top::after { display:none; }
.top-inner { max-width:1360px; }
header.top .badge { border-radius:999px; font-family:'IBM Plex Sans',Arial,sans-serif; font-weight:500; letter-spacing:0; }
button.primary,button.ghost,.theme-toggle,.nav-fab { border-radius:999px; font-weight:700; }
button.primary { min-height:48px; }
button.ghost { min-height:46px; padding-inline:20px; }
:focus-visible { outline:3px solid var(--brand); outline-offset:4px; }
.layout { max-width:1360px; gap:28px; }
.rail { border:1px solid var(--line); border-radius:20px; padding:18px; }
.nav-links { gap:8px; }
.nav-link { font-weight:600; border-radius:999px; min-height:48px; }
.nav-icon { stroke-width:2; }
.icon-button { border-radius:50%; }
.rail-step .num { font-family:'IBM Plex Sans',Arial,sans-serif; font-weight:700; border-radius:50%; }
section h2 { font-size:clamp(23px,3vw,30px); }
section .head { margin-bottom:20px; }
.disclaimer { border-radius:16px; padding:16px 18px; margin-bottom:24px; }
.disclaimer .mark { font-family:'IBM Plex Sans',Arial,sans-serif; }

/* A bold editorial opening, using original BioIDz specimen artwork. */
.home-hero { position:relative; isolation:isolate; border:1px solid var(--pos-line); border-radius:24px; padding:30px; }

.home-eyebrow { font:600 11px/1.5 'IBM Plex Sans',Arial,sans-serif; letter-spacing:.05em; }
.home-status-dot { display:none; }
.home-hero-content { grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr); gap:18px; margin:24px 0; }
.home-hero h2 { font:700 clamp(34px,4vw,54px)/1.05 'IBM Plex Sans',Arial,sans-serif; letter-spacing:-.045em; margin-bottom:18px; }
.home-hero-content p { font-size:15px; line-height:1.65; max-width:440px; }
.home-specimen { height:210px; }
.home-specimen img { width:185px; height:185px; transform:rotate(-8deg); }
.specimen-orbit { width:186px; height:186px; border:1px solid var(--pos-line); }
.specimen-orbit::before { border-style:solid; }
.specimen-label { font-family:'IBM Plex Sans',Arial,sans-serif; font-weight:600; }
.home-start { min-height:54px; border-radius:999px; font-size:16px; justify-content:flex-start; padding-inline:24px; }
.home-start > span:last-child { display:none; }
.home-resume { font-size:14px; font-weight:600; border-radius:999px; padding:10px 16px; text-decoration:underline; text-underline-offset:4px; }
.home-stats { margin:18px 0 8px; padding:22px 6px; border:1px solid var(--line); border-radius:20px; }
.home-stats strong { font:700 34px/1 'IBM Plex Sans',Arial,sans-serif; letter-spacing:-.04em; }
.home-stats span { font-size:12px; font-weight:500; }
.home-section-head { margin-top:28px; }
.home-section-head h3 { font-size:22px; }
.home-section-head > span { font-family:'IBM Plex Sans',Arial,sans-serif; font-size:10px; font-weight:600; }
.home-shortcuts { gap:14px; }
.home-shortcut { border-radius:20px; border:1px solid var(--line); padding:22px; align-items:flex-start; }
.home-shortcut-icon { border-radius:50%; width:44px; height:44px; }
.home-shortcut strong { font-size:17px; line-height:1.2; }
.home-shortcut small { font-size:13px; line-height:1.5; }
.home-arrow { display:none; }
.home-text-button { font-weight:600; font-size:13px; text-decoration:underline; text-underline-offset:4px; }
.home-guide { border-radius:20px; padding:24px; gap:22px; }
.home-guide li > span { font:700 18px/1 'IBM Plex Sans',Arial,sans-serif; border-radius:50%; width:42px; height:42px; }
.home-guide strong { font-size:16px; }
.home-guide p { font-size:13px; }
.home-recent { border-radius:20px; }
.home-recent-row { min-height:76px; }
.home-recent-row strong { font:700 16px/1.3 'IBM Plex Sans',Arial,sans-serif; }
.home-recent-match { font:700 13px 'IBM Plex Sans',Arial,sans-serif; padding:8px 10px; border-radius:999px; white-space:nowrap; }
.home-note { border-radius:16px; padding:16px; }

/* Reference panels use the same rounded card rhythm. */
.search-field { border-radius:999px; padding-inline:18px; min-height:52px; }
.search-field input { font-size:16px; }
.groups { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.group-card { display:flex; flex-direction:column; align-items:flex-start; position:relative; overflow:hidden; padding:22px; border-radius:20px; gap:12px; min-height:240px; }
.group-card::after { content:''; position:absolute; width:110px; height:110px; right:-26px; top:-25px; border:1px solid var(--line); border-radius:50%; pointer-events:none; }
.group-card:hover { transform:translateY(-2px); }
.group-card .card-icon { width:84px; height:84px; position:relative; z-index:1; }
.group-card:hover .card-icon { transform:scale(1.08); }
.group-card h3 { font-size:20px; line-height:1.15; position:relative; z-index:1; }
.group-card p { font-size:13px; line-height:1.5; }
.group-card .count { width:fit-content; border:1px solid var(--line); padding:6px 10px; border-radius:999px; font:600 12px/1.3 'IBM Plex Sans',Arial,sans-serif; }
.panel,.technical-reference { border-radius:20px; }
.technical-reference > summary { font-weight:600; }
.toggle button { min-height:44px; border-radius:10px; font-weight:600; }
.toggle .dropdown-wrap select { min-height:44px; border-radius:10px; }
.test-row .label { font-weight:500; }
.actions { gap:10px; }
.result-card { border-radius:20px; padding:22px; }
.result-name { font-size:22px; }
.result-rank { font-family:'IBM Plex Sans',Arial,sans-serif; font-weight:600; }
.donut { border-radius:50%; }
.log-table th { font:600 11px 'IBM Plex Sans',Arial,sans-serif; letter-spacing:.02em; }
.log-table td { font-size:14px; }
.nav-dialog { border-radius:24px; padding:26px; }
.dialog-heading h2 { font-size:26px; }
.nav-dialog .nav-link { border-bottom:1px solid var(--line); border-radius:12px; }
.cloud-panel { border-radius:20px; padding:22px; }
.cloud-panel h3 { font-size:22px; }
.cloud-panel button { border-radius:999px; font-weight:600; }
.cloud-panel input,.cloud-panel select { border-radius:12px; }
.cloud-panel .cloud-record { border-radius:16px; padding:16px; }
.cloud-record strong { font-size:16px; }

/* Account entry shares the visual language; the original mark stays untouched. */
.side .side-mid h1,html[data-theme="light"] .side .side-mid h1 { font:700 clamp(32px,3vw,48px)/1.08 'IBM Plex Sans',Arial,sans-serif; letter-spacing:-.04em; }
.side .side-mid p { font-size:16px; }
.side-mid .eyebrow { font-family:'IBM Plex Sans',Arial,sans-serif; font-weight:600; }
.side .plate-cell,html[data-theme="light"] .side .plate-cell { border-radius:16px; }
.side .plate-cell .v,html[data-theme="light"] .side .plate-cell .v { font:700 22px 'IBM Plex Sans',Arial,sans-serif; }
.card { border-radius:24px; }
.card-head h2 { font:700 30px/1.15 'IBM Plex Sans',Arial,sans-serif; letter-spacing:-.035em; }
.card-head p { font-size:14px; line-height:1.6; }
.tabs { padding:5px; border-radius:999px; }
.tab { border-radius:999px; font-weight:600; min-height:44px; }
.field input,.field select { border-radius:12px; min-height:50px; font-size:16px; }
.field label { font-weight:600; }
.pw-wrap .pw-toggle { border-radius:999px; }
button.guest { border-radius:999px; min-height:48px; font-weight:600; }
.banner { border-radius:14px; }
.strength i { border-radius:999px; }
.auth-mobile-brand .product-lockup { border-radius:20px; }
footer { font-family:'IBM Plex Sans',Arial,sans-serif; }

@media (max-width:860px) {
 .rail { border:0; padding:0; }
 .mobile-tabs { border-top:1px solid var(--line); padding-top:8px; }
 .mobile-tabs .nav-link { min-height:56px; border-radius:999px; font-size:11px; gap:4px; font-weight:600; }
 .layout { gap:18px; }
}
@media (max-width:600px) {
 .home-hero { padding:24px 22px; border-radius:22px; }
 .home-hero-content { grid-template-columns:minmax(0,1fr); margin:18px 0 22px; }
 .home-hero h2 { font-size:clamp(32px,8.7vw,42px); }
 .home-hero-content p { font-size:14px; }
 .home-specimen { display:none; }
 .home-stats { padding:20px 0; }
 .home-stats strong { font-size:30px; }
 .home-stats span { font-size:11px; }
 .home-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .home-shortcut { padding:18px 14px; flex-direction:column; gap:14px; }
 .home-shortcut strong { font-size:17px; }
 .home-shortcut small { font-size:12px; }
 .home-section-head h3 { font-size:21px; }
 .home-guide { padding:20px; }
 .groups { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .group-card { padding:16px; min-height:250px; gap:10px; }
 .group-card h3 { font-size:17px; overflow-wrap:normal; width:100%; }
 .group-card .card-icon { width:66px; height:66px; align-self:flex-start; }
 .group-card p { font-size:12px; }
 .group-card .count { font-size:11px; padding:5px 8px; }
 .result-card { padding:18px; }
 .result-name { font-size:20px; }
 .cloud-panel { padding:18px; }
 .cloud-panel h3 { font-size:21px; }
}
@media (max-width:360px) {
 .groups { grid-template-columns:minmax(0,1fr); }
 .group-card { min-height:0; }
 .home-stats span { font-size:10px; }
 .home-shortcut strong { font-size:16px; }
}
@media (prefers-reduced-motion:no-preference) {
 .home-shortcut,.cloud-record { transition:transform .16s ease,border-color .16s ease; }
 .home-shortcut:hover,.cloud-record:hover { transform:translateY(-2px); }
}
@media (prefers-reduced-motion:reduce) {
 .home-shortcut,.group-card,.cloud-record { transition:none; }
}

/* Result navigation shares the existing BioIDz link colour. */
#best-match[hidden], #alternative-ids[hidden], .result-link[hidden] { display:none; }
.result-link { display:inline-flex; align-items:center; min-height:44px; padding:10px 0; margin-bottom:16px; color:var(--brand); font-weight:600; text-underline-offset:4px; }

/* A horizontal category shelf on mobile, using the existing organism artwork. */
.group-loop-card { display:none; }
.group-scroll-controls { display:none; }
.group-scroll-controls[hidden] { display:none !important; }
@media (max-width:860px) {
 .group-scroll-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:4px 0 8px; color:var(--ink-soft); font-size:12px; }
 .group-scroll-buttons { display:flex; gap:8px; flex-shrink:0; }
 .group-scroll-buttons button:disabled { opacity:.35; cursor:default; }
 #groupGrid { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:100%; gap:12px; width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:8px; padding:8px 8px 16px; scrollbar-width:none; }
 #groupGrid::-webkit-scrollbar { display:none; }
 #groupGrid :is(.group-card,.group-loop-card) { display:flex; flex-direction:column; align-items:center; min-height:300px; padding:22px; gap:16px; text-align:center; scroll-snap-align:start; scroll-snap-stop:always; background:var(--surface); border:1px solid var(--line); border-radius:20px; color:var(--ink); cursor:pointer; font-family:inherit; }
 #groupGrid :is(.group-card,.group-loop-card)[hidden] { display:none; }
 #groupGrid :is(.group-card,.group-loop-card)::after { display:none; }
 #groupGrid :is(.group-card,.group-loop-card):hover { transform:none; border-color:var(--brand); box-shadow:0 6px 18px var(--card-hover-glow); }
 #groupGrid :is(.group-card,.group-loop-card) .card-icon { width:clamp(120px,32vw,160px); height:clamp(120px,32vw,160px); padding:8px; align-self:center; border-radius:50%; background:var(--surface-sunk); }
 #groupGrid :is(.group-card,.group-loop-card):hover .card-icon { transform:none; }
 #groupGrid :is(.group-card,.group-loop-card) h3 { width:100%; font-size:clamp(21px,5.5vw,24px); font-weight:600; line-height:1.3; margin:0; overflow-wrap:anywhere; }
 #groupGrid :is(.group-card,.group-loop-card) p { display:none; }
 #groupGrid :is(.group-card,.group-loop-card) .count { align-self:center; font:600 11px/1.3 'IBM Plex Sans',Arial,sans-serif; padding:5px 8px; width:fit-content; border:1px solid var(--line); border-radius:999px; margin-top:auto; color:var(--ink-faint); }
}

/* Home theme control aligns with account actions, using existing theme colours. */
.home-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.home-toolbar .home-account-actions { margin:0 0 0 auto; min-width:0; }
.home-theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0; min-height:46px; padding:10px 16px; border:1px solid var(--line-strong); border-radius:999px; background:var(--surface); color:var(--ink); font:600 13px 'IBM Plex Sans',Arial,sans-serif; cursor:pointer; white-space:nowrap; }
.home-theme-toggle svg { width:20px; height:20px; flex-shrink:0; }
.home-theme-toggle:hover { border-color:var(--brand); }
@media (max-width:600px) {
 .home-theme-toggle { width:44px; height:44px; min-height:44px; padding:0; }
 .home-theme-toggle .theme-control-label { display:none; }
}
@media (max-width:360px) { .home-toolbar, .home-toolbar .home-account-actions { gap:8px; } }
