/* Plano de ações */
.pa-pagina { min-width: 0; }
.pa-pagina .chat-pagina-cabecalho { margin-bottom: 6px; }
.pa-topo { margin-bottom: 18px; }
.ferramenta-area--pa {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}
.ferramenta-area--pa .ferramenta-principal {
    gap: 0;
    min-height: calc(100vh - 96px);
}
#paBoard:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
}
.painel-conteudo.pa-pagina .ferramenta-area--pa .chat-pagina-titulo {
    align-items: flex-start;
    gap: 8px 10px;
}
.painel-conteudo.pa-pagina .ferramenta-area--pa .chat-pagina-cabecalho h1 {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.02em;
}
.painel-conteudo.pa-pagina .ferramenta-area--pa .pagina-icone-ferramenta {
    display: inline-flex;
    vertical-align: -0.12em;
    margin-right: 8px;
}
.pa-admin-cabecalho .subtitulo-pagina {
    margin: 6px 0 0;
    font-size: .84rem;
    line-height: 1.45;
    color: var(--texto-fraco);
}
.painel-conteudo.pa-pagina .ferramenta-area--pa .chat-pagina-titulo .editor-selo-gratis {
    margin-top: 4px;
    flex-shrink: 0;
}
.painel-conteudo.pa-pagina .ferramenta-area--pa .chat-pagina-cabecalho .chat-pagina-lead {
    display: none;
}
.painel-conteudo.pa-pagina .ferramenta-area--pa .chat-pagina-lead--apos-modelo,
.painel-conteudo.pa-pagina .ferramenta-area--pa .ferramenta-coluna-esq:has(.chat-lead-info) .chat-pagina-lead--apos-modelo {
    display: block;
    margin-top: 10px;
    font-size: .84rem;
    line-height: 1.45;
    text-align: left;
    color: var(--texto-fraco);
}
.pa-lateral {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pa-lateral .btn {
    width: 100%;
    justify-content: center;
    font-size: .8rem;
    padding: 7px 10px;
    min-height: 34px;
}
.pa-lateral-titulo {
    margin: 4px 0 2px;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}
.pa-lateral-bloco {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.pa-lateral-bloco > span {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--texto-fraco);
}
.pa-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.pa-pill {
    flex: 1;
    min-width: 0;
    padding: 6px 6px;
    border-radius: 8px;
    border: 1px solid var(--borda);
    background: var(--fundo-2);
    color: var(--texto-fraco);
    font: inherit;
    font-size: .74rem;
    font-weight: 650;
    cursor: pointer;
}
.pa-pill.ativo {
    border-color: var(--primaria);
    background: rgba(0, 200, 83, .16);
    color: var(--texto);
}
.pa-opcao {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 11px;
    border-radius: 10px;
    border: 1px solid var(--borda);
    background: var(--fundo-2);
    cursor: pointer;
    user-select: none;
    text-align: left;
}
.pa-opcao:hover {
    border-color: rgba(0, 200, 83, .4);
}
.pa-opcao--on,
.pa-opcao:has(input:checked) {
    border-color: var(--primaria);
    background: rgba(0, 200, 83, .12);
}
.pa-opcao input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    margin: 2px 0 0;
    border-radius: 99px;
    border: 1px solid var(--borda);
    background: var(--fundo-3);
    position: relative;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.pa-opcao input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--texto-fraco);
    transition: transform .15s, background .15s;
}
.pa-opcao input:checked {
    border-color: var(--primaria);
    background: var(--primaria);
}
.pa-opcao input:checked::after {
    transform: translateX(16px);
    background: #fff;
}
.pa-opcao-corpo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pa-opcao-titulo {
    font-size: .8rem;
    font-weight: 700;
    color: var(--texto);
    line-height: 1.3;
}
.pa-opcao-desc {
    font-size: .72rem;
    line-height: 1.35;
    color: var(--texto-fraco);
}
.pa-aviso-sql {
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(250, 204, 21, .35);
    background: rgba(250, 204, 21, .08);
    color: var(--texto);
}
.pa-aviso-sql p { margin: 8px 0 0; color: var(--texto-fraco); }

.pa-projetos-vazio {
    text-align: center;
    padding: 48px 22px;
    border: 1px dashed var(--borda);
    border-radius: 18px;
    background: var(--fundo-3);
}
.pa-projetos-vazio h2 { margin: 0 0 8px; font-size: 1.35rem; }
.pa-projetos-vazio p { color: var(--texto-fraco); margin: 0 0 22px; }

.pa-projetos-grade {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.pa-proj-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    padding: 18px 16px 14px;
    border-radius: 16px;
    border: 1px solid var(--borda);
    background: var(--fundo-3);
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    transition: border-color .15s, transform .15s;
}
.pa-proj-card:hover {
    transform: translateY(-3px);
    border-color: var(--primaria);
}
.pa-proj-card-topo {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}
.pa-proj-topo-dir {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.pa-proj-card h3 { margin: 0; font-size: 1.15rem; }
.pa-proj-card .pa-proj-desc {
    margin: 0;
    color: var(--texto-fraco);
    font-size: .88rem;
    line-height: 1.4;
}
.pa-proj-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}
.pa-prog {
    height: 6px;
    border-radius: 99px;
    background: var(--fundo-2);
    overflow: hidden;
}
.pa-prog span {
    display: block;
    height: 100%;
    background: var(--primaria);
    border-radius: 99px;
}
.pa-proj-meta { font-size: .8rem; color: var(--texto-fraco); }
.pa-proj-prox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pa-proj-prox li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: .86rem;
    color: var(--texto-fraco);
}
.pa-proj-prox strong { color: var(--texto); font-weight: 600; }
.pa-chip {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--fundo-2);
    border: 1px solid var(--borda);
    flex-shrink: 0;
}
.pa-chip--acao { color: #c4b5fd; border-color: rgba(124, 58, 237, .45); }
.pa-chip--tarefa { color: #67e8f9; border-color: rgba(34, 211, 238, .4); }
.pa-lateral-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pa-lateral-btns .btn {
    width: 100%;
}
.pa-proj-topo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pa-proj-topo .pa-lateral-titulo {
    flex: 1;
    min-width: 0;
    margin: 4px 0 2px;
}
.pa-proj-topo .pa-barra-acoes {
    flex-shrink: 0;
    margin-top: 2px;
}
.pa-chip--nota { color: #6b4f2a; border-color: rgba(196, 154, 88, .55); background: rgba(234, 215, 176, .35); }

.pa-notas-box { margin-top: 12px; overflow: visible; }
.pa-notas-lista {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pa-nota-lista-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 2px;
    border-radius: 8px;
    border: 1px solid transparent;
    position: relative;
}
.pa-nota-lista-item--off { opacity: .55; }
.pa-nota-lista-item--on {
    opacity: 1;
    background: rgba(0, 200, 83, .16);
    border-color: rgba(0, 200, 83, .42);
}
.pa-nota-lista-item .pa-barra-acoes {
    margin-left: auto;
    flex-shrink: 0;
}
.pa-nota-lista-item:has(.pa-item-menu:not([hidden])) {
    z-index: 16;
    overflow: visible;
}
.pa-nota-minmax {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--borda);
    border-radius: 7px;
    background: var(--fundo-2);
    color: var(--texto);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}
.pa-nota-minmax:hover {
    border-color: var(--primaria);
    color: var(--primaria-2);
}
.pa-nota-lista-titulo {
    flex: 1;
    min-width: 0;
    text-align: left;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 2px;
}
.pa-nota-lista-titulo:hover { color: var(--primaria-2); }

.pa-nota {
    position: absolute;
    left: auto;
    z-index: 8;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 8px 10px 10px;
    border-radius: 2px 10px 10px 10px;
    background: #ead7b0;
    color: #3d2e16;
    border: 1px solid #d4bc8a;
    box-shadow: 3px 5px 14px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.35);
    cursor: grab;
    user-select: none;
    overflow: hidden;
}
.pa-nota--fechada {
    padding: 4px 8px 4px 6px;
}
.pa-nota--arrastando {
    cursor: grabbing;
    z-index: 18;
    box-shadow: 6px 10px 22px rgba(0, 0, 0, .38);
}
.pa-nota .pa-chip--nota {
    background: rgba(255,255,255,.35);
    color: #6b4f2a;
}
.pa-nota .pa-barra-mais {
    background: rgba(255,255,255,.4);
    color: #3d2e16;
    border-color: rgba(107, 79, 42, .25);
}
.pa-nota .pa-nota-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
}
.pa-nota-fold {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(107, 79, 42, .28);
    border-radius: 6px;
    background: rgba(255,255,255,.4);
    color: #3d2e16;
    cursor: pointer;
    font-size: .95rem;
    line-height: 1;
    font-weight: 800;
}
.pa-nota-fold:hover {
    background: rgba(255,255,255,.7);
}
.pa-nota-titulo {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
    cursor: pointer;
    color: #2c2010;
}
.pa-nota--fechada .pa-nota-titulo {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .82rem;
}
.pa-nota-corpo {
    flex: 1;
    min-height: 0;
    margin-top: 8px;
    overflow: auto;
    font-size: .8rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: #3d2e16;
}
.pa-nota-texto {
    flex: 1;
    min-height: 0;
    width: 100%;
    margin-top: 8px;
    padding: 0;
    border: 0;
    resize: none;
    background: transparent;
    color: #3d2e16;
    font: inherit;
    font-size: .8rem;
    line-height: 1.45;
    overflow: auto;
    cursor: text;
}
.pa-nota-texto:focus {
    outline: none;
}
.pa-nota-texto::placeholder {
    color: #6b4f2a;
    opacity: .55;
    font-style: italic;
}
.pa-nota-corpo--vazia { opacity: .55; font-style: italic; }
.pa-nota-estica {
    position: absolute;
    z-index: 4;
    touch-action: none;
}
.pa-nota-estica--dir {
    top: 12px;
    right: 0;
    bottom: 12px;
    width: 8px;
    cursor: ew-resize;
}
.pa-nota-estica--esq {
    top: 12px;
    left: 0;
    bottom: 12px;
    width: 8px;
    cursor: ew-resize;
}
.pa-nota--fechada .pa-nota-estica--dir,
.pa-nota--fechada .pa-nota-estica--esq {
    top: 0;
    bottom: 0;
}
.pa-nota-estica--baixo {
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 8px;
    cursor: ns-resize;
}
.pa-nota-estica--canto {
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
}
.pa-nota-estica:hover { background: rgba(107, 79, 42, .18); }
.pa-nota:has(.pa-item-menu:not([hidden])) {
    overflow: visible;
    z-index: 16;
}
.pa-campo--nota textarea {
    min-height: 220px;
    resize: vertical;
}

.pa-inbox {
    margin-top: 12px;
    min-height: 80px;
    border-radius: 12px;
    transition: background .15s ease, box-shadow .15s ease;
}
.pa-inbox-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pa-inbox-cab .pa-lateral-titulo {
    margin: 4px 0 2px;
    flex: 1;
    min-width: 0;
}
.pa-inbox-ico {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--texto-fraco);
    opacity: .85;
}
.pa-inbox--alvo {
    background: rgba(0, 200, 83, .1);
    box-shadow: inset 0 0 0 2px rgba(0, 200, 83, .55);
}
.pa-inbox-vazio {
    margin: 0;
    font-size: .78rem;
    line-height: 1.4;
    color: var(--texto-fraco);
}
.pa-inbox-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pa-inbox-card {
    position: relative;
    padding: 8px 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--borda);
    border-left: 3px solid #7c3aed;
    background: var(--fundo-2);
    cursor: grab;
    user-select: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pa-inbox-card:hover { border-color: var(--primaria); }
.pa-inbox-card--arrastando { opacity: .45; }
.pa-inbox-titulo {
    display: block;
    margin-top: 4px;
    padding: 0 2px;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.pa-inbox-desc {
    margin: 4px 0 0;
    padding: 0 2px;
    font-size: .74rem;
    line-height: 1.35;
    color: var(--texto-fraco);
    word-break: break-word;
    white-space: pre-wrap;
}
.pa-inbox-card:has(.pa-item-menu:not([hidden])) {
    z-index: 16;
    overflow: visible;
}
.pa-inbox-ghost {
    position: fixed;
    z-index: 80;
    pointer-events: none;
    opacity: .9;
    box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.pa-grade-corpo.pa-solta-alvo {
    outline: 2px dashed rgba(0, 200, 83, .55);
    outline-offset: -4px;
    background: rgba(0, 200, 83, .04);
}

/* Canvas único */
.pa-canvas {
    border: 1px solid var(--borda);
    border-radius: 14px;
    background: var(--fundo-3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pa-canvas-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--borda);
    background: var(--fundo-2);
}
.pa-canvas-titulo {
    font-size: .95rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pa-canvas-area {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pa-notas-layer {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    overflow: hidden;
}
.pa-notas-layer .pa-nota {
    pointer-events: auto;
}
.pa-scroll-x-topo {
    flex-shrink: 0;
    height: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--fundo-2);
    border-bottom: 1px solid var(--borda);
}
.pa-scroll-x-inner {
    height: 1px;
    min-height: 1px;
}
.pa-grade-rolagem {
    overflow: auto;
    max-height: calc(100vh - 240px);
    position: relative;
}
.pa-canvas--horizontal {
    flex: 1;
    min-height: calc(100vh - 110px);
}
.pa-canvas--vertical {
    flex: 1 0 auto;
    min-height: 360px;
}
.pa-canvas--vertical .pa-grade-rolagem {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
}
.pa-canvas--horizontal .pa-grade-rolagem {
    flex: 1;
    min-height: calc(100vh - 168px);
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}
.pa-canvas--horizontal .pa-grade-topo {
    flex-shrink: 0;
}
.pa-canvas--horizontal .pa-grade-corpo {
    flex: 1 0 auto;
}
.pa-grade-topo {
    background: var(--fundo-2);
    border-bottom: 1px solid var(--borda);
}
.pa-grade-cab {
    border-bottom: 1px solid var(--borda);
}
.pa-grade-semana {
    padding: 8px 10px;
    border-right: 2px solid rgba(0, 200, 83, .42);
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    box-sizing: border-box;
}
.pa-grade-semana--atual {
    background: rgba(0, 200, 83, .1);
    box-shadow: inset 0 0 0 1px rgba(0, 200, 83, .35);
}
.pa-grade-semana-num {
    font-size: .78rem;
    font-weight: 700;
}
.pa-grade-semana-datas {
    font-size: .68rem;
    color: var(--texto-fraco);
}
.pa-grade-corpo {
    background: transparent;
}
.pa-grade-dias {
    border-top: 1px solid var(--borda);
}
.pa-grade-dia {
    padding: 4px 2px;
    text-align: center;
    border-right: 1px solid rgba(180, 190, 210, .22);
    box-sizing: border-box;
}
.pa-grade-dia--alt { background: rgba(255, 255, 255, .03); }
.pa-grade-dia-nome {
    font-size: .62rem;
    font-weight: 700;
    color: var(--texto-fraco);
    text-transform: uppercase;
}
.pa-grade-linha {
    width: 2px;
    background: rgba(180, 190, 210, .22);
    pointer-events: none;
    z-index: 1;
}
.pa-grade-linha--semana {
    width: 3px;
    background: rgba(0, 200, 83, .5);
}
.pa-grade-linha--h {
    height: 2px;
    width: 100%;
}
.pa-grade-linha--h.pa-grade-linha--semana {
    height: 3px;
    width: 100%;
}
.pa-canvas-vazio {
    margin: 0;
    padding: 60px 20px;
    text-align: center;
    color: var(--texto-fraco);
    font-size: .9rem;
}
.pa-barra {
    position: absolute;
    border-radius: 10px;
    border: 1px solid var(--borda);
    background: var(--fundo-2);
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    cursor: grab;
    user-select: none;
    z-index: 2;
    overflow: hidden;
}
.pa-barra:has(.pa-item-menu:not([hidden])) {
    overflow: visible;
    z-index: 15;
}
.pa-barra--acao { border-left: 3px solid #7c3aed; }
.pa-barra--tarefa { border-left: 3px solid #22d3ee; }
.pa-barra--subtarefa { border-left: 3px solid #00c853; }
.pa-barra.pa-arrastando {
    opacity: .82;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    transition: left .09s ease-out, top .09s ease-out;
}
.pa-barra.pa-magnet {
    outline: 2px solid var(--primaria);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, .28), 0 10px 24px rgba(0,0,0,.28);
    z-index: 11;
}
.pa-barra.pa-trilha-alvo {
    outline: 2px dashed var(--primaria);
    outline-offset: 2px;
}
.pa-barra.pa-esticando {
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.pa-barra-topo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 2px;
    flex-shrink: 0;
}
.pa-barra-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.pa-barra-conteudo {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 2px 10px 8px;
    overflow: hidden;
}
.pa-barra-titulo {
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 0 1 auto;
}
.pa-barra-titulo.feita { text-decoration: line-through; opacity: .7; }
.pa-barra-desc {
    margin: 0;
    font-size: .74rem;
    line-height: 1.35;
    color: var(--texto-fraco);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    word-break: break-word;
    white-space: pre-wrap;
    min-height: 0;
    flex: 1 1 auto;
}
.pa-barra--simples .pa-barra-conteudo {
    padding-bottom: 6px;
    gap: 0;
}
.pa-barra--h.pa-barra--simples .pa-barra-conteudo {
    flex: 0 1 auto;
}
.pa-barra-filhos {
    flex: 0 0 auto;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid var(--borda);
    background: rgba(0, 0, 0, .16);
    max-height: 58%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 5px 14px;
    position: relative;
    z-index: 2;
}
.pa-barra--h .pa-barra-filhos {
    padding: 3px 14px 4px 10px;
    max-height: none;
}
.pa-inbox-card .pa-barra-filhos {
    margin: 8px -8px -10px;
    max-height: none;
    padding: 3px 8px 6px;
    border-radius: 0 0 8px 8px;
    cursor: default;
}
.pa-filho-linha {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 5px 6px;
    margin: 0 0 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}
.pa-filho-linha:last-child { margin-bottom: 0; }
.pa-filho-linha:hover {
    background: rgba(0, 200, 83, .12);
}
.pa-filho-linha.aberto {
    background: rgba(0, 200, 83, .18);
}
.pa-filho-titulo {
    flex: 1;
    min-width: 0;
    font-size: calc(.74rem + 1pt);
    font-weight: 650;
    line-height: 1.28;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--texto);
}
.pa-filho-linha.feita .pa-filho-titulo {
    text-decoration: line-through;
    opacity: .7;
}
.pa-filho-seta {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid rgba(0, 200, 83, .45);
    background: rgba(0, 200, 83, .14);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    color: var(--texto);
}
.pa-filho-linha.aberto .pa-filho-seta,
.pa-filho-linha:hover .pa-filho-seta {
    border-color: var(--primaria);
    background: rgba(0, 200, 83, .28);
    color: var(--primaria-2);
}
.pa-barra--h.pa-barra--simples .pa-barra-conteudo {
    flex: 0 1 auto;
}
.pa-barra-acoes {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.pa-barra-mais {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--borda);
    background: var(--fundo-3);
    font-size: 1rem;
    font-weight: 700;
    color: var(--texto);
}
.pa-dots {
    position: relative;
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.pa-dots::before,
.pa-dots::after {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.pa-dots::before { top: -6px; }
.pa-dots::after { top: 6px; }
.pa-barra-mais:hover,
.pa-barra-mais[aria-expanded="true"] {
    border-color: var(--primaria);
    background: rgba(0, 200, 83, .14);
    color: var(--primaria-2);
}
.pa-canvas-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.pa-zoom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pa-zoom-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--texto);
    user-select: none;
    min-width: 2.6em;
    text-align: center;
}
.pa-zoom-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--borda);
    background: var(--fundo-3);
    font-size: 1rem;
}
.pa-zoom-btn:hover { border-color: var(--primaria); color: var(--primaria-2); }

/* Layout vertical (tempo de cima para baixo) */
.pa-v-esq {
    background: var(--fundo-2);
    border-right: 1px solid var(--borda);
}
.pa-v-semana {
    border-bottom: 3px solid rgba(0, 200, 83, .45);
    box-sizing: border-box;
}
.pa-v-semana-rotulo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(128,128,128,.15);
    overflow: hidden;
    box-sizing: border-box;
}
.pa-v-dia {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-bottom: 2px solid rgba(180, 190, 210, .2);
    box-sizing: border-box;
}

/* Alças de esticar nas bordas da barra */
.pa-estica {
    position: absolute;
    z-index: 4;
    touch-action: none;
}
.pa-barra--h .pa-estica--ini { left: 0; top: 0; bottom: 0; width: 9px; cursor: ew-resize; border-radius: 8px 0 0 8px; }
.pa-barra--h .pa-estica--fim { right: 0; top: 0; bottom: 0; width: 9px; cursor: ew-resize; border-radius: 0 8px 8px 0; }
.pa-barra--v .pa-estica--ini { top: 0; left: 0; right: 0; height: 12px; cursor: ns-resize; border-radius: 8px 8px 0 0; }
.pa-barra--v .pa-estica--fim { bottom: 0; left: 0; right: 0; height: 12px; cursor: ns-resize; border-radius: 0 0 8px 8px; }
.pa-barra--v .pa-estica--esq { left: 0; top: 12px; bottom: 12px; width: 10px; cursor: ew-resize; }
.pa-barra--v .pa-estica--dir { right: 0; top: 12px; bottom: 12px; width: 10px; cursor: ew-resize; }
.pa-barra--v:hover .pa-estica--esq,
.pa-barra--v:hover .pa-estica--dir {
    background: rgba(0, 200, 83, .16);
}
.pa-estica:hover { background: rgba(0, 200, 83, .3); }
.pa-v-wrap {
    display: flex;
    align-items: stretch;
    min-width: 100%;
}
.pa-grade-corpo--v {
    flex: 1 1 auto;
    min-width: 0;
}
.pa-seta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 46px;
    height: 30px;
    flex-shrink: 0;
    padding: 0 8px;
    border: 1.5px solid rgba(0, 200, 83, .55);
    border-radius: 8px;
    background: rgba(0, 200, 83, .16);
    color: var(--texto);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}
.pa-seta-ico { font-size: 1.05rem; line-height: 1; }
.pa-seta-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2em;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(0, 200, 83, .28);
    font-size: .82rem;
    font-weight: 800;
    color: var(--texto);
    line-height: 1.25;
}
.pa-seta.aberto,
.pa-seta:hover {
    border-color: var(--primaria);
    background: rgba(0, 200, 83, .28);
    color: var(--primaria-2);
}
.pa-barra--v.pa-barra--acao { border-left: 1px solid var(--borda); border-top: 3px solid #7c3aed; }
.pa-barra--v.pa-barra--tarefa { border-left: 1px solid var(--borda); border-top: 3px solid #22d3ee; }
.pa-barra--v.pa-barra--subtarefa { border-left: 1px solid var(--borda); border-top: 3px solid #00c853; }
.pa-item-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 20;
    min-width: 248px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--borda);
    background: var(--fundo-3);
    box-shadow: 0 12px 32px rgba(0,0,0,.42);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pa-item-menu[hidden] { display: none !important; }
.pa-item-menu.pa-item-menu--ctx {
    position: fixed;
    z-index: 90;
    right: auto;
    top: 0;
    left: 0;
}
.pa-barra-titulo,
.pa-inbox-titulo {
    cursor: pointer;
}
.pa-item-menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--texto);
    font: inherit;
    font-size: .8rem;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.pa-item-menu button:hover { background: rgba(0,200,83,.12); }
.pa-item-menu--perigo { color: #fca5a5 !important; }
.pa-item-menu--perigo:hover { background: rgba(239, 68, 68, .16) !important; }
.pa-mini {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--texto-fraco);
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    flex-shrink: 0;
}
.pa-mini:hover { border-color: var(--borda); color: var(--texto); background: var(--fundo-2); }
.pa-mini--ok {
    width: 28px;
    height: 28px;
    border-color: var(--primaria);
    color: var(--primaria-2);
}
.pa-status {
    font-size: .6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 5px;
    flex-shrink: 0;
}
.pa-status--aberta { background: rgba(148,163,184,.15); }
.pa-status--em_andamento { background: rgba(34,211,238,.18); color: #a5f3fc; }
.pa-status--feita { background: rgba(0,200,83,.2); color: #bbf7d0; }
.pa-status--adiada { background: rgba(250,204,21,.18); color: #fde68a; }

.pa-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0,0,0,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.pa-modal[hidden] { display: none !important; }
.pa-modal-caixa {
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: var(--fundo-3);
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 22px 20px 16px;
}
.pa-modal-caixa h3 { margin: 0 0 14px; }
.pa-modal-caixa--confirm {
    max-width: 420px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(239, 68, 68, .22);
}
.pa-confirm {
    padding: 26px 24px 20px;
    text-align: center;
}
.pa-confirm-icone {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fecaca;
    background: rgba(239, 68, 68, .16);
    border: 1px solid rgba(239, 68, 68, .35);
    box-shadow: 0 0 24px rgba(239, 68, 68, .18);
}
.pa-confirm h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.pa-confirm p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--texto-fraco);
}
.pa-confirm-detalhe {
    margin-top: 10px !important;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--fundo-2);
    color: var(--texto) !important;
    font-weight: 650;
    font-size: .86rem !important;
}
.pa-confirm .pa-modal-acoes {
    justify-content: center;
    margin-top: 18px;
}
.pa-btn-perigo {
    background: #dc2626;
    border: 1px solid #ef4444;
    color: #fff;
    font-weight: 700;
}
.pa-btn-perigo:hover {
    background: #b91c1c;
    border-color: #f87171;
}
.pa-campo { margin-bottom: 12px; }
.pa-campo label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.pa-campo input, .pa-campo textarea, .pa-campo select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--borda);
    background: var(--fundo-2);
    color: var(--texto);
    font-size: .95rem;
    font-family: inherit;
}
.pa-campo textarea { min-height: 90px; resize: vertical; }
.pa-campo--ideias textarea { min-height: 70px; }
.pa-grade-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pa-cores { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-cores button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
}
.pa-cores button.ativo { border-color: #fff; box-shadow: 0 0 0 2px var(--primaria); }
.pa-modal-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

@media (max-width: 900px) {
    .ferramenta-area--pa { grid-template-columns: 1fr; }
    .pa-lateral { flex-direction: row; flex-wrap: wrap; }
    .pa-lateral .btn { width: auto; flex: 1 1 140px; }
    .pa-proj-topo { width: 100%; }
    .pa-lateral-btns { width: 100%; }
    .pa-lateral-btns .btn { width: 100%; flex: none; }
}
