#duda-pront-root{
  --dp-bg:#f4f2ee;--dp-bg-elev:#ffffff;--dp-bg-soft:#eceae4;--dp-ink:#1f1d1a;--dp-ink-soft:#5c5850;
  --dp-ink-faint:#8a857a;--dp-line:#ddd8cd;--dp-line-soft:#eae7de;--dp-accent:#7a5c3e;--dp-accent-ink:#fff;
  --dp-shadow-sm:0 2px 8px rgba(30,25,15,.08);--dp-radius:14px;
  --dp-serif:'Roboto','Roboto Light','Segoe UI',Arial,Helvetica,sans-serif;--dp-sans:'Roboto','Segoe UI',Arial,Helvetica,sans-serif;
  font-family:var(--dp-sans);color:var(--dp-ink);background:var(--dp-bg);line-height:1.5;
}
#duda-pront-root[data-theme="dark"]{
  --dp-bg:#161513;--dp-bg-elev:#1f1e1b;--dp-bg-soft:#242320;--dp-ink:#efece4;--dp-ink-soft:#b8b3a6;
  --dp-ink-faint:#7d786c;--dp-line:#38352e;--dp-line-soft:#2a2823;--dp-accent:#d3a97a;--dp-accent-ink:#1c1712;
}
#duda-pront-root *{box-sizing:border-box;}
#duda-pront-root .dp-topbar{position:sticky;top:0;z-index:40;background:var(--dp-bg);border-bottom:1px solid var(--dp-line);padding:14px 0;}
#duda-pront-root .dp-topbar-inner{max-width:1100px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
#duda-pront-root .dp-brand{display:flex;align-items:baseline;gap:10px;}
#duda-pront-root .dp-mark{width:28px;height:28px;border-radius:8px;background:var(--dp-accent);display:flex;align-items:center;justify-content:center;font-family:var(--dp-serif);font-weight:700;color:var(--dp-accent-ink);}
#duda-pront-root .dp-brand h1{font-family:var(--dp-serif);font-size:18px;margin:0;font-weight:600;}
#duda-pront-root .dp-sub{font-size:12px;color:var(--dp-ink-faint);margin-left:6px;}
#duda-pront-root .dp-topbar-actions{display:flex;gap:8px;}
#duda-pront-root .dp-btn{border:1px solid var(--dp-line);background:var(--dp-bg-elev);color:var(--dp-ink);padding:8px 14px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer;}
#duda-pront-root .dp-btn:hover{border-color:var(--dp-accent);}
#duda-pront-root .dp-btn.dp-icon{padding:8px 10px;}
#duda-pront-root .dp-hero{max-width:1100px;margin:26px auto 0;padding:0 20px;}
#duda-pront-root .dp-hero-card{background:var(--dp-bg-elev);border:1px solid var(--dp-line);border-radius:var(--dp-radius);padding:22px 24px;box-shadow:var(--dp-shadow-sm);display:flex;align-items:center;gap:20px;flex-wrap:wrap;}
#duda-pront-root .dp-avatar{width:60px;height:60px;border-radius:50%;background:linear-gradient(155deg,var(--dp-accent),#9c7a53);display:flex;align-items:center;justify-content:center;font-family:var(--dp-serif);font-size:24px;color:var(--dp-accent-ink);flex:none;overflow:hidden;}
#duda-pront-root .dp-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
#duda-pront-root .dp-mark{overflow:hidden;}
#duda-pront-root .dp-mark img{width:100%;height:100%;object-fit:cover;display:block;}
#duda-pront-root .dp-tl-card{display:flex;gap:14px;align-items:flex-start;}
#duda-pront-root .dp-tl-body{flex:1;min-width:0;}
#duda-pront-root .dp-capa{width:88px;height:88px;border-radius:10px;overflow:hidden;flex:none;border:1px solid var(--dp-line);background:var(--dp-bg-soft);}
#duda-pront-root .dp-capa img{width:100%;height:100%;object-fit:cover;display:block;}
#duda-pront-root .dp-capa.vazia{display:flex;align-items:center;justify-content:center;color:var(--dp-ink-faint);font-size:9.5px;text-align:center;padding:6px;line-height:1.35;border-style:dashed;}
@media(max-width:560px){#duda-pront-root .dp-capa{width:66px;height:66px;}}
#duda-pront-root .dp-hero-card h2{font-family:var(--dp-serif);font-size:22px;margin:0 0 3px;}
#duda-pront-root .dp-meta{color:var(--dp-ink-soft);font-size:13px;margin:0;}
#duda-pront-root .dp-hero-stats{display:flex;gap:20px;margin-left:auto;}
#duda-pront-root .dp-stat b{display:block;font-family:var(--dp-serif);font-size:20px;}
#duda-pront-root .dp-cfg-status{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;padding:7px 12px;border-radius:8px;margin-bottom:14px;}
#duda-pront-root .dp-cfg-status.on{background:#2e9e5b1f;color:#2e9e5b;}
#duda-pront-root .dp-cfg-status.off{background:#c0392b1f;color:#c0392b;}
#duda-pront-root .dp-cfg-hint{font-size:11.5px;color:var(--dp-ink-faint);margin:4px 0 0;line-height:1.5;}
#duda-pront-root .dp-cfg-res{font-size:12px;font-weight:600;padding:9px 12px;border-radius:8px;margin-top:12px;display:none;}
#duda-pront-root .dp-cfg-res.on{display:block;background:#2e9e5b1f;color:#2e9e5b;}
#duda-pront-root .dp-cfg-res.off{display:block;background:#c0392b1f;color:#c0392b;}
#duda-pront-root .dp-plano-wrap{max-width:1100px;margin:16px auto 0;padding:0 20px;}
#duda-pront-root .dp-plano-card{background:var(--dp-bg-elev);border:1px solid var(--dp-line);border-left:4px solid #2980b9;border-radius:12px;padding:16px 20px;box-shadow:var(--dp-shadow-sm);}
#duda-pront-root .dp-plano-tag{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#2980b9;background:#2980b91f;padding:3px 9px;border-radius:6px;margin-bottom:8px;}
#duda-pront-root .dp-plano-card h3{font-family:var(--dp-serif);font-size:16px;margin:0 0 7px;font-weight:600;}
#duda-pront-root .dp-plano-card p{font-size:12.5px;color:var(--dp-ink-soft);line-height:1.65;margin:0;}
#duda-pront-root .dp-marc-modal{max-width:900px;}
#duda-pront-root .dp-marc-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;}
#duda-pront-root .dp-marc-tab{font-size:11px;font-weight:600;padding:6px 11px;border-radius:20px;cursor:pointer;border:1px solid var(--dp-line);background:var(--dp-bg-elev);color:var(--dp-ink-soft);}
#duda-pront-root .dp-marc-tab.active{background:var(--dp-accent);border-color:var(--dp-accent);color:var(--dp-accent-ink);}
#duda-pront-root .dp-marc-chart{width:100%;overflow-x:auto;}
#duda-pront-root .dp-marc-ref{font-size:11px;color:var(--dp-ink-faint);margin:10px 0 0;}
#duda-pront-root .dp-marc-nota{font-size:11.5px;color:var(--dp-ink-soft);background:var(--dp-bg-soft);border-left:3px solid var(--dp-accent);padding:9px 12px;border-radius:0 8px 8px 0;margin:12px 0 0;line-height:1.55;}
#duda-pront-root .dp-marc-tbl{width:100%;border-collapse:collapse;margin-top:14px;font-size:11.5px;}
#duda-pront-root .dp-marc-tbl th{text-align:left;font-size:10px;text-transform:uppercase;color:var(--dp-ink-faint);border-bottom:1px solid var(--dp-line);padding:6px 8px;}
#duda-pront-root .dp-marc-tbl td{padding:6px 8px;border-bottom:1px solid var(--dp-line-soft);color:var(--dp-ink-soft);}
#duda-pront-root .dp-marc-tbl td.v{font-weight:700;color:var(--dp-ink);}
#duda-pront-root .dp-marc-flag{font-size:9.5px;font-weight:700;padding:1px 7px;border-radius:20px;}
#duda-pront-root .dp-marc-flag.alto{background:#c0392b22;color:#c0392b;}
#duda-pront-root .dp-marc-flag.baixo{background:#2980b922;color:#2980b9;}
#duda-pront-root .dp-marc-flag.ok{background:#2e9e5b22;color:#2e9e5b;}
#duda-pront-root .dp-h-wrap{max-width:1100px;margin:16px auto 0;padding:0 20px;}
#duda-pront-root .dp-h-scroll{overflow:visible;border:1px solid var(--dp-line);border-radius:12px;background:var(--dp-bg-elev);box-shadow:var(--dp-shadow-sm);padding:22px 16px 16px;}
#duda-pront-root .dp-h-title{font-family:var(--dp-serif);font-size:14px;font-weight:600;color:var(--dp-ink-soft);margin:0 0 18px;padding:0 6px;}
#duda-pront-root .dp-h-track{display:block;position:relative;}
#duda-pront-root .dp-stat span{font-size:11px;color:var(--dp-ink-faint);text-transform:uppercase;}
#duda-pront-root .dp-legend{max-width:1100px;margin:18px auto 0;padding:0 20px;display:flex;flex-wrap:wrap;gap:8px;}
#duda-pront-root .dp-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:5px 10px;border-radius:20px;background:var(--dp-bg-elev);border:1px solid var(--dp-line);color:var(--dp-ink-soft);}
#duda-pront-root .dp-chip i{width:8px;height:8px;border-radius:50%;}
#duda-pront-root .dp-timeline-wrap{max-width:1100px;margin:0 auto;padding:20px 20px 50px;}
#duda-pront-root .dp-timeline{position:relative;padding-left:30px;}
#duda-pront-root .dp-timeline:before{content:"";position:absolute;left:8px;top:4px;bottom:4px;width:2px;background:var(--dp-line);}
#duda-pront-root .dp-tl-item{position:relative;padding-bottom:22px;}
#duda-pront-root .dp-tl-dot{position:absolute;left:-30px;top:2px;width:18px;height:18px;border-radius:50%;border:3px solid var(--dp-bg);box-shadow:0 0 0 1px var(--dp-line);cursor:pointer;}
#duda-pront-root .dp-tl-card{background:var(--dp-bg-elev);border:1px solid var(--dp-line);border-radius:12px;padding:15px 17px;cursor:pointer;box-shadow:var(--dp-shadow-sm);}
#duda-pront-root .dp-tl-card:hover{border-color:var(--dp-accent);}
#duda-pront-root .dp-tl-date{font-size:11px;color:var(--dp-ink-faint);font-weight:700;text-transform:uppercase;}
#duda-pront-root .dp-tl-title{font-family:var(--dp-serif);font-size:16.5px;margin:3px 0 5px;font-weight:600;}
#duda-pront-root .dp-tl-diag{display:inline-block;font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:6px;margin-bottom:7px;}
#duda-pront-root .dp-tl-summary{font-size:12.5px;color:var(--dp-ink-soft);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
#duda-pront-root .dp-tl-count{font-size:11px;color:var(--dp-ink-faint);margin-top:8px;font-weight:600;}
#duda-pront-root .dp-modal-backdrop{position:fixed;inset:0;background:rgba(20,17,12,.55);z-index:100;display:none;align-items:flex-start;justify-content:center;padding:5vh 16px;overflow-y:auto;}
#duda-pront-root .dp-modal-backdrop.open{display:flex;}
#duda-pront-root .dp-modal{background:var(--dp-bg-elev);border-radius:16px;max-width:720px;width:100%;border:1px solid var(--dp-line);}
#duda-pront-root .dp-modal-head{padding:20px 22px 14px;border-bottom:1px solid var(--dp-line-soft);display:flex;justify-content:space-between;gap:12px;}
#duda-pront-root .dp-modal-head h3{font-family:var(--dp-serif);font-size:20px;margin:2px 0 6px;}
#duda-pront-root .dp-close{border:none;background:var(--dp-bg-soft);width:30px;height:30px;border-radius:50%;cursor:pointer;color:var(--dp-ink-soft);flex:none;}
#duda-pront-root .dp-modal-body{padding:18px 22px 22px;}
#duda-pront-root .dp-resumo{font-size:13.3px;color:var(--dp-ink-soft);line-height:1.6;}
#duda-pront-root .dp-nota{font-size:12px;color:var(--dp-ink-soft);background:var(--dp-bg-soft);border-left:3px solid var(--dp-accent);padding:9px 12px;border-radius:0 8px 8px 0;margin:14px 0;}
#duda-pront-root .dp-exam-title{font-size:11px;font-weight:700;text-transform:uppercase;color:var(--dp-ink-faint);margin:14px 0 8px;}
#duda-pront-root .dp-exam{border:1px solid var(--dp-line-soft);border-radius:10px;padding:11px 13px;margin-bottom:8px;display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap;}
#duda-pront-root .dp-exam-date{font-size:10.5px;font-weight:700;color:var(--dp-ink-faint);min-width:56px;}
#duda-pront-root .dp-exam-main{flex:1;min-width:180px;}
#duda-pront-root .dp-exam-tipo{font-size:12.5px;font-weight:600;margin:0 0 2px;}
#duda-pront-root .dp-exam-achado{font-size:12px;color:var(--dp-ink-soft);margin:2px 0 0;}
#duda-pront-root .dp-exam-actions{display:flex;gap:6px;flex:none;}
#duda-pront-root .dp-mini-btn{font-size:11px;font-weight:700;color:var(--dp-accent);text-decoration:none;padding:5px 9px;border-radius:7px;border:1px solid var(--dp-line);background:none;cursor:pointer;}
#duda-pront-root .dp-mini-btn:hover{background:var(--dp-bg-soft);}
#duda-pront-root .dp-mini-btn.dp-danger{color:#c0392b;}
#duda-pront-root .dp-pending{font-size:11px;color:var(--dp-ink-faint);font-style:italic;}
#duda-pront-root .dp-photo-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
#duda-pront-root .dp-photo-thumb{width:104px;height:104px;border-radius:9px;overflow:hidden;border:1px solid var(--dp-line);}
#duda-pront-root .dp-photo-thumb img{width:100%;height:100%;object-fit:cover;}
#duda-pront-root .dp-field{margin-bottom:12px;}
#duda-pront-root .dp-field label{display:block;font-size:11.5px;font-weight:700;color:var(--dp-ink-soft);margin-bottom:5px;}
#duda-pront-root .dp-field input[type=text],#duda-pront-root .dp-field input[type=date],#duda-pront-root .dp-field input[type=password],
#duda-pront-root .dp-field select,#duda-pront-root .dp-field textarea{
  width:100%;padding:9px 11px;border:1px solid var(--dp-line);border-radius:8px;font-size:13px;font-family:inherit;background:var(--dp-bg);color:var(--dp-ink);
}
#duda-pront-root .dp-field textarea{min-height:70px;resize:vertical;}
#duda-pront-root .dp-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
#duda-pront-root .dp-hist-row{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
#duda-pront-root .dp-hist-label{width:190px;flex:none;font-size:12px;text-align:right;color:var(--dp-ink-soft);font-weight:600;}
#duda-pront-root .dp-hist-track{flex:1;background:var(--dp-bg-soft);border-radius:6px;height:18px;}
#duda-pront-root .dp-hist-fill{height:100%;border-radius:6px;background:var(--dp-accent);}
#duda-pront-root .dp-hist-val{width:26px;font-size:11.5px;font-weight:700;}
#duda-pront-root .dp-foot{max-width:1100px;margin:0 auto;padding:0 20px 40px;color:var(--dp-ink-faint);font-size:11.5px;}
#duda-pront-root .dp-foot a{color:var(--dp-accent);}

/* ---- fotos do evento: card + botao de excluir + visualizador ---- */
#duda-pront-root .dp-photo-grid{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;}

#duda-pront-root .dp-foto-card{
  position:relative;width:118px;margin:0;border-radius:10px;overflow:visible;
}
#duda-pront-root .dp-foto-img{
  width:118px;height:118px;object-fit:cover;display:block;border-radius:10px;
  border:1px solid var(--dp-line);cursor:zoom-in;background:var(--dp-bg-soft);
}
#duda-pront-root .dp-foto-img:hover{border-color:var(--dp-accent);}
#duda-pront-root .dp-foto-data{
  font-size:10px;color:var(--dp-ink-faint);text-align:center;margin-top:5px;font-weight:600;
}
#duda-pront-root .dp-foto-rm{
  position:absolute;top:-7px;right:-7px;width:26px;height:26px;
  border:2px solid var(--dp-bg-elev);border-radius:50%;
  background:#c0392b;color:#fff;font-size:16px;font-weight:700;line-height:22px;
  text-align:center;cursor:pointer;padding:0;z-index:5;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
}
#duda-pront-root .dp-foto-rm:hover{background:#96281b;transform:scale(1.1);}

#duda-pront-root .dp-foto-viewer{
  position:fixed;inset:0;background:rgba(15,12,8,.9);z-index:300;
  display:none;align-items:center;justify-content:center;flex-direction:column;padding:4vh 4vw;
}
#duda-pront-root .dp-foto-viewer.open{display:flex;}
#duda-pront-root .dp-foto-viewer img{
  max-width:100%;max-height:82vh;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.55);
}
#duda-pront-root .dp-foto-legenda{color:#e8e2d6;font-size:13px;margin-top:14px;font-weight:600;}
#duda-pront-root .dp-foto-fechar{
  position:absolute;top:18px;right:22px;width:40px;height:40px;border:none;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;cursor:pointer;
}
#duda-pront-root .dp-foto-fechar:hover{background:rgba(255,255,255,.28);}

/* ---- régua: uma linha por ano, meses como posição ---- */
#duda-pront-root .dpg{display:block;}
#duda-pront-root .dpg-linha{display:flex;align-items:center;height:30px;}
#duda-pront-root .dpg-linha.dpg-head{height:20px;margin-bottom:4px;}

#duda-pront-root .dpg-ano{
  width:46px;flex:none;font-size:11px;font-weight:700;color:var(--dp-ink);
  text-align:right;padding-right:12px;white-space:nowrap;
}
#duda-pront-root .dpg-linha.vazio .dpg-ano{color:var(--dp-ink-faint);font-weight:600;}

#duda-pront-root .dpg-trilha{
  flex:1;position:relative;height:100%;
}
/* a linha do ano */
#duda-pront-root .dpg-trilha:before{
  content:"";position:absolute;left:0;right:0;top:50%;height:2px;
  background:var(--dp-line);border-radius:2px;transform:translateY(-50%);
}
#duda-pront-root .dpg-linha.vazio .dpg-trilha:before{opacity:.45;}
#duda-pront-root .dpg-trilha-head:before{display:none;}

#duda-pront-root .dpg-tick{
  position:absolute;top:50%;width:1px;height:7px;background:var(--dp-line);
  transform:translate(-50%,-50%);opacity:.55;
}
#duda-pront-root .dpg-mes{
  position:absolute;top:50%;transform:translate(-50%,-50%);
  font-size:9.5px;font-weight:700;color:var(--dp-ink-faint);
  text-transform:uppercase;letter-spacing:.4px;white-space:nowrap;
}

#duda-pront-root .dpg-dot{
  position:absolute;top:50%;width:13px;height:13px;border-radius:50%;
  transform:translate(-50%,-50%);z-index:2;
}
#duda-pront-root .dpg-dot[data-id]{cursor:pointer;transition:transform .12s ease;}
#duda-pront-root .dpg-dot[data-id]:hover{transform:translate(-50%,-50%) scale(1.5);z-index:8;}
#duda-pront-root .dpg-ini{box-shadow:0 0 0 2.5px var(--dp-bg-elev);}
#duda-pront-root .dpg-cont{width:8px;height:8px;opacity:.45;}

#duda-pront-root .dpg-tip{
  position:absolute;bottom:170%;left:50%;transform:translateX(-50%);
  background:var(--dp-ink);color:var(--dp-bg);font-size:11px;line-height:1.45;
  padding:7px 10px;border-radius:8px;width:190px;text-align:left;
  opacity:0;pointer-events:none;transition:opacity .12s ease;z-index:20;font-weight:400;
  box-shadow:0 8px 20px rgba(0,0,0,.3);
}
#duda-pront-root .dpg-tip b{display:block;margin-bottom:3px;font-size:10px;text-transform:uppercase;letter-spacing:.4px;opacity:.75;}
#duda-pront-root .dpg-dot:hover .dpg-tip{opacity:1;}

#duda-pront-root .dpg-legenda{
  display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:16px;padding-top:12px;
  border-top:1px solid var(--dp-line-soft);font-size:10.5px;color:var(--dp-ink-faint);font-weight:600;
}
#duda-pront-root .dpg-legenda span{display:inline-flex;align-items:center;gap:5px;}
#duda-pront-root .dpg-legenda .dpg-dot{position:static;transform:none;}
#duda-pront-root .dpg-sep{width:1px;height:14px;background:var(--dp-line);}

@media(max-width:620px){
  #duda-pront-root .dpg-ano{width:34px;font-size:10px;padding-right:7px;}
  #duda-pront-root .dpg-mes{font-size:7.5px;}
  #duda-pront-root .dpg-dot{width:10px;height:10px;}
  #duda-pront-root .dpg-cont{width:6px;height:6px;}
}

/* ---- marcador de ano na timeline vertical ---- */
#duda-pront-root .dp-ano-marca{
  position:relative;margin:26px 0 14px;padding-left:2px;
}
#duda-pront-root .dp-ano-marca:first-child{margin-top:4px;}
#duda-pront-root .dp-ano-marca:before{
  /* risca que atravessa a coluna, pra separar visualmente os anos */
  content:"";position:absolute;left:0;right:0;top:50%;height:1px;
  background:var(--dp-line-soft);
}
#duda-pront-root .dp-ano-marca span{
  position:relative;display:inline-block;
  font-size:24px;font-weight:700;letter-spacing:.5px;
  color:var(--dp-ink);background:var(--dp-bg);
  padding:0 14px 0 0;line-height:1;
}
@media(max-width:620px){
  #duda-pront-root .dp-ano-marca span{font-size:19px;}
}

/* ---------- avisos do servidor (upload recusado, etc.) ---------- */
.dp-aviso{
  max-width:1180px; margin:14px auto 0; padding:12px 14px;
  display:flex; align-items:flex-start; gap:12px;
  background:rgba(217,160,23,.12); border:1px solid rgba(217,160,23,.45);
  border-radius:10px; color:var(--dp-ink); font-size:13.5px; line-height:1.5;
}
.dp-aviso button{
  margin-left:auto; background:none; border:0; color:var(--dp-ink-faint);
  font-size:18px; line-height:1; cursor:pointer; padding:0 2px;
}
.dp-aviso button:hover{ color:var(--dp-ink); }

/* ---------- barra de progresso do envio de fotos ---------- */
.dp-enviando{
  position:fixed; left:50%; bottom:26px; transform:translateX(-50%);
  z-index:9000; padding:11px 20px; border-radius:999px;
  background:var(--dp-card); border:1px solid var(--dp-line);
  color:var(--dp-ink); font-size:13px; box-shadow:0 10px 30px rgba(0,0,0,.28);
}
