/* =============================================================================
   DUPPLA — VISÃO GERAL DO PROJETO (v0.28)
   Faixa Já fizemos · Agora · A seguir; Detalhes do projeto em destaque (blocos por
   seção, com ícones e logotipos) e Registros ao lado; linha das etapas da v0.26.1
   com acabamento; aba Tarefas e pendências com as duas colunas.
   ============================================================================= */

/* A página do projeto usa a largura toda: bordas laterais menores */
.view:has(> .view-page:not(.is-behind) > .project-page) { padding: var(--sp-4) clamp(.75rem, 1.4vw, 1.5rem) var(--sp-6); }
@media (max-width: 640px) { .view:has(> .view-page:not(.is-behind) > .project-page) { padding: var(--sp-3) var(--sp-3) var(--sp-6); } }
.page.page--wide.project-page { max-width: none; margin-inline: 0; }

.agora { --ag-info: #2B7BB9; --ag-gap: var(--sp-3); --ag-side: clamp(290px, 23vw, 420px); display: grid; gap: var(--ag-gap); min-width: 0; }
:root[data-theme="dark"] .agora { --ag-info: #74B3E6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agora { --ag-info: #74B3E6; } }
.ag-muted { color: var(--c-ink-3); font-size: var(--fs-xs); }
.ag-col-count { margin-left: auto; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.ag-card-title .ag-col-count { margin-left: .1rem; display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.35rem; padding: 0 .4rem; border-radius: var(--r-pill); background: var(--c-surface-sunken); color: var(--c-ink-2); }
.ag-card-title .ag-col-count:empty { display: none; }

/* ---------------------------------------------------------------- faixa: Já fizemos · Agora · A seguir */
.ag-strip {
  display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2.1fr) var(--ag-side);
  border-radius: 20px; overflow: hidden; border: 1px solid var(--c-border); background: var(--c-surface); box-shadow: var(--shadow-md);
}
.ag-col { display: grid; gap: .75rem; align-content: start; min-width: 0; padding: 1.15rem 1.25rem; }
.ag-col + .ag-col { border-left: 1px solid var(--c-border); }
.ag-col-title { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-ink-2); }
.ag-col-title > svg { width: 1rem; height: 1rem; }
.ag-done .ag-col-title > svg { color: var(--c-success); }
.ag-next .ag-col-title > svg { color: var(--ag-info); }
.ag-more { justify-self: start; }

.ag-done-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ag-done-list > li { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: .55rem; font-size: var(--fs-sm); line-height: 1.35; }
.ag-done-ck { width: 1.15rem; height: 1.15rem; margin-top: .05rem; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone, var(--c-success)) 16%, var(--c-surface)); color: color-mix(in srgb, var(--tone, var(--c-success)) 80%, var(--c-ink)); }
.ag-done-name { font-weight: var(--fw-semibold); }
/* v0.30: vazio com cara de linha do tempo que ainda vai ser preenchida */
.ag-done-empty { position: relative; display: grid; gap: .3rem; padding: .9rem .95rem .95rem 2.6rem; border-radius: 14px; font-size: var(--fs-sm); color: var(--c-ink-2);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-success) 7%, var(--c-surface)), var(--c-surface)); border: 1px solid color-mix(in srgb, var(--c-success) 18%, var(--c-border)); }
.ag-done-empty-art { position: absolute; left: .95rem; top: 1rem; bottom: 1rem; width: .85rem; display: grid; align-content: space-between; justify-items: center; }
.ag-done-empty-art::before { content: ""; position: absolute; top: .3rem; bottom: .3rem; left: 50%; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--c-success) 40%, transparent) 0 3px, transparent 3px 7px); }
.ag-done-empty-art > span { position: relative; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c-success) 45%, var(--c-border)); background: var(--c-surface); }
.ag-done-empty-art > span:first-child { background: var(--c-success); border-color: var(--c-success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-success) 18%, transparent); }
.ag-done-empty-title { font-weight: var(--fw-bold); color: var(--c-ink); }
.ag-done-ck.is-product { background: color-mix(in srgb, var(--c-brand) 14%, var(--c-surface)); color: var(--c-brand-ink); border-radius: 6px; }
.ag-done-text small > .ag-done-prod { display: inline-block; margin-right: .35rem; padding: 0 .4rem; border-radius: 5px; background: var(--c-surface-sunken); color: var(--c-ink-2); font-weight: var(--fw-semibold); }
.ag-done-ck svg { width: .7rem; height: .7rem; stroke-width: 2.6; }
.ag-done-list > li.is-stage .ag-done-ck { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.ag-done-text { min-width: 0; overflow-wrap: anywhere; }
.ag-done-text small { display: block; color: var(--c-ink-3); font-size: .72rem; }
.ag-done-list.is-loading > li { display: block; height: .9rem; border-radius: 6px; background: var(--c-surface-sunken); }
.ag-done-list.is-loading > li span { display: none; }

/* o "Agora" */
.ag-now {
  position: relative; gap: .85rem; padding: 1.35rem 1.6rem 1.25rem; --tone: var(--c-brand);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--tone) 13%, transparent), transparent 62%);
}
.ag-now[data-tone="warn"] { --tone: var(--c-warning); }
.ag-now[data-tone="ok"] { --tone: var(--c-success); }
.ag-now[data-tone="muted"] { --tone: var(--c-ink-3); }
.ag-now[data-tone="bad"] { --tone: var(--c-danger); }
.ag-stage-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .12rem .6rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  background: color-mix(in srgb, var(--tone, var(--c-ink-3)) 13%, var(--c-surface)); color: color-mix(in srgb, var(--tone, var(--c-ink-3)) 75%, var(--c-ink)); }
.ag-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin: .1rem 0 0; }
.ag-fact { display: grid; gap: .3rem; align-content: start; padding: .6rem .75rem; border-radius: 12px; background: color-mix(in srgb, var(--c-surface-2) 85%, transparent); border: 1px solid var(--c-border); min-width: 0; }
.ag-fact dt { display: flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: var(--fw-semibold); color: var(--c-ink-3); }
.ag-fact dt svg { width: .8rem; height: .8rem; }
.ag-fact dd { margin: 0; min-width: 0; }
.ag-fact dd > span { display: grid; gap: .05rem; }
.ag-fact strong { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-ink); overflow-wrap: anywhere; }
.ag-fact-sub { font-size: .72rem; color: var(--c-ink-3); overflow-wrap: anywhere; }
.ag-fact-muted { font-size: var(--fs-sm); color: var(--c-ink-3); }
.ag-fact dd > .ag-fact-who { display: flex; align-items: center; gap: .4rem; }
.ag-fact-who .avatar { --size: 1.6rem; font-size: .6rem; flex: none; }
.ag-fact-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-fact.is-bad { border-color: color-mix(in srgb, var(--c-danger) 45%, var(--c-border)); background: var(--c-danger-soft); }
.ag-fact.is-bad strong { color: var(--c-danger-ink); }
.ag-fact.is-warn { border-color: color-mix(in srgb, var(--c-warning) 45%, var(--c-border)); }
.ag-fact.is-warn strong { color: var(--c-warning-ink); }
.ag-now-more { font-size: var(--fs-xs); color: var(--c-ink-3); align-self: center; }
.ag-done-title { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; }
.ag-done-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem .2rem .5rem; border-radius: var(--r-pill); background: var(--c-success-soft); color: var(--c-success-ink); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.ag-done-badge svg { width: .9rem; height: .9rem; stroke-width: 2.6; }
.ag-now[data-tone="ok"] .ag-now-title { color: var(--c-ink-2); }
.ag-reopen { font-size: var(--fs-xs); }
.ag-now-hint { color: var(--c-ink-3); }
.ag-now-kicker { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: color-mix(in srgb, var(--tone) 72%, var(--c-ink)); }
.ag-now-kicker > svg { width: 1rem; height: 1rem; }
.ag-who { display: inline-flex; align-items: center; gap: .35rem; }
.ag-who svg { width: 1rem; height: 1rem; }
.ag-who .avatar { --size: 1.35rem; font-size: .55rem; }
.ag-clock { display: inline-flex; align-items: center; padding: .08rem .55rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--tone) 17%, transparent); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.ag-clock.is-bad { background: var(--c-danger-soft); color: var(--c-danger-ink); }
.ag-kick-note { font-weight: var(--fw-medium); color: var(--c-ink-3); }
.ag-kick-note.is-bad { color: var(--c-danger-ink); font-weight: var(--fw-semibold); }
.ag-now-title { font-size: clamp(1.3rem, .95rem + 1vw, 1.9rem); line-height: 1.16; letter-spacing: -.022em; font-weight: var(--fw-bold); max-width: 30ch; overflow-wrap: anywhere; outline: none; }
.ag-now-text { color: var(--c-ink-2); font-size: var(--fs-sm); line-height: 1.5; max-width: 68ch; white-space: pre-line; overflow-wrap: anywhere; }
.ag-now-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ag-now-why { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .45rem; padding-top: .8rem; margin-top: .1rem; border-top: 1px dashed var(--c-border); font-size: var(--fs-xs); color: var(--c-ink-3); }
.ag-now-why > svg { width: .85rem; height: .85rem; }
.ag-now-why b { color: var(--c-ink-2); font-weight: var(--fw-semibold); }
.ag-now.is-swap > :not(.ag-now-why) { animation: ag-swap .42s var(--ease) both; }
@keyframes ag-swap { from { opacity: 0; transform: translateY(6px); } }
.ag-live { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-success-ink); }
.ag-live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-success) 60%, transparent); animation: ag-pulse 1.6s ease-out infinite; }
@keyframes ag-pulse { to { box-shadow: 0 0 0 .5rem transparent; } }

.ag-type { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: color-mix(in srgb, var(--tone, var(--c-ink-3)) 75%, var(--c-ink)); }
.ag-type-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--tone, var(--c-ink-3)); flex: none; }

/* A seguir */
.ag-nx { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; padding: .85rem .95rem; border-radius: 14px; background: var(--c-surface-2); border: 1px solid var(--c-border); min-width: 0; }
.ag-nx-icon { width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone, var(--c-brand)) 15%, var(--c-surface)); color: color-mix(in srgb, var(--tone, var(--c-brand)) 80%, var(--c-ink)); }
.ag-nx-icon svg { width: 1.05rem; height: 1.05rem; }
.ag-nx-body { display: grid; gap: .25rem; min-width: 0; align-content: start; }
.ag-nx-label { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font-size: .72rem; font-weight: var(--fw-semibold); color: var(--c-ink-3); }
.ag-nx-when { font-weight: var(--fw-bold); color: var(--ag-info); white-space: nowrap; }
.ag-nx.is-late .ag-nx-when { color: var(--c-warning-ink); }
.ag-nx-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.3; overflow-wrap: anywhere; }
.ag-nx-sub { display: grid; gap: .15rem; font-size: var(--fs-xs); color: var(--c-ink-3); }
.ag-nx-strong { color: var(--c-ink-2); font-weight: var(--fw-semibold); }
.ag-nx-people { display: flex; align-items: center; gap: .4rem; }
.ag-nx .btn { justify-self: start; margin-top: .35rem; max-width: 100%; }
.ag-nx.is-empty .ag-nx-title { color: var(--c-ink-2); font-weight: var(--fw-semibold); }
.ag-avatars { display: inline-flex; }
.ag-avatars .avatar { --size: 1.35rem; font-size: .55rem; box-shadow: 0 0 0 2px var(--c-surface-2); }
.ag-avatars .avatar + .avatar { margin-left: -.35rem; }


/* ---------------------------------------------------------------- corpo: Detalhes em destaque + Registros */
.ag-body { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--ag-side) - var(--ag-gap)); gap: var(--ag-gap); align-items: stretch; }
/* o cartão dos detalhes fecha na linha da coluna "A seguir"; os Registros ocupam a largura dela */
.ag-card { min-width: 0; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.ag-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.ag-card-title { display: flex; align-items: center; gap: .45rem; font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: -.01em; outline: none; }
.ag-notes { display: flex; flex-direction: column; gap: var(--sp-3); padding: 1rem 1.1rem; min-height: 0; }
.ag-notes-body { display: grid; align-content: start; gap: var(--sp-3); }
.ag-seeall { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-brand-ink); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-bold); cursor: pointer; }
.ag-seeall svg { width: .8rem; height: .8rem; }
.ag-seeall:hover { background: var(--c-brand-soft); border-color: transparent; }
.ag-seeall:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ag-quick { display: grid; gap: .35rem; padding: .5rem .55rem; border-radius: 12px; background: var(--c-surface-2); border: 1px solid var(--c-border); transition: border-color 140ms; }
.ag-quick:focus-within { border-color: color-mix(in srgb, var(--c-brand) 45%, var(--c-border)); background: var(--c-surface); }
.ag-quick-input { width: 100%; resize: none; border: 0; background: transparent; color: var(--c-ink); font: inherit; font-size: var(--fs-sm); line-height: 1.45; padding: .15rem .2rem; min-height: 2.6rem; }
.ag-quick-input:focus { outline: none; }
.ag-quick-foot { display: none; align-items: center; justify-content: flex-end; gap: .5rem; }
.ag-quick:focus-within .ag-quick-foot, .ag-quick.has-text .ag-quick-foot { display: flex; }
.ag-quick-foot .ag-muted { margin-right: auto; }
.ag-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); gap: .55rem; }
.ag-pin-note { --st: #FFE99A; --st-ink: #4A3B00; min-height: 4.6rem; padding: .55rem .6rem; border: 0; border-radius: 3px 3px 12px 3px; background: var(--st); color: var(--st-ink); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: 1.4; text-align: left; cursor: pointer;
  box-shadow: 0 6px 14px -9px rgba(40, 30, 0, .5); transform: rotate(-1deg); transition: transform 140ms ease; }
.ag-pin-note:nth-child(even) { transform: rotate(1deg); }
.ag-pin-note:hover, .ag-pin-note:focus-visible { transform: rotate(0) translateY(-1px); outline: none; }
.ag-pin-note:focus-visible { box-shadow: var(--focus-ring); }
.ag-pin-note > span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; }
.ag-book { display: grid; gap: .4rem; }
.ag-book-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 140ms, background-color 140ms; }
.ag-book-link:hover { border-color: color-mix(in srgb, var(--c-brand) 35%, var(--c-border)); background: var(--c-surface-2); }
.ag-book-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ag-book-link > svg { width: .9rem; height: .9rem; color: var(--c-ink-3); }
.ag-book-ic { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 10px; }
.ag-book-ic svg { width: 1.05rem; height: 1.05rem; }
.ag-book-link.is-book .ag-book-ic { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.ag-book-link.is-sticky .ag-book-ic { background: #FFE99A; color: #4A3B00; transform: rotate(-4deg); }
.ag-book-text { display: grid; min-width: 0; line-height: 1.3; }
.ag-book-text strong { font-size: var(--fs-sm); }
.ag-book-text small { font-size: .72rem; color: var(--c-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-regs { list-style: none; margin: 0; padding: .2rem 0 0; display: grid; gap: .6rem; border-top: 1px solid var(--c-border); padding-top: var(--sp-3); }
.ag-reg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem; align-items: start; }
.ag-reg-main { min-width: 0; display: grid; gap: .1rem; }
.ag-reg-meta { display: flex; flex-wrap: wrap; gap: 0 .45rem; font-size: .72rem; color: var(--c-ink-3); }
.ag-reg-meta strong { color: var(--c-ink); }
.ag-reg-text { font-size: var(--fs-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; }

/* Detalhes do projeto */
.ag-details { display: grid; gap: 1.1rem; padding: 1.15rem 1.25rem 1.3rem; align-content: start; }
.dt-head { align-items: center; }
.dt-head-main { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.dt-head-text { display: grid; gap: .1rem; min-width: 0; }
.ag-details .ov-col-title { font-size: var(--fs-lg); letter-spacing: -.01em; }
.dt-head-sub { font-size: var(--fs-xs); color: var(--c-ink-3); }
.dt-head-actions { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.dt-edit-all { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border: 0; border-radius: 8px; background: transparent; color: var(--c-ink-3);
  font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer; opacity: .55; transition: opacity var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.dt-edit-all svg { width: .85rem; height: .85rem; }
.ag-details:hover .dt-edit-all, .dt-edit-all:focus-visible { opacity: 1; }
.dt-edit-all:hover { background: var(--c-surface-2); color: var(--c-ink); }
.dt-edit-all:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (hover: none) { .dt-edit-all { opacity: 1; } }
.dt-head-icon { width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--c-brand-soft); color: var(--c-brand-ink); }
/* anel de preenchimento */
.dt-ring {
  --pct: 0; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c-brand) calc(var(--pct) * 1%), var(--c-surface-sunken) 0);
}
.dt-ring.is-full { background: conic-gradient(var(--c-success) 100%, transparent 0); }
.dt-ring-num { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface); font-size: .7rem; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
/* o que falta saber */
.dt-missing { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; padding: .6rem .75rem; border-radius: 12px; background: var(--c-warning-soft); }
.dt-missing-label { display: inline-flex; align-items: center; gap: .35rem; margin-right: .2rem; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--c-warning-ink); }
.dt-missing-label svg { width: .9rem; height: .9rem; }
.dt-missing-chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: var(--r-pill); border: 1px dashed color-mix(in srgb, var(--c-warning) 60%, var(--c-border));
  background: var(--c-surface); color: var(--c-ink-2); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
button.dt-missing-chip { cursor: pointer; }
button.dt-missing-chip:hover { border-style: solid; color: var(--c-ink); }
button.dt-missing-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.dt-missing-chip svg { width: .8rem; height: .8rem; }
.dt-missing-more { font-size: var(--fs-xs); color: var(--c-warning-ink); font-weight: var(--fw-semibold); }
/* seções e blocos */
.dt-section { display: grid; gap: .6rem; }
.dt-sec-title { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-ink-2); }
.dt-sec-title::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.dt-sec-count { order: 2; font-size: .72rem; font-weight: var(--fw-semibold); color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.ag-details .dt-grid { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0; }
.ag-details .dt-grid > .dt-tile { flex: 1 1 260px; min-width: 0; }
.ag-details .dt-item.dt-tile {
  position: relative; display: grid; gap: .55rem; align-content: start; padding: .85rem .95rem .9rem; border: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  border-radius: 14px; background: var(--c-surface-2); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.ag-details .dt-item.dt-tile:first-child { padding-top: .85rem; }
.ag-details .dt-item.dt-tile:last-child { padding-bottom: .9rem; border-bottom: 1px solid var(--c-border); }
.ag-details .dt-tile:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-sm); }
.ag-details .dt-grid > .dt-tile.is-wide { flex-basis: 100%; }
.ag-details .dt-tile.is-missing { background: transparent; border-style: dashed; }
.dt-tile-head { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.dt-tile-icon { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 9px; display: grid; place-items: center; background: var(--c-brand-soft); color: var(--c-brand-ink); }
.dt-tile-icon svg { width: 1rem; height: 1rem; }
.dt-tile.is-missing .dt-tile-icon { background: var(--c-surface-sunken); color: var(--c-ink-3); }
.ag-details .dt-label { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none; color: var(--c-ink-2); overflow-wrap: anywhere; }
.dt-tile-edit { flex: none; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--c-ink-3); cursor: pointer; opacity: 0; transition: opacity var(--t-fast); }
.dt-tile-edit svg { width: .9rem; height: .9rem; }
.dt-tile:hover .dt-tile-edit, .dt-tile-edit:focus-visible { opacity: 1; }
.dt-tile-edit:hover { background: var(--c-surface); color: var(--c-ink); }
.dt-tile-edit:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (hover: none) { .dt-tile-edit { opacity: 1; } }
.dt-value-stack { display: grid; gap: .45rem; min-width: 0; }
.ag-details .dt-value { font-size: var(--fs-md, 1rem); font-weight: var(--fw-semibold); color: var(--c-ink); overflow-wrap: anywhere; }
.ag-details .dt-value.is-long { font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: 1.55; white-space: pre-wrap; }
.dt-big { font-size: 1.35rem !important; font-weight: var(--fw-bold) !important; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.dt-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-brand-ink) !important; text-decoration: none; }
.dt-link:hover { text-decoration: underline; }
.dt-link svg { width: .85rem; height: .85rem; flex: none; }
.dt-bool { display: inline-flex; align-items: center; gap: .35rem; justify-self: start; padding: .2rem .7rem .2rem .45rem; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.dt-bool svg { width: .9rem; height: .9rem; stroke-width: 2.6; }
.dt-bool.is-yes { background: var(--c-success-soft); color: var(--c-success-ink); }
.dt-bool.is-no { background: var(--c-surface-sunken); color: var(--c-ink-2); }
/* escolhas: cartões com logotipo */
.ag-details .dt-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .45rem; }
.ag-details .dt-options.is-single { grid-template-columns: minmax(0, 1fr); }
.ag-details .dt-option { display: flex; flex-wrap: nowrap; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 11px; background: var(--c-surface); border: 1px solid var(--c-border); }
.dt-logo--lg { --sz: 2.3rem; border-radius: 10px; font-size: .95rem; flex: none; }
.dt-option-text { display: grid; gap: .25rem; min-width: 0; }
.ag-details .dt-option-name { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.ag-details .dt-option-tags { margin-left: 0; }
.ag-details .dt-tile-empty { justify-content: space-between; }
.ag-details .dt-empty { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-warning-ink); }
.dt-ask { font-size: var(--fs-xs); }
.dt-asked { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-3); }
.dt-asked svg { width: .8rem; height: .8rem; }
.dt-help { font-size: .72rem; color: var(--c-ink-3); }
.dt-empty-all { padding: 2rem 1rem; }

/* ---------------------------------------------------------------- linha das etapas (v0.26.1 com acabamento) */
.stage-track { padding: var(--sp-3) var(--sp-3) var(--sp-2); box-shadow: var(--shadow-sm); }
.stage-track-item + .stage-track-item::before { top: 1.3rem; height: 3px; border-radius: 3px; }
.stage-track-step { gap: .4rem; padding: .45rem .3rem .4rem; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
button.stage-track-step:hover { transform: translateY(-1px); }
.stage-track-dot { width: 1.6rem; height: 1.6rem; transition: box-shadow var(--t-fast); }
.stage-track-step.is-done .stage-track-dot { background: var(--c-success); border-color: var(--c-success); }
.stage-track-item:has(.is-done) + .stage-track-item::before, .stage-track-item:has(.is-done) + .stage-track-item:has(.is-current)::before { background: var(--c-success); }
.stage-track-step.has-left .stage-track-dot { background: var(--c-warning); border-color: var(--c-warning); }
.stage-track-step.has-left .stage-track-count { color: var(--c-warning-ink); }
/* etapa atual: anel com o quanto já foi resolvido, na cor da etapa */
.stage-track-step.is-current .stage-track-dot {
  --pct: 0; position: relative; width: 1.75rem; height: 1.75rem; border: 0;
  background: radial-gradient(circle, var(--tone) 0 42%, var(--c-surface) 44% 58%, transparent 60%),
    conic-gradient(var(--tone) calc(var(--pct) * 1%), color-mix(in srgb, var(--tone) 22%, var(--c-surface)) 0);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 16%, transparent);
}
.stage-track-step.is-current .stage-track-count {
  padding: .05rem .5rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--tone) 14%, var(--c-surface));
  color: color-mix(in srgb, var(--tone) 70%, var(--c-ink));
}
.stage-track-step.is-current .stage-track-name { color: var(--c-ink); }
.stage-track-step.is-viewing { box-shadow: inset 0 -2px 0 var(--c-brand); }

/* ---------------------------------------------------------------- aba Tarefas e pendências */
.ov-cols--work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 1080px) { .ov-cols--work { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- aba Produtos (v0.29) */
.pp-panel { max-width: none; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.pp-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
/* v0.30: faixas por tamanho — cartões da mesma faixa lado a lado, com a mesma altura */
.pp-group { display: grid; gap: var(--sp-3); }
.pp-group + .pp-group { margin-top: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); }
.pp-group-title { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-ink-2); }
.pp-group-count { min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px; display: inline-grid; place-items: center; background: var(--c-surface-sunken); color: var(--c-ink-3); font-size: .7rem; }
.pp-panel .pp-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); align-items: stretch; grid-auto-rows: auto; }
/* todas as faixas com as mesmas colunas: os cartões se alinham de uma faixa para a outra */
.pp-panel .pp-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.pp-panel .pp-grid > .pp-card { align-content: start; height: 100%; }
.pp-panel .pp-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; align-items: start; padding: 1rem 1.05rem 1.05rem; border-radius: 16px;
  background: var(--c-surface-2); border: 1px solid var(--c-border); }
.pp-panel .pp-card.is-done { border-color: color-mix(in srgb, var(--c-success) 45%, var(--c-border)); background: color-mix(in srgb, var(--c-success) 6%, var(--c-surface-2)); }
.pp-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.pp-panel .pp-code { min-width: 2.9rem; height: 2.9rem; background: var(--c-surface); border: 1px solid var(--c-border); }
.pp-title { min-width: 0; }
.pp-panel .pp-name { font-size: var(--fs-md, 1rem); font-weight: var(--fw-bold); }
.pp-panel .pp-meta { font-size: .72rem; }
.pp-status { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap; }
.pp-status svg { width: .85rem; height: .85rem; stroke-width: 2.6; }
.pp-status.is-done { background: var(--c-success); color: #fff; }
.pp-status.is-doing { background: var(--c-warning-soft); color: var(--c-warning-ink); }
.pp-status.is-todo, .pp-status.is-none { background: var(--c-surface-sunken); color: var(--c-ink-3); }
.pp-bar { display: block; height: 5px; border-radius: 4px; background: var(--c-surface-sunken); overflow: hidden; }
.pp-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--c-warning); transition: width .4s var(--ease); }
.pp-card.is-done .pp-bar-fill { background: var(--c-success); }
.pp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pp-step { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .6rem; padding: .5rem .6rem; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-border); }
.pp-step.is-done { border-color: color-mix(in srgb, var(--c-success) 30%, var(--c-border)); }
.pp-step-main { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.pp-step-stack { display: grid; gap: .35rem; flex: 1; min-width: 0; }
.pp-step-label { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .45rem; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.pp-step.is-done .pp-step--check .pp-step-label, .pp-step--check.is-done .pp-step-label { color: var(--c-ink-2); }
.pp-opt { font-size: .66rem; font-weight: var(--fw-medium); color: var(--c-ink-3); }
.pp-check { width: 1.15rem; height: 1.15rem; accent-color: var(--c-success); flex: none; }
.pp-kind { width: 1.15rem; height: 1.15rem; display: grid; place-items: center; color: var(--c-ink-3); flex: none; }
.pp-kind svg { width: .9rem; height: .9rem; }
.pp-kind.is-done { color: var(--c-success); }
.pp-step-value { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; padding-left: 1.7rem; min-width: 0; }
.pp-value { font-size: var(--fs-sm); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.pp-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-brand-ink); text-decoration: none; min-width: 0; }
.pp-link:hover { text-decoration: underline; }
.pp-link svg { width: .8rem; height: .8rem; flex: none; }
.pp-empty { font-size: var(--fs-xs); color: var(--c-ink-3); }
.pp-edit { font-size: var(--fs-xs); }
.pp-input { flex: 1 1 12rem; min-width: 0; min-height: 2.1rem; }
.pp-stamp { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; font-size: .7rem; color: var(--c-ink-3); white-space: nowrap; }
.pp-stamp .avatar { --size: 1.15rem; font-size: .45rem; }
.pp-none { display: flex; flex-wrap: wrap; gap: .3rem .6rem; font-size: var(--fs-xs); color: var(--c-ink-3); padding: .6rem .7rem; border-radius: 10px; border: 1px dashed var(--c-border); }
.ppd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; max-height: min(60vh, 30rem); overflow-y: auto; }
.ppd-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; border: 1px solid var(--c-border); background: var(--c-surface-2); }
.ppd-item label { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; cursor: pointer; }
.ppd-item .pp-code { min-width: 2.4rem; height: 2.1rem; font-size: .65rem; }
.ppd-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

/* ---------------------------------------------------------------- telas menores */
@media (max-width: 1320px) {
  .ag-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ag-strip > .ag-now { grid-column: 1 / -1; order: -1; }
  .ag-col + .ag-col { border-left: 0; }
  .ag-strip > .ag-done { border-top: 1px solid var(--c-border); }
  .ag-strip > .ag-next { border-top: 1px solid var(--c-border); border-left: 1px solid var(--c-border); }
}
@media (max-width: 1080px) {
  .ag-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ag-strip { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .ag-strip > .ag-next { border-left: 0; }
  .ag-now { padding: 1.1rem 1.1rem 1rem; }
  .ag-col { padding: 1rem 1.1rem; }
  .ag-details { padding: 1rem; }
  .ag-details .dt-grid > .dt-tile { flex-basis: 100%; }
  .dt-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-now.is-swap > *, .ag-live-dot { animation: none !important; }
  button.stage-track-step:hover { transform: none; }
}

/* v0.32 — "Agora" sem pendência: o próximo passo marcado (reunião agendada ou a agendar) */
.ag-now-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.ag-next-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: var(--r-pill); background: var(--c-brand-soft); color: var(--c-brand-ink); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.ag-next-badge svg { width: .8rem; height: .8rem; }
.ag-next-badge.is-live { background: #C2416B; color: #fff; }
.ag-next-badge.is-warn { background: var(--c-warning-soft); color: var(--c-warning-ink); }
.ag-now-ok { display: inline-flex; align-items: center; gap: .35rem; color: var(--c-success-ink); font-weight: var(--fw-semibold); align-self: flex-start; }
.ag-now-ok svg { width: .9rem; height: .9rem; }

/* v0.33 — "não realizado" no acompanhamento dos produtos */
.pp-card-head { position: relative; }
.pp-card-more, .pp-step-more { width: 1.9rem; height: 1.9rem; min-height: 0; padding: 0; flex: none; color: var(--c-ink-3); }
.pp-card-more svg, .pp-step-more svg { width: 1rem; height: 1rem; }
.pp-step { position: relative; }
.pp-step-more { opacity: 0; transition: opacity 120ms; }
.pp-step:hover .pp-step-more, .pp-step:focus-within .pp-step-more, .pp-step-more[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .pp-step-more { opacity: 1; } }
.pp-step.is-skipped { background: repeating-linear-gradient(135deg, var(--c-surface-2) 0 8px, var(--c-surface) 8px 16px); border-style: dashed; }
.pp-step.is-skipped .pp-step-label > span:first-child { text-decoration: line-through; text-decoration-color: var(--c-ink-3); color: var(--c-ink-2); }
.pp-skip-ic { width: 1.15rem; height: 1.15rem; flex: none; display: grid; place-items: center; border-radius: 5px; background: var(--c-ink-3); color: #fff; }
.pp-skip-ic svg { width: .8rem; height: .8rem; }
.pp-skip-tag { padding: .05rem .45rem; border-radius: var(--r-pill); background: var(--c-surface-sunken); color: var(--c-ink-2); font-size: .66rem; font-weight: var(--fw-bold); }
.pp-stamp.is-skipped { color: var(--c-ink-3); }
.pp-status.is-skipped { background: var(--c-surface-sunken); color: var(--c-ink-2); }
.pp-panel .pp-card.is-skipped { background: repeating-linear-gradient(135deg, var(--c-surface-2) 0 10px, var(--c-surface) 10px 20px); border-style: dashed; }
.pp-panel .pp-card.is-skipped .pp-bar-fill { background: var(--c-ink-3); }
.pp-panel .pp-card.is-skipped .pp-steps { opacity: .6; }
.pp-skip-note { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .45rem .6rem; border-radius: 10px; background: var(--c-surface); border: 1px dashed var(--c-border-strong); font-size: var(--fs-xs); color: var(--c-ink-2); }
.pp-skip-note svg { width: .85rem; height: .85rem; flex: none; }
.pp-skip-note small { color: var(--c-ink-3); }
.pp-card-head:has(.pp-card-more) { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .6rem; }
.pp-card-more { margin-right: -.4rem; }
.pp-skip-note { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .1rem .45rem; }
.pp-skip-note svg { margin-top: .15rem; }
.pp-skip-note small { grid-column: 2; }
