:root{
  --bg:#f4f4f4;
  --card:#ffffff;
  --muted:#6b7280;
  --shadow: 0 8px 24px rgba(0,0,0,.08);

  --planejar:#ffe066;
  --influenciar:#ffa94d;
  --avancar:#ff6b6b;

  --center:#efefef;
  --status-green:#3cb44b;
  --status-yellow:#ffe066;
}

*{box-sizing:border-box;}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:#111;
}

.header{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding:16px;
  gap:12px;
}
.header h1{
  margin:0;
  text-align:center;
  letter-spacing:.5px;
  font-size: 18px;
  letter-spacing: .3px;
}

.brand{
  justify-self:end;
  display:flex;
  align-items:center;
}
.brand-img{
  max-height:32px;
  width:auto;
}

.link{
  justify-self:start;
  border:none;
  background:transparent;
  color:#b00020;
  font-weight:700;
  cursor:pointer;
  text-decoration: underline;
}

.topbar{
  display:grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap:12px;
  padding: 0 16px 16px 16px;
}
@media (max-width: 980px){
  .topbar{grid-template-columns: repeat(2, minmax(180px, 1fr));}
}
@media (max-width: 560px){
  .topbar{grid-template-columns: 1fr;}
}

.field label{
  display:block;
  font-size:12px;
  color: var(--muted);
  margin-bottom:6px;
}
.field input, .field select, .field textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #d5d5d5;
  background:#fff;
}

.semestre{
  display:flex;
  align-items:center;
  gap:28px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid #d5d5d5;
  background:#fff;
}

.semestre label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  color:#111;
  cursor:pointer;
  margin:0;
}

.semestre input[type="radio"]{
  width:18px;
  height:18px;
  accent-color:#111; /* cor do radio (moderno) */
  cursor:pointer;
}


.status{
  background:var(--status-green);
  color:#fff;
  text-align:center;
  padding:10px 12px;
  font-weight:800;
}
.status.editing{
  background: var(--status-yellow);
  color:#111;
}

main{padding: 24px 16px 8px 16px;}

.pilar-banner{
  display:flex;
  justify-content:center;
  margin: 10px 0 16px;
}
.pilar-banner img{
  width: min(520px, 92vw);
  height: auto;
  display:block;
}

.pilar{
  margin: 26px 0 60px;
}
.pilar h2{
  margin:0 0 16px;
  font-size:22px;
}

.questao-grid{
  display:grid;
  grid-template-columns: 1.35fr 1fr 1.35fr;
  gap:16px;
  align-items:stretch;
  margin-bottom:18px;
}
@media (max-width: 980px){
  .questao-grid{grid-template-columns: 1fr;}
}

.card-left{
  border-radius:26px;
  padding:26px;
  font-weight:800;
  font-size:20px;
  line-height:1.15;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
}
.card-left.planejar{background: var(--planejar);}
.card-left.influenciar{background: var(--influenciar);}
.card-left.avancar{background: var(--avancar); color:#fff;}

.card-center{
  background: var(--center);
  border-radius:26px;
  padding:18px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:10px;
  min-height: 140px;
}

.scale-note{
  font-size:14px;
  color:#333;
  display:flex;
  justify-content:space-between;
  width:100%;
  gap:8px;
  font-weight:700;
}
.scale-note span{flex:1; text-align:center;}

/* ====== NIVEIS ====== */
.scale{
  width:100%;
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:6px;
}

.scale input{ display:none; }

.pill{
  width:78px;
  height:78px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:900;

  border: 3px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.pill.red{ background:#ff6b6b; }
.pill.orange{ background:#ffa94d; }
.pill.yellow{ background:#ffe066; }
.pill.green{ background:#51cf66; }

.pill .num{
  font-size:26px;
  line-height:1;
  margin-bottom:10px;
  color:#111;
}

.pill .dot{
  width:26px;
  height:26px;
  border-radius:999px;
  border: 4px solid #fff;
  background: transparent;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
}

/* selecionado: "bolinha" preenchida */
.scale input:checked + label .dot{
  background: #fff;
}

.scale input:checked + label{
  outline: 4px solid rgba(0,0,0,.18);
}
/* ====== FIM NIVEIS ====== */

.card-right{
  background:#f0f0f0;
  border-radius:26px;
  padding:18px;
  box-shadow: var(--shadow);
}
.card-right ul{
  margin:0;
  padding-left:18px;
}
.card-right li{
  margin: 8px 0;
  line-height:1.25;
}

.global-block{
  margin-top: 6px;
}

.obs-block{
  margin-top: 10px;
  background: var(--card);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.obs-block textarea{
  width:100%;
  border-radius:12px;
  padding:12px;
  border:1px solid #d5d5d5;
  background:#fff;
}

.upskilling{
  padding: 0 16px 16px 16px;
}
.upskilling h3{margin: 0 0 10px;}
.upskilling .field{margin-bottom:12px;}
.upskilling textarea{min-height: 92px;}

.footer{
  position: sticky;
  bottom: 0;
  background:#fff;
  padding: 12px 16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-top: 1px solid #e5e5e5;
}

.btn{
  border:none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor:pointer;
  font-weight:900;
}
.btn.primary{background:#111; color:#fff;}
.btn.secondary{background:#e9e9e9;}
.btn.small{padding:8px 10px; font-weight:800; border-radius:10px;}

.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 40px 16px;
}
.modal.hidden{display:none;}
.modal-card{
  width: min(980px, 100%);
  background:#fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid #eee;
}
.table-wrap{padding: 12px 14px 14px; overflow:auto;}
.table{width:100%; border-collapse:collapse;}
.table th, .table td{
  padding:10px 8px;
  border-bottom: 1px solid #eee;
  text-align:left;
  font-size:14px;
}
.table th{background:#fafafa;}
