/* Calendarq · tela "cliente" (frente F9). Carregado depois do legado: sobrescreva aqui.
   Só tokens var(--…), nunca cor escrita à mão (o verificar.mjs recusa). Classes com prefixo próprio da tela. */

/* O link do cliente (esboço 1.4, tela 4): uma coluna só, sempre clara (o
   Tema força o claro no link e no "Ver como cliente"). Prefixo lc- em tudo
   que é novo; os topos das outras seções (cp-*) continuam no legado. */

/* ---------- Fundo: o mesmo do escritório (grade fina e manchas verde-cinza) ---------- */
body.client {
  background-color: var(--bg);
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
}
body.client::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  opacity: var(--blob-op);
  background:
    radial-gradient(38% 42% at 12% 18%, var(--blob-a), transparent 70%),
    radial-gradient(34% 40% at 88% 22%, var(--blob-b), transparent 70%),
    radial-gradient(40% 44% at 70% 88%, var(--blob-c), transparent 70%),
    radial-gradient(26% 30% at 30% 78%, var(--blob-d), transparent 70%);
  filter: blur(40px);
}

/* ---------- A coluna ---------- */
.lc-col { max-width: 720px; }
.lc-topo { padding-top: 18px; }
.lc-topo .section-nav { padding-left: 0; padding-right: 0; margin-top: 14px; }
.lc-corpo { padding-top: 4px; padding-bottom: 40px; }
.lc-corpo .lc-col { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Onde estou: a capa, o nome e a régua ---------- */
.lc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--g-edge);
  border-bottom-color: var(--g-edge-low);
  box-shadow: var(--g-hl), var(--g-sh);
}
.lc-capa { position: relative; height: 156px; }
.lc-capa .capa { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.lc-capa .capa-ini { display: none; }
.lc-capa::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(transparent, var(--banner-tile)); pointer-events: none; }
.lc-capa-of {
  position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  color: var(--banner-ink); font-size: 12.5px; font-weight: 500;
}
.lc-capa-of > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-capa-logo {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center; overflow: hidden;
  border-radius: 7px; border: 1px solid var(--on-dark-line); background: var(--banner-tile);
  font-size: 9px; font-weight: 600; letter-spacing: .02em; color: var(--banner-ink);
}
.lc-capa-logo img { width: 100%; height: 100%; object-fit: cover; }
.lc-hero-in { padding: 16px 20px 20px; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
.lc-hero-in .mono-label { display: block; }
.lc-nome { margin: 4px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; overflow-wrap: anywhere; }
.lc-nome .acc { font-size: 1.1em; letter-spacing: -.02em; }
.lc-prog { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lc-prog b { color: var(--ink); font-weight: 600; }
.lc-regua { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.lc-regua i { height: 6px; border-radius: 4px; background: var(--sunk-2); }
.lc-regua i.is-d { background: var(--ink); }
.lc-regua i.is-n { background: repeating-linear-gradient(-45deg, var(--ink) 0 2.5px, transparent 2.5px 6px); opacity: .75; }

/* ---------- Os cartões ---------- */
.lc-card { position: relative; border-radius: 22px; padding: 17px; min-width: 0; }
.lc-card > p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.lc-card h3 { margin: 6px 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.lc-card h3 .acc { font-size: 1.12em; }
.lc-k { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lc-k .mono-label { display: block; }
.lc-k-r { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-calmo { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); }
.lc-pisca { animation: lcPisca 1.2s var(--ease) 1; }
@keyframes lcPisca { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px var(--hair-ink); } }

/* Etapa de agora */
.lc-agora p { margin-bottom: 10px; }
.lc-agora .lc-tarde { color: var(--warn); font-size: 13px; }
.lc-bola { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--sunk); color: var(--ink-2); font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.lc-bola i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ink-3); }
.lc-bola.is-voce { background: var(--warn-s); color: var(--warn); }
.lc-bola.is-voce i { background: var(--warn); }
.lc-bola.is-ok { background: var(--ok-s); color: var(--ok); }
.lc-bola.is-ok i { background: var(--ok); }
.lc-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lc-agora.is-pausa h3 { color: var(--ink); }

/* O que você precisa fazer agora (o grafite) */
.lc-fazer { color: var(--banner-ink); }
.lc-fazer-k { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--banner-dim); }
.lc-fazer h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; color: var(--banner-ink); }
.lc-fazer > p { margin: 0 0 12px; font-size: 13.5px; color: var(--banner-dim); }
.lc-fazer-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lc-big {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-height: 48px; padding: 8px 10px;
  border-radius: 12px; border: 1px solid var(--on-dark-line); background: var(--banner-tile); color: var(--banner-ink);
  text-align: center; line-height: 1.25; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .3s var(--ease);
}
.lc-big b { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.lc-big small { font-size: 11px; color: var(--banner-dim); }
.lc-big:first-child { background: var(--banner-ink); border-color: var(--banner-ink); color: var(--g-900); }
.lc-big:first-child small { color: var(--g-500); }
.lc-big:hover { background: var(--banner-tile-line); }
.lc-big:first-child:hover { background: var(--g-100); }
.lc-fazer-btns .lc-big:only-child { grid-column: 1 / -1; }
.lc-recado { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--on-dark-line); font-size: 13.5px; line-height: 1.5; color: var(--banner-ink); }
.lc-recado span { display: block; margin-bottom: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--banner-dim); }

/* Central de decisões */
.lc-dec { scroll-margin-top: 90px; }
.lc-dec h3 { margin-top: 8px; }
.lc-dec > p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.lc-dec > p b { color: var(--ink); font-weight: 600; }
.lc-dec > p.lc-dec-nota { font-size: 12.5px; color: var(--ink-3); }
.lc-hr { margin: 18px 0 14px; border: 0; border-top: 1px dashed var(--line-2); }
.lc-dec-btns { margin-top: 10px; }
.lc-dec-btns .decide-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.lc-dec-btns .decide-btns.is-late { grid-template-columns: minmax(0, 1fr); }
.lc-dec-btns .decide-btns .btn { width: 100%; min-height: 44px; justify-content: center; border-radius: 12px; }
.lc-cmp { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.lc-opt {
  display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 10px 9px 9px;
  border: 1px solid var(--g-edge); border-radius: 14px; background: var(--g-sheen), var(--g1);
  font-size: 11.5px; line-height: 1.35; color: var(--ink-2);
}
.lc-opt.is-best { border-color: var(--ink); box-shadow: 0 0 0 3px var(--hair), var(--sh-2); }
.lc-opt.is-meu { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-s); }
.lc-opt-t { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-opt.is-best .lc-opt-t { color: var(--ink); }
.lc-opt b { font-size: 15px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lc-opt-s { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.lc-opt-m { color: var(--ink-3); overflow-wrap: anywhere; }
.lc-pick {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 0 6px;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink);
  font-size: 12px; font-weight: 500; text-align: center;
}
.lc-opt.is-best .lc-pick { background: var(--pri-bg); color: var(--pri-ink); border-color: transparent; box-shadow: var(--pri-sh); }
.lc-pick.is-on, .lc-opt.is-best .lc-pick.is-on { background: var(--ok-s); color: var(--ok); border-color: transparent; box-shadow: none; }
.lc-pick .ic { width: 13px; height: 13px; }
.lc-pick:disabled { opacity: .55; cursor: default; }

/* Documentos (e o PDF da entrega na Central) */
.lc-docs { display: flex; flex-direction: column; }
.lc-doc { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 500; min-width: 0; }
.lc-docs > .lc-doc:last-child { border-bottom: 0; }
.lc-doc-ic {
  width: 32px; height: 38px; flex: none; display: grid; place-items: end center; padding-bottom: 5px;
  border-radius: 7px 11px 7px 7px; border: 1px solid var(--g-edge); background: var(--g-sheen), var(--g1);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; color: var(--ink-3);
}
.lc-doc-t { flex: 1; min-width: 0; display: grid; }
.lc-doc-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-doc-rev { color: var(--ink-3); font-weight: 400; }
.lc-doc-t small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 400; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-doc-go { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; font-weight: 500; }
.lc-doc:hover .lc-doc-go { border-color: var(--ink-3); }
.lc-doc.is-off { flex-wrap: wrap; color: var(--ink-3); }
.lc-off { width: 100%; padding-left: 43px; font-size: 12px; color: var(--warn); }
.lc-novo { flex: none; font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.lc-sub { display: block; margin: 12px 0 2px; }
.lc-mais { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 36px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.lc-mais:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lc-mais .ic { width: 14px; height: 14px; }

/* Linhas tocáveis (novidades, datas) */
.lc-lista { display: flex; flex-direction: column; margin-top: 4px; }
.lc-li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.lc-lista > .lc-li:last-child { border-bottom: 0; }
.lc-li-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--g-edge); background: var(--g-sheen), var(--g1); color: var(--ink-2); }
.lc-li-ic .ic { width: 16px; height: 16px; }
.lc-li-t { display: grid; min-width: 0; }
.lc-li-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.lc-li-t b { font-size: 13.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.lc-li-t small { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.lc-li-q { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-2); }
.lc-li-go { color: var(--ink-4); }
.lc-hora { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lc-novidades > .lc-li { margin-top: 4px; }

/* Esta semana */
.lc-semana-l { margin: 8px 0 6px; display: grid; gap: 6px; }
.lc-semana-l li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.lc-semana-l li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.lc-semana-by { font-size: 12px; color: var(--ink-3); }

/* Galeria da obra */
.lc-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.lc-foto { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--sunk); }
.lc-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lc-foto:hover img { transform: scale(1.03); }
.lc-foto.is-mais span { position: absolute; inset: 0; display: grid; place-items: center; background: var(--g-dark); color: var(--banner-ink); font-size: 18px; font-weight: 600; }
.lc-reg-txt { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; white-space: pre-line; }
.lc-reg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lc-reg-tags span { padding: 3px 9px; border-radius: var(--r-pill); background: var(--sunk); font-size: 12px; color: var(--ink-2); }
.lc-gal.is-reg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Diário da obra no Início: um registro por linha, com ou sem foto */
.lc-dia { display: grid; margin-top: 4px; }
.lc-dia-i { display: grid; gap: 3px; width: 100%; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.lc-dia > .lc-dia-i:last-child { border-bottom: 0; }
.lc-dia-t { font-size: 14px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.lc-dia-x { font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.lc-dia-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-width: 300px; margin-top: 6px; }
.lc-dia-i:hover .lc-dia-t { text-decoration: underline; text-underline-offset: 3px; }

/* Acabamentos */
.lc-acab-g { margin-top: 10px; }
.lc-acab-g h4 { margin: 0 0 2px; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lc-acab-g li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lc-acab-g li:last-child { border-bottom: 0; }
.lc-acab-t { display: grid; min-width: 0; }
.lc-acab-t b { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.lc-acab-t small { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.lc-acab-n { font-style: italic; }
.lc-sit { flex: none; padding: 3px 9px; border-radius: var(--r-pill); background: var(--sunk); color: var(--ink-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.lc-sit.is-definido { background: var(--ok-s); color: var(--ok); }
.lc-sit.is-decidir { background: var(--warn-s); color: var(--warn); }
.lc-sit.is-orcando { background: var(--info-s); color: var(--info); }

/* O que já foi decidido */
.lc-dec-l { display: grid; gap: 0; margin-top: 6px; }
.lc-dec-l li { display: grid; gap: 2px; padding: 10px 0 10px 16px; border-left: 2px solid var(--line-2); }
.lc-dec-l li.is-open { border-left-color: var(--warn); }
.lc-dec-l b { font-size: 13.5px; font-weight: 500; }
.lc-dec-l small { font-size: 12.5px; color: var(--ink-3); }
.lc-dec-l q { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); quotes: "\201C" "\201D"; }
.lc-dec-ans { font-size: 12.5px; color: var(--ok); }
.lc-dec-pdf { margin-top: 12px; }

/* ---------- Barra de baixo do celular: o vidro denso ---------- */
@media (max-width: 900px) {
  .cp-dock {
    background: var(--g-sheen), var(--g3);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--g-edge);
    box-shadow: var(--g-hl), var(--g-sh-3);
  }
  .cp-dk-btn { color: var(--ink-3); }
  .cp-dk-btn.is-on { color: var(--ink); }
  .cp-dk-btn.is-on .cp-dk-ic { background: var(--pri-bg); color: var(--pri-ink); box-shadow: var(--pri-sh); }
}

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  .lc-topo { padding-top: 10px; }
  .lc-topo .wrap, .lc-corpo .wrap { padding-left: 12px; padding-right: 12px; }
  .lc-card { padding: 16px 15px; }
  .lc-nome { font-size: 28px; }
  .lc-cmp { gap: 5px; }
  .lc-opt { padding: 9px 7px 8px; }
  .lc-opt-t { letter-spacing: .04em; }
  .lc-acoes .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-pisca { animation: none; }
  .lc-foto img { transition: none; }
}
