/* Fundação visual compartilhada pelo painel e pelas telas de acesso.
   Archivo é variável em peso e largura: a largura condensada marca títulos
   e números operacionais; a largura normal fica para o texto corrido. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/static/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/static/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/static/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("/static/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* Superfícies e texto */
  --paper: #f5f7f5;
  --surface: #ffffff;
  --surface-sunken: #f1f4f2;
  --surface-hover: #f7f9f7;
  --ink: #15211c;
  --ink-2: #34413b;
  --muted: #52635a;
  --faint: #5e6e64;
  --line: #e1e6e2;
  --line-strong: #c9d2cd;

  /* Marca: verde-garrafa da mentoria */
  --brand: #1e5a44;
  --brand-hover: #174a38;
  --brand-soft: #e4f0e9;
  --brand-line: #c4dccf;

  /* Estados operacionais (SLA, saúde, status) */
  --ok: #23704f;
  --ok-soft: #e4f1ea;
  --ok-line: #c3dfcf;
  --warn: #93570a;
  --warn-soft: #fbf0dc;
  --warn-line: #ecd3a6;
  --danger: #b42318;
  --danger-soft: #fcebe9;
  --danger-line: #f1c4bf;
  --info: #2f5f86;
  --info-soft: #e7eff6;
  --info-line: #c8d9e8;
  --neutral-soft: #eef1ef;
  --purple: #68457a;
  --purple-soft: #f0eaf4;
  --purple-line: #d9cce2;
  --chat-surface: #eef2ed;
  --chat-outgoing: #e0eddd;
  --chat-outgoing-line: #d2e2cf;

  /* Forma */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-pill: 999px;
  --focus-ring: 0 0 0 3px rgba(30, 90, 68, .2);
  --shadow-overlay: 0 14px 36px rgba(18, 33, 27, .16), 0 2px 6px rgba(18, 33, 27, .08);

  /* Ritmo de espaçamento e transições: uma escala para todas as telas. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --control-border: #819388;
  --motion-fast: 140ms;
  --motion-normal: 200ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  /* Tipografia */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --narrow: 84%;
  --semi: 92%;
  --text-xs: .8125rem;
  --text-sm: .875rem;
  --text-base: .9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;

  /* Layout */
  --gutter: clamp(16px, 3vw, 40px);
  --sidebar-w: 240px;
  --control-height: 44px;
  --control-touch: 44px;
  --section-gap: 24px;
  --section-padding: 24px;
  --page-max: 1280px;
  --avatar-size: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
:where(button, input, select, textarea) { color: inherit; font: inherit; letter-spacing: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
html, .sidebar, .g-chat-history, .chat-history, .chat-group-list { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
::selection { background: #cfe6da; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
button, input, select, textarea { caret-color: var(--brand); }
button:disabled { cursor: not-allowed; }
button, a, summary { touch-action: manipulation; }
:where(button, .button, summary):active:not(:disabled) { translate: 0 1px; }
:where(button, .button, summary) { transition-timing-function: var(--ease-out); }
:target { scroll-margin-top: 88px; }
:where([aria-invalid="true"]) { border-color: var(--danger); }
:where(h1, h2, h3) { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) {
  :where(button, .button, summary):active { translate: none; }
  :where(button, a, input, select, textarea, summary) { transition: none !important; }
}

.icon { fill: none; flex: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; width: 18px; }
.sr-only { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html, [class*="history"], .g-chat-history { scroll-behavior: auto; }
  .content, .summary-card, .user-card, .skeleton { animation: none !important; }
  .sidebar, .scrim, .toast, .user-invite-panel, .user-card-reveal,
  .summary-card-reveal, .summary-card-teaser, .summary-card-chevron, .user-card-chevron { transition: none !important; }
  ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}
