:root {
  --roxo: #6d3e91; --roxo-esc: #55306f; --roxo-cl: #f3eef8; --lilas: #ac91c0;
  --txt: #262626; --muted: #6b6474; --linha: #e4dcec; --bg: #faf8fc; --ok: #2e7d4f; --erro: #b3261e;
  --raio: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--txt); background: var(--bg); line-height: 1.5; }
a { color: var(--roxo); }
.topo { background: #fff; border-bottom: 1px solid var(--linha); }
.topo .in { max-width: 860px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topo img { height: 64px; width: auto; display: block; }
.topo .proj { font-size: 13px; color: var(--muted); text-align: right; }
.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 80px; }
h1 { font-size: 26px; margin: 0 0 6px; color: var(--roxo); }
h2 { font-size: 20px; margin: 0 0 4px; color: var(--roxo); }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; box-shadow: 0 1px 2px rgba(60,30,90,.04); }
.progress { display: flex; gap: 6px; margin: 0 0 18px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--linha); }
.progress span.on { background: var(--roxo); }
.steplabel { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field { margin: 0 0 18px; }
.field > label, .field > .lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--roxo); }
.hint { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=month], input[type=url], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #cfc4da; border-radius: 8px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lilas); outline-offset: 0; border-color: var(--roxo); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #cfc4da; border-radius: 999px; cursor: pointer; font-weight: 400; background: #fff; }
.radios input { accent-color: var(--roxo); }
.radios label:has(input:checked) { border-color: var(--roxo); background: var(--roxo-cl); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.grid4 { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: 10px; align-items: end; }
@media (max-width: 640px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .card { padding: 18px; } }
.rep { border: 1px dashed #cfc4da; border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #fdfbfe; position: relative; }
.rep .x { position: absolute; top: 6px; right: 8px; background: none; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; }
.rep small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 3px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--roxo); }
.btn { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 11px 18px; cursor: pointer; background: var(--roxo); color: #fff; }
.btn:hover { background: var(--roxo-esc); }
.btn.sec { background: #fff; color: var(--roxo); border: 1px solid var(--roxo); }
.btn.sec:hover { background: var(--roxo-cl); }
.btn.link { background: none; color: var(--roxo); padding: 6px 0; }
.btn.perigo { background: #fff; color: var(--erro); border: 1px solid #e3b6b2; }
.btn:disabled { opacity: .55; cursor: default; }
.nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.err { color: var(--erro); font-size: 13px; margin-top: 4px; }
.has-err input, .has-err textarea, .has-err select, .has-err .radios label { border-color: var(--erro); }
.aviso { max-height: 260px; overflow: auto; font-size: 13px; background: var(--bg); border: 1px solid var(--linha); border-radius: 8px; padding: 12px 14px; color: #444; }
.foto { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.foto .thumb { width: 110px; height: 110px; border-radius: 10px; background: var(--roxo-cl); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; text-align: center; border: 1px solid var(--linha); }
.foto .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ok-box { text-align: center; padding: 40px 20px; }
.ok-box .ic { font-size: 46px; color: var(--ok); }
ul.orient { padding-left: 20px; } ul.orient li { margin-bottom: 6px; }
.hidden { display: none !important; }

/* formulário em página única, estilo Forms */
#f { counter-reset: q; }
#f .step { margin-bottom: 16px; }
#f .step > h2 { padding-bottom: 8px; border-bottom: 3px solid var(--roxo); display: inline-block; }
#f .field > label:first-child::before, #f .field > .lbl::before { counter-increment: q; content: counter(q) ". "; color: var(--roxo); }
.enviar { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.enviar .btn { padding: 12px 34px; }
.muted { color: var(--muted); font-size: 14px; }

.wide { max-width: 1560px !important; }
.login { max-width: 400px; margin: 40px auto; }
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.side { padding: 16px; }
.side-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.plist { list-style: none; margin: 8px 0 0; padding: 0; }
.plist li { padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.plist li:hover { background: var(--roxo-cl); }
.plist li.on { background: var(--roxo); color: #fff; }
.plist .n { font-size: 12px; opacity: .75; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.btn { text-decoration: none; display: inline-block; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 12.5px; }
.linkbox { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; font-size: 14px; }
.linkbox input { flex: 1; min-width: 220px; background: var(--bg); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--linha); }
table.list td { padding: 10px 8px; border-bottom: 1px solid #f0ebf5; vertical-align: middle; }
table.list tr:hover td { background: #fcfaff; }
table.list .nm { font-weight: 600; cursor: pointer; color: var(--roxo); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--roxo-cl); color: var(--roxo); margin-left: 6px; }
.tag.warn { background: #fdf0e6; color: #a35a12; }
.foot { display: flex; justify-content: space-between; margin-top: 12px; }
.perigo-txt { color: var(--erro) !important; font-size: 13px; }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }
h3 { margin: 0 0 8px; color: var(--roxo); font-size: 17px; }
.answers dt { font-weight: 600; font-size: 13px; color: var(--roxo); margin-top: 12px; }
.answers dd { margin: 2px 0 0; font-size: 14px; white-space: pre-wrap; }
code { background: var(--roxo-cl); padding: 0 4px; border-radius: 4px; font-size: 12px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #2b2233; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 50; }

/* prévia do slide (960x540 = 13,333" x 7,5" a 72px/pol) */
.pv-stage { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--linha); border-radius: 6px; }
.pv-slide { position: absolute; left: 0; top: 0; width: 960px; height: 540px; background: #fff; transform-origin: 0 0; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; color: #262626; overflow: hidden; }
.pv-title { position: absolute; left: 0; top: 26px; width: 385px; height: 36px; background: #6d3e91; color: #fff; font-weight: 700; font-size: 22px; line-height: 36px; padding-left: 9px; }
.pv-arc { position: absolute; left: 760px; top: -137px; width: 403px; height: 461px; border: 1px solid #9b7db8; border-radius: 50%; }
.pv-table { position: absolute; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 9px; line-height: 1.22; }
.pv-table td { border: 1px solid #fff; padding: 1px 4px; overflow: hidden; }
.pv-lab, .pv-head { background: #6d3e91; color: #fff; }
.pv-head { text-align: center; }
.pv-val { background: #f2f2f2; }
.pv-body { background: #f2f2f2; vertical-align: top; padding: 6px !important; }
.pv-b { position: relative; padding-left: 12px; }
.pv-b::before { content: "•"; position: absolute; left: 2px; }
.pv-l1 { margin-left: 18px; }
.pv-photo { position: absolute; background: #ede7f3; display: grid; place-items: center; color: #8a7a99; font-size: 12px; overflow: hidden; }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; }
.pv-logo { position: absolute; left: 834px; top: 487px; width: 108px; }

/* tabela tipo planilha */
.sheet { overflow: auto; max-height: 70vh; border: 1px solid var(--linha); border-radius: 8px; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
table.grid th { position: sticky; top: 0; z-index: 2; background: var(--roxo); color: #fff; font-weight: 600; text-align: left; padding: 8px 10px; white-space: nowrap; border-right: 1px solid #835aa3; }
table.grid td { padding: 8px 10px; border-bottom: 1px solid #eee7f4; border-right: 1px solid #f3eef8; vertical-align: top; background: #fff; }
table.grid tbody tr { cursor: pointer; }
table.grid tbody tr:hover td { background: #f8f4fc; }
table.grid .cell { max-width: 260px; min-width: 120px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
table.grid .fx0 { position: sticky; left: 0; z-index: 1; width: 34px; }
table.grid .fx1 { position: sticky; left: 34px; z-index: 1; min-width: 200px; box-shadow: 2px 0 0 #e4dcec; }
table.grid th.fx0, table.grid th.fx1 { z-index: 3; }
table.grid .nm { font-weight: 600; color: var(--roxo); }
table.grid .nowrap { white-space: nowrap; }
.layout > * { min-width: 0; }

:root { color-scheme: light; }
html, body { background: var(--bg); color: var(--txt); }

/* Táticas de Aprendizagem (LTI) */
.lti-legend { font-size: 13.5px; color: var(--roxo-esc); background: var(--roxo-cl); border-radius: 8px; padding: 8px 12px; margin: 0 0 6px; }
#f .lti-q { margin: 0; padding: 14px 0; border-top: 1px solid #f0ebf5; }
.lti-t { margin: 0 0 8px; }
.lti-t b { color: var(--roxo); margin-right: 4px; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.scale label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale .n { display: grid; place-items: center; width: 46px; height: 40px; border: 1px solid #cfc4da; border-radius: 8px; font-weight: 600; background: #fff; }
.scale label:hover .n { background: var(--roxo-cl); }
.scale input:checked + .n { background: var(--roxo); color: #fff; border-color: var(--roxo); }
.scale input:focus-visible + .n { outline: 2px solid var(--lilas); outline-offset: 2px; }
.scale .cap { font-size: 11px; color: var(--muted); width: 46px; text-align: center; line-height: 1.15; }
.has-err .scale .n { border-color: var(--erro); }
.lti-res { margin-top: 16px; }
.lti-res > h2 { padding-bottom: 8px; border-bottom: 3px solid var(--roxo); display: inline-block; }
.lti-chart svg { width: 100%; max-width: 640px; height: auto; display: block; margin: 6px 0 4px; }
.lti-read { font-size: 14px; color: #444; margin: 0 0 18px; }
.lti-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 18px; }
.lti-levels > div { border: 1px solid var(--linha); border-left: 4px solid var(--roxo); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.lti-levels > div.low { border-left-color: #ec671a; }
.lti-levels b { color: var(--roxo); }
.lti-levels .lv { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--roxo-cl); color: var(--roxo); margin-left: 6px; }
.lti-levels .low .lv { background: #fbe1d1; color: #8a3a0b; }
.lti-levels p { margin: 6px 0 0; color: #555; }
.lti-scroll { overflow-x: auto; }
table.overuse { border-collapse: collapse; font-size: 13px; min-width: 620px; width: 100%; }
table.overuse th { background: var(--roxo); color: #fff; padding: 6px 8px; font-weight: 600; text-align: center; }
table.overuse td { border: 1px solid #e4dcec; padding: 6px 8px; vertical-align: top; }
table.overuse td.rh { font-weight: 700; color: var(--roxo); vertical-align: middle; }
table.overuse td.na { background: var(--roxo-cl); }
.guia-box { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--roxo-cl); border-left: 4px solid #ec671a; border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; }
.guia-box b { display: block; color: var(--roxo-esc); }
.guia-box span { font-size: 14px; color: #555; }
