.qsrme{
  --bg:#f6f3ee;--panel:#fff;--ink:#1a1a1d;--muted:#6a6870;--line:#dedad2;--accent:#6b2bd9;--accent2:#f24f6d;
  --green:#00a878;--yellow:#f7c548;--red:#e65050;--shadow:0 14px 45px rgba(29,24,35,.08);--radius:20px;
}
.qsrme, .qsrme *{box-sizing:border-box} .qsrme{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.qsrme .topbar{height:76px;background:#111015;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;position:sticky;top:0;z-index:20}.qsrme .brand{display:flex;gap:12px;align-items:center}.qsrme .brand-mark{width:32px;height:32px;border-radius:50%;background:conic-gradient(#ef476f,#ffd166,#06d6a0,#118ab2,#7b2cbf,#ef476f)}.qsrme .brand-title{font-weight:800;letter-spacing:-.02em}.qsrme .brand-subtitle{font-size:12px;color:#aaa6b2}.qsrme .top-actions{display:flex;gap:10px}.qsrme{max-width:1500px;margin:auto;padding:34px 4vw 70px}.qsrme .hero{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;padding:34px 0}.qsrme .hero h1{font-size:clamp(34px,5vw,70px);line-height:.96;letter-spacing:-.055em;max-width:950px;margin:6px 0 18px}.qsrme .lede{font-size:18px;color:var(--muted);max-width:760px}.qsrme .eyebrow{font-size:11px;font-weight:900;letter-spacing:.16em;color:var(--accent);margin:0 0 8px}.qsrme .dataset-card{min-width:220px;background:#111015;color:#fff;border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:4px}.qsrme .dataset-card span{font-size:12px;color:#aaa6b2}.qsrme .dataset-card strong{font-size:20px}.qsrme .panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.qsrme .controls{display:flex;align-items:end;gap:16px;padding:18px;margin-bottom:22px;flex-wrap:wrap}.qsrme .control-group{display:flex;flex-direction:column;gap:7px;min-width:190px}.qsrme .grow{flex:1}.qsrme .control-group label{font-size:12px;font-weight:800}.qsrme .control-group input, .qsrme .control-group select, .qsrme .criteria-tools input, .qsrme .criteria-tools select, .qsrme .compare-controls select{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 13px;font:inherit;outline:none}.qsrme .control-group input:focus, .qsrme .control-group select:focus, .qsrme .criteria-tools input:focus, .qsrme .criteria-tools select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(107,43,217,.1)}.qsrme .btn{border:0;border-radius:12px;padding:12px 16px;font-weight:800;cursor:pointer;font:inherit}.qsrme .btn.primary{background:var(--accent);color:#fff}.qsrme .btn.secondary{background:#ebe5f8;color:#3e1a7b}.qsrme .btn.ghost{background:transparent;border:1px solid #504e57;color:inherit}.qsrme .segmented{background:#efebe5;border-radius:12px;padding:4px;display:flex}.qsrme .seg{border:0;background:transparent;padding:9px 14px;border-radius:9px;font-weight:800;cursor:pointer}.qsrme .seg.active{background:#111015;color:#fff}.qsrme .viz-grid{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(300px,.8fr);gap:22px}.qsrme .viz-panel{padding:20px;min-height:640px}.qsrme .panel-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:3px 4px 10px}.qsrme .panel-head h2{margin:0;font-size:28px;letter-spacing:-.03em}.qsrme .legend{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.qsrme .legend-gradient{width:150px;height:9px;border-radius:10px;background:linear-gradient(90deg,#d84b4b,#f2a23c,#f4da57,#8bc65b,#19a976)}.qsrme .chart{width:100%;height:clamp(680px,76vh,920px)}.qsrme .hidden{display:none!important}.qsrme .country-card{padding:24px;min-height:640px;overflow:auto}.qsrme .empty-state{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted)}.qsrme .empty-icon{width:56px;height:56px;border-radius:50%;background:#f0ecf7;color:var(--accent);display:grid;place-items:center;font-size:25px;margin-bottom:12px}.qsrme .country-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.qsrme .country-head h2{font-size:34px;margin:0;letter-spacing:-.04em}.qsrme .score-ring{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:900;background:conic-gradient(var(--ring) calc(var(--score)*1%),#ece9e4 0);position:relative}.qsrme .score-ring:after{content:"";position:absolute;width:62px;height:62px;border-radius:50%;background:#fff}.qsrme .score-ring span{position:relative;z-index:1}.qsrme .meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.qsrme .mini-stat{border:1px solid var(--line);border-radius:14px;padding:12px}.qsrme .mini-stat span{font-size:11px;color:var(--muted);display:block}.qsrme .mini-stat strong{font-size:18px}.qsrme .country-categories{display:flex;flex-direction:column;gap:10px}.qsrme .cat-row{display:grid;grid-template-columns:1fr 52px;gap:12px;align-items:center}.qsrme .cat-bar{height:8px;background:#eeeae4;border-radius:10px;overflow:hidden;margin-top:5px}.qsrme .cat-bar i{display:block;height:100%;background:var(--accent);border-radius:10px}.qsrme .stats-panel, .qsrme .criteria-panel{margin-top:22px;padding:20px}.qsrme .category-cards{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:12px;overflow-x:auto}.qsrme .category-card{border:1px solid var(--line);border-radius:15px;padding:16px;cursor:pointer;transition:.18s}.qsrme .category-card:hover{transform:translateY(-2px);border-color:#b8afc9}.qsrme .category-card strong{font-size:26px;display:block;margin-top:8px}.qsrme .category-card span{font-size:12px;color:var(--muted)}.qsrme .criteria-head{align-items:end}.qsrme .criteria-tools{display:flex;gap:10px;min-width:min(520px,100%)}.qsrme .table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}.qsrme .table-wrap table{width:100%;border-collapse:collapse;font-size:13px}.qsrme .table-wrap th{position:sticky;top:0;background:#f0ede8;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.08em;padding:12px;white-space:nowrap}.qsrme .table-wrap td{padding:12px;border-top:1px solid var(--line);vertical-align:top;min-width:120px}.qsrme .status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800}.qsrme .status.yes{background:#dff6ec;color:#087d58}.qsrme .status.partial{background:#fff1cc;color:#866300}.qsrme .status.no{background:#fde2e2;color:#9b2626}.qsrme .dialog{border:0;padding:0;background:transparent;width:min(900px,94vw);max-height:92vh}.qsrme .dialog::backdrop{background:rgba(13,12,16,.58);backdrop-filter:blur(4px)}.qsrme .dialog.wide{width:min(1250px,96vw)}.qsrme .dialog-card{background:#fff;border-radius:22px;padding:24px;max-height:90vh;overflow:auto}.qsrme .dialog-head{display:flex;justify-content:space-between;align-items:start}.qsrme .dialog-head h2{margin:0}.qsrme .icon-btn{border:0;background:#efebe5;border-radius:50%;width:38px;height:38px;font-size:24px;cursor:pointer}.qsrme .muted{color:var(--muted)}.qsrme .file-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed #cfc7d9;border-radius:16px;padding:28px;margin:20px 0;cursor:pointer;background:#faf8fc}.qsrme .file-drop input{display:none}.qsrme .mapping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.qsrme .mapping-item label{font-size:11px;font-weight:800;display:block;margin-bottom:5px}.qsrme .mapping-item select{width:100%;padding:10px;border:1px solid var(--line);border-radius:10px}.qsrme .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.qsrme .compare-controls{display:flex;gap:10px;margin:18px 0}.qsrme .compare-controls select{flex:1}.qsrme .chips{display:flex;gap:8px;flex-wrap:wrap}.qsrme .chip{background:#f0ecf7;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}.qsrme .chip button{border:0;background:transparent;cursor:pointer}.qsrme .compare-chart{height:380px}.qsrme .qsrme-source{padding:30px 4vw;background:#111015;color:#c9c5cf;font-size:12px;text-align:center;line-height:1.6}.qsrme .qsrme-source p{max-width:1050px;margin:6px auto}.qsrme .qsrme-source a{color:#fff;text-decoration:underline;text-underline-offset:3px}@media(max-width:1000px){.qsrme .viz-grid{grid-template-columns:1fr}.qsrme .country-card{min-height:auto}.qsrme .category-cards{grid-template-columns:repeat(4,minmax(150px,1fr))}.qsrme .hero{align-items:flex-start;flex-direction:column}.qsrme .dataset-card{width:100%}}@media(max-width:680px){.qsrme .topbar{height:auto;padding:14px 4vw;gap:10px;align-items:flex-start}.qsrme .top-actions{flex-wrap:wrap;justify-content:flex-end}.qsrme .hero h1{font-size:42px}.qsrme .controls{align-items:stretch}.qsrme .control-group, .qsrme .segmented, .qsrme .btn{width:100%}.qsrme .segmented .seg{flex:1}.qsrme .criteria-head{align-items:flex-start;flex-direction:column}.qsrme .criteria-tools{flex-direction:column;width:100%;min-width:0}.qsrme .category-cards{grid-template-columns:repeat(2,minmax(150px,1fr))}.qsrme .mapping-grid{grid-template-columns:1fr}.qsrme .chart{height:560px}}

.qsrme{max-width:1500px;margin:0 auto;padding:34px 0 70px;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.qsrme .qsrme-notice{padding:14px 16px;border-radius:12px;margin:0 0 20px;background:#fff1cc;color:#6f5100;border:1px solid #ead287}
.qsrme .qsrme-detail-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;flex-wrap:wrap}.qsrme .qsrme-detail-toggle{white-space:nowrap}.qsrme .qsrme-details-collapsed .qsrme-detailed-content,.qsrme .qsrme-details-collapsed [data-role="detailed-tools"]{display:none!important}@media(max-width:680px){.qsrme .qsrme-detail-actions{width:100%;align-items:stretch;flex-direction:column}.qsrme .qsrme-detail-toggle{width:100%}}


/* v1.6.1 — large map with restored background and country detail panel */
.qsrme .qsrme-map-only-hidden{display:none!important}
.qsrme{max-width:none;width:100%;padding:20px 0 70px;background:var(--bg)}
.qsrme .qsrme-map-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,390px);gap:18px;width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:0 18px;align-items:stretch}
.qsrme .qsrme-map-panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:0;margin:0;background:#fff;width:100%;min-width:0;overflow:hidden}
.qsrme .qsrme-map-panel-head{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.qsrme [data-role="map-view"].chart{display:block!important;visibility:visible!important;width:100%;height:clamp(540px,72vh,860px);min-height:540px;margin:0;padding:0;background:#fff}
.qsrme [data-role="bar-view"]{display:none!important}
.qsrme .qsrme-country-detail-panel{display:block!important;visibility:visible!important;background:#fff;min-height:540px;height:clamp(540px,72vh,860px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.qsrme .qsrme-source{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);margin-top:18px}
@media(max-width:1000px){
  .qsrme .qsrme-map-stage{grid-template-columns:1fr;padding:0 14px}
  .qsrme .qsrme-country-detail-panel{height:auto;min-height:280px;max-height:none}
}
@media(max-width:680px){
  .qsrme{padding-top:12px}
  .qsrme .qsrme-map-stage{padding:0 10px;gap:12px}
  .qsrme [data-role="map-view"].chart{height:58vh;min-height:400px}
  .qsrme .qsrme-country-detail-panel{min-height:240px;padding:18px}
}

/* v1.6.6 — antimeridian clipping is handled by Plotly geo bounds in JavaScript. */


/* v1.6.7 — equal-height desktop map + country detail without internal scrolling */
@media (min-width:1001px){
  .qsrme .qsrme-map-stage{
    align-items:stretch;
  }
  .qsrme .qsrme-map-panel{
    display:flex;
    flex-direction:column;
    height:auto;
    min-height:clamp(540px,72vh,860px);
  }
  .qsrme [data-role="map-view"].chart{
    flex:1 1 auto;
    height:auto;
    min-height:clamp(540px,72vh,860px);
  }
  .qsrme .qsrme-country-detail-panel{
    height:auto;
    min-height:clamp(540px,72vh,860px);
    max-height:none;
    overflow:visible;
  }
}

/* v1.9.0 — visible 0–100 score legend and separate country data summary */
.qsrme .qsrme-map-panel-head{
  position:relative!important;
  width:auto!important;
  height:auto!important;
  min-height:40px!important;
  padding:10px 16px 4px!important;
  margin:0!important;
  overflow:visible!important;
  clip:auto!important;
  white-space:normal!important;
  border:0!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  background:#fff;
  z-index:2;
}
.qsrme .qsrme-map-panel-head>div:first-child{display:none!important}
.qsrme .qsrme-map-panel-head .legend{display:flex!important;font-size:12px;gap:9px;color:#5f5f66}
.qsrme .qsrme-map-panel-head .legend-gradient{width:190px;height:11px}
.qsrme .qsrme-country-summary-panel{margin:18px 18px 0;padding:20px 22px}
.qsrme .qsrme-country-summary-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.qsrme .qsrme-country-summary-head h3{margin:0;font-size:24px}
.qsrme .qsrme-country-summary-grid{grid-template-columns:repeat(4,minmax(120px,1fr));margin:16px 0 0}
@media(max-width:680px){
  .qsrme .qsrme-map-panel-head{justify-content:center!important}
  .qsrme .qsrme-map-panel-head .legend-gradient{width:150px}
  .qsrme .qsrme-country-summary-panel{margin:12px 10px 0;padding:16px}
  .qsrme .qsrme-country-summary-head{align-items:flex-start;flex-direction:column}
  .qsrme .qsrme-country-summary-grid{grid-template-columns:1fr 1fr}
}

/* v1.9.1 — visible comparison controls, restored country counts and public dataset card */
.qsrme .qsrme-map-actions{
  width:100vw;
  max-width:none;
  margin:0 0 12px calc(50% - 50vw);
  padding:0 18px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
}
.qsrme .qsrme-compare-button{width:auto;min-width:190px}
.qsrme .qsrme-compare-hint{font-size:12px;color:var(--muted)}
.qsrme .qsrme-country-inline-stats{margin:18px 0 22px}
.qsrme .qsrme-dataset-public-card{
  width:min(1180px,calc(100% - 36px));
  margin:24px auto 0;
  padding:20px 24px;
  border-radius:18px;
  background:#111015;
  color:#fff;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:5px;
}
.qsrme .qsrme-dataset-public-card .dataset-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#bcb5c8}
.qsrme .qsrme-dataset-public-card strong{font-size:20px;line-height:1.25}
.qsrme .qsrme-dataset-public-card span[data-role="dataset-meta"]{font-size:12px;color:#d7d2dc}
.qsrme .qsrme-dataset-source-link{display:inline-block;margin-top:6px;color:#fff!important;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.qsrme .qsrme-compare-instruction{margin:8px 0 14px;color:var(--muted)}
.qsrme .qsrme-compare-country-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px;max-height:240px;overflow:auto;padding:4px;margin-bottom:14px}
.qsrme .qsrme-compare-country{appearance:none;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;text-align:left;font-weight:700;cursor:pointer;transition:.15s ease}
.qsrme .qsrme-compare-country:hover:not(:disabled){border-color:#8e63c7;transform:translateY(-1px)}
.qsrme .qsrme-compare-country.is-selected{background:#f0e8fb;border-color:#6b2cbf;color:#4d1492;box-shadow:inset 0 0 0 1px #6b2cbf}
.qsrme .qsrme-compare-country:disabled{opacity:.42;cursor:not-allowed}
.qsrme .qsrme-compare-chips{margin:6px 0 14px}
.qsrme .qsrme-compare-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px;margin:12px 0 18px}
.qsrme .qsrme-compare-summary-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fff}
.qsrme .qsrme-compare-summary-card h3{margin:0 0 5px;font-size:18px}
.qsrme .qsrme-compare-overall{font-size:30px;font-weight:900;margin-bottom:10px}
.qsrme .qsrme-compare-summary-card .meta-grid{margin:8px 0 0}
.qsrme .qsrme-compare-table-wrap{max-height:50vh}
.qsrme .qsrme-compare-cell{display:flex;flex-direction:column;gap:5px;min-width:180px}
.qsrme .qsrme-compare-cell small{display:block;line-height:1.35;color:#595660}
@media(max-width:900px){
  .qsrme .qsrme-map-actions{justify-content:space-between;flex-wrap:wrap;padding:0 14px}
  .qsrme .qsrme-compare-country-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}
  .qsrme .qsrme-compare-summary-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .qsrme .qsrme-map-actions{padding:0 10px}
  .qsrme .qsrme-compare-button{width:100%}
  .qsrme .qsrme-compare-hint{width:100%}
  .qsrme .qsrme-compare-country-grid{grid-template-columns:1fr}
  .qsrme .qsrme-dataset-public-card{width:calc(100% - 20px);padding:18px}
}


/* v2.2.6 — attribution and disclaimer integrated into the dataset card */
.qsrme .qsrme-dataset-disclaimer{
  margin-top:12px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.14);
  color:#d7d2dc;
  font-size:12px;
  line-height:1.6;
}
.qsrme .qsrme-dataset-disclaimer p{margin:0 0 8px;max-width:1050px}
.qsrme .qsrme-dataset-disclaimer p:last-child{margin-bottom:0}


/* v2.2.8 — editable About popup beside Compare Countries */
.qsrme .qsrme-map-actions{justify-content:space-between}
.qsrme .qsrme-map-action-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
.qsrme .qsrme-about-button{min-width:190px}
.qsrme .qsrme-about-dialog{width:min(900px,calc(100vw - 32px));max-width:900px;padding:0;border:0;background:transparent}
.qsrme .qsrme-about-dialog::backdrop{background:rgba(13,11,17,.68);backdrop-filter:blur(2px)}
.qsrme .qsrme-about-dialog-card{width:100%;max-height:min(84vh,900px);overflow:auto}
.qsrme .qsrme-about-content{font-size:15px;line-height:1.7;color:#2e2b33}
.qsrme .qsrme-about-content p{margin:0 0 16px}
.qsrme .qsrme-about-content p:last-child{margin-bottom:0}
.qsrme .qsrme-about-content a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){.qsrme .qsrme-map-actions{justify-content:flex-start}.qsrme .qsrme-map-action-buttons{margin-left:0}.qsrme .qsrme-compare-hint{width:100%}}
@media(max-width:680px){.qsrme .qsrme-map-action-buttons{width:100%;display:grid;grid-template-columns:1fr}.qsrme .qsrme-about-button,.qsrme .qsrme-compare-button{width:100%;min-width:0}.qsrme .qsrme-about-dialog{width:calc(100vw - 18px)}.qsrme .qsrme-about-dialog-card{max-height:90vh}}

/* v2.2.9 – keep Compare Countries content readable on white modal backgrounds. */
.qsrme .dialog[data-role="compare-dialog"],
.qsrme .dialog[data-role="compare-dialog"] .dialog-card,
.qsrme .dialog[data-role="compare-dialog"] .dialog-body,
.qsrme .dialog[data-role="compare-dialog"] p,
.qsrme .dialog[data-role="compare-dialog"] h2,
.qsrme .dialog[data-role="compare-dialog"] h3,
.qsrme .dialog[data-role="compare-dialog"] span,
.qsrme .dialog[data-role="compare-dialog"] strong,
.qsrme .dialog[data-role="compare-dialog"] th,
.qsrme .dialog[data-role="compare-dialog"] td,
.qsrme .dialog[data-role="compare-dialog"] label {color:#111 !important;}
.qsrme .dialog[data-role="compare-dialog"] a,
.qsrme .dialog[data-role="compare-dialog"] a:visited,
.qsrme .dialog[data-role="compare-dialog"] a:hover,
.qsrme .dialog[data-role="compare-dialog"] a:focus {color:#000 !important;text-decoration:underline;}
.qsrme .qsrme-compare-country,
.qsrme .qsrme-compare-country:visited,
.qsrme .qsrme-compare-country:hover:not(:disabled),
.qsrme .qsrme-compare-country:focus,
.qsrme .qsrme-compare-country.is-selected {color:#000 !important;}
.qsrme .qsrme-compare-country.is-selected {font-weight:800;}

/* v3.0.1 — readable About links and centered primary actions */
.qsrme .qsrme-about-content a,
.qsrme .qsrme-about-content a:link,
.qsrme .qsrme-about-content a:visited,
.qsrme .qsrme-about-content a:hover,
.qsrme .qsrme-about-content a:focus,
.qsrme .qsrme-about-content a:active {
  color:#000 !important;
  -webkit-text-fill-color:#000 !important;
  text-decoration:underline !important;
  text-underline-offset:3px;
  opacity:1 !important;
}
.qsrme .qsrme-map-actions{
  justify-content:center !important;
  flex-wrap:wrap;
  text-align:center;
}
.qsrme .qsrme-map-action-buttons{
  margin-left:0 !important;
  justify-content:center;
}
.qsrme .qsrme-compare-hint{
  flex:0 0 100%;
  width:100%;
  text-align:center;
  margin-top:2px;
}
@media(max-width:900px){
  .qsrme .qsrme-map-actions{justify-content:center !important;}
  .qsrme .qsrme-map-action-buttons{margin-left:0 !important;justify-content:center;}
  .qsrme .qsrme-compare-hint{text-align:center;}
}


/* v3.1.3 — dedicated app/WebView layout.
   Important: never use the website's full-bleed 100vw breakout inside an app WebView. */
.qsrme.qsrme-app{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:10px 10px 28px !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
}
.qsrme.qsrme-app .qsrme-map-actions,
.qsrme.qsrme-app .qsrme-map-stage,
.qsrme.qsrme-app .qsrme-source{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.qsrme.qsrme-app .qsrme-map-actions{padding:0 0 10px !important;}
.qsrme.qsrme-app .qsrme-map-stage{
  grid-template-columns:minmax(0,1fr) !important;
  gap:12px !important;
  padding:0 !important;
}
.qsrme.qsrme-app .qsrme-map-panel,
.qsrme.qsrme-app .qsrme-country-detail-panel,
.qsrme.qsrme-app .qsrme-country-summary-panel,
.qsrme.qsrme-app .stats-panel,
.qsrme.qsrme-app .criteria-panel{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
.qsrme.qsrme-app [data-role="map-view"].chart{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  height:clamp(360px,52vh,560px) !important;
  min-height:360px !important;
}
.qsrme.qsrme-app [data-role="map-view"] .plot-container,
.qsrme.qsrme-app [data-role="map-view"] .svg-container,
.qsrme.qsrme-app [data-role="map-view"] .main-svg{
  max-width:100% !important;
}
.qsrme.qsrme-app .qsrme-country-detail-panel{
  height:auto !important;
  min-height:220px !important;
  max-height:none !important;
  overflow:visible !important;
  padding:16px !important;
}
.qsrme.qsrme-app .qsrme-country-summary-panel{margin:12px 0 0 !important;}
.qsrme.qsrme-app .qsrme-source{margin-top:12px !important;padding:20px 14px !important;}
.qsrme.qsrme-app .qsrme-map-action-buttons{
  width:100% !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
}
.qsrme.qsrme-app .qsrme-about-button,
.qsrme.qsrme-app .qsrme-compare-button{width:100% !important;min-width:0 !important;}
.qsrme.qsrme-app .category-cards,
.qsrme.qsrme-app .table-wrap{max-width:100% !important;}
.qsrme.qsrme-app dialog,
.qsrme.qsrme-app .dialog,
.qsrme.qsrme-app .qsrme-about-dialog{
  width:calc(100% - 16px) !important;
  max-width:calc(100% - 16px) !important;
}
@media(max-width:680px){
  .qsrme.qsrme-app{padding:8px 8px 24px !important;}
  .qsrme.qsrme-app .qsrme-map-action-buttons{grid-template-columns:1fr !important;}
  .qsrme.qsrme-app .panel{border-radius:12px;}
  .qsrme.qsrme-app .qsrme-map-panel-head{gap:8px;align-items:center;}
  .qsrme.qsrme-app .qsrme-map-panel-head .legend-gradient{width:min(140px,38vw);}
  .qsrme.qsrme-app [data-role="map-view"].chart{height:48vh !important;min-height:340px !important;}
  .qsrme.qsrme-app .country-head h2{font-size:28px;}
}


/* v3.1.4 — compact app height. The app WebView must size from content,
   not from viewport-relative heights or desktop minimum heights. */
.qsrme.qsrme-app{
  padding-bottom:12px !important;
}
.qsrme.qsrme-app .qsrme-map-panel{
  min-height:0 !important;
  padding:12px !important;
}
.qsrme.qsrme-app [data-role="map-view"].chart{
  height:300px !important;
  min-height:0 !important;
  max-height:300px !important;
}
.qsrme.qsrme-app [data-role="bar-view"].chart{
  min-height:0 !important;
  max-height:420px !important;
  overflow:auto !important;
}
.qsrme.qsrme-app .qsrme-country-detail-panel{
  min-height:0 !important;
  max-height:300px !important;
  overflow:auto !important;
}
.qsrme.qsrme-app .qsrme-country-detail-panel .empty-state{
  min-height:120px !important;
  height:auto !important;
  padding:18px 10px !important;
}
.qsrme.qsrme-app .stats-panel,
.qsrme.qsrme-app .criteria-panel{
  min-height:0 !important;
}
@media(max-width:680px){
  .qsrme.qsrme-app [data-role="map-view"].chart{
    height:270px !important;
    max-height:270px !important;
    min-height:0 !important;
  }
  .qsrme.qsrme-app .qsrme-country-detail-panel{
    max-height:260px !important;
  }
}
@media(max-width:420px){
  .qsrme.qsrme-app [data-role="map-view"].chart{
    height:245px !important;
    max-height:245px !important;
  }
}

/* v3.1.5 — app country detail must expand to show all information without an inner scrollbar. */
.qsrme.qsrme-app .qsrme-country-detail-panel{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  overflow-y:visible !important;
}
@media(max-width:680px){
  .qsrme.qsrme-app .qsrme-country-detail-panel{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    overflow-y:visible !important;
  }
}


/* v3.1.6 — app country information panel: full website-style content area.
   The panel itself and its grid ancestors may never clip or internally scroll. */
.qsrme.qsrme-app .qsrme-map-stage{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  align-items:start !important;
}
.qsrme.qsrme-app .qsrme-country-detail-panel,
.qsrme.qsrme-app [data-role="country-card"]{
  display:block !important;
  position:relative !important;
  height:auto !important;
  min-height:620px !important;
  max-height:none !important;
  overflow:visible !important;
  overflow-x:visible !important;
  overflow-y:visible !important;
  contain:none !important;
  align-self:start !important;
}
.qsrme.qsrme-app .qsrme-country-detail-panel .country-categories,
.qsrme.qsrme-app .qsrme-country-detail-panel .meta-grid,
.qsrme.qsrme-app .qsrme-country-detail-panel .country-head{
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
}
.qsrme.qsrme-app .qsrme-country-detail-panel .country-categories{
  display:flex !important;
  flex-direction:column !important;
}
@media(max-width:680px){
  .qsrme.qsrme-app .qsrme-country-detail-panel,
  .qsrme.qsrme-app [data-role="country-card"]{
    min-height:620px !important;
    max-height:none !important;
    overflow:visible !important;
  }
}


/* v3.2.6 — app-home keeps JS-required controls in the DOM but removes them visually.
   This preserves map initialization while presenting only the map and country information. */
.qsrme.qsrme-app-home .qsrme-map-actions,
.qsrme.qsrme-app-home [data-role="about-dialog"],
.qsrme.qsrme-app-home [data-role="compare-dialog"],
.qsrme.qsrme-app-home .qsrme-dataset-public-card {
  display:none !important;
}
