/* ---------- Produção: quadro, card, tarefas, equipes ---------- */
.seg { display: inline-flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.board-page { max-width: none; }
.bd-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.bd-bar .calnav { display: flex; gap: 8px; align-items: center; min-width: 210px; }
.bd-bar .calnav b { min-width: 130px; text-align: center; }
.bd-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-filters select { width: auto; margin: 0; padding: 7px 10px; font-size: 13px; }
.bd-actions { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.bd-sum { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.bd-sum b { color: var(--fg); }
.bd-sum .a-aguardando b { color: var(--warn); } .bd-sum .a-ajuste b { color: var(--err); }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.kanban.steps { grid-auto-columns: minmax(220px, 1fr); }
.kcol { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; transition: border-color .15s; }
.kcol.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.khead { display: flex; gap: 6px; align-items: baseline; font-size: 14px; padding: 2px 4px 4px; }
.khead .muted { font-size: 12px; }
.kcount { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--panel2); border-radius: 99px; padding: 1px 8px; }
.cdate { font-size: 11.5px; background: color-mix(in srgb, #A855F7 16%, transparent); color: #D8B4FE; border-radius: 6px; padding: 3px 8px; line-height: 1.35; }
.cdate span:first-child { font-weight: 700; margin-right: 2px; }
.kcard { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; padding: 10px; color: var(--fg); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.kcard:hover { border-color: #3a3a3a; }
.kcard.al-aguardando { border-left-color: var(--warn); } .kcard.al-ajuste, .kcard.al-refacao { border-left-color: var(--err); }
.kcard.dragging { opacity: .4; }
.kcard.mini { flex-direction: row; align-items: center; width: auto; padding: 6px 10px; font-size: 13px; }
.ktags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.ftag, .atag, .ctag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 5px; background: #2a2a2a; color: #d4d4d4; }
.ftag.f-estatico { background: #1e3a5f; color: #93C5FD; } .ftag.f-carrossel { background: #134e4a; color: #5EEAD4; }
.ftag.f-reels { background: #4a1d5f; color: #E9A8FF; } .ftag.f-stories { background: #57361a; color: #FDBA74; }
.atag.a-aguardando { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.atag.a-ajuste, .atag.a-refacao { background: color-mix(in srgb, var(--err) 22%, transparent); color: #FCA5A5; }
.kthumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }
.ktitle { font-weight: 600; font-size: 14px; line-height: 1.3; }
.kday { font-size: 12px; color: var(--muted); }
.kfoot { display: flex; align-items: center; gap: 8px; }
.kprog { flex: 1; height: 5px; background: #2a2a2a; border-radius: 99px; overflow: hidden; }
.kprog i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.kn { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kcm { font-size: 12px; color: var(--muted); }
.av { width: 24px; height: 24px; border-radius: 50%; background: #333; color: var(--fg); font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.av.big { width: 36px; height: 36px; font-size: 13px; background: color-mix(in srgb, var(--accent) 30%, #222); }
.kadd { background: none; border: 1px dashed var(--line); color: var(--muted); border-radius: 10px; padding: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.kadd:hover { color: var(--fg); border-color: #3a3a3a; }
.blist .tr { grid-template-columns: 130px 2fr 110px 1.6fr 1fr 140px; align-items: center; }
.tr.click { cursor: pointer; } .tr.click:hover { background: var(--panel2); }
.tr.th { font-size: 12px; color: var(--muted); font-weight: 600; }
.tr.task { grid-template-columns: 1.3fr 2fr 140px 1fr; align-items: center; }
.tdo { display: flex; flex-direction: column; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.person { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.tgroup h2 { font-size: 16px; margin: 24px 0 10px; }
.teams { display: flex; flex-direction: column; gap: 10px; }
.team-head { display: flex; gap: 12px; align-items: baseline; cursor: pointer; flex-wrap: wrap; }
.team.open .team-head { margin-bottom: 14px; }
.trole { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; }
.tlabel { font-size: 13px; color: var(--muted); padding-top: 7px; }
/* gaveta do card */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(600px, 100%); background: var(--panel); border-left: 1px solid var(--line); padding: 18px 22px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.drawer.wide { width: min(820px, 100%); }
.dr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dr-head .link { font-size: 20px; color: var(--muted); }
.dr-title { font-size: 20px; font-weight: 700; background: none; border-color: transparent; padding: 6px 8px; margin: 0 -8px; }
.dr-title:hover { border-color: var(--line); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 4px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; cursor: pointer; margin-bottom: -1px; }
.tabs button.on { color: var(--fg); border-bottom-color: var(--accent); }
.dr-body { display: flex; flex-direction: column; gap: 4px; }
.flow { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.flow-head { display: flex; gap: 8px; align-items: baseline; padding: 0 4px 6px; }
.fstep { display: flex; gap: 10px; align-items: center; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; text-align: left; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.fstep:hover:not(:disabled) { background: #222; }
.fstep:disabled { cursor: default; }
.fstep .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #444; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; }
.fstep.sauto .box { border-style: dashed; }
.fstep.done .box { background: var(--ok); border-color: var(--ok); color: #052e12; }
.fstep.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: #555; }
.fstep.next .box { border-color: var(--accent); color: var(--accent); }
.fstep small { font-size: 11.5px; }
.lnk { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; min-width: 0; }
.lnk .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.lnk-add { display: grid; grid-template-columns: 2fr 1fr auto; gap: 6px; align-items: center; margin-bottom: 12px; }
.lnk-add input { margin: 0; }
.dr-media { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.mthumb { width: 64px; height: 64px; border-radius: 8px; background: #000; display: grid; place-items: center; font-size: 11px; overflow: hidden; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.dr-save { position: sticky; bottom: -40px; background: var(--panel); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.cmt-new { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 14px; }
.cmt-new textarea { margin: 0 0 10px; }
.cmt-new .chip.on.k-ajuste, .cmt-new .chip.on.k-refacao, .cmt-new .chip.on.k-cliente { background: color-mix(in srgb, var(--err) 18%, transparent); border-color: var(--err); color: #FCA5A5; }
.cmt-new .chip.on.k-aprovacao { background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: var(--ok); color: var(--ok); }
.cmts { display: flex; flex-direction: column; gap: 8px; }
.cmt { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; }
.cmt.k-ajuste, .cmt.k-refacao, .cmt.k-cliente { border-left-color: var(--err); }
.cmt.k-aprovacao { border-left-color: var(--ok); }
.cmt.k-sistema { opacity: .65; font-size: 13px; }
.cmt-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.cmt-t { white-space: pre-wrap; font-size: 14px; margin-top: 2px; }
.ctag { background: #2a2a2a; }
.cmt.k-ajuste .ctag, .cmt.k-refacao .ctag, .cmt.k-cliente .ctag { color: #FCA5A5; } .cmt.k-aprovacao .ctag { color: var(--ok); }
/* pauta com IA */
.aidate { flex-wrap: wrap; font-size: 14px; }
.aidate small { width: 100%; padding-left: 24px; }
.ideas { display: flex; flex-direction: column; gap: 6px; }
.idea { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.idea.off { opacity: .5; }
.idea-h { display: grid; grid-template-columns: auto 140px 120px 1fr auto; gap: 8px; align-items: center; }
.idea-h input, .idea-h select { margin: 0; padding: 6px 8px; font-size: 13px; }
.idea-b { margin-top: 10px; }
@media (max-width: 900px) {
  .bd-actions { margin-left: 0; }
  .kanban { grid-auto-columns: 82%; scroll-snap-type: x mandatory; } .kcol { scroll-snap-align: start; }
  .blist .tr, .tr.task { grid-template-columns: 1fr; gap: 4px; }
  .blist .tr.th { display: none; }
  .idea-h { grid-template-columns: auto 1fr 1fr; } .idea-h .itheme { grid-column: 1 / -1; }
  .trole { grid-template-columns: 1fr; gap: 0; }
  .lnk-add { grid-template-columns: 1fr; }
}

/* ---------- notificações e menções ---------- */
.bellbox { position: fixed; top: 14px; right: 18px; z-index: 55; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.bell:hover { border-color: #3a3a3a; }
.bell .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.npanel { position: absolute; right: 0; top: 48px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.nhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.nitem { display: flex; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 13.5px; padding: 11px 14px; cursor: pointer; }
.nitem:hover { background: var(--panel2); }
.nitem.new { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.nitem.new .ntx > span { font-weight: 600; }
.nic { width: 26px; height: 26px; border-radius: 50%; background: #2a2a2a; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.nitem.k-mencao .nic { color: var(--accent); } .nitem.k-ajuste .nic { color: var(--err); } .nitem.k-aprovado .nic { color: var(--ok); }
.ntx { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.mwrap { position: relative; }
.mlist { position: absolute; left: 0; right: 0; top: calc(100% - 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; z-index: 5; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.mlist button { display: flex; gap: 8px; align-items: center; width: 100%; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; padding: 8px 10px; cursor: pointer; text-align: left; }
.mlist button.on, .mlist button:hover { background: var(--panel2); }
.mlist small { margin-left: auto; }
.mtag { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.chip.sm { padding: 3px 9px; font-size: 12px; }
.ment { font-size: 12px; color: var(--accent); }
@media (max-width: 900px) { .bellbox { top: 10px; right: 12px; } }
.pagehead { padding-right: 52px; }
@media (max-width: 900px) { .bellbox { right: 62px; top: 12px; } .bell { width: 42px; height: 42px; border-radius: 10px; background: var(--panel2); } .pagehead { padding-right: 0; } }
.cdate.fixed { background: color-mix(in srgb, #A855F7 9%, transparent); color: #C4B5FD; }
.pi-when { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pi-date { display: inline-flex; gap: 6px; }
.pi-date input { margin: 0; padding: 5px 8px; font-size: 13px; width: auto; }
.wtabs { display: none; }
@media (max-width: 900px) {
  .wtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 10px; padding: 4px 16px; position: sticky; top: 0; z-index: 4; background: var(--bg); scrollbar-width: none; }
  .wtabs::-webkit-scrollbar { display: none; }
  .wtabs button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 6px 12px; font: inherit; cursor: pointer; }
  .wtabs button b { font-size: 13px; color: var(--fg); } .wtabs button small { font-size: 10.5px; }
  .wtabs button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
  .wtabs button i { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--err); }
  .kanban { grid-auto-columns: 88%; scroll-snap-type: x mandatory; scroll-padding-left: 0; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 12px; scroll-padding: 0 16px; }
  .kcol { scroll-snap-align: start; }
  .bd-filters select { flex: 1 1 45%; }
}

