@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #121019;
  --bg-raised: #17141f;
  --surface: #1b1825;
  --surface-2: #221e2e;
  --surface-3: #2c2739;
  --line: rgba(222, 210, 255, .10);
  --line-2: rgba(222, 210, 255, .16);
  --line-3: rgba(222, 210, 255, .26);

  --text: #f3f0fa;
  --text-2: #d2cbe2;
  --muted: #aaa3be;
  --faint: #958eaa; 

  
  --accent: #c3abf7;
  --accent-2: #a07ef0;
  --accent-soft: rgba(160, 126, 240, .15);
  --accent-line: rgba(178, 132, 255, .38);
  --violet-1: #b57bff;
  --violet-2: #8b3dff;
  --violet-3: #6425e8;
  --grad-primary: linear-gradient(135deg, #9a5cf5 0%, #7e44e6 55%, #6533cc 100%);
  --grad-text: linear-gradient(100deg, #f3e8ff 0%, #c9a4ff 45%, #9a5cff 100%);
  --glow: 0 10px 34px -12px rgba(139, 61, 255, .65);
  --glow-soft: 0 0 0 1px rgba(178, 132, 255, .22), 0 18px 48px -24px rgba(139, 61, 255, .55);

  
  --glass: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018) 60%);
  --glass-strong: rgba(27, 24, 37, .78);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .06);
  --surface-glass: rgba(29, 26, 40, .72);

  --ok: #56d99b;
  --ok-soft: rgba(86, 217, 155, .12);
  --warn: #f1c065;
  --warn-soft: rgba(241, 192, 101, .12);
  --danger: #f28383;
  --danger-soft: rgba(242, 131, 131, .12);
  --info: #8fb8ff;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --section-gap: clamp(56px, 9vw, 104px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: .16s;
  --normal: .26s;

  --z-borboleta: 55; 
  --z-assistant: 60;
  --z-header: 50;
  --z-overlay: 80;
  --z-drawer: 90;
  --z-modal: 100;
  --z-auth: 110;
  --z-toast: 130;
  --z-maintenance: 200;

  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f5f8;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1eff5;
  --surface-3: #e7e4ee;
  --line: rgba(45, 38, 66, .10);
  --line-2: rgba(45, 38, 66, .16);
  --line-3: rgba(45, 38, 66, .26);

  --text: #1d1a27;
  --text-2: #474357;
  --muted: #625d73;
  --faint: #6c6780; 

  --accent: #6a45c9;
  --accent-2: #5b3ab3;
  --accent-soft: rgba(106, 69, 201, .09);
  --accent-line: rgba(106, 69, 201, .30);
  --violet-1: #8058d8;
  --violet-2: #6a45c9;
  --violet-3: #4f3399;
  --grad-text: linear-gradient(100deg, #553aa6 0%, #6a45c9 45%, #8a63e0 100%);
  --glow: 0 10px 28px -16px rgba(90, 60, 170, .38);
  --glow-soft: 0 0 0 1px rgba(106, 69, 201, .16), 0 16px 40px -26px rgba(90, 60, 170, .26);

  --glass: linear-gradient(160deg, rgba(30, 25, 50, .03), rgba(30, 25, 50, .01) 60%);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .7);
  --surface-glass: rgba(255, 255, 255, .7);

  --ok: #1f8f5c;
  --ok-soft: rgba(31, 143, 92, .12);
  --warn: #a8710f;
  --warn-soft: rgba(168, 113, 15, .12);
  --danger: #cf3f3f;
  --danger-soft: rgba(207, 63, 63, .12);
  --info: #2f66d6;

  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg: #f6f5f8; --bg-raised: #ffffff; --surface: #ffffff; --surface-2: #f1eff5; --surface-3: #e7e4ee;
    --line: rgba(45, 38, 66, .10); --line-2: rgba(45, 38, 66, .16); --line-3: rgba(45, 38, 66, .26);
    --text: #1d1a27; --text-2: #474357; --muted: #625d73; --faint: #6c6780;
    --accent: #6a45c9; --accent-2: #5b3ab3; --accent-soft: rgba(106, 69, 201, .09); --accent-line: rgba(106, 69, 201, .30);
    --violet-1: #8058d8; --violet-2: #6a45c9; --violet-3: #4f3399;
    --grad-text: linear-gradient(100deg, #553aa6 0%, #6a45c9 45%, #8a63e0 100%);
    --glow: 0 10px 28px -16px rgba(90, 60, 170, .38);
    --glow-soft: 0 0 0 1px rgba(106, 69, 201, .16), 0 16px 40px -26px rgba(90, 60, 170, .26);
    --glass: linear-gradient(160deg, rgba(30, 25, 50, .03), rgba(30, 25, 50, .01) 60%);
    --glass-strong: rgba(255, 255, 255, .78); --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .7); --surface-glass: rgba(255, 255, 255, .7);
    --ok: #1f8f5c; --ok-soft: rgba(31, 143, 92, .12); --warn: #a8710f; --warn-soft: rgba(168, 113, 15, .12);
    --danger: #cf3f3f; --danger-soft: rgba(207, 63, 63, .12); --info: #2f66d6;
    color-scheme: light;
  }
}
html { transition: background-color var(--normal) var(--ease); }
body, .site-footer, .panel, .section-heading { transition: background-color var(--normal) var(--ease), border-color var(--normal) var(--ease), color var(--normal) var(--ease); }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: transparent; color: var(--text); transition: background var(--fast) var(--ease); }
.theme-toggle:hover { background: rgba(255, 255, 255, .05); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="dark"]):not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 12% -8%, rgba(139, 61, 255, .22), transparent 62%),
    radial-gradient(50vmax 40vmax at 100% 38%, rgba(98, 37, 232, .14), transparent 60%),
    radial-gradient(40vmax 30vmax at 30% 110%, rgba(181, 123, 255, .10), transparent 60%);
}
.home-hero-copy h1 em { background: var(--grad-text);   -webkit-background-clip: text;   background-clip: text;   color: transparent; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--text); color: #120c22; font-weight: 600; transition: top var(--fast) var(--ease); }
.skip-link:focus { top: 12px; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
p a, .text-link { color: var(--accent); text-underline-offset: 3px; }
p a:hover, .text-link:hover { text-decoration: underline; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 650; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.03em; line-height: 1.06; }
h1 { font-size: clamp(2.05rem, 1.25rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.05rem); }
h3 { font-size: 1.06rem; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
strong, b { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: #140f22; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px rgba(168, 113, 255, .18); }
[hidden] { display: none !important; }
.hidden { display: none !important; }
body.login-open, body.profile-open { overflow: hidden; }
main { flex: 1;   width: 100%;   max-width: calc(var(--container) + var(--gutter) * 2);   margin: 0 auto;   padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(72px, 10vw, 120px); }
.section { margin-top: var(--section-gap); }
.section-sm { margin-top: clamp(36px, 6vw, 64px); }
.eyebrow { display: inline-flex;   align-items: center;   gap: 8px;   color: var(--muted);   font-size: 12px;   font-weight: 550;   letter-spacing: .14em;   text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad-primary); box-shadow: 0 0 10px rgba(157, 77, 255, .7); }
.eyebrow { color: var(--accent); }
.lead { color: var(--text-2); font-size: clamp(1rem, .95rem + .3vw, 1.12rem); line-height: 1.65; max-width: 60ch; }
.muted { color: var(--muted); }
.page-head { display: grid; gap: 14px; max-width: 760px; }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.page-head-row .page-head { flex: 1 1 420px; }
.section-heading { display: flex;   flex-wrap: wrap;   align-items: flex-end;   justify-content: space-between;   gap: 12px 24px;   margin-bottom: 22px; }
.section-heading > div { display: grid; gap: 10px; min-width: 0; }
.section-heading > span { color: var(--muted); font-size: 14px; max-width: 42ch; }
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 7, 19, .72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(178, 132, 255, .06), 0 10px 30px -20px rgba(0, 0, 0, .8);
}
.topbar-inner { display: flex;   align-items: center;   gap: 16px;   height: var(--header-h);   max-width: calc(var(--container) + var(--gutter) * 2);   margin: 0 auto;   padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad-primary);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: var(--glow);
  transition: transform var(--normal) var(--ease), box-shadow var(--normal) var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); box-shadow: 0 10px 34px -8px rgba(139, 61, 255, .8); }
.brand-mark svg { width: 15px; height: 15px; }
.brand-name { font-size: 13px; font-weight: 650; letter-spacing: .3em; color: var(--text); padding-left: .3em; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; min-width: 0; }
.site-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.site-nav a.active, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a.active::after, .site-nav a[aria-current="page"]::after { content: "";   position: absolute;   left: 12px;   right: 12px;   bottom: 2px;   height: 2px;   border-radius: 2px;   background: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@keyframes pulseOk {
  0%, 100% { box-shadow: 0 0 0 3px var(--ok-soft), 0 0 10px rgba(86, 217, 155, .6); } 50% { box-shadow: 0 0 0 5px rgba(86, 217, 155, .08), 0 0 16px rgba(86, 217, 155, .9); }
}
.sora-login-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.sora-login-trigger:hover { background: rgba(255, 255, 255, .05); border-color: var(--line-3); }
.sora-login-trigger .login-avatar {
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.sora-login-trigger.logged .login-avatar { display: grid; }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 44px var(--gutter) 28px;
}
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 560;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.btn:hover { background: rgba(178, 132, 255, .08); border-color: var(--accent-line); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn span { transition: transform var(--fast) var(--ease); }
.btn:hover span { transform: translateX(2px); }
.btn-primary { background: var(--grad-primary);   border-color: rgba(255, 255, 255, .16);   color: #fff;   box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover { background: var(--grad-primary); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); box-shadow: 0 14px 40px -12px rgba(139, 61, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .28); filter: brightness(1.08); }
.btn-ghost { border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); border-color: transparent; }
.btn-danger { border-color: rgba(242, 131, 131, .35); color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-google { background: #fff; border-color: #fff; color: #1f1f1f; font-weight: 600; }
.btn-google:hover { background: #f3f0fa; border-color: #f3f0fa; transform: translateY(-1px); }
.btn-google svg { flex: none; }
.btn-google.is-soon, .btn-google.is-soon:hover { opacity: .55; cursor: not-allowed; transform: none; background: #fff; border-color: #fff; }
.btn-google .soon-badge { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #ece8f5; color: #5b5470; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--faint); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.turnstile-box { margin: 4px 0 12px; min-height: 65px; }
.turnstile-box:empty { margin: 0; min-height: 0; }
.turnstile-box iframe { max-width: 100%; }
.legal { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.legal h2 { margin: 40px 0 12px; font-size: 20px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { margin: 22px 0 8px; font-size: 16px; color: var(--text-2); }
.legal p { margin: 0 0 14px; color: var(--text-2); }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; color: var(--text-2); }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal .legal-updated { color: var(--faint); font-size: 13px; margin-bottom: 30px; }
.legal .legal-callout { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 18px 0 28px; font-size: 14.5px; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn-block { width: 100%; }
.auth-link { border: 0;   background: none;   padding: 6px 2px;   color: var(--text-2);   font-size: 14px;   text-decoration: underline;   text-decoration-color: var(--line-3);   text-underline-offset: 4px; }
.auth-link:hover { color: var(--text); text-decoration-color: var(--accent); }
.btn:disabled, .is-loading { opacity: .6; pointer-events: none; }
.is-loading::after { content: "";   width: 14px;   height: 14px;   margin-left: 2px;   border-radius: 50%;   border: 2px solid currentColor;   border-right-color: transparent;   animation: spin .7s linear infinite; }
@keyframes spin {
  to { transform: rotate(360deg); }
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
form label { display: grid; gap: 7px; color: var(--text-2); font-size: 14px; font-weight: 500; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"])), :where(select), :where(textarea) {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px; 
  font-weight: 400;
  line-height: 1.4;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
:where(textarea) { min-height: 112px; resize: vertical; }
:where(select) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23bdb9c8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
select option { background: var(--surface-2); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); background: var(--surface-3); box-shadow: 0 0 0 4px rgba(163, 113, 255, .2), 0 0 24px -6px rgba(139, 61, 255, .45); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-3);
  background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge);
  color: var(--text-2);
  font-size: 14px;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.field-optional { color: var(--faint); font-size: 12.5px; font-weight: 400; }
.field-hint { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.password-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.auth-result, .form-result {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.auth-result:not(:empty), .form-result:not(:empty) { display: block; }
.auth-result.ok, .form-result.ok { border-color: rgba(86, 217, 155, .3); background: var(--ok-soft); color: #bff0d6; }
.auth-result.error, .form-result.error { border-color: rgba(242, 131, 131, .3); background: var(--danger-soft); color: #ffd0d0; }
.auth-result.info, .form-result.info { border-color: var(--accent-line); background: var(--accent-soft); color: #e2d9ff; }
.aviso {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(241, 192, 101, .3);
  background: var(--warn-soft);
  color: #f7e2b8;
  font-size: 14.5px;
}
.inline-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge);
  color: var(--text-2);
  font-size: 14.5px;
}
.inline-alert strong { display: block; color: var(--text); margin-bottom: 2px; }
.inline-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: clamp(28px, 6vw, 48px) 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-2);
  color: var(--muted);
  text-align: center;
  font-size: 14.5px;
}
.empty-state strong { color: var(--text); font-size: 15.5px; font-weight: 600; }
.empty-state .btn { margin-top: 10px; }
.empty-state-icon { display: grid;   place-items: center;   width: 42px;   height: 42px;   margin-bottom: 6px;   border-radius: 12px;   background: var(--surface-2);   color: var(--muted); }
.empty-state-icon svg { width: 20px; height: 20px; }
td.empty { padding: 26px 12px; color: var(--muted); text-align: center; }
.panel { padding: clamp(18px, 3vw, 28px);   border-radius: var(--radius-lg);   border: 1px solid var(--line);   background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.panel + .panel { margin-top: 16px; }
.panel > h2:first-child, .panel-title { font-size: 1.2rem; margin-bottom: 16px; font-family: var(--font-body); letter-spacing: -.01em; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card, .kpi {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge);
}
.card .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.card .value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.card .value.small { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--bg-raised); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.chip-static {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
}
.home-hero { display: grid;   grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);   align-items: center;   gap: clamp(24px, 5vw, 64px);   min-height: min(620px, calc(100vh - var(--header-h) - 40px)); }
.home-hero-copy { display: grid; gap: 22px; }
.home-hero-copy h1 { max-width: 14ch; }
.home-hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.home-hero-art { position: relative; display: grid; place-items: end center; align-self: stretch; min-height: 360px; }
.home-hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 6% 0;
  border-radius: 32px 32px 0 0;
  background: radial-gradient(80% 60% at 50% 20%, rgba(157, 77, 255, .35), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 85%);
  border: 1px solid var(--line-2);
  border-bottom: 0;
  box-shadow: var(--glass-edge), 0 -20px 80px -40px rgba(139, 61, 255, .6);
}
.home-hero-art img { position: relative; width: min(100%, 420px); max-height: 560px; object-fit: contain; object-position: bottom; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero);   font-family: var(--font-display);   font-size: 13px;   font-weight: 600;   color: var(--accent);   letter-spacing: .04em; }
.steps li strong { font-size: 15.5px; }
.steps li p { color: var(--muted); font-size: 14px; }
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge);
}
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 140%; background: radial-gradient(closest-side, rgba(139, 61, 255, .35), transparent); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--text-2); margin-top: 10px; max-width: 56ch; }
.kpi, .card, .plan-card, .steps li, .contact-card, .admin-kpi { transition: border-color var(--normal) var(--ease), transform var(--normal) var(--ease), box-shadow var(--normal) var(--ease); }
.kpi:hover, .card:hover, .plan-card:hover, .steps li:hover, .admin-kpi:hover { border-color: var(--accent-line); box-shadow: var(--glass-edge), var(--glow-soft); }
.admin-kpi b { background: linear-gradient(180deg, #fff, #d9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.plan-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.plan-card h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; }
.plan-card p { color: var(--text-2); font-size: 14.5px; }
.plan-card .btn { margin-top: auto; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.pending { color: var(--warn); background: var(--warn-soft); }
.status-badge.approved, .status-badge.fixed { color: var(--ok); background: var(--ok-soft); }
.status-badge.rejected, .status-badge.hidden, .status-badge.suspended, .status-badge.open { color: var(--danger); background: var(--danger-soft); }
#groupForm { display: grid; gap: 16px; }
.sora-login-overlay, .sora-profile-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(6, 5, 9, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--normal) var(--ease), visibility var(--normal);
}
.sora-login-overlay, .sora-profile-overlay { z-index: calc(var(--z-auth) - 1); }
.sora-login-overlay.is-open, .sora-profile-overlay.is-open { opacity: 1; visibility: visible; }
.sora-login-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  background: var(--glass), var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px -40px rgba(139, 61, 255, .4);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility .32s;
  overscroll-behavior: contain;
}
.sora-login-drawer { z-index: var(--z-auth); width: min(440px, 100%); }
.sora-login-drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); padding: 0 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; -webkit-overflow-scrolling: touch; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: var(--radius-pill); background: var(--surface-2); }
.login-tab { min-height: 40px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: 14px; font-weight: 560; }
.login-tab.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.auth-panel { display: grid; gap: 16px; animation: fadeIn var(--normal) var(--ease); }
.auth-panel form { display: grid; gap: 16px; }
.login-intro { display: grid; gap: 6px; }
.login-intro h3 { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.02em; font-weight: 620; }
.login-intro p { color: var(--muted); font-size: 14.5px; }
.auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.auth-code-area { display: grid; gap: 16px; }
.back-login { justify-self: start; }
.sora-profile-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: var(--z-auth);
  display: grid;
  gap: 18px;
  width: min(560px, calc(100% - 32px));
  max-height: min(88vh, 860px);
  max-height: min(88dvh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 4vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--glass), var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--glass-edge), 0 30px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(139, 61, 255, .45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -48%);
  transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease), visibility var(--normal);
}
.sora-profile-modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.profile-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.profile-head h2 { font-size: 1.5rem; }
.profile-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.profile-card-main { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); min-width: 0; }
.profile-card-main > div:last-child { display: grid; gap: 2px; min-width: 0; }
.profile-card-main strong, .profile-card-main span { overflow: hidden; text-overflow: ellipsis; }
.profile-card-main span { color: var(--muted); font-size: 14px; }
.profile-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 20px; font-weight: 650; }
.profile-status { color: var(--ok) !important; font-size: 13px !important; }
.profile-status.pending { color: var(--warn) !important; }
.profile-section-title { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.profile-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge);
  text-align: left;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.profile-action:hover { border-color: var(--line-2); background: var(--surface-2); }
.profile-action strong { display: block; font-size: 14.5px; }
.profile-action small { display: block; color: var(--muted); font-size: 13px; }
.profile-action b { color: var(--faint); font-weight: 400; font-size: 18px; }
.profile-password-form { display: grid; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.profile-form-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.profile-logout { justify-self: start; }
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature-list > * { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.feature-list > * + * { padding-left: 24px; border-left: 1px solid var(--line); }
.feature-list h3 { margin-bottom: 8px; }
.feature-list p { color: var(--muted); font-size: 14.5px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.contact-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); color: var(--text); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-card small { display: block; color: var(--muted); font-size: 13px; }
.contact-card strong { display: block; overflow-wrap: anywhere; }
.contact-card .go { color: var(--faint); }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 560; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--text-2); font-size: 14.5px; white-space: pre-line; max-width: 72ch; }
.settings-list { display: grid; }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.setting-row:first-child { padding-top: 0; }
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row strong { display: block; }
.setting-row p { color: var(--muted); font-size: 14px; }
.switch { position: relative; display: inline-block; width: 52px; height: 32px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: var(--radius-pill); background: var(--surface-3); border: 1px solid var(--line-2); transition: background var(--fast) var(--ease); }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-2); transition: transform var(--fast) var(--ease), background var(--fast) var(--ease); }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); background: #150f25; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.divulgacao-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; margin: 4px 0 20px; border-radius: var(--radius-lg, 18px); border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(196, 166, 255, .14), rgba(196, 166, 255, .04)); }
.divulgacao-card.is-on { border-color: rgba(196, 166, 255, .4); }
.divulgacao-card-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--accent); flex-shrink: 0; }
.divulgacao-card-icon svg { width: 20px; height: 20px; }
.divulgacao-card-copy strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.divulgacao-card-copy p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.switch-lg { width: 60px; height: 36px; }
.switch-lg span::after { width: 26px; height: 26px; }
.switch-lg input:checked + span::after { transform: translateX(24px); }
.updated-at { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.skeleton { position: relative; overflow: hidden; border-radius: 6px; background: var(--surface-2); color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); animation: shimmer 1.4s infinite; }
.value.skeleton { width: 70%; min-height: 1.9rem; }
@keyframes shimmer {
  to { transform: translateX(100%); }
}
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: start; }
.admin-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 2px; padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.admin-side button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
}
.admin-side button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.admin-side button.active { background: var(--accent-soft); color: var(--accent); font-weight: 560; }
.admin-side .count { min-width: 22px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--warn-soft); color: var(--warn); font-size: 12px; font-weight: 650; text-align: center; }
.admin-group { margin: 12px 12px 4px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.admin-group:first-child { margin-top: 2px; }
.admin-main { min-width: 0; display: grid; gap: 16px; }
.admin-view { display: none; }
.admin-view.active { display: grid; gap: 16px; animation: fadeIn var(--normal) var(--ease); }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.admin-kpi { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.admin-kpi b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.admin-kpi span { color: var(--muted); font-size: 13px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.admin-toolbar input { flex: 1 1 220px; width: auto; }
.admin-toolbar select { flex: 0 1 200px; width: auto; }
.admin-form { display: grid; gap: 16px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-form-grid .wide { grid-column: 1 / -1; }
.admin-card-list { display: grid; gap: 10px; }
.admin-item { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.admin-item p { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.admin-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.admin-item-head > div { min-width: 0; flex: 1 1 240px; }
.admin-item-head h3 { font-size: 15px; overflow-wrap: anywhere; }
.admin-muted { color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-actions select, .admin-actions input:not([type="checkbox"]) { width: auto; flex: 1 1 180px; }
.admin-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.admin-danger { color: var(--danger) !important; border-color: rgba(242, 131, 131, .35) !important; }
.admin-empty { padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); text-align: center; font-size: 14px; }
.admin-table { width: 100%; }
.maintenance-admin-preview { margin-top: 16px; }
.maintenance-admin-preview .sorasaki-maintenance-card { margin: 0 auto; }
.toast-region { position: fixed; left: 50%; bottom: 20px; z-index: var(--z-toast); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(30, 24, 48, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8), 0 0 30px -14px rgba(139, 61, 255, .5);
  
  pointer-events: none;
  animation: rise var(--normal) var(--ease);
}
.toast::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.toast.ok::before { background: var(--ok); }
.toast.error::before { background: var(--danger); }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: all var(--normal) var(--ease); }
.sorasaki-maintenance { position: fixed; inset: 0; z-index: var(--z-maintenance); display: grid; place-items: center; padding: 20px; overflow-y: auto; background: var(--bg); }
.maintenance-active body > *:not(.sorasaki-maintenance) { visibility: hidden; }
.sorasaki-maintenance-card { display: grid; gap: 14px; justify-items: center; width: min(560px, 100%); padding: clamp(20px, 4vw, 32px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); text-align: center; }
.sorasaki-maintenance-visual { width: 100%; overflow: hidden; border-radius: var(--radius); }
.sorasaki-maintenance-visual img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.sorasaki-maintenance-card h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); }
.sorasaki-maintenance-card p { color: var(--text-2); white-space: pre-line; }
.sorasaki-maintenance-return { color: var(--text); font-size: 14px; font-weight: 550; }
.sorasaki-maintenance-thanks { color: var(--muted); font-size: 14px; }
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: .35; } 50% { opacity: 1; }
}
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  html { scroll-padding-top: 116px; }
  .topbar-inner { flex-wrap: wrap; height: auto; row-gap: 0; }
  .topbar-inner > .brand, .topbar-actions { min-height: var(--header-h); }
  .site-nav { order: 3; flex: 1 0 100%; justify-content: center; gap: 4px; margin: 0; height: 40px; border-top: 1px solid var(--line); overflow-x: auto; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; gap: 12px; }
  .home-hero-art { order: -1; min-height: 0; max-height: 300px; overflow: hidden; }
  .home-hero-art::before { inset: 20% 12% 0; }
  .home-hero-art img { width: min(64vw, 280px); }
  .admin-two { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list > * + * { padding-left: 0; border-left: 0; }
  .feature-list > * { padding-right: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: sticky; top: var(--header-h); z-index: 15; display: flex; gap: 4px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter); border-radius: 0; border-width: 0 0 1px; background: rgba(12, 11, 16, .94); scrollbar-width: none; }
  .admin-side::-webkit-scrollbar { display: none; }
  .admin-side button { width: auto; flex-shrink: 0; white-space: nowrap; border-radius: var(--radius-pill); border: 1px solid var(--line); }
  .admin-group { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand-name { font-size: 12px; letter-spacing: .26em; }
  .steps { grid-template-columns: 1fr; }
  .admin-form-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card, .kpi { padding: 14px; }
  .card .label { font-size: 12.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-band .btn { width: 100%; }
  .sora-profile-modal {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    transform: translateY(24px);
  }
  .sora-profile-modal.is-open { transform: none; }
  .toast-region { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 36px; }
  .contact-card { padding: 16px; gap: 12px; }
}
@media (max-width: 380px) {
  .brand-name { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@keyframes sheetUp {
  from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; }
}
@media (hover: none) {
  .contact-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@keyframes sbAsa {
  from { transform: scaleX(1); } to { transform: scaleX(.18); }
}
@keyframes sbAsaPousada {
  0%, 55% { transform: scaleX(1); } 100% { transform: scaleX(.45); }
}
@keyframes sbBob {
  from { transform: translateY(-4px) rotate(-6deg); } to { transform: translateY(5px) rotate(6deg); }
}
.mfa-qr { display: grid; place-items: center; padding: 14px; border-radius: var(--radius); background: #fff; width: max-content; margin: 4px auto; }
.mfa-qr img { width: 180px; height: 180px; image-rendering: pixelated; }
.mfa-secret { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text); font-size: 13px; letter-spacing: .06em; word-break: break-all; user-select: all; }
.profile-action.danger strong { color: var(--danger); }
.profile-action.danger:hover { border-color: rgba(242, 131, 131, .4); }
main:focus { outline: none; box-shadow: none; }
.bot-area { display: grid; gap: 16px; }
.bot-card .section-heading { align-items: center; }
.bot-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; margin: 4px 0 14px; }
.bot-info > div { min-width: 0; }
.bot-info .wide { grid-column: 1 / -1; }
.bot-info dt { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.bot-info dd { margin: 2px 0 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.bot-info-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; margin: 0; }
.bot-warning { padding: 10px 14px; border-radius: var(--radius-sm, 10px); border: 1px solid rgba(241, 192, 101, .35); background: var(--warn-soft); color: #f7e2b8; font-size: 14px; }
.bot-field { display: grid; gap: 6px; margin-bottom: 14px; color: var(--text-2); font-size: 14px; }
.bot-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bot-plans .plan-card h3 small { font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.bot-features { display: grid; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; color: var(--text-2); font-size: 14px; }
.bot-features li::before { content: "✦ "; color: var(--accent); }
.pairing-code { display: grid; justify-items: center; gap: 6px; margin: 8px 0 14px; padding: 22px 16px; border-radius: var(--radius-lg, 18px); border: 1px solid var(--accent-line); background: var(--accent-soft); text-align: center; }
.pairing-code span { color: var(--muted); font-size: 13px; }
.pairing-code strong { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); letter-spacing: .12em; color: var(--text); font-variant-numeric: tabular-nums; }
.pairing-code small { color: var(--text-2); font-size: 13px; }
.bot-steps { display: grid; gap: 6px; margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.bot-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 12px 14px; margin-bottom: 10px; }
.bot-group summary { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; cursor: pointer; list-style: none; }
.bot-group summary::-webkit-details-marker { display: none; }
.bot-group summary::before { content: "▸"; color: var(--accent); }
.bot-group[open] summary::before { content: "▾"; }
.bot-group[open] summary { margin-bottom: 10px; }
.bot-events { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); max-height: 360px; overflow-y: auto; }
.bot-events li { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); overflow-wrap: anywhere; }
.bot-events li small { color: var(--faint); margin-right: 6px; }
.bot-events li.is-warn { border-left: 3px solid var(--warn); }
.bot-events li.is-error { border-left: 3px solid var(--danger); }
.link-queue { max-height: none; }
.link-queue li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-queue-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.link-queue li .admin-muted { flex-shrink: 0; }
.bot-logs li { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.bot-token { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--surface-3); overflow-x: auto; }
.bot-token code { white-space: nowrap; font-size: 13px; }
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 560; white-space: nowrap; }
@media (max-width: 640px) {
  .bot-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-info-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
a.profile-action { text-decoration: none; color: inherit; }

.plan-card.is-chosen { border-color: var(--accent-line); box-shadow: var(--glass-edge), var(--glow-soft); }
.plan-card .admin-muted { font-size: 12.5px; text-align: center; }
.pay-card { border-color: var(--accent-line); background: linear-gradient(135deg, rgba(196, 166, 255, .12), rgba(196, 166, 255, .03)); }
:root[data-theme="light"] .topbar { background: rgba(247, 245, 251, .82); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) .topbar { background: rgba(247, 245, 251, .82); }
}
.feature-list { list-style: none; margin: 0; padding: 0; }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.fold > summary span { margin-left: auto; color: var(--muted); font-size: 13px; }
.fold > summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.fold[open] > summary::after { content: "−"; }
.fold[open] > summary { margin-bottom: 12px; }
@media (max-width: 640px) {
  .panel { padding: 16px; border-radius: 16px; }
  .panel + .panel, .bot-area { gap: 12px; }
  .panel + .panel { margin-top: 12px; }
  .bot-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .divulgacao-card { padding: 14px; gap: 12px; }
  .plan-card { padding: 18px; }
}
.host-area { display: grid; gap: 16px; }
.host-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.host-stat { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.host-stat small { display: block; color: var(--muted); font-size: 12.5px; }
.host-stat strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.02em; }
.host-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.host-card { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.host-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.host-card-head h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; overflow-wrap: anywhere; }
.host-meter { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.host-meter b { text-align: right; color: var(--text-2); font-weight: 550; }
.host-meter-bar { height: 6px; border-radius: 99px; background: rgba(127, 127, 127, .18); overflow: hidden; }
.host-meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.host-new { border-style: dashed; place-content: center; text-align: center; min-height: 170px; color: var(--text-2); }
.host-new small { color: var(--muted); }
.host-soon { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: clamp(24px, 5vw, 44px) 20px; text-align: center; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge), var(--glow-soft); }
.host-soon h2 { font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem); }
.host-soon p { max-width: 520px; color: var(--text-2); }
.host-soon-badge { padding: 5px 14px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.host-countdown { display: grid; grid-template-columns: repeat(4, minmax(56px, 76px)); gap: 8px; }
.host-countdown div { padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(127, 127, 127, .06); }
.host-countdown strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.host-countdown small { color: var(--muted); font-size: 11.5px; }
.host-frozen { display: grid; gap: 12px; margin-top: -8px; filter: blur(3px) grayscale(.4); opacity: .45; pointer-events: none; user-select: none; }
.token-card { display: grid; gap: 14px; }
.token-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.token-figures div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(127, 127, 127, .05); }
.token-figures small { display: block; color: var(--muted); font-size: 12px; }
.token-figures strong { font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.token-figures .is-low strong { color: var(--danger, #e5484d); }
.token-bar { height: 8px; border-radius: 99px; background: rgba(127, 127, 127, .18); overflow: hidden; }
.token-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.token-bar.is-low i { background: var(--danger, #e5484d); }
.token-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; max-height: 300px; overflow-y: auto; }
.token-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 10px; border-radius: 8px; background: rgba(127, 127, 127, .05); }
.token-list small { color: var(--muted); grid-column: 1; }
.token-list b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.token-list b.pos { color: var(--ok, #30a46c); }
.token-list b.neg { color: var(--danger, #e5484d); }
@media (max-width: 640px) {
  .host-stats { gap: 8px; }
  .host-stat { padding: 12px; }
  .host-stat strong { font-size: 1.25rem; }
  .host-countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .token-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.host-area, .bot-area { margin-top: 20px; }
:root[data-theme="light"] .bot-warning { color: #7a4f06; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) .bot-warning { color: #7a4f06; }
}
.auth-transition { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: var(--bg, #0c0b10); }
.auth-transition[hidden] { display: none; }
.auth-transition-card { display: grid; justify-items: center; gap: 10px; text-align: center; }
.auth-transition-card .brand-mark { width: 44px; height: 44px; border-radius: 14px; }
.auth-transition-card .brand-mark svg { width: 20px; height: 20px; }
.auth-transition-card strong { font-size: 13px; letter-spacing: .3em; padding-left: .3em; }
.auth-transition-card p { color: var(--text-2); font-size: 15px; }
.auth-transition-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2, rgba(127,127,127,.3)); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.trust-grid li { display: grid; gap: 8px; align-content: start; padding: 20px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.trust-grid h3 { font-size: 15.5px; font-family: var(--font-body); font-weight: 600; }
.trust-grid p { color: var(--muted); font-size: 14px; }
.trust-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.trust-icon svg { width: 20px; height: 20px; }
@media (max-width: 1040px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } .trust-grid li { padding: 16px; } }
.token-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.token-pack { display: grid; gap: 2px; justify-items: start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(127, 127, 127, .05); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.token-pack:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.token-pack strong { font-family: var(--font-display); font-size: 1.15rem; }
.token-pack span { color: var(--accent); font-weight: 600; }
.token-pack small { color: var(--muted); font-size: 12px; }
.token-pack:disabled { opacity: .6; cursor: progress; }
.pack-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.pack-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
@media (max-width: 720px) { .pack-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pack-row [data-remover] { grid-column: 1 / -1; } }

/* ---------- Console do bot ---------- */
.cs-main { max-width: calc(1320px + var(--gutter) * 2); padding-top: clamp(18px, 3vw, 32px); }
.cs-area { display: grid; gap: 14px; }
.cs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.cs-head-info { display: grid; gap: 6px; min-width: 0; }
.cs-back { color: var(--muted); font-size: 13.5px; text-decoration: none; width: fit-content; }
.cs-back:hover { color: var(--text); }
.cs-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cs-title-row h1 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); overflow-wrap: anywhere; }
.cs-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--text-2); font-size: 14px; }
.cs-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.cs-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cs-pill.is-ok { color: var(--ok); background: var(--ok-soft); }
.cs-pill.is-info { color: var(--info); background: var(--accent-soft); }
.cs-pill.is-warn { color: var(--warn); background: var(--warn-soft); }
.cs-pill.is-error { color: var(--danger); background: var(--danger-soft); }
.cs-live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 12.5px; font-weight: 600; }
.cs-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: cs-pulse 1.8s var(--ease) infinite; }
.cs-live.is-off { color: var(--muted); }
.cs-live.is-off i { animation: none; }
@keyframes cs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .cs-live i, .cs-spinner { animation: none; } }

.cs-power { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 8px; }
.cs-pw { min-height: 40px; padding: 0 16px; font-weight: 600; }
.cs-pw-start { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.cs-pw-start:hover { background: var(--ok-soft); border-color: var(--ok); }
.cs-pw-stop { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.cs-pw-stop:hover { background: var(--warn-soft); border-color: var(--warn); }
.cs-pw-kill { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.cs-pw-kill:hover { background: var(--danger-soft); border-color: var(--danger); }
.cs-pw:disabled { opacity: .38; }
.cs-alert { margin: 0; padding: 12px 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); color: var(--text); font-size: 14px; }
.admin-aviso { margin: 10px 0 2px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); color: var(--text); font-size: 13.5px; line-height: 1.5; }
.admin-aviso.is-error { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }

.cs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cs-stat { position: relative; display: grid; gap: 4px; align-content: start; min-height: 96px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); overflow: hidden; }
.cs-stat-k { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.cs-stat strong { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.cs-stat strong.is-ok { color: var(--ok); }
.cs-stat strong.is-warn { color: var(--warn); }
.cs-stat strong.is-info { color: var(--info); }
.cs-stat strong.is-muted { color: var(--text-2); }
.cs-stat small { color: var(--muted); font-size: 12px; }
.cs-spark { width: 100%; height: 30px; margin-top: 2px; color: var(--accent); }

.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.cs-side { display: grid; gap: 14px; }
.cs-side .panel + .panel { margin-top: 0; }
.cs-card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.cs-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.cs-dl .wide { grid-column: 1 / -1; }
.cs-dl dt { color: var(--muted); font-size: 12px; }
.cs-dl dd { margin: 2px 0 0; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.cs-dl dd.is-ok { color: var(--ok); } .cs-dl dd.is-warn { color: var(--warn); } .cs-dl dd.is-error { color: var(--danger); } .cs-dl dd.is-info { color: var(--info); }

.cs-term-wrap { position: relative; display: grid; gap: 10px; padding: 12px; }
.cs-term-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-chips { display: inline-flex; gap: 4px; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); }
.cs-chip { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 550; padding: 6px 12px; border-radius: var(--radius-pill); cursor: pointer; min-height: 32px; }
.cs-chip.is-on { background: var(--surface-3); color: var(--text); }
.cs-select, .cs-search { min-height: 38px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; }
.cs-search { flex: 1 1 160px; min-width: 0; }
.cs-term-tools { display: inline-flex; gap: 4px; margin-left: auto; }
.cs-term { height: clamp(360px, 58vh, 640px); overflow: auto; padding: 10px 12px; border-radius: var(--radius); background: #07060c; border: 1px solid rgba(214, 196, 255, .1); color: #d8d3e6; font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; overscroll-behavior: contain; }
.cs-term:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.cs-ln { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; padding: 1px 4px; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-ln[hidden] { display: none; }
.cs-ln time { color: #6f6886; font-variant-numeric: tabular-nums; }
.cs-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; background: rgba(196, 166, 255, .12); color: #c4a6ff; align-self: start; margin-top: 1px; }
.cs-src-worker .cs-tag { background: rgba(143, 184, 255, .12); color: #8fb8ff; }
.cs-src-worker .cs-msg { color: #a9b8d6; }
.cs-warn { background: rgba(241, 192, 101, .08); }
.cs-warn .cs-msg { color: #f1c065; }
.cs-error { background: rgba(242, 131, 131, .1); box-shadow: inset 2px 0 0 #f28383; }
.cs-error .cs-msg { color: #ff9d9d; }
.cs-vazio { margin: 8px 2px; color: #8a82a3; font-family: var(--font-body); }
/* Mensagens do WhatsApp no console: recebida (📩) e enviada (📤) */
.cs-wa-in .cs-msg { color: #9fd8ff; }
.cs-wa-out .cs-msg { color: #8fe3b4; }
.cs-wa-in { box-shadow: inset 2px 0 0 rgba(120, 190, 255, .55); }
.cs-wa-out { box-shadow: inset 2px 0 0 rgba(110, 220, 160, .55); }
.cs-wa-info .cs-msg { color: #8a82a3; font-style: italic; }
.cs-novas { position: absolute; right: 26px; bottom: 26px; border: 0; border-radius: var(--radius-pill); padding: 8px 14px; background: var(--grad-primary); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--glow); }

.cs-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.cs-timeline li { display: grid; gap: 1px; padding: 8px 0 8px 14px; border-left: 2px solid var(--line-2); font-size: 13.5px; color: var(--text); }
.cs-timeline li.is-warn { border-left-color: var(--warn); }
.cs-timeline li.is-error { border-left-color: var(--danger); }
.cs-timeline time { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cs-tl-vazio { color: var(--muted); border-left: 0 !important; padding-left: 0 !important; }

.cs-qr { width: min(260px, 100%); margin: 4px auto 12px; padding: 10px; border-radius: var(--radius); background: #fff; }
.cs-qr svg { display: block; width: 100%; height: auto; }
.cs-steps { margin: 0 0 8px; padding-left: 18px; color: var(--text-2); font-size: 13.5px; display: grid; gap: 4px; }
.cs-exp { color: var(--muted); font-size: 12.5px; }
.cs-wait { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--text-2); font-size: 14px; }
.cs-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: var(--accent); animation: cs-spin .8s linear infinite; }
@keyframes cs-spin { to { transform: rotate(360deg); } }

@media (max-width: 1040px) {
  .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 860px) {
  .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cs-head { align-items: stretch; }
  .cs-power { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .cs-pw { padding: 0 6px; font-size: 13.5px; }
  .cs-stat { min-height: 84px; padding: 12px; }
  .cs-term { height: 60vh; font-size: 11.5px; padding: 8px; }
  .cs-ln { grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
  .cs-ln time { display: none; }
  .cs-term-tools { margin-left: 0; }
  .cs-dl { grid-template-columns: 1fr; }
}
.bot-console-link { width: fit-content; margin: -6px 0 14px; }
.bot-metodo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bot-metodo label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--surface-2); font-size: 14px; cursor: pointer; }
.bot-metodo label:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.admin-form label[hidden] { display: none; }
.cs-select { width: auto; flex: 0 0 auto; }
.cs-search { width: auto; }
.cs-pair-body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.cs-pair-body .cs-qr { margin: 0; flex: 0 0 auto; }
.cs-pair-body .cs-steps { flex: 1 1 240px; }
@media (max-width: 640px) { .cs-pair-body .cs-qr { margin: 0 auto; } }
.cs-prompt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 6px 6px 12px; border-radius: var(--radius); background: #07060c; border: 1px solid rgba(214, 196, 255, .14); }
.cs-prompt:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.cs-prompt-sinal { color: #c4a6ff; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; }
.cs-prompt input { flex: 1; min-width: 0; min-height: 38px; border: 0; background: transparent; color: #f5f1ff; font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace; font-size: 16px; outline: none; }
.cs-prompt input::placeholder { color: #6f6886; }
.cs-prompt .btn { border-color: rgba(214, 196, 255, .2); color: #f5f1ff; }
.cs-src-painel .cs-tag { background: rgba(86, 217, 155, .14); color: #56d99b; }
.cs-src-painel .cs-msg { color: #e9e4f6; }
.cs-conectar { align-self: center; }
.cs-prompt input, .cs-prompt input:hover, .cs-prompt input:focus { width: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #f5f1ff; }

/* ---------- Console: estrutura de "servidor" (abas) ---------- */
.px-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 18px; align-items: start; }
.px-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.px-server { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.px-server > div { display: grid; min-width: 0; }
.px-server strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-server small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); color: var(--muted); }
.px-dot.is-ok { background: var(--ok); color: var(--ok); }
.px-dot.is-warn { background: var(--warn); color: var(--warn); }
.px-dot.is-error { background: var(--danger); color: var(--danger); }
.px-dot.is-info { background: var(--info); color: var(--info); }
.px-tabs { display: grid; gap: 2px; }
.px-tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.px-tab svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.px-tab:hover { background: var(--surface-2); color: var(--text); }
.px-tab.is-on { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.px-tab.is-on svg { color: var(--accent); opacity: 1; }
.px-main { display: grid; gap: 14px; min-width: 0; }
.px-view { display: grid; gap: 14px; min-width: 0; }
.px-view[hidden] { display: none; }
.cs-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.cs-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cs-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.cs-card-head h2 { margin: 0; font-size: 1.05rem; }
.cs-card-head > span { color: var(--muted); font-size: 12.5px; }
.cs-card-head p { margin: 4px 0 0; }
.cs-link { color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }

.cs-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cs-chart { padding: 16px; }
.cs-chart-area { position: relative; min-height: 120px; }
.cs-chart-area svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.cs-chart-vazio { margin: 0; padding: 36px 8px; text-align: center; color: var(--muted); font-size: 13.5px; }
.cs-grid-line { stroke: var(--line-2); stroke-width: 1; }
.cs-axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.cs-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cs-area { fill: var(--accent-soft); }
.cs-cross { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 3; }
.cs-marker { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.cs-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 5px 9px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5); }

.cs-sugestoes { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-sugestoes[hidden] { display: none; }
.cs-sug { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); border-radius: var(--radius-pill); padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; min-height: 30px; }
.cs-sug b { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--text); font-weight: 600; }
.cs-sug:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.cs-dica { color: var(--muted); font-size: 12px; }
.cs-resp .cs-msg { color: #bff3d9; }
.cs-src-painel .cs-msg { white-space: pre-wrap; }

.px-activity, .px-list { list-style: none; margin: 0; padding: 0; display: grid; }
.px-activity li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.px-activity li:last-child { border-bottom: 0; }
.px-activity li > div { display: grid; gap: 2px; min-width: 0; }
.px-activity li > div span { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.px-activity time { color: var(--muted); font-size: 12px; }
.px-act-ico { min-width: 64px; text-align: center; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 650; }
.px-activity li.is-warn .px-act-ico { background: var(--warn-soft); color: var(--warn); }
.px-activity li.is-error .px-act-ico { background: var(--danger-soft); color: var(--danger); }
.px-more { display: flex; justify-content: center; margin-top: 12px; }
.px-more:has(> [hidden]) { display: none; }
.px-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.px-list li:last-child { border-bottom: 0; }
.px-list li > div { display: grid; gap: 2px; min-width: 0; }
.px-list li small { color: var(--muted); font-size: 12.5px; }
.px-note { margin: 12px 0 0; font-size: 13px; }

.px-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 14px 0 6px; }
.px-field { display: grid; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 550; }
.px-field input { min-height: 42px; }
.px-grow { flex: 1 1 260px; }
.px-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; cursor: pointer; font-size: 14.5px; font-weight: 550; }
.px-switch input { width: 20px; height: 20px; accent-color: var(--accent-2); }
.px-status { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.px-details { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.px-danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.px-danger h2 { color: var(--danger); }
.px-danger-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.px-danger-row p { margin: 4px 0 0; }

@media (max-width: 1180px) {
  .cs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .px-shell { grid-template-columns: minmax(0, 1fr); }
  .px-nav { position: static; padding: 10px; gap: 10px; }
  .px-server { display: none; }
  .px-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
  .px-tabs::-webkit-scrollbar { display: none; }
  .px-tab { flex: none; padding: 9px 12px; font-size: 13.5px; }
  .px-tab.is-on { box-shadow: inset 0 -2px 0 var(--accent); }
  .cs-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-stats .cs-stat:first-child { grid-column: 1 / -1; min-height: 0; }
  .cs-head-actions { width: 100%; justify-content: stretch; }
  .cs-head-actions .cs-conectar { width: 100%; }
  .px-list li { align-items: flex-start; flex-direction: column; }
  .px-act-ico { min-width: 0; }
}
.px-shell .panel + .panel { margin-top: 0; }
.px-details { margin-bottom: 14px; }
.px-nav { scroll-margin-top: calc(var(--header-h) + 10px); }
.cs-chart-area { min-height: 0; }
.cs-live.is-sync { color: var(--warn); }

/* Console: aba Respostas */
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rp-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.rp-item:last-child { border-bottom: 0; }
.rp-item.is-off .rp-corpo { opacity: .5; }
.rp-ordem { display: grid; gap: 2px; }
.rp-ordem .btn { min-height: 30px; padding: 0 9px; }
.rp-corpo { display: grid; gap: 4px; min-width: 0; }
.rp-corpo small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.rp-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rp-tag.is-off { background: var(--surface-3); color: var(--muted); }
.rp-tag { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 650; }
.rp-gatilho { color: var(--text-2) !important; }
.rp-resposta { margin: 2px 0; color: var(--text-2); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.rp-acoes .px-switch { min-height: 36px; }
.rp-form { display: grid; gap: 16px; }
.rp-form textarea { width: 100%; resize: vertical; min-height: 72px; }
.rp-form .px-field input, .rp-form .px-field select { min-height: 42px; }
.rp-fs { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; min-width: 0; }
.rp-fs legend { padding: 0 6px; color: var(--text); font-weight: 650; font-size: 14px; }
.rp-tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rp-tipo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.rp-tipo:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.rp-tipo input { margin-top: 3px; accent-color: var(--accent-2); }
.rp-tipo span { display: grid; gap: 2px; }
.rp-tipo b { font-size: 14px; }
.rp-tipo small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.rp-respostas { display: grid; gap: 8px; }
.rp-resp { display: flex; gap: 6px; align-items: flex-start; }
.rp-linha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.rp-linha [hidden] { display: none; }
.rp-fim { justify-content: flex-end; }
.rp-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rp-busca { max-width: 320px; min-height: 40px; }
.rp-grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; max-height: 260px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.rp-grupos .px-switch { min-height: 38px; font-size: 13.5px; }
.rp-grupos [hidden] { display: none; }
.rp-agenda { display: grid; gap: 10px; }
.rp-agenda[hidden] { display: none; }
.rp-erro { margin: 0; color: var(--danger); font-size: 13.5px; }
.rp-erro[hidden] { display: none; }
.rp-resultado p { margin: 8px 0 0; }
.rp-aviso { color: var(--warn); }
.rp-chat { display: grid; gap: 6px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.rp-bolha { max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-in { justify-self: start; background: var(--surface-3); }
.rp-out { justify-self: end; background: color-mix(in srgb, #25d366 22%, var(--surface-3)); }
[data-view="respostas"] .px-form .px-field input[type="number"] { width: 120px; }
@media (max-width: 640px) {
  .rp-item { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "corpo corpo" "ordem acoes"; row-gap: 8px; }
  .rp-corpo { grid-area: corpo; }
  .rp-ordem { grid-area: ordem; grid-auto-flow: column; align-items: center; }
  .rp-acoes { grid-area: acoes; }
}

/* ===== Refinamento v6: leitura mais confortável, mesma identidade ===== */
body { font-size: 16px; line-height: 1.65; }
h1, h2 { letter-spacing: -.025em; line-height: 1.1; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.topbar { background: rgba(18, 16, 25, .78); box-shadow: 0 1px 0 rgba(222, 210, 255, .04), 0 10px 30px -22px rgba(0, 0, 0, .7); }
body::before {
  background:
    radial-gradient(60vmax 45vmax at 12% -8%, rgba(140, 100, 230, .16), transparent 62%),
    radial-gradient(50vmax 40vmax at 100% 38%, rgba(110, 80, 200, .09), transparent 60%),
    radial-gradient(40vmax 30vmax at 30% 110%, rgba(170, 140, 240, .07), transparent 60%);
}
.panel { box-shadow: var(--glass-edge), 0 1px 2px rgba(0, 0, 0, .12); }
.btn { font-weight: 580; }
.btn:hover { background: var(--accent-soft); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent-line); background: var(--surface-2); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
::selection { background: rgba(160, 126, 240, .32); }

:root[data-theme="light"] .topbar { background: rgba(246, 245, 248, .85); box-shadow: 0 1px 0 rgba(45, 38, 66, .05), 0 10px 30px -24px rgba(45, 38, 66, .35); }
:root[data-theme="light"] { --grad-primary: linear-gradient(135deg, #7c58d6 0%, #6a45c9 55%, #5a3bb0 100%); }
:root[data-theme="light"] body::before {
  background:
    radial-gradient(60vmax 45vmax at 12% -8%, rgba(120, 90, 200, .08), transparent 62%),
    radial-gradient(50vmax 40vmax at 100% 38%, rgba(110, 90, 190, .05), transparent 60%);
}
:root[data-theme="light"] .panel { box-shadow: var(--glass-edge), 0 1px 2px rgba(45, 38, 66, .05), 0 8px 24px -18px rgba(45, 38, 66, .18); }
:root[data-theme="light"] .btn-primary:hover { box-shadow: 0 12px 30px -14px rgba(90, 60, 170, .55), inset 0 1px 0 rgba(255, 255, 255, .25); filter: brightness(1.05); }
:root[data-theme="light"] ::selection { background: rgba(106, 69, 201, .18); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) .topbar { background: rgba(246, 245, 248, .85); }
  :root:not([data-theme="dark"]):not([data-theme="light"]) { --grad-primary: linear-gradient(135deg, #7c58d6 0%, #6a45c9 55%, #5a3bb0 100%); }
  :root:not([data-theme="dark"]):not([data-theme="light"]) body::before {
    background: radial-gradient(60vmax 45vmax at 12% -8%, rgba(120, 90, 200, .08), transparent 62%), radial-gradient(50vmax 40vmax at 100% 38%, rgba(110, 90, 190, .05), transparent 60%);
  }
}
.worker-marca { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ref-stats div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.ref-stats dt { color: var(--muted); font-size: 12px; }
.ref-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
#profileRefLink { font-size: 13.5px; }

/* ===== Admin v7: métricas, vendas, indicações e contas ===== */
.ins-area { display: grid; gap: 14px; min-width: 0; }
.ins-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ins-area .panel { margin: 0; }
.ins-area .panel-title small { font-weight: 500; }
.gx { position: relative; }
.gx svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.gx-grid { stroke: var(--line); stroke-width: 1; }
.gx-base { stroke: var(--line-3); stroke-width: 1; }
.gx-eixo { fill: var(--muted); font-size: 11px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.gx-barra { fill: var(--accent-2); }
.gx-alvo { fill: transparent; cursor: default; }
[data-i].is-on .gx-alvo { fill: var(--accent-soft); }
[data-i].is-on .gx-barra { fill: var(--accent); }
.gx-dica { position: absolute; top: 0; transform: translate(-50%, -105%); display: grid; gap: 1px; padding: 7px 10px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2); font-size: 12.5px; white-space: nowrap; pointer-events: none; box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .5); z-index: 2; }
.gx-dica b { color: var(--text); font-weight: 650; }
.gx-dica[hidden] { display: none; }
.gx-vazio { margin: 0; padding: 34px 8px; text-align: center; color: var(--muted); font-size: 13.5px; }
.gx-tabela { margin-top: 8px; font-size: 13px; }
.gx-tabela summary { cursor: pointer; color: var(--muted); width: max-content; }
.gx-tabela .admin-table-wrap { margin-top: 8px; max-height: 260px; overflow: auto; }
.gx-duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gx-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gx-grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gx-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gx-rank li { display: grid; gap: 5px; min-width: 0; }
.gx-rank-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.gx-rank-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.gx-rank-top small { margin-left: 4px; }
.gx-rank-top b { flex-shrink: 0; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.gx-rank i { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); position: relative; overflow: hidden; }
.gx-rank i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 999px; background: var(--accent-2); }
.gx-ao-vivo { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); vertical-align: middle; }
.ok-alert { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
#insConta h3.panel-title { margin-top: 18px; }
.admin-table td small { font-size: 12px; }
@media (max-width: 1100px) { .gx-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gx-duas, .gx-grade, .gx-grade-2 { grid-template-columns: minmax(0, 1fr); } }
.admin-view.active, .ins-area { grid-template-columns: minmax(0, 1fr); }

/* ---------- Sorasaki Hina (aluguel de administração de grupos) ---------- */
.hina-recursos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.hina-recursos li { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.hina-recursos strong { font-size: 15px; }
.hina-recursos span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.hina-passos { margin: 16px 0 28px; }
.hina-area { display: grid; gap: 16px; }
.hina-area .panel + .panel { margin-top: 0; }
.hina-aluguel .bot-info { margin-bottom: 14px; }
.hina-form { margin-top: 12px; }
.hina-renovar { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hina-suporte { text-align: center; }
.hina-suporte a { color: var(--accent); }
.hina-qr { display: inline-block; padding: 8px; border-radius: var(--radius-sm); background: #fff; margin: 10px 0 4px; }
.hina-check { display: flex; align-items: center; gap: 8px; }
.hina-admin-lista { display: grid; gap: 10px; margin-top: 12px; }
.hina-plano + .hina-plano { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.admin-integracoes { list-style: none; margin: 4px 0 10px; padding: 12px 14px; display: grid; gap: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; line-height: 1.5; }
.admin-integracoes code { font-size: 12.5px; overflow-wrap: anywhere; }
/* Indicadores do admin no tema claro: o degradê branco sumia no fundo claro. */
:root[data-theme="light"] .admin-kpi b { background: none; color: var(--text); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .admin-kpi b { background: none; color: var(--text); } }

/* Suporte: formulário que monta a mensagem para o WhatsApp/e-mail */
.suporte-form-box { margin-top: 14px; display: grid; gap: 6px; }
.suporte-form-title { font-size: 19px; }
.suporte-form { display: grid; gap: 14px; margin-top: 10px; }
.suporte-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.suporte-linha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.suporte-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
#suporteErro { color: var(--danger, #e5484d); }
@media (max-width: 640px) { .suporte-linha { grid-template-columns: 1fr; } }

/* Guia "qual serviço é o certo para mim?" */
.guia-planos { margin: 0 0 22px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass), var(--surface-glass); box-shadow: var(--glass-edge); }
.guia-head h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.guia-head p { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }
.guia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.guia-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2, transparent); }
.guia-card.is-atual { border-color: var(--accent-line); box-shadow: var(--glow-soft); }
.guia-tag { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, inherit); }
.guia-card h4 { font-size: 1.1rem; font-weight: 600; }
.guia-resumo { color: var(--text-2); font-size: 14px; }
.guia-rotulo { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.guia-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 13.5px; }
.guia-lista li { position: relative; padding-left: 20px; }
.guia-lista li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.guia-sim li::before { content: "✓"; color: #2e9e6b; }
.guia-nao li::before { content: "✕"; color: #d2574f; }
.guia-recebe { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.guia-card .btn { margin-top: auto; align-self: flex-start; }
.plan-for { display: block; font-size: 13px; color: var(--muted); }

/* Console: próximo disparo */
.cs-disparo { display: grid; grid-template-columns: minmax(240px, 1.1fr) 2fr; gap: 18px 28px; align-items: start; margin-bottom: 14px; }
.cs-disparo-main { display: grid; gap: 6px; align-content: start; }
.cs-disparo-tempo { font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.cs-disparo-main small { color: var(--muted); font-size: 13px; min-height: 1.2em; }
.cs-bar { height: 8px; border-radius: 999px; background: var(--surface-2, rgba(128,128,128,.18)); overflow: hidden; margin-top: 4px; }
.cs-bar[hidden] { display: none; }
.cs-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent, #6a45c9); transition: width 1s linear; }
.cs-disparo-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cs-disparo-dl { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cs-disparo-dl dd.is-ok { color: var(--ok); }
.cs-disparo-dl dd.is-muted { color: var(--text-2); }
.cs-hist { grid-column: 1 / -1; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 18px; font-size: 13px; }
.cs-hist[hidden] { display: none; }
.cs-hist li { display: flex; gap: 8px; align-items: baseline; color: var(--text-2); }
.cs-hist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; transform: translateY(-1px); }
.cs-hist li.is-bad::before { background: var(--warn); }
.cs-hist b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 820px) { .cs-disparo { grid-template-columns: 1fr; } }

/* Painel admin: Conexões (API) */
.integ-abas { margin-bottom: 14px; }
.integ-token { border-color: var(--accent-line); }
.integ-token-linha { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.integ-token-linha code { flex: 1 1 260px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 13px; word-break: break-all; user-select: all; }
.integ-nova summary { cursor: pointer; list-style: none; }
.integ-nova summary::-webkit-details-marker { display: none; }
.integ-escopos { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; }
.integ-escopos legend { padding: 0 6px; font-weight: 600; font-size: 13px; }
.integ-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.integ-check input { margin-top: 3px; }
.integ-lista { display: grid; gap: 12px; margin: 12px 0; }
.integ-editar { margin: 8px 0; font-size: 13.5px; }
.integ-editar summary { cursor: pointer; color: var(--text-2); }
.integ-perigo { color: var(--danger, #d2574f); }
.integ-eventos, .integ-bl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.integ-eventos li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.integ-bl-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.integ-bl-item small { display: block; }
.integ-busca { display: flex; gap: 8px; }
.integ-busca input { max-width: 200px; }
.integ-docs { line-height: 1.65; font-size: 14.5px; overflow-wrap: anywhere; }
.integ-docs h2, .integ-docs h3, .integ-docs h4 { margin: 20px 0 8px; }
.integ-docs code { padding: 1px 5px; border-radius: 6px; background: var(--surface-2); font-size: 13px; }
.integ-docs blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--accent-line); color: var(--text-2); }
.integ-code { margin: 10px 0; padding: 12px 14px; border-radius: var(--radius); background: #14121c; color: #e9e4f5; overflow-x: auto; font-size: 12.5px; line-height: 1.55; }
.integ-code code { background: none; padding: 0; color: inherit; white-space: pre; }
.integ-tabela { overflow-x: auto; margin: 10px 0; }
.integ-tabela table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.integ-tabela th, .integ-tabela td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
