/* Gestão de Projetos: quadro por status + quadro de rascunho (whiteboard) */
.pj-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.pj-empty { grid-column: 1 / -1; }
.pj-col { background: hsl(var(--muted) / .45); border: 1px solid hsl(var(--border)); border-radius: 14px; padding: 10px; min-height: 220px; transition: background .15s, border-color .15s; }
.pj-col.over { background: color-mix(in srgb, var(--pc) 10%, transparent); border-color: var(--pc); }
.pj-ch { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-size: 13px; }
.pj-ch svg { width: 16px; height: 16px; color: var(--pc); }
.pj-ch span { margin-left: auto; font-size: 12px; font-weight: 700; color: hsl(var(--muted-fg)); background: hsl(var(--card)); border-radius: 99px; padding: 1px 8px; }
.pj-list { display: grid; gap: 8px; }
.pj-card { display: block; padding: 11px 12px; color: inherit; text-decoration: none; border-left: 3px solid var(--pc); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.pj-card:hover { transform: translateY(-1px); text-decoration: none; }
.pj-card.dragging { opacity: .45; }
.pj-ct { display: flex; gap: 8px; align-items: flex-start; }
.pj-ct b { flex: 1; font-size: 13.5px; line-height: 1.35; }
.pj-cl { font-size: 12px; color: hsl(var(--muted-fg)); margin-top: 6px; display: flex; gap: 5px; align-items: center; }
.pj-cl svg, .pj-meta svg { width: 12px; height: 12px; }
.pj-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: hsl(var(--muted-fg)); }
.pj-meta span { display: inline-flex; gap: 4px; align-items: center; }
.pj-meta .grow { flex: 1; }
.pj-av { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 9.5px; font-weight: 800; display: grid !important; place-items: center; }
.pj-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pj-tags span { font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: hsl(var(--muted)); color: hsl(var(--muted-fg)); }
.pj-none { text-align: center; color: hsl(var(--muted-fg)); font-size: 12px; padding: 14px 0; }
.pj-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pj-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; }
.pj-form .wide { grid-column: 1 / -1; }
.pj-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.pj-head > .grow { flex: 1; min-width: 240px; }
.pj-head h1 { margin: 0 0 6px; font-size: 24px; }
.pj-hic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 15%, transparent); color: var(--pc); }
.pj-hic svg { width: 22px; height: 22px; }
.pj-hm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; color: hsl(var(--muted-fg)); }
.pj-hm a, .pj-hm span { display: inline-flex; gap: 5px; align-items: center; }
.pj-hm svg { width: 13px; height: 13px; }
.pj-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; font-size: 13px; font-weight: 600; color: hsl(var(--muted-fg)); text-decoration: none; }
.pj-tabs a + a { border-left: 1px solid hsl(var(--border)); }
.pj-tabs a.on { background: hsl(var(--primary) / .12); color: hsl(var(--primary)); }
.pj-tabs svg { width: 14px; height: 14px; }
.pj-wb { height: calc(100vh - 210px); min-height: 520px; }
.pj-sum { max-width: 980px; }

/* ---------- quadro de rascunho */
.wb { --wb-ink: #1e1e1e; --wb-bg: #fbfbfa; --wb-dot: #d9d9d6; position: relative; height: 100%; border: 1px solid hsl(var(--border)); border-radius: 14px; overflow: hidden; background: var(--wb-bg); outline: none; user-select: none; }
.dark .wb { --wb-ink: #e8e8e8; --wb-bg: #18191b; --wb-dot: #34363a; }
.wb-svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.wb.ro .wb-svg { cursor: default; }
.wb.panning .wb-svg, .wb.space .wb-svg { cursor: grab; }
.wb-dot { fill: var(--wb-dot); }
.wb [data-id] { cursor: move; }
.wb.ro [data-id] { cursor: default; }
.wb-hit { fill: none; stroke: transparent; stroke-width: 14; }
.wb-fo { overflow: visible; pointer-events: none; }
.wb-lbl { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3; padding: 6px; box-sizing: border-box; overflow: hidden; font-family: 'Inter Variable', Inter, system-ui, sans-serif; word-break: break-word; }
.wb-lbl.note { align-items: flex-start; justify-content: flex-start; text-align: left; padding: 12px 14px; }
.wb-lbl.txt { justify-content: flex-start; text-align: left; padding: 4px; white-space: pre; overflow: visible; }
.wb-note { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .14)); }
.wb-itxt { font-size: 13px; font-weight: 600; fill: var(--wb-ink); }
.wb-alab { text-align: center; font-size: 13px; color: var(--wb-ink); }
.wb-alab { display: inline-block; width: 100%; } .wb-alab:not(:empty) { background: var(--wb-bg); }
.wb-selbox { fill: none; stroke: #6965db; stroke-width: 1.5; stroke-dasharray: 5 4; rx: 6; }
.wb-selline { stroke: #6965db; stroke-width: 1; stroke-dasharray: 4 4; }
.wb-h { fill: #fff; stroke: #6965db; stroke-width: 1.5; cursor: nwse-resize; }
.wb-marq { fill: rgba(105, 101, 219, .08); stroke: #6965db; stroke-width: 1; }
.wb-snap { fill: none; stroke: #6965db; stroke-width: 2; opacity: .6; }
.wb-tools, .wb-right, .wb-props, .wb-icons { position: absolute; z-index: 2; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.wb-tools { top: 12px; left: 12px; display: flex; gap: 2px; padding: 4px; max-width: calc(100% - 440px); flex-wrap: wrap; }
.wb-tools button, .wb-right button { width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; color: hsl(var(--fg)); cursor: pointer; display: grid; place-items: center; }
.wb-tools button:hover, .wb-right button:hover { background: hsl(var(--muted)); }
.wb-tools button.on, .wb-right button.on { background: #e0dfff; color: #4a47b1; }
.dark .wb-tools button.on, .dark .wb-right button.on { background: #403e6a; color: #c9c7ff; }
.wb-tools svg, .wb-right svg { width: 17px; height: 17px; }
.wb-sep { width: 1px; background: hsl(var(--border)); margin: 4px 3px; }
.wb-right { top: 12px; right: 12px; display: flex; align-items: center; gap: 2px; padding: 4px; }
.wb-right .wb-z { width: auto; padding: 0 6px; font: inherit; font-size: 12px; font-weight: 600; }
.wb-status { font-size: 11.5px; color: hsl(var(--muted-fg)); padding: 0 8px; white-space: nowrap; }
.wb-props { top: 64px; left: 12px; width: 196px; padding: 10px 12px; }
.wb-pl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-fg)); margin: 8px 0 6px; }
.wb-pl:first-child { margin-top: 0; }
.wb-sw { display: flex; flex-wrap: wrap; gap: 5px; }
.wb-sw button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid hsl(var(--border)); background: var(--c); cursor: pointer; }
.wb-sw button.on { outline: 2px solid #6965db; outline-offset: 1px; }
.wb-sw button.none { background: repeating-linear-gradient(45deg, transparent 0 4px, hsl(var(--border)) 4px 5px); }
.wb-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.wb-seg button { min-width: 32px; height: 30px; border-radius: 7px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); cursor: pointer; display: grid; place-items: center; font-size: 12px; font-weight: 700; padding: 0 6px; }
.wb-seg button.on { background: #e0dfff; border-color: #6965db; color: #4a47b1; }
.dark .wb-seg button.on { background: #403e6a; color: #c9c7ff; }
.wb-seg button.danger { color: hsl(var(--danger)); }
.wb-seg i { display: block; width: 18px; background: currentColor; border-radius: 2px; }
.wb-seg svg { width: 15px; height: 15px; }
.wb-icons { top: 64px; left: 220px; display: grid; grid-template-columns: repeat(8, 76px); gap: 4px; padding: 8px; max-width: calc(100% - 24px); max-height: 50%; overflow-y: auto; }
.wb-icons button { border: 1px solid transparent; background: none; border-radius: 8px; padding: 6px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: hsl(var(--fg)); }
.wb-icons button:hover { background: hsl(var(--muted)); }
.wb-icons button.on { border-color: #6965db; background: #e0dfff55; }
.wb-icons span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.wb-icons span svg { width: 18px; height: 18px; }
.wb-icons small { font-size: 10px; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wb-hint { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); color: hsl(var(--muted-fg)); font-size: 15px; pointer-events: none; text-align: center; max-width: 420px; }
.wb-edit { position: absolute; z-index: 3; border: 1.5px dashed #6965db; border-radius: 6px; background: transparent; color: var(--wb-ink); font-family: 'Inter Variable', Inter, system-ui, sans-serif; line-height: 1.3; padding: 6px; resize: none; outline: none; box-shadow: none; text-align: center; overflow: hidden; }
.wb-edit.note, .wb-edit.text { text-align: left; }
.wb-edit.note { color: #1e1e1e; padding: 12px 14px; }
@media (max-width: 900px) { .wb-tools { left: 12px; transform: none; flex-wrap: wrap; max-width: calc(100% - 24px); } .wb-right { top: auto; bottom: 12px; } .wb-icons { grid-template-columns: repeat(4, 76px); } }
