/* Locmeet — identidade do Figma "LocAgora / LocMeet" (Frame 1 e 2).
   Cores medidas no arquivo: fundo #080055, painel #2905C9, verde da marca #3DEB4E, verde de interface #5DD55A, creme #F7EDDF.
   Medidas do Frame 2 (3119 px) convertidas para tela de 1440 px. */
:root {
  --bg: #080055;
  --panel: #2905c9;
  --panel-2: #3513cb;
  --panel-3: #4425d8;
  --panel-deep: #1d0399;
  --green: #3deb4e;
  --green-ui: #5dd55a;
  --green-ui-2: #4cc449;
  --cream: #f7eddf;
  --muted: #bdb5f0;
  --muted-2: #8f86d6;
  --danger: #ff6b6b;
  --warn: #ffc94d;
  --info: #8fd3ff;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-top: clamp(24px, 7vw, 101px);
  --pad-x-left: clamp(16px, 7.2vw, 104px);
  --pad-x-right: clamp(16px, 8.1vw, 117px);
  --side-w: clamp(260px, 26.5vw, 381px);
  --gap-main: clamp(28px, 5.6vw, 81px);
  --r-side: 48px;
  --r-card: 16px;
  --r-ctl: 14px;
  --shadow-pop: 0 18px 50px rgba(3, 0, 40, .55);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--cream); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-ui); }
:focus-visible { outline: 2px solid var(--green-ui); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }

/* ---------- marca ---------- */
.brand-logo { display: block; width: 188px; height: auto; }
.brand-logo.lg { width: clamp(220px, 32vw, 335px); }
.brand-logo.sm { width: 132px; }

/* ---------- login (Frame 1) ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 56px 24px; }
.login-inner { width: min(1049px, 100%); display: grid; justify-items: center; gap: clamp(48px, 13vh, 140px); }
.login-panel { position: relative; width: 100%; min-height: 329px; background: var(--panel); border-radius: 50px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 485px); align-items: center; padding: 36px 93px 36px 0; }
/* a ilustração (exportada do Figma) já contém o canto esquerdo do painel: -16/-59 alinham as bordas */
/* Figma Frame 1: ilustração em (-29,-127) do painel 2296×722, largura 972 */
.login-art { position: absolute; left: -1.26%; top: 0; margin-top: -5.53%; width: 42.33%; height: auto; pointer-events: none; user-select: none; }
.login-form { grid-column: 2; display: grid; gap: 17px; }
.login-field { height: 70px; border-radius: 26px; background: var(--bg); display: flex; align-items: center; gap: 14px; padding: 0 34px; font-size: 21px; letter-spacing: .07em; color: var(--cream); }
.login-field svg { width: 22px; height: 22px; flex: none; }
.login-field { cursor: text; }
.login-field:focus-within { box-shadow: 0 0 0 2px var(--green); }
.login-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--cream); font: inherit; letter-spacing: inherit; padding: 0; }
.login-field input::placeholder { color: var(--cream); opacity: 1; }
.login-field input:focus::placeholder { opacity: .45; }
.login-field input:-webkit-autofill { -webkit-text-fill-color: var(--cream); -webkit-box-shadow: 0 0 0 100px var(--bg) inset; caret-color: var(--cream); }
.btn-acessar { cursor: pointer; font-family: inherit; }
.btn-acessar:disabled { opacity: .6; cursor: wait; }
.login-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; letter-spacing: .08em; margin-top: 4px; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: rgba(247, 237, 223, .25); }
.btn-google { height: 54px; border-radius: 18px; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 16px; letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 12px; }
.btn-google:hover { filter: brightness(.96); }
.btn-google svg { width: 22px; height: 22px; }
.login-hint.wide { max-width: none; }
.login-title { margin: 0; font-size: 26px; color: var(--cream); }
.login-error[hidden] { display: none; }
.login-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.login-hint { font-size: 12.5px; letter-spacing: .05em; line-height: 1.35; color: var(--cream); max-width: 230px; margin: 0; }
.btn-acessar { border: 0; border-radius: 18px; background: var(--green); color: var(--bg); font-weight: 700; font-size: 19px; letter-spacing: .09em; height: 50px; padding: 0 30px; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.btn-acessar:hover { filter: brightness(1.07); }
.login-error { background: rgba(255, 107, 107, .14); box-shadow: inset 0 0 0 1px var(--danger); padding: 10px 14px; border-radius: 14px; font-size: 13px; }
.login-note { font-size: 12.5px; color: var(--muted); text-align: center; max-width: 620px; margin: -40px 0 0; }

/* ---------- estrutura (Frame 2) ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: var(--gap-main); padding: var(--pad-top) var(--pad-x-right) 60px var(--pad-x-left); min-height: 100vh; max-width: 1600px; margin: 0 auto; }
.side { position: sticky; top: var(--pad-top); align-self: start; height: calc(100vh - var(--pad-top) - 60px); min-height: 520px; background: var(--panel); border-radius: var(--r-side); padding: 22px 36px 28px 18px; display: flex; flex-direction: column; }
.profile { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; min-width: 0; }
.avatar { width: 62px; height: 62px; flex: none; border-radius: 50%; background: var(--green-ui); color: var(--bg); display: grid; place-items: center; }
.avatar svg { width: 26px; height: 26px; }
.profile b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { display: block; font-size: 13px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile > div { min-width: 0; }
.nav { display: grid; gap: 9px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 60px; padding: 0 14px; border: 1px solid var(--green-ui); border-radius: var(--r-ctl); color: var(--cream); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); }
.nav a.active { font-weight: 700; background: rgba(93, 213, 90, .08); }
.nav .ic { width: 32px; height: 32px; flex: none; border-radius: 7px; background: var(--green-ui); color: var(--bg); display: grid; place-items: center; }
.nav .ic svg { width: 17px; height: 17px; }
.side-foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; font-size: 12.5px; color: var(--muted); }
.side-foot form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cream); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.main { min-width: 0; display: flex; flex-direction: column; }

/* ---------- cabeçalho ---------- */
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.kpis { display: flex; align-items: center; }
.kpi { display: grid; }
.kpi small { font-size: 15px; letter-spacing: .02em; color: var(--cream); opacity: .92; margin-bottom: 2px; }
.kpi b { font-size: clamp(64px, 8.6vw, 124px); line-height: .9; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.star { width: clamp(64px, 7.4vw, 107px); height: auto; color: var(--green-ui); margin: 0 clamp(10px, 1.4vw, 18px); align-self: center; flex: none; }
.head-right { display: grid; justify-items: end; gap: 22px; }
.rule { height: 2px; background: var(--green-ui); border-radius: 2px; margin: clamp(20px, 2.4vw, 32px) 0 clamp(32px, 3.8vw, 54px); }
.page-title { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.page-sub { margin: 10px 0 0; font-size: 15px; color: var(--muted); max-width: 640px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; }
.toolbar .spacer { flex: 1; }
.toolbar .push { margin-left: auto; }
.iconbtn { width: 51px; height: 51px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--cream); border: 0; text-decoration: none; }
.iconbtn:hover { background: var(--panel-3); color: var(--green); }
.iconbtn svg { width: 20px; height: 20px; }
.table-wrap.cmp { margin: 0 -16px; padding: 0; }
.table-wrap.cmp th, .table-wrap.cmp td { padding: 12px 7px; }
.table-wrap.cmp th { font-size: 12px; }
.table-wrap.cmp th:first-child, .table-wrap.cmp td:first-child { padding-left: 16px; }
.table-wrap.cmp th:last-child, .table-wrap.cmp td:last-child { padding-right: 16px; }
.toolbar .btn, .toolbar .search, .toolbar .seg { height: 51px; }
.toolbar .seg button { height: 43px; padding: 0 20px; }

/* ---------- controles ---------- */
.pill { height: 51px; display: inline-flex; align-items: center; gap: 14px; padding: 0 20px 0 18px; background: var(--panel-2); border: 0; border-radius: 999px; color: var(--cream); font-size: 15px; white-space: nowrap; }
.pill:hover { background: var(--panel-3); }
.pill svg.cal { width: 26px; height: 26px; }
.pill svg.caret { width: 14px; height: 14px; }
.pill.sm { height: 51px; padding: 0 16px; font-size: 14px; gap: 10px; }
.pill .count { background: var(--green-ui); color: var(--bg); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; }
.search { height: 44px; min-width: 260px; flex: 1 1 260px; max-width: 380px; background: var(--panel-2); border: 0; border-radius: 999px; padding: 0 18px 0 44px; color: var(--cream); font-size: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7EDDF' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: 16px 50%; }
.search::placeholder { color: var(--muted); }
.btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--green-ui); color: var(--bg); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--green-ui-2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--green-ui); }
.btn.ghost:hover { background: rgba(93, 213, 90, .1); }
.btn.dark { background: var(--panel); color: var(--cream); }
.btn.dark:hover { background: var(--panel-3); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn.danger { background: var(--danger); color: var(--bg); }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--panel-deep); border-radius: 999px; }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--cream); font-size: 14px; }
.seg button.on { background: var(--green-ui); color: var(--bg); font-weight: 700; }
.seg button:not(.on):hover { background: rgba(255, 255, 255, .07); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tabs a { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--cream); text-decoration: none; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(93, 213, 90, .55); }
.tabs a.on { background: var(--green-ui); color: var(--bg); font-weight: 700; box-shadow: none; }
.tabs a:not(.on):hover { background: rgba(93, 213, 90, .1); }
.field { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.field input, .field textarea { height: 52px; border: 0; border-radius: var(--r-ctl); background: var(--bg); color: var(--cream); padding: 0 18px; font-size: 15px; }
.field input::placeholder { color: var(--muted-2); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--green-ui); display: grid; place-items: center; margin: 0; cursor: pointer; }
.check input:checked { background: var(--green-ui); }
.check input:checked::after { content: ''; width: 11px; height: 6px; border-left: 2.5px solid var(--bg); border-bottom: 2.5px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px); }

/* ---------- popover / dropdown próprios ---------- */
.pop { position: fixed; z-index: 60; min-width: 220px; background: var(--panel); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-pop), inset 0 0 0 1px rgba(93, 213, 90, .35); animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.pop .opt { width: 100%; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--cream); font-size: 14px; text-align: left; }
.pop .opt:hover, .pop .opt:focus-visible { background: var(--panel-3); outline: none; }
.pop .opt .tick { width: 18px; height: 18px; color: var(--green-ui); flex: none; }
.pop .opt.on { font-weight: 700; }
.pop .sep { height: 1px; background: rgba(247, 237, 223, .12); margin: 6px 4px; }
.pop .lbl { font-size: 12px; color: var(--muted); padding: 8px 12px 4px; letter-spacing: .04em; text-transform: uppercase; }
.pop.range { width: 340px; padding: 16px; display: grid; gap: 14px; }
.pop.range .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pop.range .nav-row b { font-size: 15px; font-weight: 600; text-align: center; flex: 1; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--panel-2); color: var(--cream); }
.icon-btn:hover { background: var(--panel-3); }
.icon-btn svg { width: 16px; height: 16px; }
.pop.range .dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pop.range .dates input { height: 44px; border: 0; border-radius: 12px; background: var(--bg); color: var(--cream); padding: 0 12px; color-scheme: dark; }

/* ---------- cards da agenda (Frame 2) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 4.9%; row-gap: clamp(20px, 2.8vw, 40px); }
/* Figma Frame 2 › card 364×322, padding 30/35/21, conteúdo 304 → 1cqi = 3,04px do Figma */
.mcard { container-type: inline-size; position: relative; aspect-ratio: 364 / 322; background: var(--panel); border-radius: 10.4%/11.8%; padding: 9.6% 8.24% 5.8%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; color: var(--cream); cursor: pointer; border: 0; text-align: left; transition: transform .12s, box-shadow .12s; min-width: 0; }
.mcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.mcard:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.mcard .lefty { display: flex; flex-direction: column; gap: 4.3cqi; min-width: 0; grid-row: 1 / 3; }
.mcard .cam { width: 39.1cqi; height: 41.1cqi; border-radius: 8.6cqi; background: var(--green-ui); color: var(--bg); display: grid; place-items: center; }
.mcard .cam svg { width: 15.5cqi; height: 15.5cqi; stroke-width: 2.2; }
.mcard .time { font-size: 12cqi; line-height: 1; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.mcard .day { grid-row: 1 / 3; justify-self: end; align-self: end; text-align: right; margin-top: -5.5cqi; }
.mcard .day span { display: block; font-size: 27.2cqi; line-height: .9; font-weight: 700; letter-spacing: -.03em; }
.mcard .day b { display: block; font-size: 45cqi; line-height: .8; font-weight: 700; letter-spacing: -.03em; margin-right: -.04em; }
.mcard .act { grid-column: 1 / -1; grid-row: 3; align-self: end; margin-top: 8.5cqi; height: 17.4cqi; border: 0; border-radius: 999px; background: var(--green-ui); color: var(--bg); font-size: 7.6cqi; font-weight: 700; letter-spacing: .07em; display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.mcard .act:hover { background: var(--green-ui-2); }
.mcard .dot { position: absolute; top: 6%; right: 6%; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
.mcard.next { background: var(--green-ui); color: var(--bg); display: flex; flex-direction: column; padding-top: 7.1%; }
.mcard.next .screen { height: 41.1cqi; border-radius: 8.6cqi; background: var(--panel); color: var(--cream); display: grid; place-items: center; flex: none; }
.mcard.next .screen svg { width: 15.5cqi; height: 15.5cqi; }
.mcard.next .headline { text-align: center; font-size: 12.4cqi; line-height: 1; font-weight: 700; letter-spacing: -.04em; margin-top: auto; }
.mcard.next .sub { text-align: center; font-size: 5.2cqi; font-weight: 500; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1.5cqi; }
.mcard.next .act { background: var(--panel); color: var(--green-ui); margin-top: 5cqi; flex: none; }
.mcard.next .act:hover { background: var(--panel-3); }
.mcard.cancelled { opacity: .5; }

.empty { display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 8vh, 80px) 16px; text-align: center; color: var(--muted); }
.empty svg { width: 64px; height: 64px; color: var(--panel-3); }
.empty b { color: var(--cream); font-size: 18px; font-weight: 600; }

/* ---------- listas e painéis ---------- */
.panel { background: var(--panel); border-radius: 24px; padding: clamp(20px, 2.2vw, 30px); }
.panel + .panel { margin-top: 24px; }
.panel h2 { margin: 0 0 18px; font-size: 20px; font-weight: 700; }
.panel h3 { margin: 22px 0 10px; font-size: 15px; font-weight: 700; }
.list { display: grid; gap: 12px; }
.litem { width: 100%; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 16px 22px; background: var(--panel); border: 0; border-radius: var(--r-card); color: var(--cream); text-align: left; transition: background .12s; }
.litem:hover { background: var(--panel-3); }
.litem .when { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.litem .when .cam { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--green-ui); color: var(--bg); display: grid; place-items: center; }
.litem .when .cam svg { width: 18px; height: 18px; }
.litem .when b { font-size: 17px; font-weight: 700; line-height: 1.1; }
.litem .when small { font-size: 12.5px; color: var(--muted); }
.litem .what { min-width: 0; }
.litem .what b { display: block; font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.litem .what small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(247, 237, 223, .1); color: var(--cream); white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip.ok { color: var(--green-ui); background: rgba(93, 213, 90, .14); }
.chip.rec { color: #ff8f8f; background: rgba(255, 107, 107, .16); }
.chip.warn { color: var(--warn); background: rgba(255, 201, 77, .14); }
.chip.bad { color: var(--danger); background: rgba(255, 107, 107, .15); }
.chip.info { color: var(--info); background: rgba(143, 211, 255, .14); }
.chip.plain::before { display: none; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(247, 237, 223, .1); vertical-align: middle; }
th { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; white-space: nowrap; line-height: 1.25; vertical-align: bottom; }
td.who { white-space: nowrap; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--panel); border-radius: var(--r-card); padding: 18px 20px; }
.stat small { display: block; font-size: 13px; color: var(--muted); }
.stat b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.defs { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.defs b { color: var(--cream); font-weight: 600; }
details summary { cursor: pointer; font-size: 13.5px; color: var(--cream); }
.notice { border-radius: 14px; padding: 12px 16px; font-size: 14px; background: rgba(255, 201, 77, .1); box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .55); }
.notice.bad { background: rgba(255, 107, 107, .1); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .6); }
.notice.ok { background: rgba(93, 213, 90, .1); box-shadow: inset 0 0 0 1px rgba(93, 213, 90, .6); }
.notice + .notice, .notices { margin-bottom: 20px; }
.notices { display: grid; gap: 10px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form-row .field { flex: 1 1 220px; }

/* ---------- calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .dow { font-size: 12.5px; color: var(--muted); text-align: center; padding-bottom: 4px; }
.cal .cell { min-height: 108px; background: var(--panel); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal .cell.out { background: transparent; box-shadow: inset 0 0 0 1px rgba(41, 5, 201, .7); }
.cal .cell.today { box-shadow: inset 0 0 0 2px var(--green-ui); }
.cal .cell .d { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.cal .ev { display: block; width: 100%; border: 0; border-radius: 7px; background: var(--panel-3); color: var(--cream); font-size: 11.5px; padding: 3px 6px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal .ev.pro { background: var(--green-ui); color: var(--bg); font-weight: 600; }

/* ---------- gaveta, modal, toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4, 0, 40, .62); backdrop-filter: blur(2px); }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(580px, 100%); background: var(--bg); box-shadow: -1px 0 0 rgba(93, 213, 90, .35), -24px 0 60px rgba(0, 0, 0, .4); overflow-y: auto; padding: 32px; }
.drawer header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.drawer h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.drawer .chips { justify-content: flex-start; margin-top: 10px; }
.drawer section { background: var(--panel); border-radius: 20px; padding: 20px 22px; }
.drawer section h3 { margin: 0 0 12px; font-size: 15px; }
.drawer section * + h3 { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(247, 237, 223, .12); }
.modal { position: fixed; z-index: 42; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; background: var(--panel); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-pop); }
.modal h2 { margin: 0 0 14px; font-size: 22px; }
.modal p { margin: 0 0 12px; font-size: 14.5px; color: #e6defa; }
.modal .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--cream); color: var(--bg); font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-pop); }

/* ---------- celular ---------- */
.mtop { display: none; }
@media (max-width: 1180px) {
  .login-panel { padding-right: 48px; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; padding: 16px 16px 40px; gap: 20px; }
  .side { position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(340px, 86vw); height: 100%; border-radius: 0 32px 32px 0; transform: translateX(-105%); transition: transform .2s; min-height: 0; }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; z-index: 49; background: rgba(4, 0, 40, .6); }
  .mtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  .mtop .icon-btn { width: 46px; height: 46px; background: var(--panel); }
  .head { flex-direction: column; }
  .head-right { justify-items: start; width: 100%; }
  .head-right .brand-logo { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .litem { grid-template-columns: 1fr; gap: 10px; }
  .chips { justify-content: flex-start; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  .search { max-width: none; }
  .cal .cell { min-height: 64px; padding: 6px; }
  .cal .ev { font-size: 0; height: 6px; padding: 0; }
  /* ilustração encaixada no canto do painel, na mesma proporção do Figma (painel começa em 19,68 do PNG de 489×458) */
  .login-panel { grid-template-columns: 1fr; padding: calc(70% + 16px) 22px 30px; border-radius: 32px; margin-top: 18%; }
  .login-art { left: 6%; margin-top: -16%; width: 88%; }
  .login-form { grid-column: 1; }
  .login-field { height: 60px; font-size: 18px; padding: 0 22px; }
  .login-actions { flex-direction: column; align-items: stretch; }
  .login-actions .btn-acessar { justify-content: center; }
  .login-hint { max-width: none; }
  .drawer { padding: 22px 18px; }
  .kpi small { font-size: 13px; white-space: nowrap; }
  .kpis { justify-content: space-between; width: 100%; }
}

.notice.row-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- verificação em duas etapas ---------- */
.mfa-panel { width: min(880px, 100%); background: var(--panel); border-radius: 50px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.mfa-qr { display: grid; gap: 12px; justify-items: center; text-align: center; }
.mfa-qr #qr { width: 220px; height: 220px; background: #fff; border-radius: 22px; padding: 10px; display: grid; place-items: center; color: var(--bg); font-size: 13px; }
.mfa-qr #qr svg { width: 100%; height: 100%; display: block; }
.mfa-qr small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mfa-qr code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .06em; color: var(--cream); }
.mfa-steps h1 { margin: 0 0 14px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.mfa-steps p { margin: 0 0 18px; color: #E3DBFF; }
.mfa-steps ol { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 10px; color: #E3DBFF; font-size: 15px; line-height: 1.5; }
.mfa-steps a { color: var(--green-ui); font-weight: 700; }
.mfa-steps.solo { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; text-align: center; }
.mfa-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 8px; }
.mfa-form input { height: 64px; border: 0; border-radius: 25px; background: var(--bg); color: var(--cream); font: 600 30px/1 'DM Sans', system-ui, sans-serif; letter-spacing: .4em; text-align: center; padding: 0 0 0 .4em; min-width: 0; }
.mfa-form input::placeholder { color: rgba(247, 237, 223, .25); }
.mfa-form input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.mfa-form .btn-acessar { height: 64px; }
.mfa-form .btn-acessar:disabled { opacity: .6; cursor: wait; }
.mfa-msg { grid-column: 1 / -1; margin: 0; min-height: 20px; font-size: 14px; color: #FFB4AB; }
.mfa .link-btn { color: var(--muted); }
.row-actions { display: inline-flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (max-width: 760px) {
  .mfa-panel { grid-template-columns: 1fr; border-radius: 32px; }
  .mfa-qr #qr { width: 200px; height: 200px; }
  .mfa-form { grid-template-columns: 1fr; }
}
.linkish { background: none; border: 0; padding: 0; color: var(--cream); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(93, 213, 90, .6); text-underline-offset: 4px; }
.linkish:hover { color: var(--green); }
.evdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; background: var(--green-ui); }
.evdot.bad { background: #FF6B5E; }
.linkish.sm { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.row-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.chips-col { display: grid; gap: 6px; justify-items: start; }

/* ---------- menu "⋯" das reuniões e reuniões internas ---------- */
.more { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--cream); display: grid; place-items: center; cursor: pointer; opacity: .75; flex: none; }
.more svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.more:hover, .more:focus-visible { opacity: 1; background: rgba(247, 237, 223, .12); }
.mcard .more { position: absolute; top: 5%; right: 5%; width: 11cqi; height: 11cqi; min-width: 26px; min-height: 26px; background: rgba(8, 0, 85, .35); z-index: 1; }
.mcard.next .more { background: rgba(8, 0, 85, .15); color: var(--bg); }
.mcard .dot { right: auto; left: 6%; }
.litem .more { margin-left: 4px; }
.mcard.internal, .litem.internal { opacity: .55; }
.litem { cursor: pointer; }
.invite-link { display: flex; gap: 10px; margin: 14px 0; }
.invite-link input { flex: 1; min-width: 0; background: var(--bg); color: var(--cream); border: 0; border-radius: var(--r-ctl); padding: 12px 14px; font: inherit; font-size: 13px; }
.mfa-steps ol[hidden] { display: none; }
.mfa-steps a.btn-acessar { color: var(--bg); }
.mfa-mobile { display: grid; gap: 10px; margin: 0 0 14px; }
.mfa-mobile .btn-acessar { justify-content: center; height: 56px; font-size: 17px; }
.mfa-mobile .btn { justify-content: center; }
@media (max-width: 960px) {
  .mfa-panel { grid-template-columns: 1fr; border-radius: 32px; }
  .mfa-qr { order: 2; }
}
.mfa-panel { box-sizing: border-box; max-width: 100%; }
.mfa-form .btn-acessar { justify-content: center; }
@media (max-width: 960px) { .login.mfa { padding-left: 16px; padding-right: 16px; } .mfa-panel { padding: 26px 20px; } }
#srv { display: contents; }
