/* ExploitMoney Rechner Tiles: tile grid for the OS Rechner view. Uses the OS tokens (--mint, --line, --serif). */
body.em-os-body .rt-on .calculator-tabs{display:none}
body.em-os-body .rt-grid-wrap{margin:4px 0 26px}
body.em-os-body .rt-group{margin-top:18px}
body.em-os-body .rt-group:first-child{margin-top:0}
body.em-os-body .rt-group h2{font-family:var(--sans);font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 9px 2px}
body.em-os-body .rt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin:0;padding:0;list-style:none}
body.em-os-body .rt-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;aspect-ratio:1/1;min-height:85px;padding:10px 6px;border-radius:12px;background:rgba(22,39,33,.63);border:1px solid var(--line);color:#c6d1ca;font:inherit;font-size:10.5px;line-height:1.25;text-align:center;cursor:pointer;text-decoration:none;transition:background .2s,border-color .2s,color .2s}
body.em-os-body .rt-tile>span:not(.rt-badge){font-size:11px;line-height:1.25;hyphens:manual}
body.em-os-body .rt-tile svg{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.em-os-body .rt-tile:hover{border-color:#5f9675;background:#153a2b99}
body.em-os-body .rt-tile:focus-visible{outline:2px solid var(--mint-strong);outline-offset:2px}
body.em-os-body .rt-tile[aria-pressed="true"]{color:var(--mint);background:rgba(20,77,48,.6);border-color:rgba(126,210,155,.35)}
body.em-os-body .rt-tile .rt-badge{position:absolute;top:6px;right:6px;font-size:8px;font-weight:600;letter-spacing:.04em;padding:1px 5px;border-radius:5px;background:#f59e0b22;color:#f5c26b;border:1px solid #f59e0b44}
body.em-os-body .rt-tile .rt-badge.rt-new{background:#60c99222;color:var(--mint);border-color:#60c99255}
body.em-os-body .rt-tile.rt-link .rt-ext{position:absolute;top:7px;right:7px;width:11px;height:11px;opacity:.6}
body.em-os-body .rt-select{appearance:none;width:100%;height:34px;margin:2px 0 14px;padding:0 30px 0 10px;border:1px solid var(--line-strong);border-radius:6px;background:#a9c6b40a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239de6b7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center/14px;color:#e7ece3;font:inherit;font-size:12px}
body.em-os-body .rt-select option{background:#0c1f19;color:#e7ece3}
body.em-os-body .rt-note{font-size:11px;line-height:1.65;color:#cad4c5;margin:10px 0 0}
body.em-os-body .rt-soon{padding:18px 17px;border:1px dashed var(--line-strong);border-radius:10px;font-size:12px;line-height:1.7;color:#cad4c5}
body.em-os-body .rt-quick{display:flex;flex-wrap:wrap;gap:6px;margin:-6px 0 14px}
body.em-os-body .rt-quick button{font:inherit;font-size:10px;padding:3px 9px;border-radius:20px;border:1px solid var(--line);background:#a9c6b40a;color:#c6d1ca;cursor:pointer}
body.em-os-body .rt-quick button:hover{border-color:#5f9675;color:var(--mint)}
body.em-os-body .rt-panel .investment-breakdown div{display:flex;justify-content:space-between;gap:12px}
body.em-os-body .rt-panel .investment-breakdown dd{margin:0;font-variant-numeric:tabular-nums;color:#e7ece3}
body.em-os-body .rt-panel .investment-breakdown dt{color:#bec8bc}
@media(max-width:760px){
body.em-os-body .rt-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.em-os-body .rt-tile{font-size:10px;gap:8px}
body.em-os-body .rt-tile svg{width:24px;height:24px}
}
@media(prefers-reduced-motion:reduce){body.em-os-body .rt-tile{transition:none}}
/* Homepage "Bibliothek" cards: the OS crops them to 4:3; post thumbnails are 16:9 (YouTube format), so show them whole. */
body.em-os-body.em-os-body :is(.em-os-root,.em-os-shell) .home-library .card-image{aspect-ratio:16/9}
