/* =========================================================================
   Portal VIC Brands — Brand Guide 2025
   verde #cfd53f · cinza #efefef · preto #1d1d1b · rosa #ba327f · azul #0025ff · amarelo #e2e28e
   NeueThing Sans → Archivo Black · Moisette → Poppins (sem serifa) · Cas Red Ink → Caveat · Poppins
   ====================================================================== */
:root {
	--verde: #cfd53f; --cinza: #efefef; --preto: #1d1d1b; --rosa: #ba327f; --azul: #0025ff; --amarelo: #e2e28e; --branco: #fff;
	--display: "NeueThing Sans", "Archivo Black", "Arial Black", Impact, sans-serif;
	--serif: "Moisette", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hand: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pad: clamp(1.25rem, 4vw, 4rem);
	--radius: 1.5rem;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--text); color: var(--preto); background: var(--cinza); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
body.tema-verde { background: var(--verde); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.page { flex: 1; }
.link { text-decoration: underline; text-underline-offset: .15em; }
.muted { opacity: .65; font-size: .85rem; }
.hand { font-family: var(--hand); font-size: .85rem; font-weight: 700; line-height: 1; }
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: -.04em; line-height: .9; margin: 0 0 1rem; font-size: 2.2rem; }
.display--sm { font-size: 1.6rem; margin-bottom: 1.25rem; }

/* ---- Logo ---------------------------------------------------------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__word { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 2.2rem; letter-spacing: -.04em; }
.logo__dot { color: var(--verde); }
.logo__sub { font-weight: 700; font-size: .5rem; letter-spacing: .45em; margin-top: .15em; padding-left: .45em; }
.logo--small .logo__word { font-size: 1.6rem; } .logo--small .logo__sub { font-size: .4rem; }
.logo--big .logo__word { font-size: 4rem; } .logo--big .logo__sub { font-size: .8rem; }
.logo__img { height: 44px; width: auto; display: block; }
.logo__img--small { height: 34px; }
.logo__img--big { height: clamp(72px, 10vw, 120px); width: auto; align-self: flex-start; object-fit: contain; margin-bottom: .5rem; }

/* ---- Topbar --------------------------------------------------------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem var(--pad); background: var(--preto); color: var(--branco); position: sticky; top: 0; z-index: 20; }
.topbar__links { display: flex; gap: clamp(1rem, 4vw, 3rem); font-family: var(--display); text-transform: uppercase; font-size: .9rem; letter-spacing: -.02em; }
.topbar__links a { text-decoration: none; }
.topbar__links a:hover { color: var(--verde); }
.topbar__right { display: flex; gap: .5rem; align-items: center; }
.pill { border: 2px solid currentColor; border-radius: 999px; padding: .3em 1em; font-weight: 700; font-size: .8rem; white-space: nowrap; display: inline-block; }
.pill--solid { background: var(--verde); border-color: var(--verde); color: var(--preto); }
.pill--light { color: var(--branco); }
@media (max-width: 640px) { .topbar__links { display: none; } }

/* ---- Flash ---------------------------------------------------------- */
.flash { padding: .9rem var(--pad); font-weight: 700; background: var(--verde); color: var(--preto); transition: opacity .4s; }
.flash--erro { background: var(--rosa); color: var(--branco); }
.flash.is-hiding { opacity: 0; }

/* ---- Hero ----------------------------------------------------------- */
.hero { padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(1.5rem, 3vw, 2.5rem); position: relative; overflow: hidden; }
.hero--verde { background: var(--verde); color: var(--preto); }
.hero--preto { background: var(--preto); color: var(--branco); }
.hero--azul  { background: var(--azul);  color: var(--branco); }
.hero--rosa  { background: var(--rosa);  color: var(--branco); }
.hero__kicker { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.8rem); margin: 0 0 .5rem; }
.hero__kicker em { font-weight: 700; text-decoration: underline; text-underline-offset: .12em; }
.hero__title { font-family: var(--display); text-transform: uppercase; margin: 0; font-size: clamp(3.5rem, 12vw, 9rem); line-height: .85; letter-spacing: -.05em; }
.hero__title--md { font-size: clamp(2.2rem, 7vw, 5rem); word-break: break-word; }
.hero--verde .hero__title strong, .hero--preto .hero__title strong, .hero--azul .hero__title strong, .hero--rosa .hero__title strong { color: var(--verde); }
.hero--verde .hero__title strong { color: var(--branco); }
.hero__sub { margin: 1rem 0 0; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
/* botões no canto direito, na mesma linha do título (cai pra baixo no celular) */
.hero__actions--dir { justify-content: flex-end; }
@media (min-width: 701px) {
	.hero:has(> .hero__actions--dir) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 1.5rem; }
	.hero:has(> .hero__actions--dir) > .hero__kicker { grid-column: 1; grid-row: 1; }
	.hero:has(> .hero__actions--dir) > .hero__title { grid-column: 1; grid-row: 2; }
	.hero:has(> .hero__actions--dir) > .hero__sub { grid-column: 1 / -1; grid-row: 3; }
	.hero:has(> .hero__actions--dir) > .hero__actions--dir { grid-column: 2; grid-row: 2; margin-top: 0; align-self: end; }
}

/* ---- Botões --------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .4em; font: 700 .85rem var(--text); text-transform: uppercase; letter-spacing: .05em; padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--preto); background: var(--preto); color: var(--branco); cursor: pointer; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--verde { background: var(--verde); border-color: var(--verde); color: var(--preto); }
.btn--rosa { background: var(--rosa); border-color: var(--rosa); color: var(--branco); }
.btn--outline { background: transparent; color: inherit; border-color: currentColor; }
.btn--light { color: var(--branco); }
.btn--small { padding: .55em 1em; font-size: .75rem; }
.badge { background: var(--rosa); color: #fff; border-radius: 999px; padding: .1em .6em; font-size: .75rem; }

/* ---- Toolbar / chips ----------------------------------------------- */
.toolbar { background: var(--preto); color: var(--branco); padding: 1rem var(--pad); display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 700 .75rem var(--text); text-transform: uppercase; letter-spacing: .05em; border: 2px solid var(--branco); color: var(--branco); background: transparent; border-radius: 999px; padding: .4em 1em; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--verde); color: var(--verde); }
.chip.is-active { background: var(--verde); border-color: var(--verde); color: var(--preto); }

/* ---- Grid / cards --------------------------------------------------- */
.grid { list-style: none; margin: 0; padding: var(--pad); display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.section { padding: var(--pad); }
.vazio { padding: 3rem var(--pad); text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.5rem; }

.doc { background: var(--branco); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; min-height: 240px; border: 3px solid transparent; transition: transform .2s, box-shadow .2s; }
.doc:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 40px -20px rgba(29,29,27,.5); }
.doc[hidden] { display: none; }
.doc--ok { background: var(--verde); border-color: var(--verde); }
.doc__head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.doc__title { font-family: var(--display); text-transform: uppercase; letter-spacing: -.03em; font-size: 1.5rem; line-height: .95; margin: 0 0 .4rem; }
.doc__mes { font-family: var(--serif); font-style: italic; margin: 0 0 1rem; }
.doc__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

.tag { font: 700 .65rem var(--text); text-transform: uppercase; letter-spacing: .08em; border: 2px solid currentColor; border-radius: 999px; padding: .3em .8em; white-space: nowrap; }
.tag--off { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.status { font: 700 .7rem var(--text); text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .35em .9em; white-space: nowrap; }
.status--pendente { background: var(--cinza); color: var(--preto); }
.status--respondido { background: #1d1d1b; color: var(--verde); }
.doc--ok .status--respondido { background: var(--preto); }

/* clientes (admin) */
.cliente { background: var(--branco); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .2s, box-shadow .2s; position: relative; }
.cliente:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(29,29,27,.5); }
.cliente:nth-child(4n+2) { background: var(--preto); color: var(--branco); }
.cliente:nth-child(4n+3) { background: var(--rosa); color: var(--branco); }
.cliente:nth-child(4n+4) { background: var(--azul); color: var(--branco); }
.cliente--off { opacity: .55; }
.cliente[hidden] { display: none !important; }
.cliente__link { display: block; }
.cliente__head { display: flex; justify-content: space-between; align-items: center; }
.cliente__nome { font-family: var(--display); text-transform: uppercase; letter-spacing: -.03em; font-size: 1.6rem; line-height: .95; margin: .5rem 0 1rem; }
.cliente__stats { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.cliente__stats strong { font-size: 1.2rem; }
.cliente__stats .ok strong { color: var(--verde); }
.cliente:first-child .cliente__stats .ok strong, .cliente:nth-child(4n+1) .cliente__stats .ok strong { color: #7f8410; }
.cliente__last { margin: .5rem 0 0; }
.cliente__upload { align-self: flex-start; }

/* ---- Tabela --------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: var(--branco); border-radius: var(--radius); }
.tabela { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabela th, .tabela td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--cinza); vertical-align: middle; }
.tabela th { font: 700 .7rem var(--text); text-transform: uppercase; letter-spacing: .08em; background: var(--preto); color: var(--branco); }
.tabela tr.linha--ok td { background: #eef0b8; }
.tabela .acoes { display: flex; gap: .4rem; }
.tabela .acoes form { margin: 0; }

/* ---- Feed ----------------------------------------------------------- */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.feed__item details { background: var(--branco); border-radius: 1rem; border-left: 8px solid var(--verde); }
.feed__summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.feed__summary::-webkit-details-marker { display: none; }
.feed__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px #eef0b8; flex: none; }
.feed__main { flex: 1 1 260px; }
.feed__cliente { font-family: var(--display); text-transform: uppercase; letter-spacing: -.02em; margin-right: .5rem; }
.feed__meta { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.feed__body { padding: 0 1.25rem 1.25rem 2.75rem; }
.feed__ip { margin: 1rem 0 0; }
.kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kv th { text-align: left; width: 30%; padding: .5rem .75rem; background: var(--cinza); font-weight: 700; vertical-align: top; }
.kv td { padding: .5rem .75rem; border-bottom: 1px solid var(--cinza); }

/* ---- Forms / modal ---------------------------------------------------- */
label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 1rem; }
label input, label select { display: block; width: 100%; margin-top: .35rem; font: 400 1rem var(--text); padding: .7em .9em; border: 2px solid var(--preto); border-radius: .75rem; background: var(--branco); color: var(--preto); }
label input:focus, label select:focus { outline: 3px solid var(--verde); outline-offset: 1px; }
label.check { display: flex; align-items: center; gap: .5rem; }
label.check input { width: auto; margin: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
.erro { background: var(--rosa); color: #fff; padding: .6rem 1rem; border-radius: .75rem; font-weight: 700; }

.modal { position: fixed; inset: 0; background: rgba(29,29,27,.7); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.modal[hidden] { display: none; }
.modal__box { position: relative; background: var(--branco); border-radius: var(--radius); padding: 2rem; width: min(560px, 100%); max-height: 95vh; overflow: auto; }
.modal__close { position: absolute; top: .75rem; right: 1rem; border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; }

/* ---- Login ---------------------------------------------------------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; } }
.login__brand { padding: var(--pad); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.login__kicker { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); margin: 1.5rem 0 0; line-height: 1; }
.login__kicker em { font-weight: 700; text-decoration: underline; text-underline-offset: .1em; }
.login__sub { max-width: 34ch; }
.login__star { position: absolute; right: -5%; bottom: -10%; width: clamp(160px, 30vw, 380px); fill: var(--preto); opacity: .9; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login__form { margin: auto; width: min(420px, 90%); padding: 2.5rem; }
.card--preto { background: var(--preto); color: var(--branco); border-radius: var(--radius); }
.card--preto label input { border-color: var(--branco); background: var(--preto); color: var(--branco); }
.card--preto .display { color: var(--verde); }

/* campo de senha com olhinho */
.senha { position: relative; display: block; margin-top: .35rem; }
.senha input { margin-top: 0; padding-right: 3rem; }
.senha__olho { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: .25rem; font-size: 1.15rem; line-height: 1; cursor: pointer; opacity: .65; border-radius: .4rem; }
.senha__olho:hover { opacity: 1; }
.senha__olho:focus-visible { outline: 3px solid var(--verde); }

/* ---- Viewer (documento no iframe) ----------------------------------- */
.viewer { display: flex; flex-direction: column; height: calc(100vh - 64px); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--pad); background: var(--branco); border-bottom: 3px solid var(--cinza); transition: background .3s; }
.viewer__bar--ok { background: var(--verde); border-color: var(--verde); }
.viewer__info { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.viewer__title { font-family: var(--display); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__frame { flex: 1; width: 100%; border: 0; background: var(--branco); }

/* ---- Footer --------------------------------------------------------- */
.footer { background: var(--preto); color: var(--branco); padding: 1.5rem var(--pad); display: flex; justify-content: space-between; align-items: center; }
.footer__hand { font-family: var(--hand); font-weight: 700; font-size: .95rem; color: var(--verde); }

/* =========================================================================
   v2 — Central Operacional: workflow, calendário, dashboard, solicitações
   ====================================================================== */
.hero--compact { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.topbar__links a.is-active { color: var(--verde); }
.topbar__burger { display: none; background: transparent; border: 2px solid var(--branco); color: var(--branco); border-radius: .6rem; font-size: 1.1rem; padding: .2em .6em; cursor: pointer; }
@media (max-width: 760px) {
	.topbar { flex-wrap: wrap; }
	.topbar__burger { display: inline-block; order: 3; }
	.topbar__links { display: none; width: 100%; order: 4; flex-direction: column; gap: .75rem; padding: 1rem 0 .5rem; }
	body.menu-open .topbar__links { display: flex; }
}
.tag--rosa { background: var(--rosa); border-color: var(--rosa); color: #fff; }

/* ---- Workflow (esteira) ------------------------------------------- */
.workflow { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.workflow__step { position: relative; }
.workflow__btn { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; width: 100%; height: 100%; padding: .6rem .6rem .7rem; border: 0; border-radius: .8rem; background: var(--branco); color: var(--preto); text-align: left; font: 700 .68rem var(--text); text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; cursor: default; transition: transform .15s, background .15s, color .15s; border-top: 6px solid var(--cinza); }
.workflow--edit .workflow__btn { cursor: pointer; }
.workflow--edit .workflow__btn:hover { transform: translateY(-2px); border-top-color: var(--rosa); }
.workflow__num { font-family: var(--display); font-size: 1.1rem; line-height: 1; opacity: .35; }
.workflow__step.is-done .workflow__btn { background: var(--preto); color: var(--branco); border-top-color: var(--preto); }
.workflow__step.is-done .workflow__num { opacity: 1; color: var(--verde); }
.workflow__step.is-current .workflow__btn { background: var(--verde); color: var(--preto); border-top-color: var(--preto); box-shadow: 0 10px 24px -14px rgba(29,29,27,.6); }
.workflow__step.is-current .workflow__num { opacity: 1; }
.workflow.is-saving { opacity: .5; pointer-events: none; }
.workflow.is-saved .is-current .workflow__btn { animation: pop .5s ease; }
@keyframes pop { 40% { transform: scale(1.06); } }
@media (max-width: 900px) { .workflow { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .workflow { grid-template-columns: repeat(2, 1fr); } }
.cliente .workflow { gap: .25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cliente .workflow__btn { padding: .4rem .4rem .45rem; font-size: .55rem; border-top-width: 4px; gap: .2rem; min-height: 3.4rem; }
.cliente .workflow__num { font-size: .85rem; }
.cliente .workflow__label { overflow-wrap: anywhere; }
@media (max-width: 420px) { .cliente .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cliente:nth-child(4n+2) .workflow__step.is-done .workflow__btn, .cliente:nth-child(4n+3) .workflow__step.is-done .workflow__btn, .cliente:nth-child(4n+4) .workflow__step.is-done .workflow__btn { background: rgba(255,255,255,.18); color: var(--branco); border-top-color: var(--verde); }
.cliente:nth-child(4n+2) .workflow__step.is-done .workflow__num, .cliente:nth-child(4n+3) .workflow__step.is-done .workflow__num, .cliente:nth-child(4n+4) .workflow__step.is-done .workflow__num { color: var(--verde); }

/* cards de cliente com workflow */
.grid--wf { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
@media (max-width: 420px) { .grid--wf { grid-template-columns: 1fr; } }
.cliente--wf { gap: .75rem; }
.cliente__wf-label { margin: 0; font-size: .8rem; opacity: .8; }
.cliente__foot { display: flex; gap: .5rem; justify-content: space-between; align-items: center; margin-top: .25rem; }
.cliente--wf .cliente__head { gap: .5rem; flex-wrap: wrap; justify-content: flex-start; }
.section--wf .workflow { max-width: 1100px; }

/* ---- Tiles do dashboard ------------------------------------------- */
.section--tiles { padding-top: 0; }
.hero + .section--tiles { padding-top: var(--pad); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile { border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .2rem; min-height: 150px; }
.tile--preto { background: var(--preto); color: var(--branco); }
.tile--branco { background: var(--branco); }
.tile--azul { background: var(--azul); color: var(--branco); }
.tile--rosa { background: var(--rosa); color: var(--branco); }
.tile__num { font-family: var(--display); font-size: 3rem; line-height: .9; letter-spacing: -.04em; }
.tile__num small { font-size: 1.2rem; opacity: .6; }
.tile--preto .tile__num, .tile--azul .tile__num { color: var(--verde); }
.tile__label { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.tile { position: relative; }
.tile__link { margin-top: auto; font-size: .8rem; text-decoration: underline; text-underline-offset: .2em; padding-top: .75rem; }
.tile__link::after { content: ""; position: absolute; inset: 0; } /* clique em qualquer lugar do tile */
.tile:has(.tile__link) { cursor: pointer; transition: transform .15s; }
.tile:has(.tile__link):hover { transform: translateY(-3px); }

.cols { display: grid; grid-template-columns: 1fr 1fr; }
.cols > .section { padding-top: 0; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.cols--form { grid-template-columns: minmax(0, 480px) 1fr; }
.cols--form > .section { padding-top: var(--pad); }
@media (max-width: 800px) { .cols--form { grid-template-columns: 1fr; } .cols--form > .section + .section { padding-top: 0; } }

.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.lista__item { background: var(--branco); border-radius: 1rem; padding: .8rem 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.lista__item--col { flex-direction: column; align-items: stretch; gap: .4rem; border-left: 8px solid var(--rosa); }
.lista__item--col.is-ok { border-left-color: var(--verde); }
.lista__row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.lista__titulo { flex: 1; font-weight: 700; }
.lista__desc { margin: 0; font-size: .9rem; opacity: .85; }
.lista .muted { margin: 0; }

.card--branco { background: var(--branco); border-radius: var(--radius); padding: 2rem; }
label textarea { display: block; width: 100%; margin-top: .35rem; font: 400 1rem var(--text); padding: .7em .9em; border: 2px solid var(--preto); border-radius: .75rem; background: var(--branco); color: var(--preto); resize: vertical; }
label textarea:focus { outline: 3px solid var(--verde); outline-offset: 1px; }
.modal__actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

/* ---- Status de tarefa (cores) --------------------------------------- */
:root {
	--st-tarefa: var(--rosa); --st-audiovisual: #7b3fe4; --st-copy: #8a8a8a; --st-aprovacao_copy: #e0a800; --st-correcao_copy: #e8652b;
	--st-design: var(--azul); --st-em_andamento: #1a9bd7; --st-correcao_design: #e8652b; --st-aprovacao_final: #c9b400;
	--st-programar: #5b9c2f; --st-programado: var(--preto);
}
.status--t-banco_de_ideias { background: var(--st-banco_de_ideias); color: #fff; }
.status--t-tarefa { background: var(--st-tarefa); color: #fff; }
.status--t-audiovisual { background: var(--st-audiovisual); color: #fff; }
.status--t-copy { background: var(--st-copy); color: #fff; }
.status--t-aprovacao_copy { background: var(--st-aprovacao_copy); color: var(--preto); }
.status--t-correcao_copy { background: var(--st-correcao_copy); color: #fff; }
.status--t-design { background: var(--st-design); color: #fff; }
.status--t-em_andamento { background: var(--st-em_andamento); color: #fff; }
.status--t-correcao_design { background: var(--st-correcao_design); color: #fff; }
.status--t-aprovacao_final { background: var(--st-aprovacao_final); color: var(--preto); }
.status--t-programar { background: var(--st-programar); color: #fff; }
.status--t-programado { background: var(--st-programado); color: var(--verde); }
.status--t-concluido { background: var(--st-concluido); color: #fff; }
.legend--concluido::before { background: var(--st-concluido); }
.tarefa--concluido { border-left-color: var(--st-concluido); background: #e8f3e8; }
/* seletor de status próprio, com bolinha colorida */
.csel { position: relative; display: inline-block; }
.csel__nativo { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.csel__btn { display: flex; align-items: center; gap: .5rem; width: 100%; background: #fff; border: 2px solid #ddd; border-radius: .6rem; padding: .5em .8em; font: 700 .82rem var(--text); color: var(--preto); cursor: pointer; text-align: left; }
.csel__btn:hover { box-shadow: 0 3px 10px -6px rgba(0,0,0,.5); }
.csel__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: #bdbdbd; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.csel__txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csel__seta { font-size: .65rem; opacity: .55; }
.csel__lista { position: absolute; z-index: 60; top: calc(100% + .25rem); left: 0; min-width: 100%; width: max-content; max-width: 260px; background: #fff; border-radius: .7rem; box-shadow: 0 16px 36px -14px rgba(0,0,0,.55); padding: .3rem; max-height: 60vh; overflow: auto; }
.csel__lista[hidden] { display: none; }
.csel__op { display: flex; align-items: center; gap: .55rem; width: 100%; background: none; border: 0; border-radius: .45rem; padding: .45em .6em; font: 400 .85rem var(--text); color: var(--preto); cursor: pointer; text-align: left; }
.csel__op:hover { background: var(--cinza); }
.csel__op.is-sel { font-weight: 700; background: #f2f4d8; }
/* dentro de um label (formulário da demanda), fica igual aos outros campos */
label > .csel { display: block; width: 100%; margin-top: .35rem; }
label > .csel > .csel__btn { padding: .7em .9em; border-radius: .75rem; font-size: 1rem; border-width: 2px; }
label > .csel > .csel__btn .csel__dot { width: 13px; height: 13px; }
/* dentro dos cards do calendário e dos passos da jornada, mais compacto */
.tarefa__acoes .csel { flex: 1; min-width: 0; }
.tarefa__acoes .csel__btn { padding: .3em .5em; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; border-width: 1px; }
.jpasso__sum .csel__btn { padding: .3em .6em; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.jpasso__sum .csel__lista { left: auto; right: 0; }
/* na jornada, sem bolinhas — a cor fica no texto e na borda */
.csel--passo .csel__dot { display: none; }
.jpasso.is-and .jpasso__num { background: #e8652b; color: #fff; }
.sel-status { font-weight: 700; }
.cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem 1rem; margin-bottom: 1rem; }
.cor { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 400; font-size: .85rem; }
.cor input[type=color] { width: 42px; height: 30px; padding: 0; border: 2px solid var(--preto); border-radius: .4rem; background: none; cursor: pointer; }
.cal__novo { margin-left: .5rem; }
.kanban__head .cal__add { opacity: 1; margin-left: .2rem; }

.toolbar__busca { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .35rem .9rem; margin: 0; }
.toolbar__busca input { border: 0; background: transparent; font: 400 .9rem var(--text); min-width: 220px; padding: .2em 0; }
.toolbar__busca input:focus { outline: none; }
.toolbar__lupa { font-size: .9rem; }
.toolbar__field--nu { display: flex; align-items: center; }
.toolbar__field--nu select { margin-top: 0; border-radius: 999px; padding: .5em 1em; }
.cliente__resp { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .78rem; }
.cliente__resp-label { opacity: .7; }
.cliente__resp-edit summary { cursor: pointer; text-decoration: underline; opacity: .8; }
.cliente__resp-edit form { background: rgba(255,255,255,.9); color: var(--preto); border-radius: .6rem; padding: .6rem .8rem; margin-top: .4rem; }
.cliente__resp-edit .checks { grid-template-columns: 1fr; margin-bottom: .5rem; }
.toolbar--form { gap: 1rem 1.5rem; }
.toolbar__field { margin: 0; color: var(--branco); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.toolbar__field select { margin-top: .25rem; min-width: 180px; padding: .45em .7em; font-size: .9rem; border-color: var(--branco); }
.toolbar__legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-left: auto; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.legend::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35em; background: #999; vertical-align: middle; }
.legend--banco_de_ideias::before { background: var(--st-banco_de_ideias); }
.legend--tarefa::before { background: var(--st-tarefa); } .legend--audiovisual::before { background: var(--st-audiovisual); }
.legend--copy::before { background: var(--st-copy); } .legend--aprovacao_copy::before { background: var(--st-aprovacao_copy); }
.legend--correcao_copy::before { background: var(--st-correcao_copy); } .legend--design::before { background: var(--st-design); }
.legend--em_andamento::before { background: var(--st-em_andamento); } .legend--correcao_design::before { background: var(--st-correcao_design); }
.legend--aprovacao_final::before { background: var(--st-aprovacao_final); } .legend--programar::before { background: var(--st-programar); }
.legend--programado::before { background: var(--st-programado); border: 1px solid #666; }

/* ---- Calendário ----------------------------------------------------- */
.section--cal { padding-top: 1.5rem; }
/* o kanban aproveita a largura toda da tela (o resto do calendário mantém a margem) */
.section--cal:has(.kanban) { padding-left: 1rem; padding-right: 1rem; }
.section--cal:has(.kanban) .cal { padding: 1rem .75rem; }
/* tela inteira: só o calendário na tela (Esc ou o próprio botão sai) */
.cal__cheia { margin-left: .5rem; }
body.cal-cheia .topbar, body.cal-cheia .hero, body.cal-cheia .toolbar, body.cal-cheia .footer, body.cal-cheia .flash { display: none !important; }
body.cal-cheia .section--cal { padding: .75rem 1rem 1rem; }
body.cal-cheia .cal { display: flex; flex-direction: column; height: calc(100vh - 1.75rem); }
body.cal-cheia .cal__nav { flex: none; }
body.cal-cheia .kanban { flex: 1; min-height: 0; overflow-y: hidden; }
body.cal-cheia .cal__grid, body.cal-cheia .cal__lista { flex: 1; min-height: 0; overflow-y: auto; }
body.cal-cheia .kanban__col { overflow-y: auto; }
body.cal-cheia .cal__grid--mes .cal__dia { min-height: 130px; }
.cal { background: var(--branco); border-radius: var(--radius); padding: 1rem; }
.cal__nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cal__titulo { font-family: var(--display); text-transform: uppercase; letter-spacing: -.03em; font-size: 1.4rem; margin: 0 .5rem; }
.cal__views { margin-left: auto; display: flex; gap: .4rem; }
.cal__views .chip { border-color: var(--preto); color: var(--preto); }
.cal__views .chip.is-active { background: var(--preto); color: var(--verde); }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { font: 700 .65rem var(--text); text-transform: uppercase; letter-spacing: .08em; padding: .4rem .5rem; color: #777; }
.cal__dia { background: var(--cinza); border-radius: .7rem; min-height: 110px; padding: .4rem; display: flex; flex-direction: column; gap: .3rem; }
.cal__grid--semana .cal__dia { min-height: 320px; }
/* cards do dia: cortados por padrão, o "ver mais" abre o resto */
.cal__itens { display: flex; flex-direction: column; gap: .3rem; min-height: .3rem; }
.cal__grid--mes .cal__itens.is-cortado > .tarefa:nth-child(n+4),
.cal__grid--semana .cal__itens.is-cortado > .tarefa:nth-child(n+7),
.kanban__itens.is-cortado > .tarefa:nth-child(n+7) { display: none; }
.kanban__col > .cal__mais { margin: .35rem .1rem .1rem; font-size: .66rem; }
.cal__mais { align-self: flex-start; margin-top: .1rem; border: 0; background: none; padding: .1rem .2rem; font: 700 .62rem var(--text); text-transform: uppercase; letter-spacing: .04em; color: var(--preto); opacity: .6; cursor: pointer; border-radius: .3rem; }
.cal__mais:hover { opacity: 1; text-decoration: underline; }
.cal__dia--fora { background: transparent; }
.cal__dia--fds { background: #e6e6e6; }
.cal__dia--hoje { outline: 3px solid var(--verde); outline-offset: -3px; }
.cal__num { display: flex; justify-content: space-between; align-items: center; font: 700 .8rem var(--text); padding: 0 .2rem; }
.cal__num small { font-weight: 400; opacity: .6; }
.cal__dia--hoje .cal__num > .cal__num-link { background: var(--verde); border-radius: 999px; padding: .1em .5em; }
.cal__num-link { color: inherit; text-decoration: none; border-radius: 999px; padding: .1em .35em; }
.cal__num-link:hover { background: var(--preto); color: var(--branco); }
.cal__dia--hoje .cal__num-link:hover { background: var(--preto); color: var(--verde); }
.cal__add { border: 0; background: transparent; font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; padding: 0 .2rem; border-radius: 50%; }
.cal__dia:hover .cal__add, .cal__add:focus { opacity: 1; }
.cal__add:hover { background: var(--verde); }

.tarefa { background: var(--branco); border-radius: .5rem; padding: .4rem .5rem .45rem; font-size: .72rem; line-height: 1.25; display: flex; flex-direction: column; gap: .1rem; border-left: 5px solid #999; min-width: 0; }
.tarefa--edit { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.tarefa--edit:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(0,0,0,.5); }
.tarefa__formato { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .58rem; opacity: .7; }
.tarefa__cliente { font-weight: 700; font-size: .62rem; color: var(--azul); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tarefa__nome { font-weight: 700; overflow-wrap: anywhere; }
.tarefa__status { font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.tarefa__status em { color: var(--rosa); font-style: normal; font-weight: 700; }
.tarefa__desc { margin: .25rem 0 0; font-size: .7rem; opacity: .85; }
.tarefa__link { font-size: .65rem; font-weight: 700; text-decoration: underline; margin-top: .2rem; }
/* selecionar várias demandas: laço do mouse no espaço vazio */
.tarefa { position: relative; }
.tarefa.is-picked { outline: 3px solid var(--rosa); outline-offset: -3px; }
.laco { position: fixed; z-index: 65; border: 2px dashed var(--rosa); background: rgba(186,50,127,.12); border-radius: .3rem; pointer-events: none; }
body.sel-arrastando { user-select: none; -webkit-user-select: none; }
body.sel-arrastando .tarefa { cursor: default; }
.selmulti { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: center; max-width: min(92vw, 640px); background: var(--preto); color: var(--branco); border-radius: 999px; padding: .6rem 1.1rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.selmulti[hidden] { display: none; }
.selmulti__n { font: 700 .78rem var(--text); text-transform: uppercase; letter-spacing: .05em; color: var(--verde); white-space: nowrap; }
.selmulti__status { font: 400 .85rem var(--text); padding: .35em .7em; border-radius: .6rem; border: 2px solid var(--branco); background: var(--preto); color: var(--branco); cursor: pointer; max-width: 190px; }
.selmulti__del, .selmulti__limpar { font: 700 .75rem var(--text); text-transform: uppercase; letter-spacing: .04em; border: 2px solid currentColor; background: none; color: var(--branco); border-radius: 999px; padding: .4em .9em; cursor: pointer; white-space: nowrap; }
.selmulti__del:hover { background: var(--rosa); border-color: var(--rosa); }
.selmulti__limpar { border-color: transparent; opacity: .75; }
.selmulti__limpar:hover { opacity: 1; text-decoration: underline; }

.tarefa--banco_de_ideias { border-left-color: var(--st-banco_de_ideias); background: #e6f6f4; }
.tarefa--tarefa { border-left-color: var(--st-tarefa); background: #fbe9f2; }
.tarefa--audiovisual { border-left-color: var(--st-audiovisual); }
.tarefa--copy { border-left-color: var(--st-copy); }
.tarefa--aprovacao_copy { border-left-color: var(--st-aprovacao_copy); background: #fdf6df; }
.tarefa--correcao_copy { border-left-color: var(--st-correcao_copy); background: #fdeee6; }
.tarefa--design { border-left-color: var(--st-design); }
.tarefa--em_andamento { border-left-color: var(--st-em_andamento); }
.tarefa--correcao_design { border-left-color: var(--st-correcao_design); background: #fdeee6; }
.tarefa--aprovacao_final { border-left-color: var(--st-aprovacao_final); background: #fbf8dc; }
.tarefa--programar { border-left-color: var(--st-programar); background: #edf5e6; }
.tarefa--programado { border-left-color: var(--st-programado); background: #f4f6d2; }
@media (max-width: 760px) {
	.cal__grid--mes { gap: 2px; }
	.cal__grid--mes .cal__dia { min-height: 60px; padding: .2rem; }
	.cal__grid--mes .tarefa { padding: .2rem .3rem; font-size: .55rem; border-left-width: 3px; }
	.cal__grid--mes .tarefa__formato, .cal__grid--mes .tarefa__status, .cal__grid--mes .tarefa__cliente { display: none; }
	.cal__grid--semana { grid-template-columns: 1fr; }
	.cal__grid--semana .cal__dow { display: none; }
	.cal__grid--semana .cal__dia { min-height: 0; }
}

/* ---- Feed: solicitação nova em rosa, concluído em verde ------------- */
.feed__item--nova details { border-left-color: var(--rosa); }
.feed__item--nova .feed__dot { background: var(--rosa); box-shadow: 0 0 0 4px #f6d9e7; }

/* relatórios no dashboard */
.grid--rel { padding-top: 0; }
.doc--rel { min-height: 190px; }

/* =========================================================================
   v3 — Equipe, tarefa em tela cheia, itens com imagem, comentários
   ====================================================================== */
.topbar__right .pill small { font-weight: 400; opacity: .7; }
.tarefa { color: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.tarefa:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(0,0,0,.5); }

.tarefa-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; padding: var(--pad); align-items: start; }
.tarefa-page--solo { grid-template-columns: minmax(0, 900px); }
.tarefa-page__main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.tarefa-page__aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1rem; }
.tarefa-page__actions { margin-top: 1.5rem; }
@media (max-width: 960px) { .tarefa-page { grid-template-columns: 1fr; } .tarefa-page__aside { position: static; } }

.pedido { background: #fbe9f2; border-left: 6px solid var(--rosa); border-radius: .75rem; padding: .9rem 1.1rem; margin: 0 0 1.25rem; }
.pedido p { margin: .35rem 0 0; }
.dl { margin: 0 0 1.5rem; display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; }
.dl dt { font: 700 .7rem var(--text); text-transform: uppercase; letter-spacing: .08em; padding-top: .2rem; }
.dl dd { margin: 0; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: .15rem; } .dl dd { margin-bottom: .75rem; } }

.itens { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.item { display: flex; gap: .9rem; background: var(--cinza); border-radius: 1rem; padding: 1rem; }
.item__num { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--preto); color: var(--verde); font-family: var(--display); display: grid; place-items: center; font-size: .9rem; }
.item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.item__img img, .item__preview { display: block; max-width: 100%; max-height: 420px; border-radius: .6rem; object-fit: contain; background: #fff; }
.item__texto { margin: 0; white-space: pre-wrap; }
.item__dl { align-self: flex-start; }
.item--edit .item__label { margin: 0; }
.item--edit label textarea, .item--edit label input { background: #fff; }
.item__imgwrap { display: flex; flex-direction: column; gap: .35rem; }
.item--novo { background: #f4f6d2; }
.check--rm { color: var(--rosa); }
.btn--add { align-self: flex-start; margin-bottom: 1rem; border-style: dashed; }

/* comentários (fundo preto) — texto quebra dentro da caixa */
.comentarios { background: var(--preto); color: var(--branco); border-radius: 1rem; padding: 1.25rem; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.comentarios .display { color: var(--verde); }
.comentarios label { color: #fff; }
.comentarios label textarea { background: #2a2a28; color: #fff; border-color: #444; }
.comentarios__lista { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: .6rem; max-height: 45vh; overflow: auto; }
.comentario { background: #2a2a28; border-radius: .75rem; padding: .7rem .9rem; border-left: 4px solid #666; min-width: 0; }
.comentario--admin, .comentario--equipe { border-left-color: var(--verde); }
.comentario--cliente { border-left-color: var(--azul); background: #24263a; }
.comentario--publico { box-shadow: inset 2px 0 0 var(--branco); }
.comentario__tag { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.15); border-radius: 999px; padding: .15em .5em; }
.comentario__tag--cli { background: var(--azul); color: #fff; }
.check--pub { font-size: .78rem; font-weight: 400; margin: .5rem 0 .75rem; }

/* aprovação (cliente) */
.doc--aprov { background: var(--branco); border-color: var(--preto); border-width: 3px; }
.doc--aprov:hover { border-color: var(--verde); }
.section--aprov { padding-bottom: 0; }
.section--aprov .grid { padding: 1rem 0 0; }
.aprov__sub { margin: -.5rem 0 0; max-width: 60ch; }
.aprov { background: var(--preto); color: var(--branco); border-radius: var(--radius); padding: 1.75rem 2rem; }
.aprov .display { color: var(--verde); }
.aprov__ajuda { font-size: .9rem; opacity: .8; margin: -.5rem 0 1.25rem; }
.aprov label, .aprov .label-block { color: var(--branco); }
.aprov .editor { background: #2a2a28; border-color: #444; }
.aprov .editor textarea { color: #fff; }
.aprov__botoes { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.btn--reprovar { background: transparent; border-color: #e14a3b; color: #e14a3b; }
.btn--reprovar:hover { background: #e14a3b; color: #fff; }
.docs-antigos > summary { cursor: pointer; padding: .75rem 0; font-family: var(--display); text-transform: uppercase; letter-spacing: -.02em; font-size: 1.1rem; }
.comentario__meta { font-size: .78rem; margin-bottom: .2rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: baseline; }
.comentario p { margin: 0; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.card--preto label { color: #fff; }

/* ---- Demanda no modal (largo, com comentários ao lado) -------------- */
.modal__box--wide { width: min(1180px, 100%); padding: 0; max-height: 94vh; }
.tarefa-modal { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; }
.tarefa-modal__main { padding: 2rem; min-width: 0; }
.tarefa-modal__aside { margin: 1rem 1rem 1rem 0; align-self: start; position: sticky; top: 1rem; }
.tarefa-modal .modal__close { z-index: 2; }
.tarefa-page-card .tarefa-modal .modal__close { display: none; }
@media (max-width: 900px) { .tarefa-modal { grid-template-columns: 1fr; } .tarefa-modal__aside { margin: 0 1rem 1rem; position: static; } .tarefa-modal__main { padding: 1.5rem; } }
.display--xs { font-size: 1.15rem; margin: 1.5rem 0 .75rem; }
.display--sm .status, .display--sm .tag { vertical-align: middle; margin-left: .4rem; font-family: var(--text); letter-spacing: .06em; }
.row--3 { grid-template-columns: 1fr 1fr 1fr; }
.row--3 .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .row--3 { grid-template-columns: 1fr; } .row--3 .span-2 { grid-column: auto; } }
.pedido__prev { margin: .3rem 0 0; font-size: .9rem; }
.equipe-form { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid var(--cinza); }

/* arrastar no calendário */
.tarefa[draggable] { cursor: grab; }
.tarefa.is-dragging { opacity: .4; cursor: grabbing; }
.cal__dia.is-over, .cal__lista-dia.is-over { outline: 3px dashed var(--rosa); outline-offset: -3px; background: #fbe9f2; }

/* visualização em lista */
.cal__vazio { padding: 2rem; text-align: center; }
.cal__lista { display: flex; flex-direction: column; gap: .5rem; }
.cal__lista-dia { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; background: var(--cinza); border-radius: .8rem; padding: .6rem; }
.cal__lista-dia.is-hoje { outline: 3px solid var(--verde); outline-offset: -3px; }
.cal__lista-data { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.cal__lista-data strong { font-family: var(--display); font-size: 1.6rem; }
.cal__lista-data span { font: 700 .65rem var(--text); text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.cal__lista-itens { display: flex; flex-direction: column; gap: .4rem; }
.cal__lista-itens .tarefa { font-size: .8rem; }
/* visualização de um dia só (Hoje) */
.cal__lista--dia .cal__lista-dia { background: var(--branco); padding: 1rem; }
.cal__lista--dia .cal__lista-data strong { font-size: 2.4rem; }
.cal__lista--dia .cal__lista-itens .tarefa { font-size: .9rem; }
.cal__lista--dia .cal__vazio { margin: .3rem 0; }

/* notas (ADM → cliente / equipe) */
.cols--notas { grid-template-columns: minmax(0, 460px) 1fr; gap: 1.5rem; }
.cols--notas > .section { padding: 0; }
@media (max-width: 800px) { .cols--notas { grid-template-columns: 1fr; } }
.notas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.nota { background: var(--branco); border-radius: 1rem; padding: .9rem 1.1rem; border-left: 8px solid var(--verde); overflow-wrap: anywhere; }
.nota__meta { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; font-size: .85rem; margin-bottom: .25rem; }
.nota__del { margin-left: auto; }
.nota__del .link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--rosa); }
.nota p { margin: 0; white-space: pre-wrap; }
/* nota recolhida: só a primeira linha; clica e abre o resto */
.nota__txt { margin: 0; white-space: pre-wrap; }
.nota__det > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .6rem; }
.nota__det > summary::-webkit-details-marker { display: none; }
.nota__linha { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nota__mais { flex: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }
.nota__det[open] > summary .nota__linha { white-space: normal; font-weight: 700; }
.nota__mais--fechar { display: none; }
.nota__det[open] > summary .nota__mais--abrir { display: none; }
.nota__det[open] > summary .nota__mais--fechar { display: inline; }
.nota__txt--full { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgba(0,0,0,.1); max-height: 22rem; overflow: auto; }
.notas--cliente .nota__txt--full { border-top-color: rgba(255,255,255,.2); }
.section--notas { padding-top: 0; }
.notas--cliente .nota { background: var(--preto); color: var(--branco); }
/* blocos recolhíveis genéricos (notas, checklists) */
.bloco { background: var(--branco); border-radius: var(--radius); }
.bloco > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: 1rem 1.25rem; }
.bloco > summary::-webkit-details-marker { display: none; }
.bloco__t { font-family: var(--display); text-transform: uppercase; letter-spacing: -.03em; font-size: 1.3rem; }
.bloco__resumo { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.bloco__resumo .link { text-transform: none; letter-spacing: 0; }
.bloco__seta { margin-left: auto; transition: transform .15s; font-size: .8rem; }
.bloco[open] > summary .bloco__seta { transform: rotate(180deg); }
.bloco__corpo { padding: 0 1.25rem 1.25rem; }
.bloco__corpo--grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.bloco__corpo--grid .jsec { border-top-width: 6px; }
.bloco__corpo--grid .jsec__nome { font-size: 1.1rem; }

/* metas */
/* metas em lista: um por linha */
.metas-grid { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.5rem; }
.metas-grid .jsec { border-top: 0; border-left: 6px solid #cfcfcf; border-radius: .7rem; }
.metas-grid .jsec.is-ok { border-left-color: var(--verde); }
.metas-grid .jsec__head { padding: .65rem 1rem; }
.metas-grid .jsec[open] .jsec__head { padding-bottom: .4rem; border-bottom: 1px solid #e2e2e2; margin-bottom: .6rem; }
.metas-grid .jsec__nome { font-size: 1rem; }
.metas-grid .jsec > *:not(summary) { padding: 0 1rem .9rem; }
.chk { list-style: none; margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.chk__vazio { font-size: .85rem; padding: .2rem 0; }
.chk__item { background: var(--branco); border-radius: .5rem; padding: .35rem .5rem; }
.chk__row { display: flex; align-items: flex-start; gap: .5rem; }
.chk__row > input[type=checkbox] { margin-top: .35rem; accent-color: var(--preto); width: 1.05em; height: 1.05em; flex: none; }
.chk__txt { flex: 1; text-align: left; border: 0; background: transparent; font: 400 .9rem var(--text); line-height: 1.35; cursor: pointer; padding: .15rem 0; display: flex; gap: .4rem; align-items: baseline; }
.chk__txt:hover span { text-decoration: underline; text-underline-offset: .15em; }
.chk__txt small { color: var(--rosa); font-size: .75rem; }
.chk__item.is-feito .chk__txt span { text-decoration: line-through; opacity: .5; }
.chk__desc { padding: .4rem 0 .5rem 1.7rem; }
.chk__desc[hidden] { display: none; }
.chk__desc p { margin: 0; font-size: .85rem; white-space: pre-wrap; }
.chk__desc textarea { width: 100%; font: 400 .85rem var(--text); padding: .5em .7em; border: 2px solid #ddd; border-radius: .5rem; background: #fff; resize: vertical; }
.chk__desc textarea:focus { outline: none; border-color: var(--preto); }
.chk__desc-acoes { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.chk__ok { font-size: .75rem; color: #3e8e41; font-weight: 700; }
.chk--leitura .chk__item { background: var(--cinza); margin-bottom: .3rem; }
.chk__marca { flex: none; width: 1.4rem; text-align: center; font-weight: 700; color: #999; margin-top: .15rem; }
.chk__item.is-feito .chk__marca { color: #3e8e41; }
.chk__x { margin-left: auto; flex: none; border: 0; background: transparent; color: var(--rosa); font-size: 1.15rem; font-weight: 700; line-height: 1; cursor: pointer; padding: 0 .35rem; border-radius: .3rem; opacity: .75; }
.chk__x:hover { background: var(--rosa); color: #fff; opacity: 1; }
.metas-card .chk__item { background: var(--cinza); }
.drive { margin: 1.1rem 0 .3rem; }

/* salvamento automático: avisinho e banner de rascunho */
.salvo { position: fixed; right: 1rem; bottom: 1rem; z-index: 70; background: var(--preto); color: var(--verde); font: 700 .78rem var(--text); padding: .55em 1em; border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.salvo.is-on { opacity: 1; transform: none; }
.salvo--erro { color: #fff; background: var(--rosa); }
.rascunho-aviso { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: #fdf6df; border-left: 6px solid var(--st-aprovacao_copy, #e0a800); border-radius: .6rem; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .85rem; }
.rascunho-aviso span { flex: 1; min-width: 12rem; }
/* ações da demanda, embaixo dos comentários (a coluna inteira acompanha a rolagem) */
.tarefa-acoes { margin-top: .9rem; }
.tarefa-acoes__btns { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
/* compartilhar: um clique copia o link e o botão fica verde */
.share-btn.is-copiado { background: var(--verde); border-color: var(--verde); color: var(--preto); }
.share-btn[disabled] { opacity: .6; cursor: progress; }
.share-off { display: inline-block; margin-top: .5rem; background: none; border: 0; padding: 0; font: 700 .75rem var(--text); color: var(--rosa); text-decoration: underline; cursor: pointer; }
.share-off[hidden] { display: none; }

/* rodapé da página pública da demanda */
.share__rodape { margin-top: 1rem; font-size: .8rem; }

/* filtro com caixinhas: marca vários clientes / status de uma vez */
.msel { position: relative; }
.msel__rot { display: block; font: 700 .7rem var(--text); text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: .25rem; }
.msel__btn { text-transform: none; letter-spacing: 0; display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 12rem; width: 100%; background: var(--branco); color: var(--preto); border: 2px solid var(--preto); border-radius: .75rem; padding: .55em .8em; font: 400 1rem var(--text); cursor: pointer; text-align: left; }
.msel__btn:hover { box-shadow: 0 3px 10px -6px rgba(0,0,0,.6); }
.msel__seta { font-size: .7rem; opacity: .6; }
.msel__painel { text-transform: none; letter-spacing: normal; position: absolute; z-index: 60; top: calc(100% + .3rem); left: 0; min-width: 16rem; max-width: 22rem; background: var(--branco); color: var(--preto); border-radius: .8rem; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); padding: .5rem; }
.msel__painel[hidden] { display: none; }
.msel__ops { max-height: 15rem; overflow: auto; display: flex; flex-direction: column; }
.msel__op { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .35rem .45rem; border-radius: .4rem; font-size: .85rem; font-weight: 400; cursor: pointer; }
.msel__op:hover { background: var(--cinza); }
.msel__op input { width: 1.05em; height: 1.05em; margin: 0; accent-color: var(--preto); flex: none; }
.msel__acoes { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid #e4e4e4; margin-top: .4rem; padding-top: .5rem; }
.msel__acoes .link { background: none; border: 0; padding: 0; font: 700 .8rem var(--text); color: var(--rosa); cursor: pointer; text-decoration: underline; }

/* calendários do cliente: chips de filtro, lista de gestão e tag no card */
.calchips { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; padding: .75rem var(--pad) 0; }
.calchips__rot { font: 700 .7rem var(--text); text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-right: .3rem; }
.calchips .chip { border-color: var(--preto); color: var(--preto); }
.calchips .chip.is-active { background: var(--preto); color: var(--verde); }
.calchips .chip small { opacity: .7; font-weight: 400; }
.tarefa__cals { display: flex; flex-wrap: wrap; gap: .2rem; margin: .1rem 0; }
.tarefa__cals .tarefa__cal { margin: 0; }
.cals-campo { margin-bottom: 1rem; }
.cals-campo[hidden] { display: none; }
.cals-campo__ops { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.cals-campo__op { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .35rem .75rem; border: 2px solid #ddd; border-radius: 999px; font: 700 .8rem var(--text); cursor: pointer; background: #fff; }
.cals-campo__op[hidden] { display: none; }
.cals-campo__op input { width: 1em; height: 1em; margin: 0; accent-color: var(--preto); }
.cals-campo__op:has(input:checked) { border-color: var(--preto); background: var(--preto); color: var(--verde); }
.tarefa__cal { font: 700 .6rem var(--text); text-transform: uppercase; letter-spacing: .04em; background: var(--cinza); border-radius: 999px; padding: .1em .55em; align-self: flex-start; margin: .1rem 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cals { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.cal-item { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; background: var(--cinza); border-radius: .5rem; padding: .5rem .8rem; font-size: .9rem; }
.cal-item__nome { font-weight: 700; flex: 1; min-width: 8rem; }
.cal-item__n { font-size: .75rem; opacity: .6; }
.cal-item .link { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; cursor: pointer; color: var(--preto); text-decoration: underline; }
.cal-item__del { color: var(--rosa) !important; }
.cals__form { display: flex; gap: .4rem; margin-top: .7rem; }
.cals__form input { flex: 1; min-width: 0; font-size: .85rem; padding: .45em .7em; border: 2px solid #ddd; border-radius: .5rem; background: #fff; }
.cals__form input:focus { outline: none; border-color: var(--preto); }

/* links que a gente escreve nos textos (comentário, descrição, nota…) */
.comentario a, .jcom__item a, .slide__texto a, .nota__txt a, .lista__desc a, .interna__desc a, .chk__desc a, .pedido a, .dl dd a, .feed__body a {
	color: var(--azul); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere;
}
/* no card escuro dos comentários o azul da marca some — usa um mais claro */
.comentario a { color: #7aa6ff; }
.comentario a:hover, .jcom__item a:hover, .slide__texto a:hover, .nota__txt a:hover, .lista__desc a:hover, .interna__desc a:hover, .chk__desc a:hover, .pedido a:hover, .dl dd a:hover, .feed__body a:hover { color: var(--rosa); }
.notas--cliente .nota__txt a:hover { color: var(--verde); }

/* apagar comentário (demanda e jornada) */
.comentario__x { margin-left: auto; flex: none; border: 0; background: transparent; color: var(--rosa); font-size: 1.05rem; font-weight: 700; line-height: 1; cursor: pointer; padding: 0 .3rem; border-radius: .3rem; opacity: 0; transition: opacity .15s; }
.comentario:hover .comentario__x, .jcom__item:hover .comentario__x, .comentario__x:focus { opacity: .8; }
.comentario__x:hover { opacity: 1; background: var(--rosa); color: #fff; }
.jcom__meta { display: flex; align-items: baseline; gap: .5rem; }

/* "!" no card = tem rascunho automático ainda não salvo nessa demanda */
.tarefa__rasc { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--st-aprovacao_copy, #e0a800); color: var(--preto); font-size: .8em; line-height: 1; vertical-align: baseline; }

/* anexos da demanda */
.anexos-campo { margin-bottom: 1rem; }
.anexos-campo input[type=file] { display: block; margin-top: .5rem; font-size: .85rem; }
.anexos { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.anexo { display: flex; align-items: center; gap: .5rem; background: var(--cinza); border-radius: .5rem; padding: .4rem .6rem; font-size: .85rem; }
.anexo__icone { flex: none; }
.anexo__nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-weight: 700; }
.anexo__meta { flex: none; font-size: .72rem; opacity: .6; }
.anexo__dl { flex: none; text-decoration: none; font-size: 1rem; color: inherit; opacity: .6; padding: 0 .2rem; }
.anexo__dl:hover { opacity: 1; }
.anexo__x { flex: none; cursor: pointer; color: var(--rosa); font-weight: 700; padding: 0 .2rem; border-radius: .3rem; }
.anexo__x input { display: none; }
.anexo__x:has(input:checked) { background: var(--rosa); color: #fff; }
.anexo:has(.anexo__x input:checked) { opacity: .45; text-decoration: line-through; }
.anexos__vazio, .anexos__dica { font-size: .8rem; margin: .35rem 0 0; }

.chk__form { display: flex; gap: .4rem; margin-top: .5rem; }
.chk__form input { flex: 1; min-width: 0; font-size: .85rem; padding: .45em .7em; border: 2px solid #ddd; border-radius: .5rem; background: #fff; }
.chk__form input:focus { outline: none; border-color: var(--preto); }

/* lista empilhada: uma nota por linha, cada uma abre pra ler tudo */
.notas--mini { display: flex; flex-direction: column; gap: .45rem; }
.notas--mini .nota { border-left-width: 6px; padding: .7rem .9rem; }
.notas--mini .nota p, .notas--mini .nota__txt, .notas--mini .nota__linha { font-size: .88rem; }
.notas--mini .nota__meta { margin-bottom: .35rem; }
.display--sm .link.hand { font-family: var(--text); text-transform: none; letter-spacing: 0; margin-left: .6rem; }

/* =========================================================================
   v4 — editor com imagens, ações no card, lixeira, central
   ====================================================================== */
.label-block { margin-bottom: .35rem; }
.texto-livre { white-space: pre-wrap; margin: 0 0 1rem; }

/* editor */
.editor { position: relative; border: 2px solid var(--preto); border-radius: .75rem; background: var(--branco); margin-bottom: 1rem; transition: box-shadow .15s; }
.editor:focus-within { outline: 3px solid var(--verde); outline-offset: 1px; }
.editor.is-drop { box-shadow: inset 0 0 0 3px var(--rosa); background: #fbe9f2; }
.editor textarea { display: block; width: 100%; border: 0; border-radius: .75rem .75rem 0 0; padding: .7em .9em; font: 400 1rem var(--text); resize: vertical; background: transparent; color: inherit; min-height: 4.5em; }
.editor textarea:focus { outline: none; }
.editor__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 .6rem; }
.editor__thumbs:empty { display: none; }
.thumb { position: relative; margin: 0; width: 84px; height: 84px; border-radius: .5rem; overflow: hidden; background: var(--cinza); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(29,29,27,.85); color: #fff; font: 700 15px/22px var(--text); text-align: center; cursor: pointer; padding: 0; margin: 0; }
.thumb__x input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.thumb.is-removida img { opacity: .25; filter: grayscale(1); }
.thumb.is-removida .thumb__x { background: var(--rosa); }
.editor__bar { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; }
.editor__add { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--preto); background: var(--verde); color: var(--preto); font: 700 20px/26px var(--text); cursor: pointer; padding: 0; flex: none; }
.editor__add:hover { transform: scale(1.08); }
.editor__hint { font-size: .72rem; opacity: .55; }
.comentarios .editor { border-color: #444; background: #2a2a28; color: #fff; }
.comentarios .editor__hint { opacity: .7; }
.comentarios .editor textarea { color: #fff; }

/* descrição em slides (compacta) */

/* link digitado num campo de texto vira atalho clicável embaixo dele */
.campo-links { display: flex; flex-wrap: wrap; gap: .35rem; margin: .25rem 0 .1rem; }
.campo-links[hidden] { display: none; }
.campo-links__l { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 .78rem var(--text); color: var(--azul); text-decoration: underline; text-underline-offset: .15em; }
.campo-links__l:hover { color: var(--rosa); }
.descricao { border: 2px solid var(--preto); border-radius: .75rem; padding: .5rem .6rem .4rem; margin-bottom: 1rem; background: var(--cinza); }
.slides { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.slide { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: .5rem; align-items: start; }
.slide__num { width: 26px; height: 26px; border-radius: 50%; background: var(--preto); color: var(--verde); font-family: var(--display); font-size: .8rem; display: grid; place-items: center; margin-top: .35rem; }
.slide__body { min-width: 0; }
.slide__x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: #999; font: 700 16px/24px var(--text); text-align: center; cursor: pointer; position: relative; margin-top: .4rem; padding: 0; }
.slide__x:hover { background: var(--rosa); color: #fff; }
.slide__x input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.slide.is-removido .slide__body { opacity: .35; }
.slide.is-removido .slide__x { background: var(--rosa); color: #fff; }
.slide-add { margin-top: .4rem; border: 1px dashed #999; background: transparent; border-radius: 999px; padding: .25em .9em; font: 700 .7rem var(--text); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; color: #555; }
.slide-add:hover { border-color: var(--preto); color: var(--preto); background: #fff; }
.editor--mini { margin: 0; border-width: 1px; border-color: #bbb; background: #fff; }
.editor--mini textarea { padding: .45em .7em; font-size: .9rem; min-height: 4.4em; }
.editor--mini .editor__thumbs { padding: 0 .45rem; gap: .35rem; }
.editor--mini .thumb { width: 56px; height: 56px; }
.editor--mini .thumb__x { width: 18px; height: 18px; font-size: 12px; line-height: 18px; }
.editor--mini .editor__bar { padding: .2rem .45rem .3rem; }
.editor--mini .editor__add { width: 22px; height: 22px; font-size: 15px; line-height: 18px; border-width: 1px; }
.editor--mini .editor__hint { font-size: .62rem; }
.slides--leitura { gap: .5rem; }
.slides--leitura .slide { grid-template-columns: 26px minmax(0, 1fr); background: var(--cinza); border-radius: .6rem; padding: .45rem .6rem; }
.slide__texto { margin: .3rem 0 .2rem; white-space: pre-wrap; font-size: .95rem; }
.slides--leitura .galeria--mini { margin: .2rem 0 0; }

/* galeria (leitura) */
.galeria { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.galeria__item { position: relative; margin: 0; width: 160px; height: 160px; border-radius: .6rem; overflow: hidden; background: var(--cinza); }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.galeria__item:hover img { transform: scale(1.04); }
.galeria__dl { position: absolute; right: 6px; bottom: 6px; background: var(--preto); color: var(--verde); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-weight: 700; }
.galeria--mini { margin: .4rem 0 0; }
.galeria--mini .galeria__item { width: 72px; height: 72px; }

/* lixeira no canto inferior direito do form */
.tarefa-modal__main { position: relative; }
.btn-trash { position: absolute; right: 1.25rem; bottom: 1.25rem; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--preto); background: var(--branco); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0; transition: .15s; }
.btn-trash:hover { background: var(--rosa); border-color: var(--rosa); }
.tarefa-modal .modal__actions { justify-content: flex-start; padding-right: 3.5rem; }

/* ações no card ao passar o mouse */
.tarefa { position: relative; }
.tarefa__acoes { display: none; gap: .25rem; align-items: center; margin-top: .3rem; }
.tarefa:hover .tarefa__acoes, .tarefa:focus-within .tarefa__acoes { display: flex; }
/* com a lista de status aberta o card segue mostrando as ações, mesmo sem o mouse em cima */
.tarefa:has(.csel--aberto) .tarefa__acoes { display: flex; }
.tarefa__sel { flex: 1; min-width: 0; font: 700 .6rem var(--text); text-transform: uppercase; letter-spacing: .04em; padding: .25em .3em; border: 1px solid #bbb; border-radius: .35rem; background: #fff; cursor: pointer; }
.tarefa__del { border: 0; background: transparent; cursor: pointer; font-size: .9rem; line-height: 1; padding: .1em .2em; border-radius: .3rem; }
.tarefa__del:hover { background: var(--rosa); }
.tarefa.is-saving { opacity: .5; pointer-events: none; }
@media (max-width: 760px) { .cal__grid--mes .tarefa__acoes { display: none !important; } }

/* central */
.toolbar--central { justify-content: space-between; }
.section--nota { padding-bottom: 0; }
.nova-nota__dest { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .nova-nota__dest { grid-template-columns: 1fr; } }
.section--feed { padding-top: 1.5rem; }
.feed__item--nota details, .feed__item--nota .feed__summary--static { border-left-color: var(--preto); }
.feed__item--nota .feed__summary--static { background: var(--branco); border-radius: 1rem; border-left: 8px solid var(--preto); cursor: default; }
.feed__item--nota .feed__dot { background: var(--preto); box-shadow: 0 0 0 4px #ddd; }
.feed__texto { margin: .3rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 400; }
.feed__meta form { margin: 0; }
/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: .5rem; overflow-x: auto; padding-bottom: .5rem; }
.kanban__col { background: var(--cinza); border-radius: .8rem; padding: .5rem; min-height: 260px; display: flex; flex-direction: column; }
.kanban__col.is-over { outline: 3px dashed var(--rosa); outline-offset: -3px; background: #fbe9f2; }
.kanban__head { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .2rem .3rem .5rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kanban__n { background: var(--preto); color: var(--verde); border-radius: 999px; padding: .1em .55em; font-size: .7rem; }
.kanban__itens { display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.kanban .tarefa { font-size: .84rem; padding: .5rem .6rem .55rem; }
.tarefa__formato { display: flex; align-items: baseline; gap: .5rem; }
.tarefa__data { margin-left: auto; font-weight: 700; opacity: .75; letter-spacing: 0; text-transform: none; }
.cal__titulo-sub { font-family: var(--text); font-size: .8rem; font-weight: 700; background: var(--preto); color: var(--verde); border-radius: 999px; padding: .15em .7em; vertical-align: middle; margin-left: .3rem; }
.kanban .tarefa__acoes .tarefa__sel { display: none; } /* no kanban o status muda arrastando */

/* =========================================================================
   Fase 2 — Início, jornada (Onboarding / Branding / Docs), briefing
   ====================================================================== */
.status-bola { display: inline-block; font-weight: 700; padding: .2em .8em; border-radius: 999px; }
.status-bola--voce { background: var(--rosa); color: #fff; }
.status-bola--vic { background: var(--preto); color: var(--verde); }
.plano-form { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.plano-form label { margin: 0; min-width: 220px; }
/* jornada e sessões recolhíveis */
.jornada-wrap { background: var(--branco); border-radius: var(--radius); margin-bottom: 1rem; }
.jornada-wrap > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: 1rem 1.25rem; }
.jornada-wrap > summary::-webkit-details-marker { display: none; }
.jornada-wrap__t { font-family: var(--display); text-transform: uppercase; letter-spacing: -.03em; font-size: 1.3rem; }
.jornada-wrap__resumo { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.jornada-wrap__resumo strong { opacity: 1; }
.jornada-wrap__seta, .jsec__seta { margin-left: auto; transition: transform .15s; font-size: .8rem; }
.jornada-wrap[open] > summary .jornada-wrap__seta, .jsec[open] > summary .jsec__seta { transform: rotate(180deg); }
.jornada { display: flex; flex-direction: column; gap: .75rem; padding: 0 1.25rem 1.25rem; }
.jsec { background: var(--cinza); border-radius: var(--radius); border-top: 8px solid #cfcfcf; overflow: hidden; }
.jsec > *:not(summary) { padding: 0 1.1rem 1.1rem; }
.jsec.is-ok { border-top-color: var(--verde); }
.jsec.is-off { opacity: .55; }
.jsec__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: 1rem 1.1rem; cursor: pointer; list-style: none; }
.jsec__head::-webkit-details-marker { display: none; }
.jsec:not([open]) .jsec__head { padding-bottom: 1rem; }
.jsec[open] .jsec__head { padding-bottom: .6rem; }
.jsec__nome { font-family: var(--display); text-transform: uppercase; letter-spacing: -.03em; font-size: 1.4rem; margin: 0; }
.jpasso { background: var(--branco); }
.jsec__tag { font: 700 .7rem var(--text); letter-spacing: .06em; border-radius: 999px; padding: .25em .7em; background: var(--cinza); color: #555; }
.jsec.is-ok .jsec__tag { background: var(--verde); color: var(--preto); }
.jsec__aviso { font-size: .75rem; }
.jpassos { list-style: none; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.jpasso { border-radius: .8rem; }
.jpasso__link { display: grid; grid-template-columns: 30px 1fr auto; gap: .2rem .7rem; align-items: center; padding: .6rem .8rem; color: inherit; }
a.jpasso__link:hover { background: rgba(0,0,0,.04); border-radius: .8rem; }
.jpasso__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--text); background: #bdbdbd; color: #fff; }
.jpasso__nome { font-weight: 700; font-size: .92rem; line-height: 1.15; }
.jpasso__meta { font-size: .72rem; opacity: .65; }
.jpasso.is-ok { background: #eef0b8; }
.jpasso.is-ok .jpasso__num { background: var(--verde); color: var(--preto); }
.jpasso.is-pend .jpasso__num { background: var(--preto); color: var(--verde); }
.jpasso.is-lock { opacity: .6; }
.jpasso.is-lock .jpasso__num { font-size: .75rem; }
.jpasso__det .jpasso__num { font-size: .85rem; }
/* na visão da AG nada fica esmaecido — o cadeado e o cinza são só pro cliente */
li.jpasso:has(> .jpasso__det) { opacity: 1; }
.jpasso--vazio { padding: .5rem .8rem; font-size: .85rem; }
.jupload { display: grid; grid-template-columns: 1fr; gap: .4rem; padding: .5rem .8rem .8rem; }
.jsec > .jupload { padding: .5rem 1.1rem 1.1rem; }
.jupload__drop { border: 2px dashed #c9c9c9; border-radius: .6rem; padding: .6rem .8rem; font-size: .78rem; color: #777; display: flex; flex-direction: column; gap: .2rem; background: #fafafa; transition: .15s; }
.jupload.is-drop .jupload__drop { border-color: var(--verde); background: #f7f8dd; color: var(--preto); }
.jupload__drop .link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--preto); }
.jupload__lista:empty { display: none; }
.jupload__lista { font-weight: 700; color: var(--preto); }
.jupload__linha { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.jupload__linha input[type=url] { flex: 1; min-width: 160px; }
.jupload__linha .check { margin: 0; font-size: .72rem; font-weight: 400; white-space: nowrap; }

/* passo recolhível (visão AG) */
.jpasso__det { width: 100%; }
.jpasso__sum { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem .8rem; cursor: pointer; list-style: none; }
.jpasso__sum::-webkit-details-marker { display: none; }
.jpasso__det[open] .jpasso__sum { border-bottom: 1px solid rgba(0,0,0,.08); }
.jpasso__det[open] .jpasso__seta { transform: rotate(180deg); }
.jpasso__dir { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.jpasso__seta { font-size: .75rem; transition: transform .15s; }
.jpasso__corpo { padding: .5rem 0 .2rem; }
.jpasso__abrir { font-size: .85rem; text-decoration: none; opacity: .6; }
.jpasso__abrir:hover { opacity: 1; }
.jpasso__status { font: 700 .66rem var(--text); text-transform: uppercase; letter-spacing: .04em; padding: .25em .5em; border: 2px solid var(--preto); border-radius: .5rem; background: #fff; cursor: pointer; }
.jpasso__n { font-size: .68rem; background: rgba(0,0,0,.12); border-radius: 999px; padding: .1em .6em; }

/* switch (ligar/desligar) */
.switch { display: inline-flex; align-items: center; gap: .5rem; margin: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #e3e3e3; box-shadow: inset 0 1px 3px rgba(0,0,0,.18); transition: background .18s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform .18s; }
.switch input:checked + .switch__track { background: var(--verde); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--preto); outline-offset: 2px; }
.switch__txt { font-size: .72rem; white-space: nowrap; }
.jpasso.is-and .jpasso__num { background: var(--azul); color: #fff; }
.jarqs { list-style: none; margin: 0 0 .4rem; padding: 0 .8rem; display: flex; flex-direction: column; gap: .25rem; }
.jarq { display: flex; align-items: center; gap: .6rem; font-size: .82rem; background: #fff; border-radius: .5rem; padding: .35rem .6rem; opacity: .6; transition: opacity .15s; }
.jarq.is-ok { opacity: 1; }
.jarq__nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.jarq__nome { text-decoration: underline; text-underline-offset: .15em; }
.jarq__x { border: 0; background: transparent; color: #bbb; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .2rem; border-radius: .3rem; }
.jarq__x:hover { background: var(--rosa); color: #fff; }
.jarq-bloco { margin-bottom: 1.5rem; }
.jsec__marcar { display: flex; gap: .4rem; flex-wrap: wrap; padding: 0 1.1rem .6rem; }
.jsec__marcar .btn { font-size: .68rem; }
.jupload input { font-size: .82rem; padding: .45em .7em; border: 1px solid #bbb; border-radius: .5rem; background: #fff; width: 100%; }
.jupload button { justify-self: start; }
.jpasso__troca { padding: 0 .8rem .5rem; font-size: .75rem; }
.jpasso__troca summary { cursor: pointer; color: #666; }
.jitem__acoes { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 0 0 1rem; }
.jitem__frame { width: 100%; height: 75vh; border: 2px solid var(--cinza); border-radius: .75rem; background: #fff; }
.jitem__img { max-width: 100%; border-radius: .75rem; }
.jcom__lista { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; max-height: 50vh; overflow: auto; }
.jcom__item { background: var(--cinza); border-radius: .75rem; padding: .7rem .9rem; border-left: 5px solid #999; overflow-wrap: anywhere; }
.jcom__item--admin, .jcom__item--equipe { border-left-color: var(--verde); }
.jcom__item--cliente { border-left-color: var(--azul); }
.jcom__meta { font-size: .78rem; margin-bottom: .2rem; }
.jcom__item p { margin: 0; white-space: pre-wrap; }
/* ---- Briefing ------------------------------------------------------- */
.hero--brief { padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.hero__title--sm { font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.02; max-width: 22ch; }
.hero__sub--brief { max-width: 60ch; font-size: .95rem; }
.brief { padding: var(--pad); max-width: 860px; margin: 0 auto; }
.brief__indice { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.brief__indice a { display: inline-flex; align-items: center; gap: .4rem; background: var(--branco); border-radius: 999px; padding: .35em .9em .35em .35em; font: 700 .72rem var(--text); text-transform: uppercase; letter-spacing: .03em; transition: .15s; }
.brief__indice a:hover { background: var(--preto); color: var(--verde); }
.brief__indice a span { width: 20px; height: 20px; border-radius: 50%; background: var(--verde); color: var(--preto); display: grid; place-items: center; font-size: .68rem; }
.brief__sec { background: var(--branco); border-radius: var(--radius); padding: 2rem 2.25rem; margin-bottom: 1rem; scroll-margin-top: 84px; }
.brief__sechead { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--cinza); }
.brief__secn { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--preto); color: var(--verde); font-family: var(--display); font-size: 1.1rem; display: grid; place-items: center; }
.brief__sectitulo { font-family: var(--display); text-transform: uppercase; letter-spacing: -.03em; font-size: 1.35rem; line-height: 1; margin: 0; }
.brief__secinfo { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .5; }
.brief__intro { white-space: pre-wrap; background: var(--cinza); border-left: 5px solid var(--verde); border-radius: .75rem; padding: 1.1rem 1.3rem; font-size: .9rem; line-height: 1.6; margin: 0 0 1.75rem; }
.brief__sub { font: 700 .72rem var(--text); text-transform: uppercase; letter-spacing: .1em; margin: 2.25rem 0 1rem; color: var(--rosa); padding-top: 1rem; border-top: 1px dashed #ddd; }
.brief__q { margin-bottom: 1.75rem; }
.brief__label { display: block; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.brief__n { color: var(--verde); font-family: var(--display); margin-right: .35rem; }
.brief__req { color: var(--rosa); }
.brief__ajuda { margin: -.25rem 0 .6rem; font-size: .84rem; opacity: .65; white-space: pre-wrap; line-height: 1.5; }
.brief__in { display: block; width: 100%; font: 400 1rem var(--text); padding: .7em .95em; border: 2px solid #d8d8d8; border-radius: .75rem; background: #fcfcfc; transition: border-color .15s, background .15s; }
.brief__in:hover { border-color: #b5b5b5; }
.brief__in:focus { outline: none; border-color: var(--preto); background: #fff; box-shadow: 0 0 0 3px rgba(207,213,63,.6); }
textarea.brief__in { resize: vertical; min-height: 6em; }
.brief__ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .4rem; }
.brief__ops .check { margin: 0; font-weight: 400; font-size: .88rem; align-items: flex-start; gap: .6rem; background: var(--cinza); border: 2px solid transparent; border-radius: .7rem; padding: .6rem .8rem; cursor: pointer; transition: .15s; line-height: 1.35; }
.brief__ops .check:hover { border-color: #c4c4c4; }
.brief__ops .check input { margin-top: .15rem; accent-color: var(--preto); width: 1.05em; height: 1.05em; flex: none; }
.brief__ops .check:has(input:checked) { background: var(--verde); border-color: var(--preto); font-weight: 700; }
.brief__ops--radio { grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); }
.brief__acoes { position: sticky; bottom: 0; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; background: var(--preto); color: var(--branco); border-radius: var(--radius); padding: 1rem 1.5rem; margin-top: 1.5rem; box-shadow: 0 -10px 30px -18px rgba(0,0,0,.8); z-index: 5; }
.brief__acoes-txt { flex: 1; min-width: 200px; font-size: .8rem; opacity: .75; }
.brief__acoes .btn--outline { color: var(--branco); }
@media (max-width: 600px) { .brief__sec { padding: 1.5rem 1.25rem; } .brief__acoes { padding: .9rem 1rem; } .brief__acoes-txt { display: none; } }
.brief__sec--leitura { padding: 1.75rem 2rem; }
.dl--brief { grid-template-columns: minmax(200px, 2fr) 3fr; gap: .6rem 1.5rem; }
.dl--brief dt { font: 700 .85rem var(--text); text-transform: none; letter-spacing: 0; }
.dl--brief dd { padding-bottom: .6rem; border-bottom: 1px solid var(--cinza); }
.dl__sub { color: var(--rosa) !important; text-transform: uppercase !important; letter-spacing: .08em !important; font-size: .72rem !important; margin-top: .5rem; }
.brief__lista { margin: 0; padding-left: 1.1rem; }

/* aba Início (AG) */
.cliente--inicio .cliente__head { gap: .4rem; }
.cliente__bola { margin: .25rem 0 .5rem; font-size: .8rem; font-weight: 700; padding: .25em .8em; border-radius: 999px; display: inline-block; }
.cliente__bola.is-cliente { background: var(--rosa); color: #fff; }
.cliente__bola.is-vic { background: var(--verde); color: var(--preto); }
.cliente:nth-child(4n+3) .cliente__bola.is-cliente { background: #fff; color: var(--rosa); }
.cliente__sessoes { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.cliente__sessoes li { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: .25em .7em; border-radius: 999px; background: rgba(0,0,0,.08); }
.cliente__sessoes li.is-ok { background: var(--verde); color: var(--preto); }
.cliente__sessoes li.is-off { opacity: .45; text-decoration: line-through; }
.cliente:nth-child(4n+2) .cliente__sessoes li, .cliente:nth-child(4n+3) .cliente__sessoes li, .cliente:nth-child(4n+4) .cliente__sessoes li { background: rgba(255,255,255,.18); }
.cliente:nth-child(4n+2) .cliente__sessoes li.is-ok, .cliente:nth-child(4n+3) .cliente__sessoes li.is-ok, .cliente:nth-child(4n+4) .cliente__sessoes li.is-ok { background: var(--verde); color: var(--preto); }
.chips--links { list-style: none; margin: 0; padding: 0; }
.chip--escuro { border-color: var(--preto); color: var(--preto); text-decoration: none; display: inline-block; }
.chip--escuro:hover { background: var(--preto); color: var(--verde); }
.chip--escuro small { opacity: .6; font-weight: 400; text-transform: none; }
.inline-form { display: inline; }
.inline-form .link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }

/* =========================================================================
   Dashboard da equipe, demandas internas e painel de notificações
   ====================================================================== */
.notif { position: relative; }
.notif__sino { position: relative; background: transparent; border: 2px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; width: 38px; height: 38px; font-size: 1rem; cursor: pointer; line-height: 1; }
.notif__sino:hover, .notif.is-open .notif__sino { border-color: var(--verde); }
.notif__badge { position: absolute; top: -4px; right: -4px; background: var(--rosa); color: #fff; border-radius: 999px; font: 700 .6rem var(--text); padding: .15em .4em; min-width: 16px; }
.notif__painel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(380px, 90vw); max-height: min(60vh, 480px); overflow: auto; background: var(--branco); color: var(--preto); border-radius: 1rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); z-index: 60; }
.notif__painel[hidden] { display: none; }
.notif__head { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 2px solid var(--cinza); position: sticky; top: 0; background: var(--branco); }
.notif__head .link { margin-left: auto; font-size: .78rem; }
.notif__x { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.notif__vazio { padding: 1.5rem 1rem; text-align: center; }
.notif__lista { list-style: none; margin: 0; padding: 0; }
.notif__item { border-bottom: 1px solid var(--cinza); border-left: 5px solid transparent; }
.notif__item a { display: block; padding: .7rem 1rem; }
.notif__item a:hover { background: var(--cinza); }
.notif__item--resposta { border-left-color: var(--verde); }
.notif__item--nova { border-left-color: var(--rosa); }
.notif__item--nota { border-left-color: var(--preto); }
.notif__item.is-nova { background: #f7f8dd; }
.notif__txt { display: block; font-size: .86rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.notif__quando { display: block; font-size: .7rem; opacity: .6; margin-top: .15rem; }
@media (max-width: 760px) { .notif__painel { position: fixed; right: 1rem; left: 1rem; width: auto; top: 72px; } }

.internas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.interna { background: var(--branco); border-radius: 1rem; padding: .9rem 1.1rem; display: flex; gap: 1rem; align-items: flex-start; border-left: 8px solid #bdbdbd; }
.interna--fazendo { border-left-color: var(--azul); }
.interna--concluida { border-left-color: var(--verde); opacity: .6; }
.interna.is-atrasada { border-left-color: var(--rosa); }
.interna__main { flex: 1; min-width: 0; }
.interna__titulo { display: block; }
.interna--concluida .interna__titulo { text-decoration: line-through; }
.interna__desc { margin: .25rem 0; font-size: .9rem; opacity: .85; white-space: pre-wrap; }
.interna__meta { margin: .3rem 0 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .78rem; }
.interna__acoes { display: flex; gap: .4rem; align-items: center; margin: 0; }
.interna__acoes select { font: 700 .7rem var(--text); text-transform: uppercase; letter-spacing: .04em; padding: .35em .5em; border: 2px solid var(--preto); border-radius: .5rem; background: #fff; cursor: pointer; }
.is-atraso { color: var(--rosa); font-weight: 700; }
.lista__item--atraso { border-left: 5px solid var(--rosa); }

.btn--perigo { margin-left: auto; opacity: .75; }
.btn--perigo:hover { background: var(--rosa); border-color: var(--rosa); color: #fff; opacity: 1; }

.fieldset { border: 2px solid var(--cinza); border-radius: .75rem; padding: .75rem 1rem 1rem; margin: 0 0 1rem; }
.fieldset legend { font-weight: 700; font-size: .8rem; padding: 0 .4rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .25rem .75rem; }
.checks .check { margin: 0; font-weight: 400; }
.tabela tr.linha--off td { opacity: .5; }
