/* ==========================================================================
   PRODUTOR — painel dos clientes (app). Extensão do sistema visual compartilhado (admin.css).
   Celular primeiro: barra inferior com botão "+", folha de criação, listas em cartões, calendário compacto.
   ========================================================================== */

/* ------------------------------------------------------------ estrutura ---- */
.app-client .main { padding-bottom: calc(var(--bottom-h) + 28px + var(--safe-b)); }
.app-client .topbar .brand { flex: none; }
@media (max-width: 959px) { .app-client > .side { display: none; } }
@media (min-width: 960px) { .app-client .main { padding-bottom: 72px; } .bottom-nav, .sheet, .app-client .topbar { display: none !important; } }

/* Menu lateral (computador) */
.nav-item.soon { color: var(--faint); cursor: default; }
.nav-item.soon small { margin-left: auto; font-size: .62rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--faint); }
.brand-foot { padding: 0 6px; opacity: .92; } .brand-foot svg { width: 26px; height: 26px; } .brand-foot span { font-size: 1.05rem; } .brand-foot small { letter-spacing: .02em; text-transform: none; font-weight: 500; font-size: .7rem; }
.nav-sep { height: 1px; margin: 8px 12px; background: var(--line); }
/* Grupos do menu lateral: título maior (recolhe ao clicar; o grupo da tela aberta fica sempre aberto) e itens menores com ícone */
.nav-group { display: grid; gap: 1px; margin-top: 8px; }
.nav-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px 3px; border-radius: var(--r-sm); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; user-select: none; }
.nav-head::-webkit-details-marker { display: none; }
.nav-head:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.nav-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-head-chev { width: 16px; height: 16px; color: var(--faint); transform: rotate(90deg); transition: transform .18s ease; }
.nav-group:not([open]) .nav-head-chev { transform: none; }
.side-nav .nav-item { position: relative; font-size: .88rem; font-weight: 540; }
.side-nav .nav-item .i { width: 18px; height: 18px; }
.side-nav .nav-group .nav-item { padding-left: 14px; }
.side-nav .nav-item.on { font-weight: 650; }
.side-nav .nav-item.on::before { content: ""; position: absolute; left: 3px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .nav-head-chev { transition: none; } }
/* Perfil no topo do menu: avatar, nome da conta (e, abaixo, o nome da pessoa, situação e plano) */
/* Topo do menu: foto pequena e o nome da conta na mesma linha (2026-10-20; antes, foto de 130 px com o nome embaixo) */
.profile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 4px 6px 2px; text-align: left; }
.profile .avatar { width: 40px; height: 40px; font-size: .9rem; }
.profile-avatar { display: block; border-radius: 50%; line-height: 0; text-decoration: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); transition: box-shadow .15s; }
.profile-avatar:hover { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.profile-name { min-width: 0; max-width: 100%; font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-switch { grid-column: 1 / -1; display: flex; width: 100%; gap: 6px; margin-top: 6px; }
.profile-switch select { flex: 1; min-width: 0; min-height: 36px; padding: 4px 8px; font-size: .86rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
/* Busca (na barra do topo desde 2026-10-20; antes ficava no menu lateral) */
.desk-search { position: relative; flex: 1; max-width: 420px; margin: 0 auto 0 0; }
.desk-search .i { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.desk-search input { padding-left: 36px !important; }
.desk-search input { width: 100%; min-height: 40px; padding: 8px 12px; font-size: .9rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.desk-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }

/* ------------------------------------------------- barra inferior e "+" ---- */
.bottom-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 6px calc(6px + var(--safe-b)); background: var(--bottom-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-top: 1px solid var(--line); }
.bottom-nav a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; font-size: .68rem; font-weight: 600; text-decoration: none; color: var(--muted); border-radius: 12px; }
.bottom-nav a .i { width: 22px; height: 22px; }
.bottom-nav a { position: relative; }
.nav-dot { position: absolute; top: 7px; left: calc(50% + 7px); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.menu-list .count { margin-left: 0; }
.bottom-nav a.on { color: var(--accent-text); }
.bottom-nav a.on .i { stroke-width: 2.2; }
.fab-wrap { display: grid; place-items: center; }
.fab { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -26px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow); transition: transform .12s; }
.fab:active { transform: scale(.94); }
.fab .i { width: 26px; height: 26px; stroke-width: 2.4; }

/* Folha de criação (sobe de baixo) */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .2s; }
.sheet-panel { position: relative; width: min(560px, 100%); max-height: 86vh; max-height: 86dvh; overflow-y: auto; padding: 10px 14px calc(18px + var(--safe-b)); background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow); transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-handle { width: 40px; height: 4px; margin: 4px auto 12px; border-radius: 999px; background: var(--line-2); }
.sheet-panel h2 { margin: 0 4px 8px; font-size: 1.05rem; }
.sheet-item { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); }
.sheet-item:hover, .sheet-item:focus-visible { background: var(--surface-2); }
.sheet-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.sheet-item strong { display: block; font-weight: 650; } .sheet-item small { color: var(--muted); font-size: .84rem; }
body.sheet-open { overflow: hidden; }

/* --------------------------------------------------------- menu "Mais" ---- */
.menu-group { margin-top: 14px; }
.menu-group > h2 { margin: 20px 6px 8px; font-size: 1.12rem; font-weight: 750; letter-spacing: -.015em; color: var(--text); }
.menu-list { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-list a, .menu-list button, .menu-list .menu-static { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 10px 16px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 560; text-align: left; text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.menu-list .menu-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--surface-2); color: var(--accent-text); }
.menu-list .menu-label { flex: 1; min-width: 0; }
.menu-list .menu-label small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.menu-list .menu-chev { color: var(--faint); width: 18px; height: 18px; }
.menu-list .menu-static { color: var(--faint); cursor: default; }
.menu-search { margin-top: 4px; }
.menu-list .danger, .menu-list .danger .menu-ico { color: var(--bad); }
form.menu-group { margin-bottom: 8px; }

/* -------------------------------------------- instalar o app (faixa e guia) ---- */
.install-banner { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ico txt x" "act act act"; align-items: center; gap: 12px 14px; margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.install-banner .ico { grid-area: ico; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.install-banner .txt { grid-area: txt; flex: 1; min-width: 0; font-size: .88rem; color: var(--muted); } .install-banner .txt b { display: block; color: var(--text); font-size: .98rem; }
.install-banner .x { grid-area: x; align-self: start; }
.install-banner .act { grid-area: act; justify-self: stretch; text-align: center; }
@media (min-width: 720px) { .install-banner { grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: "ico txt act x"; } .install-banner .act { justify-self: auto; } }
.is-standalone [data-hide-standalone] { display: none !important; }
.install-page { max-width: 640px; margin: 0 auto; padding: 18px 16px calc(40px + var(--safe-b)); }
.install-page header { display: grid; gap: 12px; justify-items: start; margin-bottom: 8px; }
.install-page .lead { color: var(--muted); font-size: 1.02rem; }
.install-hero { display: flex; align-items: center; gap: 14px; }
.install-hero img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); }
.platform { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.platform > summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.platform > summary::-webkit-details-marker { display: none; }
.platform > summary .chev { margin-left: auto; transition: transform .15s; color: var(--faint); }
.platform[open] > summary .chev { transform: rotate(90deg); }
.platform .body { padding: 0 16px 18px; display: grid; gap: 12px; }
.how { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.how li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.how li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 750; font-size: .86rem; }
.how .i { vertical-align: -4px; margin: 0 2px; color: var(--accent-text); }
.install-done { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); font-weight: 600; }
.install-page .install-now { display: none; margin-top: 14px; }
.can-install .install-page .install-now { display: block; }

/* ----------------------------------------------------------- tela inicial ---- */
.hello { margin: 6px 0 2px; }
.hello p { color: var(--muted); }
.meter-row { display: grid; gap: 4px; margin-top: 14px; }
.meter-row div { display: flex; justify-content: space-between; font-size: .92rem; }
.checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.checklist .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: .8rem; }
.checklist .done .dot { background: var(--ok); border-color: var(--ok); color: #05261d; font-weight: 800; }
.checklist .label a { color: var(--text); font-weight: 560; text-decoration: none; }
.checklist .done .label a { color: var(--muted); text-decoration: line-through; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.tile { padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--faint); display: grid; gap: 2px; }
.tile strong { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 720px) { .plan-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; } }
.plan-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-sm); }
.plan-card.current { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.plan-card .price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.plan-card .price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.cycle { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; }
.cycle label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; min-height: 32px; }
.mt { margin-top: 16px; }
h3.sub { font-size: .95rem; margin: 22px 0 10px; }
ul.plain { margin: 8px 0 0; padding-left: 18px; }
.card.flush > h2.pad { padding: 16px 18px 6px; margin: 0; font-size: 1rem; }
.a-warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn) 11%, transparent); }
.quick { margin-top: 6px; }
.quick summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--accent-text); min-height: 32px; display: flex; align-items: center; }
.quick[open] { display: grid; gap: 8px; }

/* ------------------------------------------------------ abas do evento ---- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline > li { padding: 0 0 14px 14px; border-left: 2px solid var(--line-2); }
.changes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: .88rem; }
.changes del { color: var(--faint); } .changes ins { text-decoration: none; font-weight: 600; }

/* ---------------------------------------------------------- calendário ---- */
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-bar .inline-form { margin: 0; }
.cal { padding: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-head div { padding: 6px 2px; text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cal-cell { min-height: 54px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: flex; flex-flow: row wrap; align-content: flex-start; justify-content: center; gap: 3px; }
.cal-cell.empty { border-color: transparent; background: transparent; }
.cal-cell.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-cell > .cal-day { flex: 0 0 100%; text-align: center; }
.cal-day { font-size: .86rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 2px 6px; border-radius: 8px; }
a.cal-day:hover { background: var(--accent-soft); color: var(--text); }
.cal-chip { display: block; width: 8px; height: 8px; padding: 0; font-size: 0; line-height: 0; border-radius: 50%; overflow: hidden; background: var(--faint); border: 0; text-decoration: none; }
.cal-chip.s-proposta { background: var(--info); }
.cal-chip.s-negociacao, .cal-chip.s-reserva { background: var(--warn); }
.cal-chip.s-confirmado { background: var(--ok); }
.cal-chip.s-realizado { background: var(--info); opacity: .6; }
.cal-chip.s-cancelado { background: var(--bad); opacity: .5; }
.cal-more { font-size: 0; }
.cal-more::after { content: "+"; font-size: .7rem; color: var(--muted); font-weight: 700; }
@media (min-width: 720px) {
  .cal { padding: 12px; }
  .cal-grid { gap: 4px; }
  .cal-head div { text-align: left; padding: 6px 8px; font-size: .74rem; }
  .cal-cell { min-height: 100px; padding: 6px; flex-flow: column nowrap; align-content: stretch; justify-content: flex-start; }
  .cal-cell > .cal-day { flex: none; align-self: flex-start; text-align: left; padding: 0 4px; font-size: .82rem; }
  .cal-chip { width: auto; height: auto; padding: 2px 6px; font-size: .74rem; line-height: 1.3; border-radius: 6px; text-overflow: ellipsis; white-space: nowrap; color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent); border-left: 3px solid var(--faint); }
  .cal-chip.s-proposta { border-left-color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
  .cal-chip.s-negociacao, .cal-chip.s-reserva { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
  .cal-chip.s-confirmado { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
  .cal-chip.s-realizado { border-left-color: var(--info); opacity: .75; }
  .cal-chip.s-cancelado { border-left-color: var(--bad); text-decoration: line-through; opacity: .6; }
  .cal-more { font-size: .72rem; color: var(--muted); padding-left: 4px; } .cal-more::after { content: none; }
}

/* ------------------------------------------- financeiro, checklist, etc. ---- */
.stat strong.neg { color: var(--bad); }
.entry { padding: 12px 0; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: 0; }
.entry-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.entry-total { text-align: right; }
.entry-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
details.inline-details { display: inline-block; margin-left: 6px; vertical-align: middle; }
details.inline-details[open] { display: block; margin: 8px 0 0; }
.add-entry { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.add-entry[open] { display: block; }
ul.todo { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
ul.todo li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
ul.todo .todo-text { flex: 1; min-width: 0; }
ul.todo li.done .todo-text { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
.tick { width: 28px; height: 28px; flex: none; display: inline-grid; place-items: center; border-radius: 8px; border: 2px solid var(--line-2); background: transparent; color: #05261d; font-weight: 800; cursor: pointer; padding: 0; }
span.tick { cursor: default; }
.tick.on { background: var(--ok); border-color: var(--ok); }
.status-line { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; }
td.neg { color: var(--bad); }

/* Topo do celular: avatar + nome da conta */
.topbar-profile { display: flex; align-items: center; flex: 1; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.topbar-name { min-width: 0; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-client .topbar .avatar { box-shadow: 0 0 0 2px var(--line-2); }

/* Rodapé da página (celular): logo da marca. No computador ela fica no fim do menu lateral. */
.app-foot { display: flex; justify-content: center; margin-top: 36px; padding: 18px 0 4px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .app-foot { display: none; } }

/* Cartão de perfil na tela "Mais" */
.profile-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; }
.profile-card:hover { background: var(--surface-2); }
.profile-card-txt { flex: 1; min-width: 0; display: grid; }
.profile-card-txt strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card-txt small { color: var(--muted); font-size: .84rem; }
.profile-card .menu-chev { color: var(--faint); }

/* Editar a foto (Configurações) */
.avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.avatar-info { display: grid; gap: 2px; min-width: 0; } .avatar-info strong { font-size: 1.1rem; } .avatar-info span { overflow-wrap: anywhere; }
.avatar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.file-btn { position: relative; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.who-cell { display: inline-flex; align-items: center; gap: 10px; }

/* Menu lateral mais compacto: cabe em telas de notebook sem rolar muito (a logo fica no fim) */
@media (min-width: 960px) {
  .app-client .side { gap: 8px; padding-top: 14px; padding-bottom: 0; }
  .app-client .side .nav-item { min-height: 33px; padding-top: 5px; padding-bottom: 5px; }
  .app-client .side .nav-sep { margin: 4px 12px; }
  .app-client .side .nav-group { margin-top: 6px; }
  .app-client .side .nav-group .nav-item { min-height: 31px; padding-top: 4px; padding-bottom: 4px; }
}
@media (min-width: 960px) and (max-height: 900px) {
  .app-client .side .nav-item, .app-client .side .nav-group .nav-item { min-height: 30px; padding-top: 3px; padding-bottom: 3px; }
}
@media (min-width: 960px) and (max-height: 800px) {
  .app-client .side .nav-item, .app-client .side .nav-group .nav-item { min-height: 28px; }
  .app-client .side .nav-group { margin-top: 4px; }
  .app-client .side .nav-head { padding-top: 4px; padding-bottom: 2px; }
}

/* Barra do topo (tela larga): logo, tema (lua/sol) e Sair, à direita (saíram do rodapé do menu lateral em 2026-10-20) */
.deskbar { display: none; }
@media (min-width: 960px) {
  .deskbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 60px; padding: 8px clamp(16px, 3vw, 32px);
    background: var(--topbar-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
  .deskbar .brand-foot { margin-right: 6px; padding: 0 10px 0 0; border-right: 1px solid var(--line); }
}
.side-theme { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--surface-2); }
.side-theme:hover { background: var(--surface-3); }
.side-logout { flex: none; margin: 0; }
.logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--text); font: 650 .92rem/1 var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s; }
.logout-btn .i { width: 18px; height: 18px; color: var(--bad); transition: transform .15s; }
.logout-btn:hover { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 45%, var(--line-2)); color: var(--bad); }
.logout-btn:hover .i { transform: translateX(2px); }
.logout-btn:active { transform: scale(.98); }
.logout-btn:focus-visible { outline: 2px solid var(--bad); outline-offset: 2px; }


/* ------------------------------------------------ agenda: dia vazio e resumo ---- */
.cal-cell { position: relative; }
.cal-evt { display: contents; }
.cal-pop, .cal-add { display: none; }

/* Dia vazio (quem pode criar): a célula inteira leva ao novo evento, já com a data */
.cal-cell.is-free { cursor: pointer; transition: background .15s, border-color .15s; }
.cal-cell.is-free .cal-day::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.cal-cell.is-free .cal-day:focus-visible { outline: none; }
.cal-cell.is-free .cal-day:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-cell.is-free::before { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; font-weight: 300; color: var(--accent-text); opacity: 0; pointer-events: none; transition: opacity .15s; }
@media (hover: hover) {
  .cal-cell.is-free:hover { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
  .cal-cell.is-free:hover::before { opacity: .8; }
}

@media (min-width: 720px) {
  .cal-evt { display: block; position: relative; min-width: 0; }
  /* Dia com eventos: botão "+" no canto para criar outro no mesmo dia */
  .cal-add { display: grid; place-items: center; position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); text-decoration: none; opacity: 0; transition: opacity .12s, background .12s; }
  .cal-cell:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
  .cal-add:hover { background: var(--accent); color: var(--accent-ink); }
  .cal-more { display: inline-block; cursor: default; }
}
@media (min-width: 720px) and (hover: none) { .cal-add { opacity: .85; } }

/* Resumo do evento ao passar o mouse (ou focar com o teclado). Só com mouse: no toque, tocar abre o evento. */
@media (min-width: 720px) and (hover: hover) {
  .cal-pop { display: block; position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; width: 292px; padding: 12px 14px; text-align: left; white-space: normal; font-size: .84rem; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s; }
  .cal-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  .cal-evt.pop-end .cal-pop { left: auto; right: 0; }
  .cal-evt.pop-up .cal-pop { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
  .cal-evt.pop-up .cal-pop::before { top: auto; bottom: -8px; }
  .cal-evt:hover .cal-pop, .cal-evt:focus-within .cal-pop { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: .2s; }
}
.cal-pop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cal-pop-head strong { font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.cal-pop-head .badge { flex: none; }
.cal-pop-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cal-pop-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.cal-pop-list .i { width: 15px; height: 15px; margin-top: 2px; color: var(--accent-text); }
.cal-pop-list span { min-width: 0; overflow-wrap: anywhere; }
.cal-pop-hint { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--faint); }
.cal-pop-links { margin: 0 -4px; padding: 0; list-style: none; display: grid; gap: 2px; }
.cal-pop-links a { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 8px; color: var(--text); text-decoration: none; line-height: 1.3; }
.cal-pop-links a:hover, .cal-pop-links a:focus-visible { background: var(--surface-2); }
.cal-pop-links small { display: block; color: var(--muted); font-size: .76rem; }
.cal-dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--faint); }
.cal-dot.s-proposta, .cal-dot.s-realizado { background: var(--info); } .cal-dot.s-negociacao, .cal-dot.s-reserva { background: var(--warn); }
.cal-dot.s-confirmado { background: var(--ok); } .cal-dot.s-cancelado { background: var(--bad); }

/* =========================================== painel inicial: linha do tempo da agenda ==== */
.tl { --tl-date: 52px; --tl-gap: 8px; --tl-node: 24px; padding: 18px 16px 10px; margin-top: 8px; }
.tl-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tl-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.tl-head h2 { margin: 2px 0 0; font-size: 1.4rem; letter-spacing: -.03em; }
.tl-range { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tl-filter { display: flex; gap: 6px; margin: 14px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.tl-filter::-webkit-scrollbar { display: none; }
.tl-chip { display: inline-flex; align-items: center; gap: 7px; flex: none; line-height: 1.25; padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .84rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.tl-chip:hover { color: var(--text); background: var(--surface-2); }
.tl-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* números-resumo */
.tl-kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; margin: 16px 0 14px; }
.tl-kpi { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.tl-kpi-next { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); }
.tl-kpi-label { font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tl-kpi-main { font-size: 1.45rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.tl-kpi-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; line-height: 1.3; color: var(--muted); }
.tl-kpi-next .tl-kpi-sub:first-of-type { color: var(--text); font-weight: 600; }

/* faixa dos 30 dias (um quadro por dia; bolinhas = eventos, na cor da situação) */
.tl-strip { position: relative; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; padding: 8px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.tl-d { position: relative; display: grid; grid-template-rows: 11px 11px 13px 1fr; justify-items: center; min-width: 0; min-height: 76px; padding: 3px 0 7px; border-radius: 6px; color: var(--muted); font-size: .6rem; line-height: 1; text-decoration: none; transition: background .12s; }
.tl-d.is-weekend { background: color-mix(in srgb, var(--text) 5%, transparent); }
.tl-d.is-today { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent-text); font-weight: 750; }
.tl-d.has-events { color: var(--text); cursor: pointer; }
.tl-d.has-events:hover, .tl-d.has-events:focus-visible { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tl-d.has-events:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tl-m { justify-self: start; white-space: nowrap; font-size: .58rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.tl-w { opacity: .75; }
.tl-n { white-space: nowrap; font-weight: 650; }
.tl-dots { display: flex; flex-direction: column; align-items: center; align-self: start; gap: 3px; margin-top: 5px; }
.tl-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); font-style: normal; }
.tl-dot.s-confirmado { background: var(--ok); } .tl-dot.s-reserva, .tl-dot.s-negociacao { background: var(--warn); } .tl-dot.s-proposta { background: var(--info); }
.tl-dot.s-lead { background: var(--faint); } .tl-dot.s-realizado { background: var(--info); opacity: .6; }
.tl-plus { font-size: .56rem; font-weight: 700; color: var(--muted); }
.tl-axis { display: flex; justify-content: space-between; margin: 5px 4px 0; font-size: .7rem; color: var(--faint); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 2px 0; padding: 0; list-style: none; font-size: .76rem; color: var(--muted); }
.tl-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tl-tip { display: none; }
@media (hover: hover) {
  .tl-tip { display: block; position: absolute; z-index: 60; bottom: calc(100% + 8px); left: 50%; width: max-content; min-width: 150px; max-width: 250px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font-size: .78rem; font-weight: 500; line-height: 1.35; text-align: left; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .12s, transform .12s, visibility 0s linear .12s; }
  .tl-d.tip-l .tl-tip { left: 0; transform: translate(0, 4px); }
  .tl-d.tip-r .tl-tip { left: auto; right: 0; transform: translate(0, 4px); }
  .tl-d:hover .tl-tip, .tl-d:focus-visible .tl-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: .08s; }
  .tl-d.tip-l:hover .tl-tip, .tl-d.tip-l:focus-visible .tl-tip, .tl-d.tip-r:hover .tl-tip, .tl-d.tip-r:focus-visible .tl-tip { transform: none; }
}
.tl-tip strong { display: block; margin-bottom: 4px; font-size: .8rem; }
.tl-tip em { display: block; color: var(--muted); font-style: normal; }
.tl-tip-row { display: flex; align-items: flex-start; gap: 7px; margin-top: 3px; }
.tl-tip-row .tl-dot { margin-top: 4px; }

/* a linha do tempo: trilho vertical com um nó por dia */
.tl-list { --tl-date: 52px; --tl-gap: 8px; --tl-node: 24px; position: relative; margin: 24px 0 0; padding: 0; list-style: none; }
.tl-list::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: calc(var(--tl-date) + var(--tl-gap) + var(--tl-node) / 2 - 1px); width: 2px; border-radius: 2px; background: linear-gradient(to bottom, var(--accent), var(--line-2) 16%, var(--line-2)); }
.tl-item, .tl-gap { display: grid; grid-template-columns: var(--tl-date) var(--tl-node) minmax(0, 1fr); column-gap: var(--tl-gap); padding-bottom: 18px; }
.tl-item { scroll-margin-top: calc(var(--topbar-h) + var(--safe-t) + 14px); }
.tl-date { display: grid; justify-items: center; align-content: start; gap: 2px; padding-top: 1px; line-height: 1.05; text-align: center; }
.tl-dow, .tl-mon { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl-dnum { font-size: 1.55rem; font-weight: 750; letter-spacing: -.04em; }
.tl-node { position: relative; z-index: 1; justify-self: center; width: 14px; height: 14px; margin-top: 9px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 4px var(--surface); }
.tl-item.st-confirmado .tl-node { background: var(--ok); } .tl-item.st-reserva .tl-node, .tl-item.st-negociacao .tl-node { background: var(--warn); } .tl-item.st-proposta .tl-node { background: var(--info); }
.tl-item.is-today .tl-node { width: 16px; height: 16px; margin-top: 8px; background: var(--accent); }
.tl-item.is-today.is-empty .tl-node { background: var(--surface); box-shadow: 0 0 0 4px var(--surface), inset 0 0 0 3px var(--accent); }
.tl-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.tl-rel { margin: 0; padding-top: 2px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.tl-item.is-today .tl-rel { color: var(--accent-text); }
.tl-free { margin: 0; color: var(--faint); font-size: .9rem; }
.tl-card { position: relative; display: grid; gap: 3px; padding: 12px 14px 12px 17px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); transition: transform .12s, box-shadow .12s, border-color .12s; }
.tl-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--faint); }
.tl-card.s-confirmado::before { background: var(--ok); } .tl-card.s-reserva::before, .tl-card.s-negociacao::before { background: var(--warn); } .tl-card.s-proposta::before { background: var(--info); }
.tl-card:hover { transform: translateY(-1px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.tl-item:target .tl-card { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 10px; }
.tl-top .badge { flex: none; }
.tl-time { min-width: 0; font-size: .86rem; line-height: 1.3; color: var(--muted); } .tl-time strong { margin-right: 2px; font-size: 1.05rem; letter-spacing: -.02em; color: var(--text); }
.tl-card h3 { margin: 1px 0 0; font-size: 1.02rem; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tl-link { color: var(--text); text-decoration: none; }
.tl-link::after { content: ""; position: absolute; inset: 0; } /* o cartão inteiro leva ao evento */
.tl-link:focus-visible { outline: none; }
.tl-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-meta { display: flex; align-items: flex-start; gap: 7px; min-width: 0; margin: 1px 0 0; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.tl-meta .i { width: 14px; height: 14px; margin-top: 2px; }
.tl-meta span { min-width: 0; overflow-wrap: anywhere; }
.tl-live { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; font-size: .8rem; font-weight: 700; }
.tl-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tl-live.is-soon { color: var(--accent-text); } .tl-live.is-now { color: var(--ok); } .tl-live.is-done { color: var(--faint); }
.tl-live.is-done .tl-live-dot { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.tl-warn { display: flex; align-items: flex-start; gap: 6px; margin: 5px 0 0; font-size: .8rem; font-weight: 600; color: var(--warn); }
.tl-warn .i { margin-top: 1px; }
.tl-gap span { grid-column: 3; display: flex; align-items: center; gap: 8px; margin-top: -6px; font-size: .78rem; color: var(--faint); }
.tl-gap span::before { content: ""; width: 20px; border-top: 2px dotted var(--line-2); }
.tl-after { margin: 2px 0 12px; padding-left: calc(var(--tl-date) + var(--tl-gap) + var(--tl-node) + var(--tl-gap)); font-size: .84rem; color: var(--muted); }

/* agenda livre */
.tl-empty { display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); }
.tl-empty-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.tl-empty strong { display: block; margin-bottom: 2px; }
.tl-empty p { margin: 0; font-size: .9rem; }
.tl-empty-cta { margin-top: 10px !important; }

@media (max-width: 599px) {
  .tl, .tl-list { --tl-date: 44px; }
  .tl { padding: 16px 14px 8px; }
  .tl-kpis { grid-template-columns: 1fr 1fr; }
  .tl-kpi-next { grid-column: 1 / -1; }
  .tl-d { min-height: 70px; }
  .tl-d { grid-template-rows: 11px 13px 1fr; } .tl-w { display: none; }
  .tl-d:not(.n-show) .tl-n { visibility: hidden; }
  .tl-kpi-sub { white-space: normal; } .tl-kpi-next .tl-kpi-sub:first-of-type { white-space: nowrap; }
  .tl-dnum { font-size: 1.35rem; }
  .tl-filter { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 600px) { .tl-top { justify-content: space-between; } }
@media (min-width: 720px) {
  .tl { padding: 22px 24px 12px; }
  .tl-filter { margin-left: 0; margin-right: 0; padding: 0 0 2px; }
  .tl-d { font-size: .72rem; min-height: 88px; } .tl-w { font-size: .66rem; } .tl-dot { width: 9px; height: 9px; } .tl-dots { gap: 4px; }
  .tl-card { padding: 14px 18px 14px 20px; }
  .tl-list { --tl-date: 62px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tl-live.is-now .tl-live-dot { animation: tl-blink 1.4s ease-in-out infinite; }
  @keyframes tl-blink { 50% { opacity: .35; } }
  .tl-item.is-today .tl-node::after { content: ""; position: absolute; inset: -6px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; animation: tl-pulse 2.6s ease-out infinite; }
  @keyframes tl-pulse { 0% { opacity: .7; transform: scale(.6); } 75%, 100% { opacity: 0; transform: scale(1.55); } }
  @keyframes tl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .tl-item, .tl-gap { animation: tl-in .4s ease both; }
  .tl-list > :nth-child(2) { animation-delay: .05s; } .tl-list > :nth-child(3) { animation-delay: .1s; } .tl-list > :nth-child(4) { animation-delay: .15s; }
  .tl-list > :nth-child(5) { animation-delay: .2s; } .tl-list > :nth-child(n+6) { animation-delay: .25s; }
}

/* dias além dos primeiros: recolhidos (sem JavaScript; o clique num dia da faixa abre) */
.tl-list-cont { margin-top: 0; }
.tl-list-cont::before { top: 0; background: var(--line-2); }
.tl-more > summary { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px calc(var(--tl-date) + var(--tl-gap) + var(--tl-node) + var(--tl-gap)); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--accent-text); font-size: .84rem; font-weight: 650; cursor: pointer; list-style: none; }
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary::before { content: "+"; font-weight: 800; }
.tl-more[open] > summary::before { content: "–"; }
.tl-more > summary:hover { background: var(--surface-2); }
.tl-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================ avatar do artista (ao lado do nome, em todo lugar) ==== */
.artist-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; vertical-align: middle; }
.artist-chip > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.artist-chip .avatar { vertical-align: middle; }
.who-cell-lg { gap: 12px; align-items: center; }
.who-cell-lg > span { min-width: 0; }
.head-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.head-id > div { min-width: 0; }
.head-id h1 { overflow-wrap: anywhere; }
.tl-meta .avatar { flex: none; margin-top: 0; }
.tl-chip .avatar { flex: none; width: 22px; height: 22px; margin: -2px 0 -2px -6px; font-size: .55rem; }
.tl-chip.on .avatar { box-shadow: 0 0 0 1.5px var(--accent-ink); }
.cal-chip .avatar { display: none; }
@media (min-width: 720px) {
  .cal-chip .avatar { display: inline-grid; width: 16px; height: 16px; margin: -2px 5px -2px -2px; font-size: .45rem; vertical-align: middle; }
}
.cal-pop-list .avatar { flex: none; width: 16px; height: 16px; margin-top: 1px; font-size: .45rem; }
.cal-pop-links .artist-chip { gap: 5px; } .cal-pop-links .avatar { width: 14px; height: 14px; font-size: .4rem; }

/* ====================================================== lista de eventos: blocos de 30 dias e "Carregar mais" ==== */
.ev-periods { display: flex; gap: 6px; margin: 14px 0 0; overflow-x: auto; scrollbar-width: none; }
.ev-periods::-webkit-scrollbar { display: none; }
.ev-list { margin-top: 4px; }
.ev-block { margin-top: 24px; scroll-margin-top: calc(var(--topbar-h) + var(--safe-t) + 12px); }
.ev-block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ev-block-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.ev-block-head h2:focus { outline: none; }
.ev-range { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.ev-count { margin-left: auto; font-size: .84rem; color: var(--muted); }
.ev-block .tl-list { margin-top: 0; }
.ev-empty { margin: 0 0 6px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--muted); }
.ev-end { margin: 20px 0 6px; text-align: center; font-size: .84rem; color: var(--faint); }
.ev-more { margin: 10px 0 4px; }
.ev-more .btn { min-height: 52px; gap: 10px; font-size: 1rem; }
.ev-more-range { color: var(--accent-text); font-weight: 700; }
.ev-more .btn.is-loading { opacity: .6; pointer-events: none; }
.ev-more .btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .ev-more .btn.is-loading::after { animation: ev-spin .7s linear infinite; } @keyframes ev-spin { to { transform: rotate(360deg); } } }

/* situação na linha do tempo da lista: cancelado e realizado */
.tl-yr { font-size: .68rem; font-weight: 600; color: var(--faint); }
.tl-item.st-cancelado .tl-node { background: var(--bad); } .tl-item.st-realizado .tl-node { background: var(--info); opacity: .7; }
.tl-card.s-cancelado::before { background: var(--bad); } .tl-card.s-realizado::before { background: var(--info); opacity: .6; }
.tl-card.s-cancelado { opacity: .75; } .tl-card.s-cancelado .tl-link { color: var(--muted); text-decoration: line-through; }
.tl-card.s-realizado { opacity: .9; }

/* ====================================== aviso em tempo real: ticket respondido (menu + cartão na tela) ==== */
.count[hidden], .nav-dot[hidden] { display: none; }
.push-stack { position: fixed; z-index: 70; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.push { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); animation: push-in .3s cubic-bezier(.2, .8, .2, 1); }
.push.is-out { opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
.push-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.push-ico .i { width: 20px; height: 20px; }
.push-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.push-txt strong { font-size: .92rem; line-height: 1.25; }
.push-txt span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); font-size: .84rem; line-height: 1.3; }
.push-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.push-x:hover, .push-x:focus-visible { background: var(--surface-2); color: var(--text); }
@keyframes push-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes push-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.nav-item.has-news .count, .nav-dot { animation: push-pulse 1.8s ease-out 4; }
@media (max-width: 959px) { .push-stack { left: 16px; width: auto; } }
@media (max-width: 559px) {
  .push { flex-wrap: wrap; align-items: flex-start; row-gap: 10px; }
  .push-x { order: 3; }
  .push .btn { order: 4; flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .push, .nav-item.has-news .count, .nav-dot { animation: none; } .push.is-out { transition: none; } }

/* ============================================ Configurações: abas (Geral, Meu plano, Segurança, Instalar o app) ==== */
.set-tabs { display: flex; gap: 2px; margin: 12px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.set-tabs::-webkit-scrollbar { display: none; }
.set-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; margin-bottom: -1px; padding: 11px 14px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .92rem; font-weight: 600; white-space: nowrap; text-decoration: none; transition: color .15s, border-color .15s; }
.set-tab .i { width: 18px; height: 18px; }
.set-tab:hover, .set-tab:focus-visible { color: var(--text); }
.set-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.set-tab.on .i { color: var(--accent-text); }
.page-sub { margin-bottom: 10px; }
.page-sub h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.install-page.is-embedded { max-width: 680px; margin: 0; padding: 0; }

/* =========================================================== Fornecedores (lista, ficha e formulário) ==== */
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .78rem; font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.tag:hover, .tag:focus-visible { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); color: var(--text); }
.sup-who { flex-direction: column; align-items: flex-start; gap: 10px; }
.sup-id { display: grid; gap: 4px; min-width: 0; }
.sup-contact { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; }
.sup-contact > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sup-regions { max-width: 260px; overflow-wrap: anywhere; color: var(--muted); }
.sup-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sup-person { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sup-person strong { min-width: 0; overflow-wrap: anywhere; font-size: .92rem; }
.sup-phone { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.sup-phone .i { width: 16px; height: 16px; flex: none; color: var(--muted); }
.sup-phone.is-wa .i { color: var(--ok); }
.sup-phone span:last-child { white-space: nowrap; }
@media (min-width: 720px) {
  .sup-table th:nth-child(1) { width: 22%; } .sup-table th:nth-child(2) { width: 26%; } .sup-table th:nth-child(3) { width: 19%; } .sup-table th:nth-child(4) { width: 33%; }
}
.sup-summary { display: grid; gap: 14px; }
.sup-label { display: block; margin-bottom: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sup-photos { gap: 18px 28px; }
.sup-photos .avatar-edit { align-items: flex-start; margin-bottom: 0; }
.sup-phone-field { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.sup-phone-field legend { padding: 0; margin-bottom: 6px; font-size: .88rem; font-weight: 650; }
.sup-phone-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.sup-phone-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 8px; }
.btn[data-phone-add][hidden] { display: none; }
@media (max-width: 480px) { .sup-phone-row { grid-template-columns: minmax(0, 1fr) 120px; } }

/* ====================================================== Evento: guias Contrato, Logística e Fechamento ==== */
.plain-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; }
.plain-list li { overflow-wrap: anywhere; }
.ev-sub { margin: 16px 0 2px; font-size: .95rem; }
.ev-facts { margin: 8px 0 0; }


/* ====================================================== Logística: transportes do evento ==== */
.lg-sum { margin: 0 0 12px; }
.lg-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .lg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lg-card { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.lg-card p { margin: 0; }
.lg-head { display: flex; align-items: center; gap: 12px; }
.lg-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.lg-ico .i { width: 22px; height: 22px; }
.lg-title { display: grid; min-width: 0; flex: 1; }
.lg-title strong { overflow-wrap: anywhere; }
.lg-total { flex: none; font-size: 1.05rem; }
.lg-route { font-weight: 600; overflow-wrap: anywhere; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 0 6px; }
.lg-supplier { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lg-costs { list-style: none; margin: 0; padding: 8px 0 0; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.lg-costs li { display: flex; justify-content: space-between; gap: 12px; }
.lg-notes { overflow-wrap: anywhere; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lg-card [hidden], .lg-form [hidden] { display: none !important; }

.rt-map { display: block; width: 100%; max-width: 320px; height: auto; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.rt-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rt-a { fill: var(--surface-3); stroke: var(--accent); stroke-width: 2; }
.rt-b { fill: var(--accent); stroke: var(--accent); stroke-width: 2; }
.rt-t { font: 700 7px var(--font); fill: var(--text); pointer-events: none; }
.rt-t:last-child { fill: var(--accent-ink); }

.lg-new { margin-top: 16px; }
.lg-new > summary { list-style: none; width: fit-content; }
.lg-new > summary::-webkit-details-marker { display: none; }
.lg-new[open] > summary { margin-bottom: 12px; }
.lg-form { margin-top: 0; }
.lg-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.lg-form legend { padding: 0; margin-bottom: 8px; font-size: .88rem; font-weight: 650; }
.lg-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lg-modes legend { grid-column: 1 / -1; }
@media (min-width: 720px) { .lg-modes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lg-mode { position: relative; display: block; cursor: pointer; }
.lg-mode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.lg-mode-box { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.2; transition: border-color .15s, background .15s, color .15s; }
.lg-mode-box .i { width: 26px; height: 26px; }
.lg-mode:hover .lg-mode-box { background: var(--surface-3); }
.lg-mode input:checked + .lg-mode-box { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.lg-mode input:checked + .lg-mode-box .i { color: var(--accent-text); }
.lg-mode input:focus-visible + .lg-mode-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.lg-stepper { display: flex; align-items: center; gap: 8px; max-width: 220px; }
.lg-stepper .input { text-align: center; }
.lg-stepper .btn { flex: none; min-width: 44px; padding: 0; font-size: 1.2rem; }
.lg-prefs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lg-prefs legend { width: 100%; }
.lg-road { display: grid; gap: 12px; }
.lg-result { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.lg-result p { margin: 0; }
.lg-result-line { font-size: 1.1rem; }
.lg-result .plain-list { margin-top: 0; }
.lg-money legend { margin-bottom: 4px; }
.lg-money .field { align-content: end; }
.lg-sumline { margin: 4px 0 0; font-size: 1.05rem; }

/* Financeiro: bloco "Logística" (despesas que vêm dos transportes), com os mesmos cartões da guia Logística */
.fin-lg { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.fin-lg-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.fin-lg-head h3 { margin: 0; font-size: 1.02rem; }
.fin-lg-head a { margin-left: auto; }
.lg-list.lg-list-one { grid-template-columns: minmax(0, 1fr); }
.lg-card .table, .lg-card .table tbody { display: block; width: 100%; margin: 0; }
.lg-card .table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: none; }
.lg-card .table td, .lg-card .table td:first-child, .lg-card .table td:last-child { display: block; width: auto; padding: 0; border: 0; font-size: .92rem; }
.lg-card .table td:empty { display: none; }
.lg-card .table td.right { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 2px; text-align: left; }
.lg-card .table .input-sm { width: auto; min-height: 38px; }
.lg-card .table form.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lg-card .table details.inline-details { margin: 0; }
.lg-note { margin: 0; }

/* ====================================================== Logística: passo a passo (Transporte, Hospedagem, Alimentação) ==== */
.steps { margin: 0 0 18px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.step a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); transition: border-color .15s, background .15s; }
.step a:hover { background: var(--surface-3); }
.step-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); font-weight: 700; font-size: .92rem; color: var(--muted); }
.step-n .i { width: 17px; height: 17px; }
.step-t { display: grid; min-width: 0; line-height: 1.25; }
.step-t strong { color: var(--text); font-size: .95rem; }
.step-t small { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.step.done .step-n { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.step.on a { border-color: var(--accent); background: var(--accent-soft); }
.step.on .step-n { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.step.soon a { opacity: .8; }
@media (max-width: 560px) {
  .steps ol { gap: 6px; }
  .step a { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; text-align: center; }
  .step-t small { font-size: .7rem; }
}
.lg-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.lg-soon { display: grid; justify-items: center; gap: 8px; padding: 34px 20px; text-align: center; }
.lg-soon h2, .lg-soon p { margin: 0; }
.lg-ico-lg { width: 58px; height: 58px; border-radius: 16px; }
.lg-ico-lg .i { width: 28px; height: 28px; }
.lg-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lg-rooms { border-top: 0; padding-top: 0; }
.lg-rooms li strong { text-align: right; }
.lg-rooms li strong .small { display: block; font-weight: 400; }

/* Hospedagem: formulário */
.lg-modes.hs-who { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
.hs-box { padding: 12px 14px; border: 1px solid var(--accent); border-radius: var(--r-sm); background: var(--accent-soft); }
.hs-box p { margin: 0 0 4px; }
.hs-box p:last-child { margin: 0; }
.hs-sup-tools { display: grid; gap: 8px; }
.hs-sup-list { display: grid; gap: 2px; max-height: 250px; overflow-y: auto; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); }
.hs-sup { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.hs-sup:hover { background: var(--surface-3); }
.hs-sup:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.hs-sup input { flex: none; width: 20px; height: 20px; accent-color: var(--accent); }
.hs-sup-name { min-width: 0; overflow-wrap: anywhere; }
.hs-sup-name small { display: block; }
.hs-rooms { display: grid; gap: 10px; }
.hs-room { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 10px 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.hs-room .field { margin: 0; }
.hs-room-name { display: grid; align-self: center; line-height: 1.3; }
.hs-room-sub { display: grid; text-align: right; line-height: 1.3; }
@media (max-width: 640px) {
  .hs-room { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-room-name, .hs-room-sub { grid-column: 1 / -1; text-align: left; }
  .hs-room-sub { display: flex; justify-content: space-between; align-items: baseline; }
}
.hs-cap { margin: 0; min-height: 1.3em; font-size: .9rem; color: var(--muted); }
.hs-cap.is-ok { color: var(--ok); }
.hs-cap.is-bad { color: var(--bad); font-weight: 600; }
.hs-fees .row { margin-bottom: 8px; }

/* ====================================================== Equipe do artista ==== */
.team-who { gap: 12px; }
.team-table td { vertical-align: middle; }

/* Hospedagem: quem fica em cada quarto (formulário e cartão) */
.hs-guests { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.hs-guests[hidden] { display: none; }
.hs-unit { display: grid; gap: 6px; }
.hs-unit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hs-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.hs-slots .input { min-height: 42px; font-size: 15px; }
.hs-roster { display: grid; gap: 8px; margin: 4px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.hs-roster-room { display: grid; gap: 4px; }
.hs-roster-name { font-weight: 650; font-size: .9rem; }
.hs-roster-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hs-roster-people li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hs-roster-people li > span { min-width: 0; overflow-wrap: anywhere; }
.hs-roster-people .badge { margin-left: 6px; }

/* ====================================================== Alimentação: diárias fracionadas e despesas com comprovante ==== */
.ml-block { min-width: 0; margin: 0; padding: 12px 14px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.ml-block legend { padding: 0 6px; font-size: .88rem; font-weight: 650; }
.ml-chips { display: flex; gap: 6px; margin-top: 6px; }
.ml-chips .btn { min-height: 34px; min-width: 40px; padding: 0 10px; }
.ml-sub { margin: 4px 0 0; min-height: 1.2em; }
.meal-expenses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.meal-exp { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.meal-exp-main { display: grid; min-width: 0; flex: 1; line-height: 1.3; overflow-wrap: anywhere; }
.meal-exp-amount { flex: none; }
.meal-thumb { display: grid; place-items: center; flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--muted); }
.meal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meal-thumb-none .i { width: 22px; height: 22px; }
.meal-add { margin-top: 6px; }
.meal-add > summary { list-style: none; width: fit-content; }
.meal-add > summary::-webkit-details-marker { display: none; }
.meal-add[open] > summary { margin-bottom: 10px; }
.meal-expense-form { padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); }
.meal-photo { display: grid; gap: 6px; }
.meal-photo-label { font-size: .88rem; font-weight: 650; }
@media (max-width: 480px) { .meal-exp { flex-wrap: wrap; } .meal-exp-main { flex-basis: calc(100% - 70px); } }

/* Equipe: artistas que a pessoa acompanha */
.art-checks { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; margin: 0; min-width: 0; }
.art-checks legend { padding: 0 6px; font-weight: 650; font-size: .9rem; }
.art-checks-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.art-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); cursor: pointer; font-size: .9rem; }
.art-check input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.art-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.art-check:has(input:disabled) { cursor: default; }
/* a coluna Artistas da Equipe mostra só os avatares (o nome aparece ao passar o mouse); o flex vai num <span> DENTRO da célula (flex direto no <td> quebra as bordas da tabela) */
.team-artists { display: inline-flex; flex-wrap: nowrap; align-items: center; vertical-align: middle; }   /* sempre numa linha: avatares sobrepostos, os que não cabem viram "+N" */
.team-artist { display: inline-flex; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); cursor: default; }
.team-artist .avatar { width: 30px; height: 30px; font-size: .66rem; }
.team-artist + .team-artist { margin-left: -10px; }
.team-more { align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; font-size: .72rem; font-weight: 650; background: var(--surface-3); color: var(--muted); }
.team-all { white-space: nowrap; cursor: help; }

/* Pedágios do trajeto (estimativa na guia Logística) */
.lg-tolls { margin-top: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); display: grid; gap: 10px; min-width: 0; }
.lg-tolls h3 { font-size: .95rem; }
.lg-toll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lg-toll-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface); min-width: 0; }
.lg-toll-item label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; cursor: pointer; }
.lg-toll-item input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.lg-toll-name { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.lg-toll-name small { color: var(--muted); }
.lg-toll-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.lg-toll-amt { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lg-toll-amt.missing { font-weight: 500; color: var(--muted); white-space: normal; text-align: right; font-size: .82rem; max-width: 9rem; }
.lg-toll-total { font-weight: 650; }

/* Tabela da Equipe (8 colunas): espaçamento lateral menor e a coluna Download só do tamanho do ícone, para caber sem rolagem lateral */
@media (min-width: 720px) {
  table.team-table th, table.team-table td { padding-left: 10px; padding-right: 10px; }
  table.team-table th:first-child, table.team-table td:first-child { padding-left: 16px; }
  table.team-table th:last-child, table.team-table td:last-child { width: 1%; white-space: nowrap; padding-right: 14px; }
}
.team-dl { width: 38px; height: 38px; }

/* ------------------------------------------- dashboard do financeiro do evento ---- */
.fd { margin: 14px 0 4px; display: grid; gap: 12px; }
.fd-top, .fd-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) {
  .fd { gap: 16px; }
  .fd-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .fd-detail { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
}
.fd-box { background: var(--surface); border: 1px solid var(--line); border-top-width: 3px; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; display: grid; gap: 4px; align-content: start; }
.fd-in { border-top-color: var(--ok); }
.fd-out, .fd-lg, .fd-prod { border-top-color: var(--warn); }
.fd-res { border-top-color: var(--accent); background: var(--accent-soft); }
.fd-res.neg { border-top-color: var(--bad); }
.fd-label { margin: 0; font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fd-value { font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
@media (min-width: 720px) { .fd-value { font-size: 1.9rem; } }
.fd-in .fd-value { color: var(--ok); }
.fd-res.neg .fd-value { color: var(--bad); }
.fd-note { margin: 2px 0 0; }
.fd .neg { color: var(--bad); }
.fd-in progress::-webkit-progress-value { background: var(--ok); }
.fd-in progress::-moz-progress-bar { background: var(--ok); }
.fd-list { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.fd-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; } .fd-list li span { color: var(--muted); } .fd-list li strong { white-space: nowrap; }
.fd-list .fd-real { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); font-weight: 650; } .fd-list .fd-real span { color: inherit; }
.fd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; } .fd-head strong { font-size: 1.15rem; }
.fd-minis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 560px) { .fd-minis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fd-mini { background: var(--surface-2, var(--surface)); border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); padding: 12px 14px; display: grid; gap: 3px; min-width: 0; align-content: start; }
.fd-mini strong { font-size: 1.2rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.fd-mini-label { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.fd-mini-label svg { width: 16px; height: 16px; flex: none; }
.fd-lg > a { margin-top: 8px; }

/* ------------------------------------------- guia Produção: Equipe Fixa ---- */
.team-cat { display: block; font-size: .8rem; color: var(--muted); }
.pc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.pc-head-t { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1 1 320px; }
.pc-head-t h2 { margin: 0 0 2px; } .pc-head-t p { margin: 0; }
.pc-ico { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.pc-ico svg { width: 22px; height: 22px; }
.pc-head-n { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 8px; }
.pc-head-n strong { font-size: 1.4rem; letter-spacing: -.02em; text-align: right; }
.pc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 1100px) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .pc-form .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pc-group-head h3 { margin: 0; font-size: 1.02rem; display: inline-flex; align-items: center; gap: 8px; }
.pc-empty { margin: 0 0 6px; }
.pc-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; }
.pc-person { padding: 10px 0; border-top: 1px solid var(--line); } .pc-person:first-child { border-top: 0; padding-top: 2px; }
.pc-person-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pc-who { display: grid; gap: 1px; min-width: 0; flex: 1; } .pc-who strong { overflow-wrap: anywhere; }
.pc-fn { font-size: .9rem; }
.pc-fee { text-align: right; display: grid; gap: 2px; justify-items: end; } .pc-fee strong { white-space: nowrap; }
.pc-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 6px; padding-left: 52px; }
.pc-actions details { flex: 0 0 auto; } .pc-actions details[open] { flex: 1 1 100%; order: 2; }
.pc-add { margin-top: 6px; }
.pc-fin .pc-person-main { margin-bottom: 8px; }

/* ------------------------------------------- Equipe: guias Contatos, Dados Bancários, Emergência e Saúde ---- */
.td-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.td-title .i { width: 22px; height: 22px; color: var(--accent-text); }
.td-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
@media (min-width: 720px) { .td-groups { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.td-sub { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.td-wa { color: var(--ok); }
.td-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.td-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; max-width: 100%; }
.td-links a span { overflow-wrap: anywhere; }
.td-links a:hover, .td-links a:focus-visible { border-color: var(--accent); }
.td-links-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.td-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.td-items li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); background: var(--surface-2); }
.td-items li .badge { justify-self: start; margin: 4px 0 0; }
.td-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; overflow-wrap: anywhere; }
.td-edit { margin-top: 14px; }
.td-edit form { margin-top: 10px; }
.td-repeat { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.td-repeat > legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 650; }
.td-rows { display: grid; gap: 10px; margin-bottom: 8px; }
.td-row-1 { display: flex; align-items: center; gap: 6px; }
.td-row-1 .input { flex: 1; min-width: 0; }
.td-remove .i { width: 16px; height: 16px; }
.td-pix, .td-acc, .td-emg { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); background: var(--surface-2); }
.td-pix { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 8px; }
.td-pix .td-radios { grid-column: 1 / -1; }
@media (min-width: 900px) { .td-pix { grid-template-columns: auto minmax(0, 1fr) auto auto; } .td-pix .td-radios { grid-column: auto; } }
.td-radios { display: flex; flex-wrap: wrap; gap: 6px; }
.td-radio, .td-main { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; cursor: pointer; white-space: nowrap; }
.td-radio:has(input:checked), .td-main:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.td-radio input, .td-main input { margin: 0; accent-color: var(--accent); }
.td-acc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .td-acc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .td-acc .td-f-holder, .td-acc .td-acc-foot { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .td-acc { grid-template-columns: 2fr 1fr 1.4fr 1.2fr; } .td-acc .td-f-holder { grid-column: span 2; } .td-acc .td-f-bank { grid-column: span 2; } }
.td-acc .field, .td-emg .field { margin: 0; display: grid; gap: 4px; }
.td-acc .field > span, .td-emg .field > span, .td-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.td-acc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.td-emg { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .td-emg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .td-emg .td-acc-foot { grid-column: 1 / -1; } }
.td-emg-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .td-emg-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.td-emg-card { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); background: var(--surface-2); }
.td-health { margin: 0 0 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 720px) { .td-health { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.td-health > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); background: var(--surface-2); }
.td-health dt { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.td-health dd { margin: 4px 0 0; display: grid; gap: 4px; }
.td-health .td-yes { color: var(--warn); }
.td-text { white-space: normal; overflow-wrap: anywhere; }
.td-q { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.td-q > legend { padding: 0; margin-bottom: 8px; font-size: .92rem; font-weight: 650; }
.td-reveal { display: grid; gap: 4px; margin: 0; } .td-reveal > span { font-size: .85rem; font-weight: 600; }

/* ------------------------------------------- Contratos: minutas, dados da empresa e contrato do evento ---- */
.ct-empty { text-align: center; padding: 34px 22px; }
.ct-empty-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.ct-empty-ico .i { width: 28px; height: 28px; }
.ct-empty h2 { margin: 12px 0 6px; } .ct-empty p { max-width: 560px; margin: 0 auto; }
.ct-empty-actions { justify-content: center; margin-top: 16px; }
.ct-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ct-switch, .ct-toggle-ui { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-3); cursor: pointer; padding: 0; transition: background .15s, border-color .15s; }
.ct-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .15s; }
.ct-switch.on, .ct-toggle input:checked + .ct-toggle-ui { background: var(--ok); border-color: var(--ok); }
.ct-switch.on .ct-knob, .ct-toggle input:checked + .ct-toggle-ui .ct-knob { transform: translateX(18px); }
.ct-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.ct-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-toggle input:focus-visible + .ct-toggle-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-lbl { display: block; font-size: .88rem; font-weight: 650; margin-bottom: 6px; }
.ct-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; align-items: start; }
@media (min-width: 1100px) { .ct-form { grid-template-columns: minmax(0, 1fr) 320px; } .ct-vars { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; } }
.ct-head-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
@media (min-width: 720px) { .ct-head-fields { grid-template-columns: minmax(0, 1fr) auto; } }
.ct-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; line-height: 1.55; min-height: 420px; resize: vertical; }
.ct-vars-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1rem; }
.ct-group { border-top: 1px solid var(--line); padding: 8px 0; }
.ct-group summary { cursor: pointer; font-weight: 650; font-size: .9rem; }
.ct-var-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ct-var { display: grid; gap: 1px; width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; }
.ct-var:hover:not(:disabled), .ct-var:focus-visible { border-color: var(--accent); }
.ct-var:disabled { cursor: default; }
.ct-var code { font-size: .8rem; color: var(--accent-text); overflow-wrap: anywhere; }
.ct-var span { font-size: .8rem; color: var(--muted); }
.ct-delete { margin-top: 12px; }
.ct-gen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ct-gen select { flex: 1 1 240px; min-width: 0; }
.ct-versions { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ct-versions li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(var(--r) - 4px); background: var(--surface-2); }
.ct-versions a { display: grid; gap: 2px; color: var(--text); text-decoration: none; min-width: 0; }
.ct-versions a strong { color: var(--accent-text); }
.ct-missing ul { margin: 8px 0 0; padding-left: 18px; }
.ct-paper { max-width: 820px; margin-left: auto; margin-right: auto; padding: 32px 36px; background: #fffdf8; color: #1b1712; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.65; }
.ct-paper p { margin: 0 0 12px; text-align: justify; overflow-wrap: anywhere; }
.ct-paper .ct-h { margin: 18px 0 8px; font-size: 1rem; letter-spacing: .02em; }
.ct-paper .ct-h:first-child { margin-top: 0; text-align: center; font-size: 1.1rem; }
@media (max-width: 719px) { .ct-paper { padding: 20px 16px; font-size: .95rem; } .ct-paper p { text-align: left; } }
.ct-edit { margin-top: 14px; }

/* Ficha da pessoa da Equipe: foto no topo fora da guia Dados */
.tp-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tp-head > div { min-width: 0; }

/* Versão do sistema, em letra pequena embaixo de Configurações (e no fim do "Mais" no celular) */
.side-version { margin: 6px 12px 0; font-size: .72rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.mais-version { margin: 18px 0 8px; text-align: center; }

/* ------------------------------------------- Lembretes (cor própria: --rem) — lista, aviso, agenda, linha do tempo e o popup "Criar no dia" ---- */
.rm-due { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; border-color: color-mix(in srgb, var(--rem) 50%, var(--line)); background: color-mix(in srgb, var(--rem) 10%, transparent); }
.rm-due > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rm-due .i { color: var(--rem); }
.rm-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.rm-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--rem); border-radius: var(--r-sm); background: var(--surface); }
.rm-item:hover, .rm-item:focus-within { border-color: color-mix(in srgb, var(--rem) 45%, var(--line)); border-left-color: var(--rem); }
.rm-item.is-due { border-color: color-mix(in srgb, var(--rem) 60%, var(--line)); background: color-mix(in srgb, var(--rem) 9%, var(--surface)); }
.rm-item.is-past:not(.is-due) .rm-main { opacity: .8; }
.rm-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--rem) 16%, transparent); color: var(--rem); }
.rm-ico .i { width: 18px; height: 18px; }
.rm-item.is-due .rm-ico { background: var(--rem); color: var(--surface); }
.rm-ico-lg { width: 52px; height: 52px; } .rm-ico-lg .i { width: 26px; height: 26px; }
.rm-main { flex: 1; min-width: 0; display: grid; gap: 2px; color: var(--text); text-decoration: none; }
.rm-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* o cartão inteiro abre o lembrete */
.rm-main:focus-visible { outline: none; }
.rm-item:has(.rm-main:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rem) 35%, transparent); }
.rm-when { font-size: .8rem; font-weight: 700; color: var(--rem); }
.rm-title { font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.rm-info { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.rm-state { position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rm-state form { margin: 0; }
@media (max-width: 599px) {
  .rm-item { flex-wrap: wrap; }
  .rm-state { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; width: 100%; padding-left: 50px; }
}
.rm-card { border-left: 4px solid var(--rem); }
.rm-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rm-card-head > div { min-width: 0; }
.rm-card-head .rm-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .86rem; }
.rm-h1 { font-size: 1.4rem; overflow-wrap: anywhere; }
.rm-text { margin-bottom: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.rm-edit { margin-top: 14px; }
.rm-empty .ct-empty-ico { background: color-mix(in srgb, var(--rem) 16%, transparent); color: var(--rem); }
.rm-empty p { margin: 12px auto 14px; }
.nav-item[href="/lembretes"] .count { background: var(--rem); color: var(--surface); }
.menu-list a[href="/lembretes"] .count { background: var(--rem); color: var(--surface); }
.nav-dot[data-reminder-dot] { background: var(--rem); }
.nav-dot[data-support-dot]:not([hidden]) + .nav-dot[data-reminder-dot] { left: calc(50% + 19px); }   /* os dois avisos juntos: um ponto ao lado do outro */

/* Agenda: lembrete no celular é um quadradinho roxo (evento = bolinha); na tela larga, uma etiqueta com sino */
.cal-chip.cal-rem { background: var(--rem); border-radius: 2px; }
.cal-rem .i { display: none; }
.cal-rem-more::after { color: var(--rem); }
@media (min-width: 720px) {
  .cal-chip.cal-rem { border-radius: 6px; border-left-color: var(--rem); background: color-mix(in srgb, var(--rem) 14%, transparent); color: var(--text); }
  .cal-chip.cal-rem:hover, .cal-chip.cal-rem:focus-visible { background: color-mix(in srgb, var(--rem) 24%, transparent); }
  .cal-rem .i { display: inline-block; margin-right: 4px; vertical-align: -1px; color: var(--rem); }
  .cal-more.cal-rem-more { color: var(--rem); cursor: pointer; }
}

/* Linha do tempo: lembrete é uma linha simples (sino + hora + nome), tracejada e roxa */
.tl-dot.s-rem { background: var(--rem); border-radius: 2px; }
.tl-item.is-rem .tl-node { background: var(--rem); border-radius: 4px; }
.tl-rem { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; border: 1px dashed color-mix(in srgb, var(--rem) 60%, var(--line)); border-radius: var(--r-sm); background: color-mix(in srgb, var(--rem) 8%, transparent); color: var(--text); text-decoration: none; font-size: .88rem; line-height: 1.3; transition: background .12s, border-color .12s; }
.tl-rem:hover, .tl-rem:focus-visible { border-style: solid; border-color: var(--rem); background: color-mix(in srgb, var(--rem) 14%, transparent); }
.tl-rem-ico { flex: none; display: grid; place-items: center; color: var(--rem); }
.tl-rem-time { flex: none; font-weight: 750; }
.tl-rem-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-rem-tag { flex: none; font-size: .66rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--rem); }
@media (max-width: 599px) { .tl-rem-tag { display: none; } }

/* Popup "Criar no dia" (clicar num dia da agenda): Novo evento → Novo evento / Clonar evento; Novo lembrete */
.day-menu { width: min(430px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 14px 16px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.day-menu::backdrop { background: var(--scrim); }
.day-menu[open] { animation: day-in .18s cubic-bezier(.2, .8, .2, 1); }
@keyframes day-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.day-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.day-menu-head form { margin: 0; }
.day-menu-head .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.day-menu-title { font-size: .95rem; color: var(--muted); } .day-menu-title strong { color: var(--text); }
.day-menu-step { display: grid; gap: 8px; }
.day-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .12s, background .12s; }
.day-opt:hover, .day-opt:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.day-opt > span:not(.day-opt-ico) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.day-opt strong { font-weight: 650; }
.day-opt small { font-size: .84rem; color: var(--muted); }
.day-opt-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.day-opt-ico.is-rem { background: color-mix(in srgb, var(--rem) 16%, transparent); color: var(--rem); }
.day-opt:has(.is-rem):hover, .day-opt:has(.is-rem):focus-visible { border-color: var(--rem); background: color-mix(in srgb, var(--rem) 8%, var(--surface-2)); }
.day-opt-go { color: var(--muted); }
.day-back { justify-self: start; margin-top: 2px; }
@media (max-width: 599px) {   /* celular: sobe de baixo, como a folha do "+" */
  .day-menu { width: 100%; max-height: 86dvh; margin: auto 0 0; padding-bottom: calc(18px + var(--safe-b)); border-radius: 22px 22px 0 0; border-bottom: 0; }
  .day-menu[open] { animation-name: day-up; }
  @keyframes day-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .day-menu[open] { animation: none; } }
.day-page { display: grid; gap: 0; max-width: 560px; }
.day-group .td-title .i { color: var(--accent-text); }

/* Clonar evento: escolher o evento que vai ser copiado para o dia */
.clone-info { display: grid; gap: 6px; }
.clone-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.clone-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.clone-item form { flex: none; margin: 0; }
.clone-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.clone-date { flex: none; display: grid; justify-items: center; width: 54px; padding: 6px 0; border-radius: 10px; background: var(--surface-2); line-height: 1.15; }
.clone-date strong { font-size: .98rem; } .clone-date small { font-size: .72rem; color: var(--muted); }
.clone-who { display: grid; gap: 4px; min-width: 0; }
.clone-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.clone-name a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.clone-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; }
.clone-meta > span + span::before { content: "·"; margin-right: 10px; color: var(--faint); }
@media (max-width: 599px) { .clone-item { flex-wrap: wrap; } .clone-item form, .clone-item .btn { width: 100%; justify-content: center; } }

/* Balão de aviso do lembrete: sino roxo */
.push-bell { border-color: color-mix(in srgb, var(--rem) 55%, var(--line)); }
.push-bell .push-ico { background: color-mix(in srgb, var(--rem) 18%, transparent); color: var(--rem); }

/* Aniversários da Equipe como lembretes (bolo no lugar do sino, mesma cor dos lembretes) e a data de nascimento no cadastro */
.rm-item.is-bday .rm-ico, .rm-ico.is-bday { background: color-mix(in srgb, var(--rem) 22%, transparent); }
.rm-item.is-bday.is-due .rm-ico { background: var(--rem); color: var(--surface); }
.push-cake { border-color: color-mix(in srgb, var(--rem) 55%, var(--line)); }
.push-cake .push-ico { background: color-mix(in srgb, var(--rem) 18%, transparent); color: var(--rem); }
@media (min-width: 720px) { .team-names { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); } }

/* Contratantes em guias: contatos (foto antes do nome, telefone/WhatsApp/e-mail com ícone), documentos básicos em caixas e o Histórico (anotações internas) */
.cc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .cc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-item { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); min-width: 0; }
.cc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-who { display: grid; gap: 2px; min-width: 0; }
.cc-who strong { overflow-wrap: anywhere; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cc-actions form { margin: 0; }
.cc-edit { flex: 1 1 100%; }
.sup-phone[href^="mailto:"] span:last-child { white-space: normal; overflow-wrap: anywhere; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cd-box { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); min-width: 0; }
.cd-box.has-file { border-style: solid; border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.cd-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.cd-box.has-file .cd-ico { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.cd-title { font-size: .98rem; }
.cd-dl { margin-top: 4px; }
.cd-up { width: 100%; }
.cn-form { margin-bottom: 14px; }
.cn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cn-item { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--surface-2); }
.cn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.cn-del { margin-left: auto; }
.cn-body { line-height: 1.55; overflow-wrap: anywhere; }

/* Mídia Kit (painel): a lista dos artistas e o editor em guias */
.mk-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.mk-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.mk-who { display: grid; gap: 2px; min-width: 0; }
.mk-who strong { overflow-wrap: anywhere; }
.mk-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); overflow-wrap: anywhere; }
.mk-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk-slug { display: flex; align-items: stretch; min-width: 0; }
.mk-slug-pre { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-xs) 0 0 var(--r-xs); background: var(--surface-2); color: var(--muted); font-size: .92rem; white-space: nowrap; }
.mk-slug .input { border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: 0; }
.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mk-actions form, .mk-up { margin: 0; }
.mk-up-many { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.mk-hero-prev { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: 12px; }
.mk-text { min-height: 280px; line-height: 1.6; }
.mk-par { margin: 0 0 12px; line-height: 1.6; }
.mk-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .mk-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-photo { position: relative; display: grid; gap: 6px; align-content: start; min-width: 0; }
.mk-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.mk-photo-n { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; font-weight: 700; }
.mk-logo-prev { max-width: 100%; max-height: 90px; object-fit: contain; padding: 8px; border-radius: 10px; background: #fff; }
.mk-videos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.mk-video { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.mk-video-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); flex: none; }
.mk-video-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mk-video-txt strong, .mk-video-txt a { overflow-wrap: anywhere; }
.mk-nets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
@media (min-width: 720px) { .mk-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-nets .row { grid-column: 1 / -1; } }
.mk-net label { display: inline-flex; align-items: center; gap: 8px; }
.k-net.i { width: 20px; height: 20px; }
.k-fill { fill: currentColor; stroke: none; }
.mk-danger { margin-top: 14px; }

/* ------------------------------------------------------------------ ECAD ---- */
.ec-set { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 16px; }
.ec-set:disabled .input { opacity: .85; }
.ec-songs { display: grid; gap: 10px; margin: 12px 0 14px; padding: 0; list-style: none; }
.ec-song { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.ec-num { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: .82rem; font-weight: 750; }
.ec-fields { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.ec-fields .field { margin: 0; }
@media (min-width: 900px) { .ec-fields { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr); } }
.ec-add { justify-self: start; }
.ecad-table td { vertical-align: middle; }
.ecad-pick { max-width: 560px; }
.ecad-pick a { gap: 12px; }

/* --------------------------------------------------------- Equipe da Conta ---- */
.tm-table td { vertical-align: middle; }
.tm-off td { opacity: .6; }
.pm-profile { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pm-profile legend { margin-bottom: 6px; font-weight: 700; }
.pm-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.pm-opt span { display: grid; gap: 2px; } .pm-opt small { color: var(--muted); }
.pm-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pm-matrix[hidden] { display: none; }
.pm-artists { display: grid; gap: 8px; margin: 14px 0 6px; padding: 0; border: 0; min-width: 0; }
.pm-artists legend { margin-bottom: 6px; font-weight: 700; }
.pm-artist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; padding: 4px 4px 0 30px; }
.pm-artist-list .check { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.pm-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; }
.pm-table th[scope="row"] { font-size: .92rem; font-weight: 560; letter-spacing: normal; text-transform: none; color: var(--text); padding: 13px 16px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.pm-table .center { text-align: center; width: 92px; }
.pm-table input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); }
.pm-sec { display: inline-flex; align-items: center; gap: 8px; }
.pm-sensitive th[scope="row"] { color: var(--muted); }
/* No celular: cada seção numa linha com as 3 opções lado a lado (em vez de um cartão com uma opção por linha) */
@media (max-width: 719px) {
  .pm-table tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; padding: 12px 0; }
  .pm-table th[scope="row"] { grid-column: 1 / -1; padding: 0 0 6px; border: 0; }
  .pm-table td.center, .card:not(.flush) .pm-table td:first-child, .card:not(.flush) .pm-table td:last-child { width: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; text-align: center; }
  .pm-table td[data-label]:not(:first-child)::before { margin-top: 0; }
}
.tm-history { max-height: 520px; overflow: auto; }

/* Assinatura (Vendas V1): opções de plano e de forma de pagamento */
.sub-plans { display: grid; gap: 8px; }
.sub-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.sub-opt input { margin-top: 3px; accent-color: var(--accent); }
.sub-opt span { display: grid; gap: 2px; }
.sub-opt small { color: var(--muted); }
.sub-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
