/* =========================================================
   PHAGEN-RADAR – eigene Seite
   ========================================================= */

.radar-page main { padding-top: 74px; }

/* ---------- Kopf ---------- */
.radar-hero {
    position: relative;
    padding: 64px 0 40px;
    background:
        radial-gradient(800px 420px at 85% 30%, rgba(47, 125, 255, 0.16), transparent 70%),
        radial-gradient(600px 380px at 0% 0%, rgba(255, 79, 154, 0.08), transparent 70%);
}
.radar-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
}
.radar-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 14px 0 18px; }
.radar-hero .lead { color: #c3d0e3; font-size: 1.12rem; max-width: 600px; }

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(70, 214, 176, 0.35);
    background: rgba(70, 214, 176, 0.08);
    color: #bff3e3;
    font-size: 0.92rem;
    font-weight: 500;
}
.privacy-badge svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }

.radar-scope { margin: 0; text-align: center; }
.radar-scope canvas {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 40, 78, 0.85) 0%, rgba(5, 11, 22, 0.95) 72%);
    box-shadow: 0 0 0 1px rgba(58, 214, 255, 0.18), 0 0 80px -10px rgba(58, 214, 255, 0.25), inset 0 0 60px rgba(58, 214, 255, 0.08);
}
.radar-scope figcaption { margin-top: 14px; color: var(--faint); font-size: 0.85rem; min-height: 1.4em; }

/* ---------- Panels ---------- */
.radar-section { padding: 40px 0; }
.radar-section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.radar-panel {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
}
.panel-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.panel-head p { color: var(--muted); margin: 6px 0 0; }
.panel-head-out { align-items: center; }
.panel-head-out > div { flex: 1; min-width: 0; }
.panel-head-out p { overflow-wrap: anywhere; }
.step-no {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #03101f;
    font: 700 1.1rem var(--font-head);
}

.dropzone { position: relative; display: block; }
.dropzone textarea {
    width: 100%;
    min-height: 190px;
    resize: vertical;
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed var(--border-strong);
    background: rgba(2, 8, 18, 0.6);
    color: #bfe6ff;
    font: 0.85rem/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace;
    letter-spacing: 0.04em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.dropzone textarea:focus { outline: none; border-color: var(--cyan); }
.drop-hint {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    border-radius: 16px;
    background: rgba(58, 214, 255, 0.12);
    border: 2px dashed var(--cyan);
    color: #fff; font-weight: 600;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.dropzone.drag .drop-hint { opacity: 1; }

.input-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.input-row-end { justify-content: space-between; align-items: flex-end; margin-top: 22px; }
.input-info { color: var(--muted); font-size: 0.9rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn { position: relative; }
.file-btn:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; }

.genus-select { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.genus-select small { color: var(--faint); }
.genus-select select {
    min-width: 240px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #0a1730;
    color: var(--text);
    font: 500 0.95rem var(--font-body);
}
.btn-scan { padding: 16px 30px; font-size: 1.05rem; }
.btn-scan:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-scan svg { width: 22px; height: 22px; }

/* ---------- Scanner ---------- */
.scanner canvas { width: 100%; height: 70px; display: block; }
.scan-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--faint); margin-top: 8px; }
.scan-legend i { display: inline-block; width: 4px; height: 14px; background: var(--pink); margin-right: 8px; vertical-align: -2px; box-shadow: 0 0 8px var(--pink); }

/* ---------- Ergebnis ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: var(--surface);
}
.tile strong { display: block; font: 700 1.6rem/1.1 var(--font-head); color: #fff; }
.tile span { font-size: 0.85rem; color: var(--muted); }
.note { color: var(--amber); font-size: 0.9rem; }

.block-title { font-size: 1.35rem; margin: 44px 0 6px; }
.block-sub { color: var(--muted); margin-bottom: 18px; }
.empty { color: var(--muted); padding: 18px 20px; border: 1px dashed var(--border); border-radius: 16px; }

.array {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 14px;
    background: var(--surface);
}
.array-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 12px; }
.array-head span { color: var(--muted); font-size: 0.88rem; }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 3px; }
.strip .rep {
    width: 10px; height: 10px;
    background: #7f93b3;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin: 0 2px;
}
.strip .sp {
    width: 26px; height: 18px;
    border-radius: 5px;
    background: rgba(148, 190, 255, 0.18);
    border: 1px solid rgba(148, 190, 255, 0.25);
    cursor: help;
    transition: transform 0.2s var(--ease);
}
.strip .sp:hover, .strip .sp:focus { transform: scale(1.25); outline: none; }
.strip .sp-red { background: #ff4f6d; border-color: #ff8a9e; box-shadow: 0 0 12px rgba(255, 79, 109, 0.6); }
.strip .sp-amber { background: #ffc24d; border-color: #ffd88a; box-shadow: 0 0 10px rgba(255, 194, 77, 0.45); }
.consensus {
    display: block;
    margin-top: 12px;
    font: 0.78rem ui-monospace, Consolas, monospace;
    color: var(--faint);
    overflow-wrap: anywhere;
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; }
.card-red::before { background: #ff4f6d; }
.card-amber::before { background: #ffc24d; }
.card.flash { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(58, 214, 255, 0.35); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.82rem; }
.card h4 { font-size: 1.3rem; margin: 12px 0 2px; }
.card-host { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.card dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.card dd { margin: 2px 0 0; font-weight: 600; font-size: 0.92rem; }

.align {
    background: rgba(2, 8, 18, 0.65);
    border-radius: 12px;
    padding: 12px;
    overflow-x: auto;
}
.align div { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.align span { width: 46px; flex-shrink: 0; font-size: 0.7rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.align code { font: 0.78rem/1.5 ui-monospace, Consolas, monospace; letter-spacing: 0.06em; color: #cfe6ff; }
.align .bars b { font-weight: 400; }
.align .bars .m { color: rgba(70, 214, 176, 0.75); }
.align .bars .x { color: #ff6b82; font-weight: 700; }
.align small { display: block; margin-top: 8px; font-size: 0.75rem; color: var(--faint); white-space: normal; }

.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.pill-red { background: rgba(255, 79, 109, 0.16); color: #ff8a9e; border: 1px solid rgba(255, 79, 109, 0.4); }
.pill-amber { background: rgba(255, 194, 77, 0.14); color: #ffd88a; border: 1px solid rgba(255, 194, 77, 0.4); }
.pill-green { background: rgba(70, 214, 176, 0.14); color: #8ff0d2; border: 1px solid rgba(70, 214, 176, 0.4); }

.cand-list { display: flex; flex-wrap: wrap; gap: 10px; }
.cand {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.cand:hover { border-color: var(--green); transform: translateY(-2px); }
.cand em { color: var(--muted); }
.cand.flash { border-color: var(--cyan); }

.ampel-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.ampel-legend > div { border: 1px solid var(--border); border-radius: 18px; padding: 18px; background: var(--surface); }
.ampel-legend p { margin: 10px 0 0; font-size: 0.9rem; color: #c3d0e3; }

/* ---------- Methode ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.method-steps { padding-left: 1.2em; color: #c3d0e3; }
.method-steps li { margin: 14px 0; }
.limits ul { padding-left: 1.1em; color: #c3d0e3; }
.limits li { margin: 12px 0; }

.db-table { margin-top: 36px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.db-table summary { cursor: pointer; padding: 18px 22px; font-weight: 600; }
.table-wrap { overflow-x: auto; padding: 0 12px 16px; }
.db-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.db-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px; }
.db-table td { padding: 10px; border-top: 1px solid var(--border); vertical-align: top; }
.db-table td small { display: block; color: var(--faint); font-size: 0.78rem; }

#quellen .refs { margin-top: 18px; }

/* ---------- Export, 3D-Andocken, Zitieren ---------- */
.export-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-export { margin-top: 14px; }
.dock-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, rgba(14, 40, 78, 0.7), rgba(5, 11, 22, 0.9) 75%); overflow: hidden; }
.dock-view { position: relative; height: 460px; }
.dock-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.dock-labels { position: absolute; inset: 0; pointer-events: none; }
.dock-label {
    pointer-events: auto;
    display: flex; flex-direction: column; align-items: center;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(8, 19, 38, 0.88);
    border: 1px solid var(--border-strong);
    color: #fff;
    font: 600 0.78rem/1.3 var(--font-body);
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}
.dock-label span { font-weight: 400; font-size: 0.7rem; }
.dock-red { border-color: rgba(255, 79, 109, 0.7); } .dock-red span { color: #ff8a9e; }
.dock-amber { border-color: rgba(255, 194, 77, 0.7); } .dock-amber span { color: #ffd88a; }
.dock-green { border-color: rgba(70, 214, 176, 0.7); } .dock-green span { color: #8ff0d2; }
.dock-status { margin: 0; padding: 0 18px; color: var(--muted); font-size: 0.88rem; }
.dock-status:empty { display: none; }
.dock-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--faint); }

.cite-box { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: var(--surface); }
.cite-text { font: 0.9rem/1.6 ui-monospace, Consolas, monospace; color: #cfe6ff; overflow-wrap: anywhere; margin-bottom: 12px; }
.cite-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--faint); }
@media (max-width: 700px) { .dock-view { height: 360px; } }

/* ---------- Live-Bereich im Radar (aufklappbar) ---------- */
.live-details summary {
    display: flex; gap: 18px; align-items: center;
    cursor: pointer; list-style: none;
}
.live-details summary::-webkit-details-marker { display: none; }
.live-details summary > span:last-child { display: flex; flex-direction: column; }
.live-details summary small { color: var(--muted); font-size: 0.9rem; }
.live-details[open] summary { margin-bottom: 18px; }

/* ---------- Werkzeug-Reiter ---------- */
.tool-tabs {
    position: sticky;
    top: 74px;
    z-index: 50;
    background: rgba(5, 11, 22, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.tool-tabs .container { display: flex; gap: 6px; overflow-x: auto; }
.tool-tabs a {
    display: flex; flex-direction: column;
    padding: 12px 18px 10px;
    color: var(--muted);
    text-decoration: none;
    font: 600 0.95rem/1.2 var(--font-head);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tool-tabs a small { font: 400 0.72rem var(--font-body); color: var(--faint); }
.tool-tabs a:hover { color: #fff; }
.tool-tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--cyan); }
.radar-hero-slim { padding: 48px 0 16px; }
.radar-hero-slim .lead { max-width: 820px; }

/* ---------- Live-Panel ---------- */
.live-form { display: flex; gap: 10px; flex-wrap: wrap; }
.live-form input {
    flex: 1 1 280px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(2, 8, 18, 0.6);
    color: var(--text);
    font: 500 0.95rem var(--font-body);
}
.live-form input:focus { outline: none; border-color: var(--cyan); }
.live-status { color: var(--muted); font-size: 0.9rem; margin: 12px 0 6px; min-height: 1.4em; }
.live-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-results li {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.live-results li > div { min-width: 0; }
.live-results strong { display: block; font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; }
.live-results small { color: var(--faint); font-size: 0.8rem; }
.live-have { color: var(--faint); font-size: 0.82rem; white-space: nowrap; }
.live-added h4 { font-size: 0.95rem; margin: 18px 0 8px; }
.live-added ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.live-added li { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.live-added strong { color: #fff; }
.live-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 999px; background: rgba(255, 194, 77, 0.15); color: var(--amber); border: 1px solid rgba(255, 194, 77, 0.4); }
.live-rm { border: 1px solid var(--border-strong); background: none; color: var(--muted); border-radius: 8px; width: 26px; height: 26px; cursor: pointer; }
.live-rm:hover { color: #fff; border-color: var(--pink); }

/* ---------- Atlas ---------- */
.atlas-map { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.atlas-map-scroll { overflow-x: auto; }
.atlas-map canvas { display: block; cursor: crosshair; }
.atlas-status { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; min-height: 1.4em; }
.atlas-tip {
    position: absolute; z-index: 5; pointer-events: none;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(8, 19, 38, 0.96);
    border: 1px solid var(--border-strong);
    font-size: 0.82rem; line-height: 1.5;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.atlas-scale { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.8rem; color: var(--faint); }
.atlas-scale i { flex: 0 1 220px; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgb(235, 250, 255), rgb(58, 214, 255) 30%, rgb(9, 20, 40)); }

.gm-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.gm-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--faint); }
.gm-controls select {
    min-width: 170px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: #0a1730;
    color: var(--text);
    font: 500 0.9rem var(--font-body);
}
.gm-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(2, 8, 18, 0.55); padding: 10px; }
#gm-svg { display: block; width: 100%; min-width: 760px; height: auto; }
#gm-svg .gm-name { fill: #e8f0fc; font: 600 13px Inter, system-ui, sans-serif; }
#gm-svg .gm-axis { stroke: rgba(148, 190, 255, 0.35); stroke-width: 1; }
#gm-svg .gm-scale { fill: var(--faint); font: 500 11px Inter, system-ui, sans-serif; }
#gm-svg .gm-gene { cursor: help; transition: opacity 0.2s ease; }
#gm-svg .gm-gene:hover { stroke: #fff; stroke-width: 1.4; }
#gm-svg .gm-link { cursor: help; }
#gm-svg .gm-link:hover { fill-opacity: 0.95; }
.gm-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 0.82rem; color: var(--faint); }
.gm-legend i { display: inline-block; width: 22px; height: 10px; margin-right: 8px; vertical-align: -1px; border-radius: 3px; }
.gm-l-gene { background: rgba(148, 190, 255, 0.28); }
.gm-l-link { background: linear-gradient(90deg, rgba(58, 214, 255, 0.25), rgba(58, 214, 255, 0.85)); }

/* ---------- Prüfseite ---------- */
.checks { display: grid; gap: 12px; }
.check {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}
.check-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(148, 190, 255, 0.12); color: var(--muted); }
.check.ok .check-icon { background: rgba(70, 214, 176, 0.18); color: var(--green); }
.check.fail .check-icon { background: rgba(255, 79, 109, 0.18); color: #ff8a9e; }
.check.info .check-icon { background: rgba(255, 194, 77, 0.16); color: var(--amber); }
.check h4 { font-size: 1rem; margin: 3px 0 4px; }
.check p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.check .check-val { font: 600 0.9rem var(--font-body); color: #fff; text-align: right; white-space: nowrap; }
.check code { font: 0.8rem ui-monospace, Consolas, monospace; color: #cfe6ff; overflow-wrap: anywhere; }
.ref-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 10px; }
.ref-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px; }
.ref-table td { padding: 8px; border-top: 1px solid var(--border); vertical-align: top; }
.ref-table code { font-size: 0.75rem; }
.st-exact { color: var(--green); font-weight: 600; }
.st-overlap { color: var(--amber); font-weight: 600; }
.st-miss { color: #ff8a9e; font-weight: 600; }
.st-extra { color: var(--muted); }
.ref-genome { border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; background: var(--surface); }
.ref-genome-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.ref-genome-head h4 { font-size: 1.05rem; margin: 0; }
.ref-genome-head small { color: var(--faint); }
.ref-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.ref-summary b { color: #fff; }
.table-scroll { overflow-x: auto; }

/* ---------- Responsiv ---------- */
@media (max-width: 920px) {
    .radar-hero-grid, .method-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .radar-scope canvas { max-width: 360px; }
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ampel-legend { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .radar-hero { padding: 40px 0 24px; }
    .radar-panel { padding: 20px 16px; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .input-row-end { flex-direction: column; align-items: stretch; }
    .genus-select select { min-width: 0; width: 100%; }
    .panel-head-out { flex-wrap: wrap; }
    .tool-tabs a { padding: 10px 12px 8px; }
    .check { grid-template-columns: 30px minmax(0, 1fr); }
    .check .check-val { grid-column: 2; text-align: left; white-space: normal; }
    .gm-controls select { min-width: 0; width: 100%; }
    .gm-controls label { flex: 1 1 140px; }
}

/* Atlas: Auswahl der Phagen für die Verwandtschaftskarte */
.atlas-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.ag-label { font-size: 0.85rem; color: var(--muted); margin-right: 4px; }
.ag-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
    font: 600 0.82rem var(--font-body); color: #b9c8de;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-strong);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ag-chip small { font-weight: 500; color: var(--faint); }
.ag-chip:hover { border-color: var(--cyan); color: #fff; }
.ag-chip[aria-pressed="true"] { background: rgba(58, 214, 255, 0.14); border-color: var(--cyan); color: #fff; }
.ag-chip[aria-pressed="true"] small { color: #9feaff; }
.ag-sum { font-size: 0.82rem; color: var(--faint); margin-left: 4px; }
.ag-sum.ag-over { color: #ff7aa8; }
