
  .ag-szosztaly {
    --tinta: #1f3b33; --kiemel: #b5832f;
    --betu: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
    max-width: 1000px; margin: 0 auto; box-sizing: border-box;
    font-family: var(--betu); color: #1f2933; font-size: 17px; line-height: 1.5;
  }

  /* ---------- polc-grafikon ---------- */
  .ag-polcok {
    max-width: 900px; margin: 0 auto; padding: 22px 22px 18px; border-radius: 14px;
    background: linear-gradient(180deg, #fbf6ec, #f4ead8); box-shadow: inset 0 0 0 1px #eadcc2;
  }
  .ag-polc { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: end; margin-bottom: 20px; }
  .ag-polc:last-of-type { margin-bottom: 8px; }
  .ag-polc__nev { text-align: right; line-height: 1.2; padding-bottom: 12px; }
  .ag-polc__nev b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--tinta); }
  .ag-polc__nev small { display: block; font-size: .82rem; color: #4b6a60; }
  .ag-polc__nev span { display: block; font-size: .85rem; font-weight: 700; color: var(--kiemel); }
  .ag-polc__deszka { position: relative; padding: 0 10px; border-bottom: 11px solid #9a6b35; border-radius: 0 0 3px 3px;
    box-shadow: 0 4px 0 #6e4a22, 0 10px 12px -6px rgba(60,35,10,.35); }
  .ag-polc__deszka::before, .ag-polc__deszka::after {          /* polctartó konzolok */
    content: ""; position: absolute; bottom: -26px; width: 10px; height: 16px; background: #7d858a; border-radius: 0 0 4px 4px;
  }
  .ag-polc__deszka::before { left: 14%; } .ag-polc__deszka::after { right: 14%; }
  .ag-polc__targyak { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3px 4px; min-height: 40px; }
  .ag-t { display: block; width: 26px; height: 32px; flex: none; transform-origin: 50% 100%;
    animation: ag-kel .5s cubic-bezier(.34,1.5,.64,1) both; animation-delay: calc(var(--k) * 55ms); }
  .ag-t svg { display: block; width: 100%; height: 100%; }
  .ag-polcok:not(.indul) .ag-t { animation-play-state: paused; }   /* csak láthatóvá váláskor indul */
  @keyframes ag-kel { from { transform: translateY(10px) scale(.15); opacity: 0; } to { transform: none; opacity: 1; } }
  .ag-polc__jel { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .9rem; color: #4b6a60; }
  .ag-polc__jel li { display: flex; align-items: center; gap: 6px; }
  .ag-polc__jel .ag-t { width: 18px; height: 22px; animation: none; }

  /* ---------- számláló-oszlopok (az iskolai oldallal azonos) ---------- */
  .ag-oszlopok { display: flex; justify-content: center; align-items: flex-end; gap: 22px; margin: 26px 0 30px; }
  .ag-oszlop {
    position: relative; isolation: isolate; overflow: hidden;
    width: 150px; height: 200px; box-sizing: border-box; padding: 16px 10px;
    display: flex; flex-direction: column; justify-content: flex-end; text-align: center;
    border-radius: 18px; background: var(--ures); border: 3px solid #fff;
    box-shadow: 0 5px 0 var(--arny), 0 12px 22px rgba(0,0,0,.12);
    color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.15;
    --tolt: 100%;                                  /* a script 0%-ról tölti fel */
  }
  .ag-oszlop::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--tolt);
    background: linear-gradient(180deg, var(--t1), var(--t2)); z-index: -1; }
  .ag-oszlop b { display: block; font-size: 3.2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 4px rgba(0,0,0,.25); }
  .ag-oszlop--zold { --ures: #e3ebe7; --t1: #3f6f60; --t2: #1f3b33; --arny: #16302a; height: 112px; }
  .ag-oszlop--fa   { --ures: #f1e8da; --t1: #b5832f; --t2: #7d5428; --arny: #5e3e1b; }

  /* ---------- osztálykártyák ---------- */
  .ag-szo-kartyak { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; align-items: start; }
  .ag-szo { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 6px;
    /* a szakma színe alsó "peremként" (mint a számláló-oszlopoknál), nem csíkként a kártya tetején */
    box-shadow: 0 0 0 2px var(--keret), 0 6px 0 var(--szin), 0 14px 24px rgba(0,0,0,.13); }   /* halvány színes körvonal + alsó perem */
  .ag-szo summary { background: linear-gradient(90deg, var(--hatter), #fff 65%); }            /* a fejléc bal széle a szakma színével árnyalt */
  .ag-szo summary { display: flex; align-items: center; gap: 12px; min-height: 102px; box-sizing: border-box; padding: 14px 16px; cursor: pointer; list-style: none; }
  .ag-szo summary::-webkit-details-marker { display: none; }
  .ag-szo summary:focus-visible { outline: 3px solid #f2d16b; outline-offset: -3px; }
  .ag-szo__ikon { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--hatter); display: grid; place-items: center; }
  .ag-szo__ikon .ag-t { width: 30px; height: 36px; animation: none; }
  .ag-szo__nev { flex: 1; min-width: 0; font-weight: 800; color: var(--tinta); line-height: 1.25; }
  .ag-szo__nev small { display: block; font-weight: 600; font-size: .9rem; color: #4b6a60; }
  .ag-szo__fo { display: flex; align-items: center; gap: 8px; flex: none; font-weight: 800; color: var(--tinta); }
  .ag-szo__nyil { width: 14px; height: 14px; transition: transform .2s; }
  .ag-szo[open] .ag-szo__nyil { transform: rotate(180deg); }
  .ag-szo__test { padding: 4px 16px 16px; display: grid; gap: 10px; border-top: 1px dashed #e5dccb; padding-top: 12px; }
  .ag-szem { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .ag-szem img, .ag-szem .ag-mono { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; }
  .ag-szem .ag-mono { display: grid; place-items: center; background: #e3efe6; color: #2d5a43; font-weight: 800; }
  .ag-szem b { display: block; color: var(--tinta); overflow-wrap: anywhere; }
  .ag-szem i { display: block; font-style: normal; font-size: .9rem; color: #4b6a60; }
  .ag-szo--alma  { --szin: #cd4842; --hatter: #fde6dc; --keret: #f1c2bb; }
  .ag-szo--park  { --szin: #4a8a60; --hatter: #e3efe6; --keret: #bcd8c4; }
  .ag-szo--bogre { --szin: #3f86c6; --hatter: #dceaf6; --keret: #bcd5ec; }

  @media (max-width: 760px) { .ag-szo-kartyak { grid-template-columns: 1fr; } }
  @media (max-width: 640px) {
    .ag-szosztaly { font-size: 16px; }
    .ag-polcok { padding: 16px 12px 14px; }
    .ag-polc { grid-template-columns: 1fr; gap: 4px; }
    .ag-polc__nev { text-align: left; padding: 0 0 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
    .ag-polc__nev b, .ag-polc__nev small, .ag-polc__nev span { display: inline; }
    .ag-t { width: 22px; height: 28px; }
    .ag-oszlop { width: 136px; height: 180px; } .ag-oszlop--zold { height: 104px; } .ag-oszlop b { font-size: 2.7rem; }
  }
  @media (prefers-reduced-motion: reduce) { .ag-t { animation: none; } .ag-szo__nyil { transition: none; } }

  /* 2026-10-21: a polc-grafikon csak ELREJTVE van (nem törölve), elég a két számláló-oszlop (az óvodai mintára).
     Visszakapcsolás: töröld a következő sort (és a scriptben az io.observe sort állítsd vissza polc-ra, ha kell). */
  .ag-polcok { display: none !important; }
  .ag-oszlopok { margin-top: 8px; }
