/* Demonstração navegável: uma janela do FastTeacher desenhada em HTML (sempre no tema claro do app). */
.demo-shell { margin-top: 28px; }
.d-scale { position: relative; width: 100%; }
.d-win { position: absolute; top: 0; left: 0; width: 1180px; height: 700px; transform-origin: 0 0; display: flex; flex-direction: column; overflow: hidden;
  background: #f1f5fd; color: #0f172a; border: 1px solid #cdd6ea; border-radius: 14px; box-shadow: 0 40px 90px rgb(15 30 91 / 0.28), 0 2px 8px rgb(15 30 91 / 0.12);
  font: 14px/1.45 "Segoe UI", system-ui, sans-serif; user-select: none; color-scheme: light; }
.d-win button { font: inherit; color: inherit; cursor: pointer; }
.d-win .i { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.d-win .big { width: 40px; height: 40px; }
.d-sp { flex: 1; }
.d-title { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #fff; border-bottom: 1px solid #dfe5f2; }
.d-dots { display: flex; gap: 6px; }
.d-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.d-menu { color: #64748b; font-size: 13px; }
.d-caption { color: #1d4ed8; font-weight: 700; font-size: 14px; }
.d-tourbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 6px 14px; background: #f97316; color: #fff !important; font-weight: 700; }
.d-body { flex: 1; display: flex; min-height: 0; }
.d-side { width: 230px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: #102a6b; color: #e2e8ff; border-right: 4px solid #dc2626; }
.d-brand { display: grid; gap: 2px; padding: 4px 8px 14px; }
.d-brand b { font-size: 20px; color: #fff; }
.d-brand small { color: #c7d2fe; font-size: 12px; }
.d-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; margin-bottom: 6px; }
.d-pro { justify-self: start; margin-top: 6px; padding: 1px 10px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; }
.d-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: #e2e8ff !important; text-align: left; font-size: 14px !important; }
.d-nav:hover { background: rgb(255 255 255 / 0.08); }
.d-nav.on { background: #dc2626; color: #fff !important; font-weight: 700; }
.d-open { color: #c7d2fe; font-size: 12px; padding: 0 8px; }
.d-main { flex: 1; overflow: auto; padding: 22px 26px; scrollbar-width: thin; }
.d-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.d-head h3 { margin: 0; font-size: 26px; letter-spacing: -0.01em; }
.d-saved { color: #64748b; font-size: 13px; }
.d-tabs { display: flex; gap: 2px; border-bottom: 2px solid #dfe5f2; margin-bottom: 14px; flex-wrap: wrap; }
.d-tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 8px 8px 0 0; color: #334155; }
.d-tabs button.on { background: #fff; color: #1d4ed8; font-weight: 700; box-shadow: inset 0 3px 0 #dc2626; }
.d-card { background: #fff; border: 1px solid #dfe5f2; border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.d-card h4 { margin: 0 0 10px; font-size: 16px; }
.d-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d-muted { color: #64748b; font-size: 13px; margin: 6px 0; }
.d-strong { font-weight: 700; margin: 4px 0; }
.d-ok { color: #067647; font-weight: 600; display: flex; gap: 6px; align-items: center; margin: 10px 0 0; }
.d-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.d-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid #cdd6ea; background: #fff; font-weight: 600; }
.d-btn.primary, .d-big.primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff !important; }
.d-big { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; margin-bottom: 10px; border-radius: 12px; border: 1px solid #dfe5f2; background: #f5f8ff; font-size: 16px !important; text-align: left; }
.d-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; border: 1px solid #cdd6ea; font-size: 12px; color: #334155; white-space: nowrap; }
.d-pill.on { border-color: #1d4ed8; color: #1d4ed8; background: #eef3ff; }
.d-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 11px; font-weight: 600; }
.d-clock { display: grid; justify-items: center; margin: 4px 0 18px; }
.d-clock b { font-size: 72px; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.d-chip { padding: 4px 14px; border-radius: 999px; border: 1px solid #dfe5f2; background: #fff; }
.d-next { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #fff1f0; border: 1px solid #fecaca; }
.d-checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.d-checks li { display: flex; gap: 8px; color: #94a3b8; }
.d-checks li .i { border-radius: 50%; padding: 2px; background: #e2e8f0; color: #fff; }
.d-checks li.ok { color: #334155; }
.d-checks li.ok .i { background: #1d4ed8; }
.d-textarea { min-height: 96px; padding: 10px 12px; border-radius: 10px; border: 1px solid #cdd6ea; background: #fbfcff; line-height: 1.6; }
.d-caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; background: #1d4ed8; animation: d-blink 1s steps(1) infinite; }
.d-bases { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.d-base { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #dfe5f2; border-radius: 10px; background: #fbfcff; animation: d-in .45s both; }
.d-base .t { flex: 1; }
.d-base .n { color: #64748b; width: 22px; }
.d-base:nth-child(2) { animation-delay: .12s; } .d-base:nth-child(3) { animation-delay: .24s; } .d-base:nth-child(4) { animation-delay: .36s; }
.d-base:nth-child(5) { animation-delay: .48s; } .d-base:nth-child(6) { animation-delay: .6s; } .d-base:nth-child(7) { animation-delay: .72s; } .d-base:nth-child(8) { animation-delay: .84s; }
.d-empty { color: #64748b; padding: 10px; border: 1px dashed #cdd6ea; border-radius: 10px; }
.d-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.d-rows li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #edf1f8; border-radius: 10px; animation: d-in .35s both; }
.d-rows li b { min-width: 120px; }
.d-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.d-lesson { display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: 12px; border: 1px solid #dfe5f2; border-left: 4px solid #1d4ed8; background: #fbfcff; animation: d-in .4s both; }
.d-lesson.exam { border-left-color: #dc2626; } .d-lesson.review { border-left-color: #f97316; }
.d-lesson span { color: #64748b; font-size: 12px; } .d-lesson .d-pill { justify-self: start; }
.d-lesson p { margin: 0; font-size: 13px; }
.d-lessonbar { padding: 10px 14px; margin-bottom: 10px; border-radius: 10px; border: 1px solid #dfe5f2; background: #fff; }
.d-card label { display: grid; gap: 6px; margin: 0 0 12px; font-weight: 700; font-size: 14px; }
.d-field { min-height: 40px; padding: 9px 12px; border-radius: 10px; border: 1px solid #cdd6ea; background: #fbfcff; font-weight: 400; }
.d-field.tall { min-height: 70px; }
.d-slides { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.d-slide { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 8px; text-align: center; border-radius: 8px; border: 1px solid #dfe5f2; background: #fff; font-size: 12px; }
.d-slide.cover { background: linear-gradient(135deg, #102a6b, #2563eb); color: #fff; }
.d-checkbox { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 2px solid #cdd6ea; color: transparent; }
.d-checkbox.ok { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.d-bar { height: 8px; margin-top: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.d-bar i { display: block; height: 100%; width: 30%; background: #1d4ed8; animation: d-load 1.6s ease-in-out forwards; }
.d-rubrica { display: grid; place-items: center; height: 110px; border: 1px dashed #cdd6ea; border-radius: 12px; color: #102a6b; }
.d-search, .d-preview { padding: 10px 12px; border-radius: 10px; border: 1px solid #cdd6ea; background: #fbfcff; color: #64748b; margin-bottom: 10px; }
.d-preview { color: #0f172a; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.d-progress { height: 4px; background: #e2e8f0; }
.d-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f97316, #dc2626); transition: width .6s; }
.d-cover { position: absolute; inset: 40px 0 0 230px; display: grid; place-items: center; background: rgb(241 245 253 / 0.86); backdrop-filter: blur(3px); }
.d-cover.gone { display: none; }
.d-play { display: grid; justify-items: center; gap: 10px; border: 0; background: none; color: #102a6b !important; }
.d-play .big { width: 46px; height: 46px; padding: 24px; box-sizing: content-box; border-radius: 50%; background: #f97316; color: #fff; box-shadow: 0 0 0 0 rgb(249 115 22 / 0.5); animation: d-pulse 2s infinite; }
.d-play span { font-size: 24px; font-weight: 800; }
.d-play small { color: #475569; font-size: 15px; }
.d-end { display: grid; justify-items: center; gap: 12px; max-width: 560px; text-align: center; }
.d-end b { font-size: 28px; color: #102a6b; }
.d-end span { font-size: 17px; color: #334155; }
.d-endbtns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.d-info { margin-top: 18px; }
.d-info h3 { margin: 0 0 4px; font-size: 20px; }
.d-info p { margin: 0; color: var(--muted); max-width: 820px; }
.d-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.d-jump button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.d-jump button.on { border-color: var(--primary-2); color: var(--primary-2); font-weight: 700; }
.d-jump .i { width: 16px; height: 16px; }
.pro-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #f97316; color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; }
@keyframes d-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes d-blink { 50% { opacity: 0; } }
@keyframes d-load { to { width: 100%; } }
@keyframes d-pulse { 70% { box-shadow: 0 0 0 22px rgb(249 115 22 / 0); } 100% { box-shadow: 0 0 0 0 rgb(249 115 22 / 0); } }
@media (prefers-reduced-motion: reduce) { .d-win *, .d-win { animation: none !important; transition: none !important; } }
.d-card label .d-badge { justify-self: start; margin: 0; }
