/* =========================================================
   Camada "clean" (carregada por último)
   Escala menor, mais respiro, sombras leves e luz laranja no hover.
   Mantém cores, fontes e cantos da identidade Duze.
   ========================================================= */

/* ---------- escala tipográfica ---------- */
body{font-size:14px;line-height:1.5}
h1,.page-head h1,.greet h1{font-size:clamp(28px,2.6vw,36px);line-height:1.08}
.modal-head h2{font-size:24px}
h2{font-size:18px}
h3,h3.ct{font-size:15px;font-weight:600;letter-spacing:-.01em}
.card-sub{font-size:12.5px}
.eyebrow{font-size:10.5px;letter-spacing:.14em}
.sec-label{font-size:10.5px;letter-spacing:.16em;margin:30px 0 12px}
.sec-label .line{width:32px;height:1.5px}
.page-head{margin-bottom:18px}
.page-head p.muted,.greet p{font-size:13.5px}
.greet h1{margin-bottom:4px}

/* números */
.num{font-weight:600;letter-spacing:-.02em}
.stat .num,.kpi .num{font-size:24px}
.month-name{font-size:40px}
.big-pct .num{font-size:44px}
.meta-row .num,.mini-meta b{font-size:16px}
.a-funil .funnel .num,.funnel .num{font-size:20px}
.load .nums .num{font-size:20px}
.kcard .val{font-size:15px}
.cl-prog .num{font-size:28px}
.cl-tema{font-size:28px}
.day-progress .num{font-size:16px!important}

/* textos de lista */
.row .title,.prow .title,.pc-tema,.kcard .title,.mini-item .t{font-size:13.5px}
.pc-tema{font-weight:600}
.row .sub,.kcard .meta,.pc-meta,.pc-date,.mini-item .s{font-size:11.5px}
.check-item,.rot-items .check-item{font-size:13.5px}
.tbl th{font-size:11px;letter-spacing:.04em}
.tbl td{font-size:13px;padding:9px 12px}

/* ---------- estrutura ---------- */
@media (min-width:861px){ .app{grid-template-columns:232px minmax(0,1fr)} .search input{width:260px} .modal{padding:24px;border-radius:22px} }
.sidebar{padding:24px 14px;gap:22px}
.sidebar .logo{width:104px;margin:2px 12px 4px}
.nav-group{gap:2px}
.nav-group .eyebrow{font-size:10px;padding:0 12px 6px}
.nav-item{min-height:40px;font-size:13.5px;gap:11px;padding:0 12px}
.nav-item svg.lucide{width:18px;height:18px}
.nav-item .count{font-size:11px;padding:1px 8px}
.sidebar .me{padding:10px;border-radius:16px;font-size:13px}
.main{padding:22px 32px 48px}
.topbar{margin-bottom:22px;gap:12px}
.crumb{font-size:13px;font-weight:500}
.crumb .line{width:28px;height:1.5px}

/* ---------- cartões mais leves ---------- */
.card{padding:20px;border-radius:20px}
.home,.day,.band,.grid2,.grid3,.stack{gap:16px}
.kpis,.stats,.load{gap:12px}
.stat{padding:16px 18px}
.row{min-height:48px;padding:9px 12px;border-radius:14px}
.rows{gap:6px}
.bloco{border-radius:16px}
.kcard{padding:12px;border-radius:14px;gap:6px;box-shadow:var(--shadow-soft)}
.col{border-radius:20px;padding:12px}
.notice{padding:12px 16px;border-radius:16px;font-size:13px}
.notice.strong{background:var(--surface);color:var(--text);box-shadow:inset 3px 0 0 var(--duze-orange)}
:root[data-theme="escuro"] .notice.strong{background:var(--surface);color:var(--text)}
.empty{padding:18px;border-radius:16px}
.bar{height:8px}
.day-bar{height:8px}

/* ---------- controles menores ---------- */
.btn{min-height:40px;padding:0 18px;font-size:13px}
.btn--sm{min-height:32px;padding:0 12px;font-size:12px}
.btn-cta{padding-right:5px}
.btn-cta .circle{width:30px;height:30px}
.icon-btn{width:38px;height:38px}
.icon-btn svg.lucide{width:18px;height:18px}
.field,select.field{min-height:40px;font-size:13.5px;padding:0 16px}
select.field{padding-right:38px}
.field-sm,select.field-sm{min-height:34px;font-size:12.5px}
textarea.field{font-size:13.5px}
label.lbl{font-size:12px;margin-bottom:5px}
.seg button,.seg a{min-height:34px;padding:0 14px;font-size:12.5px}
.chip-filter{min-height:32px;padding:0 12px;font-size:12px}
.status{font-size:11px;padding:3px 10px;min-height:24px;gap:5px}
.status svg.lucide{width:12px;height:12px}
.tag{font-size:10px;padding:3px 9px}
.prio{font-size:11px}
.avatar{width:30px;height:30px;font-size:11px}
.avatar.sm{width:24px;height:24px;font-size:10px}
svg.lucide{width:18px;height:18px}
.sm svg.lucide,svg.lucide.sm{width:14px;height:14px}

/* ---------- luz no hover (efeito LED) ---------- */
.btn,.icon-btn,.nav-item,.chip-filter,.seg button,.seg a,.link-btn,.row.click,.prow,.pcard,.kcard,.cal-card,.step,.wd,.cm-post,.load .card,.doc-card,.mtile,.ig-tile,.check-item .box,.check-item a.go,.bottom-nav a,.client-list a,.status-pick button{
  transition:box-shadow .2s ease,background-color .2s ease,color .2s ease,transform .12s ease,filter .2s ease}
.btn:hover{box-shadow:none}
.btn--primary:hover{box-shadow:var(--glow);filter:brightness(1.04)}
.btn--dark:hover,.btn--soft:hover,.btn--light:hover{box-shadow:var(--glow-soft)}
.btn--soft:hover{color:var(--accent-text)}
.btn--ok:hover{box-shadow:0 0 0 1px rgba(29,122,62,.5),0 0 14px rgba(29,122,62,.45)}
.btn--danger:hover{box-shadow:0 0 0 1px rgba(196,43,28,.5),0 0 14px rgba(196,43,28,.45)}
.btn-cta:hover .circle{box-shadow:0 0 10px rgba(255,108,0,.8)}
.icon-btn:hover{background:var(--glow-tint);color:var(--duze-orange);box-shadow:var(--glow-soft)}
.icon-btn:hover svg.lucide{filter:var(--glow-icon)}
.card--dark .icon-btn:hover,.card--orange .icon-btn:hover{color:var(--duze-orange);background:var(--duze-black);box-shadow:var(--glow)}
.nav-item:hover{background:rgba(255,108,0,.08);color:var(--duze-white)}
.nav-item:hover svg.lucide{color:var(--duze-orange);filter:var(--glow-icon)}
.nav-item.active{box-shadow:0 0 20px -4px rgba(255,108,0,.6)}
.nav-item.active:hover{background:var(--duze-orange);color:var(--duze-black)}
.nav-item.active:hover svg.lucide{color:var(--duze-black);filter:none}
.chip-filter:not(.on):hover,.seg button:not(.on):hover,.seg a:not(.on):hover{color:var(--accent-text);box-shadow:var(--glow-soft);background:var(--surface)}
.chip-filter.on{box-shadow:0 0 14px -4px rgba(255,108,0,.7)}
.link-btn:hover{color:var(--duze-orange);text-shadow:0 0 10px rgba(255,108,0,.45)}
.row.click:hover,.prow:hover,.pcard:hover,.cal-card:hover,.load .card:hover,.doc-card:hover,.kcard:hover{box-shadow:var(--glow-soft);transform:translateY(-1px)}
.row.today:hover{box-shadow:var(--glow)}
.step:hover{box-shadow:var(--glow-soft)}
.step.sel{box-shadow:0 0 22px -6px rgba(255,108,0,.55)}
.wd:hover,.cm-post:hover{box-shadow:var(--glow-soft)}
.mtile:hover,.ig-tile:hover{box-shadow:var(--glow);z-index:1}
.check-item .box:hover{box-shadow:var(--glow-soft)}
.check-item a.go:hover{color:var(--duze-orange);filter:var(--glow-icon)}
.client-list a:not(.on):hover{color:var(--accent-text);background:var(--glow-tint)}
.bottom-nav a:not(.active):hover svg.lucide{color:var(--duze-orange);filter:var(--glow-icon)}
.status-pick button:not(.on):hover{box-shadow:var(--glow-soft)}
.btn:active,.icon-btn:active,.chip-filter:active,.step:active{transform:scale(.97)}
/* campos acendem ao focar com o mouse também */
.field:hover{box-shadow:inset 0 0 0 1px rgba(255,108,0,.35)}
.field:focus{outline:none;box-shadow:0 0 0 1px rgba(255,108,0,.6),0 0 14px -2px rgba(255,108,0,.45)}

/* sem luz para quem prefere menos movimento */
@media (prefers-reduced-motion:reduce){
  .row.click:hover,.prow:hover,.pcard:hover,.cal-card:hover,.load .card:hover,.doc-card:hover,.kcard:hover{transform:none}
}

/* ---------- toque: alvos de 44px no celular ---------- */
@media (pointer:coarse){
  .btn{min-height:44px}
  .icon-btn{width:44px;height:44px}
  .field,select.field{min-height:44px}
  .seg button,.seg a,.chip-filter{min-height:40px}
}

/* ---------- celular ---------- */
@media (max-width:860px){
  body{font-size:14px}
  h1,.page-head h1,.greet h1{font-size:28px}
  .modal-head h2{font-size:21px}
  .main{padding:14px 16px 96px}
  .card,.inicio .card{padding:16px}
  .month-name{font-size:34px}
  .big-pct .num{font-size:36px}
  .stat .num{font-size:20px}
  .sec-label{margin:22px 0 10px}
  .bottom-nav a{font-size:10.5px;min-height:50px}
  .bottom-nav svg.lucide{width:19px;height:19px}
  .cl-tema{font-size:24px}
}

/* =========================================================
   Cabeçalho de seção: diz do que são os quadros abaixo
   ========================================================= */
.sec-head{display:flex;align-items:center;gap:14px;margin:36px 0 14px;min-width:0}
.sec-head:first-child{margin-top:4px}
.sec-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--glow-tint);color:var(--duze-orange);flex:none;box-shadow:0 0 18px -6px rgba(255,108,0,.6)}
.sec-ico svg.lucide{width:20px;height:20px}
.sec-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.sec-t{font-family:var(--font-display);font-weight:400;font-size:28px;line-height:1.05;letter-spacing:-.005em;margin:0}
.sec-d{font-size:13px;color:var(--text-muted);margin:0}
.sec-line{flex:1;height:1px;min-width:24px;background:linear-gradient(90deg,var(--duze-orange) 0 56px,var(--surface-strong) 56px)}
.sec-meta{font-size:12.5px;color:var(--text-muted);white-space:nowrap;background:var(--surface);border-radius:var(--radius-pill);padding:6px 14px;box-shadow:var(--shadow-soft)}
.sec-meta b{color:var(--text);font-weight:600}
.sec--atencao .sec-ico{background:rgba(196,43,28,.10);color:var(--state-late-text);box-shadow:0 0 18px -6px rgba(196,43,28,.55)}
.sec--atencao .sec-line{background:linear-gradient(90deg,var(--state-late) 0 56px,var(--surface-strong) 56px)}
.sec--atencao .sec-meta b{color:var(--state-late-text)}
.sec--ok .sec-ico{background:rgba(29,122,62,.10);color:var(--state-ok-text)}
/* rótulos antigos, se ainda existir algum */
.inicio-sec,.sec-label{display:none}

@media (max-width:1100px){ .sec-line{display:none} .sec-head{flex-wrap:wrap} .sec-meta{margin-left:54px} }
@media (max-width:860px){
  .sec-head{margin:22px 0 10px;gap:10px}
  .sec-ico{width:32px;height:32px}
  .sec-ico svg.lucide{width:16px;height:16px}
  .sec-t{font-size:22px}
  .sec-d{font-size:12px}
  .sec-meta{margin-left:42px;font-size:11.5px;padding:4px 10px}
  /* Início no celular: mesma ordem do computador, com os cabeçalhos */
  .inicio{grid-template-areas:"sdia" "rotina" "reun" "saten" "urgentes" "smes" "metas" "funil" "acoes"}
  .inicio .s-dia{grid-area:sdia}.inicio .s-aten{grid-area:saten}.inicio .s-mes{grid-area:smes}
  .inicio .sec-head{margin:10px 0 0}
  .inicio .sec-head.s-dia{margin-top:0}
}

@media (max-width:860px){
  .sec-head{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:0;align-items:center}
  .sec-head .sec-meta,.sec-head .sec-line{display:none}
  .sec-t{font-size:21px}
  .sec-d{font-size:11.5px;line-height:1.35}
  .inicio .sec-head{margin:8px 0 -4px}
}
