/* GRD-01: graduação por modalidade. Usa os componentes do app e do estoque (card, stats, list/item, tag, seg, sheet, stk-*) e acrescenta só o que é próprio. */
/* faixa desenhada com a cor configurada; graus como marcas na ponta */
.grd-belt { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: flex-end; width: 34px; height: 12px; border-radius: 3px;
  background: linear-gradient(180deg, var(--c) 0 50%, var(--c2) 50% 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.14); }
.grd-belt.lg { width: 64px; height: 16px; }
.grd-tab { display: inline-flex; gap: 2px; align-items: center; height: 100%; padding: 0 3px; margin-right: 6px; background: #1b1c1f; border-radius: 1px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.grd-tab i { display: block; width: 2px; height: 70%; background: rgba(255,255,255,.18); border-radius: 1px; }
.grd-tab i.on { background: #fff; }
.grd-belt.lg .grd-tab { margin-right: 10px; gap: 3px; padding: 0 4px; }
.grd-belt.lg .grd-tab i { width: 3px; }
/* linhas: registros e avaliações */
.grd-rec, .grd-ev { display: flex; align-items: flex-start; gap: 12px; }
.grd-rec > .grd-belt { margin-top: 4px; }
.grd-rec-b { flex: 1; min-width: 0; }
.grd-rec-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; }
.grd-rec-h b { font-weight: 500; }
.grd-rec-h a, .grd-rec-m a { color: var(--accent-fg); text-decoration: none; }
.grd-rec-m { margin-top: 2px; overflow-wrap: anywhere; }
.grd-rec.corrected .grd-rec-h > b, .grd-ev.corrected .grd-rec-h > b { text-decoration: line-through; text-decoration-color: var(--muted); }
.grd-note { margin: 6px 0 2px; font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.grd-scores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.grd-score { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 12.5px; color: var(--text-2); }
.grd-score b { color: var(--text); font-weight: 600; }
.grd-score em { flex-basis: 100%; font-style: normal; color: var(--muted); font-size: 12px; }
.grd-ev-a { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.grd-ev-a:empty { display: none; }
@media (max-width: 520px) {
  .grd-rec, .grd-ev { flex-wrap: wrap; }
  .grd-rec > .btn { margin-left: 46px; }
  .grd-ev-a { flex-direction: row; flex-wrap: wrap; width: 100%; align-items: center; }
}
/* visão geral */
.grd-period { margin: 0 0 8px; }
.grd-dist { margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.grd-dist-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.grd-dist-r { display: grid; grid-template-columns: 34px minmax(0, 7.5em) minmax(0, 1fr) 2.5em; align-items: center; gap: 10px; font-size: 13.5px; }
.grd-dist-r.off { opacity: .55; }
.grd-dist-r b { text-align: right; font-variant-numeric: tabular-nums; }
.grd-bar { height: 7px; border-radius: 99px; background: var(--track); overflow: hidden; }
.grd-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 99px; }
.grd-res { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.grd-res .tag b { margin-left: 4px; }
.grd-filters .input { min-width: 0; }
@media (max-width: 899px) { .grd-filters { align-items: end; } .grd-filters select:nth-of-type(odd):last-of-type { grid-column: 1 / -1; } .grd-filters .stk-date span { font-size: 12px; margin-bottom: 4px; } }
/* sistemas */
.grd-syslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.grd-sys { margin: 0; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.grd-sys.off { opacity: .65; }
.grd-chips { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.grd-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.grd-chip .grd-belt { width: 22px; height: 9px; }
.grd-level { display: flex; align-items: center; gap: 12px; }
.grd-level.off, .grd-crits .item.off { opacity: .6; }
.grd-level .grow, .grd-crits .grow { display: flex; flex-direction: column; min-width: 0; }
.grd-pos { flex: none; width: 1.6em; text-align: right; color: var(--muted); font-size: 12.5px; }
.grd-level-a { display: flex; align-items: center; gap: 2px; }
.grd-level-a .icon-btn:first-child svg, .grd-level-a .icon-btn:nth-child(2) svg { transform: rotate(90deg); }
.grd-level-a .icon-btn[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 520px) { .grd-level { flex-wrap: wrap; } .grd-level-a { width: 100%; justify-content: flex-end; } }
.grd-add { margin: 8px 0 14px; }
/* ficha do aluno */
.grd-evo-sec { margin-bottom: 18px; }
.grd-evo-empty { margin-top: 6px; }
.grd-enr { margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.grd-enr-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.grd-enr-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.grd-cur { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; }
.grd-cur b { font-family: var(--display); font-weight: 600; }
.grd-enr-a { display: flex; flex-wrap: wrap; gap: 6px; }
.grd-sup-l { margin: 0; }
.grd-support { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grd-support > span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 12px; color: var(--muted); min-width: 0; }
.grd-support b { font-size: 16px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 620px) { .grd-support { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grd-evo-sec > .section-title:first-child { margin-top: 4px; }
.grd-notes-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.grd-notes h3 { font-size: 13.5px; margin: 0; font-weight: 600; }
.grd-det { border-top: 1px solid var(--line); padding-top: 8px; }
.grd-det summary { cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 4px 0; list-style: none; }
.grd-det summary::-webkit-details-marker { display: none; }
.grd-det summary::before { content: '▸'; color: var(--muted); font-size: 11px; transition: transform .15s; }
.grd-det[open] summary::before { transform: rotate(90deg); }
.grd-det .list { margin-top: 6px; }
/* folhas */
.grd-now { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.grd-next { border-style: dashed; }
.grd-confirm { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--accent); font-size: 13.5px; }
.grd-confirm[hidden] { display: none; }
.grd-lvhead { display: none; }
.grd-lvrow { display: grid; grid-template-columns: minmax(0, 1fr) 46px 62px 36px; gap: 6px; padding: 3px 0; }
.grd-lvrow .input { padding-left: 9px; padding-right: 9px; }
@media (min-width: 520px) { .grd-lvhead { display: grid; grid-template-columns: minmax(0, 1fr) 46px 62px 36px; gap: 6px; margin-bottom: 4px; } }
.grd-color { padding: 3px; height: 40px; min-width: 46px; cursor: pointer; }
.grd-c2 { gap: 8px; align-items: center; }
.grd-c2 .grd-color { width: 46px; }
.grd-crit-f { display: flex; flex-direction: column; gap: 10px; }
.grd-crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.grd-crit b { font-size: 13.5px; font-weight: 500; }
.grd-crit .input { grid-column: 1 / -1; }
.grd-seg button { min-width: 36px; }
