/* Localized family pages (round 1104). Complements round1031.css r31-* styles. */
.r31-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:26px 0}
.r31-kpis>div{border:1px solid var(--r31-line,#e5e7eb);border-radius:14px;padding:16px 18px;background:var(--r31-card,#fff)}
.r31-kpis dt{font-size:.8rem;opacity:.72}
.r31-kpis dd{margin:6px 0 0;font-size:1.35rem;font-weight:700;font-variant-numeric:tabular-nums}
.r31-tablewrap{overflow-x:auto;margin:18px 0}
.r31-tablewrap table{border-collapse:collapse;width:100%;font-size:.92rem;font-variant-numeric:tabular-nums}
.r31-tablewrap th,.r31-tablewrap td{border:1px solid var(--r31-line,#e5e7eb);padding:8px 12px;text-align:start;white-space:nowrap}
.r31-tablewrap thead th{background:var(--r31-card-head,#f7f7f8);font-weight:600}
/* Statistics headers need an explicit dark pair; the shared light fallback is
   otherwise combined with the r31 dark foreground. Keep other tables intact. */
html.dark body[data-page^="stats-"] .r31-tablewrap thead th,
html.dark body[data-page="round1104"]:has(.r31-breadcrumb a[href="/tesla-paint-shop-wrap-stats/"]) .r31-tablewrap thead th{background:#262626;color:#f5f5f5}
body[data-page^="stats-"] .r31-family-grid,
body[data-page="round1104"]:has(.r31-breadcrumb a[href="/tesla-paint-shop-wrap-stats/"]) .r31-family-grid{display:flex;flex-wrap:wrap;gap:12px 24px}
.r31-pack-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:16px 0}
.r31-pack{border:1px solid var(--r31-line,#e5e7eb);border-radius:14px;padding:16px 18px;text-align:center}
.r31-pack-price{font-size:1.3rem;font-weight:700;margin:4px 0}
.r31-theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:16px 0}
.r31-theme-grid a{border:1px solid var(--r31-line,#e5e7eb);border-radius:12px;padding:10px 12px;display:flex;justify-content:space-between;gap:8px;align-items:center;text-decoration:none;color:inherit;font-size:.9rem}
.r31-log article{border:1px solid var(--r31-line,#e5e7eb);border-radius:14px;padding:18px 20px;margin:14px 0}
.r31-log h2{font-size:1.05rem;margin:0 0 10px}
.r31-article{max-width:74ch}
.r31-article h2{margin-top:26px;font-size:1.25rem}
[dir="rtl"] .r31-breadcrumb span[aria-hidden]{transform:none}
[dir="rtl"] .r31-steps,.r31-step-grid{unicode-bidi:plaintext}
