/* ANaMed BioAge v2.1 — additive research tools. Existing model/UI files are untouched. */
.tool-launch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 14px}.tool-launch{display:flex;gap:11px;align-items:center;text-align:left;border:1px solid #dce8f2;background:linear-gradient(180deg,#fff,#f7fbff);border-radius:13px;padding:11px 12px;color:#173251;cursor:pointer;box-shadow:0 6px 16px rgba(31,73,116,.05)}.tool-launch:hover{border-color:#b9d6ee;background:#f3f9ff}.tool-launch-icon{flex:0 0 34px;height:34px;border-radius:10px;background:#e9f4ff;color:#2e71b6;display:grid;place-items:center}.tool-launch-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tool-launch b{display:block;font-size:11px}.tool-launch span{display:block;font-size:8.5px;color:#6f8296;margin-top:2px;line-height:1.35}.synthetic-banner{display:flex;align-items:center;gap:9px;background:#fff8e8;border:1px solid #f0ddab;color:#78591b;border-radius:10px;padding:8px 10px;font-size:9px;margin-bottom:12px}.demo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.demo-card{position:relative;overflow:hidden}.demo-card:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--demo,#5b95ce)}.demo-card h3{margin:6px 0 5px;font-size:15px}.demo-card p{font-size:9px;line-height:1.5;color:#657b90;min-height:42px}.demo-chips{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.demo-chips span{font-size:8px;background:#f0f6fb;color:#55728f;border-radius:999px;padding:4px 7px;border:1px solid #e0eaf2}.demo-result{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}.demo-result div{background:#f7fafc;border:1px solid #e4ecf3;border-radius:9px;padding:7px}.demo-result span{display:block;font-size:7.5px;color:#74879a}.demo-result b{display:block;font-size:13px;margin-top:2px}.compare-layout{display:grid;grid-template-columns:260px 260px 1fr;gap:12px;align-items:start}.group-builder h3{margin:3px 0 10px}.group-controls{display:grid;gap:8px}.group-controls label{font-size:8.5px;color:#60768b;display:grid;gap:4px}.group-controls select{border:1px solid #d5e2ed;background:#fbfdff;border-radius:8px;padding:8px;font:inherit;font-size:9px;color:#26445f}.group-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:10px}.group-summary div{border:1px solid #e2ebf2;background:#f7fafc;border-radius:9px;padding:7px}.group-summary span{font-size:7px;color:#718598;display:block}.group-summary b{font-size:12px}.compare-results{display:grid;gap:12px}.comparison-table{width:100%;border-collapse:collapse;font-size:9px}.comparison-table th,.comparison-table td{padding:8px 7px;border-bottom:1px solid #e7edf3;text-align:right}.comparison-table th:first-child,.comparison-table td:first-child{text-align:left}.comparison-table th{font-size:8px;color:#667d92}.ci-text{font-size:7.5px;color:#7b8d9e;display:block;margin-top:1px}.diff-positive{color:#b15f31}.diff-negative{color:#267a66}.science-note{font-size:8px;line-height:1.5;color:#74879a;margin-top:7px}.compare-actions{display:flex;gap:6px;flex-wrap:wrap}.map-layout{display:grid;grid-template-columns:minmax(0,1.7fr) 300px;gap:12px}.map-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:9px}.map-toolbar label{font-size:8px;color:#697f92}.map-toolbar select{border:1px solid #d6e3ed;border-radius:8px;padding:7px 9px;background:#fff;font:inherit;font-size:9px}.map-stage{border:1px solid #e0e9f1;border-radius:14px;background:linear-gradient(180deg,#f7fbff,#eef6fb);overflow:hidden;padding:8px}.study-map-svg{width:100%;height:auto;display:block}.kz-outline{fill:#e5f0f8;stroke:#8cb1cf;stroke-width:1.4}.map-pin{cursor:pointer;transition:.15s}.map-pin:focus-visible{outline:2px solid #173d66;outline-offset:3px}.map-pin:hover .pin-core,.map-pin.selected .pin-core{stroke:#173d66;stroke-width:2}.pin-halo{fill:rgba(61,126,191,.12);pointer-events:none}.pin-core{fill:#397fc3;stroke:white;stroke-width:1.3}.pin-label{font-size:8px;fill:#31546f;font-weight:700;pointer-events:all}.map-side h3{margin:3px 0 4px}.map-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin:10px 0}.map-kpis div{border:1px solid #e2ebf2;border-radius:9px;background:#f8fbfd;padding:8px}.map-kpis span{display:block;font-size:7px;color:#718598}.map-kpis b{font-size:15px}.office-list{max-height:180px;overflow:auto;display:grid;gap:4px}.office-list div{display:flex;justify-content:space-between;gap:8px;font-size:8px;padding:6px 7px;border-radius:7px;background:#f4f8fb}.map-source-note{font-size:7.5px;line-height:1.45;color:#7a8e9f;margin-top:10px}.figure-layout{display:grid;grid-template-columns:280px 1fr;gap:12px}.figure-controls{display:grid;gap:9px;align-content:start}.figure-controls label{font-size:8px;color:#60768a;display:grid;gap:4px}.figure-controls select,.figure-controls input,.figure-controls textarea{border:1px solid #d6e2ec;border-radius:8px;padding:8px 9px;background:#fff;font:inherit;font-size:9px;color:#26445f}.figure-controls textarea{min-height:70px;resize:vertical}.figure-preview-card{min-width:0}.figure-preview{min-height:430px;background:white;border:1px solid #dae5ee;border-radius:12px;padding:12px;display:grid;place-items:center;overflow:auto}.figure-preview img,.figure-preview svg,.figure-preview canvas{max-width:100%;height:auto}.figure-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.figure-meta{margin-top:8px;font-size:8px;color:#718598;line-height:1.45}.snapshot-box{background:#f6f9fc;border:1px solid #e1eaf2;border-radius:9px;padding:9px;font-size:8px;color:#5f768b}.page-tool-badge{display:inline-flex;align-items:center;gap:5px;background:#eaf5ff;color:#2c70b3;border:1px solid #d5e8f8;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:700}.rt-toast{position:fixed;right:18px;bottom:18px;z-index:1000;background:#153a61;color:#fff;padding:10px 13px;border-radius:10px;font-size:9px;box-shadow:0 12px 30px rgba(16,45,78,.28);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.rt-toast.show{opacity:1;transform:none}
@media(max-width:1200px){.tool-launch-grid{grid-template-columns:repeat(2,1fr)}.demo-grid{grid-template-columns:repeat(2,1fr)}.compare-layout{grid-template-columns:1fr 1fr}.compare-results{grid-column:1/-1}.map-layout,.figure-layout{grid-template-columns:1fr}}
@media(max-width:700px){.tool-launch-grid,.demo-grid,.compare-layout{grid-template-columns:1fr}.compare-results{grid-column:auto}.group-summary{grid-template-columns:1fr 1fr}.map-side{order:-1}.figure-preview{min-height:280px}}
/* extra navigation items stay usable on shorter screens */
.sidebar{overflow:hidden}.nav{min-height:0;overflow-y:auto;padding-right:3px}.nav::-webkit-scrollbar{width:5px}.nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:999px}
