/* ==========================================================
   Teste de Nível CGO — identidade visual
   Azul, grafite, vermelho, amarelo e verde do logotipo CGO
   ========================================================== */
:root {
  --blue: #0068B3;
  --blue-dark: #00508A;
  --blue-soft: #E6F0F9;
  --ink: #2F3133;
  --ink-2: #5B6168;
  --ink-3: #8A9097;
  --red: #E83237;
  --yellow: #F9C92B;
  --green: #00A15A;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --line: #E1E5EA;
  --line-2: #EEF1F4;

  /* escala de notas */
  --s0: #8A9097;
  --s5: #F2B300;
  --s10: #0068B3;
  --s15: #00A15A;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 41, 55, .06), 0 4px 14px rgba(31, 41, 55, .05);
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --nav-w: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 104, 179, .45); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* fita tricolor inspirada no logotipo */
.ribbon {
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--ink) 25% 50%, var(--red) 50% 75%, var(--yellow) 75% 88%, var(--green) 88% 100%);
}

/* ---------------- layout ---------------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--nav-w); background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20;
}
.sidebar .brand { padding: 22px 22px 14px; display: block; }
.sidebar .brand img { width: 128px; display: block; }
.sidebar .brand span { display: block; font: 700 .82rem var(--font-display); color: var(--ink-2); margin-top: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 600;
}
.nav a svg { width: 22px; height: 22px; flex: none; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a.active { background: var(--blue-soft); color: var(--blue); }
.sidebar .me { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; flex: none;
  display: grid; place-items: center; font: 700 .9rem var(--font-display);
}
.me .who { flex: 1; min-width: 0; line-height: 1.2; }
.me .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who small { color: var(--ink-3); }

.main { margin-left: var(--nav-w); min-height: 100vh; }
.topbar { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 28px 32px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; }
.bottom-nav { display: none; }

/* ---------------- botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: #C9D0D8; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.danger { color: var(--red); }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* ---------------- superfícies ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.card + .card { margin-top: 16px; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------------- chips de nível ---------------- */
.lvl {
  --lc: var(--ink-3); --lt: #fff;
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--lc); color: var(--lt); font: 800 .76rem var(--font-display); letter-spacing: .02em; white-space: nowrap;
}
.lvl.lg { height: 30px; padding: 0 14px; font-size: .9rem; }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: .78rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.tag.exp { background: #FFF4CC; color: #8A6500; }
.tag.rep { background: #E8E4FF; color: #4B3BB5; }
.tag.ins { background: #E0F5EA; color: #00703F; }
.tag.ok { background: #E0F5EA; color: #00703F; }
.tag.run { background: var(--blue-soft); color: var(--blue); }
.tag.off { background: var(--line-2); color: var(--ink-3); }
.tag.pub { background: #FFF0F0; color: #B4161B; }

/* ---------------- formulários ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 700; font-size: .92rem; }
.field small { color: var(--ink-3); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: #fff; outline: none;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 104, 179, .14); }
textarea.input { min-height: 90px; resize: vertical; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--ink-3); }
.search .input { padding-left: 42px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; margin: 8px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 46px; height: 26px; border-radius: 99px; background: #CBD2D9; position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid rgba(0,104,179,.45); outline-offset: 2px; }

/* abas / segmentos */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; cursor: pointer; color: var(--ink-2);
}
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.lvl-tab.active { background: var(--lc); border-color: var(--lc); color: var(--lt); }
.tab .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lc); margin-right: 6px; }
.tab.today::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: middle; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 20px; }
.filters .search { flex: 1 1 240px; }
.filters select.input { width: auto; min-width: 170px; }

/* ---------------- turmas ---------------- */
.time-group { margin-top: 22px; }
.time-group h3 { font-size: .95rem; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.time-group h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.class-card {
  --lc: var(--ink-3); --lt: #fff;
  position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 16px 14px 22px;
  overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.class-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--lc); }
.class-card:hover { border-color: var(--lc); box-shadow: var(--shadow); }
.class-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.class-card .name { font: 800 1.12rem var(--font-display); }
.class-card .meta { display: flex; gap: 14px; color: var(--ink-2); font-size: .92rem; flex-wrap: wrap; }
.class-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.class-card .meta svg { width: 16px; height: 16px; }

.class-hero {
  --lc: var(--ink-3); --lt: #fff;
  background: var(--lc); color: var(--lt); border-radius: var(--radius-lg); padding: 22px 24px; position: relative; overflow: hidden;
}
.class-hero::after {
  content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(255,255,255,.14);
}
.class-hero .crumb { opacity: .85; font-weight: 600; font-size: .92rem; }
.class-hero h1 { font-size: 2rem; margin: 4px 0 8px; }
.class-hero .meta { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.class-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.class-hero .meta svg { width: 18px; height: 18px; }
.class-hero .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.class-hero .btn { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.14); color: var(--lt); }
.class-hero .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }

/* listas de alunas */
.list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); min-height: 60px; }
.list-item:first-child { border-top: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { color: var(--ink-2); font-size: .88rem; }
a.list-item { color: inherit; text-decoration: none; }
a.list-item:hover { background: #FAFBFC; }
.num { width: 28px; text-align: right; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }

/* ---------------- fluxo da avaliação ---------------- */
.eval-bar {
  position: sticky; top: 0; z-index: 15; background: rgba(243,245,248,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); margin: -28px -32px 20px; padding: 12px 32px;
}
.eval-bar .ctx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eval-bar .ctx b { font-family: var(--font-display); }
.steps { display: flex; gap: 6px; margin-top: 10px; }
.steps a {
  flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; padding: 8px 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink-3); font-weight: 700; background: #fff; border: 1.5px solid var(--line); font-size: .92rem;
}
.steps a i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-size: .8rem; }
.steps a.done { color: var(--ink-2); }
.steps a.done i { background: var(--green); color: #fff; }
.steps a.active { border-color: var(--blue); color: var(--blue); }
.steps a.active i { background: var(--blue); color: #fff; }
.sync { font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.sync::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sync.saving::before { background: var(--yellow); }
.sync.offline { color: var(--red); }
.sync.offline::before { background: var(--red); }

/* chamada */
.att-item { cursor: pointer; user-select: none; }
.att-box {
  width: 34px; height: 34px; border-radius: 10px; border: 2px solid #C9D0D8; display: grid; place-items: center; flex: none;
  transition: background .12s, border-color .12s;
}
.att-box svg { width: 20px; height: 20px; color: #fff; opacity: 0; }
.att-item.on .att-box { background: var(--green); border-color: var(--green); }
.att-item.on .att-box svg { opacity: 1; }
.att-item:not(.on) .title { color: var(--ink-2); }
.counter { font: 800 1.1rem var(--font-display); }

.footer-bar {
  position: sticky; bottom: 0; z-index: 10; margin: 20px -32px -64px; padding: 14px 32px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

/* aparelhos */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.app-tile {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 20px; cursor: pointer;
  display: flex; flex-direction: column; gap: 14px; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.app-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.app-tile .ico { width: 64px; height: 64px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.app-tile .ico svg { width: 40px; height: 40px; }
.app-tile.done { border-color: var(--green); }
.app-tile.done .ico { background: #E0F5EA; color: var(--green); }
.app-tile h3 { font-size: 1.3rem; }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; }
.app-tile.done .bar > i { background: var(--green); }

/* lançamento de notas */
.move-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 14px; }
.move-head .app-name { display: flex; align-items: center; gap: 8px; color: var(--blue); font: 800 .95rem var(--font-display); }
.move-head .app-name svg { width: 22px; height: 22px; }
.move-head h2 { font-size: 1.55rem; margin: 6px 0 12px; }
.move-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.move-dots button {
  min-width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 800;
  cursor: pointer; color: var(--ink-2); font-size: .85rem;
}
.move-dots button.full { background: #E0F5EA; border-color: #A6DEC0; color: #00703F; }
.move-dots button.cur { background: var(--ink); border-color: var(--ink); color: #fff; }
.scale-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin-top: 12px; }
.scale-legend span { display: inline-flex; align-items: center; gap: 6px; }
.scale-legend b { display: inline-grid; place-items: center; min-width: 28px; height: 22px; border-radius: 6px; color: #fff; font-size: .78rem; }

.score-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.score-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-2); }
.score-row:first-child { border-top: 0; }
.score-row .who { flex: 1; min-width: 0; }
.score-row .who b { display: block; font-weight: 700; line-height: 1.25; }
.score-row .who small { color: var(--ink-3); }
.score-row.set .who b { color: var(--ink); }
.scores { display: grid; grid-template-columns: repeat(4, 62px); gap: 6px; flex: none; }
.sbtn {
  --c: var(--s0);
  height: 52px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--c);
  font: 800 1.15rem var(--font-display); cursor: pointer; touch-action: manipulation; transition: background .1s, color .1s, transform .06s;
}
.sbtn[data-v="5"] { --c: var(--s5); }
.sbtn[data-v="10"] { --c: var(--s10); }
.sbtn[data-v="15"] { --c: var(--s15); }
.sbtn:hover { border-color: var(--c); }
.sbtn:active { transform: scale(.94); }
.sbtn.on { background: var(--c); border-color: var(--c); color: #fff; }
.sbtn[data-v="5"].on { color: #2b2b2b; }
.next-cta { margin-top: 14px; display: flex; gap: 10px; }
.next-cta .btn { flex: 1; }
.next-cta .btn.primary.ready { box-shadow: 0 0 0 4px rgba(0,104,179,.18); }

/* resultado */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.stat b { display: block; font: 800 1.8rem var(--font-display); line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.insight h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.insight h3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--blue)); }
.insight ol { margin: 0; padding: 0; list-style: none; }
.insight li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.insight li:first-child { border-top: 0; }
.insight li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.insight li b { font-variant-numeric: tabular-nums; }
.app-bars { display: grid; gap: 10px; }
.app-bars .r { display: grid; grid-template-columns: 80px 1fr 48px; gap: 10px; align-items: center; font-weight: 600; }
.app-bars .r b { text-align: right; font-variant-numeric: tabular-nums; }

.res-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; }
.res-card + .res-card { margin-top: 10px; }
.res-card .rank { font: 800 1.4rem var(--font-display); color: var(--ink-3); text-align: center; padding-top: 4px; }
.res-card .rank.r1 { color: #C99A00; }
.res-card .name { font: 700 1.05rem var(--font-display); }
.res-card .score-line { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; flex-wrap: wrap; }
.res-card .score-line b { font: 800 1.6rem var(--font-display); }
.res-card .score-line .pct { font-weight: 800; }
.pbar { position: relative; height: 10px; border-radius: 99px; background: var(--line-2); margin-bottom: 10px; }
.pbar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--s5); }
.pbar.ok > i { background: var(--s15); }
.pbar > s { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); text-decoration: none; }
.mini-app { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mini-app span { font-size: .8rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); }
.mv { display: flex; gap: 6px; flex-wrap: wrap; font-size: .82rem; margin-top: 4px; }
.mv span { padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.mv .g { background: #E0F5EA; color: #00703F; }
.mv .b { background: #FFECEC; color: #B4161B; }
.decision { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 168px; }
.decision .sug { font-size: .8rem; color: var(--ink-3); text-align: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: #fff; min-height: 44px; font-weight: 800; cursor: pointer; color: var(--ink-2); font-size: .9rem; padding: 0 10px; }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg button.on.adv { background: var(--green); color: #fff; }
.seg button.on.stay { background: var(--ink); color: #fff; }

/* requisitos */
.req-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.req-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.req-col header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 3px solid var(--lc); }
.req-col header svg { width: 26px; height: 26px; color: var(--lc); }
.req-col header h3 { flex: 1; }
.req-col header small { color: var(--ink-3); font-weight: 700; }
.req-item { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--line-2); }
.req-item:first-of-type { border-top: 0; }
.req-item .t { flex: 1; min-width: 0; font-weight: 600; }
.req-item .ops { display: flex; opacity: .5; }
.req-item:hover .ops, .req-item:focus-within .ops { opacity: 1; }
.req-item .icon-btn { width: 32px; height: 32px; }
.req-add { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line-2); margin-top: auto; background: #FAFBFC; }
.req-add .input { min-height: 40px; }

/* tabela */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.t { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.t th { text-align: left; font-weight: 700; color: var(--ink-2); font-size: .82rem; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
table.t td { padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #FAFBFC; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(28,32,36,.45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 540px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s ease-out; }
.modal.wide { max-width: 760px; }
.modal header { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.modal header h2 { flex: 1; }
.modal .body { padding: 10px 20px 4px; }
.modal footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mode-card {
  --lc: var(--ink-3); --lt: #fff;
  border: 2px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; text-align: left; background: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.mode-card b { font: 800 1rem var(--font-display); }
.mode-card small { color: var(--ink-2); }
.mode-card.on { border-color: var(--lc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc) 22%, transparent); }
.mode-card[disabled] { opacity: .4; cursor: not-allowed; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: pop .2s; max-width: 90vw; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.login { width: 100%; max-width: 400px; background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.login .in { padding: 32px 28px 28px; }
.login img { width: 180px; display: block; margin: 0 auto 12px; }
.login h1 { text-align: center; font-size: 1.3rem; margin-bottom: 4px; }
.login p.muted { text-align: center; margin-bottom: 22px; }

/* início */
.hero-home { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.test-banner { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 22px 24px; position: relative; overflow: hidden; }
.test-banner .ribbon { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; }
.test-banner small { opacity: .75; font-weight: 600; }
.test-banner h2 { font-size: 1.6rem; margin: 4px 0 6px; color: #fff; }
.test-banner .row { margin-top: 18px; }
.test-banner .btn { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.test-banner .btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.test-banner select { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.test-banner select option { color: var(--ink); }

.dropzone { display: block; width: 100%; box-sizing: border-box; border: 2px dashed #C3CCD6; border-radius: var(--radius-lg); padding: 36px 20px; text-align: center; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.over, .dropzone:hover { border-color: var(--blue); background: var(--blue-soft); }
.dropzone svg { display: block; margin: 0 auto; width: 44px; height: 44px; color: var(--blue); }

/* ---------------- responsivo ---------------- */
@media (max-width: 1024px) {
  :root { --nav-w: 84px; }
  .sidebar .brand img { width: 56px; }
  .sidebar .brand span, .nav a span, .me .who, .me .icon-btn { display: none; }
  .sidebar .brand { padding: 18px 14px; }
  .nav a { justify-content: center; padding: 13px; }
  .me { justify-content: center; }
  .page { padding: 24px 22px 64px; }
  .eval-bar { margin: -24px -22px 18px; padding: 12px 22px; }
  .footer-bar { margin: 20px -22px -64px; padding-left: 22px; padding-right: 22px; }
  .hero-home { grid-template-columns: 1fr; }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: 72px; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; background: #fff;
    padding: 10px 16px; border-bottom: 1px solid var(--line);
  }
  .topbar img { height: 30px; }
  .topbar b { font: 800 .95rem var(--font-display); flex: 1; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 700; color: var(--ink-3); text-decoration: none; padding: 4px 0; }
  .bottom-nav a svg { width: 24px; height: 24px; }
  .bottom-nav a.active { color: var(--blue); }
  .page { padding: 16px 16px 40px; }
  h1 { font-size: 1.4rem; }
  .eval-bar { top: 51px; margin: -16px -16px 14px; padding: 10px 16px; }
  .steps a span { display: none; }
  .footer-bar { margin: 16px -16px -40px; padding: 12px 16px; bottom: 64px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat b { font-size: 1.45rem; }
  .class-hero h1 { font-size: 1.6rem; }
  .score-row { flex-wrap: wrap; padding: 12px; }
  .score-row .who { flex-basis: 100%; }
  .scores { grid-template-columns: repeat(4, minmax(0,1fr)); width: 100%; }
  .sbtn { height: 50px; }
  .res-card { grid-template-columns: 32px 1fr; }
  .res-card .decision { grid-column: 1 / -1; min-width: 0; }
  .mode-cards { grid-template-columns: 1fr; }
  .modal-back { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .filters select.input { flex: 1 1 140px; min-width: 0; }
  .move-head h2 { font-size: 1.3rem; }
  .app-bars .r { grid-template-columns: 64px 1fr 44px; }
  .hide-sm { display: none !important; }
}
@media (min-width: 721px) { .show-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* impressão do resultado */
@media print {
  .sidebar, .topbar, .bottom-nav, .eval-bar .steps, .footer-bar, .no-print, .toasts { display: none !important; }
  .main { margin: 0; }
  .page { padding: 0; max-width: none; }
  .eval-bar { position: static; margin: 0 0 12px; background: none; border: 0; padding: 0; }
  .res-card, .card, .stat { break-inside: avoid; border-color: #ccc; }
  body { background: #fff; }
}

/* ajustes finos */
.sidebar .brand { text-decoration: none; }
.grid > .card + .card { margin-top: 0; }
@media (max-width: 720px) {
  body.in-eval .bottom-nav { display: none; }
  body.in-eval .main { padding-bottom: 0; }
  body.in-eval .footer-bar { bottom: 0; }
  .scale-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: .78rem; line-height: 1.25; }
  .steps a { padding: 6px; }
  .move-head { padding: 14px; }
  .move-dots button { min-width: 32px; height: 32px; }
}
.move-dots button.part { background: #FFF6D6; border-color: #F2D27A; color: #8A6500; }

/* acompanhamento */
.stack { display: flex; width: 100%; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.stack i { display: block; height: 100%; }
.prog-hero .big { font: 800 2.6rem var(--font-display); line-height: 1; color: var(--green); }
.prog-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.prog-legend .pl { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; cursor: pointer; text-align: left; }
.prog-legend .pl.on { border-color: var(--ink); }
.prog-legend .pl i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.prog-legend .pl b { font: 800 1.1rem var(--font-display); }
.prog-legend .pl span { color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.lvl-prog { display: grid; gap: 8px; }
.lvl-prog .r { display: grid; grid-template-columns: 90px 1fr 110px; gap: 12px; align-items: center; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; }
.lvl-prog .r:hover .stack { outline: 2px solid var(--line); }
@media (max-width: 720px) {
  .prog-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lvl-prog .r { grid-template-columns: 70px 1fr 88px; }
  .prog-hero .big { font-size: 2rem; }
}
