@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
:root {
  /* Paleta Grupo Tellescom — extraída de tellescom.com.br e do logo oficial */
  --tc-coral: #FE4F31;        /* símbolo do logo, destaques */
  --tc-coral-dark: #D93A1F;   /* texto/links em fundo claro (contraste) */
  --tc-coral-soft: #FFE9E4;
  --tc-graphite: #262626;     /* textos e fundos escuros */
  --tc-black: #0B0707;
  --tc-stone: #E2DFDE;        /* texto do logo, fundos claros */
  --tc-stone-2: #CCC5C2;
  --tc-purple: #7D317D;       /* cor secundária */
  --tc-lilac: #D6B9FC;

  --bg: #F4F2F1;
  --surface: #ffffff;
  --surface-2: #FAF8F7;
  --ink: var(--tc-graphite);
  --ink-2: #4D4746;
  --muted: #857C79;
  --line: var(--tc-stone);
  --line-2: #EEEBEA;
  --navy: var(--tc-graphite);      /* (nome legado) cor escura principal */
  --navy-2: #3A3534;
  --accent: var(--tc-coral);
  --accent-ink: #ffffff;
  --free: #2E9E6E;
  --free-bg: #E2F3EA;
  --busy: var(--tc-graphite);
  --busy-bg: #ECE9E8;
  --mine: var(--tc-purple);
  --mine-bg: #F4EAFE;
  --event: #F0EDEC;
  --event-border: var(--tc-stone-2);
  --event-ink: var(--tc-graphite);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(38, 38, 38, .06), 0 4px 16px rgba(38, 38, 38, .06);
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--tc-coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.stack { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- layout ---------- */
body:not(.login-body) { display: grid; grid-template-columns: 232px 1fr; }
.rail { background: linear-gradient(180deg, var(--tc-graphite), var(--tc-black)); color: var(--tc-stone); display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; padding: 0 8px 20px; }
.brand-logo { display: grid; gap: 6px; padding: 4px 10px 22px; color: inherit; }
.brand-logo:hover { text-decoration: none; }
.brand-logo img { width: 150px; height: auto; display: block; }
.brand-logo span { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #9C9492; padding-left: 47px; margin-top: -4px; }
.brand:hover { text-decoration: none; }
.brand div { display: grid; line-height: 1.15; }
.brand strong { font-size: 16px; color: #fff; letter-spacing: .2px; }
.brand span { font-size: 12px; opacity: .7; }
.rail nav { display: grid; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: #BDB6B3; }
.rail nav a svg { width: 20px; height: 20px; flex: none; }
.rail nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.rail nav a.active { background: rgba(254,79,49,.14); color: #fff; box-shadow: inset 3px 0 0 var(--tc-coral); }
.rail nav a.active svg { color: var(--tc-coral); }
.rail-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 6px 0; display: grid; gap: 10px; }
.me { display: flex; gap: 10px; align-items: center; min-width: 0; }
.me img, .avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.avatar { display: grid; place-items: center; background: var(--tc-coral); color: #fff; font-weight: 700; }
.me div { display: grid; min-width: 0; line-height: 1.2; }
.me strong { color: #fff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me span { font-size: 11.5px; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout { color: #BDB6B3; font-size: 12.5px; }
.logout:hover { color: var(--tc-coral); }

.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 19px; margin: 0; font-weight: 650; letter-spacing: -.2px; white-space: nowrap; }
.topbar-tools { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page { padding: 22px 28px 40px; }
.loading { color: var(--muted); padding: 40px 0; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 550; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--tc-coral); border-color: var(--tc-coral); color: #fff; font-weight: 650; }
.btn-primary:hover { background: #EC4428; border-color: #EC4428; }
.btn-dark { background: var(--tc-graphite); border-color: var(--tc-graphite); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-accent { background: var(--tc-purple); border-color: var(--tc-purple); color: #fff; }
.btn-accent:hover { background: #6A286A; text-decoration: none; }
.btn-danger { color: var(--tc-coral-dark); border-color: #F7C4B9; }
.btn-danger:hover { background: var(--tc-coral-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-google { background: #fff; border-color: var(--tc-stone-2); height: 44px; font-size: 15px; color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 34px; padding: 0; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 12px; cursor: pointer; color: var(--ink-2); font-weight: 550; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--tc-graphite); color: #fff; }

.datenav { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); height: 36px; }
.datenav button { border: 0; background: transparent; width: 32px; height: 34px; cursor: pointer; color: var(--ink-2); font-size: 18px; }
.datenav button:hover { background: var(--surface-2); }
.datenav .today { width: auto; padding: 0 10px; font-size: 13px; font-weight: 600; }
.datenav input[type=date] { border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 34px; padding: 0 8px; background: transparent; }
.datenav .label { padding: 0 10px; font-weight: 600; min-width: 170px; text-align: center; }

input[type=text], input[type=email], input[type=date], input[type=time], input[type=number], select, textarea {
  height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--surface); outline: none; }
textarea { height: auto; padding: 8px 10px; resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { border-color: var(--tc-coral); box-shadow: 0 0 0 3px rgba(254,79,49,.15); }
.check input { accent-color: var(--tc-coral); }
.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card h2, .section-title { font-size: 15px; margin: 0 0 12px; font-weight: 650; }
.alert { padding: 10px 12px; border-radius: 8px; background: var(--tc-coral-soft); color: #A3281A; font-size: 13px; }
.alert-info { background: var(--mine-bg); color: #5E235E; }
.alert-warn { background: #fff4d9; color: #6b4b00; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--ink-2); }
.badge.free { background: var(--free-bg); color: #1d6b49; }
.badge.busy { background: var(--tc-coral-soft); color: #A3281A; }
.badge.mine { background: var(--mine-bg); color: var(--tc-purple); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.free { background: var(--free); } .dot.busy { background: var(--busy); } .dot.mine { background: var(--mine); }
.legend { display: inline-flex; gap: 14px; color: var(--ink-2); font-size: 12.5px; align-items: center; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

/* ---------- mapa ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.map-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stage-wrap { padding: 10px; }
.stage { position: relative; user-select: none; }
.stage img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; border: 0; background: none; padding: 0; }
.pin .bubble { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: transform .12s; }
.pin.free .bubble { background: var(--free); }
.pin.busy .bubble { background: var(--busy); }
.pin.mine .bubble { background: var(--mine); }
.pin:hover .bubble { transform: scale(1.12); }
.pin .tag { background: rgba(38,38,38,.92); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.pin.dragging { cursor: grabbing; }
.pin.dragging .bubble { transform: scale(1.2); outline: 3px solid var(--tc-coral); }
.stage.placing { cursor: crosshair; }
.room-list { display: grid; gap: 8px; }
.room-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.room-item:hover { border-color: var(--tc-stone-2); background: var(--surface-2); }
.room-item strong { display: block; font-size: 13.5px; }
.room-item small { color: var(--muted); font-size: 12px; }
.room-item .cap { font-size: 12px; color: var(--ink-2); display: inline-flex; gap: 3px; align-items: center; }
.room-item .cap svg { width: 14px; height: 14px; }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11, 7, 7, .35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(460px, 100vw); background: var(--surface); z-index: 50; box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(105%); transition: transform .2s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); border-radius: 8px; z-index: 2; }
.drawer-close:hover { background: var(--surface-2); }
.drawer-body { overflow-y: auto; padding: 22px 22px 28px; flex: 1; }
.dr-head h2 { margin: 0 40px 6px 0; font-size: 19px; }
.dr-head .row { color: var(--ink-2); font-size: 13px; }
.dr-section { margin-top: 18px; }
.dr-section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 8px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }

/* timeline vertical (dia de uma sala) */
.vtl { position: relative; border: 1px solid var(--line); border-radius: 9px; overflow-y: auto; max-height: 340px; background: var(--surface); }
.vtl-inner { position: relative; margin-left: 52px; cursor: crosshair; touch-action: none; }
.vtl-hour { position: absolute; left: -52px; right: 0; border-top: 1px solid var(--line-2); }
.vtl-hour span { position: absolute; left: 8px; top: -8px; font-size: 11px; color: var(--muted); background: var(--surface); padding: 0 2px; }
.vtl-past { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(-45deg, rgba(0,0,0,.025) 0 6px, transparent 6px 12px); pointer-events: none; }
.vtl-ev { position: absolute; left: 4px; right: 6px; border-radius: 6px; background: var(--event); color: var(--event-ink); font-size: 12px; padding: 3px 7px; overflow: hidden; border-left: 3px solid var(--event-border); cursor: pointer; line-height: 1.25; }
.vtl-ev.mine { background: var(--mine-bg); border-left-color: var(--mine); }
.vtl-ev b { font-weight: 650; }
.vtl-sel { position: absolute; left: 4px; right: 6px; border-radius: 6px; background: rgba(254,79,49,.14); border: 2px solid var(--tc-coral); font-size: 12px; font-weight: 700; color: #A3281A; padding: 2px 7px; pointer-events: none; }
.vtl-now { position: absolute; left: -6px; right: 0; border-top: 2px solid var(--tc-coral); pointer-events: none; }
.vtl-now::before { content: ""; position: absolute; left: -2px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--tc-coral); }

/* formulário */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.form-grid .full { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--line-2); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12.5px; }
.chip button { border: 0; background: transparent; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; color: var(--muted); }
.chip button:hover { background: var(--tc-stone); }
.ac { position: relative; }
.ac input { width: 100%; }
.field select, .field input, .field textarea { width: 100%; min-width: 0; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 5; max-height: 220px; overflow-y: auto; }
.ac-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 10px; cursor: pointer; }
.ac-list button:hover, .ac-list button.hl { background: var(--surface-2); }
.ac-list small { display: block; color: var(--muted); font-size: 11.5px; }
.form-actions { display: flex; gap: 8px; margin-top: 16px; position: sticky; bottom: -28px; background: var(--surface); padding: 12px 0 4px; }
.form-actions .btn-primary { flex: 1; }

/* ---------- agenda (grade) ---------- */
.agenda-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.grid-day { overflow-x: auto; }
.gd { min-width: 900px; }
.gd-head, .gd-row { display: grid; grid-template-columns: 200px 1fr; }
.gd-head { position: sticky; top: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); z-index: 2; }
.gd-hours { position: relative; height: 34px; }
.gd-hours span { position: absolute; top: 9px; font-size: 11.5px; color: var(--muted); transform: translateX(-50%); }
.gd-room { padding: 10px 14px; border-right: 1px solid var(--line); display: grid; align-content: center; gap: 2px; }
.gd-room strong { font-size: 13.5px; } .gd-room small { color: var(--muted); font-size: 12px; }
.gd-row { border-bottom: 1px solid var(--line-2); min-height: 58px; }
.gd-row:last-child { border-bottom: 0; }
.gd-track { position: relative; cursor: crosshair; background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px); }
.gd-ev { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; background: var(--event); border-left: 3px solid var(--event-border); color: var(--event-ink); font-size: 11.5px; padding: 3px 6px; overflow: hidden; cursor: pointer; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.gd-ev.mine { background: var(--mine-bg); border-left-color: var(--mine); }
.gd-ev b { display: block; overflow: hidden; text-overflow: ellipsis; }
.gd-now { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--tc-coral); pointer-events: none; z-index: 1; }
.gd-past { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(0,0,0,.03); pointer-events: none; }
.gd-row.dim { opacity: .38; }

.gw { min-width: 900px; border-collapse: collapse; width: 100%; table-layout: fixed; }
.gw th, .gw td { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); vertical-align: top; }
.gw th { background: var(--surface-2); font-size: 12.5px; padding: 8px; text-align: left; font-weight: 600; color: var(--ink-2); }
.gw th.today { color: var(--tc-coral-dark); }
.gw th:first-child, .gw td:first-child { width: 190px; }
.gw td { padding: 6px; height: 64px; cursor: pointer; }
.gw td:hover { background: var(--surface-2); }
.gw td.room { cursor: default; padding: 10px 12px; } .gw td.room:hover { background: none; }
.gw .wk-ev { display: block; font-size: 11.5px; border-left: 2px solid var(--event-border); background: var(--event); color: var(--event-ink); border-radius: 4px; padding: 1px 5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw .wk-ev.mine { background: var(--mine-bg); border-left-color: var(--mine); }
.gw .weekend { background: var(--surface-2); }

/* ---------- minhas ---------- */
.day-group { margin-bottom: 22px; }
.day-group h3 { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.bk { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; }
.bk + .bk { border-top: 1px solid var(--line-2); }
.bk .when { font-weight: 650; font-size: 14px; }
.bk .when small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.bk .what strong { display: block; }
.bk .what span { color: var(--ink-2); font-size: 13px; }

/* ---------- relatório ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.kpi strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin-top: 4px; }
.report-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--tc-coral); border-radius: 99px; }
.hbars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.hbars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.hbars i { display: block; width: 100%; background: var(--tc-purple); border-radius: 4px 4px 0 0; min-height: 2px; }
.hbars span { font-size: 11px; color: var(--muted); }

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 18px; align-items: start; }
.admin-grid > * { min-width: 0; }
.admin-grid .row > input { flex: 1; min-width: 0; }
.sync-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fp-list { display: grid; gap: 8px; }
.fp-item { display: flex; gap: 8px; align-items: center; }
.fp-item input { flex: 1; }
.room-admin td { vertical-align: middle; }
.room-admin select { height: 30px; max-width: 150px; }
.room-admin tr.sel td { background: var(--tc-coral-soft); }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 9px; box-shadow: var(--shadow); font-size: 13.5px; max-width: 520px; animation: tin .18s ease; }
.toast.err { background: #B42E1A; }
.toast.ok { background: #1d6b49; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- login ---------- */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 16px;
  background: radial-gradient(900px 520px at 85% 110%, rgba(254,79,49,.35) 0, transparent 60%), radial-gradient(700px 420px at 0% -10%, rgba(125,49,125,.35) 0, transparent 60%), var(--tc-black); }
.login-logo { width: 190px; height: auto; display: block; margin-bottom: 4px; }
.login-card > * { min-width: 0; }
.login-card select { width: 100%; }
.login-card { grid-template-columns: minmax(0, 1fr); width: min(420px, 100%); background: var(--surface); border-radius: 16px; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.45); display: grid; gap: 14px; border-top: 4px solid var(--tc-coral); }
.login-card h1 { margin: 6px 0 0; font-size: 22px; }
.login-card p { margin: 0; }
.brand-lg { padding: 0; color: var(--ink); }
.brand-lg strong { color: var(--ink); font-size: 18px; }
.brand-lg span { color: var(--muted); opacity: 1; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .map-layout, .report-grid, .admin-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  body:not(.login-body) { grid-template-columns: 1fr; }
  .rail { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; padding: 4px 6px; z-index: 30; }
  .rail .brand, .rail-foot { display: none; }
  .rail nav { grid-auto-flow: column; width: 100%; }
  .rail nav a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 2px; justify-content: center; }
  .rail nav a.active { box-shadow: inset 0 3px 0 var(--tc-coral); }
  .topbar { padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .page { padding: 16px 16px 90px; }
  .bk { grid-template-columns: 1fr; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .datenav .label { min-width: 0; }
  .pin .tag { display: none; }
  .pin .bubble { width: 28px; height: 28px; font-size: 11px; border-width: 2px; }
  .topbar h1 { font-size: 17px; }
}

/* ---------- convidados / acesso ---------- */
.alert-ok { background: var(--free-bg); color: #1d6b49; }
.login-alt { border-top: 1px solid var(--line); padding-top: 12px; }
.login-alt summary { cursor: pointer; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.login-alt summary:hover { color: var(--tc-coral-dark); }
.login-alt form { margin-top: 12px; }
.login-alt input { width: 100%; }
.inline-input { height: 30px; width: 100%; max-width: 220px; }
.inline-input.num { max-width: 70px; }
.me .guest-tag { display: inline-block; margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--tc-lilac); }
