/* TOPMET 206 – shared table controls */
.tm-grid-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin:1rem 0 .5rem;padding:.65rem;background:var(--bs-tertiary-bg,#f5f6f8);border:1px solid var(--bs-border-color,#ddd);border-radius:.7rem}
.tm-grid-search{flex:1 1 190px;max-width:380px}.tm-grid-count{font-size:.79rem;color:var(--bs-secondary-color,#667);white-space:nowrap}.tm-grid-limit{width:auto;min-width:100px}.tm-grid-columns{position:relative}.tm-grid-columns summary{cursor:pointer;padding:.35rem .65rem;background:var(--bs-body-bg,#fff);border:1px solid var(--bs-border-color,#ddd);border-radius:.35rem;font-size:.85rem}.tm-grid-columns[open]{z-index:25}.tm-grid-col-toggle{display:block;min-width:180px;max-width:250px;font-size:.83rem;line-height:1.6;padding:.16rem .65rem;background:var(--bs-body-bg,#fff)}.tm-grid-columns[open] .tm-grid-col-toggle{box-shadow:0 1px 4px #0001}.tm-grid-sort{all:unset;cursor:pointer;font:inherit;font-weight:inherit;width:100%;min-height:30px}.tm-grid-sort:focus-visible{outline:2px solid #dfb900;outline-offset:2px}.tm-grid-sortable[aria-sort=ascending] .tm-grid-sort:after{content:' ▲';font-size:.65rem}.tm-grid-sortable[aria-sort=descending] .tm-grid-sort:after{content:' ▼';font-size:.65rem}.tm-grid-filter-row input{min-width:90px;font-weight:400}.tm-grid-pager{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;margin:.5rem 0 1rem;font-size:.82rem}.tm-grid-pager[hidden]{display:none!important}.tm-grid-tools :is(input,button,select,summary):focus-visible{outline:2px solid #e6b800;outline-offset:2px}.tm-grid-tools .btn{min-height:31px}
.tm-home-hero{padding:1.55rem 1.65rem;color:white;background:linear-gradient(120deg,#242424,#363636 68%,#565127);border-radius:1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.tm-home-hero h1{font-size:clamp(1.45rem,2.6vw,2rem);font-weight:750;margin:.3rem 0}.tm-home-eyebrow{font-size:.75rem;letter-spacing:.1em;color:#f5d634}.tm-home-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.3rem 0}.tm-home-kpi,.tm-home-panel{background:var(--bs-body-bg,#fff);border:1px solid var(--bs-border-color,#ddd);border-radius:.85rem;padding:1.15rem;box-shadow:0 2px 12px #00000008}.tm-home-kpi small{display:block;color:var(--bs-secondary-color,#555);margin-bottom:.5rem}.tm-home-kpi strong{display:block;font-size:clamp(1.35rem,2.4vw,1.8rem);font-variant-numeric:tabular-nums}.tm-home-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:1rem}.tm-home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.tm-home-action{border:1px solid var(--bs-border-color,#ddd);border-radius:.7rem;padding:.75rem;color:inherit;text-decoration:none;display:flex;align-items:center;gap:.7rem}.tm-home-action:hover{border-color:#d6b800;background:var(--bs-tertiary-bg,#eee);color:inherit}.tm-home-action i{font-size:1.4rem;color:#ba9500}.tm-home-muted{color:var(--bs-secondary-color,#555);font-size:.86rem}.tm-home-panel h2{font-size:1.08rem;font-weight:700;margin-bottom:1rem}
@media(max-width:991px){.tm-home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-home-grid{grid-template-columns:1fr}}@media(max-width:575px){.tm-home-hero{display:block}.tm-home-kpis,.tm-home-actions{grid-template-columns:1fr}.tm-grid-tools{padding:.5rem}.tm-grid-search{max-width:none}}
/* Etap 207 – rozbudowany, responsywny pulpit */
.tm207-toolbar{display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:1.15rem 0}.tm207-toolbar .btn{margin-left:.35rem}.tm207-section{margin:1.2rem 0}.tm207-section-title{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.85rem;flex-wrap:wrap}.tm207-section-title h2{margin:0;font-size:1.08rem;font-weight:700}.tm207-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.tm207-kpi-trend{display:block;font-size:.77rem;color:var(--bs-secondary-color,#666);margin-top:.55rem}.tm207-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.tm207-widget{min-width:0}.tm207-widget[data-widget=recent]{grid-column:span 2}.tm207-widget[hidden]{display:none!important}.tm207-ranking-row{display:grid;grid-template-columns:100px 1fr 45px;gap:.6rem;align-items:center;padding:.4rem 0;font-size:.85rem}.tm207-bar{height:10px;border-radius:20px;background:#e7e8ec;overflow:hidden}.tm207-bar>span{display:block;height:100%;background:#dfbb11}.tm207-alert{display:flex;gap:.75rem;align-items:flex-start;border-radius:.55rem;padding:.75rem;margin-bottom:.55rem;background:#f4f5f7;font-size:.88rem}.tm207-alert-warning{border-left:3px solid #e4a100}.tm207-alert-info{border-left:3px solid #6592d1}.tm207-alert-success{border-left:3px solid #31a36d}.tm207-map{background:#f8fafc;border:1px solid var(--bs-border-color,#ddd);border-radius:.65rem;overflow:hidden}.tm207-map svg{width:100%;height:auto;display:block;max-height:390px}.tm207-map-country{stroke:#fff;stroke-width:1;cursor:pointer;transition:filter .15s}.tm207-map-country:hover,.tm207-map-country:focus-visible,.tm207-map-country.is-active{stroke:#202020;stroke-width:2;filter:brightness(.85);outline:none}.tm207-map-details{font-size:.86rem;font-weight:600;margin:.65rem 0}.tm207-country-list{display:flex;flex-wrap:wrap;gap:.3rem}.tm207-settings{padding:1rem;margin:.8rem 0;background:var(--bs-tertiary-bg,#f5f5f5);border:1px solid var(--bs-border-color,#ddd);border-radius:.8rem;max-width:600px}.tm207-setting-item{display:flex;gap:.4rem;align-items:center;margin:.45rem 0}.tm207-setting-item label{flex:1;font-size:.86rem}#tm207Chart{overflow-x:auto}#tm207Chart svg{width:100%;height:210px;min-width:350px}.tm-home-panel .table{font-size:.88rem}@media(max-width:1150px){.tm207-grid{grid-template-columns:1fr}.tm207-widget[data-widget=recent]{grid-column:span 1}}@media(max-width:700px){.tm207-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.tm207-kpi-grid{grid-template-columns:1fr}}

/* Etap 208: czytelny panel personalizacji, niezalezny od jasnego tekstu naglowka */
.tm207 #tm207Personalize.tm207-settings {
  width:100%;max-width:none;margin:1rem 0 1.25rem;padding:1.1rem 1.25rem;
  color:#20242b!important;background:#fff!important;border:1px solid #cfd4dc!important;
  border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.tm207 #tm207Personalize.tm207-settings>strong {display:block;color:#171b21!important;font-size:1rem;line-height:1.4;margin-bottom:.8rem}
.tm207 #tm207Personalize .tm207-setting-item {display:flex;align-items:center;gap:.6rem;min-height:42px;
  margin:0;padding:.35rem .45rem;border-top:1px solid #e5e7eb;color:#252a31!important}
.tm207 #tm207Personalize .tm207-setting-item label {color:#252a31!important;opacity:1!important;font-weight:500;
  display:flex;align-items:center;gap:.65rem;flex:1;min-width:0;line-height:1.35;margin:0;cursor:pointer}
.tm207 #tm207Personalize .tm207-setting-item input[type=checkbox] {accent-color:#0878dc;width:16px;height:16px;
  margin:0;flex:none;opacity:1!important;appearance:auto!important}
.tm207 #tm207Personalize .tm207-setting-item button {min-width:36px;height:34px;display:inline-flex;align-items:center;
  justify-content:center;color:#222!important;background:#fff!important;border:1px solid #cbd0d8!important;
  border-radius:8px;opacity:1!important;line-height:1}
.tm207 #tm207Personalize .tm207-setting-item button:hover:not(:disabled) {background:#f4f5f7!important;border-color:#9ca3af!important}
.tm207 #tm207Personalize .tm207-setting-item button:disabled {opacity:.45!important;cursor:not-allowed}
.tm207 #tm207Personalize :focus-visible {outline:3px solid #f1bf00;outline-offset:2px}
@media(max-width:575px){.tm207 #tm207Personalize.tm207-settings{padding:.8rem}.tm207 #tm207Personalize .tm207-setting-item{gap:.3rem}}
