
:host { all: initial; }
* { box-sizing: border-box; }
button { font: inherit; }
.wl, .toasts {
  --wl-blue: #1D90F5; --wl-blue-2: #4AA8FF; --wl-blue-deep: #004077;
  --wl-bg: #0b0d10; --wl-surface: #111418; --wl-surface-2: #181c22; --wl-surface-3: #20252d;
  --wl-border: #262c35; --wl-border-2: #313844;
  --wl-text: #eef2f7; --wl-muted: #93a0b2; --wl-faint: #808BA0;
  --wl-ok: #22c55e; --wl-warn: #f59e0b; --wl-err: #ef4444;
  --wl-shadow: 0 18px 48px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
  --wl-radius: 12px; --wl-radius-sm: 8px;
  --wl-ease: cubic-bezier(.2,.8,.2,1);
  --wl-rail: #111b21; --wl-rail-icon: #aebac1;
  font: 13px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--wl-text); -webkit-font-smoothing: antialiased;
}
.wl.light {
  --wl-bg: #f4f6f9; --wl-surface: #ffffff; --wl-surface-2: #f3f5f8; --wl-surface-3: #e9edf3;
  --wl-border: #e1e6ed; --wl-border-2: #cfd6e0; --wl-text: #0f172a; --wl-muted: #5b6678; --wl-faint: #667085;
  --wl-shadow: 0 18px 48px rgba(15,23,42,.16), 0 2px 8px rgba(15,23,42,.08);
  --wl-rail: #f0f2f5; --wl-rail-icon: #54656f;
}

/* ---------- rail (left, 60px) ---------- */
.rail {
  position: fixed; top: 0; left: 0; bottom: 0; width: 60px; z-index: var(--z-bar);
  display: flex; flex-direction: column; align-items: center; background: var(--wl-rail); border-right: 1px solid var(--wl-border);
}
.rail-logo { position: relative; height: 54px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--wl-blue-2), var(--wl-blue-deep)); box-shadow: 0 4px 14px rgba(29,144,245,.35); }
.rail-dot { position: absolute; right: -1px; bottom: 6px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--wl-rail); }
.rail-list { flex: 1; min-height: 0; width: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; }
.rail-list::-webkit-scrollbar { display: none; }
.rail-btn { position: relative; flex: 0 0 auto; width: 34px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px;
  background: transparent; color: var(--wl-rail-icon); cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.rail-btn:hover { background: var(--wl-surface-3); color: var(--wl-text); }
.rail-btn:active { transform: scale(.92); }
.rail-btn[aria-current="true"] { background: var(--wl-blue); color: #fff; box-shadow: 0 4px 12px rgba(29,144,245,.35); }
/* Radar de Clientes: always highlighted in blue (tinted square + blue icon), in the rail and in the folded capsule. */
.rail-btn.hl { color: var(--wl-blue) !important; background: transparent; }
.rail-btn.hl:hover { background: var(--wl-surface-3) !important; }
/* Folded menu: capsule inside WhatsApp's own left bar, list scrolls inside it. */
.anchor-nav { width: 100%; display: flex; justify-content: center; padding: 8px 0; }
.nav-capsule { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.anchor-nav { --nc-bg: #1d2128; --nc-line: #3b414c; --nc-shadow: 0 10px 24px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4); --nc-hi: inset 0 1px 0 rgba(255, 255, 255, .09); }
.anchor-nav.light { --nc-bg: #ffffff; --nc-line: #c9d0da; --nc-shadow: 0 8px 20px rgba(15, 23, 42, .2), 0 2px 5px rgba(15, 23, 42, .12); --nc-hi: inset 0 1px 0 #ffffff; }
.nc-expand { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--nc-line); border-radius: 12px; background: var(--nc-bg); color: var(--wl-text); cursor: pointer; box-shadow: var(--nc-shadow), var(--nc-hi); }
.nc-expand:hover { border-color: var(--wl-blue); color: var(--wl-blue); }
.nc-box { position: relative; width: 48px; border-radius: 16px; background: var(--nc-bg); border: 1px solid var(--nc-line); box-shadow: var(--nc-shadow), var(--nc-hi); padding: 5px 0; }
.nc-list { display: flex; flex-direction: column; align-items: center; gap: 2px; max-height: clamp(120px, 30vh, 232px); overflow-y: auto; scrollbar-width: none; }
.nc-list::-webkit-scrollbar { display: none; }
.nc-list .rail-btn { width: 36px; height: 36px; }
.nc-more { display: grid; place-items: center; width: 100%; height: 20px; padding: 0; border: 0; background: none; color: var(--wl-faint); cursor: pointer; }
.nc-more:hover { color: var(--wl-text); }
.menu-compact .rail-btn { height: 28px; }
.rail-badge { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--wl-blue);
  color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--wl-rail); line-height: 1; }
.rail-sep { width: 22px; border: 0; border-top: 1px solid var(--wl-border-2); margin: 5px 0; flex: 0 0 auto; }
.rail-foot { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 6px; }
/* Fixed group at the bottom (More tools, tutorials, panel, notices), then the support button and the fold button. */
.rail-bottom { flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 0; }
.rail-support { flex: 0 0 auto; position: relative; display: grid; place-items: center; padding: 4px 0; }
.rail-fold { flex: 0 0 auto; width: 34px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--wl-faint); cursor: pointer; }
.rail-fold:hover { background: var(--wl-surface-3); color: var(--wl-text); }
/* Folded rail: only a thin tab at the left edge to bring it back. */
.rail.folded { display: none; }
.rail-unfold { position: fixed; left: 0; bottom: 96px; z-index: var(--z-bar); width: 18px; height: 54px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--wl-border); border-left: 0; border-radius: 0 12px 12px 0; background: var(--wl-rail); color: var(--wl-rail-icon); cursor: pointer; }
.rail-unfold:hover { color: var(--wl-text); width: 22px; }
/* Floating logo inside the conversation: round brand button at the right edge of the chat, with a menu of the chat tools. */
.float-menu { position: fixed; left: var(--walead-left, 0px); bottom: 100px; z-index: 2147482995; }
.float-btn { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .2s var(--wl-ease, ease); }
.float-btn:hover { transform: scale(1.08); }
.float-btn .brand-mark { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 46px; height: 46px; }
.float-btn .brand-mark.has-img { padding: 5px; border-radius: 0; overflow: visible; }
.float-btn .brand-mark.has-img img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; border-radius: 0; }
.float-card { position: absolute; left: 0; bottom: 52px; width: max-content; padding: 8px; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; }
.float-item { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--wl-text); font: inherit; font-size: 13px; cursor: pointer; }
.float-item:hover, .float-item[aria-current="true"] { background: var(--wl-surface-3); }
.float-label { display: none; position: absolute; left: calc(100% + 10px); padding: 4px 9px; border-radius: 6px; white-space: nowrap; color: var(--wl-text); background: var(--wl-surface); }
.float-item:hover .float-label, .float-item:focus-visible .float-label { display: block; }
.float-ico { display: grid; place-items: center; color: var(--wl-blue); }
.rail-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; color: #fff; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #4AA8FF, #004077); transition: border-color .15s, transform .12s; }
.rail-avatar:hover, .rail-avatar[aria-current="true"] { border-color: var(--wl-blue); }
.rail-version { font-size: 8.5px; color: var(--wl-faint); letter-spacing: -.1px; }

/* ---------- top bar (48px) ---------- */
.topbar {
  position: fixed; top: 0; left: var(--walead-rail, 60px); right: 0; height: 48px; z-index: 2147482990;
  display: flex; align-items: center; gap: 4px; padding: 0 6px; background: var(--wl-rail); border-bottom: 1px solid var(--wl-border);
}
.tb-anchor { position: relative; }
/* Free plan: fixed "Comprar assinatura" at the right end of the top bar. */
.tb-buy { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; margin: 0 4px 0 6px; border: 0; border-radius: 8px; background: var(--wl-blue); color: var(--wl-on-accent, #fff); font-weight: 650; font-size: 12.5px; white-space: nowrap; cursor: pointer; transition: filter .12s; }
.tb-buy:hover { filter: brightness(1.1); }
.plan-chip { flex: 0 0 auto; height: 26px; padding: 0 10px; border: 1px solid var(--wl-border-2); border-radius: 99px; background: transparent; color: var(--wl-muted); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.plan-chip:hover { color: var(--wl-text); }
.plan-chip.warn { color: #FF9F0A; border-color: rgba(255, 159, 10, .5); background: rgba(255, 159, 10, .10); }
.plan-pop { right: 0; top: calc(100% + 8px); width: 300px; display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.plan-list { display: flex; flex-direction: column; gap: 9px; max-height: 300px; overflow: auto; }
.plan-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: 12.5px; }
.plan-bar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--wl-surface-3); overflow: hidden; }
.plan-bar i { display: block; height: 100%; border-radius: inherit; background: var(--wl-blue); }
.plan-row.near .plan-bar i { background: #FF9F0A; }
.plan-row.full .plan-bar i { background: #FF453A; }
.plan-row.full > span:first-child { color: #FF6961; font-weight: 600; }
/* Busca rápida (Ctrl K) */
.palette-backdrop { position: fixed; inset: 0; z-index: var(--z-modal, 2147483000); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; background: rgba(0, 0, 0, .45); }
.palette { width: min(560px, calc(100vw - 32px)); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--wl-surface); border: 1px solid var(--wl-border-2); box-shadow: var(--wl-shadow); }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--wl-border); color: var(--wl-muted); }
.palette-input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; color: var(--wl-text); font: inherit; font-size: 15px; }
.palette-list { flex: 1; min-height: 0; overflow: auto; padding: 6px; }
.palette-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; color: var(--wl-faint); text-transform: uppercase; letter-spacing: .06em; }
.palette-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--wl-text); text-align: left; cursor: pointer; font: inherit; }
.palette-item[aria-selected="true"] { background: color-mix(in srgb, var(--wl-blue) 18%, transparent); }
.palette-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-hint { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-empty { margin: 0; padding: 18px 12px; text-align: center; }
.palette-foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--wl-border); }
/* Hoje */
.today { display: flex; flex-direction: column; gap: 16px; }
.today-sec { display: flex; flex-direction: column; gap: 6px; }
.today-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.today-sec h4 .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--wl-surface-3); color: var(--wl-muted); }
.today-sec p { margin: 0; }
.today-list { display: flex; flex-direction: column; gap: 4px; }
.today-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--wl-border); border-radius: 10px; background: var(--wl-surface-2); color: var(--wl-text); text-align: left; cursor: pointer; font: inherit; }
.today-row:hover:not(:disabled) { border-color: var(--wl-border-2); }
.today-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.today-row span { flex: 0 0 auto; }
.today-row.late span { color: #FF9F0A; }
.today-clear { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--wl-ok, #22c55e) 14%, transparent); }
.tb-btn { width: 30px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--wl-rail-icon); cursor: pointer; transition: background .15s, color .15s; }
.tb-btn:hover, .tb-btn[aria-expanded="true"] { background: var(--wl-surface-3); color: var(--wl-text); }
.tb-chips { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 6px; }
.tb-chips::-webkit-scrollbar { display: none; }
.tb-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; white-space: nowrap; font-size: 12px;
  border: 1px solid var(--wl-border); background: var(--wl-surface-2); color: var(--wl-muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; animation: wl-pop .16s var(--wl-ease); }
.tb-chip:hover { color: var(--wl-text); }
.tb-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--chip, var(--wl-blue)) 22%, transparent); border-color: var(--chip, var(--wl-blue)); color: var(--wl-text); }
.tb-chip .swatch, .pop .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--chip, var(--wl-blue)); flex: 0 0 auto; }
.tb-chip .count { font-size: 10.5px; color: var(--wl-faint); }
.pop { position: absolute; top: calc(100% + 6px); z-index: 40; padding: 8px; background: var(--wl-surface); border: 1px solid var(--wl-border-2); border-radius: 12px; box-shadow: var(--wl-shadow); animation: wl-pop .14s var(--wl-ease); }
.filter-pop { left: 0; min-width: 230px; max-width: 260px; }
.pop-note { margin: 4px 2px 2px; padding: 8px 10px 4px; border-top: 1px solid var(--wl-border); font-size: 11.5px; line-height: 1.45; color: var(--wl-muted); }
.pop-divider { height: 1px; margin: 4px 2px; background: var(--wl-border); }
/* CRM picker: which CRM's stages show as chips in the top bar */
.tb-board { flex: 0 1 auto; max-width: 190px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 9px; margin-left: 4px;
  border: 1px solid var(--wl-border-2); border-radius: 8px; background: var(--wl-surface-2); color: var(--wl-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.tb-board > svg:first-child { flex: 0 0 auto; color: var(--wl-blue-2, #4aa8ff); }
.tb-board:hover, .tb-board[aria-expanded="true"] { background: var(--wl-surface-3); border-color: color-mix(in srgb, var(--wl-blue) 45%, var(--wl-border-2)); }
.tb-board-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-board-chev { flex: 0 0 auto; color: var(--wl-muted); transition: transform .15s; }
.tb-board[aria-expanded="true"] .tb-board-chev { transform: rotate(180deg); }
.board-pop { left: 4px; width: 260px; display: flex; flex-direction: column; gap: 2px; }
.board-item .board-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.board-item .board-name small { font-size: 11px; color: var(--wl-muted); font-weight: 400; }
.board-item[aria-checked="true"] { background: color-mix(in srgb, var(--wl-blue) 10%, transparent); }
.tb-empty { font-size: 12px; color: var(--wl-faint); white-space: nowrap; padding-left: 4px; }
.tabs-pop-title { display: flex; flex-direction: column; min-width: 0; }
.tabs-pop-title small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs-pop { right: 0; width: 300px; display: flex; flex-direction: column; gap: 8px; }
.pop-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--wl-text); cursor: pointer; text-align: left; }
.pop-item:hover { background: var(--wl-surface-2); }
.pop-check { margin-left: auto; color: var(--wl-blue); }
.pop-create .input { flex: 1; min-width: 0; height: 32px; padding: 6px 10px; }
.pop .search .input { width: 100%; height: 32px; }
.pop-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.pop-row { display: flex; align-items: center; gap: 2px; }
.pop-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--wl-text); cursor: pointer; text-align: left; }
.pop-pick:hover { background: var(--wl-surface-2); }
.pop-pick .muted { margin-left: auto; font-size: 11px; }

/* ---------- tips (blue label, right of the rail / below elsewhere) ---------- */
.tip { position: fixed; z-index: var(--z-popover); pointer-events: none; padding: 5px 10px; border-radius: 7px; background: var(--wl-blue); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.tip.right { transform: translateY(-50%); animation: wl-tip-r .14s var(--wl-ease); }
.tip.below { transform: translateX(-50%); animation: wl-tip-b .14s var(--wl-ease); }
.tip.right::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: var(--wl-blue); transform: translateY(-50%) rotate(45deg); }
.tip.below::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; background: var(--wl-blue); transform: translateX(-50%) rotate(45deg); }

/* ---------- more tools & google ---------- */
.more-card { position: fixed; left: 68px; top: 50%; transform: translateY(-50%); width: 340px; z-index: var(--z-panel); padding: 14px;
  background: var(--wl-surface); border: 1px solid var(--wl-border-2); border-radius: 14px; box-shadow: var(--wl-shadow); animation: wl-slide-r .18s var(--wl-ease);
  display: flex; flex-direction: column; gap: 12px; }
.more-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.more-head p { margin: 2px 0 0; font-size: 12px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.more-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--wl-border); background: var(--wl-surface-2); color: var(--wl-text); cursor: pointer; text-align: left; font-weight: 600; transition: border-color .15s, transform .12s; }
.more-item:hover { border-color: var(--wl-blue); transform: translateY(-1px); }
.more-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--wl-blue) 18%, transparent); color: var(--wl-blue-2); flex: 0 0 auto; }
.more-empty { margin: 0; }
.more-config { width: 100%; }
.google-card { position: fixed; left: 68px; top: 56px; z-index: var(--z-panel); display: grid; grid-template-columns: repeat(3, 84px); gap: 6px; padding: 12px;
  background: var(--wl-surface); border: 1px solid var(--wl-border-2); border-radius: 14px; box-shadow: var(--wl-shadow); animation: wl-pop .16s var(--wl-ease); }
.google-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 10px; color: var(--wl-text); text-decoration: none; font-size: 12px; }
.google-item:hover { background: var(--wl-surface-2); }
.radar-launch { display: flex; flex-direction: column; gap: 14px; }
.radar-hero { display: flex; gap: 14px; align-items: flex-start; }
.radar-hero h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.25; }
.radar-hero p { margin: 0; }
.radar-ico { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #5bbcff, #1D90F5 50%, #14b8cf); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 22px rgba(29,144,245,.45); }
.radar-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.radar-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); }
.radar-steps li > span { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--wl-blue) 18%, transparent); color: var(--wl-blue); }
.radar-steps small { display: block; }
.radar-quota { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--wl-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.radar-quota.warn { color: var(--wl-warn); } .radar-quota.limit { color: var(--wl-err); }
.radar-quota small { font-weight: 500; }
.radar-upsell { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--wl-blue) 14%, transparent); border: 1px solid color-mix(in srgb, var(--wl-blue) 40%, transparent); }
.radar-upsell > div { flex: 1; } .radar-upsell small { display: block; }
.radar-actions { flex-wrap: wrap; }
.google-ico { display: grid; place-items: center; width: 34px; height: 34px; }
.chips { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; white-space: nowrap;
  border: 1px solid var(--wl-border); background: var(--wl-surface-2); color: var(--wl-muted); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.chip:hover { color: var(--wl-text); border-color: var(--wl-border-2); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--chip, var(--wl-blue)) 18%, transparent); border-color: var(--chip, var(--wl-blue)); color: var(--wl-text); }
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--chip, var(--wl-blue)); }
.chip .count { font-size: 11px; color: var(--wl-faint); }
.chip.add { border-style: dashed; }

/* ---------- primitives ---------- */
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: var(--wl-muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--wl-surface-2); color: var(--wl-text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; font-weight: 600; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--wl-border-2); background: var(--wl-surface-2); color: var(--wl-text); transition: filter .15s, transform .12s, background .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(180deg, var(--wl-blue-2), var(--wl-blue)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(29,144,245,.28); }
.btn.danger { color: var(--wl-err); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; color: var(--wl-blue); cursor: pointer; text-align: left; padding: 0; }
.card { background: var(--wl-surface-2); border: 1px solid var(--wl-border); border-radius: var(--wl-radius); padding: 14px; }
.card h3 { margin: 0 0 8px; font-size: 11px; font-weight: 700; color: var(--wl-faint); text-transform: uppercase; letter-spacing: .07em; }
.card p { margin: 0 0 8px; }
.card.warn { border-color: color-mix(in srgb, var(--wl-warn) 55%, var(--wl-border)); background: color-mix(in srgb, var(--wl-warn) 7%, var(--wl-surface-2)); }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--wl-muted); }
.error { color: var(--wl-err); margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--wl-surface-3); color: var(--wl-muted); }
.badge.premium { background: color-mix(in srgb, var(--wl-blue) 22%, transparent); color: var(--wl-blue-2); }
.badge.trial { /* the "RECOMENDADO" pill of the mass-send choice (not a plan) */ background: color-mix(in srgb, var(--wl-warn) 22%, transparent); color: var(--wl-warn); }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 12px; color: var(--wl-muted); }
.input { font: inherit; color: var(--wl-text); background: var(--wl-bg); border: 1px solid var(--wl-border-2); border-radius: 9px; padding: 9px 11px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--wl-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wl-blue) 25%, transparent); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch-btn { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .12s; }
.swatch-btn:hover { transform: scale(1.1); }
.swatch-btn[aria-pressed="true"] { border-color: var(--wl-text); }
button:focus-visible, .input:focus-visible { outline: 2px solid var(--wl-blue); outline-offset: 2px; }

/* ---------- modal ---------- */
.backdrop { position: fixed; inset: 0; z-index: 2147483100; background: rgba(4,8,14,.55); display: grid; place-items: center; animation: wl-fade .16s ease-out; }
.modal { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; background: var(--wl-surface); border: 1px solid var(--wl-border); border-radius: 16px; box-shadow: var(--wl-shadow); animation: wl-pop .2s var(--wl-ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 8px 18px 4px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 18px; }

/* ---------- menu ---------- */
.menu { position: absolute; z-index: 30; min-width: 190px; padding: 6px; background: var(--wl-surface); border: 1px solid var(--wl-border); border-radius: 10px; box-shadow: var(--wl-shadow); animation: wl-pop .14s var(--wl-ease); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--wl-text); cursor: pointer; text-align: left; }
.menu button:hover { background: var(--wl-surface-2); }
.menu button.danger { color: var(--wl-err); }
.menu hr { border: 0; border-top: 1px solid var(--wl-border); margin: 4px 0; }

/* ---------- toasts ---------- */
.notice-host { display: contents; }
.toasts .conn-warning, .toasts .reminders { position: static; transform: none; pointer-events: auto; max-width: min(460px, calc(100vw - 32px)); }
.toasts .conn-warning, .toasts .reminder-card { animation: wl-toast .22s var(--wl-ease); }

.toasts { position: fixed; right: 16px; top: 62px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 460px; padding: 11px 14px; border-radius: 12px;
  background: var(--wl-surface-3); color: var(--wl-text); border: 1px solid var(--wl-border-2); box-shadow: var(--wl-shadow); animation: wl-toast .22s var(--wl-ease); }
.toast-action { margin-left: auto; flex: 0 0 auto; height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--wl-border-2); background: transparent; color: var(--wl-text); font: inherit; font-weight: 600; cursor: pointer; }
.toast-action:hover { background: var(--wl-surface-2); }
.toast.ok svg { color: var(--wl-ok); } .toast.error svg { color: var(--wl-err); } .toast.info svg { color: var(--wl-blue); }

/* ---------- kanban ---------- */
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); }
.segmented button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--wl-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.segmented button[aria-pressed="true"] { background: var(--wl-surface); color: var(--wl-text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.segmented button:disabled { opacity: .45; cursor: not-allowed; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--wl-faint); }
.search .input { padding-left: 32px; width: 240px; height: 34px; }
.kb-col { flex: 0 0 286px; display: flex; flex-direction: column; max-height: 100%; background: var(--wl-surface); border: 1px solid var(--wl-border); border-radius: 14px; transition: border-color .15s, background .15s; }
.kb-col.drop { border-color: var(--wl-blue); background: color-mix(in srgb, var(--wl-blue) 6%, var(--wl-surface)); }
.kb-col-head { position: relative; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 8px 8px 12px; border-top: 3px solid var(--col); border-radius: 14px 14px 0 0; }
.kb-col-head strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-count { font-size: 11px; font-weight: 700; color: var(--wl-faint); background: var(--wl-surface-2); padding: 1px 8px; border-radius: 99px; }
.kb-cards { flex: 1; overflow-y: auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kb-card-wrap { position: relative; }
.kb-card-more { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; opacity: 0; transition: opacity .15s; }
.kb-card-wrap:hover .kb-card-more, .kb-card-more:focus-visible { opacity: 1; }
.kb-ghost { position: fixed; z-index: 2147483150; pointer-events: none; will-change: transform; transform: scale(1.02); box-shadow: 0 18px 48px rgba(0,0,0,.38); border-radius: 14px; }
.page.is-dragging { cursor: grabbing !important; user-select: none; }
.kb-card { touch-action: none; user-select: none; display: flex; gap: 10px; padding: 10px; border-radius: 11px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); cursor: grab; text-align: left; color: var(--wl-text);
  transition: transform .14s var(--wl-ease), box-shadow .14s, border-color .14s; }
.kb-card:hover { transform: translateY(-1px); border-color: var(--wl-border-2); box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.kb-card.dragging { opacity: .4; }
/* Linha azul no ponto onde o cartão vai cair: desenhada por cima do vão entre os cartões, sem mudar o layout. */
.kb-card-wrap.drop-before::before, .kb-card-wrap.drop-after::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--wl-blue); box-shadow: 0 0 8px color-mix(in srgb, var(--wl-blue) 60%, transparent); pointer-events: none; z-index: 3; }
.kb-card-wrap.drop-before::before { top: -4px; }
.kb-card-wrap.drop-after::after { bottom: -4px; }
.kb-empty.drop-here { outline: 2px dashed var(--wl-blue); outline-offset: -2px; color: var(--wl-blue); }
.kb-card-main { flex: 1; min-width: 0; }
.kb-card-top { display: flex; align-items: baseline; gap: 6px; }
.kb-card-top strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.kb-time { font-size: 11px; color: var(--wl-faint); }
.kb-preview { color: var(--wl-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.kb-meta { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.kb-label { width: 8px; height: 8px; border-radius: 50%; }
.kb-unread { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--wl-ok); color: #04170a; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.kb-badge { flex: 0 0 auto; height: 18px; padding: 0 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; color: var(--wl-warn); background: color-mix(in srgb, var(--wl-warn) 16%, transparent); white-space: nowrap; }
.kb-more { text-align: center; padding: 8px 6px; }
.funnel-outside { padding: 6px 16px; margin: 0; }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.skeleton { background: linear-gradient(90deg, var(--wl-surface-2), var(--wl-surface-3), var(--wl-surface-2)); background-size: 200% 100%; animation: wl-shimmer 1.2s infinite linear; border-radius: 11px; height: 64px; }

.wl ::-webkit-scrollbar { width: 8px; height: 8px; }
.wl ::-webkit-scrollbar-thumb { background: var(--wl-border-2); border-radius: 8px; }
.wl ::-webkit-scrollbar-track { background: transparent; }
.modal.wide { width: min(640px, calc(100vw - 32px)); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-content .grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
@media (max-width: 860px) { .settings-body { grid-template-columns: 56px 1fr; } .settings-nav button { justify-content: center; font-size: 0; gap: 0; padding: 10px 0; } .set-group.two { grid-template-columns: 1fr; } }
textarea.input, select.input { width: 100%; font: inherit; }
textarea.input { resize: vertical; min-height: 64px; }
.input-prefix { display: flex; align-items: center; }
.input-prefix span { padding: 0 8px; height: 38px; display: grid; place-items: center; border: 1px solid var(--wl-border-2); border-right: 0; border-radius: 9px 0 0 9px; color: var(--wl-faint); background: var(--wl-surface-2); }
.input-prefix .input { border-radius: 0 9px 9px 0; flex: 1; min-width: 0; }
.parts { display: flex; flex-direction: column; gap: 8px; }
.part { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border: 1px solid var(--wl-border); border-radius: 10px; background: var(--wl-surface-2); animation: wl-pop .15s var(--wl-ease); }
.part > textarea, .part-media { flex: 1; }
.part-media { display: flex; flex-direction: column; gap: 8px; }
.part-index { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--wl-surface-3); color: var(--wl-muted); margin-top: 6px; }
.dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border: 1px dashed var(--wl-border-2); border-radius: 12px; transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--wl-blue); background: color-mix(in srgb, var(--wl-blue) 8%, transparent); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 1px 5px; border-radius: 5px; background: var(--wl-surface-3); }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0; flex: none; }
.target { font-size: 12px; }
.reply-list { display: flex; flex-direction: column; gap: 8px; }
.reply-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); transition: border-color .15s, transform .12s; }
.reply-item:hover { border-color: var(--wl-border-2); }
.reply-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.reply-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-parts { display: flex; flex-wrap: wrap; gap: 4px; }
.part-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--wl-muted); background: var(--wl-surface-3); padding: 2px 7px; border-radius: 6px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send-btn { height: 32px; padding: 0 10px; }
/* Quick-reply card (list): title on its own line, readable preview, full-width send button. */
.reply-card { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
.rc-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rc-title { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rc-shortcut { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-weight: 600; background: color-mix(in srgb, var(--wl-blue) 16%, transparent); color: var(--wl-blue-2); }
.rc-cat { font-size: 11px; color: var(--wl-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-preview { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rc-text { margin: 0; padding: 8px 10px; border-radius: 10px 10px 10px 3px; font-size: 12.5px; line-height: 1.4; color: var(--wl-text); background: color-mix(in srgb, var(--wl-text) 7%, transparent); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rc-action .part-chip { max-width: 100%; }
.rc-group { display: flex; flex-direction: column; gap: 8px; }
.rc-group-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--wl-border); border-radius: 12px; background: var(--wl-surface-2); color: var(--wl-text); cursor: pointer; text-align: left; font: inherit; }
.rc-group-head:hover { border-color: var(--wl-border-2); }
.rc-group-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-group-head .count { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--wl-surface-3); color: var(--wl-muted); }
.rc-group-arrow { flex: 0 0 auto; transition: transform .15s; transform: rotate(-90deg); color: var(--wl-muted); }
.rc-group.open .rc-group-arrow { transform: none; }
.rc-group-body { display: flex; flex-direction: column; gap: 8px; padding-left: 8px; border-left: 2px solid color-mix(in srgb, var(--wl-blue) 35%, transparent); margin-left: 6px; }
.rc-actions { display: flex; gap: 6px; }
.rc-actions .btn { flex: 1 1 0; min-width: 0; height: 32px; justify-content: center; white-space: nowrap; }
.rc-actions .btn svg { flex: 0 0 auto; }
.rc-edit { flex: 1.2 1 0 !important; }
.section-title { margin: 6px 0 0; font-size: 11px; font-weight: 700; color: var(--wl-faint); text-transform: uppercase; letter-spacing: .07em; }
.picked { padding: 6px 8px; border: 1px solid var(--wl-border-2); border-radius: 10px; color: var(--wl-text); font-weight: 400; }
.picked strong { flex: 1; }
.slash { position: fixed; z-index: var(--z-floating); max-height: 340px; overflow: auto; padding: 6px; background: var(--wl-surface); border: 1px solid var(--wl-border-2); border-radius: 14px; box-shadow: var(--wl-shadow); animation: wl-rise .14s var(--wl-ease); }
.slash-head { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px 8px; font-size: 11px; font-weight: 700; color: var(--wl-faint); text-transform: uppercase; letter-spacing: .06em; }
.slash-head .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.slash-item { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--wl-text); cursor: pointer; text-align: left; }
.slash-item[aria-selected=true] { background: color-mix(in srgb, var(--wl-blue) 16%, transparent); }
.slash-preview { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; font-size: 12px; }
.link-box { display: block; word-break: break-all; padding: 8px 10px; }
.deleted-body { font-style: italic; white-space: pre-wrap; word-break: break-word; }
.reply-item.done { opacity: .6; }
a.btn { text-decoration: none; }
@keyframes wl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wl-pop { from { opacity: 0; transform: scale(.96) translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes wl-slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes wl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wl-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes wl-tip-r { from { opacity: 0; transform: translate(-4px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes wl-tip-b { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes wl-slide-r { from { opacity: 0; transform: translate(-10px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes wl-modal { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wl-toast { from { opacity: 0; transform: translateY(-34px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wl-center-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- small primitives ---------- */
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.red, .btn.tutorial { background: transparent; border-color: #e5484d; color: #ff6b6f; }
.btn.red { background: #e5484d; color: #fff; }
.btn.outline-danger { background: transparent; border-color: var(--wl-err); color: var(--wl-err); }
.btn.outline-danger:hover { background: color-mix(in srgb, var(--wl-err) 12%, transparent); }
.icon-btn.sm { width: 26px; height: 26px; }
.input.sm { height: 32px; padding: 5px 10px; min-width: 170px; }
.link.green { color: #25d366; font-weight: 600; }
.spacer { flex: 1; }
.soon { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--wl-warn); background: color-mix(in srgb, var(--wl-warn) 15%, transparent); white-space: nowrap; }
.toggle { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: var(--wl-border-2); transition: background .18s; }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s var(--wl-ease); }
.toggle[aria-checked="true"] { background: #22c55e; }
.toggle[aria-checked="true"] .knob { transform: translateX(16px); }
.toggle:disabled { opacity: .5; cursor: not-allowed; }
.avatar.big { width: 56px; height: 56px; font-size: 19px; background: linear-gradient(135deg, #4AA8FF, #004077); }
.stack-0 { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- tool modal ---------- */
.tool-modal { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 60px); display: flex; flex-direction: column; background: var(--wl-bg); border: 1px solid var(--wl-border); border-radius: 16px; box-shadow: var(--wl-shadow); animation: wl-modal .22s var(--wl-ease); }
.tool-modal.sm { width: min(440px, calc(100vw - 32px)); }
.tool-modal.lg { width: min(760px, calc(100vw - 32px)); }
.tool-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--wl-border); }
.tool-head h2 { margin: 0; font-size: 16px; }
.tool-head .icon-btn { margin-left: auto; }
.tool-body { padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }

/* ---------- login ---------- */
.login-layer { position: fixed; inset: 0; z-index: 2147483150; display: grid; place-items: center; }
.login-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); animation: wl-fade .18s ease-out; }
.login-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(900px, calc(100vw - 80px)); min-height: min(560px, calc(100vh - 60px)); max-height: calc(100vh - 40px);
  border-radius: 18px; overflow: hidden; background: #000; border: 1px solid #1f2329; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: wl-modal .24s var(--wl-ease); color: #eef2f7; }
.login-close { position: absolute; top: 10px; right: 10px; z-index: 2; color: #fff; }
.login-form { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 30px 40px; overflow: auto; }
.login-brand { margin: 0; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.login-logo { align-self: center; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--wl-blue-2), var(--wl-blue-deep)); box-shadow: 0 8px 26px rgba(29,144,245,.4); }
.login-intro { margin: 0; text-align: center; color: #a6b0bf; }
.login-field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 10px; background: #0f1216; border: 1px solid #262c35; color: #8a94a6; transition: border-color .15s, box-shadow .15s; }
.login-field:focus-within { border-color: var(--wl-blue); box-shadow: 0 0 0 3px rgba(29,144,245,.25); }
.login-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #eef2f7; font: inherit; }
.login-field .eye { border: 0; background: transparent; color: #8a94a6; cursor: pointer; display: grid; place-items: center; padding: 4px; }
.login-submit { height: 42px; }
.login-or { display: flex; align-items: center; gap: 10px; color: #64708a; font-size: 12px; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid #262c35; }
.btn.split { justify-content: space-between; height: 40px; }
.login-foot { margin: 4px 0 0; text-align: center; }
.login-banner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, #4AA8FF 0%, #1D90F5 35%, #004077 100%); }
.banner-logo { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 20px 50px rgba(0,0,0,.25); }
.login-banner strong { font-size: 30px; letter-spacing: .4px; }
.login-banner.has-img { padding: 0; overflow: hidden; }
.login-banner.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-logo.has-img, .banner-logo:has(img) { background: #fff; overflow: hidden; }
.login-logo img, .banner-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-banner span:last-child { max-width: 300px; opacity: .9; }
.lang-pick { position: absolute; top: 14px; right: 18px; z-index: 2; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; background: #0f1216; border: 1px solid #262c35; color: #eef2f7; }
.lang-pick select { background: transparent; border: 0; color: inherit; font: inherit; font-weight: 700; outline: none; }
.lang-pick option { color: #000; }
.help-card { position: absolute; right: 20px; bottom: 20px; z-index: 2; width: 250px; padding: 14px; border-radius: 14px; background: #0f1216; border: 1px solid #262c35; color: #eef2f7; display: flex; flex-direction: column; gap: 6px; animation: wl-rise .3s var(--wl-ease); }
.help-card p { margin: 0 0 4px; font-size: 12px; }
.help-close { position: absolute; top: 6px; right: 6px; }
@media (max-width: 760px) { .login-card { grid-template-columns: 1fr; } .login-banner { display: none; } }

/* ---------- settings ---------- */
.settings { width: min(960px, calc(100vw - 40px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #000; color: var(--wl-text);
  border: 1px solid var(--wl-border); border-radius: 16px; box-shadow: var(--wl-shadow); overflow: hidden; animation: wl-modal .22s var(--wl-ease); }
.light .settings { background: var(--wl-bg); }
.settings-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--wl-border); }
.settings-head strong { font-size: 15px; }
.settings-sep { color: var(--wl-faint); }
.settings-head .icon-btn { margin-left: auto; }
.settings-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--wl-border); }
.settings-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--wl-muted); cursor: pointer; text-align: left; font-weight: 600; transition: background .15s, color .15s; }
.settings-nav button:hover { color: var(--wl-text); background: var(--wl-surface); }
.settings-nav button[aria-current="true"] { background: var(--wl-surface-3); color: var(--wl-blue-2); }
.settings-content > * { flex-shrink: 0; }
.settings-content { overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; animation: wl-fade .16s ease-out; }
.set-group { display: flex; flex-direction: column; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--wl-border); background: var(--wl-border); }
.set-group.two { display: grid; grid-template-columns: 1fr 1fr; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--wl-surface); }
.bk-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 46vh; overflow: auto; }
.bk-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--wl-surface); border: 1px solid var(--wl-border); cursor: pointer; }
.bk-item .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bk-item input { width: 16px; height: 16px; accent-color: var(--wl-blue); }
.bk-drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border-radius: 14px; border: 1.5px dashed var(--wl-border); background: transparent; color: var(--wl-text); cursor: pointer; font: inherit; }
.bk-drop:hover { border-color: var(--wl-blue); }
.bk-skip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; background: color-mix(in srgb, var(--wl-warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--wl-warn) 35%, transparent); }
.bk-skip ul { margin: 6px 0 0; padding-left: 18px; }
.bk-item .badge { white-space: nowrap; flex: 0 0 auto; }
.model-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip-mini { font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: var(--wl-surface-3); color: var(--wl-muted); }
.bk-model { display: flex; flex-direction: column; gap: 4px; }
.bk-model > .btn { align-self: flex-start; }
.model-groups { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 10px; border-radius: 12px; background: var(--wl-surface-2, var(--wl-surface)); border: 1px solid var(--wl-border); }
.model-groups .model-tabs { margin-top: 3px; }
.bk-auto { padding: 10px 12px; border-radius: 12px; background: var(--wl-surface); border: 1px solid var(--wl-border); }
.set-row.tile { border: 1px solid var(--wl-border); border-radius: 12px; justify-content: space-between; }
.set-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: var(--wl-blue-2); background: color-mix(in srgb, var(--wl-blue) 14%, transparent); }
.set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-text .muted { font-size: 12px; }
.set-control { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.set-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.set-card { padding: 14px; border-radius: 12px; background: var(--wl-surface); border: 1px solid var(--wl-border); display: flex; flex-direction: column; gap: 6px; }
.set-card h4, .set-section h4 { margin: 0 0 4px; font-size: 13px; }
.set-card p { margin: 0; }
.set-line { padding: 4px 0; gap: 12px; }
.set-line span { display: inline-flex; align-items: center; gap: 6px; }
.set-intro { margin: 0; color: var(--wl-muted); }
.set-section { display: flex; flex-direction: column; gap: 8px; }
.set-title { margin: 6px 0 0 !important; font-size: 11px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wl-muted); }
/* Compact cards in two columns: shorter padding and hints; an odd last card takes the whole row. */
.set-group.two .set-row { padding: 10px 12px; gap: 10px; min-width: 0; }
.set-group.two .set-text .muted { font-size: 11.5px; line-height: 1.35; }
.set-group.two .set-text strong { font-size: 13px; }
.set-group.two > :last-child:nth-child(odd) { grid-column: 1 / -1; }
/* A choice between two ways of doing something (pop-up or caixa): the chosen card is outlined. */
.set-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; font: inherit; color: var(--wl-text); border-radius: 12px; cursor: pointer;
  background: var(--wl-surface); border: 1px solid var(--wl-border); transition: border-color var(--m-fast, .12s) var(--wl-ease), background var(--m-fast, .12s) var(--wl-ease); }
.set-choice:hover { background: var(--wl-surface-2); }
.set-choice.on { border-color: var(--wl-blue); background: color-mix(in srgb, var(--wl-blue) 8%, var(--wl-surface)); }
.set-choice .set-text .muted { font-size: 11.5px; line-height: 1.35; }
.set-check { width: 18px; flex: 0 0 auto; color: var(--wl-blue); display: grid; place-items: center; }
.profile-card { flex-direction: row; align-items: center; gap: 14px; }
.profile-name { font-size: 16px; }
.privacy-head { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #1D90F5, #0b5fb0); }
.privacy-head p { margin: 2px 0 0; opacity: .92; }
.feature-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--wl-surface); border: 1px solid var(--wl-border); }
.feature-icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: var(--wl-blue-2); background: color-mix(in srgb, var(--wl-blue) 14%, transparent); }
.chip-btn { height: 24px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--wl-border-2); background: var(--wl-surface-2); color: var(--wl-text); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--wl-blue); }
/* ---------- inside the conversation (E2) ---------- */
.wl.anchor-header, .wl.anchor-composerLeft, .wl.anchor-composerRight { display: inline-flex; align-items: center; }
.capsule { display: inline-flex; align-items: center; gap: 1px; margin: 0 8px; padding: 3px 5px; border-radius: 99px; background: #0b0f12; border: 1px solid #222d34; animation: wl-pop .2s var(--wl-ease); }
.light .capsule { background: #e9edef; border-color: #d1d7db; }
.cap-btn, .cmp-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 99px; background: transparent; color: var(--wl-rail-icon); cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.cap-btn:hover, .cmp-btn:hover { background: var(--wl-surface-3); color: var(--wl-text); }
.cap-btn:active, .cmp-btn:active { transform: scale(.9); }
/* On / open: only the icon turns blue; the background stays as it is (no tinted square, no ring). */
.cap-btn[aria-pressed="true"], .cmp-btn[aria-pressed="true"], .cap-btn[aria-expanded="true"], .cmp-btn[aria-expanded="true"] { color: var(--wl-blue-2, #4aa8ff) !important; background: transparent; box-shadow: none; }
.cap-btn[aria-pressed="true"]:hover, .cmp-btn[aria-pressed="true"]:hover { background: var(--wl-surface-3); }
.cmp-btn:disabled { opacity: .45; cursor: not-allowed; }
.cmp-group { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; }
.cmp-btn.green { color: #25d366; }
.cmp-btn.blue, .cmp-btn.bolt { color: var(--wl-blue-2); }
.cmp-btn.bolt { margin-left: 4px; }
.ai-bar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--wl-surface); border-top: 1px solid var(--wl-border); animation: wl-rise .18s var(--wl-ease); }
.ai-tools, .ai-side, .ai-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.ai-bar { background: color-mix(in srgb, var(--wl-surface) 92%, transparent); }
.ai-warn { display: flex; align-items: center; gap: 6px; color: var(--wl-warn); font-size: 12px; flex: 0 0 auto; }
.ai-bubble mark { background: rgba(29, 144, 245, .15); color: inherit; border-radius: 3px; padding: 0 1px; }
.ai-bubble.original { opacity: .85; font-style: italic; }
.ai-lang { height: 26px; margin: 0 4px; padding: 0 6px; border: 1px solid var(--wl-border-2); border-radius: 8px; background: transparent; color: var(--wl-text); font: inherit; font-size: 12px; }
.ai-bubble { max-width: 100%; max-height: 96px; overflow: auto; padding: 7px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; text-align: left;
  color: var(--wl-text); background: color-mix(in srgb, var(--glass-pop) 86%, var(--wl-blue) 14%); border: 1px solid color-mix(in srgb, var(--wl-blue) 38%, transparent); }
.ai-bubble:hover { opacity: 1; }
.ai-sign { font-style: italic; }
.ai-center .ai-bubble { white-space: pre-wrap; text-overflow: clip; }
.ai-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--wl-border-2); border-top-color: var(--wl-blue); animation: wl-spin .8s linear infinite; flex: 0 0 auto; }
.ai-advanced { margin-top: 4px; } .ai-advanced summary { cursor: pointer; color: var(--wl-muted); font-size: 12.5px; }
.cmp-btn.send { color: var(--wl-blue-2); }
.plan-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; }
.plan-notice.warn .plan-badge { background: color-mix(in srgb, var(--wl-warn) 20%, transparent); color: var(--wl-warn); }
.plan-notice.err .plan-badge { background: color-mix(in srgb, var(--wl-err) 18%, transparent); color: var(--wl-err); }
.plan-notice { z-index: 2147483010; }
.tb-btn:hover { background: var(--wl-surface-3); color: var(--wl-text); }
.tb-btn[aria-expanded="true"], .tb-btn[aria-pressed="true"], .icon-btn[aria-pressed="true"] { background: transparent; color: var(--wl-blue-2, #4aa8ff) !important; box-shadow: none; }
.tab-more { margin: 0 0 4px 22px; padding: 4px; border: 1px solid var(--wl-border-2); border-radius: 10px; background: var(--wl-surface-2); }
.tab-more .pop-item { padding: 6px 8px; font-size: 12.5px; }
.tab-more .pop-item.danger { color: var(--wl-err); }
.tab-contacts { max-height: 300px; }
.pop-sub { margin: 6px 0 2px; padding: 0 8px; font-size: 11px; color: var(--wl-muted); text-transform: uppercase; letter-spacing: .04em; }
.check-row { cursor: pointer; } .check-row input { flex: 0 0 auto; accent-color: var(--wl-blue); }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.ai-center { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; }
.ai-center span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-center .btn { flex: 0 0 auto; white-space: nowrap; }
.floating { position: fixed; z-index: var(--z-floating); padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--wl-surface); border: 1px solid var(--wl-border-2); border-radius: 12px; box-shadow: var(--wl-shadow); animation: wl-pop .15s var(--wl-ease); }
.floating p { margin: 0; }
.floating .pop-list { max-height: 260px; }
.floating-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--wl-border); font-size: 12px; }
.radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--wl-border-2); flex: 0 0 auto; }
.radio.on { border-color: var(--wl-blue); background: radial-gradient(circle, var(--wl-blue) 45%, transparent 50%); }
.label-chip { width: 18px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.pop-pick[aria-pressed="true"] { background: color-mix(in srgb, var(--wl-blue) 12%, transparent); }
.small { font-size: 11.5px; }
.danger-zone { padding-top: 8px; border-top: 1px solid var(--wl-border); }
.ok-text { color: #22c55e; }
.alert-yellow { padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--wl-warn) 16%, transparent); color: var(--wl-warn); font-size: 12.5px; }
.alert-red { padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--wl-err) 14%, transparent); color: var(--wl-err); font-size: 12.5px; }
.side-panel { position: fixed; top: calc(48px + var(--walead-banner, 0px)); right: 0; bottom: 0; z-index: 2147482980; display: flex; flex-direction: column; background: var(--wl-surface); border-left: 1px solid var(--wl-border); animation: wl-slide-in .2s var(--wl-ease); }
.side-tabs { display: flex; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--wl-border); }
.side-tab { width: 34px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--wl-rail-icon); cursor: pointer; transition: background .15s, color .15s; }
.side-tab:hover { background: var(--wl-surface-3); color: var(--wl-text); }
.side-tab[aria-current="true"] { background: var(--wl-blue); color: #fff; }
.side-tab[aria-expanded="true"] { background: var(--wl-surface-3); color: var(--wl-text); }
.side-gear { margin: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; border-radius: 12px; background: var(--wl-surface-2); border: 1px solid var(--wl-border-2); animation: wl-pop .15s var(--wl-ease); }
.side-gear input[type="range"] { width: 100%; accent-color: var(--wl-blue); }
.side-body { flex: 1; min-height: 0; overflow: auto; animation: wl-fade .15s ease-out; }
.side-section { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.profile-top { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.profile-top strong { font-size: 15px; }
.phone-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--wl-surface-2); color: var(--wl-muted); border-radius: 99px; padding: 3px 10px; cursor: pointer; font-size: 12px; }
.phone-copy:hover { color: var(--wl-text); }
.note-text { white-space: pre-wrap; word-break: break-word; }
.note-files { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.note-file { display: flex; align-items: center; gap: 6px; }
.note-file audio { flex: 1; min-width: 0; height: 34px; }
.note-thumb { padding: 0; border: 1px solid var(--wl-border); border-radius: 10px; overflow: hidden; background: none; cursor: zoom-in; line-height: 0; }
.note-thumb img { max-width: 100%; max-height: 120px; object-fit: cover; display: block; }
.note-doc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--wl-border); color: var(--wl-text); text-decoration: none; min-width: 0; }
.note-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-lightbox { position: fixed; inset: 0; z-index: var(--z-bar); display: grid; place-items: center; background: rgba(0,0,0,.72); cursor: zoom-out; }
.note-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; }
.note-lightbox button { position: absolute; top: 16px; right: 16px; }
/* ---------- quick replies editor (E3) ---------- */
.rel { position: relative; display: inline-flex; }
.reply-editor { display: flex; flex-direction: column; gap: 12px; animation: wl-slide-in .18s var(--wl-ease); }
.editor-head { display: flex; align-items: center; gap: 8px; }
.editor-head h3 { margin: 0; font-size: 15px; }
.icon-btn.back { color: var(--wl-blue-2); }
.input-tools { display: flex; align-items: center; gap: 4px; }
.input-tools .input, .input-tools select { flex: 1; min-width: 0; }
.emoji-pop { position: absolute; top: 30px; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(8, 28px); gap: 2px; padding: 6px; background: var(--wl-surface); border: 1px solid var(--wl-border-2); border-radius: 10px; box-shadow: var(--wl-shadow); animation: wl-pop .14s var(--wl-ease); }
.emoji-pop button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 16px; }
.emoji-pop button:hover { background: var(--wl-surface-3); }
.actions-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); transition: border-color .15s, background .15s; }
.actions-card.over { border-color: var(--wl-blue); background: color-mix(in srgb, var(--wl-blue) 8%, var(--wl-surface-2)); }
.actions-card > .rel { display: flex; flex-direction: column; }
.empty-mini.center { align-items: center; text-align: center; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: var(--wl-surface); border: 1px solid var(--wl-border); animation: wl-pop .15s var(--wl-ease); }
.step p { margin: 0; }
.step-head { display: flex; align-items: center; gap: 6px; }
.step-head .part-index { margin-top: 0; }
.ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input.num { min-width: 0; width: 80px; }
.action-menu { position: static; margin-top: 6px; z-index: 45; padding: 6px; background: var(--wl-surface); border: 1px solid var(--wl-border-2); border-radius: 12px; box-shadow: var(--wl-shadow); animation: wl-rise .16s var(--wl-ease); }
.acc { border-radius: 9px; }
.acc + .acc { margin-top: 2px; }
.acc-head { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--wl-text); cursor: pointer; text-align: left; }
.acc-head:hover, .acc.open .acc-head { background: var(--wl-surface-2); }
.acc-arrow { margin-left: auto; transition: transform .18s var(--wl-ease); }
.acc.open .acc-arrow { transform: rotate(180deg); }
.acc-body { display: flex; flex-direction: column; gap: 2px; padding: 4px 4px 8px 26px; animation: wl-fade .15s ease-out; }
.acc-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--wl-text); cursor: pointer; text-align: left; }
.acc-item:hover:not(:disabled) { background: var(--wl-surface-2); }
.acc-item:disabled { color: var(--wl-faint); cursor: default; }
.acc-item .soon { margin-left: auto; }
.acc-item .swatch { width: 10px; height: 10px; border-radius: 50%; }
.acc-row { padding: 4px 8px; }
.acc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-foot { padding-top: 4px; }
.chip .rel, .chips .rel { display: inline-flex; }
.segmented.wide { display: flex; }
.segmented.wide button { flex: 1; justify-content: center; }

.wl, .toasts {
  /* spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-7: 28px; --sp-8: 32px;
  /* radii: one per kind of object */
  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-pill: 999px;
  /* shadows: three levels + a top highlight */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .24);
  --sh-2: 0 8px 24px rgba(0, 0, 0, .28);
  --sh-3: 0 18px 48px rgba(0, 0, 0, .38);
  --sh-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  /* flat surfaces and lines (dark) */
  --s-0: #0C0D10; --s-1: #14161B; --s-2: rgba(255, 255, 255, .04); --s-3: rgba(255, 255, 255, .08);
  --s-pop: rgba(28, 31, 38, .92);
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  /* text */
  --tx-1: #EEF2F7; --tx-2: #93A0B2; --tx-3: #808BA0;
  /* accent and status */
  --wl-accent: #1D90F5; --wl-accent-deep: #004077;
  --ok: #34C759; --warn: #FF9F0A; --err: #FF453A;
  /* type */
  --fs-1: 11px; --fs-2: 12px; --fs-3: 13px; --fs-4: 14px; --fs-5: 16px; --fs-6: 20px; --fs-7: 28px;
  --fw-1: 400; --fw-2: 500; --fw-3: 600; --fw-4: 700;
  /* motion: only transform and opacity move; every duration has a reduced version */
  --m-press: 90ms; --m-fast: 120ms; --m-pop: 160ms; --m-panel: 200ms; --m-slide: 240ms;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* stacking (see Z in layout.ts) */
  --z-bar: 2147483000; --z-panel: 2147483050; --z-floating: 2147483120; --z-modal: 2147483200; --z-popover: 2147483300; --z-tip: 2147483350; --z-toast: 2147483400;
}
.wl.light, .toasts.light {
  --sh-1: 0 1px 2px rgba(15, 23, 42, .10);
  --sh-2: 0 8px 24px rgba(15, 23, 42, .12);
  --sh-3: 0 18px 48px rgba(15, 23, 42, .16);
  --sh-hi: inset 0 1px 0 rgba(255, 255, 255, .8);
  --s-0: #F4F6F9; --s-1: #FFFFFF; --s-2: rgba(15, 23, 42, .04); --s-3: rgba(15, 23, 42, .08);
  --s-pop: rgba(255, 255, 255, .96);
  --line: rgba(15, 23, 42, .08); --line-2: rgba(15, 23, 42, .14);
  --tx-1: #0F172A; --tx-2: #5B6678; --tx-3: #667085;
  --ok: #1E7F3A; --warn: #9A5B00; --err: #C4161C;
}

.wl, .toasts {
  --ios-blue: var(--wl-user-icon-d, var(--wl-user-icon, #0A84FF));
  --wl-on-accent: var(--wl-on-accent-d, #fff);
  --wl-accent-mix: var(--wl-accent-mix-d, 72%);
  --wl-blue: var(--ios-blue); --wl-blue-2: var(--ios-blue);
  --glass: rgba(44, 48, 58, min(.95, calc(.30 * var(--wl-glass-k, 1))));
  --glass-strong: rgba(30, 33, 41, max(.55, min(.96, calc(.52 * var(--wl-glass-k, 1)))));
  /* Pop-ups float over busy WhatsApp content: more opaque so the text always reads (WCAG contrast). */
  --glass-pop: rgba(28, 31, 38, max(.8, min(.97, calc(.82 * var(--wl-glass-k, 1)))));
  --glass-fill: rgba(255, 255, 255, .07);
  --glass-fill-2: rgba(255, 255, 255, .13);
  --glass-hair: rgba(255, 255, 255, .16);
  --glass-hair-soft: rgba(255, 255, 255, .08);
  --glass-blur: var(--wl-user-blur, blur(26px) saturate(210%) brightness(1.06));
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .30), inset 1px 0 0 rgba(255, 255, 255, .10), inset 0 -1px 0 rgba(255, 255, 255, .04);
  --glass-drop: 0 18px 50px rgba(0, 0, 0, .38), 0 3px 10px rgba(0, 0, 0, .22);
  --rim: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .10) 30%, rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .22) 100%);
  --sheen: radial-gradient(140% 70% at 12% -12%, rgba(255, 255, 255, .06), transparent 55%);
  --bar: rgba(255, 255, 255, min(.5, calc(.045 * var(--wl-glass-k, 1))));
  --wl-surface: rgba(40, 44, 54, .45);
  --wl-surface-2: rgba(255, 255, 255, .07);
  --wl-surface-3: rgba(255, 255, 255, .12);
  --wl-border: rgba(255, 255, 255, .10);
  --wl-border-2: rgba(255, 255, 255, .16);
  --wl-rail: transparent;
  --wl-rail-icon: var(--ios-blue);
}
.wl.light, .toasts.light {
  --ios-blue: var(--wl-user-icon-l, var(--wl-user-icon, #007AFF));
  --wl-on-accent: var(--wl-on-accent-l, #fff);
  --wl-accent-mix: var(--wl-accent-mix-l, 72%);
  --wl-blue: var(--ios-blue); --wl-blue-2: var(--ios-blue);
  --glass: rgba(255, 255, 255, min(.96, calc(.40 * var(--wl-glass-k, 1))));
  /* Light theme follows WhatsApp's "ice white": crisper, more solid glass with a visible grey hairline. */
  --glass-strong: rgba(255, 255, 255, min(.97, calc(.86 * var(--wl-glass-k, 1))));
  --glass-pop: rgba(255, 255, 255, min(.98, calc(.95 * var(--wl-glass-k, 1))));
  --glass-fill: rgba(255, 255, 255, .35);
  --glass-fill-2: rgba(255, 255, 255, .62);
  --glass-hair: rgba(17, 27, 33, .10);
  --glass-hair-soft: rgba(17, 27, 33, .07);
  --glass-blur: var(--wl-user-blur, blur(26px) saturate(190%) brightness(1.04));
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .95), inset 1px 0 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .04);
  --glass-drop: 0 16px 40px rgba(17, 27, 33, .16), 0 2px 8px rgba(17, 27, 33, .08);
  --rim: linear-gradient(140deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, .25) 60%, rgba(255, 255, 255, .85) 100%);
  --sheen: radial-gradient(140% 70% at 12% -12%, rgba(255, 255, 255, .70), transparent 55%);
  --bar: rgba(255, 255, 255, min(.9, calc(.30 * var(--wl-glass-k, 1))));
  --wl-surface: rgba(255, 255, 255, .55);
  --wl-surface-2: rgba(255, 255, 255, .45);
  --wl-surface-3: rgba(255, 255, 255, .65);
  --wl-border: rgba(0, 0, 0, .07);
  --wl-border-2: rgba(0, 0, 0, .11);
  --wl-rail: transparent;
  --wl-rail-icon: var(--ios-blue);
}

/* ---- bars: flush to the window, see-through glass over the wallpaper ---- */
.rail, .topbar {
  background: var(--sheen), var(--bar) !important;
  border: 0 !important;
}
.rail { box-shadow: inset -1px 0 0 var(--glass-hair-soft), inset 1px 0 0 rgba(255, 255, 255, .06); }
.topbar { box-shadow: inset 0 -1px 0 var(--glass-hair-soft), inset 0 1px 0 rgba(255, 255, 255, .08); }
.side-panel { border-radius: 0; }
.more-card { left: 68px !important; }
.google-card { left: 68px !important; top: 56px !important; }

/* ---- the glass material: tint + blur + sheen + light-catching rim ---- */
.pop, .menu, .floating, .more-card, .google-card, .modal, .tool-modal, .settings, .toast, .action-menu,
.emoji-pop, .side-gear, .help-card, .capsule, .ai-bar, .lang-pick, .slash, .login-card, .reminder-card, .conn-warning, .sup-card, .float-card, .float-label, .rail-unfold, .notice-window {
  background: var(--sheen), linear-gradient(var(--glass), var(--glass)) !important;
  border: 1px solid var(--glass-hair) !important;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi), var(--glass-drop);
}
/* Docked or small things keep the tint but not the blur (a blur layer per surface is what made WhatsApp heavy). */
.toast, .side-gear, .capsule, .ai-bar, .conn-warning, .sup-card, .float-card, .float-label, .rail-unfold, .side-panel, .tip {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.modal, .tool-modal, .settings, .login-card, .side-panel {
  --glass: var(--glass-strong);
}
.pop, .menu, .floating, .more-card, .google-card, .action-menu, .emoji-pop, .slash, .lang-pick, .reminder-card, .help-card, .side-gear, .toast, .sup-card, .float-card, .float-label, .rail-unfold, .conn-warning, .ai-bar, .capsule, .notice-window {
  --glass: var(--glass-pop);
}
/* Text and marks drawn on top of the brand colour: dark when the brand colour is light (e.g. white icons). */
.btn.primary, .cal-day.today .cal-num, .rail-badge, .login-logo { color: var(--wl-on-accent) !important; }
.btn.primary svg, .rail-badge svg { color: var(--wl-on-accent) !important; }
.rail-badge { box-shadow: 0 2px 8px rgba(0, 0, 0, .35) !important; font-weight: 700; }
.brand-mark.has-img { padding: 0; overflow: hidden; background: none !important; box-shadow: none !important; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.rail-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.rail-avatar:has(img) { padding: 0; overflow: hidden; }
.close-form { display: flex; flex-direction: column; gap: 10px; }
/* ---- notices from the ADM panel ---- */
.notice-window { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: var(--z-bar); width: min(440px, calc(100vw - 32px)); max-height: 80vh; overflow: auto; pointer-events: auto; border-radius: 22px; animation: wl-center-pop .24s var(--wl-ease);
  outline: 100vmax solid rgba(0,0,0,.45);
  background: var(--sheen), var(--glass-pop) !important; border: 1px solid var(--glass-hair); box-shadow: var(--glass-hi), var(--glass-drop); }
.notice-card { position: relative; margin: 8px 10px 4px; max-height: 38vh; overflow: auto; border-radius: 18px; background: var(--sheen), linear-gradient(var(--glass-pop), var(--glass-pop)); border: 1px solid var(--glass-hair); box-shadow: var(--glass-hi), var(--glass-drop); animation: wl-glass-pop .3s var(--wl-ease); }
.notice-card .notice-body { padding: 14px 16px; gap: 8px; }
.notice-card .notice-img { width: calc(100% + 32px); margin: -14px -16px 0; max-height: 120px; }
.notice-card-x { position: absolute; top: 6px; right: 6px; z-index: 1; }
/* thin banner under the top bar: short, important notices (a reached limit, a maintenance) */
.notice-banner { position: fixed; top: 48px; left: var(--walead-rail, 60px); right: 0; z-index: 2147482985; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 12.5px;
  color: var(--wl-text); background: var(--glass-strong); border-bottom: 1px solid var(--glass-hair); animation: wl-glass-pop .18s var(--wl-ease); }
.notice-banner.urgent { background: color-mix(in srgb, #FF9F0A 16%, var(--glass-strong)); border-bottom-color: color-mix(in srgb, #FF9F0A 45%, transparent); }
.notice-banner strong { flex: 0 1 auto; min-width: 0; max-width: 45%; }
.notice-banner-text { flex: 1; min-width: 0; color: var(--wl-muted); }
.notice-banner .btn { height: 24px; padding: 0 12px; font-size: 12px; flex: 0 0 auto; }
.notice-more { display: block; padding: 0 16px 10px; }
.notice-close { position: absolute; top: 8px; right: 8px; z-index: 1; }
.notice-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; color: var(--wl-text); }
.notice-body.custom { border-radius: inherit; }
.notice-title { font-size: 16px; padding-right: 26px; }
.notice-text { margin: 0; white-space: pre-wrap; line-height: 1.5; font-size: 13.5px; }
.notice-img { width: calc(100% + 40px); margin: -20px -20px 0; max-height: 260px; object-fit: cover; display: block; }
.notice-img.ph { height: 140px; background: var(--glass-fill-2); }
.notice-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-foot { opacity: .7; font-size: 12px; }
.notice-list { display: flex; flex-direction: column; gap: 8px; }
.notice-item { border-radius: 16px; overflow: hidden; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.notice-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.notice-item.unread .notice-head strong, .notice-item.unread .notice-head span { font-weight: 700; }
.notice-item.unread .notice-head svg { color: var(--ios-blue); }
.notice-item .notice-body { padding: 4px 14px 14px; }
.notice-item .notice-img { width: 100%; margin: 0; border-radius: 10px; }
.avatar.has-pic { overflow: hidden; padding: 0; }
.avatar.has-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.big img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.big:has(img) { overflow: hidden; padding: 0; }
/* Native controls follow the theme: dark drop-down lists, date pickers and scroll bars (no white-on-white). */
.wl { color-scheme: dark; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.wl.light, .toasts.light { color-scheme: light; scrollbar-color: rgba(0, 0, 0, .22) transparent; }
.wl select option, .wl select optgroup { background: #1f2229; color: #eef2f7; }
.wl.light select option, .wl.light select optgroup { background: #ffffff; color: #1c1c1e; }
.wl ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.wl ::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .34); }
.wl.light ::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, .2); }
.wl ::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .8; }
.close-form textarea.input { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; line-height: 1.45; font: inherit; }
.side-panel {
  background: var(--sheen), var(--glass-strong) !important; border: 0 !important;
  box-shadow: inset 1px 0 0 var(--glass-hair), -14px 0 44px rgba(0, 0, 0, .22) !important;
}
.settings, .tool-modal, .modal, .login-card { border-radius: 30px; }
.pop, .menu, .floating, .more-card, .google-card, .action-menu, .slash, .emoji-pop, .side-gear, .help-card, .reminder-card { border-radius: 22px; }
.capsule { border-radius: 99px; padding: 3px 5px; }

/* dim behind dialogs (no extra blur layer: the dialog itself is the glass) */
.backdrop, .login-backdrop { background: rgba(4, 8, 16, .34) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.light .backdrop, .light .login-backdrop { background: rgba(30, 50, 90, .14) !important; }

/* ---- icons: system blue, sitting on liquid lenses ---- */
.rail-btn, .tb-btn, .cap-btn, .cmp-btn, .icon-btn { color: var(--ios-blue) !important; transition: background var(--m-fast, .12s) var(--wl-ease), transform var(--m-press, .09s) var(--wl-ease); }
/* sizes at 100% zoom: 44 px slots, 24 px icons, 42 px logo, 48 px top bar */
.rail-btn { width: 44px; height: 40px; border-radius: 14px; }
.rail-list { gap: 4px; padding: 6px 0; }
.rail-logo { height: 56px; }
.brand-mark { width: 42px; height: 42px; }
.rail-avatar { width: 38px; height: 38px; font-size: 13px; }
.rail-badge { min-width: 18px; height: 18px; font-size: 10.5px; top: -3px; right: -5px; }
.rail-version { font-size: 10px; }
.rail-sep { width: 30px; margin: 6px 0; }
.rail-dot { width: 11px; height: 11px; bottom: 7px; }
.topbar { padding: 0 10px; gap: 6px; }
.tb-btn { width: 40px; height: 38px; border-radius: 13px; }
.tb-chip { height: 32px !important; padding: 0 14px; font-size: 13.5px; gap: 8px; }
.tb-chip .swatch { width: 10px; height: 10px; }
.rail-btn:hover, .tb-btn:hover, .tb-btn[aria-expanded="true"], .cap-btn:hover, .cmp-btn:hover, .icon-btn:hover {
  background: var(--glass-fill-2) !important;
}
.rail-btn:active, .tb-btn:active, .cap-btn:active, .cmp-btn:active, .icon-btn:active { transform: scale(.97); }
.rail-btn[aria-current="true"] {
  background: var(--glass-fill-2) !important; color: var(--ios-blue) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--glass-hair), 0 8px 22px rgba(10, 132, 255, .22);
}
.rail-sep { border-top: 1px solid var(--glass-hair-soft) !important; }
.rail-badge { background: var(--ios-blue); border-color: transparent; box-shadow: 0 2px 8px rgba(10, 132, 255, .5); }
.rail-dot { border-color: rgba(0, 0, 0, .35); }
.brand-mark { background: var(--sheen), var(--glass-fill-2); color: var(--ios-blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px var(--glass-hair-soft); }
.rail-avatar { background: var(--sheen), var(--glass-fill-2); color: var(--ios-blue); border-color: transparent; box-shadow: 0 0 0 1px var(--glass-hair-soft); }
.rail-avatar:hover, .rail-avatar[aria-current="true"] { border-color: var(--ios-blue); }
.more-icon, .set-icon, .feature-icon, .empty-icon { background: var(--sheen), var(--glass-fill) !important; color: var(--ios-blue) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }

/* rail that does not fit: fade + arrow instead of hiding icons silently */
.rail-list.fade-down { -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
.rail-list.fade-up.fade-down { -webkit-mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 36px), transparent); }
.rail-list.fade-up:not(.fade-down) { -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.rail-more-down { flex: 0 0 auto; width: 36px; height: 24px; margin: -4px 0 2px; border: 0; border-radius: 99px; display: grid; place-items: center; cursor: pointer;
  color: var(--ios-blue); background: var(--glass-fill-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
@media (max-height: 820px) { .rail-btn { height: 36px; } .rail-list { gap: 2px; } .rail-logo { height: 50px; } .rail-sep { margin: 4px 0; } }

/* ---- buttons: liquid glass capsules ---- */
.btn { border-radius: 99px; border: 1px solid var(--glass-hair) !important; position: relative;
  background: var(--sheen), linear-gradient(var(--glass-fill), var(--glass-fill)) !important;
  box-shadow: var(--glass-hi), 0 2px 8px rgba(0, 0, 0, .12);
  transition: background var(--m-fast, .12s) var(--wl-ease), transform var(--m-press, .09s) var(--wl-ease); }
.btn:hover:not(:disabled) {
  background: linear-gradient(var(--glass-fill-2), var(--glass-fill-2)) !important;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { color: var(--wl-on-accent) !important; font-weight: 650; --tint: color-mix(in srgb, var(--ios-blue) var(--wl-accent-mix, 72%), transparent);
  background: var(--sheen), linear-gradient(var(--tint), var(--tint)) !important;
  box-shadow: var(--glass-hi), 0 8px 22px color-mix(in srgb, var(--ios-blue) 35%, transparent); }
.btn.primary:hover:not(:disabled) { --tint: color-mix(in srgb, var(--ios-blue) calc(var(--wl-accent-mix, 72%) + 12%), transparent);
  background: linear-gradient(var(--tint), var(--tint)) !important; }
.btn.red, .btn.danger, .btn.outline-danger, .btn.tutorial { color: #FF6961 !important; --tint: rgba(255, 69, 58, .14);
  background: var(--sheen), linear-gradient(var(--tint), var(--tint)) !important; }
.light .btn.red, .light .btn.danger, .light .btn.outline-danger, .light .btn.tutorial { color: #E0352B !important; }
.btn:disabled { opacity: .45; }
.link { color: var(--ios-blue); }

/* chips and segmented controls */
.chip, .tb-chip, .chip-btn, .source-btn[aria-pressed="true"] { background: var(--sheen), var(--glass-fill) !important; border: 1px solid var(--glass-hair-soft) !important; color: var(--wl-text);
  transition: background var(--m-fast, .12s) var(--wl-ease); }
.chip:hover, .tb-chip:hover { background: var(--glass-fill-2) !important; }
/* Selected chips must be obvious: tinted with the tab/label colour (or the brand colour), coloured border, bold. */
.chip[aria-pressed="true"], .tb-chip[aria-pressed="true"] { background: var(--sheen), color-mix(in srgb, var(--chip, var(--ios-blue)) 30%, var(--glass-fill-2)) !important;
  border-color: var(--chip, var(--ios-blue)) !important; font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px color-mix(in srgb, var(--chip, var(--ios-blue)) 55%, transparent), 0 4px 12px rgba(0, 0, 0, .16); }
.segmented { background: var(--glass-fill) !important; border: 0 !important; border-radius: 99px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
.segmented button { border-radius: 99px; transition: background var(--m-fast, .12s) var(--wl-ease); }
.segmented button[aria-pressed="true"], .side-tab[aria-current="true"] { background: var(--sheen), var(--glass-strong) !important; color: var(--wl-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px var(--glass-hair-soft), 0 4px 12px rgba(0, 0, 0, .2); }
.settings-nav button { transition: background var(--m-fast, .12s) var(--wl-ease); }
.settings-nav button:hover { background: var(--glass-fill) !important; }
.settings-nav button[aria-current="true"] { background: var(--sheen), var(--glass-fill-2) !important; color: var(--wl-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.settings-nav button svg { color: var(--ios-blue); }

/* inputs: slightly sunken glass */
.input, .login-field { background: var(--glass-fill) !important; border: 1px solid var(--glass-hair-soft) !important; border-radius: 13px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18); transition: border-color .2s, box-shadow .2s; }
.input:focus, .login-field:focus-within { border-color: color-mix(in srgb, var(--ios-blue) 70%, transparent) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 4px color-mix(in srgb, var(--ios-blue) 20%, transparent); }

/* switches: liquid knob */
.toggle { width: 46px; height: 28px; border-radius: 99px; background: var(--glass-fill-2); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25); }
.toggle .knob { top: 2px; left: 2px; width: 24px; height: 24px; background: radial-gradient(circle at 35% 30%, #fff, #eef2f7);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(0, 0, 0, .06); transition: transform var(--m-pop, .16s) var(--wl-ease), width var(--m-fast, .12s) var(--wl-ease); }
.toggle:active .knob { width: 31px; }
.toggle[aria-checked="true"] { background: linear-gradient(180deg, #4BD675, #2DB552); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.toggle[aria-checked="true"] .knob { transform: translateX(18px); }
.toggle:active[aria-checked="true"] .knob { transform: translateX(11px); }

/* cards and rows: frosted panes */
.set-row, .set-card, .feature-card, .reply-item, .step, .actions-card, .kb-col, .kb-card, .part {
  background: var(--sheen), var(--glass-fill) !important; border: 1px solid var(--glass-hair-soft) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); border-radius: 18px;
}
.set-group { background: transparent !important; gap: 6px; border: 0 !important; box-shadow: none; }
.reply-item, .feature-card, .kb-card { transition: background var(--m-fast, .12s) var(--wl-ease), border-color var(--m-fast, .12s) var(--wl-ease); }
.reply-item:hover, .feature-card:hover, .kb-card:hover { background: var(--glass-fill-2) !important; border-color: var(--glass-hair) !important; }

/* tooltips: small glass pills */
.tip { background: var(--sheen), var(--glass-pop); color: var(--wl-text); border: 1px solid var(--glass-hair);
  box-shadow: var(--glass-drop); border-radius: 11px; font-weight: 500; }
.tip.right::before, .tip.below::before, .tip.above::before { display: none; }
.tip.above { transform: translate(-50%, -100%); animation: wl-tip-a .18s var(--wl-ease); }

/* "WaLead não conectou" warning */
.conn-warning { position: fixed; top: 58px; left: 50%; transform: translateX(-50%); z-index: var(--z-tip); display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px; border-radius: 99px; color: var(--wl-text); animation: wl-glass-pop var(--m-pop, .16s) var(--wl-ease); }

/* ---- motion: springy, liquid arrivals ---- */
.modal, .tool-modal, .settings, .login-card { animation: wl-glass-in var(--m-panel, .2s) var(--wl-ease); }
.pop, .menu, .floating, .action-menu, .google-card, .slash, .emoji-pop { animation: wl-glass-pop var(--m-pop, .16s) var(--wl-ease); transform-origin: top center; }
.more-card { animation: wl-glass-side var(--m-pop, .16s) var(--wl-ease); }
.side-panel { animation: wl-glass-right 180ms var(--wl-ease); }

/* "Reduzir efeitos": no motion (blur and transparency come from the appearance variables) */
.wl.reduce *, .wl.reduce *::before, .wl.reduce *::after, .wl.reduce { animation: none !important; transition-duration: .01s !important; }

@keyframes wl-glass-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wl-glass-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wl-glass-side { from { opacity: 0; transform: translate(-8px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes wl-glass-right { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes wl-tip-a { from { opacity: 0; transform: translate(-50%, -88%) scale(.92); } to { opacity: 1; transform: translate(-50%, -100%); } }

.mass {
  position: fixed; inset: 0; z-index: var(--z-modal); display: flex; flex-direction: column; overflow: hidden;
  /* A full-screen surface: opaque, so nothing behind it is blurred or repainted while it is open. */
  background: #0F1115;
  color: var(--wl-text); animation: wl-glass-in var(--m-panel, .2s) var(--wl-ease);
}
.mass.manager { flex-direction: row; }
.mass.mass-light {
  --ios-blue: var(--wl-user-icon-l, var(--wl-user-icon, #007AFF)); --wl-blue: var(--ios-blue); --wl-blue-2: var(--ios-blue);
  --glass: rgba(255, 255, 255, .62); --glass-strong: rgba(250, 250, 252, .84);
  --glass-fill: rgba(120, 120, 128, .10); --glass-fill-2: rgba(120, 120, 128, .16);
  --glass-hair: rgba(0, 0, 0, .10); --glass-hair-soft: rgba(0, 0, 0, .06);
  --wl-text: #0f172a; --wl-muted: #5b6678; --wl-faint: #8a94a6;
  --wl-surface: rgba(255, 255, 255, .7); --wl-surface-2: rgba(120, 120, 128, .08); --wl-surface-3: rgba(120, 120, 128, .14);
  --wl-border: rgba(0, 0, 0, .08); --wl-border-2: rgba(0, 0, 0, .12); --wl-rail: #f6f6f8;
  background: #F1F4F9;
}
.mass h1, .mass h2, .mass p { margin: 0; }
.mass .muted { color: var(--wl-muted); }

/* choice screen */
.mass-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.mass-hero { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 24px 40px; text-align: center; }
.mass-hero h1 { font-size: 30px; font-weight: 750; letter-spacing: -.5px; }
.mass-hero h1 span { color: var(--ios-blue); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 320px)); gap: 18px; margin: 18px 0 8px; }
.choice-card.main { border-color: color-mix(in srgb, var(--ios-blue) 45%, transparent) !important; }
.choice-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; text-align: left; border-radius: 26px;
  background: var(--glass-fill); border: .5px solid var(--glass-hair); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .25);
  transition: background var(--m-fast, .12s) var(--wl-ease);
}
.choice-card:hover { transform: translateY(-3px); background: var(--glass-fill-2); }
.choice-card p { flex: 1; font-size: 13px; }
.choice-card strong { font-size: 17px; }
.choice-card .badge { position: absolute; top: 18px; right: 18px; }
.choice-card .btn { width: 100%; justify-content: center; }
.choice-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--ios-blue); background: var(--glass-fill-2); }

/* manager: own rail */
.mass-rail {
  flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0;
  background: var(--sheen), var(--bar); box-shadow: inset -1px 0 0 var(--glass-hair-soft);
}
.mass-rail .brand-mark { margin-bottom: 8px; }
.mass-rail .spacer { flex: 1; }
.mass-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.wizard-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; }
.wiz-title h2, .mass-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.wiz-title p { margin-top: 3px; }
.wiz-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 4px; padding: 12px 24px; box-shadow: inset 0 -.5px 0 var(--glass-hair); flex-wrap: wrap; }
.step-dot { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--wl-muted); font-weight: 600; cursor: pointer; padding: 4px 2px; }
.step-dot:disabled { cursor: default; opacity: .55; }
.step-dot .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--glass-fill); border: .5px solid var(--glass-hair); }
.step-dot.current { color: var(--wl-text); }
.step-dot.current .dot { color: var(--ios-blue); border-color: var(--ios-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ios-blue) 20%, transparent); }
.step-dot.done .dot { color: var(--ios-blue); background: color-mix(in srgb, var(--ios-blue) 16%, transparent); }
.step-dot .bar { width: 34px; height: 2px; border-radius: 2px; background: var(--glass-fill-2); margin: 0 4px; }
.step-dot.done .bar { background: color-mix(in srgb, var(--ios-blue) 60%, transparent); }
.stepper .camp-name { margin-left: auto; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* columns and glass cards */
.three-cols { flex: 1; min-height: 340px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr) minmax(240px, 1.1fr); gap: 14px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.glass-card {
  min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px;
  background: var(--glass-fill); border: .5px solid var(--glass-hair-soft); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .18);
}
.segmented.wide { display: flex; }
.segmented.wide button { flex: 1; justify-content: center; }
.sources { display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.source-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 14px; cursor: pointer; text-align: left;
  border: .5px solid transparent; background: transparent; color: var(--wl-text); font-weight: 550; transition: background .2s;
}
.source-btn svg { color: var(--ios-blue); flex: 0 0 auto; }
.source-btn:hover:not(:disabled) { background: var(--glass-fill); }
.source-btn[aria-pressed="true"] { background: var(--glass-fill-2); border-color: var(--glass-hair); }
.source-btn:disabled { opacity: .5; cursor: default; }
.source-btn .soon { margin-left: auto; font-size: 10.5px; color: var(--wl-faint); }
.mass .input.sm { height: 32px; }
.mass select.input { width: 100%; }
.mass .search .input { width: 100%; }
.mass .grow { flex: 1; min-width: 0; }
.people { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.person { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 12px; cursor: default; }
label.person { cursor: pointer; }
.person:hover { background: var(--glass-fill); }
.person input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--ios-blue); }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; color: var(--ios-blue); background: var(--glass-fill-2); }
.three-cols.actions .steps { display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.col { display: flex; flex-direction: column; gap: 8px; }
.mass .action-menu { max-height: 56vh; overflow: auto; }

/* preview and sliders */
.wa-preview { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; min-height: 110px; max-height: 240px; overflow: auto;
  background: color-mix(in srgb, #0b141a 70%, transparent); }
.mass-light .wa-preview { background: #efeae2; }
.bubble { position: relative; align-self: flex-end; max-width: 88%; padding: 7px 10px 7px 26px; border-radius: 12px 12px 4px 12px; white-space: pre-wrap; word-break: break-word;
  background: #005c4b; color: #e9edef; font-size: 12.5px; }
.mass-light .bubble { background: #d9fdd3; color: #111b21; }
.bubble.action { align-self: center; background: var(--glass-fill-2); color: var(--wl-muted); border-radius: 99px; font-size: 11.5px; }
.bubble .n { position: absolute; left: 8px; top: 7px; font-size: 10px; opacity: .6; }
.slider { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.slider input[type="range"] { width: 100%; accent-color: var(--ios-blue); }

/* review */
.review-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.big-number { font-size: 40px; font-weight: 750; letter-spacing: -1px; }
.chips.wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-blue { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ios-blue) 14%, transparent); color: var(--ios-blue); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.mass .alert-yellow, .mass .alert-red { border-radius: 14px; padding: 10px 12px; }

/* sending and results */
.progress { height: 10px; border-radius: 99px; background: var(--glass-fill-2); overflow: hidden; }
.progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--ios-blue); transform-origin: left center; transition: transform var(--m-slide, .24s) var(--wl-ease); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-row > div { display: flex; flex-direction: column; gap: 2px; }
.stat-row strong { font-size: 24px; font-weight: 750; }
.stat-row.cards > .glass-card { gap: 2px; }
.mass .ok { color: #34C759; }
.mass .err { color: #FF453A; }
.glass-card.log { flex: 1; min-height: 160px; overflow: auto; gap: 2px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--wl-faint); }
.status-dot.sent { background: #34C759; }
.status-dot.failed { background: #FF453A; }
.status-dot.skipped, .status-dot.unconfirmed { background: #FF9F0A; }
.status-dot.sending { background: #1D90F5; }
.badge-unconfirmed { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #FF9F0A; background: rgba(255, 159, 10, .15); white-space: nowrap; }
.stat-row .warn, .stat-row.cards .warn { color: #FF9F0A; }

/* campaigns list */
.mass-head { flex-wrap: wrap; }
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.camp-card { gap: 8px; }
.camp-card .row.small svg { color: var(--ios-blue); }
.camp-status { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--glass-fill-2); color: var(--wl-muted); white-space: nowrap; }
.camp-status.running { color: var(--ios-blue); background: color-mix(in srgb, var(--ios-blue) 16%, transparent); }
.camp-status.paused { color: #FF9F0A; background: rgba(255, 159, 10, .14); }
.camp-status.done { color: #34C759; background: rgba(52, 199, 89, .14); }
.camp-status.cancelled { color: #FF453A; background: rgba(255, 69, 58, .12); }

@media (max-width: 980px) {
  .three-cols, .two-cols, .choice-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
/* ---- redesigned compose step (11/11/2026) ---- */
.compose { flex: 1; min-height: 360px; display: grid; grid-template-columns: minmax(230px, .9fr) minmax(280px, 1.3fr) minmax(280px, 1.1fr); gap: 14px; }
.compose > section { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.add-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.add-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 12px; border-radius: 16px; cursor: pointer; text-align: left; font: inherit;
  color: var(--wl-text); background: var(--sheen), var(--glass-fill); border: 1px solid var(--glass-hair-soft); transition: transform .35s cubic-bezier(.32,1.4,.5,1), background .2s; }
.add-tile:hover { transform: translateY(-2px); background: var(--glass-fill-2); }
.add-tile svg { color: var(--ios-blue); }
.add-tile span { font-weight: 650; font-size: 13px; }
.add-tile small { font-size: 11px; color: var(--wl-muted); }
.replies-pick summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--wl-muted); padding: 6px 2px; list-style: none; }
.replies-pick summary::-webkit-details-marker { display: none; }
.compose-steps { position: relative; }
.compose-steps .steps { display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.compose-steps.drag { outline: 2px dashed var(--ios-blue); outline-offset: -6px; }
.drop-hint { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; border-radius: inherit; font-weight: 650;
  background: color-mix(in srgb, var(--glass-strong) 85%, transparent); pointer-events: none; }
.step-wrap { display: flex; flex-direction: column; gap: 6px; }
.media-thumb { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: var(--glass-fill); }
.media-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; }
.media-thumb .media-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 9px; background: var(--glass-fill-2); color: var(--ios-blue); flex: 0 0 auto; }
.media-meta { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; }
.compose-preview .sample { width: 130px; }
.compose-preview .wa-preview { max-height: 300px; }
.bubble { padding: 7px 10px 18px; min-width: 64px; }
.bubble .t { position: absolute; right: 8px; bottom: 3px; font-size: 10px; opacity: .6; }
.bubble.media { padding: 4px 4px 18px; max-width: 78%; }
.media-bubble { display: flex; flex-direction: column; gap: 4px; }
.media-bubble img { display: block; max-width: 220px; max-height: 220px; border-radius: 9px; object-fit: cover; }
.media-bubble .cap { padding: 2px 6px 0; }
.media-ph { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 180px; height: 110px; border-radius: 9px; background: rgba(0,0,0,.25); font-size: 11.5px; }
.media-ph.video span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-audio { display: flex; align-items: center; gap: 6px; padding: 4px 6px; flex-wrap: wrap; }
.media-audio audio { height: 32px; max-width: 220px; }
.media-doc { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(0,0,0,.18); }
.media-doc span { display: flex; flex-direction: column; min-width: 0; }
.bubble.typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #202c33; min-width: 0; }
.mass-light .bubble.typing { background: #ffffff; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; animation: wl-typing 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .2s; } .bubble.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes wl-typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: .9; transform: translateY(-2px); } }
/* "Mais ações" menu: floats over the page with a fixed width (it was squeezed and cut inside the narrow column). */
.compose-add { overflow: visible !important; position: relative; z-index: 5; }
.compose-add .rel { position: relative; }
.compose-add .action-menu { position: absolute; left: 0; bottom: calc(100% + 6px); width: 300px; max-height: min(46vh, 420px); overflow: auto; z-index: 60; margin: 0;
  --glass: var(--glass-pop); background: var(--sheen), var(--glass-pop) !important; box-shadow: var(--glass-hi), 0 24px 60px rgba(0, 0, 0, .45) !important; }
.compose-add .action-menu .acc-item { white-space: nowrap; }
@media (max-width: 1100px) { .compose { grid-template-columns: 1fr 1fr; } .compose-preview { grid-column: 1 / -1; } }
@media (max-width: 760px) { .compose { grid-template-columns: 1fr; } }

/* editors */
.auto-editor { display: flex; flex-direction: column; gap: 12px; }
.auto-editor-title { margin: 0; font-size: 17px; }
.auto-editor-foot { padding-top: 6px; }
.acc { border-radius: 16px; background: var(--glass-fill); border: .5px solid var(--glass-hair-soft); }
.acc .menu { z-index: 60; }
.acc-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; background: none; color: var(--wl-text); cursor: pointer; text-align: left; }
.acc-head strong { font-size: 13.5px; }
.acc-head .muted { margin-left: auto; }
.acc-arrow { color: var(--ios-blue); transition: transform .2s var(--wl-ease); flex: 0 0 auto; }
.acc-head .muted + .acc-arrow { margin-left: 0; }
.acc-head > strong + .acc-arrow { margin-left: auto; }
.acc.open .acc-arrow { transform: rotate(180deg); }
.acc-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 14px 14px; animation: wl-glass-pop .2s var(--wl-ease); }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; line-height: 1.35; }
/* Only the rows that draw their own .check-dot hide the native box; a .check-row with a plain checkbox (CRM contact lists) keeps it visible. */
.check-row input:has(+ .check-dot) { position: absolute; opacity: 0; pointer-events: none; }
.check-dot { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--glass-hair); background: var(--glass-fill); transition: background .2s, border-color .2s, box-shadow .2s; }
.check-row input:checked + .check-dot { border-color: var(--ios-blue); background: var(--ios-blue); box-shadow: inset 0 0 0 4px var(--wl-surface, #1c1c1e); }
.check-row input:focus-visible + .check-dot { outline: 2px solid var(--ios-blue); outline-offset: 2px; }
.hours { display: flex; flex-direction: column; gap: 8px; padding-left: 30px; }
.hours .field { flex: 1; }
.tag-picker { display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.input.num { width: 90px; }
.trigger-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--glass-fill); border: .5px solid var(--glass-hair-soft); }
.steps-editor { display: flex; flex-direction: column; gap: 8px; }
.auto-item { align-items: center; }
.auto-item .reply-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.auto-item .muted.small svg { vertical-align: -2px; }

/* status */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.type-block { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; cursor: pointer;
  border: .5px solid var(--glass-hair-soft); background: var(--glass-fill); color: var(--wl-text); font-weight: 600; transition: transform .2s var(--wl-ease), background .2s; }
.type-block svg { color: var(--ios-blue); }
.type-block[aria-pressed="true"] { border-color: var(--ios-blue); background: color-mix(in srgb, var(--ios-blue) 14%, transparent); }
.type-block:disabled { opacity: .5; cursor: default; }
.type-block .type-check { position: absolute; top: 8px; right: 8px; }
.type-block .soon { font-size: 10px; color: var(--wl-faint); font-weight: 500; }
.status-preview { min-height: 120px; border-radius: 18px; display: grid; place-items: center; padding: 18px; color: #fff; font-size: 18px; font-weight: 600; text-align: center; white-space: pre-wrap; word-break: break-word; }
.color-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: 0 0 0 .5px var(--glass-hair); }
.color-dot[aria-pressed="true"] { border-color: var(--wl-text); }
.status-thumb { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--glass-fill-2); }
.status-thumb svg { color: inherit; }
.dropzone { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px; border-radius: 16px; border: 1.5px dashed var(--glass-hair); }

/* Central de Agendamentos */
.cal-backdrop { display: grid; place-items: center; }
.cal {
  width: min(1120px, calc(100vw - 40px)); height: min(680px, calc(100vh - 40px)); display: flex; overflow: hidden; border-radius: 28px;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: .5px solid var(--glass-hair); box-shadow: var(--glass-hi), var(--glass-drop); animation: wl-glass-in .2s var(--wl-ease);
}
.cal-months { flex: 0 0 170px; display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; box-shadow: inset -.5px 0 0 var(--glass-hair); overflow: auto; }
.cal-year { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; font-size: 16px; }
.cal-month { text-align: left; padding: 8px 12px; border-radius: 12px; border: 0; background: none; color: var(--wl-text); cursor: pointer; font-weight: 500; }
.cal-month:hover { background: var(--glass-fill); }
.cal-month[aria-current="true"] { background: var(--glass-fill-2); color: var(--ios-blue); font-weight: 700; }
.cal-grid-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 16px; gap: 8px; }
.cal-head { display: flex; align-items: center; gap: 6px; }
.cal-head h2 { margin: 0 6px; font-size: 18px; letter-spacing: .5px; min-width: 190px; text-align: center; }
.cal-head .btn { margin-left: auto; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11.5px; color: var(--wl-muted); font-weight: 600; }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(6, 1fr); gap: 4px; }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; border-radius: 14px; border: 0; cursor: pointer;
  background: transparent; color: var(--wl-text); transition: background .2s, transform .2s var(--wl-ease); }
.cal-day:hover { background: var(--glass-fill); }
.cal-day.out { color: var(--wl-faint); }
.cal-day[aria-pressed="true"] { background: var(--glass-fill-2); box-shadow: 0 0 0 .5px var(--glass-hair); }
.cal-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 600; font-size: 13px; }
.cal-day.today .cal-num { background: var(--ios-blue); color: #fff; }
.cal-dots { display: flex; align-items: center; gap: 3px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ios-blue); }
.cal-dots i.reminder { background: #FF9F0A; }
.cal-dots em { font-size: 9.5px; font-style: normal; color: var(--wl-muted); }
.cal-side { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; padding: 14px; box-shadow: inset .5px 0 0 var(--glass-hair); min-height: 0; }
.cal-side-top { display: flex; justify-content: space-between; align-items: center; }
.cal-date { font-size: 14px; }
.cal-date::first-letter { text-transform: uppercase; }
.cal-side .search .input { width: 100%; }
.cal-events { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.cal-event { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--glass-fill); border: .5px solid var(--glass-hair-soft); }
.cal-event .grow { display: flex; flex-direction: column; min-width: 0; }
.cal-event.done { opacity: .55; }
.cal-event-ico { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: var(--glass-fill-2); color: var(--ios-blue); }
.cal-event.reminder .cal-event-ico { color: #FF9F0A; }
@media (max-width: 900px) { .cal-months { display: none; } .cal-side { flex-basis: 240px; } }

/* reminders shown inside WhatsApp */
.reminders { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-popover); display: flex; flex-direction: column; gap: 10px; width: 340px; }
.reminder-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 22px;
  background: var(--glass-strong) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: .5px solid var(--glass-hair); box-shadow: var(--glass-hi), var(--glass-drop); animation: wl-glass-pop .2s var(--wl-ease);
}
.reminder-card .row { flex-wrap: wrap; }
.reminder-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #FF9F0A; background: rgba(255, 159, 10, .14); flex: 0 0 auto; }
.reminder-note { margin: 0; font-size: 12.5px; white-space: pre-wrap; }

/* webhooks, API, links */
.wh { display: flex; flex-direction: column; gap: 12px; }
.wh-targets { display: flex; gap: 10px; flex-wrap: wrap; }
.wh-target { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; font-size: 10.5px; color: var(--wl-muted); }
.wh-target svg { width: 40px; height: 40px; padding: 10px; box-sizing: border-box; border-radius: 50%; color: var(--ios-blue); background: var(--glass-fill-2); }
.wh-target em { font-style: normal; text-align: center; }
.wh-cols { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.wh-events { display: flex; flex-direction: column; gap: 2px; }
.wh-event { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; border: 0; background: none; color: var(--wl-text); cursor: pointer; text-align: left; font-weight: 550; }
.wh-event:hover:not(:disabled) { background: var(--glass-fill); }
.wh-event[aria-current="true"] { background: var(--glass-fill-2); color: var(--ios-blue); }
.wh-event:disabled { opacity: .5; cursor: default; }
.wh-event .soon { margin-left: auto; font-size: 10px; color: var(--wl-faint); }
.wh-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wh-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wh-log { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; }
.input.invalid { border-color: #FF453A !important; }
.api-panel { display: flex; flex-direction: column; gap: 12px; }
.phone-field { display: flex; align-items: center; gap: 6px; }
.phone-field .input { flex: 1; }
.phone-ddi { padding: 0 10px; height: 34px; display: flex; align-items: center; gap: 6px; border-radius: 12px; background: var(--glass-fill); font-weight: 600; white-space: nowrap; }
.translate-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--glass-fill); }
@media (max-width: 760px) { .wh-cols { grid-template-columns: 1fr; } }

/* Configurações → Aparência */
.set-row.appearance { align-items: flex-start; }
.set-row.appearance .set-text { display: flex; flex-direction: column; gap: 4px; }
.ap-grid { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px 16px; margin-top: 10px; }
.ap-label { font-size: 12.5px; font-weight: 600; color: var(--wl-text); }
.ap-label em { font-style: normal; font-weight: 500; color: var(--wl-muted); margin-left: 6px; }
.ap-walls { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-wall { width: 84px; height: 48px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; display: flex; align-items: flex-end; padding: 4px 6px; color: #fff; font-size: 10.5px; font-weight: 600;
  box-shadow: 0 0 0 1px var(--glass-hair-soft); transition: transform .3s cubic-bezier(.32,1.4,.5,1); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ap-wall:hover { transform: scale(1.05); }
.ap-wall[aria-pressed="true"] { border-color: var(--ios-blue); }
.ap-grid input[type="range"] { width: 100%; accent-color: var(--ios-blue); }
.ap-reset { align-self: flex-start; margin-top: 10px; }
/* style picker: two cards with a tiny drawing of each look (the drawings do not follow the active style) */
.ap-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ap-style { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border-radius: 10px; border: 1px solid var(--wl-border-2); background: var(--wl-surface-2); color: var(--wl-text); text-align: left; cursor: pointer; font: inherit; }
.ap-style:hover { border-color: var(--wl-muted); }
.ap-style[aria-pressed="true"] { border-color: var(--ios-blue); box-shadow: 0 0 0 1px var(--ios-blue); }
.ap-style-demo { display: flex; gap: 4px; align-items: stretch; width: 100%; height: 44px; margin-bottom: 4px; padding: 6px; border-radius: 8px; }
.ap-style-demo i { display: block; border-radius: 3px; }
.ap-style-demo i:nth-child(1) { flex: 0 0 8px; } .ap-style-demo i:nth-child(2) { flex: 1; } .ap-style-demo i:nth-child(3) { flex: 0 0 22px; }
.ap-style.linear .ap-style-demo { background: #0b0c0e; border: 1px solid #23252a; }
.ap-style.linear .ap-style-demo i { background: #1d2025; border: 1px solid #2a2d34; }
.ap-style.linear .ap-style-demo i:nth-child(1) { background: #1D90F5; border-color: transparent; }
.ap-style.glass .ap-style-demo { background: linear-gradient(135deg, #3b4a7a, #2a1f4d 55%, #1d5f73); border-radius: 14px; }
.ap-style.glass .ap-style-demo i { background: rgba(255, 255, 255, .22); border-radius: 8px; }
.ap-style.glass .ap-style-demo i:nth-child(1) { background: rgba(255, 255, 255, .55); }

.sup-wrap { position: relative; width: 34px; height: 32px; }
/* Minimal line icon like the other rail icons, but it blinks so the support is always noticed. */
.sup-btn { position: relative; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--wl-blue-2, #4aa8ff); }
.sup-icon { position: relative; z-index: 1; }
.sup-btn.blink .sup-icon { animation: wl-sup-blink 1.6s ease-in-out infinite; }
/* Only the icon is blue: no tinted square and no ring, open or closed (the background stays like the other rail icons). */
.sup-btn:hover { background: var(--wl-surface-3); }
.sup-btn[aria-expanded="true"] { background: transparent; box-shadow: none; }
.sup-btn:hover .sup-icon, .sup-btn[aria-expanded="true"] .sup-icon { animation: none; opacity: 1; }
@keyframes wl-sup-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.reduce .sup-icon { animation: none; }
.sup-card { position: fixed; left: 68px; bottom: 70px; z-index: var(--z-panel); width: 250px; padding: 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.sup-close { position: absolute; top: 8px; right: 8px; }
.sup-logo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; background: var(--glass-fill-2); color: var(--wl-muted); }
.sup-logo img { width: 100%; height: 100%; object-fit: contain; }
.sup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.sup-head > span { display: flex; flex-direction: column; }
.sup-hide { display: inline-flex; align-items: center; gap: 5px; align-self: center; margin-top: 2px; }
.sup-hint { position: fixed; left: 68px; bottom: 80px; z-index: var(--z-panel); white-space: nowrap; padding: 7px 11px; border-radius: 10px; font-size: 12px; font-weight: 600;
  color: var(--wl-on-accent, #fff); background: var(--wl-blue, #0A84FF); box-shadow: 0 8px 22px rgba(0,0,0,.3); animation: wl-rise .3s var(--wl-ease, ease); }

/* Block empty states: centred column. */
.es, .empty-state, .empty, .leads-empty, .dashed-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 28px 16px; color: var(--wl-muted); font-size: 12.5px; border: 0; border-radius: var(--r-lg, 14px);
}
.es strong, .empty-state strong, .empty strong, .leads-empty strong, .dashed-empty strong { color: var(--wl-text); font-size: 14px; font-weight: 600; }
.es p, .empty-state p, .empty p, .leads-empty p, .dashed-empty p { margin: 0; max-width: 380px; line-height: 1.45; }
.es-icon, .empty-icon { width: 40px; height: 40px; border-radius: var(--r-lg, 14px); display: grid; place-items: center; color: var(--wl-blue-2); background: color-mix(in srgb, var(--wl-blue) 14%, transparent); }
.es-action { margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
/* Inline empty states: one muted line. */
.es-inline, .empty-mini, .kb-empty, .slash-empty, .pop-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; text-align: center;
  color: var(--wl-muted); font-size: 12.5px; border: 0; border-radius: var(--r-md, 10px);
}
.es-inline svg, .empty-mini svg { color: var(--wl-blue); flex: 0 0 auto; }
.empty-mini { flex-wrap: wrap; flex-direction: column; }
.kb-empty { color: var(--wl-muted); font-size: 12px; }

.act { display: flex; flex-direction: column; gap: 22px; }
.act h3 { margin: 0; font-size: 14px; font-weight: 600; }
.act section { display: flex; flex-direction: column; gap: 12px; }
.act-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.act-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--wl-border); border-radius: 12px; }
.act-stat strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.act-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; padding: 4px 0; }
.act-bars span { flex: 1; background: var(--wl-blue); opacity: .75; border-radius: 3px 3px 0 0; min-height: 4px; }
.act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.act-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--wl-border); }

.tour-layer { position: fixed; inset: 0; z-index: var(--z-popover, 2147483300); pointer-events: none; }
.tour-dim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); pointer-events: auto; }
.tour-ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 2px var(--wl-blue), 0 0 0 6px color-mix(in srgb, var(--wl-blue) 25%, transparent); }
.tour { position: fixed; width: 280px; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; pointer-events: auto;
  background: var(--glass-pop, rgba(28, 31, 38, .95)); border: 1px solid var(--glass-hair, rgba(255, 255, 255, .14)); box-shadow: 0 18px 48px rgba(0, 0, 0, .38); color: var(--wl-text);
  animation: wl-glass-pop var(--m-pop, .16s) var(--wl-ease); }
.tour.intro { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100vw - 32px)); padding: 18px 20px; animation: none; }
.tour.intro strong { font-size: 16px; }
.tour p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--wl-muted); }
.tour strong { font-size: 14px; }
.tour-count { font-size: 11px; color: var(--wl-faint); font-weight: 600; }

.team-panel{display:flex;flex-direction:column;gap:12px;padding:4px;min-width:0;color:var(--wl-text);font-size:13px}
.team-panel h3,.team-panel p{margin:0}.team-panel h3{font-size:14px}.team-panel p{line-height:1.5}
.team-section{display:flex;flex-direction:column;gap:12px;min-width:0}
.team-item{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-bottom:1px solid var(--glass-hair-soft);min-width:0;overflow-wrap:anywhere}
.team-actions{display:flex;flex-wrap:wrap;gap:8px}.team-actions .btn{min-height:34px;flex:0 1 auto;white-space:normal}
.team-panel .field{display:flex;flex-direction:column;gap:6px}.team-panel .input{width:100%;min-width:0;min-height:34px;box-sizing:border-box}
.team-section + .team-section{border-top:1px solid var(--wl-border);padding-top:16px;margin-top:4px}
.team-transfer{border:1px solid var(--wl-border);border-radius:8px;overflow:hidden}
.team-transfer summary{cursor:pointer;display:flex;gap:8px;align-items:center;padding:10px 12px;list-style:none}
.team-transfer summary strong{flex:1;min-width:0;overflow-wrap:anywhere}.team-transfer summary span{font-size:11px;color:var(--wl-muted)}
.team-transfer-body{padding:0 12px 12px;display:flex;flex-direction:column;gap:10px}
.team-transfer-body a{align-self:flex-start}
.team-panel textarea{resize:vertical}.team-summary{white-space:pre-wrap;overflow-wrap:anywhere}
.team-note{color:var(--wl-muted)}.team-error{padding:12px;border:1px solid var(--wl-border-2);border-radius:8px;background:var(--glass-fill)}
.team-received{display:flex;flex-direction:column;gap:14px;min-width:0}.team-received p{margin:0;line-height:1.5}
.team-received-note{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--wl-border);border-radius:8px;background:var(--glass-fill)}
.tb-team-alert{position:relative;color:var(--wl-blue)}.tb-team-alert>svg{animation:team-arrival 1.4s ease-in-out infinite}
.tb-team-alert>.count{position:absolute;top:0;right:0;min-width:15px;height:15px;padding:0 3px;background:var(--wl-blue);color:#fff;border-radius:8px;font-size:10px;line-height:15px}
@keyframes team-arrival{0%,100%{opacity:1}50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.tb-team-alert>svg{animation:none}}
.walead-reduce .tb-team-alert>svg{animation:none}
.team-review{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px 12px;margin:0;padding:12px;background:var(--glass-fill);border:1px solid var(--glass-hair);border-radius:8px}
.team-review dt{color:var(--wl-muted)}.team-review dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:480px){.team-review{grid-template-columns:1fr;gap:4px}.team-review dd{margin-bottom:8px}}
.team-badge{display:inline-flex;align-items:center;gap:6px;color:var(--wl-muted);font-size:12px;max-width:100%;overflow-wrap:anywhere}
.team-panel :is(button,input,textarea,select):focus-visible{outline:2px solid var(--wl-blue);outline-offset:3px}
.team-check{display:flex;gap:8px;align-items:flex-start;line-height:1.5}.team-check input{margin-top:4px}
.team-steps{display:flex;gap:8px;margin:0 0 4px;padding:0;list-style:none}
.team-steps li{flex:1;display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--wl-border);border-radius:10px;font-size:12.5px;font-weight:600;color:var(--wl-muted)}
.team-steps li span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:var(--wl-surface-3);color:var(--wl-muted)}
.team-steps li[aria-current=step]{color:var(--wl-text);border-color:color-mix(in srgb,var(--wl-blue) 45%,var(--wl-border))}
.team-steps li[aria-current=step] span{background:var(--wl-brand-grad,var(--wl-blue));color:#fff}
.team-panel .dlg-grid{gap:12px}

.wl.linear,
html.walead-linear .wl,
.toasts.linear {
  --glass: #111317; --glass-strong: #0d0e11; --glass-pop: #131519;
  --glass-fill: #15171b; --glass-fill-2: #1d2025; --glass-hair: #2a2d34; --glass-hair-soft: #1f2227;
  --glass-blur: none; --glass-hi: none; --rim: none; --sheen: linear-gradient(transparent, transparent);
  --glass-drop: 0 10px 30px rgba(0, 0, 0, .55);
  --bar: #0b0c0e;
  --wl-surface: #0f1114; --wl-surface-2: #15171b; --wl-surface-3: #1d2025; --wl-border: #1f2227; --wl-border-2: #2a2d34;
  --wl-rail: #0b0c0e; --wl-rail-icon: #8b9099; --lin-icon: #8b9099;
  --wl-text: #e8e9ec; --wl-muted: #9a9ea6; --wl-faint: #7a7f88;
  --lin-r: 6px; --lin-r-card: 8px; --lin-r-dialog: 12px;
}
.wl.linear.light,
html.walead-linear .wl.light,
.toasts.linear.light {
  --glass: #ffffff; --glass-strong: #ffffff; --glass-pop: #ffffff;
  --glass-fill: #f5f6f8; --glass-fill-2: #eceef2; --glass-hair: #d9dce2; --glass-hair-soft: #e6e8ec;
  --glass-drop: 0 10px 30px rgba(15, 23, 42, .14);
  --bar: #fafafb;
  --wl-surface: #ffffff; --wl-surface-2: #f5f6f8; --wl-surface-3: #eceef2; --wl-border: #e6e8ec; --wl-border-2: #d9dce2;
  --wl-rail: #fafafb; --wl-rail-icon: #6b7078; --lin-icon: #6b7078;
  --wl-text: #16181d; --wl-muted: #5d626b; --wl-faint: #767b85;
}

/* ---- bars: solid, one hairline ---- */
.wl.linear .rail,
html.walead-linear .wl .rail,
.toasts.linear .rail,
.wl.linear .topbar,
html.walead-linear .wl .topbar,
.toasts.linear .topbar { background: var(--bar) !important; box-shadow: none !important; }
.wl.linear .rail,
html.walead-linear .wl .rail,
.toasts.linear .rail { border-right: 1px solid var(--glass-hair-soft) !important; }
.wl.linear .topbar,
html.walead-linear .wl .topbar,
.toasts.linear .topbar { border-bottom: 1px solid var(--glass-hair-soft) !important; }
.wl.linear .side-panel,
html.walead-linear .wl .side-panel,
.toasts.linear .side-panel { box-shadow: inset 1px 0 0 var(--glass-hair-soft) !important; }

/* ---- floating things: solid, hairline, one soft shadow ---- */
.wl.linear .pop,
html.walead-linear .wl .pop,
.toasts.linear .pop,
.wl.linear .menu,
html.walead-linear .wl .menu,
.toasts.linear .menu,
.wl.linear .floating,
html.walead-linear .wl .floating,
.toasts.linear .floating,
.wl.linear .more-card,
html.walead-linear .wl .more-card,
.toasts.linear .more-card,
.wl.linear .google-card,
html.walead-linear .wl .google-card,
.toasts.linear .google-card,
.wl.linear .modal,
html.walead-linear .wl .modal,
.toasts.linear .modal,
.wl.linear .tool-modal,
html.walead-linear .wl .tool-modal,
.toasts.linear .tool-modal,
.wl.linear .settings,
html.walead-linear .wl .settings,
.toasts.linear .settings,
.wl.linear .toast,
html.walead-linear .wl .toast,
.toasts.linear .toast,
.wl.linear .action-menu,
html.walead-linear .wl .action-menu,
.toasts.linear .action-menu,
.wl.linear .emoji-pop,
html.walead-linear .wl .emoji-pop,
.toasts.linear .emoji-pop,
.wl.linear .side-gear,
html.walead-linear .wl .side-gear,
.toasts.linear .side-gear,
.wl.linear .help-card,
html.walead-linear .wl .help-card,
.toasts.linear .help-card,
.wl.linear .capsule,
html.walead-linear .wl .capsule,
.toasts.linear .capsule,
.wl.linear .ai-bar,
html.walead-linear .wl .ai-bar,
.toasts.linear .ai-bar,
.wl.linear .lang-pick,
html.walead-linear .wl .lang-pick,
.toasts.linear .lang-pick,
.wl.linear .slash,
html.walead-linear .wl .slash,
.toasts.linear .slash,
.wl.linear .login-card,
html.walead-linear .wl .login-card,
.toasts.linear .login-card,
.wl.linear .reminder-card,
html.walead-linear .wl .reminder-card,
.toasts.linear .reminder-card,
.wl.linear .conn-warning,
html.walead-linear .wl .conn-warning,
.toasts.linear .conn-warning,
.wl.linear .sup-card,
html.walead-linear .wl .sup-card,
.toasts.linear .sup-card,
.wl.linear .float-card,
html.walead-linear .wl .float-card,
.toasts.linear .float-card,
.wl.linear .float-label,
html.walead-linear .wl .float-label,
.toasts.linear .float-label,
.wl.linear .rail-unfold,
html.walead-linear .wl .rail-unfold,
.toasts.linear .rail-unfold,
.wl.linear .notice-window,
html.walead-linear .wl .notice-window,
.toasts.linear .notice-window { background: var(--glass) !important; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wl.linear .pop,
html.walead-linear .wl .pop,
.toasts.linear .pop,
.wl.linear .menu,
html.walead-linear .wl .menu,
.toasts.linear .menu,
.wl.linear .floating,
html.walead-linear .wl .floating,
.toasts.linear .floating,
.wl.linear .more-card,
html.walead-linear .wl .more-card,
.toasts.linear .more-card,
.wl.linear .google-card,
html.walead-linear .wl .google-card,
.toasts.linear .google-card,
.wl.linear .action-menu,
html.walead-linear .wl .action-menu,
.toasts.linear .action-menu,
.wl.linear .slash,
html.walead-linear .wl .slash,
.toasts.linear .slash,
.wl.linear .emoji-pop,
html.walead-linear .wl .emoji-pop,
.toasts.linear .emoji-pop,
.wl.linear .side-gear,
html.walead-linear .wl .side-gear,
.toasts.linear .side-gear,
.wl.linear .help-card,
html.walead-linear .wl .help-card,
.toasts.linear .help-card,
.wl.linear .reminder-card,
html.walead-linear .wl .reminder-card,
.toasts.linear .reminder-card,
.wl.linear .notice-card,
html.walead-linear .wl .notice-card,
.toasts.linear .notice-card { border-radius: var(--lin-r-card); box-shadow: var(--glass-drop); }
.wl.linear .settings,
html.walead-linear .wl .settings,
.toasts.linear .settings,
.wl.linear .tool-modal,
html.walead-linear .wl .tool-modal,
.toasts.linear .tool-modal,
.wl.linear .modal,
html.walead-linear .wl .modal,
.toasts.linear .modal,
.wl.linear .login-card,
html.walead-linear .wl .login-card,
.toasts.linear .login-card,
.wl.linear .notice-window,
html.walead-linear .wl .notice-window,
.toasts.linear .notice-window { border-radius: var(--lin-r-dialog); box-shadow: var(--glass-drop); }
.wl.linear .toast,
html.walead-linear .wl .toast,
.toasts.linear .toast,
.wl.linear .conn-warning,
html.walead-linear .wl .conn-warning,
.toasts.linear .conn-warning,
.wl.linear .sup-card,
html.walead-linear .wl .sup-card,
.toasts.linear .sup-card,
.wl.linear .float-card,
html.walead-linear .wl .float-card,
.toasts.linear .float-card { border-radius: var(--lin-r-card); box-shadow: var(--glass-drop); }
.wl.linear .capsule,
html.walead-linear .wl .capsule,
.toasts.linear .capsule { border-radius: var(--lin-r-card); padding: 2px 4px; }
.wl.linear .tip,
html.walead-linear .wl .tip,
.toasts.linear .tip { background: var(--glass-pop); border-radius: var(--lin-r); box-shadow: var(--glass-drop); font-weight: 500; }
.wl.linear .backdrop,
html.walead-linear .wl .backdrop,
.toasts.linear .backdrop,
.wl.linear .login-backdrop,
html.walead-linear .wl .login-backdrop,
.toasts.linear .login-backdrop { background: rgba(0, 0, 0, .5) !important; }
.wl.linear .notice-item,
html.walead-linear .wl .notice-item,
.toasts.linear .notice-item,
.wl.linear .notice-card,
html.walead-linear .wl .notice-card,
.toasts.linear .notice-card { border-radius: var(--lin-r-card); }

/* ---- icons: grey; the accent is only for what is active ---- */
.wl.linear .rail-btn,
html.walead-linear .wl .rail-btn,
.toasts.linear .rail-btn,
.wl.linear .tb-btn,
html.walead-linear .wl .tb-btn,
.toasts.linear .tb-btn,
.wl.linear .cap-btn,
html.walead-linear .wl .cap-btn,
.toasts.linear .cap-btn,
.wl.linear .cmp-btn,
html.walead-linear .wl .cmp-btn,
.toasts.linear .cmp-btn,
.wl.linear .icon-btn,
html.walead-linear .wl .icon-btn,
.toasts.linear .icon-btn { color: var(--lin-icon) !important; border-radius: var(--lin-r); }
.wl.linear .tb-btn.tb-team-alert,
html.walead-linear .wl .tb-btn.tb-team-alert,
.toasts.linear .tb-btn.tb-team-alert { color: var(--wl-blue) !important; }
.wl.linear .rail-btn:hover,
html.walead-linear .wl .rail-btn:hover,
.toasts.linear .rail-btn:hover,
.wl.linear .tb-btn:hover,
html.walead-linear .wl .tb-btn:hover,
.toasts.linear .tb-btn:hover,
.wl.linear .cap-btn:hover,
html.walead-linear .wl .cap-btn:hover,
.toasts.linear .cap-btn:hover,
.wl.linear .cmp-btn:hover,
html.walead-linear .wl .cmp-btn:hover,
.toasts.linear .cmp-btn:hover,
.wl.linear .icon-btn:hover,
html.walead-linear .wl .icon-btn:hover,
.toasts.linear .icon-btn:hover { background: var(--glass-fill-2) !important; color: var(--wl-text) !important; }
.wl.linear .rail-btn[aria-current="true"],
html.walead-linear .wl .rail-btn[aria-current="true"],
.toasts.linear .rail-btn[aria-current="true"] { background: var(--glass-fill-2) !important; color: var(--ios-blue) !important; box-shadow: none !important; }
.wl.linear .rail-btn[aria-current="true"]::before,
html.walead-linear .wl .rail-btn[aria-current="true"]::before,
.toasts.linear .rail-btn[aria-current="true"]::before { content: ""; position: absolute; left: -5px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--ios-blue); }
.wl.linear .rail-btn,
html.walead-linear .wl .rail-btn,
.toasts.linear .rail-btn { width: 40px; height: 36px; }
.wl.linear .tb-btn,
html.walead-linear .wl .tb-btn,
.toasts.linear .tb-btn { width: 34px; height: 32px; }
.wl.linear .rail-btn.hl,
html.walead-linear .wl .rail-btn.hl,
.toasts.linear .rail-btn.hl { color: var(--ios-blue) !important; background: transparent !important; }
.wl.linear .rail-btn.hl:hover,
html.walead-linear .wl .rail-btn.hl:hover,
.toasts.linear .rail-btn.hl:hover { background: var(--glass-fill-2) !important; }
.wl.linear .rail-btn.hl[aria-current="true"],
html.walead-linear .wl .rail-btn.hl[aria-current="true"],
.toasts.linear .rail-btn.hl[aria-current="true"] { background: var(--glass-fill-2) !important; }
/* On / open: only the icon turns blue, the background stays as it is */
.wl.linear .cap-btn[aria-pressed="true"],
html.walead-linear .wl .cap-btn[aria-pressed="true"],
.toasts.linear .cap-btn[aria-pressed="true"],
.wl.linear .cmp-btn[aria-pressed="true"],
html.walead-linear .wl .cmp-btn[aria-pressed="true"],
.toasts.linear .cmp-btn[aria-pressed="true"],
.wl.linear .cap-btn[aria-expanded="true"],
html.walead-linear .wl .cap-btn[aria-expanded="true"],
.toasts.linear .cap-btn[aria-expanded="true"],
.wl.linear .cmp-btn[aria-expanded="true"],
html.walead-linear .wl .cmp-btn[aria-expanded="true"],
.toasts.linear .cmp-btn[aria-expanded="true"],
.wl.linear .tb-btn[aria-pressed="true"],
html.walead-linear .wl .tb-btn[aria-pressed="true"],
.toasts.linear .tb-btn[aria-pressed="true"],
.wl.linear .tb-btn[aria-expanded="true"],
html.walead-linear .wl .tb-btn[aria-expanded="true"],
.toasts.linear .tb-btn[aria-expanded="true"],
.wl.linear .icon-btn[aria-pressed="true"],
html.walead-linear .wl .icon-btn[aria-pressed="true"],
.toasts.linear .icon-btn[aria-pressed="true"] { color: var(--ios-blue) !important; background: transparent !important; box-shadow: none !important; }
.wl.linear .cap-btn[aria-pressed="true"]:hover,
html.walead-linear .wl .cap-btn[aria-pressed="true"]:hover,
.toasts.linear .cap-btn[aria-pressed="true"]:hover,
.wl.linear .cmp-btn[aria-pressed="true"]:hover,
html.walead-linear .wl .cmp-btn[aria-pressed="true"]:hover,
.toasts.linear .cmp-btn[aria-pressed="true"]:hover,
.wl.linear .tb-btn[aria-expanded="true"]:hover,
html.walead-linear .wl .tb-btn[aria-expanded="true"]:hover,
.toasts.linear .tb-btn[aria-expanded="true"]:hover { background: var(--glass-fill-2) !important; }
.wl.linear .nc-list .rail-btn,
html.walead-linear .wl .nc-list .rail-btn,
.toasts.linear .nc-list .rail-btn { width: 36px; height: 36px; }
.wl.linear .nc-list .rail-btn::before,
html.walead-linear .wl .nc-list .rail-btn::before,
.toasts.linear .nc-list .rail-btn::before { display: none; }
.wl.linear .nc-box,
html.walead-linear .wl .nc-box,
.toasts.linear .nc-box { border-radius: 12px; }
.wl.linear .nc-expand,
html.walead-linear .wl .nc-expand,
.toasts.linear .nc-expand { color: var(--wl-text); border-radius: 10px; }
.wl.linear .nc-expand:hover,
html.walead-linear .wl .nc-expand:hover,
.toasts.linear .nc-expand:hover { color: var(--ios-blue); }
.wl.linear .rail-sep,
html.walead-linear .wl .rail-sep,
.toasts.linear .rail-sep { border-top: 1px solid var(--glass-hair-soft) !important; }
.wl.linear .rail-badge,
html.walead-linear .wl .rail-badge,
.toasts.linear .rail-badge { background: var(--ios-blue); box-shadow: none !important; }
.wl.linear .rail-more-down,
html.walead-linear .wl .rail-more-down,
.toasts.linear .rail-more-down { box-shadow: none; background: var(--glass-fill-2); }
.wl.linear .brand-mark,
html.walead-linear .wl .brand-mark,
.toasts.linear .brand-mark { box-shadow: none; background: var(--glass-fill-2); }
.wl.linear .rail-avatar,
html.walead-linear .wl .rail-avatar,
.toasts.linear .rail-avatar { box-shadow: none; background: var(--glass-fill-2); }
.wl.linear .more-icon,
html.walead-linear .wl .more-icon,
.toasts.linear .more-icon,
.wl.linear .set-icon,
html.walead-linear .wl .set-icon,
.toasts.linear .set-icon,
.wl.linear .feature-icon,
html.walead-linear .wl .feature-icon,
.toasts.linear .feature-icon,
.wl.linear .empty-icon,
html.walead-linear .wl .empty-icon,
.toasts.linear .empty-icon { background: var(--glass-fill-2) !important; box-shadow: none !important; border-radius: var(--lin-r); }

/* ---- buttons ---- */
.wl.linear .btn,
html.walead-linear .wl .btn,
.toasts.linear .btn { border-radius: var(--lin-r); font-weight: 500; box-shadow: none; background: var(--glass-fill) !important; }
.wl.linear .btn:hover:not(:disabled),
html.walead-linear .wl .btn:hover:not(:disabled),
.toasts.linear .btn:hover:not(:disabled) { background: var(--glass-fill-2) !important; border-color: var(--glass-hair) !important; }
.wl.linear .btn:active:not(:disabled),
html.walead-linear .wl .btn:active:not(:disabled),
.toasts.linear .btn:active:not(:disabled) { transform: none; background: var(--glass-fill-2) !important; }
.wl.linear .btn.primary,
html.walead-linear .wl .btn.primary,
.toasts.linear .btn.primary { background: var(--ios-blue) !important; border-color: transparent !important; box-shadow: none; font-weight: 600; }
.wl.linear .btn.primary:hover:not(:disabled),
html.walead-linear .wl .btn.primary:hover:not(:disabled),
.toasts.linear .btn.primary:hover:not(:disabled) { background: var(--ios-blue) !important; filter: brightness(1.1); }
.wl.linear .btn.red,
html.walead-linear .wl .btn.red,
.toasts.linear .btn.red,
.wl.linear .btn.danger,
html.walead-linear .wl .btn.danger,
.toasts.linear .btn.danger,
.wl.linear .btn.outline-danger,
html.walead-linear .wl .btn.outline-danger,
.toasts.linear .btn.outline-danger,
.wl.linear .btn.tutorial,
html.walead-linear .wl .btn.tutorial,
.toasts.linear .btn.tutorial { background: rgba(255, 69, 58, .10) !important; border-color: rgba(255, 69, 58, .28) !important; }

/* ---- chips, segmented, nav ---- */
.wl.linear .chip,
html.walead-linear .wl .chip,
.toasts.linear .chip,
.wl.linear .tb-chip,
html.walead-linear .wl .tb-chip,
.toasts.linear .tb-chip,
.wl.linear .chip-btn,
html.walead-linear .wl .chip-btn,
.toasts.linear .chip-btn { border-radius: var(--lin-r); background: var(--glass-fill) !important; }
.wl.linear .chip:hover,
html.walead-linear .wl .chip:hover,
.toasts.linear .chip:hover,
.wl.linear .tb-chip:hover,
html.walead-linear .wl .tb-chip:hover,
.toasts.linear .tb-chip:hover { background: var(--glass-fill-2) !important; }
.wl.linear .chip[aria-pressed="true"],
html.walead-linear .wl .chip[aria-pressed="true"],
.toasts.linear .chip[aria-pressed="true"],
.wl.linear .tb-chip[aria-pressed="true"],
html.walead-linear .wl .tb-chip[aria-pressed="true"],
.toasts.linear .tb-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--chip, var(--ios-blue)) 16%, var(--glass-fill-2)) !important; border-color: color-mix(in srgb, var(--chip, var(--ios-blue)) 55%, var(--glass-hair)) !important; font-weight: 500; box-shadow: none; }
.wl.linear .segmented,
html.walead-linear .wl .segmented,
.toasts.linear .segmented { border-radius: var(--lin-r); box-shadow: none; background: var(--glass-fill) !important; border: 1px solid var(--glass-hair-soft) !important; }
.wl.linear .segmented button,
html.walead-linear .wl .segmented button,
.toasts.linear .segmented button { border-radius: 4px; }
.wl.linear .segmented button[aria-pressed="true"],
html.walead-linear .wl .segmented button[aria-pressed="true"],
.toasts.linear .segmented button[aria-pressed="true"],
.wl.linear .side-tab[aria-current="true"],
html.walead-linear .wl .side-tab[aria-current="true"],
.toasts.linear .side-tab[aria-current="true"] { background: var(--glass-fill-2) !important; box-shadow: none; }
.wl.linear .side-tab,
html.walead-linear .wl .side-tab,
.toasts.linear .side-tab { border-radius: var(--lin-r); }
.wl.linear .settings-nav button,
html.walead-linear .wl .settings-nav button,
.toasts.linear .settings-nav button { border-radius: var(--lin-r); }
.wl.linear .settings-nav button[aria-current="true"],
html.walead-linear .wl .settings-nav button[aria-current="true"],
.toasts.linear .settings-nav button[aria-current="true"] { background: var(--glass-fill-2) !important; box-shadow: none; }

/* ---- inputs ---- */
.wl.linear .input,
html.walead-linear .wl .input,
.toasts.linear .input,
.wl.linear .login-field,
html.walead-linear .wl .login-field,
.toasts.linear .login-field { border-radius: var(--lin-r); box-shadow: none; background: var(--wl-surface) !important; border: 1px solid var(--glass-hair) !important; }
.wl.linear .input:focus,
html.walead-linear .wl .input:focus,
.toasts.linear .input:focus,
.wl.linear .login-field:focus-within,
html.walead-linear .wl .login-field:focus-within,
.toasts.linear .login-field:focus-within { border-color: var(--ios-blue) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ios-blue) 28%, transparent); }

/* ---- switch ---- */
.wl.linear .toggle,
html.walead-linear .wl .toggle,
.toasts.linear .toggle { width: 34px; height: 20px; box-shadow: none; background: var(--glass-hair); }
.wl.linear .toggle .knob,
html.walead-linear .wl .toggle .knob,
.toasts.linear .toggle .knob { top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; box-shadow: none; }
.wl.linear .toggle:active .knob,
html.walead-linear .wl .toggle:active .knob,
.toasts.linear .toggle:active .knob { width: 16px; }
.wl.linear .toggle[aria-checked="true"],
html.walead-linear .wl .toggle[aria-checked="true"],
.toasts.linear .toggle[aria-checked="true"] { background: var(--ios-blue); box-shadow: none; }
.wl.linear .toggle[aria-checked="true"] .knob,
html.walead-linear .wl .toggle[aria-checked="true"] .knob,
.toasts.linear .toggle[aria-checked="true"] .knob,
.wl.linear .toggle:active[aria-checked="true"] .knob,
html.walead-linear .wl .toggle:active[aria-checked="true"] .knob,
.toasts.linear .toggle:active[aria-checked="true"] .knob { transform: translateX(14px); }

/* ---- cards and rows ---- */
.wl.linear .set-row,
html.walead-linear .wl .set-row,
.toasts.linear .set-row,
.wl.linear .set-card,
html.walead-linear .wl .set-card,
.toasts.linear .set-card,
.wl.linear .feature-card,
html.walead-linear .wl .feature-card,
.toasts.linear .feature-card,
.wl.linear .reply-item,
html.walead-linear .wl .reply-item,
.toasts.linear .reply-item,
.wl.linear .step,
html.walead-linear .wl .step,
.toasts.linear .step,
.wl.linear .actions-card,
html.walead-linear .wl .actions-card,
.toasts.linear .actions-card,
.wl.linear .kb-col,
html.walead-linear .wl .kb-col,
.toasts.linear .kb-col,
.wl.linear .kb-card,
html.walead-linear .wl .kb-card,
.toasts.linear .kb-card,
.wl.linear .part,
html.walead-linear .wl .part,
.toasts.linear .part { border-radius: var(--lin-r-card); box-shadow: none; background: var(--glass-fill) !important; }
.wl.linear .reply-item:hover,
html.walead-linear .wl .reply-item:hover,
.toasts.linear .reply-item:hover,
.wl.linear .feature-card:hover,
html.walead-linear .wl .feature-card:hover,
.toasts.linear .feature-card:hover,
.wl.linear .kb-card:hover,
html.walead-linear .wl .kb-card:hover,
.toasts.linear .kb-card:hover { background: var(--glass-fill-2) !important; border-color: var(--glass-hair) !important; }
.wl.linear .rc-text,
html.walead-linear .wl .rc-text,
.toasts.linear .rc-text { border-radius: var(--lin-r); background: var(--wl-surface) !important; border: 1px solid var(--glass-hair-soft); }
.wl.linear .rc-group-head,
html.walead-linear .wl .rc-group-head,
.toasts.linear .rc-group-head { border-radius: var(--lin-r); background: var(--glass-fill); }
.wl.linear .rc-send,
html.walead-linear .wl .rc-send,
.toasts.linear .rc-send { border-radius: var(--lin-r); }
.wl.linear .part-chip,
html.walead-linear .wl .part-chip,
.toasts.linear .part-chip,
.wl.linear .badge,
html.walead-linear .wl .badge,
.toasts.linear .badge { border-radius: 4px; }
.wl.linear .today-row,
html.walead-linear .wl .today-row,
.toasts.linear .today-row,
.wl.linear .today-clear,
html.walead-linear .wl .today-clear,
.toasts.linear .today-clear,
.wl.linear .plan-pop,
html.walead-linear .wl .plan-pop,
.toasts.linear .plan-pop { border-radius: var(--lin-r); }
.wl.linear .palette,
html.walead-linear .wl .palette,
.toasts.linear .palette { background: var(--glass) !important; border-radius: var(--lin-r-dialog); box-shadow: var(--glass-drop); }
.wl.linear .palette-item,
html.walead-linear .wl .palette-item,
.toasts.linear .palette-item { border-radius: var(--lin-r); }
.wl.linear .choice-card,
html.walead-linear .wl .choice-card,
.toasts.linear .choice-card,
.wl.linear .camp-card,
html.walead-linear .wl .camp-card,
.toasts.linear .camp-card { border-radius: var(--lin-r-card); box-shadow: none; }
.wl.linear .tour,
html.walead-linear .wl .tour,
.toasts.linear .tour,
.wl.linear .tour.intro,
html.walead-linear .wl .tour.intro,
.toasts.linear .tour.intro { border-radius: var(--lin-r-dialog); box-shadow: var(--glass-drop); }
.wl.linear .tour-ring,
html.walead-linear .wl .tour-ring,
.toasts.linear .tour-ring { border-radius: 8px; }
/* Central de Agendamentos: its own container had no fill (it relied on the glass blur), so Linear gives it a solid one */
.wl.linear .cal,
html.walead-linear .wl .cal,
.toasts.linear .cal { background: var(--glass) !important; border: 1px solid var(--glass-hair) !important; border-radius: var(--lin-r-dialog); box-shadow: var(--glass-drop); -webkit-backdrop-filter: none; backdrop-filter: none; }
.wl.linear .cal-day,
html.walead-linear .wl .cal-day,
.toasts.linear .cal-day,
.wl.linear .cal-month,
html.walead-linear .wl .cal-month,
.toasts.linear .cal-month,
.wl.linear .cal-event,
html.walead-linear .wl .cal-event,
.toasts.linear .cal-event,
.wl.linear .cal-event-ico,
html.walead-linear .wl .cal-event-ico,
.toasts.linear .cal-event-ico { border-radius: var(--lin-r); }

.wl, .toasts { --wl-brand-1: #10C5AE; --wl-brand-2: #1D90F5; --wl-brand-navy: #082640; --wl-brand-grad: linear-gradient(90deg, var(--wl-brand-1, #10C5AE), var(--ios-blue, var(--wl-blue, #1D90F5))); }

/* ---------- dialogs ---------- */
.modal { position: relative; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
.modal.sm { width: min(440px, calc(100vw - 32px)); }
.modal.md { width: min(540px, calc(100vw - 32px)); }
.modal.lg, .modal.wide { width: min(760px, calc(100vw - 32px)); }
.modal.xl { width: min(960px, calc(100vw - 32px)); }
.modal::before, .tool-modal::before, .settings::before, .notice-window::before, .login-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--wl-brand-grad); pointer-events: none; z-index: 2; }
.modal-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 20px 22px 12px; }
.modal-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.modal-sub { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--wl-muted); }
.modal-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--wl-brand-2);
  background: color-mix(in srgb, var(--wl-brand-2) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wl-brand-2) 24%, transparent); }
.modal-x { align-self: flex-start; margin: -4px -6px 0 0; }
.modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 22px 18px; gap: 14px; }
.modal-foot { flex: 0 0 auto; padding: 14px 22px; border-top: 1px solid var(--wl-border); background: color-mix(in srgb, var(--wl-surface-2) 55%, transparent); }
.modal .field { font-size: 12.5px; }
.modal .input { min-height: 38px; }

/* sections inside a dialog: a titled group with a hairline frame */
.dlg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.dlg-section { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--wl-border); border-radius: 12px; background: var(--wl-surface-2); min-width: 0; }
.dlg-section > h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 650; }
.dlg-section > h3 svg { color: var(--wl-brand-2); }
.dlg-section > p { margin: -4px 0 0; font-size: 12px; line-height: 1.5; color: var(--wl-muted); }
.dlg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--wl-border); border-radius: 12px; background: var(--wl-surface-2); }
.dlg-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dlg-row small { color: var(--wl-muted); font-size: 12px; }
.dlg-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: var(--wl-muted); background: var(--wl-surface-3); }
.dlg-status.on { color: var(--wl-ok); background: color-mix(in srgb, var(--wl-ok) 14%, transparent); }
.dlg-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dlg-stage { display: grid; grid-template-columns: minmax(0, 1fr) 168px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--wl-border); font-size: 12.5px; }
.dlg-stage:first-of-type { border-top: 0; }
.dlg-stage > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; font-weight: 600; }
.dlg-stage .swatch { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dlg-stage .input { min-height: 34px; padding: 6px 10px; }
.dlg-log { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--wl-surface-3); font-size: 11.5px; color: var(--wl-muted); list-style: none; }
@media (max-width: 720px) { .dlg-grid { grid-template-columns: 1fr; } }

/* ---------- tool modals ---------- */
.tool-modal { position: relative; overflow: hidden; max-height: calc(100vh - 48px); width: min(720px, calc(100vw - 32px)); }
.tool-modal.sm { width: min(520px, calc(100vw - 32px)); }
.tool-modal.lg { width: min(920px, calc(100vw - 32px)); }
.tool-head { padding: 16px 20px !important; gap: 12px !important; }
.tool-head h2 { font-size: 17px !important; font-weight: 650; letter-spacing: -.01em; }
.tool-body { padding: 18px 20px 20px !important; }

/* ---------- Configurações ---------- */
.settings { position: relative; overflow: hidden; width: min(1120px, calc(100vw - 40px)) !important; height: min(780px, calc(100vh - 40px)) !important; }
.settings-head { padding: 14px 18px !important; gap: 10px; min-height: 56px; box-sizing: border-box; }
.settings-head strong { font-size: 16px !important; font-weight: 650; }
.settings-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--wl-brand-1) 10%, var(--wl-surface-2)); box-shadow: inset 0 0 0 1px var(--wl-border); }
.settings-sep { color: var(--wl-faint); margin: 0 2px; }
.settings-body { grid-template-columns: 248px 1fr !important; }
.settings-nav { gap: 3px !important; padding: 14px 12px !important; }
.settings-nav button { position: relative; gap: 12px !important; padding: 10px 12px !important; font-size: 13.5px; font-weight: 550 !important; line-height: 1.3; }
.settings-nav-ico { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--wl-surface-2); color: var(--wl-muted); transition: background .15s, color .15s; }
.settings-nav button[aria-current="true"] .settings-nav-ico { color: var(--wl-brand-2); background: color-mix(in srgb, var(--wl-brand-2) 14%, transparent); }
.settings-nav button[aria-current="true"] { color: var(--wl-text) !important; }
.settings-nav button[aria-current="true"]::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--wl-brand-grad); }
.settings-nav-label { min-width: 0; text-align: left; }
.settings-nav-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 12px 4px; font-size: 11.5px; color: var(--wl-faint); }
.settings-content { padding: 22px 26px 26px !important; gap: 16px !important; }
.settings-title { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--wl-border); }
.settings-title-ico { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--wl-brand-2);
  background: color-mix(in srgb, var(--wl-brand-2) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wl-brand-2) 24%, transparent); }
.settings-title-ico svg { width: 20px; height: 20px; }
.settings-title h3 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.settings-title p { margin: 3px 0 0; font-size: 12.5px; color: var(--wl-muted); }
.settings-content .set-row { padding: 14px 16px; }
@media (max-width: 860px) { .settings-body { grid-template-columns: 64px 1fr !important; } .settings-nav-label, .settings-nav-foot span { display: none; } .settings-nav button { justify-content: center; } }

/* ---------- avisos (pop-up, cartão, faixa) ---------- */
.notice-window { width: min(520px, calc(100vw - 32px)) !important; }
.notice-window .notice-body { padding: 26px 26px 22px; gap: 12px; }
.notice-window .notice-title { font-size: 18px; letter-spacing: -.01em; line-height: 1.3; padding-right: 28px; }
.notice-window .notice-text { font-size: 13.5px; line-height: 1.6; }
.notice-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wl-muted); }
.notice-kicker.urgent { color: var(--wl-warn); }
.notice-wm { position: absolute; right: -18px; bottom: -14px; opacity: .07; pointer-events: none; }
.notice-body .notice-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.notice-window .notice-btns .btn, .notice-window .notice-body > .btn { height: 36px; padding: 0 16px; font-size: 13px; }
.notice-card { box-shadow: inset 3px 0 0 var(--wl-brand-2), var(--glass-drop) !important; }
.notice-card .notice-title { font-size: 14px; }
.notice-banner { box-shadow: inset 3px 0 0 var(--wl-brand-2); }
.notice-banner.urgent { box-shadow: inset 3px 0 0 var(--wl-warn); }

/* ---------- notificações rápidas (toasts) ---------- */
.toast { position: relative; overflow: hidden; gap: 12px !important; min-width: 280px; padding: 12px 16px 12px 14px !important; font-size: 13px; line-height: 1.4; }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--wl-brand-2); }
.toast.ok::before { background: var(--wl-brand-1); }
.toast.error::before { background: var(--wl-err); }
.toast-ico { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--wl-brand-2); background: color-mix(in srgb, var(--wl-brand-2) 15%, transparent); }
.toast.ok .toast-ico { color: var(--wl-brand-1); background: color-mix(in srgb, var(--wl-brand-1) 16%, transparent); }
.toast.error .toast-ico { color: var(--wl-err); background: color-mix(in srgb, var(--wl-err) 15%, transparent); }
.toast .toast-ico svg { color: inherit !important; }
.toast-text { flex: 1; min-width: 0; }

/* ---------- Linear: same signature, flat surfaces ---------- */
.wl.linear .modal-foot,
html.walead-linear .wl .modal-foot,
.toasts.linear .modal-foot { background: var(--glass-fill) !important; }
.wl.linear .dlg-section,
html.walead-linear .wl .dlg-section,
.toasts.linear .dlg-section,
.wl.linear .dlg-row,
html.walead-linear .wl .dlg-row,
.toasts.linear .dlg-row { background: var(--glass-fill) !important; border-color: var(--glass-hair-soft) !important; border-radius: var(--lin-r-card); }
.wl.linear .modal-icon,
html.walead-linear .wl .modal-icon,
.toasts.linear .modal-icon,
.wl.linear .settings-title-ico,
html.walead-linear .wl .settings-title-ico,
.toasts.linear .settings-title-ico { border-radius: var(--lin-r-card); }
.wl.linear .settings-nav-ico,
html.walead-linear .wl .settings-nav-ico,
.toasts.linear .settings-nav-ico { border-radius: var(--lin-r); background: var(--glass-fill); }
.wl.linear .settings-nav button[aria-current="true"] .settings-nav-ico,
html.walead-linear .wl .settings-nav button[aria-current="true"] .settings-nav-ico,
.toasts.linear .settings-nav button[aria-current="true"] .settings-nav-ico { background: color-mix(in srgb, var(--ios-blue) 14%, transparent); }
.wl.linear .settings-mark,
html.walead-linear .wl .settings-mark,
.toasts.linear .settings-mark { border-radius: var(--lin-r-card); background: var(--glass-fill); }
.wl.linear .toast,
html.walead-linear .wl .toast,
.toasts.linear .toast { border-radius: var(--lin-r-card) !important; }
.wl.linear .tb-board,
html.walead-linear .wl .tb-board,
.toasts.linear .tb-board { border-radius: var(--lin-r); background: var(--glass-fill) !important; border-color: var(--glass-hair) !important; }
.wl.linear .tb-board:hover,
html.walead-linear .wl .tb-board:hover,
.toasts.linear .tb-board:hover,
.wl.linear .tb-board[aria-expanded="true"],
html.walead-linear .wl .tb-board[aria-expanded="true"],
.toasts.linear .tb-board[aria-expanded="true"] { background: var(--glass-fill-2) !important; }
.wl.linear .rc,
html.walead-linear .wl .rc,
.toasts.linear .rc,
.wl.linear .re-card,
html.walead-linear .wl .re-card,
.toasts.linear .re-card,
.wl.linear .re-side,
html.walead-linear .wl .re-side,
.toasts.linear .re-side { border-radius: var(--lin-r-card) !important; background: var(--glass-fill) !important; border-color: var(--glass-hair-soft) !important; }
.wl.linear .rc:hover,
html.walead-linear .wl .rc:hover,
.toasts.linear .rc:hover { border-color: var(--glass-hair) !important; }
.wl.linear .re-quick-btn,
html.walead-linear .wl .re-quick-btn,
.toasts.linear .re-quick-btn,
.wl.linear .rp-target,
html.walead-linear .wl .rp-target,
.toasts.linear .rp-target,
.wl.linear .mp-frame,
html.walead-linear .wl .mp-frame,
.toasts.linear .mp-frame,
.wl.linear .mp-audio,
html.walead-linear .wl .mp-audio,
.toasts.linear .mp-audio,
.wl.linear .mp-doc,
html.walead-linear .wl .mp-doc,
.toasts.linear .mp-doc,
.wl.linear .re-drop,
html.walead-linear .wl .re-drop,
.toasts.linear .re-drop { border-radius: var(--lin-r-card); }
.wl.linear .re-quick-btn,
html.walead-linear .wl .re-quick-btn,
.toasts.linear .re-quick-btn { background: var(--wl-surface) !important; }
.wl.linear .rc .rc-text,
html.walead-linear .wl .rc .rc-text,
.toasts.linear .rc .rc-text { background: color-mix(in srgb, #1D90F5 9%, var(--wl-surface)) !important; border: 0 !important; }
.wl.linear .step,
html.walead-linear .wl .step,
.toasts.linear .step { background: var(--wl-surface) !important; border: 1px solid var(--glass-hair-soft) !important; }

.rp, .re { container-type: inline-size; }
.rp { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rp-top { display: flex; align-items: center; gap: 8px; }
.rp-search { flex: 1; min-width: 0; }
.rp-search .input { width: 100%; height: 38px; }
.rp-new { height: 38px; flex: 0 0 auto; }
.rp-target { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--wl-muted);
  background: color-mix(in srgb, var(--wl-brand-1) 7%, var(--wl-surface-2)); border: 1px solid color-mix(in srgb, var(--wl-brand-1) 22%, var(--wl-border)); }
.rp-target strong { color: var(--wl-text); }
.rp-avatar { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--wl-brand-grad); }
.rp-avatar.off { color: var(--wl-muted); background: var(--wl-surface-3); }
.rp-tip { margin-left: auto; font-size: 11.5px; color: var(--wl-faint); white-space: nowrap; }
.rp-tip kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; border: 1px solid var(--wl-border-2); background: var(--wl-surface); font: inherit; font-weight: 700; color: var(--wl-text); }
.rp-filters { gap: 6px; }
.rp .reply-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rp .rc-group-body { display: grid; grid-template-columns: 1fr; gap: 10px; }
@container (min-width: 620px) {
  .rp .reply-list:not(:has(.rc-group)), .rp .rc-group-body { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}
@container (max-width: 420px) { .rp-tip { display: none; } .rp-new { padding: 0 10px; } }

/* reply card */
.rc { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 10px !important; padding: 12px !important; border-radius: 12px !important; min-width: 0; }
.rc .rc-head { display: flex; align-items: flex-start; gap: 10px; }
.rc-ico { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--wl-brand-2); background: color-mix(in srgb, var(--wl-brand-2) 13%, transparent); }
.rc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rc .rc-title { font-size: 14px; font-weight: 650; }
.rc-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--wl-muted); }
.rc .rc-shortcut { padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, Consolas, monospace; font-size: 11px; font-weight: 600; color: var(--wl-brand-2); background: color-mix(in srgb, var(--wl-brand-2) 12%, transparent); }
.rc-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rc .rc-text { margin: 0; padding: 8px 10px; border-radius: 10px 10px 10px 3px; font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc-media { display: flex; gap: 6px; align-items: center; }
.rc-more { font-size: 12px; color: var(--wl-muted); font-weight: 600; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rc .rc-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 2px; }
.rc .rc-actions .btn { height: 34px; }

/* editor */
.re { gap: 14px !important; }
.re .editor-head { align-items: center; gap: 10px; }
.re-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.re-titles h3 { margin: 0; font-size: 16px; font-weight: 650; }
.re-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@container (min-width: 720px) { .re-grid { grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); } .re-side { position: sticky; top: 0; } }
.re-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.re-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--wl-border); background: var(--wl-surface-2); min-width: 0; }
.re-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.re-fields .re-cat { grid-column: 1 / -1; }
@container (max-width: 460px) { .re-fields { grid-template-columns: 1fr; } }
.re-sec-title { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.re-sec-title .muted { font-size: 11.5px; font-weight: 500; }
.re-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.re-quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 58px; padding: 6px; border: 1px solid var(--wl-border); border-radius: 10px;
  background: var(--wl-surface); color: var(--wl-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.re-quick-btn svg { color: var(--wl-brand-2); }
.re-quick-btn:hover { border-color: color-mix(in srgb, var(--wl-brand-2) 50%, var(--wl-border)); background: color-mix(in srgb, var(--wl-brand-2) 7%, var(--wl-surface)); }
.re-quick-btn.more { border-style: dashed; color: var(--wl-muted); }
.re-quick-btn.more[aria-expanded="true"] { color: var(--wl-text); border-style: solid; }
.re-busy { position: relative; overflow: hidden; margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 12px; color: var(--wl-muted); background: var(--wl-surface-3); }
.re-busy-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: var(--wl-brand-grad); animation: re-load 1.1s var(--ease-io, ease-in-out) infinite; }
@keyframes re-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.re-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; text-align: center; border: 1.5px dashed var(--wl-border-2); border-radius: 12px; }
.re-drop-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--wl-brand-2); background: color-mix(in srgb, var(--wl-brand-2) 12%, transparent); }
.actions-card.over .re-drop, .actions-card.over { border-color: var(--wl-brand-2) !important; }
.re-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--wl-border); background: var(--wl-surface-2); min-width: 0; }
.re-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.re-side .wa-preview { max-height: 460px; min-height: 180px; }
.re-vars { margin: 0; line-height: 1.8; }
.re-vars code { font-size: 11px; }
.re-foot { position: sticky; bottom: -20px; z-index: 2; margin: 0 -20px -20px; padding: 12px 20px !important; border-top: 1px solid var(--wl-border); background: var(--wl-bg, var(--glass)); }
.side-panel .re-foot { margin: 0; bottom: 0; }
/* inside the big tool window the window head already has the Tutorial button */
.tool-modal .re .editor-head .btn.tutorial { display: none; }

/* step cards (replies, mass send, automations) */
.step-head strong { font-size: 13px; }
.step-kind { display: grid; place-items: center; color: var(--wl-brand-2); }
.step .part-index { background: var(--wl-brand-grad) !important; color: #fff !important; }

/* media previews */
.mp { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mp-frame { position: relative; display: block; width: 100%; max-width: 360px; padding: 0; overflow: hidden; border: 1px solid var(--wl-border); border-radius: 10px; background: #0b0c0e; color: #fff; cursor: pointer; }
.mp.compact .mp-frame { max-width: 240px; }
.mp-frame img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.mp.compact .mp-frame img { max-height: 180px; }
.mp-video img { aspect-ratio: 16 / 9; object-fit: cover; }
.mp-video.playing { cursor: default; }
.mp-video video { display: block; width: 100%; max-height: 320px; background: #000; }
.mp-ph { display: grid; place-items: center; height: 150px; color: rgba(255,255,255,.55); background: linear-gradient(135deg, #10232f, #0b0c0e); }
.mp-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(8, 38, 64, .72); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 8px 24px rgba(0,0,0,.4); transition: transform .15s var(--wl-ease); }
.mp-play svg { margin-left: 3px; }
.mp-frame:hover .mp-play { transform: scale(1.06); background: rgba(29, 144, 245, .85); }
.mp-badge { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.62); }
.mp-zoom { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .15s; }
.mp-frame:hover .mp-zoom, .mp-frame:focus-visible .mp-zoom { opacity: 1; }
.mp-meta { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.mp-meta strong { font-weight: 600; }
.mp-meta small { color: var(--wl-muted); }
.media-bubble .mp-meta { display: none; }
.mp-audio { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--wl-border); background: var(--wl-surface-2); }
.mp-audio audio { height: 34px; flex: 1; min-width: 180px; max-width: 320px; }
.mp-audio-ico, .mp-doc-ico { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--wl-brand-grad); }
.mp-doc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--wl-border); background: var(--wl-surface-2); max-width: 360px; }
.mp-doc-ico { border-radius: 9px; }
.mp-mini { position: relative; flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; color: var(--wl-brand-2); background: var(--wl-surface-3); border: 1px solid var(--wl-border); }
.mp-mini img { width: 100%; height: 100%; object-fit: cover; }
.mp-mini-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.28); }
.mp-mini-tag { position: absolute; left: 2px; right: 2px; bottom: 2px; font-size: 9px; font-weight: 700; text-align: center; border-radius: 4px; color: #fff; background: var(--wl-brand-2); }
.media-pic { position: relative; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 9px; overflow: hidden; }
.media-pic img { width: 100%; height: 100%; object-fit: cover; }
.media-pic-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.3); }
.mp-lightbox { position: fixed; inset: 0; z-index: var(--z-popover, 2147483200); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; background: rgba(0,0,0,.82); animation: wl-fade .16s ease-out; }
.mp-lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.mp-lightbox-bar { display: flex; align-items: center; gap: 12px; max-width: 100%; color: #fff; font-size: 13px; }
.mp-lightbox-bar .icon-btn { color: #fff !important; }
.spin { animation: wl-spin 1s linear infinite; }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.reduce .spin, .reduce .re-busy-bar { animation: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* Buttons beside WhatsApp messages: "Traduzir" (chat/translate-messages.ts, off until switched on in Funcionalidades do Chat) and
   "Transcrever" on audios (chat/transcribe-audio.ts). Both are the same: icon only, hidden until the mouse is over the message
   (the message row, like WhatsApp's own reaction button), and the name shows when the mouse is over the icon. It sits beside the
   reaction button (message-rows.ts), and the small delay before hiding keeps it from blinking while the mouse crosses the gap. */
.walead-tr-btn { box-sizing: border-box; flex: 0 0 auto; width: 28px; height: 28px; margin: 0; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 50%; z-index: 2;
  cursor: pointer; color: #8696a0; background: rgba(134, 150, 160, .18); opacity: 0; transition: opacity .15s ease .4s, background .15s, color .15s; }
.walead-tr-btn svg { width: 17px; height: 17px; }
[data-id]:hover .walead-tr-btn, .walead-tr-btn:hover, .walead-tr-btn:focus-visible, .walead-tr-btn.busy { opacity: 1; transition-delay: 0s; }
.walead-tr-btn:hover, .walead-tr-btn:focus-visible { background: rgba(134, 150, 160, .32); color: #53bdeb; }
.walead-tr-btn.busy { cursor: progress; }
.walead-tr-btn.busy svg { animation: walead-tr-spin 1s linear infinite; }
.walead-tr-btn::after { content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: #1d90f5; color: #fff;
  font: 500 11px/1.2 system-ui, sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.walead-tr-btn:hover:not(.busy)::after, .walead-tr-btn:focus-visible:not(.busy)::after { opacity: 1; }
@keyframes walead-tr-spin { to { transform: rotate(360deg); } }
.walead-tr-out { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(134, 150, 160, .45); font-size: 13.5px; white-space: pre-wrap; opacity: .9; }
/* Transcription under an audio: a small card that never widens the bubble (width 0 + min-width 100% makes the text wrap
   inside the bubble's own width), with the same text colour and size rules as a normal message */
.walead-tr-out.audio { box-sizing: border-box; width: 0; min-width: 100%; margin: 4px 0 2px; padding: 6px 9px 7px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .16);
  font-size: 13px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; opacity: 1; user-select: text; }
.walead-tr-out.audio::before { content: 'Transcrição'; display: block; margin-bottom: 3px; font: 600 9.5px/1 system-ui, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: #8696a0; }
html.walead-on, html.walead-on body { background: var(--walead-wall, #0a0d14) !important; }

html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background-attachment: fixed !important; }
#root { min-height: 100vh; }
.wl { min-height: 100vh; color: var(--wl-text); }
.wl h1, .wl h2, .wl h3, .wl p { margin: 0; }
.muted { color: var(--wl-muted); }
.small { font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--wl-muted); }
.field .input { height: 40px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--wl-text); width: 100%; box-sizing: border-box; }
.btn { height: 38px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 600; color: var(--wl-text); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 12.5px; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; }
.error { color: #FF6961; font-size: 13px; }
.light .error { color: #D70015; }

/* ---------------- login ---------------- */
.p-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
.p-login-card { width: min(900px, 100%); display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border-radius: 34px;
  background: var(--sheen), var(--glass-strong) !important; border: 1px solid var(--glass-hair) !important;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-hi), var(--glass-drop); animation: wl-glass-in .6s cubic-bezier(.32, 1.4, .5, 1); }
.p-login-brand { position: relative; padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--ios-blue) 34%, transparent), transparent 60%),
              radial-gradient(90% 80% at 100% 100%, rgba(191, 90, 242, .22), transparent 60%); }
.p-logo { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; overflow: hidden;
  background: var(--sheen), var(--glass-fill-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 30px rgba(0,0,0,.25); }
.p-logo img { width: 72%; height: 72%; object-fit: contain; }
.p-login-brand h1 { font-size: 28px; letter-spacing: -.5px; line-height: 1.15; }
.p-login-brand .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ios-blue); }
.p-login-points { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.p-login-points span { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--wl-muted); }
.p-login-points svg { color: var(--ios-blue); flex: 0 0 auto; }
.p-login-form { padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.p-login-form h2 { font-size: 22px; }
.p-pass { position: relative; }
.p-pass .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--wl-muted); }
.p-login-form .btn.primary { height: 44px; font-size: 15px; }
.p-secure { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--wl-muted); }
.p-secure svg { color: #30D158; }
@media (max-width: 760px) { .p-login-card { grid-template-columns: 1fr; } .p-login-brand { padding: 30px 26px 10px; } .p-login-form { padding: 20px 26px 34px; } }

/* ---------------- shell ---------------- */
.p-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.p-side { position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; box-sizing: border-box;
  background: var(--sheen), var(--bar) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset -1px 0 0 var(--glass-hair-soft); }
.p-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; }
.p-side-brand .p-logo { width: 40px; height: 40px; border-radius: 13px; }
.p-side-brand strong { font-size: 15px; }
.p-side-brand small { display: block; font-size: 11px; color: var(--wl-muted); }
.p-group { margin-top: 10px; padding: 0 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wl-faint); }
.p-nav { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 13px; background: transparent; color: var(--wl-text);
  font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: background .2s, transform .4s cubic-bezier(.32, 1.4, .5, 1); }
.p-nav svg { color: var(--ios-blue); flex: 0 0 auto; }
.p-nav:hover { background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 70%), var(--glass-fill); }
.p-nav[aria-current="page"] { background: var(--sheen), var(--glass-fill-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px var(--glass-hair-soft); font-weight: 600; }
.p-nav .soon { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--wl-faint); }
.p-main { min-width: 0; display: flex; flex-direction: column; }
.p-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 14px 26px;
  background: var(--sheen), var(--bar) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 -1px 0 var(--glass-hair-soft); }
.p-top h1 { font-size: 20px; letter-spacing: -.3px; }
.p-top .p-desc { font-size: 12.5px; color: var(--wl-muted); }
.p-top .p-admin { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wl-muted); }
.p-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--ios-blue); background: var(--sheen), var(--glass-fill-2); box-shadow: 0 0 0 1px var(--glass-hair-soft); }
.p-content { padding: 22px 26px 40px; display: flex; flex-direction: column; gap: 18px; animation: wl-glass-pop .45s cubic-bezier(.32, 1.4, .5, 1); }
.p-menu-btn { display: none; }
@media (max-width: 900px) {
  .p-shell { grid-template-columns: 1fr; }
  .p-side { position: fixed; z-index: 20; left: 0; width: 260px; transform: translateX(-105%); transition: transform .35s cubic-bezier(.32, 1.4, .5, 1); }
  .p-side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  .p-menu-btn { display: inline-grid; }
  .p-top { padding: 12px 16px; }
  .p-content { padding: 16px; }
}
@media (max-width: 600px) {
  .p-top { gap: 8px; padding: 10px 12px; }
  .p-top .grow { min-width: 0; }
  .p-top h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .p-top .p-desc, .p-top .p-admin { display: none; }
  .p-search { min-width: 0; flex-basis: 100%; }
  .p-toolbar > .row { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
}

/* ---------------- cards, stats, tables ---------------- */
.p-card { padding: 18px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px;
  background: var(--sheen), var(--glass) !important; border: 1px solid var(--glass-hair) !important;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-hi), var(--glass-drop); }
.p-card h2 { font-size: 16px; }
.p-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.p-stat { position: relative; padding: 16px 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 4px;
  background: var(--sheen), var(--glass) !important; border: 1px solid var(--glass-hair) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-hi), var(--glass-drop);
  transition: transform .45s cubic-bezier(.32, 1.4, .5, 1); }
.p-stat:hover { transform: translateY(-3px); }
.p-stat strong { font-size: 28px; letter-spacing: -.5px; }
.p-stat span { font-size: 12.5px; color: var(--wl-muted); }
.p-stat .p-stat-ico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--ios-blue); background: var(--sheen), var(--glass-fill-2); }
.p-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-search { position: relative; flex: 1; min-width: 220px; }
.p-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--wl-muted); }
.p-search .input { width: 100%; height: 40px; padding-left: 36px; box-sizing: border-box; font: inherit; color: var(--wl-text); }
.p-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 13px; }
.p-radar-hero { display: flex; gap: 18px; align-items: flex-start; }
.p-radar-ico { flex: 0 0 auto; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #5bbcff, #1D90F5 50%, #14b8cf); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 26px rgba(29,144,245,.45); }
.p-radar-hero h2 { margin: 6px 0 8px; font-size: 22px; line-height: 1.2; }
.p-radar-state { margin: 12px 0 0; font-weight: 600; color: var(--wl-blue); }
.p-radar-steps { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.p-radar-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--wl-surface-2); border: 1px solid var(--wl-border); }
.p-radar-steps li > span { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--wl-blue) 18%, transparent); color: var(--wl-blue); }
.p-radar-steps p { margin: 2px 0 0; }
.p-radar-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 18px; }
.p-radar-list li { display: flex; align-items: center; gap: 8px; }
.p-radar-list svg { color: var(--wl-blue); flex: 0 0 auto; }
@media (max-width: 620px) { .p-radar-hero { flex-direction: column; } }
.p-locked { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 32px 20px; }
.p-locked h2 { margin: 0; }
.p-key { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--glass-fill); border: 1px dashed var(--glass-hair); }
.p-key code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.p-table .ellipsis { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.st-sent, .badge.st-delivered { color: #34C759; }
.badge.st-failed, .badge.st-dead { color: #FF453A; }
.p-stat strong.ok { color: #34C759; }
.p-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wl-faint); padding: 0 12px; }
.p-table td { padding: 11px 12px; background: var(--glass-fill); border-top: 1px solid var(--glass-hair-soft); border-bottom: 1px solid var(--glass-hair-soft); }
.p-table td:first-child { border-left: 1px solid var(--glass-hair-soft); border-radius: 14px 0 0 14px; }
.p-table td:last-child { border-right: 1px solid var(--glass-hair-soft); border-radius: 0 14px 14px 0; text-align: right; white-space: nowrap; }
.p-table tr:hover td { background: var(--glass-fill-2); }
.p-table .p-name strong { display: block; }
.p-table .p-name span { font-size: 12px; color: var(--wl-muted); }
.p-table-wrap { overflow-x: auto; }
.p-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.p-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-badge.ativa { color: #30D158; background: rgba(48, 209, 88, .14); }
.p-badge.teste { color: var(--ios-blue); background: color-mix(in srgb, var(--ios-blue) 16%, transparent); }
.p-badge.vencida { color: #FF9F0A; background: rgba(255, 159, 10, .14); }
.p-badge.bloqueada { color: #FF453A; background: rgba(255, 69, 58, .12); }
.p-badge.gratis { color: var(--wl-muted); background: var(--glass-fill, rgba(255, 255, 255, .07)); }
.p-scrim { display: none; }
@media (max-width: 860px) { .p-scrim { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(4, 8, 16, .5); } }
.p-stat strong { overflow-wrap: anywhere; }
/* Phones: each row of a long table becomes a card (the label comes from data-label). */
@media (max-width: 600px) {
  .p-cards-sm thead { display: none; }
  .p-cards-sm, .p-cards-sm tbody, .p-cards-sm tr, .p-cards-sm td { display: block; width: 100%; box-sizing: border-box; }
  .p-cards-sm tr { padding: 12px; margin-bottom: 10px; border: 1px solid var(--wl-border); border-radius: 14px; }
  .p-cards-sm td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .p-cards-sm td[data-label]::before { content: attr(data-label); color: var(--wl-muted); text-align: left; }
  .p-cards-sm td.p-name { display: block; text-align: left; }
  .p-cards-sm td:last-child { justify-content: flex-end; flex-wrap: wrap; }
}
.p-devices { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.p-devices li { padding: 10px 12px; border: 1px solid var(--wl-border); border-radius: 12px; gap: 12px; }
.p-pager { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--wl-border); }
/* Light theme: status colours with at least 4.5:1 contrast on white. */
.light .p-badge.ativa, .light .badge.st-sent, .light .badge.st-delivered, .light .p-stat strong.ok, .light .p-login-form p.ok { color: #1E7F3A; }
.light .p-badge.vencida, .light .p-meter span.warn-text { color: #9A5B00; }
.light .p-badge.bloqueada, .light .badge.st-failed, .light .badge.st-dead { color: #C4161C; }
.p-empty { padding: 30px; text-align: center; color: var(--wl-muted); }
.p-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .p-grid-2 { grid-template-columns: 1fr; } }

/* dialogs */
.p-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4, 8, 16, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: wl-glass-pop .2s ease; }
.reduce .p-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
.light .p-backdrop { background: rgba(30, 50, 90, .18); }
.p-dialog { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; border-radius: 28px; display: flex; flex-direction: column; gap: 14px;
  background: var(--sheen), var(--glass-strong) !important; border: 1px solid var(--glass-hair) !important;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-hi), var(--glass-drop); animation: wl-glass-in .45s cubic-bezier(.32, 1.4, .5, 1); }
.p-dialog h2 { font-size: 18px; }
.p-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* toasts */
.wl.p-toast-layer { min-height: 0; }
.p-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.p-toast { padding: 11px 16px; border-radius: 16px; font-size: 13px; background: var(--sheen), var(--glass-strong); border: 1px solid var(--glass-hair);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-drop); animation: wl-glass-pop .4s cubic-bezier(.32, 1.4, .5, 1); }
.p-toast.error { color: #FF6961; }

/* appearance preview */
.p-ap { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .p-ap { grid-template-columns: 1fr; } }
.ap-wall span { padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .38); color: #fff; }
.p-preview { position: relative; height: 260px; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: 44px 1fr;
  box-shadow: 0 0 0 1px var(--glass-hair-soft), var(--glass-drop); }
.p-preview .pv-rail { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0;
  background: var(--sheen), var(--bar); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset -1px 0 0 var(--glass-hair-soft); }
.p-preview .pv-rail span { width: 32px; height: 28px; border-radius: 10px; display: grid; place-items: center; color: var(--ios-blue); }
.p-preview .pv-rail span.on { background: var(--glass-fill-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.p-preview .pv-top { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--sheen), var(--bar); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 -1px 0 var(--glass-hair-soft); color: var(--ios-blue); font-size: 12px; }
.p-preview .pv-top em { font-style: normal; color: var(--wl-text); padding: 3px 10px; border-radius: 99px; background: var(--glass-fill); }
.p-preview .pv-wa { background: #111b21; position: relative; }
.light .p-preview .pv-wa { background: #efeae2; }
.p-preview .pv-pop { position: absolute; left: 16px; top: 18px; width: 180px; padding: 12px; border-radius: 18px; font-size: 12px;
  background: var(--sheen), var(--glass); border: 1px solid var(--glass-hair); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-drop); color: var(--wl-text); }
.p-preview .pv-pop .btn { margin-top: 8px; height: 28px; font-size: 11.5px; }
.p-preview .pv-bubble { position: absolute; right: 16px; bottom: 18px; padding: 6px 10px; border-radius: 10px; background: #005c4b; color: #e9edef; font-size: 12px; }
.light .p-preview .pv-bubble { background: #d9fdd3; color: #111b21; }

/* ---------------- forms of the P2/P3 sections ---------------- */
.row.wrap { flex-wrap: wrap; }
.field small { font-size: 11.5px; font-weight: 400; }
.field.bad .input { border-color: #FF6961 !important; }
.field textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; font: inherit; }
.field select.input { padding: 0 10px; }
.p-toggle-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.p-toggle-row > span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.p-toggle-row small { font-size: 12px; }
.p-team-access .p-portal { flex-wrap: wrap; }
.p-team-access .p-portal .grow { min-width: 0; overflow-wrap: anywhere; flex-basis: 180px; }
.p-team-access .p-toggle-row > span { min-width: 0; overflow-wrap: anywhere; }
.p-team-access .p-savebar { flex-wrap: wrap; margin-top: 14px; }
.p-team-page,.p-team-fields{display:flex;flex-direction:column;gap:20px;min-width:0}
.p-team-page{max-width:1080px}.p-team-page h2,.p-team-page p{margin:0}
.p-team-fields{border:0;padding:0;margin:0}
.p-team-page .p-card>.btn,.p-team-page .p-card>a.btn{align-self:flex-start}
.p-team-inline{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.p-team-inline .field{flex:1 1 220px;max-width:420px;margin:0}
.p-team-inline>.btn{flex:0 0 auto;margin-bottom:1px}
.p-team-sector{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--wl-border)}
.p-team-sector>span{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}
.p-team-editor{display:flex;flex-direction:column;gap:12px;padding-top:8px}
.p-team-page .p-card>.row.between{flex-wrap:wrap;gap:12px}

.p-actions .p-toggle-row { display: inline-flex; padding: 0; background: none; border: 0; vertical-align: middle; margin-right: 6px; }
.p-savebar { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px;
  background: var(--sheen), var(--glass-strong); border: 1px solid var(--glass-hair); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-hi), var(--glass-drop); }
.p-savebar.on { border-color: color-mix(in srgb, var(--ios-blue) 55%, transparent); }
.p-savebar .error { margin: 0; }
.p-color { display: inline-flex; align-items: center; gap: 10px; }
.p-color input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--glass-hair); border-radius: 10px; background: none; cursor: pointer; }
.p-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.p-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.p-asset { display: flex; gap: 14px; padding: 12px; border-radius: 18px; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.p-asset-img { flex: 0 0 96px; height: 72px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: repeating-conic-gradient(rgba(127,127,127,.18) 0 25%, transparent 0 50%) 0 0 / 14px 14px; }
.p-asset-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.p-asset-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.p-asset-body .field { gap: 4px; }
.p-link-field { display: flex; align-items: flex-end; gap: 6px; }
.p-link-field .field { flex: 1; min-width: 0; }
.p-link-field .icon-btn { margin-bottom: 4px; }
.p-subhead { font-weight: 700; font-size: 13px; margin-top: 4px; }
.p-btn-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; }
.p-btn-row .input { min-width: 0; width: 100%; box-sizing: border-box; }
.p-dialog { overflow-x: hidden; }
@media (max-width: 700px) { .p-btn-row { grid-template-columns: 1fr; } }
.p-bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.p-bundle { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.p-bundle .row.between { align-items: flex-end; }
.p-models { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 2px; border-top: 1px solid var(--glass-hair-soft); }
.p-models .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-bundle .field { flex: 1; }
.p-behavior { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-hair-soft); }
.p-behavior:last-child { border-bottom: 0; }
.p-pre { white-space: pre-wrap; font-size: 12px; line-height: 1.5; max-height: 260px; overflow: auto; padding: 12px; border-radius: 14px; background: var(--glass-fill); margin: 0; }
.p-copy { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--glass-fill); }
.p-copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; }
.p-usage { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.p-usage-row { display: grid; grid-template-columns: minmax(130px, 220px) 1fr 64px; gap: 12px; align-items: center; font-size: 13px; }
.p-usage-row strong { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .p-usage-row { grid-template-columns: 1fr 56px; } .p-usage-row .p-meter { grid-column: 1 / -1; order: 3; } }
.p-meter { height: 12px; border-radius: 99px; background: var(--glass-fill-2); overflow: hidden; }
.p-meter span { display: block; height: 100%; border-radius: inherit; background: var(--ios-blue); transition: width .6s cubic-bezier(.32, 1.4, .5, 1); }
.p-meter span.warn { background: #FF9F0A; }
.p-portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.p-portal { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; color: inherit; text-decoration: none; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); transition: transform .35s cubic-bezier(.32, 1.4, .5, 1), background .2s; }
.p-portal:hover { transform: translateY(-2px); background: var(--glass-fill-2); }
.p-portal .grow { display: flex; flex-direction: column; gap: 3px; }
.p-portal .p-badge { align-self: flex-start; }
.p-portal svg { color: var(--ios-blue); }
.p-ext { display: flex; align-items: center; gap: 14px; }
.p-ext-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--ios-blue); background: var(--sheen), var(--glass-fill-2); }

/* ---------------- client portal ---------------- */
button.p-portal { font: inherit; text-align: left; cursor: pointer; width: 100%; }
a.p-nav { text-decoration: none; }
.p-alert { border-color: color-mix(in srgb, var(--ios-blue) 45%, transparent) !important; }
.p-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.p-plan { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.p-plan .p-price { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.p-plan .p-price small { font-size: 12px; font-weight: 500; color: var(--wl-muted); }
.p-plan .btn { margin-top: auto; }
/* notification preview (ADM → Notificações) */
.p-notice-wrap { display: flex; flex-direction: column; gap: 6px; }
.p-notice { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; max-width: 420px; font-size: 13px;
  background: var(--sheen), var(--glass-pop, var(--glass-strong)); border: 1px solid var(--glass-hair); box-shadow: var(--glass-drop); }
.p-notice p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.p-notice img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; }
.p-notice-media { display: grid; place-items: center; height: 110px; border-radius: 10px; background: var(--glass-fill-2); color: var(--wl-muted); }
.p-notice-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.p-notice-btns span { padding: 7px 14px; border-radius: 99px; font-weight: 650; background: var(--ios-blue); color: var(--wl-on-accent, #fff); }
.p-notice.custom { border-left: 0; border-right: 0; border-bottom: 0; }
.p-notice small { opacity: .7; }
.p-notice-page { display: flex; flex-direction: column; gap: 4px; }
.p-doc { width: min(760px, 100%); display: flex; flex-direction: column; gap: 16px; }
.p-doc-head { display: flex; align-items: center; gap: 14px; }
.p-doc-head h1 { font-size: 26px; letter-spacing: -.4px; }
.p-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.p-login-form p.ok { color: #34C759; font-size: 13.5px; line-height: 1.5; margin: 0; }
.p-login-form h2 svg { vertical-align: -3px; color: #30D158; }
.p-login-form .btn { justify-content: center; text-decoration: none; }
/* Meta Suite */
.p-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.p-tabs .chip[aria-pressed="true"] { background: color-mix(in srgb, var(--ios-blue) 22%, transparent); border-color: var(--ios-blue); color: var(--wl-text); }
.meta-hero h2 { font-size: 22px; margin: 4px 0; }
.p-checklist { padding: 12px 14px; border-radius: 14px; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.p-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.p-list > li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.p-list > li.col { flex-direction: column; align-items: stretch; gap: 6px; }
.p-list .grow { flex: 1; min-width: 0; }
.p-subcard { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; padding: 14px; border-radius: 16px; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.p-pre { white-space: pre-wrap; color: var(--wl-muted); line-height: 1.45; }
.p-copy { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--glass-fill); border: 1px solid var(--glass-hair-soft); }
.p-copy code { grid-column: 1; overflow-wrap: anywhere; font-size: 12.5px; }
.p-copy .icon-btn { grid-column: 2; grid-row: 1 / span 2; }
.meta-step-img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 14px; border: 1px solid var(--glass-hair-soft); background: var(--glass-fill); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.check-row input { margin-top: 3px; accent-color: var(--ios-blue); }
.err-text { color: var(--wl-err, #ff453a); }
.alert-yellow { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #ffb340 16%, transparent); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.alert-red { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #ff453a 14%, transparent); font-size: 13px; }
.p-card details summary { cursor: pointer; margin: 10px 0 4px; }
/* API documentation page */
.p-doc.p-doc-wide { width: min(980px, 100%); }
.p-doc-head .btn { margin-left: auto; }
.p-toc { position: sticky; top: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 16px; background: var(--glass-pop); border: 1px solid var(--glass-hair-soft); backdrop-filter: var(--glass-blur); }
.p-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--wl-text); text-decoration: none; }
.p-toc a:hover { background: var(--glass-fill-2); color: var(--ios-blue); }
.p-doc .p-card { scroll-margin-top: 70px; }
.p-doc h3 { margin: 18px 0 6px; font-size: 14.5px; }
.p-doc code { padding: 1px 6px; border-radius: 6px; font-size: 12.5px; background: var(--glass-fill-2); }
.p-doc .p-table td:last-child { text-align: left; white-space: normal; }
.p-doc .p-table td:first-child { white-space: nowrap; }
.p-code { position: relative; margin: 8px 0; border-radius: 14px; background: color-mix(in srgb, var(--wl-bg) 78%, transparent); border: 1px solid var(--glass-hair-soft); }
.p-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.55; }
.p-code code { padding: 0; background: none; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.p-code-label { position: absolute; top: 8px; left: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wl-faint); }
.p-code-label + .p-code-copy + pre { padding-top: 30px; }
.p-code-copy { position: absolute; top: 6px; right: 6px; }
.p-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ios-blue) 12%, transparent); font-size: 13px; }
.p-tip svg { flex: 0 0 auto; margin-top: 2px; color: var(--ios-blue); }

.wl.linear .p-login-card,
html.walead-linear .wl .p-login-card,
.toasts.linear .p-login-card { border-radius: 12px; background: var(--glass-strong) !important; box-shadow: var(--glass-drop) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: wl-glass-pop .2s ease; }
.wl.linear .p-login-brand,
html.walead-linear .wl .p-login-brand,
.toasts.linear .p-login-brand { background: var(--glass-fill) !important; box-shadow: inset -1px 0 0 var(--glass-hair-soft); }
.wl.linear .p-logo,
html.walead-linear .wl .p-logo,
.toasts.linear .p-logo { border-radius: 10px; box-shadow: none; background: var(--glass-fill-2); }
.wl.linear .p-side-brand .p-logo,
html.walead-linear .wl .p-side-brand .p-logo,
.toasts.linear .p-side-brand .p-logo { border-radius: 8px; }
.wl.linear .p-side,
html.walead-linear .wl .p-side,
.toasts.linear .p-side,
.wl.linear .p-top,
html.walead-linear .wl .p-top,
.toasts.linear .p-top { background: var(--bar) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wl.linear .p-side,
html.walead-linear .wl .p-side,
.toasts.linear .p-side { box-shadow: inset -1px 0 0 var(--glass-hair-soft) !important; }
.wl.linear .p-top,
html.walead-linear .wl .p-top,
.toasts.linear .p-top { box-shadow: inset 0 -1px 0 var(--glass-hair-soft) !important; }
.wl.linear .p-nav,
html.walead-linear .wl .p-nav,
.toasts.linear .p-nav { border-radius: 6px; font-weight: 500; transition: background .12s; }
.wl.linear .p-nav svg,
html.walead-linear .wl .p-nav svg,
.toasts.linear .p-nav svg { color: var(--lin-icon); }
.wl.linear .p-nav:hover,
html.walead-linear .wl .p-nav:hover,
.toasts.linear .p-nav:hover { background: var(--glass-fill-2); }
.wl.linear .p-nav[aria-current="page"],
html.walead-linear .wl .p-nav[aria-current="page"],
.toasts.linear .p-nav[aria-current="page"] { background: var(--glass-fill-2); box-shadow: inset 2px 0 0 var(--ios-blue); font-weight: 600; }
.wl.linear .p-nav[aria-current="page"] svg,
html.walead-linear .wl .p-nav[aria-current="page"] svg,
.toasts.linear .p-nav[aria-current="page"] svg { color: var(--ios-blue); }
.wl.linear .p-avatar,
html.walead-linear .wl .p-avatar,
.toasts.linear .p-avatar { background: var(--glass-fill-2); box-shadow: none; color: var(--wl-text); }
.wl.linear .p-content,
html.walead-linear .wl .p-content,
.toasts.linear .p-content { animation: none; }
.wl.linear .p-card,
html.walead-linear .wl .p-card,
.toasts.linear .p-card,
.wl.linear .p-stat,
html.walead-linear .wl .p-stat,
.toasts.linear .p-stat { border-radius: 8px; background: var(--glass) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wl.linear .p-stat,
html.walead-linear .wl .p-stat,
.toasts.linear .p-stat { transition: border-color .12s; }
.wl.linear .p-stat:hover,
html.walead-linear .wl .p-stat:hover,
.toasts.linear .p-stat:hover { transform: none; border-color: var(--glass-hair) !important; }
.wl.linear .p-stat .p-stat-ico,
html.walead-linear .wl .p-stat .p-stat-ico,
.toasts.linear .p-stat .p-stat-ico { border-radius: 6px; background: var(--glass-fill-2); color: var(--lin-icon); }
.wl.linear .p-table td:first-child,
html.walead-linear .wl .p-table td:first-child,
.toasts.linear .p-table td:first-child { border-radius: 6px 0 0 6px; }
.wl.linear .p-table td:last-child,
html.walead-linear .wl .p-table td:last-child,
.toasts.linear .p-table td:last-child { border-radius: 0 6px 6px 0; }
.wl.linear .p-badge,
html.walead-linear .wl .p-badge,
.toasts.linear .p-badge { border-radius: 6px; }
.wl.linear .p-dialog,
html.walead-linear .wl .p-dialog,
.toasts.linear .p-dialog { border-radius: 12px; background: var(--glass-strong) !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: var(--glass-drop) !important; animation: wl-glass-pop .18s ease; }
.wl.linear .p-backdrop,
html.walead-linear .wl .p-backdrop,
.toasts.linear .p-backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: none; backdrop-filter: none; }
.wl.linear .p-toast,
html.walead-linear .wl .p-toast,
.toasts.linear .p-toast { border-radius: 8px; background: var(--glass-pop); -webkit-backdrop-filter: none; backdrop-filter: none; animation: wl-glass-pop .18s ease; }
.wl.linear .p-savebar,
html.walead-linear .wl .p-savebar,
.toasts.linear .p-savebar { border-radius: 8px; background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--glass-drop); }
.wl.linear .p-preview,
html.walead-linear .wl .p-preview,
.toasts.linear .p-preview { border-radius: 8px; box-shadow: 0 0 0 1px var(--glass-hair-soft); }
.wl.linear .p-preview .pv-rail,
html.walead-linear .wl .p-preview .pv-rail,
.toasts.linear .p-preview .pv-rail,
.wl.linear .p-preview .pv-top,
html.walead-linear .wl .p-preview .pv-top,
.toasts.linear .p-preview .pv-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bar); }
.wl.linear .p-preview .pv-rail span,
html.walead-linear .wl .p-preview .pv-rail span,
.toasts.linear .p-preview .pv-rail span { border-radius: 6px; color: var(--lin-icon); }
.wl.linear .p-preview .pv-rail span.on,
html.walead-linear .wl .p-preview .pv-rail span.on,
.toasts.linear .p-preview .pv-rail span.on { background: var(--glass-fill-2); box-shadow: none; color: var(--ios-blue); }
.wl.linear .p-preview .pv-top em,
html.walead-linear .wl .p-preview .pv-top em,
.toasts.linear .p-preview .pv-top em { border-radius: 4px; }
.wl.linear .p-preview .pv-pop,
html.walead-linear .wl .p-preview .pv-pop,
.toasts.linear .p-preview .pv-pop { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass); border-radius: 8px; box-shadow: var(--glass-drop); }
.wl.linear .p-preview .pv-bubble,
html.walead-linear .wl .p-preview .pv-bubble,
.toasts.linear .p-preview .pv-bubble { border-radius: 8px; }
.wl.linear .p-toggle-row,
html.walead-linear .wl .p-toggle-row,
.toasts.linear .p-toggle-row,
.wl.linear .p-asset,
html.walead-linear .wl .p-asset,
.toasts.linear .p-asset,
.wl.linear .p-bundle,
html.walead-linear .wl .p-bundle,
.toasts.linear .p-bundle,
.wl.linear .p-portal,
html.walead-linear .wl .p-portal,
.toasts.linear .p-portal,
.wl.linear .p-plan,
html.walead-linear .wl .p-plan,
.toasts.linear .p-plan,
.wl.linear .p-subcard,
html.walead-linear .wl .p-subcard,
.toasts.linear .p-subcard,
.wl.linear .p-list > li,
html.walead-linear .wl .p-list > li,
.toasts.linear .p-list > li,
.wl.linear .p-checklist,
html.walead-linear .wl .p-checklist,
.toasts.linear .p-checklist,
.wl.linear .p-devices li,
html.walead-linear .wl .p-devices li,
.toasts.linear .p-devices li,
.wl.linear .p-key,
html.walead-linear .wl .p-key,
.toasts.linear .p-key,
.wl.linear .p-copy,
html.walead-linear .wl .p-copy,
.toasts.linear .p-copy,
.wl.linear .p-pre,
html.walead-linear .wl .p-pre,
.toasts.linear .p-pre,
.wl.linear .p-radar-steps li,
html.walead-linear .wl .p-radar-steps li,
.toasts.linear .p-radar-steps li,
.wl.linear .p-code,
html.walead-linear .wl .p-code,
.toasts.linear .p-code,
.wl.linear .p-tip,
html.walead-linear .wl .p-tip,
.toasts.linear .p-tip,
.wl.linear .p-toc,
html.walead-linear .wl .p-toc,
.toasts.linear .p-toc,
.wl.linear .p-notice,
html.walead-linear .wl .p-notice,
.toasts.linear .p-notice,
.wl.linear .p-ext-icon,
html.walead-linear .wl .p-ext-icon,
.toasts.linear .p-ext-icon,
.wl.linear .p-asset-img,
html.walead-linear .wl .p-asset-img,
.toasts.linear .p-asset-img,
.wl.linear .meta-step-img,
html.walead-linear .wl .meta-step-img,
.toasts.linear .meta-step-img,
.wl.linear .alert-yellow,
html.walead-linear .wl .alert-yellow,
.toasts.linear .alert-yellow,
.wl.linear .alert-red,
html.walead-linear .wl .alert-red,
.toasts.linear .alert-red,
.wl.linear .p-cards-sm tr,
html.walead-linear .wl .p-cards-sm tr,
.toasts.linear .p-cards-sm tr { border-radius: 8px; }
.wl.linear .p-toc,
html.walead-linear .wl .p-toc,
.toasts.linear .p-toc { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass); }
.wl.linear .p-toc a,
html.walead-linear .wl .p-toc a,
.toasts.linear .p-toc a,
.wl.linear .p-notice-btns span,
html.walead-linear .wl .p-notice-btns span,
.toasts.linear .p-notice-btns span,
.wl.linear .p-notice img,
html.walead-linear .wl .p-notice img,
.toasts.linear .p-notice img,
.wl.linear .p-notice-media,
html.walead-linear .wl .p-notice-media,
.toasts.linear .p-notice-media { border-radius: 6px; }
.wl.linear .p-portal,
html.walead-linear .wl .p-portal,
.toasts.linear .p-portal { transition: background .12s; }
.wl.linear .p-portal:hover,
html.walead-linear .wl .p-portal:hover,
.toasts.linear .p-portal:hover { transform: none; }
.wl.linear .p-portal svg,
html.walead-linear .wl .p-portal svg,
.toasts.linear .p-portal svg { color: var(--lin-icon); }
.wl.linear .p-ext-icon,
html.walead-linear .wl .p-ext-icon,
.toasts.linear .p-ext-icon { background: var(--glass-fill-2); color: var(--lin-icon); }
.wl.linear .p-radar-ico,
html.walead-linear .wl .p-radar-ico,
.toasts.linear .p-radar-ico { border-radius: 10px; background: color-mix(in srgb, var(--ios-blue) 16%, transparent); color: var(--ios-blue); box-shadow: none; }
.wl.linear .p-radar-steps li > span,
html.walead-linear .wl .p-radar-steps li > span,
.toasts.linear .p-radar-steps li > span { border-radius: 6px; }
.wl.linear .p-meter,
html.walead-linear .wl .p-meter,
.toasts.linear .p-meter,
.wl.linear .p-meter span,
html.walead-linear .wl .p-meter span,
.toasts.linear .p-meter span { border-radius: 4px; }
.wl.linear .p-notice,
html.walead-linear .wl .p-notice,
.toasts.linear .p-notice { box-shadow: var(--glass-drop); }
.wl.linear .p-color input[type=color],
html.walead-linear .wl .p-color input[type=color],
.toasts.linear .p-color input[type=color],
.wl.linear .p-dot,
html.walead-linear .wl .p-dot,
.toasts.linear .p-dot { border-radius: 6px; }
.wl.linear .p-dot,
html.walead-linear .wl .p-dot,
.toasts.linear .p-dot { border-radius: 50%; }

.p-top { padding: 10px 22px; }
.p-top h1 { font-size: 17px; }
.p-top .p-desc { font-size: 12px; }
.p-content { padding: 16px 22px 32px; gap: 12px; }
.p-card { padding: 14px 16px; gap: 10px; }
.p-card h2 { font-size: 14.5px; }
.p-nav { padding: 7px 10px; font-size: 13px; }
.field { gap: 4px; font-size: 12px; }
.field .input { height: 34px; font-size: 13.5px; }
.field textarea.input { height: auto; padding-top: 8px; padding-bottom: 8px; }
.field small { font-weight: 400; font-size: 11.5px; }
.btn { height: 34px; padding: 0 14px; }
.btn.sm { height: 28px; padding: 0 10px; }
.icon-btn { width: 30px; height: 30px; }
.p-search .input { height: 34px; }
.p-grid-2, .p-form-grid { gap: 10px; }
.p-stats { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.p-stat { padding: 12px 14px; }
.p-stat strong { font-size: 22px; }
.p-stat .p-stat-ico { top: 10px; right: 10px; width: 28px; height: 28px; }
.p-table { border-spacing: 0 3px; }
.p-table td { padding: 7px 10px; }
.p-table th { padding: 0 10px; }
.p-toggle-row { padding-top: 8px; padding-bottom: 8px; }
.p-savebar { padding: 8px 12px; bottom: 10px; }
.p-empty { padding: 22px; }
.p-dialog { padding: 18px; gap: 12px; }
.p-pager { margin-top: 8px; padding-top: 8px; }

/* Planos — Grátis e Pago */
.pk { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pk-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pk-plan { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-hair); }
.pk-plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--glass-hair); }
.pk-plan.paid::before { background: linear-gradient(90deg, #10C5AE, var(--ios-blue, #1D90F5)); }
.pk-plan strong { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.pk-plan small { display: block; color: var(--wl-muted); font-size: 12px; }
.pk-plan-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--glass-fill-2); color: var(--lin-icon, var(--wl-muted)); }
.pk-plan.paid .pk-plan-ico { color: #fff; background: linear-gradient(135deg, #10C5AE, var(--ios-blue, #1D90F5)); }
.pk-meter { width: 90px; height: 6px; border-radius: 4px; background: var(--glass-fill-2); overflow: hidden; }
.pk-meter span { display: block; height: 100%; background: var(--wl-muted); border-radius: 4px; }
.pk-plan.paid .pk-meter span { background: linear-gradient(90deg, #10C5AE, var(--ios-blue, #1D90F5)); }
.pk-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pk-group { border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-hair); overflow: hidden; }
.pk-group header, .pk-row { display: grid; grid-template-columns: 1fr 58px 58px; align-items: center; gap: 0 4px; padding: 0 12px; }
.pk-group header { height: 38px; grid-template-columns: auto 1fr 58px 58px; gap: 8px; background: var(--glass-fill); border-bottom: 1px solid var(--glass-hair-soft); }
.pk-group h2 { font-size: 13px; margin: 0; }
.pk-g-ico { display: grid; color: var(--ios-blue, #1D90F5); }
.pk-group header .pk-col { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wl-faint); }
.pk-col { text-align: center; display: grid; place-items: center; }
.pk-row { min-height: 36px; padding-top: 5px; padding-bottom: 5px; border-top: 1px solid var(--glass-hair-soft); font-size: 13px; transition: background .12s; }
.pk-group header + .pk-row { border-top: 0; }
.pk-row:hover { background: var(--glass-fill); }
.pk-row.off .pk-name > span { color: var(--wl-faint); text-decoration: line-through; }
.pk-row input[type=checkbox] { width: 17px; height: 17px; margin: 0; cursor: pointer; accent-color: var(--ios-blue, #1D90F5); }
.pk-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pk-lims { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pk-lim { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--wl-muted); cursor: help; }
.pk-lim .input { width: 44px; height: 24px; padding: 0 6px; box-sizing: border-box; text-align: center; font: inherit; font-size: 12px; font-weight: 600; color: var(--wl-text); border-radius: 6px; }
.pk-lim .input:disabled { opacity: .45; }
.pk-more { border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-hair); padding: 0 14px; }
.pk-more summary { display: flex; align-items: center; gap: 8px; height: 40px; cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; }
.pk-more summary::-webkit-details-marker { display: none; }
.pk-more summary::after { content: "▾"; margin-left: auto; color: var(--wl-faint); transition: transform .15s; }
.pk-more[open] summary::after { transform: rotate(180deg); }
.pk-more summary svg { color: var(--ios-blue, #1D90F5); }
.pk-lims.wide { padding: 4px 0 14px; gap: 8px 18px; }
.pk-lims.wide .pk-lim .input { width: 56px; height: 28px; }
.pk-note { margin: 0; }
@media (max-width: 1100px) { .pk-groups { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .pk-plans { grid-template-columns: 1fr; } .pk-meter { display: none; } }

/* Clientes e licenças */
.cl-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-hair); }
.cl-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #10C5AE, var(--ios-blue, #1D90F5)); }
.cl-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 200px; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--ios-blue, #1D90F5) 16%, transparent), transparent); }
.cl-hero > * { position: relative; z-index: 1; }
.cl-hero h2 { font-size: 16px; }
.cl-hero p { margin-top: 2px; }
.cl-hero-w { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--ios-blue, #1D90F5) 12%, var(--glass-fill-2)); }
.cl-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cl-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 9px 12px 9px 14px; border-radius: 8px; border: 1px solid var(--glass-hair); background: var(--glass); color: var(--wl-text); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.cl-stat::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--wl-faint); }
.cl-stat.todas::before { background: linear-gradient(#10C5AE, var(--ios-blue, #1D90F5)); }
.cl-stat.pago::before { background: #30D158; }
.cl-stat.vencida::before { background: #FF9F0A; }
.cl-stat.bloqueada::before { background: #FF453A; }
.cl-stat strong { font-size: 20px; line-height: 1.2; letter-spacing: -.3px; }
.cl-stat span { font-size: 12px; color: var(--wl-muted); }
.cl-stat:hover { background: var(--glass-fill-2); }
.cl-stat[aria-pressed="true"] { border-color: var(--ios-blue, #1D90F5); background: color-mix(in srgb, var(--ios-blue, #1D90F5) 8%, var(--glass)); }
.cl-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cl-who > div { min-width: 0; }
.p-table .cl-who span:not(.cl-av) { display: block; font-size: 12px; color: var(--wl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.cl-av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--wl-text); background: var(--glass-fill-2); box-shadow: 0 0 0 1px var(--glass-hair-soft); }
.cl-av.pago { color: #fff; background: linear-gradient(135deg, #10C5AE, var(--ios-blue, #1D90F5)); box-shadow: none; }
.cl-av.vencida { color: #FF9F0A; }
.cl-av.bloqueada { color: #FF453A; }
.cl-exp { display: flex; flex-direction: column; line-height: 1.25; }
.cl-exp small { font-size: 11.5px; color: var(--wl-muted); }
.cl-exp small.warn { color: #FF9F0A; }
.light .cl-exp small.warn, .light .cl-av.vencida { color: #9A5B00; }
.light .cl-av.bloqueada { color: #C4161C; }
.cl-acts .icon-btn { width: 28px; height: 28px; border-radius: 6px; color: var(--lin-icon, var(--wl-muted)); }
.cl-acts .icon-btn:hover { background: var(--glass-fill-2); color: var(--ios-blue, #1D90F5); }
.cl-list .p-toolbar { flex-wrap: nowrap; }
.cl-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cl-empty svg { opacity: .7; }
@media (max-width: 900px) { .cl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cl-hero { flex-wrap: wrap; }
  .cl-hero .btn { width: 100%; }
  .cl-stats { display: flex; overflow-x: auto; }
  .cl-stat { flex: 0 0 auto; min-width: 92px; }
  .p-table .cl-who span:not(.cl-av) { max-width: 220px; }
}
