/* Camada visual: preserva IDs, eventos e fluxos da aplicação. */
:where(button, a, input, select, summary):focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.brand { color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 132px; height: 38px; max-width: 100%; flex: none; }
.brand-logo-on-dark { display: none; }
.public-brand { display: inline-flex; align-items: center; gap: 10px; }
.ui-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.workspace-page { font-size: 16px; background: var(--bg); }
.workspace-page .topnav { height: 80px; padding: 16px 32px; }
.workspace-page .topnav .brand { font-size: 25px; letter-spacing: -.04em; }
.workspace-page .who { min-width: 0; }
.workspace-page #user-name { overflow-wrap: anywhere; }
.workspace-page .container { max-width: 1600px; padding: 36px 40px 64px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.page-heading h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 10px; }
.page-heading p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.page-label { border: 1px solid var(--line); padding: 8px 12px; background: white; border-radius: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.workspace-page .panel { border: 1px solid var(--line); box-shadow: 0 3px 12px #0f172a03; padding: 26px; border-radius: 16px; margin-bottom: 24px; }
.workspace-page .panel h2 { font-size: 19px; letter-spacing: -.02em; }
.workspace-page .panel-heading { margin-bottom: 22px; }
.workspace-page .create-panel { background: linear-gradient(110deg, #eff6ff, #fff 75%); border-color: #dbeafe; padding: 28px; }
.workspace-page .create-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.workspace-page .create-heading h2 { margin: 0; }
.workspace-page .create-heading > p { margin: 0; max-width: 36ch; color: var(--muted); font-size: 13px; }
.workspace-page .create-form { display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.workspace-page .create-form label { min-width: 0; display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.workspace-page .create-form .input { width: 100%; min-width: 0; min-height: 50px; background-color: #fff; }
.workspace-page .create-form .input, .workspace-page .contract-editor .input, .workspace-page .dashboard-filter .input { font-weight: 400; }
.workspace-page .create-form .btn { min-height: 50px; white-space: nowrap; }
.workspace-page .create-hint { margin: 14px 0 0; line-height: 1.5; }
.workspace-page .input { border-width: 1px; border-radius: 9px; font-size: 16px; }
.workspace-page select.input, .meeting-page select.input, .meeting-page #chat-recipient {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 44px;
}
.meeting-page #chat-recipient { background-position: right 4px center; padding-right: 34px; }
.workspace-page .btn.danger-outline { border: 1px solid var(--red); background: transparent; color: var(--red); }
.workspace-page .btn.danger-outline:hover:not(:disabled) { background: #fef2f2; }
.workspace-page .item .actions .btn[aria-expanded="true"] { background: #dbeafe; color: #1d4ed8; }
.workspace-page .item .actions .btn[aria-expanded="true"]:hover:not(:disabled) { background: #bfdbfe; }
.workspace-page .btn { border-radius: 9px; font-size: 15px; }
.workspace-page .btn.small { min-height: 42px; font-size: 13px; }
.workspace-page .panel-tabs { gap: 4px; background: #e8edf4; border-radius: 10px; padding: 4px; width: fit-content; margin-bottom: 24px; }
.workspace-page .panel-tabs button { border: 0; background: transparent; border-radius: 7px; padding: 10px 24px; font-size: 14px; min-height: 44px; }
.workspace-page .panel-tabs button[aria-pressed="true"] { color: var(--primary); background: white; box-shadow: 0 2px 5px #0f172a0d; }
.workspace-page .list { gap: 16px; }
.workspace-page .item { min-width: 0; border-radius: 12px; padding: 20px; gap: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.workspace-page .item:hover { border-color: #b8c9e2; box-shadow: 0 4px 16px #0f172a05; }
.workspace-page .item-title { font-size: 15px; line-height: 1.5; }
.workspace-page .item-sub { font-size: 12px; margin-top: 4px; }
.workspace-page .item .link-box { font-size: 12px; padding: 10px 12px; background: #f3f5f8; border: 1px solid #edf0f4; }
.workspace-page .item .actions { gap: 8px; align-items: center; }
.workspace-page .item .actions .btn { min-height: 42px; padding: 8px 12px; font-size: 13px; }
.workspace-page .list-filters { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 16px; gap: 14px; }
.workspace-page .list-filters .search-filter { flex: 1 1 260px; }
.workspace-page .list-filters .search-filter .input { min-width: 0; }
.workspace-page .list-filters .btn { min-height: 50px; white-space: nowrap; }
.workspace-page .filter-status:empty { display: none; }
.workspace-page .recordings-more { display: flex; justify-content: center; margin-top: 20px; }
.workspace-page .recordings-more .btn { min-width: 180px; }
.workspace-page #audits-more { display: block; min-width: 180px; margin: 20px auto 0; }
.workspace-page .list-filters label:not(.search-filter) { flex: 0 1 180px; min-width: 0; }
.workspace-page .transcript-text { line-height: 1.8; padding: 20px; }
.workspace-page .alert { font-size: 13px; border-radius: 10px; }
.workspace-page .usage-card { background: #f8fafc; border-color: #e2e8f0; padding: 22px; }
.workspace-page .empty { padding: 36px 16px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }
.workspace-page .meeting-type { margin-left: 8px; }
.workspace-page .contract-editor { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.workspace-page .contract-editor label { display: grid; gap: 4px; min-width: 140px; font-size: 13px; color: var(--muted); }
.workspace-page .contract-editor .input { min-height: 44px; }
.workspace-page .contract-editor .contract-delete { margin-left: auto; }
.workspace-confirm { width: min(440px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); box-shadow: 0 24px 70px #0f172a44; }
.workspace-confirm::backdrop { background: #050a12bf; }
.workspace-confirm h2 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.03em; }
.workspace-confirm p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.workspace-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.workspace-confirm-actions .btn { min-height: 48px; font-size: 15px; }
.workspace-page .dashboard-filter { display: grid; gap: 6px; max-width: 320px; margin: 20px 0; font-size: 13px; color: var(--muted); }
.workspace-page .dashboard-panel { padding: clamp(18px, 2.5vw, 32px); }
.workspace-page .dashboard-panel .panel-heading { align-items: start; }
.workspace-page .dashboard-panel .eyebrow { margin-bottom: 5px; }
.workspace-page .dashboard-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; padding: 20px 22px; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.workspace-page .dashboard-period-wrap { display: grid; gap: 9px; min-width: 0; }
.workspace-page .dashboard-filter-title { color: var(--muted); font-size: 12px; font-weight: 650; }
.workspace-page .dashboard-period { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid #dce4ef; border-radius: 10px; background: #e8edf4; }
.workspace-page .dashboard-period button { min-height: 42px; padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.workspace-page .dashboard-period button:hover { background: #dbeafe; color: var(--primary); }
.workspace-page .dashboard-period button[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: 0 2px 7px #1d4ed832; }
.workspace-page .dashboard-filter { margin: 0; width: min(100%, 280px); }
.workspace-page .dashboard-filter[hidden] { display: none; }
.workspace-page .dashboard-custom-dates { display: flex; flex: 1 1 100%; gap: 12px; flex-wrap: wrap; }
.workspace-page .dashboard-custom-dates[hidden] { display: none; }
.workspace-page .dashboard-custom-dates label { display: grid; gap: 6px; min-width: 0; flex: 0 1 200px; color: var(--muted); font-size: 13px; }
.workspace-page #dashboard-context { margin: 20px 0 0; }
.workspace-page .dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.workspace-page .metric-card { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 140px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 4px 14px #0f172a08; }
.workspace-page .metric-card strong { display: block; font-size: clamp(25px, 2vw, 34px); line-height: 1.15; letter-spacing: -.04em; }
.workspace-page .metric-card span { display: block; max-width: 22ch; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.workspace-page .dashboard-charts { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); gap: 16px; margin-top: 24px; }
.workspace-page .dashboard-chart { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 22px; }
.workspace-page .dashboard-chart h3 { font-size: 17px; margin: 0; letter-spacing: -.02em; }
.workspace-page .chart-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.workspace-page .chart-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.workspace-page .chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.workspace-page .legend-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; }
.workspace-page .meetings-dot { background: var(--primary); }
.workspace-page .signed-dot { background: var(--green); }
.workspace-page .pending-dot { background: #d97706; }
.workspace-page .declined-dot { background: var(--red); }
.workspace-page .trend-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(42px, 1fr); gap: 6px; min-height: 245px; margin-top: 24px; overflow-x: auto; scrollbar-width: thin; }
.workspace-page .trend-group { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 4px; }
.workspace-page .trend-bars { height: 165px; width: 100%; display: flex; align-items: end; justify-content: center; gap: 4px; padding: 0 6px 1px; border-bottom: 1px solid #cbd5e1; background: repeating-linear-gradient(to top, transparent 0, transparent 40px, #eef2f7 41px); }
.workspace-page .trend-bar { width: min(22px, 42%); min-height: 0; border-radius: 5px 5px 0 0; }
.workspace-page .meetings-bar { background: var(--primary); }
.workspace-page .signed-bar { background: var(--green); }
.workspace-page .trend-label, .workspace-page .trend-values { font-size: 11px; white-space: nowrap; color: var(--muted); }
.workspace-page .trend-values { color: var(--text); font-weight: 650; }
.workspace-page #dashboard-trend-note { margin: 10px 0 0; }
.workspace-page .status-chart { display: flex; align-items: center; justify-content: space-evenly; flex-wrap: wrap; gap: 22px; min-height: 245px; padding-top: 15px; }
.workspace-page .status-donut { width: 180px; height: 180px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) 0 var(--yes), #d97706 var(--yes) var(--pending), var(--red) var(--pending) 100%); }
.workspace-page .status-donut > div { width: 125px; height: 125px; border-radius: 50%; display: grid; align-content: center; text-align: center; background: #fff; }
.workspace-page .status-donut strong { font-size: 34px; line-height: 1.1; }
.workspace-page .status-donut span { color: var(--muted); font-size: 13px; }
.workspace-page .status-legend { flex: 1; min-width: 135px; display: grid; gap: 12px; }
.workspace-page .status-legend > div { display: grid; align-items: center; grid-template-columns: 10px 1fr auto; gap: 8px; font-size: 13px; }
.workspace-page .status-legend strong { font-size: 15px; }
.workspace-page .chart-empty { margin: auto; padding: 36px 14px; text-align: center; color: var(--muted); font-size: 14px; }
.workspace-page .dashboard-method { margin: 22px 0 0; line-height: 1.6; }
.meeting-page .contract-extra { display: grid; gap: 10px; margin-bottom: 16px; text-align: left; }
.meeting-page .contract-extra label { display: grid; gap: 4px; font-size: 14px; font-weight: 650; }
.workspace-page .host-tabs a { display: flex; align-items: center; gap: 12px; }
.workspace-page .host-tabs a::before { content: ''; flex: none; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 5px; }
.workspace-page .host-tabs a[href="/configuracoes"]::before { border-radius: 50%; box-shadow: inset 0 0 0 4px var(--call-bg); background: currentColor; }
@media (min-width: 1024px) {
  .workspace-page { padding-left: 232px; }
  .workspace-page .topnav { justify-content: flex-end; }
  .workspace-page .topnav .brand { position: fixed; left: 28px; top: 24px; color: white; z-index: 12; }
  .workspace-page .topnav .brand-logo-on-light { display: none; }
  .workspace-page .topnav .brand-logo-on-dark { display: block; }
  .workspace-page .host-tabs { position: fixed; inset: 0 auto 0 0; width: 232px; padding: 120px 16px 24px; margin: 0; background: var(--call-bg); flex-direction: column; z-index: 9; border-right: 1px solid #253043; }
  .workspace-page .host-tabs::before { content: 'ESPAÇO DE TRABALHO'; color: #94a3b8; font-size: 10px; letter-spacing: .12em; padding: 0 14px 14px; }
  .workspace-page .host-tabs::after { content: 'AB Meet / Reuniões por vídeo'; color: #94a3b8; font-size: 11px; margin-top: auto; padding: 20px 14px 0; border-top: 1px solid #253043; }
  .workspace-page .host-tabs a { color: #cbd5e1; font-size: 14px; min-height: 48px; padding: 12px 14px; }
  .workspace-page .host-tabs a:hover { background: #1b2230; }
  .workspace-page .host-tabs a[aria-current="page"] { background: var(--primary); color: white; }
  .workspace-page .host-tabs a[aria-current="page"]::before { box-shadow: none; }
}
@media (min-width: 1300px) {
  #rooms.list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #rooms.list > .empty { grid-column: 1 / -1; }
}
/* Entrada do anfitrião: composição ampla no desktop, formulário direto no celular. */
.login-page .center-screen { padding: 32px; gap: 40px; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr); max-width: 1500px; margin: auto; }
.login-intro { background: var(--call-bg); color: white; min-height: min(800px, calc(100dvh - 64px)); width: 100%; border-radius: 24px; padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.login-intro .brand, .login-wordmark { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; }
.login-intro .eyebrow { color: #93c5fd; }
.login-intro h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.045em; line-height: 1.1; margin: 16px 0 20px; }
.login-intro p:not(.eyebrow) { color: #cbd5e1; max-width: 34ch; font-size: 16px; }
.login-intro .login-caption { font-size: 12px !important; }
.login-page .card { box-shadow: none; background: transparent; padding: 32px; max-width: 440px; text-align: left; }
.login-page .card h1 { font-size: 28px; letter-spacing: -.03em; }
.login-wordmark { margin-bottom: 36px; }
.login-art { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 36px; max-width: 360px; transform: rotate(-3deg); }
.login-art span { grid-column: span 3; display: grid; place-items: center; height: 110px; background: #1e40af; border: 1px solid #3b65be; border-radius: 18px; font-size: 28px; font-weight: 650; }
.login-art span:nth-child(2) { background: #166534; border-color: #388856; }
.login-art i { grid-column: span 2; height: 8px; border-radius: 6px; background: #334155; }
/* Chamada: mantém os estados, a ordem e todos os controles existentes. */
.meeting-page #screen-prejoin, .meeting-page #screen-message { grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); gap: 0; max-width: 1200px; margin: auto; padding: clamp(20px, 4vw, 48px); align-items: center; justify-items: stretch; }
.meeting-page .meeting-hero, .meeting-page .meeting-card { min-height: min(680px, calc(100dvh - 96px)); }
.meeting-page .meeting-hero { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px, 4vw, 60px); border-radius: 24px 0 0 24px; background: radial-gradient(circle at 80% 82%, #1e40af 0, transparent 36%), linear-gradient(145deg, #111823, #0b0f14); color: white; overflow: hidden; }
.meeting-page .meeting-hero-brand, .meeting-page .meeting-card-brand { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 750; letter-spacing: -.035em; }
.meeting-page .meeting-hero .eyebrow { color: #93c5fd; }
.meeting-page .meeting-hero-copy h2 { max-width: 14ch; margin: 0 0 20px; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -.04em; }
.meeting-page .meeting-hero-copy > p:last-child { max-width: 36ch; margin: 0; color: #cbd5e1; font-size: 16px; }
.meeting-page .meeting-hero-art { display: flex; gap: 14px; transform: rotate(-4deg); }
.meeting-page .hero-tile { display: grid; place-items: center; width: 126px; height: 96px; border: 1px solid #3b65be; border-radius: 16px; background: #1e40af; color: #fff; font-size: 30px; font-weight: 750; box-shadow: 0 14px 30px #0003; }
.meeting-page .hero-tile-green { background: #334155; border-color: #475569; }
.meeting-page .meeting-hero-footer { color: #94a3b8; font-size: 12px; }
.meeting-page .meeting-card { display: flex; flex-direction: column; align-items: stretch; justify-content: center; max-width: none; padding: clamp(30px, 4vw, 56px); border: 1px solid var(--line); border-left: 0; border-radius: 0 24px 24px 0; box-shadow: 0 16px 48px #0f172a14; text-align: left; }
.meeting-page .meeting-card-brand { display: none; }
.meeting-page .meeting-card .eyebrow { margin-bottom: 18px; }
.meeting-page .meeting-card .big-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 0 22px; border: 1px solid #e2e8f0; border-radius: 16px; background: #f1f5f9; color: #334155; }
.meeting-page .meeting-card .big-icon svg { width: 29px; height: 29px; }
.meeting-page .meeting-camera-icon svg { width: 30px; height: 30px; }
.meeting-page .meeting-card h1 { margin-bottom: 14px; font-size: clamp(27px, 3vw, 34px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.meeting-page .meeting-card .lead { margin-bottom: 28px; font-size: 17px; line-height: 1.6; }
.meeting-page .meeting-card .btn.huge, .meeting-page .meeting-card .actions .btn { min-height: 56px; border-radius: 10px; font-size: 17px; box-shadow: none; }
.meeting-page .meeting-card .hint { font-size: 14px; line-height: 1.6; }
.meeting-page .meeting-card .public-links { justify-content: flex-start; font-size: 13px; }
.meeting-page .meeting-card .warn-box { font-size: 14px; }
.meeting-page .modal-box h2 { overflow-wrap: anywhere; }
.meeting-page .chat-heading { padding: 18px; }
.meeting-page .chat-heading button { min-width: 44px; min-height: 44px; border-radius: 8px; }
.meeting-page .chat-hint { padding: 12px 18px; line-height: 1.6; }
.meeting-page .chat-toggle { display: grid; place-items: center; border-radius: 12px; background: #1b2230; color: #e5e7eb; transition: background .15s, border-color .15s; }
.meeting-page .chat-toggle svg { width: 23px; height: 23px; }
.meeting-page .chat-toggle:hover { border-color: #93c5fd; background: #334155; }
.meeting-page .chat-toggle[aria-expanded="true"] { border-color: #93c5fd; background: #1e40af; }
.meeting-page .tile .label .name { overflow: hidden; text-overflow: ellipsis; }
.meeting-page .modal { padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: #050a12bf; }
.meeting-page .modal-box { max-width: 500px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 60px #0006; text-align: left; }
.meeting-page .modal-box .big-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f1f5f9; color: #334155; }
.meeting-page .modal-box .big-icon svg { width: 28px; height: 28px; }
.meeting-page .modal-box h2 { margin: 0 0 7px; font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.meeting-page .modal-box p { margin: 0 0 22px; font-size: 15px; line-height: 1.55; }
.meeting-page .modal-box .actions { gap: 10px; }
.meeting-page .modal-box .btn { min-height: 50px; padding: 10px 14px; border-radius: 9px; font-size: 15px; line-height: 1.3; text-align: center; }
.meeting-page .modal-box .link-box { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: 13px; line-height: 1.5; }
.meeting-page .modal-box .participant-name-input { min-height: 48px; margin-bottom: 18px; font-size: 16px; }
.meeting-page .modal-box .contract-extra { margin-bottom: 20px; }
.meeting-page .modal-box .contract-extra label { font-size: 13px; }
.meeting-page .modal-box .contract-extra .input { min-height: 48px; }
.meeting-page .unmute svg { width: 20px; height: 20px; flex: none; }
.meeting-page #modal[data-kind="invite"] .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meeting-page #modal[data-kind="invite"] .btn { min-width: 0; }
@media (min-width: 1024px) and (min-height: 600px) {
  .meeting-page #grid { padding: 76px 20px 16px; gap: 14px; }
  .meeting-page .call-tools { top: 14px; right: 20px; }
  .meeting-page .topbar { top: 20px; left: 170px; right: 170px; }
  .meeting-page #screen-call:has(#btn-contract:not([hidden])) .topbar { right: 195px; }
  .meeting-page #screen-call::before { content: 'AB Meet'; position: absolute; top: 24px; left: 24px; font-size: 20px; font-weight: 750; letter-spacing: -.03em; }
  .meeting-page .controls { gap: 24px; padding-top: 12px; border-top: 1px solid #253043; }
  .meeting-page .ctl .ic { border-radius: 16px; width: 54px; height: 54px; }
  .meeting-page .call-chat, .meeting-page .call-participants { top: 76px; bottom: 116px; right: 20px; height: auto; max-height: none; width: 350px; }
  .meeting-page #screen-call:has(.call-chat:not([hidden]), .call-participants:not([hidden])) #grid { margin-right: 366px; }
}
@media (max-width: 1023px) {
  .meeting-page #screen-call:has(#btn-contract:not([hidden])) .topbar { right: 185px; }
  .workspace-page .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-page .dashboard-charts { grid-template-columns: minmax(0, 1fr); }
  .workspace-page .container { padding: 24px; }
  .workspace-page .topnav { padding: 14px 24px; height: auto; min-height: 72px; }
  .workspace-page .host-tabs { padding-bottom: 16px; border-bottom: 1px solid var(--line); gap: 8px; margin-bottom: 24px; }
  .workspace-page .host-tabs a { min-height: 44px; font-size: 14px; }
  .workspace-page .host-tabs a[href="/configuracoes"]::before { box-shadow: none; background: transparent; }
  .page-label { display: none; }
  .login-page .center-screen { grid-template-columns: 1fr; padding: 24px; }
  .login-intro { display: none; }
  .login-page .card { background: white; border: 1px solid var(--line); padding: 32px 24px; }
}
@media (max-width: 1023px), (max-height: 600px) {
  .meeting-page #screen-prejoin, .meeting-page #screen-message { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 520px; padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
  .meeting-page .meeting-hero { display: none; }
  .meeting-page .meeting-card { min-height: 0; padding: 30px 24px; border-left: 1px solid var(--line); border-radius: 20px; }
  .meeting-page .meeting-card-brand { display: flex; margin-bottom: 34px; color: var(--text); }
}
@media (max-width: 600px) {
  .workspace-page .contract-editor .contract-delete { margin-left: 0; }
  .workspace-confirm { padding: 24px; }
  .workspace-confirm-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .workspace-page .dashboard-toolbar { padding: 16px; }
  .workspace-page .dashboard-period-wrap, .workspace-page .dashboard-period, .workspace-page .dashboard-filter { width: 100%; max-width: none; }
  .workspace-page .dashboard-period button { flex: 1 1 calc(50% - 4px); }
  .workspace-page .dashboard-metrics { gap: 10px; }
  .workspace-page .metric-card { min-height: 122px; padding: 16px; }
  .workspace-page .metric-card strong { font-size: 25px; }
  .workspace-page .metric-card span { margin-top: 14px; }
  .workspace-page .dashboard-chart { padding: 16px; }
  .workspace-page .status-donut { width: 150px; height: 150px; }
  .workspace-page .status-donut > div { width: 105px; height: 105px; }
  .workspace-page .topnav { padding: 12px 16px; gap: 12px; }
  .workspace-page .topnav .brand { font-size: 22px; flex: none; }
  .workspace-page .who { font-size: 12px; gap: 8px; }
  .workspace-page .who #user-name { max-width: 120px; }
  .workspace-page .container { padding: 20px 16px 36px; }
  .workspace-page .panel, .workspace-page .create-panel { padding: 18px; margin-bottom: 18px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading p:last-child { font-size: 14px; }
  .workspace-page .panel-tabs { width: 100%; }
  .workspace-page .panel-tabs { flex-wrap: wrap; }
  .workspace-page .panel-tabs button { flex: 1 1 42%; padding: 10px 8px; }
  .workspace-page .item { padding: 16px; }
  .workspace-page .item .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-page .item .actions .btn { min-height: 44px; text-align: center; }
  .workspace-page .create-heading { display: block; margin-bottom: 18px; }
  .workspace-page .create-heading > p { margin-top: 8px; }
  .workspace-page .create-form { grid-template-columns: minmax(0, 1fr); }
  .workspace-page .create-form .btn { width: 100%; }
  .workspace-page #profile-form { flex-direction: column; }
  .workspace-page .row > .input { flex: auto; }
  .workspace-page .list-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 10px; }
  .workspace-page .list-filters .search-filter { grid-column: 1 / -1; }
  .workspace-page .list-filters .btn { width: 100%; }
  .workspace-page .list-filters input { min-width: 0; padding: 8px; }
  .workspace-page .dashboard-custom-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-page .dashboard-custom-dates label { width: 100%; }
  .workspace-page .usage-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-page .btn.small { min-height: 44px; }
  .meeting-page .controls { gap: 4px; padding-left: 6px; padding-right: 6px; }
  .meeting-page .ctl { flex: 1 1 0; width: auto; min-width: 0; font-size: 11px; }
  .meeting-page .ctl .ic { width: 44px; height: 44px; }
  .meeting-page .topbar { justify-content: flex-start; right: 120px; }
  .meeting-page #screen-call:has(#btn-contract:not([hidden])) .topbar { top: 68px; left: 12px; right: 12px; justify-content: center; }
  .meeting-page .pill { font-size: 12px; padding: 8px 10px; }
  .meeting-page .call-chat, .meeting-page .call-participants { max-height: calc(100dvh - 190px - env(safe-area-inset-bottom)); }
  .meeting-page .modal-box { padding: 24px; }
  .meeting-page #modal[data-kind="invite"] .actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 390px) {
  .workspace-page .list-filters label:not(.search-filter), .workspace-page .dashboard-custom-dates label { grid-column: 1 / -1; }
  .workspace-page .dashboard-custom-dates { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-page *, .meeting-page .ctl, .meeting-page .ctl .ic { transition: none; }
}
@media (max-height: 600px) {
  .meeting-page .call-chat, .meeting-page .call-participants { top: 66px; bottom: calc(96px + env(safe-area-inset-bottom)); height: auto; max-height: none; overflow-y: auto; }
  .meeting-page .call-chat > * { flex-shrink: 0; }
  .meeting-page .chat-messages { min-height: 80px; overflow: visible; }
  .meeting-page .chat-heading { padding: 8px 14px; }
}
@media (max-width: 370px) and (min-height: 601px) {
  .meeting-page .controls { flex-wrap: wrap; gap: 6px; }
  .meeting-page .ctl { flex: 0 0 calc((100% - 18px) / 4); }
  .meeting-page .call-chat, .meeting-page .call-participants { bottom: calc(170px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 220px - env(safe-area-inset-bottom)); }
}
