/* Hoje: progresso compacto, notas legíveis e ações secundárias visíveis. */
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="critical"]{
  align-self:start!important;
  height:max-content!important;
  min-height:0!important;
}
/* Em telas largas, encaixa os cartões principais como duas colunas contínuas.
   O calendário ocupa as duas primeiras linhas enquanto críticos e erros se
   sucedem à direita, eliminando o grande vazio abaixo de temas críticos. */
@media(min-width:1280px){
  html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="calendar"]{
    grid-column:1/span 4!important;
    grid-row:1/span 2!important;
    align-self:start!important;
  }
  html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="critical"]{
    grid-column:5/span 8!important;
    grid-row:1!important;
  }
  html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="errors"]{
    grid-column:5/span 8!important;
    grid-row:2!important;
    align-self:start!important;
  }
  html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="tasks"]{
    grid-column:1/span 4!important;
    grid-row:3!important;
    height:auto!important;
    align-self:start!important;
  }
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"],
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"]{
  grid-column:1/-1!important;
  height:auto!important;
  align-self:start!important;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]{
  min-height:0!important;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-header"]{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-content"]{
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) minmax(170px,1fr) minmax(400px,1.5fr)!important;
  align-items:center!important;
  gap:24px!important;
  padding:10px 24px 24px!important;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-content"]>div{
  margin:0!important;
  min-width:0!important;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-content"]>.grid-cols-4{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-content"]>.grid-cols-4>div{
  min-height:78px;
  display:grid;
  align-content:center;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"]{
  min-height:0!important;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"]>[data-slot="card-content"]{
  min-height:0!important;
  padding-bottom:12px!important;
}
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"] .rw-performance-area-panel,
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"] .rw-performance-area-content,
html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"] .rw-performance-area-columns{
  flex:none!important;
  min-height:0!important;
}
.rw-recent-score-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:6px;
}
.rw-recent-score-item{
  display:grid;
  gap:7px;
  min-width:0;
  padding:11px 13px;
  border:1px solid #d9ded9;
  border-radius:12px;
  background:#fff;
}
.rw-recent-score-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;min-width:0}
.rw-recent-score-heading b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#262d29;font-size:13px;font-weight:700}
.rw-recent-score-heading strong{flex:none;color:#1f523a;font-size:16px;line-height:1;font-variant-numeric:tabular-nums}
.rw-recent-score-track{height:6px;overflow:hidden;border-radius:99px;background:#e9efeb}
.rw-recent-score-track i{display:block;height:100%;border-radius:99px}
.rw-recent-score-item.is-low .rw-recent-score-track i{background:#d64c59}
.rw-recent-score-item.is-mid .rw-recent-score-track i{background:#2f9866}
.rw-recent-score-item.is-high .rw-recent-score-track i{background:#7955c8}
.rw-recent-score-item.is-low .rw-recent-score-heading strong{color:#ad3341}
.rw-recent-score-item.is-mid .rw-recent-score-heading strong{color:#24734d}
.rw-recent-score-item.is-high .rw-recent-score-heading strong{color:#6946b5}
.rw-recent-score-item small{color:#67716a;font-size:11px;line-height:1.2}
.rw-performance-topic-score{
  flex:none;
  min-width:48px;
  padding:5px 7px;
  border-radius:8px;
  background:#eaf3ed;
  color:#24563c;
  font-size:13px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  text-align:center;
}
.rw-performance-topic-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.rw-performance-topic-heading h3{margin:0!important}
.rw-performance-topic-heading button{
  flex:none;
  border:0;
  background:transparent;
  color:#276344;
  font:inherit;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
}
.rw-performance-topic-heading button:hover{text-decoration:underline}
.rw-performance-topic-heading button:focus-visible,.rw-performance-topic-search:focus-visible{outline:2px solid #32825a;outline-offset:2px}
.rw-performance-topic-heading button[hidden],.rw-performance-topic-row[hidden],.rw-performance-topic-list [data-rw-topic-empty][hidden]{display:none!important}
.rw-performance-topic-search{
  width:100%;
  height:36px;
  margin-bottom:8px;
  padding:0 10px;
  border:1px solid #d4dcd5;
  border-radius:9px;
  background:#fff;
  color:#253329;
  font:inherit;
  font-size:12px;
}
.rw-performance-topic-list.is-expanded{max-height:360px;overflow-y:auto;padding-right:5px;scrollbar-width:thin}
.rw-today-secondary-toggle>button{
  min-height:82px!important;
  padding:16px 20px!important;
  border:1px solid #cbd3cc!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 4px 16px rgba(23,35,26,.05);
}
.rw-today-secondary-toggle span strong{font-size:16px!important;color:#252c27!important}
.rw-today-secondary-toggle span small{font-size:12px!important;color:#68736b!important;margin-top:4px!important}
.rw-today-secondary-toggle>button b{
  padding:9px 14px!important;
  border:0!important;
  border-radius:9px!important;
  background:#203c2b!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:750;
}
.rw-today-secondary-toggle>button:hover{border-color:#789b81!important;background:#f8fbf8!important}
html.dark .rw-recent-score-item{background:#242b26;border-color:#425048}
html.dark .rw-recent-score-heading b{color:#edf2ed}
html.dark .rw-recent-score-heading strong{color:#a5dfb9}
html.dark .rw-recent-score-track{background:#39483f}
html.dark .rw-recent-score-item.is-low .rw-recent-score-track i{background:#f07b87}
html.dark .rw-recent-score-item.is-mid .rw-recent-score-track i{background:#68c994}
html.dark .rw-recent-score-item.is-high .rw-recent-score-track i{background:#ad91ef}
html.dark .rw-recent-score-item.is-low .rw-recent-score-heading strong{color:#ffa0aa}
html.dark .rw-recent-score-item.is-mid .rw-recent-score-heading strong{color:#8edeb0}
html.dark .rw-recent-score-item.is-high .rw-recent-score-heading strong{color:#c6aff6}
html.dark .rw-recent-score-item small{color:#adbab0}
html.dark .rw-performance-topic-score{background:#294333;color:#b8e6c5}
html.dark .rw-performance-topic-heading button{color:#9bd5ad}
html.dark .rw-performance-topic-search{background:#1c261f;border-color:#4b5d50;color:#eff5f0}
html.dark body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"] .rw-performance-area-panel{
  background:#242b26!important;
  border-color:#465249!important;
  color:#edf3ee!important;
}
html.dark body main.rw28-main .rw-performance-area-toggle,
html.dark body main.rw28-main .rw-performance-area-toggle b,
html.dark body main.rw28-main .rw-performance-area-summary b,
html.dark body main.rw28-main .rw-performance-area-columns h3,
html.dark body main.rw28-main .rw-performance-score-row b,
html.dark body main.rw28-main .rw-performance-topic-row b,
html.dark body main.rw28-main .rw-performance-score-row strong{
  color:#edf3ee!important;
}
html.dark body main.rw28-main .rw-performance-area-toggle small,
html.dark body main.rw28-main .rw-performance-area-summary span,
html.dark body main.rw28-main .rw-performance-score-row small,
html.dark body main.rw28-main .rw-performance-topic-row small{color:#aebdb1!important}
html.dark body main.rw28-main .rw-performance-area-columns>div{
  background:#202722!important;
  border-color:#435046!important;
}
html.dark body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"] .rw-performance-area-tabs button[data-rw-performance-area]{
  background:#2a342d!important;
  border-color:#536455!important;
  color:#dce9df!important;
}
html.dark body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="recent-performance"] .rw-performance-area-tabs button[data-rw-performance-area][aria-selected="true"]{
  background:#d6eadb!important;
  border-color:#d6eadb!important;
  color:#193525!important;
}
html.dark body main.rw28-main .rw-performance-topic-score{background:#294333!important;color:#b8e6c5!important}
html.dark .rw-today-secondary-toggle>button{background:#202823!important;border-color:#42584a!important}
html.dark .rw-today-secondary-toggle span strong{color:#eef4ef!important}
html.dark .rw-today-secondary-toggle span small{color:#b6c3b8!important}
html.dark .rw-today-secondary-toggle>button b{background:#d6eadb!important;color:#193525!important}
@media(max-width:1050px){
  html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-content"]{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-content"]>.grid-cols-4{grid-column:1/-1!important}
}
@media(max-width:640px){
  html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-content"]{grid-template-columns:1fr!important;gap:15px!important;padding:8px 16px 18px!important}
  html body main.rw28-main .rw-today-organized-grid>[data-rw-today-role="progress"]>[data-slot="card-content"]>.grid-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .rw-recent-score-list{grid-template-columns:1fr}
  .rw-today-secondary-toggle>button{padding:14px!important}
  .rw-today-secondary-toggle span strong{font-size:14px!important}
  .rw-today-secondary-toggle span small{font-size:11px!important}
}
