/* Granza Meet — tema azul corporativo */
:root {
  --bg: #f4f6fa; --surface: #ffffff; --surface-2: #f1f4f9; --surface-3: #e8edf5;
  --text: #0f172a; --text-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #cbd5e1;
  --navy: #072e45; --navy-2: #0a3f5e; --navy-ink: #b9cfe0;
  --primary: #0a3f5e; --primary-2: #072e45; --primary-soft: #e6eff6; --primary-ink: #ffffff;
  --good: #15803d; --good-soft: #e7f6ec; --warn: #b45309; --warn-soft: #fdf1e3; --bad: #b91c1c; --bad-soft: #fdecec; --info: #0a5a87; --info-soft: #e6eff6;
  --chart: #4a81ad; --chart-ref: #94a3b8;
  --radius: 12px; --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 20px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1220; --surface: #111c2e; --surface-2: #16233a; --surface-3: #1d2c47;
    --text: #e6ecf5; --text-2: #c3cddc; --muted: #8a9ab0; --line: #22324d; --line-2: #2d4063;
    --navy: #05192a; --navy-2: #0a2a42; --navy-ink: #9fb0c8;
    --primary: #4a81ad; --primary-2: #7fb2dc; --primary-soft: #12304a; --primary-ink: #ffffff;
    --good: #4ade80; --good-soft: #10291c; --warn: #fbbf24; --warn-soft: #2e2410; --bad: #f87171; --bad-soft: #321717; --info: #7fb2dc; --info-soft: #12304a;
    --chart: #7fb2dc; --chart-ref: #64748b;
    --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.02); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1220; --surface: #111c2e; --surface-2: #16233a; --surface-3: #1d2c47;
  --text: #e6ecf5; --text-2: #c3cddc; --muted: #8a9ab0; --line: #22324d; --line-2: #2d4063;
  --navy: #05192a; --navy-2: #0a2a42; --navy-ink: #9fb0c8;
  --primary: #4a81ad; --primary-2: #7fb2dc; --primary-soft: #12304a; --primary-ink: #ffffff;
  --good: #4ade80; --good-soft: #10291c; --warn: #fbbf24; --warn-soft: #2e2410; --bad: #f87171; --bad-soft: #321717; --info: #7fb2dc; --info-soft: #12304a;
  --chart: #7fb2dc; --chart-ref: #64748b;
  --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.02); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
#app { min-height: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .center { text-align: center; } .num { font-variant-numeric: tabular-nums; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

/* ---------- botões e campos ---------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--surface-2); }
.btn:focus-visible, .iconbtn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(.95); }
.btn.subtle { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.subtle:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.lg { padding: 14px 22px; font-size: 15px; border-radius: 10px; }
.btn.block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; }
.iconbtn:hover { background: var(--surface-2); }
input, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 12px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- etiquetas, avatares ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.nodot::before { display: none; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; background: var(--av, #475569); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 76px; height: 76px; font-size: 24px; }
.avatar.icon { background: var(--primary-soft); color: var(--primary); }
.stack { display: flex; }
.stack .avatar { box-shadow: 0 0 0 2px var(--surface); margin-left: -8px; }
.stack .avatar:first-child { margin-left: 0; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 0% 0%, #165a85 0%, transparent 60%), linear-gradient(160deg, #0a3f5e 0%, #062438 100%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand::after { content: ""; position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(127, 178, 220, .08); }
.brandline { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brandline img { width: 40px; height: 40px; }
.brandline small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.auth-pitch h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; max-width: 520px; }
.auth-pitch p { color: #b9c7dc; font-size: 16px; max-width: 460px; margin: 16px 0 28px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { display: flex; gap: 12px; align-items: center; color: #dbe5f3; }
.features .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #7fb2dc; }
.auth-foot { color: #7f93b0; font-size: 12.5px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.auth-card .lead { color: var(--muted); margin: 6px 0 28px; }
.demo-note { margin-top: 20px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); font-size: 12.5px; }
.auth-mobile-brand { display: none; }

/* ---------- estrutura ---------- */
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: var(--navy-ink); display: flex; flex-direction: column; padding: 20px 14px; }
.sidebar .brandline { color: #fff; font-size: 17px; padding: 4px 10px 22px; }
.sidebar .brandline img { width: 34px; height: 34px; }
.navlabel { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5f7391; padding: 12px 12px 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--navy-ink); font-weight: 500; cursor: pointer; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: rgba(127, 178, 220, .16); color: #fff; }
.nav a.on svg { color: #7fb2dc; }
.nav .live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
.sidebar .spacer { flex: 1; }
.usercard { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.usercard b { display: block; color: #fff; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usercard small { color: #7f93b0; font-size: 12px; }
.usercard > div { min-width: 0; flex: 1; }
.usercard .iconbtn { color: #9fb0c8; width: 34px; height: 34px; }
.usercard .iconbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px 18px; }
.topbar h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.topbar p { margin: 2px 0 0; color: var(--muted); }
.topbar .mobile-only { display: none; }
main { flex: 1; padding: 0 32px 40px; width: 100%; max-width: 1240px; }
.tabs { display: none; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: min(420px, calc(100% - 32px)); font-weight: 500; animation: rise .2s ease-out; }
.toast.bad { background: var(--bad); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

.vozbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 32px 16px; padding: 10px 14px; border-radius: var(--radius); background: var(--navy); color: #dbe5f3; box-shadow: var(--shadow); }
.vozbar .live { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.vozbar .pulse { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 1.8s infinite; }
.vozbar .acts { display: flex; gap: 6px; }
.vozbar .btn { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; box-shadow: none; }
.vozbar .btn:hover { background: rgba(255, 255, 255, .14); }
.vozbar .btn.danger { background: var(--bad); }
.vozbar .btn.off { background: #b45309; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h h3 { font-size: 15px; font-weight: 700; }
.card-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.card-b { padding: 20px; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid.ponto { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
.mt { margin-top: 20px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .k-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.kpi .k-ic svg { width: 16px; height: 16px; }
.kpi .k-val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .k-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- tabelas ---------- */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.t .right { text-align: right; }
.t tr.weekend td { color: var(--muted); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who b { display: block; font-weight: 600; }
.who small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.marks { display: flex; flex-wrap: wrap; gap: 6px; }
.mark { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.mark a, .mark span.nogps { display: inline-flex; color: var(--muted); }
.mark a:hover { color: var(--primary); }
.mark svg { width: 13px; height: 13px; }
.mark span.nogps { color: var(--warn); }
.pos { color: var(--good); font-weight: 600; } .neg { color: var(--bad); font-weight: 600; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 28px; height: 28px; color: var(--line-2); margin-bottom: 6px; }

/* ---------- ponto ---------- */
.punch { padding: 26px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.clock { font-size: 54px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; margin: 16px 0 6px; }
.date { color: var(--muted); }
.date::first-letter { text-transform: uppercase; }
.punch .btn.lg { margin-top: 22px; width: 100%; }
.baterbox { width: 100%; }
.baterbox .btn.lg + .btn.lg { margin-top: 10px; }
.obs.excl { color: var(--muted); }
.obs.excl b { color: var(--bad); }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slots .field input:disabled { opacity: .7; }
.slots .field small { font-size: 11.5px; color: var(--muted); }
.delmark { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.gpsnote { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.gpsnote svg { width: 14px; height: 14px; }
.gpsnote.warn { color: var(--warn); }
.steps { list-style: none; margin: 24px 0 0; padding: 18px 0 0; width: 100%; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 2px solid var(--line); }
.steps .dot svg { width: 15px; height: 15px; }
.steps li.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps li.done::before { background: var(--primary); }
.steps li.next .dot { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.steps b { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.extra { width: 100%; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* gráfico */
.chart { position: relative; padding: 8px 20px 16px; }
.chart svg { display: block; width: 100%; height: 200px; overflow: visible; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .bar { fill: var(--chart); }
.chart .bar.hl { fill: var(--primary-2); }
.chart .ref { stroke: var(--chart-ref); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .hit { fill: transparent; cursor: default; }
.tip { position: absolute; pointer-events: none; z-index: 5; background: var(--navy); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 8px; box-shadow: var(--shadow-lg); white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; }
.tip b { display: block; font-size: 13px; }
.legend { display: flex; gap: 16px; padding: 0 20px 4px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--chart); }
.legend .sw.ref { height: 0; width: 14px; border-top: 2px dashed var(--chart-ref); border-radius: 0; background: none; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .grow { flex: 1; }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - 140px); min-height: 460px; overflow: hidden; }
.convs { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.convs .card-h { border-bottom: 1px solid var(--line); }
.convlist { overflow-y: auto; padding: 8px; }
.conv { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px; font: inherit; color: inherit; cursor: pointer; }
.conv:hover { background: var(--surface-2); }
.conv.on { background: var(--primary-soft); }
.conv.on b { color: var(--primary); }
.conv b { display: block; font-weight: 600; }
.conv small { display: block; color: var(--muted); font-size: 12.5px; }
.thread { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.thead { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.thead b { display: block; font-weight: 700; }
.thead small { color: var(--muted); font-size: 12.5px; }
.thead .back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.daysep { align-self: center; margin: 14px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 12px; border-radius: 99px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: min(640px, 80%); align-self: flex-start; margin-top: 8px; }
.msg.cont { margin-top: 0; }
.msg.cont .avatar { visibility: hidden; }
.msg .bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; box-shadow: var(--shadow-sm); min-width: 0; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 14px 4px 14px 14px; }
.msg.mine .avatar { display: none; }
.msg .from { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }
.msg.mine time { color: rgba(255, 255, 255, .75); }
.filechip { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 2px 0 4px; font: inherit; color: var(--text); cursor: pointer; max-width: 300px; text-align: left; width: 100%; }
.filechip:hover { border-color: var(--line-2); }
.filechip .fic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.filechip span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.filechip small { color: var(--muted); font-size: 12px; }
.filechip > div { min-width: 0; }
.fileimg { display: block; padding: 0; border: 0; background: none; cursor: pointer; margin: 2px 0 4px; }
.fileimg img { display: block; max-width: 260px; max-height: 260px; border-radius: 10px; background: var(--surface-2); min-width: 120px; min-height: 80px; object-fit: cover; }
.composer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); align-items: center; }
.composer input[name="body"] { flex: 1; border-radius: 99px; padding: 10px 16px; background: var(--surface-2); border-color: transparent; }
.composer input[name="body"]:focus { background: var(--surface); }
.composer .send { width: 40px; height: 40px; border-radius: 50%; padding: 0; }
label.iconbtn { cursor: pointer; }

/* ---------- sala de voz ---------- */
.stage { background: linear-gradient(160deg, #072e45, #0a3f5e); color: #e2e8f0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.stage-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.stage-h h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #fff; }
.stage-h .badge { background: rgba(74, 222, 128, .15); color: #4ade80; }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; padding: 32px 20px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 110px; text-align: center; }
.person b { font-size: 13.5px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.person small { display: inline-flex; align-items: center; gap: 4px; color: #94a3b8; font-size: 12px; }
.person small svg { width: 13px; height: 13px; }
.person .avatar { transition: box-shadow .15s; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.person.talk .avatar { box-shadow: 0 0 0 3px #4ade80, 0 0 0 8px rgba(74, 222, 128, .2); }
.person.talk small { color: #4ade80; }
.controls { display: flex; justify-content: center; gap: 14px; padding: 0 20px 24px; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; background: none; border: 0; cursor: pointer; font: inherit; font-size: 12px; }
.ctl span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s; }
.ctl:hover span { background: rgba(255, 255, 255, .18); }
.ctl.off span { background: #f8fafc; color: #0f172a; }
.ctl.leave span { background: #dc2626; }
.ctl.leave:hover span { background: #b91c1c; }
.ctl svg { width: 20px; height: 20px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.room { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.room.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.room-top { display: flex; gap: 12px; align-items: center; }
.room-top b { display: block; font-weight: 700; }
.room-top small { color: var(--muted); font-size: 12.5px; }
.room-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.hint svg { width: 15px; height: 15px; margin-top: 2px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal .card-h { padding: 18px 22px; }
.modal .card-b { padding: 22px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 14px 14px; }
@keyframes fade { from { opacity: 0; } }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.switch input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- celular ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.ponto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-brand { display: flex; margin-bottom: 28px; }
  .auth-mobile-brand.brandline { color: var(--text); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; padding: 12px 16px; }
  .topbar h1 { font-size: 17px; }
  .topbar p { color: #9fb0c8; font-size: 12.5px; }
  .topbar .mobile-only { display: flex; align-items: center; gap: 8px; }
  .topbar .iconbtn { color: #c7d2e3; }
  .topbar .iconbtn:hover { background: rgba(255, 255, 255, .08); }
  main { padding: 16px 16px 96px; }
  .vozbar { margin: 12px 16px 0; }
  .tabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(15, 23, 42, .06); }
  .tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; }
  .tabs a.on { color: var(--primary); }
  .tabs svg { width: 21px; height: 21px; }
  .toast { left: 16px; right: 16px; bottom: 84px; max-width: none; }
  .kpi .k-val { font-size: 24px; }
  .kpis { gap: 12px; }
  .grid { gap: 16px; }
  .card-h, .card-b { padding-left: 16px; padding-right: 16px; }
  .t th, .t td { padding-left: 14px; padding-right: 14px; }
  .t .hide-sm { display: none; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 190px); height: calc(100dvh - 190px); }
  .chat.open .convs { display: none; }
  .chat:not(.open) .thread { display: none; }
  .convs { border-right: 0; }
  .thead .back { display: inline-grid; }
  .msgs { padding: 16px 12px; }
  .msg { max-width: 88%; }
  .form-grid { grid-template-columns: 1fr; }
  .clock { font-size: 46px; }
  .steps { gap: 0; }
}

/* abas internas do painel */
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.toolbar h3 { font-size: 15px; }
@media (max-width: 900px) { .seg { display: flex; width: 100%; } .seg button { flex: 1; padding: 8px 6px; } }

[hidden] { display: none !important; }
.grid.ponto .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .topbar p { display: none; } .t .who small { display: none; } .t .who .avatar { width: 30px; height: 30px; font-size: 11px; } .t td, .t th { padding-left: 12px; padding-right: 12px; } }

/* sala de voz com mensagens ao lado */
.room-live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 20px; margin-bottom: 20px; align-items: stretch; }
.room-live .stage { margin-bottom: 0; display: flex; flex-direction: column; }
.room-live .people { flex: 1; align-content: center; }
.roomchat { display: flex; flex-direction: column; overflow: hidden; height: 460px; }
.roomchat .thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.roomchat .msgs { padding: 14px; }
.roomchat .msg { max-width: 92%; }
@media (max-width: 1100px) { .room-live { grid-template-columns: 1fr; } .roomchat { height: 420px; } }

/* canais e seções da lista de conversas */
.sec-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec-h:first-child { padding-top: 6px; }
.iconbtn.sm { width: 28px; height: 28px; }
.iconbtn.sm svg { width: 16px; height: 16px; }
.grow { flex: 1; min-width: 0; }
.thead .btn { flex: none; }

/* compartilhamento de tela */
.screens { display: grid; gap: 12px; padding: 16px 16px 0; }
.screens.n2 { grid-template-columns: 1fr 1fr; }
.screen { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.screen video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.screen-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 12.5px; font-weight: 600; }
.screen-bar span { display: inline-flex; align-items: center; gap: 6px; }
.screen-bar svg { width: 15px; height: 15px; }
.screen-bar .iconbtn { color: #fff; width: 32px; height: 32px; }
.screen-bar .iconbtn:hover { background: rgba(255, 255, 255, .15); }
.stage.has-screen .people { padding: 16px 20px; gap: 16px; }
.stage.has-screen .person { width: 84px; }
.stage.has-screen .avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.ctl.on span { background: #4a81ad; }
@media (max-width: 900px) { .screens.n2 { grid-template-columns: 1fr; } .controls { gap: 8px; } .ctl { font-size: 11px; max-width: 86px; text-align: center; } }

/* contador de não lidas */
.nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; }
.nav .nbadge { margin-left: auto; }
.nav .live-dot + .nbadge { margin-left: 8px; }
.tabs .tabic { position: relative; display: inline-flex; }
.tabs .tabic .nbadge { position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; font-size: 10px; box-shadow: 0 0 0 2px var(--surface); }
.conv .nbadge { flex: none; }
.conv.unread b { font-weight: 800; }
.conv.unread small { color: var(--text-2); }

/* pop-ups (mensagens e chamadas) */
#pops { position: fixed; top: 16px; right: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.pop { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 12px; padding: 12px 8px 12px 12px; box-shadow: var(--shadow-lg); cursor: pointer; animation: popin .22s ease-out; }
.pop.out { opacity: 0; transform: translateX(16px); transition: .18s; }
.pop-b { flex: 1; min-width: 0; }
.pop-b b { display: block; font-size: 13.5px; }
.pop-b p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pop-a { display: flex; gap: 8px; margin-top: 10px; }
.pop-x { width: 28px; height: 28px; flex: none; }
.pop-x svg { width: 15px; height: 15px; }
.pop.call { border-left-color: #16a34a; cursor: default; background: linear-gradient(160deg, #072e45, #0a3f5e); color: #fff; border-color: transparent; }
.pop.call .pop-b p { color: #c7d7e6; }
.pop.call .pop-x { color: #c7d7e6; }
.pop.call .avatar { box-shadow: 0 0 0 3px rgba(74, 222, 128, .5); animation: ringpulse 1.4s infinite; }
.pop.call .btn.primary { background: #16a34a; border-color: #16a34a; }
.pop.call .btn:not(.primary) { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
@keyframes popin { from { opacity: 0; transform: translateY(-8px); } }
@keyframes ringpulse { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
@media (max-width: 900px) { #pops { top: 64px; left: 16px; right: 16px; width: auto; } }

/* lista para escolher pessoas */
.pick { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pick-row:hover { background: var(--surface-2); }
.pick-row b { display: block; font-size: 13.5px; }
.pick-row small { color: var(--muted); font-size: 12px; }
.pick-row input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ajustes manuais de ponto */
textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 12px; resize: vertical; min-height: 72px; }
textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.ast { color: var(--warn); font-weight: 800; font-size: 11px; margin-left: 1px; }
.mark.manual { background: var(--warn-soft); color: var(--warn); }
.markbtn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.markbtn:hover { color: var(--primary); }
.markadd { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px dashed var(--line-2); background: none; color: var(--muted); cursor: pointer; padding: 0; }
.markadd:hover { color: var(--primary); border-color: var(--primary); }
.markadd svg { width: 13px; height: 13px; }
.t tr.hasobs td { border-bottom: 0; }
.t tr.obsrow td { padding-top: 0; font-size: 12.5px; color: var(--text-2); }
.t tr.obsrow:hover td { background: none; }
.obs { padding: 6px 10px; margin-top: 2px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 0 6px 6px 0; }
.obs + .obs { margin-top: 4px; }
.obs b { color: var(--warn); }
.legend-note { padding: 10px 20px 14px; margin: 0; }
.t .marks { min-width: 230px; }

/* atalho para o Portal (Propostas) */
.nav .extlink { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; border-radius: 0 0 8px 8px; }
.nav .extlink .exti { margin-left: auto; display: inline-flex; opacity: .6; }
.nav .extlink .exti svg { width: 14px; height: 14px; }

/* ===== Propostas ===== */
.t.prop .ptit { display: block; text-transform: uppercase; font-size: 13px; }
.t.prop small { display: block; text-transform: uppercase; font-size: 11.5px; }
.acts { display: inline-flex; gap: 2px; }
.ed-top { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 8px 0 14px; }
.ed-top h3 { font-size: 16px; }
.form-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-grid3 .span2 { grid-column: span 2; } .form-grid3 .span3 { grid-column: 1 / -1; }
.row-in { display: flex; gap: 6px; } .row-in select { flex: 1; min-width: 0; }
.blocos { display: flex; flex-direction: column; }
.bloco { border-top: 1px solid var(--line); }
.bloco.has { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
.bloco.cond .bloco-t b { color: var(--warn); }
.bloco-h { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex-wrap: wrap; }
.bloco-t { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; padding: 0; }
.bloco-t b { font-weight: 700; }
.bloco-h .mini input { width: 110px; text-align: right; }
.mini.chk { gap: 6px; cursor: pointer; } .mini.chk input { width: 16px; height: 16px; accent-color: var(--primary); }
.bloco-b { padding: 0 16px 12px 42px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 18px; }
.item { display: flex; align-items: flex-start; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.item:hover { background: var(--surface-2); }
.item input[type=checkbox] { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.item.edit { cursor: default; grid-column: 1 / -1; padding: 3px 0; } .item.edit input { flex: 1; }
.calcbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.calcbar b { font-size: 17px; }
.fin { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.resumo { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.resumo div { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.resumo span { color: var(--muted); }
.resumo .tot { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 8px 0; }
.resumo .tot b { font-size: 20px; color: var(--primary); }
@media (max-width: 1100px) { .fin { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .form-grid3 { grid-template-columns: 1fr; } .form-grid3 .span2 { grid-column: auto; } .bloco-b { padding-left: 16px; grid-template-columns: 1fr; } .ed-top { top: 52px; } }
.ast-v { color: var(--primary); font-weight: 800; }
.item .ord { margin-left: auto; flex: none; font-style: normal; font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 99px; padding: 1px 7px; }
.item span { flex: 1; }

/* serviços em letra maiúscula (pedido da Granza) */
.bloco-t b, .bloco .item span { text-transform: uppercase; }
.bloco .item span { font-size: 12.5px; letter-spacing: .01em; }

/* quem está online */
.online-box { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; max-height: 32vh; overflow-y: auto; }
.on-row { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; color: var(--navy-ink); font-size: 13px; }
.on-row:hover { background: rgba(255, 255, 255, .05); }
.on-av { position: relative; display: inline-flex; }
.on-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; }
.on-av .on-dot { position: absolute; right: -1px; bottom: -1px; box-shadow: 0 0 0 2px var(--navy); }
.on-dot.busy { background: #f59e0b; }
.on-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-ic { display: inline-flex; color: #f59e0b; } .on-ic svg { width: 14px; height: 14px; }
.online-list { display: flex; flex-direction: column; }
.on-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.on-item:first-child { border-top: 0; }
.on-item b { display: block; } .on-item small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.conv { position: relative; }
.conv.is-online .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #22c55e; }

/* fotos de perfil e tela Meu perfil */
.avatar.foto { background: var(--surface-2); overflow: hidden; padding: 0; }
.avatar.foto img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar.xl { width: 132px; height: 132px; font-size: 42px; }
.uc-av { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; display: inline-flex; }
.uc-av:hover .avatar { box-shadow: 0 0 0 2px #7fb2dc; }
.grid.perfil { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
.perfil-card { padding: 28px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.perfil-card h3 { font-size: 18px; margin-top: 6px; } .perfil-card p { margin: 0 0 6px; }
.pf-foto { position: relative; }
.pf-info { width: 100%; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pf-info span { display: block; font-size: 12px; color: var(--muted); } .pf-info b { font-size: 13.5px; }
@media (max-width: 900px) { .grid.perfil { grid-template-columns: 1fr; } .topbar .uc-av .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.25); } }

/* câmeras na sala de voz */
.people.has-cams { gap: 14px; }
.person.withcam { width: 220px; }
.camv { width: 220px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); transition: box-shadow .15s; }
.camv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camv.mine video { transform: scaleX(-1); }
.person.talk .camv { box-shadow: 0 0 0 3px #4ade80, 0 0 0 7px rgba(74, 222, 128, .2); }
.stage.has-screen .person.withcam, .stage.has-screen .camv { width: 150px; }
@media (max-width: 900px) { .person.withcam, .camv { width: 150px; } }

/* imagens anexadas na proposta */
.anexos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.anx { position: relative; width: 84px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.anx img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anx-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.anx-add { cursor: pointer; }

/* reunião com cliente */
.room-live.solo { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.linkcard .linkbox { display: flex; gap: 8px; } .linkcard .linkbox input { flex: 1; font-size: 12.5px; }
.linkcard .wa { margin-top: 10px; background: #16a34a; border-color: #16a34a; color: #fff; }
.linkcard .card-b { display: flex; flex-direction: column; gap: 6px; }
/* tela do convidado */
.guest { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(160deg, #072e45, #0a3f5e); }
.g-top { padding: 18px 24px; } .g-top .brandline { color: #fff; }
.g-main { flex: 1; display: grid; place-items: center; padding: 16px; }
.g-card { width: 100%; max-width: 440px; padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.g-card h2 { font-size: 22px; } .g-card .lead { color: var(--muted); margin: 0; } .g-card .form { text-align: left; }
.g-ic { width: 52px; height: 52px; margin: 0 auto; } .g-ic svg { width: 24px; height: 24px; }
.g-room { width: 100%; max-width: 1100px; } .g-room .stage { margin: 0; }
.g-foot { text-align: center; color: #9fb0c8; font-size: 12px; padding: 12px; }
@media (max-width: 1100px) { .room-live.solo { grid-template-columns: 1fr; } }

/* chat da reunião */
.rcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rchat { display: flex; flex-direction: column; overflow: hidden; height: 380px; }
.rchat .thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rchat .msgs { padding: 12px; } .rchat .msg { max-width: 92%; }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
.g-grid .rchat { height: auto; min-height: 420px; }
@media (max-width: 900px) { .g-grid { grid-template-columns: 1fr; } .g-grid .rchat { min-height: 360px; } }

/* online: mostra em qual sala a pessoa está */
.on-row { align-items: flex-start; }
.on-row .on-av { margin-top: 2px; }
.on-nm b { display: block; font-weight: 600; color: #e6edf5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-nm small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #7f93b0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.on-nm small svg { width: 12px; height: 12px; flex: none; }
.on-row.na-sala { cursor: pointer; } .on-row.na-sala small { color: #fbbf24; }

/* justificativas */
.obs.just { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border-left-color: var(--info); background: var(--info-soft); }
.obs.just.aprovada { border-left-color: var(--good); background: var(--good-soft); }
.obs.just.recusada { border-left-color: var(--bad); background: var(--bad-soft); }
.obs.just b { color: var(--text); }
.just-acts { display: inline-flex; gap: 6px; margin-left: auto; }
.linkbtn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--primary); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; text-decoration: underline; }
.linkbtn svg { width: 13px; height: 13px; }
