/* EcoForWorld KVKS v3.0 — Carta tabs, streak chip, class badge, demo note */
.eco-carta-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:14px;background:var(--eco-soft);margin:2px 0 12px}
.eco-carta-tabs button{min-height:38px;padding:0 16px;border:0;border-radius:11px;background:transparent;color:var(--eco-muted);font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.eco-carta-tabs button[aria-selected="true"]{background:var(--eco-paper,#fff);color:#1f6b4f;box-shadow:0 1px 3px rgba(0,0,0,.08)}
body.heritage-dark .eco-carta-tabs button[aria-selected="true"]{background:#2a4a3a;color:#d9f7b8}
.eco-carta-fire{display:inline-block;margin-left:4px;padding:0 6px;border-radius:99px;background:#fff1de;color:#a3410a;font-weight:800;font-size:11px;line-height:18px}
body.heritage-dark .eco-carta-fire{background:#4a2f12;color:#ffd2a0}
.eco-carta-cls{display:grid!important;place-items:center;border-radius:14px;background:linear-gradient(135deg,#d3efbd,#b9e3f0);color:#1f4a37;font-weight:900;font-size:13px;letter-spacing:.02em}
body.heritage-dark .eco-carta-cls{background:linear-gradient(135deg,#2e4a2a,#1f3d4a);color:#d9f7b8}
.eco-carta-demo{margin:10px 2px 0;font-size:12px;color:var(--eco-muted)}

/* Admin: Data demo card */
.ins-demo-card{margin:16px 0;padding:18px 20px;border-radius:20px;background:linear-gradient(135deg,#fff8e6,#f1fae6);border:1px solid #ecdcae}
body.heritage-dark .ins-demo-card{background:linear-gradient(135deg,#3a3016,#1f3a28);border-color:#5b4c22}
.ins-demo-card h3{margin:2px 0 6px;display:flex;align-items:center;gap:8px}
.dm-on,.dm-off{font-size:11px;font-weight:900;letter-spacing:.06em;padding:3px 9px;border-radius:99px}
.dm-on{background:#1f6b4f;color:#fff}.dm-off{background:#e5e7e3;color:#55605a}
.dm-kpi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.dm-kpi div{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.7)}body.heritage-dark .dm-kpi div{background:rgba(0,0,0,.2)}
.dm-kpi strong{display:block;font-size:20px}.dm-kpi span{font-size:12px;color:var(--eco-muted)}
.dm-juri{display:grid;gap:4px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.7);margin-bottom:12px}
body.heritage-dark .dm-juri{background:rgba(0,0,0,.2)}
.dm-juri .eco-eyebrow{margin:0}.dm-juri code{font-size:15px;font-weight:700;user-select:all;overflow-wrap:anywhere}.dm-juri small{color:var(--eco-muted);line-height:1.45}
.dm-actions{display:flex;flex-wrap:wrap;gap:10px}.dm-actions button{min-height:44px}
.dm-msg{margin:10px 0 0;font-weight:700}

/* Header: BM/EN + theme buttons, visible on every screen size */
.eco-lang-switch{display:inline-flex;align-items:center;gap:2px;height:38px;padding:3px;border-radius:12px;border:1px solid var(--eco-line);background:var(--eco-soft);cursor:pointer;font:inherit;flex:none}
.eco-lang-switch span{display:grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border-radius:9px;font-size:12px;font-weight:800;letter-spacing:.03em;color:var(--eco-muted)}
.eco-lang-switch span.on{background:#1f6b4f;color:#fff}
body.heritage-dark .eco-lang-switch span.on{background:#b9ef74;color:#10291f}
.eco-lang-switch.is-floating{position:fixed;top:max(14px,env(safe-area-inset-top));right:14px;z-index:50;background:#fff}
body.heritage-dark .eco-lang-switch.is-floating{background:#1c2b24}
.eco-theme-btn{display:grid!important;place-items:center;flex:none}
.eco-theme-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.eco-theme-btn[data-ic="moon"] svg{fill:currentColor;stroke:none}
@media(max-width:860px){
  .eco-topbar .eco-toolbar{display:flex!important;align-items:center;gap:6px;margin-left:auto}
  .eco-topbar .eco-toolbar>*:not(.eco-lang-switch):not(#heritage-theme-switch){display:none!important}
  .eco-topbar.has-cobrand #heritage-theme-switch{width:38px;height:38px;border-radius:12px}
}
@media(max-width:400px){
  .eco-topbar.has-cobrand>div:nth-child(2){padding-left:12px}
  .eco-lang-switch span{min-width:26px;padding:0 4px}
  .eco-topbar.has-cobrand #heritage-theme-switch{width:36px;height:36px}
}

/* v3.0.2: dark-mode logo pill no longer pushes the title under the BM/EN switch */
@media(max-width:860px){
  body.heritage-dark .eco-topbar .eco-cobrand{padding:4px 7px;margin-right:10px;border-radius:10px}
  body.heritage-dark .eco-topbar .eco-cobrand img{height:28px!important}
  .eco-topbar.has-cobrand>div:nth-child(2){min-width:0;overflow:hidden}
  .eco-short-title{overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:400px){
  body.heritage-dark .eco-topbar .eco-cobrand{padding:3px 6px;margin-right:8px}
  body.heritage-dark .eco-topbar .eco-cobrand img{height:25px!important}
}
@media(max-width:400px){
  .eco-topbar .eco-cobrand{padding-right:8px}
  .eco-topbar .eco-cobrand img{height:27px!important}
  .eco-topbar.has-cobrand>div:nth-child(2){padding-left:9px}
  .eco-short-title{font-size:16px!important;letter-spacing:-.3px}
  .eco-topbar .eco-toolbar{gap:5px}
  .eco-lang-switch{height:36px}
  .eco-lang-switch span{height:28px;min-width:25px;padding:0 3px;font-size:11.5px}
}
