/* os_picker.css — ortak işletim sistemi kart ızgarası (includes/os_picker.php)
   Tema değişkenleri yedekli: --border, --text-primary, --text-secondary, --primary/--theme. */
.osp { --osp-accent: var(--primary, var(--theme, #1f2d52)); --osp-line: var(--border, #e4e4e7); --osp-fg: var(--text-primary, inherit); --osp-mute: var(--text-secondary, #71717a); width: 100%; min-width: 0; box-sizing: border-box; }
.osp *, .osp *::before, .osp *::after { box-sizing: border-box; }
.osp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.osp-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--osp-line); border-radius: 12px; background: rgba(127, 127, 127, .05); color: var(--osp-fg); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.osp-card:hover { border-color: var(--osp-mute); }
.osp-card.is-selected { border-color: var(--osp-accent); box-shadow: 0 0 0 1px var(--osp-accent); background: rgba(127, 127, 127, .09); }
.osp-radio { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1rem .6rem .7rem; border-radius: 12px 12px 0 0; outline: none; text-align: center; }
.osp-radio:focus-visible { outline: 2px solid var(--osp-accent); outline-offset: -2px; }
.osp-logo { display: block; width: 44px; height: 44px; object-fit: contain; }
.osp-name { font-weight: 600; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.osp-check { position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; display: none; align-items: center; justify-content: center; background: var(--osp-accent); color: #fff; border-radius: 0 12px 0 10px; }
.osp-card.is-selected .osp-check { display: inline-flex; }
.osp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.osp-ver { margin: 0 .7rem; padding: .5rem 0 .7rem; border-top: 1px solid var(--osp-line); min-height: 2.9rem; display: flex; align-items: center; justify-content: center; }
.osp-one { font-size: .8rem; color: var(--osp-mute); text-align: center; overflow-wrap: anywhere; }
.osp .osp-select { width: 100%; max-width: 100%; min-width: 0; height: auto; padding: .3rem 1.4rem .3rem .5rem; font-size: .8rem; line-height: 1.3; border: 1px solid var(--osp-line); border-radius: 8px; background-color: transparent; color: var(--osp-fg); cursor: pointer; margin: 0; }
.osp .osp-select option { color: #18181b; background: #fff; }
.osp-invalid .osp-grid { outline: 2px solid #dc2626; outline-offset: 4px; border-radius: 12px; }
/* nice-select (vitrin) yine de sarmalarsa taşma/örtüşme olmasın */
.osp .nice-select { width: 100%; float: none; height: auto; line-height: 1.3; padding: .3rem 1.4rem .3rem .5rem; font-size: .8rem; }
.osp .nice-select .list { position: absolute; z-index: 1; }

/* Yönetim paneli: sıkı varyant */
.osp-compact .osp-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.osp-compact .osp-radio { padding: .6rem .4rem .45rem; gap: .3rem; }
.osp-compact .osp-logo { width: 30px; height: 30px; }
.osp-compact .osp-name { font-size: .8rem; }
.osp-compact .osp-ver { min-height: 2.3rem; padding: .35rem 0 .5rem; margin: 0 .5rem; }
.osp-compact .osp-select, .osp-compact .osp-one { font-size: .72rem; }

@media (max-width: 768px) {
    .osp:not(.osp-compact) .osp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
}
@media (max-width: 400px) {
    .osp-radio { padding: .8rem .4rem .55rem; }
    .osp-ver { margin: 0 .5rem; }
}

/* Sade (mavisiz) vitrin: logolar gri tonlamalı — marka mavileri nötrlenir */
body.sf-mono .osp-logo { filter: grayscale(1); }

/* Koyu vitrin/panel: lacivert primary koyu zeminde görünmez; vurgu için aksan rengi */
body.theme-dark .osp { --osp-accent: var(--accent, #3b82f6); }
