/* Agenda · design system (marca Glauber Dourado: amarelo #FFD600, preto #0A0A0A, Geist) */
@font-face { font-family: "Geist"; src: url("brand/Geist.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("brand/GeistMono.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0A0A0A;
  --ink-2: #4A4F5C;
  --ink-3: #6B7080;
  --ink-4: #9A9FAB;
  --line: #DADDE4;
  --line-2: #E3E5EA;
  --line-3: #F1F2F5;
  --bg: #EEF0F3;
  --bg-guest: #E7E9ED;
  --card: #FFFFFF;
  --soft: #F7F8FA;
  --yellow: #FFD600;
  --yellow-hover: #FFE24D;
  --yellow-soft: #FFF7CC;
  --yellow-wash: #FFFBE6;
  --gold-text: #8A5D00;
  --side: #0A0A0A;
  --side-2: #1E212B;
  --side-3: #262A35;
  --side-text: #AEB3BF;
  --green: #1E7F63;
  --green-soft: #E3F3EC;
  --green-ink: #155E49;
  --red: #B42318;
  --red-soft: #FDECEA;
  --radius: 20px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 0 rgba(10, 10, 10, .04), 0 12px 32px -18px rgba(10, 10, 10, .25);
  --hatch: repeating-linear-gradient(135deg, #D3D7DF 0 4px, #F4F5F7 4px 9px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-text); }
a:hover { color: #5E3F00; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.035em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); }
.label-caps { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--yellow); border-color: var(--yellow); }
.btn-gold:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--side-3); border-color: var(--side-3); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--line-3); border-color: transparent; }
.btn-danger { color: var(--red); border-color: #F3C9C5; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-solid:hover { background: #912018; border-color: #912018; color: #fff; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-3); flex: none; }
.icon-btn:hover { background: var(--line-3); color: var(--ink); }
.icon-btn-b { border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 40px; height: 40px; border-radius: 12px; }
.icon-btn-b:hover { border-color: var(--ink); }

/* campos */
.lbl { display: block; font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.lbl .opt { font-weight: 400; color: var(--ink-3); }
.fld { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; }
select.fld { padding-right: 32px; }
textarea.fld { min-height: 90px; resize: vertical; line-height: 1.5; }
.fld:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 214, 0, .3); }
.fld-sm { min-height: 36px; padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; }
.prefix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.prefix > span { padding: 0 12px; display: flex; align-items: center; background: var(--soft); border-right: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.prefix input { border: 0; outline: 0; min-height: 44px; padding: 0 12px; flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px; }
.prefix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 214, 0, .3); }
.error-box { background: var(--red-soft); color: var(--red); border: 1px solid #F3C9C5; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.note { background: var(--soft); border-radius: 14px; padding: 14px 16px; font-size: 13px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }

/* switch */
.sw { position: relative; width: 40px; height: 24px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; flex: none; background: #C9CDD6; transition: background .18s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .18s ease; }
.sw[aria-pressed="true"] { background: var(--green); }
.sw[aria-pressed="true"]::after { left: 19px; }

/* chips, badges, pílulas */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--line-3); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line-3); color: var(--ink-2); white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--green-soft); color: var(--green-ink); }
.badge-warn { background: var(--yellow-soft); color: #7A5200; }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-dark { background: var(--ink); color: var(--yellow); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; min-height: 40px; padding: 0 16px; font-family: var(--mono); font-weight: 600; font-size: 14px; cursor: pointer; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { display: inline-flex; background: var(--line-3); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { border: 0; border-radius: 9px; padding: 7px 14px; font-weight: 600; font-size: 13px; cursor: pointer; background: transparent; color: var(--ink-3); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 10, 10, .12); }
.seg-dark button[aria-selected="true"] { background: var(--ink); color: var(--yellow); box-shadow: none; }
.hatch { background: var(--hatch); }

/* cartões */
.card { background: var(--card); border-radius: var(--radius); padding: 22px 24px; }
.card-flat { background: var(--card); border-radius: var(--radius); }
.card h2 { font-size: 20px; }
.card-dark { background: var(--side); color: #C9CCD4; border-radius: var(--radius); padding: 22px 24px; }
.card-dark h2, .card-dark h3 { color: #fff; }
.section-head { display: flex; align-items: baseline; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* toasts */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; font-weight: 500; transition: opacity .3s, transform .3s; }
.toast-err { background: var(--red); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- painel ---------- */
.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 248px; max-width: 100%; background: var(--side); color: var(--side-text); padding: 22px 16px; display: flex; flex-direction: column; gap: 20px;
  /* fica parada enquanto a página rola, com o cartão do perfil sempre visível no rodapé */
  position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
.brand { display: block; padding: 4px 8px 2px; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-text); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav a:hover, .nav a.active { background: var(--side-2); color: #fff; }
.nav a.active { box-shadow: inset 3px 0 0 var(--yellow); }
.nav svg { flex: none; }
.side-card { margin-top: auto; background: #14161D; border: 1px solid var(--side-3); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.side-card .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-card .who b { color: #fff; font-size: 14px; font-weight: 600; display: block; }
.side-card .who div span { font-family: var(--mono); font-size: 11px; color: #8D93A1; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; border-radius: 10px; background: var(--side-3); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.side-btn:hover { background: #343947; color: #fff; }
.signature { display: flex; align-items: center; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--side-2); }
.signature span { font-size: 11px; color: #8D93A1; white-space: nowrap; }
.signature img { height: 12px; width: auto; display: block; opacity: .85; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.page-head .t { flex: 1 1 360px; min-width: 0; }
.page-head h1 { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.page-head p { color: var(--ink-2); font-size: 15px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 999 1 520px; min-width: 0; }
.col-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-weight: 700; background: var(--side-3); color: var(--yellow); }
.avatar-light { background: var(--line-3); color: var(--ink); }
img.avatar { display: block; background: var(--side-3); }
.side-card .avatar { box-shadow: 0 0 0 2px var(--yellow); }
.avatar-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-edit .avatar { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--yellow); }
.drop { border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px 16px; flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--yellow-wash); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.wa-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 18px; border-radius: 14px; background: var(--line-3); }
.secret-row { display: flex; gap: 8px; align-items: center; }
.secret-row .fld { flex: 1; }
details.adv summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
details.adv[open] summary { margin-bottom: 12px; }
.loading { padding: 60px; text-align: center; color: var(--ink-3); }

/* linha do dia */
.ribbon { position: relative; height: 150px; margin: 0 4px; }
.ribbon .tick { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid #EDEFF3; }
.ribbon .tick span { position: absolute; top: 0; left: 6px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ribbon .win { position: absolute; top: 26px; height: 112px; background: #EEF8F3; border: 1px dashed #9ED3BC; border-radius: 12px; }
.ribbon .busy { position: absolute; top: 34px; height: 96px; border-radius: 10px; background: var(--hatch); display: flex; align-items: flex-end; padding: 8px 10px; overflow: hidden; }
.ribbon .busy span { background: #fff; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ribbon .meet { position: absolute; top: 34px; height: 96px; border-radius: 10px; padding: 10px 12px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-width: 34px; }
.ribbon .meet:hover { color: #fff; filter: brightness(1.06); }
.ribbon .meet .mono { font-size: 12px; font-weight: 600; opacity: .92; }
.ribbon .meet b { font-size: 13px; line-height: 1.25; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon .meet small { font-size: 12px; opacity: .9; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon .now { position: absolute; top: 18px; bottom: 0; width: 2px; background: var(--yellow); border-radius: 2px; }
.ribbon .now::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); animation: pulse 2.4s ease-out infinite; }
.ribbon .now span { position: absolute; bottom: -2px; left: 6px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 0, .6); } 70% { box-shadow: 0 0 0 9px rgba(255, 214, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0); } }

/* reuniões */
.day-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 24px; background: var(--soft); border-top: 1px solid #EDEFF3; border-bottom: 1px solid #EDEFF3; }
.day-head b { font-size: 13px; }
.meet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 24px; border-bottom: 1px solid var(--line-3); }
.meet-row:hover { background: #FAFBFC; }
.meet-row .time { width: 92px; flex: none; }
.meet-row .time b { font-family: var(--mono); font-size: 20px; font-weight: 600; line-height: 1; display: block; }
.meet-row .time span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); display: block; margin-top: 4px; }
.meet-row .who { flex: 1 1 220px; min-width: 0; }
.meet-row .who b { font-size: 15px; }
.meet-row .who div { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.meet-detail { padding: 4px 24px 20px 136px; display: grid; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--line-3); background: #FAFBFC; }
.meet-detail .k { font-size: 12px; color: var(--ink-3); display: block; }

/* tipos de evento */
.et-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.et-card { background: var(--card); border-radius: 18px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 0 rgba(10, 10, 10, .04); position: relative; }
.et-card.off { opacity: .58; }
.et-card .sq { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 12px var(--mono); flex: none; }
.et-card h3 { font-size: 19px; }
.et-card h3 a { color: var(--ink); text-decoration: none; }
.et-card h3 a:hover { text-decoration: underline; }
.et-card .meta { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.et-card .foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-3); padding-top: 12px; margin-top: auto; }
.days7 { display: flex; gap: 4px; }
.days7 span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 600 11px var(--mono); background: var(--line-3); color: var(--ink-4); }
.days7 span.on { background: var(--ink); color: #fff; }
.menu { position: absolute; right: 12px; top: 54px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); z-index: 10; min-width: 180px; padding: 6px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.menu button:hover { background: var(--line-3); }

/* editor */
.editor { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.editor-nav { flex: 1 1 190px; max-width: 100%; display: flex; flex-direction: column; gap: 2px; }
.editor-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.editor-nav button:hover { background: #fff; color: var(--ink); }
.editor-nav button[aria-current="step"] { background: #fff; color: var(--ink); font-weight: 600; }
.editor-nav button span { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font: 600 11px var(--mono); background: var(--line-2); color: var(--ink-2); }
.editor-nav button[aria-current="step"] span { background: var(--ink); color: var(--yellow); }
.editor-body { flex: 999 1 460px; min-width: 0; background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.editor-preview { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 20px; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.place { text-align: left; border: 1.5px solid var(--line-2); background: #fff; border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.place b { font-size: 14px; }
.place span { font-size: 12px; color: var(--ink-3); }
.place[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow-wash); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.buffers { display: flex; height: 64px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.buffers > div { flex: 1 1 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; text-align: center; padding: 0 6px; }
.buffers .mono { background: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.q-item { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper b { min-width: 44px; text-align: center; font-family: var(--mono); font-size: 20px; }
.preview-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 20px 40px -24px rgba(10, 10, 10, .35); display: flex; flex-direction: column; gap: 14px; }
.preview-card .slots-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line-3); padding-top: 14px; }
.preview-card .slots-2 span { height: 40px; border-radius: 10px; border: 1.5px solid var(--c); display: grid; place-items: center; font: 600 14px var(--mono); }

/* disponibilidade */
.week-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-3); }
.week-day { display: flex; align-items: center; gap: 10px; }
.week-day b { font-size: 14px; }
.track { position: relative; height: 30px; border-radius: 9px; background: #F4F5F7; overflow: hidden; }
.track .blk { position: absolute; top: 0; bottom: 0; background: var(--green); opacity: .9; }
.track .gb { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(10, 10, 10, .35) 0 4px, rgba(10, 10, 10, .08) 4px 9px); }
.ticks { position: relative; height: 16px; }
.ticks span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ivs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tchip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 4px 0 6px; border-radius: 9px; background: var(--line-3); }
.tchip input { border: 0; background: transparent; font: 600 13px var(--mono); width: 84px; padding: 0 2px; }
.tchip button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1; }
.tchip button:hover { background: var(--line-2); color: var(--ink); }
.dash-btn { height: 34px; border: 1px dashed #C9CDD6; background: transparent; border-radius: 9px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.dash-btn:hover { border-color: var(--ink); color: var(--ink); }
.link-btn { border: 0; background: transparent; padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--gold-text); cursor: pointer; height: 34px; }
.ov-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-3); }
.ov-date { width: 50px; text-align: center; flex: none; }
.ov-date b { font-family: var(--mono); font-size: 20px; line-height: 1; display: block; }
.ov-date span { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.cal-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.cal-check:hover { background: var(--soft); }

/* processos */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.journey::before { content: ""; position: absolute; left: 6%; right: 6%; top: 15px; height: 2px; background: var(--side-3); }
.stage { position: relative; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff; }
.stage .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--side-3); color: #fff; box-shadow: 0 0 0 4px var(--side); font: 600 12px var(--mono); }
.stage.meeting { cursor: default; }
.stage.meeting .n { background: #fff; color: var(--ink); }
.stage[aria-pressed="true"] .n { background: var(--yellow); color: var(--ink); }
.stage[aria-pressed="true"] b { color: var(--yellow); }
.stage b { font-size: 14px; }
.stage small { font-family: var(--mono); font-size: 12px; color: #8D93A1; }
.stage .chips { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.mini { height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; background: var(--side-3); color: #C9CCD4; }
.mini.wa { background: #1E3B31; color: #7FE0BB; }
.mini.off { background: var(--side-2); color: #8D93A1; }
.branch { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--side-3); background: transparent; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.branch small { font-size: 11px; color: var(--side-text); font-weight: 500; }
.branch[aria-pressed="true"] { border-color: var(--yellow); background: var(--side-3); }
.wf-row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-3); padding: 14px 18px; }
.wf-row.sel { background: var(--yellow-wash); }
.wf-row button.name { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.wf-row button.name b { display: block; font-size: 14px; }
.wf-row button.name span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.var { border: 1px dashed #C9CDD6; background: #fff; border-radius: 8px; padding: 4px 8px; font: 500 12px var(--mono); color: var(--ink-2); cursor: pointer; }
.var:hover { border-color: var(--ink); color: var(--ink); }
.wa-preview { background: #EFE7DE; border-radius: 18px; padding: 16px; min-height: 260px; display: flex; flex-direction: column; gap: 8px; }
.wa-preview .day { align-self: center; background: #fff; color: var(--ink-2); font-size: 11px; padding: 3px 10px; border-radius: 8px; }
.wa-bubble { align-self: flex-start; max-width: 92%; background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); font-size: 14px; line-height: 1.45; color: #111B21; white-space: pre-line; word-break: break-word; }
.wa-bubble small { display: block; text-align: right; font: 10px var(--mono); color: #667781; margin-top: 4px; }
.mail-preview { border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.mail-preview .top { background: var(--ink); padding: 16px 18px; }
.mail-preview .top img { height: 22px; display: block; }
.mail-preview .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.mail-preview .body .txt { font-size: 13px; line-height: 1.55; color: #2A2E3A; white-space: pre-line; }
.mail-preview .bot { padding: 12px 18px; border-top: 1px solid var(--line-3); display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); }
.mail-preview .bot img { height: 10px; }
.channel-card { background: #fff; border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.channel-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }

/* encaminhamento */
.rule { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; }
.rule.hit { border-color: var(--yellow); background: var(--yellow-wash); animation: flash .7s ease-out; }
.rule .word { font: 600 12px var(--mono); color: var(--ink-3); width: 46px; }
.cond { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 8px; background: var(--line-3); font-size: 12px; font-weight: 600; color: #2A2E3A; }
.cond .mono { color: var(--gold-text); }
.dest { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 10px; background: var(--line-3); font-size: 13px; font-weight: 600; }
.rule.hit .dest { background: var(--ink); color: #fff; }
.sim-opt { border: 1px solid #3A3F4B; background: transparent; color: #C9CCD4; border-radius: 9px; padding: 7px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sim-opt[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.result { border-radius: 14px; background: var(--yellow); color: var(--ink); padding: 16px; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 0, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 214, 0, 0); } }

/* estatísticas */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kpi { background: #fff; border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.kpi b { font-family: var(--mono); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.kpi small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.kpi small.up { color: var(--green); }
.heat { display: grid; gap: 5px; min-width: 460px; }
.heat .c { border-radius: 6px; height: 30px; display: grid; place-items: center; font: 600 11px var(--mono); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .b > div { width: 100%; max-width: 28px; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; transform-origin: bottom; animation: grow .5s cubic-bezier(.2, .8, .2, 1) both; }
.hbar { height: 14px; border-radius: 7px; background: var(--line-3); overflow: hidden; display: flex; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* tabelas */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-3); font-size: 14px; vertical-align: middle; }
.tbl th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); background: #FBFCFD; font-weight: 600; }
.scroll-x { overflow-x: auto; }
.copy-row { display: flex; gap: 8px; }
.copy-row .fld { font-family: var(--mono); font-size: 13px; }
.qr { width: 220px; height: 220px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; background: #fff; }
.qr img { width: 200px; height: 200px; image-rendering: pixelated; }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--side); }
.auth .card { width: min(420px, 100%); padding: 32px; }
.auth .brand-top { display: flex; justify-content: center; margin-bottom: 26px; }
.auth .brand-top img { height: 40px; }
.auth .sig { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
.auth .sig span { font-size: 11px; color: #8D93A1; }
.auth .sig img { height: 12px; }

/* ---------- convidado ---------- */
.guest { min-height: 100vh; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--bg-guest); }
.shell { width: 100%; max-width: 1180px; display: flex; flex-wrap: wrap; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 10, 10, .35); }
.shell-sm { max-width: 1080px; }
.info { flex: 1 1 300px; background: var(--side); color: #C9CCD4; padding: 34px 30px; display: flex; flex-direction: column; gap: 20px; }
.info .host { display: flex; align-items: center; gap: 12px; }
.info .host b { color: #fff; font-weight: 600; }
.info h1 { font-size: 34px; line-height: 1.04; color: #fff; }
.info .meta { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.info .meta div { display: flex; align-items: flex-start; gap: 10px; }
.info .meta svg { flex: none; margin-top: 1px; color: var(--yellow); }
.info .desc { font-size: 14px; line-height: 1.6; color: var(--side-text); white-space: pre-wrap; }
.info .picked { display: flex; gap: 10px; background: var(--side-2); border-radius: 12px; padding: 12px; color: #fff; line-height: 1.4; animation: rise .28s ease both; }
.info .picked svg { color: var(--yellow); flex: none; }
.info .was { background: var(--side-2); border-radius: 12px; padding: 12px; font-size: 13px; }
.info .was s { color: #fff; }
.made-by { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--side-2); display: flex; flex-direction: column; gap: 10px; }
.made-by span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8D93A1; }
.made-by img { height: 18px; width: auto; align-self: flex-start; display: block; }
.pick { flex: 999 1 380px; min-width: 0; padding: 32px 30px; display: flex; flex-direction: column; gap: 18px; }
.pick h2, .times h2, .gform h2 { font-size: 22px; }
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-nav b { flex: 1; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal .dow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 6px; }
.cal .d { position: relative; aspect-ratio: 1; max-width: 56px; width: 100%; justify-self: center; border: 0; border-radius: 14px; font: 600 16px var(--mono); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: transparent; color: #B5BAC4; }
.cal .d.av { background: var(--yellow-soft); color: var(--ink); cursor: pointer; }
.cal .d.av:hover { background: #FFEFA3; }
.cal .d.sel { background: var(--ink); color: var(--yellow); }
.cal .d.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dots { display: flex; gap: 2px; height: 4px; }
.dots i { width: 6px; height: 4px; border-radius: 2px; background: var(--green); }
.cal .d.sel .dots i { background: var(--yellow); }
.times { flex: 1 1 290px; min-width: 0; border-left: 1px solid #EDEFF3; padding: 32px 26px; display: flex; flex-direction: column; gap: 6px; background: #FAFAFB; max-height: 760px; overflow-y: auto; }
.trow { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.trow > .mono { font-size: 12px; color: var(--ink-3); text-align: right; }
.slot-line { display: flex; gap: 8px; padding: 3px 0; }
.slot { flex: 1; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 600 15px var(--mono); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot:hover, .slot[aria-pressed="true"] { background: var(--ink); color: #fff; }
.slot small { font: 600 11px var(--font); color: var(--ink-3); }
.slot[aria-pressed="true"] small, .slot:hover small { color: #C9CCD4; }
.go { min-height: 48px; border-radius: 12px; border: 0; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; text-decoration: none; animation: rise .28s ease both; }
.go:hover { background: var(--yellow-hover); color: var(--ink); }
.go[disabled] { opacity: .6; cursor: wait; }
.unav { min-height: 48px; border-radius: 12px; margin: 3px 0; display: flex; align-items: center; padding: 0 14px; background: var(--hatch); }
.unav span { background: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pause { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink-4); font-size: 12px; }
.pause i { flex: 1; border-top: 1px dashed #D3D7DF; }
.gform { flex: 999 1 560px; min-width: 0; padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; animation: rise .28s ease both; }
.confirm { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.confirm .top { padding: 36px 40px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.confirm .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: none; animation: pop .5s cubic-bezier(.2, .8, .2, 1) both; }
.confirm h1 { font-size: 44px; line-height: 1; }
.confirm .band { background: var(--side); color: #C9CCD4; padding: 30px 40px 32px; display: flex; flex-direction: column; gap: 22px; }
.confirm .big { font-family: var(--mono); font-size: 64px; line-height: 1; font-weight: 600; color: #fff; letter-spacing: -.03em; }
.confirm .big span { color: var(--ink-3); }
.confirm .actions { padding: 24px 40px 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.mini-ribbon { position: relative; height: 34px; border-radius: 10px; background: var(--side-2); overflow: hidden; }
.mini-ribbon .w { position: absolute; top: 0; bottom: 0; background: #2A3B33; }
.mini-ribbon .me { position: absolute; top: 4px; bottom: 4px; min-width: 14px; background: var(--yellow); border-radius: 6px; transform-origin: left; animation: slide .7s .15s cubic-bezier(.2, .8, .2, 1) both; }
.mini-ribbon span { position: absolute; top: 9px; font: 11px var(--mono); color: var(--ink-3); }
.foot-sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.foot-sign img { display: block; }
.foot-sign i { width: 1px; height: 16px; background: #C9CDD6; }
.foot-sign span { font-size: 12px; color: var(--ink-2); }
.choice { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; border: 1.5px solid var(--line-2); background: #fff; border-radius: 16px; padding: 18px; cursor: pointer; color: var(--ink); text-decoration: none; }
.choice:hover { border-color: var(--ink); color: var(--ink); }
.choice[disabled], .choice.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.choice .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.choice b { display: block; font-size: 16px; }
.choice small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.profile-head { text-align: center; padding: 44px 24px 30px; border-bottom: 1px solid var(--line-3); }
.profile-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.profile-item { display: flex; gap: 14px; padding: 26px 28px; border-bottom: 1px solid var(--line-3); color: var(--ink); text-decoration: none; }
.profile-item:hover { background: #FAFBFD; color: var(--ink); }
.profile-item h3 { font-size: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes slide { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .main { padding: 22px 16px 48px; }
  .page-head h1 { font-size: 32px; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; gap: 10px; position: static; height: auto; overflow: visible; }
  .nav { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .side-card { display: none; }
  .signature { border: 0; padding: 0; margin-left: auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .journey::before { display: none; }
  .meet-detail { padding: 4px 16px 18px; }
  .meet-row { padding: 14px 16px; }
  .week-grid { grid-template-columns: 1fr; }
  .times { border-left: 0; border-top: 1px solid #EDEFF3; max-height: none; }
  .guest { padding: 0 0 20px; justify-content: flex-start; }
  .shell { border-radius: 0; }
  .info { padding: 26px 22px; }
  .pick, .times, .gform { padding: 24px 20px; }
  .confirm .top, .confirm .band, .confirm .actions { padding-left: 22px; padding-right: 22px; }
  .confirm .big { font-size: 44px; }
  .editor-preview { position: static; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* central de administração */
.admin-tabs { flex-wrap: wrap; align-self: flex-start; }
.dlg { border: 0; border-radius: 18px; padding: 24px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; box-shadow: 0 30px 80px -20px rgba(10, 10, 10, .45); color: var(--ink); }
.dlg-wide { width: min(760px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(10, 10, 10, .5); }
.perm { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; line-height: 1.45; }
.perm input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.perm:hover { border-color: var(--ink); }
.assign-list { gap: 8px; max-height: 220px; overflow: auto; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.assign-list > * + * { margin-top: 0; }
.managed-note { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 13px; line-height: 1.5; }
.managed-note b { color: var(--yellow); }
.host-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.host-pick label { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; }
.host-pick input { accent-color: var(--ink); }
.host-pick label:has(input:checked) { border-color: var(--ink); background: var(--yellow-wash); }

.team-stack { display: inline-flex; }
.team-stack .avatar { box-shadow: 0 0 0 2px var(--ink); }
.team-stack .avatar + .avatar { margin-left: -10px; }

/* logo da marca de quem atende (versão para fundo escuro) */
.brand-logo { display: block; height: 40px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }
.logo-preview { background: var(--side); border-radius: 14px; padding: 22px; min-height: 84px; display: grid; place-items: center; }
.logo-preview img { max-height: 44px; max-width: 100%; width: auto; }
.logo-preview span { color: #8D93A1; font-size: 13px; text-align: center; }

/* calendário */
.cal-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-title { font-size: 22px; letter-spacing: -.02em; }
.cal-wrap { display: flex; gap: 20px; align-items: flex-start; }
.cal-side { flex: 0 0 248px; padding: 18px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.cal-main { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-grid .mh { font-size: 11px; color: var(--ink-3); font-weight: 600; padding: 4px 0; }
.mini-grid button { border: 0; background: transparent; border-radius: 8px; height: 30px; font: 500 12px var(--mono); cursor: pointer; color: var(--ink); }
.mini-grid button:hover { background: var(--line-3); }
.mini-grid button.out { color: var(--ink-4); }
.mini-grid button.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mini-grid button.sel { background: var(--ink); color: var(--yellow); }
.cal-cal { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; cursor: pointer; }
.cal-cal input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.sw-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; display: inline-block; }

.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-month .mh { padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--line-3); }
.mc { min-height: 118px; border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc:nth-child(7n + 7) { border-right: 0; }
.mc.out { background: #FAFBFC; }
.mc.out .mc-day { color: var(--ink-4); }
.mc-day { align-self: flex-start; border: 0; background: transparent; font: 600 12px var(--mono); width: 26px; height: 26px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.mc-day:hover { background: var(--line-3); }
.mc.today .mc-day { background: var(--ink); color: var(--yellow); }
.mc-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc-more { border: 0; background: transparent; text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 2px 6px; }
.cal-chip { display: flex; gap: 6px; align-items: center; min-width: 0; border: 0; border-radius: 6px; padding: 3px 6px; font-size: 12px; text-align: left; cursor: pointer; color: var(--ink); background: color-mix(in srgb, var(--c) 16%, #fff); box-shadow: inset 3px 0 0 var(--c); }
.cal-chip .mono { font-size: 11px; color: var(--ink-2); flex: none; }
.cal-chip .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.is-allday { background: var(--c); color: #fff; box-shadow: none; }
.cal-chip.is-agenda { background: var(--yellow); color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.cal-chip:hover { filter: brightness(.96); }

.tg { overflow-x: auto; }
.tg-head, .tg-allday, .tg-grid { display: grid; min-width: var(--tg-min, 0); }
.tg-head { border-bottom: 1px solid var(--line-3); }
.tg-dh { border: 0; background: transparent; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.tg-dh span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.tg-dh b { font: 600 20px var(--mono); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.tg-dh.today b { background: var(--ink); color: var(--yellow); }
.tg-allday { border-bottom: 1px solid var(--line-3); }
.tg-allday.empty { display: none; }
.tg-ad-l { font-size: 10px; color: var(--ink-3); padding: 6px; text-align: right; }
.tg-ad { padding: 4px; display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line-3); min-width: 0; }
.tg-body { max-height: min(70vh, 720px); overflow-y: auto; }
.tg-grid { position: relative; background-image: repeating-linear-gradient(to bottom, var(--line-3) 0 1px, transparent 1px 48px); }
.tg-hours { position: relative; }
.tg-hours span { position: absolute; right: 8px; transform: translateY(-50%); font: 11px var(--mono); color: var(--ink-3); }
.tg-col { position: relative; border-left: 1px solid var(--line-3); }
.tg-col.today { background: color-mix(in srgb, var(--yellow) 6%, transparent); }
.tg-ev { position: absolute; border: 0; border-radius: 8px; padding: 4px 7px; text-align: left; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px;
  background: color-mix(in srgb, var(--c) 18%, #fff); box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px #fff; color: var(--ink); font-size: 12px; line-height: 1.25; }
.tg-ev .t { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: var(--lines, 3); -webkit-box-orient: vertical; flex: none; }
.tg-ev .tm { font-size: 11px; color: var(--ink-2); }
.tg-ev.is-short { flex-direction: row; gap: 6px; align-items: center; padding: 2px 7px; }
.tg-ev.is-short .t { -webkit-line-clamp: 1; white-space: nowrap; display: block; text-overflow: ellipsis; order: 2; }
.tg-ev.is-agenda { background: var(--yellow); box-shadow: inset 3px 0 0 var(--ink), 0 0 0 1px #fff; }
.tg-ev.is-busy { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, #fff) 0 6px, #fff 6px 12px); }
.tg-ev.is-tentative { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }
.tg-ev:hover { filter: brightness(.97); z-index: 2; }
.tg-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.tg-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

@media (max-width: 900px) {
  .cal-wrap { flex-direction: column; }
  .cal-side { position: static; flex: none; width: 100%; }
  .cal-side .cal-mini { display: none; }
  .mc { min-height: 84px; }
  .cal-chip .mono { display: none; }
}
/* nova reunião */
.nb-slots { display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow: auto; }
.nb-slot { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 10px; font: 600 13px var(--mono); cursor: pointer; }
.nb-slot:hover { border-color: var(--ink); }
.nb-slot.on { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
hr.sep { border: 0; border-top: 1px solid var(--line-3); margin: 4px 0; }
.tg-col { cursor: copy; }
/* editor: etapas, sugestões e telefone com país */
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line-3); flex-wrap: wrap; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.sugg-l { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.sugg-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.sugg-chip:hover { border-color: var(--ink); background: var(--yellow-wash); }
.phone-fld { display: grid; grid-template-columns: minmax(118px, 40%) minmax(0, 1fr); gap: 8px; }
.phone-fld [data-cc] { font-size: 14px; padding-right: 28px; text-overflow: ellipsis; }
@media (max-width: 520px) { .phone-fld { grid-template-columns: 1fr; } }
.phone-preview { margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; display: grid; gap: 8px; pointer-events: none; opacity: .9; }
/* editor: campos do formulário */
.ff-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ff-head .subtle { font-size: 12px; }
.ff-list { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.ff-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; }
.ff-row + .ff-row { border-top: 1px solid var(--line-3); }
.ff-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--line-3); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.ff-ic svg { width: 18px; height: 18px; }
.ff-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ff-main b { font-size: 14px; }
.ff-main span { font-size: 12px; color: var(--ink-3); }
.ff-badge { flex: none; }
.ff-toggle { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
/* tipos de evento arquivados */
.archived { overflow: hidden; }
.archived summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; }
.archived summary::-webkit-details-marker { display: none; }
.archived summary::before { content: "›"; font-size: 18px; color: var(--ink-3); transition: transform .15s; }
.archived[open] summary::before { transform: rotate(90deg); }
.arch-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-3); flex-wrap: wrap; }

/* reunião paga */
.pay-cfg { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: #FCFCFD; }
.pay-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 24px; background: var(--yellow-wash); border-top: 1px solid #F3E7A6; }
.pay-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; flex: none; }

/* confirmação: faixa com a marca de quem atende */
.confirm-brand { background: var(--ink); padding: 18px 28px; display: flex; align-items: center; gap: 12px; color: #fff; }
.confirm-brand .brand-logo { height: 34px; }
.confirm-brand b { font-size: 15px; }

/* ---------- contatos ---------- */
.funnel-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 3px; }
.funnel-bar i { display: block; }
.funnel-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.funnel-card { text-align: left; border: 1px solid #E7E9EE; background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; font-family: var(--font); color: var(--ink); }
.funnel-card span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.funnel-card i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.funnel-card b { font: 600 26px var(--mono); letter-spacing: -.02em; }
.funnel-card:hover { border-color: var(--c); }
.funnel-card[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }
.ct-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-3); }
.ct-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 40px; color: var(--ink-3); }
.ct-search input { border: 0; outline: none; flex: 1; font: 14px var(--font); background: transparent; color: var(--ink); min-width: 0; }
.ct-search:focus-within { border-color: var(--ink); }
.chip-toggle { min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 13px var(--font); cursor: pointer; color: var(--ink); }
.chip-toggle[aria-pressed="true"] { border-color: var(--ink); background: var(--yellow-wash); }
.ct-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: var(--ink); color: #fff; font-size: 13px; }
.ct-bulk span { color: #8D93A1; }
.ct-bulk button { background: transparent; border: 0; color: var(--yellow); font: 600 13px var(--font); cursor: pointer; padding: 4px 0; }
.ct-bulk select { background: var(--side-2); color: #fff; border: 1px solid var(--side-3); border-radius: 8px; padding: 4px 8px; font: 600 13px var(--font); }
.ct-table { min-width: 980px; }
.ct-table tr.sel td { background: var(--yellow-wash); }
.ct-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ink); }
.ct-who { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.ct-who > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-who small { font-size: 12px; color: var(--ink-3); }
.ct-who:hover b { text-decoration: underline; }
.ct-av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.ct-av-lg { width: 68px; height: 68px; font-size: 24px; font-weight: 800; background: var(--yellow); color: var(--ink); }
.ct-av-sm { width: 30px; height: 30px; font-size: 11px; }
.stage-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.stage-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line-3); font-size: 13px; }
.ct-head { background: var(--ink); color: #fff; border-radius: 22px; padding: 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.ct-head h1 { margin: 0; font-size: 34px; letter-spacing: -.035em; color: #fff; }
.ct-head-sub { color: #AEB3BF; font-size: 14px; }
.ct-head-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8D93A1; margin-bottom: 10px; }
.ct-head .btn { border: 0; }
.ct-wa { background: #1F8A5B; color: #fff; }
.ct-wa:hover { background: #18734B; color: #fff; }
.ct-dark { background: var(--side-2); color: #fff; }
.ct-dark:hover { background: var(--side-3); color: #fff; }
.ct-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ct-steps button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 12px; border: 0; cursor: pointer; font: 600 13px var(--font); background: var(--side-2); color: #C9CCD4; }
.ct-steps button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ct-steps button:hover { color: #fff; }
.ct-steps button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.ct-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ct-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ct-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ct-next { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 20px 22px; background: var(--yellow-wash); border-bottom: 1px solid #F3E7A6; }
.ct-next-empty { background: #FAFBFC; border-bottom-color: var(--line-3); color: var(--ink-3); font-size: 14px; }
.ct-next-eyebrow { font: 600 12px var(--mono); letter-spacing: .08em; color: #7A5200; }
.ct-next-time { font: 600 34px var(--mono); letter-spacing: -.02em; margin-top: 4px; }
.ct-next-time span { color: var(--ink-4); }
.ct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 22px; }
.ct-stats div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ct-stats b { font: 600 22px var(--mono); }
.ct-stats span { color: var(--ink-3); }
.link-danger { align-self: flex-start; border: 0; background: transparent; padding: 0; color: var(--red); font: 600 13px var(--font); cursor: pointer; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--line-3); font-size: 13px; font-weight: 600; }
.tag-chip button { border: 0; background: transparent; cursor: pointer; color: var(--ink-3); font-size: 16px; width: 22px; height: 22px; border-radius: 50%; }
.tag-chip button:hover { background: var(--line); color: var(--ink); }
.tag-add input { height: 30px; width: 130px; border-radius: 999px; border: 1px dashed #B9BECA; padding: 0 12px; font: 600 13px var(--font); background: #fff; }
.tag-add input:focus { outline: none; border-style: solid; border-color: var(--ink); }
.note-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: #FAFBFC; font-size: 14px; line-height: 1.5; }
.tl-item { display: flex; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.tl-line { flex: 1; width: 2px; background: var(--line-3); margin: 4px 0; }
.tl-body { flex: 1; min-width: 0; padding-bottom: 16px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.tl-body b { font-size: 14px; color: var(--ink); }
.imp-head { padding: 24px 26px 4px; display: flex; flex-direction: column; gap: 16px; }
.wiz { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wiz li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--line-3); color: var(--ink-3); }
.wiz li span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 600 12px var(--mono); background: #fff; }
.wiz li.done { background: var(--green-soft); color: var(--green-ink); }
.wiz li.on { background: var(--ink); color: #fff; }
.wiz li.on span { background: var(--yellow); color: var(--ink); }
.imp-body { padding: 16px 26px; }
.imp-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #FAFBFC; border: 1px solid var(--line-3); font-size: 14px; }
.imp-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; }
.imp-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line-3); }
.imp-sum div { padding: 12px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.imp-sum b { font: 600 24px var(--mono); color: var(--ink); }
.imp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px 26px 22px; }
.dupe { border: 1px solid #E7E9EE; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dupe-why { align-self: flex-start; height: 24px; padding: 0 10px; border-radius: 999px; background: #FFF1C2; color: #5C3D00; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.dupe-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.dupe-pair a { padding: 10px; border-radius: 12px; background: #FAFBFC; display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; min-width: 0; }
.dupe-pair span { color: var(--ink-3); word-break: break-all; }
@media (max-width: 760px) {
  .funnel-grid, .ct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imp-sum, .ct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiz { grid-template-columns: 1fr; }
}

/* ---------- API (BotChat) ---------- */
.ak-fresh { padding: 14px; border-radius: 12px; background: #FFF8CC; border: 1px solid #FFD600; }
.ak-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ak-meta dt { font-size: 12px; color: var(--ink-3, #777); margin-bottom: 2px; }
.ak-meta dd { margin: 0; font-size: 14px; font-weight: 600; }
.ak-log { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ak-log li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; }
.ak-log .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .ak-meta { grid-template-columns: 1fr 1fr; } .ak-log li { grid-template-columns: 1fr auto; } .ak-log li > .subtle { grid-column: 1 / -1; } }

/* ---------- Autorização de gravação ---------- */
.rec-consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line, #E4E5EA); border-radius: 12px; background: var(--paper-2, #FAFAFB); cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rec-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.rec-consent:has(input:checked) { border-color: #FFD600; background: #FFFBE0; }
.rec-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rec-log li { padding: 12px 14px; border: 1px solid var(--line, #E4E5EA); border-radius: 10px; font-size: 13px; line-height: 1.55; }
.rec-log .mono { font-size: 12px; word-break: break-all; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; cursor: pointer; }
/* Confirmar presença: no celular a ação vem primeiro. */
@media (max-width: 800px) { .shell.pane-first #pane { order: -1; } }

/* ---------- PWA ---------- */
.install-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #FFD600; background: transparent; color: #FFD600; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.install-btn:hover { background: rgba(255, 214, 0, .1); }
.install-btn:focus-visible { outline: 2px solid #FFD600; outline-offset: 2px; }
.install-btn.hidden { display: none; }
@media (display-mode: standalone) { .install-btn { display: none; } }
.snd-meta { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* ---------- Evento com data marcada ---------- */
.fx-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fx-count div { background: var(--side-2); border-radius: 12px; padding: 10px 4px; text-align: center; }
.fx-count b { display: block; font-family: var(--mono); font-size: 24px; line-height: 1.1; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.fx-count span { font-size: 11px; color: #9AA0AE; }
.fx-steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; }
.fx-steps li { display: grid; grid-template-columns: 124px 1fr; gap: 10px; padding: 12px 16px; font-size: 14px; }
.fx-steps li + li { border-top: 1px solid var(--line-2); }
.fx-steps b { font-size: 13px; font-weight: 600; }
.fx-kp { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-2); }
.fx-kp b { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.fx-bar { height: 10px; border-radius: 999px; background: var(--line-3); overflow: hidden; }
.fx-bar i { display: block; height: 100%; background: var(--yellow); }
.place.hidden { display: none; }
@media (max-width: 460px) { .fx-steps li { grid-template-columns: 1fr; gap: 0; } }
