/* Calendário de Eventos ACICG ------------------------------------------------
   Visual limpo, responsivo (celular, tablet, desktop) e acessível:
   alvos de toque grandes, contraste alto, foco visível e texto que quebra em vez de cortar. */
:root {
  --navy: #023878;
  --accent: #004899;
  --accent-2: #023878;
  --accent-soft: #e8eff8;
  --brand-yellow: #fbb900;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #dde2e8;
  --line-strong: #c4ccd6;
  --text: #1a2330;
  --muted: #5b6878;
  --weekend: #fbfaf1;
  --holiday: #e9f8ec;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #8a5a00;
  --warn-soft: #fff6db;
  --ok: #157347;
  --ok-soft: #e7f5ec;
  --google: #1a73e8;
  --radius: 8px;
  --shadow: none;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { letter-spacing: -.2px; }
.boot { padding: 48px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
.desktop-only { }
@media (max-width: 900px) { .desktop-only { display: none !important; } }

/* ---------------------------------------------------------------- botões e campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer;
  font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--text);
}
.btn:hover { background: #f1f4f8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: var(--danger); border-color: #f0b8b2; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.icon { width: 38px; padding: 0; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.input, .field input, .field select, .field textarea {
  min-height: 40px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; min-width: 0; width: 100%;
}
.input { width: auto; }
.field input:disabled { background: #f3f5f8; color: var(--muted); }
.field textarea { padding: 9px 11px; resize: vertical; line-height: 1.45; min-height: 80px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: #344256; }
.field > span b { color: var(--danger); }
.field .hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.field.check { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; min-height: 40px; }
.field.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.field.check > span { font-size: 15px; font-weight: 500; color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------------------------------------------------------------- topo */
.topbar {
  display: flex; align-items: center; gap: 22px; padding: 0 20px; height: 64px;
  background: #fff; color: var(--text); position: sticky; top: 0; z-index: 30;
  border-top: 3px solid var(--brand-yellow); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); white-space: nowrap; }
.brand img { height: 38px; width: auto; display: block; }
.brand-title { font-weight: 600; font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line); color: #344256; }
.nav { display: flex; gap: 4px; align-self: stretch; }
.nav a { white-space: nowrap; display: flex; align-items: center; color: #4a5768; text-decoration: none; padding: 0 12px; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.userbtn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 3px 8px 3px 3px; cursor: pointer; min-height: 40px; font-weight: 600; }
.userbtn:hover { background: #f3f5f8; }
.avatar { width: 32px; height: 32px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.menu { position: absolute; right: 12px; top: 62px; background: #fff; color: var(--text); border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(16,24,40,.12); min-width: 230px; padding: 6px; z-index: 40; }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .who b { display: block; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 4px; text-align: left; cursor: pointer; text-decoration: none; color: var(--text); font-weight: 500; }
.menu a:hover, .menu button:hover { background: #f3f5f8; }
.menu .ico { color: var(--muted); }

/* barra de abas inferior no celular */
.tabbar { display: none; }

main { padding: 18px 20px 40px; max-width: 1500px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar h1 { margin: 0 4px; font-size: 22px; min-width: 0; }
.page-title { margin: 0 0 4px; font-size: 22px; }
.page-sub { margin: 0 0 14px; color: var(--muted); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.filters .input { flex: 1 1 170px; }
.banner { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; margin-bottom: 12px; border-radius: 6px; border: 1px solid #f0c36d; background: var(--warn-soft); color: #5e4100; font-weight: 600; cursor: pointer; text-align: left; }
.banner:hover { filter: brightness(.98); }
.banner .go { margin-left: auto; font-weight: 700; color: var(--accent-2); white-space: nowrap; }

/* ---------------------------------------------------------------- calendário (desktop/tablet) */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .dow { padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; background: #f7f9fc; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day { min-height: 128px; padding: 5px 5px 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; }
.day.weekend { background: var(--weekend); }
.day.holiday { background: var(--holiday); }
.day.out { background: #f7f8fa; }
.day.out .num { color: #a3adbb; }
.day .head { display: flex; align-items: flex-start; gap: 6px; min-height: 26px; padding-right: 26px; }
.day .num { font-weight: 700; font-size: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.day.today .num { background: var(--accent); color: #fff; }
.day .hol { font-size: 12px; line-height: 1.25; color: var(--ok); font-weight: 700; cursor: pointer; padding-top: 4px; overflow-wrap: anywhere; }
.day .hol.com { color: #a3336b; font-weight: 600; }
.day .add { position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; border-radius: 4px; border: 1px solid var(--line-strong); background: #fff; color: var(--accent); cursor: pointer; opacity: 0; transition: opacity .12s; display: grid; place-items: center; padding: 0; }
.day:hover .add, .day .add:focus-visible { opacity: 1; }
@media (hover: none) { .day .add { display: none; } }
.chip {
  display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--c, #94a3b8);
  background: color-mix(in srgb, var(--c, #94a3b8) 20%, white); border-radius: 2px; padding: 3px 6px;
  font-size: 13px; line-height: 1.3; cursor: pointer; min-width: 0;
  /* até 2 linhas: o nome aparece inteiro na maioria dos casos, sem cortar no meio */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.chip:hover { filter: brightness(.95); }
.chip .t { font-weight: 700; margin-right: 4px; }
.chip.cancelado { text-decoration: line-through; opacity: .55; }
.chip.provisorio { border-left-style: dashed; background: repeating-linear-gradient(-45deg, #fff, #fff 5px, color-mix(in srgb, var(--c) 18%, white) 5px, color-mix(in srgb, var(--c) 18%, white) 10px); }
/* aviso: só o ícone (borda vermelha parecia uma cor de categoria) */
.src { display: inline-flex; vertical-align: -1px; margin-right: 4px; color: var(--accent); }
.warnbadge { display: inline-flex; vertical-align: -2px; color: var(--danger); margin-right: 3px; background: #fff; border-radius: 50%; padding: 1px; }
.more { border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; padding: 2px 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 0; font-size: 13px; }
.legend button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; border-radius: 4px; padding: 4px 8px 4px 4px; cursor: pointer; color: var(--text); min-height: 32px; }
.legend button.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; border: 1px solid rgba(0,0,0,.15); }
.legend .static { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; color: var(--muted); }

/* ---------------------------------------------------------------- calendário no celular */
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mcal .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.mday { border: 0; background: #fff; border-radius: 4px; min-height: 52px; padding: 5px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.mday.out { opacity: .4; }
.mday.weekend { background: var(--weekend); }
.mday.holiday { background: var(--holiday); }
.mday .num { font-weight: 700; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.mday.today .num { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.mday.sel .num { background: var(--accent); color: #fff; box-shadow: none; }
.mday .dots { display: flex; gap: 3px; height: 7px; }
.mday .dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.dayagenda { margin-top: 14px; }
.dayagenda h2 { font-size: 17px; margin: 0 0 10px; }
.aitem { display: flex; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 8px; cursor: pointer; border-left: 5px solid var(--c, #94a3b8); }
.aitem .time { min-width: 52px; font-weight: 700; font-size: 14px; }
.aitem .time small { display: block; font-weight: 500; color: var(--muted); }
.aitem .info { min-width: 0; flex: 1; }
.aitem .info b { display: block; overflow-wrap: anywhere; }
.aitem .info > span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.aitem.cancelado b { text-decoration: line-through; color: var(--muted); }

/* ---------------------------------------------------------------- salas do dia */
.rooms { border: 1px solid var(--line); overflow: hidden; }
.rooms .r { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); min-height: 58px; }
.rooms .r:last-child { border-bottom: 0; }
.rooms .r.hours { min-height: 0; background: #f7f9fc; }
.rooms .label { padding: 8px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 2px; background: #fff; }
.rooms .r.hours .label { background: #f7f9fc; }
.rooms .label b { display: flex; align-items: center; gap: 8px; }
.status { font-size: 12px; font-weight: 700; }
.status.free { color: var(--ok); }
.status.busy { color: var(--danger); }
.track { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--n)) 100%; cursor: copy; }
.track.ro { cursor: default; }
.hours .track { cursor: default; background: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.hours .track span { font-size: 12px; color: var(--muted); padding: 6px 0 6px 4px; border-left: 1px solid var(--line); }
.block { position: absolute; top: 6px; bottom: 6px; border-radius: 2px; padding: 4px 7px; font-size: 12px; overflow: hidden; cursor: pointer; border: 0; text-align: left; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 32%, white); line-height: 1.25; }
.block:hover { filter: brightness(.95); z-index: 2; }
.block b, .block span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block span { color: #334155; }
.block.via { background: repeating-linear-gradient(-45deg, #f3f4f6, #f3f4f6 6px, #e5e7eb 6px, #e5e7eb 12px); border-left-color: #9ca3af; color: #4b5563; }
.block.cancelado { opacity: .45; text-decoration: line-through; }
.block.clash { box-shadow: 0 0 0 2px var(--danger); }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 3; pointer-events: none; }
/* salas no celular: um cartão por sala */
.roomcards { display: grid; gap: 10px; }
.roomcard { border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #fff; }
.roomcard header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.roomcard header b { flex: 1; }
.slot { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 18%, white); border-radius: 2px; padding: 9px 10px; margin-top: 6px; cursor: pointer; }
.slot.via { border-left-color: #9ca3af; background: #f3f4f6; }
.slot .time { font-weight: 700; min-width: 92px; font-size: 14px; }

/* ---------------------------------------------------------------- tabelas e cartões */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 600; background: #f7f8fa; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: #f5f9fc; }
.tbl tr.cancelado td { color: var(--muted); }
.tbl tr.cancelado td.title { text-decoration: line-through; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: 0; border: 1px solid rgba(0,0,0,.12); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 3px; font-size: 13px; background: color-mix(in srgb, var(--c) 25%, white); border: 1px solid color-mix(in srgb, var(--c) 55%, white); margin: 0 4px 4px 0; white-space: nowrap; }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.strong { font-weight: 600; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; }

/* Auditoria: colunas enxutas, mudanças em linhas curtas */
.audit-filters .input { flex: 0 1 auto; }
.audit-filters input[type="search"] { flex: 1 1 220px; }
.tbl.audit td { font-size: 14px; }
.tbl.audit .col-mudou { min-width: 280px; max-width: 460px; }
.tbl.audit .col-motivo { min-width: 160px; max-width: 280px; overflow-wrap: anywhere; }
.chg { list-style: none; margin: 0; padding: 0; }
.chg li { padding: 1px 0; overflow-wrap: anywhere; }
.chg .k { color: var(--muted); }
.chg .old { color: #9b2c22; text-decoration: line-through; text-decoration-color: rgba(155, 44, 34, .45); }
.chg .new { color: #13603a; font-weight: 600; }
.chg .seta { color: var(--muted); }
.chg-mais summary { cursor: pointer; color: var(--accent); font-size: 13px; padding-top: 2px; }
.aviso { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 13px; color: #7a5200; }
.aviso .ico { margin-top: 2px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px; flex-wrap: wrap; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; background: #eef1f5; color: var(--muted); white-space: nowrap; }
.badge.confirmado { background: var(--ok-soft); color: var(--ok); }
.badge.provisorio { background: var(--warn-soft); color: var(--warn); }
.badge.cancelado, .badge.excluido { background: var(--danger-soft); color: var(--danger); }
.badge.admin { background: #ede9fe; color: #5b21b6; }
.badge.gestor { background: var(--accent-soft); color: var(--accent); }
.badge.google { background: #e8f0fe; color: var(--google); }

/* ---------------------------------------------------------------- janelas */
.backdrop { position: fixed; inset: 0; background: rgba(15, 25, 40, .5); display: grid; place-items: start center; padding: 28px 16px; overflow-y: auto; z-index: 50; }
.modal { width: min(720px, 100%); background: #fff; border-radius: 8px; box-shadow: 0 20px 50px rgba(16,24,40,.25); }
.modal.wide { width: min(980px, 100%); }
.modal header { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.modal header h2 { margin: 0; font-size: 19px; flex: 1 1 200px; line-height: 1.3; overflow-wrap: anywhere; }
.modal .body { padding: 16px 18px; }
.modal footer { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 8px 8px; flex-wrap: wrap; position: sticky; bottom: -28px; box-shadow: 0 -1px 0 var(--line); }
.colorbar { height: 4px; border-radius: 8px 8px 0 0; display: flex; overflow: hidden; }
.colorbar i { flex: 1; }

.alert { padding: 10px 12px; border-radius: 4px; font-size: 14px; line-height: 1.45; }
.alert.warn { background: var(--warn-soft); color: #5e4100; border: 1px solid #f1d58a; }
.alert.danger { background: var(--danger-soft); color: var(--danger); border: 1px solid #f0b8b2; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #b7dfc4; }
.alert.info { background: #eef5ff; color: #1e3a6b; border: 1px solid #c9dcfb; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert h4 { margin: 0 0 4px; font-size: 14px; }
.alert-item { border: 1px solid #f3c3bd; background: #fff8f7; border-radius: 4px; padding: 10px 12px; font-size: 14px; }
.alert-item + .alert-item { margin-top: 8px; }
.alert-item b.k { display: block; color: var(--danger); text-transform: uppercase; font-size: 11px; letter-spacing: .6px; margin-bottom: 4px; }
.alert-item.dup { border-color: #f1d58a; background: #fffbea; }
.alert-item.dup b.k { color: var(--warn); }
.alert-item a { cursor: pointer; font-weight: 600; }

/* ---------------------------------------------------------------- formulário em etapas */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
.step { padding: 4px 0 18px; }
.step + .step { border-top: 1px solid var(--line); padding-top: 16px; }
.step > h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--navy); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.step > h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.step > h3 small { font-weight: 500; color: var(--muted); font-size: 13px; }
.timebox { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.timebox .field { flex: 1 1 130px; }
.timebox .sep { padding-bottom: 10px; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; min-height: 40px; border-radius: 6px; cursor: pointer; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 600; color: #334155; }
.tag i { width: 12px; height: 12px; border-radius: 2px; border: 1px solid rgba(0,0,0,.15); }
.tag:hover { border-color: var(--accent); background: #f5f8fc; }
.tag .ok { display: none; }
/* Marcado: fundo azul sólido, letra branca e ✓ no lugar do quadradinho de cor. Sem margem para dúvida. */
.tag.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag.on:hover { background: var(--accent-2); }
.tag.on i { display: none; }
.tag.on .ok { display: inline-flex; }
.tag-summary { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.tag-summary b { color: var(--text); }
.taggroup + .taggroup { margin-top: 12px; }
.taggroup > span { display: block; font-size: 13px; font-weight: 700; color: #344256; margin-bottom: 7px; }
.checkpanel { position: sticky; top: 0; }
.checkpanel h4 { margin: 0 0 6px; font-size: 14px; }
.confirm { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 4px; background: #fff; border: 1px solid #f1d58a; margin-top: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.confirm input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }

/* ---------------------------------------------------------------- detalhe do evento */
.facts { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; margin: 0; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 700; padding-top: 2px; }
.facts dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.trail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.trail > div { background: #f7f8fa; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; }
.trail small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
details.history { margin-top: 16px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; }
details.history summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin: 22px 0 10px; }
.timeline { list-style: none; margin: 0 0 12px; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 16px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline li.evento_cancelado::before, .timeline li.evento_excluido::before, .timeline li.sinc_removido::before, .timeline li.google_excluiu::before { background: var(--danger); }
.timeline li.sinc_criado::before, .timeline li.sinc_alterado::before, .timeline li.google_criou::before, .timeline li.google_alterou::before { background: var(--google); }
.timeline .when { font-size: 13px; color: var(--muted); }
.timeline .reason { margin-top: 4px; padding: 6px 10px; background: #f7f9fc; border-left: 3px solid var(--accent); border-radius: 4px; }
.changes { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.changes td { border: 1px solid var(--line); padding: 4px 8px; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.changes td:first-child { width: 140px; color: var(--muted); font-weight: 600; }
.changes .old { background: #fff4f2; color: #8a1c12; }
.changes .new { background: #f0faf3; color: #12572f; }

/* ---------------------------------------------------------------- ajuda, login, abas, avisos */
.help h3 { margin: 18px 0 6px; font-size: 16px; }
.help h3:first-child { margin-top: 0; }
.help p, .help li { line-height: 1.55; }
.help ol, .help ul { padding-left: 20px; margin: 6px 0; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); border-top: 4px solid var(--brand-yellow); }
.login-logo { height: 56px; width: auto; display: block; margin-bottom: 18px; }
.login { width: min(400px, 100%); padding: 28px; }
.login h1 { margin: 0 0 4px; font-size: 20px; font-weight: 600; color: var(--navy); }
.login p { margin: 0 0 18px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #1f2937; color: #fff; padding: 11px 15px; border-radius: 6px; box-shadow: var(--shadow); max-width: 420px; font-weight: 600; }
.toast.error { background: var(--danger); }


/* ---------------------------------------------------------------- semana (estilo Google Agenda) */
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.segmented button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: #fff; padding: 0 12px; min-height: 36px; font-weight: 600; cursor: pointer; color: #4a5768; }
.segmented button + button { border-left: 1px solid var(--line-strong); }
.segmented button.on { background: var(--accent); color: #fff; }
.segmented button.on .src { color: #fff; }
.week-wrap { max-height: calc(100vh - 210px); overflow: auto; border: 1px solid var(--line); }
.week { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(110px, 1fr)); }
.wk-corner, .wk-day, .wk-label, .wk-allday { position: sticky; background: #fff; z-index: 3; }
.wk-corner, .wk-day { top: 0; border-bottom: 1px solid var(--line); }
.wk-label, .wk-allday { top: 52px; border-bottom: 1px solid var(--line-strong); }
.wk-corner, .wk-label { left: 0; z-index: 4; }
.wk-day { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border-left: 1px solid var(--line); }
.wk-day .dow { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.wk-day .num { font-size: 18px; font-weight: 600; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.wk-day.today .dow { color: var(--accent); }
.wk-day.today .num { background: var(--accent); color: #fff; }
.wk-label { font-size: 11px; color: var(--muted); padding: 6px 4px; text-align: right; }
.wk-allday { border-left: 1px solid var(--line); padding: 3px; display: flex; flex-direction: column; gap: 2px; min-height: 30px; }
.wk-allday.holiday { background: var(--holiday); }
.wk-chip { border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 22%, white); border-radius: 2px; padding: 2px 5px; font-size: 12px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-times { position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--line); }
.wk-times span { position: absolute; right: 6px; transform: translateY(-7px); font-size: 11px; color: var(--muted); }
.wk-times span:first-child { transform: none; }
.wk-col { position: relative; border-left: 1px solid var(--line);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px), linear-gradient(to bottom, #eef1f4 1px, transparent 1px);
  background-size: 100% var(--hora, 48px), 100% calc(var(--hora, 48px) / 2); }
.wk-col.weekend { background-color: var(--weekend); }
.wk-col.can-add { cursor: copy; }
.wk-ev { position: absolute; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 26%, white); border-radius: 3px; padding: 3px 6px; text-align: left; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 1.25; box-shadow: 0 0 0 1px #fff; }
.wk-ev:hover { filter: brightness(.95); z-index: 2; }
.wk-ev .t { font-weight: 600; color: #334155; white-space: nowrap; }
.wk-ev .n { font-weight: 600; color: #111827; overflow-wrap: break-word; hyphens: auto; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wk-ev .l { color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev.curto { flex-direction: row; gap: 4px; align-items: center; white-space: nowrap; }
.wk-ev.curto .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev.estreito { padding: 2px 4px; }
.wk-ev.estreito .n { -webkit-line-clamp: 3; font-size: 11px; line-height: 1.2; }
.wk-ev.estreito .t { font-size: 11px; }
.wk-ev.cancelado { opacity: .5; text-decoration: line-through; }
.wk-ev.provisorio { border-left-style: dashed; }
.wk-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 3; pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }

/* "O que já está marcado" no formulário */
.ocupacoes { box-shadow: none; }
.ocupacoes h4 { margin: 0 0 10px; font-size: 14px; color: var(--navy); }
.ocup-grupo + .ocup-grupo { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ocup-grupo.sec { background: #f3f7fc; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; padding-bottom: 6px; }
.ocup-tit { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #344256; margin-bottom: 6px; }
.ocup-tit .qtd { margin-left: auto; min-width: 22px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); background: #eef1f5; border-radius: 3px; padding: 0 6px; }
.ocupacoes ul { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.ocupacoes li { display: flex; gap: 8px; padding: 6px 8px; border-left: 3px solid var(--c); background: #fff; border-radius: 2px; margin-bottom: 4px; font-size: 13px; }
.ocup-grupo:not(.sec) li { background: #f7f8fa; }
.ocupacoes li .h { font-weight: 600; white-space: nowrap; min-width: 86px; }
.ocupacoes li .d { min-width: 0; overflow-wrap: anywhere; }
.ocupacoes li .d small { display: block; color: var(--muted); }
.ocupacoes li.bate { background: var(--warn-soft) !important; }
.ocupacoes li.mesma-sala { background: var(--danger-soft) !important; }
.ocupacoes li .tag-bate { display: block; font-size: 12px; font-weight: 600; color: var(--danger); }
.ocupacoes li .tag-bate.amarelo { color: #7a5200; }


/* ---------------------------------------------------------------- definir sala e resolver conflito */
.banner.info { border-color: #b9cdea; background: #eef4fb; color: #1e3a6b; }
.conf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.conf-card { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.conf-tit { font-weight: 600; font-size: 15px; }
.salas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sala-op { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer; min-height: 58px; }
.sala-op .nome { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.sala-op .nome i { width: 12px; height: 12px; border-radius: 2px; border: 1px solid rgba(0,0,0,.15); }
.sala-op .ok { display: none; margin-left: auto; }
.sala-op .estado { font-size: 12px; color: var(--muted); }
.sala-op.livre .estado { color: var(--ok); font-weight: 600; }
.sala-op.ocupada { background: #fff8f7; border-color: #f0c4be; }
.sala-op.ocupada .estado { color: var(--danger); }
.sala-op:hover { border-color: var(--accent); }
.sala-op.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sala-op.on .estado { color: #e6eef8; }
.sala-op.on .nome i { display: none; }
.sala-op.on .ok { display: inline-flex; }
.lista-sem-sala { list-style: none; margin: 0; padding: 0; }
.lista-sem-sala li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lista-sem-sala li .h { min-width: 150px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.lista-sem-sala li .d { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sem-sala { margin-top: 14px; }

/* ---------------------------------------------------------------- telas médias (tablet / notebook pequeno) */
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; }
  .checkpanel { position: static; }
  .nav a { padding: 9px 10px; }
  .day { min-height: 110px; }
  .chip { font-size: 12px; }
}

/* ---------------------------------------------------------------- celular */
@media (max-width: 900px) {
  :root { font-size: 16px; } /* 16px evita o zoom automático do iPhone ao tocar num campo */
  .topbar { padding: 0 12px; gap: 10px; height: 58px; }
  .topbar .nav, .userbtn .uname, .brand-title { display: none; }
  .brand img { height: 32px; }
  .menu { right: 8px; left: 8px; top: 58px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(var(--tabs, 3), 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 9px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; border-top: 2px solid transparent; }
  .tabbar a.active { color: var(--accent); border-top-color: var(--accent); }
  main { padding: 12px 10px 88px; }
  .pad { padding: 12px; }
  .toolbar h1 { font-size: 19px; }
  .grid2, .grid3, .facts, .trail { grid-template-columns: 1fr; }
  .facts dt { padding-top: 6px; }
  .backdrop { padding: 0; display: block; } /* bloco: a janela cresce junto com o conteúdo */
  .modal, .modal.wide { width: 100%; min-height: 100%; border-radius: 0; box-shadow: none; }
  .colorbar { border-radius: 0; }
  .modal footer { border-radius: 0; bottom: 0; }
  .modal footer .btn { flex: 1 1 auto; }
  #toasts { left: 10px; right: 10px; bottom: 80px; }
  .toast { max-width: none; }
  .filters .input { flex: 1 1 100%; }
  .conf-grid { grid-template-columns: 1fr; }
  .lista-sem-sala li { flex-wrap: wrap; }
  .lista-sem-sala li .h { min-width: 0; }
  .week { grid-template-columns: 48px repeat(var(--cols), minmax(0, 1fr)); }
  .week-wrap { max-height: calc(100vh - 250px); }
  .segmented button { padding: 0 9px; }
  .tbl th, .tbl td { padding: 8px 6px; }
}

@media print {
  .topbar, .tabbar, .toolbar .btn, .filters, .banner, #toasts, .day .add { display: none !important; }
  body, main { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 0; }
  .day { min-height: 95px; break-inside: avoid; }
  .chip, .day.weekend, .day.holiday, .block, .legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* reunião online */
.online-box { padding: 10px 12px; border: 1px solid #c9dcfb; background: #f3f8ff; border-radius: 6px; }
.online-box .ico { vertical-align: -3px; }
.btn.entrar { align-self: flex-start; min-height: 42px; font-size: 15px; }
.online-ico { display: inline-flex; vertical-align: -1px; margin-right: 3px; color: var(--accent); }
.aviso-link { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #f3f8ff; border: 1px solid #c9dcfb; font-size: 13px; color: #1e3a6b; }
.aviso-link .ico { vertical-align: -3px; }

/* cores de locais e etiquetas */
.cor-rapida { display: inline-block; width: 28px; height: 28px; border-radius: 4px; border: 1px solid rgba(0,0,0,.18); cursor: pointer; position: relative; }
.cor-rapida:hover { box-shadow: 0 0 0 2px var(--accent); }
.cor-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.paleta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.paleta-cor { width: 28px; height: 28px; border-radius: 4px; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.paleta-cor:hover, .paleta-cor.on { box-shadow: 0 0 0 2px var(--accent); }
.paleta-livre { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; }
.paleta-livre input[type=color] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; min-height: 0; }

/* sem sala: cinza com borda tracejada (cor sempre significa o local) */
.chip.semsala, .wk-ev.semsala, .aitem.semsala { border-left-style: dashed; border-left-color: #8a96a6; }
.chip.semsala, .wk-ev.semsala { background: #eef1f4; }
.leg-semsala { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: #eef1f4; border: 1px dashed #8a96a6 !important; }
/* quadradinho de cor clicável na legenda (admin) */
.leg-cor { position: relative; display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); cursor: pointer; }
.leg-cor:hover { box-shadow: 0 0 0 2px var(--accent); }

/* ---------------------------------------------------------------- cores fortes (padrão): igual à legenda */
body:not(.cores-suaves) .chip,
body:not(.cores-suaves) .wk-ev,
body:not(.cores-suaves) .wk-chip,
body:not(.cores-suaves) .block:not(.via) {
  background: var(--c); color: var(--tx, #1a2330);
  border-left-color: color-mix(in srgb, var(--c) 65%, black);
}
body:not(.cores-suaves) .wk-ev .t, body:not(.cores-suaves) .wk-ev .n, body:not(.cores-suaves) .wk-ev .l,
body:not(.cores-suaves) .block span, body:not(.cores-suaves) .chip .src, body:not(.cores-suaves) .wk-ev .src,
body:not(.cores-suaves) .wk-chip .src, body:not(.cores-suaves) .chip .online-ico, body:not(.cores-suaves) .wk-ev .online-ico,
body:not(.cores-suaves) .block .src { color: inherit; }
body:not(.cores-suaves) .wk-ev .l { opacity: .85; }
body:not(.cores-suaves) .chip.provisorio, body:not(.cores-suaves) .wk-ev.provisorio {
  background: repeating-linear-gradient(-45deg, var(--c), var(--c) 6px, color-mix(in srgb, var(--c) 55%, white) 6px, color-mix(in srgb, var(--c) 55%, white) 12px);
}
body:not(.cores-suaves) .chip.semsala, body:not(.cores-suaves) .wk-ev.semsala { background: #e9edf2; color: #1a2330; border-left-color: #8a96a6; }
body:not(.cores-suaves) .chip:hover, body:not(.cores-suaves) .wk-ev:hover { filter: brightness(.93); }

/* ---------------------------------------------------------------- legenda personalizável */
.legend { align-items: center; }
.leg-qtd { font-size: 11px; font-weight: 700; color: var(--muted); background: #eef1f5; border-radius: 3px; padding: 0 5px; min-width: 18px; text-align: center; }
.leg-config { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 6px; margin-left: auto; }
.leg-config:hover { text-decoration: underline; }
.legend.vertical { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.legend.vertical > button, .legend.vertical > .static { justify-content: flex-start; width: 100%; }
.legend.vertical .leg-nome { flex: 1; text-align: left; }
.legend.vertical .leg-config { margin: 8px 0 0; align-self: flex-start; }
.leg-tit { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 0 4px 6px; }
.com-legenda-lado { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; align-items: start; }
.com-legenda-lado > .legend { position: sticky; top: 76px; padding-top: 0; }
.seg-escolha { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.seg-escolha button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer; }
.seg-escolha button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }

/* compromisso da agenda oculta, na Conferência */
.agenda-card { background: #fff; border: 1px solid #e8d9a8; border-left: 4px solid #d4a017; border-radius: 4px; padding: 8px 10px; margin-top: 6px; color: var(--text); }
.agenda-card.bate { border-left-color: var(--danger); }
.agenda-card .ag-tit { font-weight: 700; margin-bottom: 3px; overflow-wrap: anywhere; }
.agenda-card .ag-linha { display: flex; align-items: center; gap: 6px; font-size: 13px; overflow-wrap: anywhere; }
.agenda-card .ag-linha .ico { color: var(--muted); flex: none; }

/* Conferência: escolha entre corrigir ou salvar mesmo assim */
.btn.alerta { background: #b45309; border-color: #b45309; color: #fff; }
.btn.alerta:hover { background: #92400e; border-color: #92400e; }
.decisao { margin-top: 12px; padding: 12px; border-radius: 6px; background: #fffbeb; border: 1px solid #f1d58a; }
.decisao .dec-tit { font-weight: 700; font-size: 15px; color: var(--text); }
.decisao .dec-texto { margin: 4px 0 10px; font-size: 13px; color: var(--text); }
.decisao .dec-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.decisao .dec-acoes .btn { flex: 1 1 150px; justify-content: center; }
.decisao .dec-nota { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.step.piscar { animation: piscar-local 1.6s ease-out; border-radius: 6px; }
@keyframes piscar-local { 0%, 40% { box-shadow: 0 0 0 3px #fbb900; } 100% { box-shadow: 0 0 0 3px transparent; } }

/* rodapé do formulário: atalho para o aviso */
.ver-aviso { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; color: #92400e; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ver-aviso.hidden { display: none; }
.agenda-card .ag-rot { white-space: nowrap; color: var(--muted); }
.agenda-card .ag-linha b { min-width: 0; }

/* formulário no celular */
@media (max-width: 900px) {
  .timebox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .timebox > .field:first-child, .timebox > .fim-data { grid-column: 1 / -1; }
  .timebox .sep { display: none; }
  .checkpanel { margin: 4px 0 18px; }
  .modal footer { gap: 8px 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .modal footer .foot-hint, .modal footer .grow { display: none; }
  .modal footer .ver-aviso { flex: 1 1 100%; justify-content: center; }
  .modal footer .btn { flex: 0 0 auto; min-height: 46px; }
  .modal footer .btn.primary, .modal footer .btn.alerta { flex: 1 1 auto; }
  .decisao .dec-acoes .btn { min-height: 46px; }
}
.agenda-card .ag-org { align-items: flex-start; }
.agenda-card .ag-org .ico { margin-top: 2px; }
.agenda-card .ag-org > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.agenda-card .ag-org .ag-rot { font-size: 12px; }
.agenda-card .ag-email { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

/* login da fase de testes */
.aviso-teste { background: #fffbeb; border: 1px solid #f1d58a; border-radius: 6px; padding: 10px 12px; margin: 4px 0 14px; font-size: 14px; color: var(--text); }
.aviso-teste b { display: block; color: #92400e; margin-bottom: 2px; }
.btn.entrar-teste { width: 100%; justify-content: center; min-height: 46px; font-size: 16px; }
.link-admin { display: block; margin: 18px auto 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Administração: E-mails da agenda */
.email-previa { width: 100%; height: 60vh; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; }
.row.wrap { flex-wrap: wrap; }

/* Login: Entrar com a conta corporativa Google */
.btn.btn-google { width: 100%; justify-content: center; gap: 10px; background: #fff; border: 1px solid #c7ccd4; color: #1f2937; font-weight: 600; min-height: 44px; text-decoration: none; }
.btn.btn-google:hover { background: #f6f8fb; border-color: #9aa3af; }
.ou-linha { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--muted, #6b7280); font-size: 13px; }
.ou-linha::before, .ou-linha::after { content: ""; flex: 1; height: 1px; background: #e2e6ec; }
